@genome-spy/core 0.61.1 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/index.es.js +3855 -3805
- package/dist/bundle/index.js +95 -95
- package/dist/schema.json +19 -4
- package/dist/src/data/collector.d.ts.map +1 -1
- package/dist/src/data/collector.js +40 -15
- package/dist/src/data/transforms/filterScoredLabels.d.ts +4 -3
- package/dist/src/data/transforms/filterScoredLabels.d.ts.map +1 -1
- package/dist/src/data/transforms/filterScoredLabels.js +46 -17
- package/dist/src/data/transforms/measureText.d.ts +3 -3
- package/dist/src/data/transforms/measureText.d.ts.map +1 -1
- package/dist/src/data/transforms/measureText.js +21 -4
- package/dist/src/spec/transform.d.ts +18 -4
- package/dist/src/utils/topK.d.ts +5 -14
- package/dist/src/utils/topK.d.ts.map +1 -1
- package/dist/src/utils/topK.js +14 -45
- package/dist/src/utils/topK.test.js +30 -40
- package/package.json +2 -2
package/dist/bundle/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
(function(ze,Ye){typeof exports=="object"&&typeof module<"u"?Ye(exports):typeof define=="function"&&define.amd?define(["exports"],Ye):(ze=typeof globalThis<"u"?globalThis:ze||self,Ye(ze.genomeSpyEmbed={}))})(this,function(ze){"use strict";var
|
|
1
|
+
(function(ze,Ye){typeof exports=="object"&&typeof module<"u"?Ye(exports):typeof define=="function"&&define.amd?define(["exports"],Ye):(ze=typeof globalThis<"u"?globalThis:ze||self,Ye(ze.genomeSpyEmbed={}))})(this,function(ze){"use strict";var _M=Object.defineProperty;var xv=ze=>{throw TypeError(ze)};var RM=(ze,Ye,Je)=>Ye in ze?_M(ze,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Je}):ze[Ye]=Je;var Gt=(ze,Ye,Je)=>RM(ze,typeof Ye!="symbol"?Ye+"":Ye,Je),A0=(ze,Ye,Je)=>Ye.has(ze)||xv("Cannot "+Je);var W=(ze,Ye,Je)=>(A0(ze,Ye,"read from private field"),Je?Je.call(ze):Ye.get(ze)),ge=(ze,Ye,Je)=>Ye.has(ze)?xv("Cannot add the same private member more than once"):Ye instanceof WeakSet?Ye.add(ze):Ye.set(ze,Je),Ie=(ze,Ye,Je,Vi)=>(A0(ze,Ye,"write to private field"),Vi?Vi.call(ze,Je):Ye.set(ze,Je),Je),de=(ze,Ye,Je)=>(A0(ze,Ye,"access private method"),Je);var vv=(ze,Ye,Je,Vi)=>({set _(xu){Ie(ze,Ye,xu,Je)},get _(){return W(ze,Ye,Vi)}});var dv,or,Uo,_i,Ri,Go,Oa,jt,zr,Ho,Fi,rc,Na,Ur,Mi,Vo,qo,za,Ua,jo,Av,Ev,In,Gr,E0,S0,Wo,hu,Sv,Yo,Jt,Pi,Ga,Pe,C0,I0,hr,T0,Cv,Iv,D0,B0,bu,k0,Gi,Tv,Dv,Ha,_0,Qo,Zo,Xo,Va,qa,qn,ic,R0,ja,du,Bv,sr,Wa,Hr,Li,Ko,tn,F0,M0,P0,kv,Ya,L0,pu,_v,Jo,$o,es,Qa,ts,ns,Za,O0,Xa,N0,Oi,rs,Ka,Ja,is,$a,ec,ar,Ni,Vr,qr,os,tc,jr,zi,gu,Rv,ss,as,nn,Ui,cs,He,Hi,Fv,oc,z0,U0,G0,Mv,yu,Pv,ls,pn,wu,Lv,Ov,Nv;function Ye(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Je(t,e,n){return t.fields=e||[],t.fname=n,t}function Vi(t){return t==null?null:t.fname}function xu(t){return t==null?null:t.fields}function zv(t){return t.length===1?Uv(t[0]):Gv(t)}const Uv=t=>function(e){return e[t]},Gv=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function bn(t){throw Error(t)}function Hv(t){const e=[],n=t.length;let r=null,o=0,i="",s,a,c;t=t+"";function l(){e.push(i+t.substring(s,a)),i="",s=a+1}for(s=a=0;a<n;++a)if(c=t[a],c==="\\")i+=t.substring(s,a++),s=a;else if(c===r)l(),r=null,o=-1;else{if(r)continue;s===o&&c==='"'||s===o&&c==="'"?(s=a+1,r=c):c==="."&&!o?a>s?l():s=a+1:c==="["?(a>s&&l(),o=s=a+1):c==="]"&&(o||bn("Access path missing open bracket: "+t),o>0&&l(),o=0,s=a+1)}return o&&bn("Access path missing closing bracket: "+t),r&&bn("Access path missing closing quote: "+t),a>s&&(a++,l()),e}function sc(t,e,n){const r=Hv(t);return t=r.length===1?r[0]:t,Je((n&&n.get||zv)(r),[t],e||t)}sc("id");const ac=Je(t=>t,[],"identity");Je(()=>0,[],"zero"),Je(()=>1,[],"one"),Je(()=>!0,[],"true"),Je(()=>!1,[],"false");var _t=Array.isArray;function Rt(t){return t===Object(t)}function jn(t){return t[t.length-1]}function cc(t){return t==null||t===""?null:+t}const H0=t=>e=>t*Math.exp(e),V0=t=>e=>Math.log(t*e),Vv=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),qv=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,lc=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function vu(t,e,n,r){const o=n(t[0]),i=n(jn(t)),s=(i-o)*e;return[r(o-s),r(i-s)]}function jv(t,e){return vu(t,e,cc,ac)}function Wv(t,e){var n=Math.sign(t[0]);return vu(t,e,V0(n),H0(n))}function Yv(t,e,n){return vu(t,e,lc(n),lc(1/n))}function uc(t,e,n,r,o){const i=r(t[0]),s=r(jn(t)),a=e!=null?r(e):(i+s)/2;return[o(a+(i-a)*n),o(a+(s-a)*n)]}function q0(t,e,n){return uc(t,e,n,cc,ac)}function j0(t,e,n){const r=Math.sign(t[0]);return uc(t,e,n,V0(r),H0(r))}function Au(t,e,n,r){return uc(t,e,n,lc(r),lc(1/r))}function Qv(t,e,n,r){return uc(t,e,n,Vv(r),qv(r))}function W0(t){return t!=null?_t(t)?t:[t]:[]}function Zv(t,e,n){let r=t[0],o=t[1],i;return o<r&&(i=o,o=r,r=i),i=o-r,i>=n-e?[e,n]:[r=Math.min(Math.max(r,e),n-i),r+i]}function kn(t){return typeof t=="function"}const Xv="descending";function Y0(t,e,n){n=n||{},e=W0(e)||[];const r=[],o=[],i={},s=n.comparator||Kv;return W0(t).forEach((a,c)=>{a!=null&&(r.push(e[c]===Xv?-1:1),o.push(a=kn(a)?a:sc(a,null,n)),(xu(a)||[]).forEach(l=>i[l]=1))}),o.length===0?null:Je(s(o,r),Object.keys(i))}const Q0=(t,e)=>(t<e||t==null)&&e!=null?-1:(t>e||e==null)&&t!=null?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),Kv=(t,e)=>t.length===1?Jv(t[0],e[0]):$v(t,e,t.length),Jv=(t,e)=>function(n,r){return Q0(t(n),t(r))*e},$v=(t,e,n)=>(e.push(0),function(r,o){let i,s=0,a=-1;for(;s===0&&++a<n;)i=t[a],s=Q0(i(r),i(o));return s*e[a]});function eA(t){for(let e,n,r=1,o=arguments.length;r<o;++r){e=arguments[r];for(n in e)t[n]=e[n]}return t}function Z0(t,e){return Object.hasOwn(t,e)}function us(t){return typeof t=="boolean"}function tA(t){return Object.prototype.toString.call(t)==="[object Date]"}function nA(t){return t&&kn(t[Symbol.iterator])}function Ht(t){return typeof t=="number"}function rA(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function rt(t){return typeof t=="string"}function X0(t,e){const n=t[0],r=jn(t),o=+e;return o?o===1?r:n+o*(r-n):n}function fs(t){return t&&jn(t)-t[0]||0}function Eu(t){return _t(t)?"["+t.map(Eu)+"]":Rt(t)||rt(t)?JSON.stringify(t).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):t}function iA(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}const oA=t=>Ht(t)||tA(t)?t:Date.parse(t);function sA(t,e){return e=e||oA,t==null||t===""?null:e(t)}function aA(t){return t==null||t===""?null:t+""}function cA(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const fc=globalThis,Su=fc.ShadowRoot&&(fc.ShadyCSS===void 0||fc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K0=Symbol(),J0=new WeakMap;let lA=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==K0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(Su&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=J0.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&J0.set(n,e))}return e}toString(){return this.cssText}};const uA=t=>new lA(typeof t=="string"?t:t+"",void 0,K0),fA=(t,e)=>{if(Su)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),o=fc.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=n.cssText,t.appendChild(r)}},$0=Su?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return uA(n)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:hA,defineProperty:dA,getOwnPropertyDescriptor:pA,getOwnPropertyNames:gA,getOwnPropertySymbols:mA,getPrototypeOf:bA}=Object,dr=globalThis,ep=dr.trustedTypes,yA=ep?ep.emptyScript:"",Cu=dr.reactiveElementPolyfillSupport,hs=(t,e)=>t,Iu={toAttribute(t,e){switch(e){case Boolean:t=t?yA:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},tp=(t,e)=>!hA(t,e),np={attribute:!0,type:String,converter:Iu,reflect:!1,useDefault:!1,hasChanged:tp};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),dr.litPropertyMetadata??(dr.litPropertyMetadata=new WeakMap);let qi=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=np){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,n);o!==void 0&&dA(this.prototype,e,o)}}static getPropertyDescriptor(e,n,r){const{get:o,set:i}=pA(this.prototype,e)??{get(){return this[n]},set(s){this[n]=s}};return{get:o,set(s){const a=o==null?void 0:o.call(this);i==null||i.call(this,s),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??np}static _$Ei(){if(this.hasOwnProperty(hs("elementProperties")))return;const e=bA(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(hs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hs("properties"))){const n=this.properties,r=[...gA(n),...mA(n)];for(const o of r)this.createProperty(o,n[o])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,o]of n)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const o=this._$Eu(n,r);o!==void 0&&this._$Eh.set(o,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)n.unshift($0(o))}else e!==void 0&&n.push($0(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fA(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$ET(e,n){var i;const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){const s=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:Iu).toAttribute(n,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,n){var i,s;const r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const a=r.getPropertyOptions(o),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)==null?void 0:i.fromAttribute)!==void 0?a.converter:Iu;this._$Em=o,this[o]=c.fromAttribute(n,a.type)??((s=this._$Ej)==null?void 0:s.get(o))??null,this._$Em=null}}requestUpdate(e,n,r){var o;if(e!==void 0){const i=this.constructor,s=this[e];if(r??(r=i.getPropertyOptions(e)),!((r.hasChanged??tp)(s,n)||r.useDefault&&r.reflect&&s===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:r,reflect:o,wrapped:i},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,s??n??this[e]),i!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(n=void 0),this._$AL.set(e,n)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!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[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[i,s]of o){const{wrapped:a}=s,c=this[i];a!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,s,c)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(n)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};qi.elementStyles=[],qi.shadowRootOptions={mode:"open"},qi[hs("elementProperties")]=new Map,qi[hs("finalized")]=new Map,Cu==null||Cu({ReactiveElement:qi}),(dr.reactiveElementVersions??(dr.reactiveElementVersions=[])).push("2.1.0");/**
|
|
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 ds=globalThis,hc=ds.trustedTypes,rp=hc?hc.createPolicy("lit-html",{createHTML:t=>t}):void 0,ip="$lit$",pr=`lit$${Math.random().toFixed(9).slice(2)}$`,op="?"+pr,wA=`<${op}>`,Zr=document,ps=()=>Zr.createComment(""),gs=t=>t===null||typeof t!="object"&&typeof t!="function",Tu=Array.isArray,xA=t=>Tu(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Du=`[
|
|
14
|
+
\f\r]`,ms=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sp=/-->/g,ap=/>/g,Xr=RegExp(`>|${Du}(?:([^\\s"'>=/]+)(${Du}*=${Du}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),cp=/'/g,lp=/"/g,up=/^(?:script|style|textarea|title)$/i,vA=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),ot=vA(1),Kr=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),fp=new WeakMap,Jr=Zr.createTreeWalker(Zr,129);function hp(t,e){if(!Tu(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return rp!==void 0?rp.createHTML(e):e}const AA=(t,e)=>{const n=t.length-1,r=[];let o,i=e===2?"<svg>":e===3?"<math>":"",s=ms;for(let a=0;a<n;a++){const c=t[a];let l,u,f=-1,h=0;for(;h<c.length&&(s.lastIndex=h,u=s.exec(c),u!==null);)h=s.lastIndex,s===ms?u[1]==="!--"?s=sp:u[1]!==void 0?s=ap:u[2]!==void 0?(up.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=Xr):u[3]!==void 0&&(s=Xr):s===Xr?u[0]===">"?(s=o??ms,f=-1):u[1]===void 0?f=-2:(f=s.lastIndex-u[2].length,l=u[1],s=u[3]===void 0?Xr:u[3]==='"'?lp:cp):s===lp||s===cp?s=Xr:s===sp||s===ap?s=ms:(s=Xr,o=void 0);const d=s===Xr&&t[a+1].startsWith("/>")?" ":"";i+=s===ms?c+wA:f>=0?(r.push(l),c.slice(0,f)+ip+c.slice(f)+pr+d):c+pr+(f===-2?a:d)}return[hp(t,i+(t[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class bs{constructor({strings:e,_$litType$:n},r){let o;this.parts=[];let i=0,s=0;const a=e.length-1,c=this.parts,[l,u]=AA(e,n);if(this.el=bs.createElement(l,r),Jr.currentNode=this.el.content,n===2||n===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=Jr.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(ip)){const h=u[s++],d=o.getAttribute(f).split(pr),p=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:p[2],strings:d,ctor:p[1]==="."?SA:p[1]==="?"?CA:p[1]==="@"?IA:dc}),o.removeAttribute(f)}else f.startsWith(pr)&&(c.push({type:6,index:i}),o.removeAttribute(f));if(up.test(o.tagName)){const f=o.textContent.split(pr),h=f.length-1;if(h>0){o.textContent=hc?hc.emptyScript:"";for(let d=0;d<h;d++)o.append(f[d],ps()),Jr.nextNode(),c.push({type:2,index:++i});o.append(f[h],ps())}}}else if(o.nodeType===8)if(o.data===op)c.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(pr,f+1))!==-1;)c.push({type:7,index:i}),f+=pr.length-1}i++}}static createElement(e,n){const r=Zr.createElement("template");return r.innerHTML=e,r}}function ji(t,e,n=t,r){var s,a;if(e===Kr)return e;let o=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const i=gs(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==i&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),i===void 0?o=void 0:(o=new i(t),o._$AT(t,n,r)),r!==void 0?(n._$Co??(n._$Co=[]))[r]=o:n._$Cl=o),o!==void 0&&(e=ji(t,o._$AS(t,e.values),o,r)),e}class EA{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,o=((e==null?void 0:e.creationScope)??Zr).importNode(n,!0);Jr.currentNode=o;let i=Jr.nextNode(),s=0,a=0,c=r[0];for(;c!==void 0;){if(s===c.index){let l;c.type===2?l=new ys(i,i.nextSibling,this,e):c.type===1?l=new c.ctor(i,c.name,c.strings,this,e):c.type===6&&(l=new TA(i,this,e)),this._$AV.push(l),c=r[++a]}s!==(c==null?void 0:c.index)&&(i=Jr.nextNode(),s++)}return Jr.currentNode=Zr,o}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class ys{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,n,r,o){this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=ji(this,e,n),gs(e)?e===pt||e==null||e===""?(this._$AH!==pt&&this._$AR(),this._$AH=pt):e!==this._$AH&&e!==Kr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xA(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==pt&&gs(this._$AH)?this._$AA.nextSibling.data=e:this.T(Zr.createTextNode(e)),this._$AH=e}$(e){var i;const{values:n,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=bs.createElement(hp(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)==null?void 0:i._$AD)===o)this._$AH.p(n);else{const s=new EA(o,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(e){let n=fp.get(e.strings);return n===void 0&&fp.set(e.strings,n=new bs(e)),n}k(e){Tu(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,o=0;for(const i of e)o===n.length?n.push(r=new ys(this.O(ps()),this.O(ps()),this,this.options)):r=n[o],r._$AI(i),o++;o<n.length&&(this._$AR(r&&r._$AB.nextSibling,o),n.length=o)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class dc{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,o,i){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=e,this.name=n,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=pt}_$AI(e,n=this,r,o){const i=this.strings;let s=!1;if(i===void 0)e=ji(this,e,n,0),s=!gs(e)||e!==this._$AH&&e!==Kr,s&&(this._$AH=e);else{const a=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=ji(this,a[r+c],n,c),l===Kr&&(l=this._$AH[c]),s||(s=!gs(l)||l!==this._$AH[c]),l===pt?e=pt:e!==pt&&(e+=(l??"")+i[c+1]),this._$AH[c]=l}s&&!o&&this.j(e)}j(e){e===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class SA extends dc{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===pt?void 0:e}}class CA extends dc{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==pt)}}class IA extends dc{constructor(e,n,r,o,i){super(e,n,r,o,i),this.type=5}_$AI(e,n=this){if((e=ji(this,e,n,0)??pt)===Kr)return;const r=this._$AH,o=e===pt&&r!==pt||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==pt&&(r===pt||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,e):this._$AH.handleEvent(e)}}let TA=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ji(this,e)}};const Bu=ds.litHtmlPolyfillSupport;Bu==null||Bu(bs,ys),(ds.litHtmlVersions??(ds.litHtmlVersions=[])).push("3.3.0");const ws=(t,e,n)=>{const r=(n==null?void 0:n.renderBefore)??e;let o=r._$litPart$;if(o===void 0){const i=(n==null?void 0:n.renderBefore)??null;r._$litPart$=o=new ys(e.insertBefore(ps(),i),i,void 0,n??{})}return o._$AI(t),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const $r=globalThis;let
|
|
20
|
-
\r]`),n=t.charCodeAt(0);function r(f,h){var d,p,
|
|
21
|
-
`)}function a(f,h){return h==null&&(h=
|
|
19
|
+
*/const $r=globalThis;let pc=class extends qi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const e=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ws(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Kr}};pc._$litElement$=!0,pc.finalized=!0,(dv=$r.litElementHydrateSupport)==null||dv.call($r,{LitElement:pc});const ku=$r.litElementPolyfillSupport;ku==null||ku({LitElement:pc}),($r.litElementVersions??($r.litElementVersions=[])).push("4.2.0");var dp={},_u={},Ru=34,xs=10,Fu=13;function pp(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function DA(t,e){var n=pp(t);return function(r,o){return e(n(r),o,t)}}function gp(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var o in r)o in e||n.push(e[o]=o)}),n}function Wt(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function BA(t){return t<0?"-"+Wt(-t,6):t>9999?"+"+Wt(t,6):Wt(t,4)}function kA(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":BA(t.getUTCFullYear())+"-"+Wt(t.getUTCMonth()+1,2)+"-"+Wt(t.getUTCDate(),2)+(o?"T"+Wt(e,2)+":"+Wt(n,2)+":"+Wt(r,2)+"."+Wt(o,3)+"Z":r?"T"+Wt(e,2)+":"+Wt(n,2)+":"+Wt(r,2)+"Z":n||e?"T"+Wt(e,2)+":"+Wt(n,2)+"Z":"")}function mp(t){var e=new RegExp('["'+t+`
|
|
20
|
+
\r]`),n=t.charCodeAt(0);function r(f,h){var d,p,y=o(f,function(v,b){if(d)return d(v,b-1);p=v,d=h?DA(v,h):pp(v)});return y.columns=p||[],y}function o(f,h){var d=[],p=f.length,y=0,v=0,b,A=p<=0,S=!1;f.charCodeAt(p-1)===xs&&--p,f.charCodeAt(p-1)===Fu&&--p;function E(){if(A)return _u;if(S)return S=!1,dp;var _,B=y,N;if(f.charCodeAt(B)===Ru){for(;y++<p&&f.charCodeAt(y)!==Ru||f.charCodeAt(++y)===Ru;);return(_=y)>=p?A=!0:(N=f.charCodeAt(y++))===xs?S=!0:N===Fu&&(S=!0,f.charCodeAt(y)===xs&&++y),f.slice(B+1,_-1).replace(/""/g,'"')}for(;y<p;){if((N=f.charCodeAt(_=y++))===xs)S=!0;else if(N===Fu)S=!0,f.charCodeAt(y)===xs&&++y;else if(N!==n)continue;return f.slice(B,_)}return A=!0,f.slice(B,p)}for(;(b=E())!==_u;){for(var I=[];b!==dp&&b!==_u;)I.push(b),b=E();h&&(I=h(I,v++))==null||d.push(I)}return d}function i(f,h){return f.map(function(d){return h.map(function(p){return u(d[p])}).join(t)})}function s(f,h){return h==null&&(h=gp(f)),[h.map(u).join(t)].concat(i(f,h)).join(`
|
|
21
|
+
`)}function a(f,h){return h==null&&(h=gp(f)),i(f,h).join(`
|
|
22
22
|
`)}function c(f){return f.map(l).join(`
|
|
23
|
-
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?BA(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:o,format:s,formatBody:a,formatRows:c,formatRow:l,formatValue:u}}var kA=gp(" "),_A=kA.parseRows;function RA(t){return t}function FA(t){if(t==null)return RA;var e,n,r=t.scale[0],o=t.scale[1],i=t.translate[0],s=t.translate[1];return function(a,c){c||(e=n=0);var l=2,u=a.length,f=new Array(u);for(f[0]=(e+=a[0])*r+i,f[1]=(n+=a[1])*o+s;l<u;)f[l]=a[l],++l;return f}}function MA(t,e){for(var n,r=t.length,o=r-e;o<--r;)n=t[o],t[o++]=t[r],t[r]=n}function PA(t,e){return typeof e=="string"&&(e=t.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(n){return mp(t,n)})}:mp(t,e)}function mp(t,e){var n=e.id,r=e.bbox,o=e.properties==null?{}:e.properties,i=yp(t,e);return n==null&&r==null?{type:"Feature",properties:o,geometry:i}:r==null?{type:"Feature",id:n,properties:o,geometry:i}:{type:"Feature",id:n,bbox:r,properties:o,geometry:i}}function yp(t,e){var n=FA(t.transform),r=t.arcs;function o(u,f){f.length&&f.pop();for(var h=r[u<0?~u:u],d=0,p=h.length;d<p;++d)f.push(n(h[d],d));u<0&&MA(f,p)}function i(u){return n(u)}function s(u){for(var f=[],h=0,d=u.length;h<d;++h)o(u[h],f);return f.length<2&&f.push(f[0]),f}function a(u){for(var f=s(u);f.length<4;)f.push(f[0]);return f}function c(u){return u.map(a)}function l(u){var f=u.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:u.geometries.map(l)};case"Point":h=i(u.coordinates);break;case"MultiPoint":h=u.coordinates.map(i);break;case"LineString":h=s(u.arcs);break;case"MultiLineString":h=u.arcs.map(s);break;case"Polygon":h=c(u.arcs);break;case"MultiPolygon":h=u.arcs.map(c);break;default:return null}return{type:f,coordinates:h}}return l(e)}function LA(t,e){var n={},r={},o={},i=[],s=-1;e.forEach(function(l,u){var f=t.arcs[l<0?~l:l],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=e[++s],e[s]=l,e[u]=h)}),e.forEach(function(l){var u=a(l),f=u[0],h=u[1],d,p;if(d=o[f])if(delete o[d.end],d.push(l),d.end=h,p=r[h]){delete r[p.start];var b=p===d?d:d.concat(p);r[b.start=d.start]=o[b.end=p.end]=b}else r[d.start]=o[d.end]=d;else if(d=r[h])if(delete r[d.start],d.unshift(l),d.start=f,p=o[f]){delete o[p.end];var v=p===d?d:p.concat(d);r[v.start=p.start]=o[v.end=d.end]=v}else r[d.start]=o[d.end]=d;else d=[l],r[d.start=f]=o[d.end=h]=d});function a(l){var u=t.arcs[l<0?~l:l],f=u[0],h;return t.transform?(h=[0,0],u.forEach(function(d){h[0]+=d[0],h[1]+=d[1]})):h=u[u.length-1],l<0?[h,f]:[f,h]}function c(l,u){for(var f in l){var h=l[f];delete u[h.start],delete h.start,delete h.end,h.forEach(function(d){n[d<0?~d:d]=1}),i.push(h)}}return c(o,r),c(r,o),e.forEach(function(l){n[l<0?~l:l]||i.push([l])}),i}function OA(t){return yp(t,NA.apply(this,arguments))}function NA(t,e,n){var r,o,i;if(arguments.length>1)r=zA(t,e,n);else for(o=0,r=new Array(i=t.arcs.length);o<i;++o)r[o]=o;return{type:"MultiLineString",arcs:LA(t,r)}}function zA(t,e,n){var r=[],o=[],i;function s(f){var h=f<0?~f:f;(o[h]||(o[h]=[])).push({i:f,g:i})}function a(f){f.forEach(s)}function c(f){f.forEach(a)}function l(f){f.forEach(c)}function u(f){switch(i=f,f.type){case"GeometryCollection":f.geometries.forEach(u);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":c(f.arcs);break;case"MultiPolygon":l(f.arcs);break}}return u(e),o.forEach(n==null?function(f){r.push(f[0].i)}:function(f){n(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}function ei(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function UA(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ji(t){let e,n,r;t.length!==2?(e=ei,n=(a,c)=>ei(t(a),c),r=(a,c)=>t(a)-c):(e=t===ei||t===UA?t:GA,n=t,r=t);function o(a,c,l=0,u=a.length){if(l<u){if(e(c,c)!==0)return u;do{const f=l+u>>>1;n(a[f],c)<0?l=f+1:u=f}while(l<u)}return l}function i(a,c,l=0,u=a.length){if(l<u){if(e(c,c)!==0)return u;do{const f=l+u>>>1;n(a[f],c)<=0?l=f+1:u=f}while(l<u)}return l}function s(a,c,l=0,u=a.length){const f=o(a,c,l,u-1);return f>l&&r(a[f-1],c)>-r(a[f],c)?f-1:f}return{left:o,center:s,right:i}}function GA(){return 0}function bp(t){return t===null?NaN:+t}function*HA(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const wp=ji(ei),gr=wp.right;wp.left,ji(bp).center;function VA(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&++n}return n}function qA(t,e){let n=0,r,o=0,i=0;if(e===void 0)for(let s of t)s!=null&&(s=+s)>=s&&(r=s-o,o+=r/++n,i+=r*(s-o));else{let s=-1;for(let a of t)(a=e(a,++s,t))!=null&&(a=+a)>=a&&(r=a-o,o+=r/++n,i+=r*(a-o))}if(n>1)return i/(n-1)}function jA(t,e){let n,r;for(const o of t)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));return[n,r]}class Wn extends Map{constructor(e,n=QA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,o]of e)this.set(r,o)}get(e){return super.get(xp(this,e))}has(e){return super.has(xp(this,e))}set(e,n){return super.set(WA(this,e),n)}delete(e){return super.delete(YA(this,e))}}function xp({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function WA({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function YA({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function QA(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Fu(t){return t}function pc(t,...e){return vp(t,Fu,Fu,e)}function ZA(t,...e){return vp(t,Array.from,Fu,e)}function vp(t,e,n,r){return function o(i,s){if(s>=r.length)return n(i);const a=new Wn,c=r[s++];let l=-1;for(const u of i){const f=c(u,++l,i),h=a.get(f);h?h.push(u):a.set(f,[u])}for(const[u,f]of a)a.set(u,o(f,s));return e(a)}(t,0)}function XA(t=ei){if(t===ei)return Ap;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function Ap(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const KA=Math.sqrt(50),JA=Math.sqrt(10),$A=Math.sqrt(2);function gc(t,e,n){const r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=KA?10:i>=JA?5:i>=$A?2:1;let a,c,l;return o<0?(l=Math.pow(10,-o)/s,a=Math.round(t*l),c=Math.round(e*l),a/l<t&&++a,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*s,a=Math.round(t/l),c=Math.round(e/l),a*l<t&&++a,c*l>e&&--c),c<a&&.5<=n&&n<2?gc(t,e,n*2):[a,c,l]}function mc(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[o,i,s]=r?gc(e,t,n):gc(t,e,n);if(!(i>=o))return[];const a=i-o+1,c=new Array(a);if(r)if(s<0)for(let l=0;l<a;++l)c[l]=(i-l)/-s;else for(let l=0;l<a;++l)c[l]=(i-l)*s;else if(s<0)for(let l=0;l<a;++l)c[l]=(o+l)/-s;else for(let l=0;l<a;++l)c[l]=(o+l)*s;return c}function Mu(t,e,n){return e=+e,t=+t,n=+n,gc(t,e,n)[2]}function ti(t,e,n){e=+e,t=+t,n=+n;const r=e<t,o=r?Mu(e,t,n):Mu(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function Pu(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function Lu(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Ep(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=o===void 0?Ap:XA(o);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),d=Math.max(n,Math.floor(e-l*f/c+h)),p=Math.min(r,Math.floor(e+(c-l)*f/c+h));Ep(t,e,d,p,o)}const i=t[e];let s=n,a=r;for(xs(t,n,e),o(t[r],i)>0&&xs(t,n,r);s<a;){for(xs(t,s,a),++s,--a;o(t[s],i)<0;)++s;for(;o(t[a],i)>0;)--a}o(t[n],i)===0?xs(t,n,a):(++a,xs(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function xs(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function e3(t,e,n){if(t=Float64Array.from(HA(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Lu(t);if(e>=1)return Pu(t);var r,o=(r-1)*e,i=Math.floor(o),s=Pu(Ep(t,i).subarray(0,i+1)),a=Lu(t.subarray(i+1));return s+(a-s)*(o-i)}}function Sp(t,e,n=bp){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),s=+n(t[i],i,t),a=+n(t[i+1],i+1,t);return s+(a-s)*(o-i)}}function t3(t,e){let n=0,r=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function n3(t,e){return e3(t,.5,e)}function vs(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,i=new Array(o);++r<o;)i[r]=t+r*n;return i}function As(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&(n+=o)}return n}function r3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yc(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Wi(t){return t=yc(Math.abs(t)),t?t[1]:NaN}function i3(t,e){return function(n,r){for(var o=n.length,i=[],s=0,a=t[0],c=0;o>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),i.push(n.substring(o-=a,o+a)),!((c+=a+1)>r));)a=t[s=(s+1)%t.length];return i.reverse().join(e)}}function o3(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var s3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yi(t){if(!(e=s3.exec(t)))throw new Error("invalid format: "+t);var e;return new Ou({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]})}Yi.prototype=Ou.prototype;function Ou(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Ou.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 a3(t){e:for(var e=t.length,n=1,r=-1,o;n<e;++n)switch(t[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(o+1):t}var Cp;function c3(t,e){var n=yc(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Cp=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+yc(t,Math.max(0,e+i-1))[0]}function Ip(t,e){var n=yc(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Tp={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:r3,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ip(t*100,e),r:Ip,s:c3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Dp(t){return t}var Bp=Array.prototype.map,kp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l3(t){var e=t.grouping===void 0||t.thousands===void 0?Dp:i3(Bp.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Dp:o3(Bp.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=Yi(f);var h=f.fill,d=f.align,p=f.sign,b=f.symbol,v=f.zero,y=f.width,A=f.comma,S=f.precision,E=f.trim,I=f.type;I==="n"?(A=!0,I="g"):Tp[I]||(S===void 0&&(S=12),E=!0,I="g"),(v||h==="0"&&d==="=")&&(v=!0,h="0",d="=");var _=b==="$"?n:b==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",B=b==="$"?r:/[%p]/.test(I)?s:"",N=Tp[I],F=/[defgprs%]/.test(I);S=S===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(C){var Y=_,Q=B,se,oe,ae;if(I==="c")Q=N(C)+Q,C="";else{C=+C;var ce=C<0||1/C<0;if(C=isNaN(C)?c:N(Math.abs(C),S),E&&(C=a3(C)),ce&&+C==0&&p!=="+"&&(ce=!1),Y=(ce?p==="("?p:a:p==="-"||p==="("?"":p)+Y,Q=(I==="s"?kp[8+Cp/3]:"")+Q+(ce&&p==="("?")":""),F){for(se=-1,oe=C.length;++se<oe;)if(ae=C.charCodeAt(se),48>ae||ae>57){Q=(ae===46?o+C.slice(se+1):C.slice(se))+Q,C=C.slice(0,se);break}}}A&&!v&&(C=e(C,1/0));var be=Y.length+C.length+Q.length,he=be<y?new Array(y-be+1).join(h):"";switch(A&&v&&(C=e(he+C,he.length?y-Q.length:1/0),he=""),d){case"<":C=Y+C+Q+he;break;case"=":C=Y+he+C+Q;break;case"^":C=he.slice(0,be=he.length>>1)+Y+C+Q+he.slice(be);break;default:C=he+Y+C+Q;break}return i(C)}return M.toString=function(){return f+""},M}function u(f,h){var d=l((f=Yi(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Wi(h)/3)))*3,b=Math.pow(10,-p),v=kp[8+p/3];return function(y){return d(b*y)+v}}return{format:l,formatPrefix:u}}var bc,Dt,_p;u3({thousands:",",grouping:[3],currency:["$",""]});function u3(t){return bc=l3(t),Dt=bc.format,_p=bc.formatPrefix,bc}function f3(t){return Math.max(0,-Wi(Math.abs(t)))}function h3(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wi(e)/3)))*3-Wi(Math.abs(t)))}function d3(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wi(e)-Wi(t))+1}const Nu=new Date,zu=new Date;function mt(t,e,n,r){function o(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(t(i=new Date(+i)),i),o.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),o.round=i=>{const s=o(i),a=o.ceil(i);return i-s<a-i?s:a},o.offset=(i,s)=>(e(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,a)=>{const c=[];if(i=o.ceil(i),a=a==null?1:Math.floor(a),!(i<s)||!(a>0))return c;let l;do c.push(l=new Date(+i)),e(i,a),t(i);while(l<i&&i<s);return c},o.filter=i=>mt(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!i(s););else for(;--a>=0;)for(;e(s,1),!i(s););}),n&&(o.count=(i,s)=>(Nu.setTime(+i),zu.setTime(+s),t(Nu),t(zu),Math.floor(n(Nu,zu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?s=>r(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const Qi=mt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Qi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?mt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Qi),Qi.range;const Yn=1e3,on=Yn*60,Qn=on*60,Zn=Qn*24,Uu=Zn*7,Rp=Zn*30,Gu=Zn*365,Xn=mt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Yn)},(t,e)=>(e-t)/Yn,t=>t.getUTCSeconds());Xn.range;const wc=mt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yn)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getMinutes());wc.range;const xc=mt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getUTCMinutes());xc.range;const vc=mt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yn-t.getMinutes()*on)},(t,e)=>{t.setTime(+t+e*Qn)},(t,e)=>(e-t)/Qn,t=>t.getHours());vc.range;const Ac=mt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Qn)},(t,e)=>(e-t)/Qn,t=>t.getUTCHours());Ac.range;const mr=mt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*on)/Zn,t=>t.getDate()-1);mr.range;const ni=mt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Zn,t=>t.getUTCDate()-1);ni.range;const Fp=mt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Zn,t=>Math.floor(t/Zn));Fp.range;function ri(t){return mt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*on)/Uu)}const Es=ri(0),Ec=ri(1),p3=ri(2),g3=ri(3),Zi=ri(4),m3=ri(5),y3=ri(6);Es.range,Ec.range,p3.range,g3.range,Zi.range,m3.range,y3.range;function ii(t){return mt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Uu)}const Ss=ii(0),Sc=ii(1),b3=ii(2),w3=ii(3),Xi=ii(4),x3=ii(5),v3=ii(6);Ss.range,Sc.range,b3.range,w3.range,Xi.range,x3.range,v3.range;const Ki=mt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ki.range;const Ji=mt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Ji.range;const _n=mt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());_n.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:mt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),_n.range;const Rn=mt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Rn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:mt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Rn.range;function Mp(t,e,n,r,o,i){const s=[[Xn,1,Yn],[Xn,5,5*Yn],[Xn,15,15*Yn],[Xn,30,30*Yn],[i,1,on],[i,5,5*on],[i,15,15*on],[i,30,30*on],[o,1,Qn],[o,3,3*Qn],[o,6,6*Qn],[o,12,12*Qn],[r,1,Zn],[r,2,2*Zn],[n,1,Uu],[e,1,Rp],[e,3,3*Rp],[t,1,Gu]];function a(l,u,f){const h=u<l;h&&([l,u]=[u,l]);const d=f&&typeof f.range=="function"?f:c(l,u,f),p=d?d.range(l,+u+1):[];return h?p.reverse():p}function c(l,u,f){const h=Math.abs(u-l)/f,d=ji(([,,v])=>v).right(s,h);if(d===s.length)return t.every(ti(l/Gu,u/Gu,f));if(d===0)return Qi.every(Math.max(ti(l,u,f),1));const[p,b]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return p.every(b)}return[a,c]}const[A3,E3]=Mp(Rn,Ji,Ss,Fp,Ac,xc),[S3,C3]=Mp(_n,Ki,Es,mr,vc,wc),Cs="year",Is="quarter",Ts="month",Ds="week",Bs="date",Cc="day",Hu="dayofyear",ks="hours",_s="minutes",Rs="seconds",Ic="milliseconds";[Cs,Is,Ts,Ds,Bs,Cc,Hu,ks,_s,Rs,Ic].reduce((t,e,n)=>(t[e]=1+n,t),{});const I3={[Cs]:_n,[Is]:Ki.every(3),[Ts]:Ki,[Ds]:Es,[Bs]:mr,[Cc]:mr,[Hu]:mr,[ks]:vc,[_s]:wc,[Rs]:Xn,[Ic]:Qi},T3={[Cs]:Rn,[Is]:Ji.every(3),[Ts]:Ji,[Ds]:Ss,[Bs]:ni,[Cc]:ni,[Hu]:ni,[ks]:Ac,[_s]:xc,[Rs]:Xn,[Ic]:Qi};function D3(t){return I3[t]}function B3(t){return T3[t]}function Vu(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function qu(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Fs(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Pp(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,l=Ms(o),u=Ps(o),f=Ms(i),h=Ps(i),d=Ms(s),p=Ps(s),b=Ms(a),v=Ps(a),y=Ms(c),A=Ps(c),S={a:ce,A:be,b:he,B:De,c:null,d:Gp,e:Gp,f:J3,g:cE,G:uE,H:Z3,I:X3,j:K3,L:Hp,m:$3,M:eE,p:we,q:Ee,Q:Qp,s:Zp,S:tE,u:nE,U:rE,V:iE,w:oE,W:sE,x:null,X:null,y:aE,Y:lE,Z:fE,"%":Yp},E={a:Te,A:Ge,b:Ve,B:q,c:null,d:qp,e:qp,f:gE,g:CE,G:TE,H:hE,I:dE,j:pE,L:jp,m:mE,M:yE,p:j,q:ee,Q:Qp,s:Zp,S:bE,u:wE,U:xE,V:vE,w:AE,W:EE,x:null,X:null,y:SE,Y:IE,Z:DE,"%":Yp},I={a:M,A:C,b:Y,B:Q,c:se,d:zp,e:zp,f:j3,g:Np,G:Op,H:Up,I:Up,j:G3,L:q3,m:U3,M:H3,p:F,q:z3,Q:Y3,s:Q3,S:V3,u:M3,U:P3,V:L3,w:F3,W:O3,x:oe,X:ae,y:Np,Y:Op,Z:N3,"%":W3};S.x=_(n,S),S.X=_(r,S),S.c=_(e,S),E.x=_(n,E),E.X=_(r,E),E.c=_(e,E);function _(J,fe){return function(L){var D=[],te=-1,le=0,Be=J.length,ve,Ae,Re;for(L instanceof Date||(L=new Date(+L));++te<Be;)J.charCodeAt(te)===37&&(D.push(J.slice(le,te)),(Ae=Lp[ve=J.charAt(++te)])!=null?ve=J.charAt(++te):Ae=ve==="e"?" ":"0",(Re=fe[ve])&&(ve=Re(L,Ae)),D.push(ve),le=te+1);return D.push(J.slice(le,te)),D.join("")}}function B(J,fe){return function(L){var D=Fs(1900,void 0,1),te=N(D,J,L+="",0),le,Be;if(te!=L.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(fe&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(le=qu(Fs(D.y,0,1)),Be=le.getUTCDay(),le=Be>4||Be===0?Sc.ceil(le):Sc(le),le=ni.offset(le,(D.V-1)*7),D.y=le.getUTCFullYear(),D.m=le.getUTCMonth(),D.d=le.getUTCDate()+(D.w+6)%7):(le=Vu(Fs(D.y,0,1)),Be=le.getDay(),le=Be>4||Be===0?Ec.ceil(le):Ec(le),le=mr.offset(le,(D.V-1)*7),D.y=le.getFullYear(),D.m=le.getMonth(),D.d=le.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),Be="Z"in D?qu(Fs(D.y,0,1)).getUTCDay():Vu(Fs(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(Be+5)%7:D.w+D.U*7-(Be+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,qu(D)):Vu(D)}}function N(J,fe,L,D){for(var te=0,le=fe.length,Be=L.length,ve,Ae;te<le;){if(D>=Be)return-1;if(ve=fe.charCodeAt(te++),ve===37){if(ve=fe.charAt(te++),Ae=I[ve in Lp?fe.charAt(te++):ve],!Ae||(D=Ae(J,L,D))<0)return-1}else if(ve!=L.charCodeAt(D++))return-1}return D}function F(J,fe,L){var D=l.exec(fe.slice(L));return D?(J.p=u.get(D[0].toLowerCase()),L+D[0].length):-1}function M(J,fe,L){var D=d.exec(fe.slice(L));return D?(J.w=p.get(D[0].toLowerCase()),L+D[0].length):-1}function C(J,fe,L){var D=f.exec(fe.slice(L));return D?(J.w=h.get(D[0].toLowerCase()),L+D[0].length):-1}function Y(J,fe,L){var D=y.exec(fe.slice(L));return D?(J.m=A.get(D[0].toLowerCase()),L+D[0].length):-1}function Q(J,fe,L){var D=b.exec(fe.slice(L));return D?(J.m=v.get(D[0].toLowerCase()),L+D[0].length):-1}function se(J,fe,L){return N(J,e,fe,L)}function oe(J,fe,L){return N(J,n,fe,L)}function ae(J,fe,L){return N(J,r,fe,L)}function ce(J){return s[J.getDay()]}function be(J){return i[J.getDay()]}function he(J){return c[J.getMonth()]}function De(J){return a[J.getMonth()]}function we(J){return o[+(J.getHours()>=12)]}function Ee(J){return 1+~~(J.getMonth()/3)}function Te(J){return s[J.getUTCDay()]}function Ge(J){return i[J.getUTCDay()]}function Ve(J){return c[J.getUTCMonth()]}function q(J){return a[J.getUTCMonth()]}function j(J){return o[+(J.getUTCHours()>=12)]}function ee(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var fe=_(J+="",S);return fe.toString=function(){return J},fe},parse:function(J){var fe=B(J+="",!1);return fe.toString=function(){return J},fe},utcFormat:function(J){var fe=_(J+="",E);return fe.toString=function(){return J},fe},utcParse:function(J){var fe=B(J+="",!0);return fe.toString=function(){return J},fe}}}var Lp={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,k3=/^%/,_3=/[\\^$*+?|[\]().{}]/g;function je(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function R3(t){return t.replace(_3,"\\$&")}function Ms(t){return new RegExp("^(?:"+t.map(R3).join("|")+")","i")}function Ps(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function F3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function M3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function P3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function L3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function O3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Op(t,e,n){var r=xt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Np(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function N3(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function z3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function U3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function zp(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function G3(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Up(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function H3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function V3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function q3(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function j3(t,e,n){var r=xt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function W3(t,e,n){var r=k3.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Y3(t,e,n){var r=xt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Q3(t,e,n){var r=xt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Gp(t,e){return je(t.getDate(),e,2)}function Z3(t,e){return je(t.getHours(),e,2)}function X3(t,e){return je(t.getHours()%12||12,e,2)}function K3(t,e){return je(1+mr.count(_n(t),t),e,3)}function Hp(t,e){return je(t.getMilliseconds(),e,3)}function J3(t,e){return Hp(t,e)+"000"}function $3(t,e){return je(t.getMonth()+1,e,2)}function eE(t,e){return je(t.getMinutes(),e,2)}function tE(t,e){return je(t.getSeconds(),e,2)}function nE(t){var e=t.getDay();return e===0?7:e}function rE(t,e){return je(Es.count(_n(t)-1,t),e,2)}function Vp(t){var e=t.getDay();return e>=4||e===0?Zi(t):Zi.ceil(t)}function iE(t,e){return t=Vp(t),je(Zi.count(_n(t),t)+(_n(t).getDay()===4),e,2)}function oE(t){return t.getDay()}function sE(t,e){return je(Ec.count(_n(t)-1,t),e,2)}function aE(t,e){return je(t.getFullYear()%100,e,2)}function cE(t,e){return t=Vp(t),je(t.getFullYear()%100,e,2)}function lE(t,e){return je(t.getFullYear()%1e4,e,4)}function uE(t,e){var n=t.getDay();return t=n>=4||n===0?Zi(t):Zi.ceil(t),je(t.getFullYear()%1e4,e,4)}function fE(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+je(e/60|0,"0",2)+je(e%60,"0",2)}function qp(t,e){return je(t.getUTCDate(),e,2)}function hE(t,e){return je(t.getUTCHours(),e,2)}function dE(t,e){return je(t.getUTCHours()%12||12,e,2)}function pE(t,e){return je(1+ni.count(Rn(t),t),e,3)}function jp(t,e){return je(t.getUTCMilliseconds(),e,3)}function gE(t,e){return jp(t,e)+"000"}function mE(t,e){return je(t.getUTCMonth()+1,e,2)}function yE(t,e){return je(t.getUTCMinutes(),e,2)}function bE(t,e){return je(t.getUTCSeconds(),e,2)}function wE(t){var e=t.getUTCDay();return e===0?7:e}function xE(t,e){return je(Ss.count(Rn(t)-1,t),e,2)}function Wp(t){var e=t.getUTCDay();return e>=4||e===0?Xi(t):Xi.ceil(t)}function vE(t,e){return t=Wp(t),je(Xi.count(Rn(t),t)+(Rn(t).getUTCDay()===4),e,2)}function AE(t){return t.getUTCDay()}function EE(t,e){return je(Sc.count(Rn(t)-1,t),e,2)}function SE(t,e){return je(t.getUTCFullYear()%100,e,2)}function CE(t,e){return t=Wp(t),je(t.getUTCFullYear()%100,e,2)}function IE(t,e){return je(t.getUTCFullYear()%1e4,e,4)}function TE(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Xi(t):Xi.ceil(t),je(t.getUTCFullYear()%1e4,e,4)}function DE(){return"+0000"}function Yp(){return"%"}function Qp(t){return+t}function Zp(t){return Math.floor(+t/1e3)}var $i,ju,Xp,Wu,Kp;BE({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 BE(t){return $i=Pp(t),ju=$i.format,Xp=$i.parse,Wu=$i.utcFormat,Kp=$i.utcParse,$i}function Tc(t){const e={};return n=>e[n]||(e[n]=t(n))}function Jp(t,e,n){n=n||{},Rt(n)||yn(`Invalid time multi-format specifier: ${n}`);const r=e(Rs),o=e(_s),i=e(ks),s=e(Bs),a=e(Ds),c=e(Ts),l=e(Is),u=e(Cs),f=t(n[Ic]||".%L"),h=t(n[Rs]||":%S"),d=t(n[_s]||"%I:%M"),p=t(n[ks]||"%I %p"),b=t(n[Bs]||n[Cc]||"%a %d"),v=t(n[Ds]||"%b %d"),y=t(n[Ts]||"%B"),A=t(n[Is]||"%B"),S=t(n[Cs]||"%Y");return E=>(r(E)<E?f:o(E)<E?h:i(E)<E?d:s(E)<E?p:c(E)<E?a(E)<E?b:v:u(E)<E?l(E)<E?y:A:S)(E)}function $p(t){const e=Tc(t.format),n=Tc(t.utcFormat);return{timeFormat:r=>rt(r)?e(r):Jp(e,D3,r),utcFormat:r=>rt(r)?n(r):Jp(n,B3,r),timeParse:Tc(t.parse),utcParse:Tc(t.utcParse)}}let Yu;kE();function kE(){return Yu=$p({format:ju,parse:Xp,utcFormat:Wu,utcParse:Kp})}function _E(t){return $p(Pp(t))}function RE(t){return arguments.length?Yu=_E(t):Yu}const FE=t=>t!=null&&t===t,ME=t=>t==="true"||t==="false"||t===!0||t===!1,PE=t=>!Number.isNaN(Date.parse(t)),eg=t=>!Number.isNaN(+t)&&!(t instanceof Date),LE=t=>eg(t)&&Number.isInteger(+t),tg={boolean:rA,integer:ac,number:ac,date:oA,string:sA,unknown:sc},Dc=[ME,LE,eg,PE],OE=["boolean","integer","number","date"];function NE(t,e){if(!t||!t.length)return"unknown";const n=t.length,r=Dc.length,o=Dc.map((i,s)=>s+1);for(let i=0,s=0,a,c;i<n;++i)for(c=e?t[i][e]:t[i],a=0;a<r;++a)if(o[a]&&FE(c)&&!Dc[a](c)&&(o[a]=0,++s,s===Dc.length))return"string";return OE[o.reduce((i,s)=>i===0?s:i,0)-1]}function zE(t,e){return e.reduce((n,r)=>(n[r]=NE(t,r),n),{})}function ng(t){const e=function(n,r){const o={delimiter:t};return Qu(n,r?$v(r,o):o)};return e.responseType="text",e}function Qu(t,e){return e.header&&(t=e.header.map(Au).join(e.delimiter)+`
|
|
24
|
-
`+t),
|
|
23
|
+
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?kA(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:o,format:s,formatBody:a,formatRows:c,formatRow:l,formatValue:u}}var _A=mp(" "),RA=_A.parseRows;function FA(t){return t}function MA(t){if(t==null)return FA;var e,n,r=t.scale[0],o=t.scale[1],i=t.translate[0],s=t.translate[1];return function(a,c){c||(e=n=0);var l=2,u=a.length,f=new Array(u);for(f[0]=(e+=a[0])*r+i,f[1]=(n+=a[1])*o+s;l<u;)f[l]=a[l],++l;return f}}function PA(t,e){for(var n,r=t.length,o=r-e;o<--r;)n=t[o],t[o++]=t[r],t[r]=n}function LA(t,e){return typeof e=="string"&&(e=t.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(n){return bp(t,n)})}:bp(t,e)}function bp(t,e){var n=e.id,r=e.bbox,o=e.properties==null?{}:e.properties,i=yp(t,e);return n==null&&r==null?{type:"Feature",properties:o,geometry:i}:r==null?{type:"Feature",id:n,properties:o,geometry:i}:{type:"Feature",id:n,bbox:r,properties:o,geometry:i}}function yp(t,e){var n=MA(t.transform),r=t.arcs;function o(u,f){f.length&&f.pop();for(var h=r[u<0?~u:u],d=0,p=h.length;d<p;++d)f.push(n(h[d],d));u<0&&PA(f,p)}function i(u){return n(u)}function s(u){for(var f=[],h=0,d=u.length;h<d;++h)o(u[h],f);return f.length<2&&f.push(f[0]),f}function a(u){for(var f=s(u);f.length<4;)f.push(f[0]);return f}function c(u){return u.map(a)}function l(u){var f=u.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:u.geometries.map(l)};case"Point":h=i(u.coordinates);break;case"MultiPoint":h=u.coordinates.map(i);break;case"LineString":h=s(u.arcs);break;case"MultiLineString":h=u.arcs.map(s);break;case"Polygon":h=c(u.arcs);break;case"MultiPolygon":h=u.arcs.map(c);break;default:return null}return{type:f,coordinates:h}}return l(e)}function OA(t,e){var n={},r={},o={},i=[],s=-1;e.forEach(function(l,u){var f=t.arcs[l<0?~l:l],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=e[++s],e[s]=l,e[u]=h)}),e.forEach(function(l){var u=a(l),f=u[0],h=u[1],d,p;if(d=o[f])if(delete o[d.end],d.push(l),d.end=h,p=r[h]){delete r[p.start];var y=p===d?d:d.concat(p);r[y.start=d.start]=o[y.end=p.end]=y}else r[d.start]=o[d.end]=d;else if(d=r[h])if(delete r[d.start],d.unshift(l),d.start=f,p=o[f]){delete o[p.end];var v=p===d?d:p.concat(d);r[v.start=p.start]=o[v.end=d.end]=v}else r[d.start]=o[d.end]=d;else d=[l],r[d.start=f]=o[d.end=h]=d});function a(l){var u=t.arcs[l<0?~l:l],f=u[0],h;return t.transform?(h=[0,0],u.forEach(function(d){h[0]+=d[0],h[1]+=d[1]})):h=u[u.length-1],l<0?[h,f]:[f,h]}function c(l,u){for(var f in l){var h=l[f];delete u[h.start],delete h.start,delete h.end,h.forEach(function(d){n[d<0?~d:d]=1}),i.push(h)}}return c(o,r),c(r,o),e.forEach(function(l){n[l<0?~l:l]||i.push([l])}),i}function NA(t){return yp(t,zA.apply(this,arguments))}function zA(t,e,n){var r,o,i;if(arguments.length>1)r=UA(t,e,n);else for(o=0,r=new Array(i=t.arcs.length);o<i;++o)r[o]=o;return{type:"MultiLineString",arcs:OA(t,r)}}function UA(t,e,n){var r=[],o=[],i;function s(f){var h=f<0?~f:f;(o[h]||(o[h]=[])).push({i:f,g:i})}function a(f){f.forEach(s)}function c(f){f.forEach(a)}function l(f){f.forEach(c)}function u(f){switch(i=f,f.type){case"GeometryCollection":f.geometries.forEach(u);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":c(f.arcs);break;case"MultiPolygon":l(f.arcs);break}}return u(e),o.forEach(n==null?function(f){r.push(f[0].i)}:function(f){n(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}function ei(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function GA(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ti(t){let e,n,r;t.length!==2?(e=ei,n=(a,c)=>ei(t(a),c),r=(a,c)=>t(a)-c):(e=t===ei||t===GA?t:HA,n=t,r=t);function o(a,c,l=0,u=a.length){if(l<u){if(e(c,c)!==0)return u;do{const f=l+u>>>1;n(a[f],c)<0?l=f+1:u=f}while(l<u)}return l}function i(a,c,l=0,u=a.length){if(l<u){if(e(c,c)!==0)return u;do{const f=l+u>>>1;n(a[f],c)<=0?l=f+1:u=f}while(l<u)}return l}function s(a,c,l=0,u=a.length){const f=o(a,c,l,u-1);return f>l&&r(a[f-1],c)>-r(a[f],c)?f-1:f}return{left:o,center:s,right:i}}function HA(){return 0}function wp(t){return t===null?NaN:+t}function*VA(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const xp=ti(ei),gr=xp.right;xp.left,ti(wp).center;function qA(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&++n}return n}function jA(t,e){let n=0,r,o=0,i=0;if(e===void 0)for(let s of t)s!=null&&(s=+s)>=s&&(r=s-o,o+=r/++n,i+=r*(s-o));else{let s=-1;for(let a of t)(a=e(a,++s,t))!=null&&(a=+a)>=a&&(r=a-o,o+=r/++n,i+=r*(a-o))}if(n>1)return i/(n-1)}function WA(t,e){let n,r;for(const o of t)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));return[n,r]}class Wn extends Map{constructor(e,n=ZA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,o]of e)this.set(r,o)}get(e){return super.get(vp(this,e))}has(e){return super.has(vp(this,e))}set(e,n){return super.set(YA(this,e),n)}delete(e){return super.delete(QA(this,e))}}function vp({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function YA({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function QA({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function ZA(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Mu(t){return t}function gc(t,...e){return Ap(t,Mu,Mu,e)}function XA(t,...e){return Ap(t,Array.from,Mu,e)}function Ap(t,e,n,r){return function o(i,s){if(s>=r.length)return n(i);const a=new Wn,c=r[s++];let l=-1;for(const u of i){const f=c(u,++l,i),h=a.get(f);h?h.push(u):a.set(f,[u])}for(const[u,f]of a)a.set(u,o(f,s));return e(a)}(t,0)}function KA(t=ei){if(t===ei)return Ep;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function Ep(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const JA=Math.sqrt(50),$A=Math.sqrt(10),e3=Math.sqrt(2);function mc(t,e,n){const r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=JA?10:i>=$A?5:i>=e3?2:1;let a,c,l;return o<0?(l=Math.pow(10,-o)/s,a=Math.round(t*l),c=Math.round(e*l),a/l<t&&++a,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*s,a=Math.round(t/l),c=Math.round(e/l),a*l<t&&++a,c*l>e&&--c),c<a&&.5<=n&&n<2?mc(t,e,n*2):[a,c,l]}function bc(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[o,i,s]=r?mc(e,t,n):mc(t,e,n);if(!(i>=o))return[];const a=i-o+1,c=new Array(a);if(r)if(s<0)for(let l=0;l<a;++l)c[l]=(i-l)/-s;else for(let l=0;l<a;++l)c[l]=(i-l)*s;else if(s<0)for(let l=0;l<a;++l)c[l]=(o+l)/-s;else for(let l=0;l<a;++l)c[l]=(o+l)*s;return c}function Pu(t,e,n){return e=+e,t=+t,n=+n,mc(t,e,n)[2]}function ni(t,e,n){e=+e,t=+t,n=+n;const r=e<t,o=r?Pu(e,t,n):Pu(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function Lu(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function Ou(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Sp(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=o===void 0?Ep:KA(o);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),d=Math.max(n,Math.floor(e-l*f/c+h)),p=Math.min(r,Math.floor(e+(c-l)*f/c+h));Sp(t,e,d,p,o)}const i=t[e];let s=n,a=r;for(vs(t,n,e),o(t[r],i)>0&&vs(t,n,r);s<a;){for(vs(t,s,a),++s,--a;o(t[s],i)<0;)++s;for(;o(t[a],i)>0;)--a}o(t[n],i)===0?vs(t,n,a):(++a,vs(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function vs(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function t3(t,e,n){if(t=Float64Array.from(VA(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Ou(t);if(e>=1)return Lu(t);var r,o=(r-1)*e,i=Math.floor(o),s=Lu(Sp(t,i).subarray(0,i+1)),a=Ou(t.subarray(i+1));return s+(a-s)*(o-i)}}function Cp(t,e,n=wp){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),s=+n(t[i],i,t),a=+n(t[i+1],i+1,t);return s+(a-s)*(o-i)}}function n3(t,e){let n=0,r=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function r3(t,e){return t3(t,.5,e)}function As(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,i=new Array(o);++r<o;)i[r]=t+r*n;return i}function Es(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&(n+=o)}return n}function i3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yc(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Wi(t){return t=yc(Math.abs(t)),t?t[1]:NaN}function o3(t,e){return function(n,r){for(var o=n.length,i=[],s=0,a=t[0],c=0;o>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),i.push(n.substring(o-=a,o+a)),!((c+=a+1)>r));)a=t[s=(s+1)%t.length];return i.reverse().join(e)}}function s3(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var a3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yi(t){if(!(e=a3.exec(t)))throw new Error("invalid format: "+t);var e;return new Nu({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]})}Yi.prototype=Nu.prototype;function Nu(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Nu.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 c3(t){e:for(var e=t.length,n=1,r=-1,o;n<e;++n)switch(t[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(o+1):t}var Ip;function l3(t,e){var n=yc(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Ip=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+yc(t,Math.max(0,e+i-1))[0]}function Tp(t,e){var n=yc(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Dp={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:i3,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tp(t*100,e),r:Tp,s:l3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bp(t){return t}var kp=Array.prototype.map,_p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function u3(t){var e=t.grouping===void 0||t.thousands===void 0?Bp:o3(kp.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Bp:s3(kp.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=Yi(f);var h=f.fill,d=f.align,p=f.sign,y=f.symbol,v=f.zero,b=f.width,A=f.comma,S=f.precision,E=f.trim,I=f.type;I==="n"?(A=!0,I="g"):Dp[I]||(S===void 0&&(S=12),E=!0,I="g"),(v||h==="0"&&d==="=")&&(v=!0,h="0",d="=");var _=y==="$"?n:y==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",B=y==="$"?r:/[%p]/.test(I)?s:"",N=Dp[I],F=/[defgprs%]/.test(I);S=S===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(C){var Y=_,Q=B,se,oe,ae;if(I==="c")Q=N(C)+Q,C="";else{C=+C;var ce=C<0||1/C<0;if(C=isNaN(C)?c:N(Math.abs(C),S),E&&(C=c3(C)),ce&&+C==0&&p!=="+"&&(ce=!1),Y=(ce?p==="("?p:a:p==="-"||p==="("?"":p)+Y,Q=(I==="s"?_p[8+Ip/3]:"")+Q+(ce&&p==="("?")":""),F){for(se=-1,oe=C.length;++se<oe;)if(ae=C.charCodeAt(se),48>ae||ae>57){Q=(ae===46?o+C.slice(se+1):C.slice(se))+Q,C=C.slice(0,se);break}}}A&&!v&&(C=e(C,1/0));var ye=Y.length+C.length+Q.length,he=ye<b?new Array(b-ye+1).join(h):"";switch(A&&v&&(C=e(he+C,he.length?b-Q.length:1/0),he=""),d){case"<":C=Y+C+Q+he;break;case"=":C=Y+he+C+Q;break;case"^":C=he.slice(0,ye=he.length>>1)+Y+C+Q+he.slice(ye);break;default:C=he+Y+C+Q;break}return i(C)}return M.toString=function(){return f+""},M}function u(f,h){var d=l((f=Yi(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Wi(h)/3)))*3,y=Math.pow(10,-p),v=_p[8+p/3];return function(b){return d(y*b)+v}}return{format:l,formatPrefix:u}}var wc,Dt,Rp;f3({thousands:",",grouping:[3],currency:["$",""]});function f3(t){return wc=u3(t),Dt=wc.format,Rp=wc.formatPrefix,wc}function h3(t){return Math.max(0,-Wi(Math.abs(t)))}function d3(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wi(e)/3)))*3-Wi(Math.abs(t)))}function p3(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wi(e)-Wi(t))+1}const zu=new Date,Uu=new Date;function mt(t,e,n,r){function o(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(t(i=new Date(+i)),i),o.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),o.round=i=>{const s=o(i),a=o.ceil(i);return i-s<a-i?s:a},o.offset=(i,s)=>(e(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,a)=>{const c=[];if(i=o.ceil(i),a=a==null?1:Math.floor(a),!(i<s)||!(a>0))return c;let l;do c.push(l=new Date(+i)),e(i,a),t(i);while(l<i&&i<s);return c},o.filter=i=>mt(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!i(s););else for(;--a>=0;)for(;e(s,1),!i(s););}),n&&(o.count=(i,s)=>(zu.setTime(+i),Uu.setTime(+s),t(zu),t(Uu),Math.floor(n(zu,Uu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?s=>r(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const Qi=mt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Qi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?mt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Qi),Qi.range;const Yn=1e3,on=Yn*60,Qn=on*60,Zn=Qn*24,Gu=Zn*7,Fp=Zn*30,Hu=Zn*365,Xn=mt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Yn)},(t,e)=>(e-t)/Yn,t=>t.getUTCSeconds());Xn.range;const xc=mt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yn)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getMinutes());xc.range;const vc=mt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getUTCMinutes());vc.range;const Ac=mt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yn-t.getMinutes()*on)},(t,e)=>{t.setTime(+t+e*Qn)},(t,e)=>(e-t)/Qn,t=>t.getHours());Ac.range;const Ec=mt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Qn)},(t,e)=>(e-t)/Qn,t=>t.getUTCHours());Ec.range;const mr=mt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*on)/Zn,t=>t.getDate()-1);mr.range;const ri=mt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Zn,t=>t.getUTCDate()-1);ri.range;const Mp=mt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Zn,t=>Math.floor(t/Zn));Mp.range;function ii(t){return mt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*on)/Gu)}const Ss=ii(0),Sc=ii(1),g3=ii(2),m3=ii(3),Zi=ii(4),b3=ii(5),y3=ii(6);Ss.range,Sc.range,g3.range,m3.range,Zi.range,b3.range,y3.range;function oi(t){return mt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Gu)}const Cs=oi(0),Cc=oi(1),w3=oi(2),x3=oi(3),Xi=oi(4),v3=oi(5),A3=oi(6);Cs.range,Cc.range,w3.range,x3.range,Xi.range,v3.range,A3.range;const Ki=mt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ki.range;const Ji=mt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Ji.range;const _n=mt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());_n.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:mt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),_n.range;const Rn=mt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Rn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:mt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Rn.range;function Pp(t,e,n,r,o,i){const s=[[Xn,1,Yn],[Xn,5,5*Yn],[Xn,15,15*Yn],[Xn,30,30*Yn],[i,1,on],[i,5,5*on],[i,15,15*on],[i,30,30*on],[o,1,Qn],[o,3,3*Qn],[o,6,6*Qn],[o,12,12*Qn],[r,1,Zn],[r,2,2*Zn],[n,1,Gu],[e,1,Fp],[e,3,3*Fp],[t,1,Hu]];function a(l,u,f){const h=u<l;h&&([l,u]=[u,l]);const d=f&&typeof f.range=="function"?f:c(l,u,f),p=d?d.range(l,+u+1):[];return h?p.reverse():p}function c(l,u,f){const h=Math.abs(u-l)/f,d=ti(([,,v])=>v).right(s,h);if(d===s.length)return t.every(ni(l/Hu,u/Hu,f));if(d===0)return Qi.every(Math.max(ni(l,u,f),1));const[p,y]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return p.every(y)}return[a,c]}const[E3,S3]=Pp(Rn,Ji,Cs,Mp,Ec,vc),[C3,I3]=Pp(_n,Ki,Ss,mr,Ac,xc),Is="year",Ts="quarter",Ds="month",Bs="week",ks="date",Ic="day",Vu="dayofyear",_s="hours",Rs="minutes",Fs="seconds",Tc="milliseconds";[Is,Ts,Ds,Bs,ks,Ic,Vu,_s,Rs,Fs,Tc].reduce((t,e,n)=>(t[e]=1+n,t),{});const T3={[Is]:_n,[Ts]:Ki.every(3),[Ds]:Ki,[Bs]:Ss,[ks]:mr,[Ic]:mr,[Vu]:mr,[_s]:Ac,[Rs]:xc,[Fs]:Xn,[Tc]:Qi},D3={[Is]:Rn,[Ts]:Ji.every(3),[Ds]:Ji,[Bs]:Cs,[ks]:ri,[Ic]:ri,[Vu]:ri,[_s]:Ec,[Rs]:vc,[Fs]:Xn,[Tc]:Qi};function B3(t){return T3[t]}function k3(t){return D3[t]}function qu(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ju(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ms(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Lp(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,l=Ps(o),u=Ls(o),f=Ps(i),h=Ls(i),d=Ps(s),p=Ls(s),y=Ps(a),v=Ls(a),b=Ps(c),A=Ls(c),S={a:ce,A:ye,b:he,B:De,c:null,d:Hp,e:Hp,f:$3,g:lE,G:fE,H:X3,I:K3,j:J3,L:Vp,m:eE,M:tE,p:we,q:Ee,Q:Zp,s:Xp,S:nE,u:rE,U:iE,V:oE,w:sE,W:aE,x:null,X:null,y:cE,Y:uE,Z:hE,"%":Qp},E={a:Te,A:Ge,b:Ve,B:q,c:null,d:jp,e:jp,f:mE,g:IE,G:DE,H:dE,I:pE,j:gE,L:Wp,m:bE,M:yE,p:j,q:ee,Q:Zp,s:Xp,S:wE,u:xE,U:vE,V:AE,w:EE,W:SE,x:null,X:null,y:CE,Y:TE,Z:BE,"%":Qp},I={a:M,A:C,b:Y,B:Q,c:se,d:Up,e:Up,f:W3,g:zp,G:Np,H:Gp,I:Gp,j:H3,L:j3,m:G3,M:V3,p:F,q:U3,Q:Q3,s:Z3,S:q3,u:P3,U:L3,V:O3,w:M3,W:N3,x:oe,X:ae,y:zp,Y:Np,Z:z3,"%":Y3};S.x=_(n,S),S.X=_(r,S),S.c=_(e,S),E.x=_(n,E),E.X=_(r,E),E.c=_(e,E);function _(J,fe){return function(L){var D=[],te=-1,le=0,Be=J.length,ve,Ae,Re;for(L instanceof Date||(L=new Date(+L));++te<Be;)J.charCodeAt(te)===37&&(D.push(J.slice(le,te)),(Ae=Op[ve=J.charAt(++te)])!=null?ve=J.charAt(++te):Ae=ve==="e"?" ":"0",(Re=fe[ve])&&(ve=Re(L,Ae)),D.push(ve),le=te+1);return D.push(J.slice(le,te)),D.join("")}}function B(J,fe){return function(L){var D=Ms(1900,void 0,1),te=N(D,J,L+="",0),le,Be;if(te!=L.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(fe&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(le=ju(Ms(D.y,0,1)),Be=le.getUTCDay(),le=Be>4||Be===0?Cc.ceil(le):Cc(le),le=ri.offset(le,(D.V-1)*7),D.y=le.getUTCFullYear(),D.m=le.getUTCMonth(),D.d=le.getUTCDate()+(D.w+6)%7):(le=qu(Ms(D.y,0,1)),Be=le.getDay(),le=Be>4||Be===0?Sc.ceil(le):Sc(le),le=mr.offset(le,(D.V-1)*7),D.y=le.getFullYear(),D.m=le.getMonth(),D.d=le.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),Be="Z"in D?ju(Ms(D.y,0,1)).getUTCDay():qu(Ms(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(Be+5)%7:D.w+D.U*7-(Be+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,ju(D)):qu(D)}}function N(J,fe,L,D){for(var te=0,le=fe.length,Be=L.length,ve,Ae;te<le;){if(D>=Be)return-1;if(ve=fe.charCodeAt(te++),ve===37){if(ve=fe.charAt(te++),Ae=I[ve in Op?fe.charAt(te++):ve],!Ae||(D=Ae(J,L,D))<0)return-1}else if(ve!=L.charCodeAt(D++))return-1}return D}function F(J,fe,L){var D=l.exec(fe.slice(L));return D?(J.p=u.get(D[0].toLowerCase()),L+D[0].length):-1}function M(J,fe,L){var D=d.exec(fe.slice(L));return D?(J.w=p.get(D[0].toLowerCase()),L+D[0].length):-1}function C(J,fe,L){var D=f.exec(fe.slice(L));return D?(J.w=h.get(D[0].toLowerCase()),L+D[0].length):-1}function Y(J,fe,L){var D=b.exec(fe.slice(L));return D?(J.m=A.get(D[0].toLowerCase()),L+D[0].length):-1}function Q(J,fe,L){var D=y.exec(fe.slice(L));return D?(J.m=v.get(D[0].toLowerCase()),L+D[0].length):-1}function se(J,fe,L){return N(J,e,fe,L)}function oe(J,fe,L){return N(J,n,fe,L)}function ae(J,fe,L){return N(J,r,fe,L)}function ce(J){return s[J.getDay()]}function ye(J){return i[J.getDay()]}function he(J){return c[J.getMonth()]}function De(J){return a[J.getMonth()]}function we(J){return o[+(J.getHours()>=12)]}function Ee(J){return 1+~~(J.getMonth()/3)}function Te(J){return s[J.getUTCDay()]}function Ge(J){return i[J.getUTCDay()]}function Ve(J){return c[J.getUTCMonth()]}function q(J){return a[J.getUTCMonth()]}function j(J){return o[+(J.getUTCHours()>=12)]}function ee(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var fe=_(J+="",S);return fe.toString=function(){return J},fe},parse:function(J){var fe=B(J+="",!1);return fe.toString=function(){return J},fe},utcFormat:function(J){var fe=_(J+="",E);return fe.toString=function(){return J},fe},utcParse:function(J){var fe=B(J+="",!0);return fe.toString=function(){return J},fe}}}var Op={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,_3=/^%/,R3=/[\\^$*+?|[\]().{}]/g;function je(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function F3(t){return t.replace(R3,"\\$&")}function Ps(t){return new RegExp("^(?:"+t.map(F3).join("|")+")","i")}function Ls(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function M3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function P3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function L3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function O3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function N3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Np(t,e,n){var r=xt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function zp(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function z3(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function U3(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function G3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Up(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function H3(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Gp(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function V3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function q3(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function j3(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function W3(t,e,n){var r=xt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Y3(t,e,n){var r=_3.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Q3(t,e,n){var r=xt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Z3(t,e,n){var r=xt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Hp(t,e){return je(t.getDate(),e,2)}function X3(t,e){return je(t.getHours(),e,2)}function K3(t,e){return je(t.getHours()%12||12,e,2)}function J3(t,e){return je(1+mr.count(_n(t),t),e,3)}function Vp(t,e){return je(t.getMilliseconds(),e,3)}function $3(t,e){return Vp(t,e)+"000"}function eE(t,e){return je(t.getMonth()+1,e,2)}function tE(t,e){return je(t.getMinutes(),e,2)}function nE(t,e){return je(t.getSeconds(),e,2)}function rE(t){var e=t.getDay();return e===0?7:e}function iE(t,e){return je(Ss.count(_n(t)-1,t),e,2)}function qp(t){var e=t.getDay();return e>=4||e===0?Zi(t):Zi.ceil(t)}function oE(t,e){return t=qp(t),je(Zi.count(_n(t),t)+(_n(t).getDay()===4),e,2)}function sE(t){return t.getDay()}function aE(t,e){return je(Sc.count(_n(t)-1,t),e,2)}function cE(t,e){return je(t.getFullYear()%100,e,2)}function lE(t,e){return t=qp(t),je(t.getFullYear()%100,e,2)}function uE(t,e){return je(t.getFullYear()%1e4,e,4)}function fE(t,e){var n=t.getDay();return t=n>=4||n===0?Zi(t):Zi.ceil(t),je(t.getFullYear()%1e4,e,4)}function hE(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+je(e/60|0,"0",2)+je(e%60,"0",2)}function jp(t,e){return je(t.getUTCDate(),e,2)}function dE(t,e){return je(t.getUTCHours(),e,2)}function pE(t,e){return je(t.getUTCHours()%12||12,e,2)}function gE(t,e){return je(1+ri.count(Rn(t),t),e,3)}function Wp(t,e){return je(t.getUTCMilliseconds(),e,3)}function mE(t,e){return Wp(t,e)+"000"}function bE(t,e){return je(t.getUTCMonth()+1,e,2)}function yE(t,e){return je(t.getUTCMinutes(),e,2)}function wE(t,e){return je(t.getUTCSeconds(),e,2)}function xE(t){var e=t.getUTCDay();return e===0?7:e}function vE(t,e){return je(Cs.count(Rn(t)-1,t),e,2)}function Yp(t){var e=t.getUTCDay();return e>=4||e===0?Xi(t):Xi.ceil(t)}function AE(t,e){return t=Yp(t),je(Xi.count(Rn(t),t)+(Rn(t).getUTCDay()===4),e,2)}function EE(t){return t.getUTCDay()}function SE(t,e){return je(Cc.count(Rn(t)-1,t),e,2)}function CE(t,e){return je(t.getUTCFullYear()%100,e,2)}function IE(t,e){return t=Yp(t),je(t.getUTCFullYear()%100,e,2)}function TE(t,e){return je(t.getUTCFullYear()%1e4,e,4)}function DE(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Xi(t):Xi.ceil(t),je(t.getUTCFullYear()%1e4,e,4)}function BE(){return"+0000"}function Qp(){return"%"}function Zp(t){return+t}function Xp(t){return Math.floor(+t/1e3)}var $i,Wu,Kp,Yu,Jp;kE({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 kE(t){return $i=Lp(t),Wu=$i.format,Kp=$i.parse,Yu=$i.utcFormat,Jp=$i.utcParse,$i}function Dc(t){const e={};return n=>e[n]||(e[n]=t(n))}function $p(t,e,n){n=n||{},Rt(n)||bn(`Invalid time multi-format specifier: ${n}`);const r=e(Fs),o=e(Rs),i=e(_s),s=e(ks),a=e(Bs),c=e(Ds),l=e(Ts),u=e(Is),f=t(n[Tc]||".%L"),h=t(n[Fs]||":%S"),d=t(n[Rs]||"%I:%M"),p=t(n[_s]||"%I %p"),y=t(n[ks]||n[Ic]||"%a %d"),v=t(n[Bs]||"%b %d"),b=t(n[Ds]||"%B"),A=t(n[Ts]||"%B"),S=t(n[Is]||"%Y");return E=>(r(E)<E?f:o(E)<E?h:i(E)<E?d:s(E)<E?p:c(E)<E?a(E)<E?y:v:u(E)<E?l(E)<E?b:A:S)(E)}function eg(t){const e=Dc(t.format),n=Dc(t.utcFormat);return{timeFormat:r=>rt(r)?e(r):$p(e,B3,r),utcFormat:r=>rt(r)?n(r):$p(n,k3,r),timeParse:Dc(t.parse),utcParse:Dc(t.utcParse)}}let Qu;_E();function _E(){return Qu=eg({format:Wu,parse:Kp,utcFormat:Yu,utcParse:Jp})}function RE(t){return eg(Lp(t))}function FE(t){return arguments.length?Qu=RE(t):Qu}const ME=t=>t!=null&&t===t,PE=t=>t==="true"||t==="false"||t===!0||t===!1,LE=t=>!Number.isNaN(Date.parse(t)),tg=t=>!Number.isNaN(+t)&&!(t instanceof Date),OE=t=>tg(t)&&Number.isInteger(+t),ng={boolean:iA,integer:cc,number:cc,date:sA,string:aA,unknown:ac},Bc=[PE,OE,tg,LE],NE=["boolean","integer","number","date"];function zE(t,e){if(!t||!t.length)return"unknown";const n=t.length,r=Bc.length,o=Bc.map((i,s)=>s+1);for(let i=0,s=0,a,c;i<n;++i)for(c=e?t[i][e]:t[i],a=0;a<r;++a)if(o[a]&&ME(c)&&!Bc[a](c)&&(o[a]=0,++s,s===Bc.length))return"string";return NE[o.reduce((i,s)=>i===0?s:i,0)-1]}function UE(t,e){return e.reduce((n,r)=>(n[r]=zE(t,r),n),{})}function rg(t){const e=function(n,r){const o={delimiter:t};return Zu(n,r?eA(r,o):o)};return e.responseType="text",e}function Zu(t,e){return e.header&&(t=e.header.map(Eu).join(e.delimiter)+`
|
|
24
|
+
`+t),mp(e.delimiter).parse(t+"")}Zu.responseType="text";function GE(t){return typeof Buffer=="function"&&kn(Buffer.isBuffer)?Buffer.isBuffer(t):!1}function Xu(t,e){const n=e&&e.property?sc(e.property):ac;return Rt(t)&&!GE(t)?HE(n(t),e):n(JSON.parse(t))}Xu.responseType="json";function HE(t,e){return!_t(t)&&nA(t)&&(t=[...t]),e&&e.copy?JSON.parse(JSON.stringify(t)):t}const VE={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function ig(t,e){let n,r,o,i;return t=Xu(t,e),e&&e.feature?(n=LA,o=e.feature):e&&e.mesh?(n=NA,o=e.mesh,i=VE[e.filter]):bn("Missing TopoJSON feature or mesh parameter."),r=(r=t.objects[o])?n(t,r,i):bn("Invalid TopoJSON object: "+o),r&&r.features||[r]}ig.responseType="json";const Ku={dsv:Zu,csv:rg(","),tsv:rg(" "),json:Xu,topojson:ig};function Ju(t,e){return arguments.length>1?(Ku[t]=e,this):Z0(Ku,t)?Ku[t]:null}function $u(t,e,n,r){e=e||{};const o=Ju(e.type||"json");return o||bn("Unknown data format type: "+e.type),t=o(t,e),e.parse&&qE(t,e.parse,n,r),Z0(t,"columns")&&delete t.columns,t}function qE(t,e,n,r){if(!t.length)return;const o=FE();n=n||o.timeParse,r=r||o.utcParse;let i=t.columns||Object.keys(t[0]),s,a,c,l,u,f;e==="auto"&&(e=UE(t,i)),i=Object.keys(e);const h=i.map(d=>{const p=e[d];let y,v;if(p&&(p.startsWith("date:")||p.startsWith("utc:")))return y=p.split(/:(.+)?/,2),v=y[1],(v[0]==="'"&&v[v.length-1]==="'"||v[0]==='"'&&v[v.length-1]==='"')&&(v=v.slice(1,-1)),(y[0]==="utc"?r:n)(v);if(!ng[p])throw Error("Illegal format pattern: "+d+":"+p);return ng[p]});for(c=0,u=t.length,f=i.length;c<u;++c)for(s=t[c],l=0;l<f;++l)a=i[l],s[a]=h[l](s[a])}/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/const
|
|
28
|
+
*/const jE={ATTRIBUTE:1},WE=t=>(...e)=>({_$litDirective$:t,values:e});let YE=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,r){this._$Ct=e,this._$AM=n,this._$Ci=r}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2018 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const og="important",QE=" !"+og,ZE=WE(class extends YE{constructor(t){var e;if(super(t),t.type!==jE.ATTRIBUTE||t.name!=="style"||((e=t.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(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r==null?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:n}=t.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("-")?n.removeProperty(r):n[r]=null);for(const r in e){const o=e[r];if(o!=null){this.ft.add(r);const i=typeof o=="string"&&o.endsWith(QE);r.includes("-")||i?n.setProperty(r,i?o.slice(0,-11):o,i?og:""):n[r]=o}}return Kr}}),XE="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",KE=`
|
|
33
33
|
.genome-spy {
|
|
34
34
|
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
35
35
|
position: relative;
|
|
@@ -233,9 +233,9 @@
|
|
|
233
233
|
font-size: 14px;
|
|
234
234
|
padding: 10px;
|
|
235
235
|
}
|
|
236
|
-
`;function
|
|
236
|
+
`;function JE(t,e){var n=t.getBoundingClientRect();return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}function kc(t,e){return t.length==e.length&&t.every((n,r)=>t[r]===e[r])}function Ft(t){return Array.isArray(t)?t:typeof t<"u"?[t]:[]}function Os(t){return t[t.length-1]}class $E{constructor(e){ge(this,or,!1);ge(this,Uo,!0);ge(this,_i);ge(this,Ri,0);ge(this,Go);ge(this,Oa,0);ge(this,jt);ge(this,zr);ge(this,Ho,[!0]);Ie(this,zr,e),Ie(this,jt,document.createElement("div")),W(this,jt).className="tooltip",W(this,zr).appendChild(W(this,jt)),this.clear()}set sticky(e){!e&&W(this,or)&&this.clear(),Ie(this,or,e),W(this,jt).classList.toggle("sticky",W(this,or))}get sticky(){return W(this,or)}set visible(e){e!=W(this,Uo)&&(W(this,jt).style.display=e?null:"none",Ie(this,Uo,e))}get visible(){return W(this,Uo)}get enabled(){return Os(W(this,Ho))??!0}pushEnabledState(e){W(this,Ho).push(e),e||(this.visible=!1)}popEnabledState(){W(this,Ho).pop()}handleMouseMove(e){if(W(this,or))return;this.mouseCoords=JE(W(this,zr),e);const n=performance.now();!this.visible&&!this._isPenalty()&&n-W(this,Oa)>500&&Ie(this,Ri,n+70),W(this,Go)&&eS(this.mouseCoords,W(this,Go))>20&&Ie(this,Ri,n+400),Ie(this,Go,this.mouseCoords),this.visible&&this.updatePlacement(),Ie(this,Oa,n)}updatePlacement(){const[n,r]=this.mouseCoords;let o=n+20;o>W(this,zr).clientWidth-W(this,jt).offsetWidth&&(o=n-20-W(this,jt).offsetWidth),W(this,jt).style.left=o+"px",W(this,jt).style.top=Math.min(r+20,W(this,zr).clientHeight-W(this,jt).offsetHeight)+"px"}setContent(e){if(!W(this,or)){if(!e||!this.enabled||this._isPenalty()){this.visible&&(ws("",W(this,jt)),this.visible=!1),Ie(this,_i,void 0);return}ws(e,W(this,jt)),this.visible=!0,this.updatePlacement()}}clear(){Ie(this,_i,void 0),this.setContent(void 0)}updateWithDatum(e,n){e!==W(this,_i)&&(Ie(this,_i,e),n||(n=r=>Promise.resolve(ot` ${JSON.stringify(r)} `)),n(e).then(r=>this.setContent(r)).catch(r=>{if(r!=="debounced")throw r}))}_isPenalty(){return W(this,Ri)&&W(this,Ri)>performance.now()}}or=new WeakMap,Uo=new WeakMap,_i=new WeakMap,Ri=new WeakMap,Go=new WeakMap,Oa=new WeakMap,jt=new WeakMap,zr=new WeakMap,Ho=new WeakMap;function eS(t,e){let n=0;for(let r=0;r<t.length;r++)n+=(t[r]-e[r])**2;return Math.sqrt(n)}/* @license twgl.js 4.24.0 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
|
|
237
237
|
Available via the MIT license.
|
|
238
|
-
see: http://github.com/greggman/twgl.js for details */const $u=5120,Os=5121,ef=5122,tf=5123,nf=5124,rf=5125,of=5126,eS=32819,tS=32820,nS=33635,rS=5131,iS=33640,oS=35899,sS=35902,aS=36269,cS=34042,og={};{const t=og;t[$u]=Int8Array,t[Os]=Uint8Array,t[ef]=Int16Array,t[tf]=Uint16Array,t[nf]=Int32Array,t[rf]=Uint32Array,t[of]=Float32Array,t[eS]=Uint16Array,t[tS]=Uint16Array,t[nS]=Uint16Array,t[rS]=Uint16Array,t[iS]=Uint32Array,t[oS]=Uint32Array,t[sS]=Uint32Array,t[aS]=Uint32Array,t[cS]=Uint32Array}function sf(t){if(t instanceof Int8Array)return $u;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return Os;if(t instanceof Int16Array)return ef;if(t instanceof Uint16Array)return tf;if(t instanceof Int32Array)return nf;if(t instanceof Uint32Array)return rf;if(t instanceof Float32Array)return of;throw new Error("unsupported typed array type")}function lS(t){if(t===Int8Array)return $u;if(t===Uint8Array||t===Uint8ClampedArray)return Os;if(t===Int16Array)return ef;if(t===Uint16Array)return tf;if(t===Int32Array)return nf;if(t===Uint32Array)return rf;if(t===Float32Array)return of;throw new Error("unsupported typed array type")}function uS(t){const e=og[t];if(!e)throw new Error("unknown gl type");return e}const kc=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 fS(...t){console.error(...t)}function sg(...t){console.warn(...t)}function hS(t,e){return typeof WebGLBuffer<"u"&&e instanceof WebGLBuffer}function ag(t,e){return typeof WebGLRenderbuffer<"u"&&e instanceof WebGLRenderbuffer}function _c(t,e){return typeof WebGLTexture<"u"&&e instanceof WebGLTexture}function dS(t,e){return typeof WebGLSampler<"u"&&e instanceof WebGLSampler}const cg=35044,Fn=34962,pS=34963,gS=34660,mS=5120,yS=5121,bS=5122,wS=5123,xS=5124,vS=5125,AS=5126,lg={attribPrefix:""};function ug(t,e,n,r,o){t.bindBuffer(e,n),t.bufferData(e,r,o||cg)}function fg(t,e,n,r){if(hS(t,e))return e;n=n||Fn;const o=t.createBuffer();return ug(t,n,o,e,r),o}function hg(t){return t==="indices"}function ES(t){return t instanceof Int8Array||t instanceof Uint8Array}function SS(t){return t===Int8Array||t===Uint8Array}function CS(t){return t.length?t:t.data}const IS=/coord|texture/i,TS=/color|colour/i;function dg(t,e){let n;if(IS.test(t)?n=2:TS.test(t)?n=4:n=3,e%n>0)throw new Error(`Can not guess numComponents for attribute '${t}'. Tried ${n} but ${e} values is not evenly divisible by ${n}. You should specify it.`);return n}function DS(t,e){return t.numComponents||t.size||dg(e,CS(t).length)}function af(t,e){if(kc(t))return t;if(kc(t.data))return t.data;Array.isArray(t)&&(t={data:t});let n=t.type;return n||(hg(e)?n=Uint16Array:n=Float32Array),new n(t.data)}function BS(t,e){const n={};return Object.keys(e).forEach(function(r){if(!hg(r)){const o=e[r],i=o.attrib||o.name||o.attribName||lg.attribPrefix+r;if(o.value){if(!Array.isArray(o.value)&&!kc(o.value))throw new Error("array.value is not array or typedarray");n[i]={value:o.value}}else{let s,a,c,l;if(o.buffer&&o.buffer instanceof WebGLBuffer)s=o.buffer,l=o.numComponents||o.size,a=o.type,c=o.normalize;else if(typeof o=="number"||typeof o.data=="number"){const u=o.data||o,f=o.type||Float32Array,h=u*f.BYTES_PER_ELEMENT;a=lS(f),c=o.normalize!==void 0?o.normalize:SS(f),l=o.numComponents||o.size||dg(r,u),s=t.createBuffer(),t.bindBuffer(Fn,s),t.bufferData(Fn,h,o.drawType||cg)}else{const u=af(o,r);s=fg(t,u,void 0,o.drawType),a=sf(u),c=o.normalize!==void 0?o.normalize:ES(u),l=DS(o,r)}n[i]={buffer:s,numComponents:l,type:a,normalize:c,stride:o.stride||0,offset:o.offset||0,divisor:o.divisor===void 0?void 0:o.divisor,drawType:o.drawType}}}}),t.bindBuffer(Fn,null),n}function kS(t,e,n,r){n=af(n),r!==void 0?(t.bindBuffer(Fn,e.buffer),t.bufferSubData(Fn,r,n)):ug(t,Fn,e.buffer,n,e.drawType)}function _S(t,e){return e===mS||e===yS?1:e===bS||e===wS?2:e===xS||e===vS||e===AS?4:0}const cf=["position","positions","a_position"];function RS(t,e){let n,r;for(r=0;r<cf.length&&(n=cf[r],!(n in e||(n=lg.attribPrefix+n,n in e)));++r);r===cf.length&&(n=Object.keys(e)[0]);const o=e[n];if(!o.buffer)return 1;t.bindBuffer(Fn,o.buffer);const i=t.getBufferParameter(Fn,gS);t.bindBuffer(Fn,null);const s=_S(t,o.type),a=i/s,c=o.numComponents||o.size,l=a/c;if(l%1!==0)throw new Error(`numComponents ${c} not correct for length ${length}`);return l}function FS(t,e,n){const r=BS(t,e),o=Object.assign({},n||{});o.attribs=Object.assign({},n?n.attribs:{},r);const i=e.indices;if(i){const s=af(i,"indices");o.indices=fg(t,s,pS),o.numElements=s.length,o.elementType=sf(s)}else o.numElements||(o.numElements=RS(t,o.attribs));return o}function eo(t){return!!t.texStorage2D}const lf=function(){const t={},e={};function n(r){const o=r.constructor.name;if(!t[o]){for(const i in r)if(typeof r[i]=="number"){const s=e[r[i]];e[r[i]]=s?`${s} | ${i}`:i}t[o]=!0}}return function(o,i){return n(o),e[i]||(typeof i=="number"?`0x${i.toString(16)}`:i)}}(),yr={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},to=kc,pg=function(){let t;return function(){return t=t||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),t}}(),gg=6406,Mn=6407,st=6408,mg=6409,yg=6410,Ns=6402,bg=34041,Rc=33071,MS=9728,PS=9729,Kn=3553,Jn=34067,br=32879,wr=35866,Fc=34069,LS=34070,OS=34071,NS=34072,zS=34073,US=34074,uf=10241,ff=10240,Mc=10242,Pc=10243,wg=32882,GS=33082,HS=33083,VS=33084,qS=33085,hf=3317,xg=3314,vg=32878,Ag=3316,Eg=3315,Sg=32877,jS=37443,WS=37441,YS=37440,QS=33321,ZS=36756,XS=33325,KS=33326,JS=33330,$S=33329,e4=33338,t4=33337,n4=33340,r4=33339,i4=33323,o4=36757,s4=33327,a4=33328,c4=33336,l4=33335,u4=33332,f4=33331,h4=33334,d4=33333,p4=32849,g4=35905,m4=36194,y4=36758,b4=35898,w4=35901,x4=34843,v4=34837,A4=36221,E4=36239,S4=36215,C4=36233,I4=36209,T4=36227,D4=32856,B4=35907,k4=36759,_4=32855,R4=32854,F4=32857,M4=34842,P4=34836,L4=36220,O4=36238,N4=36975,z4=36214,U4=36232,G4=36226,H4=36208,V4=33189,q4=33190,j4=36012,W4=36013,Y4=35056,xr=5120,at=5121,Lc=5122,no=5123,Oc=5124,oi=5125,Ft=5126,Cg=32819,Ig=32820,Tg=33635,bn=5131,zs=36193,df=33640,Q4=35899,Z4=35902,X4=36269,K4=34042,Nc=33319,ro=33320,zc=6403,io=36244,oo=36248,si=36249;let pf;function Uc(t){if(!pf){const e={};e[gg]={textureFormat:gg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[at,bn,zs,Ft]},e[mg]={textureFormat:mg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[at,bn,zs,Ft]},e[yg]={textureFormat:yg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[at,bn,zs,Ft]},e[Mn]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[at,bn,zs,Ft,Tg]},e[st]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[at,bn,zs,Ft,Cg,Ig]},e[Ns]={textureFormat:Ns,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[oi,no]},e[QS]={textureFormat:zc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[at]},e[ZS]={textureFormat:zc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[xr]},e[XS]={textureFormat:zc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Ft,bn]},e[KS]={textureFormat:zc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Ft]},e[JS]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[at]},e[$S]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[xr]},e[u4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[no]},e[f4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Lc]},e[h4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[oi]},e[d4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Oc]},e[i4]={textureFormat:Nc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[at]},e[o4]={textureFormat:Nc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[xr]},e[s4]={textureFormat:Nc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Ft,bn]},e[a4]={textureFormat:Nc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Ft]},e[c4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[at]},e[l4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[xr]},e[e4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[no]},e[t4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Lc]},e[n4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[oi]},e[r4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Oc]},e[p4]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[at]},e[g4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[at]},e[m4]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[at,Tg]},e[y4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[xr]},e[b4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ft,bn,Q4]},e[w4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ft,bn,Z4]},e[x4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Ft,bn]},e[v4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Ft]},e[A4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[at]},e[E4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[xr]},e[S4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[no]},e[C4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[Lc]},e[I4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[oi]},e[T4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Oc]},e[D4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[at]},e[B4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[at]},e[k4]={textureFormat:st,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[xr]},e[_4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[at,Ig,df]},e[R4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[at,Cg]},e[F4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[df]},e[M4]={textureFormat:st,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Ft,bn]},e[P4]={textureFormat:st,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Ft]},e[L4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[at]},e[O4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[xr]},e[N4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[df]},e[z4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[no]},e[U4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Lc]},e[G4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[Oc]},e[H4]={textureFormat:si,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[oi]},e[V4]={textureFormat:Ns,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[no,oi]},e[q4]={textureFormat:Ns,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[oi]},e[j4]={textureFormat:Ns,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Ft]},e[Y4]={textureFormat:bg,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[K4]},e[W4]={textureFormat:bg,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[X4]},Object.keys(e).forEach(function(n){const r=e[n];r.bytesPerElementMap={},r.bytesPerElement.forEach(function(o,i){const s=r.type[i];r.bytesPerElementMap[s]=o})}),pf=e}return pf[t]}function J4(t,e){const n=Uc(t);if(!n)throw"unknown internal format";const r=n.bytesPerElementMap[e];if(r===void 0)throw"unknown internal format";return r}function so(t){const e=Uc(t);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function Dg(t){return(t&t-1)===0}function $4(t,e,n,r){if(!eo(t))return Dg(e)&&Dg(n);const o=Uc(r);if(!o)throw"unknown internal format";return o.colorRenderable&&o.textureFilterable}function eC(t){const e=Uc(t);if(!e)throw"unknown internal format";return e.textureFilterable}function Bg(t,e,n){return to(e)?sf(e):n||at}function Gc(t,e,n,r,o){if(o%1!==0)throw"can't guess dimensions";if(!n&&!r){const i=Math.sqrt(o/(e===Jn?6:1));i%1===0?(n=i,r=i):(n=o,r=1)}else if(r){if(!n&&(n=o/r,n%1))throw"can't guess dimensions"}else if(r=o/n,r%1)throw"can't guess dimensions";return{width:n,height:r}}function ao(t,e){e.colorspaceConversion!==void 0&&t.pixelStorei(jS,e.colorspaceConversion),e.premultiplyAlpha!==void 0&&t.pixelStorei(WS,e.premultiplyAlpha),e.flipY!==void 0&&t.pixelStorei(YS,e.flipY)}function kg(t){t.pixelStorei(hf,4),eo(t)&&(t.pixelStorei(xg,0),t.pixelStorei(vg,0),t.pixelStorei(Ag,0),t.pixelStorei(Eg,0),t.pixelStorei(Sg,0))}function tC(t,e,n,r){r.minMag&&(n.call(t,e,uf,r.minMag),n.call(t,e,ff,r.minMag)),r.min&&n.call(t,e,uf,r.min),r.mag&&n.call(t,e,ff,r.mag),r.wrap&&(n.call(t,e,Mc,r.wrap),n.call(t,e,Pc,r.wrap),(e===br||dS(t,e))&&n.call(t,e,wg,r.wrap)),r.wrapR&&n.call(t,e,wg,r.wrapR),r.wrapS&&n.call(t,e,Mc,r.wrapS),r.wrapT&&n.call(t,e,Pc,r.wrapT),r.minLod&&n.call(t,e,GS,r.minLod),r.maxLod&&n.call(t,e,HS,r.maxLod),r.baseLevel&&n.call(t,e,VS,r.baseLevel),r.maxLevel&&n.call(t,e,qS,r.maxLevel)}function _g(t,e,n){const r=n.target||Kn;t.bindTexture(r,e),tC(t,r,t.texParameteri,n)}function nC(t){return t=t||yr.textureColor,to(t)?t:new Uint8Array([t[0]*255,t[1]*255,t[2]*255,t[3]*255])}function gf(t,e,n,r,o,i){n=n||yr.textureOptions,i=i||st;const s=n.target||Kn;if(r=r||n.width,o=o||n.height,t.bindTexture(s,e),$4(t,r,o,i))t.generateMipmap(s);else{const a=eC(i)?PS:MS;t.texParameteri(s,uf,a),t.texParameteri(s,ff,a),t.texParameteri(s,Mc,Rc),t.texParameteri(s,Pc,Rc)}}function Us(t){return t.auto===!0||t.auto===void 0&&t.level===void 0}function mf(t,e){return e=e||{},e.cubeFaceOrder||[Fc,LS,OS,NS,zS,US]}function yf(t,e){const r=mf(t,e).map(function(o,i){return{face:o,ndx:i}});return r.sort(function(o,i){return o.face-i.face}),r}function Rg(t,e,n,r){r=r||yr.textureOptions;const o=r.target||Kn,i=r.level||0;let s=n.width,a=n.height;const c=r.internalFormat||r.format||st,l=so(c),u=r.format||l.format,f=r.type||l.type;if(ao(t,r),t.bindTexture(o,e),o===Jn){const h=n.width,d=n.height;let p,b;if(h/6===d)p=d,b=[0,0,1,0,2,0,3,0,4,0,5,0];else if(d/6===h)p=h,b=[0,0,0,1,0,2,0,3,0,4,0,5];else if(h/3===d/2)p=h/3,b=[0,0,1,0,2,0,0,1,1,1,2,1];else if(h/2===d/3)p=h/2,b=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(n.src?n.src:n.nodeName);const v=pg();v?(v.canvas.width=p,v.canvas.height=p,s=p,a=p,yf(t,r).forEach(function(y){const A=b[y.ndx*2+0]*p,S=b[y.ndx*2+1]*p;v.drawImage(n,A,S,p,p,0,0,p,p),t.texImage2D(y.face,i,c,u,f,v.canvas)}),v.canvas.width=1,v.canvas.height=1):typeof createImageBitmap<"u"&&(s=p,a=p,yf(t,r).forEach(function(y){const A=b[y.ndx*2+0]*p,S=b[y.ndx*2+1]*p;t.texImage2D(y.face,i,c,p,p,0,u,f,null),createImageBitmap(n,A,S,p,p,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(E){ao(t,r),t.bindTexture(o,e),t.texImage2D(y.face,i,c,u,f,E),Us(r)&&gf(t,e,r,s,a,c)})}))}else if(o===br||o===wr){const h=Math.min(n.width,n.height),d=Math.max(n.width,n.height),p=d/h;if(p%1!==0)throw"can not compute 3D dimensions of element";const b=n.width===d?1:0,v=n.height===d?1:0;t.pixelStorei(hf,1),t.pixelStorei(xg,n.width),t.pixelStorei(vg,0),t.pixelStorei(Sg,0),t.texImage3D(o,i,c,h,h,h,0,u,f,null);for(let y=0;y<p;++y){const A=y*h*b,S=y*h*v;t.pixelStorei(Ag,A),t.pixelStorei(Eg,S),t.texSubImage3D(o,i,0,0,y,h,h,1,u,f,n)}kg(t)}else t.texImage2D(o,i,c,u,f,n);Us(r)&&gf(t,e,r,s,a,c),_g(t,e,r)}function Gs(){}function rC(t){if(typeof document<"u"){const e=document.createElement("a");return e.href=t,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}else{const e=new URL(location.href).origin;return new URL(t,location.href).origin===e}}function iC(t,e){return e===void 0&&!rC(t)?"anonymous":e}function oC(t,e,n){n=n||Gs;let r;if(e=e!==void 0?e:yr.crossOrigin,e=iC(t,e),typeof Image<"u"){r=new Image,e!==void 0&&(r.crossOrigin=e);const o=function(){r.removeEventListener("error",i),r.removeEventListener("load",s),r=null},i=function(){const c="couldn't load image: "+t;fS(c),n(c,r),o()},s=function(){n(null,r),o()};return r.addEventListener("error",i),r.addEventListener("load",s),r.src=t,r}else if(typeof ImageBitmap<"u"){let o,i;const s=function(){n(o,i)},a={};e&&(a.mode="cors"),fetch(t,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){i=c,setTimeout(s)}).catch(function(c){o=c,setTimeout(s)}),r=null}return r}function Fg(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap||typeof ImageData<"u"&&t instanceof ImageData||typeof HTMLElement<"u"&&t instanceof HTMLElement}function bf(t,e,n){return Fg(t)?(setTimeout(function(){n(null,t)}),t):oC(t,e,n)}function wf(t,e,n){n=n||yr.textureOptions;const r=n.target||Kn;if(t.bindTexture(r,e),n.color===!1)return;const o=nC(n.color);if(r===Jn)for(let i=0;i<6;++i)t.texImage2D(Fc+i,0,st,1,1,0,st,at,o);else r===br||r===wr?t.texImage3D(r,0,st,1,1,1,0,st,at,o):t.texImage2D(r,0,st,1,1,0,st,at,o)}function sC(t,e,n,r){return r=r||Gs,n=n||yr.textureOptions,wf(t,e,n),n=Object.assign({},n),bf(n.src,n.crossOrigin,function(i,s){i?r(i,e,s):(Rg(t,e,s,n),r(null,e,s))})}function aC(t,e,n,r){r=r||Gs;const o=n.src;if(o.length!==6)throw"there must be 6 urls for a cubemap";const i=n.level||0,s=n.internalFormat||n.format||st,a=so(s),c=n.format||a.format,l=n.type||at,u=n.target||Kn;if(u!==Jn)throw"target must be TEXTURE_CUBE_MAP";wf(t,e,n),n=Object.assign({},n);let f=6;const h=[],d=mf(t,n);let p;function b(v){return function(y,A){--f,y?h.push(y):A.width!==A.height?h.push("cubemap face img is not a square: "+A.src):(ao(t,n),t.bindTexture(u,e),f===5?mf().forEach(function(S){t.texImage2D(S,i,s,c,l,A)}):t.texImage2D(v,i,s,c,l,A),Us(n)&&t.generateMipmap(u)),f===0&&r(h.length?h:void 0,e,p)}}p=o.map(function(v,y){return bf(v,n.crossOrigin,b(d[y]))})}function cC(t,e,n,r){r=r||Gs;const o=n.src,i=n.internalFormat||n.format||st,s=so(i),a=n.format||s.format,c=n.type||at,l=n.target||wr;if(l!==br&&l!==wr)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";wf(t,e,n),n=Object.assign({},n);let u=o.length;const f=[];let h;const d=n.level||0;let p=n.width,b=n.height;const v=o.length;let y=!0;function A(S){return function(E,I){if(--u,E)f.push(E);else{if(ao(t,n),t.bindTexture(l,e),y){y=!1,p=n.width||I.width,b=n.height||I.height,t.texImage3D(l,d,i,p,b,v,0,a,c,null);for(let _=0;_<v;++_)t.texSubImage3D(l,d,0,0,_,p,b,1,a,c,I)}else{let _=I,B;(I.width!==p||I.height!==b)&&(B=pg(),_=B.canvas,B.canvas.width=p,B.canvas.height=b,B.drawImage(I,0,0,p,b)),t.texSubImage3D(l,d,0,0,S,p,b,1,a,c,_),B&&_===B.canvas&&(B.canvas.width=0,B.canvas.height=0)}Us(n)&&t.generateMipmap(l)}u===0&&r(f.length?f:void 0,e,h)}}h=o.map(function(S,E){return bf(S,n.crossOrigin,A(E))})}function Mg(t,e,n,r){r=r||yr.textureOptions;const o=r.target||Kn;t.bindTexture(o,e);let i=r.width,s=r.height,a=r.depth;const c=r.level||0,l=r.internalFormat||r.format||st,u=so(l),f=r.format||u.format,h=r.type||Bg(t,n,u.type);if(to(n))n instanceof Uint8ClampedArray&&(n=new Uint8Array(n.buffer));else{const v=uS(h);n=new v(n)}const d=J4(l,h),p=n.byteLength/d;if(p%1)throw"length wrong size for format: "+lf(t,f);let b;if(o===br||o===wr)if(!i&&!s&&!a){const v=Math.cbrt(p);if(v%1!==0)throw"can't guess cube size of array of numElements: "+p;i=v,s=v,a=v}else i&&(!s||!a)?(b=Gc(t,o,s,a,p/i),s=b.width,a=b.height):s&&(!i||!a)?(b=Gc(t,o,i,a,p/s),i=b.width,a=b.height):(b=Gc(t,o,i,s,p/a),i=b.width,s=b.height);else b=Gc(t,o,i,s,p),i=b.width,s=b.height;if(kg(t),t.pixelStorei(hf,r.unpackAlignment||1),ao(t,r),o===Jn){const v=d/n.BYTES_PER_ELEMENT,y=p/6*v;yf(t,r).forEach(A=>{const S=y*A.ndx,E=n.subarray(S,S+y);t.texImage2D(A.face,c,l,i,s,0,f,h,E)})}else o===br||o===wr?t.texImage3D(o,c,l,i,s,a,0,f,h,n):t.texImage2D(o,c,l,i,s,0,f,h,n);return{width:i,height:s,depth:a,type:h}}function lC(t,e,n){const r=n.target||Kn;t.bindTexture(r,e);const o=n.level||0,i=n.internalFormat||n.format||st,s=so(i),a=n.format||s.format,c=n.type||s.type;if(ao(t,n),r===Jn)for(let l=0;l<6;++l)t.texImage2D(Fc+l,o,i,n.width,n.height,0,a,c,null);else r===br||r===wr?t.texImage3D(r,o,i,n.width,n.height,n.depth,0,a,c,null):t.texImage2D(r,o,i,n.width,n.height,0,a,c,null)}function Hs(t,e,n){n=n||Gs,e=e||yr.textureOptions;const r=t.createTexture(),o=e.target||Kn;let i=e.width||1,s=e.height||1;const a=e.internalFormat||st;t.bindTexture(o,r),o===Jn&&(t.texParameteri(o,Mc,Rc),t.texParameteri(o,Pc,Rc));let c=e.src;if(c)if(typeof c=="function"&&(c=c(t,e)),typeof c=="string")sC(t,r,e,n);else if(to(c)||Array.isArray(c)&&(typeof c[0]=="number"||Array.isArray(c[0])||to(c[0]))){const l=Mg(t,r,c,e);i=l.width,s=l.height}else Array.isArray(c)&&(typeof c[0]=="string"||Fg(c[0]))?o===Jn?aC(t,r,e,n):cC(t,r,e,n):(Rg(t,r,c,e),i=c.width,s=c.height);else lC(t,r,e);return Us(e)&&gf(t,r,e,i,s,a),_g(t,r,e),r}function uC(t,e,n,r,o,i){r=r||n.width,o=o||n.height,i=i||n.depth;const s=n.target||Kn;t.bindTexture(s,e);const a=n.level||0,c=n.internalFormat||n.format||st,l=so(c),u=n.format||l.format;let f;const h=n.src;if(h&&(to(h)||Array.isArray(h)&&typeof h[0]=="number")?f=n.type||Bg(t,h,l.type):f=n.type||l.type,s===Jn)for(let d=0;d<6;++d)t.texImage2D(Fc+d,a,c,r,o,0,u,f,null);else s===br||s===wr?t.texImage3D(s,a,c,r,o,i,0,u,f,null):t.texImage2D(s,a,c,r,o,0,u,f,null)}const fC=sg,Hc=33984,hC=35048,Vc=34962,dC=34963,xf=35345,Pg=35718,pC=35721,gC=35971,mC=35382,yC=35396,bC=35398,wC=35392,xC=35395,qc=5126,Lg=35664,Og=35665,Ng=35666,vf=5124,zg=35667,Ug=35668,Gg=35669,Hg=35670,Vg=35671,qg=35672,jg=35673,Wg=35674,Yg=35675,Qg=35676,vC=35678,AC=35680,EC=35679,SC=35682,CC=35685,IC=35686,TC=35687,DC=35688,BC=35689,kC=35690,_C=36289,RC=36292,FC=36293,Af=5125,Zg=36294,Xg=36295,Kg=36296,MC=36298,PC=36299,LC=36300,OC=36303,NC=36306,zC=36307,UC=36308,GC=36311,jc=3553,Wc=34067,Ef=32879,Yc=35866,Oe={};function Jg(t,e){return Oe[e].bindPoint}function HC(t,e){return function(n){t.uniform1f(e,n)}}function VC(t,e){return function(n){t.uniform1fv(e,n)}}function qC(t,e){return function(n){t.uniform2fv(e,n)}}function jC(t,e){return function(n){t.uniform3fv(e,n)}}function WC(t,e){return function(n){t.uniform4fv(e,n)}}function $g(t,e){return function(n){t.uniform1i(e,n)}}function em(t,e){return function(n){t.uniform1iv(e,n)}}function tm(t,e){return function(n){t.uniform2iv(e,n)}}function nm(t,e){return function(n){t.uniform3iv(e,n)}}function rm(t,e){return function(n){t.uniform4iv(e,n)}}function YC(t,e){return function(n){t.uniform1ui(e,n)}}function QC(t,e){return function(n){t.uniform1uiv(e,n)}}function ZC(t,e){return function(n){t.uniform2uiv(e,n)}}function XC(t,e){return function(n){t.uniform3uiv(e,n)}}function KC(t,e){return function(n){t.uniform4uiv(e,n)}}function JC(t,e){return function(n){t.uniformMatrix2fv(e,!1,n)}}function $C(t,e){return function(n){t.uniformMatrix3fv(e,!1,n)}}function e6(t,e){return function(n){t.uniformMatrix4fv(e,!1,n)}}function t6(t,e){return function(n){t.uniformMatrix2x3fv(e,!1,n)}}function n6(t,e){return function(n){t.uniformMatrix3x2fv(e,!1,n)}}function r6(t,e){return function(n){t.uniformMatrix2x4fv(e,!1,n)}}function i6(t,e){return function(n){t.uniformMatrix4x2fv(e,!1,n)}}function o6(t,e){return function(n){t.uniformMatrix3x4fv(e,!1,n)}}function s6(t,e){return function(n){t.uniformMatrix4x3fv(e,!1,n)}}function Gt(t,e,n,r){const o=Jg(t,e);return eo(t)?function(i){let s,a;_c(t,i)?(s=i,a=null):(s=i.texture,a=i.sampler),t.uniform1i(r,n),t.activeTexture(Hc+n),t.bindTexture(o,s),t.bindSampler(n,a)}:function(i){t.uniform1i(r,n),t.activeTexture(Hc+n),t.bindTexture(o,i)}}function Ht(t,e,n,r,o){const i=Jg(t,e),s=new Int32Array(o);for(let a=0;a<o;++a)s[a]=n+a;return eo(t)?function(a){t.uniform1iv(r,s),a.forEach(function(c,l){t.activeTexture(Hc+s[l]);let u,f;_c(t,c)?(u=c,f=null):(u=c.texture,f=c.sampler),t.bindSampler(n,f),t.bindTexture(i,u)})}:function(a){t.uniform1iv(r,s),a.forEach(function(c,l){t.activeTexture(Hc+s[l]),t.bindTexture(i,c)})}}Oe[qc]={Type:Float32Array,size:4,setter:HC,arraySetter:VC},Oe[Lg]={Type:Float32Array,size:8,setter:qC,cols:2},Oe[Og]={Type:Float32Array,size:12,setter:jC,cols:3},Oe[Ng]={Type:Float32Array,size:16,setter:WC,cols:4},Oe[vf]={Type:Int32Array,size:4,setter:$g,arraySetter:em},Oe[zg]={Type:Int32Array,size:8,setter:tm,cols:2},Oe[Ug]={Type:Int32Array,size:12,setter:nm,cols:3},Oe[Gg]={Type:Int32Array,size:16,setter:rm,cols:4},Oe[Af]={Type:Uint32Array,size:4,setter:YC,arraySetter:QC},Oe[Zg]={Type:Uint32Array,size:8,setter:ZC,cols:2},Oe[Xg]={Type:Uint32Array,size:12,setter:XC,cols:3},Oe[Kg]={Type:Uint32Array,size:16,setter:KC,cols:4},Oe[Hg]={Type:Uint32Array,size:4,setter:$g,arraySetter:em},Oe[Vg]={Type:Uint32Array,size:8,setter:tm,cols:2},Oe[qg]={Type:Uint32Array,size:12,setter:nm,cols:3},Oe[jg]={Type:Uint32Array,size:16,setter:rm,cols:4},Oe[Wg]={Type:Float32Array,size:32,setter:JC,rows:2,cols:2},Oe[Yg]={Type:Float32Array,size:48,setter:$C,rows:3,cols:3},Oe[Qg]={Type:Float32Array,size:64,setter:e6,rows:4,cols:4},Oe[CC]={Type:Float32Array,size:32,setter:t6,rows:2,cols:3},Oe[IC]={Type:Float32Array,size:32,setter:r6,rows:2,cols:4},Oe[TC]={Type:Float32Array,size:48,setter:n6,rows:3,cols:2},Oe[DC]={Type:Float32Array,size:48,setter:o6,rows:3,cols:4},Oe[BC]={Type:Float32Array,size:64,setter:i6,rows:4,cols:2},Oe[kC]={Type:Float32Array,size:64,setter:s6,rows:4,cols:3},Oe[vC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:jc},Oe[AC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Wc},Oe[EC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Ef},Oe[SC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:jc},Oe[_C]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Yc},Oe[RC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Yc},Oe[FC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Wc},Oe[MC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:jc},Oe[PC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Ef},Oe[LC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Wc},Oe[OC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Yc},Oe[NC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:jc},Oe[zC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Ef},Oe[UC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Wc},Oe[GC]={Type:null,size:0,setter:Gt,arraySetter:Ht,bindPoint:Yc};function Qc(t,e){return function(n){if(n.value)switch(t.disableVertexAttribArray(e),n.value.length){case 4:t.vertexAttrib4fv(e,n.value);break;case 3:t.vertexAttrib3fv(e,n.value);break;case 2:t.vertexAttrib2fv(e,n.value);break;case 1:t.vertexAttrib1fv(e,n.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else t.bindBuffer(Vc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,n.numComponents||n.size,n.type||qc,n.normalize||!1,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function vr(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4iv(e,n.value);else throw new Error("The length of an integer constant value must be 4!");else t.bindBuffer(Vc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||vf,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function Zc(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4uiv(e,n.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else t.bindBuffer(Vc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||Af,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function Sf(t,e,n){const r=n.size,o=n.count;return function(i){t.bindBuffer(Vc,i.buffer);const s=i.size||i.numComponents||r,a=s/o,c=i.type||qc,u=Oe[c].size*s,f=i.normalize||!1,h=i.offset||0,d=u/o;for(let p=0;p<o;++p)t.enableVertexAttribArray(e+p),t.vertexAttribPointer(e+p,a,c,f,u,h+d*p),i.divisor!==void 0&&t.vertexAttribDivisor(e+p,i.divisor)}}const gt={};gt[qc]={size:4,setter:Qc},gt[Lg]={size:8,setter:Qc},gt[Og]={size:12,setter:Qc},gt[Ng]={size:16,setter:Qc},gt[vf]={size:4,setter:vr},gt[zg]={size:8,setter:vr},gt[Ug]={size:12,setter:vr},gt[Gg]={size:16,setter:vr},gt[Af]={size:4,setter:Zc},gt[Zg]={size:8,setter:Zc},gt[Xg]={size:12,setter:Zc},gt[Kg]={size:16,setter:Zc},gt[Hg]={size:4,setter:vr},gt[Vg]={size:8,setter:vr},gt[qg]={size:12,setter:vr},gt[jg]={size:16,setter:vr},gt[Wg]={size:4,setter:Sf,count:2},gt[Yg]={size:9,setter:Sf,count:3},gt[Qg]={size:16,setter:Sf,count:4};function im(t){const e=t.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const a6=/(\.|\[|]|\w+)/g,c6=t=>t>="0"&&t<="9";function om(t,e,n,r){const o=t.split(a6).filter(a=>a!=="");let i=0,s="";for(;;){const a=o[i++];s+=a;const c=c6(a[0]),l=c?parseInt(a):a;if(c&&(s+=o[i++]),i===o.length){n[l]=e;break}else{const f=o[i++],h=f==="[",d=n[l]||(h?[]:{});n[l]=d,n=d,r[s]=r[s]||function(p){return function(b){um(p,b)}}(d),s+=f}}}function l6(t,e){let n=0;function r(a,c,l){const u=c.name.endsWith("[0]"),f=c.type,h=Oe[f];if(!h)throw new Error(`unknown type: 0x${f.toString(16)}`);let d;if(h.bindPoint){const p=n;n+=c.size,u?d=h.arraySetter(t,f,p,l,c.size):d=h.setter(t,f,p,l,c.size)}else h.arraySetter&&u?d=h.arraySetter(t,l):d=h.setter(t,l);return d.location=l,d}const o={},i={},s=t.getProgramParameter(e,Pg);for(let a=0;a<s;++a){const c=t.getActiveUniform(e,a);if(im(c))continue;let l=c.name;l.endsWith("[0]")&&(l=l.substr(0,l.length-3));const u=t.getUniformLocation(e,c.name);if(u){const f=r(e,c,u);o[l]=f,om(l,f,i,o)}}return o}function u6(t,e){const n={},r=t.getProgramParameter(e,gC);for(let o=0;o<r;++o){const i=t.getTransformFeedbackVarying(e,o);n[i.name]={index:o,type:i.type,size:i.size}}return n}function f6(t,e){const n=t.getProgramParameter(e,Pg),r=[],o=[];for(let a=0;a<n;++a){o.push(a),r.push({});const c=t.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],l=a[1];t.getActiveUniforms(e,o,t[c]).forEach(function(u,f){r[f][l]=u})});const i={},s=t.getProgramParameter(e,mC);for(let a=0;a<s;++a){const c=t.getActiveUniformBlockName(e,a),l={index:t.getUniformBlockIndex(e,c),usedByVertexShader:t.getActiveUniformBlockParameter(e,a,yC),usedByFragmentShader:t.getActiveUniformBlockParameter(e,a,bC),size:t.getActiveUniformBlockParameter(e,a,wC),uniformIndices:t.getActiveUniformBlockParameter(e,a,xC)};l.used=l.usedByVertexShader||l.usedByFragmentShader,i[c]=l}return{blockSpecs:i,uniformData:r}}const sm=/\[\d+\]\.$/,h6=(t,e)=>((t+(e-1))/e|0)*e;function d6(t,e,n,r){if(e||n){r=r||1;const i=t.length/4;return function(s){let a=0,c=0;for(let l=0;l<i;++l){for(let u=0;u<r;++u)t[a++]=s[c++];a+=4-r}}}else return function(o){o.length?t.set(o):t[0]=o}}function p6(t,e,n,r){const o=n.blockSpecs,i=n.uniformData,s=o[r];if(!s)return fC("no uniform block object named:",r),{name:r,uniforms:{}};const a=new ArrayBuffer(s.size),c=t.createBuffer(),l=s.index;t.bindBuffer(xf,c),t.uniformBlockBinding(e,s.index,l);let u=r+".";sm.test(u)&&(u=u.replace(sm,"."));const f={},h={},d={};return s.uniformIndices.forEach(function(p){const b=i[p];let v=b.name;v.startsWith(u)&&(v=v.substr(u.length));const y=v.endsWith("[0]");y&&(v=v.substr(0,v.length-3));const A=Oe[b.type],S=A.Type,E=y?h6(A.size,16)*b.size:A.size*b.size,I=new S(a,b.offset,E/S.BYTES_PER_ELEMENT);f[v]=I;const _=d6(I,y,A.rows,A.cols);h[v]=_,om(v,_,d,h)}),{name:r,array:a,asFloat:new Float32Array(a),buffer:c,uniforms:f,setters:h}}function am(t,e,n){return p6(t,e.program,e.uniformBlockSpec,n)}function cm(t,e,n){const o=(e.uniformBlockSpec||e).blockSpecs[n.name];if(o){const i=o.index;return t.bindBufferRange(xf,i,n.buffer,n.offset||0,n.array.byteLength),!0}return!1}function lm(t,e,n){cm(t,e,n)&&t.bufferData(xf,n.array,hC)}function Vs(t,e){const n=t.setters;for(const r in e){const o=n[r];if(o){const i=e[r];o(i)}}}function um(t,e){for(const n in e){const r=t[n];typeof r=="function"?r(e[n]):um(t[n],e[n])}}function ai(t,...e){const n=t.uniformSetters||t,r=e.length;for(let o=0;o<r;++o){const i=e[o];if(Array.isArray(i)){const s=i.length;for(let a=0;a<s;++a)ai(n,i[a])}else for(const s in i){const a=n[s];a&&a(i[s])}}}function g6(t,e){const n={},r=t.getProgramParameter(e,pC);for(let o=0;o<r;++o){const i=t.getActiveAttrib(e,o);if(im(i))continue;const s=t.getAttribLocation(e,i.name),a=gt[i.type],c=a.setter(t,s,a);c.location=s,n[i.name]=c}return n}function m6(t,e){for(const n in e){const r=t[n];r&&r(e[n])}}function ci(t,e,n){n.vertexArrayObject?t.bindVertexArray(n.vertexArrayObject):(m6(e.attribSetters||e,n.attribs),n.indices&&t.bindBuffer(dC,n.indices))}function y6(t,e){const n=l6(t,e),r=g6(t,e),o={program:e,uniformSetters:n,attribSetters:r};return eo(t)&&(o.uniformBlockSpec=f6(t,e),o.transformFeedbackInfo=u6(t,e)),o}const b6=4,fm=5123;function Xc(t,e,n,r,o,i){n=n===void 0?b6:n;const s=e.indices,a=e.elementType,c=r===void 0?e.numElements:r;o=o===void 0?0:o,a||s?i!==void 0?t.drawElementsInstanced(n,c,a===void 0?fm:e.elementType,o,i):t.drawElements(n,c,a===void 0?fm:e.elementType,o):i!==void 0?t.drawArraysInstanced(n,o,c,i):t.drawArrays(n,o,c)}const w6=36160,li=36161,x6=3553,v6=5121,A6=6402,E6=6408,S6=33190,C6=36012,I6=35056,T6=36013,D6=32854,B6=32855,k6=36194,hm=33189,dm=6401,pm=36168,Cf=34041,If=36064,Kc=36096,gm=36128,Tf=33306,Df=33071,Bf=9729,mm=[{format:E6,type:v6,min:Bf,wrap:Df},{format:Cf}],wn={};wn[Cf]=Tf,wn[dm]=gm,wn[pm]=gm,wn[A6]=Kc,wn[hm]=Kc,wn[S6]=Kc,wn[C6]=Kc,wn[I6]=Tf,wn[T6]=Tf;function _6(t,e){return wn[t]||wn[e]}const Ar={};Ar[D6]=!0,Ar[B6]=!0,Ar[k6]=!0,Ar[Cf]=!0,Ar[hm]=!0,Ar[dm]=!0,Ar[pm]=!0;function R6(t){return Ar[t]}const F6=32;function M6(t){return t>=If&&t<If+F6}function P6(t,e,n,r){const o=w6,i=t.createFramebuffer();t.bindFramebuffer(o,i),n=n||t.drawingBufferWidth,r=r||t.drawingBufferHeight,e=e||mm;const s=[],a={framebuffer:i,attachments:[],width:n,height:r};return e.forEach(function(c,l){let u=c.attachment;const f=c.samples,h=c.format;let d=c.attachmentPoint||_6(h,c.internalFormat);if(d||(d=If+l),M6(d)&&s.push(d),!u)if(f!==void 0||R6(h))u=t.createRenderbuffer(),t.bindRenderbuffer(li,u),f>1?t.renderbufferStorageMultisample(li,f,h,n,r):t.renderbufferStorage(li,h,n,r);else{const p=Object.assign({},c);p.width=n,p.height=r,p.auto===void 0&&(p.auto=!1,p.min=p.min||p.minMag||Bf,p.mag=p.mag||p.minMag||Bf,p.wrapS=p.wrapS||p.wrap||Df,p.wrapT=p.wrapT||p.wrap||Df),u=Hs(t,p)}if(ag(t,u))t.framebufferRenderbuffer(o,d,li,u);else if(_c(t,u))c.layer!==void 0?t.framebufferTextureLayer(o,d,u,c.level||0,c.layer):t.framebufferTexture2D(o,d,c.target||x6,u,c.level||0);else throw new Error("unknown attachment type");a.attachments.push(u)}),t.drawBuffers&&t.drawBuffers(s),a}function L6(t,e,n,r,o){r=r||t.drawingBufferWidth,o=o||t.drawingBufferHeight,e.width=r,e.height=o,n=n||mm,n.forEach(function(i,s){const a=e.attachments[s],c=i.format,l=i.samples;if(l!==void 0||ag(t,a))t.bindRenderbuffer(li,a),l>1?t.renderbufferStorageMultisample(li,l,c,r,o):t.renderbufferStorage(li,c,r,o);else if(_c(t,a))uC(t,a,i,r,o);else throw new Error("unknown attachment type")})}function O6(t,e,n){const r=t.createVertexArray();return t.bindVertexArray(r),e.length||(e=[e]),e.forEach(function(o){ci(t,o,n)}),t.bindVertexArray(null),{numElements:n.numElements,elementType:n.elementType,vertexArrayObject:r}}const N6=/^(.*?)_/;function z6(t,e){lf(t,0);const n=t.getExtension(e);if(n){const r={},o=N6.exec(e)[1],i="_"+o;for(const s in n){const a=n[s],c=typeof a=="function",l=c?o:i;let u=s;s.endsWith(l)&&(u=s.substring(0,s.length-l.length)),t[u]!==void 0?!c&&t[u]!==a&&sg(u,t[u],a,s):c?t[u]=function(f){return function(){return f.apply(n,arguments)}}(a):(t[u]=a,r[u]=a)}r.constructor={name:n.constructor.name},lf(r,0)}return n}const ym=["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 bm(t){for(let e=0;e<ym.length;++e)z6(t,ym[e])}function U6(t,e){const n=["webgl2","webgl","experimental-webgl"];let r=null;for(let o=0;o<n.length;++o)if(r=t.getContext(n[o],e),r){bm(r);break}return r}function G6(t,e){return U6(t,e)}const H6=`out lowp vec4 vFillColor;out lowp vec4 vStrokeColor;out float vHalfStrokeWidth;out vec4 vCornerRadii;
|
|
238
|
+
see: http://github.com/greggman/twgl.js for details */const ef=5120,Ns=5121,tf=5122,nf=5123,rf=5124,of=5125,sf=5126,tS=32819,nS=32820,rS=33635,iS=5131,oS=33640,sS=35899,aS=35902,cS=36269,lS=34042,sg={};{const t=sg;t[ef]=Int8Array,t[Ns]=Uint8Array,t[tf]=Int16Array,t[nf]=Uint16Array,t[rf]=Int32Array,t[of]=Uint32Array,t[sf]=Float32Array,t[tS]=Uint16Array,t[nS]=Uint16Array,t[rS]=Uint16Array,t[iS]=Uint16Array,t[oS]=Uint32Array,t[sS]=Uint32Array,t[aS]=Uint32Array,t[cS]=Uint32Array,t[lS]=Uint32Array}function af(t){if(t instanceof Int8Array)return ef;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return Ns;if(t instanceof Int16Array)return tf;if(t instanceof Uint16Array)return nf;if(t instanceof Int32Array)return rf;if(t instanceof Uint32Array)return of;if(t instanceof Float32Array)return sf;throw new Error("unsupported typed array type")}function uS(t){if(t===Int8Array)return ef;if(t===Uint8Array||t===Uint8ClampedArray)return Ns;if(t===Int16Array)return tf;if(t===Uint16Array)return nf;if(t===Int32Array)return rf;if(t===Uint32Array)return of;if(t===Float32Array)return sf;throw new Error("unsupported typed array type")}function fS(t){const e=sg[t];if(!e)throw new Error("unknown gl type");return e}const _c=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 hS(...t){console.error(...t)}function ag(...t){console.warn(...t)}function dS(t,e){return typeof WebGLBuffer<"u"&&e instanceof WebGLBuffer}function cg(t,e){return typeof WebGLRenderbuffer<"u"&&e instanceof WebGLRenderbuffer}function Rc(t,e){return typeof WebGLTexture<"u"&&e instanceof WebGLTexture}function pS(t,e){return typeof WebGLSampler<"u"&&e instanceof WebGLSampler}const lg=35044,Fn=34962,gS=34963,mS=34660,bS=5120,yS=5121,wS=5122,xS=5123,vS=5124,AS=5125,ES=5126,ug={attribPrefix:""};function fg(t,e,n,r,o){t.bindBuffer(e,n),t.bufferData(e,r,o||lg)}function hg(t,e,n,r){if(dS(t,e))return e;n=n||Fn;const o=t.createBuffer();return fg(t,n,o,e,r),o}function dg(t){return t==="indices"}function SS(t){return t instanceof Int8Array||t instanceof Uint8Array}function CS(t){return t===Int8Array||t===Uint8Array}function IS(t){return t.length?t:t.data}const TS=/coord|texture/i,DS=/color|colour/i;function pg(t,e){let n;if(TS.test(t)?n=2:DS.test(t)?n=4:n=3,e%n>0)throw new Error(`Can not guess numComponents for attribute '${t}'. Tried ${n} but ${e} values is not evenly divisible by ${n}. You should specify it.`);return n}function BS(t,e){return t.numComponents||t.size||pg(e,IS(t).length)}function cf(t,e){if(_c(t))return t;if(_c(t.data))return t.data;Array.isArray(t)&&(t={data:t});let n=t.type;return n||(dg(e)?n=Uint16Array:n=Float32Array),new n(t.data)}function kS(t,e){const n={};return Object.keys(e).forEach(function(r){if(!dg(r)){const o=e[r],i=o.attrib||o.name||o.attribName||ug.attribPrefix+r;if(o.value){if(!Array.isArray(o.value)&&!_c(o.value))throw new Error("array.value is not array or typedarray");n[i]={value:o.value}}else{let s,a,c,l;if(o.buffer&&o.buffer instanceof WebGLBuffer)s=o.buffer,l=o.numComponents||o.size,a=o.type,c=o.normalize;else if(typeof o=="number"||typeof o.data=="number"){const u=o.data||o,f=o.type||Float32Array,h=u*f.BYTES_PER_ELEMENT;a=uS(f),c=o.normalize!==void 0?o.normalize:CS(f),l=o.numComponents||o.size||pg(r,u),s=t.createBuffer(),t.bindBuffer(Fn,s),t.bufferData(Fn,h,o.drawType||lg)}else{const u=cf(o,r);s=hg(t,u,void 0,o.drawType),a=af(u),c=o.normalize!==void 0?o.normalize:SS(u),l=BS(o,r)}n[i]={buffer:s,numComponents:l,type:a,normalize:c,stride:o.stride||0,offset:o.offset||0,divisor:o.divisor===void 0?void 0:o.divisor,drawType:o.drawType}}}}),t.bindBuffer(Fn,null),n}function _S(t,e,n,r){n=cf(n),r!==void 0?(t.bindBuffer(Fn,e.buffer),t.bufferSubData(Fn,r,n)):fg(t,Fn,e.buffer,n,e.drawType)}function RS(t,e){return e===bS||e===yS?1:e===wS||e===xS?2:e===vS||e===AS||e===ES?4:0}const lf=["position","positions","a_position"];function FS(t,e){let n,r;for(r=0;r<lf.length&&(n=lf[r],!(n in e||(n=ug.attribPrefix+n,n in e)));++r);r===lf.length&&(n=Object.keys(e)[0]);const o=e[n];if(!o.buffer)return 1;t.bindBuffer(Fn,o.buffer);const i=t.getBufferParameter(Fn,mS);t.bindBuffer(Fn,null);const s=RS(t,o.type),a=i/s,c=o.numComponents||o.size,l=a/c;if(l%1!==0)throw new Error(`numComponents ${c} not correct for length ${length}`);return l}function MS(t,e,n){const r=kS(t,e),o=Object.assign({},n||{});o.attribs=Object.assign({},n?n.attribs:{},r);const i=e.indices;if(i){const s=cf(i,"indices");o.indices=hg(t,s,gS),o.numElements=s.length,o.elementType=af(s)}else o.numElements||(o.numElements=FS(t,o.attribs));return o}function eo(t){return!!t.texStorage2D}const uf=function(){const t={},e={};function n(r){const o=r.constructor.name;if(!t[o]){for(const i in r)if(typeof r[i]=="number"){const s=e[r[i]];e[r[i]]=s?`${s} | ${i}`:i}t[o]=!0}}return function(o,i){return n(o),e[i]||(typeof i=="number"?`0x${i.toString(16)}`:i)}}(),br={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},to=_c,gg=function(){let t;return function(){return t=t||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),t}}(),mg=6406,Mn=6407,st=6408,bg=6409,yg=6410,zs=6402,wg=34041,Fc=33071,PS=9728,LS=9729,Kn=3553,Jn=34067,yr=32879,wr=35866,Mc=34069,OS=34070,NS=34071,zS=34072,US=34073,GS=34074,ff=10241,hf=10240,Pc=10242,Lc=10243,xg=32882,HS=33082,VS=33083,qS=33084,jS=33085,df=3317,vg=3314,Ag=32878,Eg=3316,Sg=3315,Cg=32877,WS=37443,YS=37441,QS=37440,ZS=33321,XS=36756,KS=33325,JS=33326,$S=33330,e4=33329,t4=33338,n4=33337,r4=33340,i4=33339,o4=33323,s4=36757,a4=33327,c4=33328,l4=33336,u4=33335,f4=33332,h4=33331,d4=33334,p4=33333,g4=32849,m4=35905,b4=36194,y4=36758,w4=35898,x4=35901,v4=34843,A4=34837,E4=36221,S4=36239,C4=36215,I4=36233,T4=36209,D4=36227,B4=32856,k4=35907,_4=36759,R4=32855,F4=32854,M4=32857,P4=34842,L4=34836,O4=36220,N4=36238,z4=36975,U4=36214,G4=36232,H4=36226,V4=36208,q4=33189,j4=33190,W4=36012,Y4=36013,Q4=35056,xr=5120,at=5121,Oc=5122,no=5123,Nc=5124,si=5125,Mt=5126,Ig=32819,Tg=32820,Dg=33635,yn=5131,Us=36193,pf=33640,Z4=35899,X4=35902,K4=36269,J4=34042,zc=33319,ro=33320,Uc=6403,io=36244,oo=36248,ai=36249;let gf;function Gc(t){if(!gf){const e={};e[mg]={textureFormat:mg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[at,yn,Us,Mt]},e[bg]={textureFormat:bg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[at,yn,Us,Mt]},e[yg]={textureFormat:yg,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[at,yn,Us,Mt]},e[Mn]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[at,yn,Us,Mt,Dg]},e[st]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[at,yn,Us,Mt,Ig,Tg]},e[zs]={textureFormat:zs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[si,no]},e[ZS]={textureFormat:Uc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[at]},e[XS]={textureFormat:Uc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[xr]},e[KS]={textureFormat:Uc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Mt,yn]},e[JS]={textureFormat:Uc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Mt]},e[$S]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[at]},e[e4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[xr]},e[f4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[no]},e[h4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Oc]},e[d4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[si]},e[p4]={textureFormat:io,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Nc]},e[o4]={textureFormat:zc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[at]},e[s4]={textureFormat:zc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[xr]},e[a4]={textureFormat:zc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Mt,yn]},e[c4]={textureFormat:zc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Mt]},e[l4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[at]},e[u4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[xr]},e[t4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[no]},e[n4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Oc]},e[r4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[si]},e[i4]={textureFormat:ro,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Nc]},e[g4]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[at]},e[m4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[at]},e[b4]={textureFormat:Mn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[at,Dg]},e[y4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[xr]},e[w4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Mt,yn,Z4]},e[x4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Mt,yn,X4]},e[v4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Mt,yn]},e[A4]={textureFormat:Mn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Mt]},e[E4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[at]},e[S4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[xr]},e[C4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[no]},e[I4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[Oc]},e[T4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[si]},e[D4]={textureFormat:oo,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Nc]},e[B4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[at]},e[k4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[at]},e[_4]={textureFormat:st,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[xr]},e[R4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[at,Tg,pf]},e[F4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[at,Ig]},e[M4]={textureFormat:st,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[pf]},e[P4]={textureFormat:st,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Mt,yn]},e[L4]={textureFormat:st,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Mt]},e[O4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[at]},e[N4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[xr]},e[z4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[pf]},e[U4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[no]},e[G4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Oc]},e[H4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[Nc]},e[V4]={textureFormat:ai,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[si]},e[q4]={textureFormat:zs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[no,si]},e[j4]={textureFormat:zs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[si]},e[W4]={textureFormat:zs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Mt]},e[Q4]={textureFormat:wg,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[J4]},e[Y4]={textureFormat:wg,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[K4]},Object.keys(e).forEach(function(n){const r=e[n];r.bytesPerElementMap={},r.bytesPerElement.forEach(function(o,i){const s=r.type[i];r.bytesPerElementMap[s]=o})}),gf=e}return gf[t]}function $4(t,e){const n=Gc(t);if(!n)throw"unknown internal format";const r=n.bytesPerElementMap[e];if(r===void 0)throw"unknown internal format";return r}function so(t){const e=Gc(t);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function Bg(t){return(t&t-1)===0}function eC(t,e,n,r){if(!eo(t))return Bg(e)&&Bg(n);const o=Gc(r);if(!o)throw"unknown internal format";return o.colorRenderable&&o.textureFilterable}function tC(t){const e=Gc(t);if(!e)throw"unknown internal format";return e.textureFilterable}function kg(t,e,n){return to(e)?af(e):n||at}function Hc(t,e,n,r,o){if(o%1!==0)throw"can't guess dimensions";if(!n&&!r){const i=Math.sqrt(o/(e===Jn?6:1));i%1===0?(n=i,r=i):(n=o,r=1)}else if(r){if(!n&&(n=o/r,n%1))throw"can't guess dimensions"}else if(r=o/n,r%1)throw"can't guess dimensions";return{width:n,height:r}}function ao(t,e){e.colorspaceConversion!==void 0&&t.pixelStorei(WS,e.colorspaceConversion),e.premultiplyAlpha!==void 0&&t.pixelStorei(YS,e.premultiplyAlpha),e.flipY!==void 0&&t.pixelStorei(QS,e.flipY)}function _g(t){t.pixelStorei(df,4),eo(t)&&(t.pixelStorei(vg,0),t.pixelStorei(Ag,0),t.pixelStorei(Eg,0),t.pixelStorei(Sg,0),t.pixelStorei(Cg,0))}function nC(t,e,n,r){r.minMag&&(n.call(t,e,ff,r.minMag),n.call(t,e,hf,r.minMag)),r.min&&n.call(t,e,ff,r.min),r.mag&&n.call(t,e,hf,r.mag),r.wrap&&(n.call(t,e,Pc,r.wrap),n.call(t,e,Lc,r.wrap),(e===yr||pS(t,e))&&n.call(t,e,xg,r.wrap)),r.wrapR&&n.call(t,e,xg,r.wrapR),r.wrapS&&n.call(t,e,Pc,r.wrapS),r.wrapT&&n.call(t,e,Lc,r.wrapT),r.minLod&&n.call(t,e,HS,r.minLod),r.maxLod&&n.call(t,e,VS,r.maxLod),r.baseLevel&&n.call(t,e,qS,r.baseLevel),r.maxLevel&&n.call(t,e,jS,r.maxLevel)}function Rg(t,e,n){const r=n.target||Kn;t.bindTexture(r,e),nC(t,r,t.texParameteri,n)}function rC(t){return t=t||br.textureColor,to(t)?t:new Uint8Array([t[0]*255,t[1]*255,t[2]*255,t[3]*255])}function mf(t,e,n,r,o,i){n=n||br.textureOptions,i=i||st;const s=n.target||Kn;if(r=r||n.width,o=o||n.height,t.bindTexture(s,e),eC(t,r,o,i))t.generateMipmap(s);else{const a=tC(i)?LS:PS;t.texParameteri(s,ff,a),t.texParameteri(s,hf,a),t.texParameteri(s,Pc,Fc),t.texParameteri(s,Lc,Fc)}}function Gs(t){return t.auto===!0||t.auto===void 0&&t.level===void 0}function bf(t,e){return e=e||{},e.cubeFaceOrder||[Mc,OS,NS,zS,US,GS]}function yf(t,e){const r=bf(t,e).map(function(o,i){return{face:o,ndx:i}});return r.sort(function(o,i){return o.face-i.face}),r}function Fg(t,e,n,r){r=r||br.textureOptions;const o=r.target||Kn,i=r.level||0;let s=n.width,a=n.height;const c=r.internalFormat||r.format||st,l=so(c),u=r.format||l.format,f=r.type||l.type;if(ao(t,r),t.bindTexture(o,e),o===Jn){const h=n.width,d=n.height;let p,y;if(h/6===d)p=d,y=[0,0,1,0,2,0,3,0,4,0,5,0];else if(d/6===h)p=h,y=[0,0,0,1,0,2,0,3,0,4,0,5];else if(h/3===d/2)p=h/3,y=[0,0,1,0,2,0,0,1,1,1,2,1];else if(h/2===d/3)p=h/2,y=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(n.src?n.src:n.nodeName);const v=gg();v?(v.canvas.width=p,v.canvas.height=p,s=p,a=p,yf(t,r).forEach(function(b){const A=y[b.ndx*2+0]*p,S=y[b.ndx*2+1]*p;v.drawImage(n,A,S,p,p,0,0,p,p),t.texImage2D(b.face,i,c,u,f,v.canvas)}),v.canvas.width=1,v.canvas.height=1):typeof createImageBitmap<"u"&&(s=p,a=p,yf(t,r).forEach(function(b){const A=y[b.ndx*2+0]*p,S=y[b.ndx*2+1]*p;t.texImage2D(b.face,i,c,p,p,0,u,f,null),createImageBitmap(n,A,S,p,p,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(E){ao(t,r),t.bindTexture(o,e),t.texImage2D(b.face,i,c,u,f,E),Gs(r)&&mf(t,e,r,s,a,c)})}))}else if(o===yr||o===wr){const h=Math.min(n.width,n.height),d=Math.max(n.width,n.height),p=d/h;if(p%1!==0)throw"can not compute 3D dimensions of element";const y=n.width===d?1:0,v=n.height===d?1:0;t.pixelStorei(df,1),t.pixelStorei(vg,n.width),t.pixelStorei(Ag,0),t.pixelStorei(Cg,0),t.texImage3D(o,i,c,h,h,h,0,u,f,null);for(let b=0;b<p;++b){const A=b*h*y,S=b*h*v;t.pixelStorei(Eg,A),t.pixelStorei(Sg,S),t.texSubImage3D(o,i,0,0,b,h,h,1,u,f,n)}_g(t)}else t.texImage2D(o,i,c,u,f,n);Gs(r)&&mf(t,e,r,s,a,c),Rg(t,e,r)}function Hs(){}function iC(t){if(typeof document<"u"){const e=document.createElement("a");return e.href=t,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}else{const e=new URL(location.href).origin;return new URL(t,location.href).origin===e}}function oC(t,e){return e===void 0&&!iC(t)?"anonymous":e}function sC(t,e,n){n=n||Hs;let r;if(e=e!==void 0?e:br.crossOrigin,e=oC(t,e),typeof Image<"u"){r=new Image,e!==void 0&&(r.crossOrigin=e);const o=function(){r.removeEventListener("error",i),r.removeEventListener("load",s),r=null},i=function(){const c="couldn't load image: "+t;hS(c),n(c,r),o()},s=function(){n(null,r),o()};return r.addEventListener("error",i),r.addEventListener("load",s),r.src=t,r}else if(typeof ImageBitmap<"u"){let o,i;const s=function(){n(o,i)},a={};e&&(a.mode="cors"),fetch(t,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){i=c,setTimeout(s)}).catch(function(c){o=c,setTimeout(s)}),r=null}return r}function Mg(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap||typeof ImageData<"u"&&t instanceof ImageData||typeof HTMLElement<"u"&&t instanceof HTMLElement}function wf(t,e,n){return Mg(t)?(setTimeout(function(){n(null,t)}),t):sC(t,e,n)}function xf(t,e,n){n=n||br.textureOptions;const r=n.target||Kn;if(t.bindTexture(r,e),n.color===!1)return;const o=rC(n.color);if(r===Jn)for(let i=0;i<6;++i)t.texImage2D(Mc+i,0,st,1,1,0,st,at,o);else r===yr||r===wr?t.texImage3D(r,0,st,1,1,1,0,st,at,o):t.texImage2D(r,0,st,1,1,0,st,at,o)}function aC(t,e,n,r){return r=r||Hs,n=n||br.textureOptions,xf(t,e,n),n=Object.assign({},n),wf(n.src,n.crossOrigin,function(i,s){i?r(i,e,s):(Fg(t,e,s,n),r(null,e,s))})}function cC(t,e,n,r){r=r||Hs;const o=n.src;if(o.length!==6)throw"there must be 6 urls for a cubemap";const i=n.level||0,s=n.internalFormat||n.format||st,a=so(s),c=n.format||a.format,l=n.type||at,u=n.target||Kn;if(u!==Jn)throw"target must be TEXTURE_CUBE_MAP";xf(t,e,n),n=Object.assign({},n);let f=6;const h=[],d=bf(t,n);let p;function y(v){return function(b,A){--f,b?h.push(b):A.width!==A.height?h.push("cubemap face img is not a square: "+A.src):(ao(t,n),t.bindTexture(u,e),f===5?bf().forEach(function(S){t.texImage2D(S,i,s,c,l,A)}):t.texImage2D(v,i,s,c,l,A),Gs(n)&&t.generateMipmap(u)),f===0&&r(h.length?h:void 0,e,p)}}p=o.map(function(v,b){return wf(v,n.crossOrigin,y(d[b]))})}function lC(t,e,n,r){r=r||Hs;const o=n.src,i=n.internalFormat||n.format||st,s=so(i),a=n.format||s.format,c=n.type||at,l=n.target||wr;if(l!==yr&&l!==wr)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";xf(t,e,n),n=Object.assign({},n);let u=o.length;const f=[];let h;const d=n.level||0;let p=n.width,y=n.height;const v=o.length;let b=!0;function A(S){return function(E,I){if(--u,E)f.push(E);else{if(ao(t,n),t.bindTexture(l,e),b){b=!1,p=n.width||I.width,y=n.height||I.height,t.texImage3D(l,d,i,p,y,v,0,a,c,null);for(let _=0;_<v;++_)t.texSubImage3D(l,d,0,0,_,p,y,1,a,c,I)}else{let _=I,B;(I.width!==p||I.height!==y)&&(B=gg(),_=B.canvas,B.canvas.width=p,B.canvas.height=y,B.drawImage(I,0,0,p,y)),t.texSubImage3D(l,d,0,0,S,p,y,1,a,c,_),B&&_===B.canvas&&(B.canvas.width=0,B.canvas.height=0)}Gs(n)&&t.generateMipmap(l)}u===0&&r(f.length?f:void 0,e,h)}}h=o.map(function(S,E){return wf(S,n.crossOrigin,A(E))})}function Pg(t,e,n,r){r=r||br.textureOptions;const o=r.target||Kn;t.bindTexture(o,e);let i=r.width,s=r.height,a=r.depth;const c=r.level||0,l=r.internalFormat||r.format||st,u=so(l),f=r.format||u.format,h=r.type||kg(t,n,u.type);if(to(n))n instanceof Uint8ClampedArray&&(n=new Uint8Array(n.buffer));else{const v=fS(h);n=new v(n)}const d=$4(l,h),p=n.byteLength/d;if(p%1)throw"length wrong size for format: "+uf(t,f);let y;if(o===yr||o===wr)if(!i&&!s&&!a){const v=Math.cbrt(p);if(v%1!==0)throw"can't guess cube size of array of numElements: "+p;i=v,s=v,a=v}else i&&(!s||!a)?(y=Hc(t,o,s,a,p/i),s=y.width,a=y.height):s&&(!i||!a)?(y=Hc(t,o,i,a,p/s),i=y.width,a=y.height):(y=Hc(t,o,i,s,p/a),i=y.width,s=y.height);else y=Hc(t,o,i,s,p),i=y.width,s=y.height;if(_g(t),t.pixelStorei(df,r.unpackAlignment||1),ao(t,r),o===Jn){const v=d/n.BYTES_PER_ELEMENT,b=p/6*v;yf(t,r).forEach(A=>{const S=b*A.ndx,E=n.subarray(S,S+b);t.texImage2D(A.face,c,l,i,s,0,f,h,E)})}else o===yr||o===wr?t.texImage3D(o,c,l,i,s,a,0,f,h,n):t.texImage2D(o,c,l,i,s,0,f,h,n);return{width:i,height:s,depth:a,type:h}}function uC(t,e,n){const r=n.target||Kn;t.bindTexture(r,e);const o=n.level||0,i=n.internalFormat||n.format||st,s=so(i),a=n.format||s.format,c=n.type||s.type;if(ao(t,n),r===Jn)for(let l=0;l<6;++l)t.texImage2D(Mc+l,o,i,n.width,n.height,0,a,c,null);else r===yr||r===wr?t.texImage3D(r,o,i,n.width,n.height,n.depth,0,a,c,null):t.texImage2D(r,o,i,n.width,n.height,0,a,c,null)}function Vs(t,e,n){n=n||Hs,e=e||br.textureOptions;const r=t.createTexture(),o=e.target||Kn;let i=e.width||1,s=e.height||1;const a=e.internalFormat||st;t.bindTexture(o,r),o===Jn&&(t.texParameteri(o,Pc,Fc),t.texParameteri(o,Lc,Fc));let c=e.src;if(c)if(typeof c=="function"&&(c=c(t,e)),typeof c=="string")aC(t,r,e,n);else if(to(c)||Array.isArray(c)&&(typeof c[0]=="number"||Array.isArray(c[0])||to(c[0]))){const l=Pg(t,r,c,e);i=l.width,s=l.height}else Array.isArray(c)&&(typeof c[0]=="string"||Mg(c[0]))?o===Jn?cC(t,r,e,n):lC(t,r,e,n):(Fg(t,r,c,e),i=c.width,s=c.height);else uC(t,r,e);return Gs(e)&&mf(t,r,e,i,s,a),Rg(t,r,e),r}function fC(t,e,n,r,o,i){r=r||n.width,o=o||n.height,i=i||n.depth;const s=n.target||Kn;t.bindTexture(s,e);const a=n.level||0,c=n.internalFormat||n.format||st,l=so(c),u=n.format||l.format;let f;const h=n.src;if(h&&(to(h)||Array.isArray(h)&&typeof h[0]=="number")?f=n.type||kg(t,h,l.type):f=n.type||l.type,s===Jn)for(let d=0;d<6;++d)t.texImage2D(Mc+d,a,c,r,o,0,u,f,null);else s===yr||s===wr?t.texImage3D(s,a,c,r,o,i,0,u,f,null):t.texImage2D(s,a,c,r,o,0,u,f,null)}const hC=ag,Vc=33984,dC=35048,qc=34962,pC=34963,vf=35345,Lg=35718,gC=35721,mC=35971,bC=35382,yC=35396,wC=35398,xC=35392,vC=35395,jc=5126,Og=35664,Ng=35665,zg=35666,Af=5124,Ug=35667,Gg=35668,Hg=35669,Vg=35670,qg=35671,jg=35672,Wg=35673,Yg=35674,Qg=35675,Zg=35676,AC=35678,EC=35680,SC=35679,CC=35682,IC=35685,TC=35686,DC=35687,BC=35688,kC=35689,_C=35690,RC=36289,FC=36292,MC=36293,Ef=5125,Xg=36294,Kg=36295,Jg=36296,PC=36298,LC=36299,OC=36300,NC=36303,zC=36306,UC=36307,GC=36308,HC=36311,Wc=3553,Yc=34067,Sf=32879,Qc=35866,Oe={};function $g(t,e){return Oe[e].bindPoint}function VC(t,e){return function(n){t.uniform1f(e,n)}}function qC(t,e){return function(n){t.uniform1fv(e,n)}}function jC(t,e){return function(n){t.uniform2fv(e,n)}}function WC(t,e){return function(n){t.uniform3fv(e,n)}}function YC(t,e){return function(n){t.uniform4fv(e,n)}}function em(t,e){return function(n){t.uniform1i(e,n)}}function tm(t,e){return function(n){t.uniform1iv(e,n)}}function nm(t,e){return function(n){t.uniform2iv(e,n)}}function rm(t,e){return function(n){t.uniform3iv(e,n)}}function im(t,e){return function(n){t.uniform4iv(e,n)}}function QC(t,e){return function(n){t.uniform1ui(e,n)}}function ZC(t,e){return function(n){t.uniform1uiv(e,n)}}function XC(t,e){return function(n){t.uniform2uiv(e,n)}}function KC(t,e){return function(n){t.uniform3uiv(e,n)}}function JC(t,e){return function(n){t.uniform4uiv(e,n)}}function $C(t,e){return function(n){t.uniformMatrix2fv(e,!1,n)}}function e6(t,e){return function(n){t.uniformMatrix3fv(e,!1,n)}}function t6(t,e){return function(n){t.uniformMatrix4fv(e,!1,n)}}function n6(t,e){return function(n){t.uniformMatrix2x3fv(e,!1,n)}}function r6(t,e){return function(n){t.uniformMatrix3x2fv(e,!1,n)}}function i6(t,e){return function(n){t.uniformMatrix2x4fv(e,!1,n)}}function o6(t,e){return function(n){t.uniformMatrix4x2fv(e,!1,n)}}function s6(t,e){return function(n){t.uniformMatrix3x4fv(e,!1,n)}}function a6(t,e){return function(n){t.uniformMatrix4x3fv(e,!1,n)}}function Vt(t,e,n,r){const o=$g(t,e);return eo(t)?function(i){let s,a;Rc(t,i)?(s=i,a=null):(s=i.texture,a=i.sampler),t.uniform1i(r,n),t.activeTexture(Vc+n),t.bindTexture(o,s),t.bindSampler(n,a)}:function(i){t.uniform1i(r,n),t.activeTexture(Vc+n),t.bindTexture(o,i)}}function qt(t,e,n,r,o){const i=$g(t,e),s=new Int32Array(o);for(let a=0;a<o;++a)s[a]=n+a;return eo(t)?function(a){t.uniform1iv(r,s),a.forEach(function(c,l){t.activeTexture(Vc+s[l]);let u,f;Rc(t,c)?(u=c,f=null):(u=c.texture,f=c.sampler),t.bindSampler(n,f),t.bindTexture(i,u)})}:function(a){t.uniform1iv(r,s),a.forEach(function(c,l){t.activeTexture(Vc+s[l]),t.bindTexture(i,c)})}}Oe[jc]={Type:Float32Array,size:4,setter:VC,arraySetter:qC},Oe[Og]={Type:Float32Array,size:8,setter:jC,cols:2},Oe[Ng]={Type:Float32Array,size:12,setter:WC,cols:3},Oe[zg]={Type:Float32Array,size:16,setter:YC,cols:4},Oe[Af]={Type:Int32Array,size:4,setter:em,arraySetter:tm},Oe[Ug]={Type:Int32Array,size:8,setter:nm,cols:2},Oe[Gg]={Type:Int32Array,size:12,setter:rm,cols:3},Oe[Hg]={Type:Int32Array,size:16,setter:im,cols:4},Oe[Ef]={Type:Uint32Array,size:4,setter:QC,arraySetter:ZC},Oe[Xg]={Type:Uint32Array,size:8,setter:XC,cols:2},Oe[Kg]={Type:Uint32Array,size:12,setter:KC,cols:3},Oe[Jg]={Type:Uint32Array,size:16,setter:JC,cols:4},Oe[Vg]={Type:Uint32Array,size:4,setter:em,arraySetter:tm},Oe[qg]={Type:Uint32Array,size:8,setter:nm,cols:2},Oe[jg]={Type:Uint32Array,size:12,setter:rm,cols:3},Oe[Wg]={Type:Uint32Array,size:16,setter:im,cols:4},Oe[Yg]={Type:Float32Array,size:32,setter:$C,rows:2,cols:2},Oe[Qg]={Type:Float32Array,size:48,setter:e6,rows:3,cols:3},Oe[Zg]={Type:Float32Array,size:64,setter:t6,rows:4,cols:4},Oe[IC]={Type:Float32Array,size:32,setter:n6,rows:2,cols:3},Oe[TC]={Type:Float32Array,size:32,setter:i6,rows:2,cols:4},Oe[DC]={Type:Float32Array,size:48,setter:r6,rows:3,cols:2},Oe[BC]={Type:Float32Array,size:48,setter:s6,rows:3,cols:4},Oe[kC]={Type:Float32Array,size:64,setter:o6,rows:4,cols:2},Oe[_C]={Type:Float32Array,size:64,setter:a6,rows:4,cols:3},Oe[AC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Wc},Oe[EC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Yc},Oe[SC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Sf},Oe[CC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Wc},Oe[RC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Qc},Oe[FC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Qc},Oe[MC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Yc},Oe[PC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Wc},Oe[LC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Sf},Oe[OC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Yc},Oe[NC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Qc},Oe[zC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Wc},Oe[UC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Sf},Oe[GC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Yc},Oe[HC]={Type:null,size:0,setter:Vt,arraySetter:qt,bindPoint:Qc};function Zc(t,e){return function(n){if(n.value)switch(t.disableVertexAttribArray(e),n.value.length){case 4:t.vertexAttrib4fv(e,n.value);break;case 3:t.vertexAttrib3fv(e,n.value);break;case 2:t.vertexAttrib2fv(e,n.value);break;case 1:t.vertexAttrib1fv(e,n.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else t.bindBuffer(qc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,n.numComponents||n.size,n.type||jc,n.normalize||!1,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function vr(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4iv(e,n.value);else throw new Error("The length of an integer constant value must be 4!");else t.bindBuffer(qc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||Af,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function Xc(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4uiv(e,n.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else t.bindBuffer(qc,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||Ef,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function Cf(t,e,n){const r=n.size,o=n.count;return function(i){t.bindBuffer(qc,i.buffer);const s=i.size||i.numComponents||r,a=s/o,c=i.type||jc,u=Oe[c].size*s,f=i.normalize||!1,h=i.offset||0,d=u/o;for(let p=0;p<o;++p)t.enableVertexAttribArray(e+p),t.vertexAttribPointer(e+p,a,c,f,u,h+d*p),i.divisor!==void 0&&t.vertexAttribDivisor(e+p,i.divisor)}}const gt={};gt[jc]={size:4,setter:Zc},gt[Og]={size:8,setter:Zc},gt[Ng]={size:12,setter:Zc},gt[zg]={size:16,setter:Zc},gt[Af]={size:4,setter:vr},gt[Ug]={size:8,setter:vr},gt[Gg]={size:12,setter:vr},gt[Hg]={size:16,setter:vr},gt[Ef]={size:4,setter:Xc},gt[Xg]={size:8,setter:Xc},gt[Kg]={size:12,setter:Xc},gt[Jg]={size:16,setter:Xc},gt[Vg]={size:4,setter:vr},gt[qg]={size:8,setter:vr},gt[jg]={size:12,setter:vr},gt[Wg]={size:16,setter:vr},gt[Yg]={size:4,setter:Cf,count:2},gt[Qg]={size:9,setter:Cf,count:3},gt[Zg]={size:16,setter:Cf,count:4};function om(t){const e=t.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const c6=/(\.|\[|]|\w+)/g,l6=t=>t>="0"&&t<="9";function sm(t,e,n,r){const o=t.split(c6).filter(a=>a!=="");let i=0,s="";for(;;){const a=o[i++];s+=a;const c=l6(a[0]),l=c?parseInt(a):a;if(c&&(s+=o[i++]),i===o.length){n[l]=e;break}else{const f=o[i++],h=f==="[",d=n[l]||(h?[]:{});n[l]=d,n=d,r[s]=r[s]||function(p){return function(y){fm(p,y)}}(d),s+=f}}}function u6(t,e){let n=0;function r(a,c,l){const u=c.name.endsWith("[0]"),f=c.type,h=Oe[f];if(!h)throw new Error(`unknown type: 0x${f.toString(16)}`);let d;if(h.bindPoint){const p=n;n+=c.size,u?d=h.arraySetter(t,f,p,l,c.size):d=h.setter(t,f,p,l,c.size)}else h.arraySetter&&u?d=h.arraySetter(t,l):d=h.setter(t,l);return d.location=l,d}const o={},i={},s=t.getProgramParameter(e,Lg);for(let a=0;a<s;++a){const c=t.getActiveUniform(e,a);if(om(c))continue;let l=c.name;l.endsWith("[0]")&&(l=l.substr(0,l.length-3));const u=t.getUniformLocation(e,c.name);if(u){const f=r(e,c,u);o[l]=f,sm(l,f,i,o)}}return o}function f6(t,e){const n={},r=t.getProgramParameter(e,mC);for(let o=0;o<r;++o){const i=t.getTransformFeedbackVarying(e,o);n[i.name]={index:o,type:i.type,size:i.size}}return n}function h6(t,e){const n=t.getProgramParameter(e,Lg),r=[],o=[];for(let a=0;a<n;++a){o.push(a),r.push({});const c=t.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],l=a[1];t.getActiveUniforms(e,o,t[c]).forEach(function(u,f){r[f][l]=u})});const i={},s=t.getProgramParameter(e,bC);for(let a=0;a<s;++a){const c=t.getActiveUniformBlockName(e,a),l={index:t.getUniformBlockIndex(e,c),usedByVertexShader:t.getActiveUniformBlockParameter(e,a,yC),usedByFragmentShader:t.getActiveUniformBlockParameter(e,a,wC),size:t.getActiveUniformBlockParameter(e,a,xC),uniformIndices:t.getActiveUniformBlockParameter(e,a,vC)};l.used=l.usedByVertexShader||l.usedByFragmentShader,i[c]=l}return{blockSpecs:i,uniformData:r}}const am=/\[\d+\]\.$/,d6=(t,e)=>((t+(e-1))/e|0)*e;function p6(t,e,n,r){if(e||n){r=r||1;const i=t.length/4;return function(s){let a=0,c=0;for(let l=0;l<i;++l){for(let u=0;u<r;++u)t[a++]=s[c++];a+=4-r}}}else return function(o){o.length?t.set(o):t[0]=o}}function g6(t,e,n,r){const o=n.blockSpecs,i=n.uniformData,s=o[r];if(!s)return hC("no uniform block object named:",r),{name:r,uniforms:{}};const a=new ArrayBuffer(s.size),c=t.createBuffer(),l=s.index;t.bindBuffer(vf,c),t.uniformBlockBinding(e,s.index,l);let u=r+".";am.test(u)&&(u=u.replace(am,"."));const f={},h={},d={};return s.uniformIndices.forEach(function(p){const y=i[p];let v=y.name;v.startsWith(u)&&(v=v.substr(u.length));const b=v.endsWith("[0]");b&&(v=v.substr(0,v.length-3));const A=Oe[y.type],S=A.Type,E=b?d6(A.size,16)*y.size:A.size*y.size,I=new S(a,y.offset,E/S.BYTES_PER_ELEMENT);f[v]=I;const _=p6(I,b,A.rows,A.cols);h[v]=_,sm(v,_,d,h)}),{name:r,array:a,asFloat:new Float32Array(a),buffer:c,uniforms:f,setters:h}}function cm(t,e,n){return g6(t,e.program,e.uniformBlockSpec,n)}function lm(t,e,n){const o=(e.uniformBlockSpec||e).blockSpecs[n.name];if(o){const i=o.index;return t.bindBufferRange(vf,i,n.buffer,n.offset||0,n.array.byteLength),!0}return!1}function um(t,e,n){lm(t,e,n)&&t.bufferData(vf,n.array,dC)}function qs(t,e){const n=t.setters;for(const r in e){const o=n[r];if(o){const i=e[r];o(i)}}}function fm(t,e){for(const n in e){const r=t[n];typeof r=="function"?r(e[n]):fm(t[n],e[n])}}function ci(t,...e){const n=t.uniformSetters||t,r=e.length;for(let o=0;o<r;++o){const i=e[o];if(Array.isArray(i)){const s=i.length;for(let a=0;a<s;++a)ci(n,i[a])}else for(const s in i){const a=n[s];a&&a(i[s])}}}function m6(t,e){const n={},r=t.getProgramParameter(e,gC);for(let o=0;o<r;++o){const i=t.getActiveAttrib(e,o);if(om(i))continue;const s=t.getAttribLocation(e,i.name),a=gt[i.type],c=a.setter(t,s,a);c.location=s,n[i.name]=c}return n}function b6(t,e){for(const n in e){const r=t[n];r&&r(e[n])}}function li(t,e,n){n.vertexArrayObject?t.bindVertexArray(n.vertexArrayObject):(b6(e.attribSetters||e,n.attribs),n.indices&&t.bindBuffer(pC,n.indices))}function y6(t,e){const n=u6(t,e),r=m6(t,e),o={program:e,uniformSetters:n,attribSetters:r};return eo(t)&&(o.uniformBlockSpec=h6(t,e),o.transformFeedbackInfo=f6(t,e)),o}const w6=4,hm=5123;function Kc(t,e,n,r,o,i){n=n===void 0?w6:n;const s=e.indices,a=e.elementType,c=r===void 0?e.numElements:r;o=o===void 0?0:o,a||s?i!==void 0?t.drawElementsInstanced(n,c,a===void 0?hm:e.elementType,o,i):t.drawElements(n,c,a===void 0?hm:e.elementType,o):i!==void 0?t.drawArraysInstanced(n,o,c,i):t.drawArrays(n,o,c)}const x6=36160,ui=36161,v6=3553,A6=5121,E6=6402,S6=6408,C6=33190,I6=36012,T6=35056,D6=36013,B6=32854,k6=32855,_6=36194,dm=33189,pm=6401,gm=36168,If=34041,Tf=36064,Jc=36096,mm=36128,Df=33306,Bf=33071,kf=9729,bm=[{format:S6,type:A6,min:kf,wrap:Bf},{format:If}],wn={};wn[If]=Df,wn[pm]=mm,wn[gm]=mm,wn[E6]=Jc,wn[dm]=Jc,wn[C6]=Jc,wn[I6]=Jc,wn[T6]=Df,wn[D6]=Df;function R6(t,e){return wn[t]||wn[e]}const Ar={};Ar[B6]=!0,Ar[k6]=!0,Ar[_6]=!0,Ar[If]=!0,Ar[dm]=!0,Ar[pm]=!0,Ar[gm]=!0;function F6(t){return Ar[t]}const M6=32;function P6(t){return t>=Tf&&t<Tf+M6}function L6(t,e,n,r){const o=x6,i=t.createFramebuffer();t.bindFramebuffer(o,i),n=n||t.drawingBufferWidth,r=r||t.drawingBufferHeight,e=e||bm;const s=[],a={framebuffer:i,attachments:[],width:n,height:r};return e.forEach(function(c,l){let u=c.attachment;const f=c.samples,h=c.format;let d=c.attachmentPoint||R6(h,c.internalFormat);if(d||(d=Tf+l),P6(d)&&s.push(d),!u)if(f!==void 0||F6(h))u=t.createRenderbuffer(),t.bindRenderbuffer(ui,u),f>1?t.renderbufferStorageMultisample(ui,f,h,n,r):t.renderbufferStorage(ui,h,n,r);else{const p=Object.assign({},c);p.width=n,p.height=r,p.auto===void 0&&(p.auto=!1,p.min=p.min||p.minMag||kf,p.mag=p.mag||p.minMag||kf,p.wrapS=p.wrapS||p.wrap||Bf,p.wrapT=p.wrapT||p.wrap||Bf),u=Vs(t,p)}if(cg(t,u))t.framebufferRenderbuffer(o,d,ui,u);else if(Rc(t,u))c.layer!==void 0?t.framebufferTextureLayer(o,d,u,c.level||0,c.layer):t.framebufferTexture2D(o,d,c.target||v6,u,c.level||0);else throw new Error("unknown attachment type");a.attachments.push(u)}),t.drawBuffers&&t.drawBuffers(s),a}function O6(t,e,n,r,o){r=r||t.drawingBufferWidth,o=o||t.drawingBufferHeight,e.width=r,e.height=o,n=n||bm,n.forEach(function(i,s){const a=e.attachments[s],c=i.format,l=i.samples;if(l!==void 0||cg(t,a))t.bindRenderbuffer(ui,a),l>1?t.renderbufferStorageMultisample(ui,l,c,r,o):t.renderbufferStorage(ui,c,r,o);else if(Rc(t,a))fC(t,a,i,r,o);else throw new Error("unknown attachment type")})}function N6(t,e,n){const r=t.createVertexArray();return t.bindVertexArray(r),e.length||(e=[e]),e.forEach(function(o){li(t,o,n)}),t.bindVertexArray(null),{numElements:n.numElements,elementType:n.elementType,vertexArrayObject:r}}const z6=/^(.*?)_/;function U6(t,e){uf(t,0);const n=t.getExtension(e);if(n){const r={},o=z6.exec(e)[1],i="_"+o;for(const s in n){const a=n[s],c=typeof a=="function",l=c?o:i;let u=s;s.endsWith(l)&&(u=s.substring(0,s.length-l.length)),t[u]!==void 0?!c&&t[u]!==a&&ag(u,t[u],a,s):c?t[u]=function(f){return function(){return f.apply(n,arguments)}}(a):(t[u]=a,r[u]=a)}r.constructor={name:n.constructor.name},uf(r,0)}return n}const ym=["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 wm(t){for(let e=0;e<ym.length;++e)U6(t,ym[e])}function G6(t,e){const n=["webgl2","webgl","experimental-webgl"];let r=null;for(let o=0;o<n.length;++o)if(r=t.getContext(n[o],e),r){wm(r);break}return r}function H6(t,e){return G6(t,e)}const V6=`out lowp vec4 vFillColor;out lowp vec4 vStrokeColor;out float vHalfStrokeWidth;out vec4 vCornerRadii;
|
|
239
239
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
240
240
|
out vec2 vPosInPixels;
|
|
241
241
|
#endif
|
|
@@ -243,7 +243,7 @@ out vec2 vHalfSizeInPixels;/***Clamps the minimumSize and returns an opacity tha
|
|
|
243
243
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
244
244
|
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);
|
|
245
245
|
#endif
|
|
246
|
-
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,
|
|
246
|
+
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,q6=`#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
247
247
|
in vec2 vPosInPixels;
|
|
248
248
|
#endif
|
|
249
249
|
in vec2 vHalfSizeInPixels;in lowp vec4 vFillColor;in lowp vec4 vStrokeColor;in float vHalfStrokeWidth;in vec4 vCornerRadii;out lowp vec4 fragColor;
|
|
@@ -269,25 +269,25 @@ if(vHalfStrokeWidth>0.0&&uHatchPattern>0){d=max(d,-pattern());}fragColor=distanc
|
|
|
269
269
|
#else
|
|
270
270
|
fragColor=vFillColor;if(uPickingEnabled){fragColor=vPickingColor;}
|
|
271
271
|
#endif
|
|
272
|
-
}`,
|
|
272
|
+
}`,j6=`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;
|
|
273
273
|
#pragma markUniforms
|
|
274
|
-
};`;function co(t,e,n){return t.fields=e||[],t.fname=n,t}function j6(t){return t.length===1?W6(t[0]):Y6(t)}const W6=t=>function(e){return e[t]},Y6=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function kf(t){throw Error(t)}function Q6(t){const e=[],n=t.length;let r=null,o=0,i="",s,a,c;t=t+"";function l(){e.push(i+t.substring(s,a)),i="",s=a+1}for(s=a=0;a<n;++a)if(c=t[a],c==="\\")i+=t.substring(s,a++),s=a;else if(c===r)l(),r=null,o=-1;else{if(r)continue;s===o&&c==='"'||s===o&&c==="'"?(s=a+1,r=c):c==="."&&!o?a>s?l():s=a+1:c==="["?(a>s&&l(),o=s=a+1):c==="]"&&(o||kf("Access path missing open bracket: "+t),o>0&&l(),o=0,s=a+1)}return o&&kf("Access path missing closing bracket: "+t),r&&kf("Access path missing closing quote: "+t),a>s&&(a++,l()),e}function Z6(t,e,n){const r=Q6(t);return t=r.length===1?r[0]:t,co(j6(r),[t],t)}Z6("id"),co(t=>t,[],"identity"),co(()=>0,[],"zero"),co(()=>1,[],"one"),co(()=>!0,[],"true"),co(()=>!1,[],"false");var wm=Array.isArray;function xm(t){return t[t.length-1]}function X6(t){return t==null||t===""?null:+t}function K6(t){return t!=null?wm(t)?t:[t]:[]}function J6(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}function Pn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Er(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const _f=Symbol("implicit");function Rf(){var t=new Wn,e=[],n=[],r=_f;function o(i){let s=t.get(i);if(s===void 0){if(r!==_f)return r;t.set(i,s=e.push(i)-1)}return n[s%n.length]}return o.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Wn;for(const s of i)t.has(s)||t.set(s,e.push(s)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Rf(e,n).unknown(r)},Pn.apply(o,arguments),o}function lo(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function qs(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Sr(){}var ui=.7,uo=1/ui,fo="\\s*([+-]?\\d+)\\s*",js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$6=/^#([0-9a-f]{3,8})$/,e8=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),t8=new RegExp(`^rgb\\(${Ln},${Ln},${Ln}\\)$`),n8=new RegExp(`^rgba\\(${fo},${fo},${fo},${js}\\)$`),r8=new RegExp(`^rgba\\(${Ln},${Ln},${Ln},${js}\\)$`),i8=new RegExp(`^hsl\\(${js},${Ln},${Ln}\\)$`),o8=new RegExp(`^hsla\\(${js},${Ln},${Ln},${js}\\)$`),vm={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};lo(Sr,Cr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Am,formatHex:Am,formatHex8:s8,formatHsl:a8,formatRgb:Em,toString:Em});function Am(){return this.rgb().formatHex()}function s8(){return this.rgb().formatHex8()}function a8(){return Dm(this).formatHsl()}function Em(){return this.rgb().formatRgb()}function Cr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=$6.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Sm(e):n===3?new vt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Jc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Jc(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=e8.exec(t))?new vt(e[1],e[2],e[3],1):(e=t8.exec(t))?new vt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=n8.exec(t))?Jc(e[1],e[2],e[3],e[4]):(e=r8.exec(t))?Jc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=i8.exec(t))?Tm(e[1],e[2]/100,e[3]/100,1):(e=o8.exec(t))?Tm(e[1],e[2]/100,e[3]/100,e[4]):vm.hasOwnProperty(t)?Sm(vm[t]):t==="transparent"?new vt(NaN,NaN,NaN,0):null}function Sm(t){return new vt(t>>16&255,t>>8&255,t&255,1)}function Jc(t,e,n,r){return r<=0&&(t=e=n=NaN),new vt(t,e,n,r)}function Ff(t){return t instanceof Sr||(t=Cr(t)),t?(t=t.rgb(),new vt(t.r,t.g,t.b,t.opacity)):new vt}function $c(t,e,n,r){return arguments.length===1?Ff(t):new vt(t,e,n,r??1)}function vt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}lo(vt,$c,qs(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ui:Math.pow(ui,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new vt(fi(this.r),fi(this.g),fi(this.b),el(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:Cm,formatHex:Cm,formatHex8:c8,formatRgb:Im,toString:Im}));function Cm(){return`#${hi(this.r)}${hi(this.g)}${hi(this.b)}`}function c8(){return`#${hi(this.r)}${hi(this.g)}${hi(this.b)}${hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Im(){const t=el(this.opacity);return`${t===1?"rgb(":"rgba("}${fi(this.r)}, ${fi(this.g)}, ${fi(this.b)}${t===1?")":`, ${t})`}`}function el(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hi(t){return t=fi(t),(t<16?"0":"")+t.toString(16)}function Tm(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xn(t,e,n,r)}function Dm(t){if(t instanceof xn)return new xn(t.h,t.s,t.l,t.opacity);if(t instanceof Sr||(t=Cr(t)),!t)return new xn;if(t instanceof xn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),s=NaN,a=i-o,c=(i+o)/2;return a?(e===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-e)/a+2:s=(e-n)/a+4,a/=c<.5?i+o:2-i-o,s*=60):a=c>0&&c<1?0:s,new xn(s,a,c,t.opacity)}function Mf(t,e,n,r){return arguments.length===1?Dm(t):new xn(t,e,n,r??1)}function xn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}lo(xn,Mf,qs(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new xn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ui:Math.pow(ui,t),new xn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new vt(Pf(t>=240?t-240:t+120,o,r),Pf(t,o,r),Pf(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new xn(Bm(this.h),tl(this.s),tl(this.l),el(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 t=el(this.opacity);return`${t===1?"hsl(":"hsla("}${Bm(this.h)}, ${tl(this.s)*100}%, ${tl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Bm(t){return t=(t||0)%360,t<0?t+360:t}function tl(t){return Math.max(0,Math.min(1,t||0))}function Pf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const km=Math.PI/180,_m=180/Math.PI,nl=18,Rm=.96422,Fm=1,Mm=.82521,Pm=4/29,ho=6/29,Lm=3*ho*ho,l8=ho*ho*ho;function Om(t){if(t instanceof On)return new On(t.l,t.a,t.b,t.opacity);if(t instanceof $n)return Nm(t);t instanceof vt||(t=Ff(t));var e=Uf(t.r),n=Uf(t.g),r=Uf(t.b),o=Of((.2225045*e+.7168786*n+.0606169*r)/Fm),i,s;return e===n&&n===r?i=s=o:(i=Of((.4360747*e+.3850649*n+.1430804*r)/Rm),s=Of((.0139322*e+.0971045*n+.7141733*r)/Mm)),new On(116*o-16,500*(i-o),200*(o-s),t.opacity)}function Lf(t,e,n,r){return arguments.length===1?Om(t):new On(t,e,n,r??1)}function On(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}lo(On,Lf,qs(Sr,{brighter(t){return new On(this.l+nl*(t??1),this.a,this.b,this.opacity)},darker(t){return new On(this.l-nl*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Rm*Nf(e),t=Fm*Nf(t),n=Mm*Nf(n),new vt(zf(3.1338561*e-1.6168667*t-.4906146*n),zf(-.9787684*e+1.9161415*t+.033454*n),zf(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Of(t){return t>l8?Math.pow(t,1/3):t/Lm+Pm}function Nf(t){return t>ho?t*t*t:Lm*(t-Pm)}function zf(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Uf(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function u8(t){if(t instanceof $n)return new $n(t.h,t.c,t.l,t.opacity);if(t instanceof On||(t=Om(t)),t.a===0&&t.b===0)return new $n(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*_m;return new $n(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Gf(t,e,n,r){return arguments.length===1?u8(t):new $n(t,e,n,r??1)}function $n(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Nm(t){if(isNaN(t.h))return new On(t.l,0,0,t.opacity);var e=t.h*km;return new On(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}lo($n,Gf,qs(Sr,{brighter(t){return new $n(this.h,this.c,this.l+nl*(t??1),this.opacity)},darker(t){return new $n(this.h,this.c,this.l-nl*(t??1),this.opacity)},rgb(){return Nm(this).rgb()}}));var zm=-.14861,Hf=1.78277,Vf=-.29227,rl=-.90649,Ws=1.97294,Um=Ws*rl,Gm=Ws*Hf,Hm=Hf*Vf-rl*zm;function f8(t){if(t instanceof di)return new di(t.h,t.s,t.l,t.opacity);t instanceof vt||(t=Ff(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(Hm*r+Um*e-Gm*n)/(Hm+Um-Gm),i=r-o,s=(Ws*(n-o)-Vf*i)/rl,a=Math.sqrt(s*s+i*i)/(Ws*o*(1-o)),c=a?Math.atan2(s,i)*_m-120:NaN;return new di(c<0?c+360:c,a,o,t.opacity)}function qf(t,e,n,r){return arguments.length===1?f8(t):new di(t,e,n,r??1)}function di(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}lo(di,qf,qs(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new di(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ui:Math.pow(ui,t),new di(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*km,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new vt(255*(e+n*(zm*r+Hf*o)),255*(e+n*(Vf*r+rl*o)),255*(e+n*(Ws*r)),this.opacity)}}));function Vm(t,e,n,r,o){var i=t*t,s=i*t;return((1-3*t+3*i-s)*e+(4-6*i+3*s)*n+(1+3*t+3*i-3*s)*r+s*o)/6}function qm(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],s=r>0?t[r-1]:2*o-i,a=r<e-1?t[r+2]:2*i-o;return Vm((n-r/e)*e,s,o,i,a)}}function jm(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],s=t[(r+1)%e],a=t[(r+2)%e];return Vm((n-r/e)*e,o,i,s,a)}}const il=t=>()=>t;function Wm(t,e){return function(n){return t+n*e}}function h8(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ol(t,e){var n=e-t;return n?Wm(t,n>180||n<-180?n-360*Math.round(n/360):n):il(isNaN(t)?e:t)}function d8(t){return(t=+t)==1?At:function(e,n){return n-e?h8(e,n,t):il(isNaN(e)?n:e)}}function At(t,e){var n=e-t;return n?Wm(t,n):il(isNaN(t)?e:t)}const jf=function t(e){var n=d8(e);function r(o,i){var s=n((o=$c(o)).r,(i=$c(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=At(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=c(u),o.opacity=l(u),o+""}}return r.gamma=t,r}(1);function Ym(t){return function(e){var n=e.length,r=new Array(n),o=new Array(n),i=new Array(n),s,a;for(s=0;s<n;++s)a=$c(e[s]),r[s]=a.r||0,o[s]=a.g||0,i[s]=a.b||0;return r=t(r),o=t(o),i=t(i),a.opacity=1,function(c){return a.r=r(c),a.g=o(c),a.b=i(c),a+""}}}var p8=Ym(qm),g8=Ym(jm);function Wf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=t[o]*(1-i)+e[o]*i;return r}}function Qm(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function m8(t,e){return(Qm(e)?Wf:Zm)(t,e)}function Zm(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)o[s]=Ir(t[s],e[s]);for(;s<n;++s)i[s]=e[s];return function(a){for(s=0;s<r;++s)i[s]=o[s](a);return i}}function Xm(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function vn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Km(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=Ir(t[o],e[o]):r[o]=e[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var Yf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qf=new RegExp(Yf.source,"g");function y8(t){return function(){return t}}function b8(t){return function(e){return t(e)+""}}function Jm(t,e){var n=Yf.lastIndex=Qf.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(t=t+"",e=e+"";(r=Yf.exec(t))&&(o=Qf.exec(e));)(i=o.index)>n&&(i=e.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,c.push({i:s,x:vn(r,o)})),n=Qf.lastIndex;return n<e.length&&(i=e.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?b8(c[0].x):y8(e):(e=c.length,function(l){for(var u=0,f;u<e;++u)a[(f=c[u]).i]=f.x(l);return a.join("")})}function Ir(t,e){var n=typeof e,r;return e==null||n==="boolean"?il(e):(n==="number"?vn:n==="string"?(r=Cr(e))?(e=r,jf):Jm:e instanceof Cr?jf:e instanceof Date?Xm:Qm(e)?Wf:Array.isArray(e)?Zm:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Km:vn)(t,e)}function w8(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function x8(t,e){var n=ol(+t,+e);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function Ys(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var $m=180/Math.PI,Zf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e1(t,e,n,r,o,i){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*$m,skewX:Math.atan(c)*$m,scaleX:s,scaleY:a}}var sl;function v8(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Zf:e1(e.a,e.b,e.c,e.d,e.e,e.f)}function A8(t){return t==null||(sl||(sl=document.createElementNS("http://www.w3.org/2000/svg","g")),sl.setAttribute("transform",t),!(t=sl.transform.baseVal.consolidate()))?Zf:(t=t.matrix,e1(t.a,t.b,t.c,t.d,t.e,t.f))}function t1(t,e,n,r){function o(l){return l.length?l.pop()+" ":""}function i(l,u,f,h,d,p){if(l!==f||u!==h){var b=d.push("translate(",null,e,null,n);p.push({i:b-4,x:vn(l,f)},{i:b-2,x:vn(u,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function s(l,u,f,h){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:f.push(o(f)+"rotate(",null,r)-2,x:vn(l,u)})):u&&f.push(o(f)+"rotate("+u+r)}function a(l,u,f,h){l!==u?h.push({i:f.push(o(f)+"skewX(",null,r)-2,x:vn(l,u)}):u&&f.push(o(f)+"skewX("+u+r)}function c(l,u,f,h,d,p){if(l!==f||u!==h){var b=d.push(o(d)+"scale(",null,",",null,")");p.push({i:b-4,x:vn(l,f)},{i:b-2,x:vn(u,h)})}else(f!==1||h!==1)&&d.push(o(d)+"scale("+f+","+h+")")}return function(l,u){var f=[],h=[];return l=t(l),u=t(u),i(l.translateX,l.translateY,u.translateX,u.translateY,f,h),s(l.rotate,u.rotate,f,h),a(l.skewX,u.skewX,f,h),c(l.scaleX,l.scaleY,u.scaleX,u.scaleY,f,h),l=u=null,function(d){for(var p=-1,b=h.length,v;++p<b;)f[(v=h[p]).i]=v.x(d);return f.join("")}}}var E8=t1(v8,"px, ","px)","deg)"),S8=t1(A8,", ",")",")"),C8=1e-12;function n1(t){return((t=Math.exp(t))+1/t)/2}function I8(t){return((t=Math.exp(t))-1/t)/2}function T8(t){return((t=Math.exp(2*t))-1)/(t+1)}const D8=function t(e,n,r){function o(i,s){var a=i[0],c=i[1],l=i[2],u=s[0],f=s[1],h=s[2],d=u-a,p=f-c,b=d*d+p*p,v,y;if(b<C8)y=Math.log(h/l)/e,v=function(B){return[a+B*d,c+B*p,l*Math.exp(e*B*y)]};else{var A=Math.sqrt(b),S=(h*h-l*l+r*b)/(2*l*n*A),E=(h*h-l*l-r*b)/(2*h*n*A),I=Math.log(Math.sqrt(S*S+1)-S),_=Math.log(Math.sqrt(E*E+1)-E);y=(_-I)/e,v=function(B){var N=B*y,F=n1(I),M=l/(n*A)*(F*T8(e*N+I)-I8(I));return[a+M*d,c+M*p,l*F/n1(e*N+I)]}}return v.duration=y*1e3*e/Math.SQRT2,v}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,c=a*a;return t(s,a,c)},o}(Math.SQRT2,2,4);function r1(t){return function(e,n){var r=t((e=Mf(e)).h,(n=Mf(n)).h),o=At(e.s,n.s),i=At(e.l,n.l),s=At(e.opacity,n.opacity);return function(a){return e.h=r(a),e.s=o(a),e.l=i(a),e.opacity=s(a),e+""}}}const B8=r1(ol);var k8=r1(At);function _8(t,e){var n=At((t=Lf(t)).l,(e=Lf(e)).l),r=At(t.a,e.a),o=At(t.b,e.b),i=At(t.opacity,e.opacity);return function(s){return t.l=n(s),t.a=r(s),t.b=o(s),t.opacity=i(s),t+""}}function i1(t){return function(e,n){var r=t((e=Gf(e)).h,(n=Gf(n)).h),o=At(e.c,n.c),i=At(e.l,n.l),s=At(e.opacity,n.opacity);return function(a){return e.h=r(a),e.c=o(a),e.l=i(a),e.opacity=s(a),e+""}}}const R8=i1(ol);var F8=i1(At);function o1(t){return function e(n){n=+n;function r(o,i){var s=t((o=qf(o)).h,(i=qf(i)).h),a=At(o.s,i.s),c=At(o.l,i.l),l=At(o.opacity,i.opacity);return function(u){return o.h=s(u),o.s=a(u),o.l=c(Math.pow(u,n)),o.opacity=l(u),o+""}}return r.gamma=e,r}(1)}const M8=o1(ol);var P8=o1(At);function Xf(t,e){e===void 0&&(e=t,t=Ir);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(s){var a=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return i[a](s-a)}}function L8(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}const O8=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Ir,interpolateArray:m8,interpolateBasis:qm,interpolateBasisClosed:jm,interpolateCubehelix:M8,interpolateCubehelixLong:P8,interpolateDate:Xm,interpolateDiscrete:w8,interpolateHcl:R8,interpolateHclLong:F8,interpolateHsl:B8,interpolateHslLong:k8,interpolateHue:x8,interpolateLab:_8,interpolateNumber:vn,interpolateNumberArray:Wf,interpolateObject:Km,interpolateRgb:jf,interpolateRgbBasis:p8,interpolateRgbBasisClosed:g8,interpolateRound:Ys,interpolateString:Jm,interpolateTransformCss:E8,interpolateTransformSvg:S8,interpolateZoom:D8,piecewise:Xf,quantize:L8},Symbol.toStringTag,{value:"Module"}));function N8(t){return function(){return t}}function Kf(t){return+t}var s1=[0,1];function Yt(t){return t}function Jf(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:N8(isNaN(e)?NaN:.5)}function z8(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function U8(t,e,n){var r=t[0],o=t[1],i=e[0],s=e[1];return o<r?(r=Jf(o,r),i=n(s,i)):(r=Jf(r,o),i=n(i,s)),function(a){return i(r(a))}}function G8(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)o[s]=Jf(t[s],t[s+1]),i[s]=n(e[s],e[s+1]);return function(a){var c=gr(t,a,1,r)-1;return i[c](o[c](a))}}function Qs(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function al(){var t=s1,e=s1,n=Ir,r,o,i,s=Yt,a,c,l;function u(){var h=Math.min(t.length,e.length);return s!==Yt&&(s=z8(t[0],t[h-1])),a=h>2?G8:U8,c=l=null,f}function f(h){return h==null||isNaN(h=+h)?i:(c||(c=a(t.map(r),e,n)))(r(s(h)))}return f.invert=function(h){return s(o((l||(l=a(e,t.map(r),vn)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Kf),u()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=Ys,u()},f.clamp=function(h){return arguments.length?(s=h?!0:Yt,u()):s!==Yt},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,d){return r=h,o=d,u()}}function a1(){return al()(Yt,Yt)}function c1(t,e,n,r){var o=ti(t,e,n),i;switch(r=Yi(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=h3(o,s))&&(r.precision=i),_p(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=d3(o,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=f3(o))&&(r.precision=i-(r.type==="%")*2);break}}return Dt(r)}function pi(t){var e=t.domain;return t.ticks=function(n){var r=e();return mc(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var o=e();return c1(o[0],o[o.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),o=0,i=r.length-1,s=r[o],a=r[i],c,l,u=10;for(a<s&&(l=s,s=a,a=l,l=o,o=i,i=l);u-- >0;){if(l=Mu(s,a,n),l===c)return r[o]=s,r[i]=a,e(r);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;c=l}return t},t}function l1(){var t=a1();return t.copy=function(){return Qs(t,l1())},Pn.apply(t,arguments),pi(t)}function u1(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,Kf),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return u1(t).unknown(e)},t=arguments.length?Array.from(t,Kf):[0,1],pi(n)}function f1(t,e){t=t.slice();var n=0,r=t.length-1,o=t[n],i=t[r],s;return i<o&&(s=n,n=r,r=s,s=o,o=i,i=s),t[n]=e.floor(o),t[r]=e.ceil(i),t}function h1(t){return Math.log(t)}function d1(t){return Math.exp(t)}function H8(t){return-Math.log(-t)}function V8(t){return-Math.exp(-t)}function q8(t){return isFinite(t)?+("1e"+t):t<0?0:t}function j8(t){return t===10?q8:t===Math.E?Math.exp:e=>Math.pow(t,e)}function W8(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function p1(t){return(e,n)=>-t(-e,n)}function $f(t){const e=t(h1,d1),n=e.domain;let r=10,o,i;function s(){return o=W8(r),i=j8(r),n()[0]<0?(o=p1(o),i=p1(i),t(H8,V8)):t(h1,d1),e}return e.base=function(a){return arguments.length?(r=+a,s()):r},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const c=n();let l=c[0],u=c[c.length-1];const f=u<l;f&&([l,u]=[u,l]);let h=o(l),d=o(u),p,b;const v=a==null?10:+a;let y=[];if(!(r%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(p=1;p<r;++p)if(b=h<0?p/i(-h):p*i(h),!(b<l)){if(b>u)break;y.push(b)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(b=h>0?p/i(-h):p*i(h),!(b<l)){if(b>u)break;y.push(b)}y.length*2<v&&(y=mc(l,u,v))}else y=mc(h,d,Math.min(d-h,v)).map(i);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=Yi(c)).precision==null&&(c.trim=!0),c=Dt(c)),a===1/0)return c;const l=Math.max(1,r*a/e.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*r<r-.5&&(f*=r),f<=l?c(u):""}},e.nice=()=>n(f1(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),e}function eh(){const t=$f(al()).domain([1,10]);return t.copy=()=>Qs(t,eh()).base(t.base()),Pn.apply(t,arguments),t}function g1(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function m1(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function th(t){var e=1,n=t(g1(e),m1(e));return n.constant=function(r){return arguments.length?t(g1(e=+r),m1(e)):e},pi(n)}function y1(){var t=th(al());return t.copy=function(){return Qs(t,y1()).constant(t.constant())},Pn.apply(t,arguments)}function b1(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Y8(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Q8(t){return t<0?-t*t:t*t}function nh(t){var e=t(Yt,Yt),n=1;function r(){return n===1?t(Yt,Yt):n===.5?t(Y8,Q8):t(b1(n),b1(1/n))}return e.exponent=function(o){return arguments.length?(n=+o,r()):n},pi(e)}function rh(){var t=nh(al());return t.copy=function(){return Qs(t,rh()).exponent(t.exponent())},Pn.apply(t,arguments),t}function Z8(){return rh.apply(null,arguments).exponent(.5)}function w1(){var t=[],e=[],n=[],r;function o(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=Sp(t,s/a);return i}function i(s){return s==null||isNaN(s=+s)?r:e[gr(n,s)]}return i.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},i.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(ei),o()},i.range=function(s){return arguments.length?(e=Array.from(s),o()):e.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return w1().domain(t).range(e).unknown(r)},Pn.apply(i,arguments)}function x1(){var t=0,e=1,n=1,r=[.5],o=[0,1],i;function s(c){return c!=null&&c<=c?o[gr(r,c,0,n)]:i}function a(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},s.range=function(c){return arguments.length?(n=(o=Array.from(c)).length-1,a()):o.slice()},s.invertExtent=function(c){var l=o.indexOf(c);return l<0?[NaN,NaN]:l<1?[t,r[0]]:l>=n?[r[n-1],e]:[r[l-1],r[l]]},s.unknown=function(c){return arguments.length&&(i=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return x1().domain([t,e]).range(o).unknown(i)},Pn.apply(pi(s),arguments)}function v1(){var t=[.5],e=[0,1],n,r=1;function o(i){return i!=null&&i<=i?e[gr(t,i,0,r)]:n}return o.domain=function(i){return arguments.length?(t=Array.from(i),r=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(i){return arguments.length?(e=Array.from(i),r=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(i){var s=e.indexOf(i);return[t[s-1],t[s]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return v1().domain(t).range(e).unknown(n)},Pn.apply(o,arguments)}function X8(t){return new Date(t)}function K8(t){return t instanceof Date?+t:+new Date(+t)}function ih(t,e,n,r,o,i,s,a,c,l){var u=a1(),f=u.invert,h=u.domain,d=l(".%L"),p=l(":%S"),b=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),A=l("%b %d"),S=l("%B"),E=l("%Y");function I(_){return(c(_)<_?d:a(_)<_?p:s(_)<_?b:i(_)<_?v:r(_)<_?o(_)<_?y:A:n(_)<_?S:E)(_)}return u.invert=function(_){return new Date(f(_))},u.domain=function(_){return arguments.length?h(Array.from(_,K8)):h().map(X8)},u.ticks=function(_){var B=h();return t(B[0],B[B.length-1],_??10)},u.tickFormat=function(_,B){return B==null?I:l(B)},u.nice=function(_){var B=h();return(!_||typeof _.range!="function")&&(_=e(B[0],B[B.length-1],_??10)),_?h(f1(B,_)):u},u.copy=function(){return Qs(u,ih(t,e,n,r,o,i,s,a,c,l))},u}function J8(){return Pn.apply(ih(S3,C3,_n,Ki,Es,mr,vc,wc,Xn,ju).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $8(){return Pn.apply(ih(A3,E3,Rn,Ji,Ss,ni,Ac,xc,Xn,Wu).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cl(){var t=0,e=1,n,r,o,i,s=Yt,a=!1,c;function l(f){return f==null||isNaN(f=+f)?c:s(o===0?.5:(f=(i(f)-n)*o,a?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([t,e]=f,n=i(t=+t),r=i(e=+e),o=n===r?0:1/(r-n),l):[t,e]},l.clamp=function(f){return arguments.length?(a=!!f,l):a},l.interpolator=function(f){return arguments.length?(s=f,l):s};function u(f){return function(h){var d,p;return arguments.length?([d,p]=h,s=f(d,p),l):[s(0),s(1)]}}return l.range=u(Ir),l.rangeRound=u(Ys),l.unknown=function(f){return arguments.length?(c=f,l):c},function(f){return i=f,n=f(t),r=f(e),o=n===r?0:1/(r-n),l}}function Tr(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function oh(){var t=pi(cl()(Yt));return t.copy=function(){return Tr(t,oh())},Er.apply(t,arguments)}function A1(){var t=$f(cl()).domain([1,10]);return t.copy=function(){return Tr(t,A1()).base(t.base())},Er.apply(t,arguments)}function E1(){var t=th(cl());return t.copy=function(){return Tr(t,E1()).constant(t.constant())},Er.apply(t,arguments)}function sh(){var t=nh(cl());return t.copy=function(){return Tr(t,sh()).exponent(t.exponent())},Er.apply(t,arguments)}function e5(){return sh.apply(null,arguments).exponent(.5)}function ll(){var t=0,e=.5,n=1,r=1,o,i,s,a,c,l=Yt,u,f=!1,h;function d(b){return isNaN(b=+b)?h:(b=.5+((b=+u(b))-i)*(r*b<r*i?a:c),l(f?Math.max(0,Math.min(1,b)):b))}d.domain=function(b){return arguments.length?([t,e,n]=b,o=u(t=+t),i=u(e=+e),s=u(n=+n),a=o===i?0:.5/(i-o),c=i===s?0:.5/(s-i),r=i<o?-1:1,d):[t,e,n]},d.clamp=function(b){return arguments.length?(f=!!b,d):f},d.interpolator=function(b){return arguments.length?(l=b,d):l};function p(b){return function(v){var y,A,S;return arguments.length?([y,A,S]=v,l=Xf(b,[y,A,S]),d):[l(0),l(.5),l(1)]}}return d.range=p(Ir),d.rangeRound=p(Ys),d.unknown=function(b){return arguments.length?(h=b,d):h},function(b){return u=b,o=b(t),i=b(e),s=b(n),a=o===i?0:.5/(i-o),c=i===s?0:.5/(s-i),r=i<o?-1:1,d}}function S1(){var t=pi(ll()(Yt));return t.copy=function(){return Tr(t,S1())},Er.apply(t,arguments)}function C1(){var t=$f(ll()).domain([.1,1,10]);return t.copy=function(){return Tr(t,C1()).base(t.base())},Er.apply(t,arguments)}function I1(){var t=th(ll());return t.copy=function(){return Tr(t,I1()).constant(t.constant())},Er.apply(t,arguments)}function ah(){var t=nh(ll());return t.copy=function(){return Tr(t,ah()).exponent(t.exponent())},Er.apply(t,arguments)}function t5(){return ah.apply(null,arguments).exponent(.5)}function Nn(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}const n5=Nn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),r5=Nn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),i5=Nn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),o5=Nn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),s5=Nn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),a5=Nn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),c5=Nn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),l5=Nn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),u5=Nn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),f5=Nn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),h5="year",ch="quarter";[h5,ch,"month","week","date","day","dayofyear","hours","minutes","seconds","milliseconds"].reduce((t,e,n)=>(t[e]=1+n,t),{}),ch+"",Ki.every(3),ch+"",Ji.every(3);function lh(t,e,n){const r=t-e+n*2;return t?r>0?r:1:0}const d5="identity",po="linear",Dr="log",Zs="pow",Xs="sqrt",ul="symlog",T1="time",D1="utc",zn="sequential",go="diverging",uh="quantile",B1="quantize",k1="threshold",fh="ordinal",hh="point",_1="band",dh="bin-ordinal",yt="continuous",Ks="discrete",Js="discretizing",sn="interpolating",R1="temporal";function p5(t){return function(e){let n=e[0],r=e[1],o;return r<n&&(o=n,n=r,r=o),[t.invert(n),t.invert(r)]}}function g5(t){return function(e){const n=t.range();let r=e[0],o=e[1],i=-1,s,a,c,l;for(o<r&&(a=r,r=o,o=a),c=0,l=n.length;c<l;++c)n[c]>=r&&n[c]<=o&&(i<0&&(i=c),s=c);if(!(i<0))return r=t.invertExtent(n[i]),o=t.invertExtent(n[s]),[r[0]===void 0?r[1]:r[0],o[1]===void 0?o[0]:o[1]]}}function ph(){const t=Rf().unknown(void 0),e=t.domain,n=t.range;let r=[0,1],o,i,s=!1,a=0,c=0,l=.5;delete t.unknown;function u(){const f=e().length,h=r[1]<r[0],d=r[1-h],p=lh(f,a,c);let b=r[h-0];o=(d-b)/(p||1),s&&(o=Math.floor(o)),b+=(d-b-o*(f-a))*l,i=o*(1-a),s&&(b=Math.round(b),i=Math.round(i));const v=vs(f).map(y=>b+o*y);return n(h?v.reverse():v)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?(r=[+f[0],+f[1]],u()):r.slice()},t.rangeRound=function(f){return r=[+f[0],+f[1]],s=!0,u()},t.bandwidth=function(){return i},t.step=function(){return o},t.round=function(f){return arguments.length?(s=!!f,u()):s},t.padding=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),a=c,u()):a},t.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),u()):a},t.paddingOuter=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),u()):c},t.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),u()):l},t.invertRange=function(f){if(f[0]==null||f[1]==null)return;const h=r[1]<r[0],d=h?n().reverse():n(),p=d.length-1;let b=+f[0],v=+f[1],y,A,S;if(!(b!==b||v!==v)&&(v<b&&(S=b,b=v,v=S),!(v<d[0]||b>r[1-h])))return y=Math.max(0,gr(d,b)-1),A=b===v?y:gr(d,v)-1,b-d[y]>i+1e-10&&++y,h&&(S=y,y=p-A,A=p-S),y>A?void 0:e().slice(y,A+1)},t.invert=function(f){const h=t.invertRange([f,f]);return h&&h[0]},t.copy=function(){return ph().domain(e()).range(r).round(s).paddingInner(a).paddingOuter(c).align(l)},u()}function F1(t){const e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,t.copy=function(){return F1(e())},t}function m5(){return F1(ph().paddingInner(1))}var y5=Array.prototype.map;function b5(t){return y5.call(t,X6)}const w5=Array.prototype.slice;function M1(){let t=[],e=[];function n(r){return r==null||r!==r?void 0:e[(gr(t,r)-1)%e.length]}return n.domain=function(r){return arguments.length?(t=b5(r),n):t.slice()},n.range=function(r){return arguments.length?(e=w5.call(r),n):e.slice()},n.tickFormat=function(r,o){return c1(t[0],xm(t),r??10,o)},n.copy=function(){return M1().domain(n.domain()).range(n.range())},n}const fl=new Map,x5=Symbol("vega_scale");function v5(t){return t[x5]=!0,t}function A5(t,e,n){const r=function(){const i=e();return i.invertRange||(i.invertRange=i.invert?p5(i):i.invertExtent?g5(i):void 0),i.type=t,v5(i)};return r.metadata=J6(K6(n)),r}function Qe(t,e,n){return arguments.length>1?(fl.set(t,A5(t,e,n)),this):E5(t)?fl.get(t):void 0}Qe(d5,u1),Qe(po,l1,yt),Qe(Dr,eh,[yt,Dr]),Qe(Zs,rh,yt),Qe(Xs,Z8,yt),Qe(ul,y1,yt),Qe(T1,J8,[yt,R1]),Qe(D1,$8,[yt,R1]),Qe(zn,oh,[yt,sn]),Qe(`${zn}-${po}`,oh,[yt,sn]),Qe(`${zn}-${Dr}`,A1,[yt,sn,Dr]),Qe(`${zn}-${Zs}`,sh,[yt,sn]),Qe(`${zn}-${Xs}`,e5,[yt,sn]),Qe(`${zn}-${ul}`,E1,[yt,sn]),Qe(`${go}-${po}`,S1,[yt,sn]),Qe(`${go}-${Dr}`,C1,[yt,sn,Dr]),Qe(`${go}-${Zs}`,ah,[yt,sn]),Qe(`${go}-${Xs}`,t5,[yt,sn]),Qe(`${go}-${ul}`,I1,[yt,sn]),Qe(uh,w1,[Js,uh]),Qe(B1,x1,Js),Qe(k1,v1,Js),Qe(dh,M1,[Ks,Js]),Qe(fh,Rf,Ks),Qe(_1,ph,Ks),Qe(hh,m5,Ks);function E5(t){return fl.has(t)}function $s(t,e){const n=fl.get(t);return n&&n.metadata[e]}function Et(t){return $s(t,yt)}function Br(t){return $s(t,Ks)}function gi(t){return $s(t,Js)}function P1(t){return $s(t,Dr)}function hl(t){return $s(t,sn)}function S5(t,e){const n=e[0],r=xm(e)-n;return function(o){return t(n+o*r)}}function dl(t,e,n){return Xf(L1(e||"rgb",n),t)}function C5(t,e){const n=new Array(e),r=e+1;for(let o=0;o<e;)n[o]=t(++o/r);return n}function L1(t,e){const n=O8[I5(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function I5(t){return"interpolate"+t.toLowerCase().split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}const T5={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"},D5={accent:r5,category10:n5,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:i5,observable10:o5,paired:s5,pastel1:a5,pastel2:c5,set1:l5,set2:u5,set3:f5,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function O1(t){if(wm(t))return t;const e=t.length/6|0,n=new Array(e);for(let r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}function N1(t,e){for(const n in t)gh(n,e(t[n]))}const z1={};N1(D5,O1),N1(T5,t=>dl(O1(t)));function gh(t,e){return t=t&&t.toLowerCase(),arguments.length>1?(z1[t]=e,this):z1[t]}const Un=1,kr=2,mh=4;class yh{constructor(e){ge(this,Ri);zt(this,"stats",{count:0,first:null});zt(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),de(this,Ri,nc).call(this),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const n of e.children)this.adopt(n)}insertAsParent(e){var n;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,de(n=this.parent,Ri,nc).call(n),this.parent=void 0,e.addChild(this)}removeChild(e){const n=this.children.indexOf(e);if(n>-1)this.children.splice(n,1),e.parent=void 0,de(this,Ri,nc).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 n=this.children[0];n.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=n,de(e=this.parent,Ri,nc).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 n of this.children)n.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const n=this.children.map(r=>r.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""}
|
|
275
|
-
${n}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}beginBatch(e){for(const n of this.children)n.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){}}
|
|
274
|
+
};`;function co(t,e,n){return t.fields=e||[],t.fname=n,t}function W6(t){return t.length===1?Y6(t[0]):Q6(t)}const Y6=t=>function(e){return e[t]},Q6=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function _f(t){throw Error(t)}function Z6(t){const e=[],n=t.length;let r=null,o=0,i="",s,a,c;t=t+"";function l(){e.push(i+t.substring(s,a)),i="",s=a+1}for(s=a=0;a<n;++a)if(c=t[a],c==="\\")i+=t.substring(s,a++),s=a;else if(c===r)l(),r=null,o=-1;else{if(r)continue;s===o&&c==='"'||s===o&&c==="'"?(s=a+1,r=c):c==="."&&!o?a>s?l():s=a+1:c==="["?(a>s&&l(),o=s=a+1):c==="]"&&(o||_f("Access path missing open bracket: "+t),o>0&&l(),o=0,s=a+1)}return o&&_f("Access path missing closing bracket: "+t),r&&_f("Access path missing closing quote: "+t),a>s&&(a++,l()),e}function X6(t,e,n){const r=Z6(t);return t=r.length===1?r[0]:t,co(W6(r),[t],t)}X6("id"),co(t=>t,[],"identity"),co(()=>0,[],"zero"),co(()=>1,[],"one"),co(()=>!0,[],"true"),co(()=>!1,[],"false");var xm=Array.isArray;function vm(t){return t[t.length-1]}function K6(t){return t==null||t===""?null:+t}function J6(t){return t!=null?xm(t)?t:[t]:[]}function $6(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}function Pn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Er(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const Rf=Symbol("implicit");function Ff(){var t=new Wn,e=[],n=[],r=Rf;function o(i){let s=t.get(i);if(s===void 0){if(r!==Rf)return r;t.set(i,s=e.push(i)-1)}return n[s%n.length]}return o.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Wn;for(const s of i)t.has(s)||t.set(s,e.push(s)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Ff(e,n).unknown(r)},Pn.apply(o,arguments),o}function lo(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function js(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Sr(){}var fi=.7,uo=1/fi,fo="\\s*([+-]?\\d+)\\s*",Ws="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",e8=/^#([0-9a-f]{3,8})$/,t8=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),n8=new RegExp(`^rgb\\(${Ln},${Ln},${Ln}\\)$`),r8=new RegExp(`^rgba\\(${fo},${fo},${fo},${Ws}\\)$`),i8=new RegExp(`^rgba\\(${Ln},${Ln},${Ln},${Ws}\\)$`),o8=new RegExp(`^hsl\\(${Ws},${Ln},${Ln}\\)$`),s8=new RegExp(`^hsla\\(${Ws},${Ln},${Ln},${Ws}\\)$`),Am={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};lo(Sr,Cr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Em,formatHex:Em,formatHex8:a8,formatHsl:c8,formatRgb:Sm,toString:Sm});function Em(){return this.rgb().formatHex()}function a8(){return this.rgb().formatHex8()}function c8(){return Bm(this).formatHsl()}function Sm(){return this.rgb().formatRgb()}function Cr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=e8.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Cm(e):n===3?new vt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?$c(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?$c(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=t8.exec(t))?new vt(e[1],e[2],e[3],1):(e=n8.exec(t))?new vt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=r8.exec(t))?$c(e[1],e[2],e[3],e[4]):(e=i8.exec(t))?$c(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=o8.exec(t))?Dm(e[1],e[2]/100,e[3]/100,1):(e=s8.exec(t))?Dm(e[1],e[2]/100,e[3]/100,e[4]):Am.hasOwnProperty(t)?Cm(Am[t]):t==="transparent"?new vt(NaN,NaN,NaN,0):null}function Cm(t){return new vt(t>>16&255,t>>8&255,t&255,1)}function $c(t,e,n,r){return r<=0&&(t=e=n=NaN),new vt(t,e,n,r)}function Mf(t){return t instanceof Sr||(t=Cr(t)),t?(t=t.rgb(),new vt(t.r,t.g,t.b,t.opacity)):new vt}function el(t,e,n,r){return arguments.length===1?Mf(t):new vt(t,e,n,r??1)}function vt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}lo(vt,el,js(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?fi:Math.pow(fi,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new vt(hi(this.r),hi(this.g),hi(this.b),tl(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:Im,formatHex:Im,formatHex8:l8,formatRgb:Tm,toString:Tm}));function Im(){return`#${di(this.r)}${di(this.g)}${di(this.b)}`}function l8(){return`#${di(this.r)}${di(this.g)}${di(this.b)}${di((isNaN(this.opacity)?1:this.opacity)*255)}`}function Tm(){const t=tl(this.opacity);return`${t===1?"rgb(":"rgba("}${hi(this.r)}, ${hi(this.g)}, ${hi(this.b)}${t===1?")":`, ${t})`}`}function tl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function di(t){return t=hi(t),(t<16?"0":"")+t.toString(16)}function Dm(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xn(t,e,n,r)}function Bm(t){if(t instanceof xn)return new xn(t.h,t.s,t.l,t.opacity);if(t instanceof Sr||(t=Cr(t)),!t)return new xn;if(t instanceof xn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),s=NaN,a=i-o,c=(i+o)/2;return a?(e===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-e)/a+2:s=(e-n)/a+4,a/=c<.5?i+o:2-i-o,s*=60):a=c>0&&c<1?0:s,new xn(s,a,c,t.opacity)}function Pf(t,e,n,r){return arguments.length===1?Bm(t):new xn(t,e,n,r??1)}function xn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}lo(xn,Pf,js(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new xn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?fi:Math.pow(fi,t),new xn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new vt(Lf(t>=240?t-240:t+120,o,r),Lf(t,o,r),Lf(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new xn(km(this.h),nl(this.s),nl(this.l),tl(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 t=tl(this.opacity);return`${t===1?"hsl(":"hsla("}${km(this.h)}, ${nl(this.s)*100}%, ${nl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function km(t){return t=(t||0)%360,t<0?t+360:t}function nl(t){return Math.max(0,Math.min(1,t||0))}function Lf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const _m=Math.PI/180,Rm=180/Math.PI,rl=18,Fm=.96422,Mm=1,Pm=.82521,Lm=4/29,ho=6/29,Om=3*ho*ho,u8=ho*ho*ho;function Nm(t){if(t instanceof On)return new On(t.l,t.a,t.b,t.opacity);if(t instanceof $n)return zm(t);t instanceof vt||(t=Mf(t));var e=Gf(t.r),n=Gf(t.g),r=Gf(t.b),o=Nf((.2225045*e+.7168786*n+.0606169*r)/Mm),i,s;return e===n&&n===r?i=s=o:(i=Nf((.4360747*e+.3850649*n+.1430804*r)/Fm),s=Nf((.0139322*e+.0971045*n+.7141733*r)/Pm)),new On(116*o-16,500*(i-o),200*(o-s),t.opacity)}function Of(t,e,n,r){return arguments.length===1?Nm(t):new On(t,e,n,r??1)}function On(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}lo(On,Of,js(Sr,{brighter(t){return new On(this.l+rl*(t??1),this.a,this.b,this.opacity)},darker(t){return new On(this.l-rl*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Fm*zf(e),t=Mm*zf(t),n=Pm*zf(n),new vt(Uf(3.1338561*e-1.6168667*t-.4906146*n),Uf(-.9787684*e+1.9161415*t+.033454*n),Uf(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Nf(t){return t>u8?Math.pow(t,1/3):t/Om+Lm}function zf(t){return t>ho?t*t*t:Om*(t-Lm)}function Uf(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Gf(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function f8(t){if(t instanceof $n)return new $n(t.h,t.c,t.l,t.opacity);if(t instanceof On||(t=Nm(t)),t.a===0&&t.b===0)return new $n(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Rm;return new $n(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Hf(t,e,n,r){return arguments.length===1?f8(t):new $n(t,e,n,r??1)}function $n(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function zm(t){if(isNaN(t.h))return new On(t.l,0,0,t.opacity);var e=t.h*_m;return new On(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}lo($n,Hf,js(Sr,{brighter(t){return new $n(this.h,this.c,this.l+rl*(t??1),this.opacity)},darker(t){return new $n(this.h,this.c,this.l-rl*(t??1),this.opacity)},rgb(){return zm(this).rgb()}}));var Um=-.14861,Vf=1.78277,qf=-.29227,il=-.90649,Ys=1.97294,Gm=Ys*il,Hm=Ys*Vf,Vm=Vf*qf-il*Um;function h8(t){if(t instanceof pi)return new pi(t.h,t.s,t.l,t.opacity);t instanceof vt||(t=Mf(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(Vm*r+Gm*e-Hm*n)/(Vm+Gm-Hm),i=r-o,s=(Ys*(n-o)-qf*i)/il,a=Math.sqrt(s*s+i*i)/(Ys*o*(1-o)),c=a?Math.atan2(s,i)*Rm-120:NaN;return new pi(c<0?c+360:c,a,o,t.opacity)}function jf(t,e,n,r){return arguments.length===1?h8(t):new pi(t,e,n,r??1)}function pi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}lo(pi,jf,js(Sr,{brighter(t){return t=t==null?uo:Math.pow(uo,t),new pi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?fi:Math.pow(fi,t),new pi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*_m,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new vt(255*(e+n*(Um*r+Vf*o)),255*(e+n*(qf*r+il*o)),255*(e+n*(Ys*r)),this.opacity)}}));function qm(t,e,n,r,o){var i=t*t,s=i*t;return((1-3*t+3*i-s)*e+(4-6*i+3*s)*n+(1+3*t+3*i-3*s)*r+s*o)/6}function jm(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],s=r>0?t[r-1]:2*o-i,a=r<e-1?t[r+2]:2*i-o;return qm((n-r/e)*e,s,o,i,a)}}function Wm(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],s=t[(r+1)%e],a=t[(r+2)%e];return qm((n-r/e)*e,o,i,s,a)}}const ol=t=>()=>t;function Ym(t,e){return function(n){return t+n*e}}function d8(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function sl(t,e){var n=e-t;return n?Ym(t,n>180||n<-180?n-360*Math.round(n/360):n):ol(isNaN(t)?e:t)}function p8(t){return(t=+t)==1?At:function(e,n){return n-e?d8(e,n,t):ol(isNaN(e)?n:e)}}function At(t,e){var n=e-t;return n?Ym(t,n):ol(isNaN(t)?e:t)}const Wf=function t(e){var n=p8(e);function r(o,i){var s=n((o=el(o)).r,(i=el(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=At(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=c(u),o.opacity=l(u),o+""}}return r.gamma=t,r}(1);function Qm(t){return function(e){var n=e.length,r=new Array(n),o=new Array(n),i=new Array(n),s,a;for(s=0;s<n;++s)a=el(e[s]),r[s]=a.r||0,o[s]=a.g||0,i[s]=a.b||0;return r=t(r),o=t(o),i=t(i),a.opacity=1,function(c){return a.r=r(c),a.g=o(c),a.b=i(c),a+""}}}var g8=Qm(jm),m8=Qm(Wm);function Yf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=t[o]*(1-i)+e[o]*i;return r}}function Zm(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function b8(t,e){return(Zm(e)?Yf:Xm)(t,e)}function Xm(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)o[s]=Ir(t[s],e[s]);for(;s<n;++s)i[s]=e[s];return function(a){for(s=0;s<r;++s)i[s]=o[s](a);return i}}function Km(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function vn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Jm(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=Ir(t[o],e[o]):r[o]=e[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var Qf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zf=new RegExp(Qf.source,"g");function y8(t){return function(){return t}}function w8(t){return function(e){return t(e)+""}}function $m(t,e){var n=Qf.lastIndex=Zf.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(t=t+"",e=e+"";(r=Qf.exec(t))&&(o=Zf.exec(e));)(i=o.index)>n&&(i=e.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,c.push({i:s,x:vn(r,o)})),n=Zf.lastIndex;return n<e.length&&(i=e.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?w8(c[0].x):y8(e):(e=c.length,function(l){for(var u=0,f;u<e;++u)a[(f=c[u]).i]=f.x(l);return a.join("")})}function Ir(t,e){var n=typeof e,r;return e==null||n==="boolean"?ol(e):(n==="number"?vn:n==="string"?(r=Cr(e))?(e=r,Wf):$m:e instanceof Cr?Wf:e instanceof Date?Km:Zm(e)?Yf:Array.isArray(e)?Xm:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Jm:vn)(t,e)}function x8(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function v8(t,e){var n=sl(+t,+e);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function Qs(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var e1=180/Math.PI,Xf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t1(t,e,n,r,o,i){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*e1,skewX:Math.atan(c)*e1,scaleX:s,scaleY:a}}var al;function A8(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Xf:t1(e.a,e.b,e.c,e.d,e.e,e.f)}function E8(t){return t==null||(al||(al=document.createElementNS("http://www.w3.org/2000/svg","g")),al.setAttribute("transform",t),!(t=al.transform.baseVal.consolidate()))?Xf:(t=t.matrix,t1(t.a,t.b,t.c,t.d,t.e,t.f))}function n1(t,e,n,r){function o(l){return l.length?l.pop()+" ":""}function i(l,u,f,h,d,p){if(l!==f||u!==h){var y=d.push("translate(",null,e,null,n);p.push({i:y-4,x:vn(l,f)},{i:y-2,x:vn(u,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function s(l,u,f,h){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:f.push(o(f)+"rotate(",null,r)-2,x:vn(l,u)})):u&&f.push(o(f)+"rotate("+u+r)}function a(l,u,f,h){l!==u?h.push({i:f.push(o(f)+"skewX(",null,r)-2,x:vn(l,u)}):u&&f.push(o(f)+"skewX("+u+r)}function c(l,u,f,h,d,p){if(l!==f||u!==h){var y=d.push(o(d)+"scale(",null,",",null,")");p.push({i:y-4,x:vn(l,f)},{i:y-2,x:vn(u,h)})}else(f!==1||h!==1)&&d.push(o(d)+"scale("+f+","+h+")")}return function(l,u){var f=[],h=[];return l=t(l),u=t(u),i(l.translateX,l.translateY,u.translateX,u.translateY,f,h),s(l.rotate,u.rotate,f,h),a(l.skewX,u.skewX,f,h),c(l.scaleX,l.scaleY,u.scaleX,u.scaleY,f,h),l=u=null,function(d){for(var p=-1,y=h.length,v;++p<y;)f[(v=h[p]).i]=v.x(d);return f.join("")}}}var S8=n1(A8,"px, ","px)","deg)"),C8=n1(E8,", ",")",")"),I8=1e-12;function r1(t){return((t=Math.exp(t))+1/t)/2}function T8(t){return((t=Math.exp(t))-1/t)/2}function D8(t){return((t=Math.exp(2*t))-1)/(t+1)}const B8=function t(e,n,r){function o(i,s){var a=i[0],c=i[1],l=i[2],u=s[0],f=s[1],h=s[2],d=u-a,p=f-c,y=d*d+p*p,v,b;if(y<I8)b=Math.log(h/l)/e,v=function(B){return[a+B*d,c+B*p,l*Math.exp(e*B*b)]};else{var A=Math.sqrt(y),S=(h*h-l*l+r*y)/(2*l*n*A),E=(h*h-l*l-r*y)/(2*h*n*A),I=Math.log(Math.sqrt(S*S+1)-S),_=Math.log(Math.sqrt(E*E+1)-E);b=(_-I)/e,v=function(B){var N=B*b,F=r1(I),M=l/(n*A)*(F*D8(e*N+I)-T8(I));return[a+M*d,c+M*p,l*F/r1(e*N+I)]}}return v.duration=b*1e3*e/Math.SQRT2,v}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,c=a*a;return t(s,a,c)},o}(Math.SQRT2,2,4);function i1(t){return function(e,n){var r=t((e=Pf(e)).h,(n=Pf(n)).h),o=At(e.s,n.s),i=At(e.l,n.l),s=At(e.opacity,n.opacity);return function(a){return e.h=r(a),e.s=o(a),e.l=i(a),e.opacity=s(a),e+""}}}const k8=i1(sl);var _8=i1(At);function R8(t,e){var n=At((t=Of(t)).l,(e=Of(e)).l),r=At(t.a,e.a),o=At(t.b,e.b),i=At(t.opacity,e.opacity);return function(s){return t.l=n(s),t.a=r(s),t.b=o(s),t.opacity=i(s),t+""}}function o1(t){return function(e,n){var r=t((e=Hf(e)).h,(n=Hf(n)).h),o=At(e.c,n.c),i=At(e.l,n.l),s=At(e.opacity,n.opacity);return function(a){return e.h=r(a),e.c=o(a),e.l=i(a),e.opacity=s(a),e+""}}}const F8=o1(sl);var M8=o1(At);function s1(t){return function e(n){n=+n;function r(o,i){var s=t((o=jf(o)).h,(i=jf(i)).h),a=At(o.s,i.s),c=At(o.l,i.l),l=At(o.opacity,i.opacity);return function(u){return o.h=s(u),o.s=a(u),o.l=c(Math.pow(u,n)),o.opacity=l(u),o+""}}return r.gamma=e,r}(1)}const P8=s1(sl);var L8=s1(At);function Kf(t,e){e===void 0&&(e=t,t=Ir);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(s){var a=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return i[a](s-a)}}function O8(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}const N8=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Ir,interpolateArray:b8,interpolateBasis:jm,interpolateBasisClosed:Wm,interpolateCubehelix:P8,interpolateCubehelixLong:L8,interpolateDate:Km,interpolateDiscrete:x8,interpolateHcl:F8,interpolateHclLong:M8,interpolateHsl:k8,interpolateHslLong:_8,interpolateHue:v8,interpolateLab:R8,interpolateNumber:vn,interpolateNumberArray:Yf,interpolateObject:Jm,interpolateRgb:Wf,interpolateRgbBasis:g8,interpolateRgbBasisClosed:m8,interpolateRound:Qs,interpolateString:$m,interpolateTransformCss:S8,interpolateTransformSvg:C8,interpolateZoom:B8,piecewise:Kf,quantize:O8},Symbol.toStringTag,{value:"Module"}));function z8(t){return function(){return t}}function Jf(t){return+t}var a1=[0,1];function Yt(t){return t}function $f(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:z8(isNaN(e)?NaN:.5)}function U8(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function G8(t,e,n){var r=t[0],o=t[1],i=e[0],s=e[1];return o<r?(r=$f(o,r),i=n(s,i)):(r=$f(r,o),i=n(i,s)),function(a){return i(r(a))}}function H8(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)o[s]=$f(t[s],t[s+1]),i[s]=n(e[s],e[s+1]);return function(a){var c=gr(t,a,1,r)-1;return i[c](o[c](a))}}function Zs(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function cl(){var t=a1,e=a1,n=Ir,r,o,i,s=Yt,a,c,l;function u(){var h=Math.min(t.length,e.length);return s!==Yt&&(s=U8(t[0],t[h-1])),a=h>2?H8:G8,c=l=null,f}function f(h){return h==null||isNaN(h=+h)?i:(c||(c=a(t.map(r),e,n)))(r(s(h)))}return f.invert=function(h){return s(o((l||(l=a(e,t.map(r),vn)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Jf),u()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=Qs,u()},f.clamp=function(h){return arguments.length?(s=h?!0:Yt,u()):s!==Yt},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,d){return r=h,o=d,u()}}function c1(){return cl()(Yt,Yt)}function l1(t,e,n,r){var o=ni(t,e,n),i;switch(r=Yi(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=d3(o,s))&&(r.precision=i),Rp(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=p3(o,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=h3(o))&&(r.precision=i-(r.type==="%")*2);break}}return Dt(r)}function gi(t){var e=t.domain;return t.ticks=function(n){var r=e();return bc(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var o=e();return l1(o[0],o[o.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),o=0,i=r.length-1,s=r[o],a=r[i],c,l,u=10;for(a<s&&(l=s,s=a,a=l,l=o,o=i,i=l);u-- >0;){if(l=Pu(s,a,n),l===c)return r[o]=s,r[i]=a,e(r);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;c=l}return t},t}function u1(){var t=c1();return t.copy=function(){return Zs(t,u1())},Pn.apply(t,arguments),gi(t)}function f1(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,Jf),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return f1(t).unknown(e)},t=arguments.length?Array.from(t,Jf):[0,1],gi(n)}function h1(t,e){t=t.slice();var n=0,r=t.length-1,o=t[n],i=t[r],s;return i<o&&(s=n,n=r,r=s,s=o,o=i,i=s),t[n]=e.floor(o),t[r]=e.ceil(i),t}function d1(t){return Math.log(t)}function p1(t){return Math.exp(t)}function V8(t){return-Math.log(-t)}function q8(t){return-Math.exp(-t)}function j8(t){return isFinite(t)?+("1e"+t):t<0?0:t}function W8(t){return t===10?j8:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Y8(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function g1(t){return(e,n)=>-t(-e,n)}function eh(t){const e=t(d1,p1),n=e.domain;let r=10,o,i;function s(){return o=Y8(r),i=W8(r),n()[0]<0?(o=g1(o),i=g1(i),t(V8,q8)):t(d1,p1),e}return e.base=function(a){return arguments.length?(r=+a,s()):r},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const c=n();let l=c[0],u=c[c.length-1];const f=u<l;f&&([l,u]=[u,l]);let h=o(l),d=o(u),p,y;const v=a==null?10:+a;let b=[];if(!(r%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(p=1;p<r;++p)if(y=h<0?p/i(-h):p*i(h),!(y<l)){if(y>u)break;b.push(y)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(y=h>0?p/i(-h):p*i(h),!(y<l)){if(y>u)break;b.push(y)}b.length*2<v&&(b=bc(l,u,v))}else b=bc(h,d,Math.min(d-h,v)).map(i);return f?b.reverse():b},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Yi(c)).precision==null&&(c.trim=!0),c=Dt(c)),a===1/0)return c;const l=Math.max(1,r*a/e.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*r<r-.5&&(f*=r),f<=l?c(u):""}},e.nice=()=>n(h1(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),e}function th(){const t=eh(cl()).domain([1,10]);return t.copy=()=>Zs(t,th()).base(t.base()),Pn.apply(t,arguments),t}function m1(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function b1(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function nh(t){var e=1,n=t(m1(e),b1(e));return n.constant=function(r){return arguments.length?t(m1(e=+r),b1(e)):e},gi(n)}function y1(){var t=nh(cl());return t.copy=function(){return Zs(t,y1()).constant(t.constant())},Pn.apply(t,arguments)}function w1(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Q8(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Z8(t){return t<0?-t*t:t*t}function rh(t){var e=t(Yt,Yt),n=1;function r(){return n===1?t(Yt,Yt):n===.5?t(Q8,Z8):t(w1(n),w1(1/n))}return e.exponent=function(o){return arguments.length?(n=+o,r()):n},gi(e)}function ih(){var t=rh(cl());return t.copy=function(){return Zs(t,ih()).exponent(t.exponent())},Pn.apply(t,arguments),t}function X8(){return ih.apply(null,arguments).exponent(.5)}function x1(){var t=[],e=[],n=[],r;function o(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=Cp(t,s/a);return i}function i(s){return s==null||isNaN(s=+s)?r:e[gr(n,s)]}return i.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},i.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(ei),o()},i.range=function(s){return arguments.length?(e=Array.from(s),o()):e.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return x1().domain(t).range(e).unknown(r)},Pn.apply(i,arguments)}function v1(){var t=0,e=1,n=1,r=[.5],o=[0,1],i;function s(c){return c!=null&&c<=c?o[gr(r,c,0,n)]:i}function a(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},s.range=function(c){return arguments.length?(n=(o=Array.from(c)).length-1,a()):o.slice()},s.invertExtent=function(c){var l=o.indexOf(c);return l<0?[NaN,NaN]:l<1?[t,r[0]]:l>=n?[r[n-1],e]:[r[l-1],r[l]]},s.unknown=function(c){return arguments.length&&(i=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return v1().domain([t,e]).range(o).unknown(i)},Pn.apply(gi(s),arguments)}function A1(){var t=[.5],e=[0,1],n,r=1;function o(i){return i!=null&&i<=i?e[gr(t,i,0,r)]:n}return o.domain=function(i){return arguments.length?(t=Array.from(i),r=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(i){return arguments.length?(e=Array.from(i),r=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(i){var s=e.indexOf(i);return[t[s-1],t[s]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return A1().domain(t).range(e).unknown(n)},Pn.apply(o,arguments)}function K8(t){return new Date(t)}function J8(t){return t instanceof Date?+t:+new Date(+t)}function oh(t,e,n,r,o,i,s,a,c,l){var u=c1(),f=u.invert,h=u.domain,d=l(".%L"),p=l(":%S"),y=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),A=l("%b %d"),S=l("%B"),E=l("%Y");function I(_){return(c(_)<_?d:a(_)<_?p:s(_)<_?y:i(_)<_?v:r(_)<_?o(_)<_?b:A:n(_)<_?S:E)(_)}return u.invert=function(_){return new Date(f(_))},u.domain=function(_){return arguments.length?h(Array.from(_,J8)):h().map(K8)},u.ticks=function(_){var B=h();return t(B[0],B[B.length-1],_??10)},u.tickFormat=function(_,B){return B==null?I:l(B)},u.nice=function(_){var B=h();return(!_||typeof _.range!="function")&&(_=e(B[0],B[B.length-1],_??10)),_?h(h1(B,_)):u},u.copy=function(){return Zs(u,oh(t,e,n,r,o,i,s,a,c,l))},u}function $8(){return Pn.apply(oh(C3,I3,_n,Ki,Ss,mr,Ac,xc,Xn,Wu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function e5(){return Pn.apply(oh(E3,S3,Rn,Ji,Cs,ri,Ec,vc,Xn,Yu).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ll(){var t=0,e=1,n,r,o,i,s=Yt,a=!1,c;function l(f){return f==null||isNaN(f=+f)?c:s(o===0?.5:(f=(i(f)-n)*o,a?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([t,e]=f,n=i(t=+t),r=i(e=+e),o=n===r?0:1/(r-n),l):[t,e]},l.clamp=function(f){return arguments.length?(a=!!f,l):a},l.interpolator=function(f){return arguments.length?(s=f,l):s};function u(f){return function(h){var d,p;return arguments.length?([d,p]=h,s=f(d,p),l):[s(0),s(1)]}}return l.range=u(Ir),l.rangeRound=u(Qs),l.unknown=function(f){return arguments.length?(c=f,l):c},function(f){return i=f,n=f(t),r=f(e),o=n===r?0:1/(r-n),l}}function Tr(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function sh(){var t=gi(ll()(Yt));return t.copy=function(){return Tr(t,sh())},Er.apply(t,arguments)}function E1(){var t=eh(ll()).domain([1,10]);return t.copy=function(){return Tr(t,E1()).base(t.base())},Er.apply(t,arguments)}function S1(){var t=nh(ll());return t.copy=function(){return Tr(t,S1()).constant(t.constant())},Er.apply(t,arguments)}function ah(){var t=rh(ll());return t.copy=function(){return Tr(t,ah()).exponent(t.exponent())},Er.apply(t,arguments)}function t5(){return ah.apply(null,arguments).exponent(.5)}function ul(){var t=0,e=.5,n=1,r=1,o,i,s,a,c,l=Yt,u,f=!1,h;function d(y){return isNaN(y=+y)?h:(y=.5+((y=+u(y))-i)*(r*y<r*i?a:c),l(f?Math.max(0,Math.min(1,y)):y))}d.domain=function(y){return arguments.length?([t,e,n]=y,o=u(t=+t),i=u(e=+e),s=u(n=+n),a=o===i?0:.5/(i-o),c=i===s?0:.5/(s-i),r=i<o?-1:1,d):[t,e,n]},d.clamp=function(y){return arguments.length?(f=!!y,d):f},d.interpolator=function(y){return arguments.length?(l=y,d):l};function p(y){return function(v){var b,A,S;return arguments.length?([b,A,S]=v,l=Kf(y,[b,A,S]),d):[l(0),l(.5),l(1)]}}return d.range=p(Ir),d.rangeRound=p(Qs),d.unknown=function(y){return arguments.length?(h=y,d):h},function(y){return u=y,o=y(t),i=y(e),s=y(n),a=o===i?0:.5/(i-o),c=i===s?0:.5/(s-i),r=i<o?-1:1,d}}function C1(){var t=gi(ul()(Yt));return t.copy=function(){return Tr(t,C1())},Er.apply(t,arguments)}function I1(){var t=eh(ul()).domain([.1,1,10]);return t.copy=function(){return Tr(t,I1()).base(t.base())},Er.apply(t,arguments)}function T1(){var t=nh(ul());return t.copy=function(){return Tr(t,T1()).constant(t.constant())},Er.apply(t,arguments)}function ch(){var t=rh(ul());return t.copy=function(){return Tr(t,ch()).exponent(t.exponent())},Er.apply(t,arguments)}function n5(){return ch.apply(null,arguments).exponent(.5)}function Nn(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}const r5=Nn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),i5=Nn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),o5=Nn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),s5=Nn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),a5=Nn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),c5=Nn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),l5=Nn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),u5=Nn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),f5=Nn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),h5=Nn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),d5="year",lh="quarter";[d5,lh,"month","week","date","day","dayofyear","hours","minutes","seconds","milliseconds"].reduce((t,e,n)=>(t[e]=1+n,t),{}),lh+"",Ki.every(3),lh+"",Ji.every(3);function uh(t,e,n){const r=t-e+n*2;return t?r>0?r:1:0}const p5="identity",po="linear",Dr="log",Xs="pow",Ks="sqrt",fl="symlog",D1="time",B1="utc",zn="sequential",go="diverging",fh="quantile",k1="quantize",_1="threshold",hh="ordinal",dh="point",R1="band",ph="bin-ordinal",bt="continuous",Js="discrete",$s="discretizing",sn="interpolating",F1="temporal";function g5(t){return function(e){let n=e[0],r=e[1],o;return r<n&&(o=n,n=r,r=o),[t.invert(n),t.invert(r)]}}function m5(t){return function(e){const n=t.range();let r=e[0],o=e[1],i=-1,s,a,c,l;for(o<r&&(a=r,r=o,o=a),c=0,l=n.length;c<l;++c)n[c]>=r&&n[c]<=o&&(i<0&&(i=c),s=c);if(!(i<0))return r=t.invertExtent(n[i]),o=t.invertExtent(n[s]),[r[0]===void 0?r[1]:r[0],o[1]===void 0?o[0]:o[1]]}}function gh(){const t=Ff().unknown(void 0),e=t.domain,n=t.range;let r=[0,1],o,i,s=!1,a=0,c=0,l=.5;delete t.unknown;function u(){const f=e().length,h=r[1]<r[0],d=r[1-h],p=uh(f,a,c);let y=r[h-0];o=(d-y)/(p||1),s&&(o=Math.floor(o)),y+=(d-y-o*(f-a))*l,i=o*(1-a),s&&(y=Math.round(y),i=Math.round(i));const v=As(f).map(b=>y+o*b);return n(h?v.reverse():v)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?(r=[+f[0],+f[1]],u()):r.slice()},t.rangeRound=function(f){return r=[+f[0],+f[1]],s=!0,u()},t.bandwidth=function(){return i},t.step=function(){return o},t.round=function(f){return arguments.length?(s=!!f,u()):s},t.padding=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),a=c,u()):a},t.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),u()):a},t.paddingOuter=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),u()):c},t.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),u()):l},t.invertRange=function(f){if(f[0]==null||f[1]==null)return;const h=r[1]<r[0],d=h?n().reverse():n(),p=d.length-1;let y=+f[0],v=+f[1],b,A,S;if(!(y!==y||v!==v)&&(v<y&&(S=y,y=v,v=S),!(v<d[0]||y>r[1-h])))return b=Math.max(0,gr(d,y)-1),A=y===v?b:gr(d,v)-1,y-d[b]>i+1e-10&&++b,h&&(S=b,b=p-A,A=p-S),b>A?void 0:e().slice(b,A+1)},t.invert=function(f){const h=t.invertRange([f,f]);return h&&h[0]},t.copy=function(){return gh().domain(e()).range(r).round(s).paddingInner(a).paddingOuter(c).align(l)},u()}function M1(t){const e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,t.copy=function(){return M1(e())},t}function b5(){return M1(gh().paddingInner(1))}var y5=Array.prototype.map;function w5(t){return y5.call(t,K6)}const x5=Array.prototype.slice;function P1(){let t=[],e=[];function n(r){return r==null||r!==r?void 0:e[(gr(t,r)-1)%e.length]}return n.domain=function(r){return arguments.length?(t=w5(r),n):t.slice()},n.range=function(r){return arguments.length?(e=x5.call(r),n):e.slice()},n.tickFormat=function(r,o){return l1(t[0],vm(t),r??10,o)},n.copy=function(){return P1().domain(n.domain()).range(n.range())},n}const hl=new Map,v5=Symbol("vega_scale");function A5(t){return t[v5]=!0,t}function E5(t,e,n){const r=function(){const i=e();return i.invertRange||(i.invertRange=i.invert?g5(i):i.invertExtent?m5(i):void 0),i.type=t,A5(i)};return r.metadata=$6(J6(n)),r}function Qe(t,e,n){return arguments.length>1?(hl.set(t,E5(t,e,n)),this):S5(t)?hl.get(t):void 0}Qe(p5,f1),Qe(po,u1,bt),Qe(Dr,th,[bt,Dr]),Qe(Xs,ih,bt),Qe(Ks,X8,bt),Qe(fl,y1,bt),Qe(D1,$8,[bt,F1]),Qe(B1,e5,[bt,F1]),Qe(zn,sh,[bt,sn]),Qe(`${zn}-${po}`,sh,[bt,sn]),Qe(`${zn}-${Dr}`,E1,[bt,sn,Dr]),Qe(`${zn}-${Xs}`,ah,[bt,sn]),Qe(`${zn}-${Ks}`,t5,[bt,sn]),Qe(`${zn}-${fl}`,S1,[bt,sn]),Qe(`${go}-${po}`,C1,[bt,sn]),Qe(`${go}-${Dr}`,I1,[bt,sn,Dr]),Qe(`${go}-${Xs}`,ch,[bt,sn]),Qe(`${go}-${Ks}`,n5,[bt,sn]),Qe(`${go}-${fl}`,T1,[bt,sn]),Qe(fh,x1,[$s,fh]),Qe(k1,v1,$s),Qe(_1,A1,$s),Qe(ph,P1,[Js,$s]),Qe(hh,Ff,Js),Qe(R1,gh,Js),Qe(dh,b5,Js);function S5(t){return hl.has(t)}function ea(t,e){const n=hl.get(t);return n&&n.metadata[e]}function Et(t){return ea(t,bt)}function Br(t){return ea(t,Js)}function mi(t){return ea(t,$s)}function L1(t){return ea(t,Dr)}function dl(t){return ea(t,sn)}function C5(t,e){const n=e[0],r=vm(e)-n;return function(o){return t(n+o*r)}}function pl(t,e,n){return Kf(O1(e||"rgb",n),t)}function I5(t,e){const n=new Array(e),r=e+1;for(let o=0;o<e;)n[o]=t(++o/r);return n}function O1(t,e){const n=N8[T5(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function T5(t){return"interpolate"+t.toLowerCase().split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}const D5={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"},B5={accent:i5,category10:r5,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:o5,observable10:s5,paired:a5,pastel1:c5,pastel2:l5,set1:u5,set2:f5,set3:h5,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function N1(t){if(xm(t))return t;const e=t.length/6|0,n=new Array(e);for(let r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}function z1(t,e){for(const n in t)mh(n,e(t[n]))}const U1={};z1(B5,N1),z1(D5,t=>pl(N1(t)));function mh(t,e){return t=t&&t.toLowerCase(),arguments.length>1?(U1[t]=e,this):U1[t]}const Un=1,kr=2,bh=4;class yh{constructor(e){ge(this,Fi);Gt(this,"stats",{count:0,first:null});Gt(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),de(this,Fi,rc).call(this),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const n of e.children)this.adopt(n)}insertAsParent(e){var n;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,de(n=this.parent,Fi,rc).call(n),this.parent=void 0,e.addChild(this)}removeChild(e){const n=this.children.indexOf(e);if(n>-1)this.children.splice(n,1),e.parent=void 0,de(this,Fi,rc).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 n=this.children[0];n.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=n,de(e=this.parent,Fi,rc).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 n of this.children)n.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const n=this.children.map(r=>r.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""}
|
|
275
|
+
${n}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}beginBatch(e){for(const n of this.children)n.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){}}Fi=new WeakSet,rc=function(){this._propagate=Function("children","stats",As(this.children.length).map(e=>`const child${e} = children[${e}];`).join(`
|
|
276
276
|
`)+`return function propagate(datum) {
|
|
277
277
|
if (stats.count === 0) {
|
|
278
278
|
stats.first = structuredClone(datum);
|
|
279
279
|
}
|
|
280
280
|
stats.count++;
|
|
281
|
-
${
|
|
281
|
+
${As(this.children.length).map(e=>`child${e}.handle(datum);`).join(`
|
|
282
282
|
`)}
|
|
283
|
-
};`)(this.children,this.stats)};function U1(t){return t.type=="file"}function B5(t){return t.type=="facet"}class bt extends yh{constructor(n,r){super(r);ge(this,Oa);Ie(this,Oa,n.type)}get label(){return W(this,Oa)}}Oa=new WeakMap;const an="_uniqueId",G1=1e4,H1=[null];class bh extends bt{get behavior(){return kr}constructor(e){super(e),this.params=e,this.as=e.as??an,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%G1==0&&(this._id=this._getBlock()*G1),this._id}_getBlock(){return this._usedBlocks<this._blocks.length?this._blocks[this._usedBlocks++]:this._reserveBlock()}_reserveBlock(){const e=H1.length;return H1[e]=this,this._blocks.push(e),this._usedBlocks++,e}}function mo(t,e,n){return t.fields=e||[],t.fname=n,t}function k5(t){return t.length===1?_5(t[0]):R5(t)}const _5=t=>function(e){return e[t]},R5=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function An(t){throw Error(t)}function F5(t){const e=[],n=t.length;let r=null,o=0,i="",s,a,c;t=t+"";function l(){e.push(i+t.substring(s,a)),i="",s=a+1}for(s=a=0;a<n;++a)if(c=t[a],c==="\\")i+=t.substring(s,a++),s=a;else if(c===r)l(),r=null,o=-1;else{if(r)continue;s===o&&c==='"'||s===o&&c==="'"?(s=a+1,r=c):c==="."&&!o?a>s?l():s=a+1:c==="["?(a>s&&l(),o=s=a+1):c==="]"&&(o||An("Access path missing open bracket: "+t),o>0&&l(),o=0,s=a+1)}return o&&An("Access path missing closing bracket: "+t),r&&An("Access path missing closing quote: "+t),a>s&&(a++,l()),e}function M5(t,e,n){const r=F5(t);return t=r.length===1?r[0]:t,mo(k5(r),[t],t)}M5("id"),mo(t=>t,[],"identity"),mo(()=>0,[],"zero"),mo(()=>1,[],"one"),mo(()=>!0,[],"true"),mo(()=>!1,[],"false");function V1(t){return typeof t=="function"}function pl(t,e){return Object.hasOwn(t,e)}function P5(t){return typeof t=="string"}function q1(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}const L5="RawCode",O5="Literal",N5="Property",z5="Identifier",U5="ArrayExpression",G5="BinaryExpression",H5="CallExpression",V5="ConditionalExpression",q5="LogicalExpression",j5="MemberExpression",W5="ObjectExpression",Y5="UnaryExpression";function En(t){this.type=t}En.prototype.visit=function(t){let e,n,r;if(t(this))return 1;for(e=Q5(this),n=0,r=e.length;n<r;++n)if(e[n].visit(t))return 1};function Q5(t){switch(t.type){case U5:return t.elements;case G5:case q5:return[t.left,t.right];case H5:return[t.callee].concat(t.arguments);case V5:return[t.test,t.consequent,t.alternate];case j5:return[t.object,t.property];case W5:return t.properties;case N5:return[t.key,t.value];case Y5:return[t.argument];case z5:case O5:case L5:default:return[]}}var Gn,Se,ie,Mt,Ze,gl=1,ea=2,mi=3,_r=4,ml=5,yi=6,Qt=7,ta=8,Z5=9;Gn={},Gn[gl]="Boolean",Gn[ea]="<end>",Gn[mi]="Identifier",Gn[_r]="Keyword",Gn[ml]="Null",Gn[yi]="Numeric",Gn[Qt]="Punctuator",Gn[ta]="String",Gn[Z5]="RegularExpression";var X5="ArrayExpression",K5="BinaryExpression",J5="CallExpression",$5="ConditionalExpression",j1="Identifier",eI="Literal",tI="LogicalExpression",nI="MemberExpression",rI="ObjectExpression",iI="Property",oI="UnaryExpression",St="Unexpected token %0",sI="Unexpected number",aI="Unexpected string",cI="Unexpected identifier",lI="Unexpected reserved word",uI="Unexpected end of input",wh="Invalid regular expression",xh="Invalid regular expression: missing /",W1="Octal literals are not allowed in strict mode.",fI="Duplicate data property in object literal not allowed in strict mode",Bt="ILLEGAL",na="Disabled.",hI=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]"),dI=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-\\u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1\\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 yl(t,e){if(!t)throw new Error("ASSERT: "+e)}function er(t){return t>=48&&t<=57}function vh(t){return"0123456789abcdefABCDEF".includes(t)}function ra(t){return"01234567".includes(t)}function pI(t){return t===32||t===9||t===11||t===12||t===160||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function ia(t){return t===10||t===13||t===8232||t===8233}function oa(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t===92||t>=128&&hI.test(String.fromCharCode(t))}function bl(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===92||t>=128&&dI.test(String.fromCharCode(t))}const gI={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 Y1(){for(;ie<Mt;){const t=Se.charCodeAt(ie);if(pI(t)||ia(t))++ie;else break}}function Ah(t){var e,n,r,o=0;for(n=t==="u"?4:2,e=0;e<n;++e)ie<Mt&&vh(Se[ie])?(r=Se[ie++],o=o*16+"0123456789abcdef".indexOf(r.toLowerCase())):We({},St,Bt);return String.fromCharCode(o)}function mI(){var t,e,n,r;for(t=Se[ie],e=0,t==="}"&&We({},St,Bt);ie<Mt&&(t=Se[ie++],!!vh(t));)e=e*16+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||t!=="}")&&We({},St,Bt),e<=65535?String.fromCharCode(e):(n=(e-65536>>10)+55296,r=(e-65536&1023)+56320,String.fromCharCode(n,r))}function Q1(){var t,e;for(t=Se.charCodeAt(ie++),e=String.fromCharCode(t),t===92&&(Se.charCodeAt(ie)!==117&&We({},St,Bt),++ie,t=Ah("u"),(!t||t==="\\"||!oa(t.charCodeAt(0)))&&We({},St,Bt),e=t);ie<Mt&&(t=Se.charCodeAt(ie),!!bl(t));)++ie,e+=String.fromCharCode(t),t===92&&(e=e.substr(0,e.length-1),Se.charCodeAt(ie)!==117&&We({},St,Bt),++ie,t=Ah("u"),(!t||t==="\\"||!bl(t.charCodeAt(0)))&&We({},St,Bt),e+=t);return e}function yI(){var t,e;for(t=ie++;ie<Mt;){if(e=Se.charCodeAt(ie),e===92)return ie=t,Q1();if(bl(e))++ie;else break}return Se.slice(t,ie)}function bI(){var t,e,n;return t=ie,e=Se.charCodeAt(ie)===92?Q1():yI(),e.length===1?n=mi:gI.hasOwnProperty(e)?n=_r:e==="null"?n=ml:e==="true"||e==="false"?n=gl:n=mi,{type:n,value:e,start:t,end:ie}}function Eh(){var t=ie,e=Se.charCodeAt(ie),n,r=Se[ie],o,i,s;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++ie,{type:Qt,value:String.fromCharCode(e),start:t,end:ie};default:if(n=Se.charCodeAt(ie+1),n===61)switch(e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return ie+=2,{type:Qt,value:String.fromCharCode(e)+String.fromCharCode(n),start:t,end:ie};case 33:case 61:return ie+=2,Se.charCodeAt(ie)===61&&++ie,{type:Qt,value:Se.slice(t,ie),start:t,end:ie}}}if(s=Se.substr(ie,4),s===">>>=")return ie+=4,{type:Qt,value:s,start:t,end:ie};if(i=s.substr(0,3),i===">>>"||i==="<<="||i===">>=")return ie+=3,{type:Qt,value:i,start:t,end:ie};if(o=i.substr(0,2),r===o[1]&&"+-<>&|".includes(r)||o==="=>")return ie+=2,{type:Qt,value:o,start:t,end:ie};if(o==="//"&&We({},St,Bt),"<>=!+-*%&|^/".includes(r))return++ie,{type:Qt,value:r,start:t,end:ie};We({},St,Bt)}function wI(t){let e="";for(;ie<Mt&&vh(Se[ie]);)e+=Se[ie++];return e.length===0&&We({},St,Bt),oa(Se.charCodeAt(ie))&&We({},St,Bt),{type:yi,value:parseInt("0x"+e,16),start:t,end:ie}}function xI(t){let e="0"+Se[ie++];for(;ie<Mt&&ra(Se[ie]);)e+=Se[ie++];return(oa(Se.charCodeAt(ie))||er(Se.charCodeAt(ie)))&&We({},St,Bt),{type:yi,value:parseInt(e,8),octal:!0,start:t,end:ie}}function Z1(){var t,e,n;if(n=Se[ie],yl(er(n.charCodeAt(0))||n===".","Numeric literal must start with a decimal digit or a decimal point"),e=ie,t="",n!=="."){if(t=Se[ie++],n=Se[ie],t==="0"){if(n==="x"||n==="X")return++ie,wI(e);if(ra(n))return xI(e);n&&er(n.charCodeAt(0))&&We({},St,Bt)}for(;er(Se.charCodeAt(ie));)t+=Se[ie++];n=Se[ie]}if(n==="."){for(t+=Se[ie++];er(Se.charCodeAt(ie));)t+=Se[ie++];n=Se[ie]}if(n==="e"||n==="E")if(t+=Se[ie++],n=Se[ie],(n==="+"||n==="-")&&(t+=Se[ie++]),er(Se.charCodeAt(ie)))for(;er(Se.charCodeAt(ie));)t+=Se[ie++];else We({},St,Bt);return oa(Se.charCodeAt(ie))&&We({},St,Bt),{type:yi,value:parseFloat(t),start:e,end:ie}}function vI(){var t="",e,n,r,o,i=!1;for(e=Se[ie],yl(e==="'"||e==='"',"String literal must starts with a quote"),n=ie,++ie;ie<Mt;)if(r=Se[ie++],r===e){e="";break}else if(r==="\\")if(r=Se[ie++],!r||!ia(r.charCodeAt(0)))switch(r){case"u":case"x":Se[ie]==="{"?(++ie,t+=mI()):t+=Ah(r);break;case"n":t+=`
|
|
284
|
-
`;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:
|
|
285
|
-
`&&++ie;else{if(ia(r.charCodeAt(0)))break;t+=r}return e!==""&&We({},St,Bt),{type:ta,value:t,octal:i,start:n,end:ie}}function AI(t,e){let n=t;e.includes("u")&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,(r,o)=>{if(parseInt(o,16)<=1114111)return"x";We({},wh)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch{We({},wh)}try{return new RegExp(t,e)}catch{return null}}function EI(){var t,e,n,r,o;for(t=Se[ie],yl(t==="/","Regular expression literal must start with a slash"),e=Se[ie++],n=!1,r=!1;ie<Mt;)if(t=Se[ie++],e+=t,t==="\\")t=Se[ie++],ia(t.charCodeAt(0))&&We({},xh),e+=t;else if(ia(t.charCodeAt(0)))We({},xh);else if(n)t==="]"&&(n=!1);else if(t==="/"){r=!0;break}else t==="["&&(n=!0);return r||We({},xh),o=e.substr(1,e.length-2),{value:o,literal:e}}function SI(){var t,e,n;for(e="",n="";ie<Mt&&(t=Se[ie],!!bl(t.charCodeAt(0)));)++ie,t==="\\"&&ie<Mt?We({},St,Bt):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&We({},wh,n),{value:n,literal:e}}function CI(){var t,e,n,r;return Ze=null,Y1(),t=ie,e=EI(),n=SI(),r=AI(e.value,n.value),{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:ie}}function II(t){return t.type===mi||t.type===_r||t.type===gl||t.type===ml}function X1(){if(Y1(),ie>=Mt)return{type:ea,start:ie,end:ie};const t=Se.charCodeAt(ie);return oa(t)?bI():t===40||t===41||t===59?Eh():t===39||t===34?vI():t===46?er(Se.charCodeAt(ie+1))?Z1():Eh():er(t)?Z1():Eh()}function Zt(){const t=Ze;return ie=t.end,Ze=X1(),ie=t.end,t}function K1(){const t=ie;Ze=X1(),ie=t}function TI(t){const e=new En(X5);return e.elements=t,e}function J1(t,e,n){const r=new En(t==="||"||t==="&&"?tI:K5);return r.operator=t,r.left=e,r.right=n,r}function DI(t,e){const n=new En(J5);return n.callee=t,n.arguments=e,n}function BI(t,e,n){const r=new En($5);return r.test=t,r.consequent=e,r.alternate=n,r}function Sh(t){const e=new En(j1);return e.name=t,e}function sa(t){const e=new En(eI);return e.value=t.value,e.raw=Se.slice(t.start,t.end),t.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=t.regex),e}function $1(t,e,n){const r=new En(nI);return r.computed=t==="[",r.object=e,r.property=n,r.computed||(n.member=!0),r}function kI(t){const e=new En(rI);return e.properties=t,e}function ey(t,e,n){const r=new En(iI);return r.key=e,r.value=n,r.kind=t,r}function _I(t,e){const n=new En(oI);return n.operator=t,n.argument=e,n.prefix=!0,n}function We(t,e){var n,r=Array.prototype.slice.call(arguments,2),o=e.replace(/%(\d)/g,(i,s)=>(yl(s<r.length,"Message reference must be in range"),r[s]));throw n=new Error(o),n.index=ie,n.description=o,n}function wl(t){t.type===ea&&We(t,uI),t.type===yi&&We(t,sI),t.type===ta&&We(t,aI),t.type===mi&&We(t,cI),t.type===_r&&We(t,lI),We(t,St,t.value)}function Pt(t){const e=Zt();(e.type!==Qt||e.value!==t)&&wl(e)}function it(t){return Ze.type===Qt&&Ze.value===t}function Ch(t){return Ze.type===_r&&Ze.value===t}function RI(){const t=[];for(ie=Ze.start,Pt("[");!it("]");)it(",")?(Zt(),t.push(null)):(t.push(bi()),it("]")||Pt(","));return Zt(),TI(t)}function ty(){ie=Ze.start;const t=Zt();return t.type===ta||t.type===yi?(t.octal&&We(t,W1),sa(t)):Sh(t.value)}function FI(){var t,e,n,r;if(ie=Ze.start,t=Ze,t.type===mi)return n=ty(),Pt(":"),r=bi(),ey("init",n,r);if(t.type===ea||t.type===Qt)wl(t);else return e=ty(),Pt(":"),r=bi(),ey("init",e,r)}function MI(){var t=[],e,n,r,o={},i=String;for(ie=Ze.start,Pt("{");!it("}");)e=FI(),e.key.type===j1?n=e.key.name:n=i(e.key.value),r="$"+n,Object.prototype.hasOwnProperty.call(o,r)?We({},fI):o[r]=!0,t.push(e),it("}")||Pt(",");return Pt("}"),kI(t)}function PI(){Pt("(");const t=Ih();return Pt(")"),t}const LI={if:1};function OI(){var t,e,n;if(it("("))return PI();if(it("["))return RI();if(it("{"))return MI();if(t=Ze.type,ie=Ze.start,t===mi||LI[Ze.value])n=Sh(Zt().value);else if(t===ta||t===yi)Ze.octal&&We(Ze,W1),n=sa(Zt());else{if(t===_r)throw new Error(na);t===gl?(e=Zt(),e.value=e.value==="true",n=sa(e)):t===ml?(e=Zt(),e.value=null,n=sa(e)):it("/")||it("/=")?(n=sa(CI()),K1()):wl(Zt())}return n}function NI(){const t=[];if(Pt("("),!it(")"))for(;ie<Mt&&(t.push(bi()),!it(")"));)Pt(",");return Pt(")"),t}function zI(){ie=Ze.start;const t=Zt();return II(t)||wl(t),Sh(t.value)}function UI(){return Pt("."),zI()}function GI(){Pt("[");const t=Ih();return Pt("]"),t}function HI(){var t,e,n;for(t=OI();;)if(it("."))n=UI(),t=$1(".",t,n);else if(it("("))e=NI(),t=DI(t,e);else if(it("["))n=GI(),t=$1("[",t,n);else break;return t}function ny(){const t=HI();if(Ze.type===Qt&&(it("++")||it("--")))throw new Error(na);return t}function xl(){var t,e;if(Ze.type!==Qt&&Ze.type!==_r)e=ny();else{if(it("++")||it("--"))throw new Error(na);if(it("+")||it("-")||it("~")||it("!"))t=Zt(),e=xl(),e=_I(t.value,e);else{if(Ch("delete")||Ch("void")||Ch("typeof"))throw new Error(na);e=ny()}}return e}function ry(t){let e=0;if(t.type!==Qt&&t.type!==_r)return 0;switch(t.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 VI(){var t,e,n,r,o,i,s,a,c,l;if(t=Ze,c=xl(),r=Ze,o=ry(r),o===0)return c;for(r.prec=o,Zt(),e=[t,Ze],s=xl(),i=[c,r,s];(o=ry(Ze))>0;){for(;i.length>2&&o<=i[i.length-2].prec;)s=i.pop(),a=i.pop().value,c=i.pop(),e.pop(),n=J1(a,c,s),i.push(n);r=Zt(),r.prec=o,i.push(r),e.push(Ze),n=xl(),i.push(n)}for(l=i.length-1,n=i[l],e.pop();l>1;)e.pop(),n=J1(i[l-1].value,i[l-2],n),l-=2;return n}function bi(){var t,e,n;return t=VI(),it("?")&&(Zt(),e=bi(),Pt(":"),n=bi(),t=BI(t,e,n)),t}function Ih(){const t=bi();if(it(","))throw new Error(na);return t}function qI(t){Se=t,ie=0,Mt=Se.length,Ze=null,K1();const e=Ih();if(Ze.type!==ea)throw new Error("Unexpect token after expression.");return e}var jI={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 iy(t){function e(s,a,c,l){let u=t(a[0]);return c&&(u=c+"("+u+")",c.lastIndexOf("new ",0)===0&&(u="("+u+")")),u+"."+s+(l<0?"":l===0?"()":"("+a.slice(1).map(t).join(",")+")")}function n(s,a,c){return l=>e(s,l,a,c)}const r="new Date",o="String",i="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(s){s.length<3&&An("Missing arguments to clamp function."),s.length>3&&An("Too many arguments to clamp function.");const a=s.map(t);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:n("getDate",r,0),day:n("getDay",r,0),year:n("getFullYear",r,0),month:n("getMonth",r,0),hours:n("getHours",r,0),minutes:n("getMinutes",r,0),seconds:n("getSeconds",r,0),milliseconds:n("getMilliseconds",r,0),time:n("getTime",r,0),timezoneoffset:n("getTimezoneOffset",r,0),utcdate:n("getUTCDate",r,0),utcday:n("getUTCDay",r,0),utcyear:n("getUTCFullYear",r,0),utcmonth:n("getUTCMonth",r,0),utchours:n("getUTCHours",r,0),utcminutes:n("getUTCMinutes",r,0),utcseconds:n("getUTCSeconds",r,0),utcmilliseconds:n("getUTCMilliseconds",r,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",o,0),lower:n("toLowerCase",o,0),substring:n("substring",o),split:n("split",o),trim:n("trim",o,0),btoa:"btoa",atob:"atob",regexp:i,test:n("test",i),if:function(s){s.length<3&&An("Missing arguments to if function."),s.length>3&&An("Too many arguments to if function.");const a=s.map(t);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function WI(t){const e=t&&t.length-1;return e&&(t[0]==='"'&&t[e]==='"'||t[0]==="'"&&t[e]==="'")?t.slice(1,-1):t}function YI(t){t=t||{};const e=t.allowed?q1(t.allowed):{},n=t.forbidden?q1(t.forbidden):{},r=t.constants||jI,o=(t.functions||iy)(f),i=t.globalvar,s=t.fieldvar,a=V1(i)?i:p=>`${i}["${p}"]`;let c={},l={},u=0;function f(p){if(P5(p))return p;const b=h[p.type];return b==null&&An("Unsupported type: "+p.type),b(p)}const h={Literal:p=>p.raw,Identifier:p=>{const b=p.name;return u>0?b:pl(n,b)?An("Illegal identifier: "+b):pl(r,b)?r[b]:pl(e,b)?b:(c[b]=1,a(b))},MemberExpression:p=>{const b=!p.computed,v=f(p.object);b&&(u+=1);const y=f(p.property);return v===s&&(l[WI(y)]=1),b&&(u-=1),v+(b?"."+y:"["+y+"]")},CallExpression:p=>{p.callee.type!=="Identifier"&&An("Illegal callee type: "+p.callee.type);const b=p.callee.name,v=p.arguments,y=pl(o,b)&&o[b];return y||An("Unrecognized function: "+b),V1(y)?y(v):y+"("+v.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=>"{"+p.properties.map(f).join(",")+"}",Property:p=>{u+=1;const b=f(p.key);return u-=1,b+":"+f(p.value)}};function d(p){const b={code:f(p),globals:Object.keys(c),fields:Object.keys(l)};return c={},l={},b}return d.functions=o,d.constants=r,d}function oy(t,e,n){return n=(n-t)/(e-t),n=Math.max(0,Math.min(1,n)),n*n*(3-2*n)}function yo(t,e=0,n=1){return Math.max(e,Math.min(n,t))}function QI(t,e,n){return yo((n-t)/(e-t),0,1)}const sy={clamp:yo,format(t,e){return Dt(e)(t)},mapHasKey(t,e){return t.has(e)},isArray:_t,isBoolean:ls,isDefined(t){return t!==void 0},isNumber:Ut,isObject:Rt,isRegExp:nA,isString:rt,isValid(t){return t!=null&&t===t},lerp:Z0,linearstep:QI,replace(t,e,n){return String(t).replace(e,n)},smoothstep:oy};function ZI(t){const e=iy(t);for(const n in sy)e[n]=`this.${n}`;return e}const XI=YI({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:ZI});function KI(t,e={}){try{const n=qI(t),r=XI(n),o=Function("datum","globalObject",`"use strict";
|
|
283
|
+
};`)(this.children,this.stats)};function G1(t){return t.type=="file"}function k5(t){return t.type=="facet"}class yt extends yh{constructor(n,r){super(r);ge(this,Na);Ie(this,Na,n.type)}get label(){return W(this,Na)}}Na=new WeakMap;const an="_uniqueId",H1=1e4,V1=[null];class wh extends yt{get behavior(){return kr}constructor(e){super(e),this.params=e,this.as=e.as??an,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%H1==0&&(this._id=this._getBlock()*H1),this._id}_getBlock(){return this._usedBlocks<this._blocks.length?this._blocks[this._usedBlocks++]:this._reserveBlock()}_reserveBlock(){const e=V1.length;return V1[e]=this,this._blocks.push(e),this._usedBlocks++,e}}function mo(t,e,n){return t.fields=e||[],t.fname=n,t}function _5(t){return t.length===1?R5(t[0]):F5(t)}const R5=t=>function(e){return e[t]},F5=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function An(t){throw Error(t)}function M5(t){const e=[],n=t.length;let r=null,o=0,i="",s,a,c;t=t+"";function l(){e.push(i+t.substring(s,a)),i="",s=a+1}for(s=a=0;a<n;++a)if(c=t[a],c==="\\")i+=t.substring(s,a++),s=a;else if(c===r)l(),r=null,o=-1;else{if(r)continue;s===o&&c==='"'||s===o&&c==="'"?(s=a+1,r=c):c==="."&&!o?a>s?l():s=a+1:c==="["?(a>s&&l(),o=s=a+1):c==="]"&&(o||An("Access path missing open bracket: "+t),o>0&&l(),o=0,s=a+1)}return o&&An("Access path missing closing bracket: "+t),r&&An("Access path missing closing quote: "+t),a>s&&(a++,l()),e}function P5(t,e,n){const r=M5(t);return t=r.length===1?r[0]:t,mo(_5(r),[t],t)}P5("id"),mo(t=>t,[],"identity"),mo(()=>0,[],"zero"),mo(()=>1,[],"one"),mo(()=>!0,[],"true"),mo(()=>!1,[],"false");function q1(t){return typeof t=="function"}function gl(t,e){return Object.hasOwn(t,e)}function L5(t){return typeof t=="string"}function j1(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}const O5="RawCode",N5="Literal",z5="Property",U5="Identifier",G5="ArrayExpression",H5="BinaryExpression",V5="CallExpression",q5="ConditionalExpression",j5="LogicalExpression",W5="MemberExpression",Y5="ObjectExpression",Q5="UnaryExpression";function En(t){this.type=t}En.prototype.visit=function(t){let e,n,r;if(t(this))return 1;for(e=Z5(this),n=0,r=e.length;n<r;++n)if(e[n].visit(t))return 1};function Z5(t){switch(t.type){case G5:return t.elements;case H5:case j5:return[t.left,t.right];case V5:return[t.callee].concat(t.arguments);case q5:return[t.test,t.consequent,t.alternate];case W5:return[t.object,t.property];case Y5:return t.properties;case z5:return[t.key,t.value];case Q5:return[t.argument];case U5:case N5:case O5:default:return[]}}var Gn,Se,ie,Pt,Xe,ml=1,ta=2,bi=3,_r=4,bl=5,yi=6,Qt=7,na=8,X5=9;Gn={},Gn[ml]="Boolean",Gn[ta]="<end>",Gn[bi]="Identifier",Gn[_r]="Keyword",Gn[bl]="Null",Gn[yi]="Numeric",Gn[Qt]="Punctuator",Gn[na]="String",Gn[X5]="RegularExpression";var K5="ArrayExpression",J5="BinaryExpression",$5="CallExpression",eI="ConditionalExpression",W1="Identifier",tI="Literal",nI="LogicalExpression",rI="MemberExpression",iI="ObjectExpression",oI="Property",sI="UnaryExpression",St="Unexpected token %0",aI="Unexpected number",cI="Unexpected string",lI="Unexpected identifier",uI="Unexpected reserved word",fI="Unexpected end of input",xh="Invalid regular expression",vh="Invalid regular expression: missing /",Y1="Octal literals are not allowed in strict mode.",hI="Duplicate data property in object literal not allowed in strict mode",Bt="ILLEGAL",ra="Disabled.",dI=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-\\uA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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\\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0E84\\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 yl(t,e){if(!t)throw new Error("ASSERT: "+e)}function er(t){return t>=48&&t<=57}function Ah(t){return"0123456789abcdefABCDEF".includes(t)}function ia(t){return"01234567".includes(t)}function gI(t){return t===32||t===9||t===11||t===12||t===160||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function oa(t){return t===10||t===13||t===8232||t===8233}function sa(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t===92||t>=128&&dI.test(String.fromCharCode(t))}function wl(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===92||t>=128&&pI.test(String.fromCharCode(t))}const mI={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 Q1(){for(;ie<Pt;){const t=Se.charCodeAt(ie);if(gI(t)||oa(t))++ie;else break}}function Eh(t){var e,n,r,o=0;for(n=t==="u"?4:2,e=0;e<n;++e)ie<Pt&&Ah(Se[ie])?(r=Se[ie++],o=o*16+"0123456789abcdef".indexOf(r.toLowerCase())):We({},St,Bt);return String.fromCharCode(o)}function bI(){var t,e,n,r;for(t=Se[ie],e=0,t==="}"&&We({},St,Bt);ie<Pt&&(t=Se[ie++],!!Ah(t));)e=e*16+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||t!=="}")&&We({},St,Bt),e<=65535?String.fromCharCode(e):(n=(e-65536>>10)+55296,r=(e-65536&1023)+56320,String.fromCharCode(n,r))}function Z1(){var t,e;for(t=Se.charCodeAt(ie++),e=String.fromCharCode(t),t===92&&(Se.charCodeAt(ie)!==117&&We({},St,Bt),++ie,t=Eh("u"),(!t||t==="\\"||!sa(t.charCodeAt(0)))&&We({},St,Bt),e=t);ie<Pt&&(t=Se.charCodeAt(ie),!!wl(t));)++ie,e+=String.fromCharCode(t),t===92&&(e=e.substr(0,e.length-1),Se.charCodeAt(ie)!==117&&We({},St,Bt),++ie,t=Eh("u"),(!t||t==="\\"||!wl(t.charCodeAt(0)))&&We({},St,Bt),e+=t);return e}function yI(){var t,e;for(t=ie++;ie<Pt;){if(e=Se.charCodeAt(ie),e===92)return ie=t,Z1();if(wl(e))++ie;else break}return Se.slice(t,ie)}function wI(){var t,e,n;return t=ie,e=Se.charCodeAt(ie)===92?Z1():yI(),e.length===1?n=bi:mI.hasOwnProperty(e)?n=_r:e==="null"?n=bl:e==="true"||e==="false"?n=ml:n=bi,{type:n,value:e,start:t,end:ie}}function Sh(){var t=ie,e=Se.charCodeAt(ie),n,r=Se[ie],o,i,s;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++ie,{type:Qt,value:String.fromCharCode(e),start:t,end:ie};default:if(n=Se.charCodeAt(ie+1),n===61)switch(e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return ie+=2,{type:Qt,value:String.fromCharCode(e)+String.fromCharCode(n),start:t,end:ie};case 33:case 61:return ie+=2,Se.charCodeAt(ie)===61&&++ie,{type:Qt,value:Se.slice(t,ie),start:t,end:ie}}}if(s=Se.substr(ie,4),s===">>>=")return ie+=4,{type:Qt,value:s,start:t,end:ie};if(i=s.substr(0,3),i===">>>"||i==="<<="||i===">>=")return ie+=3,{type:Qt,value:i,start:t,end:ie};if(o=i.substr(0,2),r===o[1]&&"+-<>&|".includes(r)||o==="=>")return ie+=2,{type:Qt,value:o,start:t,end:ie};if(o==="//"&&We({},St,Bt),"<>=!+-*%&|^/".includes(r))return++ie,{type:Qt,value:r,start:t,end:ie};We({},St,Bt)}function xI(t){let e="";for(;ie<Pt&&Ah(Se[ie]);)e+=Se[ie++];return e.length===0&&We({},St,Bt),sa(Se.charCodeAt(ie))&&We({},St,Bt),{type:yi,value:parseInt("0x"+e,16),start:t,end:ie}}function vI(t){let e="0"+Se[ie++];for(;ie<Pt&&ia(Se[ie]);)e+=Se[ie++];return(sa(Se.charCodeAt(ie))||er(Se.charCodeAt(ie)))&&We({},St,Bt),{type:yi,value:parseInt(e,8),octal:!0,start:t,end:ie}}function X1(){var t,e,n;if(n=Se[ie],yl(er(n.charCodeAt(0))||n===".","Numeric literal must start with a decimal digit or a decimal point"),e=ie,t="",n!=="."){if(t=Se[ie++],n=Se[ie],t==="0"){if(n==="x"||n==="X")return++ie,xI(e);if(ia(n))return vI(e);n&&er(n.charCodeAt(0))&&We({},St,Bt)}for(;er(Se.charCodeAt(ie));)t+=Se[ie++];n=Se[ie]}if(n==="."){for(t+=Se[ie++];er(Se.charCodeAt(ie));)t+=Se[ie++];n=Se[ie]}if(n==="e"||n==="E")if(t+=Se[ie++],n=Se[ie],(n==="+"||n==="-")&&(t+=Se[ie++]),er(Se.charCodeAt(ie)))for(;er(Se.charCodeAt(ie));)t+=Se[ie++];else We({},St,Bt);return sa(Se.charCodeAt(ie))&&We({},St,Bt),{type:yi,value:parseFloat(t),start:e,end:ie}}function AI(){var t="",e,n,r,o,i=!1;for(e=Se[ie],yl(e==="'"||e==='"',"String literal must starts with a quote"),n=ie,++ie;ie<Pt;)if(r=Se[ie++],r===e){e="";break}else if(r==="\\")if(r=Se[ie++],!r||!oa(r.charCodeAt(0)))switch(r){case"u":case"x":Se[ie]==="{"?(++ie,t+=bI()):t+=Eh(r);break;case"n":t+=`
|
|
284
|
+
`;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:ia(r)?(o="01234567".indexOf(r),o!==0&&(i=!0),ie<Pt&&ia(Se[ie])&&(i=!0,o=o*8+"01234567".indexOf(Se[ie++]),"0123".includes(r)&&ie<Pt&&ia(Se[ie])&&(o=o*8+"01234567".indexOf(Se[ie++]))),t+=String.fromCharCode(o)):t+=r;break}else r==="\r"&&Se[ie]===`
|
|
285
|
+
`&&++ie;else{if(oa(r.charCodeAt(0)))break;t+=r}return e!==""&&We({},St,Bt),{type:na,value:t,octal:i,start:n,end:ie}}function EI(t,e){let n=t;e.includes("u")&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,(r,o)=>{if(parseInt(o,16)<=1114111)return"x";We({},xh)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch{We({},xh)}try{return new RegExp(t,e)}catch{return null}}function SI(){var t,e,n,r,o;for(t=Se[ie],yl(t==="/","Regular expression literal must start with a slash"),e=Se[ie++],n=!1,r=!1;ie<Pt;)if(t=Se[ie++],e+=t,t==="\\")t=Se[ie++],oa(t.charCodeAt(0))&&We({},vh),e+=t;else if(oa(t.charCodeAt(0)))We({},vh);else if(n)t==="]"&&(n=!1);else if(t==="/"){r=!0;break}else t==="["&&(n=!0);return r||We({},vh),o=e.substr(1,e.length-2),{value:o,literal:e}}function CI(){var t,e,n;for(e="",n="";ie<Pt&&(t=Se[ie],!!wl(t.charCodeAt(0)));)++ie,t==="\\"&&ie<Pt?We({},St,Bt):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&We({},xh,n),{value:n,literal:e}}function II(){var t,e,n,r;return Xe=null,Q1(),t=ie,e=SI(),n=CI(),r=EI(e.value,n.value),{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:ie}}function TI(t){return t.type===bi||t.type===_r||t.type===ml||t.type===bl}function K1(){if(Q1(),ie>=Pt)return{type:ta,start:ie,end:ie};const t=Se.charCodeAt(ie);return sa(t)?wI():t===40||t===41||t===59?Sh():t===39||t===34?AI():t===46?er(Se.charCodeAt(ie+1))?X1():Sh():er(t)?X1():Sh()}function Zt(){const t=Xe;return ie=t.end,Xe=K1(),ie=t.end,t}function J1(){const t=ie;Xe=K1(),ie=t}function DI(t){const e=new En(K5);return e.elements=t,e}function $1(t,e,n){const r=new En(t==="||"||t==="&&"?nI:J5);return r.operator=t,r.left=e,r.right=n,r}function BI(t,e){const n=new En($5);return n.callee=t,n.arguments=e,n}function kI(t,e,n){const r=new En(eI);return r.test=t,r.consequent=e,r.alternate=n,r}function Ch(t){const e=new En(W1);return e.name=t,e}function aa(t){const e=new En(tI);return e.value=t.value,e.raw=Se.slice(t.start,t.end),t.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=t.regex),e}function eb(t,e,n){const r=new En(rI);return r.computed=t==="[",r.object=e,r.property=n,r.computed||(n.member=!0),r}function _I(t){const e=new En(iI);return e.properties=t,e}function tb(t,e,n){const r=new En(oI);return r.key=e,r.value=n,r.kind=t,r}function RI(t,e){const n=new En(sI);return n.operator=t,n.argument=e,n.prefix=!0,n}function We(t,e){var n,r=Array.prototype.slice.call(arguments,2),o=e.replace(/%(\d)/g,(i,s)=>(yl(s<r.length,"Message reference must be in range"),r[s]));throw n=new Error(o),n.index=ie,n.description=o,n}function xl(t){t.type===ta&&We(t,fI),t.type===yi&&We(t,aI),t.type===na&&We(t,cI),t.type===bi&&We(t,lI),t.type===_r&&We(t,uI),We(t,St,t.value)}function Lt(t){const e=Zt();(e.type!==Qt||e.value!==t)&&xl(e)}function it(t){return Xe.type===Qt&&Xe.value===t}function Ih(t){return Xe.type===_r&&Xe.value===t}function FI(){const t=[];for(ie=Xe.start,Lt("[");!it("]");)it(",")?(Zt(),t.push(null)):(t.push(wi()),it("]")||Lt(","));return Zt(),DI(t)}function nb(){ie=Xe.start;const t=Zt();return t.type===na||t.type===yi?(t.octal&&We(t,Y1),aa(t)):Ch(t.value)}function MI(){var t,e,n,r;if(ie=Xe.start,t=Xe,t.type===bi)return n=nb(),Lt(":"),r=wi(),tb("init",n,r);if(t.type===ta||t.type===Qt)xl(t);else return e=nb(),Lt(":"),r=wi(),tb("init",e,r)}function PI(){var t=[],e,n,r,o={},i=String;for(ie=Xe.start,Lt("{");!it("}");)e=MI(),e.key.type===W1?n=e.key.name:n=i(e.key.value),r="$"+n,Object.prototype.hasOwnProperty.call(o,r)?We({},hI):o[r]=!0,t.push(e),it("}")||Lt(",");return Lt("}"),_I(t)}function LI(){Lt("(");const t=Th();return Lt(")"),t}const OI={if:1};function NI(){var t,e,n;if(it("("))return LI();if(it("["))return FI();if(it("{"))return PI();if(t=Xe.type,ie=Xe.start,t===bi||OI[Xe.value])n=Ch(Zt().value);else if(t===na||t===yi)Xe.octal&&We(Xe,Y1),n=aa(Zt());else{if(t===_r)throw new Error(ra);t===ml?(e=Zt(),e.value=e.value==="true",n=aa(e)):t===bl?(e=Zt(),e.value=null,n=aa(e)):it("/")||it("/=")?(n=aa(II()),J1()):xl(Zt())}return n}function zI(){const t=[];if(Lt("("),!it(")"))for(;ie<Pt&&(t.push(wi()),!it(")"));)Lt(",");return Lt(")"),t}function UI(){ie=Xe.start;const t=Zt();return TI(t)||xl(t),Ch(t.value)}function GI(){return Lt("."),UI()}function HI(){Lt("[");const t=Th();return Lt("]"),t}function VI(){var t,e,n;for(t=NI();;)if(it("."))n=GI(),t=eb(".",t,n);else if(it("("))e=zI(),t=BI(t,e);else if(it("["))n=HI(),t=eb("[",t,n);else break;return t}function rb(){const t=VI();if(Xe.type===Qt&&(it("++")||it("--")))throw new Error(ra);return t}function vl(){var t,e;if(Xe.type!==Qt&&Xe.type!==_r)e=rb();else{if(it("++")||it("--"))throw new Error(ra);if(it("+")||it("-")||it("~")||it("!"))t=Zt(),e=vl(),e=RI(t.value,e);else{if(Ih("delete")||Ih("void")||Ih("typeof"))throw new Error(ra);e=rb()}}return e}function ib(t){let e=0;if(t.type!==Qt&&t.type!==_r)return 0;switch(t.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 qI(){var t,e,n,r,o,i,s,a,c,l;if(t=Xe,c=vl(),r=Xe,o=ib(r),o===0)return c;for(r.prec=o,Zt(),e=[t,Xe],s=vl(),i=[c,r,s];(o=ib(Xe))>0;){for(;i.length>2&&o<=i[i.length-2].prec;)s=i.pop(),a=i.pop().value,c=i.pop(),e.pop(),n=$1(a,c,s),i.push(n);r=Zt(),r.prec=o,i.push(r),e.push(Xe),n=vl(),i.push(n)}for(l=i.length-1,n=i[l],e.pop();l>1;)e.pop(),n=$1(i[l-1].value,i[l-2],n),l-=2;return n}function wi(){var t,e,n;return t=qI(),it("?")&&(Zt(),e=wi(),Lt(":"),n=wi(),t=kI(t,e,n)),t}function Th(){const t=wi();if(it(","))throw new Error(ra);return t}function jI(t){Se=t,ie=0,Pt=Se.length,Xe=null,J1();const e=Th();if(Xe.type!==ta)throw new Error("Unexpect token after expression.");return e}var WI={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 ob(t){function e(s,a,c,l){let u=t(a[0]);return c&&(u=c+"("+u+")",c.lastIndexOf("new ",0)===0&&(u="("+u+")")),u+"."+s+(l<0?"":l===0?"()":"("+a.slice(1).map(t).join(",")+")")}function n(s,a,c){return l=>e(s,l,a,c)}const r="new Date",o="String",i="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(s){s.length<3&&An("Missing arguments to clamp function."),s.length>3&&An("Too many arguments to clamp function.");const a=s.map(t);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:n("getDate",r,0),day:n("getDay",r,0),year:n("getFullYear",r,0),month:n("getMonth",r,0),hours:n("getHours",r,0),minutes:n("getMinutes",r,0),seconds:n("getSeconds",r,0),milliseconds:n("getMilliseconds",r,0),time:n("getTime",r,0),timezoneoffset:n("getTimezoneOffset",r,0),utcdate:n("getUTCDate",r,0),utcday:n("getUTCDay",r,0),utcyear:n("getUTCFullYear",r,0),utcmonth:n("getUTCMonth",r,0),utchours:n("getUTCHours",r,0),utcminutes:n("getUTCMinutes",r,0),utcseconds:n("getUTCSeconds",r,0),utcmilliseconds:n("getUTCMilliseconds",r,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",o,0),lower:n("toLowerCase",o,0),substring:n("substring",o),split:n("split",o),trim:n("trim",o,0),btoa:"btoa",atob:"atob",regexp:i,test:n("test",i),if:function(s){s.length<3&&An("Missing arguments to if function."),s.length>3&&An("Too many arguments to if function.");const a=s.map(t);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function YI(t){const e=t&&t.length-1;return e&&(t[0]==='"'&&t[e]==='"'||t[0]==="'"&&t[e]==="'")?t.slice(1,-1):t}function QI(t){t=t||{};const e=t.allowed?j1(t.allowed):{},n=t.forbidden?j1(t.forbidden):{},r=t.constants||WI,o=(t.functions||ob)(f),i=t.globalvar,s=t.fieldvar,a=q1(i)?i:p=>`${i}["${p}"]`;let c={},l={},u=0;function f(p){if(L5(p))return p;const y=h[p.type];return y==null&&An("Unsupported type: "+p.type),y(p)}const h={Literal:p=>p.raw,Identifier:p=>{const y=p.name;return u>0?y:gl(n,y)?An("Illegal identifier: "+y):gl(r,y)?r[y]:gl(e,y)?y:(c[y]=1,a(y))},MemberExpression:p=>{const y=!p.computed,v=f(p.object);y&&(u+=1);const b=f(p.property);return v===s&&(l[YI(b)]=1),y&&(u-=1),v+(y?"."+b:"["+b+"]")},CallExpression:p=>{p.callee.type!=="Identifier"&&An("Illegal callee type: "+p.callee.type);const y=p.callee.name,v=p.arguments,b=gl(o,y)&&o[y];return b||An("Unrecognized function: "+y),q1(b)?b(v):b+"("+v.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=>"{"+p.properties.map(f).join(",")+"}",Property:p=>{u+=1;const y=f(p.key);return u-=1,y+":"+f(p.value)}};function d(p){const y={code:f(p),globals:Object.keys(c),fields:Object.keys(l)};return c={},l={},y}return d.functions=o,d.constants=r,d}function sb(t,e,n){return n=(n-t)/(e-t),n=Math.max(0,Math.min(1,n)),n*n*(3-2*n)}function bo(t,e=0,n=1){return Math.max(e,Math.min(n,t))}function ZI(t,e,n){return bo((n-t)/(e-t),0,1)}const ab={clamp:bo,format(t,e){return Dt(e)(t)},mapHasKey(t,e){return t.has(e)},isArray:_t,isBoolean:us,isDefined(t){return t!==void 0},isNumber:Ht,isObject:Rt,isRegExp:rA,isString:rt,isValid(t){return t!=null&&t===t},lerp:X0,linearstep:ZI,replace(t,e,n){return String(t).replace(e,n)},smoothstep:sb};function XI(t){const e=ob(t);for(const n in ab)e[n]=`this.${n}`;return e}const KI=QI({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:XI});function JI(t,e={}){try{const n=jI(t),r=KI(n),o=Function("datum","globalObject",`"use strict";
|
|
286
286
|
try {
|
|
287
287
|
return (${r.code});
|
|
288
288
|
} catch (e) {
|
|
289
289
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(t)} + ", " + e.message, e);
|
|
290
|
-
}`).bind(
|
|
290
|
+
}`).bind(ab),i=s=>o(s,e);return i.fields=r.fields,i.globals=r.globals,i.code=r.code,i}catch(n){throw new Error(`Invalid expression: ${t}, ${n.message}`)}}class $I{constructor(e){ge(this,Ur);Gt(this,"paramListeners");ge(this,Mi,new Map);ge(this,Vo,new Map);ge(this,qo,new Map);ge(this,za);Ie(this,za,e??(()=>{})),Ie(this,Ur,new Map),this.paramListeners=new Map}registerParam(e){const n=e.name;if("value"in e&&"expr"in e)throw new Error(`The parameter "${n}" must not have both value and expr properties!`);let r;if(e.push=="outer"){const o=this.findMediatorForParam(n);if(!o)throw new Error(`Parameter "${n}" not found in outer scope!`);const i=o.paramConfigs.get(n);if("expr"in i||"select"in i)throw new Error(`The outer parameter "${n}" must not have expr or select properties!`);r=o.getSetter(n),W(this,Mi).set(n,r)}else if("value"in e)r=this.allocateSetter(n,e.value);else if("expr"in e){const o=this.createExpression(e.expr),i=this.allocateSetter(n,o(null));o.addListener(()=>i(o(null))),r=s=>{}}else r=this.allocateSetter(n,null);if("select"in e){const o=El(e.select);if(Bh(o))r(o.toggle?fb():ub(null));else if(gb(o)){if(!o.encodings)throw new Error(`Interval selection "${n}" must have encodings defined!`);r(hb(o.encodings))}}return W(this,qo).set(n,e),r}allocateSetter(e,n,r=!1){if(ca(e),W(this,Mi).has(e))throw new Error("Setter already allocated for parameter: "+e);const o=i=>{const s=W(this,Ur).get(e);if(i!==s){W(this,Ur).set(e,i);const a=this.paramListeners.get(e);if(a&&!r)for(const c of a)c()}};return o(n),W(this,Mi).set(e,o),o}getSetter(e){const n=W(this,Mi).get(e);if(!n)throw new Error("Setter not found for parameter: "+e);return n}getValue(e){return W(this,Ur).get(e)}findValue(e){const n=this.findMediatorForParam(e);return n==null?void 0:n.getValue(e)}get paramConfigs(){return W(this,qo)}findMediatorForParam(e){var n;return W(this,Ur).has(e)?this:(n=W(this,za).call(this))==null?void 0:n.findMediatorForParam(e)}createExpression(e){if(W(this,Vo).has(e))return W(this,Vo).get(e);const n={},r=JI(e,n),o=new Map;for(const s of r.globals){const a=this.findMediatorForParam(s);if(!a)throw new Error(`Unknown variable "${s}" in expression: ${e}`);o.set(s,a),Object.defineProperty(n,s,{enumerable:!0,get(){return a.getValue(s)}})}const i=new Set;return r.addListener=s=>{for(const[a,c]of o){const l=c.paramListeners.get(a)??new Set;c.paramListeners.set(a,l),l.add(s),i.add(s)}},r.invalidate=()=>{var s;for(const[a,c]of o)for(const l of i)(s=c.paramListeners.get(a))==null||s.delete(l)},r.identifier=()=>r.code,W(this,Vo).set(e,r),r}evaluateAndGet(e){return this.createExpression(e)()}hasPointSelections(){for(const e of W(this,qo).values())if(cb(e)){const n=e.select;if(rt(n)){if(n=="point")return!0}else if(n.type=="point")return!0}return!1}}Ur=new WeakMap,Mi=new WeakMap,Vo=new WeakMap,qo=new WeakMap,za=new WeakMap;function Ot(t){return typeof t=="object"&&t!=null&&"expr"in t&&rt(t.expr)}function cn(t){if(Ot(t))throw new Error(`ExprRef ${JSON.stringify(t)} not allowed here. Expected a scalar value.`);return t}function eT(t){return("expr"in t||"bind"in t)&&!("select"in t)}function cb(t){return!("expr"in t||"bind"in t)&&"select"in t}function Al(t,e,n){const r={...e},o=[],i=s=>{o.push(s),o.length===1&&queueMicrotask(()=>{n(o.slice()),o.length=0})};for(const[s,a]of Object.entries(e))if(Ot(a)){const c=t.createExpression(a.expr);n&&c.addListener(()=>i(s)),Object.defineProperty(r,s,{enumerable:!0,get(){return c()}})}else r[s]=a;return r}function ca(t){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t))throw new Error(`Invalid parameter name: ${t}. Must be a valid JavaScript identifier.`);return t}function lb(t){return Object.assign(()=>t,{addListener:()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(t)})}function ub(t){return{type:"single",datum:t,uniqueId:t==null?void 0:t[an]}}function fb(t){return t??(t=[]),{type:"multi",data:new Map(t.map(e=>[e[an],e]))}}function hb(t){return{type:"interval",intervals:Object.fromEntries(t.map(e=>[e,null]))}}function tT(t,{add:e,remove:n,toggle:r}){const o=t.data;for(const i of e??[])o.set(i[an],i);for(const i of n??[])o.delete(i[an]);for(const i of r??[]){const s=i[an];o.has(s)?o.delete(s):o.set(s,i)}return{type:"multi",data:o}}function nT(t,e){const n=!!(t.empty??!0),r=ca(t.param),o=t.fields??{};if(pb(e))return`${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(an)}]`;if(Dh(e))return`${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(an)}])`;if(db(e)){const i=Object.keys(e.intervals),s=Object.keys(o).filter(_h);if(s.length===0)throw new Error("Filtering using interval selections requires at least one primary positional channel in the config! "+JSON.stringify(t));if(s.some(l=>!i.includes(l)))throw new Error(`Selection channels (${i.join(", ")}) do not match the fields: ${JSON.stringify(t)}!`);const a=l=>`datum[${JSON.stringify(l)}]`;return i.map(l=>{const u=Fh(l),f=o[l],h=o[u]??o[l],d=`${r}.intervals.${l}[0] <= ${a(h)}`,p=`${a(f)} <= ${r}.intervals.${l}[1]`;return`(${r}.intervals.${l} ? (${d} && ${p}) : ${n})`}).join(" && ")}else throw new Error(`Unrecognized selection type : ${JSON.stringify(e)}`)}function db(t){return t.type==="interval"}function pb(t){return t.type==="single"}function Dh(t){return t.type==="multi"}function El(t){const e=typeof t=="string"?{type:t}:t;return Bh(e)&&(e.on??(e.on="click"),e.on==="click"&&(e.toggle=!0)),e}function Bh(t){return t&&t.type=="point"}function gb(t){return t&&t.type=="interval"}function mb(t){return Object.values(t.intervals).some(e=>e&&e.length===2)}function rT(t,e){return Object.entries(t.intervals).every(([n,r])=>(n=="x"||n=="y")&&r&&r[0]<=e[n]&&r[1]>=e[n])}function Ze(t,e=t){if(/^[A-Za-z0-9_]+$/.test(t)){const n=function(o){t in o||iT(o,t)},r=new Function("validator",`
|
|
291
291
|
let validated = !validator;
|
|
292
292
|
return function accessField(datum) {
|
|
293
293
|
if (!validated) {
|
|
@@ -295,57 +295,57 @@ ${n}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of t
|
|
|
295
295
|
validated = true;
|
|
296
296
|
}
|
|
297
297
|
return datum[${JSON.stringify(t)}];
|
|
298
|
-
}`)(n);return Je(r,[t],e)}else return
|
|
298
|
+
}`)(n);return Je(r,[t],e)}else return sc(t)}function iT(t,e){throw new Error(`Invalid field "${e}". Available fields or properties: ${Object.keys(t).join(", ")}`)}function bb(t,e,n){if(!t)return;function r(i){const s=i;return s.fields??(s.fields=[]),s.constant=s.fields.length===0,s.channelDef=e,s.channel=t,s.scaleChannel=((Xt(e)&&e.resolutionChannel)??(Cl(t)&&t))||void 0,"param"in e?(s.predicate=lb(!1),s.predicate.param=e.param,s.predicate.empty=e.empty??!0):(s.predicate=lb(!0),s.predicate.empty=!1),s.asNumberAccessor=()=>s,s}function o(i){if(Ot(i)){const s=r(n.createExpression(i.expr));if(s.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+i.expr);return s}else{const s=i;return r(()=>s)}}if(Rr(e))try{return r(Ze(e.field))}catch(i){throw new Error(`Invalid field definition: ${i.message}`)}else{if(ua(e))return r(n.createExpression(e.expr));if(la(e))return o(e.datum);if(ln(e))return o(e.value);throw new Error(`Invalid channel definition: "${t}": ${JSON.stringify(e)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`)}}function oT(t,e,n){const r=[];if(lT(e)||kh(e)){const o=Array.isArray(e.condition)?e.condition:[e.condition];for(const i of o)r.push(bb(t,i,n))}if(r.push(bb(t,e,n)),r.filter(o=>!o.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+t);return r}function sT(t,e){const n={},r=o=>{var i;return(i=t.getScaleResolution(o))==null?void 0:i.scale};for(const[o,i]of Object.entries(e))i&&(n[o]=aT(oT(o,i,t.paramMediator),r));return n}function aT(t,e){if(t.length===1)return yb(t[0],e);const n=t.map(i=>i.predicate),r=t.map(i=>yb(i,e));return Object.assign(i=>{for(let s=0;s<r.length;s++)if(n[s](i))return r[s](i)},{constant:!1,accessors:r.map(i=>i.accessors[0]),dataAccessor:r.map(i=>i.dataAccessor).find(i=>i),scale:r.map(i=>i.scale).find(i=>i),channelDef:t.at(-1).channelDef})}function yb(t,e){const{channel:n,scaleChannel:r,channelDef:o}=t,i=t.scaleChannel?e(r):void 0;if(r&&!i)throw new Error(`Missing scale! "${n}": ${JSON.stringify(o)}`);return Object.assign(i?s=>i(t(s)):s=>t(s),{scale:i,constant:t.constant,accessors:[t],dataAccessor:t.constant?void 0:t,channelDef:o})}function ln(t){return t&&"value"in t}function Rr(t){return t&&"field"in t}function la(t){return t&&"datum"in t}function Xt(t){return Rr(t)||la(t)||ua(t)||wb(t)}function cT(t,e){const n=t.mark.encoding[e];if(Xt(n))return n;throw new Error("Not a channel def with scale!")}function wb(t){return t&&"chrom"in t}function ua(t){return t&&"expr"in t}function lT(t){return(Rr(t)||la(t))&&"condition"in t}function kh(t){return ln(t)&&"condition"in t}const xi=["x","y"],uT=["x2","y2"],fT=[...xi,...uT];function _h(t){return xi.includes(t)}function fa(t){return fT.includes(t)}const xb={x:"x2",y:"y2"},vb=Object.fromEntries(Object.entries(xb).map(t=>[t[1],t[0]]));function Rh(t){return t in vb}function Fh(t){const e=xb[t];if(e)return e;throw new Error(`${t} has no secondary channel!`)}function vi(t){return vb[t]??t}function Fr(t){return["color","fill","stroke"].includes(vi(t))}function Sl(t){return["shape"].includes(t)}function Cl(t){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy","sample"].includes(t)}function hT(t){switch(t){case"shape":return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}}function Ab(t){if(!Sl(t))throw new Error("Not a discrete channel: "+t);const e=new Map(hT(t).map((n,r)=>[n,r]));return n=>{const r=e.get(n);if(r!==void 0)return r;throw new Error(`Invalid value for "${t}" channel: ${n}`)}}function Mh(){const t=e=>e;return t.invert=e=>e,t.copy=Mh,t.invertRange=()=>{},t.type="null",t}class dT{constructor(e,n,r,o={}){this._container=e,this._sizeSource=n??(()=>({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=H6(i,{antialias:!0,depth:!1,premultipliedAlpha:!0,...o});if(!s)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!eo(s))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");if(wm(s),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=L6(s,this._pickingAttachmentOptions),s.bindFramebuffer(s.FRAMEBUFFER,null),this.adjustGl(),this._updateDpr(),this._clearColor=[0,0,0,0],r){const a=Cr(r).rgb();this._clearColor=[a.r/255,a.g/255,a.b/255,a.opacity]}}invalidateSize(){this._logicalCanvasSize=void 0,this._updateDpr(),this.adjustGl()}_updateDpr(){this.dpr=window.devicePixelRatio}compileShader(e,n){const r="#version 300 es",o="precision mediump float;";_t(n)&&(n=n.join(`
|
|
299
299
|
|
|
300
300
|
`));const i=this.gl,s=n.replaceAll(/ {2,}|^\s*\/\/.*$/gm,"");let a=this._shaderCache.get(s);if(!a){const c=[r,o,n].join(`
|
|
301
301
|
|
|
302
|
-
`);a=i.createShader(e),i.shaderSource(a,c),i.compileShader(a),this._shaderCache.set(s,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize();this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`;const n=this.getPhysicalCanvasSize(e);this.canvas.width=n.width,this.canvas.height=n.height,
|
|
302
|
+
`);a=i.createShader(e),i.shaderSource(a,c),i.compileShader(a),this._shaderCache.set(s,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize();this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`;const n=this.getPhysicalCanvasSize(e);this.canvas.width=n.width,this.canvas.height=n.height,O6(this.gl,this._pickingBufferInfo,this._pickingAttachmentOptions)}finalize(){this.canvas.remove()}getPhysicalCanvasSize(e){return e=e||this.getLogicalCanvasSize(),{width:e.width*this.dpr,height:e.height*this.dpr}}getLogicalCanvasSize(){if(this._logicalCanvasSize)return this._logicalCanvasSize;const e=this._sizeSource(),n=window.getComputedStyle(this._container,null),r=e.width??this._container.clientWidth-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight),o=e.height??this._container.clientHeight-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom);return this._logicalCanvasSize={width:r,height:o},this._logicalCanvasSize}readPickingPixel(e,n){const r=this.gl;e*=this.dpr,n*=this.dpr;const o=this.getPhysicalCanvasSize().height,i=new Uint8Array(4);return r.bindFramebuffer(r.FRAMEBUFFER,this._pickingBufferInfo.framebuffer),r.readPixels(e,o-n-1,1,1,r.RGBA,r.UNSIGNED_BYTE,i),r.bindFramebuffer(r.FRAMEBUFFER,null),i}clearAll(){const e=this.gl,{width:n,height:r}=this.getPhysicalCanvasSize();e.viewport(0,0,n,r),e.disable(e.SCISSOR_TEST),e.clearColor(...this._clearColor),e.clear(e.COLOR_BUFFER_BIT)}createRangeTexture(e,n=!1){const r=this.rangeTextures.get(e.scale);if(!n&&r)return;function o(s,a){return Br(a.type)?a.domain().length:a.type=="threshold"?a.domain().length+1:a.type=="quantize"||a.type=="quantile"?s??4:s}const i=e.channel;if(Fr(i)){const s=e.scale,a=s.props,c=s.range();let l;if(a.scheme)if(s.type=="threshold"&&c)l=Ph(c,this.gl,s.domain().length,r);else{let u=rt(a.scheme)?void 0:a.scheme.count;u=o(u,s),l=mT(a.scheme,this.gl,u,r)}else dl(s.type)||Et(s.type)&&c.length>1?l=bT(c,a.interpolate,this.gl,r):l=Ph(c,this.gl,s.domain().length,r);this.rangeTextures.set(s,l)}else{const s=e.scale;if(s.type==="ordinal"||mi(s.type)){const a=Sl(i)?Ab(i):l=>l,c=s.range();this.rangeTextures.set(s,yT(c.map(a),this.gl,s.domain().length,r))}}}createSelectionTexture(e,n=!0){if(!Dh(e))throw new Error("Not a multi-point selection, cannot create texture");const r=Array.from(e.data.keys()),o=r.length>0?r.sort((c,l)=>c-l):[0],i=this.selectionTextures.get(e),s=this.gl,a=ha(this.gl,{level:0,minMag:s.NEAREST,format:s.RED_INTEGER,internalFormat:s.R32UI,height:1,width:o.length},new Uint32Array(o),n?i:!1);this.selectionTextures.set(e,a)}}function pT(t,e="",n=0){const r=/ERROR:\s*\d+:(\d+)/gi,o=[...e.matchAll(r)],i=new Map(o.map((s,a)=>{const c=parseInt(s[1]),l=o[a+1],u=l?l.index:e.length,f=e.substring(s.index,u);return[c-1,f]}));return t.split(`
|
|
303
303
|
`).map((s,a)=>{const c=i.get(a);return`${a+1+n}: ${s}${c?`
|
|
304
304
|
|
|
305
305
|
^^^ ${c}`:""}`}).join(`
|
|
306
|
-
`)}function
|
|
307
|
-
Error compiling: ${i}`,t.deleteShader(c));t.deleteProgram(r)}if(i)return{message:i,detail:s}}return{program:r,getProgramErrors:o}}function
|
|
306
|
+
`)}function gT(t,e,n){const r=t.createProgram();t.attachShader(r,e),t.attachShader(r,n),t.linkProgram(r);function o(){let i,s;if(!t.getProgramParameter(r,t.LINK_STATUS)){i=t.getProgramInfoLog(r);for(const c of[e,n])t.getShaderParameter(c,t.COMPILE_STATUS)||(i=t.getShaderInfoLog(c),s=pT(t.getShaderSource(c),i,0)+`
|
|
307
|
+
Error compiling: ${i}`,t.deleteShader(c));t.deleteProgram(r)}if(i)return{message:i,detail:s}}return{program:r,getProgramErrors:o}}function ha(t,e,n,r){return r?Pg(t,r,n,e):r=Vs(t,{...e,src:n}),r}function mT(t,e,n,r){const o=rt(t)?t:t.name,i=!rt(t)&&t.extent||[0,1];if(n===void 0&&!rt(t)&&(n=t.count),o){const s=mh(o);if(kn(s)){const a=Eb(s,{extent:i,count:n});return ha(e,{minMag:e.LINEAR,format:e.RGB,height:1,wrap:e.CLAMP_TO_EDGE},a,r)}else{if(_t(s))return Ph(s,e);throw new Error("Unknown scheme: "+o)}}}function bT(t,e="rgb",n,r){const o=pl(t,rt(e)?e:e.type,rt(e)?void 0:e.gamma),i=Eb(o);return ha(n,{minMag:n.LINEAR,format:n.RGB,height:1,wrap:n.CLAMP_TO_EDGE},i,r)}function yT(t,e,n,r){const o=Math.max(t.length,n||0),i=new Float32Array(o);for(let s=0;s<o;s++)i[s]=t[s%t.length];return ha(e,{minMag:e.NEAREST,format:e.RED,internalFormat:e.R32F,height:1},i,r)}function Ph(t,e,n,r){const o=Sb(t,n);return ha(e,{minMag:e.NEAREST,format:e.RGB,height:1},o,r)}function Eb(t,{extent:e=[0,1],reverse:n=!1,count:r=256}={}){const o=e[0],i=Os(e)-o,s=As(r).map(a=>a/(r-1)).map(a=>o+a/i).map(t);return n&&s.reverse(),Sb(s)}function Sb(t,e){const n=Math.max(t.length,e||0),r=new Uint8Array(n*3);for(let o=0;o<n;o++){const i=t[o%t.length],s=Cr(i);if(!s)throw new Error(`Invalid color "${i}" in the scheme ${JSON.stringify(t)}!`);const a=s.rgb();r[o*3+0]=a.r,r[o*3+1]=a.g,r[o*3+2]=a.b}return r}function Lh(t){const e=Cr(t).rgb();return[e.r,e.g,e.b].map(n=>n/255)}const yo="attr_",wT="uDomain_",xT="range_",vT="accessor_",Cb="scale_",AT="getScaled_",Oh="uRangeTexture_",Il="uParam_",da="checkSelection_",ET=3402823466e29;function ST(t){const e=t.match(/^(?:(\w+)-)?(\w+)$/);if(!e)throw new Error("Not a scale type: "+t);return{family:e[1]||"continuous",transform:e[2]}}function pa(t,e){return`${vT}${t}_${e}`}function CT(t,e,n){let r;if(Sl(t))r=Ai(Ab(t)(n));else if(rt(n))if(Fr(t))r=kT(n);else throw new Error(`String values are not supported on the "${t}" channel: ${n}`);else if(us(n))r=Ai(n?1:0);else if(n===null)if(Fr(t))r=Ai([0,0,0]);else throw new Error(`null value is not supported on the "${t}" chanel.`);else r=Ai(n);const o=pa(t,e),i=`
|
|
308
308
|
${r.type} ${o}() {
|
|
309
309
|
// Constant value
|
|
310
310
|
return ${r};
|
|
311
|
-
}`;return{channel:t,accessorGlsl:i,accessorFunctionName:o}}function
|
|
312
|
-
uniform ${n} ${o};`,s=
|
|
311
|
+
}`;return{channel:t,accessorGlsl:i,accessorFunctionName:o}}function IT(t,e){let n="float",r=c=>c;Fr(t)&&(n="vec3",r=c=>Lh(c));const o=`u${PT(t)}_${e}`,i=` // Dynamic value
|
|
312
|
+
uniform ${n} ${o};`,s=pa(t,e);let a=`
|
|
313
313
|
${n} ${s}() {
|
|
314
314
|
// Dynamic value
|
|
315
315
|
return ${o};
|
|
316
|
-
}`;return{channel:t,uniformName:o,uniformGlsl:i,accessorGlsl:a,accessorFunctionName:s,adjuster:r}}function
|
|
316
|
+
}`;return{channel:t,uniformName:o,uniformGlsl:i,accessorGlsl:a,accessorFunctionName:s,adjuster:r}}function Ib(t,e,n,r=[t]){const{attributeType:o}=wo(e,t),i=yo+zh(r),s=`in highp ${o} ${i};`,a=pa(t,n),c=`
|
|
317
317
|
${o} ${a}() {
|
|
318
318
|
return ${i};
|
|
319
|
-
}`;return{channel:t,attributeName:i,attributeGlsl:s,accessorGlsl:c,accessorFunctionName:a}}function
|
|
319
|
+
}`;return{channel:t,attributeName:i,attributeGlsl:s,accessorGlsl:c,accessorFunctionName:a}}function TT(t,e,n){const{attributeType:r}=wo(e,t),o=yo+zh(t),i=` uniform highp ${r} ${o};`,s=pa(t,n),a=`
|
|
320
320
|
${r} ${s}() {
|
|
321
321
|
return ${o};
|
|
322
|
-
}`;return{channel:t,uniformName:o,uniformGlsl:i,accessorGlsl:a,accessorFunctionName:s}}function
|
|
323
|
-
${v} ${
|
|
322
|
+
}`;return{channel:t,uniformName:o,uniformGlsl:i,accessorGlsl:a,accessorFunctionName:s}}function DT(t,e,n){e??(e=Mh());const r=vi(t),o=wT+r,i=xT+r,{hp:s,attributeType:a}=wo(e,t),c=e.domain?e.domain().length:void 0;let l;const u=[];u.push(""),u.push("/".repeat(70)),u.push(`// Channel: ${t}`),u.push("");const{transform:f}=ST(e.type),h=(B,...N)=>_T.apply(null,[B,"value",...N]);let d;switch(f){case"linear":d=h("scaleLinear","domain",i);break;case"log":d=h("scaleLog","domain",i,e.base());break;case"symlog":d=h("scaleSymlog","domain",i,e.constant());break;case"pow":case"sqrt":d=h("scalePow","domain",i,e.exponent());break;case"index":case"locus":d=h("scaleBandHp","domain",i,e.paddingInner(),e.paddingOuter(),e.align(),n.band??.5);break;case"point":case"band":d=h("scaleBand","domain",i,e.paddingInner(),e.paddingOuter(),e.align(),n.band??.5);break;case"ordinal":case"null":case"identity":d=h("scaleIdentity");break;case"threshold":break;default:throw new Error(`Unsupported scale type: ${e.type}! ${t}: ${JSON.stringify(n)}`)}const p=Mb(e,t);let y;if(p&&t==r){const B=e.props.range??[];if(Ot(B)||B.some(Ot)){if(p.length<1||p.length>4)throw new Error(`A range with ExprRefs must have 1-4 elements, not ${p.length}! Range: ${JSON.stringify(p)}`);y=` uniform ${Db(p.length)} ${i};`}else if(p.length&&p.every(Ht)){const N=kb(p);u.push(`const ${N.type} ${i} = ${N};`)}}const v=Bb(t);let b;if(Fr(t)){const B=Oh+r;if(t==r&&u.push(`uniform sampler2D ${B};`),Et(e.type))b=`getInterpolatedColor(${B}, transformed)`;else if(Br(e.type)||mi(e.type))b=`getDiscreteColor(${B}, int(transformed))`;else throw new Error("Problem with color scale!")}else if(e.type==="ordinal"||mi(e.type)){const B=Oh+r;t==r&&u.push(`uniform sampler2D ${B};`),b=`getDiscreteColor(${B}, int(transformed)).r`}const A=[],S=Et(e.type)&&c>2,E=mi(e.type)||S;if(A.push("int slot = 0;"),E){const B=o;A.push(S?`while (slot < ${B}.length() - 2 && value >= ${B}[slot + 1]) { slot++; }`:`while (slot < ${B}.length() && value >= ${B}[slot]) { slot++; }`)}const I=Et(e.type)||mi(e.type)||["band","point"].includes(e.type);if(d){const B=o;I&&(s?A.push(`vec3 domain = ${B};`):A.push(`vec2 domain = vec2(${B}[slot], ${B}[slot + 1]);`)),A.push(`float transformed = ${d};`),S&&A.push(`transformed = (float(slot) + transformed) / (float(${B}.length() - 1));`)}else A.push("float transformed = float(slot);");"clamp"in e&&e.clamp()&&A.push(`transformed = clampToRange(transformed, ${kb(p)});`),A.push(`return ${b??"transformed"};`),u.push(`
|
|
323
|
+
${v} ${Cb}${t}(${a} value) {
|
|
324
324
|
${A.map(B=>` ${B}
|
|
325
325
|
`).join("")}
|
|
326
326
|
}`);const _=u.join(`
|
|
327
|
-
`);if(I&&t==r){const B=Et(e.type)||
|
|
328
|
-
${
|
|
327
|
+
`);if(I&&t==r){const B=Et(e.type)||mi(e.type)?c:2;l=s?` highp vec3 ${o};`:` mediump float ${o}[${B}];`}return{glsl:_,domainUniformName:o,domainUniform:l,rangeUniformName:i,rangeUniform:y}}function BT(t,e){const n=Bb(t),r=[],o=[];for(let i=0;i<e.length;i++){const s=e[i],a=pa(t,i),{param:c,empty:l}=s.predicate;r.push(c?`${da}${c}(${!!l})`:null),o.push(s.scaleChannel?`return ${Cb}${t}(${a}());`:`return ${a}();`)}return`${n} ${AT}${t}() {
|
|
328
|
+
${LT(r,o)}
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
#define ${t}_DEFINED`}function
|
|
331
|
+
#define ${t}_DEFINED`}function Tb(t){if(!Ht(t))throw new Error(`Not a number: ${t}`);if(t==1/0)return""+ET;if(t==-1/0)return""+-3402823466e29;{let e=`${t}`;return/^(-)?\d+$/.test(e)&&(e+=".0"),e}}function Ai(t){typeof t=="number"&&(t=[t]);const e=t.length;if(e<1||e>4)throw new Error("Invalid number of components: "+e);const n=Db(e),r=`${n}(${t.map(Tb).join(", ")})`;return Object.assign(r,{type:n,numComponents:e})}function Db(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error("Invalid number of components: "+t)}}function Bb(t){return Fr(t)?"vec3":t=="uniqueId"?"uint":"float"}function kT(t){return Ai(Lh(t))}function kb(t){return Ai([t[0],Os(t)])}function _T(t,...e){const n=[];for(const r of e)Ht(r)?n.push(Tb(r)):_t(r)?n.push(Ai(r)):n.push(r);return`${t}(${n.join(", ")})`}function wo(t,e){var s;const n=t&&Br(t.type),r=t&&_b(t.type),o=r&&RT(t.domain()),i=o?{attributeType:"uvec2",arrayConstructor:Uint32Array}:r?{attributeType:"uint",arrayConstructor:Uint32Array}:n?{attributeType:"uint",arrayConstructor:Uint16Array}:e=="uniqueId"?{attributeType:"uint",arrayConstructor:Uint32Array}:{attributeType:"float",arrayConstructor:Float32Array};return Object.assign(i,{numComponents:+(((s=i.attributeType.match(/^vec([234])$/))==null?void 0:s[1])??1),discrete:n,hp:r,largeHp:o})}function _b(t){return t=="index"||t=="locus"}function RT(t){return t[1]>2**32}const Nh=2**12;function Rb(t,e=[]){const n=t%Nh,r=(t-n)/Nh;return e[0]=r,e[1]=n,e}function FT(t){const e=t%Nh;return[t-e,e]}function MT(t){return[...FT(t[0]),t[1]-t[0]]}function Fb(t){const e=new Wn([],JSON.stringify);for(const[n,r]of Object.entries(t)){const o=r.channelDef;if(Rr(o)){const s=[o.field,r.scale?(Et(r.scale.type)||mi(r.scale.type))??!1:!1];e.set(s,[...e.get(s)??[],n])}}return e}function zh(t){return Ft(t).join("_")}function PT(t){return t[0].toUpperCase()+t.slice(1)}const Mb=(t,e)=>dl(t.type)||Et(t.type)&&Fr(e)?[0,1]:t.range?t.range():void 0;function LT(t,e){if(t.length!=e.length)throw new Error("Unequal array lengths");const n=t.length;if(n==0)return"";if(n==1&&t[0]==null)return e[0];const r=[];for(let o=0;o<n;o++){const i=t[o],s=o==0?`if (${i})`:i==null&&o==n-1?"else":`else if (${i})`;r.push(` ${s} {
|
|
332
332
|
${e[o]}
|
|
333
333
|
}`)}return r.join(`
|
|
334
|
-
`)}const
|
|
334
|
+
`)}const Pb=1e4;class OT{constructor(e){ge(this,jo);ge(this,Ua,!1);this.size=e,this.arrays={},this.pushers=[],this.dataUpdaters=[],this.vertexCount=0}configure(){if(W(this,Ua))throw new Error("Already configured!");de(this,jo,Av).call(this),de(this,jo,Ev).call(this),Ie(this,Ua,!0)}addConverter(e,n){const r=this.createUpdater(yo+e,n.numComponents||1,n.targetArrayType??Float32Array,n.arrayReference),o=n.f;this.dataUpdaters.push(n.arrayReference?i=>r(o(i)):i=>r(o(i)))}createUpdater(e,n,r=Float32Array,o=void 0){if(!Ht(this.size))throw new Error("The number of vertices must be defined!");let i,s,a=0;const c=new r(this.size*n);if(this.arrays[e]={data:c,numComponents:n},n==1){let l=0;const u=f=>{l=+f};i=()=>{c[a++]=l},s=u}else{let l=o??[0];const u=o?f=>{}:f=>{l=f};switch(n){case 1:break;case 2:i=()=>{c[a++]=l[0],c[a++]=l[1]},s=u;break;case 3:i=()=>{c[a++]=l[0],c[a++]=l[1],c[a++]=l[2]},s=u;break;case 4:i=()=>{c[a++]=l[0],c[a++]=l[1],c[a++]=l[2],c[a++]=l[3]},s=u;break;default:throw new Error("Invalid numComponents: "+n)}}return this.pushers.push(i),s}pushAll(){throw new Error("Call configure() first!")}updateFromDatum(e){throw new Error("Call configure() first!")}pushFromDatum(e){this.updateFromDatum(e),this.pushAll()}}Ua=new WeakMap,jo=new WeakSet,Av=function(){if(this.size>Pb){const e=this.pushers.map((r,o)=>`const p${o} = that.pushers[${o}];`).join(`
|
|
335
335
|
`),n=this.pushers.map((r,o)=>` p${o}();`).join(`
|
|
336
336
|
`);this.pushAll=new Function("that",`${e}
|
|
337
337
|
return function unrolledPushAll() {
|
|
338
338
|
${n}
|
|
339
339
|
that.vertexCount++;
|
|
340
|
-
};`)(this)}else this.pushAll=()=>{for(let e=0;e<this.pushers.length;e++)this.pushers[e]();this.vertexCount++}},
|
|
340
|
+
};`)(this)}else this.pushAll=()=>{for(let e=0;e<this.pushers.length;e++)this.pushers[e]();this.vertexCount++}},Ev=function(){if(this.size>Pb){const e=this.dataUpdaters.map((r,o)=>`const u${o} = that.dataUpdaters[${o}];`).join(`
|
|
341
341
|
`),n=this.dataUpdaters.map((r,o)=>` u${o}(datum);`).join(`
|
|
342
342
|
`);this.updateFromDatum=new Function("that","datum",`${e}
|
|
343
343
|
return function unrolledUpdateFromDatum(datum) {
|
|
344
344
|
${n}
|
|
345
|
-
};`)(this)}else this.updateFromDatum=e=>{for(let n=0;n<this.dataUpdaters.length;n++)this.dataUpdaters[n](e)}};const
|
|
345
|
+
};`)(this)}else this.updateFromDatum=e=>{for(let n=0;n<this.dataUpdaters.length;n++)this.dataUpdaters[n](e)}};const ga=5,Uh=127;function Gh(t){const e=[];for(let p=0;p<=Uh;p++)e.push(void 0);const n=new Map;for(const p of t.chars)p.id<=Uh?e[p.id]=p:n.set(p.id,p);const r=8722;n.has(r)||n.set(r,e[45]);function o(p){return(p<=Uh?e[p]:n.get(p))||e[63]}function i(p){return o(p.charCodeAt(0))}const s=t.common.base,a=i("x"),c=i("X"),l=i("q"),u=a.height-ga*2,f=c.height-ga*2,h=l.height-a.height+l.yoffset-a.yoffset;function d(p,y=1){let v=0;for(let b=0;b<p.length;b++)v+=o(p.charCodeAt(b)).xadvance;return v/s*y}return{measureWidth:d,getCharByCode:o,getChar:i,xHeight:u,capHeight:f,descent:h,common:t.common}}const Lb=2**31-1,NT=-2147483648;function zT(t,e,n,r=n){const o=new Array(t);o.fill(Lb);let i=NT,s=-1/0,a=!1;const c=new Array(t);c.fill(0);const l=e[0],f=(e[1]-e[0])/t,h=(b,A)=>{const S=(b-l)/f,E=Math.floor(S);return bo(A&&E==S?E-1:E,0,t-1)};function d(b,A,S){if(a)return;if(A>i)i=A;else{a=!0;return}const E=n(b);if(E<s){a=!0;return}s=E;const I=h(E,!1);o[I]>A&&(o[I]=A),c[I]<S&&(c[I]=S)}function p(b,A,S){if(a)return;if(A>i)i=A;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const E=n(b),I=r(b);if(E<s){a=!0;return}else if(I<E){a=!0;return}s=E;const _=h(E,!1),B=h(I,!0);for(let N=_;N<=B;N++)o[N]>A&&(o[N]=A),c[N]<S&&(c[N]=S)}const y=(b,A,S=[0,0])=>{const E=h(b,!1),I=h(A,!0),_=o[E],B=Math.max(c[I],_);return S[0]=_,S[1]=B,S},v=()=>{if(a)return;for(let A=1;A<c.length;A++)c[A]<c[A-1]&&(c[A]=c[A-1]);let b=!0;for(let A=o.length-1;A>0;A--)b&&o[A]==Lb?(o[A]=c[A],b=!1):o[A-1]>o[A]&&(o[A-1]=o[A]);return y};return d.getIndex=v,p.getIndex=v,n==r?d:p}function UT(){let t=0,e,n=0;const r=new Map,o=i=>(i===e||(n=r.get(i),n===void 0&&(n=t++,r.set(i,n)),e=i),n);return o.addAll=i=>{for(const s of i)o(s)},o.invert=i=>{for(const s of r.entries())if(s[1]==i)return s[0]},o.domain=()=>[...r.keys()],o}class ma{constructor({encoders:e,numVertices:n=void 0,attributes:r=[]}){this.encoders=e,this.variableEncoders=Object.fromEntries(Object.entries(e).filter(([i,s])=>r.includes(i)&&s&&!s.constant));const o=[...Fb(e).entries()].filter(([i,s])=>i[1]&&s.length>1).map(([i,s])=>s);this.allocatedVertices=n,this.variableBuilder=new OT(n);for(const[i,s]of Object.entries(this.variableEncoders)){const a=s.dataAccessor;if(!a)continue;const c=o.find(S=>S.find(E=>E==i));if(c&&i!=c[0])continue;const l=a.asNumberAccessor(),u=s.scale,{largeHp:f,arrayConstructor:h,discrete:d,numComponents:p}=wo(u,i),y=[0,0];let v;u&&d&&"domain"in u&&(v=UT(),v.addAll(u.domain()));const b=v?S=>v(a(S)):f?S=>Rb(l(S),y):l,A=c?zh(c):i;this.variableBuilder.addConverter(A,{f:b,numComponents:p,arrayReference:f?y:void 0,targetArrayType:h})}this.lastOffset=0,this.rangeMap=new Wn([],JSON.stringify)}registerBatch(e){var i;const n=this.lastOffset,r=this.variableBuilder.vertexCount,o=r-n;o&&this.rangeMap.set(e,{offset:n,count:o,xIndex:(i=this.xIndexer)==null?void 0:i.getIndex()}),this.lastOffset=r}addBatches(e){for(const[n,r]of e)this.addBatch(n,r)}addBatch(e,n,r=0,o=n.length){this.prepareXIndexer(n,r,o);for(let i=r;i<o;i++){const s=n[i];this.variableBuilder.pushFromDatum(s),this.addToXIndex(s)}this.registerBatch(e)}prepareXIndexer(e,n=0,r=n+e.length){var l;const o=()=>{this.addToXIndex=u=>{},this.xIndexer=void 0},i=(l=this.encoders.x)==null?void 0:l.channelDef;if(!("buildIndex"in i)||!i.buildIndex||!e.length||r-n<0){o();return}const s=u=>{var f;return u&&Et((f=u.scale)==null?void 0:f.type)&&u},a=s(this.variableEncoders.x),c=s(this.variableEncoders.x2);if(a&&!a.constant&&(!c||!c.constant)){const u=a.dataAccessor.asNumberAccessor(),f=c?c.dataAccessor.asNumberAccessor():u,h=[u(e[n]),f(e[r-1])];if(h[1]>h[0]){this.xIndexer=zT(50,h,u,f);let d=this.variableBuilder.vertexCount;this.addToXIndex=p=>{let y=this.variableBuilder.vertexCount;this.xIndexer(p,d,y),d=y}}else o()}else o()}addToXIndex(e){}toArrays(){return{arrays:this.variableBuilder.arrays,vertexCount:this.variableBuilder.vertexCount,allocatedVertices:this.allocatedVertices,rangeMap:this.rangeMap}}}class GT extends ma{constructor({encoders:e,attributes:n,numItems:r}){super({encoders:e,attributes:n,numVertices:r*6}),this.variableBuilder.configure();const o=this.variableBuilder.pushAll;this.pushAllSixTimes=r>500?new Function("pushAll",`return function unrolledPushAllSixTimes() {
|
|
346
346
|
pushAll(); pushAll(); pushAll(); pushAll(); pushAll(); pushAll();
|
|
347
|
-
};`)(o):function(){o(),o(),o(),o(),o(),o()}}addBatch(e,n,r=0,o=n.length){if(!(o<=r)){this.prepareXIndexer(n,r,o);for(let i=r;i<o;i++){const s=n[i];this.variableBuilder.updateFromDatum(s),this.pushAllSixTimes(),this.addToXIndex(s)}this.registerBatch(e)}}}class
|
|
348
|
-
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;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));}}`,
|
|
347
|
+
};`)(o):function(){o(),o(),o(),o(),o(),o()}}addBatch(e,n,r=0,o=n.length){if(!(o<=r)){this.prepareXIndexer(n,r,o);for(let i=r;i<o;i++){const s=n[i];this.variableBuilder.updateFromDatum(s),this.pushAllSixTimes(),this.addToXIndex(s)}this.registerBatch(e)}}}class HT extends ma{constructor({encoders:e,attributes:n,tessellationThreshold:r=1/0,visibleRange:o=[-1/0,1/0],numItems:i}){super({encoders:e,attributes:n,numVertices:r==1/0?i*6:void 0}),this.visibleRange=o,this.tessellationThreshold=r||1/0,this.updateSide=this.variableBuilder.createUpdater("side",1),this.updatePos=this.variableBuilder.createUpdater("pos",1),this.variableBuilder.configure()}addBatch(e,n,r=0,o=n.length){this.prepareXIndexer(n,r,o);for(let i=r;i<o;i++){const s=n[i];this.variableBuilder.updateFromDatum(s),this.updateSide(-.5),this.updatePos(0),this.variableBuilder.pushAll();const a=1;for(let c=0;c<=a;c++)this.updatePos(c/a),this.updateSide(-.5),this.variableBuilder.pushAll(),this.updateSide(.5),this.variableBuilder.pushAll();this.variableBuilder.pushAll(),this.addToXIndex(s)}this.registerBatch(e)}}class VT extends ma{constructor({encoders:e,attributes:n,numItems:r=void 0}){super({encoders:e,attributes:n,numVertices:r}),this.variableBuilder.configure()}}class qT extends ma{constructor({encoders:e,attributes:n,numItems:r=void 0}){super({encoders:e,attributes:n,numVertices:r}),this.variableBuilder.configure()}toArrays(){const e=this.variableBuilder.arrays;for(let n of Object.values(e))n.divisor=1;return super.toArrays()}}class jT extends ma{constructor({encoders:e,attributes:n,fontMetrics:r,properties:o,numCharacters:i=void 0}){super({encoders:e,attributes:n,numVertices:i*6}),this.metadata=r,this.metrics=r,this.properties=o;const a=e.text.channelDef;this.numberFormat=!ln(a)&&"format"in a&&a.format?Dt(a.format):c=>c,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(e,n,r=0,o=n.length){const i=this.properties.align||"left",s=this.properties.logoLetters??!1,a=this.metadata.common.base,c=this.metadata.common.scaleH;let l=-5;switch(this.properties.baseline){case"top":l+=this.metrics.capHeight;break;case"middle":l+=this.metrics.capHeight/2;break;case"bottom":l-=this.metrics.descent;break}const u=this.encoders.text,f=[0,0];this.updateVertexCoord(f);const h=[0,0];this.updateTextureCoord(h),this.prepareXIndexer(n,r,o);for(let d=r;d<o;d++){const p=n[d],y=this.numberFormat(u(p)),v=rt(y)?y:y===null?"":""+y;if(v.length==0)continue;this.variableBuilder.updateFromDatum(p);const b=s?v.length:this.metrics.measureWidth(v);this.updateWidth(b);let A=i=="right"?-b:i=="center"?-b/2:0;if(!s){const _=this.metrics.getCharByCode(v.charCodeAt(0));A-=(_.width-_.xadvance)/a/2}let S=-.5,E=1,I=1;for(let _=0;_<v.length;_++){const B=this.metrics.getCharByCode(v.charCodeAt(_)),N=s?1:B.xadvance/a;if(B.id==32){A+=N;continue}s?(I=(B.width+ga*2)/B.width,A=-I/2,E=(B.height+ga*2)/B.height,S=-.5-ga/B.height):(E=B.height/a,S=-(B.height+B.yoffset+l)/a,I=B.width/a);const F=B.x,M=B.y;f[0]=A,f[1]=S+E,h[0]=F/c,h[1]=M/c,this.variableBuilder.pushAll(),f[0]=A+I,f[1]=S+E,h[0]=(F+B.width)/c,h[1]=M/c,this.variableBuilder.pushAll(),f[0]=A,f[1]=S,h[0]=F/c,h[1]=(M+B.height)/c,this.variableBuilder.pushAll(),f[0]=A+I,f[1]=S+E,h[0]=(F+B.width)/c,h[1]=M/c,this.variableBuilder.pushAll(),f[0]=A,f[1]=S,h[0]=F/c,h[1]=(M+B.height)/c,this.variableBuilder.pushAll(),f[0]=A+I,f[1]=S,h[0]=(F+B.width)/c,h[1]=(M+B.height)/c,this.variableBuilder.pushAll(),A+=N}this.addToXIndex(p)}this.registerBatch(e)}}const Ob=`#define PI 3.141593
|
|
348
|
+
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;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));}}`,WT="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));}",YT=`/***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;
|
|
349
349
|
#if !defined(SAMPLE_FACET_UNIFORM) && !defined(SAMPLE_FACET_TEXTURE)
|
|
350
350
|
SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1.0);}
|
|
351
351
|
#elif defined(SAMPLE_FACET_UNIFORM)
|
|
@@ -353,37 +353,37 @@ SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1
|
|
|
353
353
|
#elif defined(SAMPLE_FACET_TEXTURE)
|
|
354
354
|
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);}
|
|
355
355
|
#endif
|
|
356
|
-
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;}}`,
|
|
356
|
+
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;}}`,QT=`/**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){
|
|
357
357
|
#ifdef uniqueId_DEFINED
|
|
358
358
|
uint id=attr_uniqueId;vPickingColor=vec4(ivec4(id>>0,id>>8,id>>16,id>>24)&0xFF)/float(0xFF);
|
|
359
359
|
#else
|
|
360
360
|
vPickingColor=vec4(1.0);
|
|
361
361
|
#endif
|
|
362
|
-
return true;}return false;}`,
|
|
363
|
-
return ${
|
|
364
|
-
}`)}}else if(
|
|
365
|
-
uniform highp usampler2D ${M};`);const C=this.getContext().glHelper,Y=C.selectionTextures;this.selectionTextureOps.push(()=>{const oe=B.getValue(_),ae=Y.get(oe);if(!ae)throw new Error(`Bug: no selection texture found for "${_}"!`);
|
|
362
|
+
return true;}return false;}`,ZT="in highp vec4 vPickingColor;",Tl=Symbol("cacheMap");function Dl(t,e,n){let r=ba(t).get(e);return r===void 0&&(r=n(e),ba(t).set(e,r)),r}function XT(t,e){ba(t).delete(e)}function Bl(t,e){const n=ba(t);for(const r of n.keys())r.startsWith(e)&&n.delete(r);ba(t).delete(e)}function Nb(t){t[Tl]=new Map}function ba(t){return t[Tl]||Nb(t),t[Tl]}function zb(...t){const e={get(n,r,o){for(const i of t){const a=i()[r];if(a!==void 0)return a}},has(n,r,o){for(const i of t){const s=i();if(r in s)return!0}return!1}};return new Proxy({},e)}function KT(t){return rt(t)||Ht(t)||us(t)}class Mr extends Error{constructor(e,n){super(e),this.name="ViewError",this.view=n}}const JT="SAMPLE_FACET_UNIFORM",Ub="SAMPLE_FACET_TEXTURE",Gb="uSelectionTexture_";class ya{constructor(e){ge(this,In,[]);this.unitView=e,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 $T,this.defaultProperties={get clip(){return["x","y"].map(n=>e.getScaleResolution(n)).some(n=>(n==null?void 0:n.isZoomable())??!1)},xOffset:0,yOffset:0,minBufferSize:0},this.properties=zb(typeof this.unitView.spec.mark=="object"?()=>this.unitView.spec.mark:()=>({}),()=>this.defaultProperties)}augmentDefaultProperties(e){Object.defineProperties(this.defaultProperties,Object.getOwnPropertyDescriptors(e))}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 e={sample:void 0,uniqueId:void 0};return this.isPickingParticipant()&&(e.uniqueId={field:an}),e}fixEncoding(e){return e}setupExprRefsNeedingGraphicsUpdate(e){const n=this.getSupportedChannels(),r={};for(const i of e){const s=this.properties[i];if(s&&Ot(s)){const a=this.unitView.paramMediator.createExpression(s.expr);a.addListener(()=>{this.updateGraphicsData(),this.unitView.context.animator.requestRender()}),n.includes(i)||Object.defineProperty(r,i,{get(){return a()}})}}const o=this.properties;this.properties=zb(()=>r,()=>o)}get encoding(){return Dl(this,"encoding",()=>{var s;const e=this.getDefaultEncoding(),n=this.unitView.getEncoding(),r=a=>{const c=this.properties[a];return KT(c)||Ot(c)?{value:c}:void 0},o=Object.fromEntries(this.getSupportedChannels().map(a=>[a,r(a)]).filter(a=>ln(a[1]))),i=this.fixEncoding({...e,...o,...n});for(const a of Object.keys(i))this.getSupportedChannels().includes(a)||delete i[a];return i.x&&((s=i.x).buildIndex??(s.buildIndex=!0)),i})}getContext(){return this.unitView.context}getType(){return this.unitView.getMarkType()}initializeData(){}initializeEncoders(){this.encoders=sT(this.unitView,this.encoding)}async initializeGraphics(){}updateGraphicsData(){}getSampleFacetMode(){if(this.encoders.facetIndex)return Ub;if(this.unitView.getLayoutAncestors().find(e=>"samples"in e.spec))return JT}createAndLinkShaders(e,n,r=[]){const o=this.getAttributes(),i=this.encoders,s=this.getSampleFacetMode();s&&r.push(`#define ${s}`);const a="// view: "+this.unitView.getPathString();let c=[];const l=new Set,u=Fb(i),f=[],h=Object.values(i).flatMap(I=>I.accessors).map(I=>I.predicate).filter(I=>I.param),d=new Map;for(const I of h){const _=I.param,B=this.unitView.paramMediator,N=B.findValue(_);if(!N)throw new Error(`Cannot infer selection type as the parameter "${_}" has no value. Please ensure that the parameter is properly defined!`);const F=yo+"uniqueId";if(pb(N)){if(!d.has(_)){d.set(_,"single");const M=Il+ca(_);f.push(" // Selection parameter"),f.push(` uniform highp uint ${M};`),W(this,In).push(()=>{this.registerMarkUniformValue(M,{expr:_},C=>C.uniqueId??0)}),c.push(`bool ${da}${_}(bool empty) {
|
|
363
|
+
return ${Il}${_} == ${F} || (empty && ${Il}${_} == 0u);
|
|
364
|
+
}`)}}else if(Dh(N)){if(!d.has(_)){d.set(_,"multi");const M=Gb+ca(_);c.push(`// Selection texture
|
|
365
|
+
uniform highp usampler2D ${M};`);const C=this.getContext().glHelper,Y=C.selectionTextures;this.selectionTextureOps.push(()=>{const oe=B.getValue(_),ae=Y.get(oe);if(!ae)throw new Error(`Bug: no selection texture found for "${_}"!`);ci(this.programInfo,{[M]:ae})});const Q=Gb+_;c.push(`bool ${da}${_}(bool empty) {
|
|
366
366
|
return binarySearchTexture(${Q}, ${F}) || (empty && isEmptyBinarySearchTexture(${Q}));
|
|
367
|
-
}`),C.createSelectionTexture(N);const se=B.createExpression(_);se.addListener(()=>{const oe=se(null);C.createSelectionTexture(oe),this.getContext().animator.requestRender()})}}else if(
|
|
367
|
+
}`),C.createSelectionTexture(N);const se=B.createExpression(_);se.addListener(()=>{const oe=se(null);C.createSelectionTexture(oe),this.getContext().animator.requestRender()})}}else if(db(N)&&!d.has(_)){d.set(_,"interval");const M=[],C=[];for(const Y of Object.keys(N.intervals)){if(!["x","y"].includes(Y))continue;const Q=Il+ca(_)+`_${Y}`,{attributeType:se}=wo(this.unitView.getScaleResolution(Y).scale,Y);f.push(" // Selection parameter"),f.push(` uniform highp ${se}[2] ${Q};`),W(this,In).push(()=>{this.registerMarkUniformValue(Q,{expr:_},he=>he.intervals[Y]??[1/0,-1/0])});const oe=yo+Y,ae=Q+"[0]",ce=Q+"[1]",ye=Fh(Y);if(this.encoding[ye]){const he=yo+ye,De=this.defaultHitTestMode;if(De=="endpoints")M.push(`((${ae} <= ${oe} && ${oe} <= ${ce}) || (${ae} <= ${he} && ${he} <= ${ce}))`);else if(De=="encloses")M.push(`(${ae} <= ${oe} && ${he} <= ${ce})`);else if(De=="intersects")M.push(`(${ae} <= ${he} && ${oe} <= ${ce})`);else throw new Mr(`Unsupported hit test mode "${De}" for interval selection!`,this.unitView)}else M.push(`(${ae} <= ${oe} && ${oe} <= ${ce})`);C.push(`${ae} > ${ce}`)}c.push(`bool ${da}${_}(bool empty) {
|
|
368
368
|
return ${M.join(" && ")} || (empty && (${C.join(" || ")}));
|
|
369
|
-
}`)}}const p=(I,_,B,N)=>{const F=_.channelDef;if(ln(F))if(
|
|
370
|
-
`+(this.encoders.uniqueId&&
|
|
369
|
+
}`)}}const p=(I,_,B,N)=>{const F=_.channelDef;if(ln(F))if(Ot(F.value)){const{uniformName:M,uniformGlsl:C,accessorGlsl:Y,adjuster:Q}=IT(I,B);c.push(Y),f.push(C),W(this,In).push(()=>{this.registerMarkUniformValue(M,F.value,Q)})}else c.push(CT(I,B,F.value).accessorGlsl);else if(la(F)){const{uniformName:M,uniformGlsl:C,accessorGlsl:Y}=TT(I,N,B);f.push(C),c.push(Y);const{largeHp:Q,discrete:se}=wo(N,I),oe=se&&"domain"in N?ae=>N.domain().indexOf(ae):Q?Rb:ae=>+ae;W(this,In).push(()=>{this.registerMarkUniformValue(M,F.datum,oe)})}else if(Rr(F)){const M=u.get([F.field,!0]),{attributeGlsl:C,accessorGlsl:Y}=Ib(I,N,B,M!=null&&M.includes(I)?M:void 0);l.add(C),c.push(Y)}else if(ua(F)){const{attributeGlsl:M,accessorGlsl:C}=Ib(I,N,B);l.add(M),c.push(C)}else throw new Mr(`Unsupported channel definition: ${JSON.stringify(F)}`,this.unitView)};for(const[I,_]of Object.entries(i)){if(!o.includes(I))continue;const{channelDef:B,accessors:N,scale:F}=_;for(let M=0;M<N.length;M++)p(I,N[M],M,F);if(F){const M=Xt(B)&&B.resolutionChannel||I,C=Cl(M)?this.unitView.getScaleResolution(M):null,{glsl:Y,domainUniform:Q,domainUniformName:se,rangeUniform:oe,rangeUniformName:ae}=DT(I,F,B);c.push(Y),f.push(Q),f.push(oe),oe&&W(this,In).push(()=>{const ce=this.createMarkUniformSetter(ae),ye=()=>ce(Mb(F,I));C.addEventListener("range",ye),ye()}),Q&&W(this,In).push(()=>{const ce=this.createMarkUniformSetter(se),ye=()=>{const he=Br(F.type)?[0,F.domain().length]:F.domain();ce(_b(F.type)?MT(he):he)};C.addEventListener("domain",ye),ye()})}c.push(BT(I,N))}const y=[...d.keys()].map(I=>`${da}${I}(false)`);c.push(`bool isPointSelected() {
|
|
370
|
+
`+(this.encoders.uniqueId&&y.length>0?` return ${y.join(" || ")};`:" return false;")+`
|
|
371
371
|
}`);const v=`precision highp float;
|
|
372
|
-
precision highp int;`,
|
|
373
|
-
`));r=r.map(
|
|
374
|
-
`),...c,WT,YT,e],S=[v,a,...r,Ly,QT,n],E=this.gl;this.programStatus=pT(E,this.glHelper.compileShader(E.VERTEX_SHADER,A),this.glHelper.compileShader(E.FRAGMENT_SHADER,S))}finalizeGraphicsInitialization(){const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const n=new Error("Cannot create shader program: "+e.message);throw n.view=this.unitView,n}this.programInfo=y6(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=am(this.gl,this.programInfo,"View"),this.markUniformInfo=am(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),ai(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const n of W(this,In))n();Ie(this,In,void 0)}createMarkUniformSetter(e){const n=this.markUniformInfo.setters[e];if(!n)throw new Error(`Uniform "${e}" not found int the Mark block!`);return r=>{n(r),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,n,r=o=>o){const o=this.createMarkUniformSetter(e),i=s=>{if(s==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Vt(n)?`Expr: ${n.expr}`:""}`);o(s)};if(Vt(n)){const s=this.unitView.paramMediator.createExpression(n.expr),a=()=>i(r(s(null)));s.addListener(a),a()}else i(r(n))}deleteGraphicsData(){const e=this.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),e.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let n=0;n<8;n++)e.disableVertexAttribArray(n);Object.values(this.bufferInfo.attribs).forEach(n=>this.gl.deleteBuffer(n.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[n,r]of Object.entries(e.arrays))r.data&&kS(this.gl,this.bufferInfo.attribs[n],r.data,0);else{this.deleteGraphicsData(),this.bufferInfo=FS(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[n,r]of Object.entries(e.arrays))this.bytesPerElement.set(n,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?(lm(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):cm(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const n=this.glHelper,r=this.gl,o=[];o.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=O6(this.gl,this.programInfo,this.bufferInfo)),r.useProgram(this.programInfo.program)});for(const[s,a]of Object.entries(this.encoders)){const c=n.rangeTextures.get(a.scale);c&&o.push(()=>ai(this.programInfo,{[Lh+s]:c}))}o.push(...this.selectionTextureOps),this.getSampleFacetMode()==zy&&o.push(()=>{let s;for(const a of this.unitView.getLayoutAncestors())if(s=a.getSampleFacetTexture(),s)break;if(!s)throw new Error("No facet texture available. This is bug.");ai(this.programInfo,{uSampleFacetTexture:s})});const i=(e.picking??!1)&&this.isPickingParticipant();return o.push(()=>Vs(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:i})),this.opaque||e.picking?o.push(()=>r.disable(r.BLEND)):o.push(()=>r.enable(r.BLEND)),o}prepareSampleFacetRendering(e){const n=e.sampleFacetRenderingOptions,r=this.programInfo.uniformSetters.uSampleFacet;if(n&&r){const o=n.locSize?n.locSize.location:0,i=n.locSize?n.locSize.size:1;if(o>1||o+i<0)return!1;const s=n.targetLocSize?n.targetLocSize.location:o,a=n.targetLocSize?n.targetLocSize.size:i;this.gl.uniform4f(r.location,o,i,s,a)}return!0}render(e){}createRenderCallback(e,n){var f;if(!this.bufferInfo)return()=>{};const r=this;let o;const i=(f=this.unitView.getScaleResolution("x"))==null?void 0:f.scale,s=i&&Et(i.type),a=["index","locus"].includes(i==null?void 0:i.type)?-1:0,c=[0,0];o=h=>{if(s&&h.xIndex){const d=i.domain(),p=h.xIndex(d[0]+a,d[1],c),b=p[0],v=p[1]-b;v>0&&e(b,v)}else e(h.offset,h.count)};const l=this.rangeMap.get(void 0).count==0?n.facetId:void 0,u=this.rangeMap.get(l);return n.sampleFacetRenderingOptions?function(){u.count&&r.prepareSampleFacetRendering(n)&&o(u)}:function(){u.count&&o(u)}}setViewport(e,n){e=e.flatten();const r=this.unitView.context.devicePixelRatio,o=this.gl,i=this.properties,s=this.glHelper.getLogicalCanvasSize(),a=.5,c=(i.xOffset??0)+a,l=(i.yOffset??0)+a;let u,f=e;if(i.clip!=="never"&&(i.clip||n)){let h=0,d=0,p;if(n){if(f=e.intersect(n).flatten(),!f.isDefined())return!1;p=[e.width/f.width,e.height/f.height],d=Math.max(0,e.y2-n.y2),h=Math.min(0,e.x-n.x)}else p=[1,1];const b=[f.x,s.height-f.y2,f.width,f.height].map(S=>S*r),v=b.map(S=>Math.floor(S)),y=b[0]-v[0],A=b[1]-v[1];o.viewport(...v),o.scissor(...v),o.enable(o.SCISSOR_TEST),u={uViewOffset:[(c+h+y/r)/f.width,-(l+d-A/r)/f.height],uViewScale:p}}else{if(!e.isDefined())return!1;o.viewport(0,0,s.width*r,s.height*r),o.disable(o.SCISSOR_TEST),u={uViewOffset:[(e.x+c)/s.width,(s.height-e.y-l-e.height)/s.height],uViewScale:[e.width/s.width,e.height/s.height]}}return Vs(this.viewUniformInfo,{...u,uViewportSize:[e.width,e.height],uDevicePixelRatio:r}),lm(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,n){}}In=new WeakMap;class JT extends Wn{constructor(){super([],JSON.stringify)}get(e){let n=super.get(e);return n===void 0&&(n={offset:0,count:0,xIndex:void 0},super.set(e,n)),n}migrateEntries(e){for(const[n,r]of this.entries())e.has(n)||(r.offset=0,r.count=0,r.xIndex=void 0);for(const[n,r]of e.entries())Object.assign(this.get(n),r)}}function Gh(t,e){const n=Rh(e);let r=t[e]&&{...t[e]},o=t[n]&&{...t[n]};if(!(ln(r)||ln(o))){if(r){if(!Xt(t[e]))return;if(o){if(r.type!="quantitative"){const i=(1-(r.band||1))/2;r.band=i,o.band=-i}}else if(r.type=="quantitative")o={datum:0,contributesToScaleDomain:!1};else{o={...r};const i=(1-(r.band??1))/2;r.band=0+i,o.band=1-i}}else r={value:0},o={value:1};t[e]=r,t[n]=o}}function Bl(t,e){if(Bh(t)){const n=t.condition;!Array.isArray(n)&&Xt(n)&&(n.resolutionChannel=e)}else Xt(t)&&(t.resolutionChannel=e)}function Gy(t,e){t.stroke||(e?t.stroke={value:null}:(t.stroke=structuredClone(t.color),Bl(t.stroke,"color"))),ln(t.stroke)&&t.stroke.value===null&&(t.strokeWidth={value:0}),t.strokeOpacity||(t.strokeOpacity=structuredClone(t.opacity),Bl(t.strokeOpacity,"opacity"))}function Hy(t,e){ln(t.fill)&&t.fill.value===null?t.fillOpacity={value:0}:t.fill||(t.fill=structuredClone(t.color),Bl(t.fill,"color"),!e&&!t.fillOpacity&&(t.fillOpacity={value:0})),t.fillOpacity||(e?(t.fillOpacity=structuredClone(t.opacity),Bl(t.fillOpacity,"opacity")):t.fillOpacity={value:0})}const $T=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class eD extends ya{constructor(n){super(n);ge(this,Gr);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 Tl(this,"opaque",()=>!de(this,Gr,A0).call(this)&&!de(this,Gr,E0).call(this)&&!this.properties.shadowOpacity&&ln(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(n){return Gh(n,"x"),Gh(n,"y"),Gy(n,this.properties.filled),Hy(n,this.properties.filled),delete n.color,delete n.opacity,n}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const n=[];de(this,Gr,A0).call(this)&&n.push("ROUNDED_CORNERS"),de(this,Gr,E0).call(this)&&n.push("STROKED"),this.properties.shadowOpacity&&n.push("SHADOW"),this.createAndLinkShaders(H6,V6,[q6,...n.map(r=>"#define "+r)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const n=this.properties;this.registerMarkUniformValue("uMinWidth",n.minWidth),this.registerMarkUniformValue("uMinHeight",n.minHeight),this.registerMarkUniformValue("uMinOpacity",n.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",n.cornerRadiusTopRight??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",n.cornerRadiusBottomRight??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",n.cornerRadiusTopLeft??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",n.cornerRadiusBottomLeft??n.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",n.hatch,r=>Math.max(0,$T.indexOf(r??"none"))),this.registerMarkUniformValue("uShadowBlur",n.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",n.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",n.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",n.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",n.shadowColor??"black",Ph)}updateGraphicsData(){const n=this.unitView.getCollector();if(!n){console.debug("No collector");return}const r=n.getItemCount(),o=new UT({encoders:this.encoders,attributes:this.getAttributes(),numItems:r});o.addBatches(n.facetBatches);const i=o.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.updateBufferInfo(i)}prepareRender(n){const r=super.prepareRender(n);return r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>ci(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(n){const r=this.gl;return this.createRenderCallback((o,i)=>{Xc(r,this.vertexArrayInfo,r.TRIANGLE_STRIP,i,o)},n)}findDatumAt(n,r){n=Wt(n);const o=this.unitView.getCollector().facetBatches.get(n);if(!o)return;const i=this.encoders,s=i.x.scale.type;if(Br(s)){const a=i.x.dataAccessor;return o.find(c=>r==a(c))}else{const a=i.x.dataAccessor,c=i.x2.dataAccessor;return o.find(l=>r>=a(l)&&r<c(l))}}}Gr=new WeakSet,A0=function(){const n=this.properties;return n.cornerRadius||n.cornerRadiusBottomLeft||n.cornerRadiusBottomRight||n.cornerRadiusTopLeft||n.cornerRadiusTopRight},E0=function(){const n=this.encoding.strokeWidth;return!(ln(n)&&!n.value)||"condition"in n};const tD=`out float vRadius;out float vRadiusWithPadding;out lowp vec4 vFillColor;out lowp vec4 vStrokeColor;out lowp float vShape;out lowp float vHalfStrokeWidth;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(){
|
|
372
|
+
precision highp int;`,b=I=>I.replace("#pragma markUniforms",f.join(`
|
|
373
|
+
`));r=r.map(b),e=b(e),n=b(n);const A=[v,a,...r,Ob,WT,[...l].join(`
|
|
374
|
+
`),...c,YT,QT,e],S=[v,a,...r,Ob,ZT,n],E=this.gl;this.programStatus=gT(E,this.glHelper.compileShader(E.VERTEX_SHADER,A),this.glHelper.compileShader(E.FRAGMENT_SHADER,S))}finalizeGraphicsInitialization(){const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const n=new Error("Cannot create shader program: "+e.message);throw n.view=this.unitView,n}this.programInfo=y6(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=cm(this.gl,this.programInfo,"View"),this.markUniformInfo=cm(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),ci(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const n of W(this,In))n();Ie(this,In,void 0)}createMarkUniformSetter(e){const n=this.markUniformInfo.setters[e];if(!n)throw new Error(`Uniform "${e}" not found int the Mark block!`);return r=>{n(r),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,n,r=o=>o){const o=this.createMarkUniformSetter(e),i=s=>{if(s==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Ot(n)?`Expr: ${n.expr}`:""}`);o(s)};if(Ot(n)){const s=this.unitView.paramMediator.createExpression(n.expr),a=()=>i(r(s(null)));s.addListener(a),a()}else i(r(n))}deleteGraphicsData(){const e=this.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),e.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let n=0;n<8;n++)e.disableVertexAttribArray(n);Object.values(this.bufferInfo.attribs).forEach(n=>this.gl.deleteBuffer(n.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[n,r]of Object.entries(e.arrays))r.data&&_S(this.gl,this.bufferInfo.attribs[n],r.data,0);else{this.deleteGraphicsData(),this.bufferInfo=MS(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[n,r]of Object.entries(e.arrays))this.bytesPerElement.set(n,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?(um(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):lm(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const n=this.glHelper,r=this.gl,o=[];o.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=N6(this.gl,this.programInfo,this.bufferInfo)),r.useProgram(this.programInfo.program)});for(const[s,a]of Object.entries(this.encoders)){const c=n.rangeTextures.get(a.scale);c&&o.push(()=>ci(this.programInfo,{[Oh+s]:c}))}o.push(...this.selectionTextureOps),this.getSampleFacetMode()==Ub&&o.push(()=>{let s;for(const a of this.unitView.getLayoutAncestors())if(s=a.getSampleFacetTexture(),s)break;if(!s)throw new Error("No facet texture available. This is bug.");ci(this.programInfo,{uSampleFacetTexture:s})});const i=(e.picking??!1)&&this.isPickingParticipant();return o.push(()=>qs(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:i})),this.opaque||e.picking?o.push(()=>r.disable(r.BLEND)):o.push(()=>r.enable(r.BLEND)),o}prepareSampleFacetRendering(e){const n=e.sampleFacetRenderingOptions,r=this.programInfo.uniformSetters.uSampleFacet;if(n&&r){const o=n.locSize?n.locSize.location:0,i=n.locSize?n.locSize.size:1;if(o>1||o+i<0)return!1;const s=n.targetLocSize?n.targetLocSize.location:o,a=n.targetLocSize?n.targetLocSize.size:i;this.gl.uniform4f(r.location,o,i,s,a)}return!0}render(e){}createRenderCallback(e,n){var f;if(!this.bufferInfo)return()=>{};const r=this;let o;const i=(f=this.unitView.getScaleResolution("x"))==null?void 0:f.scale,s=i&&Et(i.type),a=["index","locus"].includes(i==null?void 0:i.type)?-1:0,c=[0,0];o=h=>{if(s&&h.xIndex){const d=i.domain(),p=h.xIndex(d[0]+a,d[1],c),y=p[0],v=p[1]-y;v>0&&e(y,v)}else e(h.offset,h.count)};const l=this.rangeMap.get(void 0).count==0?n.facetId:void 0,u=this.rangeMap.get(l);return n.sampleFacetRenderingOptions?function(){u.count&&r.prepareSampleFacetRendering(n)&&o(u)}:function(){u.count&&o(u)}}setViewport(e,n){e=e.flatten();const r=this.unitView.context.devicePixelRatio,o=this.gl,i=this.properties,s=this.glHelper.getLogicalCanvasSize(),a=.5,c=(i.xOffset??0)+a,l=(i.yOffset??0)+a;let u,f=e;if(i.clip!=="never"&&(i.clip||n)){let h=0,d=0,p;if(n){if(f=e.intersect(n).flatten(),!f.isDefined())return!1;p=[e.width/f.width,e.height/f.height],d=Math.max(0,e.y2-n.y2),h=Math.min(0,e.x-n.x)}else p=[1,1];const y=[f.x,s.height-f.y2,f.width,f.height].map(S=>S*r),v=y.map(S=>Math.floor(S)),b=y[0]-v[0],A=y[1]-v[1];o.viewport(...v),o.scissor(...v),o.enable(o.SCISSOR_TEST),u={uViewOffset:[(c+h+b/r)/f.width,-(l+d-A/r)/f.height],uViewScale:p}}else{if(!e.isDefined())return!1;o.viewport(0,0,s.width*r,s.height*r),o.disable(o.SCISSOR_TEST),u={uViewOffset:[(e.x+c)/s.width,(s.height-e.y-l-e.height)/s.height],uViewScale:[e.width/s.width,e.height/s.height]}}return qs(this.viewUniformInfo,{...u,uViewportSize:[e.width,e.height],uDevicePixelRatio:r}),um(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,n){}}In=new WeakMap;class $T extends Wn{constructor(){super([],JSON.stringify)}get(e){let n=super.get(e);return n===void 0&&(n={offset:0,count:0,xIndex:void 0},super.set(e,n)),n}migrateEntries(e){for(const[n,r]of this.entries())e.has(n)||(r.offset=0,r.count=0,r.xIndex=void 0);for(const[n,r]of e.entries())Object.assign(this.get(n),r)}}function Hh(t,e){const n=Fh(e);let r=t[e]&&{...t[e]},o=t[n]&&{...t[n]};if(!(ln(r)||ln(o))){if(r){if(!Xt(t[e]))return;if(o){if(r.type!="quantitative"){const i=(1-(r.band||1))/2;r.band=i,o.band=-i}}else if(r.type=="quantitative")o={datum:0,contributesToScaleDomain:!1};else{o={...r};const i=(1-(r.band??1))/2;r.band=0+i,o.band=1-i}}else r={value:0},o={value:1};t[e]=r,t[n]=o}}function kl(t,e){if(kh(t)){const n=t.condition;!Array.isArray(n)&&Xt(n)&&(n.resolutionChannel=e)}else Xt(t)&&(t.resolutionChannel=e)}function Hb(t,e){t.stroke||(e?t.stroke={value:null}:(t.stroke=structuredClone(t.color),kl(t.stroke,"color"))),ln(t.stroke)&&t.stroke.value===null&&(t.strokeWidth={value:0}),t.strokeOpacity||(t.strokeOpacity=structuredClone(t.opacity),kl(t.strokeOpacity,"opacity"))}function Vb(t,e){ln(t.fill)&&t.fill.value===null?t.fillOpacity={value:0}:t.fill||(t.fill=structuredClone(t.color),kl(t.fill,"color"),!e&&!t.fillOpacity&&(t.fillOpacity={value:0})),t.fillOpacity||(e?(t.fillOpacity=structuredClone(t.opacity),kl(t.fillOpacity,"opacity")):t.fillOpacity={value:0})}const eD=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class tD extends ya{constructor(n){super(n);ge(this,Gr);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 Dl(this,"opaque",()=>!de(this,Gr,E0).call(this)&&!de(this,Gr,S0).call(this)&&!this.properties.shadowOpacity&&ln(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(n){return Hh(n,"x"),Hh(n,"y"),Hb(n,this.properties.filled),Vb(n,this.properties.filled),delete n.color,delete n.opacity,n}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const n=[];de(this,Gr,E0).call(this)&&n.push("ROUNDED_CORNERS"),de(this,Gr,S0).call(this)&&n.push("STROKED"),this.properties.shadowOpacity&&n.push("SHADOW"),this.createAndLinkShaders(V6,q6,[j6,...n.map(r=>"#define "+r)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const n=this.properties;this.registerMarkUniformValue("uMinWidth",n.minWidth),this.registerMarkUniformValue("uMinHeight",n.minHeight),this.registerMarkUniformValue("uMinOpacity",n.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",n.cornerRadiusTopRight??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",n.cornerRadiusBottomRight??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",n.cornerRadiusTopLeft??n.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",n.cornerRadiusBottomLeft??n.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",n.hatch,r=>Math.max(0,eD.indexOf(r??"none"))),this.registerMarkUniformValue("uShadowBlur",n.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",n.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",n.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",n.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",n.shadowColor??"black",Lh)}updateGraphicsData(){const n=this.unitView.getCollector();if(!n){console.debug("No collector");return}const r=n.getItemCount(),o=new GT({encoders:this.encoders,attributes:this.getAttributes(),numItems:r});o.addBatches(n.facetBatches);const i=o.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.updateBufferInfo(i)}prepareRender(n){const r=super.prepareRender(n);return r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>li(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(n){const r=this.gl;return this.createRenderCallback((o,i)=>{Kc(r,this.vertexArrayInfo,r.TRIANGLE_STRIP,i,o)},n)}findDatumAt(n,r){n=Ft(n);const o=this.unitView.getCollector().facetBatches.get(n);if(!o)return;const i=this.encoders,s=i.x.scale.type;if(Br(s)){const a=i.x.dataAccessor;return o.find(c=>r==a(c))}else{const a=i.x.dataAccessor,c=i.x2.dataAccessor;return o.find(l=>r>=a(l)&&r<c(l))}}}Gr=new WeakSet,E0=function(){const n=this.properties;return n.cornerRadius||n.cornerRadiusBottomLeft||n.cornerRadiusBottomRight||n.cornerRadiusTopLeft||n.cornerRadiusTopRight},S0=function(){const n=this.encoding.strokeWidth;return!(ln(n)&&!n.value)||"condition"in n};const nD=`out float vRadius;out float vRadiusWithPadding;out lowp vec4 vFillColor;out lowp vec4 vStrokeColor;out lowp float vShape;out lowp float vHalfStrokeWidth;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(){
|
|
375
375
|
#if defined(dx_DEFINED) || defined(dy_DEFINED)
|
|
376
376
|
return vec2(getScaled_dx(),getScaled_dy())/uViewportSize;
|
|
377
377
|
#else
|
|
378
378
|
return vec2(0.0,0.0);
|
|
379
379
|
#endif
|
|
380
|
-
}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();}`,
|
|
380
|
+
}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();}`,rD="const lowp vec4 white=vec4(1.0);const lowp vec4 black=vec4(0.0,0.0,0.0,1.0);in float vRadius;in float vRadiusWithPadding;in lowp vec4 vFillColor;in lowp vec4 vStrokeColor;in lowp float vShape;in lowp float vHalfStrokeWidth;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;}}",iD=`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;
|
|
381
381
|
#pragma markUniforms
|
|
382
|
-
};`;class
|
|
382
|
+
};`;class qb extends yt{constructor(e){super(e),this.params=e,this.k=e.size||500,this.reset()}reset(){super.reset(),this.reservoir=[],this.W=void 0,this.ingester=this._initialIngester}_initialIngester(e){this.reservoir.push(e),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(e){++this.i==this.next&&(this.reservoir[Math.floor(Math.random()*this.k)]=e,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(e){this.ingester(e)}complete(){for(const e of this.reservoir)this._propagate(e);super.complete()}}function oD(t,e,n){const r=new qb({type:"sample",size:t});for(const o of e)r.handle(n(o));return r.complete(),r.reservoir}const sD={};class aD extends ya{constructor(n){super(n);ge(this,hu);ge(this,Wo,()=>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(Ot(r)){const o=this.unitView.paramMediator.createExpression(r.expr);o.addListener(()=>this.getContext().animator.requestRender()),Ie(this,Wo,o)}else Ie(this,Wo,()=>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(),...sD}}fixEncoding(n){return Hb(n,this.properties.filled),Vb(n,this.properties.filled),delete n.color,delete n.opacity,n}initializeData(){var r,o;super.initializeData();const n=(o=(r=this.encoders.semanticScore)==null?void 0:r.dataAccessor)==null?void 0:o.asNumberAccessor();n&&(this.sampledSemanticScores=Float32Array.from(oD(1e4,this.unitView.getCollector().getData(),n)),this.sampledSemanticScores.sort((i,s)=>i-s))}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(nD,rD,[iD])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const n=this.properties;this.registerMarkUniformValue("uInwardStroke",n.inwardStroke,r=>!!r),this.registerMarkUniformValue("uGradientStrength",n.fillGradientStrength),this.registerMarkUniformValue("uMinPickingSize",n.minPickingSize)}updateGraphicsData(){const n=this.unitView.getCollector();if(!n){console.debug("No collector");return}const r=n.getItemCount(),o=new VT({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(r,this.properties.minBufferSize||0)});o.addBatches(n.facetBatches);const i=o.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.updateBufferInfo(i)}getSemanticThreshold(){if(this.sampledSemanticScores){const n=Math.max(0,1-W(this,Wo).call(this)*this.unitView.getZoomLevel());if(n<=0)return-1/0;if(n>=1)return 1/0;{const r=this.sampledSemanticScores;return Cp(r,n)}}else return-1}prepareRender(n){const r=super.prepareRender(n);return r.push(()=>{qs(this.markUniformInfo,{uScaleFactor:de(this,hu,Sv).call(this),uSemanticThreshold:this.getSemanticThreshold()}),this.markUniformsAltered=!0}),r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>li(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(n){const r=this.gl;return this.createRenderCallback((o,i)=>{i&&Kc(r,this.vertexArrayInfo,r.POINTS,i,o)},n)}}Wo=new WeakMap,hu=new WeakSet,Sv=function(){const n=Math.pow(2,this.properties.geometricZoomBound||0);return Math.pow(Math.min(1,this.unitView.getZoomLevel()/n),1/3)};const cD="const int BUTT=0;const int SQUARE=1;const int ROUND=2;in float pos;in float side;out vec4 vColor;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();}",lD="const int BUTT=0;const int SQUARE=1;const int ROUND=2;uniform sampler2D uDashTexture;in vec4 vColor;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;}}",uD=`layout(std140)uniform Mark{uniform mediump float uMinLength;uniform mediump float uDashTextureSize;uniform lowp int uStrokeCap;uniform mediump float uStrokeDashOffset;
|
|
383
383
|
#pragma markUniforms
|
|
384
|
-
};`;class
|
|
384
|
+
};`;class fD extends ya{constructor(e){super(e),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(e){if(!(e.x&&e.y&&e.x2&&e.y2))if(e.x&&e.x2&&!e.y)e.y={value:.5},e.y2=e.y;else if(e.y&&e.y2&&!e.x)e.x={value:.5},e.x2=e.x;else if(e.x&&!e.y)e.y={value:0},e.y2={value:1},e.x2=e.x;else if(e.y&&!e.x)e.x={value:0},e.x2={value:1},e.y2=e.y;else if(e.x&&e.y&&e.y2)e.x2=e.x;else if(e.y&&e.x&&e.x2)e.y2=e.y;else if(e.y&&e.x)if(!e.x2&&Xt(e.y)&&e.y.type=="quantitative")e.x2=e.x,e.y2={datum:0};else if(!e.y2&&Xt(e.x)&&e.x.type=="quantitative")e.y2=e.y,e.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(e));return e}async initializeGraphics(){await super.initializeGraphics();const e=this.gl,n=hD(this.properties.strokeDash);this.dashTexture=Vs(e,{level:0,mag:e.NEAREST,min:e.NEAREST,internalFormat:e.R8,format:e.RED,src:n,height:1}),this.dashTextureSize=n.length,this.createAndLinkShaders(cD,lD,[uD])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinLength",e.minLength),this.registerMarkUniformValue("uStrokeCap",e.strokeCap??"butt",n=>["butt","square","round"].indexOf(n)),qs(this.markUniformInfo,{uDashTextureSize:+this.dashTextureSize}),this.markUniformsAltered=!0}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),r=new HT({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(n,this.properties.minBufferSize||0)});r.addBatches(e.facetBatches);const o=r.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.updateBufferInfo(o)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>ci(this.programInfo,{uDashTexture:this.dashTexture})),n.push(()=>li(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((r,o)=>Kc(n,this.vertexArrayInfo,n.TRIANGLE_STRIP,o,r),e)}}function hD(t){if(!t)return new Uint8Array(0);if(t.length==0||t.length%2||t.findIndex(i=>Math.round(i)!=i||i<1||i>1e3)>=0)throw new Error("Invalid stroke dash pattern: "+JSON.stringify(t));const e=t.reduce((i,s)=>i+s),n=new Uint8Array(e);let r=!0,o=0;for(let i of t){for(;i;)n[o++]=r&&255||0,i--;r=!r}return n}const dD="out vec4 vColor;out float vSize;out float vNormalLengthInPixels;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();}",pD="in vec4 vColor;in float vSize;in float vNormalLengthInPixels;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;}}",gD=`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;
|
|
385
385
|
#pragma markUniforms
|
|
386
|
-
};`,
|
|
386
|
+
};`,mD=["arc","dome","diagonal","line"],bD=["vertical","horizontal"];class yD extends ya{constructor(e){super(e),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(e){return e.x2||(Xt(e.x)?e.x2={datum:0}:e.x2=e.x),e.y2||(Xt(e.y)?e.y2={datum:0}:e.y2=e.y),e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(dD,pD,[gD])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uArcFadingDistance",e.arcFadingDistance,n=>n||[0,0]),this.registerMarkUniformValue("uArcHeightFactor",e.arcHeightFactor),this.registerMarkUniformValue("uMinArcHeight",e.minArcHeight),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize),this.registerMarkUniformValue("uShape",e.linkShape,n=>mD.indexOf(n)),this.registerMarkUniformValue("uOrient",e.orient,n=>bD.indexOf(n)),this.registerMarkUniformValue("uClampApex",e.clampApex,n=>!!n),this.registerMarkUniformValue("uMaxChordLength",e.maxChordLength),this.registerMarkUniformValue("uSegmentBreaks",e.segments,n=>n),this.registerMarkUniformValue("uNoFadingOnPointSelection",e.noFadingOnPointSelection,n=>!!n)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),r=new qT({encoders:this.encoders,attributes:this.getAttributes(),numItems:n});r.addBatches(e.facetBatches);const o=r.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.arrays=Object.fromEntries(Object.entries(o.arrays).map(([i,s])=>[i,{...s,data:void 0}])),this.updateBufferInfo(o)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>this.bindOrSetMarkUniformBlock()),this._baseInstanceExt?n.push(()=>li(this.gl,this.programInfo,this.vertexArrayInfo)):n.push(()=>this.gl.bindVertexArray(null)),n}render(e){const n=this.gl,r=()=>(this.markUniformInfo.uniforms.uSegmentBreaks[0]+1)*2;return this._baseInstanceExt?this.createRenderCallback((o,i)=>{this._baseInstanceExt.drawArraysInstancedBaseInstanceWEBGL(n.TRIANGLE_STRIP,0,r(),i,o)},e):this.createRenderCallback((o,i)=>{for(const s of Object.entries(this.bufferInfo.attribs)){const[a,c]=s;c.buffer&&c.numComponents&&c.divisor&&(c.offset=o*this.arrays[a].numComponents*this.bytesPerElement.get(a))}li(n,this.programInfo,this.bufferInfo),n.drawArraysInstanced(n.TRIANGLE_STRIP,0,r(),i)},e)}}const wD=`in mediump vec2 vertexCoord;in lowp vec2 textureCoord;in float width;out vec2 vTexCoord;out vec4 vColor;out float vSlope;out float vEdgeFadeOpacity;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);
|
|
387
387
|
#if defined(x2_DEFINED) || defined(y2_DEFINED)
|
|
388
388
|
ivec2 align=fixAlignForAngle(uAlign,angleInDegrees);
|
|
389
389
|
#else
|
|
@@ -396,9 +396,9 @@ vec2 pos=applySampleFacet(vec2(x,y));
|
|
|
396
396
|
#ifdef y2_DEFINED
|
|
397
397
|
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;}
|
|
398
398
|
#endif
|
|
399
|
-
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);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();}`,
|
|
399
|
+
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);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();}`,xD="uniform sampler2D uTexture;in vec2 vTexCoord;in float vEdgeFadeOpacity;in vec4 vColor;in float vSlope;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));}void main(){vec3 c=texture(uTexture,vTexCoord).rgb;float sigDist=1.0-median(c.r,c.g,c.b);float slope=uLogoLetter? 0.7/length(vec2(dFdy(sigDist),dFdx(sigDist))): vSlope;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;}}",vD=`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;
|
|
400
400
|
#pragma markUniforms
|
|
401
|
-
};`,
|
|
401
|
+
};`,AD={left:-1,center:0,right:1},ED={top:-1,middle:0,bottom:1,alphabetic:1};class SD extends ya{constructor(e){super(e),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?e.context.fontManager.getFont(this.properties.font,this.properties.fontStyle,this.properties.fontWeight):e.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(e){for(const n of xi)this.properties.fitToBand&&Hh(e,n);return e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(wD,xD,[vD])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uSdfNumerator",{expr:"devicePixelRatio"},n=>{let r=.35;return this.properties.logoLetters&&(r/=2),this.font.metrics.common.base/(n/r)}),this.registerMarkUniformValue("uPaddingX",e.paddingX),this.registerMarkUniformValue("uPaddingY",e.paddingY),this.registerMarkUniformValue("uFlushX",e.flushX,n=>!!n),this.registerMarkUniformValue("uFlushY",e.flushY,n=>!!n),this.registerMarkUniformValue("uSqueeze",e.squeeze,n=>!!n),qs(this.markUniformInfo,{uAlign:[AD[e.align],ED[e.baseline]],uD:[e.dx,-e.dy],uLogoLetter:!!e.logoLetters,uViewportEdgeFadeWidth:[e.viewportEdgeFadeWidthTop,e.viewportEdgeFadeWidthRight,e.viewportEdgeFadeWidthBottom,e.viewportEdgeFadeWidthLeft],uViewportEdgeFadeDistance:[e.viewportEdgeFadeDistanceTop,e.viewportEdgeFadeDistanceRight,e.viewportEdgeFadeDistanceBottom,e.viewportEdgeFadeDistanceLeft]})}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getData(),r=this.encoding,o=this.encoders.text;let i=0;const s="format"in r.text?Dt(r.text.format):l=>l;for(const l of n){const u=s(o(l)),f=rt(u)?u:u===null?"":""+u;i+=f&&f.length||0}const a=new jT({encoders:this.encoders,attributes:this.getAttributes(),properties:this.properties,fontMetrics:this.font.metrics,numCharacters:Math.max(i,this.properties.minBufferSize||1024)});a.addBatches(e.facetBatches);const c=a.toArrays();this.rangeMap.migrateEntries(c.rangeMap),this.updateBufferInfo(c)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>{ci(this.programInfo,{uTexture:this.font.texture})}),n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>li(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((r,o)=>Kc(n,this.vertexArrayInfo,n.TRIANGLES,o,r),e)}}const jb=1;function Vh(){let t=[0,1],e=[0,1],n=1,r=1,o=0,i=0,s=.5,a=0;const l=u=>(u+s-t[0])/n*r+e[0];return l.invert=u=>(u-e[0])/r*n+t[0]-s,l.domain=function(u){if(arguments.length){t=WA(u),n=t[1]-t[0];const f=t[0]===0&&t[0]===0;if(n<jb&&!f){n=jb;const h=(t[0]+t[1])/2;t[0]=h-n/2,t[1]=h+n/2}return l}else return t.slice()},l.range=function(u){return arguments.length?(e=[...u],r=e[1]-e[0],l):e},l.numberingOffset=function(u){return arguments.length?(a=u,l):a},l.padding=function(u){return arguments.length?(i=u,o=Math.min(1,u),l):o},l.paddingInner=function(u){return arguments.length?(o=Math.min(1,u),l):o},l.paddingOuter=function(u){return arguments.length?(i=u,l):i},l.align=function(u){return arguments.length?(s=Math.max(0,Math.min(1,u)),l):s},l.step=()=>r/n,l.bandwidth=()=>l.step(),l.ticks=u=>{const f=l.align(),h=l.numberingOffset();return bc(t[0]-f+h,t[1]-f+h,Math.min(u,Math.ceil(n))).filter(Number.isInteger).map(d=>d-a)},l.tickFormat=(u,f)=>{if(f)throw new Error("Index scale's tickFormat does not support a specifier!");const d=ni(t[0],t[1],Math.min(u,Math.ceil(n)))<1e5?Dt(","):Dt(".3s");return p=>d(p+a)},l.copy=()=>Vh().domain(t).range(e).paddingInner(o).paddingOuter(i).numberingOffset(a),l}function CD(){const t=Vh().numberingOffset(1);let e;t.genome=function(r){return arguments.length?(e=r,t):e},t.ticks=r=>{if(!e)return[];const o=t.domain(),i=t.numberingOffset(),[s,a]=[Math.max(o[0],0),Math.min(o[1],e.totalSize-1)].map(u=>e.toChromosome(u)),c=Math.max(1,ni(o[0],o[1],r)),l=[];for(let u=s.index;u<=a.index;u++){const f=e.chromosomes[u],h=Math.max(f.continuousStart+c,o[0]-(o[0]-f.continuousStart)%c),d=Math.min(f.continuousEnd-c/4,o[1]+1);for(let p=h;p<=d;p+=c){const y=p-i;y>=o[0]&&y<o[1]&&l.push(y)}}return l},t.tickFormat=(r,o)=>{if(!e)return;if(o)throw new Error("Locus scale's tickFormat does not support a specifier!");const i=t.domain(),s=i[1]-i[0],a=t.numberingOffset(),l=ni(i[0],i[1],Math.min(r,Math.ceil(s)))<1e6?Dt(","):Dt(".3s"),u=f=>f-e.toChromosome(f).continuousStart;return f=>l(u(f)+a)};const n=t.copy;return t.copy=()=>n().genome(e),t}function ID(t){return t.type=="locus"}function _l(t,e,n){if(n=n||[],t.some(s=>s===null)){if(t.every(s=>s===null))return null;throw console.warn(t),new Error("Cannot merge objects with nulls!")}const r={},o=(s,a)=>s===a||xo(s)&&xo(a)||xo(s)&&a===!0||s===!0&&Rt(a)||Array.isArray(s)&&Array.isArray(a)&&s.length===a.length&&s.every((c,l)=>c===a[l]),i=s=>{for(let a in s){const c=s[a];if(!n.includes(a)&&c!==void 0)if(r[a]!==void 0&&!o(r[a],c))console.warn(`Conflicting property ${a} of ${e}: (${JSON.stringify(r[a])} and ${JSON.stringify(s[a])}). Using ${JSON.stringify(r[a])}.`);else{const l=r[a];if(xo(l))xo(c)&&(r[a]=_l([l,c],a));else if(xo(c)){if(!(l===!0||l===void 0))throw new Error("Bug in merge! Target is: "+l);r[a]=_l([{},c],a)}else r[a]=c}}};for(const s of t)i(s);return r}function xo(t){return Rt(t)&&!Array.isArray(t)}/*!
|
|
402
402
|
* Adapted from vega-encode:
|
|
403
403
|
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/ticks.js
|
|
404
404
|
*
|
|
@@ -406,7 +406,7 @@ if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scal
|
|
|
406
406
|
* All rights reserved.
|
|
407
407
|
*
|
|
408
408
|
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
409
|
-
*/function
|
|
409
|
+
*/function Wb(t,e,n){return Ht(e)&&n!=null&&(e=Math.min(e,~~(fs(t.domain())/n)||1)),Rt(e)&&(e.step,e=e.interval),e}function Yb(t,e,n){var r=t.range(),o=Math.floor(r[0]),i=Math.ceil(jn(r));if(o>i&&(r=i,i=o,o=r),e=e.filter(function(a){return a=t(a),o<=a&&a<=i}),n>0&&e.length>1){for(var s=[e[0],jn(e)];e.length>n&&e.length>=3;)e=e.filter(function(a,c){return!(c%2)});e.length<3&&(e=s)}return e}function TD(t,e){return t.bins?Yb(t,DD(t.bins,e)):t.ticks?t.ticks(e):t.domain()}function DD(t,e){var n=t.length,r=~~(n/(e||n));return r<2?t.slice():t.filter(function(o,i){return!(i%r)})}function BD(t,e,n){var r=t.tickFormat?t.tickFormat(e,n):n?Dt(n):String;if(L1(t.type)){var o=_D(n);r=t.bins?o:kD(r,o)}return r}function kD(t,e){return function(n){return t(n)?e(n):""}}function _D(t){var e=Yi(t||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return RD(Dt(e),Dt(".1f")(1)[1])}else return Dt(e)}function RD(t,e){return function(n){var r=t(n),o=r.indexOf(e),i,s;if(o<0)return r;for(i=FD(r,o),s=i<r.length?r.slice(i):"";--i>o;)if(r[i]!=="0"){++i;break}return r.slice(0,i)+s}}function FD(t,e){var n=t.lastIndexOf("e"),r;if(n>0)return n;for(n=t.length;--n>e;)if(r=t.charCodeAt(n),r>=48&&r<=57)return n+1}/*!
|
|
410
410
|
* Adapted from vega-encode:
|
|
411
411
|
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/Scale.js
|
|
412
412
|
*
|
|
@@ -414,7 +414,7 @@ if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scal
|
|
|
414
414
|
* All rights reserved.
|
|
415
415
|
*
|
|
416
416
|
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
417
|
-
*/const
|
|
417
|
+
*/const MD="locus",PD="index";var LD=5;function OD(t){const e=t.type;return!t.bins&&(e===po||e===Xs||e===Ks)}function Qb(t){return Et(t)&&![zn,PD,MD].includes(t)}function Zb(t){return t||{warn:(e,...n)=>console.warn(e,...n)}}var ND=cA(["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 Xb(t,e,n){n=Zb(n);for(const r in t)if(!ND[r]){if(r==="padding"&&Qb(e.type))continue;kn(e[r])?e[r](t[r]):n.warn("Unsupported scale property: "+r)}WD(e,t,jD(e,t,HD(e,t,n)))}function zD(t,e){const n=UD(t),r=Qe(n);if(!r)throw new Error("Unknown scale type: "+n);const o=r();return!t.domain&&Et(o.type)&&(t.domain=[0,0]),Xb(t,o,e),o}function UD(t){var e=t.type,n="",r;return e===zn?zn+"-"+po:(GD(t)&&(r=t.rawDomain?t.rawDomain.length:t.domain?t.domain.length+ +(t.domainMid!=null):0,n=r===2?zn+"-":r===3?go+"-":""),(n+e||po).toLowerCase())}function GD(t){const e=t.type;return Et(e)&&e!==D1&&e!==B1&&(t.scheme||t.range&&t.range.length&&t.range.every(rt))}function HD(t,e,n){if(!t.domain)return 0;n=Zb(n);var r=VD(t,e.domainRaw,n);if(r>-1)return r;var o=e.domain,i=t.type,s=e.zero||e.zero===void 0&&OD(t),a,c;return o?(Qb(i)&&e.padding&&o[0]!==jn(o)&&(o=qD(i,o,e.range,e.padding,e.exponent,e.constant)),(s||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(a=(o=o.slice()).length-1||1,s&&(o[0]>0&&(o[0]=0),o[a]<0&&(o[a]=0)),e.domainMin!=null&&(o[0]=e.domainMin),e.domainMax!=null&&(o[a]=e.domainMax),e.domainMid!=null&&(c=e.domainMid,(c<o[0]||c>o[a])&&n.warn("Scale domainMid exceeds domain min or max.",c),o.splice(a,0,c))),t.domain(Kb(i,o,n)),i===hh&&t.unknown(e.domainImplicit?Rf:void 0),e.nice&&t.nice&&t.nice(e.nice!==!0&&Wb(t,e.nice)||null),o.length):0}function VD(t,e,n){return e?(t.domain(Kb(t.type,e,n)),e.length):-1}function qD(t,e,n,r,o,i){n??(n=[0,1]);var s=Math.abs(jn(n)-n[0]),a=s/(s-2*r),c=t===Dr?j0(e,null,a):t===Ks?Au(e,null,a,.5):t===Xs?Au(e,null,a,o||1):t===fl?Qv(e,null,a,i||1):q0(e,null,a);return e=e.slice(),e[0]=c[0],e[e.length-1]=c[1],e}function Kb(t,e,n){if(L1(t)){var r=Math.abs(e.reduce(function(o,i){return o+(i<0?-1:i>0?1:0)},0));r!==e.length&&n.warn("Log scale domain includes zero: "+Eu(e))}return e}function jD(t,e,n){let r=e.bins;if(r&&!_t(r)){const o=(r.start==null||r.stop==null)&&t.domain(),i=r.start==null?o[0]:r.start,s=r.stop==null?jn(o):r.stop,a=r.step;a||bn("Scale bins parameter missing step property."),r=As(i,s+a,a)}return r?t.bins=r:t.bins&&delete t.bins,t.type===ph&&(r?!e.domain&&!e.domainRaw&&(t.domain(r),n=r.length):t.bins=t.domain()),n}function WD(t,e,n){var r=t.type,o=e.round||!1,i=e.range;if(e.rangeStep!=null)i=YD(r,e,n);else if(e.scheme&&(i=QD(r,e,n),kn(i))){if(t.interpolator)return t.interpolator(i);bn(`Scale type ${r} does not support interpolating color schemes.`)}if(i&&dl(r))return t.interpolator(pl(qh(i,e.reverse),e.interpolate,e.interpolateGamma));i&&e.interpolate&&t.interpolate?t.interpolate(O1(e.interpolate,e.interpolateGamma)):kn(t.round)?t.round(o):kn(t.rangeRound)&&t.interpolate(o?Qs:Ir),i&&t.range(qh(i,e.reverse))}function YD(t,e,n){t!==R1&&t!==dh&&bn("Only band and point scales support rangeStep.");var r=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,o=t===dh?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*uh(n,o,r)]}function QD(t,e,n){var r=e.schemeExtent,o,i;return _t(e.scheme)?i=pl(e.scheme,e.interpolate,e.interpolateGamma):(o=e.scheme.toLowerCase(),i=mh(o),i||bn(`Unrecognized scheme name: ${e.scheme}`)),n=t===_1?n+1:t===ph?n-1:t===fh||t===k1?+e.schemeCount||LD:n,dl(t)?Jb(i,r,e.reverse):kn(i)?I5(Jb(i,r),n):t===hh?i:i.slice(0,n)}function Jb(t,e,n){return kn(t)&&(e||n)?C5(t,qh(e||[0,1],n)):t}function qh(t,e){return e?t.slice().reverse():t}const $b=Dt(",d");function ZD(t,e){return t.chrom+":"+$b(Math.floor(t.pos+1))+"-"+(t.chrom!=e.chrom?e.chrom+":":"")+$b(Math.ceil(e.pos))}const ey={dm6:`chr3R 32079331
|
|
418
418
|
chr3L 28110227
|
|
419
419
|
chr2R 25286936
|
|
420
420
|
chrX 23542271
|
|
@@ -535,12 +535,12 @@ chr18 90702639
|
|
|
535
535
|
chr19 61431566
|
|
536
536
|
chrX 171031299
|
|
537
537
|
chrY 91744698
|
|
538
|
-
chrM 16299`};function
|
|
539
|
-
`).map(e=>{const n=e.split(" ");return{name:n[0],size:parseInt(n[1])}})}const XD=/^([A-Za-z]+:)?\/\//;function Ai(t,e){if(e&&XD.test(e))return e;const n=typeof t=="function"?t():t;if(!n)return e;if(!e)return n;if(/[#?]/.test(n))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${n}`);return eb(n)+e}function eb(t){const e=t.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?t+"/":e}class KD{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(!qh(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,nb(this.config))this.setChromSizes(this.config.contigs);else if(!jh(this.config)){const n=ZD(this.config.name);if(n)this.setChromSizes(n);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(jh(this.config))try{const n=Ai(e,this.config.url),r=await fetch(n);if(!r.ok)throw new Error(`${r.status} ${r.statusText}`);this.setChromSizes(JD(await r.text()))}catch(n){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${n.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){let n=0;this.startByIndex=[0];for(let r=0;r<e.length;r++){this.startByIndex.push(n);const o=e[r].size,i={...e[r],continuousStart:n,continuousEnd:n+o,continuousInterval:[n,n+o],index:r,number:r+1,odd:!(r&1)};this.chromosomes.push(i);const s=i.name.replace(/^chr/i,"");for(const a of["chr"+s,"CHR"+s,"Chr"+s,i.number,""+i.number,s,i.name])this.cumulativeChromPositions.set(a,n),this.chromosomesByName.set(a,i);n+=i.size}this.totalSize=n}getExtent(){return[0,this.totalSize]}toContinuous(e,n){let r=this.cumulativeChromPositions.get(e);if(r===void 0)throw new Error("Unknown chromosome/contig: "+e);return r+ +n}toChromosome(e){if(e>this.totalSize)return;e=Math.floor(e);const n=gr(this.startByIndex,e)-1;if(n>0&&n<=this.chromosomes.length)return this.chromosomes[n-1]}toChromosomal(e){const n=this.toChromosome(e);if(n)return{chrom:n.name,pos:Math.floor(e)-n.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return QD(...this.toChromosomalInterval(e))}toChromosomalInterval(e){const n=this.toChromosomal(e[0]+.5),r=this.toChromosomal(e[1]-.5);return r.pos+=1,[n,r]}toContinuousInterval(e){var o;let[n,r]=e;return r||(r=n),[this.toContinuous(n.chrom,n.pos??0),this.toContinuous(r.chrom,r.pos??((o=this.chromosomesByName.get(r.chrom))==null?void 0:o.size))]}toDiscreteChromosomeIntervals(e){const n=e[0],r=e[1],o=[];if(n.chrom===r.chrom)o.push({chrom:n.chrom,startPos:n.pos,endPos:r.pos});else{const i=this.chromosomes.findIndex(a=>a.name===n.chrom),s=this.chromosomes.findIndex(a=>a.name===r.chrom);o.push({chrom:n.chrom,startPos:n.pos,endPos:this.chromosomes[i].size});for(let a=i+1;a<s;a++)o.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});o.push({chrom:r.chrom,startPos:0,endPos:r.pos})}return o}continuousToDiscreteChromosomeIntervals(e){return this.toDiscreteChromosomeIntervals([this.toChromosomal(e[0]),this.toChromosomal(e[1])])}parseInterval(e){const n=e.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(n){const r=n[1];if(n.slice(2).every(a=>a===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const o=n[3]||r,i=parseInt(n[2].replace(/,/g,"")),s=n[4]!==void 0?parseInt(n[4].replace(/,/g,"")):i;return[this.toContinuous(r,i-1),this.toContinuous(o,s)]}}}function JD(t){return _A(t).map(([e,n])=>({name:e,size:parseInt(n)}))}function tb(t){return Rt(t)&&"chrom"in t}function $D(t){return t.every(tb)}function qh(t){return Rt(t)&&("name"in t||jh(t)||nb(t))}function jh(t){return qh(t)&&"url"in t}function nb(t){return qh(t)&&"contigs"in t}class ba extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof ba&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const n of e)this.extend(n);return this}extendAllWithAccessor(e,n){for(const r of e)this.extend(n(r));return this}}class Wh extends ba{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 rb extends ba{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 ib extends rb{constructor(){super(),this.type="nominal"}}class eB extends ba{constructor(e){super();let n=0;for(let r=1;r<e.length;r++)n+=Math.sign(e[r]-e[r-1]);if(Math.abs(n)!=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 ob={quantitative:Wh,index:Wh,locus:Wh,nominal:ib,ordinal:rb};function sb(t,e){if(t=="quantitative"&&tB(e)){const n=new eB(e);return n.type=t,n}else if(ob[t]){const n=new ob[t];return n.type=t,e&&n.extendAll(e),n}throw new Error("Unknown type: "+t)}function tB(t){return t&&t.length>0&&t.length!=2&&t.every(e=>typeof e=="number")}function nB(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function rB(t,e,n){return t*Math.pow(e/t,n)}Qe("index",Hh,["continuous"]),Qe("locus",SD,["continuous"]),Qe("null",Fh,[]);const ab="quantitative",cb="ordinal",lb="nominal",ub="locus",iB="index";class oB{constructor(e){ge(this,Pe);ge(this,Yo,{domain:new Set,range:new Set});ge(this,Jt);ge(this,Mi);ge(this,Ua,new Set);this.channel=e,this.members=[],this.type=null,this.name=void 0}get zoomExtent(){return(W(this,Jt)&&Et(W(this,Jt).type)&&de(this,Pe,Iv).call(this))??[-1/0,1/0]}addEventListener(e,n){W(this,Yo)[e].add(n)}removeEventListener(e,n){W(this,Yo)[e].delete(n)}addMember(e){var a;const{channel:n,channelDef:r}=e,o=r.type==null&&this.type;if(n!="sample"&&!r.type&&!_h(n)&&!o)throw new Error(`The "type" property must be defined in channel definition: "${n}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const i=n=="sample"?"nominal":r.type,s=(a=r==null?void 0:r.scale)==null?void 0:a.name;if(s){if(this.name!==void 0&&s!=this.name)throw new Error(`Shared scales have conflicting names: "${s}" vs. "${this.name}"!`);this.name=s}if(!o){if(!this.type)this.type=i;else if(i!==this.type&&!_h(n))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${i}. Use "resolve: independent" for channel ${this.channel}`)}this.members.push(e)}getDataDomain(){return this.members.map(e=>{var n;return(n=e.dataDomainSource)==null?void 0:n.call(e,e.channel,this.type)}).filter(e=>!!e).reduce((e,n)=>e.extendAll(n))}reconfigure(){const e=W(this,Jt);if(!e||e.type=="null")return;const n=de(this,Pe,Sv).call(this),r=e.domain(),o=de(this,Pe,T0).call(this,!0);if(Zy({...o,range:void 0},e),e.props=o,de(this,Pe,D0).call(this),!W(this,Mi)&&Et(e.type)){const s=e.domain();us(s)>0&&Ie(this,Mi,s)}if(!n){Ie(this,Mi,e.domain()),de(this,Pe,hr).call(this,"domain");return}const i=e.domain();Bc(i,r)||(this.isZoomable()?e.domain(r):de(this,Pe,Ui).call(this)?(e.domain(r),this.zoomTo(i,500)):de(this,Pe,hr).call(this,"domain"))}get scale(){if(W(this,Jt))return W(this,Jt);const e=de(this,Pe,T0).call(this),n=ND({...e,range:void 0});n.props=e,"unknown"in n&&n.unknown(null),Ie(this,Jt,n),de(this,Pe,D0).call(this),CD(n)&&n.genome(this.getGenome());const r=n.range;if(r){const o=()=>de(this,Pe,hr).call(this,"range");n.range=function(i){if(arguments.length)r(i),o();else return r()},o()}return n}getDomain(){return this.scale.domain()}getComplexDomain(){var e;return((e=this.getGenome())==null?void 0:e.toChromosomalInterval(this.getDomain()))??this.getDomain()}isZoomed(){return de(this,Pe,Ui).call(this)&&Bc(de(this,Pe,mu).call(this),this.getDomain())}isZoomable(){return de(this,Pe,Ui).call(this)&&!!this.scale.props.zoom}zoom(e,n,r){if(!de(this,Pe,Ui).call(this))return!1;const o=this.scale,i=o.domain();let s=[...i],a=o.invert(n);switch(o.props.reverse&&(r=-r),"align"in o&&(a+=o.align()),o.type){case"linear":case"index":case"locus":s=qv(s,r||0),s=V0(s,a,e);break;case"log":s=jv(s,r||0),s=q0(s,a,e);break;case"pow":case"sqrt":{const l=o;s=Wv(s,r||0,l.exponent()),s=vu(s,a,e,l.exponent());break}default:throw new Error("Zooming is not implemented for: "+o.type)}const c=this.zoomExtent;return s=Qv(s,c[0],c[1]),[0,1].some(l=>s[l]!=i[l])?(o.domain(s),de(this,Pe,hr).call(this,"domain"),!0):!1}async zoomTo(e,n=!1){if(ls(n)&&(n=n?700:0),!de(this,Pe,Ui).call(this))throw new Error("Not a zoomable scale!");const r=this.fromComplexInterval(e),o=W(this,Pe,C0).animator,i=this.scale,s=i.domain();if(n>0&&s.length==2){const a=s[1]-s[0],c=r[1]-r[0],l=s[0]+a/2,u=r[0]+c/2,f=s[0]==r[0],h=s[1]==r[1];await o.transition({duration:n,easingFunction:nB,onUpdate:d=>{const p=rB(a,c,d),b=a==c?d:(a-p)/(a-c),v=b*u+(1-b)*l,y=[f?s[0]:v-p/2,h?s[1]:v+p/2];i.domain(y),de(this,Pe,hr).call(this,"domain")}}),i.domain(r),de(this,Pe,hr).call(this,"domain")}else i.domain(r),o==null||o.requestRender(),de(this,Pe,hr).call(this,"domain")}resetZoom(){if(!de(this,Pe,Ui).call(this))throw new Error("Not a zoomable scale!");const e=this.getDomain(),n=de(this,Pe,mu).call(this);return[0,1].some(r=>n[r]!=e[r])?(W(this,Jt).domain(n),de(this,Pe,hr).call(this,"domain"),!0):!1}getZoomLevel(){return this.isZoomable()?us(this.zoomExtent)/us(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(n=>{var r;return(r=n.view.coords)==null?void 0:r[this.channel==="x"?"width":"height"]}).filter(n=>n>0);return e.length?e.reduce((n,r)=>Math.min(n,r),1e4):0}getGenome(){var n;if(this.type!=="locus")return;const e=(n=W(this,Pe,C0).genomeStore)==null?void 0:n.getGenome();if(!e)throw new Error("No genome has been defined!");return e}invertToComplex(e){const n=this.scale;if("invert"in n){const r=n.invert(e);return this.toComplex(r)}else throw new Error("The scale does not support inverting!")}toComplex(e){const n=this.getGenome();return n?n.toChromosomal(e):e}fromComplex(e){return tb(e)?this.getGenome().toContinuous(e.chrom,e.pos):e}fromComplexInterval(e){return this.type==="locus"&&$D(e)?this.getGenome().toContinuousInterval(e):e}}Yo=new WeakMap,Jt=new WeakMap,Mi=new WeakMap,Ua=new WeakMap,Pe=new WeakSet,S0=function(){return this.members[0].view},C0=function(){return W(this,Pe,S0).context},hr=function(e){for(const n of W(this,Yo)[e].values())n({type:e,scaleResolution:this})},I0=function(){return!!de(this,Pe,B0).call(this)},Sv=function(){const e=W(this,Jt);if(!e)return!1;const n=e.domain();return Et(e.type)?n.length>2||n.length==2&&(n[0]!==0||n[1]!==0):n.length>0},Cv=function(){const e=this.members.map(n=>n.channelDef.scale).filter(n=>n!==void 0);return kl(e,"scale",["domain"])},T0=function(e=!1){const n=de(this,Pe,Cv).call(this);if(n===null||n.type=="null")return{type:"null"};const r={...de(this,Pe,Tv).call(this,this.type),...n};r.type||(r.type=sB(this.channel,this.type));const o=de(this,Pe,mu).call(this,e);return o&&o.length>0?r.domain=o:Br(r.type)&&(r.domain=new ib),!r.domain&&r.domainMid!==void 0&&(r.domain=[r.domainMin??0,r.domainMax??1]),this.channel=="y"&&Br(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),aB(r,this.channel),r},D0=function(){const e=W(this,Jt).props,n=e.range;if(W(this,Ua).forEach(o=>o.invalidate()),!n||!_t(n))return;const r=(o,i)=>i?o.slice().reverse():o;if(n.some(Vt)){let o;const i=()=>{W(this,Jt).range(r(o.map(s=>s()),e.reverse))};o=n.map(s=>{if(Vt(s)){const a=W(this,Pe,S0).paramMediator.createExpression(s.expr);return a.addListener(i),W(this,Ua).add(a),()=>a(null)}else return()=>s}),i()}else W(this,Jt).range(r(n,e.reverse))},mu=function(e=!1){return de(this,Pe,B0).call(this)??(this.type==ub?this.getGenome().getExtent():e?this.getDataDomain():[])},B0=function(){const e=this.members.map(n=>n.channelDef).filter(n=>{var r;return(r=n.scale)==null?void 0:r.domain}).map(n=>sb(n.type,this.fromComplexInterval(n.scale.domain)));if(e.length>0)return e.reduce((n,r)=>n.extendAll(r))},Ui=function(){const e=this.scale.type;return Et(e)},Iv=function(){const e=this.scale.props,n=e.zoom;return cB(n)&&_t(n.extent)?this.fromComplexInterval(n.extent):n&&e.type=="locus"?this.getGenome().getExtent():W(this,Mi)},Tv=function(e){const n=this.channel,r={};return de(this,Pe,I0).call(this)&&(r.zero=!1),ua(n)?r.nice=!de(this,Pe,I0).call(this):Fr(n)?r.scheme=e==lb?"tableau10":e==cb?"blues":"viridis":El(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 sB(t,e){if(e==iB||e==ub){if(kh(t))return e;throw new Error(`${t} does not support ${e} data type. Only positional channels do.`)}const n={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]},o=["sample"].includes(t)?"null":n[t]?n[t][[lb,cb,ab].indexOf(e)]:e==ab?"linear":"ordinal";if(o===void 0)throw new Error(`Channel "${t}" is not compatible with "${e}" data type. Use of a proper scale may be needed.`);return o}function aB(t,e){ua(e)&&t.type!=="ordinal"&&(t.range=[0,1]),e=="opacity"&&Et(t.type)&&(t.clamp=!0)}function cB(t){return Rt(t)}function Yh(t){const e=new Set;function n(r){for(const o of Object.values(r.resolutions.scale))e.add(o)}for(const r of Wt(t)){r.visit(n);for(const o of r.getDataAncestors()){if(!o.options.contributesToScaleDomain)break;n(o)}}e.forEach(r=>r.reconfigure())}function Qh(...t){for(const e of t)if(e!==void 0)return e}class lB{constructor(e){this.channel=e,this.members=[]}get scaleResolution(){var e;return(e=Ls(this.members))==null?void 0:e.view.getScaleResolution(this.channel)}addMember(e){const{view:n}=e,r=n.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(o=>o.view.getPathString()).join(", ")}], new view: ${n.getPathString()}.`);this.members.push(e)}getAxisProps(){return Tl(this,"axisProps",()=>{const e=this.members.map(n=>{const r=n.view.mark.encoding[n.channel];return"axis"in r&&r.axis});return e.length>0&&e.some(n=>n===null)?null:kl(e.filter(n=>n!==void 0),"axis",["title"])})}getTitle(){const e=i=>{var a;const s=aT(i.view,i.channel);if(!ln(s))return{member:i,explicitTitle:Qh("axis"in s?(a=s.axis)==null?void 0:a.title:void 0,s.title),implicitTitle:Qh(Rr(s)?s.field:void 0,la(s)?s.expr:void 0)}},n=this.members.map(e),r=n.filter(i=>{var s;if(_h(i.member.channel)&&!i.explicitTitle){const a=xi(i.member.channel);return((s=n.find(c=>c.member.view==i.member.view&&c.member.channel==a))==null?void 0:s.explicitTitle)===void 0}return!0}),o=new Set(r.map(i=>Qh(i.explicitTitle,i.implicitTitle)).filter(rt));return o.size?[...o].join(", "):null}}function fb(t,e,{spacing:n,devicePixelRatio:r,offset:o,reverse:i}={}){n=n||0,o=o||0;let s=0,a=0;for(const p of t)s+=_l(p.px)+(Zh(p)?0:n),a+=_l(p.grow);s-=n;const c=Math.max(0,e-s),l=r!==void 0?p=>Math.round(p*r)/r:p=>p,u=[],f=[],h=p=>{const b=u.length;if(!b)return;const v=(p?n:0)*(i?-1:1);d-=v;for(let y=0;y<b;y++)f.push({location:d+(y+1)/(b+1)*v,size:0});d+=v,u.length=0};let d=i?Math.max(e,s):0+o;if(t.length==1&&Zh(t[0]))return[{location:d,size:0}];for(let p=0;p<t.length;p++){const b=t[p];if(Zh(b))u.push(b);else{h(f.length>0);const v=_l(b.px)+(a?_l(b.grow)/a*c:0);i&&(d-=v),f.push({location:l(d),size:l(v)}),i?d-=n:d+=v+n}}return d+=i?n:-n,h(!1),f}function uB(t){let e=0,n=0;for(const r of t)e=Math.max(e,r.px??0),n=Math.max(n,r.grow??0);return{px:e,grow:n}}const b0=class b0{constructor(e,n){ge(this,Ga);this.width=e,this.height=n}addPadding(e){return de(this,Ga,k0).call(this,e.width,e.height)}subtractPadding(e){return de(this,Ga,k0).call(this,-e.width,-e.height)}isGrowing(){return!!(this.width.grow||this.height.grow)}};Ga=new WeakSet,k0=function(e,n){return new b0({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+n,grow:this.height.grow})};let Pr=b0;const wa=Object.freeze({px:0,grow:0}),hb=new Pr(wa,wa);function Zh(t){return!t.px&&!t.grow}function _l(t){return t||0}function fB(t){return t&&(Ut(t.px)||Ut(t.grow))}function db(t){if(mb(t))throw new Error("parseSizeDef does not accept step-based sizes.");if(fB(t))return t;if(Ut(t))return{px:t,grow:0};if(t==="container")return{px:0,grow:1};if(!t)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${t}`)}class Lt{constructor(e,n,r,o){this.top=e||0,this.right=n||0,this.bottom=r||0,this.left=o||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new Lt(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new Lt(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new Lt(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new Lt(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 Lt(0,this.right,0,this.left)}getVertical(){return new Lt(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):Xh}static createFromRecord(e){return new Lt(e.top,e.right,e.bottom,e.left)}static zero(){return Xh}static createUniformPadding(e){return new Lt(e,e,e,e)}}const Xh=Lt.createUniformPadding(0);Object.freeze(Xh);function xa(t,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(t)||t.startsWith("/")?t:(e.endsWith("/")||(e+="/"),e+t)}function hB(t){if(!t)return t;if(/[?#]/.test(t))throw new Error(`Invalid base URL: ${t} - cannot contain query or hash.`);return t.endsWith("/")?t:t+"/"}const dB="VISIT_SKIP",va="VISIT_STOP",pb=t=>t;class gb{constructor(e,n,r,o,i,s={}){ge(this,qn);ge(this,Qo,{});ge(this,Zo,{});ge(this,Xo,{});ge(this,Ha);ge(this,Va);zt(this,"opacityFunction",pb);zt(this,"facetCoords",new Wn([],JSON.stringify));var a;if(!e)throw new Error("View spec must be defined!");if(this.context=n,this.layoutParent=r,this.dataParent=o,this.name=e.name||i,this.spec=e,this.resolutions={scale:{},axis:{}},Oy(this),this.options={blockEncodingInheritance:!1,contributesToScaleDomain:!0,...s},this.needsAxes={x:!1,y:!1},this.paramMediator=new JI(()=>{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=l=>this.paramMediator.findMediatorForParam(l)?void 0:this.paramMediator.allocateSetter(l,0);Ie(this,Va,c("height")),Ie(this,Ha,c("width"))}}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>Lt.createFromConfig(this.spec.padding))}getOverhang(){return Lt.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Pr(de(this,qn,rc).call(this,"width"),de(this,qn,rc).call(this,"height")):hb)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return hb;const e=this.getSize();return new Pr(de(this,qn,rc).call(this,"viewportWidth")??e.width,de(this,qn,rc).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 de(this,qn,_0).call(this,"layoutParent")}getDataAncestors(){return de(this,qn,_0).call(this,"dataParent")}handleBroadcast(e){for(const n of W(this,Qo)[e.type]||[])n(e)}_addBroadcastHandler(e,n){let r=W(this,Qo)[e];r||(r=[],W(this,Qo)[e]=r),r.push(n)}handleInteractionEvent(e,n,r){const o=r?W(this,Zo):W(this,Xo);for(const i of o[n.type]||[])i(e,n)}addInteractionEventListener(e,n,r){const o=r?W(this,Zo):W(this,Xo);let i=o[e];i||(i=[],o[e]=i),i.push(n)}removeInteractionEventListener(e,n,r){const o=r?W(this,Zo):W(this,Xo);let i=o==null?void 0:o[e];if(i){const s=i.indexOf(n);s>=0&&i.splice(s,1)}}visit(e){try{const n=e(this);if(e.postOrder&&e.postOrder(this),n!==va)return n}catch(n){throw n.view=this,n}}getDescendants(){const e=[];return this.visit(n=>{e.push(n)}),e}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===pb)&&(this.opacityFunction=gB(this))}onBeforeRender(){}render(e,n,r={}){var o,i;r.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(r.facetId,r.clipRect?n.intersect(r.clipRect):n),(o=W(this,Ha))==null||o.call(this,n.width),(i=W(this,Va))==null||i.call(this,n.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},n=this.spec.encoding||{},r={...e,...n};for(const[o,i]of Object.entries(r))i===null&&delete r[o];return r}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){var r;const n=this.getEncoding().sample;return Rr(n)?[n.field]:(r=this.layoutParent)==null?void 0:r.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const n=xi(e);return this.getDataAncestors().map(r=>r.resolutions.scale[n]).find(r=>r)}getAxisResolution(e){const n=xi(e);return this.getDataAncestors().map(r=>r.resolutions.axis[n]).find(r=>r)}getConfiguredResolution(e,n){var r,o;return(o=(r=this.spec.resolve)==null?void 0:r[n])==null?void 0:o[e]}getConfiguredOrDefaultResolution(e,n){return this.getConfiguredResolution(e,n)??this.getConfiguredResolution("default",n)??this.getDefaultResolution(e,n)}getDefaultResolution(e,n){return"independent"}getBaseUrl(){return Ai(()=>{var e;return(e=this.dataParent)==null?void 0:e.getBaseUrl()},hB(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return rt(e)?e:Vt(e.text)?this.paramMediator.evaluateAndGet(e.text.expr):e.text}_cache(e,n){return Tl(this,e,n)}_invalidateCacheByPrefix(e,n="self"){switch(n){case"self":Dl(this,e);break;case"ancestors":for(const r of this.getLayoutAncestors())Dl(r,e);break;case"progeny":this.visit(r=>Dl(r,e));break}}invalidateSizeCache(){this._invalidateCacheByPrefix("size/","ancestors")}propagateInteractionEvent(e){}}Qo=new WeakMap,Zo=new WeakMap,Xo=new WeakMap,Ha=new WeakMap,Va=new WeakMap,qn=new WeakSet,rc=function(e){var o;let n=this.spec[e];const r=e=="viewportWidth"||e=="viewportHeight";if(mb(n)){if(r)throw new Mr(`Cannot use step-based size with "${e}"!`,this);const i=n.step,s=(o=this.getScaleResolution(e=="width"?"x":"y"))==null?void 0:o.scale;if(s){let a=0;if(Br(s.type))a=s.domain().length;else if(["locus","index"].includes(s.type)){const l=s.domain();a=Ls(l)-l[0]}else throw new Mr(`Cannot use step-based size with "${s.type}" scale!`,this);const c=s;return a=lh(a,c.paddingInner(),c.paddingOuter()),{px:a*i,grow:0}}else throw new Mr("Cannot use 'step' size with missing scale!",this)}else return(n&&db(n))??(r?void 0:{px:0,grow:1})},_0=function(e){const n=[];let r=this;do n.push(r),r=r[e];while(r);return n};function pB(t){return"unitsPerPixel"in t}function gB(t){const e="opacity"in t.spec?t.spec.opacity:void 0;if(e!==void 0){if(Ut(e))return n=>n*e;if(pB(e)){const n=i=>{var a;const s=(a=t.getScaleResolution(i))==null?void 0:a.scale;if(["linear","index","locus"].includes(s==null?void 0:s.type))return s},r=e.channel?n(e.channel):n("x")??n("y");if(!r)throw new Mr("Cannot find a resolved quantitative scale for dynamic opacity!",t);const o=eh().domain(e.unitsPerPixel).range(e.values).clamp(!0);return i=>{const a=us(r.domain())/1e3;return o(a)*i}}else if(Vt(e)){const n=t.paramMediator.createExpression(e.expr);return n.addListener(()=>t.context.animator.requestRender()),r=>n(null)*r}}return n=>n}const mb=t=>!!(t!=null&&t.step),mB={point:sD,rect:eD,rule:uD,link:yD,text:ED};class en extends gb{constructor(n,r,o,i,s,a){super(n,r,o,i,s,a);ge(this,hu);ge(this,qa);this.spec=n;const c=mB[this.getMarkType()];if(c)this.mark=new c(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),Ie(this,qa,this.paramMediator.allocateSetter("zoomLevel",1)),["x","y"].forEach(l=>{var u;return(u=this.getScaleResolution(l))==null?void 0:u.addEventListener("domain",()=>W(this,qa).call(this,Math.sqrt(this.getZoomLevel())))}),this.needsAxes={x:!0,y:!0},de(this,hu,Dv).call(this)}render(n,r,o={}){super.render(n,r,o),this.isConfiguredVisible()&&(n.pushView(this,r),n.renderMark(this.mark,o),n.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const n=super.getEncoding(),r=this.mark.getSupportedChannels();for(const o of Object.keys(n))r.includes(o)||delete n[o];return n}resolve(n){if(!n){this.resolve("scale"),this.resolve("axis");return}const r=this.mark.encoding;for(const[o,i]of Object.entries(r)){if(!i)continue;let s;if(Xt(i))s=i;else if(Bh(i)){const l=i.condition;if(!Array.isArray(l)&&Xt(l))s=l;else continue}else continue;const a=xi(s.resolutionChannel??o);if(!Sl(a)||n=="axis"&&!ua(a))continue;let c=this;for(;(c.getConfiguredOrDefaultResolution(a,n)=="forced"||c.dataParent&&["shared","excluded","forced"].includes(c.dataParent.getConfiguredOrDefaultResolution(a,n)))&&c.getConfiguredOrDefaultResolution(a,n)!="excluded";)c=c.dataParent;if(n=="axis"&&ua(o)&&kh(a))c.resolutions[n][a]||(c.resolutions[n][a]=new lB(a)),c.resolutions[n][a].addMember({view:this,channel:o,channelDef:s});else if(n=="scale"&&Sl(o)){if(!c.resolutions[n][a]){const u=new oB(a);c.resolutions[n][a]=u,u.addEventListener("range",f=>{var h;(h=this.context.glHelper)==null||h.createRangeTexture(f.scaleResolution,!0)})}const l=this.getLayoutAncestors().some(u=>!u.options.contributesToScaleDomain)||Xt(s)&&s.contributesToScaleDomain===!1?void 0:this.extractDataDomain.bind(this);c.resolutions[n][a].addMember({view:this,channel:o,channelDef:s,dataDomainSource:l})}}}getDataAccessor(n){var r;return(r=this.mark.encoders[n])==null?void 0:r.dataAccessor}getFacetAccessor(n){const r=this.getDataAccessor("sample");return r||super.getFacetAccessor(this)}getCollector(){return this.context.dataFlow.findCollectorByKey(this)}extractDataDomain(n,r){var i;let o=sb(r);return(((i=this.mark.encoders[n])==null?void 0:i.accessors)??[]).filter(s=>s.scaleChannel).forEach(s=>{if(s.constant)o.extend(s({}));else{const a=this.getCollector();a!=null&&a.completed&&a.visitData(c=>o.extend(s(c)))}}),o}getZoomLevel(){const n=r=>{var o;return((o=this.getScaleResolution(r))==null?void 0:o.getZoomLevel())??1};return wi.map(n).reduce((r,o)=>r*o,1)}propagateInteractionEvent(n){this.handleInteractionEvent(void 0,n,!0),n.target=this,!n.stopped&&this.handleInteractionEvent(void 0,n,!1)}getDefaultResolution(n,r){return n=="x"?"shared":"independent"}}qa=new WeakMap,hu=new WeakSet,Dv=function(){for(const[n,r]of this.paramMediator.paramConfigs){if(!("select"in r))continue;const o=Al(r.select);if(Dh(o)){let s=0;const a=this.paramMediator.getSetter(n),c=()=>{var f;const u=this.context.getCurrentHover();return((f=u==null?void 0:u.mark)==null?void 0:f.unitView)===this?u.datum:null},l=(u,f)=>{const h=c(),d=h?h[an]:0;let p;if(o.toggle)if(f.mouseEvent.shiftKey){if(h){const v=this.paramMediator.getValue(n);p=eT(v,{toggle:[h]})}}else p=uy(h?[h]:null);else d!=s&&(s=d,p=ly(h));p!==void 0&&a(p)};this.addInteractionEventListener(["mouseover","pointerover"].includes(o.on)?"mousemove":"click",l)}}};function*Kh(t,e=[]){for(const[n,r]of t.entries())if(r instanceof Map)for(const o of Kh(r,[...e,n]))yield o;else yield[[...e,n],r]}const yb=2147483647,yB=bb([yb]);function bb(t){let e=0;for(let n=0,r=t.length;n<r;n++)e=Math.max(e,t[n]);return Math.floor(Math.log2(e)/4)+1}function bB(t){const e=bb(t);let n=Array.from({length:t.length},(i,s)=>s),r=new Array(t.length);const o=new Array(16);for(let i=0;i<e;i++){o.fill(0);const s=i*4,a=Math.pow(16,i),c=l=>{const u=t[n[l]];return i>=yB?u>yb?Math.floor(u/a)%16:0:u>>s&15};for(let l=0;l<t.length;l++)o[c(l)]++;for(let l=1;l<16;l++)o[l]+=o[l-1];for(let l=t.length-1;l>=0;l--)r[--o[c(l)]]=n[l];[n,r]=[r,n]}return n}class wb extends yh{constructor(n){super();ge(this,tn);ge(this,sr,[]);ge(this,ja,Xe(an));ge(this,Hr,[]);ge(this,Pi);this.params=n??{type:"collect"},this.observers=[],this.facetBatches=new Wn([],JSON.stringify),de(this,tn,R0).call(this)}get behavior(){return mh}get label(){return"collect"}reset(){super.reset(),de(this,tn,R0).call(this)}handle(n){W(this,sr).push(n)}beginBatch(n){B5(n)&&(Ie(this,sr,[]),this.facetBatches.set(Wt(n.facetId),W(this,sr)))}complete(){var i,s;Ie(this,sr,[]);const n=(i=this.params)==null?void 0:i.sort,r=n?W0(n.field,n.order):void 0,o=a=>{r&&a.sort(r)};if((s=this.params.groupby)!=null&&s.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const a=this.facetBatches.get(void 0),c=this.params.groupby.map(u=>Xe(u)),l=c.length>1?pc(a,...c):wB(a,c[0]);this.facetBatches.clear();for(const[u,f]of Kh(l))this.facetBatches.set(u,f)}for(const a of this.facetBatches.values())o(a);de(this,tn,Bv).call(this),de(this,tn,F0).call(this),super.complete();for(const a of this.observers)a(this)}repropagate(){for(const n of this.children)n.reset();de(this,tn,F0).call(this);for(const n of this.children)n.complete()}getData(){switch(de(this,tn,M0).call(this),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const n=this.facetBatches;return{[Symbol.iterator]:function*(){for(const o of n.values())yield*o}}}}}visitData(n){de(this,tn,M0).call(this);for(const r of this.facetBatches.values())for(let o=0;o<r.length;o++)n(r[o])}getItemCount(){let n=0;for(const r of this.facetBatches.values())n+=r.length;return n}findDatumByUniqueId(n){if(!W(this,Hr).length)return;const r=ji(c=>c.start).right,o=W(this,ja),i=ji(c=>o(s(c))).left,s=c=>{const l=r(W(this,Pi),c),u=W(this,Pi)[l-1];return!u||c>=u.stop?void 0:this.facetBatches.get(u.facetId)[c-u.start]},a=i(W(this,Hr),n);if(a>=0){const c=s(W(this,Hr)[a]);if(c&&o(c)===n)return c}}}sr=new WeakMap,ja=new WeakMap,Hr=new WeakMap,Pi=new WeakMap,tn=new WeakSet,R0=function(){Ie(this,sr,[]),Ie(this,Hr,[]),this.facetBatches.clear(),this.facetBatches.set(void 0,W(this,sr))},F0=function(){if(this.children.length)for(const[n,r]of this.facetBatches.entries()){if(n){const o={type:"facet",facetId:n};for(const i of this.children)i.beginBatch(o)}for(let o=0,i=r.length;o<i;o++)this._propagate(r[o])}},M0=function(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")},Bv=function(){var s;Ie(this,Pi,[]);const n=(s=this.facetBatches.values().next().value)==null?void 0:s[0];if(n==null||!(an in n))return;let r=0;const o=[],i=W(this,ja);for(const[a,c]of this.facetBatches){W(this,Pi).push({start:r,stop:r+c.length,facetId:a}),r+=c.length;for(let l=0,u=c.length;l<u;l++)o.push(i(c[l]))}Ie(this,Hr,bB(o))};function wB(t,e){const n=new Map;for(let r=0,o=t.length;r<o;r++){const i=t[r],s=e(i);let a=n.get(s);a||(a=[],n.set(s,a)),a.push(i)}return n}class Rl{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,n){let r=this.length++;for(;r>0;){const o=r-1>>1,i=this.values[o];if(n>=i)break;this.ids[r]=this.ids[o],this.values[r]=i,r=o}this.ids[r]=e,this.values[r]=n}pop(){if(this.length===0)return;const e=this.ids[0];if(this.length--,this.length>0){const n=this.ids[0]=this.ids[this.length],r=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let s=(i<<1)+1;const a=s+1;let c=this.ids[s],l=this.values[s];const u=this.values[a];if(a<this.length&&u<l&&(s=a,c=this.ids[a],l=u),l>=r)break;this.ids[i]=c,this.values[i]=l,i=s}this.ids[i]=n,this.values[i]=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 xB extends bt{get behavior(){return Un}constructor(e){super(e),this.params=e,this.startAccessor=Xe(e.start),this.endAccessor=Xe(e.end),this.chromAccessor=e.chrom?Xe(e.chrom):n=>{},this.weightAccessor=e.weight?Xe(e.weight):n=>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(([n,r])=>r).map(([n,r])=>`${JSON.stringify(r)}: ${n}`).join(", ")+"};"),this.ends=new Rl}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,n=this.as.end,r=this.as.chrom,o=this.startAccessor,i=this.endAccessor,s=this.chromAccessor,a=this.weightAccessor;let c,l,u,f=0,h=NaN;const d=this.ends;d.clear();const p=y=>{this._propagate(y),c=null},b=(y,A,S)=>{if(y==A)return;let E=!1;c&&(c[e]===S?(c[n]=A,E=!0):c[e]!=0&&p(c)),E||(c=this.createSegment(y,A,S,u))},v=()=>{let y=0;for(;(y=d.peekValue())!==void 0;)b(h,y,f),h=y,f-=d.pop();h=NaN,c&&p(c)};this.handle=y=>{const A=o(y);let S=0;for(;(S=d.peekValue())!==void 0&&S<A;)b(h,S,f),h=S,f-=d.pop();if(r){let I=s(y);I!==l&&(v(),u=I,l=u)}isNaN(h)||b(h,A,f),h=A;const E=a(y);f+=E,d.push(E,i(y))},this.complete=()=>{v(),super.complete()},this.beginBatch=y=>{v(),l=null,super.beginBatch(y)}}}function vB(t,e,n=0,r=t.length){const o=new Rl,i=r-n;let s;for(s=0;s<e&&s<i;s++)o.push(s,t[n+s]);for(;s<i;s++){const l=t[n+s];l>=o.peekValue()&&(o.push(s,l),o.pop())}const a=[];let c;for(;(c=o.pop())!==void 0;)a.push(n+c);return a.reverse()}class AB{constructor(e,n=-1/0,r=1/0){this.maxSize=e,this.lowerLimit=n,this.upperLimit=r;const o=this.maxSize*2+1;this.lowerLimits=new Float64Array(o),this.upperLimits=new Float64Array(o),this.lowerChildren=new Int32Array(o),this.upperChildren=new Int32Array(o),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,n,r=0){if(e>=this.lowerLimits[r]&&n<=this.upperLimits[r]){const o=this.lowerChildren[r];if(o){const i=this._findSlot(e,n,o);return i>=0?i:this._findSlot(e,n,this.upperChildren[r])}else return r}else return-1}reserve(e,n){if(n-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,n);if(r<0)return!1;const o=this.n++,i=this.n++;return this.lowerLimits[o]=this.lowerLimits[r],this.upperLimits[o]=e,this.lowerLimits[i]=n,this.upperLimits[i]=this.upperLimits[r],this.lowerChildren[r]=o,this.upperChildren[r]=i,!0}}class EB extends bt{get behavior(){return mh}constructor(e,n){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.posAccessor=Xe(this.params.pos),this.posBisector=ji(this.posAccessor),this.scoreAccessor=Xe(this.params.score),this.widthAccessor=Xe(this.params.width),this.laneAccessor=this.params.lane?Xe(this.params.lane):o=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=n.getScaleResolution(this.channel);const r=()=>this._filterAndPropagate();this.schedule=()=>n.context.animator.requestTransition(r),this.resolution.addEventListener("domain",o=>this.schedule()),n._addBroadcastHandler("layoutComputed",()=>this.schedule())}complete(){const e=this.posAccessor;this._data.sort((n,r)=>e(n)-e(r)),this._scores=this._data.map(this.scoreAccessor);for(const n of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(n,new AB(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.scale,n=this.resolution.getAxisLength();if(!n)return;for(const s of this.reservationMaps.values())s.reset();const r=e.domain(),i=vB(this._scores,70,this.posBisector.left(this._data,r[0]),this.posBisector.right(this._data,r[1]));for(const s of i){const a=this._data[s],c=e(this.posAccessor(a))*n,l=this.widthAccessor(a)/2+this.padding;this.reservationMaps.get(this.laneAccessor(a)).reserve(c-l,c+l)&&this._propagate(a)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class SB extends bt{constructor(e,n){super(e,n),this.params=e,this.predicate=void 0}initialize(){let e="";if(CB(this.params))e=this.params.expr;else if(IB(this.params)){const n=this.paramMediator.findValue(this.params.param);if(!n)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);e=tT(this.params,n)}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 CB(t){return"expr"in t}function IB(t){return"param"in t}class TB extends bt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=e.index;if(e.fields){const r=Wt(e.fields).map(i=>Xe(i)),o=Wt(e.as||e.fields);if(r.length!==o.length)throw new Error(`Lengths of "fields" (${r.length}), and "as" (${o.length}) do not match!`);this.handle=i=>{const s=r.map((c,l)=>c(i)??[]),a=s[0].length;for(let c=0;c<a;c++){const l=Object.assign({},i);for(let u=0;u<r.length;u++)l[o[u]]=c<s[u].length?s[u][c]:null;n&&(l[n]=c),this._propagate(l)}}}else this.handle=r=>{for(let o=0;o<r.length;o++){const i=Object.assign({},r[o]);n&&(i[n]=o),this._propagate(i)}}}}const DB=48;function*BB(t,e=","){const n=e.charCodeAt(0);let r=0;for(let o=0;o<t.length;o++){const i=t.charCodeAt(o);i==n?(yield r,r=0):r=r*10+i-DB}yield r}class kB extends bt{get behavior(){return Un}constructor(e){super(e);const n=Xe(e.exons??"exons"),r=Xe(e.start??"start"),[o,i]=e.as||["exonStart","exonEnd"];this.handle=s=>{let a=r(s),c=a,l=!0;const u=n(s);for(const f of BB(u)){if(l)c=a+f;else{a=c+f;const h=Object.assign({},s);h[o]=c,h[i]=a,this._propagate(h)}l=!l}}}}class _B extends bt{get behavior(){return Un}constructor(e){super(e);const n=Wt(e.field).map(i=>Xe(i)),r=Wt(e.separator),o=Wt(e.as||e.field);if(n.length!==r.length||n.length!==o.length)throw new Error(`Lengths of "separator" (${r.length}), "fields" (${n.length}), and "as" (${o.length}) do not match!`);this.handle=i=>{if(n.some(c=>!c(i)))return;const s=n.map((c,l)=>c(i).split(r[l]));RB(s,i);const a=s[0].length;for(let c=0;c<a;c++){const l=Object.assign({},i);for(let u=0;u<n.length;u++)l[o[u]]=s[u][c];this._propagate(l)}}}}function RB(t,e){const n=t.map(r=>r.length);if(!n.every(r=>r==n[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class FB extends bt{get behavior(){return kr}constructor(e,n){super(e,n),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 xb extends bt{get behavior(){return kr}constructor(e,n){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 o=n.getScaleResolution(r).getGenome();if(!o)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const i=Xe(e.chrom),s=Wt(e.pos).map(p=>Xe(p)),a=Wt(e.as);if(s.length!=a.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=Wt(e.offset);let l;if(c.length==0)l=new Array(s.length).fill(0);else if(c.length==1)l=new Array(s.length).fill(c[0]);else if(c.length==s.length)l=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const u=new Function("datum","chromOffset","posAccessors",a.map((p,b)=>`datum[${JSON.stringify(p)}] = chromOffset + +posAccessors[${b}](datum) - ${l[b]};`).join(`
|
|
540
|
-
`));let f,h=0;const d=p=>{if(p!==f){if(h=o.cumulativeChromPositions.get(p),h===void 0)return;f=p}return h};this.handle=p=>{const b=i(p),v=d(b);if(v===void 0)throw new Error(`Unknown chromosome/contig "${b}" in datum: ${JSON.stringify(p)}`);u(p,v,s),this._propagate(p)}}}const vb={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 MB extends bt{get behavior(){return kr}constructor(e){super(e),this.params=e;const n=Uh(vb),r=Xe(e.field),o=e.as,i=e.fontSize;this.handle=s=>{const a=r(s);a!==void 0?s[o]=n.measureWidth(a,i):s[o]=0,this._propagate(s)}}}const PB=65536;class LB extends bt{get behavior(){return kr}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,n=e.as||"lane",r=Ut(e.spacing)?e.spacing:1,o=Xe(e.start),i=Xe(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const s=new Float64Array(PB),a=Xe(e.preference),c=e.preferredOrder;let l=1/0;this.handle=u=>{const f=o(u);f<l&&s.fill(-1/0),l=f;const h=c.indexOf(a(u));let d=-1;if(h>=0&&s[h]<f)d=h;else{const p=o(u);for(d=0;d<s.length&&!(s[d]<p);d++);if(d>=s.length)throw new Error("Out of lanes!")}s[d]=i(u)+r,u[n]=d,this._propagate(u)}}else{const s=new Rl,a=new Rl;let c=-1/0,l=0;this.handle=u=>{const f=o(u);for(;s.length&&(s.peekValue()<=f||f<c);){const d=s.pop();a.push(d,d)}c=f;let h=a.pop();h===void 0&&(h=l++),u[n]=h,this._propagate(u),s.push(h,i(u)+r)}}}}class OB extends bt{get behavior(){return Un}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 n=e.fields.map(o=>Xe(o)),r=e.as?e.as:n.map(Hi);this.handle=o=>{const i={};for(let s=0;s<n.length;s++)i[r[s]]=n[s](o);this._propagate(i)}}}class NB extends bt{get behavior(){return kr}constructor(e){super(e),this.params=e;const n=new RegExp(e.regex),r=typeof e.as=="string"?[e.as]:e.as,o=Xe(e.field);this.handle=i=>{const s=o(i);if(rt(s)){const a=s.match(n);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++)i[r[c]]=a[c+1]}else if(e.skipInvalidInput)for(let c=0;c<r.length;c++)i[r[c]]=void 0;else throw new Error(`"${s}" does not match the given regex: ${n.toString()}`)}else if(!e.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof s}, field content: "${s}".`);this._propagate(i)}}}class zB extends bt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=Wt(e.columnRegex).map(h=>new RegExp(h));for(const h of n)if(RegExp("|"+h.source).exec("").length-1!=1)throw new Error(`Regex ${h.toString()} must have exactly one capturing group!`);const r=Wt(e.asValue);if(n.length!=r.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const o=e.skipRegex?new RegExp(e.skipRegex):void 0,i=e.asKey||"sample";let s,a,c;const l=h=>{var v;const d=Object.keys(h);for(const y of n)if(!d.some(A=>y.test(A)))throw new Error(`No columns matching the regex ${y.toString()} found in the data!`);const p=new Map;for(const[y,A]of n.entries())for(const S of d){const E=(v=A.exec(S))==null?void 0:v[1];if(E!==void 0){let I=p.get(E);I||(I=[],p.set(E,I)),I[y]=S}}s=[...p.entries()],a=d.filter(y=>!n.some(A=>A.test(y))&&!(o&&o.test(y)));const b=[...a.map(y=>JSON.stringify(y)+": datum["+JSON.stringify(y)+"]"),JSON.stringify(i)+": sampleId",...r.map((y,A)=>JSON.stringify(y)+`: datum[attrs[${A}]]`)];c=new Function("datum","sampleId","attrs",`return {
|
|
541
|
-
`+
|
|
538
|
+
chrM 16299`};function XD(t){if(!(t in ey))throw new Error(`Unknown assembly: ${t}`);return ey[t].split(`
|
|
539
|
+
`).map(e=>{const n=e.split(" ");return{name:n[0],size:parseInt(n[1])}})}const KD=/^([A-Za-z]+:)?\/\//;function Ei(t,e){if(e&&KD.test(e))return e;const n=typeof t=="function"?t():t;if(!n)return e;if(!e)return n;if(/[#?]/.test(n))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${n}`);return ty(n)+e}function ty(t){const e=t.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?t+"/":e}class JD{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(!jh(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,ry(this.config))this.setChromSizes(this.config.contigs);else if(!Wh(this.config)){const n=XD(this.config.name);if(n)this.setChromSizes(n);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(Wh(this.config))try{const n=Ei(e,this.config.url),r=await fetch(n);if(!r.ok)throw new Error(`${r.status} ${r.statusText}`);this.setChromSizes($D(await r.text()))}catch(n){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${n.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){let n=0;this.startByIndex=[0];for(let r=0;r<e.length;r++){this.startByIndex.push(n);const o=e[r].size,i={...e[r],continuousStart:n,continuousEnd:n+o,continuousInterval:[n,n+o],index:r,number:r+1,odd:!(r&1)};this.chromosomes.push(i);const s=i.name.replace(/^chr/i,"");for(const a of["chr"+s,"CHR"+s,"Chr"+s,i.number,""+i.number,s,i.name])this.cumulativeChromPositions.set(a,n),this.chromosomesByName.set(a,i);n+=i.size}this.totalSize=n}getExtent(){return[0,this.totalSize]}toContinuous(e,n){let r=this.cumulativeChromPositions.get(e);if(r===void 0)throw new Error("Unknown chromosome/contig: "+e);return r+ +n}toChromosome(e){if(e>this.totalSize)return;e=Math.floor(e);const n=gr(this.startByIndex,e)-1;if(n>0&&n<=this.chromosomes.length)return this.chromosomes[n-1]}toChromosomal(e){const n=this.toChromosome(e);if(n)return{chrom:n.name,pos:Math.floor(e)-n.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return ZD(...this.toChromosomalInterval(e))}toChromosomalInterval(e){const n=this.toChromosomal(e[0]+.5),r=this.toChromosomal(e[1]-.5);return r.pos+=1,[n,r]}toContinuousInterval(e){var o;let[n,r]=e;return r||(r=n),[this.toContinuous(n.chrom,n.pos??0),this.toContinuous(r.chrom,r.pos??((o=this.chromosomesByName.get(r.chrom))==null?void 0:o.size))]}toDiscreteChromosomeIntervals(e){const n=e[0],r=e[1],o=[];if(n.chrom===r.chrom)o.push({chrom:n.chrom,startPos:n.pos,endPos:r.pos});else{const i=this.chromosomes.findIndex(a=>a.name===n.chrom),s=this.chromosomes.findIndex(a=>a.name===r.chrom);o.push({chrom:n.chrom,startPos:n.pos,endPos:this.chromosomes[i].size});for(let a=i+1;a<s;a++)o.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});o.push({chrom:r.chrom,startPos:0,endPos:r.pos})}return o}continuousToDiscreteChromosomeIntervals(e){return this.toDiscreteChromosomeIntervals([this.toChromosomal(e[0]),this.toChromosomal(e[1])])}parseInterval(e){const n=e.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(n){const r=n[1];if(n.slice(2).every(a=>a===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const o=n[3]||r,i=parseInt(n[2].replace(/,/g,"")),s=n[4]!==void 0?parseInt(n[4].replace(/,/g,"")):i;return[this.toContinuous(r,i-1),this.toContinuous(o,s)]}}}function $D(t){return RA(t).map(([e,n])=>({name:e,size:parseInt(n)}))}function ny(t){return Rt(t)&&"chrom"in t}function eB(t){return t.every(ny)}function jh(t){return Rt(t)&&("name"in t||Wh(t)||ry(t))}function Wh(t){return jh(t)&&"url"in t}function ry(t){return jh(t)&&"contigs"in t}class wa extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof wa&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const n of e)this.extend(n);return this}extendAllWithAccessor(e,n){for(const r of e)this.extend(n(r));return this}}class Yh extends wa{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 iy extends wa{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 oy extends iy{constructor(){super(),this.type="nominal"}}class tB extends wa{constructor(e){super();let n=0;for(let r=1;r<e.length;r++)n+=Math.sign(e[r]-e[r-1]);if(Math.abs(n)!=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 sy={quantitative:Yh,index:Yh,locus:Yh,nominal:oy,ordinal:iy};function ay(t,e){if(t=="quantitative"&&nB(e)){const n=new tB(e);return n.type=t,n}else if(sy[t]){const n=new sy[t];return n.type=t,e&&n.extendAll(e),n}throw new Error("Unknown type: "+t)}function nB(t){return t&&t.length>0&&t.length!=2&&t.every(e=>typeof e=="number")}function rB(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function iB(t,e,n){return t*Math.pow(e/t,n)}Qe("index",Vh,["continuous"]),Qe("locus",CD,["continuous"]),Qe("null",Mh,[]);const cy="quantitative",ly="ordinal",uy="nominal",fy="locus",oB="index";class sB{constructor(e){ge(this,Pe);ge(this,Yo,{domain:new Set,range:new Set});ge(this,Jt);ge(this,Pi);ge(this,Ga,new Set);this.channel=e,this.members=[],this.type=null,this.name=void 0}get zoomExtent(){return(W(this,Jt)&&Et(W(this,Jt).type)&&de(this,Pe,Tv).call(this))??[-1/0,1/0]}addEventListener(e,n){W(this,Yo)[e].add(n)}removeEventListener(e,n){W(this,Yo)[e].delete(n)}addMember(e){var a;const{channel:n,channelDef:r}=e,o=r.type==null&&this.type;if(n!="sample"&&!r.type&&!Rh(n)&&!o)throw new Error(`The "type" property must be defined in channel definition: "${n}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const i=n=="sample"?"nominal":r.type,s=(a=r==null?void 0:r.scale)==null?void 0:a.name;if(s){if(this.name!==void 0&&s!=this.name)throw new Error(`Shared scales have conflicting names: "${s}" vs. "${this.name}"!`);this.name=s}if(!o){if(!this.type)this.type=i;else if(i!==this.type&&!Rh(n))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${i}. Use "resolve: independent" for channel ${this.channel}`)}this.members.push(e)}getDataDomain(){return this.members.map(e=>{var n;return(n=e.dataDomainSource)==null?void 0:n.call(e,e.channel,this.type)}).filter(e=>!!e).reduce((e,n)=>e.extendAll(n))}reconfigure(){const e=W(this,Jt);if(!e||e.type=="null")return;const n=de(this,Pe,Cv).call(this),r=e.domain(),o=de(this,Pe,D0).call(this,!0);if(Xb({...o,range:void 0},e),e.props=o,de(this,Pe,B0).call(this),!W(this,Pi)&&Et(e.type)){const s=e.domain();fs(s)>0&&Ie(this,Pi,s)}if(!n){Ie(this,Pi,e.domain()),de(this,Pe,hr).call(this,"domain");return}const i=e.domain();kc(i,r)||(this.isZoomable()?e.domain(r):de(this,Pe,Gi).call(this)?(e.domain(r),this.zoomTo(i,500)):de(this,Pe,hr).call(this,"domain"))}get scale(){if(W(this,Jt))return W(this,Jt);const e=de(this,Pe,D0).call(this),n=zD({...e,range:void 0});n.props=e,"unknown"in n&&n.unknown(null),Ie(this,Jt,n),de(this,Pe,B0).call(this),ID(n)&&n.genome(this.getGenome());const r=n.range;if(r){const o=()=>de(this,Pe,hr).call(this,"range");n.range=function(i){if(arguments.length)r(i),o();else return r()},o()}return n}getDomain(){return this.scale.domain()}getComplexDomain(){var e;return((e=this.getGenome())==null?void 0:e.toChromosomalInterval(this.getDomain()))??this.getDomain()}isZoomed(){return de(this,Pe,Gi).call(this)&&kc(de(this,Pe,bu).call(this),this.getDomain())}isZoomable(){return de(this,Pe,Gi).call(this)&&!!this.scale.props.zoom}zoom(e,n,r){if(!de(this,Pe,Gi).call(this))return!1;const o=this.scale,i=o.domain();let s=[...i],a=o.invert(n);switch(o.props.reverse&&(r=-r),"align"in o&&(a+=o.align()),o.type){case"linear":case"index":case"locus":s=jv(s,r||0),s=q0(s,a,e);break;case"log":s=Wv(s,r||0),s=j0(s,a,e);break;case"pow":case"sqrt":{const l=o;s=Yv(s,r||0,l.exponent()),s=Au(s,a,e,l.exponent());break}default:throw new Error("Zooming is not implemented for: "+o.type)}const c=this.zoomExtent;return s=Zv(s,c[0],c[1]),[0,1].some(l=>s[l]!=i[l])?(o.domain(s),de(this,Pe,hr).call(this,"domain"),!0):!1}async zoomTo(e,n=!1){if(us(n)&&(n=n?700:0),!de(this,Pe,Gi).call(this))throw new Error("Not a zoomable scale!");const r=this.fromComplexInterval(e),o=W(this,Pe,I0).animator,i=this.scale,s=i.domain();if(n>0&&s.length==2){const a=s[1]-s[0],c=r[1]-r[0],l=s[0]+a/2,u=r[0]+c/2,f=s[0]==r[0],h=s[1]==r[1];await o.transition({duration:n,easingFunction:rB,onUpdate:d=>{const p=iB(a,c,d),y=a==c?d:(a-p)/(a-c),v=y*u+(1-y)*l,b=[f?s[0]:v-p/2,h?s[1]:v+p/2];i.domain(b),de(this,Pe,hr).call(this,"domain")}}),i.domain(r),de(this,Pe,hr).call(this,"domain")}else i.domain(r),o==null||o.requestRender(),de(this,Pe,hr).call(this,"domain")}resetZoom(){if(!de(this,Pe,Gi).call(this))throw new Error("Not a zoomable scale!");const e=this.getDomain(),n=de(this,Pe,bu).call(this);return[0,1].some(r=>n[r]!=e[r])?(W(this,Jt).domain(n),de(this,Pe,hr).call(this,"domain"),!0):!1}getZoomLevel(){return this.isZoomable()?fs(this.zoomExtent)/fs(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(n=>{var r;return(r=n.view.coords)==null?void 0:r[this.channel==="x"?"width":"height"]}).filter(n=>n>0);return e.length?e.reduce((n,r)=>Math.min(n,r),1e4):0}getGenome(){var n;if(this.type!=="locus")return;const e=(n=W(this,Pe,I0).genomeStore)==null?void 0:n.getGenome();if(!e)throw new Error("No genome has been defined!");return e}invertToComplex(e){const n=this.scale;if("invert"in n){const r=n.invert(e);return this.toComplex(r)}else throw new Error("The scale does not support inverting!")}toComplex(e){const n=this.getGenome();return n?n.toChromosomal(e):e}fromComplex(e){return ny(e)?this.getGenome().toContinuous(e.chrom,e.pos):e}fromComplexInterval(e){return this.type==="locus"&&eB(e)?this.getGenome().toContinuousInterval(e):e}}Yo=new WeakMap,Jt=new WeakMap,Pi=new WeakMap,Ga=new WeakMap,Pe=new WeakSet,C0=function(){return this.members[0].view},I0=function(){return W(this,Pe,C0).context},hr=function(e){for(const n of W(this,Yo)[e].values())n({type:e,scaleResolution:this})},T0=function(){return!!de(this,Pe,k0).call(this)},Cv=function(){const e=W(this,Jt);if(!e)return!1;const n=e.domain();return Et(e.type)?n.length>2||n.length==2&&(n[0]!==0||n[1]!==0):n.length>0},Iv=function(){const e=this.members.map(n=>n.channelDef.scale).filter(n=>n!==void 0);return _l(e,"scale",["domain"])},D0=function(e=!1){const n=de(this,Pe,Iv).call(this);if(n===null||n.type=="null")return{type:"null"};const r={...de(this,Pe,Dv).call(this,this.type),...n};r.type||(r.type=aB(this.channel,this.type));const o=de(this,Pe,bu).call(this,e);return o&&o.length>0?r.domain=o:Br(r.type)&&(r.domain=new oy),!r.domain&&r.domainMid!==void 0&&(r.domain=[r.domainMin??0,r.domainMax??1]),this.channel=="y"&&Br(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),cB(r,this.channel),r},B0=function(){const e=W(this,Jt).props,n=e.range;if(W(this,Ga).forEach(o=>o.invalidate()),!n||!_t(n))return;const r=(o,i)=>i?o.slice().reverse():o;if(n.some(Ot)){let o;const i=()=>{W(this,Jt).range(r(o.map(s=>s()),e.reverse))};o=n.map(s=>{if(Ot(s)){const a=W(this,Pe,C0).paramMediator.createExpression(s.expr);return a.addListener(i),W(this,Ga).add(a),()=>a(null)}else return()=>s}),i()}else W(this,Jt).range(r(n,e.reverse))},bu=function(e=!1){return de(this,Pe,k0).call(this)??(this.type==fy?this.getGenome().getExtent():e?this.getDataDomain():[])},k0=function(){const e=this.members.map(n=>n.channelDef).filter(n=>{var r;return(r=n.scale)==null?void 0:r.domain}).map(n=>ay(n.type,this.fromComplexInterval(n.scale.domain)));if(e.length>0)return e.reduce((n,r)=>n.extendAll(r))},Gi=function(){const e=this.scale.type;return Et(e)},Tv=function(){const e=this.scale.props,n=e.zoom;return lB(n)&&_t(n.extent)?this.fromComplexInterval(n.extent):n&&e.type=="locus"?this.getGenome().getExtent():W(this,Pi)},Dv=function(e){const n=this.channel,r={};return de(this,Pe,T0).call(this)&&(r.zero=!1),fa(n)?r.nice=!de(this,Pe,T0).call(this):Fr(n)?r.scheme=e==uy?"tableau10":e==ly?"blues":"viridis":Sl(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 aB(t,e){if(e==oB||e==fy){if(_h(t))return e;throw new Error(`${t} does not support ${e} data type. Only positional channels do.`)}const n={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]},o=["sample"].includes(t)?"null":n[t]?n[t][[uy,ly,cy].indexOf(e)]:e==cy?"linear":"ordinal";if(o===void 0)throw new Error(`Channel "${t}" is not compatible with "${e}" data type. Use of a proper scale may be needed.`);return o}function cB(t,e){fa(e)&&t.type!=="ordinal"&&(t.range=[0,1]),e=="opacity"&&Et(t.type)&&(t.clamp=!0)}function lB(t){return Rt(t)}function Qh(t){const e=new Set;function n(r){for(const o of Object.values(r.resolutions.scale))e.add(o)}for(const r of Ft(t)){r.visit(n);for(const o of r.getDataAncestors()){if(!o.options.contributesToScaleDomain)break;n(o)}}e.forEach(r=>r.reconfigure())}function Zh(...t){for(const e of t)if(e!==void 0)return e}class uB{constructor(e){this.channel=e,this.members=[]}get scaleResolution(){var e;return(e=Os(this.members))==null?void 0:e.view.getScaleResolution(this.channel)}addMember(e){const{view:n}=e,r=n.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(o=>o.view.getPathString()).join(", ")}], new view: ${n.getPathString()}.`);this.members.push(e)}getAxisProps(){return Dl(this,"axisProps",()=>{const e=this.members.map(n=>{const r=n.view.mark.encoding[n.channel];return"axis"in r&&r.axis});return e.length>0&&e.some(n=>n===null)?null:_l(e.filter(n=>n!==void 0),"axis",["title"])})}getTitle(){const e=i=>{var a;const s=cT(i.view,i.channel);if(!ln(s))return{member:i,explicitTitle:Zh("axis"in s?(a=s.axis)==null?void 0:a.title:void 0,s.title),implicitTitle:Zh(Rr(s)?s.field:void 0,ua(s)?s.expr:void 0)}},n=this.members.map(e),r=n.filter(i=>{var s;if(Rh(i.member.channel)&&!i.explicitTitle){const a=vi(i.member.channel);return((s=n.find(c=>c.member.view==i.member.view&&c.member.channel==a))==null?void 0:s.explicitTitle)===void 0}return!0}),o=new Set(r.map(i=>Zh(i.explicitTitle,i.implicitTitle)).filter(rt));return o.size?[...o].join(", "):null}}function hy(t,e,{spacing:n,devicePixelRatio:r,offset:o,reverse:i}={}){n=n||0,o=o||0;let s=0,a=0;for(const p of t)s+=Rl(p.px)+(Xh(p)?0:n),a+=Rl(p.grow);s-=n;const c=Math.max(0,e-s),l=r!==void 0?p=>Math.round(p*r)/r:p=>p,u=[],f=[],h=p=>{const y=u.length;if(!y)return;const v=(p?n:0)*(i?-1:1);d-=v;for(let b=0;b<y;b++)f.push({location:d+(b+1)/(y+1)*v,size:0});d+=v,u.length=0};let d=i?Math.max(e,s):0+o;if(t.length==1&&Xh(t[0]))return[{location:d,size:0}];for(let p=0;p<t.length;p++){const y=t[p];if(Xh(y))u.push(y);else{h(f.length>0);const v=Rl(y.px)+(a?Rl(y.grow)/a*c:0);i&&(d-=v),f.push({location:l(d),size:l(v)}),i?d-=n:d+=v+n}}return d+=i?n:-n,h(!1),f}function fB(t){let e=0,n=0;for(const r of t)e=Math.max(e,r.px??0),n=Math.max(n,r.grow??0);return{px:e,grow:n}}const w0=class w0{constructor(e,n){ge(this,Ha);this.width=e,this.height=n}addPadding(e){return de(this,Ha,_0).call(this,e.width,e.height)}subtractPadding(e){return de(this,Ha,_0).call(this,-e.width,-e.height)}isGrowing(){return!!(this.width.grow||this.height.grow)}};Ha=new WeakSet,_0=function(e,n){return new w0({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+n,grow:this.height.grow})};let Pr=w0;const xa=Object.freeze({px:0,grow:0}),dy=new Pr(xa,xa);function Xh(t){return!t.px&&!t.grow}function Rl(t){return t||0}function hB(t){return t&&(Ht(t.px)||Ht(t.grow))}function py(t){if(by(t))throw new Error("parseSizeDef does not accept step-based sizes.");if(hB(t))return t;if(Ht(t))return{px:t,grow:0};if(t==="container")return{px:0,grow:1};if(!t)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${t}`)}class Nt{constructor(e,n,r,o){this.top=e||0,this.right=n||0,this.bottom=r||0,this.left=o||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new Nt(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new Nt(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new Nt(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new Nt(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 Nt(0,this.right,0,this.left)}getVertical(){return new Nt(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):Kh}static createFromRecord(e){return new Nt(e.top,e.right,e.bottom,e.left)}static zero(){return Kh}static createUniformPadding(e){return new Nt(e,e,e,e)}}const Kh=Nt.createUniformPadding(0);Object.freeze(Kh);function va(t,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(t)||t.startsWith("/")?t:(e.endsWith("/")||(e+="/"),e+t)}function dB(t){if(!t)return t;if(/[?#]/.test(t))throw new Error(`Invalid base URL: ${t} - cannot contain query or hash.`);return t.endsWith("/")?t:t+"/"}const pB="VISIT_SKIP",Aa="VISIT_STOP",gy=t=>t;class my{constructor(e,n,r,o,i,s={}){ge(this,qn);ge(this,Qo,{});ge(this,Zo,{});ge(this,Xo,{});ge(this,Va);ge(this,qa);Gt(this,"opacityFunction",gy);Gt(this,"facetCoords",new Wn([],JSON.stringify));var a;if(!e)throw new Error("View spec must be defined!");if(this.context=n,this.layoutParent=r,this.dataParent=o,this.name=e.name||i,this.spec=e,this.resolutions={scale:{},axis:{}},Nb(this),this.options={blockEncodingInheritance:!1,contributesToScaleDomain:!0,...s},this.needsAxes={x:!1,y:!1},this.paramMediator=new $I(()=>{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=l=>this.paramMediator.findMediatorForParam(l)?void 0:this.paramMediator.allocateSetter(l,0);Ie(this,qa,c("height")),Ie(this,Va,c("width"))}}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>Nt.createFromConfig(this.spec.padding))}getOverhang(){return Nt.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Pr(de(this,qn,ic).call(this,"width"),de(this,qn,ic).call(this,"height")):dy)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return dy;const e=this.getSize();return new Pr(de(this,qn,ic).call(this,"viewportWidth")??e.width,de(this,qn,ic).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 de(this,qn,R0).call(this,"layoutParent")}getDataAncestors(){return de(this,qn,R0).call(this,"dataParent")}handleBroadcast(e){for(const n of W(this,Qo)[e.type]||[])n(e)}_addBroadcastHandler(e,n){let r=W(this,Qo)[e];r||(r=[],W(this,Qo)[e]=r),r.push(n)}handleInteractionEvent(e,n,r){const o=r?W(this,Zo):W(this,Xo);for(const i of o[n.type]||[])i(e,n)}addInteractionEventListener(e,n,r){const o=r?W(this,Zo):W(this,Xo);let i=o[e];i||(i=[],o[e]=i),i.push(n)}removeInteractionEventListener(e,n,r){const o=r?W(this,Zo):W(this,Xo);let i=o==null?void 0:o[e];if(i){const s=i.indexOf(n);s>=0&&i.splice(s,1)}}visit(e){try{const n=e(this);if(e.postOrder&&e.postOrder(this),n!==Aa)return n}catch(n){throw n.view=this,n}}getDescendants(){const e=[];return this.visit(n=>{e.push(n)}),e}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===gy)&&(this.opacityFunction=mB(this))}onBeforeRender(){}render(e,n,r={}){var o,i;r.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(r.facetId,r.clipRect?n.intersect(r.clipRect):n),(o=W(this,Va))==null||o.call(this,n.width),(i=W(this,qa))==null||i.call(this,n.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},n=this.spec.encoding||{},r={...e,...n};for(const[o,i]of Object.entries(r))i===null&&delete r[o];return r}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){var r;const n=this.getEncoding().sample;return Rr(n)?[n.field]:(r=this.layoutParent)==null?void 0:r.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const n=vi(e);return this.getDataAncestors().map(r=>r.resolutions.scale[n]).find(r=>r)}getAxisResolution(e){const n=vi(e);return this.getDataAncestors().map(r=>r.resolutions.axis[n]).find(r=>r)}getConfiguredResolution(e,n){var r,o;return(o=(r=this.spec.resolve)==null?void 0:r[n])==null?void 0:o[e]}getConfiguredOrDefaultResolution(e,n){return this.getConfiguredResolution(e,n)??this.getConfiguredResolution("default",n)??this.getDefaultResolution(e,n)}getDefaultResolution(e,n){return"independent"}getBaseUrl(){return Ei(()=>{var e;return(e=this.dataParent)==null?void 0:e.getBaseUrl()},dB(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return rt(e)?e:Ot(e.text)?this.paramMediator.evaluateAndGet(e.text.expr):e.text}_cache(e,n){return Dl(this,e,n)}_invalidateCacheByPrefix(e,n="self"){switch(n){case"self":Bl(this,e);break;case"ancestors":for(const r of this.getLayoutAncestors())Bl(r,e);break;case"progeny":this.visit(r=>Bl(r,e));break}}invalidateSizeCache(){this._invalidateCacheByPrefix("size/","ancestors")}propagateInteractionEvent(e){}}Qo=new WeakMap,Zo=new WeakMap,Xo=new WeakMap,Va=new WeakMap,qa=new WeakMap,qn=new WeakSet,ic=function(e){var o;let n=this.spec[e];const r=e=="viewportWidth"||e=="viewportHeight";if(by(n)){if(r)throw new Mr(`Cannot use step-based size with "${e}"!`,this);const i=n.step,s=(o=this.getScaleResolution(e=="width"?"x":"y"))==null?void 0:o.scale;if(s){let a=0;if(Br(s.type))a=s.domain().length;else if(["locus","index"].includes(s.type)){const l=s.domain();a=Os(l)-l[0]}else throw new Mr(`Cannot use step-based size with "${s.type}" scale!`,this);const c=s;return a=uh(a,c.paddingInner(),c.paddingOuter()),{px:a*i,grow:0}}else throw new Mr("Cannot use 'step' size with missing scale!",this)}else return(n&&py(n))??(r?void 0:{px:0,grow:1})},R0=function(e){const n=[];let r=this;do n.push(r),r=r[e];while(r);return n};function gB(t){return"unitsPerPixel"in t}function mB(t){const e="opacity"in t.spec?t.spec.opacity:void 0;if(e!==void 0){if(Ht(e))return n=>n*e;if(gB(e)){const n=i=>{var a;const s=(a=t.getScaleResolution(i))==null?void 0:a.scale;if(["linear","index","locus"].includes(s==null?void 0:s.type))return s},r=e.channel?n(e.channel):n("x")??n("y");if(!r)throw new Mr("Cannot find a resolved quantitative scale for dynamic opacity!",t);const o=th().domain(e.unitsPerPixel).range(e.values).clamp(!0);return i=>{const a=fs(r.domain())/1e3;return o(a)*i}}else if(Ot(e)){const n=t.paramMediator.createExpression(e.expr);return n.addListener(()=>t.context.animator.requestRender()),r=>n(null)*r}}return n=>n}const by=t=>!!(t!=null&&t.step),bB={point:aD,rect:tD,rule:fD,link:yD,text:SD};class en extends my{constructor(n,r,o,i,s,a){super(n,r,o,i,s,a);ge(this,du);ge(this,ja);this.spec=n;const c=bB[this.getMarkType()];if(c)this.mark=new c(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),Ie(this,ja,this.paramMediator.allocateSetter("zoomLevel",1)),["x","y"].forEach(l=>{var u;return(u=this.getScaleResolution(l))==null?void 0:u.addEventListener("domain",()=>W(this,ja).call(this,Math.sqrt(this.getZoomLevel())))}),this.needsAxes={x:!0,y:!0},de(this,du,Bv).call(this)}render(n,r,o={}){super.render(n,r,o),this.isConfiguredVisible()&&(n.pushView(this,r),n.renderMark(this.mark,o),n.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const n=super.getEncoding(),r=this.mark.getSupportedChannels();for(const o of Object.keys(n))r.includes(o)||delete n[o];return n}resolve(n){if(!n){this.resolve("scale"),this.resolve("axis");return}const r=this.mark.encoding;for(const[o,i]of Object.entries(r)){if(!i)continue;let s;if(Xt(i))s=i;else if(kh(i)){const l=i.condition;if(!Array.isArray(l)&&Xt(l))s=l;else continue}else continue;const a=vi(s.resolutionChannel??o);if(!Cl(a)||n=="axis"&&!fa(a))continue;let c=this;for(;(c.getConfiguredOrDefaultResolution(a,n)=="forced"||c.dataParent&&["shared","excluded","forced"].includes(c.dataParent.getConfiguredOrDefaultResolution(a,n)))&&c.getConfiguredOrDefaultResolution(a,n)!="excluded";)c=c.dataParent;if(n=="axis"&&fa(o)&&_h(a))c.resolutions[n][a]||(c.resolutions[n][a]=new uB(a)),c.resolutions[n][a].addMember({view:this,channel:o,channelDef:s});else if(n=="scale"&&Cl(o)){if(!c.resolutions[n][a]){const u=new sB(a);c.resolutions[n][a]=u,u.addEventListener("range",f=>{var h;(h=this.context.glHelper)==null||h.createRangeTexture(f.scaleResolution,!0)})}const l=this.getLayoutAncestors().some(u=>!u.options.contributesToScaleDomain)||Xt(s)&&s.contributesToScaleDomain===!1?void 0:this.extractDataDomain.bind(this);c.resolutions[n][a].addMember({view:this,channel:o,channelDef:s,dataDomainSource:l})}}}getDataAccessor(n){var r;return(r=this.mark.encoders[n])==null?void 0:r.dataAccessor}getFacetAccessor(n){const r=this.getDataAccessor("sample");return r||super.getFacetAccessor(this)}getCollector(){return this.context.dataFlow.findCollectorByKey(this)}extractDataDomain(n,r){var i;let o=ay(r);return(((i=this.mark.encoders[n])==null?void 0:i.accessors)??[]).filter(s=>s.scaleChannel).forEach(s=>{if(s.constant)o.extend(s({}));else{const a=this.getCollector();a!=null&&a.completed&&a.visitData(c=>o.extend(s(c)))}}),o}getZoomLevel(){const n=r=>{var o;return((o=this.getScaleResolution(r))==null?void 0:o.getZoomLevel())??1};return xi.map(n).reduce((r,o)=>r*o,1)}propagateInteractionEvent(n){this.handleInteractionEvent(void 0,n,!0),n.target=this,!n.stopped&&this.handleInteractionEvent(void 0,n,!1)}getDefaultResolution(n,r){return n=="x"?"shared":"independent"}}ja=new WeakMap,du=new WeakSet,Bv=function(){for(const[n,r]of this.paramMediator.paramConfigs){if(!("select"in r))continue;const o=El(r.select);if(Bh(o)){let s=0;const a=this.paramMediator.getSetter(n),c=()=>{var f;const u=this.context.getCurrentHover();return((f=u==null?void 0:u.mark)==null?void 0:f.unitView)===this?u.datum:null},l=(u,f)=>{const h=c(),d=h?h[an]:0;let p;if(o.toggle)if(f.mouseEvent.shiftKey){if(h){const v=this.paramMediator.getValue(n);p=tT(v,{toggle:[h]})}}else p=fb(h?[h]:null);else d!=s&&(s=d,p=ub(h));p!==void 0&&a(p)};this.addInteractionEventListener(["mouseover","pointerover"].includes(o.on)?"mousemove":"click",l)}}};function*Jh(t,e=[]){for(const[n,r]of t.entries())if(r instanceof Map)for(const o of Jh(r,[...e,n]))yield o;else yield[[...e,n],r]}const yy=2147483647,yB=wy([yy]);function wy(t){let e=0;for(let n=0,r=t.length;n<r;n++)e=Math.max(e,t[n]);return Math.floor(Math.log2(e)/4)+1}function wB(t){const e=wy(t);let n=Array.from({length:t.length},(i,s)=>s),r=new Array(t.length);const o=new Array(16);for(let i=0;i<e;i++){o.fill(0);const s=i*4,a=Math.pow(16,i),c=l=>{const u=t[n[l]];return i>=yB?u>yy?Math.floor(u/a)%16:0:u>>s&15};for(let l=0;l<t.length;l++)o[c(l)]++;for(let l=1;l<16;l++)o[l]+=o[l-1];for(let l=t.length-1;l>=0;l--)r[--o[c(l)]]=n[l];[n,r]=[r,n]}return n}class xy extends yh{constructor(n){var r;super();ge(this,tn);ge(this,sr,[]);ge(this,Wa,Ze(an));ge(this,Hr,[]);ge(this,Li);ge(this,Ko);this.params=n??{type:"collect"},this.observers=[],this.facetBatches=new Wn([],JSON.stringify),Ie(this,Ko,vB((r=this.params)==null?void 0:r.sort)),de(this,tn,F0).call(this)}get behavior(){return bh}get label(){return"collect"}reset(){super.reset(),de(this,tn,F0).call(this)}handle(n){W(this,sr).push(n)}beginBatch(n){k5(n)&&(Ie(this,sr,[]),this.facetBatches.set(Ft(n.facetId),W(this,sr)))}complete(){var n;if(Ie(this,sr,[]),(n=this.params.groupby)!=null&&n.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const r=this.facetBatches.get(void 0),o=this.params.groupby.map(s=>Ze(s)),i=o.length>1?gc(r,...o):xB(r,o[0]);this.facetBatches.clear();for(const[s,a]of Jh(i))this.facetBatches.set(s,a)}if(W(this,Ko))for(const r of this.facetBatches.values())r.sort(W(this,Ko));de(this,tn,kv).call(this),de(this,tn,M0).call(this),super.complete();for(const r of this.observers)r(this)}repropagate(){for(const n of this.children)n.reset();de(this,tn,M0).call(this);for(const n of this.children)n.complete()}getData(){switch(de(this,tn,P0).call(this),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const n=this.facetBatches;return{[Symbol.iterator]:function*(){for(const o of n.values())yield*o}}}}}visitData(n){de(this,tn,P0).call(this);for(const r of this.facetBatches.values())for(let o=0;o<r.length;o++)n(r[o])}getItemCount(){let n=0;for(const r of this.facetBatches.values())n+=r.length;return n}findDatumByUniqueId(n){if(!W(this,Hr).length)return;const r=ti(c=>c.start).right,o=W(this,Wa),i=ti(c=>o(s(c))).left,s=c=>{const l=r(W(this,Li),c),u=W(this,Li)[l-1];return!u||c>=u.stop?void 0:this.facetBatches.get(u.facetId)[c-u.start]},a=i(W(this,Hr),n);if(a>=0){const c=s(W(this,Hr)[a]);if(c&&o(c)===n)return c}}}sr=new WeakMap,Wa=new WeakMap,Hr=new WeakMap,Li=new WeakMap,Ko=new WeakMap,tn=new WeakSet,F0=function(){Ie(this,sr,[]),Ie(this,Hr,[]),this.facetBatches.clear(),this.facetBatches.set(void 0,W(this,sr))},M0=function(){if(this.children.length)for(const[n,r]of this.facetBatches.entries()){if(n){const o={type:"facet",facetId:n};for(const i of this.children)i.beginBatch(o)}for(let o=0,i=r.length;o<i;o++)this._propagate(r[o])}},P0=function(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")},kv=function(){var s;Ie(this,Li,[]);const n=(s=this.facetBatches.values().next().value)==null?void 0:s[0];if(n==null||!(an in n))return;let r=0;const o=[],i=W(this,Wa);for(const[a,c]of this.facetBatches){W(this,Li).push({start:r,stop:r+c.length,facetId:a}),r+=c.length;for(let l=0,u=c.length;l<u;l++)o.push(i(c[l]))}Ie(this,Hr,wB(o))};function xB(t,e){const n=new Map;for(let r=0,o=t.length;r<o;r++){const i=t[r],s=e(i);let a=n.get(s);a||(a=[],n.set(s,a)),a.push(i)}return n}function vB(t){if(t!=null&&t.field){const e=Ft(t.field);if(e.length==1&&!e[0].includes(".")){const n=Ft(t.order)[0]??"ascending",r=JSON.stringify(e[0]);return new Function("a","b",`return a[${r}] ${n==="ascending"?"-":"+"} b[${r}];`)}return Y0(t.field,t.order)}}class Fl{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,n){let r=this.length++;for(;r>0;){const o=r-1>>1,i=this.values[o];if(n>=i)break;this.ids[r]=this.ids[o],this.values[r]=i,r=o}this.ids[r]=e,this.values[r]=n}pop(){if(this.length===0)return;const e=this.ids[0];if(this.length--,this.length>0){const n=this.ids[0]=this.ids[this.length],r=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let s=(i<<1)+1;const a=s+1;let c=this.ids[s],l=this.values[s];const u=this.values[a];if(a<this.length&&u<l&&(s=a,c=this.ids[a],l=u),l>=r)break;this.ids[i]=c,this.values[i]=l,i=s}this.ids[i]=n,this.values[i]=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 AB extends yt{get behavior(){return Un}constructor(e){super(e),this.params=e,this.startAccessor=Ze(e.start),this.endAccessor=Ze(e.end),this.chromAccessor=e.chrom?Ze(e.chrom):n=>{},this.weightAccessor=e.weight?Ze(e.weight):n=>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(([n,r])=>r).map(([n,r])=>`${JSON.stringify(r)}: ${n}`).join(", ")+"};"),this.ends=new Fl}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,n=this.as.end,r=this.as.chrom,o=this.startAccessor,i=this.endAccessor,s=this.chromAccessor,a=this.weightAccessor;let c,l,u,f=0,h=NaN;const d=this.ends;d.clear();const p=b=>{this._propagate(b),c=null},y=(b,A,S)=>{if(b==A)return;let E=!1;c&&(c[e]===S?(c[n]=A,E=!0):c[e]!=0&&p(c)),E||(c=this.createSegment(b,A,S,u))},v=()=>{let b=0;for(;(b=d.peekValue())!==void 0;)y(h,b,f),h=b,f-=d.pop();h=NaN,c&&p(c)};this.handle=b=>{const A=o(b);let S=0;for(;(S=d.peekValue())!==void 0&&S<A;)y(h,S,f),h=S,f-=d.pop();if(r){let I=s(b);I!==l&&(v(),u=I,l=u)}isNaN(h)||y(h,A,f),h=A;const E=a(b);f+=E,d.push(E,i(b))},this.complete=()=>{v(),super.complete()},this.beginBatch=b=>{v(),l=null,super.beginBatch(b)}}}function EB(t,e,n=i=>+i,r=0,o=t.length){const i=new Fl,s=o-r;let a;for(a=0;a<e&&a<s;a++)i.push(a,n(t[r+a]));for(;a<s;a++){const u=n(t[r+a]);u>=i.peekValue()&&(i.push(a,u),i.pop())}const c=[];let l;for(;(l=i.pop())!==void 0;)c.push(t[r+l]);return c.reverse()}class SB{constructor(e,n=-1/0,r=1/0){this.maxSize=e,this.lowerLimit=n,this.upperLimit=r;const o=this.maxSize*2+1;this.lowerLimits=new Float64Array(o),this.upperLimits=new Float64Array(o),this.lowerChildren=new Int32Array(o),this.upperChildren=new Int32Array(o),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,n,r=0){if(e>=this.lowerLimits[r]&&n<=this.upperLimits[r]){const o=this.lowerChildren[r];if(o){const i=this._findSlot(e,n,o);return i>=0?i:this._findSlot(e,n,this.upperChildren[r])}else return r}else return-1}reserve(e,n){if(n-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,n);if(r<0)return!1;const o=this.n++,i=this.n++;return this.lowerLimits[o]=this.lowerLimits[r],this.upperLimits[o]=e,this.lowerLimits[i]=n,this.upperLimits[i]=this.upperLimits[r],this.lowerChildren[r]=o,this.upperChildren[r]=i,!0}}class CB extends yt{get behavior(){return bh}constructor(e,n){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=Ze(this.params.pos),this.endPosAccessor=Ze(this.params.pos2??this.params.pos),this.startPosBisector=ti(this.startPosAccessor),this.endPosBisector=ti(this.endPosAccessor),this.scoreAccessor=Ze(this.params.score),this.widthAccessor=Ze(this.params.width),this.laneAccessor=this.params.lane?Ze(this.params.lane):o=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=n.getScaleResolution(this.channel);const r=()=>this._filterAndPropagate();this.schedule=()=>n.context.animator.requestTransition(r),this.resolution.addEventListener("domain",o=>this.schedule()),n._addBroadcastHandler("layoutComputed",()=>this.schedule())}complete(){const e=this.startPosAccessor;this._data.sort((n,r)=>e(n)-e(r));for(const n of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(n,new SB(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.scale,n=this.resolution.getAxisLength();if(!n)return;for(const s of this.reservationMaps.values())s.reset();const r=e.domain(),i=EB(this._data,70,this.scoreAccessor,this.endPosBisector.left(this._data,r[0]),this.startPosBisector.right(this._data,r[1]));for(const s of i){let a=e(this.startPosAccessor(s))*n,c=e(this.endPosAccessor(s))*n;const l=c-a,u=this.widthAccessor(s)+this.padding*2;let f=(a+c)/2;const h=Math.max(0,(l-u)/2);if(h>0){const d=Math.max(0,u/2-f);f+=Math.min(d,h);const p=Math.max(0,u/2+f-n);f-=Math.min(p,h)}if(this.reservationMaps.get(this.laneAccessor(s)).reserve(f-u/2,f+u/2))if(this.params.asMidpoint){const d=Object.assign({},s);d[this.params.asMidpoint]=e.invert(f/n),this._propagate(d)}else this._propagate(s)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class IB extends yt{constructor(e,n){super(e,n),this.params=e,this.predicate=void 0}initialize(){let e="";if(TB(this.params))e=this.params.expr;else if(DB(this.params)){const n=this.paramMediator.findValue(this.params.param);if(!n)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);e=nT(this.params,n)}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 TB(t){return"expr"in t}function DB(t){return"param"in t}class BB extends yt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=e.index;if(e.fields){const r=Ft(e.fields).map(i=>Ze(i)),o=Ft(e.as||e.fields);if(r.length!==o.length)throw new Error(`Lengths of "fields" (${r.length}), and "as" (${o.length}) do not match!`);this.handle=i=>{const s=r.map((c,l)=>c(i)??[]),a=s[0].length;for(let c=0;c<a;c++){const l=Object.assign({},i);for(let u=0;u<r.length;u++)l[o[u]]=c<s[u].length?s[u][c]:null;n&&(l[n]=c),this._propagate(l)}}}else this.handle=r=>{for(let o=0;o<r.length;o++){const i=Object.assign({},r[o]);n&&(i[n]=o),this._propagate(i)}}}}const kB=48;function*_B(t,e=","){const n=e.charCodeAt(0);let r=0;for(let o=0;o<t.length;o++){const i=t.charCodeAt(o);i==n?(yield r,r=0):r=r*10+i-kB}yield r}class RB extends yt{get behavior(){return Un}constructor(e){super(e);const n=Ze(e.exons??"exons"),r=Ze(e.start??"start"),[o,i]=e.as||["exonStart","exonEnd"];this.handle=s=>{let a=r(s),c=a,l=!0;const u=n(s);for(const f of _B(u)){if(l)c=a+f;else{a=c+f;const h=Object.assign({},s);h[o]=c,h[i]=a,this._propagate(h)}l=!l}}}}class FB extends yt{get behavior(){return Un}constructor(e){super(e);const n=Ft(e.field).map(i=>Ze(i)),r=Ft(e.separator),o=Ft(e.as||e.field);if(n.length!==r.length||n.length!==o.length)throw new Error(`Lengths of "separator" (${r.length}), "fields" (${n.length}), and "as" (${o.length}) do not match!`);this.handle=i=>{if(n.some(c=>!c(i)))return;const s=n.map((c,l)=>c(i).split(r[l]));MB(s,i);const a=s[0].length;for(let c=0;c<a;c++){const l=Object.assign({},i);for(let u=0;u<n.length;u++)l[o[u]]=s[u][c];this._propagate(l)}}}}function MB(t,e){const n=t.map(r=>r.length);if(!n.every(r=>r==n[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class PB extends yt{get behavior(){return kr}constructor(e,n){super(e,n),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 vy extends yt{get behavior(){return kr}constructor(e,n){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 o=n.getScaleResolution(r).getGenome();if(!o)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const i=Ze(e.chrom),s=Ft(e.pos).map(p=>Ze(p)),a=Ft(e.as);if(s.length!=a.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=Ft(e.offset);let l;if(c.length==0)l=new Array(s.length).fill(0);else if(c.length==1)l=new Array(s.length).fill(c[0]);else if(c.length==s.length)l=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const u=new Function("datum","chromOffset","posAccessors",a.map((p,y)=>`datum[${JSON.stringify(p)}] = chromOffset + +posAccessors[${y}](datum) - ${l[y]};`).join(`
|
|
540
|
+
`));let f,h=0;const d=p=>{if(p!==f){if(h=o.cumulativeChromPositions.get(p),h===void 0)return;f=p}return h};this.handle=p=>{const y=i(p),v=d(y);if(v===void 0)throw new Error(`Unknown chromosome/contig "${y}" in datum: ${JSON.stringify(p)}`);u(p,v,s),this._propagate(p)}}}const Ay={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 LB extends yt{get behavior(){return kr}constructor(e,n){super(e),this.params=e;const r=Gh(Ay),o=Ze(e.field),i=e.as;let s=0;if(Ot(e.fontSize)){const a=n.paramMediator.createExpression(e.fontSize.expr);s=a(),a.addListener(()=>{s=a(),this.repropagate()})}else s=e.fontSize;this.handle=a=>{const c=o(a);c!==void 0?a[i]=r.measureWidth(c,s):a[i]=0,this._propagate(a)}}}const OB=65536;class NB extends yt{get behavior(){return kr}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,n=e.as||"lane",r=Ht(e.spacing)?e.spacing:1,o=Ze(e.start),i=Ze(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const s=new Float64Array(OB),a=Ze(e.preference),c=e.preferredOrder;let l=1/0;this.handle=u=>{const f=o(u);f<l&&s.fill(-1/0),l=f;const h=c.indexOf(a(u));let d=-1;if(h>=0&&s[h]<f)d=h;else{const p=o(u);for(d=0;d<s.length&&!(s[d]<p);d++);if(d>=s.length)throw new Error("Out of lanes!")}s[d]=i(u)+r,u[n]=d,this._propagate(u)}}else{const s=new Fl,a=new Fl;let c=-1/0,l=0;this.handle=u=>{const f=o(u);for(;s.length&&(s.peekValue()<=f||f<c);){const d=s.pop();a.push(d,d)}c=f;let h=a.pop();h===void 0&&(h=l++),u[n]=h,this._propagate(u),s.push(h,i(u)+r)}}}}class zB extends yt{get behavior(){return Un}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 n=e.fields.map(o=>Ze(o)),r=e.as?e.as:n.map(Vi);this.handle=o=>{const i={};for(let s=0;s<n.length;s++)i[r[s]]=n[s](o);this._propagate(i)}}}class UB extends yt{get behavior(){return kr}constructor(e){super(e),this.params=e;const n=new RegExp(e.regex),r=typeof e.as=="string"?[e.as]:e.as,o=Ze(e.field);this.handle=i=>{const s=o(i);if(rt(s)){const a=s.match(n);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++)i[r[c]]=a[c+1]}else if(e.skipInvalidInput)for(let c=0;c<r.length;c++)i[r[c]]=void 0;else throw new Error(`"${s}" does not match the given regex: ${n.toString()}`)}else if(!e.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof s}, field content: "${s}".`);this._propagate(i)}}}class GB extends yt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=Ft(e.columnRegex).map(h=>new RegExp(h));for(const h of n)if(RegExp("|"+h.source).exec("").length-1!=1)throw new Error(`Regex ${h.toString()} must have exactly one capturing group!`);const r=Ft(e.asValue);if(n.length!=r.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const o=e.skipRegex?new RegExp(e.skipRegex):void 0,i=e.asKey||"sample";let s,a,c;const l=h=>{var v;const d=Object.keys(h);for(const b of n)if(!d.some(A=>b.test(A)))throw new Error(`No columns matching the regex ${b.toString()} found in the data!`);const p=new Map;for(const[b,A]of n.entries())for(const S of d){const E=(v=A.exec(S))==null?void 0:v[1];if(E!==void 0){let I=p.get(E);I||(I=[],p.set(E,I)),I[b]=S}}s=[...p.entries()],a=d.filter(b=>!n.some(A=>A.test(b))&&!(o&&o.test(b)));const y=[...a.map(b=>JSON.stringify(b)+": datum["+JSON.stringify(b)+"]"),JSON.stringify(i)+": sampleId",...r.map((b,A)=>JSON.stringify(b)+`: datum[attrs[${A}]]`)];c=new Function("datum","sampleId","attrs",`return {
|
|
541
|
+
`+y.join(`,
|
|
542
542
|
`)+`
|
|
543
|
-
};`)},u=h=>{s||l(h);for(let d=0;d<s.length;d++){const[p,b]=s[d],v=c(h,p,b);this._propagate(v)}},f=h=>{l(h),u(h),this.handle=u};this.handle=f,this.beginBatch=h=>{U1(h)&&(this.handle=f),super.beginBatch(h)}}}class UB extends bt{get behavior(){return kr}constructor(e){super(e),this.params=e,this.buffer=[]}reset(){this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,n=e.as||["y0","y1"],r=e.sort?W0(e.sort.field,e.sort.order):void 0,o=e.field?Xe(e.field):()=>1,i=e.groupby.map(u=>Xe(u)),s=ZA(this.buffer,u=>i.map(f=>f(u)).join()).map(u=>u[1]);let a=u=>!0;if(e.baseField){const u=Xe(e.baseField);a=f=>u(f)!==null}let c,l;switch(e.offset){case"normalize":c=(u,f)=>u/f,l=(u,f)=>As(u,f);break;case"center":c=(u,f)=>u-f/2,l=(u,f)=>As(u,f);break;case"information":{const u=Math.log2(e.cardinality??4);c=(f,h)=>f/h,l=(f,h)=>{const p=As(f,A=>+!a(A)),b=As(f,h),v=b-p;let y=0;for(let A=0;A<f.length;A++){const S=f[A];if(a(S)){const E=h(S)/v;y-=E*Math.log2(E)}}return v/(u-(y+0))*(v/b)}}break;default:c=(u,f)=>u,l=(u,f)=>1}for(const u of s){r&&u.sort(r);const f=l(u,o);let h=0;for(const d of u){const p=h+o(d);a(d)&&(d[n[0]]=c(h,f),d[n[1]]=c(p,f),this._propagate(d),h=p)}}super.complete()}}class GB extends bt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=Xe(e.field??"sequence"),[r,o]=e.as??["pos","sequence"];this.handle=i=>{const s=Object.assign({},i,{[o]:"",[r]:0}),a=n(i);for(let c=0;c<a.length;c++){const l=Object.assign({},s);l[r]=c,l[o]=a.charAt(c),this._propagate(l)}}}}const Ab={count:t=>t.length,valid:VA,sum:As,min:Lu,max:Pu,mean:t3,median:n3,variance:qA};class HB extends bt{get behavior(){return Un}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((n,r)=>{const o=Xe(n),i=Ab[e.ops[r]];this.ops.push(s=>i(s,o)),this.as.push(e.as?e.as[r]:`${e.ops[r]}_${e.fields[r]}`)})}else this.ops.push(n=>Ab.count(n)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,n=e==null?void 0:e.groupby;if((n==null?void 0:n.length)>0){const r=n.map(i=>Xe(i)),o=pc(this.buffer,...r);for(const[i,s]of Kh(o)){const a={};for(let c=0;c<n.length;c++)a[n[c]]=i[c];this.ops.forEach((c,l)=>{a[this.as[l]]=c(s)}),this._propagate(a)}}else{const r={};this.ops.forEach((o,i)=>{r[this.as[i]]=o(this.buffer)}),this._propagate(r)}super.complete()}}const VB={aggregate:HB,collect:wb,coverage:xB,filterScoredLabels:EB,filter:SB,flatten:TB,flattenCompressedExons:kB,flattenDelimited:_B,flattenSequence:GB,formula:FB,identifier:bh,linearizeGenomicCoordinate:xb,measureText:MB,pileup:LB,project:OB,regexExtract:NB,regexFold:zB,sample:Vy,stack:UB};function qB(t,e){const n=VB[t.type];if(n)return new n(t,e);throw new Error("Unknown transform: "+t.type)}function Eb(t,e=[]){if(!Ib(t)&&!Cb(t))return;const n={...t.format};if(n.type??(n.type=Cb(t)&&WB(e)),n.parse??(n.parse="auto"),!n.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(t));return n}function jB(t){var e;return((e=Ku(t))==null?void 0:e.responseType)??"text"}function WB(t){var e;if(Array.isArray(t)&&(t=t[0]),t)return(e=t.match(/\.(csv|tsv|json)/))==null?void 0:e[1]}const Sb=t=>typeof t!="object"?YB:QB,YB=t=>({data:t}),QB=t=>t;function Cb(t){return"url"in t}class vo extends yh{constructor(n){super();zt(this,"view");this.view=n}get identifier(){}setLoadingStatus(n,r){this.view.context.setDataLoadingStatus(this.view,n,r)}get paramMediator(){return this.view.paramMediator}handle(n){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function Ib(t){return"values"in t}class ZB extends vo{constructor(n,r){var o;super(r);ge(this,Wa);if(this.params=n,typeof n.values=="string"&&!((o=n==null?void 0:n.format)!=null&&o.type))throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const n=this.params.values,r=Array.isArray(n)?n[0]:n;return!!(r&&Object.keys(r).length==0&&r.constructor===Object)}updateDynamicData(n){de(this,Wa,P0).call(this,n)}loadSynchronously(){de(this,Wa,P0).call(this,this.params.values)}async load(){this.loadSynchronously()}}Wa=new WeakSet,P0=function(n){let r=[],o=i=>i;if(Array.isArray(n))n.length>0&&(r=n,o=Sb(n[0]));else if(typeof n=="object")r=[n];else if(typeof n=="string")r=Ju(n,Eb(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 i of r)this._propagate(o(i));this.complete()};function XB(t){return"url"in t}class KB extends vo{constructor(n,r){super(r);ge(this,du);this.params=vl(r.paramMediator,n,()=>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 n=cn(this.params.url),r=typeof n=="object"&&"urlsFromFile"in n?await de(this,du,kv).call(this,n):(Array.isArray(n)?n:[n]).map(c=>Ai(this.baseUrl,c)),o=Eb(this.params,r),i=jB(o.type);if(r.length===0||!r[0]){this.reset(),this.complete();return}const s=async c=>{try{const l=await fetch(c);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);return typeof l[i]=="function"?l[i]():l.text()}catch(l){throw new Error(`Could not load data: ${c}. Reason: ${l.message}`)}},a=(c,l)=>{try{const u=Ju(c,o);this.beginBatch({type:"file",url:l});for(const f of u)this._propagate(f)}catch(u){throw new Error(`Cannot parse: ${l}: ${u.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(r.map(c=>s(c).then(a))),this.setLoadingStatus("complete")}catch(c){this.setLoadingStatus("error",c.message)}this.complete()}}du=new WeakSet,kv=async function(n){const r=Ai(this.baseUrl,n.urlsFromFile),o=await fetch(r);if(!o.ok)throw new Error(`Cannot load "${r}": ${o.status} ${o.statusText}`);const i=await o.text();return Ju(i,{type:n.type??"tsv"}).map(a=>typeof a=="string"?a:a.url).map(a=>Ai(r,a))};function JB(t){return"sequence"in t}class $B extends vo{constructor(e,n){if(super(n),this.sequence=vl(n.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=cn(this.sequence.as)??"data",n=cn(this.sequence.start)??0,r=cn(this.sequence.step)??1,o=cn(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let i=n;i<o;i+=r)this._propagate({[e]:i});this.complete()}async load(){this.loadSynchronously()}}class Jh extends vo{constructor(n,r){super(n);zt(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 i=[`The lazy data source cannot find a resolved scale for channel "${r}".`];throw this.view instanceof en||i.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(i.join(" "))}const o=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",o),this.view.context.addBroadcastListener("layoutComputed",o)}get genome(){return this.scaleResolution.getGenome()}onDomainChanged(n,r){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(n){this.reset(),this.beginBatch({type:"file"});for(const r of n)for(const o of r)this._propagate(o);this.complete(),Yh(this.view)}}class ek extends Jh{constructor(n,r){const o={...n};super(r,o.channel);zt(this,"ticks",[]);this.params=n}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const n=this.scaleResolution.scale,r=this.scaleResolution.getAxisLength(),o=this.params.axis,i=l=>25+60*oy(100,700,l),s=Ut(o.tickCount)?o.tickCount:Math.round(r/i(r)),a=jy(n,s,o.tickMinStep),c=o.values?Wy(n,o.values,a):ID(n,a);if(this.ticks==null||!Bc(c,this.ticks)){this.ticks=c;const l=DD(n,s,o.format);this.publishData([c.map(u=>({value:u,label:l(u)}))])}}}class tk extends Jh{constructor(e,n){super(n,e.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}function Fl(t,e,n=!0){let r,o=s=>{};return function(...a){return new Promise((c,l)=>{const u=()=>{clearTimeout(r),o=f=>{},c(t(...a))};n&&o("debounced"),clearTimeout(r),o=l,r=window.setTimeout(u,typeof e=="function"?e():e)})}}class Aa extends Jh{constructor(){super(...arguments);ge(this,Ko,new AbortController);ge(this,Jo,[0,0]);ge(this,$o,[0,0]);ge(this,Ya,0);zt(this,"params")}setupDebouncing(n){const r=()=>cn(n.debounce),o=n.debounceMode;if(o=="domain")this.onDomainChanged=Fl(this.onDomainChanged.bind(this),r,!1);else if(o=="window")this.loadInterval=Fl(this.loadInterval.bind(this),r,!1);else throw new Error("Invalid debounceMode: "+o)}onDomainChanged(n){var o;Ie(this,$o,n);const r=cn((o=this.params)==null?void 0:o.windowSize)??-1;n[1]-n[0]>r||this.callIfWindowsChanged(n,r,async i=>{await this.initializedPromise,this.loadInterval(i)})}reloadLastDomain(){const n=W(this,$o);Ie(this,$o,[0,0]),Ie(this,Jo,[0,0]),this.onDomainChanged(n)}async loadInterval(n){}async discretizeAndLoad(n,r){W(this,Ko).abort(),this.setLoadingStatus("loading"),Ie(this,Ko,new AbortController);const o=W(this,Ko).signal,i=this.genome.continuousToDiscreteChromosomeIntervals(n);try{const s=await Promise.all(i.map(async a=>r(a,o)));if(!o.aborted)return this.setLoadingStatus("complete"),s}catch(s){if(!o.aborted)throw this.setLoadingStatus("error",s.message),s}}callIfWindowsChanged(n,r,o){const i=[Math.max(Math.floor(n[0]/r)*r,0),Math.min(Math.ceil(n[1]/r)*r,this.genome.totalSize)],s=W(this,Jo);(r!==W(this,Ya)||i[0]<s[0]||i[1]>s[1])&&(Ie(this,Jo,i),Ie(this,Ya,r),o(i))}}Ko=new WeakMap,Jo=new WeakMap,$o=new WeakMap,Ya=new WeakMap;class nk extends Aa{constructor(e,n){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...e};if(super(n,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(o=>{Promise.all([Promise.resolve().then(()=>q_),Promise.resolve().then(()=>uR),Promise.resolve().then(()=>Ia)]).then(([{Buffer:i},{IndexedFasta:s},{RemoteFile:a}])=>{typeof window<"u"&&(window.Buffer??(window.Buffer=i));const c=l=>new a(xa(l,this.view.getBaseUrl()));this.fasta=new s({fasta:c(this.params.url),fai:c(this.params.indexUrl??this.params.url+".fai")}),o()})})}get label(){return"bigWigSource"}async loadInterval(e){const n=await this.discretizeAndLoad(e,async(r,o)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:o}).then(i=>({chrom:r.chrom,start:r.startPos,sequence:i})));n&&this.publishData([n])}}class rk extends Aa{constructor(n,r){const o={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...n},i=vl(r.paramMediator,o,s=>{s.includes("url")?de(this,Qa,L0).call(this).then(()=>this.reloadLastDomain()):s.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,i.channel);ge(this,Qa);ge(this,es,[]);ge(this,ts);if(this.params=i,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),de(this,Qa,L0).call(this)}get label(){return"bigWigSource"}async onDomainChanged(n){await this.initializedPromise;const r=this.scaleResolution.getAxisLength()||700,o=ik(n,r,W(this,es)),i=Math.max(o*r,5e3);this.callIfWindowsChanged(n,i,s=>this.loadInterval(s,o))}async loadInterval(n,r){const o=.5/r/cn(this.params.pixelsPerBin),i=await this.discretizeAndLoad(n,(s,a)=>W(this,ts).getFeatures(s.chrom,s.startPos,s.endPos,{scale:o,signal:a}).then(c=>c.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));i&&this.publishData(i)}}es=new WeakMap,ts=new WeakMap,Qa=new WeakSet,L0=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>ox),Promise.resolve().then(()=>Ia)]).then(([{BigWig:o},{RemoteFile:i}])=>{Ie(this,ts,new o({filehandle:new i(xa(cn(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),W(this,ts).getHeader().then(s=>{Ie(this,es,s.zoomLevels.map(a=>a.reductionLevel).reverse()),W(this,es).push(1),this.setLoadingStatus("complete"),n()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${cn(this.params.url)}: ${s.message}`),r(s)})})}),this.initializedPromise};function ik(t,e,n){const r=(t[1]-t[0])/e;return n.find(o=>o<r)??n.at(-1)}class ok extends Aa{constructor(n,r){const o={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...n},i=vl(r.paramMediator,o,s=>{s.includes("url")?de(this,Za,O0).call(this).then(()=>this.reloadLastDomain()):s.includes("windowSize")&&this.reloadLastDomain()});super(r,i.channel);ge(this,Za);zt(this,"parser");zt(this,"bbi");zt(this,"parseLine");if(this.params=i,!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),de(this,Za,O0).call(this)}get label(){return"bigBedSource"}async loadInterval(n){const r=await this.discretizeAndLoad(n,async(o,i)=>this.bbi.getFeatures(o.chrom,o.startPos,o.endPos,{signal:i}).then(s=>s.map(a=>this.parseLine(o.chrom,a))));r&&this.publishData(r)}}Za=new WeakSet,O0=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>S9),Promise.resolve().then(()=>ox),Promise.resolve().then(()=>Ia)]).then(([o,{BigBed:i},{RemoteFile:s}])=>{const a=o.default;this.bbi=new i({filehandle:new s(xa(cn(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async c=>{this.parser=new a({autoSql:c.autoSql});try{const l=sk(this.parser);this.parseLine=(u,f)=>l(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"),n()}).catch(c=>{this.load(),this.setLoadingStatus("error",`${cn(this.params.url)}: ${c.message}`),r(c)})})}),this.initializedPromise};function sk(t){const e=t.autoSql.fields.filter(A=>A.type).slice(3);let n=0,r="",o=0,i={};const s=" ",a=s.charCodeAt(0),c=48,l=45;function u(){let A=r.indexOf(s,n);A<0&&(A=o);const S=r.substring(n,A);return n=A+1,S}function f(){let A=0,S=r.charCodeAt(n),E=1;S===l&&(E=-1,n++,S=r.charCodeAt(n));do{if(S===a){n++;break}A=A*10+S-c,S=r.charCodeAt(++n)}while(n<o);return A*E}const h=e.map(A=>`${JSON.stringify(A.name)}: ${A.isNumeric?"0":"emptyString"}`),d=new Function(`
|
|
543
|
+
};`)},u=h=>{s||l(h);for(let d=0;d<s.length;d++){const[p,y]=s[d],v=c(h,p,y);this._propagate(v)}},f=h=>{l(h),u(h),this.handle=u};this.handle=f,this.beginBatch=h=>{G1(h)&&(this.handle=f),super.beginBatch(h)}}}class HB extends yt{get behavior(){return kr}constructor(e){super(e),this.params=e,this.buffer=[]}reset(){this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,n=e.as||["y0","y1"],r=e.sort?Y0(e.sort.field,e.sort.order):void 0,o=e.field?Ze(e.field):()=>1,i=e.groupby.map(u=>Ze(u)),s=XA(this.buffer,u=>i.map(f=>f(u)).join()).map(u=>u[1]);let a=u=>!0;if(e.baseField){const u=Ze(e.baseField);a=f=>u(f)!==null}let c,l;switch(e.offset){case"normalize":c=(u,f)=>u/f,l=(u,f)=>Es(u,f);break;case"center":c=(u,f)=>u-f/2,l=(u,f)=>Es(u,f);break;case"information":{const u=Math.log2(e.cardinality??4);c=(f,h)=>f/h,l=(f,h)=>{const p=Es(f,A=>+!a(A)),y=Es(f,h),v=y-p;let b=0;for(let A=0;A<f.length;A++){const S=f[A];if(a(S)){const E=h(S)/v;b-=E*Math.log2(E)}}return v/(u-(b+0))*(v/y)}}break;default:c=(u,f)=>u,l=(u,f)=>1}for(const u of s){r&&u.sort(r);const f=l(u,o);let h=0;for(const d of u){const p=h+o(d);a(d)&&(d[n[0]]=c(h,f),d[n[1]]=c(p,f),this._propagate(d),h=p)}}super.complete()}}class VB extends yt{get behavior(){return Un}constructor(e){super(e),this.params=e;const n=Ze(e.field??"sequence"),[r,o]=e.as??["pos","sequence"];this.handle=i=>{const s=Object.assign({},i,{[o]:"",[r]:0}),a=n(i);for(let c=0;c<a.length;c++){const l=Object.assign({},s);l[r]=c,l[o]=a.charAt(c),this._propagate(l)}}}}const Ey={count:t=>t.length,valid:qA,sum:Es,min:Ou,max:Lu,mean:n3,median:r3,variance:jA};class qB extends yt{get behavior(){return Un}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((n,r)=>{const o=Ze(n),i=Ey[e.ops[r]];this.ops.push(s=>i(s,o)),this.as.push(e.as?e.as[r]:`${e.ops[r]}_${e.fields[r]}`)})}else this.ops.push(n=>Ey.count(n)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,n=e==null?void 0:e.groupby;if((n==null?void 0:n.length)>0){const r=n.map(i=>Ze(i)),o=gc(this.buffer,...r);for(const[i,s]of Jh(o)){const a={};for(let c=0;c<n.length;c++)a[n[c]]=i[c];this.ops.forEach((c,l)=>{a[this.as[l]]=c(s)}),this._propagate(a)}}else{const r={};this.ops.forEach((o,i)=>{r[this.as[i]]=o(this.buffer)}),this._propagate(r)}super.complete()}}const jB={aggregate:qB,collect:xy,coverage:AB,filterScoredLabels:CB,filter:IB,flatten:BB,flattenCompressedExons:RB,flattenDelimited:FB,flattenSequence:VB,formula:PB,identifier:wh,linearizeGenomicCoordinate:vy,measureText:LB,pileup:NB,project:zB,regexExtract:UB,regexFold:GB,sample:qb,stack:HB};function WB(t,e){const n=jB[t.type];if(n)return new n(t,e);throw new Error("Unknown transform: "+t.type)}function Sy(t,e=[]){if(!Ty(t)&&!Iy(t))return;const n={...t.format};if(n.type??(n.type=Iy(t)&&QB(e)),n.parse??(n.parse="auto"),!n.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(t));return n}function YB(t){var e;return((e=Ju(t))==null?void 0:e.responseType)??"text"}function QB(t){var e;if(Array.isArray(t)&&(t=t[0]),t)return(e=t.match(/\.(csv|tsv|json)/))==null?void 0:e[1]}const Cy=t=>typeof t!="object"?ZB:XB,ZB=t=>({data:t}),XB=t=>t;function Iy(t){return"url"in t}class vo extends yh{constructor(n){super();Gt(this,"view");this.view=n}get identifier(){}setLoadingStatus(n,r){this.view.context.setDataLoadingStatus(this.view,n,r)}get paramMediator(){return this.view.paramMediator}handle(n){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function Ty(t){return"values"in t}class KB extends vo{constructor(n,r){var o;super(r);ge(this,Ya);if(this.params=n,typeof n.values=="string"&&!((o=n==null?void 0:n.format)!=null&&o.type))throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const n=this.params.values,r=Array.isArray(n)?n[0]:n;return!!(r&&Object.keys(r).length==0&&r.constructor===Object)}updateDynamicData(n){de(this,Ya,L0).call(this,n)}loadSynchronously(){de(this,Ya,L0).call(this,this.params.values)}async load(){this.loadSynchronously()}}Ya=new WeakSet,L0=function(n){let r=[],o=i=>i;if(Array.isArray(n))n.length>0&&(r=n,o=Cy(n[0]));else if(typeof n=="object")r=[n];else if(typeof n=="string")r=$u(n,Sy(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 i of r)this._propagate(o(i));this.complete()};function JB(t){return"url"in t}class $B extends vo{constructor(n,r){super(r);ge(this,pu);this.params=Al(r.paramMediator,n,()=>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 n=cn(this.params.url),r=typeof n=="object"&&"urlsFromFile"in n?await de(this,pu,_v).call(this,n):(Array.isArray(n)?n:[n]).map(c=>Ei(this.baseUrl,c)),o=Sy(this.params,r),i=YB(o.type);if(r.length===0||!r[0]){this.reset(),this.complete();return}const s=async c=>{try{const l=await fetch(c);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);return typeof l[i]=="function"?l[i]():l.text()}catch(l){throw new Error(`Could not load data: ${c}. Reason: ${l.message}`)}},a=(c,l)=>{try{const u=$u(c,o);this.beginBatch({type:"file",url:l});for(const f of u)this._propagate(f)}catch(u){throw new Error(`Cannot parse: ${l}: ${u.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(r.map(c=>s(c).then(a))),this.setLoadingStatus("complete")}catch(c){this.setLoadingStatus("error",c.message)}this.complete()}}pu=new WeakSet,_v=async function(n){const r=Ei(this.baseUrl,n.urlsFromFile),o=await fetch(r);if(!o.ok)throw new Error(`Cannot load "${r}": ${o.status} ${o.statusText}`);const i=await o.text();return $u(i,{type:n.type??"tsv"}).map(a=>typeof a=="string"?a:a.url).map(a=>Ei(r,a))};function ek(t){return"sequence"in t}class tk extends vo{constructor(e,n){if(super(n),this.sequence=Al(n.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=cn(this.sequence.as)??"data",n=cn(this.sequence.start)??0,r=cn(this.sequence.step)??1,o=cn(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let i=n;i<o;i+=r)this._propagate({[e]:i});this.complete()}async load(){this.loadSynchronously()}}class $h extends vo{constructor(n,r){super(n);Gt(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 i=[`The lazy data source cannot find a resolved scale for channel "${r}".`];throw this.view instanceof en||i.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(i.join(" "))}const o=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",o),this.view.context.addBroadcastListener("layoutComputed",o)}get genome(){return this.scaleResolution.getGenome()}onDomainChanged(n,r){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(n){this.reset(),this.beginBatch({type:"file"});for(const r of n)for(const o of r)this._propagate(o);this.complete(),Qh(this.view)}}class nk extends $h{constructor(n,r){const o={...n};super(r,o.channel);Gt(this,"ticks",[]);this.params=n}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const n=this.scaleResolution.scale,r=this.scaleResolution.getAxisLength(),o=this.params.axis,i=l=>25+60*sb(100,700,l),s=Ht(o.tickCount)?o.tickCount:Math.round(r/i(r)),a=Wb(n,s,o.tickMinStep),c=o.values?Yb(n,o.values,a):TD(n,a);if(this.ticks==null||!kc(c,this.ticks)){this.ticks=c;const l=BD(n,s,o.format);this.publishData([c.map(u=>({value:u,label:l(u)}))])}}}class rk extends $h{constructor(e,n){super(n,e.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}function Ml(t,e,n=!0){let r,o=s=>{};return function(...a){return new Promise((c,l)=>{const u=()=>{clearTimeout(r),o=f=>{},c(t(...a))};n&&o("debounced"),clearTimeout(r),o=l,r=window.setTimeout(u,typeof e=="function"?e():e)})}}class Ea extends $h{constructor(){super(...arguments);ge(this,Jo,new AbortController);ge(this,$o,[0,0]);ge(this,es,[0,0]);ge(this,Qa,0);Gt(this,"params")}setupDebouncing(n){const r=()=>cn(n.debounce),o=n.debounceMode;if(o=="domain")this.onDomainChanged=Ml(this.onDomainChanged.bind(this),r,!1);else if(o=="window")this.loadInterval=Ml(this.loadInterval.bind(this),r,!1);else throw new Error("Invalid debounceMode: "+o)}onDomainChanged(n){var o;Ie(this,es,n);const r=cn((o=this.params)==null?void 0:o.windowSize)??-1;n[1]-n[0]>r||this.callIfWindowsChanged(n,r,async i=>{await this.initializedPromise,this.loadInterval(i)})}reloadLastDomain(){const n=W(this,es);Ie(this,es,[0,0]),Ie(this,$o,[0,0]),this.onDomainChanged(n)}async loadInterval(n){}async discretizeAndLoad(n,r){W(this,Jo).abort(),this.setLoadingStatus("loading"),Ie(this,Jo,new AbortController);const o=W(this,Jo).signal,i=this.genome.continuousToDiscreteChromosomeIntervals(n);try{const s=await Promise.all(i.map(async a=>r(a,o)));if(!o.aborted)return this.setLoadingStatus("complete"),s}catch(s){if(!o.aborted)throw this.setLoadingStatus("error",s.message),s}}callIfWindowsChanged(n,r,o){const i=[Math.max(Math.floor(n[0]/r)*r,0),Math.min(Math.ceil(n[1]/r)*r,this.genome.totalSize)],s=W(this,$o);(r!==W(this,Qa)||i[0]<s[0]||i[1]>s[1])&&(Ie(this,$o,i),Ie(this,Qa,r),o(i))}}Jo=new WeakMap,$o=new WeakMap,es=new WeakMap,Qa=new WeakMap;class ik extends Ea{constructor(e,n){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...e};if(super(n,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(o=>{Promise.all([Promise.resolve().then(()=>W_),Promise.resolve().then(()=>hR),Promise.resolve().then(()=>Ta)]).then(([{Buffer:i},{IndexedFasta:s},{RemoteFile:a}])=>{typeof window<"u"&&(window.Buffer??(window.Buffer=i));const c=l=>new a(va(l,this.view.getBaseUrl()));this.fasta=new s({fasta:c(this.params.url),fai:c(this.params.indexUrl??this.params.url+".fai")}),o()})})}get label(){return"bigWigSource"}async loadInterval(e){const n=await this.discretizeAndLoad(e,async(r,o)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:o}).then(i=>({chrom:r.chrom,start:r.startPos,sequence:i})));n&&this.publishData([n])}}class ok extends Ea{constructor(n,r){const o={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...n},i=Al(r.paramMediator,o,s=>{s.includes("url")?de(this,Za,O0).call(this).then(()=>this.reloadLastDomain()):s.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,i.channel);ge(this,Za);ge(this,ts,[]);ge(this,ns);if(this.params=i,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),de(this,Za,O0).call(this)}get label(){return"bigWigSource"}async onDomainChanged(n){await this.initializedPromise;const r=this.scaleResolution.getAxisLength()||700,o=sk(n,r,W(this,ts)),i=Math.max(o*r,5e3);this.callIfWindowsChanged(n,i,s=>this.loadInterval(s,o))}async loadInterval(n,r){const o=.5/r/cn(this.params.pixelsPerBin),i=await this.discretizeAndLoad(n,(s,a)=>W(this,ns).getFeatures(s.chrom,s.startPos,s.endPos,{scale:o,signal:a}).then(c=>c.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));i&&this.publishData(i)}}ts=new WeakMap,ns=new WeakMap,Za=new WeakSet,O0=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>sx),Promise.resolve().then(()=>Ta)]).then(([{BigWig:o},{RemoteFile:i}])=>{Ie(this,ns,new o({filehandle:new i(va(cn(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),W(this,ns).getHeader().then(s=>{Ie(this,ts,s.zoomLevels.map(a=>a.reductionLevel).reverse()),W(this,ts).push(1),this.setLoadingStatus("complete"),n()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${cn(this.params.url)}: ${s.message}`),r(s)})})}),this.initializedPromise};function sk(t,e,n){const r=(t[1]-t[0])/e;return n.find(o=>o<r)??n.at(-1)}class ak extends Ea{constructor(n,r){const o={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...n},i=Al(r.paramMediator,o,s=>{s.includes("url")?de(this,Xa,N0).call(this).then(()=>this.reloadLastDomain()):s.includes("windowSize")&&this.reloadLastDomain()});super(r,i.channel);ge(this,Xa);Gt(this,"parser");Gt(this,"bbi");Gt(this,"parseLine");if(this.params=i,!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),de(this,Xa,N0).call(this)}get label(){return"bigBedSource"}async loadInterval(n){const r=await this.discretizeAndLoad(n,async(o,i)=>this.bbi.getFeatures(o.chrom,o.startPos,o.endPos,{signal:i}).then(s=>s.map(a=>this.parseLine(o.chrom,a))));r&&this.publishData(r)}}Xa=new WeakSet,N0=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>I9),Promise.resolve().then(()=>sx),Promise.resolve().then(()=>Ta)]).then(([o,{BigBed:i},{RemoteFile:s}])=>{const a=o.default;this.bbi=new i({filehandle:new s(va(cn(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async c=>{this.parser=new a({autoSql:c.autoSql});try{const l=ck(this.parser);this.parseLine=(u,f)=>l(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"),n()}).catch(c=>{this.load(),this.setLoadingStatus("error",`${cn(this.params.url)}: ${c.message}`),r(c)})})}),this.initializedPromise};function ck(t){const e=t.autoSql.fields.filter(A=>A.type).slice(3);let n=0,r="",o=0,i={};const s=" ",a=s.charCodeAt(0),c=48,l=45;function u(){let A=r.indexOf(s,n);A<0&&(A=o);const S=r.substring(n,A);return n=A+1,S}function f(){let A=0,S=r.charCodeAt(n),E=1;S===l&&(E=-1,n++,S=r.charCodeAt(n));do{if(S===a){n++;break}A=A*10+S-c,S=r.charCodeAt(++n)}while(n<o);return A*E}const h=e.map(A=>`${JSON.stringify(A.name)}: ${A.isNumeric?"0":"emptyString"}`),d=new Function(`
|
|
544
544
|
const emptyString = "";
|
|
545
545
|
return function makeTemplate(chrom, chromStart, chromEnd) {
|
|
546
546
|
return {
|
|
@@ -550,21 +550,21 @@ chrM 16299`};function ZD(t){if(!(t in $y))throw new Error(`Unknown assembly: ${t
|
|
|
550
550
|
${h.join(`,
|
|
551
551
|
`)}
|
|
552
552
|
}
|
|
553
|
-
};`)(),p=e.map(A=>{const S=A.type,E=JSON.stringify(A.name);if(["ubyte","int","uint"].includes(S))return`d[${E}] = parseInt();`;if(A.isNumeric)return`d[${E}] = Number(parseString());`;if(["char","string","lstring"].includes(S))return`d[${E}] = parseString();`;throw new Error("Unsupported type: "+S)}),
|
|
553
|
+
};`)(),p=e.map(A=>{const S=A.type,E=JSON.stringify(A.name);if(["ubyte","int","uint"].includes(S))return`d[${E}] = parseInt();`;if(A.isNumeric)return`d[${E}] = Number(parseString());`;if(["char","string","lstring"].includes(S))return`d[${E}] = parseString();`;throw new Error("Unsupported type: "+S)}),y=lk(p,50).map((A,S)=>Function("parseInt","parseString",`return function parseFieldChunk${S}(d) {
|
|
554
554
|
${A.join(`
|
|
555
555
|
`)}
|
|
556
|
-
}`)(f,u));function v(A){r=A,o=A.length,n=0}function
|
|
557
|
-
`),{parseSequences:!1})}}
|
|
558
|
-
`)+" };");return n.properties=e,n}function Db(t){let e=[];do e=e.concat(Object.keys(t)),t=Object.getPrototypeOf(t);while(t&&t!==Object.prototype);return Array.from(new Set(e))}class Ml extends bt{constructor(){super({type:"clone"});ge(this,rs);ge(this,Ja,n=>n);const n=r=>{const o=Db(r);(!W(this,rs)||!Bc(o,W(this,rs)))&&(Ie(this,rs,o),Ie(this,Ja,Ak(r)));const i=W(this,Ja);this.handle=s=>this._propagate(i(s)),this.handle(r)};this.handle=n,this.beginBatch=r=>{U1(r)&&(this.handle=n),super.beginBatch(r)}}get behavior(){return Un}}rs=new WeakMap,Ja=new WeakMap;function Ek(t){return"name"in t}class Bb extends vo{constructor(n,r,o){super(r);ge(this,$a);this.provider=o,this.params=n}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(n){Ie(this,$a,n),this.loadSynchronously()}loadSynchronously(){const n=W(this,$a)??this.provider(this.params.name)??[];let r=o=>o;if(Array.isArray(n))n.length>0&&(r=Sb(n[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const o of n)this._propagate(r(o));this.complete()}async load(){this.loadSynchronously()}}$a=new WeakMap;class kb{constructor(){this._dataSourcesByHost=new Map,this._collectorsByHost=new Map,this._observers=new Map}get dataSources(){return[...new Set(this._dataSourcesByHost.values()).values()]}get collectors(){return[...this._collectorsByHost.values()]}addObserver(e,n){let r=this._observers.get(n);r||(r=[],this._observers.set(n,r)),r.push(e)}_relayObserverCallback(e,n){const r=this._observers.get(n);if(r)for(const o of r)o(e)}addDataSource(e,n){this._dataSourcesByHost.set(n,e)}findDataSourceByKey(e){return this._dataSourcesByHost.get(e)}findNamedDataSource(e){let n,r=[];for(const[o,i]of this._dataSourcesByHost.entries())if(i instanceof Bb&&e==i.identifier){if(n&&n!==i)throw new Error(`Found multiple instances of named data: ${e}. Data flow optimization is broken (it's a bug).`);n=i,r.push(o)}if(n)return{dataSource:n,hosts:r}}addCollector(e,n){this._collectorsByHost.set(n,e),e.observers.push(r=>this._relayObserverCallback(r,n))}findCollectorByKey(e){return this._collectorsByHost.get(e)}initialize(){for(const e of this.dataSources)e.visit(n=>n.initialize())}}function Sk(t,e){const n=new Map,r=[];for(const o of t)n.set(o,{ref:o,children:[]});for(const o of n.values()){const i=n.get(e(o.ref));i?i.children.push(o):r.push(o)}return r}function _b(t,e,n){var o,i;const r=(o=e.preOrder)==null?void 0:o.call(e,t);if(r)return r;for(const s of n(t)){const a=_b(s,e,n);if(a==="stop")return a}return(i=e.postOrder)==null?void 0:i.call(e,t)}function Ck(t,e){return _b(t,e,n=>n.children)}function Ik(t,e){const n=[],r=[];let o;const i=e??new kb,s=[];function a(d,p=()=>{}){if(!o)throw p()||new Error("Cannot append data flow node, no parent exist!");return o.addChild(d),o=d,n.push(d),d}function c(d,p){return a(d,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function l(d,p){for(const b of d){let v;try{v=qB(b,p)}catch(y){throw console.warn(y),new Error(`Cannot initialize "${b.type}" transform: ${y}`)}v.behavior&kr&&c(new Ml),c(v)}}function u(){return n.findLastIndex(d=>d instanceof bh)>n.findLastIndex(d=>d instanceof vo)}const f=d=>{if(d.spec.data){const p=Ek(d.spec.data)?new Bb(d.spec.data,d,d.context.getNamedDataFromProvider):fk(d.spec.data,d);o=p,n.push(p),i.addDataSource(p,d)}if(d.spec.transform&&l(d.spec.transform,d),d instanceof en){if(!o)throw new Error(`A unit view (${d.getPathString()}) has no (inherited) data source`);const p=Tk(d);if(p){s.push(p.rewrite);for(const v of p.transforms)c(v)}d.mark.isPickingParticipant()&&!u()&&(c(new Ml),c(new bh({type:"identifier"})));const b=new wb({type:"collect",groupby:d.getFacetFields(),sort:Dk(d,p==null?void 0:p.rewrittenEncoding)});a(b),i.addCollector(b,d)}},h=Sk(t.getDescendants(),d=>d.dataParent);for(const d of h)Ck(d,{preOrder:p=>{r.push({view:p.ref,nodeStackDepth:n.length}),f(p.ref)},postOrder:()=>{const{nodeStackDepth:p}=r.pop();n.length=p,o=n.at(-1)}});return s.forEach(d=>d()),i}function Tk(t){var i;const e=[],n={},r=[];for(const[s,a]of Object.entries(t.getEncoding())){const c=s;ua(c)&&by(a)&&r.push({channel:c,chromPosDef:a})}const o=pc(r,s=>xi(s.channel),s=>s.chromPosDef.chrom);for(const[s,a]of o.entries())for(const[c,l]of a.entries()){const u=[],f=[],h=[];for(const{channel:d,chromPosDef:p}of l){const b=A=>A.replace(/[^A-Za-z0-9_]/g,""),v=["_linearized_",b(p.chrom),"_",b(p.pos)].join(""),y={...((i=t.spec.encoding)==null?void 0:i[d])??t.getEncoding()[d]??{},field:v};delete y.chrom,delete y.pos,!y.type&&p.type&&(y.type=p.type),n[d]=y,u.push(p.pos),h.push(p.offset??0),f.push(v)}e.push(new Ml),e.push(new xb({type:"linearizeGenomicCoordinate",channel:s,chrom:c,pos:u,offset:h,as:f},t))}return e.length?{transforms:e,rewrittenEncoding:n,rewrite:()=>{t.spec.encoding={...t.spec.encoding,...n},ZT(t.mark,"encoding")}}:void 0}function Dk(t,e){var r;const n={...t.getEncoding(),...e}.x;if(Xt(n)&&(r=t.getScaleResolution("x"))!=null&&r.isZoomable()){if(Rr(n))return"buildIndex"in n&&n.buildIndex?{field:n.field}:null;if(!ca(n)){if(la(n))throw new Error("A zoomable x channel must be mapped to a field.")}}}function Rb(t,e=void 0){if(t.parent!==e)return!1;for(const n of t.children)if(!Rb(n,t))return!1;return!0}function $h(t,e=!1){if(t.behavior&mh&&(e=!0),t instanceof Ml)if(e)e=!1;else{const n=t.children[0];t.excise(),n&&$h(n,e);return}t.behavior&Un&&(e=!1);for(let n=0,r=t.children.length;n<r;n++)$h(t.children[n],e||r>1)}function Bk(t){const e=[...t._dataSourcesByHost.entries()],n=new Map;for(const r of e){const o=r[1];o.identifier&&!n.has(o.identifier)&&n.set(o.identifier,o)}t._dataSourcesByHost.clear();for(let[r,o]of e){const i=n.get(o.identifier);i&&(i.adoptChildrenOf(o),o=i),t.addDataSource(o,r)}}function kk(t){if($h(t),!Rb(t))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function _k(t){Bk(t);for(const e of t.dataSources)kk(e)}function Rk(t){const e=new Set;t.visit(n=>{for(const r of Object.values(n.resolutions.scale)){const o=r.name;if(o&&e.has(o))throw new Error(`The same scale name "${o}" occurs in multiple scale resolutions!`);e.add(o)}})}function Fk(t){for(const e of wi){const n=t.getScaleResolution(e);n&&!n.name&&n.isZoomable()&&(n.name=`${e}_at_root`)}}async function Mk(t,e,n){const r=t.import;if(!("url"in r))throw new Error("Not an url import: "+JSON.stringify(r));const o=Ai(e,r.url);let i;try{const s=await fetch(o);if(!s.ok)throw new Error(`${s.status} ${s.statusText}`);i=await s.json()}catch(s){throw new Error(`Could not load imported view spec: ${o}. Reason: ${s.message}`)}if(n.isViewSpec(i))return i.baseUrl=Ai(eb(r.url),i.baseUrl),i;throw new Error(`The imported spec "${o}" is not a view spec: ${JSON.stringify(t)}`)}function Pk(t){const e=t.getSize(),n=t.getPadding(),r=(o,i)=>o.grow>0?void 0:o.px+i;return{width:r(e.width,n.horizontalTotal),height:r(e.height,n.verticalTotal)}}function tr(t){return()=>t}const Tn=class Tn{static create(e,n,r,o){return new Tn(tr(e),tr(n),tr(r),tr(o))}_offset(e,n){const r=this["_"+e];if(n===0)return r;switch(typeof n){case"number":return()=>r()+n;case"function":return()=>r()+n();default:throw new Error("Not a number of function")}}_passThrough(e){return this._offset(e,0)}constructor(e,n,r,o){this._x=e,this._y=n,this._width=r,this._height=o}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 n=r=>{const o=e[r];return typeof o=="number"?tr(o):typeof o=="function"?o:this._passThrough(r)};return new Tn(n("x"),n("y"),n("width"),n("height"))}translate(e,n){return e===0&&n===0?this:new Tn(this._offset("x",e),this._offset("y",n),this._passThrough("width"),this._passThrough("height"))}translateBy(e){return this.translate(e.x,e.y)}expand(e,n=1){return e.left==0&&e.top==0&&e.right==0&&e.bottom==0?this:new Tn(e.left?this._offset("x",-e.left*n):this._passThrough("x"),e.top?this._offset("y",-e.top*n):this._passThrough("y"),e.width?this._offset("width",e.width*n):this._passThrough("width"),e.height?this._offset("height",e.height*n):this._passThrough("height"))}shrink(e){return this.expand(e,-1)}intersect(e){return this===e||e==null?this:new Tn(()=>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 Tn(()=>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 Tn(tr(this.x),tr(this.y),tr(this.width),tr(this.height))}containsPoint(e,n){return e>=this.x&&e<this.x2&&n>=this.y&&n<this.y2}normalizePoint(e,n,r=!1){const o={x:(e-this.x)/this.width,y:(n-this.y)/this.height};return r&&(o.y=1-o.y),o}denormalizePoint(e,n,r=!1){return r&&(n=1-n),{x:this.x+e*this.width,y:this.y+n*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)}`}};zt(Tn,"ZERO",Tn.create(0,0,0,0));let Hn=Tn;class Fb{constructor(e){this.globalOptions=e}pushView(e,n){}popView(e){}renderMark(e,n){}}class Mb extends Fb{constructor(e,n){super(e),this.webGLHelper=n,this.buffer=[],this.coords=void 0,this.views=new Set}pushView(e,n){this.views.add(e),this.coords=n}renderMark(e,n){if(this.globalOptions.picking&&!e.isPickingParticipant())return;const r=e.render(n);r&&this.buffer.push({mark:e,callback:r,coords:this.coords,clipRect:n.clipRect})}render(){if(this.batch||this._buildBatch(),this.batch.length==0)return;const e=this.webGLHelper.gl,n=this.globalOptions.picking;e.bindFramebuffer(e.FRAMEBUFFER,n?this.webGLHelper._pickingBufferInfo.framebuffer:null),this.webGLHelper.clearAll();for(const r of this.views)r.onBeforeRender();for(const r of this.batch)r();n&&e.bindFramebuffer(e.FRAMEBUFFER,null)}_buildBatch(){this.batch=[];let e=!0,n=!0;const r=s=>()=>{e&&s()},o=s=>()=>{e&&n&&s()},i=pc(this.buffer.reverse(),s=>s.mark);for(const[s,a]of[...i.entries()].reverse()){if(!s.isReady())continue;this.batch.push(()=>{e=s.unitView.getEffectiveOpacity()>0}),this.batch.push(...s.prepareRender(this.globalOptions).map(l=>r(l)));let c;for(const l of a){const u=l.coords;u.equals(c)||this.batch.push(r(()=>{n=s.setViewport(u,l.clipRect)})),this.batch.push(o(l.callback)),c=l.coords}}}}class Lk extends Fb{constructor(...e){super({}),this.contexts=e}pushView(e,n){for(const r of this.contexts)r.pushView(e,n)}popView(e){for(const n of this.contexts)n.popView(e)}renderMark(e,n){for(const r of this.contexts)r.renderMark(e,n)}}class Ok{constructor(e,n){this.point=e,this.uiEvent=n,this.stopped=!1,this.target=void 0}stopPropagation(){this.stopped=!0}get type(){return this.uiEvent.type}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}class Kt{static fromMouseEvent(e){return new Kt(e.clientX,e.clientY)}constructor(e,n){this.x=e,this.y=n}subtract(e){return new Kt(this.x-e.x,this.y-e.y)}add(e){return new Kt(this.x-e.x,this.y-e.y)}multiply(e){return new Kt(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 Nk=t=>new Promise(e=>setTimeout(e,t));function zk(t){const e=t.requestAnimationFrame||window.requestAnimationFrame,n=t.signal,r=()=>new Promise((o,i)=>{if(n!=null&&n.aborted)return i("aborted");const s=performance.now(),a=s+(t.duration||1e3),c=typeof t.from=="number"?t.from:0,l=typeof t.to=="number"?t.to:1,u=t.easingFunction||(b=>b),f=b=>(b-s)/(a-s),h=b=>b*(l-c)+c,d=b=>Math.max(0,Math.min(1,b)),p=b=>{n!=null&&n.aborted?i("aborted"):(t.onUpdate(h(u(d(f(b))))),b<a?e(p):(t.onUpdate(h(u(1))),o()))};e(p)});return t.delay?n!=null&&n.aborted?Promise.reject("aborted"):Nk(t.delay).then(r):r()}class Uk{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 n=this.transitions.indexOf(e);n>=0&&this.transitions.splice(n,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(e=>{this._renderRequested=!1;const n=this.transitions;this.transitions=[];let r;for(;r=n.shift();)r(e);this._renderCallback(e)}))}transition(e){return zk({requestAnimationFrame:n=>this.requestTransition(n),...e})}}function ed(t,e,n,r,o){let i=0,s=!0,a=structuredClone(o),c=a;function l(h,d,p,b){return d+(h-d)*Math.pow(2,-p/b)}function u(h){if(s)return;const d=h-i;i=h;for(const b of Object.keys(c))a[b]=l(a[b],c[b],d,n);e(a);let p=-1/0;for(const b of Object.keys(c))p=Math.max(p,Math.abs(c[b]-a[b]));p<r?(a=c,e(a),s=!0,p!=0&&t.requestRender()):t.requestTransition(b=>u(b))}function f(h){c=h,s&&(s=!1,i=+document.timeline.currentTime,u(i))}return f.stop=()=>{s=!0},f}class Gk{constructor(e){this.genomes=new Map,this.baseUrl=e}async initialize(e){const n=new KD(e);return this.genomes.set(n.name,n),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 n=this.genomes.get(e);if(!n)throw new Error(`No genome with the name ${e} has been configured!`);return n}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 Hk="data:image/png;base64,iVBORw0KGgoAAAANSUhE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MxNZUAxse5cYNgkEQCnvFSXs7OnZvodNMpK5MG6OUdG+nrkwa49YB9+9gwzJ0/BoPBCMDwcOLllxOBQAKYnOTmTS5cgPx8mpupq8Pn4xHj9bq5IHn9QDicmguqryczSuAfIdtAGuG/IDMYDFsEIwCz44noaOLPv5GYgOlpgkGorKSzjWPHlHbZLAGwH9a0RBpgWehBNNoPebK+pAbU1LAeDAaDwZDLKzBEYiiRCCTiTZU3pjsRh4upqmL/fo4epaODR4vFMs88Q1kZgQCxGLZ9DXIdGbhDZy579mAwGAyGrMnloxAhPhSPBw4n7lYjV2tZFBWhCKC+Xsv/x5xuLy1FtsxlRwAgF05BBevBYDAYTAqojETZc4m25xLRKDMzSAC2b6ekhCeS88sCoOMp/rKdO+BQIIgCOP5mupRGYQpQxSEFEZAAhPvcg44OKAClQGkXxoJb2BubAw539txp+v889OYL/GVqpCMVAAB3APltOh0J8wcKqeLtMwBhXgQAUD0A8v+UfMvrbwUAAAjAezk/VtzlL/EBAKooCnk8AAAtAIBoEAAAAAEAABAAAAABAAA8yVeyLNvtdpfLRSnV7/dns1mj0ZC4AQAByPPcObderw+HQ61WG4/H3vvVaiVxAwACsN/vt9utc26z2dTr9cVi0W63n0sCIGIgAN77JEmOx2NeOp1OYQ2HAiBu4BK42WwaY6y1tzV8CGs4FABxA98AhsPhZDK5Xq+9Xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",Vk={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class qk{constructor(e){this._webGLHelper=e,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new Wn([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:Uh(vb),texture:e?this._createTextureNow(Hk):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(e,n="normal",r="regular"){if(rt(r)&&(r=Vk[r.toLowerCase()],!r))throw new Error("Unknown font weight: "+r);const o={family:e,style:n,weight:r};let i=this._fonts.get(o);return i||(i={metrics:void 0,texture:void 0},this._fonts.set(o,i),this._promises.push(this._loadFontEntry(i,o))),i}async _loadFontEntry(e,n){try{const r=await this._loadMetadata(n.family),o=Wk(r,n),i=this.fontRepository+Pb(n.family)+"/"+o.replace(/\.\w+/,""),s=this._createTexture(i+".png"),a=this._loadFont(i+".json");e.texture=await s,e.metrics=await a}catch{console.warn(`Cannot load font: "${n.family}". Using the embedded default font.`),e.metrics=this._defaultFontEntry.metrics,e.texture=this._defaultFontEntry.texture}}_loadFont(e){let n=this._fontPromises.get(e);return n||(n=fetch(e).then(r=>{if(!r.ok)throw new Error("Could not load font: "+r.status);return r}).then(r=>r.json()).then(r=>Uh(r)),this._fontPromises.set(e,n)),n}_loadMetadata(e){const n=Pb(e);let r=this._metadataPromises.get(n);if(!r){const o=this.fontRepository+n+"/METADATA.pb";r=fetch(o).then(i=>{if(!i.ok)throw new Error("Could not load font metadata. Response status: "+i.status+", url: "+o);return i}).then(i=>i.text()).then(i=>jk(i)).catch(i=>{console.warn(i.message)}),this._metadataPromises.set(n,r)}return r}getDefaultFont(){return this._defaultFontEntry}_createTexture(e){const n=this._webGLHelper.gl;return new Promise((r,o)=>{Hs(n,{src:e,min:n.LINEAR},(i,s,a)=>{i?o(i):r(s)})})}_createTextureNow(e){const n=this._webGLHelper.gl;let r;const o=new Promise((i,s)=>{r=Hs(n,{src:e,min:n.LINEAR},(a,c,l)=>{a?s(a):i(c)})});return this._promises.push(o),r}}function Pb(t){return t.toLowerCase().replaceAll(/[^\w]/g,"")}function jk(t){const e=t.split(`
|
|
559
|
-
`),n=[];let r;for(const o of e)if(o.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}),o.startsWith("}")&&(n.push(r),r=void 0),r){let i=o.match(/^\s*([A-Za-z_]+):[ ]?"(.*)"$/);if(i){const s=i[1];r[s]=i[2]}if(i=o.match(/^\s*([A-Za-z_]+):[ ]?(\d+)$/),i){const s=i[1];r[s]=+i[2]}}return n}function
|
|
560
|
-
`))if(o.startsWith(">"))r={identifier:o.match(/>(\S+)/)[1],sequence:""},n.push(r);else if(r)r.sequence+=o.trim();else throw new Error("Invalid fasta file!");return n}class
|
|
556
|
+
}`)(f,u));function v(A){r=A,o=A.length,n=0}function b(A,S,E,I){v(I),i=d(A,S,E);for(const _ of y)_(i);return i}return b}function lk(t,e){return Array.from({length:Math.ceil(t.length/e)},(n,r)=>t.slice(r*e,r*e+e))}class uk extends Ea{constructor(n,r){const o={channel:"x",windowSize:2e4,debounce:200,debounceMode:"domain",...n};super(r,o.channel);ge(this,Oi);Gt(this,"chrPrefixFixer",n=>n);if(this.params=o,!this.params.url)throw new Error("No URL provided for BamSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>j9),Promise.resolve().then(()=>Ta)]).then(([{BamFile:s},{RemoteFile:a}])=>{const c=l=>new a(va(l,this.view.getBaseUrl()));Ie(this,Oi,new s({bamFilehandle:c(this.params.url),baiFilehandle:c(this.params.indexUrl??this.params.url+".bai")})),W(this,Oi).getHeader().then(l=>{var h,d;const u=this.genome.hasChrPrefix(),f=(d=(h=W(this,Oi).indexToChr)==null?void 0:h[0])==null?void 0:d.refName.startsWith("chr");u&&!f?this.chrPrefixFixer=p=>p.replace("chr",""):!u&&f&&(this.chrPrefixFixer=p=>"chr"+p),i()})})})}get label(){return"bamSource"}async loadInterval(n){const r=await this.discretizeAndLoad(n,async(o,i)=>W(this,Oi).getRecordsForRange(this.chrPrefixFixer(o.chrom),o.startPos,o.endPos,{signal:i}).then(s=>s.map(a=>({chrom:o.chrom,start:a.start,end:a.end,name:a.name,cigar:a.CIGAR,mapq:a.mq,strand:a.strand===1?"+":"-"}))));r&&this.publishData(r)}}Oi=new WeakMap;class Dy extends Ea{constructor(n,r){const o={channel:"x",windowSize:3e6,debounce:200,debounceMode:"domain",addChrPrefix:!1,...n};super(r,o.channel);ge(this,rs);if(this.params=o,!this.params.url)throw new Error("No URL provided for TabixSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>tM),Promise.resolve().then(()=>Ta)]).then(async([{TabixIndexedFile:s},{RemoteFile:a}])=>{const c=u=>new a(va(u,this.view.getBaseUrl()));Ie(this,rs,new s({filehandle:c(this.params.url),tbiFilehandle:c(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 l=await W(this,rs).getHeader();await this._handleHeader(l),i()})})}async loadInterval(n){await this.initializedPromise;const r=await this.discretizeAndLoad(n,async(o,i)=>{const s=[];return await W(this,rs).getLines(o.chrom,o.startPos,o.endPos,{lineCallback:a=>{s.push(a)},signal:i}),this._parseFeatures(s)});r&&this.publishData(r)}async _handleHeader(n){}_parseFeatures(n){return[]}}rs=new WeakMap;class fk extends Dy{constructor(){super(...arguments);ge(this,Ka)}get label(){return"gff3Source"}async _handleHeader(n){Ie(this,Ka,(await Promise.resolve().then(()=>xM)).default)}_parseFeatures(n){var o;return(o=W(this,Ka))==null?void 0:o.parseStringSync(n.join(`
|
|
557
|
+
`),{parseSequences:!1})}}Ka=new WeakMap;class hk extends Dy{constructor(){super(...arguments);ge(this,Ja)}get label(){return"vcfSource"}async _handleHeader(n){const r=(await Promise.resolve().then(()=>EM)).default;Ie(this,Ja,new r({header:n}))}_parseFeatures(n){return n.map(r=>{const o=W(this,Ja).parseLine(r);return delete o.GENOTYPES,o.SAMPLES=o.SAMPLES(),o})}}Ja=new WeakMap;function dk(t,e){if(Ty(t))return new KB(t,e);if(JB(t))return new $B(t,e);if(ek(t))return new tk(t,e);if(pk(t))return Ek(t.lazy,e);throw new Error("Cannot figure out the data source type: "+JSON.stringify(t))}function pk(t){return"lazy"in t}function gk(t){return(t==null?void 0:t.type)=="axisTicks"}function mk(t){return(t==null?void 0:t.type)=="axisGenome"}function bk(t){return(t==null?void 0:t.type)=="indexedFasta"}function yk(t){return(t==null?void 0:t.type)=="bigwig"}function wk(t){return(t==null?void 0:t.type)=="bigbed"}function xk(t){return(t==null?void 0:t.type)=="bam"}function vk(t){return(t==null?void 0:t.type)=="gff3"}function Ak(t){return(t==null?void 0:t.type)=="vcf"}function Ek(t,e){if(gk(t))return new nk(t,e);if(mk(t))return new rk(t,e);if(bk(t))return new ik(t,e);if(yk(t))return new ok(t,e);if(wk(t))return new ak(t,e);if(xk(t))return new uk(t,e);if(vk(t))return new fk(t,e);if(Ak(t))return new hk(t,e);throw new Error("Cannot figure out the data source type: "+JSON.stringify(t))}function Sk(t){const e=By(t).filter(r=>typeof r=="string"),n=new Function("source","return { "+e.map(r=>JSON.stringify(r)).map(r=>`${r}: source[${r}]`).join(`,
|
|
558
|
+
`)+" };");return n.properties=e,n}function By(t){let e=[];do e=e.concat(Object.keys(t)),t=Object.getPrototypeOf(t);while(t&&t!==Object.prototype);return Array.from(new Set(e))}class Pl extends yt{constructor(){super({type:"clone"});ge(this,is);ge(this,$a,n=>n);const n=r=>{const o=By(r);(!W(this,is)||!kc(o,W(this,is)))&&(Ie(this,is,o),Ie(this,$a,Sk(r)));const i=W(this,$a);this.handle=s=>this._propagate(i(s)),this.handle(r)};this.handle=n,this.beginBatch=r=>{G1(r)&&(this.handle=n),super.beginBatch(r)}}get behavior(){return Un}}is=new WeakMap,$a=new WeakMap;function Ck(t){return"name"in t}class ky extends vo{constructor(n,r,o){super(r);ge(this,ec);this.provider=o,this.params=n}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(n){Ie(this,ec,n),this.loadSynchronously()}loadSynchronously(){const n=W(this,ec)??this.provider(this.params.name)??[];let r=o=>o;if(Array.isArray(n))n.length>0&&(r=Cy(n[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const o of n)this._propagate(r(o));this.complete()}async load(){this.loadSynchronously()}}ec=new WeakMap;class _y{constructor(){this._dataSourcesByHost=new Map,this._collectorsByHost=new Map,this._observers=new Map}get dataSources(){return[...new Set(this._dataSourcesByHost.values()).values()]}get collectors(){return[...this._collectorsByHost.values()]}addObserver(e,n){let r=this._observers.get(n);r||(r=[],this._observers.set(n,r)),r.push(e)}_relayObserverCallback(e,n){const r=this._observers.get(n);if(r)for(const o of r)o(e)}addDataSource(e,n){this._dataSourcesByHost.set(n,e)}findDataSourceByKey(e){return this._dataSourcesByHost.get(e)}findNamedDataSource(e){let n,r=[];for(const[o,i]of this._dataSourcesByHost.entries())if(i instanceof ky&&e==i.identifier){if(n&&n!==i)throw new Error(`Found multiple instances of named data: ${e}. Data flow optimization is broken (it's a bug).`);n=i,r.push(o)}if(n)return{dataSource:n,hosts:r}}addCollector(e,n){this._collectorsByHost.set(n,e),e.observers.push(r=>this._relayObserverCallback(r,n))}findCollectorByKey(e){return this._collectorsByHost.get(e)}initialize(){for(const e of this.dataSources)e.visit(n=>n.initialize())}}function Ik(t,e){const n=new Map,r=[];for(const o of t)n.set(o,{ref:o,children:[]});for(const o of n.values()){const i=n.get(e(o.ref));i?i.children.push(o):r.push(o)}return r}function Ry(t,e,n){var o,i;const r=(o=e.preOrder)==null?void 0:o.call(e,t);if(r)return r;for(const s of n(t)){const a=Ry(s,e,n);if(a==="stop")return a}return(i=e.postOrder)==null?void 0:i.call(e,t)}function Tk(t,e){return Ry(t,e,n=>n.children)}function Dk(t,e){const n=[],r=[];let o;const i=e??new _y,s=[];function a(d,p=()=>{}){if(!o)throw p()||new Error("Cannot append data flow node, no parent exist!");return o.addChild(d),o=d,n.push(d),d}function c(d,p){return a(d,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function l(d,p){for(const y of d){let v;try{v=WB(y,p)}catch(b){throw console.warn(b),new Error(`Cannot initialize "${y.type}" transform: ${b}`)}v.behavior&kr&&c(new Pl),c(v)}}function u(){return n.findLastIndex(d=>d instanceof wh)>n.findLastIndex(d=>d instanceof vo)}const f=d=>{if(d.spec.data){const p=Ck(d.spec.data)?new ky(d.spec.data,d,d.context.getNamedDataFromProvider):dk(d.spec.data,d);o=p,n.push(p),i.addDataSource(p,d)}if(d.spec.transform&&l(d.spec.transform,d),d instanceof en){if(!o)throw new Error(`A unit view (${d.getPathString()}) has no (inherited) data source`);const p=Bk(d);if(p){s.push(p.rewrite);for(const v of p.transforms)c(v)}d.mark.isPickingParticipant()&&!u()&&(c(new Pl),c(new wh({type:"identifier"})));const y=new xy({type:"collect",groupby:d.getFacetFields(),sort:kk(d,p==null?void 0:p.rewrittenEncoding)});a(y),i.addCollector(y,d)}},h=Ik(t.getDescendants(),d=>d.dataParent);for(const d of h)Tk(d,{preOrder:p=>{r.push({view:p.ref,nodeStackDepth:n.length}),f(p.ref)},postOrder:()=>{const{nodeStackDepth:p}=r.pop();n.length=p,o=n.at(-1)}});return s.forEach(d=>d()),i}function Bk(t){var i;const e=[],n={},r=[];for(const[s,a]of Object.entries(t.getEncoding())){const c=s;fa(c)&&wb(a)&&r.push({channel:c,chromPosDef:a})}const o=gc(r,s=>vi(s.channel),s=>s.chromPosDef.chrom);for(const[s,a]of o.entries())for(const[c,l]of a.entries()){const u=[],f=[],h=[];for(const{channel:d,chromPosDef:p}of l){const y=A=>A.replace(/[^A-Za-z0-9_]/g,""),v=["_linearized_",y(p.chrom),"_",y(p.pos)].join(""),b={...((i=t.spec.encoding)==null?void 0:i[d])??t.getEncoding()[d]??{},field:v};delete b.chrom,delete b.pos,!b.type&&p.type&&(b.type=p.type),n[d]=b,u.push(p.pos),h.push(p.offset??0),f.push(v)}e.push(new Pl),e.push(new vy({type:"linearizeGenomicCoordinate",channel:s,chrom:c,pos:u,offset:h,as:f},t))}return e.length?{transforms:e,rewrittenEncoding:n,rewrite:()=>{t.spec.encoding={...t.spec.encoding,...n},XT(t.mark,"encoding")}}:void 0}function kk(t,e){var r;const n={...t.getEncoding(),...e}.x;if(Xt(n)&&(r=t.getScaleResolution("x"))!=null&&r.isZoomable()){if(Rr(n))return"buildIndex"in n&&n.buildIndex?{field:n.field}:null;if(!la(n)){if(ua(n))throw new Error("A zoomable x channel must be mapped to a field.")}}}function Fy(t,e=void 0){if(t.parent!==e)return!1;for(const n of t.children)if(!Fy(n,t))return!1;return!0}function ed(t,e=!1){if(t.behavior&bh&&(e=!0),t instanceof Pl)if(e)e=!1;else{const n=t.children[0];t.excise(),n&&ed(n,e);return}t.behavior&Un&&(e=!1);for(let n=0,r=t.children.length;n<r;n++)ed(t.children[n],e||r>1)}function _k(t){const e=[...t._dataSourcesByHost.entries()],n=new Map;for(const r of e){const o=r[1];o.identifier&&!n.has(o.identifier)&&n.set(o.identifier,o)}t._dataSourcesByHost.clear();for(let[r,o]of e){const i=n.get(o.identifier);i&&(i.adoptChildrenOf(o),o=i),t.addDataSource(o,r)}}function Rk(t){if(ed(t),!Fy(t))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function Fk(t){_k(t);for(const e of t.dataSources)Rk(e)}function Mk(t){const e=new Set;t.visit(n=>{for(const r of Object.values(n.resolutions.scale)){const o=r.name;if(o&&e.has(o))throw new Error(`The same scale name "${o}" occurs in multiple scale resolutions!`);e.add(o)}})}function Pk(t){for(const e of xi){const n=t.getScaleResolution(e);n&&!n.name&&n.isZoomable()&&(n.name=`${e}_at_root`)}}async function Lk(t,e,n){const r=t.import;if(!("url"in r))throw new Error("Not an url import: "+JSON.stringify(r));const o=Ei(e,r.url);let i;try{const s=await fetch(o);if(!s.ok)throw new Error(`${s.status} ${s.statusText}`);i=await s.json()}catch(s){throw new Error(`Could not load imported view spec: ${o}. Reason: ${s.message}`)}if(n.isViewSpec(i))return i.baseUrl=Ei(ty(r.url),i.baseUrl),i;throw new Error(`The imported spec "${o}" is not a view spec: ${JSON.stringify(t)}`)}function Ok(t){const e=t.getSize(),n=t.getPadding(),r=(o,i)=>o.grow>0?void 0:o.px+i;return{width:r(e.width,n.horizontalTotal),height:r(e.height,n.verticalTotal)}}function tr(t){return()=>t}const Tn=class Tn{static create(e,n,r,o){return new Tn(tr(e),tr(n),tr(r),tr(o))}_offset(e,n){const r=this["_"+e];if(n===0)return r;switch(typeof n){case"number":return()=>r()+n;case"function":return()=>r()+n();default:throw new Error("Not a number of function")}}_passThrough(e){return this._offset(e,0)}constructor(e,n,r,o){this._x=e,this._y=n,this._width=r,this._height=o}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 n=r=>{const o=e[r];return typeof o=="number"?tr(o):typeof o=="function"?o:this._passThrough(r)};return new Tn(n("x"),n("y"),n("width"),n("height"))}translate(e,n){return e===0&&n===0?this:new Tn(this._offset("x",e),this._offset("y",n),this._passThrough("width"),this._passThrough("height"))}translateBy(e){return this.translate(e.x,e.y)}expand(e,n=1){return e.left==0&&e.top==0&&e.right==0&&e.bottom==0?this:new Tn(e.left?this._offset("x",-e.left*n):this._passThrough("x"),e.top?this._offset("y",-e.top*n):this._passThrough("y"),e.width?this._offset("width",e.width*n):this._passThrough("width"),e.height?this._offset("height",e.height*n):this._passThrough("height"))}shrink(e){return this.expand(e,-1)}intersect(e){return this===e||e==null?this:new Tn(()=>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 Tn(()=>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 Tn(tr(this.x),tr(this.y),tr(this.width),tr(this.height))}containsPoint(e,n){return e>=this.x&&e<this.x2&&n>=this.y&&n<this.y2}normalizePoint(e,n,r=!1){const o={x:(e-this.x)/this.width,y:(n-this.y)/this.height};return r&&(o.y=1-o.y),o}denormalizePoint(e,n,r=!1){return r&&(n=1-n),{x:this.x+e*this.width,y:this.y+n*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)}`}};Gt(Tn,"ZERO",Tn.create(0,0,0,0));let Hn=Tn;class My{constructor(e){this.globalOptions=e}pushView(e,n){}popView(e){}renderMark(e,n){}}class Py extends My{constructor(e,n){super(e),this.webGLHelper=n,this.buffer=[],this.coords=void 0,this.views=new Set}pushView(e,n){this.views.add(e),this.coords=n}renderMark(e,n){if(this.globalOptions.picking&&!e.isPickingParticipant())return;const r=e.render(n);r&&this.buffer.push({mark:e,callback:r,coords:this.coords,clipRect:n.clipRect})}render(){if(this.batch||this._buildBatch(),this.batch.length==0)return;const e=this.webGLHelper.gl,n=this.globalOptions.picking;e.bindFramebuffer(e.FRAMEBUFFER,n?this.webGLHelper._pickingBufferInfo.framebuffer:null),this.webGLHelper.clearAll();for(const r of this.views)r.onBeforeRender();for(const r of this.batch)r();n&&e.bindFramebuffer(e.FRAMEBUFFER,null)}_buildBatch(){this.batch=[];let e=!0,n=!0;const r=s=>()=>{e&&s()},o=s=>()=>{e&&n&&s()},i=gc(this.buffer.reverse(),s=>s.mark);for(const[s,a]of[...i.entries()].reverse()){if(!s.isReady())continue;this.batch.push(()=>{e=s.unitView.getEffectiveOpacity()>0}),this.batch.push(...s.prepareRender(this.globalOptions).map(l=>r(l)));let c;for(const l of a){const u=l.coords;u.equals(c)||this.batch.push(r(()=>{n=s.setViewport(u,l.clipRect)})),this.batch.push(o(l.callback)),c=l.coords}}}}class Nk extends My{constructor(...e){super({}),this.contexts=e}pushView(e,n){for(const r of this.contexts)r.pushView(e,n)}popView(e){for(const n of this.contexts)n.popView(e)}renderMark(e,n){for(const r of this.contexts)r.renderMark(e,n)}}class zk{constructor(e,n){this.point=e,this.uiEvent=n,this.stopped=!1,this.target=void 0}stopPropagation(){this.stopped=!0}get type(){return this.uiEvent.type}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}class Kt{static fromMouseEvent(e){return new Kt(e.clientX,e.clientY)}constructor(e,n){this.x=e,this.y=n}subtract(e){return new Kt(this.x-e.x,this.y-e.y)}add(e){return new Kt(this.x-e.x,this.y-e.y)}multiply(e){return new Kt(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 Uk=t=>new Promise(e=>setTimeout(e,t));function Gk(t){const e=t.requestAnimationFrame||window.requestAnimationFrame,n=t.signal,r=()=>new Promise((o,i)=>{if(n!=null&&n.aborted)return i("aborted");const s=performance.now(),a=s+(t.duration||1e3),c=typeof t.from=="number"?t.from:0,l=typeof t.to=="number"?t.to:1,u=t.easingFunction||(y=>y),f=y=>(y-s)/(a-s),h=y=>y*(l-c)+c,d=y=>Math.max(0,Math.min(1,y)),p=y=>{n!=null&&n.aborted?i("aborted"):(t.onUpdate(h(u(d(f(y))))),y<a?e(p):(t.onUpdate(h(u(1))),o()))};e(p)});return t.delay?n!=null&&n.aborted?Promise.reject("aborted"):Uk(t.delay).then(r):r()}class Hk{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 n=this.transitions.indexOf(e);n>=0&&this.transitions.splice(n,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(e=>{this._renderRequested=!1;const n=this.transitions;this.transitions=[];let r;for(;r=n.shift();)r(e);this._renderCallback(e)}))}transition(e){return Gk({requestAnimationFrame:n=>this.requestTransition(n),...e})}}function td(t,e,n,r,o){let i=0,s=!0,a=structuredClone(o),c=a;function l(h,d,p,y){return d+(h-d)*Math.pow(2,-p/y)}function u(h){if(s)return;const d=h-i;i=h;for(const y of Object.keys(c))a[y]=l(a[y],c[y],d,n);e(a);let p=-1/0;for(const y of Object.keys(c))p=Math.max(p,Math.abs(c[y]-a[y]));p<r?(a=c,e(a),s=!0,p!=0&&t.requestRender()):t.requestTransition(y=>u(y))}function f(h){c=h,s&&(s=!1,i=+document.timeline.currentTime,u(i))}return f.stop=()=>{s=!0},f}class Vk{constructor(e){this.genomes=new Map,this.baseUrl=e}async initialize(e){const n=new JD(e);return this.genomes.set(n.name,n),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 n=this.genomes.get(e);if(!n)throw new Error(`No genome with the name ${e} has been configured!`);return n}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 qk="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+y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ltOh0J8wcKqeLtMwBhXgQAUD0A8v+UfMvrbwUAAAjAezk/VtzlL/EBAKooCnk8AAAtAIBoEAAAAAEAABAAAAABAAA8yVeyLNvtdpfLRSnV7/dns1mj0ZC4AQAByPPcObderw+HQ61WG4/H3vvVaiVxAwACsN/vt9utc26z2dTr9cVi0W63n0sCIGIgAN77JEmOx2NeOp1OYQ2HAiBu4BK42WwaY6y1tzV8CGs4FABxA98AhsPhZDK5Xq+9Xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",jk={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class Wk{constructor(e){this._webGLHelper=e,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new Wn([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:Gh(Ay),texture:e?this._createTextureNow(qk):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(e,n="normal",r="regular"){if(rt(r)&&(r=jk[r.toLowerCase()],!r))throw new Error("Unknown font weight: "+r);const o={family:e,style:n,weight:r};let i=this._fonts.get(o);return i||(i={metrics:void 0,texture:void 0},this._fonts.set(o,i),this._promises.push(this._loadFontEntry(i,o))),i}async _loadFontEntry(e,n){try{const r=await this._loadMetadata(n.family),o=Qk(r,n),i=this.fontRepository+Ly(n.family)+"/"+o.replace(/\.\w+/,""),s=this._createTexture(i+".png"),a=this._loadFont(i+".json");e.texture=await s,e.metrics=await a}catch{console.warn(`Cannot load font: "${n.family}". Using the embedded default font.`),e.metrics=this._defaultFontEntry.metrics,e.texture=this._defaultFontEntry.texture}}_loadFont(e){let n=this._fontPromises.get(e);return n||(n=fetch(e).then(r=>{if(!r.ok)throw new Error("Could not load font: "+r.status);return r}).then(r=>r.json()).then(r=>Gh(r)),this._fontPromises.set(e,n)),n}_loadMetadata(e){const n=Ly(e);let r=this._metadataPromises.get(n);if(!r){const o=this.fontRepository+n+"/METADATA.pb";r=fetch(o).then(i=>{if(!i.ok)throw new Error("Could not load font metadata. Response status: "+i.status+", url: "+o);return i}).then(i=>i.text()).then(i=>Yk(i)).catch(i=>{console.warn(i.message)}),this._metadataPromises.set(n,r)}return r}getDefaultFont(){return this._defaultFontEntry}_createTexture(e){const n=this._webGLHelper.gl;return new Promise((r,o)=>{Vs(n,{src:e,min:n.LINEAR},(i,s,a)=>{i?o(i):r(s)})})}_createTextureNow(e){const n=this._webGLHelper.gl;let r;const o=new Promise((i,s)=>{r=Vs(n,{src:e,min:n.LINEAR},(a,c,l)=>{a?s(a):i(c)})});return this._promises.push(o),r}}function Ly(t){return t.toLowerCase().replaceAll(/[^\w]/g,"")}function Yk(t){const e=t.split(`
|
|
559
|
+
`),n=[];let r;for(const o of e)if(o.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}),o.startsWith("}")&&(n.push(r),r=void 0),r){let i=o.match(/^\s*([A-Za-z_]+):[ ]?"(.*)"$/);if(i){const s=i[1];r[s]=i[2]}if(i=o.match(/^\s*([A-Za-z_]+):[ ]?(\d+)$/),i){const s=i[1];r[s]=+i[2]}}return n}function Qk(t,e){let n,r=Number.POSITIVE_INFINITY;for(const o of t)if(e.family.localeCompare(o.name,void 0,{sensitivity:"accent"})==0&&e.style==o.style){const i=Math.abs(e.weight-o.weight);i<r&&(r=i,n=o)}return n==null?void 0:n.filename}function Zk(t,e){const n=[];let r;for(const o of t.split(`
|
|
560
|
+
`))if(o.startsWith(">"))r={identifier:o.match(/>(\S+)/)[1],sequence:""},n.push(r);else if(r)r.sequence+=o.trim();else throw new Error("Invalid fasta file!");return n}class Xk{constructor(e,n){this.animator=e,this.disabled=!!n,this.maxDistance=500,this.callback=null,this.targetValue=0,this.lastValue=0,this.smoother=td(e,r=>{var i;const o=r.x-this.lastValue;this.lastValue=r.x,(i=this.callback)==null||i.call(this,o)},40,.1,{x:0})}cancel(){this.lastValue!==this.targetValue&&(this.targetValue=X0([this.lastValue,this.targetValue],.3),this.smoother({x:this.targetValue}))}setMomentum(e,n){if(this.disabled){n(e);return}this.callback=n;const r=bo(this.targetValue+e-this.lastValue,-this.maxDistance,this.maxDistance);this.targetValue=this.lastValue+r,this.smoother({x:this.targetValue})}}function Kk(t){const e={},n=["string","number","boolean"],r=["wheelDelta","wheelDeltaX","wheelDeltaY"];for(const o in t){const i=o;!r.includes(o)&&n.includes(typeof t[i])&&(e[i]=t[i])}return e}const Oy=new Map,Jk={Organism:"Homo sapiens"};async function $k(t,e,n={}){const r=t.symbol,o={...Jk,...n,GENE:r};let i=Oy.get(r)??await n_(o);return i?(Oy.set(r,i),ot`
|
|
561
561
|
<div class="title">
|
|
562
562
|
<strong>${i.name}</strong>
|
|
563
563
|
${i.description}
|
|
564
564
|
</div>
|
|
565
565
|
<p class="summary">${i.summary}</p>
|
|
566
566
|
<p class="source">Source: NCBI RefSeq Gene</p>
|
|
567
|
-
`):null}async function
|
|
567
|
+
`):null}async function e_(t){const e={mode:"cors"},n=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi");n.search=new URLSearchParams({db:"gene",term:r_(t),sort:"relevance",retmax:"1",retmode:"json"}).toString();const o=(await fetch(n.toString(),e).then(i=>i.json())).esearchresult.idlist[0];if(o){const i=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi");return i.search=new URLSearchParams({db:"gene",id:o,retmode:"json"}).toString(),(await fetch(i.toString(),e).then(c=>c.json())).result[o]}else return null}const t_=Ml(e_,500);function n_(t){return t_(t)}function r_(t){return Object.entries(t).filter(([e,n])=>n&&n.length>0).map(([e,n])=>`("${n}"[${e}])`).join(" AND ")}const i_=Dt(".4~r"),o_=Dt(".4~e");function Ny(t){return t==null?ot` <span class="na">NA</span> `:rt(t)?t.substring(0,30):Number.isInteger(t)?""+t:Ht(t)?Math.abs(t)>Math.pow(10,8)||Math.abs(t)<Math.pow(10,-8)?o_(t):i_(t):us(t)?t?"True":"False":_t(t)?ot`${t.map((e,n)=>[Ny(e),n<t.length-1?", ":pt])}`:"?"+typeof t+" "+t}async function s_(t,e,n){const r=(l,u)=>{var f;for(const[h,d]of Object.entries(e.encoders))if((f=d==null?void 0:d.dataAccessor)!=null&&f.fields.includes(l))switch(h){case"color":case"fill":case"stroke":return ot`
|
|
568
568
|
<span
|
|
569
569
|
class="color-legend"
|
|
570
570
|
style=${`background-color: ${d(u)}`}
|
|
@@ -572,7 +572,7 @@ chrM 16299`};function ZD(t){if(!(t in $y))throw new Error(`Unknown assembly: ${t
|
|
|
572
572
|
`}return""},o=(l,u)=>{const f=l.filter(([h,d])=>!h.startsWith("_"));if(f.length!==0)return f.map(([h,d])=>d!==null&&typeof d=="object"&&!Array.isArray(d)?ot`${o(Object.entries(d),(u||"")+h+".")}`:ot`
|
|
573
573
|
<tr>
|
|
574
574
|
<th>${u}${h}</th>
|
|
575
|
-
<td>${
|
|
575
|
+
<td>${Ny(d)} ${r(h,t)}</td>
|
|
576
576
|
</tr>
|
|
577
577
|
`)},i=o(Object.entries(t));if(!i)return;const s=ot`
|
|
578
578
|
<table class="attributes">
|
|
@@ -582,14 +582,14 @@ chrM 16299`};function ZD(t){if(!(t in $y))throw new Error(`Unknown assembly: ${t
|
|
|
582
582
|
<div class="title">
|
|
583
583
|
<strong>${a}</strong>
|
|
584
584
|
</div>
|
|
585
|
-
`:"";return ot`${c}${s}`}class Ea extends gb{constructor(e,n,r,o,i,s){super(e,n,r,o,i,s),this.spec=e}async initializeChildren(){}*[Symbol.iterator](){}replaceChild(e,n){throw new Error("Not implemented")}visit(e){let n;try{n=e(this)}catch(r){throw r.view=this,r}if(n===va)return n;if(n!==dB){e.beforeChildren&&e.beforeChildren(this);for(const r of this){const o=r.visit(e);if(o===va)return o}e.afterChildren&&e.afterChildren(this),e.postOrder&&e.postOrder(this)}}findDescendantByPath(e){for(const n of this)if(n.name===e[0]){if(e.length==1)return n;if(n instanceof Ea)return n.findDescendantByPath(e.slice(1))}}findChildByName(e){for(const n of this)if(n.name===e)return n}findDescendantByName(e){let n;return this.visit(r=>{if(r.name==e)return n=r,va}),n}getDefaultResolution(e,n){return"shared"}}class Ao extends Ea{constructor(n,r,o,i,s,a){super(n,r,o,i,s,{layersChildren:!0,...a});ge(this,ar,[]);this.spec=n,this.needsAxes={x:!0,y:!0}}async initializeChildren(){Ie(this,ar,await Promise.all(this.spec.layer.map((n,r)=>this.context.createOrImportView(n,this,this,"grid"+r,o=>{if(!sd(o)&&!od(o))throw new Mr("LayerView accepts only unit or layer specs as children!",this)}))))}get children(){return W(this,ar).slice()}*[Symbol.iterator](){for(const n of W(this,ar))yield n}render(n,r,o={}){if(super.render(n,r,o),!!this.isConfiguredVisible()){n.pushView(this,r);for(const i of W(this,ar))i.render(n,r,o);n.popView(this)}}propagateInteractionEvent(n){this.handleInteractionEvent(void 0,n,!0);for(let r=W(this,ar).length-1;r>=0;r--)if(W(this,ar)[r].propagateInteractionEvent(n),n.stopped)return;this.handleInteractionEvent(void 0,n,!1)}}ar=new WeakMap;class Nb{constructor(e,n){this.n=e,this.maxCols=n??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=[],n=this.nCols,r=this.nRows;for(let o=0;o<r;o++){const i=[];e.push(i);for(let s=0;s<n;s++){const a=o*n+s;a<this.n&&i.push(a)}}return e}get colIndices(){const e=[],n=this.nCols,r=this.nRows;for(let o=0;o<n;o++){const i=[];e.push(i);for(let s=0;s<r;s++){const a=s*n+o;a<this.n&&i.push(a)}}return e}getCellIndex(e,n){let r=0;if(this.maxCols==1/0)r=n==0?e:void 0;else{if(e>=this.maxCols)return;r=n*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 o_="chromosome_ticks_and_labels",s_={x:"width",y:"height"};function td(t){return t=="x"?"y":"x"}const Pl={x:["bottom","top"],y:["left","right"]},nd=Object.fromEntries(Object.entries(Pl).map(([t,e])=>e.map(n=>[n,t])).flat(1));function Lr(t){return nd[t]}class zb extends Ao{constructor(e,n,r,o,i,s){const a=n=="locus",c={...a?c_:Ub,...a_(n,e),...e};super(a?l_(c,n):Gb(c,n),r,o,i,`axis_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...s}),this.axisProps=c}getSize(){const e={px:this.getPerpendicularSize()},n={grow:1};return nd[this.axisProps.orient]=="x"?new Pr(n,e):new Pr(e,n)}getPerpendicularSize(){return rd(this.axisProps)}isPickingSupported(){return!1}}function rd(t){const e=Lr(t.orient);let n=t.ticks&&t.tickSize||0;return t.labels&&(n+=t.labelPadding,e=="x"?n+=t.labelFontSize:n+=30),t.title&&(n+=t.titlePadding+t.titleFontSize),n=Math.min(t.maxExtent||1/0,Math.max(t.minExtent||0,n)),n}const Ub={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 a_(t,e){const n=e.orient,r=t=="nominal"||t=="ordinal";let o="center",i="middle",s=e.labelAngle??((n=="top"||n=="bottom")&&r?-90:0);switch(n){case"left":o="right";break;case"right":o="left";break;case"top":case"bottom":Math.abs(s)>30?(o=s>0==(n=="bottom")?"left":"right",i="middle"):i=n=="top"?"alphabetic":"top";break}return{labelAlign:o,labelAngle:s,labelBaseline:i}}function Gb(t,e){const n={...t,extent:rd(t)},r=Lr(n.orient),o=td(r),i=n.orient=="bottom"||n.orient=="right"?1:-1,s=n.orient=="bottom"||n.orient=="left"?1:0,a=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:n.domainDash,strokeCap:n.domainCap,color:n.domainColor,[o]:s,size:n.domainWidth}}),c=()=>({name:"labels",mark:{type:"text",clip:!1,align:n.labelAlign,angle:n.labelAngle,baseline:n.labelBaseline,[o+"Offset"]:(n.tickSize+n.labelPadding)*i,[o]:s,size:n.labelFontSize,color:n.labelColor,minBufferSize:1500},encoding:{[r]:{field:"value",type:e},text:{field:"label"}}}),l=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:n.tickDash,strokeCap:n.tickCap,color:n.tickColor,size:n.tickWidth,minBufferSize:300},encoding:{[o]:{value:s},[o+"2"]:{value:s-n.tickSize/n.extent*(s?1:-1)}}}),u=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:n.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(n.orient)],text:n.title,color:n.titleColor,[r]:.5,[o]:1-s}}),f=()=>{const d={name:"ticks_and_labels",encoding:{[r]:{field:"value",type:e}},layer:[]};return n.ticks&&d.layer.push(l()),n.labels&&d.layer.push(c()),d},h={resolve:{scale:{[r]:"forced"}},[s_[td(r)]]:n.extent,data:{lazy:{type:"axisTicks",channel:r,axis:t}},layer:[]};return n.domain&&h.layer.push(a()),(n.ticks||n.labels)&&h.layer.push(f()),n.title&&h.layer.push(u()),h}const c_={...Ub,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 l_(t,e){const n={...t,extent:rd(t)},r=Lr(n.orient),o=td(r),i=n.orient=="bottom"||n.orient=="left"?1:0,s=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:t.chromTickDash,strokeDashOffset:t.chromTickDashOffset,[o]:i,[o+"2"]:i-n.chromTickSize/n.extent*(i?1:-1),color:t.chromTickColor,size:n.chromTickWidth}}),a=()=>{let u;switch(n.orient){case"top":u={y:0,angle:0,paddingX:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":u={y:1,angle:0,paddingX:4,dy:n.chromLabelPadding+n.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":u={x:1,angle:-90,paddingY:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":u={x:0,angle:90,align:"right",paddingY:4,dy:-n.chromLabelPadding};break;default:u={}}return{name:"chromosome_labels",mark:{type:"text",size:n.chromLabelFontSize,font:n.chromLabelFont,fontWeight:n.chromLabelFontWeight,fontStyle:n.chromLabelFontStyle,color:n.chromLabelColor,align:t.chromLabelAlign,baseline:"alphabetic",clip:!1,...u},encoding:{[r+"2"]:{field:"continuousEnd",type:e},text:{field:"name"}}}};let c;switch(n.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 l=Gb({...t,...c},e);if(t.chromTicks||t.chromLabels){const u={name:o_,data:{lazy:{type:"axisGenome",channel:Lr(n.orient)}},encoding:{[r]:{field:"continuousStart",type:e,band:0}},layer:[]};if(t.chromTicks&&u.layer.push(s()),t.chromLabels){u.layer.push(a());let f;l.layer.filter(h=>h.name=="ticks_and_labels").forEach(h=>h.layer.filter(d=>d.name=="labels").forEach(d=>{f=d.mark})),f&&(n.orient=="top"||n.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}l.layer.push(u)}return l}class u_{constructor(e){ge(this,Oi);ge(this,Vr,0);ge(this,qr,0);Ie(this,Oi,new Array(e))}push(e){W(this,Oi)[W(this,Vr)]=e,Ie(this,Vr,(W(this,Vr)+1)%this.size),Ie(this,qr,Math.min(W(this,qr)+1,this.size))}get(){const e=W(this,Oi);return W(this,qr)<this.size?e.slice(0,W(this,qr)):e.slice(W(this,Vr),this.size).concat(e.slice(0,W(this,Vr)))}get size(){return W(this,Oi).length}get length(){return W(this,qr)}}Oi=new WeakMap,Vr=new WeakMap,qr=new WeakMap;let Ei,Hb=0;function Vb(){return performance.now()-Hb<50}function f_(t){return function(...e){Hb=performance.now(),t(...e)}}function h_(t,e,n,r,o){if(n=f_(n),t.type=="wheel"){t.uiEvent.preventDefault();const i=t.uiEvent,s=i.deltaMode?120:1;if(!i.deltaX&&!i.deltaY)return;Ei==null||Ei.stop();let{x:a,y:c}=t.point;if(r){const l=r.mark.encoders;l.x&&!l.x2&&!l.x.constant&&(a=+l.x(r.datum)*e.width+e.x),l.y&&!l.y2&&!l.y.constant&&(c=(1-+l.y(r.datum))*e.height+e.y)}Math.abs(i.deltaX)<Math.abs(i.deltaY)?n({x:a,y:c,xDelta:0,yDelta:0,zDelta:i.deltaY*s/300}):n({x:a,y:c,xDelta:-i.deltaX*s,yDelta:0,zDelta:0})}else if(t.type=="mousedown"&&t.mouseEvent.button===0){Ei&&Ei.stop();const i=new u_(30),s=t.mouseEvent;s.preventDefault();let a=Kt.fromMouseEvent(s);const c=f=>{const h=Kt.fromMouseEvent(f);i.push({point:h,timestamp:performance.now()});const d=h.subtract(a);n({x:a.x,y:a.y,xDelta:d.x,yDelta:d.y,zDelta:0}),a=h},l=()=>{const h=performance.now(),d=i.get().filter(S=>h-S.timestamp<160);if(d.length<5||!o||d_(d))return;const p=d.at(-1),b=d[0],v=p.point.subtract(b.point).multiply(1/(p.timestamp-b.timestamp));let y=a.x,A=a.y;Ei=ed(o,S=>{n({x:S.x,y:S.y,xDelta:y-S.x,yDelta:A-S.y,zDelta:0}),y=S.x,A=S.y},150,.5,{x:y,y:A}),Ei({x:a.x-v.x*250,y:a.y-v.y*250})},u=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),l()};document.addEventListener("mouseup",u,!1),document.addEventListener("mousemove",c,!1)}}function d_(t){const e=t[Math.floor(t.length/2)],n=e.point.subtract(t[0].point).multiply(e.timestamp-t[0].timestamp),r=t.at(-1).point.subtract(e.point).multiply(t.at(-1).timestamp-e.timestamp),o=n.length;return r.length/o<.4}class p_ extends Ao{constructor(e,n,r,o,i,s){const c={...n=="locus"?g_:qb,...e};super(w_(c,n),r,o,i,`axisGrid_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...s}),this.axisProps=c}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const qb={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},g_={...qb,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function m_(t,e){const n=t,r=Lr(n.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:r,axis:t}},mark:{type:"rule",strokeDash:n.gridDash,strokeCap:n.gridCap,color:n.gridColor,size:n.gridWidth,opacity:n.gridOpacity,minBufferSize:300},encoding:{[r]:{field:"value",type:e}}}}function y_(t,e){const n=t,r=Lr(n.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rule",strokeDash:n.chromGridDash,strokeCap:n.chromGridCap,color:n.chromGridColor,size:n.chromGridWidth,opacity:n.chromGridOpacity},encoding:{[r]:{field:"continuousStart",type:e,band:0}}}}function b_(t,e){const n=t,r=Lr(n.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:[n.chromGridFillEven??"white",n.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[n.chromGridFillEven?1:0,n.chromGridFillOdd?1:0]}}}}}function w_(t,e){const n={...t},r=[];return n.chromGrid&&(n.chromGridFillOdd||n.chromGridFillEven)&&r.push(b_(n,e)),n.chromGrid&&n.chromGridOpacity>0&&r.push(y_(n,e)),n.grid&&n.gridOpacity>0&&r.push(m_(n,e)),{name:"grid_layers",configurableVisibility:!1,resolve:{scale:{[Lr(t.orient)]:"forced",fill:"independent",opacity:"independent"}},layer:r}}const jb={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"},x_={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},v_={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},A_={start:0,middle:.5,end:1},E_={start:"left",middle:"center",end:"right"};function S_(t){if(!t)return;const e=rt(t)?{text:t}:t;if(!e.text||e.orient=="none")return;const n={"track-title":x_,overlay:v_}[e.style]??{},r={...jb,...n,...e};let o={},i={x:0,y:0};const s=A_[r.anchor??"middle"];switch(r.orient){case"top":i={x:s,y:1},o={baseline:"alphabetic",angle:0};break;case"right":i={x:1,y:1-s},o={baseline:"alphabetic",angle:90};break;case"bottom":i={x:s,y:0},o={baseline:"top",angle:0};break;case"left":i={x:0,y:s},o={baseline:"alphabetic",angle:-90};break}const a={...jb,...o,...n,...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,...i,...c,text:a.text,align:a.align??E_[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 Wb extends en{constructor(n,r){const o={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},n.layoutParent.context,n.layoutParent,n.view,"scrollbar-"+r,{blockEncodingInheritance:!0});ge(this,is);ge(this,ec,Hn.ZERO);ge(this,jr,0);ge(this,Ni,0);zt(this,"viewportOffset",0);this.config=o,Ie(this,is,r),this.interpolateViewportOffset=ed(this.context.animator,i=>{this.viewportOffset=i.x},50,.4,{x:this.viewportOffset}),this.addInteractionEventListener("mousedown",(i,s)=>{if(s.stopPropagation(),W(this,jr)<=0)return;const a=h=>r=="vertical"?h.clientY:h.clientX;s.mouseEvent.preventDefault();const c=this.scrollOffset,l=a(s.mouseEvent),u=h=>{const d=yo(a(h)-l+c,0,W(this,jr));this.interpolateViewportOffset({x:d/W(this,jr)*W(this,Ni)})},f=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f,!1),document.addEventListener("mousemove",u,!1)})}get scrollOffset(){return this.viewportOffset/W(this,Ni)*W(this,jr)}render(n,r,o){super.render(n,W(this,ec),o)}updateScrollbar(n,r){const o=this.config.scrollbarPadding,i=this.config.scrollbarSize,s=W(this,is)=="horizontal"?"width":"height",a=Math.min(1,n[s]/r[s]),c=n[s]-2*o,l=a*c;Ie(this,jr,c-l),Ie(this,Ni,r[s]-n[s]),this.viewportOffset=yo(this.viewportOffset,0,W(this,Ni)),Ie(this,ec,W(this,is)=="vertical"?new Hn(()=>n.x+n.width-i-o,()=>n.y+o+this.scrollOffset,()=>i,()=>l):new Hn(()=>n.x+o+this.scrollOffset,()=>n.y+n.height-i-o,()=>l,()=>i))}}is=new WeakMap,ec=new WeakMap,jr=new WeakMap,Ni=new WeakMap;class C_ extends Ao{constructor(e,n,r={}){const o=n(),i=Object.keys(o.intervals);if(wi.every(l=>!i.includes(l)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const s={name:"selectionRect",configurableVisibility:!1,resolve:{scale:{x:"forced",y:"forced"}},data:{values:Yb(n())},encoding:{},layer:[]};i.includes("x")&&(s.encoding.x={field:"_x",type:null,title:null},s.encoding.x2={field:"_x2"}),i.includes("y")&&(s.encoding.y={field:"_y",type:null,title:null},s.encoding.y2={field:"_y2"}),s.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...r}});const a=l=>{const u=e.view.getScaleResolution(l);return`format(datum._${l}2 - datum._${l}, '.3s')`+(u.type==="locus"?" + 'b'":"")},c=r.measure=="inside"?9:r.measure=="outside"?-9:0;i.includes("x")&&c!=0&&s.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:c,tooltip:null},encoding:{text:{expr:a("x")},y:i.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),i.includes("y")&&c!=0&&s.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:c,tooltip:null,angle:-90},encoding:{text:{expr:a("y")},x2:null}}),super(s,e.layoutParent.context,e.layoutParent,e.view,"selectionRect",{blockEncodingInheritance:!0,contributesToScaleDomain:!1}),n.addListener(()=>{const l=n();this.context.dataFlow.findDataSourceByKey(this).updateDynamicData(Yb(l))})}}function Yb(t){const e=t.intervals.x,n=t.intervals.y;return!e&&!n?[]:[{_x:e==null?void 0:e[0],_x2:e==null?void 0:e[1],_y:n==null?void 0:n[0],_y2:n==null?void 0:n[1]}]}class Qb{constructor(e,n,r){ge(this,pu);if(this.layoutParent=n,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=Hn.ZERO,e.needsAxes.x||e.needsAxes.y){const o=e.spec,i="view"in o?o==null?void 0:o.view:void 0,s=I_(i);s&&(this.background=new en(s,n.context,n,e,"background"+r,{blockEncodingInheritance:!0}));const a=T_(i);a&&(this.backgroundStroke=new en(a,n.context,n,e,"backgroundStroke"+r,{blockEncodingInheritance:!0}));const c=S_(e.spec.title);if(c){const l=new en(c,n.context,n,e,"title"+r,{blockEncodingInheritance:!0});this.title=l}}e.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new Wb(this,"horizontal")),e.spec.viewportHeight!=null&&(this.scrollbars.vertical=new Wb(this,"vertical")),de(this,pu,_v).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:n,gridLines:r}=this,o=(a,c)=>{const l=a.getAxisProps();if(l===null)return;const u=l?{...l}:{};if(!u.orient){for(const f of Pl[c])if(!n[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()),!Pl[c].includes(u.orient))throw new Error(`Invalid axis orientation "${u.orient}" on channel "${c}"!`);return u},i=async(a,c,l)=>{const u=o(a,c);if(u){if(n[u.orient])throw new Error(`An axis with the orient "${u.orient}" already exists!`);const f=new zb(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,l);n[u.orient]=f,await f.initializeChildren()}},s=async(a,c,l)=>{const u=o(a,c);if(u&&(u.grid||u.chromGrid)){const f=new p_(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,l);r[u.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 i(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 s(c,a,e)}if(e instanceof Ao){for(const a of e)for(const[c,l]of Object.entries(a.resolutions.axis)){const u=l.getAxisProps();u&&u.orient&&await i(l,c,a)}for(const a of e)for(const[c,l]of Object.entries(a.resolutions.axis)){const u=l.getAxisProps();u&&!u.orient&&await i(l,c,a)}}[...Object.values(n),...Object.values(r)].forEach(a=>a.visit(c=>{c instanceof en&&c.resolve("scale")}))}getOverhang(){const e=n=>{const r=this.axes[n];return r?Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0):0};return new Lt(e("top"),e("right"),e("bottom"),e("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}pu=new WeakSet,_v=function(){const e=this.view,n=r=>{this.view.context.glHelper.canvas.style.cursor=r};for(const[r,o]of e.paramMediator.paramConfigs){if(!("select"in o))continue;const i=Al(o.select);if(!py(i))continue;const s=i.encodings,a=Object.fromEntries(s.map(S=>{const E=this.view.getScaleResolution(S),I=E==null?void 0:E.scale;if(!I||!Et(I.type))throw new Error(`No continuous scale found for interval selection param "${r}" on channel "${S}"! Scale type is "${(I==null?void 0:I.type)??"none"}".`);return[S,E]}));if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let c=!1,l=!1,u=!1,f=null;const h=(S,E)=>Object.fromEntries(s.map(I=>[I,[Math.min(S[I],E[I]),Math.max(S[I],E[I])]])),d=e.paramMediator.createExpression(r),p=e.paramMediator.getSetter(r);o.value&&p({type:"interval",intervals:o.value});const b=()=>{p(fy(s)),n(null)};this.selectionRect=new C_(this,d,i.mark),this.selectionRect.initializeChildren();const v=S=>{const E={x:0,y:0},I=e.coords.normalizePoint(S.x,S.y,!0);for(const _ of s){const B=a[_].scale,N=B.invert(_=="x"?I.x:I.y);E[_]=N+(["index","locus"].includes(B.type)?.5:0)}return E},y=S=>{var N,F,M,C;const{intervals:E}=S,I=(Y,Q,se)=>{const oe=(be,he)=>he==null?null:a[be].scale(he),ae=oe("x",Y)??se,ce=oe("y",Q)??se;return e.coords.denormalizePoint(ae,ce,!0)},_=I((N=E.x)==null?void 0:N[0],(F=E.y)==null?void 0:F[0],0),B=I((M=E.x)==null?void 0:M[1],(C=E.y)==null?void 0:C[1],1);return Hn.create(_.x,_.y,B.x-_.x,B.y-_.y)};e.addInteractionEventListener("mousedown",(S,E)=>{if(E.mouseEvent.button!=0)return;if(f=c?y(d()):null,f)n("grabbing"),l=!0;else{const F=E.point;if(gy(d())&&(l=!0),E.mouseEvent.shiftKey)b(),u=!0;else if(gy(d())){const C=(Y,Q)=>{e.removeInteractionEventListener("mouseup",C);const se=Q.point;F.subtract(se).length<2&&b()};e.addInteractionEventListener("mouseup",C);return}else return}E.stopPropagation();const I=E.point,_=Kt.fromMouseEvent(E.mouseEvent).subtract(I),B=F=>{const M=Kt.fromMouseEvent(F).subtract(_);let C;if(f){const Y=M.subtract(I),Q=f.translate(Y.x,Y.y);C=h(v(new Kt(Q.x,Q.y)),v(new Kt(Q.x2,Q.y2)))}else C=h(v(I),v(M));for(const Y of s){const Q=a[Y],{zoomExtent:se,scale:oe}=Q,ae=C[Y];if(["index","locus"].includes(oe.type)&&(ae[0]=Math.ceil(ae[0]),ae[1]=Math.ceil(ae[1])),f){const ce=ae[1]-ae[0],be=se[0],he=se[1];ae[0]<be&&(ae[0]=be,ae[1]=be+ce),ae[1]>he&&(ae[1]=he,ae[0]=he-ce)}else ae[0]=Math.max(se[0],ae[0]),ae[1]=Math.min(se[1],ae[1]);ae[1]=Math.min(se[1],ae[1])}p({type:"interval",intervals:C})},N=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",N),u=!1,f&&(n("move"),f=null)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",N)}),e.addInteractionEventListener("click",(S,E)=>{E.mouseEvent.button==0&&l&&(E.stopPropagation(),l=!1)},!0);const A=S=>nT(d(),v(S));e.addInteractionEventListener("dblclick",(S,E)=>{A(E.point)&&(b(),E.stopPropagation())},!0),e.addInteractionEventListener("mousemove",(S,E)=>{A(E.point)?u||(c=!0,f||n("move")):(c=!1,f||n(null))})}};function I_(t){if(t!=null&&t.fill||t!=null&&t.fillOpacity||t!=null&&t.shadowOpacity)return{configurableVisibility:!1,data:{values:[{}]},mark:{color:t.fill,opacity:t.fillOpacity??(t.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:t.shadowBlur,shadowColor:t.shadowColor,shadowOffsetX:t.shadowOffsetX,shadowOffsetY:t.shadowOffsetY,shadowOpacity:t.shadowOpacity}}}function T_(t){if(!(!t||!t.stroke||t.strokeWidth===0||t.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:t.strokeWidth??1,color:t.stroke??"lightgray",strokeCap:"square",opacity:t.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 D_ extends Ea{constructor(n,r,o,i,s,a,c){super(n,r,o,i,s,c);ge(this,He);ge(this,os,1/0);ge(this,ss,10);ge(this,nn,[]);ge(this,zi,{});ge(this,as,0);this.spec=n,Ie(this,ss,n.spacing??10),Ie(this,os,a),Ie(this,nn,[]),this.wrappingFacet=!1}appendChild(n){n.layoutParent??(n.layoutParent=this),W(this,nn).push(new Qb(n,this,W(this,as))),xv(this,as)._++}setChildren(n){Ie(this,nn,[]);for(const r of n)this.appendChild(r)}replaceChild(n,r){const o=W(this,nn).findIndex(i=>i.view==n);if(o>=0)W(this,nn)[o]=new Qb(r,this,W(this,as));else throw new Error("Not my child view!")}get children(){return W(this,nn).map(n=>n.view)}get childCount(){return W(this,nn).length}async createAxes(){const n=[];for(const r of wi){const o=this.resolutions.axis[r];if(o){const i=o.getAxisProps();if(i){const s={title:o.getTitle(),orient:Pl[r][0],...i},a=new zb(s,o.scaleResolution.type,this.context,this,this);n.push(a.initializeChildren()),W(this,zi)[r]=a}}}return Promise.all([...n,...W(this,nn).map(r=>r.createAxes())])}*[Symbol.iterator](){for(const n of W(this,nn))yield*n.getChildren();for(const n of Object.values(W(this,zi)))yield n}getOverhang(){return de(this,He,Fv).call(this).union(de(this,He,yu).call(this))}getSize(){return this._cache("size",()=>new Pr(de(this,He,z0).call(this,"column"),de(this,He,z0).call(this,"row")).addPadding(de(this,He,yu).call(this)))}render(n,r,o={}){if(super.render(n,r,o),!this.isConfiguredVisible())return;this.layoutParent||(r=r.shrink(this.getPadding())),r=r.shrink(de(this,He,yu).call(this)),n.pushView(this,r);const i={devicePixelRatio:this.context.devicePixelRatio},s=fb(de(this,He,N0).call(this,"column"),r.width,i),a=fb(de(this,He,N0).call(this,"row"),r.height,i),c=new Nb(W(this,He,Gi).length,W(this,os)??1/0),l=u=>Math.round(u*devicePixelRatio)/devicePixelRatio;for(const[u,f]of W(this,He,Gi).entries()){const{view:h,axes:d,gridLines:p,background:b,backgroundStroke:v,title:y,selectionRect:A}=f,[S,E]=c.getCellCoords(u),I=s[de(this,He,U0).call(this,"column",S)],_=a[de(this,He,U0).call(this,"row",E)],B=h.getViewportSize(),N=h.getSize(),F=h.getOverhang(),M=I.location-F.left,C=_.location-F.top,Y=(q,j)=>(q[j].grow?(j=="width"?I:_).size:q[j].px)+F[j],Q=Y(B,"width"),se=Y(B,"height"),oe=Y(N,"width"),ae=Y(N,"height"),ce=f.scrollbars.horizontal,be=f.scrollbars.vertical,he=ce?()=>l(ce.viewportOffset):()=>0,De=be?()=>l(be.viewportOffset):()=>0,we=new Hn(()=>r.x+M,()=>r.y+C,()=>Q,()=>se),Ee=h.isScrollable(),Te=Ee?new Hn(()=>r.x+M-he(),()=>r.y+C-De(),()=>oe,()=>ae):we;f.coords=we;const Ge=o.clipRect?we.intersect(o.clipRect):we;b==null||b.render(n,Ge,{...o,clipRect:void 0});for(const q of Object.values(p))q.render(n,we,o);const Ve=k_(h)||Ee;Ve&&h.render(n,Te,{...o,clipRect:Ge}),v==null||v.render(n,Ge,{...o,clipRect:void 0});for(const[q,j]of Object.entries(d)){const ee=q=="left"||q=="right"?"vertical":"horizontal",J=f.scrollbars[ee],fe=J?we.modify(ee=="vertical"?{y:()=>Te.y,height:ae}:{x:()=>Te.x,width:oe}):we,L=Zb(fe,q,j);let D=o.clipRect;J&&(D=L.intersect(D).intersect(J?we.modify(ee=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),j.render(n,L,{...o,clipRect:D})}for(const q of Object.values(W(this,zi))){const ee=q.axisProps.orient;(ee=="left"&&S==0||ee=="right"&&S==c.nCols-1||ee=="top"&&E==0||ee=="bottom"&&E==c.nRows-1)&&q.render(n,Zb(we.shrink(f.view.getOverhang()),ee,q),o)}Ve||h.render(n,Te,o),A==null||A.render(n,Te,o);for(const q of Object.values(f.scrollbars))q.updateScrollbar(we,Te),q.render(n,r,o);y==null||y.render(n,we,o)}n.popView(this)}propagateInteractionEvent(n){if(this.handleInteractionEvent(void 0,n,!0),n.stopped)return;const r=W(this,He,Gi).find(i=>i.coords.containsPoint(n.point.x,n.point.y));for(const i of Object.values((r==null?void 0:r.scrollbars)??{}))if(i.coords.containsPoint(n.point.x,n.point.y)&&(i.propagateInteractionEvent(n),n.stopped))return;const o=r==null?void 0:r.view;if(o){if(o.propagateInteractionEvent(n),n.stopped)return;(o instanceof en||o instanceof Ao)&&h_(n,r.coords,i=>de(this,He,Mv).call(this,r.coords,r.view,i),this.context.getCurrentHover(),this.context.animator)}n.stopped||this.handleInteractionEvent(void 0,n,!1)}getDefaultResolution(n,r){return"independent"}}os=new WeakMap,ss=new WeakMap,nn=new WeakMap,zi=new WeakMap,as=new WeakMap,He=new WeakSet,Gi=function(){return W(this,nn).filter(n=>n.view.isConfiguredVisible())},Rv=function(){return new Nb(W(this,He,Gi).length,W(this,os)??1/0)},ic=function(n){const r=n=="column"?"width":"height",o=(i,s)=>i.map(a=>{const l=W(this,He,Gi)[a].getOverhangAndPadding();return n=="column"?s?l.right:l.left:s?l.bottom:l.top}).reduce((a,c)=>Math.max(a,c),0);return this._cache(`size/directionSizes/${n}`,()=>W(this,He,Rv)[n=="column"?"colIndices":"rowIndices"].map(i=>({axisBefore:o(i,0),axisAfter:o(i,1),view:uB(i.map(s=>W(this,He,Gi)[s].view.getViewportSize()[r]))})))},N0=function(n){const r=de(this,He,ic).call(this,n),o=[];o.push(wa);for(const[i,s]of r.entries())i>0&&o.push({px:W(this,ss),grow:0}),(i==0||this.wrappingFacet)&&o.push(wa),o.push({px:s.axisBefore,grow:0}),o.push(s.view),o.push({px:s.axisAfter,grow:0}),(i==r.length-1||this.wrappingFacet)&&o.push(wa);return o},z0=function(n){let r=0,o=0;const i=n=="row"?this.spec.height:this.spec.width;if(i||i===0)return db(i);const s=de(this,He,ic).call(this,n);for(const[a,c]of s.entries())a>0&&(o+=W(this,ss)),(a==0||this.wrappingFacet)&&(o+=0),o+=c.axisBefore,o+=c.view.px??0,r+=c.view.grow??0,o+=c.axisAfter,(a==s.length-1||this.wrappingFacet)&&(o+=0);return{px:o,grow:r}},U0=function(n,r){return n=="row"&&this.wrappingFacet?1+6*r+2:2+4*r+1},Fv=function(){const n=de(this,He,ic).call(this,"column"),r=de(this,He,ic).call(this,"row");return!n.length||!r.length?Lt.zero():new Lt(r.at(0).axisBefore,n.at(-1).axisAfter,r.at(-1).axisAfter,n.at(0).axisBefore)},yu=function(){const n=r=>{const o=nd[r],i=W(this,zi)[o];return(i==null?void 0:i.axisProps.orient)!==r?0:Math.max(i.getPerpendicularSize()+(i.axisProps.offset??0),0)};return new Lt(n("top"),n("right"),n("bottom"),n("left"))},Mv=function(n,r,o){for(const[i,s]of Object.entries(B_(r))){if(s.size<=0)continue;const a=n.normalizePoint(o.x,o.y),c=n.normalizePoint(o.x+o.xDelta,o.y+o.yDelta),l={x:c.x-a.x,y:c.y-a.y};for(const u of s)u.zoom(2**o.zDelta,i=="y"?1-a[i]:a[i],i=="x"?l.x:-l.y)}this.context.animator.requestRender()};function B_(t){const e={x:new Set,y:new Set};return t.visit(n=>{for(const[r,o]of Object.entries(e)){const i=n.getScaleResolution(r);i&&i.isZoomable()&&o.add(i)}}),e}function k_(t){let e=!0;return t.visit(n=>{n instanceof en&&e&&(e=n.mark.properties.clip===!0)}),e}function Zb(t,e,n){const r=n.axisProps,o=n.getPerpendicularSize();if(e=="bottom")return t.translate(0,t.height+r.offset).modify({height:o});if(e=="top")return t.translate(0,-o-r.offset).modify({height:o});if(e=="left")return t.translate(-o-r.offset,0).modify({width:o});if(e=="right")return t.translate(t.width+r.offset,0).modify({width:o})}class id extends D_{constructor(e,n,r,o,i){super(e,n,r,o,i,ad(e)?e.columns:Ll(e)?1:1/0),this.spec=e}async initializeChildren(){const e=this.spec,n=ad(e)?e.concat:Ll(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(n.map((r,o)=>this.context.createOrImportView(r,this,this,"grid"+o)))),await this.createAxes()}getDefaultResolution(e,n){return n=="axis"?"independent":Ll(this.spec)&&e==="x"||Jb(this.spec)&&e==="y"?"shared":"independent"}}const Xb="viewRoot";class __{constructor(e={}){ge(this,cs,new Map);this.options={allowImport:!0,wrapRoot:!0,...e};const n=r=>(o,i,s,a,c)=>new r(o,i,s,a,o.name??c);this.addViewType(sd,n(Ao)),this.addViewType(od,n(en)),this.addViewType(Ll,n(id)),this.addViewType(Jb,n(id)),this.addViewType(ad,n(id)),this.addViewType(M_,()=>{throw new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!")})}addViewType(e,n){W(this,cs).set(e,n)}createView(e,n,r,o,i){for(const[s,a]of W(this,cs))if(s(e))return a(e,n,r,o,i);throw new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(e)]))}isViewSpec(e){const n=[...W(this,cs).keys()].filter(r=>r(e));if(n.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return n.length==1}async createOrImportView(e,n,r,o,i,s){let a;if(F_(e)){let u;if("url"in e.import)if(this.options.allowImport)u=await Mk(e,o.getBaseUrl(),n);else throw new Mr("Importing views is not allowed!",r);else if("template"in e.import)u=Kb(e.import.template,o);else throw new Error("Invalid import: "+JSON.stringify(e));s==null||s(u),R_(u,e),a=u}else a=e;const c=u=>{var f;return(f=u==null?void 0:u.params)==null?void 0:f.some(h=>ay(h)&&Al(h.select).type=="interval")};!o&&this.options.wrapRoot&&(od(a)||sd(a)||c(a))&&i===Xb&&(a={name:"implicitRoot",vconcat:[a]});const l=this.createView(a,n,r,o,i);return l instanceof Ea&&await l.initializeChildren(),l}}cs=new WeakMap;function Kb(t,e){var r,o;const n=(o=(r=e.spec)==null?void 0:r.templates)==null?void 0:o[t];if(n)return structuredClone(n);if(e.dataParent)return Kb(t,e.dataParent);throw new Error(`Cannot find template "${t}" in current view or its ancestors!`)}function R_(t,e){e.name!=null&&(t.name=e.name);const n=_t(e.params)?e.params:Rt(e.params)?Object.entries(e.params).map(([r,o])=>({name:r,value:o})):[];if(n.length){t.params??(t.params=[]);for(const r of n){const o=t.params.findIndex(i=>i.name==r.name);o>=0&&(t.params[o]=r)}for(const r of n)t.params.some(o=>o.name==r.name)||t.params.push(r)}}function od(t){return"mark"in t&&(rt(t.mark)||Rt(t.mark))}function sd(t){return"layer"in t&&Rt(t.layer)}function F_(t){return"import"in t}function Ll(t){return"vconcat"in t&&_t(t.vconcat)}function Jb(t){return"hconcat"in t&&_t(t.hconcat)}function ad(t){return"concat"in t&&_t(t.concat)}function M_(t){return"samples"in t&&Rt(t.samples)&&"spec"in t&&Rt(t.spec)}function P_(t){const e=Math.floor(Math.random()*16777215).toString(16),n=[];for(const r of t.paramConfigs.values()){if(!$I(r))continue;const o=r.bind;if(!o||!("input"in o))continue;const i=r.name,s=t.getSetter(i),a=t.getValue(i),c=o.name??i,l=o.debounce?Fl(s,o.debounce,!1):s,u=`${e}-param-${i}`;if(o.input=="range")n.push(ot`<label for=${u}>${c}</label>
|
|
585
|
+
`:"";return ot`${c}${s}`}class Sa extends my{constructor(e,n,r,o,i,s){super(e,n,r,o,i,s),this.spec=e}async initializeChildren(){}*[Symbol.iterator](){}replaceChild(e,n){throw new Error("Not implemented")}visit(e){let n;try{n=e(this)}catch(r){throw r.view=this,r}if(n===Aa)return n;if(n!==pB){e.beforeChildren&&e.beforeChildren(this);for(const r of this){const o=r.visit(e);if(o===Aa)return o}e.afterChildren&&e.afterChildren(this),e.postOrder&&e.postOrder(this)}}findDescendantByPath(e){for(const n of this)if(n.name===e[0]){if(e.length==1)return n;if(n instanceof Sa)return n.findDescendantByPath(e.slice(1))}}findChildByName(e){for(const n of this)if(n.name===e)return n}findDescendantByName(e){let n;return this.visit(r=>{if(r.name==e)return n=r,Aa}),n}getDefaultResolution(e,n){return"shared"}}class Ao extends Sa{constructor(n,r,o,i,s,a){super(n,r,o,i,s,{layersChildren:!0,...a});ge(this,ar,[]);this.spec=n,this.needsAxes={x:!0,y:!0}}async initializeChildren(){Ie(this,ar,await Promise.all(this.spec.layer.map((n,r)=>this.context.createOrImportView(n,this,this,"grid"+r,o=>{if(!ad(o)&&!sd(o))throw new Mr("LayerView accepts only unit or layer specs as children!",this)}))))}get children(){return W(this,ar).slice()}*[Symbol.iterator](){for(const n of W(this,ar))yield n}render(n,r,o={}){if(super.render(n,r,o),!!this.isConfiguredVisible()){n.pushView(this,r);for(const i of W(this,ar))i.render(n,r,o);n.popView(this)}}propagateInteractionEvent(n){this.handleInteractionEvent(void 0,n,!0);for(let r=W(this,ar).length-1;r>=0;r--)if(W(this,ar)[r].propagateInteractionEvent(n),n.stopped)return;this.handleInteractionEvent(void 0,n,!1)}}ar=new WeakMap;class zy{constructor(e,n){this.n=e,this.maxCols=n??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=[],n=this.nCols,r=this.nRows;for(let o=0;o<r;o++){const i=[];e.push(i);for(let s=0;s<n;s++){const a=o*n+s;a<this.n&&i.push(a)}}return e}get colIndices(){const e=[],n=this.nCols,r=this.nRows;for(let o=0;o<n;o++){const i=[];e.push(i);for(let s=0;s<r;s++){const a=s*n+o;a<this.n&&i.push(a)}}return e}getCellIndex(e,n){let r=0;if(this.maxCols==1/0)r=n==0?e:void 0;else{if(e>=this.maxCols)return;r=n*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 a_="chromosome_ticks_and_labels",c_={x:"width",y:"height"};function nd(t){return t=="x"?"y":"x"}const Ll={x:["bottom","top"],y:["left","right"]},rd=Object.fromEntries(Object.entries(Ll).map(([t,e])=>e.map(n=>[n,t])).flat(1));function Lr(t){return rd[t]}class Uy extends Ao{constructor(e,n,r,o,i,s){const a=n=="locus",c={...a?u_:Gy,...l_(n,e),...e};super(a?f_(c,n):Hy(c,n),r,o,i,`axis_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...s}),this.axisProps=c}getSize(){const e={px:this.getPerpendicularSize()},n={grow:1};return rd[this.axisProps.orient]=="x"?new Pr(n,e):new Pr(e,n)}getPerpendicularSize(){return id(this.axisProps)}isPickingSupported(){return!1}}function id(t){const e=Lr(t.orient);let n=t.ticks&&t.tickSize||0;return t.labels&&(n+=t.labelPadding,e=="x"?n+=t.labelFontSize:n+=30),t.title&&(n+=t.titlePadding+t.titleFontSize),n=Math.min(t.maxExtent||1/0,Math.max(t.minExtent||0,n)),n}const Gy={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 l_(t,e){const n=e.orient,r=t=="nominal"||t=="ordinal";let o="center",i="middle",s=e.labelAngle??((n=="top"||n=="bottom")&&r?-90:0);switch(n){case"left":o="right";break;case"right":o="left";break;case"top":case"bottom":Math.abs(s)>30?(o=s>0==(n=="bottom")?"left":"right",i="middle"):i=n=="top"?"alphabetic":"top";break}return{labelAlign:o,labelAngle:s,labelBaseline:i}}function Hy(t,e){const n={...t,extent:id(t)},r=Lr(n.orient),o=nd(r),i=n.orient=="bottom"||n.orient=="right"?1:-1,s=n.orient=="bottom"||n.orient=="left"?1:0,a=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:n.domainDash,strokeCap:n.domainCap,color:n.domainColor,[o]:s,size:n.domainWidth}}),c=()=>({name:"labels",mark:{type:"text",clip:!1,align:n.labelAlign,angle:n.labelAngle,baseline:n.labelBaseline,[o+"Offset"]:(n.tickSize+n.labelPadding)*i,[o]:s,size:n.labelFontSize,color:n.labelColor,minBufferSize:1500},encoding:{[r]:{field:"value",type:e},text:{field:"label"}}}),l=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:n.tickDash,strokeCap:n.tickCap,color:n.tickColor,size:n.tickWidth,minBufferSize:300},encoding:{[o]:{value:s},[o+"2"]:{value:s-n.tickSize/n.extent*(s?1:-1)}}}),u=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:n.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(n.orient)],text:n.title,color:n.titleColor,[r]:.5,[o]:1-s}}),f=()=>{const d={name:"ticks_and_labels",encoding:{[r]:{field:"value",type:e}},layer:[]};return n.ticks&&d.layer.push(l()),n.labels&&d.layer.push(c()),d},h={resolve:{scale:{[r]:"forced"}},[c_[nd(r)]]:n.extent,data:{lazy:{type:"axisTicks",channel:r,axis:t}},layer:[]};return n.domain&&h.layer.push(a()),(n.ticks||n.labels)&&h.layer.push(f()),n.title&&h.layer.push(u()),h}const u_={...Gy,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 f_(t,e){const n={...t,extent:id(t)},r=Lr(n.orient),o=nd(r),i=n.orient=="bottom"||n.orient=="left"?1:0,s=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:t.chromTickDash,strokeDashOffset:t.chromTickDashOffset,[o]:i,[o+"2"]:i-n.chromTickSize/n.extent*(i?1:-1),color:t.chromTickColor,size:n.chromTickWidth}}),a=()=>{let u;switch(n.orient){case"top":u={y:0,angle:0,paddingX:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":u={y:1,angle:0,paddingX:4,dy:n.chromLabelPadding+n.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":u={x:1,angle:-90,paddingY:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":u={x:0,angle:90,align:"right",paddingY:4,dy:-n.chromLabelPadding};break;default:u={}}return{name:"chromosome_labels",mark:{type:"text",size:n.chromLabelFontSize,font:n.chromLabelFont,fontWeight:n.chromLabelFontWeight,fontStyle:n.chromLabelFontStyle,color:n.chromLabelColor,align:t.chromLabelAlign,baseline:"alphabetic",clip:!1,...u},encoding:{[r+"2"]:{field:"continuousEnd",type:e},text:{field:"name"}}}};let c;switch(n.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 l=Hy({...t,...c},e);if(t.chromTicks||t.chromLabels){const u={name:a_,data:{lazy:{type:"axisGenome",channel:Lr(n.orient)}},encoding:{[r]:{field:"continuousStart",type:e,band:0}},layer:[]};if(t.chromTicks&&u.layer.push(s()),t.chromLabels){u.layer.push(a());let f;l.layer.filter(h=>h.name=="ticks_and_labels").forEach(h=>h.layer.filter(d=>d.name=="labels").forEach(d=>{f=d.mark})),f&&(n.orient=="top"||n.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}l.layer.push(u)}return l}class h_{constructor(e){ge(this,Ni);ge(this,Vr,0);ge(this,qr,0);Ie(this,Ni,new Array(e))}push(e){W(this,Ni)[W(this,Vr)]=e,Ie(this,Vr,(W(this,Vr)+1)%this.size),Ie(this,qr,Math.min(W(this,qr)+1,this.size))}get(){const e=W(this,Ni);return W(this,qr)<this.size?e.slice(0,W(this,qr)):e.slice(W(this,Vr),this.size).concat(e.slice(0,W(this,Vr)))}get size(){return W(this,Ni).length}get length(){return W(this,qr)}}Ni=new WeakMap,Vr=new WeakMap,qr=new WeakMap;let Si,Vy=0;function qy(){return performance.now()-Vy<50}function d_(t){return function(...e){Vy=performance.now(),t(...e)}}function p_(t,e,n,r,o){if(n=d_(n),t.type=="wheel"){t.uiEvent.preventDefault();const i=t.uiEvent,s=i.deltaMode?120:1;if(!i.deltaX&&!i.deltaY)return;Si==null||Si.stop();let{x:a,y:c}=t.point;if(r){const l=r.mark.encoders;l.x&&!l.x2&&!l.x.constant&&(a=+l.x(r.datum)*e.width+e.x),l.y&&!l.y2&&!l.y.constant&&(c=(1-+l.y(r.datum))*e.height+e.y)}Math.abs(i.deltaX)<Math.abs(i.deltaY)?n({x:a,y:c,xDelta:0,yDelta:0,zDelta:i.deltaY*s/300}):n({x:a,y:c,xDelta:-i.deltaX*s,yDelta:0,zDelta:0})}else if(t.type=="mousedown"&&t.mouseEvent.button===0){Si&&Si.stop();const i=new h_(30),s=t.mouseEvent;s.preventDefault();let a=Kt.fromMouseEvent(s);const c=f=>{const h=Kt.fromMouseEvent(f);i.push({point:h,timestamp:performance.now()});const d=h.subtract(a);n({x:a.x,y:a.y,xDelta:d.x,yDelta:d.y,zDelta:0}),a=h},l=()=>{const h=performance.now(),d=i.get().filter(S=>h-S.timestamp<160);if(d.length<5||!o||g_(d))return;const p=d.at(-1),y=d[0],v=p.point.subtract(y.point).multiply(1/(p.timestamp-y.timestamp));let b=a.x,A=a.y;Si=td(o,S=>{n({x:S.x,y:S.y,xDelta:b-S.x,yDelta:A-S.y,zDelta:0}),b=S.x,A=S.y},150,.5,{x:b,y:A}),Si({x:a.x-v.x*250,y:a.y-v.y*250})},u=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),l()};document.addEventListener("mouseup",u,!1),document.addEventListener("mousemove",c,!1)}}function g_(t){const e=t[Math.floor(t.length/2)],n=e.point.subtract(t[0].point).multiply(e.timestamp-t[0].timestamp),r=t.at(-1).point.subtract(e.point).multiply(t.at(-1).timestamp-e.timestamp),o=n.length;return r.length/o<.4}class m_ extends Ao{constructor(e,n,r,o,i,s){const c={...n=="locus"?b_:jy,...e};super(v_(c,n),r,o,i,`axisGrid_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...s}),this.axisProps=c}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const jy={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},b_={...jy,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function y_(t,e){const n=t,r=Lr(n.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:r,axis:t}},mark:{type:"rule",strokeDash:n.gridDash,strokeCap:n.gridCap,color:n.gridColor,size:n.gridWidth,opacity:n.gridOpacity,minBufferSize:300},encoding:{[r]:{field:"value",type:e}}}}function w_(t,e){const n=t,r=Lr(n.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rule",strokeDash:n.chromGridDash,strokeCap:n.chromGridCap,color:n.chromGridColor,size:n.chromGridWidth,opacity:n.chromGridOpacity},encoding:{[r]:{field:"continuousStart",type:e,band:0}}}}function x_(t,e){const n=t,r=Lr(n.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:[n.chromGridFillEven??"white",n.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[n.chromGridFillEven?1:0,n.chromGridFillOdd?1:0]}}}}}function v_(t,e){const n={...t},r=[];return n.chromGrid&&(n.chromGridFillOdd||n.chromGridFillEven)&&r.push(x_(n,e)),n.chromGrid&&n.chromGridOpacity>0&&r.push(w_(n,e)),n.grid&&n.gridOpacity>0&&r.push(y_(n,e)),{name:"grid_layers",configurableVisibility:!1,resolve:{scale:{[Lr(t.orient)]:"forced",fill:"independent",opacity:"independent"}},layer:r}}const Wy={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"},A_={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},E_={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},S_={start:0,middle:.5,end:1},C_={start:"left",middle:"center",end:"right"};function I_(t){if(!t)return;const e=rt(t)?{text:t}:t;if(!e.text||e.orient=="none")return;const n={"track-title":A_,overlay:E_}[e.style]??{},r={...Wy,...n,...e};let o={},i={x:0,y:0};const s=S_[r.anchor??"middle"];switch(r.orient){case"top":i={x:s,y:1},o={baseline:"alphabetic",angle:0};break;case"right":i={x:1,y:1-s},o={baseline:"alphabetic",angle:90};break;case"bottom":i={x:s,y:0},o={baseline:"top",angle:0};break;case"left":i={x:0,y:s},o={baseline:"alphabetic",angle:-90};break}const a={...Wy,...o,...n,...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,...i,...c,text:a.text,align:a.align??C_[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 Yy extends en{constructor(n,r){const o={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},n.layoutParent.context,n.layoutParent,n.view,"scrollbar-"+r,{blockEncodingInheritance:!0});ge(this,os);ge(this,tc,Hn.ZERO);ge(this,jr,0);ge(this,zi,0);Gt(this,"viewportOffset",0);this.config=o,Ie(this,os,r),this.interpolateViewportOffset=td(this.context.animator,i=>{this.viewportOffset=i.x},50,.4,{x:this.viewportOffset}),this.addInteractionEventListener("mousedown",(i,s)=>{if(s.stopPropagation(),W(this,jr)<=0)return;const a=h=>r=="vertical"?h.clientY:h.clientX;s.mouseEvent.preventDefault();const c=this.scrollOffset,l=a(s.mouseEvent),u=h=>{const d=bo(a(h)-l+c,0,W(this,jr));this.interpolateViewportOffset({x:d/W(this,jr)*W(this,zi)})},f=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f,!1),document.addEventListener("mousemove",u,!1)})}get scrollOffset(){return this.viewportOffset/W(this,zi)*W(this,jr)}render(n,r,o){super.render(n,W(this,tc),o)}updateScrollbar(n,r){const o=this.config.scrollbarPadding,i=this.config.scrollbarSize,s=W(this,os)=="horizontal"?"width":"height",a=Math.min(1,n[s]/r[s]),c=n[s]-2*o,l=a*c;Ie(this,jr,c-l),Ie(this,zi,r[s]-n[s]),this.viewportOffset=bo(this.viewportOffset,0,W(this,zi)),Ie(this,tc,W(this,os)=="vertical"?new Hn(()=>n.x+n.width-i-o,()=>n.y+o+this.scrollOffset,()=>i,()=>l):new Hn(()=>n.x+o+this.scrollOffset,()=>n.y+n.height-i-o,()=>l,()=>i))}}os=new WeakMap,tc=new WeakMap,jr=new WeakMap,zi=new WeakMap;class T_ extends Ao{constructor(e,n,r={}){const o=n(),i=Object.keys(o.intervals);if(xi.every(l=>!i.includes(l)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const s={name:"selectionRect",configurableVisibility:!1,resolve:{scale:{x:"forced",y:"forced"}},data:{values:Qy(n())},encoding:{},layer:[]};i.includes("x")&&(s.encoding.x={field:"_x",type:null,title:null},s.encoding.x2={field:"_x2"}),i.includes("y")&&(s.encoding.y={field:"_y",type:null,title:null},s.encoding.y2={field:"_y2"}),s.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...r}});const a=l=>{const u=e.view.getScaleResolution(l);return`format(datum._${l}2 - datum._${l}, '.3s')`+(u.type==="locus"?" + 'b'":"")},c=r.measure=="inside"?9:r.measure=="outside"?-9:0;i.includes("x")&&c!=0&&s.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:c,tooltip:null},encoding:{text:{expr:a("x")},y:i.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),i.includes("y")&&c!=0&&s.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:c,tooltip:null,angle:-90},encoding:{text:{expr:a("y")},x2:null}}),super(s,e.layoutParent.context,e.layoutParent,e.view,"selectionRect",{blockEncodingInheritance:!0,contributesToScaleDomain:!1}),n.addListener(()=>{const l=n();this.context.dataFlow.findDataSourceByKey(this).updateDynamicData(Qy(l))})}}function Qy(t){const e=t.intervals.x,n=t.intervals.y;return!e&&!n?[]:[{_x:e==null?void 0:e[0],_x2:e==null?void 0:e[1],_y:n==null?void 0:n[0],_y2:n==null?void 0:n[1]}]}class Zy{constructor(e,n,r){ge(this,gu);if(this.layoutParent=n,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=Hn.ZERO,e.needsAxes.x||e.needsAxes.y){const o=e.spec,i="view"in o?o==null?void 0:o.view:void 0,s=D_(i);s&&(this.background=new en(s,n.context,n,e,"background"+r,{blockEncodingInheritance:!0}));const a=B_(i);a&&(this.backgroundStroke=new en(a,n.context,n,e,"backgroundStroke"+r,{blockEncodingInheritance:!0}));const c=I_(e.spec.title);if(c){const l=new en(c,n.context,n,e,"title"+r,{blockEncodingInheritance:!0});this.title=l}}e.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new Yy(this,"horizontal")),e.spec.viewportHeight!=null&&(this.scrollbars.vertical=new Yy(this,"vertical")),de(this,gu,Rv).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:n,gridLines:r}=this,o=(a,c)=>{const l=a.getAxisProps();if(l===null)return;const u=l?{...l}:{};if(!u.orient){for(const f of Ll[c])if(!n[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()),!Ll[c].includes(u.orient))throw new Error(`Invalid axis orientation "${u.orient}" on channel "${c}"!`);return u},i=async(a,c,l)=>{const u=o(a,c);if(u){if(n[u.orient])throw new Error(`An axis with the orient "${u.orient}" already exists!`);const f=new Uy(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,l);n[u.orient]=f,await f.initializeChildren()}},s=async(a,c,l)=>{const u=o(a,c);if(u&&(u.grid||u.chromGrid)){const f=new m_(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,l);r[u.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 i(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 s(c,a,e)}if(e instanceof Ao){for(const a of e)for(const[c,l]of Object.entries(a.resolutions.axis)){const u=l.getAxisProps();u&&u.orient&&await i(l,c,a)}for(const a of e)for(const[c,l]of Object.entries(a.resolutions.axis)){const u=l.getAxisProps();u&&!u.orient&&await i(l,c,a)}}[...Object.values(n),...Object.values(r)].forEach(a=>a.visit(c=>{c instanceof en&&c.resolve("scale")}))}getOverhang(){const e=n=>{const r=this.axes[n];return r?Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0):0};return new Nt(e("top"),e("right"),e("bottom"),e("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}gu=new WeakSet,Rv=function(){const e=this.view,n=r=>{this.view.context.glHelper.canvas.style.cursor=r};for(const[r,o]of e.paramMediator.paramConfigs){if(!("select"in o))continue;const i=El(o.select);if(!gb(i))continue;const s=i.encodings,a=Object.fromEntries(s.map(S=>{const E=this.view.getScaleResolution(S),I=E==null?void 0:E.scale;if(!I||!Et(I.type))throw new Error(`No continuous scale found for interval selection param "${r}" on channel "${S}"! Scale type is "${(I==null?void 0:I.type)??"none"}".`);return[S,E]}));if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let c=!1,l=!1,u=!1,f=null;const h=(S,E)=>Object.fromEntries(s.map(I=>[I,[Math.min(S[I],E[I]),Math.max(S[I],E[I])]])),d=e.paramMediator.createExpression(r),p=e.paramMediator.getSetter(r);o.value&&p({type:"interval",intervals:o.value});const y=()=>{p(hb(s)),n(null)};this.selectionRect=new T_(this,d,i.mark),this.selectionRect.initializeChildren();const v=S=>{const E={x:0,y:0},I=e.coords.normalizePoint(S.x,S.y,!0);for(const _ of s){const B=a[_].scale,N=B.invert(_=="x"?I.x:I.y);E[_]=N+(["index","locus"].includes(B.type)?.5:0)}return E},b=S=>{var N,F,M,C;const{intervals:E}=S,I=(Y,Q,se)=>{const oe=(ye,he)=>he==null?null:a[ye].scale(he),ae=oe("x",Y)??se,ce=oe("y",Q)??se;return e.coords.denormalizePoint(ae,ce,!0)},_=I((N=E.x)==null?void 0:N[0],(F=E.y)==null?void 0:F[0],0),B=I((M=E.x)==null?void 0:M[1],(C=E.y)==null?void 0:C[1],1);return Hn.create(_.x,_.y,B.x-_.x,B.y-_.y)};e.addInteractionEventListener("mousedown",(S,E)=>{if(E.mouseEvent.button!=0)return;if(f=c?b(d()):null,f)n("grabbing"),l=!0;else{const F=E.point;if(mb(d())&&(l=!0),E.mouseEvent.shiftKey)y(),u=!0;else if(mb(d())){const C=(Y,Q)=>{e.removeInteractionEventListener("mouseup",C);const se=Q.point;F.subtract(se).length<2&&y()};e.addInteractionEventListener("mouseup",C);return}else return}E.stopPropagation();const I=E.point,_=Kt.fromMouseEvent(E.mouseEvent).subtract(I),B=F=>{const M=Kt.fromMouseEvent(F).subtract(_);let C;if(f){const Y=M.subtract(I),Q=f.translate(Y.x,Y.y);C=h(v(new Kt(Q.x,Q.y)),v(new Kt(Q.x2,Q.y2)))}else C=h(v(I),v(M));for(const Y of s){const Q=a[Y],{zoomExtent:se,scale:oe}=Q,ae=C[Y];if(["index","locus"].includes(oe.type)&&(ae[0]=Math.ceil(ae[0]),ae[1]=Math.ceil(ae[1])),f){const ce=ae[1]-ae[0],ye=se[0],he=se[1];ae[0]<ye&&(ae[0]=ye,ae[1]=ye+ce),ae[1]>he&&(ae[1]=he,ae[0]=he-ce)}else ae[0]=Math.max(se[0],ae[0]),ae[1]=Math.min(se[1],ae[1]);ae[1]=Math.min(se[1],ae[1])}p({type:"interval",intervals:C})},N=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",N),u=!1,f&&(n("move"),f=null)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",N)}),e.addInteractionEventListener("click",(S,E)=>{E.mouseEvent.button==0&&l&&(E.stopPropagation(),l=!1)},!0);const A=S=>rT(d(),v(S));e.addInteractionEventListener("dblclick",(S,E)=>{A(E.point)&&(y(),E.stopPropagation())},!0),e.addInteractionEventListener("mousemove",(S,E)=>{A(E.point)?u||(c=!0,f||n("move")):(c=!1,f||n(null))})}};function D_(t){if(t!=null&&t.fill||t!=null&&t.fillOpacity||t!=null&&t.shadowOpacity)return{configurableVisibility:!1,data:{values:[{}]},mark:{color:t.fill,opacity:t.fillOpacity??(t.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:t.shadowBlur,shadowColor:t.shadowColor,shadowOffsetX:t.shadowOffsetX,shadowOffsetY:t.shadowOffsetY,shadowOpacity:t.shadowOpacity}}}function B_(t){if(!(!t||!t.stroke||t.strokeWidth===0||t.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:t.strokeWidth??1,color:t.stroke??"lightgray",strokeCap:"square",opacity:t.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 k_ extends Sa{constructor(n,r,o,i,s,a,c){super(n,r,o,i,s,c);ge(this,He);ge(this,ss,1/0);ge(this,as,10);ge(this,nn,[]);ge(this,Ui,{});ge(this,cs,0);this.spec=n,Ie(this,as,n.spacing??10),Ie(this,ss,a),Ie(this,nn,[]),this.wrappingFacet=!1}appendChild(n){n.layoutParent??(n.layoutParent=this),W(this,nn).push(new Zy(n,this,W(this,cs))),vv(this,cs)._++}setChildren(n){Ie(this,nn,[]);for(const r of n)this.appendChild(r)}replaceChild(n,r){const o=W(this,nn).findIndex(i=>i.view==n);if(o>=0)W(this,nn)[o]=new Zy(r,this,W(this,cs));else throw new Error("Not my child view!")}get children(){return W(this,nn).map(n=>n.view)}get childCount(){return W(this,nn).length}async createAxes(){const n=[];for(const r of xi){const o=this.resolutions.axis[r];if(o){const i=o.getAxisProps();if(i){const s={title:o.getTitle(),orient:Ll[r][0],...i},a=new Uy(s,o.scaleResolution.type,this.context,this,this);n.push(a.initializeChildren()),W(this,Ui)[r]=a}}}return Promise.all([...n,...W(this,nn).map(r=>r.createAxes())])}*[Symbol.iterator](){for(const n of W(this,nn))yield*n.getChildren();for(const n of Object.values(W(this,Ui)))yield n}getOverhang(){return de(this,He,Mv).call(this).union(de(this,He,yu).call(this))}getSize(){return this._cache("size",()=>new Pr(de(this,He,U0).call(this,"column"),de(this,He,U0).call(this,"row")).addPadding(de(this,He,yu).call(this)))}render(n,r,o={}){if(super.render(n,r,o),!this.isConfiguredVisible())return;this.layoutParent||(r=r.shrink(this.getPadding())),r=r.shrink(de(this,He,yu).call(this)),n.pushView(this,r);const i={devicePixelRatio:this.context.devicePixelRatio},s=hy(de(this,He,z0).call(this,"column"),r.width,i),a=hy(de(this,He,z0).call(this,"row"),r.height,i),c=new zy(W(this,He,Hi).length,W(this,ss)??1/0),l=u=>Math.round(u*devicePixelRatio)/devicePixelRatio;for(const[u,f]of W(this,He,Hi).entries()){const{view:h,axes:d,gridLines:p,background:y,backgroundStroke:v,title:b,selectionRect:A}=f,[S,E]=c.getCellCoords(u),I=s[de(this,He,G0).call(this,"column",S)],_=a[de(this,He,G0).call(this,"row",E)],B=h.getViewportSize(),N=h.getSize(),F=h.getOverhang(),M=I.location-F.left,C=_.location-F.top,Y=(q,j)=>(q[j].grow?(j=="width"?I:_).size:q[j].px)+F[j],Q=Y(B,"width"),se=Y(B,"height"),oe=Y(N,"width"),ae=Y(N,"height"),ce=f.scrollbars.horizontal,ye=f.scrollbars.vertical,he=ce?()=>l(ce.viewportOffset):()=>0,De=ye?()=>l(ye.viewportOffset):()=>0,we=new Hn(()=>r.x+M,()=>r.y+C,()=>Q,()=>se),Ee=h.isScrollable(),Te=Ee?new Hn(()=>r.x+M-he(),()=>r.y+C-De(),()=>oe,()=>ae):we;f.coords=we;const Ge=o.clipRect?we.intersect(o.clipRect):we;y==null||y.render(n,Ge,{...o,clipRect:void 0});for(const q of Object.values(p))q.render(n,we,o);const Ve=R_(h)||Ee;Ve&&h.render(n,Te,{...o,clipRect:Ge}),v==null||v.render(n,Ge,{...o,clipRect:void 0});for(const[q,j]of Object.entries(d)){const ee=q=="left"||q=="right"?"vertical":"horizontal",J=f.scrollbars[ee],fe=J?we.modify(ee=="vertical"?{y:()=>Te.y,height:ae}:{x:()=>Te.x,width:oe}):we,L=Xy(fe,q,j);let D=o.clipRect;J&&(D=L.intersect(D).intersect(J?we.modify(ee=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),j.render(n,L,{...o,clipRect:D})}for(const q of Object.values(W(this,Ui))){const ee=q.axisProps.orient;(ee=="left"&&S==0||ee=="right"&&S==c.nCols-1||ee=="top"&&E==0||ee=="bottom"&&E==c.nRows-1)&&q.render(n,Xy(we.shrink(f.view.getOverhang()),ee,q),o)}Ve||h.render(n,Te,o),A==null||A.render(n,Te,o);for(const q of Object.values(f.scrollbars))q.updateScrollbar(we,Te),q.render(n,r,o);b==null||b.render(n,we,o)}n.popView(this)}propagateInteractionEvent(n){if(this.handleInteractionEvent(void 0,n,!0),n.stopped)return;const r=W(this,He,Hi).find(i=>i.coords.containsPoint(n.point.x,n.point.y));for(const i of Object.values((r==null?void 0:r.scrollbars)??{}))if(i.coords.containsPoint(n.point.x,n.point.y)&&(i.propagateInteractionEvent(n),n.stopped))return;const o=r==null?void 0:r.view;if(o){if(o.propagateInteractionEvent(n),n.stopped)return;(o instanceof en||o instanceof Ao)&&p_(n,r.coords,i=>de(this,He,Pv).call(this,r.coords,r.view,i),this.context.getCurrentHover(),this.context.animator)}n.stopped||this.handleInteractionEvent(void 0,n,!1)}getDefaultResolution(n,r){return"independent"}}ss=new WeakMap,as=new WeakMap,nn=new WeakMap,Ui=new WeakMap,cs=new WeakMap,He=new WeakSet,Hi=function(){return W(this,nn).filter(n=>n.view.isConfiguredVisible())},Fv=function(){return new zy(W(this,He,Hi).length,W(this,ss)??1/0)},oc=function(n){const r=n=="column"?"width":"height",o=(i,s)=>i.map(a=>{const l=W(this,He,Hi)[a].getOverhangAndPadding();return n=="column"?s?l.right:l.left:s?l.bottom:l.top}).reduce((a,c)=>Math.max(a,c),0);return this._cache(`size/directionSizes/${n}`,()=>W(this,He,Fv)[n=="column"?"colIndices":"rowIndices"].map(i=>({axisBefore:o(i,0),axisAfter:o(i,1),view:fB(i.map(s=>W(this,He,Hi)[s].view.getViewportSize()[r]))})))},z0=function(n){const r=de(this,He,oc).call(this,n),o=[];o.push(xa);for(const[i,s]of r.entries())i>0&&o.push({px:W(this,as),grow:0}),(i==0||this.wrappingFacet)&&o.push(xa),o.push({px:s.axisBefore,grow:0}),o.push(s.view),o.push({px:s.axisAfter,grow:0}),(i==r.length-1||this.wrappingFacet)&&o.push(xa);return o},U0=function(n){let r=0,o=0;const i=n=="row"?this.spec.height:this.spec.width;if(i||i===0)return py(i);const s=de(this,He,oc).call(this,n);for(const[a,c]of s.entries())a>0&&(o+=W(this,as)),(a==0||this.wrappingFacet)&&(o+=0),o+=c.axisBefore,o+=c.view.px??0,r+=c.view.grow??0,o+=c.axisAfter,(a==s.length-1||this.wrappingFacet)&&(o+=0);return{px:o,grow:r}},G0=function(n,r){return n=="row"&&this.wrappingFacet?1+6*r+2:2+4*r+1},Mv=function(){const n=de(this,He,oc).call(this,"column"),r=de(this,He,oc).call(this,"row");return!n.length||!r.length?Nt.zero():new Nt(r.at(0).axisBefore,n.at(-1).axisAfter,r.at(-1).axisAfter,n.at(0).axisBefore)},yu=function(){const n=r=>{const o=rd[r],i=W(this,Ui)[o];return(i==null?void 0:i.axisProps.orient)!==r?0:Math.max(i.getPerpendicularSize()+(i.axisProps.offset??0),0)};return new Nt(n("top"),n("right"),n("bottom"),n("left"))},Pv=function(n,r,o){for(const[i,s]of Object.entries(__(r))){if(s.size<=0)continue;const a=n.normalizePoint(o.x,o.y),c=n.normalizePoint(o.x+o.xDelta,o.y+o.yDelta),l={x:c.x-a.x,y:c.y-a.y};for(const u of s)u.zoom(2**o.zDelta,i=="y"?1-a[i]:a[i],i=="x"?l.x:-l.y)}this.context.animator.requestRender()};function __(t){const e={x:new Set,y:new Set};return t.visit(n=>{for(const[r,o]of Object.entries(e)){const i=n.getScaleResolution(r);i&&i.isZoomable()&&o.add(i)}}),e}function R_(t){let e=!0;return t.visit(n=>{n instanceof en&&e&&(e=n.mark.properties.clip===!0)}),e}function Xy(t,e,n){const r=n.axisProps,o=n.getPerpendicularSize();if(e=="bottom")return t.translate(0,t.height+r.offset).modify({height:o});if(e=="top")return t.translate(0,-o-r.offset).modify({height:o});if(e=="left")return t.translate(-o-r.offset,0).modify({width:o});if(e=="right")return t.translate(t.width+r.offset,0).modify({width:o})}class od extends k_{constructor(e,n,r,o,i){super(e,n,r,o,i,cd(e)?e.columns:Ol(e)?1:1/0),this.spec=e}async initializeChildren(){const e=this.spec,n=cd(e)?e.concat:Ol(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(n.map((r,o)=>this.context.createOrImportView(r,this,this,"grid"+o)))),await this.createAxes()}getDefaultResolution(e,n){return n=="axis"?"independent":Ol(this.spec)&&e==="x"||$y(this.spec)&&e==="y"?"shared":"independent"}}const Ky="viewRoot";class F_{constructor(e={}){ge(this,ls,new Map);this.options={allowImport:!0,wrapRoot:!0,...e};const n=r=>(o,i,s,a,c)=>new r(o,i,s,a,o.name??c);this.addViewType(ad,n(Ao)),this.addViewType(sd,n(en)),this.addViewType(Ol,n(od)),this.addViewType($y,n(od)),this.addViewType(cd,n(od)),this.addViewType(L_,()=>{throw new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!")})}addViewType(e,n){W(this,ls).set(e,n)}createView(e,n,r,o,i){for(const[s,a]of W(this,ls))if(s(e))return a(e,n,r,o,i);throw new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(e)]))}isViewSpec(e){const n=[...W(this,ls).keys()].filter(r=>r(e));if(n.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return n.length==1}async createOrImportView(e,n,r,o,i,s){let a;if(P_(e)){let u;if("url"in e.import)if(this.options.allowImport)u=await Lk(e,o.getBaseUrl(),n);else throw new Mr("Importing views is not allowed!",r);else if("template"in e.import)u=Jy(e.import.template,o);else throw new Error("Invalid import: "+JSON.stringify(e));s==null||s(u),M_(u,e),a=u}else a=e;const c=u=>{var f;return(f=u==null?void 0:u.params)==null?void 0:f.some(h=>cb(h)&&El(h.select).type=="interval")};!o&&this.options.wrapRoot&&(sd(a)||ad(a)||c(a))&&i===Ky&&(a={name:"implicitRoot",vconcat:[a]});const l=this.createView(a,n,r,o,i);return l instanceof Sa&&await l.initializeChildren(),l}}ls=new WeakMap;function Jy(t,e){var r,o;const n=(o=(r=e.spec)==null?void 0:r.templates)==null?void 0:o[t];if(n)return structuredClone(n);if(e.dataParent)return Jy(t,e.dataParent);throw new Error(`Cannot find template "${t}" in current view or its ancestors!`)}function M_(t,e){e.name!=null&&(t.name=e.name);const n=_t(e.params)?e.params:Rt(e.params)?Object.entries(e.params).map(([r,o])=>({name:r,value:o})):[];if(n.length){t.params??(t.params=[]);for(const r of n){const o=t.params.findIndex(i=>i.name==r.name);o>=0&&(t.params[o]=r)}for(const r of n)t.params.some(o=>o.name==r.name)||t.params.push(r)}}function sd(t){return"mark"in t&&(rt(t.mark)||Rt(t.mark))}function ad(t){return"layer"in t&&Rt(t.layer)}function P_(t){return"import"in t}function Ol(t){return"vconcat"in t&&_t(t.vconcat)}function $y(t){return"hconcat"in t&&_t(t.hconcat)}function cd(t){return"concat"in t&&_t(t.concat)}function L_(t){return"samples"in t&&Rt(t.samples)&&"spec"in t&&Rt(t.spec)}function O_(t){const e=Math.floor(Math.random()*16777215).toString(16),n=[];for(const r of t.paramConfigs.values()){if(!eT(r))continue;const o=r.bind;if(!o||!("input"in o))continue;const i=r.name,s=t.getSetter(i),a=t.getValue(i),c=o.name??i,l=o.debounce?Ml(s,o.debounce,!1):s,u=`${e}-param-${i}`;if(o.input=="range")n.push(ot`<label for=${u}>${c}</label>
|
|
586
586
|
<div>
|
|
587
587
|
<input
|
|
588
588
|
id=${u}
|
|
589
589
|
type="range"
|
|
590
590
|
min=${o.min??0}
|
|
591
591
|
max=${o.max??100}
|
|
592
|
-
step=${o.step??
|
|
592
|
+
step=${o.step??ni(o.min,o.max,100)}
|
|
593
593
|
.value=${a}
|
|
594
594
|
@input=${f=>{l(f.target.valueAsNumber),f.target.nextElementSibling.textContent=f.target.valueAsNumber}}
|
|
595
595
|
/><span>${a}</span>
|
|
@@ -632,27 +632,27 @@ chrM 16299`};function ZD(t){if(!(t in $y))throw new Error(`Unknown assembly: ${t
|
|
|
632
632
|
@focus=${f=>f.target.select()}
|
|
633
633
|
@input=${f=>{l(o.input=="number"?f.target.valueAsNumber:f.target.value)}}
|
|
634
634
|
/>
|
|
635
|
-
</div>`);else throw new Error("Unsupported input type: "+o.input);o.description&&n.push(ot`<div class="description">${o.description}</div>`)}return n}
|
|
635
|
+
</div>`);else throw new Error("Unsupported input type: "+o.input);o.description&&n.push(ot`<div class="description">${o.description}</div>`)}return n}Ju("fasta",Zk);class e2{constructor(e,n,r={}){ge(this,pn);this.container=e,this.options=r,r.inputBindingContainer??(r.inputBindingContainer="default"),this._destructionCallbacks=[],this.spec=n,this.viewFactory=new F_,this.namedDataProviders=[],this.animator=new Hk(()=>this.renderAll()),this.genomeStore=void 0,this.viewVisibilityPredicate=o=>o.isVisibleInSpec(),this._renderingContext=void 0,this._pickingContext=void 0,this._dirtyPickingBuffer=!1,this._currentHover=void 0,this._wheelInertia=new Xk(this.animator),this._keyboardListeners=new Map,this._eventListeners=new Map,this._extraBroadcastListeners=new Map,this.tooltipHandlers={default:s_,refseqgene:$k,...r.tooltipHandlers??{}},this.viewRoot=void 0,this._loadingViews=new Map,this._inputBindingContainer=void 0,this._mouseDownCoords=void 0}registerNamedDataProvider(e){this.namedDataProviders.unshift(e)}getNamedDataFromProvider(e){for(const n of this.namedDataProviders){const r=n(e);if(r)return r}}updateNamedData(e,n){const r=this.viewRoot.context.dataFlow.findNamedDataSource(e);if(!r)throw new Error("No such named data source: "+e);r.dataSource.updateDynamicData(n),Qh(r.hosts),this.animator.requestRender()}broadcast(e,n){var o;const r={type:e,payload:n};this.viewRoot.visit(i=>i.handleBroadcast(r)),(o=this._extraBroadcastListeners.get(e))==null||o.forEach(i=>i(r))}_updateLoadingIndicators(){const e=[],n=()=>[...this._loadingViews.values()].some(r=>r.status=="loading"||r.status=="error");for(const[r,o]of this._loadingViews){const i=r.coords;if(i){const s={left:`${i.x}px`,top:`${i.y}px`,width:`${i.width}px`,height:`${i.height}px`};e.push(ot`<div style=${ZE(s)}>
|
|
636
636
|
<div class=${o.status}>
|
|
637
637
|
${o.status=="error"?ot`<span
|
|
638
638
|
>Loading
|
|
639
639
|
failed${o.detail?ot`: ${o.detail}`:pt}</span
|
|
640
640
|
>`:ot`
|
|
641
|
-
<img src="${
|
|
641
|
+
<img src="${XE}" alt="" />
|
|
642
642
|
<span>Loading...</span>
|
|
643
643
|
`}
|
|
644
644
|
</div>
|
|
645
|
-
</div>`)}}n()?this.loadingIndicatorsElement.style.display="block":setTimeout(()=>{n()||(this.loadingIndicatorsElement.style.display="none")},3e3),bs(e,this.loadingIndicatorsElement)}destroy(){var n;const e=W(this,pn,bu);this.container.classList.remove("genome-spy"),e.classList.remove("loading");for(const[r,o]of this._keyboardListeners)for(const i of o)document.removeEventListener(r,i);for(this._destructionCallbacks.forEach(r=>r()),this._glHelper.finalize(),(n=this._inputBindingContainer)==null||n.remove();this.container.firstChild;)this.container.firstChild.remove()}async _prepareViewsAndData(){this.spec.genome&&(this.genomeStore=new Gk(this.spec.baseUrl),await this.genomeStore.initialize(this.spec.genome));const e=this,n={dataFlow:new kb,glHelper:this._glHelper,animator:this.animator,genomeStore:this.genomeStore,fontManager:new qk(this._glHelper),get devicePixelRatio(){return e._glHelper.dpr},requestLayoutReflow:()=>{},updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>this._currentHover,setDataLoadingStatus:(c,l,u)=>{this._loadingViews.set(c,{status:l,detail:u}),this._updateLoadingIndicators()},addKeyboardListener:(c,l)=>{document.addEventListener(c,l);let u=this._keyboardListeners.get(c);u||(u=[],this._keyboardListeners.set(c,u)),u.push(l)},addBroadcastListener(c,l){const u=e._extraBroadcastListeners;let f=u.get(c);f||(f=new Set,u.set(c,f)),f.add(l)},removeBroadcastListener(c,l){var f;(f=e._extraBroadcastListeners.get(c))==null||f.delete(l)},isViewConfiguredVisible:e.viewVisibilityPredicate,isViewSpec:c=>e.viewFactory.isViewSpec(c),createOrImportView:async function(c,l,u,f,h){return e.viewFactory.createOrImportView(c,n,l,u,f,h)},highlightView:c=>{var l;if((l=this.container.querySelector(".view-highlight"))==null||l.remove(),c){const u=c.coords;if(u){const f=document.createElement("div");f.className="view-highlight",f.style.position="absolute",f.style.left=u.x+"px",f.style.top=u.y+"px",f.style.width=u.width+"px",f.style.height=u.height+"px",f.style.border="1px solid green",f.style.backgroundColor="rgba(0, 255, 0, 0.1)",f.style.pointerEvents="none",this.container.appendChild(f)}}}},r=this.spec;r.datasets&&this.registerNamedDataProvider(c=>r.datasets[c]),this.viewRoot=await n.createOrImportView(r,null,null,Xb),W(this,pn,bu).style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",de(this,pn,Pv).call(this),Rk(this.viewRoot),Fk(this.viewRoot);const o=this.viewRoot.getDescendants();o.forEach(c=>c.configureViewOpacity()),this._glHelper.invalidateSize(),de(this,pn,Lv).call(this);const i=o.filter(c=>c instanceof en),s=Ik(this.viewRoot,n.dataFlow);_k(s),this.broadcast("dataFlowBuilt",s),i.forEach(c=>c.mark.initializeEncoders());const a=Promise.all(i.map(c=>c.mark.initializeGraphics()));for(const c of i)s.addObserver(l=>{c.mark.initializeData();try{c.mark.updateGraphicsData()}catch(u){throw u.view=c,u}n.animator.requestRender()},c);await n.fontManager.waitUntilReady(),s.initialize(),await Promise.all(s.dataSources.map(c=>c.load())),Yh(this.viewRoot),this.broadcast("dataLoaded"),await a;for(const c of i)c.mark.finalizeGraphicsInitialization();n.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(c=>Dl(c,"size")),this._glHelper.invalidateSize()}async launch(){try{return de(this,pn,Ov).call(this),await this._prepareViewsAndData(),this.registerMouseEvents(),this.computeLayout(),this.animator.requestRender(),!0}catch(e){const n=`${e.view?`At "${e.view.getPathString()}": `:""}${e.toString()}`;return console.error(e.stack),L_(this.container,n),!1}finally{W(this,pn,bu).classList.remove("loading"),window.setTimeout(()=>{this.loadingMessageElement.style.display="none"},2e3)}}registerMouseEvents(){const e=this._glHelper.canvas;let n=performance.now(),r=!1;const o=i=>{var c,l;const s=performance.now(),a=s-n<200;if(i instanceof MouseEvent){const u=e.getBoundingClientRect(),f=new Kt(i.clientX-u.left-e.clientLeft,i.clientY-u.top-e.clientTop);i.type=="mousemove"&&!a&&(this.tooltip.handleMouseMove(i),this._tooltipUpdateRequested=!1,i.buttons==0&&!Vb()&&(this.renderPickingFramebuffer(),this._handlePicking(f.x,f.y)));const h=d=>{this.viewRoot.propagateInteractionEvent(new Ok(f,d)),this._tooltipUpdateRequested||this.tooltip.clear()};if(i.type!="wheel"&&this._wheelInertia.cancel(),(i.type=="mousedown"||i.type=="mouseup")&&!Vb())this.renderPickingFramebuffer();else if(i.type=="wheel"){n=s,this._tooltipUpdateRequested=!1;const d=i;if(Math.abs(d.deltaX)>Math.abs(d.deltaY))this._currentHover=null,this._wheelInertia.cancel();else{const p=Zk(d);this._wheelInertia.setMomentum(d.deltaY*(d.deltaMode?80:1),b=>{const v=new WheelEvent("wheel",{...p,deltaMode:0,deltaX:0,deltaY:b});h(v)}),d.preventDefault();return}}if(i.type=="click"){if(r)return;const d=this._currentHover?{type:i.type,viewPath:this._currentHover.mark.unitView.getLayoutAncestors().map(p=>p.name).reverse(),datum:this._currentHover.datum}:{type:i.type,viewPath:null,datum:null};(c=this._eventListeners.get("click"))==null||c.forEach(p=>p(d))}(i.type!="click"||((l=this._mouseDownCoords)==null?void 0:l.subtract(Kt.fromMouseEvent(i)).length)<3)&&h(i)}};["mousedown","mouseup","wheel","click","mousemove","gesturechange","contextmenu","dblclick"].forEach(i=>e.addEventListener(i,o)),e.addEventListener("mousedown",i=>{this._mouseDownCoords=Kt.fromMouseEvent(i),this.tooltip.sticky?(this.tooltip.sticky=!1,this.tooltip.clear(),r=!0):r=!1;const s=()=>{document.addEventListener("mouseup",()=>this.tooltip.popEnabledState(),{once:!0}),this.tooltip.pushEnabledState(!1)};if(i.button==2||i.shiftKey||i.ctrlKey||i.metaKey)s();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",i=>i.stopPropagation())}_handlePicking(e,n){var i;const r=this._glHelper.readPickingPixel(e,n),o=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;if(o==0){this._currentHover=null;return}if(o!==((i=this._currentHover)==null?void 0:i.uniqueId)&&(this._currentHover=null),this._currentHover||this.viewRoot.visit(s=>{if(s instanceof en){if(s.mark.isPickingParticipant()&&[...s.facetCoords.values()].some(a=>a.containsPoint(e,n))){const a=s.getCollector().findDatumByUniqueId(o);a&&(this._currentHover={mark:s.mark,datum:a,uniqueId:o})}if(this._currentHover)return va}}),this._currentHover){const s=this._currentHover.mark;this.updateTooltip(this._currentHover.datum,async a=>{if(!s.isPickingParticipant())return;const c=s.properties.tooltip;if(c!==null){const l=(c==null?void 0:c.handler)??"default",u=this.tooltipHandlers[l];if(!u)throw new Error("No such tooltip handler: "+l);return u(a,s,c==null?void 0:c.params)}})}}updateTooltip(e,n){if(!this._tooltipUpdateRequested||!e)this.tooltip.updateWithDatum(e,n),this._tooltipUpdateRequested=!0;else throw new Error("Tooltip has already been updated! Duplicate event handler?")}computeLayout(){const e=this.viewRoot;if(!e)return;this.broadcast("layout");const n=this._glHelper.getLogicalCanvasSize();if(isNaN(n.width)||isNaN(n.height)){console.log(`NaN in canvas size: ${n.width}x${n.height}. Skipping computeLayout().`);return}this._renderingContext=new Mb({picking:!1},this._glHelper),this._pickingContext=new Mb({picking:!0},this._glHelper),e.render(new Lk(this._renderingContext,this._pickingContext),Hn.create(0,0,n.width,n.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(n=>{n instanceof en&&n.getDataAccessor("search")&&e.push(n)}),e}getNamedScaleResolutions(){const e=new Map;return this.viewRoot.visit(n=>{for(const r of Object.values(n.resolutions.scale))r.name&&e.set(r.name,r)}),e}}pn=new WeakSet,bu=function(){return this.container.querySelector(".canvas-wrapper")},Pv=function(){const e=[];this.viewRoot.visit(r=>{const o=r.paramMediator;e.push(...P_(o))});const n=this.options.inputBindingContainer;if(!(!n||n=="none"||!e.length)){if(this._inputBindingContainer=Ol("div",{className:"gs-input-bindings"}),n=="default")this.container.appendChild(this._inputBindingContainer);else if(n instanceof HTMLElement)n.appendChild(this._inputBindingContainer);else throw new Error("Invalid inputBindingContainer");e.length&&bs(ot`<div class="gs-input-binding">${e}</div>`,this._inputBindingContainer)}},Lv=function(){const e=this.viewRoot.paramMediator.allocateSetter("devicePixelRatio",window.devicePixelRatio),n=()=>{this._glHelper.invalidateSize(),e(window.devicePixelRatio),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const i=new ResizeObserver(n);i.observe(this.container),this._destructionCallbacks.push(()=>i.disconnect())}let r=null;const o=()=>{r!=null&&(r(),n());const i=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);i.addEventListener("change",o),r=()=>{i.removeEventListener("change",o)}};o(),r&&this._destructionCallbacks.push(r)},Ov=function(){this.container.classList.add("genome-spy");const e=document.createElement("style");e.innerHTML=XE,this.container.appendChild(e);const n=Ol("div",{class:"canvas-wrapper"});this.container.appendChild(n),n.classList.add("loading"),this._glHelper=new hT(n,()=>this.viewRoot?Pk(this.viewRoot):{width:void 0,height:void 0},this.spec.background,{powerPreference:this.options.powerPreference??"default"}),this.loadingMessageElement=Ol("div",{class:"loading-message",innerHTML:'<div class="message">Loading<span class="ellipsis">...</span></div>'}),n.appendChild(this.loadingMessageElement),this.loadingIndicatorsElement=Ol("div",{class:"loading-indicators"}),n.appendChild(this.loadingIndicatorsElement),this.tooltip=new JE(this.container),this.loadingMessageElement.querySelector(".message").addEventListener("transitionend",()=>{this.loadingMessageElement.style.display="none"})};function L_(t,e){const n=document.createElement("div");n.className="message-box";const r=document.createElement("div");r.textContent=e,n.appendChild(r),t.appendChild(n)}function Ol(t,e){const n=document.createElement(t);for(const[r,o]of Object.entries(e))["innerHTML","innerText","className"].includes(r)&&(n[r]=o),n.setAttribute(r,o);return n}const O_="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",N_="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 z_(t,e,n={}){let r;if(rt(t)){if(r=document.querySelector(t),!r)throw new Error(`No such element: ${t}`)}else if(t instanceof HTMLElement)r=t;else throw new Error(`Invalid element: ${t}`);let o;try{const i=Rt(e)?e:await e2(e);if(i.baseUrl??(i.baseUrl=""),i.width??(i.width="container"),i.padding??(i.padding=10),r==document.body){const s=document.createElement("div");s.style.position="fixed",s.style.inset="0",s.style.overflow="hidden",r.appendChild(s),r=s}o=new $b(r,i,n),U_(o,n),await o.launch()}catch(i){r.innerText=i.toString(),console.error(i)}return{finalize(){for(o.destroy();r.firstChild;)r.firstChild.remove()},addEventListener(i,s){const a=o._eventListeners;let c=a.get(i);c||(c=new Set,a.set(i,c)),c.add(s)},removeEventListener(i,s){var c;(c=o._eventListeners.get(i))==null||c.delete(s)},getScaleResolutionByName(i){return o.getNamedScaleResolutions().get(i)},updateNamedData:o.updateNamedData.bind(o)}}function U_(t,e){e.namedDataProvider&&t.registerNamedDataProvider(e.namedDataProvider)}async function e2(t){let e;try{const n=await fetch(t);if(!n.ok)throw new Error(`${n.status} ${n.statusText}`);e=await n.json()}catch(n){throw new Error(`Could not load or parse configuration: ${t}, reason: ${n.message}`)}if(!e.baseUrl){const n=t.match(/^[^?#]*\//);e.baseUrl=n&&n[0]||"./"}return e}function Nl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function G_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var cd={},Sa={},t2;function H_(){if(t2)return Sa;t2=1,Sa.byteLength=a,Sa.toByteArray=l,Sa.fromByteArray=h;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)t[o]=r[o],e[r.charCodeAt(o)]=o;e[45]=62,e[95]=63;function s(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=d.indexOf("=");b===-1&&(b=p);var v=b===p?0:4-b%4;return[b,v]}function a(d){var p=s(d),b=p[0],v=p[1];return(b+v)*3/4-v}function c(d,p,b){return(p+b)*3/4-b}function l(d){var p,b=s(d),v=b[0],y=b[1],A=new n(c(d,v,y)),S=0,E=y>0?v-4:v,I;for(I=0;I<E;I+=4)p=e[d.charCodeAt(I)]<<18|e[d.charCodeAt(I+1)]<<12|e[d.charCodeAt(I+2)]<<6|e[d.charCodeAt(I+3)],A[S++]=p>>16&255,A[S++]=p>>8&255,A[S++]=p&255;return y===2&&(p=e[d.charCodeAt(I)]<<2|e[d.charCodeAt(I+1)]>>4,A[S++]=p&255),y===1&&(p=e[d.charCodeAt(I)]<<10|e[d.charCodeAt(I+1)]<<4|e[d.charCodeAt(I+2)]>>2,A[S++]=p>>8&255,A[S++]=p&255),A}function u(d){return t[d>>18&63]+t[d>>12&63]+t[d>>6&63]+t[d&63]}function f(d,p,b){for(var v,y=[],A=p;A<b;A+=3)v=(d[A]<<16&16711680)+(d[A+1]<<8&65280)+(d[A+2]&255),y.push(u(v));return y.join("")}function h(d){for(var p,b=d.length,v=b%3,y=[],A=16383,S=0,E=b-v;S<E;S+=A)y.push(f(d,S,S+A>E?E:S+A));return v===1?(p=d[b-1],y.push(t[p>>2]+t[p<<4&63]+"==")):v===2&&(p=(d[b-2]<<8)+d[b-1],y.push(t[p>>10]+t[p>>4&63]+t[p<<2&63]+"=")),y.join("")}return Sa}var zl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var n2;function V_(){return n2||(n2=1,zl.read=function(t,e,n,r,o){var i,s,a=o*8-r-1,c=(1<<a)-1,l=c>>1,u=-7,f=n?o-1:0,h=n?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-u)-1,d>>=-u,u+=a;u>0;i=i*256+t[e+f],f+=h,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=s*256+t[e+f],f+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-l}return(d?-1:1)*s*Math.pow(2,i-r)},zl.write=function(t,e,n,r,o,i){var s,a,c,l=i*8-o-1,u=(1<<l)-1,f=u>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=h/c:e+=h*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[n+d]=a&255,d+=p,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[n+d]=s&255,d+=p,s/=256,l-=8);t[n+d-p]|=b*128}),zl}/*!
|
|
645
|
+
</div>`)}}n()?this.loadingIndicatorsElement.style.display="block":setTimeout(()=>{n()||(this.loadingIndicatorsElement.style.display="none")},3e3),ws(e,this.loadingIndicatorsElement)}destroy(){var n;const e=W(this,pn,wu);this.container.classList.remove("genome-spy"),e.classList.remove("loading");for(const[r,o]of this._keyboardListeners)for(const i of o)document.removeEventListener(r,i);for(this._destructionCallbacks.forEach(r=>r()),this._glHelper.finalize(),(n=this._inputBindingContainer)==null||n.remove();this.container.firstChild;)this.container.firstChild.remove()}async _prepareViewsAndData(){this.spec.genome&&(this.genomeStore=new Vk(this.spec.baseUrl),await this.genomeStore.initialize(this.spec.genome));const e=this,n={dataFlow:new _y,glHelper:this._glHelper,animator:this.animator,genomeStore:this.genomeStore,fontManager:new Wk(this._glHelper),get devicePixelRatio(){return e._glHelper.dpr},requestLayoutReflow:()=>{},updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>this._currentHover,setDataLoadingStatus:(c,l,u)=>{this._loadingViews.set(c,{status:l,detail:u}),this._updateLoadingIndicators()},addKeyboardListener:(c,l)=>{document.addEventListener(c,l);let u=this._keyboardListeners.get(c);u||(u=[],this._keyboardListeners.set(c,u)),u.push(l)},addBroadcastListener(c,l){const u=e._extraBroadcastListeners;let f=u.get(c);f||(f=new Set,u.set(c,f)),f.add(l)},removeBroadcastListener(c,l){var f;(f=e._extraBroadcastListeners.get(c))==null||f.delete(l)},isViewConfiguredVisible:e.viewVisibilityPredicate,isViewSpec:c=>e.viewFactory.isViewSpec(c),createOrImportView:async function(c,l,u,f,h){return e.viewFactory.createOrImportView(c,n,l,u,f,h)},highlightView:c=>{var l;if((l=this.container.querySelector(".view-highlight"))==null||l.remove(),c){const u=c.coords;if(u){const f=document.createElement("div");f.className="view-highlight",f.style.position="absolute",f.style.left=u.x+"px",f.style.top=u.y+"px",f.style.width=u.width+"px",f.style.height=u.height+"px",f.style.border="1px solid green",f.style.backgroundColor="rgba(0, 255, 0, 0.1)",f.style.pointerEvents="none",this.container.appendChild(f)}}}},r=this.spec;r.datasets&&this.registerNamedDataProvider(c=>r.datasets[c]),this.viewRoot=await n.createOrImportView(r,null,null,Ky),W(this,pn,wu).style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",de(this,pn,Lv).call(this),Mk(this.viewRoot),Pk(this.viewRoot);const o=this.viewRoot.getDescendants();o.forEach(c=>c.configureViewOpacity()),this._glHelper.invalidateSize(),de(this,pn,Ov).call(this);const i=o.filter(c=>c instanceof en),s=Dk(this.viewRoot,n.dataFlow);Fk(s),this.broadcast("dataFlowBuilt",s),i.forEach(c=>c.mark.initializeEncoders());const a=Promise.all(i.map(c=>c.mark.initializeGraphics()));for(const c of i)s.addObserver(l=>{c.mark.initializeData();try{c.mark.updateGraphicsData()}catch(u){throw u.view=c,u}n.animator.requestRender()},c);await n.fontManager.waitUntilReady(),s.initialize(),await Promise.all(s.dataSources.map(c=>c.load())),Qh(this.viewRoot),this.broadcast("dataLoaded"),await a;for(const c of i)c.mark.finalizeGraphicsInitialization();n.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(c=>Bl(c,"size")),this._glHelper.invalidateSize()}async launch(){try{return de(this,pn,Nv).call(this),await this._prepareViewsAndData(),this.registerMouseEvents(),this.computeLayout(),this.animator.requestRender(),!0}catch(e){const n=`${e.view?`At "${e.view.getPathString()}": `:""}${e.toString()}`;return console.error(e.stack),N_(this.container,n),!1}finally{W(this,pn,wu).classList.remove("loading"),window.setTimeout(()=>{this.loadingMessageElement.style.display="none"},2e3)}}registerMouseEvents(){const e=this._glHelper.canvas;let n=performance.now(),r=!1;const o=i=>{var c,l;const s=performance.now(),a=s-n<200;if(i instanceof MouseEvent){const u=e.getBoundingClientRect(),f=new Kt(i.clientX-u.left-e.clientLeft,i.clientY-u.top-e.clientTop);i.type=="mousemove"&&!a&&(this.tooltip.handleMouseMove(i),this._tooltipUpdateRequested=!1,i.buttons==0&&!qy()&&(this.renderPickingFramebuffer(),this._handlePicking(f.x,f.y)));const h=d=>{this.viewRoot.propagateInteractionEvent(new zk(f,d)),this._tooltipUpdateRequested||this.tooltip.clear()};if(i.type!="wheel"&&this._wheelInertia.cancel(),(i.type=="mousedown"||i.type=="mouseup")&&!qy())this.renderPickingFramebuffer();else if(i.type=="wheel"){n=s,this._tooltipUpdateRequested=!1;const d=i;if(Math.abs(d.deltaX)>Math.abs(d.deltaY))this._currentHover=null,this._wheelInertia.cancel();else{const p=Kk(d);this._wheelInertia.setMomentum(d.deltaY*(d.deltaMode?80:1),y=>{const v=new WheelEvent("wheel",{...p,deltaMode:0,deltaX:0,deltaY:y});h(v)}),d.preventDefault();return}}if(i.type=="click"){if(r)return;const d=this._currentHover?{type:i.type,viewPath:this._currentHover.mark.unitView.getLayoutAncestors().map(p=>p.name).reverse(),datum:this._currentHover.datum}:{type:i.type,viewPath:null,datum:null};(c=this._eventListeners.get("click"))==null||c.forEach(p=>p(d))}(i.type!="click"||((l=this._mouseDownCoords)==null?void 0:l.subtract(Kt.fromMouseEvent(i)).length)<3)&&h(i)}};["mousedown","mouseup","wheel","click","mousemove","gesturechange","contextmenu","dblclick"].forEach(i=>e.addEventListener(i,o)),e.addEventListener("mousedown",i=>{this._mouseDownCoords=Kt.fromMouseEvent(i),this.tooltip.sticky?(this.tooltip.sticky=!1,this.tooltip.clear(),r=!0):r=!1;const s=()=>{document.addEventListener("mouseup",()=>this.tooltip.popEnabledState(),{once:!0}),this.tooltip.pushEnabledState(!1)};if(i.button==2||i.shiftKey||i.ctrlKey||i.metaKey)s();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",i=>i.stopPropagation())}_handlePicking(e,n){var i;const r=this._glHelper.readPickingPixel(e,n),o=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;if(o==0){this._currentHover=null;return}if(o!==((i=this._currentHover)==null?void 0:i.uniqueId)&&(this._currentHover=null),this._currentHover||this.viewRoot.visit(s=>{if(s instanceof en){if(s.mark.isPickingParticipant()&&[...s.facetCoords.values()].some(a=>a.containsPoint(e,n))){const a=s.getCollector().findDatumByUniqueId(o);a&&(this._currentHover={mark:s.mark,datum:a,uniqueId:o})}if(this._currentHover)return Aa}}),this._currentHover){const s=this._currentHover.mark;this.updateTooltip(this._currentHover.datum,async a=>{if(!s.isPickingParticipant())return;const c=s.properties.tooltip;if(c!==null){const l=(c==null?void 0:c.handler)??"default",u=this.tooltipHandlers[l];if(!u)throw new Error("No such tooltip handler: "+l);return u(a,s,c==null?void 0:c.params)}})}}updateTooltip(e,n){if(!this._tooltipUpdateRequested||!e)this.tooltip.updateWithDatum(e,n),this._tooltipUpdateRequested=!0;else throw new Error("Tooltip has already been updated! Duplicate event handler?")}computeLayout(){const e=this.viewRoot;if(!e)return;this.broadcast("layout");const n=this._glHelper.getLogicalCanvasSize();if(isNaN(n.width)||isNaN(n.height)){console.log(`NaN in canvas size: ${n.width}x${n.height}. Skipping computeLayout().`);return}this._renderingContext=new Py({picking:!1},this._glHelper),this._pickingContext=new Py({picking:!0},this._glHelper),e.render(new Nk(this._renderingContext,this._pickingContext),Hn.create(0,0,n.width,n.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(n=>{n instanceof en&&n.getDataAccessor("search")&&e.push(n)}),e}getNamedScaleResolutions(){const e=new Map;return this.viewRoot.visit(n=>{for(const r of Object.values(n.resolutions.scale))r.name&&e.set(r.name,r)}),e}}pn=new WeakSet,wu=function(){return this.container.querySelector(".canvas-wrapper")},Lv=function(){const e=[];this.viewRoot.visit(r=>{const o=r.paramMediator;e.push(...O_(o))});const n=this.options.inputBindingContainer;if(!(!n||n=="none"||!e.length)){if(this._inputBindingContainer=Nl("div",{className:"gs-input-bindings"}),n=="default")this.container.appendChild(this._inputBindingContainer);else if(n instanceof HTMLElement)n.appendChild(this._inputBindingContainer);else throw new Error("Invalid inputBindingContainer");e.length&&ws(ot`<div class="gs-input-binding">${e}</div>`,this._inputBindingContainer)}},Ov=function(){const e=this.viewRoot.paramMediator.allocateSetter("devicePixelRatio",window.devicePixelRatio),n=()=>{this._glHelper.invalidateSize(),e(window.devicePixelRatio),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const i=new ResizeObserver(n);i.observe(this.container),this._destructionCallbacks.push(()=>i.disconnect())}let r=null;const o=()=>{r!=null&&(r(),n());const i=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);i.addEventListener("change",o),r=()=>{i.removeEventListener("change",o)}};o(),r&&this._destructionCallbacks.push(r)},Nv=function(){this.container.classList.add("genome-spy");const e=document.createElement("style");e.innerHTML=KE,this.container.appendChild(e);const n=Nl("div",{class:"canvas-wrapper"});this.container.appendChild(n),n.classList.add("loading"),this._glHelper=new dT(n,()=>this.viewRoot?Ok(this.viewRoot):{width:void 0,height:void 0},this.spec.background,{powerPreference:this.options.powerPreference??"default"}),this.loadingMessageElement=Nl("div",{class:"loading-message",innerHTML:'<div class="message">Loading<span class="ellipsis">...</span></div>'}),n.appendChild(this.loadingMessageElement),this.loadingIndicatorsElement=Nl("div",{class:"loading-indicators"}),n.appendChild(this.loadingIndicatorsElement),this.tooltip=new $E(this.container),this.loadingMessageElement.querySelector(".message").addEventListener("transitionend",()=>{this.loadingMessageElement.style.display="none"})};function N_(t,e){const n=document.createElement("div");n.className="message-box";const r=document.createElement("div");r.textContent=e,n.appendChild(r),t.appendChild(n)}function Nl(t,e){const n=document.createElement(t);for(const[r,o]of Object.entries(e))["innerHTML","innerText","className"].includes(r)&&(n[r]=o),n.setAttribute(r,o);return n}const z_="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",U_="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 G_(t,e,n={}){let r;if(rt(t)){if(r=document.querySelector(t),!r)throw new Error(`No such element: ${t}`)}else if(t instanceof HTMLElement)r=t;else throw new Error(`Invalid element: ${t}`);let o;try{const i=Rt(e)?e:await t2(e);if(i.baseUrl??(i.baseUrl=""),i.width??(i.width="container"),i.padding??(i.padding=10),r==document.body){const s=document.createElement("div");s.style.position="fixed",s.style.inset="0",s.style.overflow="hidden",r.appendChild(s),r=s}o=new e2(r,i,n),H_(o,n),await o.launch()}catch(i){r.innerText=i.toString(),console.error(i)}return{finalize(){for(o.destroy();r.firstChild;)r.firstChild.remove()},addEventListener(i,s){const a=o._eventListeners;let c=a.get(i);c||(c=new Set,a.set(i,c)),c.add(s)},removeEventListener(i,s){var c;(c=o._eventListeners.get(i))==null||c.delete(s)},getScaleResolutionByName(i){return o.getNamedScaleResolutions().get(i)},updateNamedData:o.updateNamedData.bind(o)}}function H_(t,e){e.namedDataProvider&&t.registerNamedDataProvider(e.namedDataProvider)}async function t2(t){let e;try{const n=await fetch(t);if(!n.ok)throw new Error(`${n.status} ${n.statusText}`);e=await n.json()}catch(n){throw new Error(`Could not load or parse configuration: ${t}, reason: ${n.message}`)}if(!e.baseUrl){const n=t.match(/^[^?#]*\//);e.baseUrl=n&&n[0]||"./"}return e}function zl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function V_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var ld={},Ca={},n2;function q_(){if(n2)return Ca;n2=1,Ca.byteLength=a,Ca.toByteArray=l,Ca.fromByteArray=h;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)t[o]=r[o],e[r.charCodeAt(o)]=o;e[45]=62,e[95]=63;function s(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=p);var v=y===p?0:4-y%4;return[y,v]}function a(d){var p=s(d),y=p[0],v=p[1];return(y+v)*3/4-v}function c(d,p,y){return(p+y)*3/4-y}function l(d){var p,y=s(d),v=y[0],b=y[1],A=new n(c(d,v,b)),S=0,E=b>0?v-4:v,I;for(I=0;I<E;I+=4)p=e[d.charCodeAt(I)]<<18|e[d.charCodeAt(I+1)]<<12|e[d.charCodeAt(I+2)]<<6|e[d.charCodeAt(I+3)],A[S++]=p>>16&255,A[S++]=p>>8&255,A[S++]=p&255;return b===2&&(p=e[d.charCodeAt(I)]<<2|e[d.charCodeAt(I+1)]>>4,A[S++]=p&255),b===1&&(p=e[d.charCodeAt(I)]<<10|e[d.charCodeAt(I+1)]<<4|e[d.charCodeAt(I+2)]>>2,A[S++]=p>>8&255,A[S++]=p&255),A}function u(d){return t[d>>18&63]+t[d>>12&63]+t[d>>6&63]+t[d&63]}function f(d,p,y){for(var v,b=[],A=p;A<y;A+=3)v=(d[A]<<16&16711680)+(d[A+1]<<8&65280)+(d[A+2]&255),b.push(u(v));return b.join("")}function h(d){for(var p,y=d.length,v=y%3,b=[],A=16383,S=0,E=y-v;S<E;S+=A)b.push(f(d,S,S+A>E?E:S+A));return v===1?(p=d[y-1],b.push(t[p>>2]+t[p<<4&63]+"==")):v===2&&(p=(d[y-2]<<8)+d[y-1],b.push(t[p>>10]+t[p>>4&63]+t[p<<2&63]+"=")),b.join("")}return Ca}var Ul={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var r2;function j_(){return r2||(r2=1,Ul.read=function(t,e,n,r,o){var i,s,a=o*8-r-1,c=(1<<a)-1,l=c>>1,u=-7,f=n?o-1:0,h=n?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-u)-1,d>>=-u,u+=a;u>0;i=i*256+t[e+f],f+=h,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=s*256+t[e+f],f+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-l}return(d?-1:1)*s*Math.pow(2,i-r)},Ul.write=function(t,e,n,r,o,i){var s,a,c,l=i*8-o-1,u=(1<<l)-1,f=u>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=h/c:e+=h*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[n+d]=a&255,d+=p,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[n+d]=s&255,d+=p,s/=256,l-=8);t[n+d-p]|=y*128}),Ul}/*!
|
|
646
646
|
* The buffer module from node.js, for the browser.
|
|
647
647
|
*
|
|
648
648
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
649
649
|
* @license MIT
|
|
650
|
-
*/var r2;function Ca(){return r2||(r2=1,function(t){const e=H_(),n=V_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50;const o=2147483647;t.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const k=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(k,m),k.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(k){if(k>o)throw new RangeError('The value "'+k+'" is invalid for option "size"');const m=new Uint8Array(k);return Object.setPrototypeOf(m,a.prototype),m}function a(k,m,w){if(typeof k=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(k)}return c(k,m,w)}a.poolSize=8192;function c(k,m,w){if(typeof k=="string")return h(k,m);if(ArrayBuffer.isView(k))return p(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if($e(k,ArrayBuffer)||k&&$e(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(k,SharedArrayBuffer)||k&&$e(k.buffer,SharedArrayBuffer)))return b(k,m,w);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const O=k.valueOf&&k.valueOf();if(O!=null&&O!==k)return a.from(O,m,w);const x=v(k);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return a.from(k[Symbol.toPrimitive]("string"),m,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}a.from=function(k,m,w){return c(k,m,w)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function u(k,m,w){return l(k),k<=0?s(k):m!==void 0?typeof w=="string"?s(k).fill(m,w):s(k).fill(m):s(k)}a.alloc=function(k,m,w){return u(k,m,w)};function f(k){return l(k),s(k<0?0:y(k)|0)}a.allocUnsafe=function(k){return f(k)},a.allocUnsafeSlow=function(k){return f(k)};function h(k,m){if((typeof m!="string"||m==="")&&(m="utf8"),!a.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const w=S(k,m)|0;let O=s(w);const x=O.write(k,m);return x!==w&&(O=O.slice(0,x)),O}function d(k){const m=k.length<0?0:y(k.length)|0,w=s(m);for(let O=0;O<m;O+=1)w[O]=k[O]&255;return w}function p(k){if($e(k,Uint8Array)){const m=new Uint8Array(k);return b(m.buffer,m.byteOffset,m.byteLength)}return d(k)}function b(k,m,w){if(m<0||k.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<m+(w||0))throw new RangeError('"length" is outside of buffer bounds');let O;return m===void 0&&w===void 0?O=new Uint8Array(k):w===void 0?O=new Uint8Array(k,m):O=new Uint8Array(k,m,w),Object.setPrototypeOf(O,a.prototype),O}function v(k){if(a.isBuffer(k)){const m=y(k.length)|0,w=s(m);return w.length===0||k.copy(w,0,0,m),w}if(k.length!==void 0)return typeof k.length!="number"||kt(k.length)?s(0):d(k);if(k.type==="Buffer"&&Array.isArray(k.data))return d(k.data)}function y(k){if(k>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return k|0}function A(k){return+k!=k&&(k=0),a.alloc(+k)}a.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==a.prototype},a.compare=function(m,w){if($e(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),$e(w,Uint8Array)&&(w=a.from(w,w.offset,w.byteLength)),!a.isBuffer(m)||!a.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===w)return 0;let O=m.length,x=w.length;for(let z=0,V=Math.min(O,x);z<V;++z)if(m[z]!==w[z]){O=m[z],x=w[z];break}return O<x?-1:x<O?1:0},a.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(m,w){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return a.alloc(0);let O;if(w===void 0)for(w=0,O=0;O<m.length;++O)w+=m[O].length;const x=a.allocUnsafe(w);let z=0;for(O=0;O<m.length;++O){let V=m[O];if($e(V,Uint8Array))z+V.length>x.length?(a.isBuffer(V)||(V=a.from(V)),V.copy(x,z)):Uint8Array.prototype.set.call(x,V,z);else if(a.isBuffer(V))V.copy(x,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=V.length}return x};function S(k,m){if(a.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||$e(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const w=k.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&w===0)return 0;let x=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Ae(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return $t(k).length;default:if(x)return O?-1:Ae(k).length;m=(""+m).toLowerCase(),x=!0}}a.byteLength=S;function E(k,m,w){let O=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,m>>>=0,w<=m))return"";for(k||(k="utf8");;)switch(k){case"hex":return he(this,m,w);case"utf8":case"utf-8":return se(this,m,w);case"ascii":return ce(this,m,w);case"latin1":case"binary":return be(this,m,w);case"base64":return Q(this,m,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,m,w);default:if(O)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),O=!0}}a.prototype._isBuffer=!0;function I(k,m,w){const O=k[m];k[m]=k[w],k[w]=O}a.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<m;w+=2)I(this,w,w+1);return this},a.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<m;w+=4)I(this,w,w+3),I(this,w+1,w+2);return this},a.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<m;w+=8)I(this,w,w+7),I(this,w+1,w+6),I(this,w+2,w+5),I(this,w+3,w+4);return this},a.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?se(this,0,m):E.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(m){if(!a.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:a.compare(this,m)===0},a.prototype.inspect=function(){let m="";const w=t.INSPECT_MAX_BYTES;return m=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(m+=" ... "),"<Buffer "+m+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(m,w,O,x,z){if($e(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(w===void 0&&(w=0),O===void 0&&(O=m?m.length:0),x===void 0&&(x=0),z===void 0&&(z=this.length),w<0||O>m.length||x<0||z>this.length)throw new RangeError("out of range index");if(x>=z&&w>=O)return 0;if(x>=z)return-1;if(w>=O)return 1;if(w>>>=0,O>>>=0,x>>>=0,z>>>=0,this===m)return 0;let V=z-x,ue=O-w;const G=Math.min(V,ue),X=this.slice(x,z),T=m.slice(w,O);for(let re=0;re<G;++re)if(X[re]!==T[re]){V=X[re],ue=T[re];break}return V<ue?-1:ue<V?1:0};function _(k,m,w,O,x){if(k.length===0)return-1;if(typeof w=="string"?(O=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,kt(w)&&(w=x?0:k.length-1),w<0&&(w=k.length+w),w>=k.length){if(x)return-1;w=k.length-1}else if(w<0)if(x)w=0;else return-1;if(typeof m=="string"&&(m=a.from(m,O)),a.isBuffer(m))return m.length===0?-1:B(k,m,w,O,x);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(k,m,w):Uint8Array.prototype.lastIndexOf.call(k,m,w):B(k,[m],w,O,x);throw new TypeError("val must be string, number or Buffer")}function B(k,m,w,O,x){let z=1,V=k.length,ue=m.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(k.length<2||m.length<2)return-1;z=2,V/=2,ue/=2,w/=2}function G(T,re){return z===1?T[re]:T.readUInt16BE(re*z)}let X;if(x){let T=-1;for(X=w;X<V;X++)if(G(k,X)===G(m,T===-1?0:X-T)){if(T===-1&&(T=X),X-T+1===ue)return T*z}else T!==-1&&(X-=X-T),T=-1}else for(w+ue>V&&(w=V-ue),X=w;X>=0;X--){let T=!0;for(let re=0;re<ue;re++)if(G(k,X+re)!==G(m,re)){T=!1;break}if(T)return X}return-1}a.prototype.includes=function(m,w,O){return this.indexOf(m,w,O)!==-1},a.prototype.indexOf=function(m,w,O){return _(this,m,w,O,!0)},a.prototype.lastIndexOf=function(m,w,O){return _(this,m,w,O,!1)};function N(k,m,w,O){w=Number(w)||0;const x=k.length-w;O?(O=Number(O),O>x&&(O=x)):O=x;const z=m.length;O>z/2&&(O=z/2);let V;for(V=0;V<O;++V){const ue=parseInt(m.substr(V*2,2),16);if(kt(ue))return V;k[w+V]=ue}return V}function F(k,m,w,O){return It(Ae(m,k.length-w),k,w,O)}function M(k,m,w,O){return It(Re(m),k,w,O)}function C(k,m,w,O){return It($t(m),k,w,O)}function Y(k,m,w,O){return It(dt(m,k.length-w),k,w,O)}a.prototype.write=function(m,w,O,x){if(w===void 0)x="utf8",O=this.length,w=0;else if(O===void 0&&typeof w=="string")x=w,O=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(O)?(O=O>>>0,x===void 0&&(x="utf8")):(x=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-w;if((O===void 0||O>z)&&(O=z),m.length>0&&(O<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let V=!1;for(;;)switch(x){case"hex":return N(this,m,w,O);case"utf8":case"utf-8":return F(this,m,w,O);case"ascii":case"latin1":case"binary":return M(this,m,w,O);case"base64":return C(this,m,w,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,m,w,O);default:if(V)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),V=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(k,m,w){return m===0&&w===k.length?e.fromByteArray(k):e.fromByteArray(k.slice(m,w))}function se(k,m,w){w=Math.min(k.length,w);const O=[];let x=m;for(;x<w;){const z=k[x];let V=null,ue=z>239?4:z>223?3:z>191?2:1;if(x+ue<=w){let G,X,T,re;switch(ue){case 1:z<128&&(V=z);break;case 2:G=k[x+1],(G&192)===128&&(re=(z&31)<<6|G&63,re>127&&(V=re));break;case 3:G=k[x+1],X=k[x+2],(G&192)===128&&(X&192)===128&&(re=(z&15)<<12|(G&63)<<6|X&63,re>2047&&(re<55296||re>57343)&&(V=re));break;case 4:G=k[x+1],X=k[x+2],T=k[x+3],(G&192)===128&&(X&192)===128&&(T&192)===128&&(re=(z&15)<<18|(G&63)<<12|(X&63)<<6|T&63,re>65535&&re<1114112&&(V=re))}}V===null?(V=65533,ue=1):V>65535&&(V-=65536,O.push(V>>>10&1023|55296),V=56320|V&1023),O.push(V),x+=ue}return ae(O)}const oe=4096;function ae(k){const m=k.length;if(m<=oe)return String.fromCharCode.apply(String,k);let w="",O=0;for(;O<m;)w+=String.fromCharCode.apply(String,k.slice(O,O+=oe));return w}function ce(k,m,w){let O="";w=Math.min(k.length,w);for(let x=m;x<w;++x)O+=String.fromCharCode(k[x]&127);return O}function be(k,m,w){let O="";w=Math.min(k.length,w);for(let x=m;x<w;++x)O+=String.fromCharCode(k[x]);return O}function he(k,m,w){const O=k.length;(!m||m<0)&&(m=0),(!w||w<0||w>O)&&(w=O);let x="";for(let z=m;z<w;++z)x+=Ot[k[z]];return x}function De(k,m,w){const O=k.slice(m,w);let x="";for(let z=0;z<O.length-1;z+=2)x+=String.fromCharCode(O[z]+O[z+1]*256);return x}a.prototype.slice=function(m,w){const O=this.length;m=~~m,w=w===void 0?O:~~w,m<0?(m+=O,m<0&&(m=0)):m>O&&(m=O),w<0?(w+=O,w<0&&(w=0)):w>O&&(w=O),w<m&&(w=m);const x=this.subarray(m,w);return Object.setPrototypeOf(x,a.prototype),x};function we(k,m,w){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+m>w)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m],z=1,V=0;for(;++V<w&&(z*=256);)x+=this[m+V]*z;return x},a.prototype.readUintBE=a.prototype.readUIntBE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m+--w],z=1;for(;w>0&&(z*=256);)x+=this[m+--w]*z;return x},a.prototype.readUint8=a.prototype.readUInt8=function(m,w){return m=m>>>0,w||we(m,1,this.length),this[m]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(m,w){return m=m>>>0,w||we(m,2,this.length),this[m]|this[m+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(m,w){return m=m>>>0,w||we(m,2,this.length),this[m]<<8|this[m+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(m,w){return m=m>>>0,w||we(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},a.prototype.readBigUInt64LE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=w+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,z=this[++m]+this[++m]*2**8+this[++m]*2**16+O*2**24;return BigInt(x)+(BigInt(z)<<BigInt(32))}),a.prototype.readBigUInt64BE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=w*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],z=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+O;return(BigInt(x)<<BigInt(32))+BigInt(z)}),a.prototype.readIntLE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m],z=1,V=0;for(;++V<w&&(z*=256);)x+=this[m+V]*z;return z*=128,x>=z&&(x-=Math.pow(2,8*w)),x},a.prototype.readIntBE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=w,z=1,V=this[m+--x];for(;x>0&&(z*=256);)V+=this[m+--x]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*w)),V},a.prototype.readInt8=function(m,w){return m=m>>>0,w||we(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},a.prototype.readInt16LE=function(m,w){m=m>>>0,w||we(m,2,this.length);const O=this[m]|this[m+1]<<8;return O&32768?O|4294901760:O},a.prototype.readInt16BE=function(m,w){m=m>>>0,w||we(m,2,this.length);const O=this[m+1]|this[m]<<8;return O&32768?O|4294901760:O},a.prototype.readInt32LE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},a.prototype.readInt32BE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},a.prototype.readBigInt64LE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(O<<24);return(BigInt(x)<<BigInt(32))+BigInt(w+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),a.prototype.readBigInt64BE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=(w<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(x)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+O)}),a.prototype.readFloatLE=function(m,w){return m=m>>>0,w||we(m,4,this.length),n.read(this,m,!0,23,4)},a.prototype.readFloatBE=function(m,w){return m=m>>>0,w||we(m,4,this.length),n.read(this,m,!1,23,4)},a.prototype.readDoubleLE=function(m,w){return m=m>>>0,w||we(m,8,this.length),n.read(this,m,!0,52,8)},a.prototype.readDoubleBE=function(m,w){return m=m>>>0,w||we(m,8,this.length),n.read(this,m,!1,52,8)};function Ee(k,m,w,O,x,z){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>x||m<z)throw new RangeError('"value" argument is out of bounds');if(w+O>k.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(m,w,O,x){if(m=+m,w=w>>>0,O=O>>>0,!x){const ue=Math.pow(2,8*O)-1;Ee(this,m,w,O,ue,0)}let z=1,V=0;for(this[w]=m&255;++V<O&&(z*=256);)this[w+V]=m/z&255;return w+O},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(m,w,O,x){if(m=+m,w=w>>>0,O=O>>>0,!x){const ue=Math.pow(2,8*O)-1;Ee(this,m,w,O,ue,0)}let z=O-1,V=1;for(this[w+z]=m&255;--z>=0&&(V*=256);)this[w+z]=m/V&255;return w+O},a.prototype.writeUint8=a.prototype.writeUInt8=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,1,255,0),this[w]=m&255,w+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,65535,0),this[w]=m&255,this[w+1]=m>>>8,w+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,65535,0),this[w]=m>>>8,this[w+1]=m&255,w+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,4294967295,0),this[w+3]=m>>>24,this[w+2]=m>>>16,this[w+1]=m>>>8,this[w]=m&255,w+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,4294967295,0),this[w]=m>>>24,this[w+1]=m>>>16,this[w+2]=m>>>8,this[w+3]=m&255,w+4};function Te(k,m,w,O,x){D(m,O,x,k,w,7);let z=Number(m&BigInt(4294967295));k[w++]=z,z=z>>8,k[w++]=z,z=z>>8,k[w++]=z,z=z>>8,k[w++]=z;let V=Number(m>>BigInt(32)&BigInt(4294967295));return k[w++]=V,V=V>>8,k[w++]=V,V=V>>8,k[w++]=V,V=V>>8,k[w++]=V,w}function Ge(k,m,w,O,x){D(m,O,x,k,w,7);let z=Number(m&BigInt(4294967295));k[w+7]=z,z=z>>8,k[w+6]=z,z=z>>8,k[w+5]=z,z=z>>8,k[w+4]=z;let V=Number(m>>BigInt(32)&BigInt(4294967295));return k[w+3]=V,V=V>>8,k[w+2]=V,V=V>>8,k[w+1]=V,V=V>>8,k[w]=V,w+8}a.prototype.writeBigUInt64LE=et(function(m,w=0){return Te(this,m,w,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=et(function(m,w=0){return Ge(this,m,w,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(m,w,O,x){if(m=+m,w=w>>>0,!x){const G=Math.pow(2,8*O-1);Ee(this,m,w,O,G-1,-G)}let z=0,V=1,ue=0;for(this[w]=m&255;++z<O&&(V*=256);)m<0&&ue===0&&this[w+z-1]!==0&&(ue=1),this[w+z]=(m/V>>0)-ue&255;return w+O},a.prototype.writeIntBE=function(m,w,O,x){if(m=+m,w=w>>>0,!x){const G=Math.pow(2,8*O-1);Ee(this,m,w,O,G-1,-G)}let z=O-1,V=1,ue=0;for(this[w+z]=m&255;--z>=0&&(V*=256);)m<0&&ue===0&&this[w+z+1]!==0&&(ue=1),this[w+z]=(m/V>>0)-ue&255;return w+O},a.prototype.writeInt8=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,1,127,-128),m<0&&(m=255+m+1),this[w]=m&255,w+1},a.prototype.writeInt16LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,32767,-32768),this[w]=m&255,this[w+1]=m>>>8,w+2},a.prototype.writeInt16BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,32767,-32768),this[w]=m>>>8,this[w+1]=m&255,w+2},a.prototype.writeInt32LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,2147483647,-2147483648),this[w]=m&255,this[w+1]=m>>>8,this[w+2]=m>>>16,this[w+3]=m>>>24,w+4},a.prototype.writeInt32BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[w]=m>>>24,this[w+1]=m>>>16,this[w+2]=m>>>8,this[w+3]=m&255,w+4},a.prototype.writeBigInt64LE=et(function(m,w=0){return Te(this,m,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=et(function(m,w=0){return Ge(this,m,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ve(k,m,w,O,x,z){if(w+O>k.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function q(k,m,w,O,x){return m=+m,w=w>>>0,x||Ve(k,m,w,4),n.write(k,m,w,O,23,4),w+4}a.prototype.writeFloatLE=function(m,w,O){return q(this,m,w,!0,O)},a.prototype.writeFloatBE=function(m,w,O){return q(this,m,w,!1,O)};function j(k,m,w,O,x){return m=+m,w=w>>>0,x||Ve(k,m,w,8),n.write(k,m,w,O,52,8),w+8}a.prototype.writeDoubleLE=function(m,w,O){return j(this,m,w,!0,O)},a.prototype.writeDoubleBE=function(m,w,O){return j(this,m,w,!1,O)},a.prototype.copy=function(m,w,O,x){if(!a.isBuffer(m))throw new TypeError("argument should be a Buffer");if(O||(O=0),!x&&x!==0&&(x=this.length),w>=m.length&&(w=m.length),w||(w=0),x>0&&x<O&&(x=O),x===O||m.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),m.length-w<x-O&&(x=m.length-w+O);const z=x-O;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,O,x):Uint8Array.prototype.set.call(m,this.subarray(O,x),w),z},a.prototype.fill=function(m,w,O,x){if(typeof m=="string"){if(typeof w=="string"?(x=w,w=0,O=this.length):typeof O=="string"&&(x=O,O=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!a.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(m.length===1){const V=m.charCodeAt(0);(x==="utf8"&&V<128||x==="latin1")&&(m=V)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(w<0||this.length<w||this.length<O)throw new RangeError("Out of range index");if(O<=w)return this;w=w>>>0,O=O===void 0?this.length:O>>>0,m||(m=0);let z;if(typeof m=="number")for(z=w;z<O;++z)this[z]=m;else{const V=a.isBuffer(m)?m:a.from(m,x),ue=V.length;if(ue===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(z=0;z<O-w;++z)this[z+w]=V[z%ue]}return this};const ee={};function J(k,m,w){ee[k]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${k}]`,this.stack,delete this.name}get code(){return k}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${k}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(k){return k?`${k} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(k,m){return`The "${k}" argument must be of type number. Received type ${typeof m}`},TypeError),J("ERR_OUT_OF_RANGE",function(k,m,w){let O=`The value of "${k}" is out of range.`,x=w;return Number.isInteger(w)&&Math.abs(w)>2**32?x=fe(String(w)):typeof w=="bigint"&&(x=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(x=fe(x)),x+="n"),O+=` It must be ${m}. Received ${x}`,O},RangeError);function fe(k){let m="",w=k.length;const O=k[0]==="-"?1:0;for(;w>=O+4;w-=3)m=`_${k.slice(w-3,w)}${m}`;return`${k.slice(0,w)}${m}`}function L(k,m,w){te(m,"offset"),(k[m]===void 0||k[m+w]===void 0)&&le(m,k.length-(w+1))}function D(k,m,w,O,x,z){if(k>w||k<m){const V=typeof m=="bigint"?"n":"";let ue;throw m===0||m===BigInt(0)?ue=`>= 0${V} and < 2${V} ** ${(z+1)*8}${V}`:ue=`>= -(2${V} ** ${(z+1)*8-1}${V}) and < 2 ** ${(z+1)*8-1}${V}`,new ee.ERR_OUT_OF_RANGE("value",ue,k)}L(O,x,z)}function te(k,m){if(typeof k!="number")throw new ee.ERR_INVALID_ARG_TYPE(m,"number",k)}function le(k,m,w){throw Math.floor(k)!==k?(te(k,w),new ee.ERR_OUT_OF_RANGE("offset","an integer",k)):m<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,k)}const Be=/[^+/0-9A-Za-z-_]/g;function ve(k){if(k=k.split("=")[0],k=k.trim().replace(Be,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function Ae(k,m){m=m||1/0;let w;const O=k.length;let x=null;const z=[];for(let V=0;V<O;++V){if(w=k.charCodeAt(V),w>55295&&w<57344){if(!x){if(w>56319){(m-=3)>-1&&z.push(239,191,189);continue}else if(V+1===O){(m-=3)>-1&&z.push(239,191,189);continue}x=w;continue}if(w<56320){(m-=3)>-1&&z.push(239,191,189),x=w;continue}w=(x-55296<<10|w-56320)+65536}else x&&(m-=3)>-1&&z.push(239,191,189);if(x=null,w<128){if((m-=1)<0)break;z.push(w)}else if(w<2048){if((m-=2)<0)break;z.push(w>>6|192,w&63|128)}else if(w<65536){if((m-=3)<0)break;z.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((m-=4)<0)break;z.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return z}function Re(k){const m=[];for(let w=0;w<k.length;++w)m.push(k.charCodeAt(w)&255);return m}function dt(k,m){let w,O,x;const z=[];for(let V=0;V<k.length&&!((m-=2)<0);++V)w=k.charCodeAt(V),O=w>>8,x=w%256,z.push(x),z.push(O);return z}function $t(k){return e.toByteArray(ve(k))}function It(k,m,w,O){let x;for(x=0;x<O&&!(x+w>=m.length||x>=k.length);++x)m[x+w]=k[x];return x}function $e(k,m){return k instanceof m||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===m.name}function kt(k){return k!==k}const Ot=function(){const k="0123456789abcdef",m=new Array(256);for(let w=0;w<16;++w){const O=w*16;for(let x=0;x<16;++x)m[O+x]=k[w]+k[x]}return m}();function et(k){return typeof BigInt>"u"?Nt:k}function Nt(){throw new Error("BigInt not supported")}}(cd)),cd}var Ke=Ca();const q_=Ye({__proto__:null,default:Nl(Ke)},[Ke]),Ct={},j_=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"}));function i2(t){return(typeof t=="object"&&t!==null&&"message"in t?t.message:`${t}`).replace(/\.$/,"")}class Sn{async getBufferFromResponse(e){const n=await e.arrayBuffer();return Ke.Buffer.from(n)}constructor(e,n={}){this.baseOverrides={},this.url=e;const r=n.fetch||globalThis.fetch.bind(globalThis);if(!r)throw new TypeError("no fetch function supplied, and none found in global environment");n.overrides&&(this.baseOverrides=n.overrides),this.fetchImplementation=r}async fetch(e,n){let r;try{r=await this.fetchImplementation(e,n)}catch(o){if(`${o}`.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,{...n,cache:"reload"})}catch(i){throw new Error(`${i2(i)} fetching ${e}`,{cause:i})}}else throw new Error(`${i2(o)} fetching ${e}`,{cause:o})}return r}async read(e,n=0,r,o=0,i={}){const{headers:s={},signal:a,overrides:c={}}=i;r<1/0?s.range=`bytes=${o}-${o+r}`:r===1/0&&o!==0&&(s.range=`bytes=${o}-`);const l=await this.fetch(this.url,{...this.baseOverrides,...c,headers:{...s,...c.headers,...this.baseOverrides.headers},method:"GET",redirect:"follow",mode:"cors",signal:a});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${this.url}`);if(l.status===200&&o===0||l.status===206){const u=await this.getBufferFromResponse(l),f=u.copy(e,n,0,Math.min(r,u.length)),h=l.headers.get("content-range"),d=/\/(\d+)$/.exec(h||"");return d!=null&&d[1]&&(this._stat={size:parseInt(d[1],10)}),{bytesRead:f,buffer:e}}throw l.status===200?new Error(`${this.url} fetch returned status 200, expected 206`):new Error(`HTTP ${l.status} fetching ${this.url}`)}async readFile(e={}){let n,r;typeof e=="string"?(n=e,r={}):(n=e.encoding,r=e,delete r.encoding);const{headers:o={},signal:i,overrides:s={}}=r,a=await this.fetch(this.url,{headers:o,method:"GET",redirect:"follow",mode:"cors",signal:i,...this.baseOverrides,...s});if(a.status!==200)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(n==="utf8")return a.text();if(n)throw new Error(`unsupported encoding: ${n}`);return this.getBufferFromResponse(a)}async stat(){if(!this._stat){const e=Ke.Buffer.allocUnsafe(10);if(await this.read(e,0,10,0),!this._stat)throw new Error(`unable to determine size of file at ${this.url}`)}return this._stat}async close(){}}function o2(t){const e=new FileReader;return new Promise((n,r)=>{e.onerror=()=>{e.abort(),r(new Error("problem reading blob"))},e.onabort=()=>{r(new Error("blob reading was aborted"))},e.onload=()=>{e.result&&typeof e.result!="string"?n(e.result):r(new Error("unknown error reading blob"))},e.readAsArrayBuffer(t)})}function W_(t){const e=new FileReader;return new Promise((n,r)=>{e.onerror=()=>{e.abort(),r(new Error("problem reading blob"))},e.onabort=()=>{r(new Error("blob reading was aborted"))},e.onload=()=>{e.result&&typeof e.result=="string"?n(e.result):r(new Error("unknown error reading blob"))},e.readAsText(t)})}class Y_{constructor(e){this.blob=e,this.size=e.size}async read(e,n=0,r,o=0){if(!r)return{bytesRead:0,buffer:e};const i=o,s=i+r,a=await o2(this.blob.slice(i,s)),c=Ke.Buffer.from(a);return{bytesRead:c.copy(e,n),buffer:c}}async readFile(e){const n=typeof e=="string"?e:e==null?void 0:e.encoding;if(n==="utf8")return W_(this.blob);if(n)throw new Error(`unsupported encoding: ${n}`);const r=await o2(this.blob);return Ke.Buffer.from(r)}async stat(){return{size:this.size}}async close(){}}function s2(t,e={}){return new Sn(t,e)}function Q_(t,e,n,r={}){if(n!==void 0)return n;if(t!==void 0)return s2(t,r);if(e!==void 0)return new Ct(e,r);throw new Error("no url, path, or filehandle provided, cannot open")}const Ia=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:Y_,LocalFile:Ct,RemoteFile:Sn,fromUrl:s2,open:Q_},Symbol.toStringTag,{value:"Module"}));var ld={},a2;function Or(){return a2||(a2=1,function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(i,s){return Object.prototype.hasOwnProperty.call(i,s)}t.assign=function(i){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var a=s.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var c in a)n(a,c)&&(i[c]=a[c])}}return i},t.shrinkBuf=function(i,s){return i.length===s?i:i.subarray?i.subarray(0,s):(i.length=s,i)};var r={arraySet:function(i,s,a,c,l){if(s.subarray&&i.subarray){i.set(s.subarray(a,a+c),l);return}for(var u=0;u<c;u++)i[l+u]=s[a+u]},flattenChunks:function(i){var s,a,c,l,u,f;for(c=0,s=0,a=i.length;s<a;s++)c+=i[s].length;for(f=new Uint8Array(c),l=0,s=0,a=i.length;s<a;s++)u=i[s],f.set(u,l),l+=u.length;return f}},o={arraySet:function(i,s,a,c,l){for(var u=0;u<c;u++)i[l+u]=s[a+u]},flattenChunks:function(i){return[].concat.apply([],i)}};t.setTyped=function(i){i?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(e)}(ld)),ld}var Eo={},Cn={},Si={},c2;function Z_(){if(c2)return Si;c2=1;var t=Or(),e=4,n=0,r=1,o=2;function i(x){for(var z=x.length;--z>=0;)x[z]=0}var s=0,a=1,c=2,l=3,u=258,f=29,h=256,d=h+1+f,p=30,b=19,v=2*d+1,y=15,A=16,S=7,E=256,I=16,_=17,B=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=512,Q=new Array((d+2)*2);i(Q);var se=new Array(p*2);i(se);var oe=new Array(Y);i(oe);var ae=new Array(u-l+1);i(ae);var ce=new Array(f);i(ce);var be=new Array(p);i(be);function he(x,z,V,ue,G){this.static_tree=x,this.extra_bits=z,this.extra_base=V,this.elems=ue,this.max_length=G,this.has_stree=x&&x.length}var De,we,Ee;function Te(x,z){this.dyn_tree=x,this.max_code=0,this.stat_desc=z}function Ge(x){return x<256?oe[x]:oe[256+(x>>>7)]}function Ve(x,z){x.pending_buf[x.pending++]=z&255,x.pending_buf[x.pending++]=z>>>8&255}function q(x,z,V){x.bi_valid>A-V?(x.bi_buf|=z<<x.bi_valid&65535,Ve(x,x.bi_buf),x.bi_buf=z>>A-x.bi_valid,x.bi_valid+=V-A):(x.bi_buf|=z<<x.bi_valid&65535,x.bi_valid+=V)}function j(x,z,V){q(x,V[z*2],V[z*2+1])}function ee(x,z){var V=0;do V|=x&1,x>>>=1,V<<=1;while(--z>0);return V>>>1}function J(x){x.bi_valid===16?(Ve(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):x.bi_valid>=8&&(x.pending_buf[x.pending++]=x.bi_buf&255,x.bi_buf>>=8,x.bi_valid-=8)}function fe(x,z){var V=z.dyn_tree,ue=z.max_code,G=z.stat_desc.static_tree,X=z.stat_desc.has_stree,T=z.stat_desc.extra_bits,re=z.stat_desc.extra_base,_e=z.stat_desc.max_length,g,K,$,R,H,Z,Ce=0;for(R=0;R<=y;R++)x.bl_count[R]=0;for(V[x.heap[x.heap_max]*2+1]=0,g=x.heap_max+1;g<v;g++)K=x.heap[g],R=V[V[K*2+1]*2+1]+1,R>_e&&(R=_e,Ce++),V[K*2+1]=R,!(K>ue)&&(x.bl_count[R]++,H=0,K>=re&&(H=T[K-re]),Z=V[K*2],x.opt_len+=Z*(R+H),X&&(x.static_len+=Z*(G[K*2+1]+H)));if(Ce!==0){do{for(R=_e-1;x.bl_count[R]===0;)R--;x.bl_count[R]--,x.bl_count[R+1]+=2,x.bl_count[_e]--,Ce-=2}while(Ce>0);for(R=_e;R!==0;R--)for(K=x.bl_count[R];K!==0;)$=x.heap[--g],!($>ue)&&(V[$*2+1]!==R&&(x.opt_len+=(R-V[$*2+1])*V[$*2],V[$*2+1]=R),K--)}}function L(x,z,V){var ue=new Array(y+1),G=0,X,T;for(X=1;X<=y;X++)ue[X]=G=G+V[X-1]<<1;for(T=0;T<=z;T++){var re=x[T*2+1];re!==0&&(x[T*2]=ee(ue[re]++,re))}}function D(){var x,z,V,ue,G,X=new Array(y+1);for(V=0,ue=0;ue<f-1;ue++)for(ce[ue]=V,x=0;x<1<<N[ue];x++)ae[V++]=ue;for(ae[V-1]=ue,G=0,ue=0;ue<16;ue++)for(be[ue]=G,x=0;x<1<<F[ue];x++)oe[G++]=ue;for(G>>=7;ue<p;ue++)for(be[ue]=G<<7,x=0;x<1<<F[ue]-7;x++)oe[256+G++]=ue;for(z=0;z<=y;z++)X[z]=0;for(x=0;x<=143;)Q[x*2+1]=8,x++,X[8]++;for(;x<=255;)Q[x*2+1]=9,x++,X[9]++;for(;x<=279;)Q[x*2+1]=7,x++,X[7]++;for(;x<=287;)Q[x*2+1]=8,x++,X[8]++;for(L(Q,d+1,X),x=0;x<p;x++)se[x*2+1]=5,se[x*2]=ee(x,5);De=new he(Q,N,h+1,d,y),we=new he(se,F,0,p,y),Ee=new he(new Array(0),M,0,b,S)}function te(x){var z;for(z=0;z<d;z++)x.dyn_ltree[z*2]=0;for(z=0;z<p;z++)x.dyn_dtree[z*2]=0;for(z=0;z<b;z++)x.bl_tree[z*2]=0;x.dyn_ltree[E*2]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function le(x){x.bi_valid>8?Ve(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function Be(x,z,V,ue){le(x),Ve(x,V),Ve(x,~V),t.arraySet(x.pending_buf,x.window,z,V,x.pending),x.pending+=V}function ve(x,z,V,ue){var G=z*2,X=V*2;return x[G]<x[X]||x[G]===x[X]&&ue[z]<=ue[V]}function Ae(x,z,V){for(var ue=x.heap[V],G=V<<1;G<=x.heap_len&&(G<x.heap_len&&ve(z,x.heap[G+1],x.heap[G],x.depth)&&G++,!ve(z,ue,x.heap[G],x.depth));)x.heap[V]=x.heap[G],V=G,G<<=1;x.heap[V]=ue}function Re(x,z,V){var ue,G,X=0,T,re;if(x.last_lit!==0)do ue=x.pending_buf[x.d_buf+X*2]<<8|x.pending_buf[x.d_buf+X*2+1],G=x.pending_buf[x.l_buf+X],X++,ue===0?j(x,G,z):(T=ae[G],j(x,T+h+1,z),re=N[T],re!==0&&(G-=ce[T],q(x,G,re)),ue--,T=Ge(ue),j(x,T,V),re=F[T],re!==0&&(ue-=be[T],q(x,ue,re)));while(X<x.last_lit);j(x,E,z)}function dt(x,z){var V=z.dyn_tree,ue=z.stat_desc.static_tree,G=z.stat_desc.has_stree,X=z.stat_desc.elems,T,re,_e=-1,g;for(x.heap_len=0,x.heap_max=v,T=0;T<X;T++)V[T*2]!==0?(x.heap[++x.heap_len]=_e=T,x.depth[T]=0):V[T*2+1]=0;for(;x.heap_len<2;)g=x.heap[++x.heap_len]=_e<2?++_e:0,V[g*2]=1,x.depth[g]=0,x.opt_len--,G&&(x.static_len-=ue[g*2+1]);for(z.max_code=_e,T=x.heap_len>>1;T>=1;T--)Ae(x,V,T);g=X;do T=x.heap[1],x.heap[1]=x.heap[x.heap_len--],Ae(x,V,1),re=x.heap[1],x.heap[--x.heap_max]=T,x.heap[--x.heap_max]=re,V[g*2]=V[T*2]+V[re*2],x.depth[g]=(x.depth[T]>=x.depth[re]?x.depth[T]:x.depth[re])+1,V[T*2+1]=V[re*2+1]=g,x.heap[1]=g++,Ae(x,V,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1],fe(x,z),L(V,_e,x.bl_count)}function $t(x,z,V){var ue,G=-1,X,T=z[0*2+1],re=0,_e=7,g=4;for(T===0&&(_e=138,g=3),z[(V+1)*2+1]=65535,ue=0;ue<=V;ue++)X=T,T=z[(ue+1)*2+1],!(++re<_e&&X===T)&&(re<g?x.bl_tree[X*2]+=re:X!==0?(X!==G&&x.bl_tree[X*2]++,x.bl_tree[I*2]++):re<=10?x.bl_tree[_*2]++:x.bl_tree[B*2]++,re=0,G=X,T===0?(_e=138,g=3):X===T?(_e=6,g=3):(_e=7,g=4))}function It(x,z,V){var ue,G=-1,X,T=z[0*2+1],re=0,_e=7,g=4;for(T===0&&(_e=138,g=3),ue=0;ue<=V;ue++)if(X=T,T=z[(ue+1)*2+1],!(++re<_e&&X===T)){if(re<g)do j(x,X,x.bl_tree);while(--re!==0);else X!==0?(X!==G&&(j(x,X,x.bl_tree),re--),j(x,I,x.bl_tree),q(x,re-3,2)):re<=10?(j(x,_,x.bl_tree),q(x,re-3,3)):(j(x,B,x.bl_tree),q(x,re-11,7));re=0,G=X,T===0?(_e=138,g=3):X===T?(_e=6,g=3):(_e=7,g=4)}}function $e(x){var z;for($t(x,x.dyn_ltree,x.l_desc.max_code),$t(x,x.dyn_dtree,x.d_desc.max_code),dt(x,x.bl_desc),z=b-1;z>=3&&x.bl_tree[C[z]*2+1]===0;z--);return x.opt_len+=3*(z+1)+5+5+4,z}function kt(x,z,V,ue){var G;for(q(x,z-257,5),q(x,V-1,5),q(x,ue-4,4),G=0;G<ue;G++)q(x,x.bl_tree[C[G]*2+1],3);It(x,x.dyn_ltree,z-1),It(x,x.dyn_dtree,V-1)}function Ot(x){var z=4093624447,V;for(V=0;V<=31;V++,z>>>=1)if(z&1&&x.dyn_ltree[V*2]!==0)return n;if(x.dyn_ltree[9*2]!==0||x.dyn_ltree[10*2]!==0||x.dyn_ltree[13*2]!==0)return r;for(V=32;V<h;V++)if(x.dyn_ltree[V*2]!==0)return r;return n}var et=!1;function Nt(x){et||(D(),et=!0),x.l_desc=new Te(x.dyn_ltree,De),x.d_desc=new Te(x.dyn_dtree,we),x.bl_desc=new Te(x.bl_tree,Ee),x.bi_buf=0,x.bi_valid=0,te(x)}function k(x,z,V,ue){q(x,(s<<1)+(ue?1:0),3),Be(x,z,V)}function m(x){q(x,a<<1,3),j(x,E,Q),J(x)}function w(x,z,V,ue){var G,X,T=0;x.level>0?(x.strm.data_type===o&&(x.strm.data_type=Ot(x)),dt(x,x.l_desc),dt(x,x.d_desc),T=$e(x),G=x.opt_len+3+7>>>3,X=x.static_len+3+7>>>3,X<=G&&(G=X)):G=X=V+5,V+4<=G&&z!==-1?k(x,z,V,ue):x.strategy===e||X===G?(q(x,(a<<1)+(ue?1:0),3),Re(x,Q,se)):(q(x,(c<<1)+(ue?1:0),3),kt(x,x.l_desc.max_code+1,x.d_desc.max_code+1,T+1),Re(x,x.dyn_ltree,x.dyn_dtree)),te(x),ue&&le(x)}function O(x,z,V){return x.pending_buf[x.d_buf+x.last_lit*2]=z>>>8&255,x.pending_buf[x.d_buf+x.last_lit*2+1]=z&255,x.pending_buf[x.l_buf+x.last_lit]=V&255,x.last_lit++,z===0?x.dyn_ltree[V*2]++:(x.matches++,z--,x.dyn_ltree[(ae[V]+h+1)*2]++,x.dyn_dtree[Ge(z)*2]++),x.last_lit===x.lit_bufsize-1}return Si._tr_init=Nt,Si._tr_stored_block=k,Si._tr_flush_block=w,Si._tr_tally=O,Si._tr_align=m,Si}var ud,l2;function u2(){if(l2)return ud;l2=1;function t(e,n,r,o){for(var i=e&65535|0,s=e>>>16&65535|0,a=0;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+n[o++]|0,s=s+i|0;while(--a);i%=65521,s%=65521}return i|s<<16|0}return ud=t,ud}var fd,f2;function h2(){if(f2)return fd;f2=1;function t(){for(var r,o=[],i=0;i<256;i++){r=i;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;o[i]=r}return o}var e=t();function n(r,o,i,s){var a=e,c=s+i;r^=-1;for(var l=s;l<c;l++)r=r>>>8^a[(r^o[l])&255];return r^-1}return fd=n,fd}var hd,d2;function dd(){return d2||(d2=1,hd={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"}),hd}var p2;function X_(){if(p2)return Cn;p2=1;var t=Or(),e=Z_(),n=u2(),r=h2(),o=dd(),i=0,s=1,a=3,c=4,l=5,u=0,f=1,h=-2,d=-3,p=-5,b=-1,v=1,y=2,A=3,S=4,E=0,I=2,_=8,B=9,N=15,F=8,M=29,C=256,Y=C+1+M,Q=30,se=19,oe=2*Y+1,ae=15,ce=3,be=258,he=be+ce+1,De=32,we=42,Ee=69,Te=73,Ge=91,Ve=103,q=113,j=666,ee=1,J=2,fe=3,L=4,D=3;function te(g,K){return g.msg=o[K],K}function le(g){return(g<<1)-(g>4?9:0)}function Be(g){for(var K=g.length;--K>=0;)g[K]=0}function ve(g){var K=g.state,$=K.pending;$>g.avail_out&&($=g.avail_out),$!==0&&(t.arraySet(g.output,K.pending_buf,K.pending_out,$,g.next_out),g.next_out+=$,K.pending_out+=$,g.total_out+=$,g.avail_out-=$,K.pending-=$,K.pending===0&&(K.pending_out=0))}function Ae(g,K){e._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,K),g.block_start=g.strstart,ve(g.strm)}function Re(g,K){g.pending_buf[g.pending++]=K}function dt(g,K){g.pending_buf[g.pending++]=K>>>8&255,g.pending_buf[g.pending++]=K&255}function $t(g,K,$,R){var H=g.avail_in;return H>R&&(H=R),H===0?0:(g.avail_in-=H,t.arraySet(K,g.input,g.next_in,H,$),g.state.wrap===1?g.adler=n(g.adler,K,H,$):g.state.wrap===2&&(g.adler=r(g.adler,K,H,$)),g.next_in+=H,g.total_in+=H,H)}function It(g,K){var $=g.max_chain_length,R=g.strstart,H,Z,Ce=g.prev_length,me=g.nice_match,xe=g.strstart>g.w_size-he?g.strstart-(g.w_size-he):0,Ue=g.window,gn=g.w_mask,U=g.prev,Me=g.strstart+be,lt=Ue[R+Ce-1],tt=Ue[R+Ce];g.prev_length>=g.good_match&&($>>=2),me>g.lookahead&&(me=g.lookahead);do if(H=K,!(Ue[H+Ce]!==tt||Ue[H+Ce-1]!==lt||Ue[H]!==Ue[R]||Ue[++H]!==Ue[R+1])){R+=2,H++;do;while(Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&R<Me);if(Z=be-(Me-R),R=Me-be,Z>Ce){if(g.match_start=K,Ce=Z,Z>=me)break;lt=Ue[R+Ce-1],tt=Ue[R+Ce]}}while((K=U[K&gn])>xe&&--$!==0);return Ce<=g.lookahead?Ce:g.lookahead}function $e(g){var K=g.w_size,$,R,H,Z,Ce;do{if(Z=g.window_size-g.lookahead-g.strstart,g.strstart>=K+(K-he)){t.arraySet(g.window,g.window,K,K,0),g.match_start-=K,g.strstart-=K,g.block_start-=K,R=g.hash_size,$=R;do H=g.head[--$],g.head[$]=H>=K?H-K:0;while(--R);R=K,$=R;do H=g.prev[--$],g.prev[$]=H>=K?H-K:0;while(--R);Z+=K}if(g.strm.avail_in===0)break;if(R=$t(g.strm,g.window,g.strstart+g.lookahead,Z),g.lookahead+=R,g.lookahead+g.insert>=ce)for(Ce=g.strstart-g.insert,g.ins_h=g.window[Ce],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+ce-1])&g.hash_mask,g.prev[Ce&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Ce,Ce++,g.insert--,!(g.lookahead+g.insert<ce)););}while(g.lookahead<he&&g.strm.avail_in!==0)}function kt(g,K){var $=65535;for($>g.pending_buf_size-5&&($=g.pending_buf_size-5);;){if(g.lookahead<=1){if($e(g),g.lookahead===0&&K===i)return ee;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var R=g.block_start+$;if((g.strstart===0||g.strstart>=R)&&(g.lookahead=g.strstart-R,g.strstart=R,Ae(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-he&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):(g.strstart>g.block_start&&(Ae(g,!1),g.strm.avail_out===0),ee)}function Ot(g,K){for(var $,R;;){if(g.lookahead<he){if($e(g),g.lookahead<he&&K===i)return ee;if(g.lookahead===0)break}if($=0,g.lookahead>=ce&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),$!==0&&g.strstart-$<=g.w_size-he&&(g.match_length=It(g,$)),g.match_length>=ce)if(R=e._tr_tally(g,g.strstart-g.match_start,g.match_length-ce),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=ce){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else R=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(R&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=g.strstart<ce-1?g.strstart:ce-1,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function et(g,K){for(var $,R,H;;){if(g.lookahead<he){if($e(g),g.lookahead<he&&K===i)return ee;if(g.lookahead===0)break}if($=0,g.lookahead>=ce&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=ce-1,$!==0&&g.prev_length<g.max_lazy_match&&g.strstart-$<=g.w_size-he&&(g.match_length=It(g,$),g.match_length<=5&&(g.strategy===v||g.match_length===ce&&g.strstart-g.match_start>4096)&&(g.match_length=ce-1)),g.prev_length>=ce&&g.match_length<=g.prev_length){H=g.strstart+g.lookahead-ce,R=e._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-ce),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=H&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);if(g.match_available=0,g.match_length=ce-1,g.strstart++,R&&(Ae(g,!1),g.strm.avail_out===0))return ee}else if(g.match_available){if(R=e._tr_tally(g,0,g.window[g.strstart-1]),R&&Ae(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return ee}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(R=e._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<ce-1?g.strstart:ce-1,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function Nt(g,K){for(var $,R,H,Z,Ce=g.window;;){if(g.lookahead<=be){if($e(g),g.lookahead<=be&&K===i)return ee;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=ce&&g.strstart>0&&(H=g.strstart-1,R=Ce[H],R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H])){Z=g.strstart+be;do;while(R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&H<Z);g.match_length=be-(Z-H),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=ce?($=e._tr_tally(g,1,g.match_length-ce),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):($=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),$&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function k(g,K){for(var $;;){if(g.lookahead===0&&($e(g),g.lookahead===0)){if(K===i)return ee;break}if(g.match_length=0,$=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,$&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function m(g,K,$,R,H){this.good_length=g,this.max_lazy=K,this.nice_length=$,this.max_chain=R,this.func=H}var w;w=[new m(0,0,0,0,kt),new m(4,4,8,4,Ot),new m(4,5,16,8,Ot),new m(4,6,32,32,Ot),new m(4,4,16,16,et),new m(8,16,32,32,et),new m(8,16,128,128,et),new m(8,32,128,256,et),new m(32,128,258,1024,et),new m(32,258,258,4096,et)];function O(g){g.window_size=2*g.w_size,Be(g.head),g.max_lazy_match=w[g.level].max_lazy,g.good_match=w[g.level].good_length,g.nice_match=w[g.level].nice_length,g.max_chain_length=w[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=ce-1,g.match_available=0,g.ins_h=0}function x(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(oe*2),this.dyn_dtree=new t.Buf16((2*Q+1)*2),this.bl_tree=new t.Buf16((2*se+1)*2),Be(this.dyn_ltree),Be(this.dyn_dtree),Be(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(ae+1),this.heap=new t.Buf16(2*Y+1),Be(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*Y+1),Be(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(g){var K;return!g||!g.state?te(g,h):(g.total_in=g.total_out=0,g.data_type=I,K=g.state,K.pending=0,K.pending_out=0,K.wrap<0&&(K.wrap=-K.wrap),K.status=K.wrap?we:q,g.adler=K.wrap===2?0:1,K.last_flush=i,e._tr_init(K),u)}function V(g){var K=z(g);return K===u&&O(g.state),K}function ue(g,K){return!g||!g.state||g.state.wrap!==2?h:(g.state.gzhead=K,u)}function G(g,K,$,R,H,Z){if(!g)return h;var Ce=1;if(K===b&&(K=6),R<0?(Ce=0,R=-R):R>15&&(Ce=2,R-=16),H<1||H>B||$!==_||R<8||R>15||K<0||K>9||Z<0||Z>S)return te(g,h);R===8&&(R=9);var me=new x;return g.state=me,me.strm=g,me.wrap=Ce,me.gzhead=null,me.w_bits=R,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=H+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+ce-1)/ce),me.window=new t.Buf8(me.w_size*2),me.head=new t.Buf16(me.hash_size),me.prev=new t.Buf16(me.w_size),me.lit_bufsize=1<<H+6,me.pending_buf_size=me.lit_bufsize*4,me.pending_buf=new t.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=K,me.strategy=Z,me.method=$,V(g)}function X(g,K){return G(g,K,_,N,F,E)}function T(g,K){var $,R,H,Z;if(!g||!g.state||K>l||K<0)return g?te(g,h):h;if(R=g.state,!g.output||!g.input&&g.avail_in!==0||R.status===j&&K!==c)return te(g,g.avail_out===0?p:h);if(R.strm=g,$=R.last_flush,R.last_flush=K,R.status===we)if(R.wrap===2)g.adler=0,Re(R,31),Re(R,139),Re(R,8),R.gzhead?(Re(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),Re(R,R.gzhead.time&255),Re(R,R.gzhead.time>>8&255),Re(R,R.gzhead.time>>16&255),Re(R,R.gzhead.time>>24&255),Re(R,R.level===9?2:R.strategy>=y||R.level<2?4:0),Re(R,R.gzhead.os&255),R.gzhead.extra&&R.gzhead.extra.length&&(Re(R,R.gzhead.extra.length&255),Re(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(g.adler=r(g.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=Ee):(Re(R,0),Re(R,0),Re(R,0),Re(R,0),Re(R,0),Re(R,R.level===9?2:R.strategy>=y||R.level<2?4:0),Re(R,D),R.status=q);else{var Ce=_+(R.w_bits-8<<4)<<8,me=-1;R.strategy>=y||R.level<2?me=0:R.level<6?me=1:R.level===6?me=2:me=3,Ce|=me<<6,R.strstart!==0&&(Ce|=De),Ce+=31-Ce%31,R.status=q,dt(R,Ce),R.strstart!==0&&(dt(R,g.adler>>>16),dt(R,g.adler&65535)),g.adler=1}if(R.status===Ee)if(R.gzhead.extra){for(H=R.pending;R.gzindex<(R.gzhead.extra.length&65535)&&!(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size));)Re(R,R.gzhead.extra[R.gzindex]&255),R.gzindex++;R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),R.gzindex===R.gzhead.extra.length&&(R.gzindex=0,R.status=Te)}else R.status=Te;if(R.status===Te)if(R.gzhead.name){H=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size)){Z=1;break}R.gzindex<R.gzhead.name.length?Z=R.gzhead.name.charCodeAt(R.gzindex++)&255:Z=0,Re(R,Z)}while(Z!==0);R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),Z===0&&(R.gzindex=0,R.status=Ge)}else R.status=Ge;if(R.status===Ge)if(R.gzhead.comment){H=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size)){Z=1;break}R.gzindex<R.gzhead.comment.length?Z=R.gzhead.comment.charCodeAt(R.gzindex++)&255:Z=0,Re(R,Z)}while(Z!==0);R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),Z===0&&(R.status=Ve)}else R.status=Ve;if(R.status===Ve&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&ve(g),R.pending+2<=R.pending_buf_size&&(Re(R,g.adler&255),Re(R,g.adler>>8&255),g.adler=0,R.status=q)):R.status=q),R.pending!==0){if(ve(g),g.avail_out===0)return R.last_flush=-1,u}else if(g.avail_in===0&&le(K)<=le($)&&K!==c)return te(g,p);if(R.status===j&&g.avail_in!==0)return te(g,p);if(g.avail_in!==0||R.lookahead!==0||K!==i&&R.status!==j){var xe=R.strategy===y?k(R,K):R.strategy===A?Nt(R,K):w[R.level].func(R,K);if((xe===fe||xe===L)&&(R.status=j),xe===ee||xe===fe)return g.avail_out===0&&(R.last_flush=-1),u;if(xe===J&&(K===s?e._tr_align(R):K!==l&&(e._tr_stored_block(R,0,0,!1),K===a&&(Be(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),ve(g),g.avail_out===0))return R.last_flush=-1,u}return K!==c?u:R.wrap<=0?f:(R.wrap===2?(Re(R,g.adler&255),Re(R,g.adler>>8&255),Re(R,g.adler>>16&255),Re(R,g.adler>>24&255),Re(R,g.total_in&255),Re(R,g.total_in>>8&255),Re(R,g.total_in>>16&255),Re(R,g.total_in>>24&255)):(dt(R,g.adler>>>16),dt(R,g.adler&65535)),ve(g),R.wrap>0&&(R.wrap=-R.wrap),R.pending!==0?u:f)}function re(g){var K;return!g||!g.state?h:(K=g.state.status,K!==we&&K!==Ee&&K!==Te&&K!==Ge&&K!==Ve&&K!==q&&K!==j?te(g,h):(g.state=null,K===q?te(g,d):u))}function _e(g,K){var $=K.length,R,H,Z,Ce,me,xe,Ue,gn;if(!g||!g.state||(R=g.state,Ce=R.wrap,Ce===2||Ce===1&&R.status!==we||R.lookahead))return h;for(Ce===1&&(g.adler=n(g.adler,K,$,0)),R.wrap=0,$>=R.w_size&&(Ce===0&&(Be(R.head),R.strstart=0,R.block_start=0,R.insert=0),gn=new t.Buf8(R.w_size),t.arraySet(gn,K,$-R.w_size,R.w_size,0),K=gn,$=R.w_size),me=g.avail_in,xe=g.next_in,Ue=g.input,g.avail_in=$,g.next_in=0,g.input=K,$e(R);R.lookahead>=ce;){H=R.strstart,Z=R.lookahead-(ce-1);do R.ins_h=(R.ins_h<<R.hash_shift^R.window[H+ce-1])&R.hash_mask,R.prev[H&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=H,H++;while(--Z);R.strstart=H,R.lookahead=ce-1,$e(R)}return R.strstart+=R.lookahead,R.block_start=R.strstart,R.insert=R.lookahead,R.lookahead=0,R.match_length=R.prev_length=ce-1,R.match_available=0,g.next_in=xe,g.input=Ue,g.avail_in=me,R.wrap=Ce,u}return Cn.deflateInit=X,Cn.deflateInit2=G,Cn.deflateReset=V,Cn.deflateResetKeep=z,Cn.deflateSetHeader=ue,Cn.deflate=T,Cn.deflateEnd=re,Cn.deflateSetDictionary=_e,Cn.deflateInfo="pako deflate (from Nodeca project)",Cn}var Ci={},g2;function m2(){if(g2)return Ci;g2=1;var t=Or(),e=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var r=new t.Buf8(256),o=0;o<256;o++)r[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;r[254]=r[254]=1,Ci.string2buf=function(s){var a,c,l,u,f,h=s.length,d=0;for(u=0;u<h;u++)c=s.charCodeAt(u),(c&64512)===55296&&u+1<h&&(l=s.charCodeAt(u+1),(l&64512)===56320&&(c=65536+(c-55296<<10)+(l-56320),u++)),d+=c<128?1:c<2048?2:c<65536?3:4;for(a=new t.Buf8(d),f=0,u=0;f<d;u++)c=s.charCodeAt(u),(c&64512)===55296&&u+1<h&&(l=s.charCodeAt(u+1),(l&64512)===56320&&(c=65536+(c-55296<<10)+(l-56320),u++)),c<128?a[f++]=c:c<2048?(a[f++]=192|c>>>6,a[f++]=128|c&63):c<65536?(a[f++]=224|c>>>12,a[f++]=128|c>>>6&63,a[f++]=128|c&63):(a[f++]=240|c>>>18,a[f++]=128|c>>>12&63,a[f++]=128|c>>>6&63,a[f++]=128|c&63);return a};function i(s,a){if(a<65534&&(s.subarray&&n||!s.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(s,a));for(var c="",l=0;l<a;l++)c+=String.fromCharCode(s[l]);return c}return Ci.buf2binstring=function(s){return i(s,s.length)},Ci.binstring2buf=function(s){for(var a=new t.Buf8(s.length),c=0,l=a.length;c<l;c++)a[c]=s.charCodeAt(c);return a},Ci.buf2string=function(s,a){var c,l,u,f,h=a||s.length,d=new Array(h*2);for(l=0,c=0;c<h;){if(u=s[c++],u<128){d[l++]=u;continue}if(f=r[u],f>4){d[l++]=65533,c+=f-1;continue}for(u&=f===2?31:f===3?15:7;f>1&&c<h;)u=u<<6|s[c++]&63,f--;if(f>1){d[l++]=65533;continue}u<65536?d[l++]=u:(u-=65536,d[l++]=55296|u>>10&1023,d[l++]=56320|u&1023)}return i(d,l)},Ci.utf8border=function(s,a){var c;for(a=a||s.length,a>s.length&&(a=s.length),c=a-1;c>=0&&(s[c]&192)===128;)c--;return c<0||c===0?a:c+r[s[c]]>a?c:a},Ci}var pd,y2;function b2(){if(y2)return pd;y2=1;function t(){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}return pd=t,pd}var w2;function K_(){if(w2)return Eo;w2=1;var t=X_(),e=Or(),n=m2(),r=dd(),o=b2(),i=Object.prototype.toString,s=0,a=4,c=0,l=1,u=2,f=-1,h=0,d=8;function p(A){if(!(this instanceof p))return new p(A);this.options=e.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},A||{});var S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var E=t.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(E!==c)throw new Error(r[E]);if(S.header&&t.deflateSetHeader(this.strm,S.header),S.dictionary){var I;if(typeof S.dictionary=="string"?I=n.string2buf(S.dictionary):i.call(S.dictionary)==="[object ArrayBuffer]"?I=new Uint8Array(S.dictionary):I=S.dictionary,E=t.deflateSetDictionary(this.strm,I),E!==c)throw new Error(r[E]);this._dict_set=!0}}p.prototype.push=function(A,S){var E=this.strm,I=this.options.chunkSize,_,B;if(this.ended)return!1;B=S===~~S?S:S===!0?a:s,typeof A=="string"?E.input=n.string2buf(A):i.call(A)==="[object ArrayBuffer]"?E.input=new Uint8Array(A):E.input=A,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new e.Buf8(I),E.next_out=0,E.avail_out=I),_=t.deflate(E,B),_!==l&&_!==c)return this.onEnd(_),this.ended=!0,!1;(E.avail_out===0||E.avail_in===0&&(B===a||B===u))&&(this.options.to==="string"?this.onData(n.buf2binstring(e.shrinkBuf(E.output,E.next_out))):this.onData(e.shrinkBuf(E.output,E.next_out)))}while((E.avail_in>0||E.avail_out===0)&&_!==l);return B===a?(_=t.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===c):(B===u&&(this.onEnd(c),E.avail_out=0),!0)},p.prototype.onData=function(A){this.chunks.push(A)},p.prototype.onEnd=function(A){A===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function b(A,S){var E=new p(S);if(E.push(A,!0),E.err)throw E.msg||r[E.err];return E.result}function v(A,S){return S=S||{},S.raw=!0,b(A,S)}function y(A,S){return S=S||{},S.gzip=!0,b(A,S)}return Eo.Deflate=p,Eo.deflate=b,Eo.deflateRaw=v,Eo.gzip=y,Eo}var So={},un={},gd,x2;function J_(){if(x2)return gd;x2=1;var t=30,e=12;return gd=function(r,o){var i,s,a,c,l,u,f,h,d,p,b,v,y,A,S,E,I,_,B,N,F,M,C,Y,Q;i=r.state,s=r.next_in,Y=r.input,a=s+(r.avail_in-5),c=r.next_out,Q=r.output,l=c-(o-r.avail_out),u=c+(r.avail_out-257),f=i.dmax,h=i.wsize,d=i.whave,p=i.wnext,b=i.window,v=i.hold,y=i.bits,A=i.lencode,S=i.distcode,E=(1<<i.lenbits)-1,I=(1<<i.distbits)-1;e:do{y<15&&(v+=Y[s++]<<y,y+=8,v+=Y[s++]<<y,y+=8),_=A[v&E];t:for(;;){if(B=_>>>24,v>>>=B,y-=B,B=_>>>16&255,B===0)Q[c++]=_&65535;else if(B&16){N=_&65535,B&=15,B&&(y<B&&(v+=Y[s++]<<y,y+=8),N+=v&(1<<B)-1,v>>>=B,y-=B),y<15&&(v+=Y[s++]<<y,y+=8,v+=Y[s++]<<y,y+=8),_=S[v&I];n:for(;;){if(B=_>>>24,v>>>=B,y-=B,B=_>>>16&255,B&16){if(F=_&65535,B&=15,y<B&&(v+=Y[s++]<<y,y+=8,y<B&&(v+=Y[s++]<<y,y+=8)),F+=v&(1<<B)-1,F>f){r.msg="invalid distance too far back",i.mode=t;break e}if(v>>>=B,y-=B,B=c-l,F>B){if(B=F-B,B>d&&i.sane){r.msg="invalid distance too far back",i.mode=t;break e}if(M=0,C=b,p===0){if(M+=h-B,B<N){N-=B;do Q[c++]=b[M++];while(--B);M=c-F,C=Q}}else if(p<B){if(M+=h+p-B,B-=p,B<N){N-=B;do Q[c++]=b[M++];while(--B);if(M=0,p<N){B=p,N-=B;do Q[c++]=b[M++];while(--B);M=c-F,C=Q}}}else if(M+=p-B,B<N){N-=B;do Q[c++]=b[M++];while(--B);M=c-F,C=Q}for(;N>2;)Q[c++]=C[M++],Q[c++]=C[M++],Q[c++]=C[M++],N-=3;N&&(Q[c++]=C[M++],N>1&&(Q[c++]=C[M++]))}else{M=c-F;do Q[c++]=Q[M++],Q[c++]=Q[M++],Q[c++]=Q[M++],N-=3;while(N>2);N&&(Q[c++]=Q[M++],N>1&&(Q[c++]=Q[M++]))}}else if(B&64){r.msg="invalid distance code",i.mode=t;break e}else{_=S[(_&65535)+(v&(1<<B)-1)];continue n}break}}else if(B&64)if(B&32){i.mode=e;break e}else{r.msg="invalid literal/length code",i.mode=t;break e}else{_=A[(_&65535)+(v&(1<<B)-1)];continue t}break}}while(s<a&&c<u);N=y>>3,s-=N,y-=N<<3,v&=(1<<y)-1,r.next_in=s,r.next_out=c,r.avail_in=s<a?5+(a-s):5-(s-a),r.avail_out=c<u?257+(u-c):257-(c-u),i.hold=v,i.bits=y},gd}var md,v2;function $_(){if(v2)return md;v2=1;var t=Or(),e=15,n=852,r=592,o=0,i=1,s=2,a=[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],c=[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],l=[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],u=[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];return md=function(h,d,p,b,v,y,A,S){var E=S.bits,I=0,_=0,B=0,N=0,F=0,M=0,C=0,Y=0,Q=0,se=0,oe,ae,ce,be,he,De=null,we=0,Ee,Te=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Ve=null,q=0,j,ee,J;for(I=0;I<=e;I++)Te[I]=0;for(_=0;_<b;_++)Te[d[p+_]]++;for(F=E,N=e;N>=1&&Te[N]===0;N--);if(F>N&&(F=N),N===0)return v[y++]=1<<24|64<<16|0,v[y++]=1<<24|64<<16|0,S.bits=1,0;for(B=1;B<N&&Te[B]===0;B++);for(F<B&&(F=B),Y=1,I=1;I<=e;I++)if(Y<<=1,Y-=Te[I],Y<0)return-1;if(Y>0&&(h===o||N!==1))return-1;for(Ge[1]=0,I=1;I<e;I++)Ge[I+1]=Ge[I]+Te[I];for(_=0;_<b;_++)d[p+_]!==0&&(A[Ge[d[p+_]]++]=_);if(h===o?(De=Ve=A,Ee=19):h===i?(De=a,we-=257,Ve=c,q-=257,Ee=256):(De=l,Ve=u,Ee=-1),se=0,_=0,I=B,he=y,M=F,C=0,ce=-1,Q=1<<F,be=Q-1,h===i&&Q>n||h===s&&Q>r)return 1;for(;;){j=I-C,A[_]<Ee?(ee=0,J=A[_]):A[_]>Ee?(ee=Ve[q+A[_]],J=De[we+A[_]]):(ee=96,J=0),oe=1<<I-C,ae=1<<M,B=ae;do ae-=oe,v[he+(se>>C)+ae]=j<<24|ee<<16|J|0;while(ae!==0);for(oe=1<<I-1;se&oe;)oe>>=1;if(oe!==0?(se&=oe-1,se+=oe):se=0,_++,--Te[I]===0){if(I===N)break;I=d[p+A[_]]}if(I>F&&(se&be)!==ce){for(C===0&&(C=F),he+=B,M=I-C,Y=1<<M;M+C<N&&(Y-=Te[M+C],!(Y<=0));)M++,Y<<=1;if(Q+=1<<M,h===i&&Q>n||h===s&&Q>r)return 1;ce=se&be,v[ce]=F<<24|M<<16|he-y|0}}return se!==0&&(v[he+se]=I-C<<24|64<<16|0),S.bits=F,0},md}var A2;function eR(){if(A2)return un;A2=1;var t=Or(),e=u2(),n=h2(),r=J_(),o=$_(),i=0,s=1,a=2,c=4,l=5,u=6,f=0,h=1,d=2,p=-2,b=-3,v=-4,y=-5,A=8,S=1,E=2,I=3,_=4,B=5,N=6,F=7,M=8,C=9,Y=10,Q=11,se=12,oe=13,ae=14,ce=15,be=16,he=17,De=18,we=19,Ee=20,Te=21,Ge=22,Ve=23,q=24,j=25,ee=26,J=27,fe=28,L=29,D=30,te=31,le=32,Be=852,ve=592,Ae=15,Re=Ae;function dt(G){return(G>>>24&255)+(G>>>8&65280)+((G&65280)<<8)+((G&255)<<24)}function $t(){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=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function It(G){var X;return!G||!G.state?p:(X=G.state,G.total_in=G.total_out=X.total=0,G.msg="",X.wrap&&(G.adler=X.wrap&1),X.mode=S,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new t.Buf32(Be),X.distcode=X.distdyn=new t.Buf32(ve),X.sane=1,X.back=-1,f)}function $e(G){var X;return!G||!G.state?p:(X=G.state,X.wsize=0,X.whave=0,X.wnext=0,It(G))}function kt(G,X){var T,re;return!G||!G.state||(re=G.state,X<0?(T=0,X=-X):(T=(X>>4)+1,X<48&&(X&=15)),X&&(X<8||X>15))?p:(re.window!==null&&re.wbits!==X&&(re.window=null),re.wrap=T,re.wbits=X,$e(G))}function Ot(G,X){var T,re;return G?(re=new $t,G.state=re,re.window=null,T=kt(G,X),T!==f&&(G.state=null),T):p}function et(G){return Ot(G,Re)}var Nt=!0,k,m;function w(G){if(Nt){var X;for(k=new t.Buf32(512),m=new t.Buf32(32),X=0;X<144;)G.lens[X++]=8;for(;X<256;)G.lens[X++]=9;for(;X<280;)G.lens[X++]=7;for(;X<288;)G.lens[X++]=8;for(o(s,G.lens,0,288,k,0,G.work,{bits:9}),X=0;X<32;)G.lens[X++]=5;o(a,G.lens,0,32,m,0,G.work,{bits:5}),Nt=!1}G.lencode=k,G.lenbits=9,G.distcode=m,G.distbits=5}function O(G,X,T,re){var _e,g=G.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new t.Buf8(g.wsize)),re>=g.wsize?(t.arraySet(g.window,X,T-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(_e=g.wsize-g.wnext,_e>re&&(_e=re),t.arraySet(g.window,X,T-re,_e,g.wnext),re-=_e,re?(t.arraySet(g.window,X,T-re,re,0),g.wnext=re,g.whave=g.wsize):(g.wnext+=_e,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=_e))),0}function x(G,X){var T,re,_e,g,K,$,R,H,Z,Ce,me,xe,Ue,gn,U=0,Me,lt,tt,Tt,ke,cr,ft,Ne,ht=new t.Buf8(4),Dn,rn,tc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&G.avail_in!==0)return p;T=G.state,T.mode===se&&(T.mode=oe),K=G.next_out,_e=G.output,R=G.avail_out,g=G.next_in,re=G.input,$=G.avail_in,H=T.hold,Z=T.bits,Ce=$,me=R,Ne=f;e:for(;;)switch(T.mode){case S:if(T.wrap===0){T.mode=oe;break}for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.wrap&2&&H===35615){T.check=0,ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0),H=0,Z=0,T.mode=E;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((H&255)<<8)+(H>>8))%31){G.msg="incorrect header check",T.mode=D;break}if((H&15)!==A){G.msg="unknown compression method",T.mode=D;break}if(H>>>=4,Z-=4,ft=(H&15)+8,T.wbits===0)T.wbits=ft;else if(ft>T.wbits){G.msg="invalid window size",T.mode=D;break}T.dmax=1<<ft,G.adler=T.check=1,T.mode=H&512?Y:se,H=0,Z=0;break;case E:for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.flags=H,(T.flags&255)!==A){G.msg="unknown compression method",T.mode=D;break}if(T.flags&57344){G.msg="unknown header flags set",T.mode=D;break}T.head&&(T.head.text=H>>8&1),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0,T.mode=I;case I:for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.head&&(T.head.time=H),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,ht[2]=H>>>16&255,ht[3]=H>>>24&255,T.check=n(T.check,ht,4,0)),H=0,Z=0,T.mode=_;case _:for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.head&&(T.head.xflags=H&255,T.head.os=H>>8),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0,T.mode=B;case B:if(T.flags&1024){for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.length=H,T.head&&(T.head.extra_len=H),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0}else T.head&&(T.head.extra=null);T.mode=N;case N:if(T.flags&1024&&(xe=T.length,xe>$&&(xe=$),xe&&(T.head&&(ft=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),t.arraySet(T.head.extra,re,g,xe,ft)),T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,T.length-=xe),T.length))break e;T.length=0,T.mode=F;case F:if(T.flags&2048){if($===0)break e;xe=0;do ft=re[g+xe++],T.head&&ft&&T.length<65536&&(T.head.name+=String.fromCharCode(ft));while(ft&&xe<$);if(T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,ft)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=M;case M:if(T.flags&4096){if($===0)break e;xe=0;do ft=re[g+xe++],T.head&&ft&&T.length<65536&&(T.head.comment+=String.fromCharCode(ft));while(ft&&xe<$);if(T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,ft)break e}else T.head&&(T.head.comment=null);T.mode=C;case C:if(T.flags&512){for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H!==(T.check&65535)){G.msg="header crc mismatch",T.mode=D;break}H=0,Z=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),G.adler=T.check=0,T.mode=se;break;case Y:for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}G.adler=T.check=dt(H),H=0,Z=0,T.mode=Q;case Q:if(T.havedict===0)return G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,d;G.adler=T.check=1,T.mode=se;case se:if(X===l||X===u)break e;case oe:if(T.last){H>>>=Z&7,Z-=Z&7,T.mode=J;break}for(;Z<3;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}switch(T.last=H&1,H>>>=1,Z-=1,H&3){case 0:T.mode=ae;break;case 1:if(w(T),T.mode=Ee,X===u){H>>>=2,Z-=2;break e}break;case 2:T.mode=he;break;case 3:G.msg="invalid block type",T.mode=D}H>>>=2,Z-=2;break;case ae:for(H>>>=Z&7,Z-=Z&7;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if((H&65535)!==(H>>>16^65535)){G.msg="invalid stored block lengths",T.mode=D;break}if(T.length=H&65535,H=0,Z=0,T.mode=ce,X===u)break e;case ce:T.mode=be;case be:if(xe=T.length,xe){if(xe>$&&(xe=$),xe>R&&(xe=R),xe===0)break e;t.arraySet(_e,re,g,xe,K),$-=xe,g+=xe,R-=xe,K+=xe,T.length-=xe;break}T.mode=se;break;case he:for(;Z<14;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.nlen=(H&31)+257,H>>>=5,Z-=5,T.ndist=(H&31)+1,H>>>=5,Z-=5,T.ncode=(H&15)+4,H>>>=4,Z-=4,T.nlen>286||T.ndist>30){G.msg="too many length or distance symbols",T.mode=D;break}T.have=0,T.mode=De;case De:for(;T.have<T.ncode;){for(;Z<3;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.lens[tc[T.have++]]=H&7,H>>>=3,Z-=3}for(;T.have<19;)T.lens[tc[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Dn={bits:T.lenbits},Ne=o(i,T.lens,0,19,T.lencode,0,T.work,Dn),T.lenbits=Dn.bits,Ne){G.msg="invalid code lengths set",T.mode=D;break}T.have=0,T.mode=we;case we:for(;T.have<T.nlen+T.ndist;){for(;U=T.lencode[H&(1<<T.lenbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(tt<16)H>>>=Me,Z-=Me,T.lens[T.have++]=tt;else{if(tt===16){for(rn=Me+2;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H>>>=Me,Z-=Me,T.have===0){G.msg="invalid bit length repeat",T.mode=D;break}ft=T.lens[T.have-1],xe=3+(H&3),H>>>=2,Z-=2}else if(tt===17){for(rn=Me+3;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Me,Z-=Me,ft=0,xe=3+(H&7),H>>>=3,Z-=3}else{for(rn=Me+7;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Me,Z-=Me,ft=0,xe=11+(H&127),H>>>=7,Z-=7}if(T.have+xe>T.nlen+T.ndist){G.msg="invalid bit length repeat",T.mode=D;break}for(;xe--;)T.lens[T.have++]=ft}}if(T.mode===D)break;if(T.lens[256]===0){G.msg="invalid code -- missing end-of-block",T.mode=D;break}if(T.lenbits=9,Dn={bits:T.lenbits},Ne=o(s,T.lens,0,T.nlen,T.lencode,0,T.work,Dn),T.lenbits=Dn.bits,Ne){G.msg="invalid literal/lengths set",T.mode=D;break}if(T.distbits=6,T.distcode=T.distdyn,Dn={bits:T.distbits},Ne=o(a,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Dn),T.distbits=Dn.bits,Ne){G.msg="invalid distances set",T.mode=D;break}if(T.mode=Ee,X===u)break e;case Ee:T.mode=Te;case Te:if($>=6&&R>=258){G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,r(G,me),K=G.next_out,_e=G.output,R=G.avail_out,g=G.next_in,re=G.input,$=G.avail_in,H=T.hold,Z=T.bits,T.mode===se&&(T.back=-1);break}for(T.back=0;U=T.lencode[H&(1<<T.lenbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(lt&&!(lt&240)){for(Tt=Me,ke=lt,cr=tt;U=T.lencode[cr+((H&(1<<Tt+ke)-1)>>Tt)],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Tt+Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Tt,Z-=Tt,T.back+=Tt}if(H>>>=Me,Z-=Me,T.back+=Me,T.length=tt,lt===0){T.mode=ee;break}if(lt&32){T.back=-1,T.mode=se;break}if(lt&64){G.msg="invalid literal/length code",T.mode=D;break}T.extra=lt&15,T.mode=Ge;case Ge:if(T.extra){for(rn=T.extra;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.length+=H&(1<<T.extra)-1,H>>>=T.extra,Z-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=Ve;case Ve:for(;U=T.distcode[H&(1<<T.distbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(!(lt&240)){for(Tt=Me,ke=lt,cr=tt;U=T.distcode[cr+((H&(1<<Tt+ke)-1)>>Tt)],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Tt+Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Tt,Z-=Tt,T.back+=Tt}if(H>>>=Me,Z-=Me,T.back+=Me,lt&64){G.msg="invalid distance code",T.mode=D;break}T.offset=tt,T.extra=lt&15,T.mode=q;case q:if(T.extra){for(rn=T.extra;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.offset+=H&(1<<T.extra)-1,H>>>=T.extra,Z-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){G.msg="invalid distance too far back",T.mode=D;break}T.mode=j;case j:if(R===0)break e;if(xe=me-R,T.offset>xe){if(xe=T.offset-xe,xe>T.whave&&T.sane){G.msg="invalid distance too far back",T.mode=D;break}xe>T.wnext?(xe-=T.wnext,Ue=T.wsize-xe):Ue=T.wnext-xe,xe>T.length&&(xe=T.length),gn=T.window}else gn=_e,Ue=K-T.offset,xe=T.length;xe>R&&(xe=R),R-=xe,T.length-=xe;do _e[K++]=gn[Ue++];while(--xe);T.length===0&&(T.mode=Te);break;case ee:if(R===0)break e;_e[K++]=T.length,R--,T.mode=Te;break;case J:if(T.wrap){for(;Z<32;){if($===0)break e;$--,H|=re[g++]<<Z,Z+=8}if(me-=R,G.total_out+=me,T.total+=me,me&&(G.adler=T.check=T.flags?n(T.check,_e,me,K-me):e(T.check,_e,me,K-me)),me=R,(T.flags?H:dt(H))!==T.check){G.msg="incorrect data check",T.mode=D;break}H=0,Z=0}T.mode=fe;case fe:if(T.wrap&&T.flags){for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H!==(T.total&4294967295)){G.msg="incorrect length check",T.mode=D;break}H=0,Z=0}T.mode=L;case L:Ne=h;break e;case D:Ne=b;break e;case te:return v;case le:default:return p}return G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,(T.wsize||me!==G.avail_out&&T.mode<D&&(T.mode<J||X!==c))&&O(G,G.output,G.next_out,me-G.avail_out),Ce-=G.avail_in,me-=G.avail_out,G.total_in+=Ce,G.total_out+=me,T.total+=me,T.wrap&&me&&(G.adler=T.check=T.flags?n(T.check,_e,me,G.next_out-me):e(T.check,_e,me,G.next_out-me)),G.data_type=T.bits+(T.last?64:0)+(T.mode===se?128:0)+(T.mode===Ee||T.mode===ce?256:0),(Ce===0&&me===0||X===c)&&Ne===f&&(Ne=y),Ne}function z(G){if(!G||!G.state)return p;var X=G.state;return X.window&&(X.window=null),G.state=null,f}function V(G,X){var T;return!G||!G.state||(T=G.state,!(T.wrap&2))?p:(T.head=X,X.done=!1,f)}function ue(G,X){var T=X.length,re,_e,g;return!G||!G.state||(re=G.state,re.wrap!==0&&re.mode!==Q)?p:re.mode===Q&&(_e=1,_e=e(_e,X,T,0),_e!==re.check)?b:(g=O(G,X,T,T),g?(re.mode=te,v):(re.havedict=1,f))}return un.inflateReset=$e,un.inflateReset2=kt,un.inflateResetKeep=It,un.inflateInit=et,un.inflateInit2=Ot,un.inflate=x,un.inflateEnd=z,un.inflateGetHeader=V,un.inflateSetDictionary=ue,un.inflateInfo="pako inflate (from Nodeca project)",un}var yd,E2;function S2(){return E2||(E2=1,yd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),yd}var bd,C2;function tR(){if(C2)return bd;C2=1;function t(){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}return bd=t,bd}var I2;function nR(){if(I2)return So;I2=1;var t=eR(),e=Or(),n=m2(),r=S2(),o=dd(),i=b2(),s=tR(),a=Object.prototype.toString;function c(f){if(!(this instanceof c))return new c(f);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},f||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(f&&f.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15||(h.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,h.windowBits);if(d!==r.Z_OK)throw new Error(o[d]);if(this.header=new s,t.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=n.string2buf(h.dictionary):a.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(d=t.inflateSetDictionary(this.strm,h.dictionary),d!==r.Z_OK)))throw new Error(o[d])}c.prototype.push=function(f,h){var d=this.strm,p=this.options.chunkSize,b=this.options.dictionary,v,y,A,S,E,I=!1;if(this.ended)return!1;y=h===~~h?h:h===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof f=="string"?d.input=n.binstring2buf(f):a.call(f)==="[object ArrayBuffer]"?d.input=new Uint8Array(f):d.input=f,d.next_in=0,d.avail_in=d.input.length;do{if(d.avail_out===0&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),v=t.inflate(d,r.Z_NO_FLUSH),v===r.Z_NEED_DICT&&b&&(v=t.inflateSetDictionary(this.strm,b)),v===r.Z_BUF_ERROR&&I===!0&&(v=r.Z_OK,I=!1),v!==r.Z_STREAM_END&&v!==r.Z_OK)return this.onEnd(v),this.ended=!0,!1;d.next_out&&(d.avail_out===0||v===r.Z_STREAM_END||d.avail_in===0&&(y===r.Z_FINISH||y===r.Z_SYNC_FLUSH))&&(this.options.to==="string"?(A=n.utf8border(d.output,d.next_out),S=d.next_out-A,E=n.buf2string(d.output,A),d.next_out=S,d.avail_out=p-S,S&&e.arraySet(d.output,d.output,A,S,0),this.onData(E)):this.onData(e.shrinkBuf(d.output,d.next_out))),d.avail_in===0&&d.avail_out===0&&(I=!0)}while((d.avail_in>0||d.avail_out===0)&&v!==r.Z_STREAM_END);return v===r.Z_STREAM_END&&(y=r.Z_FINISH),y===r.Z_FINISH?(v=t.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===r.Z_OK):(y===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),d.avail_out=0),!0)},c.prototype.onData=function(f){this.chunks.push(f)},c.prototype.onEnd=function(f){f===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function l(f,h){var d=new c(h);if(d.push(f,!0),d.err)throw d.msg||o[d.err];return d.result}function u(f,h){return h=h||{},h.raw=!0,l(f,h)}return So.Inflate=c,So.inflate=l,So.inflateRaw=u,So.ungzip=l,So}var wd,T2;function rR(){if(T2)return wd;T2=1;var t=Or().assign,e=K_(),n=nR(),r=S2(),o={};return t(o,e,n,r),wd=o,wd}var Ul=rR();async function Nr(t){try{let e,n=0,r=0;const o=[];let i=0,s;do{const c=t.subarray(n);if(s=new Ul.Inflate,{strm:e}=s,s.push(c,Ul.Z_SYNC_FLUSH),s.err)throw new Error(s.msg);n+=e.next_in,o[r]=s.result,i+=o[r].length,r+=1}while(e.avail_in);const a=new Uint8Array(i);for(let c=0,l=0;c<o.length;c++)a.set(o[c],l),l+=o[c].length;return Ke.Buffer.from(a)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function D2(t,e){try{let n;const{minv:r,maxv:o}=e;let i=r.blockPosition,s=r.dataPosition;const a=[],c=[],l=[];let u=0,f=0;do{const p=t.subarray(i-r.blockPosition),b=new Ul.Inflate;if({strm:n}=b,b.push(p,Ul.Z_SYNC_FLUSH),b.err)throw new Error(b.msg);const v=b.result;a.push(v);let y=v.length;c.push(i),l.push(s),a.length===1&&r.dataPosition&&(a[0]=a[0].subarray(r.dataPosition),y=a[0].length);const A=i;if(i+=n.next_in,s+=y,A>=o.blockPosition){a[f]=a[f].subarray(0,o.blockPosition===r.blockPosition?o.dataPosition-r.dataPosition+1:o.dataPosition+1),c.push(i),l.push(s),u+=a[f].length;break}u+=a[f].length,f++}while(n.avail_in);const h=new Uint8Array(u);for(let p=0,b=0;p<a.length;p++)h.set(a[p],b),b+=a[p].length;return{buffer:Ke.Buffer.from(h),cpositions:c,dpositions:l}}catch(n){throw/incorrect header check/.exec(`${n}`)?new Error("problem decompressing block: incorrect gzip header check"):n}}var xd,B2;function iR(){if(B2)return xd;B2=1,xd=e;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function e(M,C,Y){this.low=M|0,this.high=C|0,this.unsigned=!!Y}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0});function n(M){return(M&&M.__isLong__)===!0}e.isLong=n;var r={},o={};function i(M,C){var Y,Q,se;return C?(M>>>=0,(se=0<=M&&M<256)&&(Q=o[M],Q)?Q:(Y=a(M,(M|0)<0?-1:0,!0),se&&(o[M]=Y),Y)):(M|=0,(se=-128<=M&&M<128)&&(Q=r[M],Q)?Q:(Y=a(M,M<0?-1:0,!1),se&&(r[M]=Y),Y))}e.fromInt=i;function s(M,C){if(isNaN(M))return C?A:y;if(C){if(M<0)return A;if(M>=p)return B}else{if(M<=-9223372036854776e3)return N;if(M+1>=b)return _}return M<0?s(-M,C).neg():a(M%d|0,M/d|0,C)}e.fromNumber=s;function a(M,C,Y){return new e(M,C,Y)}e.fromBits=a;var c=Math.pow;function l(M,C,Y){if(M.length===0)throw Error("empty string");if(M==="NaN"||M==="Infinity"||M==="+Infinity"||M==="-Infinity")return y;if(typeof C=="number"?(Y=C,C=!1):C=!!C,Y=Y||10,Y<2||36<Y)throw RangeError("radix");var Q;if((Q=M.indexOf("-"))>0)throw Error("interior hyphen");if(Q===0)return l(M.substring(1),C,Y).neg();for(var se=s(c(Y,8)),oe=y,ae=0;ae<M.length;ae+=8){var ce=Math.min(8,M.length-ae),be=parseInt(M.substring(ae,ae+ce),Y);if(ce<8){var he=s(c(Y,ce));oe=oe.mul(he).add(s(be))}else oe=oe.mul(se),oe=oe.add(s(be))}return oe.unsigned=C,oe}e.fromString=l;function u(M,C){return typeof M=="number"?s(M,C):typeof M=="string"?l(M,C):a(M.low,M.high,typeof C=="boolean"?C:M.unsigned)}e.fromValue=u;var f=65536,h=1<<24,d=f*f,p=d*d,b=p/2,v=i(h),y=i(0);e.ZERO=y;var A=i(0,!0);e.UZERO=A;var S=i(1);e.ONE=S;var E=i(1,!0);e.UONE=E;var I=i(-1);e.NEG_ONE=I;var _=a(-1,2147483647,!1);e.MAX_VALUE=_;var B=a(-1,-1,!0);e.MAX_UNSIGNED_VALUE=B;var N=a(0,-2147483648,!1);e.MIN_VALUE=N;var F=e.prototype;return F.toInt=function(){return this.unsigned?this.low>>>0:this.low},F.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},F.toString=function(C){if(C=C||10,C<2||36<C)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(N)){var Y=s(C),Q=this.div(Y),se=Q.mul(Y).sub(this);return Q.toString(C)+se.toInt().toString(C)}else return"-"+this.neg().toString(C);for(var oe=s(c(C,6),this.unsigned),ae=this,ce="";;){var be=ae.div(oe),he=ae.sub(be.mul(oe)).toInt()>>>0,De=he.toString(C);if(ae=be,ae.isZero())return De+ce;for(;De.length<6;)De="0"+De;ce=""+De+ce}},F.getHighBits=function(){return this.high},F.getHighBitsUnsigned=function(){return this.high>>>0},F.getLowBits=function(){return this.low},F.getLowBitsUnsigned=function(){return this.low>>>0},F.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var C=this.high!=0?this.high:this.low,Y=31;Y>0&&!(C&1<<Y);Y--);return this.high!=0?Y+33:Y+1},F.isZero=function(){return this.high===0&&this.low===0},F.eqz=F.isZero,F.isNegative=function(){return!this.unsigned&&this.high<0},F.isPositive=function(){return this.unsigned||this.high>=0},F.isOdd=function(){return(this.low&1)===1},F.isEven=function(){return(this.low&1)===0},F.equals=function(C){return n(C)||(C=u(C)),this.unsigned!==C.unsigned&&this.high>>>31===1&&C.high>>>31===1?!1:this.high===C.high&&this.low===C.low},F.eq=F.equals,F.notEquals=function(C){return!this.eq(C)},F.neq=F.notEquals,F.ne=F.notEquals,F.lessThan=function(C){return this.comp(C)<0},F.lt=F.lessThan,F.lessThanOrEqual=function(C){return this.comp(C)<=0},F.lte=F.lessThanOrEqual,F.le=F.lessThanOrEqual,F.greaterThan=function(C){return this.comp(C)>0},F.gt=F.greaterThan,F.greaterThanOrEqual=function(C){return this.comp(C)>=0},F.gte=F.greaterThanOrEqual,F.ge=F.greaterThanOrEqual,F.compare=function(C){if(n(C)||(C=u(C)),this.eq(C))return 0;var Y=this.isNegative(),Q=C.isNegative();return Y&&!Q?-1:!Y&&Q?1:this.unsigned?C.high>>>0>this.high>>>0||C.high===this.high&&C.low>>>0>this.low>>>0?-1:1:this.sub(C).isNegative()?-1:1},F.comp=F.compare,F.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(S)},F.neg=F.negate,F.add=function(C){n(C)||(C=u(C));var Y=this.high>>>16,Q=this.high&65535,se=this.low>>>16,oe=this.low&65535,ae=C.high>>>16,ce=C.high&65535,be=C.low>>>16,he=C.low&65535,De=0,we=0,Ee=0,Te=0;return Te+=oe+he,Ee+=Te>>>16,Te&=65535,Ee+=se+be,we+=Ee>>>16,Ee&=65535,we+=Q+ce,De+=we>>>16,we&=65535,De+=Y+ae,De&=65535,a(Ee<<16|Te,De<<16|we,this.unsigned)},F.subtract=function(C){return n(C)||(C=u(C)),this.add(C.neg())},F.sub=F.subtract,F.multiply=function(C){if(this.isZero())return y;if(n(C)||(C=u(C)),t){var Y=t.mul(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}if(C.isZero())return y;if(this.eq(N))return C.isOdd()?N:y;if(C.eq(N))return this.isOdd()?N:y;if(this.isNegative())return C.isNegative()?this.neg().mul(C.neg()):this.neg().mul(C).neg();if(C.isNegative())return this.mul(C.neg()).neg();if(this.lt(v)&&C.lt(v))return s(this.toNumber()*C.toNumber(),this.unsigned);var Q=this.high>>>16,se=this.high&65535,oe=this.low>>>16,ae=this.low&65535,ce=C.high>>>16,be=C.high&65535,he=C.low>>>16,De=C.low&65535,we=0,Ee=0,Te=0,Ge=0;return Ge+=ae*De,Te+=Ge>>>16,Ge&=65535,Te+=oe*De,Ee+=Te>>>16,Te&=65535,Te+=ae*he,Ee+=Te>>>16,Te&=65535,Ee+=se*De,we+=Ee>>>16,Ee&=65535,Ee+=oe*he,we+=Ee>>>16,Ee&=65535,Ee+=ae*be,we+=Ee>>>16,Ee&=65535,we+=Q*De+se*he+oe*be+ae*ce,we&=65535,a(Te<<16|Ge,we<<16|Ee,this.unsigned)},F.mul=F.multiply,F.divide=function(C){if(n(C)||(C=u(C)),C.isZero())throw Error("division by zero");if(t){if(!this.unsigned&&this.high===-2147483648&&C.low===-1&&C.high===-1)return this;var Y=(this.unsigned?t.div_u:t.div_s)(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?A:y;var Q,se,oe;if(this.unsigned){if(C.unsigned||(C=C.toUnsigned()),C.gt(this))return A;if(C.gt(this.shru(1)))return E;oe=A}else{if(this.eq(N)){if(C.eq(S)||C.eq(I))return N;if(C.eq(N))return S;var ae=this.shr(1);return Q=ae.div(C).shl(1),Q.eq(y)?C.isNegative()?S:I:(se=this.sub(C.mul(Q)),oe=Q.add(se.div(C)),oe)}else if(C.eq(N))return this.unsigned?A:y;if(this.isNegative())return C.isNegative()?this.neg().div(C.neg()):this.neg().div(C).neg();if(C.isNegative())return this.div(C.neg()).neg();oe=y}for(se=this;se.gte(C);){Q=Math.max(1,Math.floor(se.toNumber()/C.toNumber()));for(var ce=Math.ceil(Math.log(Q)/Math.LN2),be=ce<=48?1:c(2,ce-48),he=s(Q),De=he.mul(C);De.isNegative()||De.gt(se);)Q-=be,he=s(Q,this.unsigned),De=he.mul(C);he.isZero()&&(he=S),oe=oe.add(he),se=se.sub(De)}return oe},F.div=F.divide,F.modulo=function(C){if(n(C)||(C=u(C)),t){var Y=(this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}return this.sub(this.div(C).mul(C))},F.mod=F.modulo,F.rem=F.modulo,F.not=function(){return a(~this.low,~this.high,this.unsigned)},F.and=function(C){return n(C)||(C=u(C)),a(this.low&C.low,this.high&C.high,this.unsigned)},F.or=function(C){return n(C)||(C=u(C)),a(this.low|C.low,this.high|C.high,this.unsigned)},F.xor=function(C){return n(C)||(C=u(C)),a(this.low^C.low,this.high^C.high,this.unsigned)},F.shiftLeft=function(C){return n(C)&&(C=C.toInt()),(C&=63)===0?this:C<32?a(this.low<<C,this.high<<C|this.low>>>32-C,this.unsigned):a(0,this.low<<C-32,this.unsigned)},F.shl=F.shiftLeft,F.shiftRight=function(C){return n(C)&&(C=C.toInt()),(C&=63)===0?this:C<32?a(this.low>>>C|this.high<<32-C,this.high>>C,this.unsigned):a(this.high>>C-32,this.high>=0?0:-1,this.unsigned)},F.shr=F.shiftRight,F.shiftRightUnsigned=function(C){if(n(C)&&(C=C.toInt()),C&=63,C===0)return this;var Y=this.high;if(C<32){var Q=this.low;return a(Q>>>C|Y<<32-C,Y>>>C,this.unsigned)}else return C===32?a(Y,0,this.unsigned):a(Y>>>C-32,0,this.unsigned)},F.shru=F.shiftRightUnsigned,F.shr_u=F.shiftRightUnsigned,F.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},F.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},F.toBytes=function(C){return C?this.toBytesLE():this.toBytesBE()},F.toBytesLE=function(){var C=this.high,Y=this.low;return[Y&255,Y>>>8&255,Y>>>16&255,Y>>>24,C&255,C>>>8&255,C>>>16&255,C>>>24]},F.toBytesBE=function(){var C=this.high,Y=this.low;return[C>>>24,C>>>16&255,C>>>8&255,C&255,Y>>>24,Y>>>16&255,Y>>>8&255,Y&255]},e.fromBytes=function(C,Y,Q){return Q?e.fromBytesLE(C,Y):e.fromBytesBE(C,Y)},e.fromBytesLE=function(C,Y){return new e(C[0]|C[1]<<8|C[2]<<16|C[3]<<24,C[4]|C[5]<<8|C[6]<<16|C[7]<<24,Y)},e.fromBytesBE=function(C,Y){return new e(C[4]<<24|C[5]<<16|C[6]<<8|C[7],C[0]<<24|C[1]<<16|C[2]<<8|C[3],Y)},xd}var oR=iR();const Gl=Nl(oR),Hl=1;class sR{constructor({filehandle:e,path:n}){if(e)this.filehandle=e;else if(n)this.filehandle=new Ct(n);else throw new TypeError("either filehandle or path must be defined")}_readLongWithOverflow(e,n=0,r=!0){const o=Gl.fromBytesLE(e.slice(n,n+8),r);if(o.greaterThan(Number.MAX_SAFE_INTEGER)||o.lessThan(Number.MIN_SAFE_INTEGER))throw new TypeError("integer overflow");return o.toNumber()}_getIndex(){return this.index||(this.index=this._readIndex()),this.index}async _readIndex(){let e=Ke.Buffer.allocUnsafe(8);await this.filehandle.read(e,0,8,0);const n=this._readLongWithOverflow(e,0,!0);if(!n)return[[0,0]];const r=new Array(n+1);r[0]=[0,0];const o=8*2*n;if(o>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");e=Ke.Buffer.allocUnsafe(o),await this.filehandle.read(e,0,o,8);for(let i=0;i<n;i+=1){const s=this._readLongWithOverflow(e,i*16),a=this._readLongWithOverflow(e,i*16+8);r[i+1]=[s,a]}return r}async getLastBlock(){const e=await this._getIndex();if(e.length)return e[e.length-1]}async getRelevantBlocksForRead(e,n){const r=n+e;if(e===0)return[];const o=await this._getIndex(),i=[],s=(h,d)=>{const p=h[Hl],b=d?d[Hl]:1/0;return p<=n&&b>n?0:p<n?-1:1};let a=0,c=o.length-1,l=Math.floor(o.length/2),u=s(o[l],o[l+1]);for(;u!==0;)u>0?c=l-1:u<0&&(a=l+1),l=Math.ceil((c-a)/2)+a,u=s(o[l],o[l+1]);i.push(o[l]);let f=l+1;for(;f<o.length&&(i.push(o[f]),!(o[f][Hl]>=r));f+=1);return i[i.length-1][Hl]<r&&i.push([]),i}}class k2{constructor({filehandle:e,path:n,gziFilehandle:r,gziPath:o}){if(e)this.filehandle=e;else if(n)this.filehandle=new Ct(n);else throw new TypeError("either filehandle or path must be defined");if(!r&&!o&&!n)throw new TypeError("either gziFilehandle or gziPath must be defined");this.gzi=new sR({filehandle:r,path:!r&&!o&&n?o:`${n}.gzi`})}async stat(){const e=await this.filehandle.stat();return Object.assign(e,{size:await this.getUncompressedFileSize(),blocks:void 0,blksize:void 0})}async getUncompressedFileSize(){const[,e]=await this.gzi.getLastBlock(),{size:n}=await this.filehandle.stat(),r=Ke.Buffer.allocUnsafe(4),{bytesRead:o}=await this.filehandle.read(r,0,4,n-28-4);if(o!==4)throw new Error("read error");const i=r.readUInt32LE(0);return e+i}async _readAndUncompressBlock(e,[n],[r]){let o=r;o||(o=(await this.filehandle.stat()).size);const i=o-n;return await this.filehandle.read(e,0,i,n),await Nr(e.slice(0,i))}async read(e,n,r,o){const i=await this.gzi.getRelevantBlocksForRead(r,o),s=Ke.Buffer.allocUnsafe(32768*2);let a=n,c=0;for(let l=0;l<i.length-1;l+=1){const u=await this._readAndUncompressBlock(s,i[l],i[l+1]),[,f]=i[l],h=f>=o?0:o-f,d=Math.min(o+r,f+u.length)-f;h>=0&&h<u.length&&(u.copy(e,a,h,d),a+=d-h,c+=d-h)}return{bytesRead:c,buffer:e}}}function _2(t,e){return t.offset+t.lineBytes*Math.floor(e/t.lineLength)+e%t.lineLength}async function aR(t,e){const n=await t.readFile(e);if(!(n!=null&&n.length))throw new Error("No data read from FASTA index (FAI) file");let r=0,o;const i=n.toString("utf8").split(/\r?\n/).filter(s=>/\S/.test(s)).map(s=>s.split(" ")).filter(s=>s[0]!=="").map(s=>((!o||o.name!==s[0])&&(o={name:s[0],id:r},r+=1),{id:o.id,name:s[0],length:+s[1],start:0,end:+s[1],offset:+s[2],lineLength:+s[3],lineBytes:+s[4]}));return{name:Object.fromEntries(i.map(s=>[s.name,s])),id:Object.fromEntries(i.map(s=>[s.id,s]))}}class R2{constructor({fasta:e,fai:n,path:r,faiPath:o}){if(e)this.fasta=e;else if(r)this.fasta=new Ct(r);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(n)this.fai=n;else if(o)this.fai=new Ct(o);else if(r)this.fai=new Ct(`${r}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(e){return this.indexes||(this.indexes=aR(this.fai,e)),this.indexes}async getSequenceNames(e){return Object.keys((await this._getIndexes(e)).name)}async getSequenceSizes(e){const n={},r=await this._getIndexes(e);for(const o of Object.values(r.id))n[o.name]=o.length;return n}async getSequenceSize(e,n){var r;return(r=(await this._getIndexes(n)).name[e])===null||r===void 0?void 0:r.length}async hasReferenceSequence(e,n){return!!(await this._getIndexes(n)).name[e]}async getResiduesById(e,n,r,o){const i=(await this._getIndexes(o)).id[e];if(i)return this._fetchFromIndexEntry(i,n,r,o)}async getResiduesByName(e,n,r,o){const i=(await this._getIndexes(o)).name[e];if(i)return this._fetchFromIndexEntry(i,n,r,o)}async getSequence(e,n,r,o){return this.getResiduesByName(e,n,r,o)}async _fetchFromIndexEntry(e,n=0,r,o){let i=r;if(n<0)throw new TypeError("regionStart cannot be less than 0");if((i===void 0||i>e.length)&&(i=e.length),n>=i)return"";const s=_2(e,n),a=_2(e,i)-s,c=Ke.Buffer.allocUnsafe(a);return await this.fasta.read(c,0,a,s,o),c.toString("utf8").replace(/\s+/g,"")}}class cR extends R2{constructor({fasta:e,path:n,fai:r,faiPath:o,gzi:i,gziPath:s}){super({fasta:e,path:n,fai:r,faiPath:o}),e&&i?this.fasta=new k2({filehandle:e,gziFilehandle:i}):n&&s&&(this.fasta=new k2({path:n,gziPath:s}))}}function F2(t){return t.split(">").filter(e=>/\S/.test(e)).map(e=>{const[n,...r]=e.split(`
|
|
651
|
-
`),[o,...i]=n.split(" "),s=r.join("").replace(/\s/g,"");return{id:o,description:i.join(" "),sequence:s}})}class lR{constructor({fasta:e,path:n}){if(e)this.fasta=e;else if(n)this.fasta=new Ct(n);else throw new Error("Need to pass fasta or path");this.data=this.fasta.readFile().then(r=>{const o=r.toString("utf8");return F2(o)})}async fetch(e,n,r){const i=(await this.data).find(a=>a.id===e),s=r-n;if(!i)throw new Error(`no sequence with id ${e} exists`);return i.sequence.slice(n,s)}async getSequenceNames(){return(await this.data).map(n=>n.id)}}const uR=Object.freeze(Object.defineProperty({__proto__:null,BgzipIndexedFasta:cR,FetchableSmallFasta:lR,IndexedFasta:R2,parseSmallFasta:F2},Symbol.toStringTag,{value:"Module"})),M2=BigInt(32);function fR(t,e,n){const r=+!!n,o=+!n;return BigInt(t.getInt32(e,n)*o+t.getInt32(e+4,n)*r)<<M2|BigInt(t.getUint32(e,n)*r+t.getUint32(e+4,n)*o)}function hR(t,e,n){const r=t.getUint32(e,n),o=t.getUint32(e+4,n),i=+!!n,s=+!n;return BigInt(r*s+o*i)<<M2|BigInt(r*i+o*s)}"getBigInt64"in DataView||(DataView.prototype.getBigInt64=function(t,e){return fR(this,t,e)}),"getBigUint64"in DataView||(DataView.prototype.getBigUint64=function(t,e){return hR(this,t,e)});class dR{}class pR{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(e=new dR){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 gR{constructor(){this.callbacks=new Set}addCallback(e=()=>{}){this.callbacks.add(e),e(this.currentMessage)}callback(e){this.currentMessage=e;for(const n of this.callbacks)n(e)}}class Ii{constructor({fill:e,cache:n}){if(typeof e!="function")throw new TypeError("must pass a fill function");if(typeof n!="object")throw new TypeError("must pass a cache object");if(typeof n.get!="function"||typeof n.set!="function"||typeof n.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=n,this.fillCallback=e}static isAbortException(e){return e.name==="AbortError"||e.code==="ERR_ABORTED"||e.message==="AbortError: aborted"||e.message==="Error: aborted"}evict(e,n){this.cache.get(e)===n&&this.cache.delete(e)}fill(e,n,r,o){const i=new pR,s=new gR;s.addCallback(o);const a={aborter:i,promise:this.fillCallback(n,i.signal,c=>{s.callback(c)}),settled:!1,statusReporter:s,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,n){function r(){if(n!=null&&n.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return e.then(o=>(r(),o),o=>{throw r(),o})}has(e){return this.cache.has(e)}get(e,n,r,o){if(!r&&n instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const i=this.cache.get(e);return i?i.aborted&&!i.settled?(this.evict(e,i),this.get(e,n,r,o)):i.settled?i.promise:(i.aborter.addSignal(r),i.statusReporter.addCallback(o),Ii.checkSinglePromise(i.promise,r)):(this.fill(e,n,r,o),Ii.checkSinglePromise(this.cache.get(e).promise,r))}delete(e){const n=this.cache.get(e);n&&(n.settled||n.aborter.abort(),this.cache.delete(e))}clear(){const e=this.cache.keys();let n=0;for(let r=e.next();!r.done;r=e.next())this.delete(r.value),n+=1;return n}}var vd,P2;function mR(){if(P2)return vd;P2=1;class t{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,r){this.cache.set(n,r),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){const r=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,r),r}}set(n,r){return this.cache.has(n)?this.cache.set(n,r):this._set(n,r),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){const r=this.cache.delete(n);return r&&this._size--,this.oldCache.delete(n)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[n]of this)yield n}*values(){for(const[,n]of this)yield n}*[Symbol.iterator](){for(const n of this.cache)yield n;for(const n of this.oldCache){const[r]=n;this.cache.has(r)||(yield n)}}get size(){let n=0;for(const r of this.oldCache.keys())this.cache.has(r)||n++;return this._size+n}}return vd=t,vd}var yR=mR();const Vl=Nl(yR);class Co{constructor(e){this.ranges=e}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(e){for(const n of this.ranges)if(n.min<=e&&n.max>=e)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(e=>new Co([{min:e.min,max:e.max}]))}toString(){return this.ranges.map(e=>`[${e.min}-${e.max}]`).join(",")}union(e){const n=[...this.getRanges(),...e.getRanges()].sort((i,s)=>i.min<s.min?-1:i.min>s.min?1:i.max<s.max?-1:s.max>i.max?1:0),r=[];let o=n[0];for(const i of n)i.min>o.max+1?(r.push(o),o=i):i.max>o.max&&(o=new Co([{min:o.min,max:i.max}]));return r.push(o),r.length===1?r[0]:new Co(r)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function Io(t){let e=t.length;for(;--e>=0;)t[e]=0}const bR=3,wR=258,L2=29,xR=256+1+L2,O2=30,vR=512,AR=new Array((xR+2)*2);Io(AR);const ER=new Array(O2*2);Io(ER);const SR=new Array(vR);Io(SR);const CR=new Array(wR-bR+1);Io(CR);const IR=new Array(L2);Io(IR);const TR=new Array(O2);Io(TR);var Ad=(t,e,n,r)=>{let o=t&65535|0,i=t>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do o=o+e[r++]|0,i=i+o|0;while(--s);o%=65521,i%=65521}return o|i<<16|0};const DR=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},BR=new Uint32Array(DR());var Vn=(t,e,n,r)=>{const o=BR,i=r+n;t^=-1;for(let s=r;s<i;s++)t=t>>>8^o[(t^e[s])&255];return t^-1},Ed={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"},N2={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const kR=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var _R=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)kR(n,r)&&(t[r]=n[r])}}return t},RR=t=>{let e=0;for(let r=0,o=t.length;r<o;r++)e+=t[r].length;const n=new Uint8Array(e);for(let r=0,o=0,i=t.length;r<i;r++){let s=t[r];n.set(s,o),o+=s.length}return n},z2={assign:_R,flattenChunks:RR};let U2=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{U2=!1}const Ta=new Uint8Array(256);for(let t=0;t<256;t++)Ta[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ta[254]=Ta[254]=1;var FR=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,r,o,i,s=t.length,a=0;for(o=0;o<s;o++)n=t.charCodeAt(o),(n&64512)===55296&&o+1<s&&(r=t.charCodeAt(o+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),o++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),i=0,o=0;i<a;o++)n=t.charCodeAt(o),(n&64512)===55296&&o+1<s&&(r=t.charCodeAt(o+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|n&63):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|n&63):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|n&63);return e};const MR=(t,e)=>{if(e<65534&&t.subarray&&U2)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n};var PR=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r,o;const i=new Array(n*2);for(o=0,r=0;r<n;){let s=t[r++];if(s<128){i[o++]=s;continue}let a=Ta[s];if(a>4){i[o++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<n;)s=s<<6|t[r++]&63,a--;if(a>1){i[o++]=65533;continue}s<65536?i[o++]=s:(s-=65536,i[o++]=55296|s>>10&1023,i[o++]=56320|s&1023)}return MR(i,o)},LR=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+Ta[t[n]]>e?n:e},Sd={string2buf:FR,buf2string:PR,utf8border:LR};function OR(){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 NR=OR;const ql=16209,zR=16191;var UR=function(e,n){let r,o,i,s,a,c,l,u,f,h,d,p,b,v,y,A,S,E,I,_,B,N,F,M;const C=e.state;r=e.next_in,F=e.input,o=r+(e.avail_in-5),i=e.next_out,M=e.output,s=i-(n-e.avail_out),a=i+(e.avail_out-257),c=C.dmax,l=C.wsize,u=C.whave,f=C.wnext,h=C.window,d=C.hold,p=C.bits,b=C.lencode,v=C.distcode,y=(1<<C.lenbits)-1,A=(1<<C.distbits)-1;e:do{p<15&&(d+=F[r++]<<p,p+=8,d+=F[r++]<<p,p+=8),S=b[d&y];t:for(;;){if(E=S>>>24,d>>>=E,p-=E,E=S>>>16&255,E===0)M[i++]=S&65535;else if(E&16){I=S&65535,E&=15,E&&(p<E&&(d+=F[r++]<<p,p+=8),I+=d&(1<<E)-1,d>>>=E,p-=E),p<15&&(d+=F[r++]<<p,p+=8,d+=F[r++]<<p,p+=8),S=v[d&A];n:for(;;){if(E=S>>>24,d>>>=E,p-=E,E=S>>>16&255,E&16){if(_=S&65535,E&=15,p<E&&(d+=F[r++]<<p,p+=8,p<E&&(d+=F[r++]<<p,p+=8)),_+=d&(1<<E)-1,_>c){e.msg="invalid distance too far back",C.mode=ql;break e}if(d>>>=E,p-=E,E=i-s,_>E){if(E=_-E,E>u&&C.sane){e.msg="invalid distance too far back",C.mode=ql;break e}if(B=0,N=h,f===0){if(B+=l-E,E<I){I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}}else if(f<E){if(B+=l+f-E,E-=f,E<I){I-=E;do M[i++]=h[B++];while(--E);if(B=0,f<I){E=f,I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}}}else if(B+=f-E,E<I){I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}for(;I>2;)M[i++]=N[B++],M[i++]=N[B++],M[i++]=N[B++],I-=3;I&&(M[i++]=N[B++],I>1&&(M[i++]=N[B++]))}else{B=i-_;do M[i++]=M[B++],M[i++]=M[B++],M[i++]=M[B++],I-=3;while(I>2);I&&(M[i++]=M[B++],I>1&&(M[i++]=M[B++]))}}else if(E&64){e.msg="invalid distance code",C.mode=ql;break e}else{S=v[(S&65535)+(d&(1<<E)-1)];continue n}break}}else if(E&64)if(E&32){C.mode=zR;break e}else{e.msg="invalid literal/length code",C.mode=ql;break e}else{S=b[(S&65535)+(d&(1<<E)-1)];continue t}break}}while(r<o&&i<a);I=p>>3,r-=I,p-=I<<3,d&=(1<<p)-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?5+(o-r):5-(r-o),e.avail_out=i<a?257+(a-i):257-(i-a),C.hold=d,C.bits=p};const To=15,G2=852,H2=592,V2=0,Cd=1,q2=2,GR=new Uint16Array([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]),HR=new Uint8Array([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]),VR=new Uint16Array([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]),qR=new Uint8Array([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]);var Da=(t,e,n,r,o,i,s,a)=>{const c=a.bits;let l=0,u=0,f=0,h=0,d=0,p=0,b=0,v=0,y=0,A=0,S,E,I,_,B,N=null,F;const M=new Uint16Array(To+1),C=new Uint16Array(To+1);let Y=null,Q,se,oe;for(l=0;l<=To;l++)M[l]=0;for(u=0;u<r;u++)M[e[n+u]]++;for(d=c,h=To;h>=1&&M[h]===0;h--);if(d>h&&(d=h),h===0)return o[i++]=1<<24|64<<16|0,o[i++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&M[f]===0;f++);for(d<f&&(d=f),v=1,l=1;l<=To;l++)if(v<<=1,v-=M[l],v<0)return-1;if(v>0&&(t===V2||h!==1))return-1;for(C[1]=0,l=1;l<To;l++)C[l+1]=C[l]+M[l];for(u=0;u<r;u++)e[n+u]!==0&&(s[C[e[n+u]]++]=u);if(t===V2?(N=Y=s,F=20):t===Cd?(N=GR,Y=HR,F=257):(N=VR,Y=qR,F=0),A=0,u=0,l=f,B=i,p=d,b=0,I=-1,y=1<<d,_=y-1,t===Cd&&y>G2||t===q2&&y>H2)return 1;for(;;){Q=l-b,s[u]+1<F?(se=0,oe=s[u]):s[u]>=F?(se=Y[s[u]-F],oe=N[s[u]-F]):(se=96,oe=0),S=1<<l-b,E=1<<p,f=E;do E-=S,o[B+(A>>b)+E]=Q<<24|se<<16|oe|0;while(E!==0);for(S=1<<l-1;A&S;)S>>=1;if(S!==0?(A&=S-1,A+=S):A=0,u++,--M[l]===0){if(l===h)break;l=e[n+s[u]]}if(l>d&&(A&_)!==I){for(b===0&&(b=d),B+=f,p=l-b,v=1<<p;p+b<h&&(v-=M[p+b],!(v<=0));)p++,v<<=1;if(y+=1<<p,t===Cd&&y>G2||t===q2&&y>H2)return 1;I=A&_,o[I]=d<<24|p<<16|B-i|0}}return A!==0&&(o[B+A]=l-b<<24|64<<16|0),a.bits=d,0};const jR=0,j2=1,W2=2,{Z_FINISH:Y2,Z_BLOCK:WR,Z_TREES:jl,Z_OK:Ti,Z_STREAM_END:YR,Z_NEED_DICT:QR,Z_STREAM_ERROR:fn,Z_DATA_ERROR:Q2,Z_MEM_ERROR:Z2,Z_BUF_ERROR:ZR,Z_DEFLATED:X2}=N2,Wl=16180,K2=16181,J2=16182,$2=16183,ew=16184,tw=16185,nw=16186,rw=16187,iw=16188,ow=16189,Yl=16190,nr=16191,Id=16192,sw=16193,Td=16194,aw=16195,cw=16196,lw=16197,uw=16198,Ql=16199,Zl=16200,fw=16201,hw=16202,dw=16203,pw=16204,gw=16205,Dd=16206,mw=16207,yw=16208,ct=16209,bw=16210,ww=16211,XR=852,KR=592,JR=15,xw=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function $R(){this.strm=null,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=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Di=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Wl||e.mode>ww?1:0},vw=t=>{if(Di(t))return fn;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=Wl,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(XR),e.distcode=e.distdyn=new Int32Array(KR),e.sane=1,e.back=-1,Ti},Aw=t=>{if(Di(t))return fn;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,vw(t)},Ew=(t,e)=>{let n;if(Di(t))return fn;const r=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?fn:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Aw(t))},Sw=(t,e)=>{if(!t)return fn;const n=new $R;t.state=n,n.strm=t,n.window=null,n.mode=Wl;const r=Ew(t,e);return r!==Ti&&(t.state=null),r},eF=t=>Sw(t,JR);let Cw=!0,Bd,kd;const tF=t=>{if(Cw){Bd=new Int32Array(512),kd=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Da(j2,t.lens,0,288,Bd,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Da(W2,t.lens,0,32,kd,0,t.work,{bits:5}),Cw=!1}t.lencode=Bd,t.lenbits=9,t.distcode=kd,t.distbits=5},Iw=(t,e,n,r)=>{let o;const i=t.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(e.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(o=i.wsize-i.wnext,o>r&&(o=r),i.window.set(e.subarray(n-r,n-r+o),i.wnext),r-=o,r?(i.window.set(e.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0},nF=(t,e)=>{let n,r,o,i,s,a,c,l,u,f,h,d,p,b,v=0,y,A,S,E,I,_,B,N;const F=new Uint8Array(4);let M,C;const Y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Di(t)||!t.output||!t.input&&t.avail_in!==0)return fn;n=t.state,n.mode===nr&&(n.mode=Id),s=t.next_out,o=t.output,c=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=n.hold,u=n.bits,f=a,h=c,N=Ti;e:for(;;)switch(n.mode){case Wl:if(n.wrap===0){n.mode=Id;break}for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0),l=0,u=0,n.mode=K2;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=ct;break}if((l&15)!==X2){t.msg="unknown compression method",n.mode=ct;break}if(l>>>=4,u-=4,B=(l&15)+8,n.wbits===0&&(n.wbits=B),B>15||B>n.wbits){t.msg="invalid window size",n.mode=ct;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=l&512?ow:nr,l=0,u=0;break;case K2:for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==X2){t.msg="unknown compression method",n.mode=ct;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=ct;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0,n.mode=J2;case J2:for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,F[2]=l>>>16&255,F[3]=l>>>24&255,n.check=Vn(n.check,F,4,0)),l=0,u=0,n.mode=$2;case $2:for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0,n.mode=ew;case ew:if(n.flags&1024){for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=tw;case tw:if(n.flags&1024&&(d=n.length,d>a&&(d=a),d&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+d),B)),n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,n.length-=d),n.length))break e;n.length=0,n.mode=nw;case nw:if(n.flags&2048){if(a===0)break e;d=0;do B=r[i+d++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B));while(B&&d<a);if(n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,B)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=rw;case rw:if(n.flags&4096){if(a===0)break e;d=0;do B=r[i+d++],n.head&&B&&n.length<65536&&(n.head.comment+=String.fromCharCode(B));while(B&&d<a);if(n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,B)break e}else n.head&&(n.head.comment=null);n.mode=iw;case iw:if(n.flags&512){for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){t.msg="header crc mismatch",n.mode=ct;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=nr;break;case ow:for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}t.adler=n.check=xw(l),l=0,u=0,n.mode=Yl;case Yl:if(n.havedict===0)return t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,QR;t.adler=n.check=1,n.mode=nr;case nr:if(e===WR||e===jl)break e;case Id:if(n.last){l>>>=u&7,u-=u&7,n.mode=Dd;break}for(;u<3;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}switch(n.last=l&1,l>>>=1,u-=1,l&3){case 0:n.mode=sw;break;case 1:if(tF(n),n.mode=Ql,e===jl){l>>>=2,u-=2;break e}break;case 2:n.mode=cw;break;case 3:t.msg="invalid block type",n.mode=ct}l>>>=2,u-=2;break;case sw:for(l>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=ct;break}if(n.length=l&65535,l=0,u=0,n.mode=Td,e===jl)break e;case Td:n.mode=aw;case aw:if(d=n.length,d){if(d>a&&(d=a),d>c&&(d=c),d===0)break e;o.set(r.subarray(i,i+d),s),a-=d,i+=d,c-=d,s+=d,n.length-=d;break}n.mode=nr;break;case cw:for(;u<14;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=ct;break}n.have=0,n.mode=lw;case lw:for(;n.have<n.ncode;){for(;u<3;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.lens[Y[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[Y[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},N=Da(jR,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,N){t.msg="invalid code lengths set",n.mode=ct;break}n.have=0,n.mode=uw;case uw:for(;n.have<n.nlen+n.ndist;){for(;v=n.lencode[l&(1<<n.lenbits)-1],y=v>>>24,A=v>>>16&255,S=v&65535,!(y<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(S<16)l>>>=y,u-=y,n.lens[n.have++]=S;else{if(S===16){for(C=y+2;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(l>>>=y,u-=y,n.have===0){t.msg="invalid bit length repeat",n.mode=ct;break}B=n.lens[n.have-1],d=3+(l&3),l>>>=2,u-=2}else if(S===17){for(C=y+3;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=y,u-=y,B=0,d=3+(l&7),l>>>=3,u-=3}else{for(C=y+7;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=y,u-=y,B=0,d=11+(l&127),l>>>=7,u-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=ct;break}for(;d--;)n.lens[n.have++]=B}}if(n.mode===ct)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=ct;break}if(n.lenbits=9,M={bits:n.lenbits},N=Da(j2,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,N){t.msg="invalid literal/lengths set",n.mode=ct;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},N=Da(W2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,N){t.msg="invalid distances set",n.mode=ct;break}if(n.mode=Ql,e===jl)break e;case Ql:n.mode=Zl;case Zl:if(a>=6&&c>=258){t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,UR(t,h),s=t.next_out,o=t.output,c=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=n.hold,u=n.bits,n.mode===nr&&(n.back=-1);break}for(n.back=0;v=n.lencode[l&(1<<n.lenbits)-1],y=v>>>24,A=v>>>16&255,S=v&65535,!(y<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(A&&!(A&240)){for(E=y,I=A,_=S;v=n.lencode[_+((l&(1<<E+I)-1)>>E)],y=v>>>24,A=v>>>16&255,S=v&65535,!(E+y<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=E,u-=E,n.back+=E}if(l>>>=y,u-=y,n.back+=y,n.length=S,A===0){n.mode=gw;break}if(A&32){n.back=-1,n.mode=nr;break}if(A&64){t.msg="invalid literal/length code",n.mode=ct;break}n.extra=A&15,n.mode=fw;case fw:if(n.extra){for(C=n.extra;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=hw;case hw:for(;v=n.distcode[l&(1<<n.distbits)-1],y=v>>>24,A=v>>>16&255,S=v&65535,!(y<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(!(A&240)){for(E=y,I=A,_=S;v=n.distcode[_+((l&(1<<E+I)-1)>>E)],y=v>>>24,A=v>>>16&255,S=v&65535,!(E+y<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=E,u-=E,n.back+=E}if(l>>>=y,u-=y,n.back+=y,A&64){t.msg="invalid distance code",n.mode=ct;break}n.offset=S,n.extra=A&15,n.mode=dw;case dw:if(n.extra){for(C=n.extra;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=ct;break}n.mode=pw;case pw:if(c===0)break e;if(d=h-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=ct;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),b=n.window}else b=o,p=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do o[s++]=b[p++];while(--d);n.length===0&&(n.mode=Zl);break;case gw:if(c===0)break e;o[s++]=n.length,c--,n.mode=Zl;break;case Dd:if(n.wrap){for(;u<32;){if(a===0)break e;a--,l|=r[i++]<<u,u+=8}if(h-=c,t.total_out+=h,n.total+=h,n.wrap&4&&h&&(t.adler=n.check=n.flags?Vn(n.check,o,h,s-h):Ad(n.check,o,h,s-h)),h=c,n.wrap&4&&(n.flags?l:xw(l))!==n.check){t.msg="incorrect data check",n.mode=ct;break}l=0,u=0}n.mode=mw;case mw:if(n.wrap&&n.flags){for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=ct;break}l=0,u=0}n.mode=yw;case yw:N=YR;break e;case ct:N=Q2;break e;case bw:return Z2;case ww:default:return fn}return t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,(n.wsize||h!==t.avail_out&&n.mode<ct&&(n.mode<Dd||e!==Y2))&&Iw(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&4&&h&&(t.adler=n.check=n.flags?Vn(n.check,o,h,t.next_out-h):Ad(n.check,o,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===Ql||n.mode===Td?256:0),(f===0&&h===0||e===Y2)&&N===Ti&&(N=ZR),N},rF=t=>{if(Di(t))return fn;let e=t.state;return e.window&&(e.window=null),t.state=null,Ti},iF=(t,e)=>{if(Di(t))return fn;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Ti):fn},oF=(t,e)=>{const n=e.length;let r,o,i;return Di(t)||(r=t.state,r.wrap!==0&&r.mode!==Yl)?fn:r.mode===Yl&&(o=1,o=Ad(o,e,n,0),o!==r.check)?Q2:(i=Iw(t,e,n,n),i?(r.mode=bw,Z2):(r.havedict=1,Ti))};var sF=Aw,aF=Ew,cF=vw,lF=eF,uF=Sw,fF=nF,hF=rF,dF=iF,pF=oF,gF="pako inflate (from Nodeca project)",rr={inflateReset:sF,inflateReset2:aF,inflateResetKeep:cF,inflateInit:lF,inflateInit2:uF,inflate:fF,inflateEnd:hF,inflateGetHeader:dF,inflateSetDictionary:pF,inflateInfo:gF};function mF(){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}var yF=mF;const Tw=Object.prototype.toString,{Z_NO_FLUSH:bF,Z_FINISH:wF,Z_OK:Ba,Z_STREAM_END:_d,Z_NEED_DICT:Rd,Z_STREAM_ERROR:xF,Z_DATA_ERROR:Dw,Z_MEM_ERROR:vF}=N2;function Xl(t){this.options=z2.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const 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||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new NR,this.strm.avail_out=0;let n=rr.inflateInit2(this.strm,e.windowBits);if(n!==Ba)throw new Error(Ed[n]);if(this.header=new yF,rr.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Sd.string2buf(e.dictionary):Tw.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=rr.inflateSetDictionary(this.strm,e.dictionary),n!==Ba)))throw new Error(Ed[n])}Xl.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?wF:bF,Tw.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=rr.inflate(n,s),i===Rd&&o&&(i=rr.inflateSetDictionary(n,o),i===Ba?i=rr.inflate(n,s):i===Dw&&(i=Rd));n.avail_in>0&&i===_d&&n.state.wrap>0&&t[n.next_in]!==0;)rr.inflateReset(n),i=rr.inflate(n,s);switch(i){case xF:case Dw:case Rd:case vF:return this.onEnd(i),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||i===_d))if(this.options.to==="string"){let c=Sd.utf8border(n.output,n.next_out),l=n.next_out-c,u=Sd.buf2string(n.output,c);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(u)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(i===Ba&&a===0)){if(i===_d)return i=rr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},Xl.prototype.onData=function(t){this.chunks.push(t)},Xl.prototype.onEnd=function(t){t===Ba&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=z2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function AF(t,e){const n=new Xl(e);if(n.push(t),n.err)throw n.msg||Ed[n.err];return n.result}function EF(t,e){return e=e||{},e.raw=!0,AF(t,e)}var SF=EF,CF={inflateRaw:SF};const{inflateRaw:IF}=CF;var TF=IF;function DF(t){return TF(t.subarray(2))}let BF=class extends Error{constructor(e){super(e),this.code="ERR_ABORTED"}};function kF(t){t.sort((o,i)=>o.offset-i.offset);const e=[];let n,r;for(const o of t)n&&r&&o.offset-r<=2e3?(n.length=n.length+o.length-r+o.offset,n.blocks.push(o)):e.push(n={blocks:[o],length:o.length,offset:o.offset}),r=n.offset+n.length;return e}function Kl(t){if(t&&t.aborted)if(typeof DOMException>"u"){const e=new BF("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}const Fd=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Md(t,e,n,r){return t<r&&e>=n}class Bw{constructor(e,n,r,o,i,s){if(this.bbi=e,this.refsByName=n,this.cirTreeOffset=r,this.isBigEndian=o,this.isCompressed=i,this.blockType=s,this.featureCache=new Ii({cache:new Vl({maxSize:1e3}),fill:async(a,c)=>{const l=a.length,u=a.offset,{buffer:f}=await this.bbi.read(Ke.Buffer.alloc(l),0,l,u,{signal:c});return f}}),!(r>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(e,n,r,o,i){try{const{refsByName:s,bbi:a,cirTreeOffset:c,isBigEndian:l}=this,u=s[e];u===void 0&&o.complete();const f={chrId:u,start:n,end:r};this.cirTreePromise||(this.cirTreePromise=a.read(Ke.Buffer.alloc(48),0,48,c,i));const{buffer:h}=await this.cirTreePromise,d=l?h.readUInt32BE(4):h.readUInt32LE(4);let p=[],b=0;const v=!0,y=(I,_,B)=>{try{const F=I.subarray(_),M=new DataView(F.buffer,F.byteOffset,F.length);let C=0;const Y=M.getUint8(C);C+=2;const Q=M.getUint16(C,v);if(C+=2,Y===1){const se=[];for(let oe=0;oe<Q;oe++){const ae=M.getUint32(C,v);C+=4;const ce=M.getUint32(C,v);C+=4;const be=M.getUint32(C,v);C+=4;const he=M.getUint32(C,v);C+=4;const De=Number(M.getBigUint64(C,v));C+=8;const we=Number(M.getBigUint64(C,v));C+=8,se.push({startChrom:ae,startBase:ce,endBase:he,endChrom:be,blockOffset:De,blockSize:we,offset:C})}p=p.concat(se.filter(oe=>A(oe)).map(oe=>({offset:oe.blockOffset,length:oe.blockSize})))}else if(Y===0){const se=[];for(let ae=0;ae<Q;ae++){const ce=M.getUint32(C,v);C+=4;const be=M.getUint32(C,v);C+=4;const he=M.getUint32(C,v);C+=4;const De=M.getUint32(C,v);C+=4;const we=Number(M.getBigUint64(C,v));C+=8,se.push({startChrom:ce,startBase:be,endChrom:he,endBase:De,blockOffset:we,offset:C})}const oe=se.filter(ae=>A(ae)).map(ae=>ae.blockOffset);oe.length>0&&E(oe,B+1)}}catch(N){o.error(N)}},A=I=>{const{startChrom:_,startBase:B,endChrom:N,endBase:F}=I;return(_<u||_===u&&B<=r)&&(N>u||N===u&&F>=n)},S=async(I,_,B)=>{try{const N=_.max-_.min,F=_.min,M=await this.featureCache.get(`${N}_${F}`,{length:N,offset:F},i==null?void 0:i.signal);for(const C of I)_.contains(C)&&(y(M,C-F,B),b-=1,b===0&&this.readFeatures(o,p,{...i,request:f}).catch(Y=>{o.error(Y)}))}catch(N){o.error(N)}},E=(I,_)=>{try{b+=I.length;const B=4+d*32;let N=new Co([{min:I[0],max:I[0]+B}]);for(let F=1;F<I.length;F+=1){const M=new Co([{min:I[F],max:I[F]+B}]);N=N.union(M)}N.getRanges().map(F=>S(I,F,_))}catch(B){o.error(B)}};E([Number(c)+48],1);return}catch(s){o.error(s)}}parseSummaryBlock(e,n,r){const o=[];let i=n;const s=new DataView(e.buffer,e.byteOffset,e.length);for(;i<e.byteLength;){const a=s.getUint32(i,!0);i+=4;const c=s.getUint32(i,!0);i+=4;const l=s.getUint32(i,!0);i+=4;const u=s.getUint32(i,!0);i+=4;const f=s.getFloat32(i,!0);i+=4;const h=s.getFloat32(i,!0);i+=4;const d=s.getFloat32(i,!0);i+=4,i+=4,(!r||a===r.chrId&&Md(c,l,r.start,r.end))&&o.push({start:c,end:l,maxScore:h,minScore:f,summary:!0,score:d/(u||1)})}return o}parseBigBedBlock(e,n,r,o){var i;const s=[];let a=n;const c=!0,l=e,u=new DataView(l.buffer,l.byteOffset,l.length);for(;a<e.byteLength;){const f=a,h=u.getUint32(a,c);a+=4;const d=u.getInt32(a,c);a+=4;const p=u.getInt32(a,c);a+=4;let b=a;for(;b<e.length&&e[b]!==0;b++);const v=e.subarray(a,b),y=(i=Fd==null?void 0:Fd.decode(v))!==null&&i!==void 0?i:v.toString();a=b+1,s.push({chromId:h,start:d,end:p,rest:y,uniqueId:`bb-${r+f}`})}return o?s.filter(f=>Md(f.start,f.end,o.start,o.end)):s}parseBigWigBlock(e,n,r){const o=e.subarray(n),i=new DataView(o.buffer,o.byteOffset,o.length);let s=0;s+=4;const a=i.getInt32(s,!0);s+=8;const c=i.getUint32(s,!0);s+=4;const l=i.getUint32(s,!0);s+=4;const u=i.getUint8(s);s+=2;const f=i.getUint16(s,!0);s+=2;const h=new Array(f);switch(u){case 1:{for(let d=0;d<f;d++){const p=i.getInt32(s,!0);s+=4;const b=i.getInt32(s,!0);s+=4;const v=i.getFloat32(s,!0);s+=4,h[d]={start:p,end:b,score:v}}break}case 2:{for(let d=0;d<f;d++){const p=i.getInt32(s,!0);s+=4;const b=i.getFloat32(s,!0);s+=4,h[d]={score:b,start:p,end:p+l}}break}case 3:{for(let d=0;d<f;d++){const p=i.getFloat32(s,!0);s+=4;const b=a+d*c;h[d]={score:p,start:b,end:b+l}}break}}return r?h.filter(d=>Md(d.start,d.end,r.start,r.end)):h}async readFeatures(e,n,r={}){try{const{blockType:o,isCompressed:i}=this,{signal:s,request:a}=r,c=kF(n);Kl(s),await Promise.all(c.map(async l=>{Kl(s);const{length:u,offset:f}=l,h=await this.featureCache.get(`${u}_${f}`,l,s);for(const d of l.blocks){Kl(s);let p=Number(d.offset)-Number(l.offset),b=h;switch(i&&(b=DF(h.subarray(p)),p=0),Kl(s),o){case"summary":{e.next(this.parseSummaryBlock(b,p,a));break}case"bigwig":{e.next(this.parseBigWigBlock(b,p,a));break}case"bigbed":{e.next(this.parseBigBedBlock(b,p,Number(d.offset)*256,a));break}default:console.warn(`Don't know what to do with ${o}`)}}})),e.complete()}catch(o){e.error(o)}}}var Pd=function(t,e){return Pd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Pd(t,e)};function Ld(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pd(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function _F(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function kw(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(u){l=[6,u],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ka(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Od(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Nd(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function Do(t){return this instanceof Do?(this.v=t,this):new Do(t)}function RF(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(p){return Promise.resolve(p).then(d,f)}}function a(d,p){r[d]&&(o[d]=function(b){return new Promise(function(v,y){i.push([d,b,v,y])>1||c(d,b)})},p&&(o[d]=p(o[d])))}function c(d,p){try{l(r[d](p))}catch(b){h(i[0][3],b)}}function l(d){d.value instanceof Do?Promise.resolve(d.value.v).then(u,f):h(i[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function h(d,p){d(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function FF(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof ka=="function"?ka(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}typeof SuppressedError=="function"&&SuppressedError;function wt(t){return typeof t=="function"}function _w(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var zd=_w(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
650
|
+
*/var i2;function Ia(){return i2||(i2=1,function(t){const e=q_(),n=j_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50;const o=2147483647;t.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const k=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(k,m),k.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(k){if(k>o)throw new RangeError('The value "'+k+'" is invalid for option "size"');const m=new Uint8Array(k);return Object.setPrototypeOf(m,a.prototype),m}function a(k,m,w){if(typeof k=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(k)}return c(k,m,w)}a.poolSize=8192;function c(k,m,w){if(typeof k=="string")return h(k,m);if(ArrayBuffer.isView(k))return p(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if($e(k,ArrayBuffer)||k&&$e(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(k,SharedArrayBuffer)||k&&$e(k.buffer,SharedArrayBuffer)))return y(k,m,w);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const O=k.valueOf&&k.valueOf();if(O!=null&&O!==k)return a.from(O,m,w);const x=v(k);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return a.from(k[Symbol.toPrimitive]("string"),m,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}a.from=function(k,m,w){return c(k,m,w)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function u(k,m,w){return l(k),k<=0?s(k):m!==void 0?typeof w=="string"?s(k).fill(m,w):s(k).fill(m):s(k)}a.alloc=function(k,m,w){return u(k,m,w)};function f(k){return l(k),s(k<0?0:b(k)|0)}a.allocUnsafe=function(k){return f(k)},a.allocUnsafeSlow=function(k){return f(k)};function h(k,m){if((typeof m!="string"||m==="")&&(m="utf8"),!a.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const w=S(k,m)|0;let O=s(w);const x=O.write(k,m);return x!==w&&(O=O.slice(0,x)),O}function d(k){const m=k.length<0?0:b(k.length)|0,w=s(m);for(let O=0;O<m;O+=1)w[O]=k[O]&255;return w}function p(k){if($e(k,Uint8Array)){const m=new Uint8Array(k);return y(m.buffer,m.byteOffset,m.byteLength)}return d(k)}function y(k,m,w){if(m<0||k.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<m+(w||0))throw new RangeError('"length" is outside of buffer bounds');let O;return m===void 0&&w===void 0?O=new Uint8Array(k):w===void 0?O=new Uint8Array(k,m):O=new Uint8Array(k,m,w),Object.setPrototypeOf(O,a.prototype),O}function v(k){if(a.isBuffer(k)){const m=b(k.length)|0,w=s(m);return w.length===0||k.copy(w,0,0,m),w}if(k.length!==void 0)return typeof k.length!="number"||kt(k.length)?s(0):d(k);if(k.type==="Buffer"&&Array.isArray(k.data))return d(k.data)}function b(k){if(k>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return k|0}function A(k){return+k!=k&&(k=0),a.alloc(+k)}a.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==a.prototype},a.compare=function(m,w){if($e(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),$e(w,Uint8Array)&&(w=a.from(w,w.offset,w.byteLength)),!a.isBuffer(m)||!a.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===w)return 0;let O=m.length,x=w.length;for(let z=0,V=Math.min(O,x);z<V;++z)if(m[z]!==w[z]){O=m[z],x=w[z];break}return O<x?-1:x<O?1:0},a.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(m,w){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return a.alloc(0);let O;if(w===void 0)for(w=0,O=0;O<m.length;++O)w+=m[O].length;const x=a.allocUnsafe(w);let z=0;for(O=0;O<m.length;++O){let V=m[O];if($e(V,Uint8Array))z+V.length>x.length?(a.isBuffer(V)||(V=a.from(V)),V.copy(x,z)):Uint8Array.prototype.set.call(x,V,z);else if(a.isBuffer(V))V.copy(x,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=V.length}return x};function S(k,m){if(a.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||$e(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const w=k.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&w===0)return 0;let x=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Ae(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return $t(k).length;default:if(x)return O?-1:Ae(k).length;m=(""+m).toLowerCase(),x=!0}}a.byteLength=S;function E(k,m,w){let O=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,m>>>=0,w<=m))return"";for(k||(k="utf8");;)switch(k){case"hex":return he(this,m,w);case"utf8":case"utf-8":return se(this,m,w);case"ascii":return ce(this,m,w);case"latin1":case"binary":return ye(this,m,w);case"base64":return Q(this,m,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,m,w);default:if(O)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),O=!0}}a.prototype._isBuffer=!0;function I(k,m,w){const O=k[m];k[m]=k[w],k[w]=O}a.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<m;w+=2)I(this,w,w+1);return this},a.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<m;w+=4)I(this,w,w+3),I(this,w+1,w+2);return this},a.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<m;w+=8)I(this,w,w+7),I(this,w+1,w+6),I(this,w+2,w+5),I(this,w+3,w+4);return this},a.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?se(this,0,m):E.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(m){if(!a.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:a.compare(this,m)===0},a.prototype.inspect=function(){let m="";const w=t.INSPECT_MAX_BYTES;return m=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(m+=" ... "),"<Buffer "+m+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(m,w,O,x,z){if($e(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(w===void 0&&(w=0),O===void 0&&(O=m?m.length:0),x===void 0&&(x=0),z===void 0&&(z=this.length),w<0||O>m.length||x<0||z>this.length)throw new RangeError("out of range index");if(x>=z&&w>=O)return 0;if(x>=z)return-1;if(w>=O)return 1;if(w>>>=0,O>>>=0,x>>>=0,z>>>=0,this===m)return 0;let V=z-x,ue=O-w;const G=Math.min(V,ue),X=this.slice(x,z),T=m.slice(w,O);for(let re=0;re<G;++re)if(X[re]!==T[re]){V=X[re],ue=T[re];break}return V<ue?-1:ue<V?1:0};function _(k,m,w,O,x){if(k.length===0)return-1;if(typeof w=="string"?(O=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,kt(w)&&(w=x?0:k.length-1),w<0&&(w=k.length+w),w>=k.length){if(x)return-1;w=k.length-1}else if(w<0)if(x)w=0;else return-1;if(typeof m=="string"&&(m=a.from(m,O)),a.isBuffer(m))return m.length===0?-1:B(k,m,w,O,x);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(k,m,w):Uint8Array.prototype.lastIndexOf.call(k,m,w):B(k,[m],w,O,x);throw new TypeError("val must be string, number or Buffer")}function B(k,m,w,O,x){let z=1,V=k.length,ue=m.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(k.length<2||m.length<2)return-1;z=2,V/=2,ue/=2,w/=2}function G(T,re){return z===1?T[re]:T.readUInt16BE(re*z)}let X;if(x){let T=-1;for(X=w;X<V;X++)if(G(k,X)===G(m,T===-1?0:X-T)){if(T===-1&&(T=X),X-T+1===ue)return T*z}else T!==-1&&(X-=X-T),T=-1}else for(w+ue>V&&(w=V-ue),X=w;X>=0;X--){let T=!0;for(let re=0;re<ue;re++)if(G(k,X+re)!==G(m,re)){T=!1;break}if(T)return X}return-1}a.prototype.includes=function(m,w,O){return this.indexOf(m,w,O)!==-1},a.prototype.indexOf=function(m,w,O){return _(this,m,w,O,!0)},a.prototype.lastIndexOf=function(m,w,O){return _(this,m,w,O,!1)};function N(k,m,w,O){w=Number(w)||0;const x=k.length-w;O?(O=Number(O),O>x&&(O=x)):O=x;const z=m.length;O>z/2&&(O=z/2);let V;for(V=0;V<O;++V){const ue=parseInt(m.substr(V*2,2),16);if(kt(ue))return V;k[w+V]=ue}return V}function F(k,m,w,O){return It(Ae(m,k.length-w),k,w,O)}function M(k,m,w,O){return It(Re(m),k,w,O)}function C(k,m,w,O){return It($t(m),k,w,O)}function Y(k,m,w,O){return It(dt(m,k.length-w),k,w,O)}a.prototype.write=function(m,w,O,x){if(w===void 0)x="utf8",O=this.length,w=0;else if(O===void 0&&typeof w=="string")x=w,O=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(O)?(O=O>>>0,x===void 0&&(x="utf8")):(x=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-w;if((O===void 0||O>z)&&(O=z),m.length>0&&(O<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let V=!1;for(;;)switch(x){case"hex":return N(this,m,w,O);case"utf8":case"utf-8":return F(this,m,w,O);case"ascii":case"latin1":case"binary":return M(this,m,w,O);case"base64":return C(this,m,w,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,m,w,O);default:if(V)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),V=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(k,m,w){return m===0&&w===k.length?e.fromByteArray(k):e.fromByteArray(k.slice(m,w))}function se(k,m,w){w=Math.min(k.length,w);const O=[];let x=m;for(;x<w;){const z=k[x];let V=null,ue=z>239?4:z>223?3:z>191?2:1;if(x+ue<=w){let G,X,T,re;switch(ue){case 1:z<128&&(V=z);break;case 2:G=k[x+1],(G&192)===128&&(re=(z&31)<<6|G&63,re>127&&(V=re));break;case 3:G=k[x+1],X=k[x+2],(G&192)===128&&(X&192)===128&&(re=(z&15)<<12|(G&63)<<6|X&63,re>2047&&(re<55296||re>57343)&&(V=re));break;case 4:G=k[x+1],X=k[x+2],T=k[x+3],(G&192)===128&&(X&192)===128&&(T&192)===128&&(re=(z&15)<<18|(G&63)<<12|(X&63)<<6|T&63,re>65535&&re<1114112&&(V=re))}}V===null?(V=65533,ue=1):V>65535&&(V-=65536,O.push(V>>>10&1023|55296),V=56320|V&1023),O.push(V),x+=ue}return ae(O)}const oe=4096;function ae(k){const m=k.length;if(m<=oe)return String.fromCharCode.apply(String,k);let w="",O=0;for(;O<m;)w+=String.fromCharCode.apply(String,k.slice(O,O+=oe));return w}function ce(k,m,w){let O="";w=Math.min(k.length,w);for(let x=m;x<w;++x)O+=String.fromCharCode(k[x]&127);return O}function ye(k,m,w){let O="";w=Math.min(k.length,w);for(let x=m;x<w;++x)O+=String.fromCharCode(k[x]);return O}function he(k,m,w){const O=k.length;(!m||m<0)&&(m=0),(!w||w<0||w>O)&&(w=O);let x="";for(let z=m;z<w;++z)x+=zt[k[z]];return x}function De(k,m,w){const O=k.slice(m,w);let x="";for(let z=0;z<O.length-1;z+=2)x+=String.fromCharCode(O[z]+O[z+1]*256);return x}a.prototype.slice=function(m,w){const O=this.length;m=~~m,w=w===void 0?O:~~w,m<0?(m+=O,m<0&&(m=0)):m>O&&(m=O),w<0?(w+=O,w<0&&(w=0)):w>O&&(w=O),w<m&&(w=m);const x=this.subarray(m,w);return Object.setPrototypeOf(x,a.prototype),x};function we(k,m,w){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+m>w)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m],z=1,V=0;for(;++V<w&&(z*=256);)x+=this[m+V]*z;return x},a.prototype.readUintBE=a.prototype.readUIntBE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m+--w],z=1;for(;w>0&&(z*=256);)x+=this[m+--w]*z;return x},a.prototype.readUint8=a.prototype.readUInt8=function(m,w){return m=m>>>0,w||we(m,1,this.length),this[m]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(m,w){return m=m>>>0,w||we(m,2,this.length),this[m]|this[m+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(m,w){return m=m>>>0,w||we(m,2,this.length),this[m]<<8|this[m+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(m,w){return m=m>>>0,w||we(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},a.prototype.readBigUInt64LE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=w+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,z=this[++m]+this[++m]*2**8+this[++m]*2**16+O*2**24;return BigInt(x)+(BigInt(z)<<BigInt(32))}),a.prototype.readBigUInt64BE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=w*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],z=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+O;return(BigInt(x)<<BigInt(32))+BigInt(z)}),a.prototype.readIntLE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=this[m],z=1,V=0;for(;++V<w&&(z*=256);)x+=this[m+V]*z;return z*=128,x>=z&&(x-=Math.pow(2,8*w)),x},a.prototype.readIntBE=function(m,w,O){m=m>>>0,w=w>>>0,O||we(m,w,this.length);let x=w,z=1,V=this[m+--x];for(;x>0&&(z*=256);)V+=this[m+--x]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*w)),V},a.prototype.readInt8=function(m,w){return m=m>>>0,w||we(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},a.prototype.readInt16LE=function(m,w){m=m>>>0,w||we(m,2,this.length);const O=this[m]|this[m+1]<<8;return O&32768?O|4294901760:O},a.prototype.readInt16BE=function(m,w){m=m>>>0,w||we(m,2,this.length);const O=this[m+1]|this[m]<<8;return O&32768?O|4294901760:O},a.prototype.readInt32LE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},a.prototype.readInt32BE=function(m,w){return m=m>>>0,w||we(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},a.prototype.readBigInt64LE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(O<<24);return(BigInt(x)<<BigInt(32))+BigInt(w+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),a.prototype.readBigInt64BE=et(function(m){m=m>>>0,te(m,"offset");const w=this[m],O=this[m+7];(w===void 0||O===void 0)&&le(m,this.length-8);const x=(w<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(x)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+O)}),a.prototype.readFloatLE=function(m,w){return m=m>>>0,w||we(m,4,this.length),n.read(this,m,!0,23,4)},a.prototype.readFloatBE=function(m,w){return m=m>>>0,w||we(m,4,this.length),n.read(this,m,!1,23,4)},a.prototype.readDoubleLE=function(m,w){return m=m>>>0,w||we(m,8,this.length),n.read(this,m,!0,52,8)},a.prototype.readDoubleBE=function(m,w){return m=m>>>0,w||we(m,8,this.length),n.read(this,m,!1,52,8)};function Ee(k,m,w,O,x,z){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>x||m<z)throw new RangeError('"value" argument is out of bounds');if(w+O>k.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(m,w,O,x){if(m=+m,w=w>>>0,O=O>>>0,!x){const ue=Math.pow(2,8*O)-1;Ee(this,m,w,O,ue,0)}let z=1,V=0;for(this[w]=m&255;++V<O&&(z*=256);)this[w+V]=m/z&255;return w+O},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(m,w,O,x){if(m=+m,w=w>>>0,O=O>>>0,!x){const ue=Math.pow(2,8*O)-1;Ee(this,m,w,O,ue,0)}let z=O-1,V=1;for(this[w+z]=m&255;--z>=0&&(V*=256);)this[w+z]=m/V&255;return w+O},a.prototype.writeUint8=a.prototype.writeUInt8=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,1,255,0),this[w]=m&255,w+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,65535,0),this[w]=m&255,this[w+1]=m>>>8,w+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,65535,0),this[w]=m>>>8,this[w+1]=m&255,w+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,4294967295,0),this[w+3]=m>>>24,this[w+2]=m>>>16,this[w+1]=m>>>8,this[w]=m&255,w+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,4294967295,0),this[w]=m>>>24,this[w+1]=m>>>16,this[w+2]=m>>>8,this[w+3]=m&255,w+4};function Te(k,m,w,O,x){D(m,O,x,k,w,7);let z=Number(m&BigInt(4294967295));k[w++]=z,z=z>>8,k[w++]=z,z=z>>8,k[w++]=z,z=z>>8,k[w++]=z;let V=Number(m>>BigInt(32)&BigInt(4294967295));return k[w++]=V,V=V>>8,k[w++]=V,V=V>>8,k[w++]=V,V=V>>8,k[w++]=V,w}function Ge(k,m,w,O,x){D(m,O,x,k,w,7);let z=Number(m&BigInt(4294967295));k[w+7]=z,z=z>>8,k[w+6]=z,z=z>>8,k[w+5]=z,z=z>>8,k[w+4]=z;let V=Number(m>>BigInt(32)&BigInt(4294967295));return k[w+3]=V,V=V>>8,k[w+2]=V,V=V>>8,k[w+1]=V,V=V>>8,k[w]=V,w+8}a.prototype.writeBigUInt64LE=et(function(m,w=0){return Te(this,m,w,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=et(function(m,w=0){return Ge(this,m,w,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(m,w,O,x){if(m=+m,w=w>>>0,!x){const G=Math.pow(2,8*O-1);Ee(this,m,w,O,G-1,-G)}let z=0,V=1,ue=0;for(this[w]=m&255;++z<O&&(V*=256);)m<0&&ue===0&&this[w+z-1]!==0&&(ue=1),this[w+z]=(m/V>>0)-ue&255;return w+O},a.prototype.writeIntBE=function(m,w,O,x){if(m=+m,w=w>>>0,!x){const G=Math.pow(2,8*O-1);Ee(this,m,w,O,G-1,-G)}let z=O-1,V=1,ue=0;for(this[w+z]=m&255;--z>=0&&(V*=256);)m<0&&ue===0&&this[w+z+1]!==0&&(ue=1),this[w+z]=(m/V>>0)-ue&255;return w+O},a.prototype.writeInt8=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,1,127,-128),m<0&&(m=255+m+1),this[w]=m&255,w+1},a.prototype.writeInt16LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,32767,-32768),this[w]=m&255,this[w+1]=m>>>8,w+2},a.prototype.writeInt16BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,2,32767,-32768),this[w]=m>>>8,this[w+1]=m&255,w+2},a.prototype.writeInt32LE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,2147483647,-2147483648),this[w]=m&255,this[w+1]=m>>>8,this[w+2]=m>>>16,this[w+3]=m>>>24,w+4},a.prototype.writeInt32BE=function(m,w,O){return m=+m,w=w>>>0,O||Ee(this,m,w,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[w]=m>>>24,this[w+1]=m>>>16,this[w+2]=m>>>8,this[w+3]=m&255,w+4},a.prototype.writeBigInt64LE=et(function(m,w=0){return Te(this,m,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=et(function(m,w=0){return Ge(this,m,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ve(k,m,w,O,x,z){if(w+O>k.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function q(k,m,w,O,x){return m=+m,w=w>>>0,x||Ve(k,m,w,4),n.write(k,m,w,O,23,4),w+4}a.prototype.writeFloatLE=function(m,w,O){return q(this,m,w,!0,O)},a.prototype.writeFloatBE=function(m,w,O){return q(this,m,w,!1,O)};function j(k,m,w,O,x){return m=+m,w=w>>>0,x||Ve(k,m,w,8),n.write(k,m,w,O,52,8),w+8}a.prototype.writeDoubleLE=function(m,w,O){return j(this,m,w,!0,O)},a.prototype.writeDoubleBE=function(m,w,O){return j(this,m,w,!1,O)},a.prototype.copy=function(m,w,O,x){if(!a.isBuffer(m))throw new TypeError("argument should be a Buffer");if(O||(O=0),!x&&x!==0&&(x=this.length),w>=m.length&&(w=m.length),w||(w=0),x>0&&x<O&&(x=O),x===O||m.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),m.length-w<x-O&&(x=m.length-w+O);const z=x-O;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,O,x):Uint8Array.prototype.set.call(m,this.subarray(O,x),w),z},a.prototype.fill=function(m,w,O,x){if(typeof m=="string"){if(typeof w=="string"?(x=w,w=0,O=this.length):typeof O=="string"&&(x=O,O=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!a.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(m.length===1){const V=m.charCodeAt(0);(x==="utf8"&&V<128||x==="latin1")&&(m=V)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(w<0||this.length<w||this.length<O)throw new RangeError("Out of range index");if(O<=w)return this;w=w>>>0,O=O===void 0?this.length:O>>>0,m||(m=0);let z;if(typeof m=="number")for(z=w;z<O;++z)this[z]=m;else{const V=a.isBuffer(m)?m:a.from(m,x),ue=V.length;if(ue===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(z=0;z<O-w;++z)this[z+w]=V[z%ue]}return this};const ee={};function J(k,m,w){ee[k]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${k}]`,this.stack,delete this.name}get code(){return k}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${k}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(k){return k?`${k} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(k,m){return`The "${k}" argument must be of type number. Received type ${typeof m}`},TypeError),J("ERR_OUT_OF_RANGE",function(k,m,w){let O=`The value of "${k}" is out of range.`,x=w;return Number.isInteger(w)&&Math.abs(w)>2**32?x=fe(String(w)):typeof w=="bigint"&&(x=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(x=fe(x)),x+="n"),O+=` It must be ${m}. Received ${x}`,O},RangeError);function fe(k){let m="",w=k.length;const O=k[0]==="-"?1:0;for(;w>=O+4;w-=3)m=`_${k.slice(w-3,w)}${m}`;return`${k.slice(0,w)}${m}`}function L(k,m,w){te(m,"offset"),(k[m]===void 0||k[m+w]===void 0)&&le(m,k.length-(w+1))}function D(k,m,w,O,x,z){if(k>w||k<m){const V=typeof m=="bigint"?"n":"";let ue;throw m===0||m===BigInt(0)?ue=`>= 0${V} and < 2${V} ** ${(z+1)*8}${V}`:ue=`>= -(2${V} ** ${(z+1)*8-1}${V}) and < 2 ** ${(z+1)*8-1}${V}`,new ee.ERR_OUT_OF_RANGE("value",ue,k)}L(O,x,z)}function te(k,m){if(typeof k!="number")throw new ee.ERR_INVALID_ARG_TYPE(m,"number",k)}function le(k,m,w){throw Math.floor(k)!==k?(te(k,w),new ee.ERR_OUT_OF_RANGE("offset","an integer",k)):m<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,k)}const Be=/[^+/0-9A-Za-z-_]/g;function ve(k){if(k=k.split("=")[0],k=k.trim().replace(Be,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function Ae(k,m){m=m||1/0;let w;const O=k.length;let x=null;const z=[];for(let V=0;V<O;++V){if(w=k.charCodeAt(V),w>55295&&w<57344){if(!x){if(w>56319){(m-=3)>-1&&z.push(239,191,189);continue}else if(V+1===O){(m-=3)>-1&&z.push(239,191,189);continue}x=w;continue}if(w<56320){(m-=3)>-1&&z.push(239,191,189),x=w;continue}w=(x-55296<<10|w-56320)+65536}else x&&(m-=3)>-1&&z.push(239,191,189);if(x=null,w<128){if((m-=1)<0)break;z.push(w)}else if(w<2048){if((m-=2)<0)break;z.push(w>>6|192,w&63|128)}else if(w<65536){if((m-=3)<0)break;z.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((m-=4)<0)break;z.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return z}function Re(k){const m=[];for(let w=0;w<k.length;++w)m.push(k.charCodeAt(w)&255);return m}function dt(k,m){let w,O,x;const z=[];for(let V=0;V<k.length&&!((m-=2)<0);++V)w=k.charCodeAt(V),O=w>>8,x=w%256,z.push(x),z.push(O);return z}function $t(k){return e.toByteArray(ve(k))}function It(k,m,w,O){let x;for(x=0;x<O&&!(x+w>=m.length||x>=k.length);++x)m[x+w]=k[x];return x}function $e(k,m){return k instanceof m||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===m.name}function kt(k){return k!==k}const zt=function(){const k="0123456789abcdef",m=new Array(256);for(let w=0;w<16;++w){const O=w*16;for(let x=0;x<16;++x)m[O+x]=k[w]+k[x]}return m}();function et(k){return typeof BigInt>"u"?Ut:k}function Ut(){throw new Error("BigInt not supported")}}(ld)),ld}var Ke=Ia();const W_=Ye({__proto__:null,default:zl(Ke)},[Ke]),Ct={},Y_=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"}));function o2(t){return(typeof t=="object"&&t!==null&&"message"in t?t.message:`${t}`).replace(/\.$/,"")}class Sn{async getBufferFromResponse(e){const n=await e.arrayBuffer();return Ke.Buffer.from(n)}constructor(e,n={}){this.baseOverrides={},this.url=e;const r=n.fetch||globalThis.fetch.bind(globalThis);if(!r)throw new TypeError("no fetch function supplied, and none found in global environment");n.overrides&&(this.baseOverrides=n.overrides),this.fetchImplementation=r}async fetch(e,n){let r;try{r=await this.fetchImplementation(e,n)}catch(o){if(`${o}`.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,{...n,cache:"reload"})}catch(i){throw new Error(`${o2(i)} fetching ${e}`,{cause:i})}}else throw new Error(`${o2(o)} fetching ${e}`,{cause:o})}return r}async read(e,n=0,r,o=0,i={}){const{headers:s={},signal:a,overrides:c={}}=i;r<1/0?s.range=`bytes=${o}-${o+r}`:r===1/0&&o!==0&&(s.range=`bytes=${o}-`);const l=await this.fetch(this.url,{...this.baseOverrides,...c,headers:{...s,...c.headers,...this.baseOverrides.headers},method:"GET",redirect:"follow",mode:"cors",signal:a});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${this.url}`);if(l.status===200&&o===0||l.status===206){const u=await this.getBufferFromResponse(l),f=u.copy(e,n,0,Math.min(r,u.length)),h=l.headers.get("content-range"),d=/\/(\d+)$/.exec(h||"");return d!=null&&d[1]&&(this._stat={size:parseInt(d[1],10)}),{bytesRead:f,buffer:e}}throw l.status===200?new Error(`${this.url} fetch returned status 200, expected 206`):new Error(`HTTP ${l.status} fetching ${this.url}`)}async readFile(e={}){let n,r;typeof e=="string"?(n=e,r={}):(n=e.encoding,r=e,delete r.encoding);const{headers:o={},signal:i,overrides:s={}}=r,a=await this.fetch(this.url,{headers:o,method:"GET",redirect:"follow",mode:"cors",signal:i,...this.baseOverrides,...s});if(a.status!==200)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(n==="utf8")return a.text();if(n)throw new Error(`unsupported encoding: ${n}`);return this.getBufferFromResponse(a)}async stat(){if(!this._stat){const e=Ke.Buffer.allocUnsafe(10);if(await this.read(e,0,10,0),!this._stat)throw new Error(`unable to determine size of file at ${this.url}`)}return this._stat}async close(){}}function s2(t){const e=new FileReader;return new Promise((n,r)=>{e.onerror=()=>{e.abort(),r(new Error("problem reading blob"))},e.onabort=()=>{r(new Error("blob reading was aborted"))},e.onload=()=>{e.result&&typeof e.result!="string"?n(e.result):r(new Error("unknown error reading blob"))},e.readAsArrayBuffer(t)})}function Q_(t){const e=new FileReader;return new Promise((n,r)=>{e.onerror=()=>{e.abort(),r(new Error("problem reading blob"))},e.onabort=()=>{r(new Error("blob reading was aborted"))},e.onload=()=>{e.result&&typeof e.result=="string"?n(e.result):r(new Error("unknown error reading blob"))},e.readAsText(t)})}class Z_{constructor(e){this.blob=e,this.size=e.size}async read(e,n=0,r,o=0){if(!r)return{bytesRead:0,buffer:e};const i=o,s=i+r,a=await s2(this.blob.slice(i,s)),c=Ke.Buffer.from(a);return{bytesRead:c.copy(e,n),buffer:c}}async readFile(e){const n=typeof e=="string"?e:e==null?void 0:e.encoding;if(n==="utf8")return Q_(this.blob);if(n)throw new Error(`unsupported encoding: ${n}`);const r=await s2(this.blob);return Ke.Buffer.from(r)}async stat(){return{size:this.size}}async close(){}}function a2(t,e={}){return new Sn(t,e)}function X_(t,e,n,r={}){if(n!==void 0)return n;if(t!==void 0)return a2(t,r);if(e!==void 0)return new Ct(e,r);throw new Error("no url, path, or filehandle provided, cannot open")}const Ta=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:Z_,LocalFile:Ct,RemoteFile:Sn,fromUrl:a2,open:X_},Symbol.toStringTag,{value:"Module"}));var ud={},c2;function Or(){return c2||(c2=1,function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(i,s){return Object.prototype.hasOwnProperty.call(i,s)}t.assign=function(i){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var a=s.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var c in a)n(a,c)&&(i[c]=a[c])}}return i},t.shrinkBuf=function(i,s){return i.length===s?i:i.subarray?i.subarray(0,s):(i.length=s,i)};var r={arraySet:function(i,s,a,c,l){if(s.subarray&&i.subarray){i.set(s.subarray(a,a+c),l);return}for(var u=0;u<c;u++)i[l+u]=s[a+u]},flattenChunks:function(i){var s,a,c,l,u,f;for(c=0,s=0,a=i.length;s<a;s++)c+=i[s].length;for(f=new Uint8Array(c),l=0,s=0,a=i.length;s<a;s++)u=i[s],f.set(u,l),l+=u.length;return f}},o={arraySet:function(i,s,a,c,l){for(var u=0;u<c;u++)i[l+u]=s[a+u]},flattenChunks:function(i){return[].concat.apply([],i)}};t.setTyped=function(i){i?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(e)}(ud)),ud}var Eo={},Cn={},Ci={},l2;function K_(){if(l2)return Ci;l2=1;var t=Or(),e=4,n=0,r=1,o=2;function i(x){for(var z=x.length;--z>=0;)x[z]=0}var s=0,a=1,c=2,l=3,u=258,f=29,h=256,d=h+1+f,p=30,y=19,v=2*d+1,b=15,A=16,S=7,E=256,I=16,_=17,B=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=512,Q=new Array((d+2)*2);i(Q);var se=new Array(p*2);i(se);var oe=new Array(Y);i(oe);var ae=new Array(u-l+1);i(ae);var ce=new Array(f);i(ce);var ye=new Array(p);i(ye);function he(x,z,V,ue,G){this.static_tree=x,this.extra_bits=z,this.extra_base=V,this.elems=ue,this.max_length=G,this.has_stree=x&&x.length}var De,we,Ee;function Te(x,z){this.dyn_tree=x,this.max_code=0,this.stat_desc=z}function Ge(x){return x<256?oe[x]:oe[256+(x>>>7)]}function Ve(x,z){x.pending_buf[x.pending++]=z&255,x.pending_buf[x.pending++]=z>>>8&255}function q(x,z,V){x.bi_valid>A-V?(x.bi_buf|=z<<x.bi_valid&65535,Ve(x,x.bi_buf),x.bi_buf=z>>A-x.bi_valid,x.bi_valid+=V-A):(x.bi_buf|=z<<x.bi_valid&65535,x.bi_valid+=V)}function j(x,z,V){q(x,V[z*2],V[z*2+1])}function ee(x,z){var V=0;do V|=x&1,x>>>=1,V<<=1;while(--z>0);return V>>>1}function J(x){x.bi_valid===16?(Ve(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):x.bi_valid>=8&&(x.pending_buf[x.pending++]=x.bi_buf&255,x.bi_buf>>=8,x.bi_valid-=8)}function fe(x,z){var V=z.dyn_tree,ue=z.max_code,G=z.stat_desc.static_tree,X=z.stat_desc.has_stree,T=z.stat_desc.extra_bits,re=z.stat_desc.extra_base,_e=z.stat_desc.max_length,g,K,$,R,H,Z,Ce=0;for(R=0;R<=b;R++)x.bl_count[R]=0;for(V[x.heap[x.heap_max]*2+1]=0,g=x.heap_max+1;g<v;g++)K=x.heap[g],R=V[V[K*2+1]*2+1]+1,R>_e&&(R=_e,Ce++),V[K*2+1]=R,!(K>ue)&&(x.bl_count[R]++,H=0,K>=re&&(H=T[K-re]),Z=V[K*2],x.opt_len+=Z*(R+H),X&&(x.static_len+=Z*(G[K*2+1]+H)));if(Ce!==0){do{for(R=_e-1;x.bl_count[R]===0;)R--;x.bl_count[R]--,x.bl_count[R+1]+=2,x.bl_count[_e]--,Ce-=2}while(Ce>0);for(R=_e;R!==0;R--)for(K=x.bl_count[R];K!==0;)$=x.heap[--g],!($>ue)&&(V[$*2+1]!==R&&(x.opt_len+=(R-V[$*2+1])*V[$*2],V[$*2+1]=R),K--)}}function L(x,z,V){var ue=new Array(b+1),G=0,X,T;for(X=1;X<=b;X++)ue[X]=G=G+V[X-1]<<1;for(T=0;T<=z;T++){var re=x[T*2+1];re!==0&&(x[T*2]=ee(ue[re]++,re))}}function D(){var x,z,V,ue,G,X=new Array(b+1);for(V=0,ue=0;ue<f-1;ue++)for(ce[ue]=V,x=0;x<1<<N[ue];x++)ae[V++]=ue;for(ae[V-1]=ue,G=0,ue=0;ue<16;ue++)for(ye[ue]=G,x=0;x<1<<F[ue];x++)oe[G++]=ue;for(G>>=7;ue<p;ue++)for(ye[ue]=G<<7,x=0;x<1<<F[ue]-7;x++)oe[256+G++]=ue;for(z=0;z<=b;z++)X[z]=0;for(x=0;x<=143;)Q[x*2+1]=8,x++,X[8]++;for(;x<=255;)Q[x*2+1]=9,x++,X[9]++;for(;x<=279;)Q[x*2+1]=7,x++,X[7]++;for(;x<=287;)Q[x*2+1]=8,x++,X[8]++;for(L(Q,d+1,X),x=0;x<p;x++)se[x*2+1]=5,se[x*2]=ee(x,5);De=new he(Q,N,h+1,d,b),we=new he(se,F,0,p,b),Ee=new he(new Array(0),M,0,y,S)}function te(x){var z;for(z=0;z<d;z++)x.dyn_ltree[z*2]=0;for(z=0;z<p;z++)x.dyn_dtree[z*2]=0;for(z=0;z<y;z++)x.bl_tree[z*2]=0;x.dyn_ltree[E*2]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function le(x){x.bi_valid>8?Ve(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function Be(x,z,V,ue){le(x),Ve(x,V),Ve(x,~V),t.arraySet(x.pending_buf,x.window,z,V,x.pending),x.pending+=V}function ve(x,z,V,ue){var G=z*2,X=V*2;return x[G]<x[X]||x[G]===x[X]&&ue[z]<=ue[V]}function Ae(x,z,V){for(var ue=x.heap[V],G=V<<1;G<=x.heap_len&&(G<x.heap_len&&ve(z,x.heap[G+1],x.heap[G],x.depth)&&G++,!ve(z,ue,x.heap[G],x.depth));)x.heap[V]=x.heap[G],V=G,G<<=1;x.heap[V]=ue}function Re(x,z,V){var ue,G,X=0,T,re;if(x.last_lit!==0)do ue=x.pending_buf[x.d_buf+X*2]<<8|x.pending_buf[x.d_buf+X*2+1],G=x.pending_buf[x.l_buf+X],X++,ue===0?j(x,G,z):(T=ae[G],j(x,T+h+1,z),re=N[T],re!==0&&(G-=ce[T],q(x,G,re)),ue--,T=Ge(ue),j(x,T,V),re=F[T],re!==0&&(ue-=ye[T],q(x,ue,re)));while(X<x.last_lit);j(x,E,z)}function dt(x,z){var V=z.dyn_tree,ue=z.stat_desc.static_tree,G=z.stat_desc.has_stree,X=z.stat_desc.elems,T,re,_e=-1,g;for(x.heap_len=0,x.heap_max=v,T=0;T<X;T++)V[T*2]!==0?(x.heap[++x.heap_len]=_e=T,x.depth[T]=0):V[T*2+1]=0;for(;x.heap_len<2;)g=x.heap[++x.heap_len]=_e<2?++_e:0,V[g*2]=1,x.depth[g]=0,x.opt_len--,G&&(x.static_len-=ue[g*2+1]);for(z.max_code=_e,T=x.heap_len>>1;T>=1;T--)Ae(x,V,T);g=X;do T=x.heap[1],x.heap[1]=x.heap[x.heap_len--],Ae(x,V,1),re=x.heap[1],x.heap[--x.heap_max]=T,x.heap[--x.heap_max]=re,V[g*2]=V[T*2]+V[re*2],x.depth[g]=(x.depth[T]>=x.depth[re]?x.depth[T]:x.depth[re])+1,V[T*2+1]=V[re*2+1]=g,x.heap[1]=g++,Ae(x,V,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1],fe(x,z),L(V,_e,x.bl_count)}function $t(x,z,V){var ue,G=-1,X,T=z[0*2+1],re=0,_e=7,g=4;for(T===0&&(_e=138,g=3),z[(V+1)*2+1]=65535,ue=0;ue<=V;ue++)X=T,T=z[(ue+1)*2+1],!(++re<_e&&X===T)&&(re<g?x.bl_tree[X*2]+=re:X!==0?(X!==G&&x.bl_tree[X*2]++,x.bl_tree[I*2]++):re<=10?x.bl_tree[_*2]++:x.bl_tree[B*2]++,re=0,G=X,T===0?(_e=138,g=3):X===T?(_e=6,g=3):(_e=7,g=4))}function It(x,z,V){var ue,G=-1,X,T=z[0*2+1],re=0,_e=7,g=4;for(T===0&&(_e=138,g=3),ue=0;ue<=V;ue++)if(X=T,T=z[(ue+1)*2+1],!(++re<_e&&X===T)){if(re<g)do j(x,X,x.bl_tree);while(--re!==0);else X!==0?(X!==G&&(j(x,X,x.bl_tree),re--),j(x,I,x.bl_tree),q(x,re-3,2)):re<=10?(j(x,_,x.bl_tree),q(x,re-3,3)):(j(x,B,x.bl_tree),q(x,re-11,7));re=0,G=X,T===0?(_e=138,g=3):X===T?(_e=6,g=3):(_e=7,g=4)}}function $e(x){var z;for($t(x,x.dyn_ltree,x.l_desc.max_code),$t(x,x.dyn_dtree,x.d_desc.max_code),dt(x,x.bl_desc),z=y-1;z>=3&&x.bl_tree[C[z]*2+1]===0;z--);return x.opt_len+=3*(z+1)+5+5+4,z}function kt(x,z,V,ue){var G;for(q(x,z-257,5),q(x,V-1,5),q(x,ue-4,4),G=0;G<ue;G++)q(x,x.bl_tree[C[G]*2+1],3);It(x,x.dyn_ltree,z-1),It(x,x.dyn_dtree,V-1)}function zt(x){var z=4093624447,V;for(V=0;V<=31;V++,z>>>=1)if(z&1&&x.dyn_ltree[V*2]!==0)return n;if(x.dyn_ltree[9*2]!==0||x.dyn_ltree[10*2]!==0||x.dyn_ltree[13*2]!==0)return r;for(V=32;V<h;V++)if(x.dyn_ltree[V*2]!==0)return r;return n}var et=!1;function Ut(x){et||(D(),et=!0),x.l_desc=new Te(x.dyn_ltree,De),x.d_desc=new Te(x.dyn_dtree,we),x.bl_desc=new Te(x.bl_tree,Ee),x.bi_buf=0,x.bi_valid=0,te(x)}function k(x,z,V,ue){q(x,(s<<1)+(ue?1:0),3),Be(x,z,V)}function m(x){q(x,a<<1,3),j(x,E,Q),J(x)}function w(x,z,V,ue){var G,X,T=0;x.level>0?(x.strm.data_type===o&&(x.strm.data_type=zt(x)),dt(x,x.l_desc),dt(x,x.d_desc),T=$e(x),G=x.opt_len+3+7>>>3,X=x.static_len+3+7>>>3,X<=G&&(G=X)):G=X=V+5,V+4<=G&&z!==-1?k(x,z,V,ue):x.strategy===e||X===G?(q(x,(a<<1)+(ue?1:0),3),Re(x,Q,se)):(q(x,(c<<1)+(ue?1:0),3),kt(x,x.l_desc.max_code+1,x.d_desc.max_code+1,T+1),Re(x,x.dyn_ltree,x.dyn_dtree)),te(x),ue&&le(x)}function O(x,z,V){return x.pending_buf[x.d_buf+x.last_lit*2]=z>>>8&255,x.pending_buf[x.d_buf+x.last_lit*2+1]=z&255,x.pending_buf[x.l_buf+x.last_lit]=V&255,x.last_lit++,z===0?x.dyn_ltree[V*2]++:(x.matches++,z--,x.dyn_ltree[(ae[V]+h+1)*2]++,x.dyn_dtree[Ge(z)*2]++),x.last_lit===x.lit_bufsize-1}return Ci._tr_init=Ut,Ci._tr_stored_block=k,Ci._tr_flush_block=w,Ci._tr_tally=O,Ci._tr_align=m,Ci}var fd,u2;function f2(){if(u2)return fd;u2=1;function t(e,n,r,o){for(var i=e&65535|0,s=e>>>16&65535|0,a=0;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+n[o++]|0,s=s+i|0;while(--a);i%=65521,s%=65521}return i|s<<16|0}return fd=t,fd}var hd,h2;function d2(){if(h2)return hd;h2=1;function t(){for(var r,o=[],i=0;i<256;i++){r=i;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;o[i]=r}return o}var e=t();function n(r,o,i,s){var a=e,c=s+i;r^=-1;for(var l=s;l<c;l++)r=r>>>8^a[(r^o[l])&255];return r^-1}return hd=n,hd}var dd,p2;function pd(){return p2||(p2=1,dd={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"}),dd}var g2;function J_(){if(g2)return Cn;g2=1;var t=Or(),e=K_(),n=f2(),r=d2(),o=pd(),i=0,s=1,a=3,c=4,l=5,u=0,f=1,h=-2,d=-3,p=-5,y=-1,v=1,b=2,A=3,S=4,E=0,I=2,_=8,B=9,N=15,F=8,M=29,C=256,Y=C+1+M,Q=30,se=19,oe=2*Y+1,ae=15,ce=3,ye=258,he=ye+ce+1,De=32,we=42,Ee=69,Te=73,Ge=91,Ve=103,q=113,j=666,ee=1,J=2,fe=3,L=4,D=3;function te(g,K){return g.msg=o[K],K}function le(g){return(g<<1)-(g>4?9:0)}function Be(g){for(var K=g.length;--K>=0;)g[K]=0}function ve(g){var K=g.state,$=K.pending;$>g.avail_out&&($=g.avail_out),$!==0&&(t.arraySet(g.output,K.pending_buf,K.pending_out,$,g.next_out),g.next_out+=$,K.pending_out+=$,g.total_out+=$,g.avail_out-=$,K.pending-=$,K.pending===0&&(K.pending_out=0))}function Ae(g,K){e._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,K),g.block_start=g.strstart,ve(g.strm)}function Re(g,K){g.pending_buf[g.pending++]=K}function dt(g,K){g.pending_buf[g.pending++]=K>>>8&255,g.pending_buf[g.pending++]=K&255}function $t(g,K,$,R){var H=g.avail_in;return H>R&&(H=R),H===0?0:(g.avail_in-=H,t.arraySet(K,g.input,g.next_in,H,$),g.state.wrap===1?g.adler=n(g.adler,K,H,$):g.state.wrap===2&&(g.adler=r(g.adler,K,H,$)),g.next_in+=H,g.total_in+=H,H)}function It(g,K){var $=g.max_chain_length,R=g.strstart,H,Z,Ce=g.prev_length,me=g.nice_match,xe=g.strstart>g.w_size-he?g.strstart-(g.w_size-he):0,Ue=g.window,gn=g.w_mask,U=g.prev,Me=g.strstart+ye,lt=Ue[R+Ce-1],tt=Ue[R+Ce];g.prev_length>=g.good_match&&($>>=2),me>g.lookahead&&(me=g.lookahead);do if(H=K,!(Ue[H+Ce]!==tt||Ue[H+Ce-1]!==lt||Ue[H]!==Ue[R]||Ue[++H]!==Ue[R+1])){R+=2,H++;do;while(Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&Ue[++R]===Ue[++H]&&R<Me);if(Z=ye-(Me-R),R=Me-ye,Z>Ce){if(g.match_start=K,Ce=Z,Z>=me)break;lt=Ue[R+Ce-1],tt=Ue[R+Ce]}}while((K=U[K&gn])>xe&&--$!==0);return Ce<=g.lookahead?Ce:g.lookahead}function $e(g){var K=g.w_size,$,R,H,Z,Ce;do{if(Z=g.window_size-g.lookahead-g.strstart,g.strstart>=K+(K-he)){t.arraySet(g.window,g.window,K,K,0),g.match_start-=K,g.strstart-=K,g.block_start-=K,R=g.hash_size,$=R;do H=g.head[--$],g.head[$]=H>=K?H-K:0;while(--R);R=K,$=R;do H=g.prev[--$],g.prev[$]=H>=K?H-K:0;while(--R);Z+=K}if(g.strm.avail_in===0)break;if(R=$t(g.strm,g.window,g.strstart+g.lookahead,Z),g.lookahead+=R,g.lookahead+g.insert>=ce)for(Ce=g.strstart-g.insert,g.ins_h=g.window[Ce],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+ce-1])&g.hash_mask,g.prev[Ce&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Ce,Ce++,g.insert--,!(g.lookahead+g.insert<ce)););}while(g.lookahead<he&&g.strm.avail_in!==0)}function kt(g,K){var $=65535;for($>g.pending_buf_size-5&&($=g.pending_buf_size-5);;){if(g.lookahead<=1){if($e(g),g.lookahead===0&&K===i)return ee;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var R=g.block_start+$;if((g.strstart===0||g.strstart>=R)&&(g.lookahead=g.strstart-R,g.strstart=R,Ae(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-he&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):(g.strstart>g.block_start&&(Ae(g,!1),g.strm.avail_out===0),ee)}function zt(g,K){for(var $,R;;){if(g.lookahead<he){if($e(g),g.lookahead<he&&K===i)return ee;if(g.lookahead===0)break}if($=0,g.lookahead>=ce&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),$!==0&&g.strstart-$<=g.w_size-he&&(g.match_length=It(g,$)),g.match_length>=ce)if(R=e._tr_tally(g,g.strstart-g.match_start,g.match_length-ce),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=ce){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else R=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(R&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=g.strstart<ce-1?g.strstart:ce-1,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function et(g,K){for(var $,R,H;;){if(g.lookahead<he){if($e(g),g.lookahead<he&&K===i)return ee;if(g.lookahead===0)break}if($=0,g.lookahead>=ce&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=ce-1,$!==0&&g.prev_length<g.max_lazy_match&&g.strstart-$<=g.w_size-he&&(g.match_length=It(g,$),g.match_length<=5&&(g.strategy===v||g.match_length===ce&&g.strstart-g.match_start>4096)&&(g.match_length=ce-1)),g.prev_length>=ce&&g.match_length<=g.prev_length){H=g.strstart+g.lookahead-ce,R=e._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-ce),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=H&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ce-1])&g.hash_mask,$=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);if(g.match_available=0,g.match_length=ce-1,g.strstart++,R&&(Ae(g,!1),g.strm.avail_out===0))return ee}else if(g.match_available){if(R=e._tr_tally(g,0,g.window[g.strstart-1]),R&&Ae(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return ee}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(R=e._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<ce-1?g.strstart:ce-1,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function Ut(g,K){for(var $,R,H,Z,Ce=g.window;;){if(g.lookahead<=ye){if($e(g),g.lookahead<=ye&&K===i)return ee;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=ce&&g.strstart>0&&(H=g.strstart-1,R=Ce[H],R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H])){Z=g.strstart+ye;do;while(R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&R===Ce[++H]&&H<Z);g.match_length=ye-(Z-H),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=ce?($=e._tr_tally(g,1,g.match_length-ce),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):($=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),$&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function k(g,K){for(var $;;){if(g.lookahead===0&&($e(g),g.lookahead===0)){if(K===i)return ee;break}if(g.match_length=0,$=e._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,$&&(Ae(g,!1),g.strm.avail_out===0))return ee}return g.insert=0,K===c?(Ae(g,!0),g.strm.avail_out===0?fe:L):g.last_lit&&(Ae(g,!1),g.strm.avail_out===0)?ee:J}function m(g,K,$,R,H){this.good_length=g,this.max_lazy=K,this.nice_length=$,this.max_chain=R,this.func=H}var w;w=[new m(0,0,0,0,kt),new m(4,4,8,4,zt),new m(4,5,16,8,zt),new m(4,6,32,32,zt),new m(4,4,16,16,et),new m(8,16,32,32,et),new m(8,16,128,128,et),new m(8,32,128,256,et),new m(32,128,258,1024,et),new m(32,258,258,4096,et)];function O(g){g.window_size=2*g.w_size,Be(g.head),g.max_lazy_match=w[g.level].max_lazy,g.good_match=w[g.level].good_length,g.nice_match=w[g.level].nice_length,g.max_chain_length=w[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=ce-1,g.match_available=0,g.ins_h=0}function x(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(oe*2),this.dyn_dtree=new t.Buf16((2*Q+1)*2),this.bl_tree=new t.Buf16((2*se+1)*2),Be(this.dyn_ltree),Be(this.dyn_dtree),Be(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(ae+1),this.heap=new t.Buf16(2*Y+1),Be(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*Y+1),Be(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(g){var K;return!g||!g.state?te(g,h):(g.total_in=g.total_out=0,g.data_type=I,K=g.state,K.pending=0,K.pending_out=0,K.wrap<0&&(K.wrap=-K.wrap),K.status=K.wrap?we:q,g.adler=K.wrap===2?0:1,K.last_flush=i,e._tr_init(K),u)}function V(g){var K=z(g);return K===u&&O(g.state),K}function ue(g,K){return!g||!g.state||g.state.wrap!==2?h:(g.state.gzhead=K,u)}function G(g,K,$,R,H,Z){if(!g)return h;var Ce=1;if(K===y&&(K=6),R<0?(Ce=0,R=-R):R>15&&(Ce=2,R-=16),H<1||H>B||$!==_||R<8||R>15||K<0||K>9||Z<0||Z>S)return te(g,h);R===8&&(R=9);var me=new x;return g.state=me,me.strm=g,me.wrap=Ce,me.gzhead=null,me.w_bits=R,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=H+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+ce-1)/ce),me.window=new t.Buf8(me.w_size*2),me.head=new t.Buf16(me.hash_size),me.prev=new t.Buf16(me.w_size),me.lit_bufsize=1<<H+6,me.pending_buf_size=me.lit_bufsize*4,me.pending_buf=new t.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=K,me.strategy=Z,me.method=$,V(g)}function X(g,K){return G(g,K,_,N,F,E)}function T(g,K){var $,R,H,Z;if(!g||!g.state||K>l||K<0)return g?te(g,h):h;if(R=g.state,!g.output||!g.input&&g.avail_in!==0||R.status===j&&K!==c)return te(g,g.avail_out===0?p:h);if(R.strm=g,$=R.last_flush,R.last_flush=K,R.status===we)if(R.wrap===2)g.adler=0,Re(R,31),Re(R,139),Re(R,8),R.gzhead?(Re(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),Re(R,R.gzhead.time&255),Re(R,R.gzhead.time>>8&255),Re(R,R.gzhead.time>>16&255),Re(R,R.gzhead.time>>24&255),Re(R,R.level===9?2:R.strategy>=b||R.level<2?4:0),Re(R,R.gzhead.os&255),R.gzhead.extra&&R.gzhead.extra.length&&(Re(R,R.gzhead.extra.length&255),Re(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(g.adler=r(g.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=Ee):(Re(R,0),Re(R,0),Re(R,0),Re(R,0),Re(R,0),Re(R,R.level===9?2:R.strategy>=b||R.level<2?4:0),Re(R,D),R.status=q);else{var Ce=_+(R.w_bits-8<<4)<<8,me=-1;R.strategy>=b||R.level<2?me=0:R.level<6?me=1:R.level===6?me=2:me=3,Ce|=me<<6,R.strstart!==0&&(Ce|=De),Ce+=31-Ce%31,R.status=q,dt(R,Ce),R.strstart!==0&&(dt(R,g.adler>>>16),dt(R,g.adler&65535)),g.adler=1}if(R.status===Ee)if(R.gzhead.extra){for(H=R.pending;R.gzindex<(R.gzhead.extra.length&65535)&&!(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size));)Re(R,R.gzhead.extra[R.gzindex]&255),R.gzindex++;R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),R.gzindex===R.gzhead.extra.length&&(R.gzindex=0,R.status=Te)}else R.status=Te;if(R.status===Te)if(R.gzhead.name){H=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size)){Z=1;break}R.gzindex<R.gzhead.name.length?Z=R.gzhead.name.charCodeAt(R.gzindex++)&255:Z=0,Re(R,Z)}while(Z!==0);R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),Z===0&&(R.gzindex=0,R.status=Ge)}else R.status=Ge;if(R.status===Ge)if(R.gzhead.comment){H=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),ve(g),H=R.pending,R.pending===R.pending_buf_size)){Z=1;break}R.gzindex<R.gzhead.comment.length?Z=R.gzhead.comment.charCodeAt(R.gzindex++)&255:Z=0,Re(R,Z)}while(Z!==0);R.gzhead.hcrc&&R.pending>H&&(g.adler=r(g.adler,R.pending_buf,R.pending-H,H)),Z===0&&(R.status=Ve)}else R.status=Ve;if(R.status===Ve&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&ve(g),R.pending+2<=R.pending_buf_size&&(Re(R,g.adler&255),Re(R,g.adler>>8&255),g.adler=0,R.status=q)):R.status=q),R.pending!==0){if(ve(g),g.avail_out===0)return R.last_flush=-1,u}else if(g.avail_in===0&&le(K)<=le($)&&K!==c)return te(g,p);if(R.status===j&&g.avail_in!==0)return te(g,p);if(g.avail_in!==0||R.lookahead!==0||K!==i&&R.status!==j){var xe=R.strategy===b?k(R,K):R.strategy===A?Ut(R,K):w[R.level].func(R,K);if((xe===fe||xe===L)&&(R.status=j),xe===ee||xe===fe)return g.avail_out===0&&(R.last_flush=-1),u;if(xe===J&&(K===s?e._tr_align(R):K!==l&&(e._tr_stored_block(R,0,0,!1),K===a&&(Be(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),ve(g),g.avail_out===0))return R.last_flush=-1,u}return K!==c?u:R.wrap<=0?f:(R.wrap===2?(Re(R,g.adler&255),Re(R,g.adler>>8&255),Re(R,g.adler>>16&255),Re(R,g.adler>>24&255),Re(R,g.total_in&255),Re(R,g.total_in>>8&255),Re(R,g.total_in>>16&255),Re(R,g.total_in>>24&255)):(dt(R,g.adler>>>16),dt(R,g.adler&65535)),ve(g),R.wrap>0&&(R.wrap=-R.wrap),R.pending!==0?u:f)}function re(g){var K;return!g||!g.state?h:(K=g.state.status,K!==we&&K!==Ee&&K!==Te&&K!==Ge&&K!==Ve&&K!==q&&K!==j?te(g,h):(g.state=null,K===q?te(g,d):u))}function _e(g,K){var $=K.length,R,H,Z,Ce,me,xe,Ue,gn;if(!g||!g.state||(R=g.state,Ce=R.wrap,Ce===2||Ce===1&&R.status!==we||R.lookahead))return h;for(Ce===1&&(g.adler=n(g.adler,K,$,0)),R.wrap=0,$>=R.w_size&&(Ce===0&&(Be(R.head),R.strstart=0,R.block_start=0,R.insert=0),gn=new t.Buf8(R.w_size),t.arraySet(gn,K,$-R.w_size,R.w_size,0),K=gn,$=R.w_size),me=g.avail_in,xe=g.next_in,Ue=g.input,g.avail_in=$,g.next_in=0,g.input=K,$e(R);R.lookahead>=ce;){H=R.strstart,Z=R.lookahead-(ce-1);do R.ins_h=(R.ins_h<<R.hash_shift^R.window[H+ce-1])&R.hash_mask,R.prev[H&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=H,H++;while(--Z);R.strstart=H,R.lookahead=ce-1,$e(R)}return R.strstart+=R.lookahead,R.block_start=R.strstart,R.insert=R.lookahead,R.lookahead=0,R.match_length=R.prev_length=ce-1,R.match_available=0,g.next_in=xe,g.input=Ue,g.avail_in=me,R.wrap=Ce,u}return Cn.deflateInit=X,Cn.deflateInit2=G,Cn.deflateReset=V,Cn.deflateResetKeep=z,Cn.deflateSetHeader=ue,Cn.deflate=T,Cn.deflateEnd=re,Cn.deflateSetDictionary=_e,Cn.deflateInfo="pako deflate (from Nodeca project)",Cn}var Ii={},m2;function b2(){if(m2)return Ii;m2=1;var t=Or(),e=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var r=new t.Buf8(256),o=0;o<256;o++)r[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;r[254]=r[254]=1,Ii.string2buf=function(s){var a,c,l,u,f,h=s.length,d=0;for(u=0;u<h;u++)c=s.charCodeAt(u),(c&64512)===55296&&u+1<h&&(l=s.charCodeAt(u+1),(l&64512)===56320&&(c=65536+(c-55296<<10)+(l-56320),u++)),d+=c<128?1:c<2048?2:c<65536?3:4;for(a=new t.Buf8(d),f=0,u=0;f<d;u++)c=s.charCodeAt(u),(c&64512)===55296&&u+1<h&&(l=s.charCodeAt(u+1),(l&64512)===56320&&(c=65536+(c-55296<<10)+(l-56320),u++)),c<128?a[f++]=c:c<2048?(a[f++]=192|c>>>6,a[f++]=128|c&63):c<65536?(a[f++]=224|c>>>12,a[f++]=128|c>>>6&63,a[f++]=128|c&63):(a[f++]=240|c>>>18,a[f++]=128|c>>>12&63,a[f++]=128|c>>>6&63,a[f++]=128|c&63);return a};function i(s,a){if(a<65534&&(s.subarray&&n||!s.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(s,a));for(var c="",l=0;l<a;l++)c+=String.fromCharCode(s[l]);return c}return Ii.buf2binstring=function(s){return i(s,s.length)},Ii.binstring2buf=function(s){for(var a=new t.Buf8(s.length),c=0,l=a.length;c<l;c++)a[c]=s.charCodeAt(c);return a},Ii.buf2string=function(s,a){var c,l,u,f,h=a||s.length,d=new Array(h*2);for(l=0,c=0;c<h;){if(u=s[c++],u<128){d[l++]=u;continue}if(f=r[u],f>4){d[l++]=65533,c+=f-1;continue}for(u&=f===2?31:f===3?15:7;f>1&&c<h;)u=u<<6|s[c++]&63,f--;if(f>1){d[l++]=65533;continue}u<65536?d[l++]=u:(u-=65536,d[l++]=55296|u>>10&1023,d[l++]=56320|u&1023)}return i(d,l)},Ii.utf8border=function(s,a){var c;for(a=a||s.length,a>s.length&&(a=s.length),c=a-1;c>=0&&(s[c]&192)===128;)c--;return c<0||c===0?a:c+r[s[c]]>a?c:a},Ii}var gd,y2;function w2(){if(y2)return gd;y2=1;function t(){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}return gd=t,gd}var x2;function $_(){if(x2)return Eo;x2=1;var t=J_(),e=Or(),n=b2(),r=pd(),o=w2(),i=Object.prototype.toString,s=0,a=4,c=0,l=1,u=2,f=-1,h=0,d=8;function p(A){if(!(this instanceof p))return new p(A);this.options=e.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},A||{});var S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var E=t.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(E!==c)throw new Error(r[E]);if(S.header&&t.deflateSetHeader(this.strm,S.header),S.dictionary){var I;if(typeof S.dictionary=="string"?I=n.string2buf(S.dictionary):i.call(S.dictionary)==="[object ArrayBuffer]"?I=new Uint8Array(S.dictionary):I=S.dictionary,E=t.deflateSetDictionary(this.strm,I),E!==c)throw new Error(r[E]);this._dict_set=!0}}p.prototype.push=function(A,S){var E=this.strm,I=this.options.chunkSize,_,B;if(this.ended)return!1;B=S===~~S?S:S===!0?a:s,typeof A=="string"?E.input=n.string2buf(A):i.call(A)==="[object ArrayBuffer]"?E.input=new Uint8Array(A):E.input=A,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new e.Buf8(I),E.next_out=0,E.avail_out=I),_=t.deflate(E,B),_!==l&&_!==c)return this.onEnd(_),this.ended=!0,!1;(E.avail_out===0||E.avail_in===0&&(B===a||B===u))&&(this.options.to==="string"?this.onData(n.buf2binstring(e.shrinkBuf(E.output,E.next_out))):this.onData(e.shrinkBuf(E.output,E.next_out)))}while((E.avail_in>0||E.avail_out===0)&&_!==l);return B===a?(_=t.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===c):(B===u&&(this.onEnd(c),E.avail_out=0),!0)},p.prototype.onData=function(A){this.chunks.push(A)},p.prototype.onEnd=function(A){A===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function y(A,S){var E=new p(S);if(E.push(A,!0),E.err)throw E.msg||r[E.err];return E.result}function v(A,S){return S=S||{},S.raw=!0,y(A,S)}function b(A,S){return S=S||{},S.gzip=!0,y(A,S)}return Eo.Deflate=p,Eo.deflate=y,Eo.deflateRaw=v,Eo.gzip=b,Eo}var So={},un={},md,v2;function eR(){if(v2)return md;v2=1;var t=30,e=12;return md=function(r,o){var i,s,a,c,l,u,f,h,d,p,y,v,b,A,S,E,I,_,B,N,F,M,C,Y,Q;i=r.state,s=r.next_in,Y=r.input,a=s+(r.avail_in-5),c=r.next_out,Q=r.output,l=c-(o-r.avail_out),u=c+(r.avail_out-257),f=i.dmax,h=i.wsize,d=i.whave,p=i.wnext,y=i.window,v=i.hold,b=i.bits,A=i.lencode,S=i.distcode,E=(1<<i.lenbits)-1,I=(1<<i.distbits)-1;e:do{b<15&&(v+=Y[s++]<<b,b+=8,v+=Y[s++]<<b,b+=8),_=A[v&E];t:for(;;){if(B=_>>>24,v>>>=B,b-=B,B=_>>>16&255,B===0)Q[c++]=_&65535;else if(B&16){N=_&65535,B&=15,B&&(b<B&&(v+=Y[s++]<<b,b+=8),N+=v&(1<<B)-1,v>>>=B,b-=B),b<15&&(v+=Y[s++]<<b,b+=8,v+=Y[s++]<<b,b+=8),_=S[v&I];n:for(;;){if(B=_>>>24,v>>>=B,b-=B,B=_>>>16&255,B&16){if(F=_&65535,B&=15,b<B&&(v+=Y[s++]<<b,b+=8,b<B&&(v+=Y[s++]<<b,b+=8)),F+=v&(1<<B)-1,F>f){r.msg="invalid distance too far back",i.mode=t;break e}if(v>>>=B,b-=B,B=c-l,F>B){if(B=F-B,B>d&&i.sane){r.msg="invalid distance too far back",i.mode=t;break e}if(M=0,C=y,p===0){if(M+=h-B,B<N){N-=B;do Q[c++]=y[M++];while(--B);M=c-F,C=Q}}else if(p<B){if(M+=h+p-B,B-=p,B<N){N-=B;do Q[c++]=y[M++];while(--B);if(M=0,p<N){B=p,N-=B;do Q[c++]=y[M++];while(--B);M=c-F,C=Q}}}else if(M+=p-B,B<N){N-=B;do Q[c++]=y[M++];while(--B);M=c-F,C=Q}for(;N>2;)Q[c++]=C[M++],Q[c++]=C[M++],Q[c++]=C[M++],N-=3;N&&(Q[c++]=C[M++],N>1&&(Q[c++]=C[M++]))}else{M=c-F;do Q[c++]=Q[M++],Q[c++]=Q[M++],Q[c++]=Q[M++],N-=3;while(N>2);N&&(Q[c++]=Q[M++],N>1&&(Q[c++]=Q[M++]))}}else if(B&64){r.msg="invalid distance code",i.mode=t;break e}else{_=S[(_&65535)+(v&(1<<B)-1)];continue n}break}}else if(B&64)if(B&32){i.mode=e;break e}else{r.msg="invalid literal/length code",i.mode=t;break e}else{_=A[(_&65535)+(v&(1<<B)-1)];continue t}break}}while(s<a&&c<u);N=b>>3,s-=N,b-=N<<3,v&=(1<<b)-1,r.next_in=s,r.next_out=c,r.avail_in=s<a?5+(a-s):5-(s-a),r.avail_out=c<u?257+(u-c):257-(c-u),i.hold=v,i.bits=b},md}var bd,A2;function tR(){if(A2)return bd;A2=1;var t=Or(),e=15,n=852,r=592,o=0,i=1,s=2,a=[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],c=[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],l=[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],u=[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];return bd=function(h,d,p,y,v,b,A,S){var E=S.bits,I=0,_=0,B=0,N=0,F=0,M=0,C=0,Y=0,Q=0,se=0,oe,ae,ce,ye,he,De=null,we=0,Ee,Te=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Ve=null,q=0,j,ee,J;for(I=0;I<=e;I++)Te[I]=0;for(_=0;_<y;_++)Te[d[p+_]]++;for(F=E,N=e;N>=1&&Te[N]===0;N--);if(F>N&&(F=N),N===0)return v[b++]=1<<24|64<<16|0,v[b++]=1<<24|64<<16|0,S.bits=1,0;for(B=1;B<N&&Te[B]===0;B++);for(F<B&&(F=B),Y=1,I=1;I<=e;I++)if(Y<<=1,Y-=Te[I],Y<0)return-1;if(Y>0&&(h===o||N!==1))return-1;for(Ge[1]=0,I=1;I<e;I++)Ge[I+1]=Ge[I]+Te[I];for(_=0;_<y;_++)d[p+_]!==0&&(A[Ge[d[p+_]]++]=_);if(h===o?(De=Ve=A,Ee=19):h===i?(De=a,we-=257,Ve=c,q-=257,Ee=256):(De=l,Ve=u,Ee=-1),se=0,_=0,I=B,he=b,M=F,C=0,ce=-1,Q=1<<F,ye=Q-1,h===i&&Q>n||h===s&&Q>r)return 1;for(;;){j=I-C,A[_]<Ee?(ee=0,J=A[_]):A[_]>Ee?(ee=Ve[q+A[_]],J=De[we+A[_]]):(ee=96,J=0),oe=1<<I-C,ae=1<<M,B=ae;do ae-=oe,v[he+(se>>C)+ae]=j<<24|ee<<16|J|0;while(ae!==0);for(oe=1<<I-1;se&oe;)oe>>=1;if(oe!==0?(se&=oe-1,se+=oe):se=0,_++,--Te[I]===0){if(I===N)break;I=d[p+A[_]]}if(I>F&&(se&ye)!==ce){for(C===0&&(C=F),he+=B,M=I-C,Y=1<<M;M+C<N&&(Y-=Te[M+C],!(Y<=0));)M++,Y<<=1;if(Q+=1<<M,h===i&&Q>n||h===s&&Q>r)return 1;ce=se&ye,v[ce]=F<<24|M<<16|he-b|0}}return se!==0&&(v[he+se]=I-C<<24|64<<16|0),S.bits=F,0},bd}var E2;function nR(){if(E2)return un;E2=1;var t=Or(),e=f2(),n=d2(),r=eR(),o=tR(),i=0,s=1,a=2,c=4,l=5,u=6,f=0,h=1,d=2,p=-2,y=-3,v=-4,b=-5,A=8,S=1,E=2,I=3,_=4,B=5,N=6,F=7,M=8,C=9,Y=10,Q=11,se=12,oe=13,ae=14,ce=15,ye=16,he=17,De=18,we=19,Ee=20,Te=21,Ge=22,Ve=23,q=24,j=25,ee=26,J=27,fe=28,L=29,D=30,te=31,le=32,Be=852,ve=592,Ae=15,Re=Ae;function dt(G){return(G>>>24&255)+(G>>>8&65280)+((G&65280)<<8)+((G&255)<<24)}function $t(){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=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function It(G){var X;return!G||!G.state?p:(X=G.state,G.total_in=G.total_out=X.total=0,G.msg="",X.wrap&&(G.adler=X.wrap&1),X.mode=S,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new t.Buf32(Be),X.distcode=X.distdyn=new t.Buf32(ve),X.sane=1,X.back=-1,f)}function $e(G){var X;return!G||!G.state?p:(X=G.state,X.wsize=0,X.whave=0,X.wnext=0,It(G))}function kt(G,X){var T,re;return!G||!G.state||(re=G.state,X<0?(T=0,X=-X):(T=(X>>4)+1,X<48&&(X&=15)),X&&(X<8||X>15))?p:(re.window!==null&&re.wbits!==X&&(re.window=null),re.wrap=T,re.wbits=X,$e(G))}function zt(G,X){var T,re;return G?(re=new $t,G.state=re,re.window=null,T=kt(G,X),T!==f&&(G.state=null),T):p}function et(G){return zt(G,Re)}var Ut=!0,k,m;function w(G){if(Ut){var X;for(k=new t.Buf32(512),m=new t.Buf32(32),X=0;X<144;)G.lens[X++]=8;for(;X<256;)G.lens[X++]=9;for(;X<280;)G.lens[X++]=7;for(;X<288;)G.lens[X++]=8;for(o(s,G.lens,0,288,k,0,G.work,{bits:9}),X=0;X<32;)G.lens[X++]=5;o(a,G.lens,0,32,m,0,G.work,{bits:5}),Ut=!1}G.lencode=k,G.lenbits=9,G.distcode=m,G.distbits=5}function O(G,X,T,re){var _e,g=G.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new t.Buf8(g.wsize)),re>=g.wsize?(t.arraySet(g.window,X,T-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(_e=g.wsize-g.wnext,_e>re&&(_e=re),t.arraySet(g.window,X,T-re,_e,g.wnext),re-=_e,re?(t.arraySet(g.window,X,T-re,re,0),g.wnext=re,g.whave=g.wsize):(g.wnext+=_e,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=_e))),0}function x(G,X){var T,re,_e,g,K,$,R,H,Z,Ce,me,xe,Ue,gn,U=0,Me,lt,tt,Tt,ke,cr,ft,Ne,ht=new t.Buf8(4),Dn,rn,nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&G.avail_in!==0)return p;T=G.state,T.mode===se&&(T.mode=oe),K=G.next_out,_e=G.output,R=G.avail_out,g=G.next_in,re=G.input,$=G.avail_in,H=T.hold,Z=T.bits,Ce=$,me=R,Ne=f;e:for(;;)switch(T.mode){case S:if(T.wrap===0){T.mode=oe;break}for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.wrap&2&&H===35615){T.check=0,ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0),H=0,Z=0,T.mode=E;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((H&255)<<8)+(H>>8))%31){G.msg="incorrect header check",T.mode=D;break}if((H&15)!==A){G.msg="unknown compression method",T.mode=D;break}if(H>>>=4,Z-=4,ft=(H&15)+8,T.wbits===0)T.wbits=ft;else if(ft>T.wbits){G.msg="invalid window size",T.mode=D;break}T.dmax=1<<ft,G.adler=T.check=1,T.mode=H&512?Y:se,H=0,Z=0;break;case E:for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.flags=H,(T.flags&255)!==A){G.msg="unknown compression method",T.mode=D;break}if(T.flags&57344){G.msg="unknown header flags set",T.mode=D;break}T.head&&(T.head.text=H>>8&1),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0,T.mode=I;case I:for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.head&&(T.head.time=H),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,ht[2]=H>>>16&255,ht[3]=H>>>24&255,T.check=n(T.check,ht,4,0)),H=0,Z=0,T.mode=_;case _:for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.head&&(T.head.xflags=H&255,T.head.os=H>>8),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0,T.mode=B;case B:if(T.flags&1024){for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.length=H,T.head&&(T.head.extra_len=H),T.flags&512&&(ht[0]=H&255,ht[1]=H>>>8&255,T.check=n(T.check,ht,2,0)),H=0,Z=0}else T.head&&(T.head.extra=null);T.mode=N;case N:if(T.flags&1024&&(xe=T.length,xe>$&&(xe=$),xe&&(T.head&&(ft=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),t.arraySet(T.head.extra,re,g,xe,ft)),T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,T.length-=xe),T.length))break e;T.length=0,T.mode=F;case F:if(T.flags&2048){if($===0)break e;xe=0;do ft=re[g+xe++],T.head&&ft&&T.length<65536&&(T.head.name+=String.fromCharCode(ft));while(ft&&xe<$);if(T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,ft)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=M;case M:if(T.flags&4096){if($===0)break e;xe=0;do ft=re[g+xe++],T.head&&ft&&T.length<65536&&(T.head.comment+=String.fromCharCode(ft));while(ft&&xe<$);if(T.flags&512&&(T.check=n(T.check,re,xe,g)),$-=xe,g+=xe,ft)break e}else T.head&&(T.head.comment=null);T.mode=C;case C:if(T.flags&512){for(;Z<16;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H!==(T.check&65535)){G.msg="header crc mismatch",T.mode=D;break}H=0,Z=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),G.adler=T.check=0,T.mode=se;break;case Y:for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}G.adler=T.check=dt(H),H=0,Z=0,T.mode=Q;case Q:if(T.havedict===0)return G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,d;G.adler=T.check=1,T.mode=se;case se:if(X===l||X===u)break e;case oe:if(T.last){H>>>=Z&7,Z-=Z&7,T.mode=J;break}for(;Z<3;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}switch(T.last=H&1,H>>>=1,Z-=1,H&3){case 0:T.mode=ae;break;case 1:if(w(T),T.mode=Ee,X===u){H>>>=2,Z-=2;break e}break;case 2:T.mode=he;break;case 3:G.msg="invalid block type",T.mode=D}H>>>=2,Z-=2;break;case ae:for(H>>>=Z&7,Z-=Z&7;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if((H&65535)!==(H>>>16^65535)){G.msg="invalid stored block lengths",T.mode=D;break}if(T.length=H&65535,H=0,Z=0,T.mode=ce,X===u)break e;case ce:T.mode=ye;case ye:if(xe=T.length,xe){if(xe>$&&(xe=$),xe>R&&(xe=R),xe===0)break e;t.arraySet(_e,re,g,xe,K),$-=xe,g+=xe,R-=xe,K+=xe,T.length-=xe;break}T.mode=se;break;case he:for(;Z<14;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(T.nlen=(H&31)+257,H>>>=5,Z-=5,T.ndist=(H&31)+1,H>>>=5,Z-=5,T.ncode=(H&15)+4,H>>>=4,Z-=4,T.nlen>286||T.ndist>30){G.msg="too many length or distance symbols",T.mode=D;break}T.have=0,T.mode=De;case De:for(;T.have<T.ncode;){for(;Z<3;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.lens[nc[T.have++]]=H&7,H>>>=3,Z-=3}for(;T.have<19;)T.lens[nc[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Dn={bits:T.lenbits},Ne=o(i,T.lens,0,19,T.lencode,0,T.work,Dn),T.lenbits=Dn.bits,Ne){G.msg="invalid code lengths set",T.mode=D;break}T.have=0,T.mode=we;case we:for(;T.have<T.nlen+T.ndist;){for(;U=T.lencode[H&(1<<T.lenbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(tt<16)H>>>=Me,Z-=Me,T.lens[T.have++]=tt;else{if(tt===16){for(rn=Me+2;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H>>>=Me,Z-=Me,T.have===0){G.msg="invalid bit length repeat",T.mode=D;break}ft=T.lens[T.have-1],xe=3+(H&3),H>>>=2,Z-=2}else if(tt===17){for(rn=Me+3;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Me,Z-=Me,ft=0,xe=3+(H&7),H>>>=3,Z-=3}else{for(rn=Me+7;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Me,Z-=Me,ft=0,xe=11+(H&127),H>>>=7,Z-=7}if(T.have+xe>T.nlen+T.ndist){G.msg="invalid bit length repeat",T.mode=D;break}for(;xe--;)T.lens[T.have++]=ft}}if(T.mode===D)break;if(T.lens[256]===0){G.msg="invalid code -- missing end-of-block",T.mode=D;break}if(T.lenbits=9,Dn={bits:T.lenbits},Ne=o(s,T.lens,0,T.nlen,T.lencode,0,T.work,Dn),T.lenbits=Dn.bits,Ne){G.msg="invalid literal/lengths set",T.mode=D;break}if(T.distbits=6,T.distcode=T.distdyn,Dn={bits:T.distbits},Ne=o(a,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Dn),T.distbits=Dn.bits,Ne){G.msg="invalid distances set",T.mode=D;break}if(T.mode=Ee,X===u)break e;case Ee:T.mode=Te;case Te:if($>=6&&R>=258){G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,r(G,me),K=G.next_out,_e=G.output,R=G.avail_out,g=G.next_in,re=G.input,$=G.avail_in,H=T.hold,Z=T.bits,T.mode===se&&(T.back=-1);break}for(T.back=0;U=T.lencode[H&(1<<T.lenbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(lt&&!(lt&240)){for(Tt=Me,ke=lt,cr=tt;U=T.lencode[cr+((H&(1<<Tt+ke)-1)>>Tt)],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Tt+Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Tt,Z-=Tt,T.back+=Tt}if(H>>>=Me,Z-=Me,T.back+=Me,T.length=tt,lt===0){T.mode=ee;break}if(lt&32){T.back=-1,T.mode=se;break}if(lt&64){G.msg="invalid literal/length code",T.mode=D;break}T.extra=lt&15,T.mode=Ge;case Ge:if(T.extra){for(rn=T.extra;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.length+=H&(1<<T.extra)-1,H>>>=T.extra,Z-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=Ve;case Ve:for(;U=T.distcode[H&(1<<T.distbits)-1],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(!(lt&240)){for(Tt=Me,ke=lt,cr=tt;U=T.distcode[cr+((H&(1<<Tt+ke)-1)>>Tt)],Me=U>>>24,lt=U>>>16&255,tt=U&65535,!(Tt+Me<=Z);){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}H>>>=Tt,Z-=Tt,T.back+=Tt}if(H>>>=Me,Z-=Me,T.back+=Me,lt&64){G.msg="invalid distance code",T.mode=D;break}T.offset=tt,T.extra=lt&15,T.mode=q;case q:if(T.extra){for(rn=T.extra;Z<rn;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}T.offset+=H&(1<<T.extra)-1,H>>>=T.extra,Z-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){G.msg="invalid distance too far back",T.mode=D;break}T.mode=j;case j:if(R===0)break e;if(xe=me-R,T.offset>xe){if(xe=T.offset-xe,xe>T.whave&&T.sane){G.msg="invalid distance too far back",T.mode=D;break}xe>T.wnext?(xe-=T.wnext,Ue=T.wsize-xe):Ue=T.wnext-xe,xe>T.length&&(xe=T.length),gn=T.window}else gn=_e,Ue=K-T.offset,xe=T.length;xe>R&&(xe=R),R-=xe,T.length-=xe;do _e[K++]=gn[Ue++];while(--xe);T.length===0&&(T.mode=Te);break;case ee:if(R===0)break e;_e[K++]=T.length,R--,T.mode=Te;break;case J:if(T.wrap){for(;Z<32;){if($===0)break e;$--,H|=re[g++]<<Z,Z+=8}if(me-=R,G.total_out+=me,T.total+=me,me&&(G.adler=T.check=T.flags?n(T.check,_e,me,K-me):e(T.check,_e,me,K-me)),me=R,(T.flags?H:dt(H))!==T.check){G.msg="incorrect data check",T.mode=D;break}H=0,Z=0}T.mode=fe;case fe:if(T.wrap&&T.flags){for(;Z<32;){if($===0)break e;$--,H+=re[g++]<<Z,Z+=8}if(H!==(T.total&4294967295)){G.msg="incorrect length check",T.mode=D;break}H=0,Z=0}T.mode=L;case L:Ne=h;break e;case D:Ne=y;break e;case te:return v;case le:default:return p}return G.next_out=K,G.avail_out=R,G.next_in=g,G.avail_in=$,T.hold=H,T.bits=Z,(T.wsize||me!==G.avail_out&&T.mode<D&&(T.mode<J||X!==c))&&O(G,G.output,G.next_out,me-G.avail_out),Ce-=G.avail_in,me-=G.avail_out,G.total_in+=Ce,G.total_out+=me,T.total+=me,T.wrap&&me&&(G.adler=T.check=T.flags?n(T.check,_e,me,G.next_out-me):e(T.check,_e,me,G.next_out-me)),G.data_type=T.bits+(T.last?64:0)+(T.mode===se?128:0)+(T.mode===Ee||T.mode===ce?256:0),(Ce===0&&me===0||X===c)&&Ne===f&&(Ne=b),Ne}function z(G){if(!G||!G.state)return p;var X=G.state;return X.window&&(X.window=null),G.state=null,f}function V(G,X){var T;return!G||!G.state||(T=G.state,!(T.wrap&2))?p:(T.head=X,X.done=!1,f)}function ue(G,X){var T=X.length,re,_e,g;return!G||!G.state||(re=G.state,re.wrap!==0&&re.mode!==Q)?p:re.mode===Q&&(_e=1,_e=e(_e,X,T,0),_e!==re.check)?y:(g=O(G,X,T,T),g?(re.mode=te,v):(re.havedict=1,f))}return un.inflateReset=$e,un.inflateReset2=kt,un.inflateResetKeep=It,un.inflateInit=et,un.inflateInit2=zt,un.inflate=x,un.inflateEnd=z,un.inflateGetHeader=V,un.inflateSetDictionary=ue,un.inflateInfo="pako inflate (from Nodeca project)",un}var yd,S2;function C2(){return S2||(S2=1,yd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),yd}var wd,I2;function rR(){if(I2)return wd;I2=1;function t(){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}return wd=t,wd}var T2;function iR(){if(T2)return So;T2=1;var t=nR(),e=Or(),n=b2(),r=C2(),o=pd(),i=w2(),s=rR(),a=Object.prototype.toString;function c(f){if(!(this instanceof c))return new c(f);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},f||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(f&&f.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15||(h.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,h.windowBits);if(d!==r.Z_OK)throw new Error(o[d]);if(this.header=new s,t.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=n.string2buf(h.dictionary):a.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(d=t.inflateSetDictionary(this.strm,h.dictionary),d!==r.Z_OK)))throw new Error(o[d])}c.prototype.push=function(f,h){var d=this.strm,p=this.options.chunkSize,y=this.options.dictionary,v,b,A,S,E,I=!1;if(this.ended)return!1;b=h===~~h?h:h===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof f=="string"?d.input=n.binstring2buf(f):a.call(f)==="[object ArrayBuffer]"?d.input=new Uint8Array(f):d.input=f,d.next_in=0,d.avail_in=d.input.length;do{if(d.avail_out===0&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),v=t.inflate(d,r.Z_NO_FLUSH),v===r.Z_NEED_DICT&&y&&(v=t.inflateSetDictionary(this.strm,y)),v===r.Z_BUF_ERROR&&I===!0&&(v=r.Z_OK,I=!1),v!==r.Z_STREAM_END&&v!==r.Z_OK)return this.onEnd(v),this.ended=!0,!1;d.next_out&&(d.avail_out===0||v===r.Z_STREAM_END||d.avail_in===0&&(b===r.Z_FINISH||b===r.Z_SYNC_FLUSH))&&(this.options.to==="string"?(A=n.utf8border(d.output,d.next_out),S=d.next_out-A,E=n.buf2string(d.output,A),d.next_out=S,d.avail_out=p-S,S&&e.arraySet(d.output,d.output,A,S,0),this.onData(E)):this.onData(e.shrinkBuf(d.output,d.next_out))),d.avail_in===0&&d.avail_out===0&&(I=!0)}while((d.avail_in>0||d.avail_out===0)&&v!==r.Z_STREAM_END);return v===r.Z_STREAM_END&&(b=r.Z_FINISH),b===r.Z_FINISH?(v=t.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===r.Z_OK):(b===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),d.avail_out=0),!0)},c.prototype.onData=function(f){this.chunks.push(f)},c.prototype.onEnd=function(f){f===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function l(f,h){var d=new c(h);if(d.push(f,!0),d.err)throw d.msg||o[d.err];return d.result}function u(f,h){return h=h||{},h.raw=!0,l(f,h)}return So.Inflate=c,So.inflate=l,So.inflateRaw=u,So.ungzip=l,So}var xd,D2;function oR(){if(D2)return xd;D2=1;var t=Or().assign,e=$_(),n=iR(),r=C2(),o={};return t(o,e,n,r),xd=o,xd}var Gl=oR();async function Nr(t){try{let e,n=0,r=0;const o=[];let i=0,s;do{const c=t.subarray(n);if(s=new Gl.Inflate,{strm:e}=s,s.push(c,Gl.Z_SYNC_FLUSH),s.err)throw new Error(s.msg);n+=e.next_in,o[r]=s.result,i+=o[r].length,r+=1}while(e.avail_in);const a=new Uint8Array(i);for(let c=0,l=0;c<o.length;c++)a.set(o[c],l),l+=o[c].length;return Ke.Buffer.from(a)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function B2(t,e){try{let n;const{minv:r,maxv:o}=e;let i=r.blockPosition,s=r.dataPosition;const a=[],c=[],l=[];let u=0,f=0;do{const p=t.subarray(i-r.blockPosition),y=new Gl.Inflate;if({strm:n}=y,y.push(p,Gl.Z_SYNC_FLUSH),y.err)throw new Error(y.msg);const v=y.result;a.push(v);let b=v.length;c.push(i),l.push(s),a.length===1&&r.dataPosition&&(a[0]=a[0].subarray(r.dataPosition),b=a[0].length);const A=i;if(i+=n.next_in,s+=b,A>=o.blockPosition){a[f]=a[f].subarray(0,o.blockPosition===r.blockPosition?o.dataPosition-r.dataPosition+1:o.dataPosition+1),c.push(i),l.push(s),u+=a[f].length;break}u+=a[f].length,f++}while(n.avail_in);const h=new Uint8Array(u);for(let p=0,y=0;p<a.length;p++)h.set(a[p],y),y+=a[p].length;return{buffer:Ke.Buffer.from(h),cpositions:c,dpositions:l}}catch(n){throw/incorrect header check/.exec(`${n}`)?new Error("problem decompressing block: incorrect gzip header check"):n}}var vd,k2;function sR(){if(k2)return vd;k2=1,vd=e;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function e(M,C,Y){this.low=M|0,this.high=C|0,this.unsigned=!!Y}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0});function n(M){return(M&&M.__isLong__)===!0}e.isLong=n;var r={},o={};function i(M,C){var Y,Q,se;return C?(M>>>=0,(se=0<=M&&M<256)&&(Q=o[M],Q)?Q:(Y=a(M,(M|0)<0?-1:0,!0),se&&(o[M]=Y),Y)):(M|=0,(se=-128<=M&&M<128)&&(Q=r[M],Q)?Q:(Y=a(M,M<0?-1:0,!1),se&&(r[M]=Y),Y))}e.fromInt=i;function s(M,C){if(isNaN(M))return C?A:b;if(C){if(M<0)return A;if(M>=p)return B}else{if(M<=-9223372036854776e3)return N;if(M+1>=y)return _}return M<0?s(-M,C).neg():a(M%d|0,M/d|0,C)}e.fromNumber=s;function a(M,C,Y){return new e(M,C,Y)}e.fromBits=a;var c=Math.pow;function l(M,C,Y){if(M.length===0)throw Error("empty string");if(M==="NaN"||M==="Infinity"||M==="+Infinity"||M==="-Infinity")return b;if(typeof C=="number"?(Y=C,C=!1):C=!!C,Y=Y||10,Y<2||36<Y)throw RangeError("radix");var Q;if((Q=M.indexOf("-"))>0)throw Error("interior hyphen");if(Q===0)return l(M.substring(1),C,Y).neg();for(var se=s(c(Y,8)),oe=b,ae=0;ae<M.length;ae+=8){var ce=Math.min(8,M.length-ae),ye=parseInt(M.substring(ae,ae+ce),Y);if(ce<8){var he=s(c(Y,ce));oe=oe.mul(he).add(s(ye))}else oe=oe.mul(se),oe=oe.add(s(ye))}return oe.unsigned=C,oe}e.fromString=l;function u(M,C){return typeof M=="number"?s(M,C):typeof M=="string"?l(M,C):a(M.low,M.high,typeof C=="boolean"?C:M.unsigned)}e.fromValue=u;var f=65536,h=1<<24,d=f*f,p=d*d,y=p/2,v=i(h),b=i(0);e.ZERO=b;var A=i(0,!0);e.UZERO=A;var S=i(1);e.ONE=S;var E=i(1,!0);e.UONE=E;var I=i(-1);e.NEG_ONE=I;var _=a(-1,2147483647,!1);e.MAX_VALUE=_;var B=a(-1,-1,!0);e.MAX_UNSIGNED_VALUE=B;var N=a(0,-2147483648,!1);e.MIN_VALUE=N;var F=e.prototype;return F.toInt=function(){return this.unsigned?this.low>>>0:this.low},F.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},F.toString=function(C){if(C=C||10,C<2||36<C)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(N)){var Y=s(C),Q=this.div(Y),se=Q.mul(Y).sub(this);return Q.toString(C)+se.toInt().toString(C)}else return"-"+this.neg().toString(C);for(var oe=s(c(C,6),this.unsigned),ae=this,ce="";;){var ye=ae.div(oe),he=ae.sub(ye.mul(oe)).toInt()>>>0,De=he.toString(C);if(ae=ye,ae.isZero())return De+ce;for(;De.length<6;)De="0"+De;ce=""+De+ce}},F.getHighBits=function(){return this.high},F.getHighBitsUnsigned=function(){return this.high>>>0},F.getLowBits=function(){return this.low},F.getLowBitsUnsigned=function(){return this.low>>>0},F.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var C=this.high!=0?this.high:this.low,Y=31;Y>0&&!(C&1<<Y);Y--);return this.high!=0?Y+33:Y+1},F.isZero=function(){return this.high===0&&this.low===0},F.eqz=F.isZero,F.isNegative=function(){return!this.unsigned&&this.high<0},F.isPositive=function(){return this.unsigned||this.high>=0},F.isOdd=function(){return(this.low&1)===1},F.isEven=function(){return(this.low&1)===0},F.equals=function(C){return n(C)||(C=u(C)),this.unsigned!==C.unsigned&&this.high>>>31===1&&C.high>>>31===1?!1:this.high===C.high&&this.low===C.low},F.eq=F.equals,F.notEquals=function(C){return!this.eq(C)},F.neq=F.notEquals,F.ne=F.notEquals,F.lessThan=function(C){return this.comp(C)<0},F.lt=F.lessThan,F.lessThanOrEqual=function(C){return this.comp(C)<=0},F.lte=F.lessThanOrEqual,F.le=F.lessThanOrEqual,F.greaterThan=function(C){return this.comp(C)>0},F.gt=F.greaterThan,F.greaterThanOrEqual=function(C){return this.comp(C)>=0},F.gte=F.greaterThanOrEqual,F.ge=F.greaterThanOrEqual,F.compare=function(C){if(n(C)||(C=u(C)),this.eq(C))return 0;var Y=this.isNegative(),Q=C.isNegative();return Y&&!Q?-1:!Y&&Q?1:this.unsigned?C.high>>>0>this.high>>>0||C.high===this.high&&C.low>>>0>this.low>>>0?-1:1:this.sub(C).isNegative()?-1:1},F.comp=F.compare,F.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(S)},F.neg=F.negate,F.add=function(C){n(C)||(C=u(C));var Y=this.high>>>16,Q=this.high&65535,se=this.low>>>16,oe=this.low&65535,ae=C.high>>>16,ce=C.high&65535,ye=C.low>>>16,he=C.low&65535,De=0,we=0,Ee=0,Te=0;return Te+=oe+he,Ee+=Te>>>16,Te&=65535,Ee+=se+ye,we+=Ee>>>16,Ee&=65535,we+=Q+ce,De+=we>>>16,we&=65535,De+=Y+ae,De&=65535,a(Ee<<16|Te,De<<16|we,this.unsigned)},F.subtract=function(C){return n(C)||(C=u(C)),this.add(C.neg())},F.sub=F.subtract,F.multiply=function(C){if(this.isZero())return b;if(n(C)||(C=u(C)),t){var Y=t.mul(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}if(C.isZero())return b;if(this.eq(N))return C.isOdd()?N:b;if(C.eq(N))return this.isOdd()?N:b;if(this.isNegative())return C.isNegative()?this.neg().mul(C.neg()):this.neg().mul(C).neg();if(C.isNegative())return this.mul(C.neg()).neg();if(this.lt(v)&&C.lt(v))return s(this.toNumber()*C.toNumber(),this.unsigned);var Q=this.high>>>16,se=this.high&65535,oe=this.low>>>16,ae=this.low&65535,ce=C.high>>>16,ye=C.high&65535,he=C.low>>>16,De=C.low&65535,we=0,Ee=0,Te=0,Ge=0;return Ge+=ae*De,Te+=Ge>>>16,Ge&=65535,Te+=oe*De,Ee+=Te>>>16,Te&=65535,Te+=ae*he,Ee+=Te>>>16,Te&=65535,Ee+=se*De,we+=Ee>>>16,Ee&=65535,Ee+=oe*he,we+=Ee>>>16,Ee&=65535,Ee+=ae*ye,we+=Ee>>>16,Ee&=65535,we+=Q*De+se*he+oe*ye+ae*ce,we&=65535,a(Te<<16|Ge,we<<16|Ee,this.unsigned)},F.mul=F.multiply,F.divide=function(C){if(n(C)||(C=u(C)),C.isZero())throw Error("division by zero");if(t){if(!this.unsigned&&this.high===-2147483648&&C.low===-1&&C.high===-1)return this;var Y=(this.unsigned?t.div_u:t.div_s)(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?A:b;var Q,se,oe;if(this.unsigned){if(C.unsigned||(C=C.toUnsigned()),C.gt(this))return A;if(C.gt(this.shru(1)))return E;oe=A}else{if(this.eq(N)){if(C.eq(S)||C.eq(I))return N;if(C.eq(N))return S;var ae=this.shr(1);return Q=ae.div(C).shl(1),Q.eq(b)?C.isNegative()?S:I:(se=this.sub(C.mul(Q)),oe=Q.add(se.div(C)),oe)}else if(C.eq(N))return this.unsigned?A:b;if(this.isNegative())return C.isNegative()?this.neg().div(C.neg()):this.neg().div(C).neg();if(C.isNegative())return this.div(C.neg()).neg();oe=b}for(se=this;se.gte(C);){Q=Math.max(1,Math.floor(se.toNumber()/C.toNumber()));for(var ce=Math.ceil(Math.log(Q)/Math.LN2),ye=ce<=48?1:c(2,ce-48),he=s(Q),De=he.mul(C);De.isNegative()||De.gt(se);)Q-=ye,he=s(Q,this.unsigned),De=he.mul(C);he.isZero()&&(he=S),oe=oe.add(he),se=se.sub(De)}return oe},F.div=F.divide,F.modulo=function(C){if(n(C)||(C=u(C)),t){var Y=(this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,C.low,C.high);return a(Y,t.get_high(),this.unsigned)}return this.sub(this.div(C).mul(C))},F.mod=F.modulo,F.rem=F.modulo,F.not=function(){return a(~this.low,~this.high,this.unsigned)},F.and=function(C){return n(C)||(C=u(C)),a(this.low&C.low,this.high&C.high,this.unsigned)},F.or=function(C){return n(C)||(C=u(C)),a(this.low|C.low,this.high|C.high,this.unsigned)},F.xor=function(C){return n(C)||(C=u(C)),a(this.low^C.low,this.high^C.high,this.unsigned)},F.shiftLeft=function(C){return n(C)&&(C=C.toInt()),(C&=63)===0?this:C<32?a(this.low<<C,this.high<<C|this.low>>>32-C,this.unsigned):a(0,this.low<<C-32,this.unsigned)},F.shl=F.shiftLeft,F.shiftRight=function(C){return n(C)&&(C=C.toInt()),(C&=63)===0?this:C<32?a(this.low>>>C|this.high<<32-C,this.high>>C,this.unsigned):a(this.high>>C-32,this.high>=0?0:-1,this.unsigned)},F.shr=F.shiftRight,F.shiftRightUnsigned=function(C){if(n(C)&&(C=C.toInt()),C&=63,C===0)return this;var Y=this.high;if(C<32){var Q=this.low;return a(Q>>>C|Y<<32-C,Y>>>C,this.unsigned)}else return C===32?a(Y,0,this.unsigned):a(Y>>>C-32,0,this.unsigned)},F.shru=F.shiftRightUnsigned,F.shr_u=F.shiftRightUnsigned,F.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},F.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},F.toBytes=function(C){return C?this.toBytesLE():this.toBytesBE()},F.toBytesLE=function(){var C=this.high,Y=this.low;return[Y&255,Y>>>8&255,Y>>>16&255,Y>>>24,C&255,C>>>8&255,C>>>16&255,C>>>24]},F.toBytesBE=function(){var C=this.high,Y=this.low;return[C>>>24,C>>>16&255,C>>>8&255,C&255,Y>>>24,Y>>>16&255,Y>>>8&255,Y&255]},e.fromBytes=function(C,Y,Q){return Q?e.fromBytesLE(C,Y):e.fromBytesBE(C,Y)},e.fromBytesLE=function(C,Y){return new e(C[0]|C[1]<<8|C[2]<<16|C[3]<<24,C[4]|C[5]<<8|C[6]<<16|C[7]<<24,Y)},e.fromBytesBE=function(C,Y){return new e(C[4]<<24|C[5]<<16|C[6]<<8|C[7],C[0]<<24|C[1]<<16|C[2]<<8|C[3],Y)},vd}var aR=sR();const Hl=zl(aR),Vl=1;class cR{constructor({filehandle:e,path:n}){if(e)this.filehandle=e;else if(n)this.filehandle=new Ct(n);else throw new TypeError("either filehandle or path must be defined")}_readLongWithOverflow(e,n=0,r=!0){const o=Hl.fromBytesLE(e.slice(n,n+8),r);if(o.greaterThan(Number.MAX_SAFE_INTEGER)||o.lessThan(Number.MIN_SAFE_INTEGER))throw new TypeError("integer overflow");return o.toNumber()}_getIndex(){return this.index||(this.index=this._readIndex()),this.index}async _readIndex(){let e=Ke.Buffer.allocUnsafe(8);await this.filehandle.read(e,0,8,0);const n=this._readLongWithOverflow(e,0,!0);if(!n)return[[0,0]];const r=new Array(n+1);r[0]=[0,0];const o=8*2*n;if(o>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");e=Ke.Buffer.allocUnsafe(o),await this.filehandle.read(e,0,o,8);for(let i=0;i<n;i+=1){const s=this._readLongWithOverflow(e,i*16),a=this._readLongWithOverflow(e,i*16+8);r[i+1]=[s,a]}return r}async getLastBlock(){const e=await this._getIndex();if(e.length)return e[e.length-1]}async getRelevantBlocksForRead(e,n){const r=n+e;if(e===0)return[];const o=await this._getIndex(),i=[],s=(h,d)=>{const p=h[Vl],y=d?d[Vl]:1/0;return p<=n&&y>n?0:p<n?-1:1};let a=0,c=o.length-1,l=Math.floor(o.length/2),u=s(o[l],o[l+1]);for(;u!==0;)u>0?c=l-1:u<0&&(a=l+1),l=Math.ceil((c-a)/2)+a,u=s(o[l],o[l+1]);i.push(o[l]);let f=l+1;for(;f<o.length&&(i.push(o[f]),!(o[f][Vl]>=r));f+=1);return i[i.length-1][Vl]<r&&i.push([]),i}}class _2{constructor({filehandle:e,path:n,gziFilehandle:r,gziPath:o}){if(e)this.filehandle=e;else if(n)this.filehandle=new Ct(n);else throw new TypeError("either filehandle or path must be defined");if(!r&&!o&&!n)throw new TypeError("either gziFilehandle or gziPath must be defined");this.gzi=new cR({filehandle:r,path:!r&&!o&&n?o:`${n}.gzi`})}async stat(){const e=await this.filehandle.stat();return Object.assign(e,{size:await this.getUncompressedFileSize(),blocks:void 0,blksize:void 0})}async getUncompressedFileSize(){const[,e]=await this.gzi.getLastBlock(),{size:n}=await this.filehandle.stat(),r=Ke.Buffer.allocUnsafe(4),{bytesRead:o}=await this.filehandle.read(r,0,4,n-28-4);if(o!==4)throw new Error("read error");const i=r.readUInt32LE(0);return e+i}async _readAndUncompressBlock(e,[n],[r]){let o=r;o||(o=(await this.filehandle.stat()).size);const i=o-n;return await this.filehandle.read(e,0,i,n),await Nr(e.slice(0,i))}async read(e,n,r,o){const i=await this.gzi.getRelevantBlocksForRead(r,o),s=Ke.Buffer.allocUnsafe(32768*2);let a=n,c=0;for(let l=0;l<i.length-1;l+=1){const u=await this._readAndUncompressBlock(s,i[l],i[l+1]),[,f]=i[l],h=f>=o?0:o-f,d=Math.min(o+r,f+u.length)-f;h>=0&&h<u.length&&(u.copy(e,a,h,d),a+=d-h,c+=d-h)}return{bytesRead:c,buffer:e}}}function R2(t,e){return t.offset+t.lineBytes*Math.floor(e/t.lineLength)+e%t.lineLength}async function lR(t,e){const n=await t.readFile(e);if(!(n!=null&&n.length))throw new Error("No data read from FASTA index (FAI) file");let r=0,o;const i=n.toString("utf8").split(/\r?\n/).filter(s=>/\S/.test(s)).map(s=>s.split(" ")).filter(s=>s[0]!=="").map(s=>((!o||o.name!==s[0])&&(o={name:s[0],id:r},r+=1),{id:o.id,name:s[0],length:+s[1],start:0,end:+s[1],offset:+s[2],lineLength:+s[3],lineBytes:+s[4]}));return{name:Object.fromEntries(i.map(s=>[s.name,s])),id:Object.fromEntries(i.map(s=>[s.id,s]))}}class F2{constructor({fasta:e,fai:n,path:r,faiPath:o}){if(e)this.fasta=e;else if(r)this.fasta=new Ct(r);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(n)this.fai=n;else if(o)this.fai=new Ct(o);else if(r)this.fai=new Ct(`${r}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(e){return this.indexes||(this.indexes=lR(this.fai,e)),this.indexes}async getSequenceNames(e){return Object.keys((await this._getIndexes(e)).name)}async getSequenceSizes(e){const n={},r=await this._getIndexes(e);for(const o of Object.values(r.id))n[o.name]=o.length;return n}async getSequenceSize(e,n){var r;return(r=(await this._getIndexes(n)).name[e])===null||r===void 0?void 0:r.length}async hasReferenceSequence(e,n){return!!(await this._getIndexes(n)).name[e]}async getResiduesById(e,n,r,o){const i=(await this._getIndexes(o)).id[e];if(i)return this._fetchFromIndexEntry(i,n,r,o)}async getResiduesByName(e,n,r,o){const i=(await this._getIndexes(o)).name[e];if(i)return this._fetchFromIndexEntry(i,n,r,o)}async getSequence(e,n,r,o){return this.getResiduesByName(e,n,r,o)}async _fetchFromIndexEntry(e,n=0,r,o){let i=r;if(n<0)throw new TypeError("regionStart cannot be less than 0");if((i===void 0||i>e.length)&&(i=e.length),n>=i)return"";const s=R2(e,n),a=R2(e,i)-s,c=Ke.Buffer.allocUnsafe(a);return await this.fasta.read(c,0,a,s,o),c.toString("utf8").replace(/\s+/g,"")}}class uR extends F2{constructor({fasta:e,path:n,fai:r,faiPath:o,gzi:i,gziPath:s}){super({fasta:e,path:n,fai:r,faiPath:o}),e&&i?this.fasta=new _2({filehandle:e,gziFilehandle:i}):n&&s&&(this.fasta=new _2({path:n,gziPath:s}))}}function M2(t){return t.split(">").filter(e=>/\S/.test(e)).map(e=>{const[n,...r]=e.split(`
|
|
651
|
+
`),[o,...i]=n.split(" "),s=r.join("").replace(/\s/g,"");return{id:o,description:i.join(" "),sequence:s}})}class fR{constructor({fasta:e,path:n}){if(e)this.fasta=e;else if(n)this.fasta=new Ct(n);else throw new Error("Need to pass fasta or path");this.data=this.fasta.readFile().then(r=>{const o=r.toString("utf8");return M2(o)})}async fetch(e,n,r){const i=(await this.data).find(a=>a.id===e),s=r-n;if(!i)throw new Error(`no sequence with id ${e} exists`);return i.sequence.slice(n,s)}async getSequenceNames(){return(await this.data).map(n=>n.id)}}const hR=Object.freeze(Object.defineProperty({__proto__:null,BgzipIndexedFasta:uR,FetchableSmallFasta:fR,IndexedFasta:F2,parseSmallFasta:M2},Symbol.toStringTag,{value:"Module"})),P2=BigInt(32);function dR(t,e,n){const r=+!!n,o=+!n;return BigInt(t.getInt32(e,n)*o+t.getInt32(e+4,n)*r)<<P2|BigInt(t.getUint32(e,n)*r+t.getUint32(e+4,n)*o)}function pR(t,e,n){const r=t.getUint32(e,n),o=t.getUint32(e+4,n),i=+!!n,s=+!n;return BigInt(r*s+o*i)<<P2|BigInt(r*i+o*s)}"getBigInt64"in DataView||(DataView.prototype.getBigInt64=function(t,e){return dR(this,t,e)}),"getBigUint64"in DataView||(DataView.prototype.getBigUint64=function(t,e){return pR(this,t,e)});class gR{}class mR{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(e=new gR){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 bR{constructor(){this.callbacks=new Set}addCallback(e=()=>{}){this.callbacks.add(e),e(this.currentMessage)}callback(e){this.currentMessage=e;for(const n of this.callbacks)n(e)}}class Ti{constructor({fill:e,cache:n}){if(typeof e!="function")throw new TypeError("must pass a fill function");if(typeof n!="object")throw new TypeError("must pass a cache object");if(typeof n.get!="function"||typeof n.set!="function"||typeof n.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=n,this.fillCallback=e}static isAbortException(e){return e.name==="AbortError"||e.code==="ERR_ABORTED"||e.message==="AbortError: aborted"||e.message==="Error: aborted"}evict(e,n){this.cache.get(e)===n&&this.cache.delete(e)}fill(e,n,r,o){const i=new mR,s=new bR;s.addCallback(o);const a={aborter:i,promise:this.fillCallback(n,i.signal,c=>{s.callback(c)}),settled:!1,statusReporter:s,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,n){function r(){if(n!=null&&n.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return e.then(o=>(r(),o),o=>{throw r(),o})}has(e){return this.cache.has(e)}get(e,n,r,o){if(!r&&n instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const i=this.cache.get(e);return i?i.aborted&&!i.settled?(this.evict(e,i),this.get(e,n,r,o)):i.settled?i.promise:(i.aborter.addSignal(r),i.statusReporter.addCallback(o),Ti.checkSinglePromise(i.promise,r)):(this.fill(e,n,r,o),Ti.checkSinglePromise(this.cache.get(e).promise,r))}delete(e){const n=this.cache.get(e);n&&(n.settled||n.aborter.abort(),this.cache.delete(e))}clear(){const e=this.cache.keys();let n=0;for(let r=e.next();!r.done;r=e.next())this.delete(r.value),n+=1;return n}}var Ad,L2;function yR(){if(L2)return Ad;L2=1;class t{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,r){this.cache.set(n,r),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){const r=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,r),r}}set(n,r){return this.cache.has(n)?this.cache.set(n,r):this._set(n,r),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){const r=this.cache.delete(n);return r&&this._size--,this.oldCache.delete(n)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[n]of this)yield n}*values(){for(const[,n]of this)yield n}*[Symbol.iterator](){for(const n of this.cache)yield n;for(const n of this.oldCache){const[r]=n;this.cache.has(r)||(yield n)}}get size(){let n=0;for(const r of this.oldCache.keys())this.cache.has(r)||n++;return this._size+n}}return Ad=t,Ad}var wR=yR();const ql=zl(wR);class Co{constructor(e){this.ranges=e}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(e){for(const n of this.ranges)if(n.min<=e&&n.max>=e)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(e=>new Co([{min:e.min,max:e.max}]))}toString(){return this.ranges.map(e=>`[${e.min}-${e.max}]`).join(",")}union(e){const n=[...this.getRanges(),...e.getRanges()].sort((i,s)=>i.min<s.min?-1:i.min>s.min?1:i.max<s.max?-1:s.max>i.max?1:0),r=[];let o=n[0];for(const i of n)i.min>o.max+1?(r.push(o),o=i):i.max>o.max&&(o=new Co([{min:o.min,max:i.max}]));return r.push(o),r.length===1?r[0]:new Co(r)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function Io(t){let e=t.length;for(;--e>=0;)t[e]=0}const xR=3,vR=258,O2=29,AR=256+1+O2,N2=30,ER=512,SR=new Array((AR+2)*2);Io(SR);const CR=new Array(N2*2);Io(CR);const IR=new Array(ER);Io(IR);const TR=new Array(vR-xR+1);Io(TR);const DR=new Array(O2);Io(DR);const BR=new Array(N2);Io(BR);var Ed=(t,e,n,r)=>{let o=t&65535|0,i=t>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do o=o+e[r++]|0,i=i+o|0;while(--s);o%=65521,i%=65521}return o|i<<16|0};const kR=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},_R=new Uint32Array(kR());var Vn=(t,e,n,r)=>{const o=_R,i=r+n;t^=-1;for(let s=r;s<i;s++)t=t>>>8^o[(t^e[s])&255];return t^-1},Sd={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"},z2={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const RR=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var FR=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)RR(n,r)&&(t[r]=n[r])}}return t},MR=t=>{let e=0;for(let r=0,o=t.length;r<o;r++)e+=t[r].length;const n=new Uint8Array(e);for(let r=0,o=0,i=t.length;r<i;r++){let s=t[r];n.set(s,o),o+=s.length}return n},U2={assign:FR,flattenChunks:MR};let G2=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{G2=!1}const Da=new Uint8Array(256);for(let t=0;t<256;t++)Da[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Da[254]=Da[254]=1;var PR=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,r,o,i,s=t.length,a=0;for(o=0;o<s;o++)n=t.charCodeAt(o),(n&64512)===55296&&o+1<s&&(r=t.charCodeAt(o+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),o++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),i=0,o=0;i<a;o++)n=t.charCodeAt(o),(n&64512)===55296&&o+1<s&&(r=t.charCodeAt(o+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|n&63):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|n&63):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|n&63);return e};const LR=(t,e)=>{if(e<65534&&t.subarray&&G2)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n};var OR=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r,o;const i=new Array(n*2);for(o=0,r=0;r<n;){let s=t[r++];if(s<128){i[o++]=s;continue}let a=Da[s];if(a>4){i[o++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<n;)s=s<<6|t[r++]&63,a--;if(a>1){i[o++]=65533;continue}s<65536?i[o++]=s:(s-=65536,i[o++]=55296|s>>10&1023,i[o++]=56320|s&1023)}return LR(i,o)},NR=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+Da[t[n]]>e?n:e},Cd={string2buf:PR,buf2string:OR,utf8border:NR};function zR(){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 UR=zR;const jl=16209,GR=16191;var HR=function(e,n){let r,o,i,s,a,c,l,u,f,h,d,p,y,v,b,A,S,E,I,_,B,N,F,M;const C=e.state;r=e.next_in,F=e.input,o=r+(e.avail_in-5),i=e.next_out,M=e.output,s=i-(n-e.avail_out),a=i+(e.avail_out-257),c=C.dmax,l=C.wsize,u=C.whave,f=C.wnext,h=C.window,d=C.hold,p=C.bits,y=C.lencode,v=C.distcode,b=(1<<C.lenbits)-1,A=(1<<C.distbits)-1;e:do{p<15&&(d+=F[r++]<<p,p+=8,d+=F[r++]<<p,p+=8),S=y[d&b];t:for(;;){if(E=S>>>24,d>>>=E,p-=E,E=S>>>16&255,E===0)M[i++]=S&65535;else if(E&16){I=S&65535,E&=15,E&&(p<E&&(d+=F[r++]<<p,p+=8),I+=d&(1<<E)-1,d>>>=E,p-=E),p<15&&(d+=F[r++]<<p,p+=8,d+=F[r++]<<p,p+=8),S=v[d&A];n:for(;;){if(E=S>>>24,d>>>=E,p-=E,E=S>>>16&255,E&16){if(_=S&65535,E&=15,p<E&&(d+=F[r++]<<p,p+=8,p<E&&(d+=F[r++]<<p,p+=8)),_+=d&(1<<E)-1,_>c){e.msg="invalid distance too far back",C.mode=jl;break e}if(d>>>=E,p-=E,E=i-s,_>E){if(E=_-E,E>u&&C.sane){e.msg="invalid distance too far back",C.mode=jl;break e}if(B=0,N=h,f===0){if(B+=l-E,E<I){I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}}else if(f<E){if(B+=l+f-E,E-=f,E<I){I-=E;do M[i++]=h[B++];while(--E);if(B=0,f<I){E=f,I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}}}else if(B+=f-E,E<I){I-=E;do M[i++]=h[B++];while(--E);B=i-_,N=M}for(;I>2;)M[i++]=N[B++],M[i++]=N[B++],M[i++]=N[B++],I-=3;I&&(M[i++]=N[B++],I>1&&(M[i++]=N[B++]))}else{B=i-_;do M[i++]=M[B++],M[i++]=M[B++],M[i++]=M[B++],I-=3;while(I>2);I&&(M[i++]=M[B++],I>1&&(M[i++]=M[B++]))}}else if(E&64){e.msg="invalid distance code",C.mode=jl;break e}else{S=v[(S&65535)+(d&(1<<E)-1)];continue n}break}}else if(E&64)if(E&32){C.mode=GR;break e}else{e.msg="invalid literal/length code",C.mode=jl;break e}else{S=y[(S&65535)+(d&(1<<E)-1)];continue t}break}}while(r<o&&i<a);I=p>>3,r-=I,p-=I<<3,d&=(1<<p)-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?5+(o-r):5-(r-o),e.avail_out=i<a?257+(a-i):257-(i-a),C.hold=d,C.bits=p};const To=15,H2=852,V2=592,q2=0,Id=1,j2=2,VR=new Uint16Array([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]),qR=new Uint8Array([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]),jR=new Uint16Array([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]),WR=new Uint8Array([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]);var Ba=(t,e,n,r,o,i,s,a)=>{const c=a.bits;let l=0,u=0,f=0,h=0,d=0,p=0,y=0,v=0,b=0,A=0,S,E,I,_,B,N=null,F;const M=new Uint16Array(To+1),C=new Uint16Array(To+1);let Y=null,Q,se,oe;for(l=0;l<=To;l++)M[l]=0;for(u=0;u<r;u++)M[e[n+u]]++;for(d=c,h=To;h>=1&&M[h]===0;h--);if(d>h&&(d=h),h===0)return o[i++]=1<<24|64<<16|0,o[i++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&M[f]===0;f++);for(d<f&&(d=f),v=1,l=1;l<=To;l++)if(v<<=1,v-=M[l],v<0)return-1;if(v>0&&(t===q2||h!==1))return-1;for(C[1]=0,l=1;l<To;l++)C[l+1]=C[l]+M[l];for(u=0;u<r;u++)e[n+u]!==0&&(s[C[e[n+u]]++]=u);if(t===q2?(N=Y=s,F=20):t===Id?(N=VR,Y=qR,F=257):(N=jR,Y=WR,F=0),A=0,u=0,l=f,B=i,p=d,y=0,I=-1,b=1<<d,_=b-1,t===Id&&b>H2||t===j2&&b>V2)return 1;for(;;){Q=l-y,s[u]+1<F?(se=0,oe=s[u]):s[u]>=F?(se=Y[s[u]-F],oe=N[s[u]-F]):(se=96,oe=0),S=1<<l-y,E=1<<p,f=E;do E-=S,o[B+(A>>y)+E]=Q<<24|se<<16|oe|0;while(E!==0);for(S=1<<l-1;A&S;)S>>=1;if(S!==0?(A&=S-1,A+=S):A=0,u++,--M[l]===0){if(l===h)break;l=e[n+s[u]]}if(l>d&&(A&_)!==I){for(y===0&&(y=d),B+=f,p=l-y,v=1<<p;p+y<h&&(v-=M[p+y],!(v<=0));)p++,v<<=1;if(b+=1<<p,t===Id&&b>H2||t===j2&&b>V2)return 1;I=A&_,o[I]=d<<24|p<<16|B-i|0}}return A!==0&&(o[B+A]=l-y<<24|64<<16|0),a.bits=d,0};const YR=0,W2=1,Y2=2,{Z_FINISH:Q2,Z_BLOCK:QR,Z_TREES:Wl,Z_OK:Di,Z_STREAM_END:ZR,Z_NEED_DICT:XR,Z_STREAM_ERROR:fn,Z_DATA_ERROR:Z2,Z_MEM_ERROR:X2,Z_BUF_ERROR:KR,Z_DEFLATED:K2}=z2,Yl=16180,J2=16181,$2=16182,ew=16183,tw=16184,nw=16185,rw=16186,iw=16187,ow=16188,sw=16189,Ql=16190,nr=16191,Td=16192,aw=16193,Dd=16194,cw=16195,lw=16196,uw=16197,fw=16198,Zl=16199,Xl=16200,hw=16201,dw=16202,pw=16203,gw=16204,mw=16205,Bd=16206,bw=16207,yw=16208,ct=16209,ww=16210,xw=16211,JR=852,$R=592,eF=15,vw=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function tF(){this.strm=null,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=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Bi=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Yl||e.mode>xw?1:0},Aw=t=>{if(Bi(t))return fn;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=Yl,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(JR),e.distcode=e.distdyn=new Int32Array($R),e.sane=1,e.back=-1,Di},Ew=t=>{if(Bi(t))return fn;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Aw(t)},Sw=(t,e)=>{let n;if(Bi(t))return fn;const r=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?fn:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Ew(t))},Cw=(t,e)=>{if(!t)return fn;const n=new tF;t.state=n,n.strm=t,n.window=null,n.mode=Yl;const r=Sw(t,e);return r!==Di&&(t.state=null),r},nF=t=>Cw(t,eF);let Iw=!0,kd,_d;const rF=t=>{if(Iw){kd=new Int32Array(512),_d=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ba(W2,t.lens,0,288,kd,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ba(Y2,t.lens,0,32,_d,0,t.work,{bits:5}),Iw=!1}t.lencode=kd,t.lenbits=9,t.distcode=_d,t.distbits=5},Tw=(t,e,n,r)=>{let o;const i=t.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(e.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(o=i.wsize-i.wnext,o>r&&(o=r),i.window.set(e.subarray(n-r,n-r+o),i.wnext),r-=o,r?(i.window.set(e.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0},iF=(t,e)=>{let n,r,o,i,s,a,c,l,u,f,h,d,p,y,v=0,b,A,S,E,I,_,B,N;const F=new Uint8Array(4);let M,C;const Y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Bi(t)||!t.output||!t.input&&t.avail_in!==0)return fn;n=t.state,n.mode===nr&&(n.mode=Td),s=t.next_out,o=t.output,c=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=n.hold,u=n.bits,f=a,h=c,N=Di;e:for(;;)switch(n.mode){case Yl:if(n.wrap===0){n.mode=Td;break}for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0),l=0,u=0,n.mode=J2;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=ct;break}if((l&15)!==K2){t.msg="unknown compression method",n.mode=ct;break}if(l>>>=4,u-=4,B=(l&15)+8,n.wbits===0&&(n.wbits=B),B>15||B>n.wbits){t.msg="invalid window size",n.mode=ct;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=l&512?sw:nr,l=0,u=0;break;case J2:for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==K2){t.msg="unknown compression method",n.mode=ct;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=ct;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0,n.mode=$2;case $2:for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,F[2]=l>>>16&255,F[3]=l>>>24&255,n.check=Vn(n.check,F,4,0)),l=0,u=0,n.mode=ew;case ew:for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0,n.mode=tw;case tw:if(n.flags&1024){for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(F[0]=l&255,F[1]=l>>>8&255,n.check=Vn(n.check,F,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=nw;case nw:if(n.flags&1024&&(d=n.length,d>a&&(d=a),d&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+d),B)),n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,n.length-=d),n.length))break e;n.length=0,n.mode=rw;case rw:if(n.flags&2048){if(a===0)break e;d=0;do B=r[i+d++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B));while(B&&d<a);if(n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,B)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=iw;case iw:if(n.flags&4096){if(a===0)break e;d=0;do B=r[i+d++],n.head&&B&&n.length<65536&&(n.head.comment+=String.fromCharCode(B));while(B&&d<a);if(n.flags&512&&n.wrap&4&&(n.check=Vn(n.check,r,d,i)),a-=d,i+=d,B)break e}else n.head&&(n.head.comment=null);n.mode=ow;case ow:if(n.flags&512){for(;u<16;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){t.msg="header crc mismatch",n.mode=ct;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=nr;break;case sw:for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}t.adler=n.check=vw(l),l=0,u=0,n.mode=Ql;case Ql:if(n.havedict===0)return t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,XR;t.adler=n.check=1,n.mode=nr;case nr:if(e===QR||e===Wl)break e;case Td:if(n.last){l>>>=u&7,u-=u&7,n.mode=Bd;break}for(;u<3;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}switch(n.last=l&1,l>>>=1,u-=1,l&3){case 0:n.mode=aw;break;case 1:if(rF(n),n.mode=Zl,e===Wl){l>>>=2,u-=2;break e}break;case 2:n.mode=lw;break;case 3:t.msg="invalid block type",n.mode=ct}l>>>=2,u-=2;break;case aw:for(l>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=ct;break}if(n.length=l&65535,l=0,u=0,n.mode=Dd,e===Wl)break e;case Dd:n.mode=cw;case cw:if(d=n.length,d){if(d>a&&(d=a),d>c&&(d=c),d===0)break e;o.set(r.subarray(i,i+d),s),a-=d,i+=d,c-=d,s+=d,n.length-=d;break}n.mode=nr;break;case lw:for(;u<14;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=ct;break}n.have=0,n.mode=uw;case uw:for(;n.have<n.ncode;){for(;u<3;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.lens[Y[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[Y[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},N=Ba(YR,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,N){t.msg="invalid code lengths set",n.mode=ct;break}n.have=0,n.mode=fw;case fw:for(;n.have<n.nlen+n.ndist;){for(;v=n.lencode[l&(1<<n.lenbits)-1],b=v>>>24,A=v>>>16&255,S=v&65535,!(b<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(S<16)l>>>=b,u-=b,n.lens[n.have++]=S;else{if(S===16){for(C=b+2;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(l>>>=b,u-=b,n.have===0){t.msg="invalid bit length repeat",n.mode=ct;break}B=n.lens[n.have-1],d=3+(l&3),l>>>=2,u-=2}else if(S===17){for(C=b+3;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=b,u-=b,B=0,d=3+(l&7),l>>>=3,u-=3}else{for(C=b+7;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=b,u-=b,B=0,d=11+(l&127),l>>>=7,u-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=ct;break}for(;d--;)n.lens[n.have++]=B}}if(n.mode===ct)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=ct;break}if(n.lenbits=9,M={bits:n.lenbits},N=Ba(W2,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,N){t.msg="invalid literal/lengths set",n.mode=ct;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},N=Ba(Y2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,N){t.msg="invalid distances set",n.mode=ct;break}if(n.mode=Zl,e===Wl)break e;case Zl:n.mode=Xl;case Xl:if(a>=6&&c>=258){t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,HR(t,h),s=t.next_out,o=t.output,c=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=n.hold,u=n.bits,n.mode===nr&&(n.back=-1);break}for(n.back=0;v=n.lencode[l&(1<<n.lenbits)-1],b=v>>>24,A=v>>>16&255,S=v&65535,!(b<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(A&&!(A&240)){for(E=b,I=A,_=S;v=n.lencode[_+((l&(1<<E+I)-1)>>E)],b=v>>>24,A=v>>>16&255,S=v&65535,!(E+b<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=E,u-=E,n.back+=E}if(l>>>=b,u-=b,n.back+=b,n.length=S,A===0){n.mode=mw;break}if(A&32){n.back=-1,n.mode=nr;break}if(A&64){t.msg="invalid literal/length code",n.mode=ct;break}n.extra=A&15,n.mode=hw;case hw:if(n.extra){for(C=n.extra;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=dw;case dw:for(;v=n.distcode[l&(1<<n.distbits)-1],b=v>>>24,A=v>>>16&255,S=v&65535,!(b<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(!(A&240)){for(E=b,I=A,_=S;v=n.distcode[_+((l&(1<<E+I)-1)>>E)],b=v>>>24,A=v>>>16&255,S=v&65535,!(E+b<=u);){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}l>>>=E,u-=E,n.back+=E}if(l>>>=b,u-=b,n.back+=b,A&64){t.msg="invalid distance code",n.mode=ct;break}n.offset=S,n.extra=A&15,n.mode=pw;case pw:if(n.extra){for(C=n.extra;u<C;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=ct;break}n.mode=gw;case gw:if(c===0)break e;if(d=h-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=ct;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),y=n.window}else y=o,p=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do o[s++]=y[p++];while(--d);n.length===0&&(n.mode=Xl);break;case mw:if(c===0)break e;o[s++]=n.length,c--,n.mode=Xl;break;case Bd:if(n.wrap){for(;u<32;){if(a===0)break e;a--,l|=r[i++]<<u,u+=8}if(h-=c,t.total_out+=h,n.total+=h,n.wrap&4&&h&&(t.adler=n.check=n.flags?Vn(n.check,o,h,s-h):Ed(n.check,o,h,s-h)),h=c,n.wrap&4&&(n.flags?l:vw(l))!==n.check){t.msg="incorrect data check",n.mode=ct;break}l=0,u=0}n.mode=bw;case bw:if(n.wrap&&n.flags){for(;u<32;){if(a===0)break e;a--,l+=r[i++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=ct;break}l=0,u=0}n.mode=yw;case yw:N=ZR;break e;case ct:N=Z2;break e;case ww:return X2;case xw:default:return fn}return t.next_out=s,t.avail_out=c,t.next_in=i,t.avail_in=a,n.hold=l,n.bits=u,(n.wsize||h!==t.avail_out&&n.mode<ct&&(n.mode<Bd||e!==Q2))&&Tw(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&4&&h&&(t.adler=n.check=n.flags?Vn(n.check,o,h,t.next_out-h):Ed(n.check,o,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===Zl||n.mode===Dd?256:0),(f===0&&h===0||e===Q2)&&N===Di&&(N=KR),N},oF=t=>{if(Bi(t))return fn;let e=t.state;return e.window&&(e.window=null),t.state=null,Di},sF=(t,e)=>{if(Bi(t))return fn;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Di):fn},aF=(t,e)=>{const n=e.length;let r,o,i;return Bi(t)||(r=t.state,r.wrap!==0&&r.mode!==Ql)?fn:r.mode===Ql&&(o=1,o=Ed(o,e,n,0),o!==r.check)?Z2:(i=Tw(t,e,n,n),i?(r.mode=ww,X2):(r.havedict=1,Di))};var cF=Ew,lF=Sw,uF=Aw,fF=nF,hF=Cw,dF=iF,pF=oF,gF=sF,mF=aF,bF="pako inflate (from Nodeca project)",rr={inflateReset:cF,inflateReset2:lF,inflateResetKeep:uF,inflateInit:fF,inflateInit2:hF,inflate:dF,inflateEnd:pF,inflateGetHeader:gF,inflateSetDictionary:mF,inflateInfo:bF};function yF(){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}var wF=yF;const Dw=Object.prototype.toString,{Z_NO_FLUSH:xF,Z_FINISH:vF,Z_OK:ka,Z_STREAM_END:Rd,Z_NEED_DICT:Fd,Z_STREAM_ERROR:AF,Z_DATA_ERROR:Bw,Z_MEM_ERROR:EF}=z2;function Kl(t){this.options=U2.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const 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||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new UR,this.strm.avail_out=0;let n=rr.inflateInit2(this.strm,e.windowBits);if(n!==ka)throw new Error(Sd[n]);if(this.header=new wF,rr.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Cd.string2buf(e.dictionary):Dw.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=rr.inflateSetDictionary(this.strm,e.dictionary),n!==ka)))throw new Error(Sd[n])}Kl.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?vF:xF,Dw.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=rr.inflate(n,s),i===Fd&&o&&(i=rr.inflateSetDictionary(n,o),i===ka?i=rr.inflate(n,s):i===Bw&&(i=Fd));n.avail_in>0&&i===Rd&&n.state.wrap>0&&t[n.next_in]!==0;)rr.inflateReset(n),i=rr.inflate(n,s);switch(i){case AF:case Bw:case Fd:case EF:return this.onEnd(i),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||i===Rd))if(this.options.to==="string"){let c=Cd.utf8border(n.output,n.next_out),l=n.next_out-c,u=Cd.buf2string(n.output,c);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(u)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(i===ka&&a===0)){if(i===Rd)return i=rr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},Kl.prototype.onData=function(t){this.chunks.push(t)},Kl.prototype.onEnd=function(t){t===ka&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=U2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function SF(t,e){const n=new Kl(e);if(n.push(t),n.err)throw n.msg||Sd[n.err];return n.result}function CF(t,e){return e=e||{},e.raw=!0,SF(t,e)}var IF=CF,TF={inflateRaw:IF};const{inflateRaw:DF}=TF;var BF=DF;function kF(t){return BF(t.subarray(2))}let _F=class extends Error{constructor(e){super(e),this.code="ERR_ABORTED"}};function RF(t){t.sort((o,i)=>o.offset-i.offset);const e=[];let n,r;for(const o of t)n&&r&&o.offset-r<=2e3?(n.length=n.length+o.length-r+o.offset,n.blocks.push(o)):e.push(n={blocks:[o],length:o.length,offset:o.offset}),r=n.offset+n.length;return e}function Jl(t){if(t&&t.aborted)if(typeof DOMException>"u"){const e=new _F("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}const Md=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pd(t,e,n,r){return t<r&&e>=n}class kw{constructor(e,n,r,o,i,s){if(this.bbi=e,this.refsByName=n,this.cirTreeOffset=r,this.isBigEndian=o,this.isCompressed=i,this.blockType=s,this.featureCache=new Ti({cache:new ql({maxSize:1e3}),fill:async(a,c)=>{const l=a.length,u=a.offset,{buffer:f}=await this.bbi.read(Ke.Buffer.alloc(l),0,l,u,{signal:c});return f}}),!(r>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(e,n,r,o,i){try{const{refsByName:s,bbi:a,cirTreeOffset:c,isBigEndian:l}=this,u=s[e];u===void 0&&o.complete();const f={chrId:u,start:n,end:r};this.cirTreePromise||(this.cirTreePromise=a.read(Ke.Buffer.alloc(48),0,48,c,i));const{buffer:h}=await this.cirTreePromise,d=l?h.readUInt32BE(4):h.readUInt32LE(4);let p=[],y=0;const v=!0,b=(I,_,B)=>{try{const F=I.subarray(_),M=new DataView(F.buffer,F.byteOffset,F.length);let C=0;const Y=M.getUint8(C);C+=2;const Q=M.getUint16(C,v);if(C+=2,Y===1){const se=[];for(let oe=0;oe<Q;oe++){const ae=M.getUint32(C,v);C+=4;const ce=M.getUint32(C,v);C+=4;const ye=M.getUint32(C,v);C+=4;const he=M.getUint32(C,v);C+=4;const De=Number(M.getBigUint64(C,v));C+=8;const we=Number(M.getBigUint64(C,v));C+=8,se.push({startChrom:ae,startBase:ce,endBase:he,endChrom:ye,blockOffset:De,blockSize:we,offset:C})}p=p.concat(se.filter(oe=>A(oe)).map(oe=>({offset:oe.blockOffset,length:oe.blockSize})))}else if(Y===0){const se=[];for(let ae=0;ae<Q;ae++){const ce=M.getUint32(C,v);C+=4;const ye=M.getUint32(C,v);C+=4;const he=M.getUint32(C,v);C+=4;const De=M.getUint32(C,v);C+=4;const we=Number(M.getBigUint64(C,v));C+=8,se.push({startChrom:ce,startBase:ye,endChrom:he,endBase:De,blockOffset:we,offset:C})}const oe=se.filter(ae=>A(ae)).map(ae=>ae.blockOffset);oe.length>0&&E(oe,B+1)}}catch(N){o.error(N)}},A=I=>{const{startChrom:_,startBase:B,endChrom:N,endBase:F}=I;return(_<u||_===u&&B<=r)&&(N>u||N===u&&F>=n)},S=async(I,_,B)=>{try{const N=_.max-_.min,F=_.min,M=await this.featureCache.get(`${N}_${F}`,{length:N,offset:F},i==null?void 0:i.signal);for(const C of I)_.contains(C)&&(b(M,C-F,B),y-=1,y===0&&this.readFeatures(o,p,{...i,request:f}).catch(Y=>{o.error(Y)}))}catch(N){o.error(N)}},E=(I,_)=>{try{y+=I.length;const B=4+d*32;let N=new Co([{min:I[0],max:I[0]+B}]);for(let F=1;F<I.length;F+=1){const M=new Co([{min:I[F],max:I[F]+B}]);N=N.union(M)}N.getRanges().map(F=>S(I,F,_))}catch(B){o.error(B)}};E([Number(c)+48],1);return}catch(s){o.error(s)}}parseSummaryBlock(e,n,r){const o=[];let i=n;const s=new DataView(e.buffer,e.byteOffset,e.length);for(;i<e.byteLength;){const a=s.getUint32(i,!0);i+=4;const c=s.getUint32(i,!0);i+=4;const l=s.getUint32(i,!0);i+=4;const u=s.getUint32(i,!0);i+=4;const f=s.getFloat32(i,!0);i+=4;const h=s.getFloat32(i,!0);i+=4;const d=s.getFloat32(i,!0);i+=4,i+=4,(!r||a===r.chrId&&Pd(c,l,r.start,r.end))&&o.push({start:c,end:l,maxScore:h,minScore:f,summary:!0,score:d/(u||1)})}return o}parseBigBedBlock(e,n,r,o){var i;const s=[];let a=n;const c=!0,l=e,u=new DataView(l.buffer,l.byteOffset,l.length);for(;a<e.byteLength;){const f=a,h=u.getUint32(a,c);a+=4;const d=u.getInt32(a,c);a+=4;const p=u.getInt32(a,c);a+=4;let y=a;for(;y<e.length&&e[y]!==0;y++);const v=e.subarray(a,y),b=(i=Md==null?void 0:Md.decode(v))!==null&&i!==void 0?i:v.toString();a=y+1,s.push({chromId:h,start:d,end:p,rest:b,uniqueId:`bb-${r+f}`})}return o?s.filter(f=>Pd(f.start,f.end,o.start,o.end)):s}parseBigWigBlock(e,n,r){const o=e.subarray(n),i=new DataView(o.buffer,o.byteOffset,o.length);let s=0;s+=4;const a=i.getInt32(s,!0);s+=8;const c=i.getUint32(s,!0);s+=4;const l=i.getUint32(s,!0);s+=4;const u=i.getUint8(s);s+=2;const f=i.getUint16(s,!0);s+=2;const h=new Array(f);switch(u){case 1:{for(let d=0;d<f;d++){const p=i.getInt32(s,!0);s+=4;const y=i.getInt32(s,!0);s+=4;const v=i.getFloat32(s,!0);s+=4,h[d]={start:p,end:y,score:v}}break}case 2:{for(let d=0;d<f;d++){const p=i.getInt32(s,!0);s+=4;const y=i.getFloat32(s,!0);s+=4,h[d]={score:y,start:p,end:p+l}}break}case 3:{for(let d=0;d<f;d++){const p=i.getFloat32(s,!0);s+=4;const y=a+d*c;h[d]={score:p,start:y,end:y+l}}break}}return r?h.filter(d=>Pd(d.start,d.end,r.start,r.end)):h}async readFeatures(e,n,r={}){try{const{blockType:o,isCompressed:i}=this,{signal:s,request:a}=r,c=RF(n);Jl(s),await Promise.all(c.map(async l=>{Jl(s);const{length:u,offset:f}=l,h=await this.featureCache.get(`${u}_${f}`,l,s);for(const d of l.blocks){Jl(s);let p=Number(d.offset)-Number(l.offset),y=h;switch(i&&(y=kF(h.subarray(p)),p=0),Jl(s),o){case"summary":{e.next(this.parseSummaryBlock(y,p,a));break}case"bigwig":{e.next(this.parseBigWigBlock(y,p,a));break}case"bigbed":{e.next(this.parseBigBedBlock(y,p,Number(d.offset)*256,a));break}default:console.warn(`Don't know what to do with ${o}`)}}})),e.complete()}catch(o){e.error(o)}}}var Ld=function(t,e){return Ld=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ld(t,e)};function Od(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ld(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function FF(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function _w(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(u){l=[6,u],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _a(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function zd(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function Do(t){return this instanceof Do?(this.v=t,this):new Do(t)}function MF(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(p){return Promise.resolve(p).then(d,f)}}function a(d,p){r[d]&&(o[d]=function(y){return new Promise(function(v,b){i.push([d,y,v,b])>1||c(d,y)})},p&&(o[d]=p(o[d])))}function c(d,p){try{l(r[d](p))}catch(y){h(i[0][3],y)}}function l(d){d.value instanceof Do?Promise.resolve(d.value.v).then(u,f):h(i[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function h(d,p){d(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function PF(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof _a=="function"?_a(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}typeof SuppressedError=="function"&&SuppressedError;function wt(t){return typeof t=="function"}function Rw(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ud=Rw(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
652
652
|
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
653
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function Rw(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Ud=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ka(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(b){e={error:b}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var u=this.initialTeardown;if(wt(u))try{u()}catch(b){i=b instanceof zd?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=ka(f),d=h.next();!d.done;d=h.next()){var p=d.value;try{Mw(p)}catch(b){i=i??[],b instanceof zd?i=Nd(Nd([],Od(i)),Od(b.errors)):i.push(b)}}}catch(b){r={error:b}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(i)throw new zd(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Mw(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Rw(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Rw(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();Ud.EMPTY;function Fw(t){return t instanceof Ud||t&&"closed"in t&&wt(t.remove)&&wt(t.add)&&wt(t.unsubscribe)}function Mw(t){wt(t)?t():t.unsubscribe()}var MF={Promise:void 0},PF={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Nd([t,e],Od(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Pw(t){PF.setTimeout(function(){throw t})}function Lw(){}function LF(t){t()}var Gd=function(t){Ld(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Fw(n)&&n.add(r)):r.destination=zF,r}return e.create=function(n,r,o){return new Jl(n,r,o)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Ud),OF=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){$l(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){$l(r)}else $l(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){$l(n)}},t}(),Jl=function(t){Ld(e,t);function e(n,r,o){var i=t.call(this)||this,s;return wt(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new OF(s),i}return e}(Gd);function $l(t){Pw(t)}function NF(t){throw t}var zF={closed:!0,next:Lw,error:NF,complete:Lw},Hd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ow(t){return t}function UF(t){return t.length===0?Ow:t.length===1?t[0]:function(n){return t.reduce(function(r,o){return o(r)},n)}}var hn=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var o=this,i=HF(e)?e:new Jl(e,n,r);return LF(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=Nw(n),new n(function(o,i){var s=new Jl({next:function(a){try{e(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[Hd]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return UF(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Nw(e),new e(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},t.create=function(e){return new t(e)},t}();function Nw(t){var e;return(e=t??MF.Promise)!==null&&e!==void 0?e:Promise}function GF(t){return t&&wt(t.next)&&wt(t.error)&&wt(t.complete)}function HF(t){return t&&t instanceof Gd||GF(t)&&Fw(t)}function VF(t){return wt(t==null?void 0:t.lift)}function Bo(t){return function(e){if(VF(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _a(t,e,n,r,o){return new qF(t,e,n,r,o)}var qF=function(t){Ld(e,t);function e(n,r,o,i,s,a){var c=t.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(l){try{r(l)}catch(u){n.error(u)}}:t.prototype._next,c._error=i?function(l){try{i(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(l){n.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Gd),jF=new hn(function(t){return t.complete()});function WF(t){return t&&wt(t.schedule)}function zw(t){return t[t.length-1]}function YF(t){return WF(zw(t))?t.pop():void 0}function QF(t,e){return typeof zw(t)=="number"?t.pop():e}var Uw=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Gw(t){return wt(t==null?void 0:t.then)}function Hw(t){return wt(t[Hd])}function Vw(t){return Symbol.asyncIterator&&wt(t==null?void 0:t[Symbol.asyncIterator])}function qw(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ZF(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var jw=ZF();function Ww(t){return wt(t==null?void 0:t[jw])}function Yw(t){return RF(this,arguments,function(){var n,r,o,i;return kw(this,function(s){switch(s.label){case 0:n=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Do(n.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Do(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Do(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Qw(t){return wt(t==null?void 0:t.getReader)}function ko(t){if(t instanceof hn)return t;if(t!=null){if(Hw(t))return XF(t);if(Uw(t))return KF(t);if(Gw(t))return JF(t);if(Vw(t))return Zw(t);if(Ww(t))return $F(t);if(Qw(t))return e9(t)}throw qw(t)}function XF(t){return new hn(function(e){var n=t[Hd]();if(wt(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function KF(t){return new hn(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function JF(t){return new hn(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Pw)})}function $F(t){return new hn(function(e){var n,r;try{for(var o=ka(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()})}function Zw(t){return new hn(function(e){t9(t,e).catch(function(n){return e.error(n)})})}function e9(t){return Zw(Yw(t))}function t9(t,e){var n,r,o,i;return _F(this,void 0,void 0,function(){var s,a;return kw(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=FF(t),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,e.next(s),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Bi(t,e,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Xw(t,e){return e===void 0&&(e=0),Bo(function(n,r){n.subscribe(_a(r,function(o){return Bi(r,t,function(){return r.next(o)},e)},function(){return Bi(r,t,function(){return r.complete()},e)},function(o){return Bi(r,t,function(){return r.error(o)},e)}))})}function Kw(t,e){return e===void 0&&(e=0),Bo(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function n9(t,e){return ko(t).pipe(Kw(e),Xw(e))}function r9(t,e){return ko(t).pipe(Kw(e),Xw(e))}function i9(t,e){return new hn(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function o9(t,e){return new hn(function(n){var r;return Bi(n,e,function(){r=t[jw](),Bi(n,e,function(){var o,i,s;try{o=r.next(),i=o.value,s=o.done}catch(a){n.error(a);return}s?n.complete():n.next(i)},0,!0)}),function(){return wt(r==null?void 0:r.return)&&r.return()}})}function Jw(t,e){if(!t)throw new Error("Iterable cannot be null");return new hn(function(n){Bi(n,e,function(){var r=t[Symbol.asyncIterator]();Bi(n,e,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function s9(t,e){return Jw(Yw(t),e)}function a9(t,e){if(t!=null){if(Hw(t))return n9(t,e);if(Uw(t))return i9(t,e);if(Gw(t))return r9(t,e);if(Vw(t))return Jw(t,e);if(Ww(t))return o9(t,e);if(Qw(t))return s9(t,e)}throw qw(t)}function c9(t,e){return e?a9(t,e):ko(t)}var l9=_w(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function $w(t,e){return new Promise(function(n,r){var o=new Jl({next:function(i){n(i),o.unsubscribe()},error:r,complete:function(){r(new l9)}});t.subscribe(o)})}function ex(t,e){return Bo(function(n,r){var o=0;n.subscribe(_a(r,function(i){r.next(t.call(e,i,o++))}))})}function u9(t,e,n,r,o,i,s,a){var c=[],l=0,u=0,f=!1,h=function(){f&&!c.length&&!l&&e.complete()},d=function(b){return l<r?p(b):c.push(b)},p=function(b){l++;var v=!1;ko(n(b,u++)).subscribe(_a(e,function(y){e.next(y)},function(){v=!0},void 0,function(){if(v)try{l--;for(var y=function(){var A=c.shift();s||p(A)};c.length&&l<r;)y();h()}catch(A){e.error(A)}}))};return t.subscribe(_a(e,d,function(){f=!0,h()})),function(){}}function tx(t,e,n){return n===void 0&&(n=1/0),wt(e)?tx(function(r,o){return ex(function(i,s){return e(r,i,o,s)})(ko(t(r,o)))},n):(typeof e=="number"&&(n=e),Bo(function(r,o){return u9(r,o,t,n)}))}function f9(t){return t===void 0&&(t=1/0),tx(Ow,t)}function h9(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=YF(t),r=QF(t,1/0),o=t;return o.length?o.length===1?ko(o[0]):f9(r)(c9(o,n)):jF}function d9(t,e,n,r,o){return function(i,s){var a=n,c=e,l=0;i.subscribe(_a(s,function(u){var f=l++;c=a?t(c,u,f):(a=!0,u)},function(){a&&s.next(c),s.complete()}))}}function nx(t,e){return Bo(d9(t,e,arguments.length>=2,!1,!0))}var p9=function(t,e){return t.push(e),t};function g9(){return Bo(function(t,e){nx(p9,[])(t).subscribe(e)})}const rx=-2003829722,Vd=-2021002517;class ix{getHeader(e){return this.headerP||(this.headerP=this._getHeader(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}constructor(e){const{filehandle:n,renameRefSeqs:r=s=>s,path:o,url:i}=e;if(this.renameRefSeqs=r,n)this.bbi=n;else if(i)this.bbi=new Sn(i);else if(o)this.bbi=new Ct(o);else throw new Error("no file given")}async _getHeader(e){const n=await this._getMainHeader(e),r=await this._readChromTree(n,e);return{...n,...r}}async _getMainHeader(e,n=2e3){const{buffer:o}=await this.bbi.read(Ke.Buffer.alloc(n),0,n,0,e),i=this._isBigEndian(o),s=o,a=new DataView(s.buffer,s.byteOffset,s.length);let c=0;const l=a.getInt32(c,!0);c+=4;const u=a.getUint16(c,!0);c+=2;const f=a.getUint16(c,!0);c+=2;const h=Number(a.getBigUint64(c,!0));c+=8;const d=Number(a.getBigUint64(c,!0));c+=8;const p=Number(a.getBigUint64(c,!0));c+=8;const b=a.getUint16(c,!0);c+=2;const v=a.getUint16(c,!0);c+=2;const y=Number(a.getBigUint64(c,!0));c+=8;const A=Number(a.getBigUint64(c,!0));c+=8;const S=a.getUint32(c,!0);c+=4;const E=Number(a.getBigUint64(c,!0));c+=8;const I=[];for(let N=0;N<f;N++){const F=a.getUint32(c,!0);c+=4;const M=a.getUint32(c,!0);c+=4;const C=Number(a.getBigUint64(c,!0));c+=8;const Y=Number(a.getBigUint64(c,!0));c+=8,I.push({reductionLevel:F,reserved:M,dataOffset:C,indexOffset:Y})}const _=l===Vd?"bigbed":"bigwig";if(y>n||A>n-8*5)return this._getMainHeader(e,n*2);let B;if(A){const N=o.subarray(Number(A));let F=0;const M=new DataView(N.buffer,N.byteOffset,N.length),C=Number(M.getBigUint64(F,!0));F+=8;const Y=M.getFloat64(F,!0);F+=8;const Q=M.getFloat64(F,!0);F+=8;const se=M.getFloat64(F,!0);F+=8;const oe=M.getFloat64(F,!0);F+=8,B={scoreMin:Y,scoreMax:Q,scoreSum:se,scoreSumSquares:oe,basesCovered:C}}else throw new Error("no stats");return{zoomLevels:I,magic:l,extHeaderOffset:E,numZoomLevels:f,fieldCount:b,totalSummary:B,definedFieldCount:v,uncompressBufSize:S,asOffset:y,chromTreeOffset:h,totalSummaryOffset:A,unzoomedDataOffset:d,unzoomedIndexOffset:p,fileType:_,version:u,isBigEndian:i,autoSql:y?o.subarray(y,o.indexOf(0,y)).toString():""}}_isBigEndian(e){let n=e.readInt32LE(0);if(n===rx||n===Vd)return!1;if(n=e.readInt32BE(0),n===rx||n===Vd)return!0;throw new Error("not a BigWig/BigBed file")}async _readChromTree(e,n){const o=!e.isBigEndian,i=[],s={};let a=e.unzoomedDataOffset;const c=e.chromTreeOffset;for(;a%4!==0;)a+=1;const l=a-c,{buffer:u}=await this.bbi.read(Ke.Buffer.alloc(l),0,l,Number(c),n),f=u,h=new DataView(f.buffer,f.byteOffset,f.length);let d=0;d+=4,d+=4;const p=h.getUint32(d,o);d+=4,d+=4,d+=8;const b=32,v=async y=>{let A=y;if(A>=u.length)throw new Error("reading beyond end of buffer");const S=h.getUint8(A);A+=2;const E=h.getUint16(A,o);if(A+=2,S)for(let I=0;I<E;I++){const _=u.subarray(A,A+p).toString().replaceAll("\0","");A+=p;const B=h.getUint32(A,o);A+=4;const N=h.getUint32(A,o);A+=4;const F={name:_,id:B,length:N};s[this.renameRefSeqs(_)]=B,i[B]=F}else{const I=[];for(let _=0;_<E;_++){A+=p;const B=Number(h.getBigUint64(A,o));A+=8,I.push(v(Number(B)-Number(c)))}await Promise.all(I)}};return await v(b),{refsByName:s,refsByNumber:i}}async getUnzoomedView(e){const{unzoomedIndexOffset:n,refsByName:r,uncompressBufSize:o,isBigEndian:i,fileType:s}=await this.getHeader(e);return new Bw(this.bbi,r,n,i,o>0,s)}async getFeatureStream(e,n,r,o){await this.getHeader(o);const i=this.renameRefSeqs(e);let s;const{basesPerSpan:a,scale:c}=o||{};return a?s=await this.getView(1/a,o):c?s=await this.getView(c,o):s=await this.getView(1,o),new hn(l=>{s.readWigData(i,n,r,l,o).catch(u=>{l.error(u)})})}async getFeatures(e,n,r,o){const i=await this.getFeatureStream(e,n,r,o);return(await $w(i.pipe(g9()))).flat()}}class m9 extends ix{async getView(e,n){const{zoomLevels:r,refsByName:o,isBigEndian:i,uncompressBufSize:s}=await this.getHeader(n),a=1/e,c=r.length-1;for(let l=c;l>=0;l-=1){const u=r[l];if(u&&u.reductionLevel<=2*a)return new Bw(this.bbi,o,u.indexOffset,i,s>0,"summary")}return this.getUnzoomedView(n)}}function y9(t){return t.filter(e=>!!e)}class b9 extends ix{constructor(){super(...arguments),this.readIndicesCache=new Ii({cache:new Vl({maxSize:1}),fill:(e,n)=>this._readIndices({...e,signal:n})})}readIndices(e={}){const{signal:n,...r}=e;return this.readIndicesCache.get(JSON.stringify(r),e,n)}async getView(e,n){return this.getUnzoomedView(n)}async _readIndices(e){const{extHeaderOffset:n,isBigEndian:r}=await this.getHeader(e),{buffer:o}=await this.bbi.read(Ke.Buffer.alloc(64),0,64,Number(n)),i=!r,s=o,a=new DataView(s.buffer,s.byteOffset,s.length);let c=0;c+=2;const l=a.getUint16(c,i);c+=2;const u=Number(a.getBigUint64(c,i));if(c+=8,l===0)return[];const f=20,h=f*l,{buffer:d}=await this.bbi.read(Ke.Buffer.alloc(h),0,h,Number(u)),p=[];for(let b=0;b<l;b+=1){const v=d.subarray(b*f),y=new DataView(v.buffer,v.byteOffset,v.length);let A=0;const S=y.getInt16(A,i);A+=2;const E=y.getInt16(A,i);A+=2;const I=Number(y.getBigUint64(A,i));A+=12;const _=y.getInt16(A,i);p.push({type:S,fieldcount:E,offset:Number(I),field:_})}return p}async searchExtraIndexBlocks(e,n={}){const{isBigEndian:r}=await this.getHeader(n),o=await this.readIndices(n);if(o.length===0)return[];const i=o.map(async s=>{const{offset:a,field:c}=s,{buffer:l}=await this.bbi.read(Ke.Buffer.alloc(32),0,32,a,n),u=!r,f=l,h=new DataView(f.buffer,f.byteOffset,f.length);let d=0;d+=4;const p=h.getInt32(d,u);d+=4;const b=h.getInt32(d,u);d+=4;const v=h.getInt32(d,u);d+=4,d+=8;const y=async S=>{const E=Number(S),I=4+p*(b+v),{buffer:_}=await this.bbi.read(Ke.Buffer.alloc(I),0,I,E,n),B=_,N=new DataView(B.buffer,B.byteOffset,B.length);let F=0;const M=N.getInt8(F);F+=2;const C=N.getInt16(F,u);F+=2;const Y=[];if(M===0){const Q=[];for(let oe=0;oe<C;oe++){const ae=B.subarray(F,F+b).toString().replaceAll("\0","");F+=b;const ce=Number(N.getBigUint64(F,u));F+=8,Q.push({key:ae,offset:ce})}let se=0;for(const{key:oe,offset:ae}of Q){if(e.localeCompare(oe)<0&&se)return y(se);se=ae}return y(se)}else if(M===1){for(let Q=0;Q<C;Q++){const se=B.subarray(F,F+b).toString().replaceAll("\0","");F+=b;const oe=Number(N.getBigUint64(F,u));F+=8;const ae=N.getUint32(F,u);F+=4;const ce=N.getUint32(F,u);F+=4,Y.push({key:se,offset:oe,length:ae,reserved:ce})}for(const Q of Y)if(Q.key===e)return{...Q,field:c};return}};return y(a+32)});return y9(await Promise.all(i))}async searchExtraIndex(e,n={}){const r=await this.searchExtraIndexBlocks(e,n);if(r.length===0)return[];const o=await this.getUnzoomedView(n),i=r.map(a=>new hn(c=>{o.readFeatures(c,[a],n).catch(l=>{c.error(l)})}).pipe(nx((c,l)=>c.concat(l)),ex(c=>{for(const l of c)l.field=a.field;return c})));return(await $w(h9(...i))).filter(a=>{var c;return((c=a.rest)===null||c===void 0?void 0:c.split(" ")[(a.field||0)-3])===e})}}const ox=Object.freeze(Object.defineProperty({__proto__:null,BigBed:b9,BigWig:m9},Symbol.toStringTag,{value:"Module"}));var qd,sx;function w9(){if(sx)return qd;sx=1;function t(r,o){function i(){this.constructor=r}i.prototype=o.prototype,r.prototype=new i}function e(r,o,i,s){this.message=r,this.expected=o,this.found=i,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}t(e,Error),e.buildMessage=function(r,o){var i={literal:function(h){return'"'+a(h.text)+'"'},class:function(h){var d="",p;for(p=0;p<h.parts.length;p++)d+=h.parts[p]instanceof Array?c(h.parts[p][0])+"-"+c(h.parts[p][1]):c(h.parts[p]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function s(h){return h.charCodeAt(0).toString(16).toUpperCase()}function a(h){return h.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(d){return"\\x0"+s(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+s(d)})}function c(h){return h.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(d){return"\\x0"+s(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+s(d)})}function l(h){return i[h.type](h)}function u(h){var d=new Array(h.length),p,b;for(p=0;p<h.length;p++)d[p]=l(h[p]);if(d.sort(),d.length>0){for(p=1,b=1;p<d.length;p++)d[p-1]!==d[p]&&(d[b]=d[p],b++);d.length=b}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+a(h)+'"':"end of input"}return"Expected "+u(r)+" but "+f(o)+" found."};function n(r,o){o=o!==void 0?o:{};var i={},s={declaration:pv},a=pv,c="(",l=Ne("(",!1),u=")",f=Ne(")",!1),h=function(P,ne,pe,ye){return{type:P,name:ne,comment:pe,fields:ye}},d="simple",p=Ne("simple",!1),b="object",v=Ne("object",!1),y="table",A=Ne("table",!1),S="auto",E=Ne("auto",!1),I="primary",_=Ne("primary",!1),B="index",N=Ne("index",!1),F="unique",M=Ne("unique",!1),C=function(P,ne){return ne},Y=function(P,ne){return P.name&&ne.unshift(P),ne},Q="#",se=Ne("#",!1),oe=";",ae=Ne(";",!1),ce=function(P,ne,pe){return{type:P,name:ne,comment:pe}},be="[",he=Ne("[",!1),De="]",we=Ne("]",!1),Ee=function(P,ne,pe,ye){return{type:P,size:ne,name:pe,comment:ye}},Te=function(P,ne,pe,ye){return{type:P,vals:ne,name:pe,comment:ye}},Ge=",",Ve=Ne(",",!1),q=function(P,ne){return ne.unshift(P),ne},j="int",ee=Ne("int",!1),J="uint",fe=Ne("uint",!1),L="short",D=Ne("short",!1),te="ushort",le=Ne("ushort",!1),Be="byte",ve=Ne("byte",!1),Ae="ubyte",Re=Ne("ubyte",!1),dt="float",$t=Ne("float",!1),It="char",$e=Ne("char",!1),kt="string",Ot=Ne("string",!1),et="lstring",Nt=Ne("lstring",!1),k="enum",m=Ne("enum",!1),w="double",O=Ne("double",!1),x="bigint",z=Ne("bigint",!1),V="set",ue=Ne("set",!1),G=function(P,ne){return P+" "+ne},X=/^[a-zA-Z_]/,T=ht([["a","z"],["A","Z"],"_"],!1,!1),re=/^[a-zA-Z0-9_]/,_e=ht([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),g=function(P){return ft()},K=/^[^\n\r]/,$=ht([`
|
|
653
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Fw(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Gd=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=_a(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(y){e={error:y}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var u=this.initialTeardown;if(wt(u))try{u()}catch(y){i=y instanceof Ud?y.errors:[y]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=_a(f),d=h.next();!d.done;d=h.next()){var p=d.value;try{Pw(p)}catch(y){i=i??[],y instanceof Ud?i=zd(zd([],Nd(i)),Nd(y.errors)):i.push(y)}}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(i)throw new Ud(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Pw(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Fw(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Fw(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();Gd.EMPTY;function Mw(t){return t instanceof Gd||t&&"closed"in t&&wt(t.remove)&&wt(t.add)&&wt(t.unsubscribe)}function Pw(t){wt(t)?t():t.unsubscribe()}var LF={Promise:void 0},OF={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,zd([t,e],Nd(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Lw(t){OF.setTimeout(function(){throw t})}function Ow(){}function NF(t){t()}var Hd=function(t){Od(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Mw(n)&&n.add(r)):r.destination=GF,r}return e.create=function(n,r,o){return new $l(n,r,o)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Gd),zF=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){eu(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){eu(r)}else eu(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){eu(n)}},t}(),$l=function(t){Od(e,t);function e(n,r,o){var i=t.call(this)||this,s;return wt(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new zF(s),i}return e}(Hd);function eu(t){Lw(t)}function UF(t){throw t}var GF={closed:!0,next:Ow,error:UF,complete:Ow},Vd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Nw(t){return t}function HF(t){return t.length===0?Nw:t.length===1?t[0]:function(n){return t.reduce(function(r,o){return o(r)},n)}}var hn=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var o=this,i=qF(e)?e:new $l(e,n,r);return NF(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=zw(n),new n(function(o,i){var s=new $l({next:function(a){try{e(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[Vd]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return HF(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=zw(e),new e(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},t.create=function(e){return new t(e)},t}();function zw(t){var e;return(e=t??LF.Promise)!==null&&e!==void 0?e:Promise}function VF(t){return t&&wt(t.next)&&wt(t.error)&&wt(t.complete)}function qF(t){return t&&t instanceof Hd||VF(t)&&Mw(t)}function jF(t){return wt(t==null?void 0:t.lift)}function Bo(t){return function(e){if(jF(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ra(t,e,n,r,o){return new WF(t,e,n,r,o)}var WF=function(t){Od(e,t);function e(n,r,o,i,s,a){var c=t.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(l){try{r(l)}catch(u){n.error(u)}}:t.prototype._next,c._error=i?function(l){try{i(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(l){n.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Hd),YF=new hn(function(t){return t.complete()});function QF(t){return t&&wt(t.schedule)}function Uw(t){return t[t.length-1]}function ZF(t){return QF(Uw(t))?t.pop():void 0}function XF(t,e){return typeof Uw(t)=="number"?t.pop():e}var Gw=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Hw(t){return wt(t==null?void 0:t.then)}function Vw(t){return wt(t[Vd])}function qw(t){return Symbol.asyncIterator&&wt(t==null?void 0:t[Symbol.asyncIterator])}function jw(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function KF(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ww=KF();function Yw(t){return wt(t==null?void 0:t[Ww])}function Qw(t){return MF(this,arguments,function(){var n,r,o,i;return _w(this,function(s){switch(s.label){case 0:n=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Do(n.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Do(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Do(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Zw(t){return wt(t==null?void 0:t.getReader)}function ko(t){if(t instanceof hn)return t;if(t!=null){if(Vw(t))return JF(t);if(Gw(t))return $F(t);if(Hw(t))return e9(t);if(qw(t))return Xw(t);if(Yw(t))return t9(t);if(Zw(t))return n9(t)}throw jw(t)}function JF(t){return new hn(function(e){var n=t[Vd]();if(wt(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $F(t){return new hn(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function e9(t){return new hn(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Lw)})}function t9(t){return new hn(function(e){var n,r;try{for(var o=_a(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()})}function Xw(t){return new hn(function(e){r9(t,e).catch(function(n){return e.error(n)})})}function n9(t){return Xw(Qw(t))}function r9(t,e){var n,r,o,i;return FF(this,void 0,void 0,function(){var s,a;return _w(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=PF(t),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,e.next(s),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ki(t,e,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Kw(t,e){return e===void 0&&(e=0),Bo(function(n,r){n.subscribe(Ra(r,function(o){return ki(r,t,function(){return r.next(o)},e)},function(){return ki(r,t,function(){return r.complete()},e)},function(o){return ki(r,t,function(){return r.error(o)},e)}))})}function Jw(t,e){return e===void 0&&(e=0),Bo(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function i9(t,e){return ko(t).pipe(Jw(e),Kw(e))}function o9(t,e){return ko(t).pipe(Jw(e),Kw(e))}function s9(t,e){return new hn(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function a9(t,e){return new hn(function(n){var r;return ki(n,e,function(){r=t[Ww](),ki(n,e,function(){var o,i,s;try{o=r.next(),i=o.value,s=o.done}catch(a){n.error(a);return}s?n.complete():n.next(i)},0,!0)}),function(){return wt(r==null?void 0:r.return)&&r.return()}})}function $w(t,e){if(!t)throw new Error("Iterable cannot be null");return new hn(function(n){ki(n,e,function(){var r=t[Symbol.asyncIterator]();ki(n,e,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function c9(t,e){return $w(Qw(t),e)}function l9(t,e){if(t!=null){if(Vw(t))return i9(t,e);if(Gw(t))return s9(t,e);if(Hw(t))return o9(t,e);if(qw(t))return $w(t,e);if(Yw(t))return a9(t,e);if(Zw(t))return c9(t,e)}throw jw(t)}function u9(t,e){return e?l9(t,e):ko(t)}var f9=Rw(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function ex(t,e){return new Promise(function(n,r){var o=new $l({next:function(i){n(i),o.unsubscribe()},error:r,complete:function(){r(new f9)}});t.subscribe(o)})}function tx(t,e){return Bo(function(n,r){var o=0;n.subscribe(Ra(r,function(i){r.next(t.call(e,i,o++))}))})}function h9(t,e,n,r,o,i,s,a){var c=[],l=0,u=0,f=!1,h=function(){f&&!c.length&&!l&&e.complete()},d=function(y){return l<r?p(y):c.push(y)},p=function(y){l++;var v=!1;ko(n(y,u++)).subscribe(Ra(e,function(b){e.next(b)},function(){v=!0},void 0,function(){if(v)try{l--;for(var b=function(){var A=c.shift();s||p(A)};c.length&&l<r;)b();h()}catch(A){e.error(A)}}))};return t.subscribe(Ra(e,d,function(){f=!0,h()})),function(){}}function nx(t,e,n){return n===void 0&&(n=1/0),wt(e)?nx(function(r,o){return tx(function(i,s){return e(r,i,o,s)})(ko(t(r,o)))},n):(typeof e=="number"&&(n=e),Bo(function(r,o){return h9(r,o,t,n)}))}function d9(t){return t===void 0&&(t=1/0),nx(Nw,t)}function p9(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=ZF(t),r=XF(t,1/0),o=t;return o.length?o.length===1?ko(o[0]):d9(r)(u9(o,n)):YF}function g9(t,e,n,r,o){return function(i,s){var a=n,c=e,l=0;i.subscribe(Ra(s,function(u){var f=l++;c=a?t(c,u,f):(a=!0,u)},function(){a&&s.next(c),s.complete()}))}}function rx(t,e){return Bo(g9(t,e,arguments.length>=2,!1,!0))}var m9=function(t,e){return t.push(e),t};function b9(){return Bo(function(t,e){rx(m9,[])(t).subscribe(e)})}const ix=-2003829722,qd=-2021002517;class ox{getHeader(e){return this.headerP||(this.headerP=this._getHeader(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}constructor(e){const{filehandle:n,renameRefSeqs:r=s=>s,path:o,url:i}=e;if(this.renameRefSeqs=r,n)this.bbi=n;else if(i)this.bbi=new Sn(i);else if(o)this.bbi=new Ct(o);else throw new Error("no file given")}async _getHeader(e){const n=await this._getMainHeader(e),r=await this._readChromTree(n,e);return{...n,...r}}async _getMainHeader(e,n=2e3){const{buffer:o}=await this.bbi.read(Ke.Buffer.alloc(n),0,n,0,e),i=this._isBigEndian(o),s=o,a=new DataView(s.buffer,s.byteOffset,s.length);let c=0;const l=a.getInt32(c,!0);c+=4;const u=a.getUint16(c,!0);c+=2;const f=a.getUint16(c,!0);c+=2;const h=Number(a.getBigUint64(c,!0));c+=8;const d=Number(a.getBigUint64(c,!0));c+=8;const p=Number(a.getBigUint64(c,!0));c+=8;const y=a.getUint16(c,!0);c+=2;const v=a.getUint16(c,!0);c+=2;const b=Number(a.getBigUint64(c,!0));c+=8;const A=Number(a.getBigUint64(c,!0));c+=8;const S=a.getUint32(c,!0);c+=4;const E=Number(a.getBigUint64(c,!0));c+=8;const I=[];for(let N=0;N<f;N++){const F=a.getUint32(c,!0);c+=4;const M=a.getUint32(c,!0);c+=4;const C=Number(a.getBigUint64(c,!0));c+=8;const Y=Number(a.getBigUint64(c,!0));c+=8,I.push({reductionLevel:F,reserved:M,dataOffset:C,indexOffset:Y})}const _=l===qd?"bigbed":"bigwig";if(b>n||A>n-8*5)return this._getMainHeader(e,n*2);let B;if(A){const N=o.subarray(Number(A));let F=0;const M=new DataView(N.buffer,N.byteOffset,N.length),C=Number(M.getBigUint64(F,!0));F+=8;const Y=M.getFloat64(F,!0);F+=8;const Q=M.getFloat64(F,!0);F+=8;const se=M.getFloat64(F,!0);F+=8;const oe=M.getFloat64(F,!0);F+=8,B={scoreMin:Y,scoreMax:Q,scoreSum:se,scoreSumSquares:oe,basesCovered:C}}else throw new Error("no stats");return{zoomLevels:I,magic:l,extHeaderOffset:E,numZoomLevels:f,fieldCount:y,totalSummary:B,definedFieldCount:v,uncompressBufSize:S,asOffset:b,chromTreeOffset:h,totalSummaryOffset:A,unzoomedDataOffset:d,unzoomedIndexOffset:p,fileType:_,version:u,isBigEndian:i,autoSql:b?o.subarray(b,o.indexOf(0,b)).toString():""}}_isBigEndian(e){let n=e.readInt32LE(0);if(n===ix||n===qd)return!1;if(n=e.readInt32BE(0),n===ix||n===qd)return!0;throw new Error("not a BigWig/BigBed file")}async _readChromTree(e,n){const o=!e.isBigEndian,i=[],s={};let a=e.unzoomedDataOffset;const c=e.chromTreeOffset;for(;a%4!==0;)a+=1;const l=a-c,{buffer:u}=await this.bbi.read(Ke.Buffer.alloc(l),0,l,Number(c),n),f=u,h=new DataView(f.buffer,f.byteOffset,f.length);let d=0;d+=4,d+=4;const p=h.getUint32(d,o);d+=4,d+=4,d+=8;const y=32,v=async b=>{let A=b;if(A>=u.length)throw new Error("reading beyond end of buffer");const S=h.getUint8(A);A+=2;const E=h.getUint16(A,o);if(A+=2,S)for(let I=0;I<E;I++){const _=u.subarray(A,A+p).toString().replaceAll("\0","");A+=p;const B=h.getUint32(A,o);A+=4;const N=h.getUint32(A,o);A+=4;const F={name:_,id:B,length:N};s[this.renameRefSeqs(_)]=B,i[B]=F}else{const I=[];for(let _=0;_<E;_++){A+=p;const B=Number(h.getBigUint64(A,o));A+=8,I.push(v(Number(B)-Number(c)))}await Promise.all(I)}};return await v(y),{refsByName:s,refsByNumber:i}}async getUnzoomedView(e){const{unzoomedIndexOffset:n,refsByName:r,uncompressBufSize:o,isBigEndian:i,fileType:s}=await this.getHeader(e);return new kw(this.bbi,r,n,i,o>0,s)}async getFeatureStream(e,n,r,o){await this.getHeader(o);const i=this.renameRefSeqs(e);let s;const{basesPerSpan:a,scale:c}=o||{};return a?s=await this.getView(1/a,o):c?s=await this.getView(c,o):s=await this.getView(1,o),new hn(l=>{s.readWigData(i,n,r,l,o).catch(u=>{l.error(u)})})}async getFeatures(e,n,r,o){const i=await this.getFeatureStream(e,n,r,o);return(await ex(i.pipe(b9()))).flat()}}class y9 extends ox{async getView(e,n){const{zoomLevels:r,refsByName:o,isBigEndian:i,uncompressBufSize:s}=await this.getHeader(n),a=1/e,c=r.length-1;for(let l=c;l>=0;l-=1){const u=r[l];if(u&&u.reductionLevel<=2*a)return new kw(this.bbi,o,u.indexOffset,i,s>0,"summary")}return this.getUnzoomedView(n)}}function w9(t){return t.filter(e=>!!e)}class x9 extends ox{constructor(){super(...arguments),this.readIndicesCache=new Ti({cache:new ql({maxSize:1}),fill:(e,n)=>this._readIndices({...e,signal:n})})}readIndices(e={}){const{signal:n,...r}=e;return this.readIndicesCache.get(JSON.stringify(r),e,n)}async getView(e,n){return this.getUnzoomedView(n)}async _readIndices(e){const{extHeaderOffset:n,isBigEndian:r}=await this.getHeader(e),{buffer:o}=await this.bbi.read(Ke.Buffer.alloc(64),0,64,Number(n)),i=!r,s=o,a=new DataView(s.buffer,s.byteOffset,s.length);let c=0;c+=2;const l=a.getUint16(c,i);c+=2;const u=Number(a.getBigUint64(c,i));if(c+=8,l===0)return[];const f=20,h=f*l,{buffer:d}=await this.bbi.read(Ke.Buffer.alloc(h),0,h,Number(u)),p=[];for(let y=0;y<l;y+=1){const v=d.subarray(y*f),b=new DataView(v.buffer,v.byteOffset,v.length);let A=0;const S=b.getInt16(A,i);A+=2;const E=b.getInt16(A,i);A+=2;const I=Number(b.getBigUint64(A,i));A+=12;const _=b.getInt16(A,i);p.push({type:S,fieldcount:E,offset:Number(I),field:_})}return p}async searchExtraIndexBlocks(e,n={}){const{isBigEndian:r}=await this.getHeader(n),o=await this.readIndices(n);if(o.length===0)return[];const i=o.map(async s=>{const{offset:a,field:c}=s,{buffer:l}=await this.bbi.read(Ke.Buffer.alloc(32),0,32,a,n),u=!r,f=l,h=new DataView(f.buffer,f.byteOffset,f.length);let d=0;d+=4;const p=h.getInt32(d,u);d+=4;const y=h.getInt32(d,u);d+=4;const v=h.getInt32(d,u);d+=4,d+=8;const b=async S=>{const E=Number(S),I=4+p*(y+v),{buffer:_}=await this.bbi.read(Ke.Buffer.alloc(I),0,I,E,n),B=_,N=new DataView(B.buffer,B.byteOffset,B.length);let F=0;const M=N.getInt8(F);F+=2;const C=N.getInt16(F,u);F+=2;const Y=[];if(M===0){const Q=[];for(let oe=0;oe<C;oe++){const ae=B.subarray(F,F+y).toString().replaceAll("\0","");F+=y;const ce=Number(N.getBigUint64(F,u));F+=8,Q.push({key:ae,offset:ce})}let se=0;for(const{key:oe,offset:ae}of Q){if(e.localeCompare(oe)<0&&se)return b(se);se=ae}return b(se)}else if(M===1){for(let Q=0;Q<C;Q++){const se=B.subarray(F,F+y).toString().replaceAll("\0","");F+=y;const oe=Number(N.getBigUint64(F,u));F+=8;const ae=N.getUint32(F,u);F+=4;const ce=N.getUint32(F,u);F+=4,Y.push({key:se,offset:oe,length:ae,reserved:ce})}for(const Q of Y)if(Q.key===e)return{...Q,field:c};return}};return b(a+32)});return w9(await Promise.all(i))}async searchExtraIndex(e,n={}){const r=await this.searchExtraIndexBlocks(e,n);if(r.length===0)return[];const o=await this.getUnzoomedView(n),i=r.map(a=>new hn(c=>{o.readFeatures(c,[a],n).catch(l=>{c.error(l)})}).pipe(rx((c,l)=>c.concat(l)),tx(c=>{for(const l of c)l.field=a.field;return c})));return(await ex(p9(...i))).filter(a=>{var c;return((c=a.rest)===null||c===void 0?void 0:c.split(" ")[(a.field||0)-3])===e})}}const sx=Object.freeze(Object.defineProperty({__proto__:null,BigBed:x9,BigWig:y9},Symbol.toStringTag,{value:"Module"}));var jd,ax;function v9(){if(ax)return jd;ax=1;function t(r,o){function i(){this.constructor=r}i.prototype=o.prototype,r.prototype=new i}function e(r,o,i,s){this.message=r,this.expected=o,this.found=i,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}t(e,Error),e.buildMessage=function(r,o){var i={literal:function(h){return'"'+a(h.text)+'"'},class:function(h){var d="",p;for(p=0;p<h.parts.length;p++)d+=h.parts[p]instanceof Array?c(h.parts[p][0])+"-"+c(h.parts[p][1]):c(h.parts[p]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function s(h){return h.charCodeAt(0).toString(16).toUpperCase()}function a(h){return h.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(d){return"\\x0"+s(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+s(d)})}function c(h){return h.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(d){return"\\x0"+s(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+s(d)})}function l(h){return i[h.type](h)}function u(h){var d=new Array(h.length),p,y;for(p=0;p<h.length;p++)d[p]=l(h[p]);if(d.sort(),d.length>0){for(p=1,y=1;p<d.length;p++)d[p-1]!==d[p]&&(d[y]=d[p],y++);d.length=y}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+a(h)+'"':"end of input"}return"Expected "+u(r)+" but "+f(o)+" found."};function n(r,o){o=o!==void 0?o:{};var i={},s={declaration:gv},a=gv,c="(",l=Ne("(",!1),u=")",f=Ne(")",!1),h=function(P,ne,pe,be){return{type:P,name:ne,comment:pe,fields:be}},d="simple",p=Ne("simple",!1),y="object",v=Ne("object",!1),b="table",A=Ne("table",!1),S="auto",E=Ne("auto",!1),I="primary",_=Ne("primary",!1),B="index",N=Ne("index",!1),F="unique",M=Ne("unique",!1),C=function(P,ne){return ne},Y=function(P,ne){return P.name&&ne.unshift(P),ne},Q="#",se=Ne("#",!1),oe=";",ae=Ne(";",!1),ce=function(P,ne,pe){return{type:P,name:ne,comment:pe}},ye="[",he=Ne("[",!1),De="]",we=Ne("]",!1),Ee=function(P,ne,pe,be){return{type:P,size:ne,name:pe,comment:be}},Te=function(P,ne,pe,be){return{type:P,vals:ne,name:pe,comment:be}},Ge=",",Ve=Ne(",",!1),q=function(P,ne){return ne.unshift(P),ne},j="int",ee=Ne("int",!1),J="uint",fe=Ne("uint",!1),L="short",D=Ne("short",!1),te="ushort",le=Ne("ushort",!1),Be="byte",ve=Ne("byte",!1),Ae="ubyte",Re=Ne("ubyte",!1),dt="float",$t=Ne("float",!1),It="char",$e=Ne("char",!1),kt="string",zt=Ne("string",!1),et="lstring",Ut=Ne("lstring",!1),k="enum",m=Ne("enum",!1),w="double",O=Ne("double",!1),x="bigint",z=Ne("bigint",!1),V="set",ue=Ne("set",!1),G=function(P,ne){return P+" "+ne},X=/^[a-zA-Z_]/,T=ht([["a","z"],["A","Z"],"_"],!1,!1),re=/^[a-zA-Z0-9_]/,_e=ht([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),g=function(P){return ft()},K=/^[^\n\r]/,$=ht([`
|
|
654
654
|
`,"\r"],!0,!1),R=function(P){return P.join("").replace(/^"/,"").replace(/"$/,"")},H=rn("integer"),Z=/^[0-9]/,Ce=ht([["0","9"]],!1,!1),me=function(){return parseInt(ft(),10)},xe=rn("whitespace"),Ue=/^[ \t\n\r]/,gn=ht([" "," ",`
|
|
655
|
-
`,"\r"],!1,!1),U=0,Me=0,lt=[{line:1,column:1}],tt=0,Tt=[],ke=0,cr;if("startRule"in o){if(!(o.startRule in s))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');a=s[o.startRule]}function ft(){return r.substring(Me,U)}function Ne(P,ne){return{type:"literal",text:P,ignoreCase:ne}}function ht(P,ne,pe){return{type:"class",parts:P,inverted:ne,ignoreCase:pe}}function Dn(){return{type:"end"}}function rn(P){return{type:"other",description:P}}function
|
|
655
|
+
`,"\r"],!1,!1),U=0,Me=0,lt=[{line:1,column:1}],tt=0,Tt=[],ke=0,cr;if("startRule"in o){if(!(o.startRule in s))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');a=s[o.startRule]}function ft(){return r.substring(Me,U)}function Ne(P,ne){return{type:"literal",text:P,ignoreCase:ne}}function ht(P,ne,pe){return{type:"class",parts:P,inverted:ne,ignoreCase:pe}}function Dn(){return{type:"end"}}function rn(P){return{type:"other",description:P}}function nc(P){var ne=lt[P],pe;if(ne)return ne;for(pe=P-1;!lt[pe];)pe--;for(ne=lt[pe],ne={line:ne.line,column:ne.column};pe<P;)r.charCodeAt(pe)===10?(ne.line++,ne.column=1):ne.column++,pe++;return lt[P]=ne,ne}function pv(P,ne){var pe=nc(P),be=nc(ne);return{start:{offset:P,line:pe.line,column:pe.column},end:{offset:ne,line:be.line,column:be.column}}}function Le(P){U<tt||(U>tt&&(tt=U,Tt=[]),Tt.push(P))}function SM(P,ne,pe){return new e(e.buildMessage(P,ne),P,ne,pe)}function gv(){var P,ne,pe,be,Fe,nt,ut,mn,Wr,lr,Yr,ur,Qr,fr;return P=U,ne=qe(),ne!==i?(pe=mv(),pe!==i?(be=qe(),be!==i?(Fe=bv(),Fe!==i?(nt=qe(),nt!==i?(ut=mu(),ut!==i?(mn=qe(),mn!==i?(r.charCodeAt(U)===40?(Wr=c,U++):(Wr=i,ke===0&&Le(l)),Wr!==i?(lr=qe(),lr!==i?(Yr=CM(),Yr!==i?(ur=qe(),ur!==i?(r.charCodeAt(U)===41?(Qr=u,U++):(Qr=i,ke===0&&Le(f)),Qr!==i?(fr=qe(),fr!==i?(Me=P,ne=h(pe,Fe,ut,Yr),P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i),P}function mv(){var P;return r.substr(U,6)===d?(P=d,U+=6):(P=i,ke===0&&Le(p)),P===i&&(r.substr(U,6)===y?(P=y,U+=6):(P=i,ke===0&&Le(v)),P===i&&(r.substr(U,5)===b?(P=b,U+=5):(P=i,ke===0&&Le(A)))),P}function bv(){var P,ne,pe,be;return P=Bn(),P===i&&(P=U,ne=Bn(),ne!==i?(pe=yv(),pe!==i?(ne=[ne,pe],P=ne):(U=P,P=i)):(U=P,P=i),P===i&&(P=U,ne=Bn(),ne!==i?(r.substr(U,4)===S?(pe=S,U+=4):(pe=i,ke===0&&Le(E)),pe!==i?(ne=[ne,pe],P=ne):(U=P,P=i)):(U=P,P=i),P===i&&(P=U,ne=Bn(),ne!==i?(pe=yv(),pe!==i?(r.substr(U,4)===S?(be=S,U+=4):(be=i,ke===0&&Le(E)),be!==i?(ne=[ne,pe,be],P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)))),P}function yv(){var P;return r.substr(U,7)===I?(P=I,U+=7):(P=i,ke===0&&Le(_)),P===i&&(r.substr(U,5)===B?(P=B,U+=5):(P=i,ke===0&&Le(N)),P===i&&(r.substr(U,6)===F?(P=F,U+=6):(P=i,ke===0&&Le(M)))),P}function mu(){var P;return P=wv(),P===i&&(P=qe()),P}function CM(){var P,ne,pe,be,Fe,nt,ut;if(P=U,ne=x0(),ne!==i)if(pe=qe(),pe!==i){for(be=[],Fe=U,nt=qe(),nt!==i?(ut=x0(),ut!==i?(Me=Fe,nt=C(ne,ut),Fe=nt):(U=Fe,Fe=i)):(U=Fe,Fe=i);Fe!==i;)be.push(Fe),Fe=U,nt=qe(),nt!==i?(ut=x0(),ut!==i?(Me=Fe,nt=C(ne,ut),Fe=nt):(U=Fe,Fe=i)):(U=Fe,Fe=i);be!==i?(Fe=qe(),Fe!==i?(Me=P,ne=Y(ne,be),P=ne):(U=P,P=i)):(U=P,P=i)}else U=P,P=i;else U=P,P=i;return P}function IM(){var P;return r.charCodeAt(U)===35?(P=Q,U++):(P=i,ke===0&&Le(se)),P}function TM(){var P,ne,pe,be,Fe;return P=U,ne=qe(),ne!==i?(pe=IM(),pe!==i?(be=wv(),be!==i?(Fe=qe(),Fe!==i?(ne=[ne,pe,be,Fe],P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i),P}function x0(){var P,ne,pe,be,Fe,nt,ut,mn,Wr,lr,Yr,ur,Qr,fr;return P=U,ne=v0(),ne!==i?(pe=qe(),pe!==i?(be=Bn(),be!==i?(Fe=qe(),Fe!==i?(r.charCodeAt(U)===59?(nt=oe,U++):(nt=i,ke===0&&Le(ae)),nt!==i?(ut=qe(),ut!==i?(mn=mu(),mn!==i?(Me=P,ne=ce(ne,be,mn),P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i),P===i&&(P=U,ne=v0(),ne!==i?(pe=qe(),pe!==i?(r.charCodeAt(U)===91?(be=ye,U++):(be=i,ke===0&&Le(he)),be!==i?(Fe=qe(),Fe!==i?(nt=BM(),nt!==i?(ut=qe(),ut!==i?(r.charCodeAt(U)===93?(mn=De,U++):(mn=i,ke===0&&Le(we)),mn!==i?(Wr=qe(),Wr!==i?(lr=Bn(),lr!==i?(Yr=qe(),Yr!==i?(r.charCodeAt(U)===59?(ur=oe,U++):(ur=i,ke===0&&Le(ae)),ur!==i?(Qr=qe(),Qr!==i?(fr=mu(),fr!==i?(Me=P,ne=Ee(ne,nt,lr,fr),P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i),P===i&&(P=U,ne=v0(),ne!==i?(pe=qe(),pe!==i?(r.charCodeAt(U)===40?(be=c,U++):(be=i,ke===0&&Le(l)),be!==i?(Fe=qe(),Fe!==i?(nt=DM(),nt!==i?(ut=qe(),ut!==i?(r.charCodeAt(U)===41?(mn=u,U++):(mn=i,ke===0&&Le(f)),mn!==i?(Wr=qe(),Wr!==i?(lr=Bn(),lr!==i?(Yr=qe(),Yr!==i?(r.charCodeAt(U)===59?(ur=oe,U++):(ur=i,ke===0&&Le(ae)),ur!==i?(Qr=qe(),Qr!==i?(fr=mu(),fr!==i?(Me=P,ne=Te(ne,nt,lr,fr),P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i)):(U=P,P=i),P===i&&(P=TM()))),P}function DM(){var P,ne,pe,be,Fe,nt,ut;if(P=U,ne=Bn(),ne!==i){for(pe=[],be=U,r.charCodeAt(U)===44?(Fe=Ge,U++):(Fe=i,ke===0&&Le(Ve)),Fe!==i?(nt=qe(),nt!==i?(ut=Bn(),ut!==i?(Me=be,Fe=C(ne,ut),be=Fe):(U=be,be=i)):(U=be,be=i)):(U=be,be=i);be!==i;)pe.push(be),be=U,r.charCodeAt(U)===44?(Fe=Ge,U++):(Fe=i,ke===0&&Le(Ve)),Fe!==i?(nt=qe(),nt!==i?(ut=Bn(),ut!==i?(Me=be,Fe=C(ne,ut),be=Fe):(U=be,be=i)):(U=be,be=i)):(U=be,be=i);pe!==i?(Me=P,ne=q(ne,pe),P=ne):(U=P,P=i)}else U=P,P=i;return P}function v0(){var P,ne,pe,be;return r.substr(U,3)===j?(P=j,U+=3):(P=i,ke===0&&Le(ee)),P===i&&(r.substr(U,4)===J?(P=J,U+=4):(P=i,ke===0&&Le(fe)),P===i&&(r.substr(U,5)===L?(P=L,U+=5):(P=i,ke===0&&Le(D)),P===i&&(r.substr(U,6)===te?(P=te,U+=6):(P=i,ke===0&&Le(le)),P===i&&(r.substr(U,4)===Be?(P=Be,U+=4):(P=i,ke===0&&Le(ve)),P===i&&(r.substr(U,5)===Ae?(P=Ae,U+=5):(P=i,ke===0&&Le(Re)),P===i&&(r.substr(U,5)===dt?(P=dt,U+=5):(P=i,ke===0&&Le($t)),P===i&&(r.substr(U,4)===It?(P=It,U+=4):(P=i,ke===0&&Le($e)),P===i&&(r.substr(U,6)===kt?(P=kt,U+=6):(P=i,ke===0&&Le(zt)),P===i&&(r.substr(U,7)===et?(P=et,U+=7):(P=i,ke===0&&Le(Ut)),P===i&&(r.substr(U,4)===k?(P=k,U+=4):(P=i,ke===0&&Le(m)),P===i&&(r.substr(U,6)===w?(P=w,U+=6):(P=i,ke===0&&Le(O)),P===i&&(r.substr(U,6)===x?(P=x,U+=6):(P=i,ke===0&&Le(z)),P===i&&(r.substr(U,3)===V?(P=V,U+=3):(P=i,ke===0&&Le(ue)),P===i&&(P=U,ne=mv(),ne!==i?(pe=qe(),pe!==i?(be=bv(),be!==i?(Me=P,ne=G(ne,be),P=ne):(U=P,P=i)):(U=P,P=i)):(U=P,P=i))))))))))))))),P}function BM(){var P;return P=kM(),P===i&&(P=Bn()),P}function Bn(){var P,ne,pe,be,Fe;if(P=U,ne=U,X.test(r.charAt(U))?(pe=r.charAt(U),U++):(pe=i,ke===0&&Le(T)),pe!==i){for(be=[],re.test(r.charAt(U))?(Fe=r.charAt(U),U++):(Fe=i,ke===0&&Le(_e));Fe!==i;)be.push(Fe),re.test(r.charAt(U))?(Fe=r.charAt(U),U++):(Fe=i,ke===0&&Le(_e));be!==i?(pe=[pe,be],ne=pe):(U=ne,ne=i)}else U=ne,ne=i;return ne!==i&&(Me=P,ne=g()),P=ne,P}function wv(){var P,ne,pe;for(P=U,ne=[],K.test(r.charAt(U))?(pe=r.charAt(U),U++):(pe=i,ke===0&&Le($));pe!==i;)ne.push(pe),K.test(r.charAt(U))?(pe=r.charAt(U),U++):(pe=i,ke===0&&Le($));return ne!==i&&(Me=P,ne=R(ne)),P=ne,P}function kM(){var P,ne,pe,be;if(ke++,P=U,ne=qe(),ne!==i){if(pe=[],Z.test(r.charAt(U))?(be=r.charAt(U),U++):(be=i,ke===0&&Le(Ce)),be!==i)for(;be!==i;)pe.push(be),Z.test(r.charAt(U))?(be=r.charAt(U),U++):(be=i,ke===0&&Le(Ce));else pe=i;pe!==i?(Me=P,ne=me(),P=ne):(U=P,P=i)}else U=P,P=i;return ke--,P===i&&(ne=i,ke===0&&Le(H)),P}function qe(){var P,ne;for(ke++,P=[],Ue.test(r.charAt(U))?(ne=r.charAt(U),U++):(ne=i,ke===0&&Le(gn));ne!==i;)P.push(ne),Ue.test(r.charAt(U))?(ne=r.charAt(U),U++):(ne=i,ke===0&&Le(gn));return ke--,P===i&&(ne=i,ke===0&&Le(xe)),P}if(cr=a(),cr!==i&&U===r.length)return cr;throw cr!==i&&U<r.length&&Le(Dn()),SM(Tt,tt<r.length?r.charAt(tt):null,tt<r.length?pv(tt,tt+1):pv(tt,tt))}return jd={SyntaxError:e,parse:n},jd}var cx=v9();const A9=zl(cx),Wd=Object.fromEntries(Object.entries(Object.freeze(Object.defineProperty({__proto__:null,bigChain:`table bigChain
|
|
656
656
|
"bigChain pairwise alignment"
|
|
657
657
|
(
|
|
658
658
|
string chrom; "Reference sequence chromosome or scaffold"
|
|
@@ -811,20 +811,20 @@ chrM 16299`};function ZD(t){if(!(t in $y))throw new Error(`Unknown assembly: ${t
|
|
|
811
811
|
float score; "Floating point score."
|
|
812
812
|
char[1] leftStatus; "Gap/break annotation for preceding block"
|
|
813
813
|
char[1] rightStatus; "Gap/break annotation for following block"
|
|
814
|
-
)`},Symbol.toStringTag,{value:"Module"}))).map(([t,e])=>[t,ax.parse(e.trim())]));function Wd(t){const e=new Set(["uint","int","float","long"]);return{...t,fields:t.fields.map(n=>({...n,isArray:n.size&&n.type!=="char",arrayIsNumeric:n.size&&e.has(n.type),isNumeric:!n.size&&e.has(n.type)})).filter(n=>!!n.name)}}const v9={".":0,"-":-1,"+":1};function A9(t){var e;return t.length>=12&&!Number.isNaN(parseInt(t[9],10))&&((e=t[10])===null||e===void 0?void 0:e.split(",").filter(n=>!!n).length)===parseInt(t[9],10)}class E9{constructor(e={}){if(e.autoSql)this.autoSql=Wd(x9.parse(e.autoSql));else if(e.type){if(!jd[e.type])throw new Error("Type not found");this.autoSql=Wd(jd[e.type])}else this.autoSql=Wd(jd.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,n={}){const{autoSql:r}=this,{uniqueId:o}=n,i=Array.isArray(e)?e:e.split(" ");let s={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&A9(i))for(let a=0;a<r.fields.length;a++){const c=r.fields[a];let l=i[a];const{isNumeric:u,isArray:f,arrayIsNumeric:h,name:d}=c;if(l==null)break;if(l!=="."){if(u){const p=Number(l);l=Number.isNaN(p)?l:p}else f&&(l=l.split(","),l[l.length-1]===""&&l.pop(),h&&(l=l.map(Number)));s[d]=l}}else{const a=["chrom","chromStart","chromEnd","name"];s=Object.fromEntries(i.map((c,l)=>[a[l]||"field"+l,c])),s.chromStart=+s.chromStart,s.chromEnd=+s.chromEnd,Number.isNaN(Number.parseFloat(s.field4))||(s.score=+s.field4,delete s.field4),(s.field5==="+"||s.field5==="-")&&(s.strand=s.field5,delete s.field5)}return o&&(s.uniqueId=o),s.strand=v9[s.strand]||0,s.chrom=decodeURIComponent(s.chrom),s}}const S9=Object.freeze(Object.defineProperty({__proto__:null,default:E9},Symbol.toStringTag,{value:"Module"}));let cx=class{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}static min(...e){let n,r=0;for(;!n;r+=1)n=e[r];for(;r<e.length;r+=1)n.compareTo(e[r])>0&&(n=e[r]);return n}};function _o(t,e=0,n=!1){if(n)throw new Error("big-endian virtual file offsets not implemented");return new cx(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}let Yd=class{constructor(e,n,r,o){this.minv=e,this.maxv=n,this.bin=r,this._fetchedSize=o}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}};function C9(t){return new Promise(e=>setTimeout(e,t))}function I9(t){if(t&&t.aborted)if(typeof DOMException>"u"){const e=new Error("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}function T9(t,e){return e.minv.blockPosition-t.maxv.blockPosition<65e3&&e.maxv.blockPosition-t.minv.blockPosition<5e6}function D9(t={}){return"aborted"in t?{signal:t}:t}function lx(t,e){const n=[];let r;if(t.length===0)return t;t.sort((o,i)=>{const s=o.minv.blockPosition-i.minv.blockPosition;return s===0?o.minv.dataPosition-i.minv.dataPosition:s});for(const o of t)(!e||o.maxv.compareTo(e)>0)&&(r===void 0?(n.push(o),r=o):T9(r,o)?o.maxv.compareTo(r.maxv)>0&&(r.maxv=o.maxv):(n.push(o),r=o));return n}function ux(t,e){return{lineCount:Gl.fromBytesLE(Array.prototype.slice.call(t,e,e+8),!0).toNumber()}}function eu(t,e){return t?t.compareTo(e)>0?e:t:e}function B9(t,e=n=>n){let n=0,r=0;const o=[],i={};for(let s=0;s<t.length;s+=1)if(!t[s]){if(r<s){let a=t.toString("utf8",r,s);a=e(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}let fx=class{constructor({filehandle:e,renameRefSeq:n=r=>r}){this.filehandle=e,this.renameRefSeq=n}};const k9=21578050;function _9(t,e){return t-t%e}function R9(t,e){return t-t%e+e}function F9(t,e){return e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Ro extends fx{async lineCount(e,n){var r,o;return((o=(r=(await this.parse(n)).indices[e])===null||r===void 0?void 0:r.stats)===null||o===void 0?void 0:o.lineCount)||0}async _parse(e){const n=await this.filehandle.readFile(e);if(n.readUInt32LE(0)!==k9)throw new Error("Not a BAI file");const r=n.readInt32LE(4),i=((1<<(5+1)*3)-1)/7;let s=8,a;const c=new Array(r);for(let l=0;l<r;l++){const u=n.readInt32LE(s);let f;s+=4;const h={};for(let b=0;b<u;b+=1){const v=n.readUInt32LE(s);if(s+=4,v===i+1)s+=4,f=ux(n,s+16),s+=32;else{if(v>i+1)throw new Error("bai index contains too many bins, please use CSI");{const y=n.readInt32LE(s);s+=4;const A=new Array(y);for(let S=0;S<y;S++){const E=_o(n,s);s+=8;const I=_o(n,s);s+=8,a=eu(a,E),A[S]=new Yd(E,I,v)}h[v]=A}}}const d=n.readInt32LE(s);s+=4;const p=new Array(d);for(let b=0;b<d;b++){const v=_o(n,s);s+=8,a=eu(a,v),p[b]=v}c[l]={binIndex:h,linearIndex:p,stats:f}}return{bai:!0,firstDataLine:a,maxBlockSize:65536,indices:c,refCount:r}}async indexCov(e,n,r,o={}){const s=n!==void 0,c=(await this.parse(o)).indices[e];if(!c)return[];const{linearIndex:l=[],stats:u}=c;if(l.length===0)return[];const f=r===void 0?(l.length-1)*16384:R9(r,16384),h=n===void 0?0:_9(n,16384),d=s?new Array((f-h)/16384):new Array(l.length-1),p=l[l.length-1].blockPosition;if(f>(l.length-1)*16384)throw new Error("query outside of range of linear index");let b=l[h/16384].blockPosition;for(let v=h/16384,y=0;v<f/16384;v++,y++)d[y]={score:l[v+1].blockPosition-b,start:v*16384,end:v*16384+16384},b=l[v+1].blockPosition;return d.map(v=>({...v,score:v.score*((u==null?void 0:u.lineCount)||0)/p}))}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o);if(!i)return[];const s=i.indices[e];if(!s)return[];const a=F9(n,r),c=[];for(const[d,p]of a)for(let b=d;b<=p;b++)if(s.binIndex[b]){const v=s.binIndex[b];for(const y of v)c.push(new Yd(y.minv,y.maxv,b))}const l=s.linearIndex.length;let u;const f=Math.min(n>>14,l-1),h=Math.min(r>>14,l-1);for(let d=f;d<=h;++d){const p=s.linearIndex[d];p&&(!u||p.compareTo(u)<0)&&(u=p)}return lx(c,u)}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}}let Qd=[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"&&(Qd=new Int32Array(Qd));const M9=(t,e)=>{let n=e===0?0:~~e^-1;for(let r=0;r<t.length;r++)n=Qd[(n^t[r])&255]^n>>>8;return n^-1},hx=(t,e)=>Ke.Buffer.from(t,e);function P9(t,e){const n=(r,o)=>e(hx(r),o)>>>0;return n.signed=(r,o)=>e(hx(r),o),n.unsigned=n,n.model=t,n}const L9=P9("crc-32",M9),O9=21582659,N9=38359875;function z9(t,e){return t*2**e}function dx(t,e){return Math.floor(t/2**e)}let tu=class extends fx{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n){var r,o;return((o=(r=(await this.parse(n)).indices[e])===null||r===void 0?void 0:r.stats)===null||o===void 0?void 0:o.lineCount)||0}async indexCov(){return[]}parseAuxData(e,n){const r=e.readInt32LE(n),o=r&65536?"zero-based-half-open":"1-based-closed",i={0:"generic",1:"SAM",2:"VCF"}[r&15];if(!i)throw new Error(`invalid Tabix preset format flags ${r}`);const s={ref:e.readInt32LE(n+4),start:e.readInt32LE(n+8),end:e.readInt32LE(n+12)},a=e.readInt32LE(n+16),c=a?String.fromCharCode(a):"",l=e.readInt32LE(n+20),u=e.readInt32LE(n+24);return{columnNumbers:s,coordinateType:o,metaValue:a,metaChar:c,skipLines:l,format:i,formatFlags:r,...B9(e.subarray(n+28,n+28+u),this.renameRefSeq)}}async _parse(e){const n=await this.filehandle.readFile(e),r=await Nr(n);let o;if(r.readUInt32LE(0)===O9)o=1;else if(r.readUInt32LE(0)===N9)o=2;else throw new Error("Not a CSI file");this.minShift=r.readInt32LE(4),this.depth=r.readInt32LE(8),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const i=r.readInt32LE(12),s=i>=30?this.parseAuxData(r,16):void 0,a=r.readInt32LE(16+i);let c=16+i+4,l;const u=new Array(a);for(let f=0;f<a;f++){const h=r.readInt32LE(c);c+=4;const d={};let p;for(let b=0;b<h;b++){const v=r.readUInt32LE(c);if(c+=4,v>this.maxBinNumber)p=ux(r,c+28),c+=44;else{l=eu(l,_o(r,c)),c+=8;const y=r.readInt32LE(c);c+=4;const A=new Array(y);for(let S=0;S<y;S+=1){const E=_o(r,c);c+=8;const I=_o(r,c);c+=8,l=eu(l,E),A[S]=new Yd(E,I,v)}d[v]=A}}u[f]={binIndex:d,stats:p}}return{csiVersion:o,firstDataLine:l,indices:u,refCount:a,csi:!0,maxBlockSize:65536,...s}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const s=(await this.parse(o)).indices[e];if(!s)return[];const a=this.reg2bins(n,r);if(a.length===0)return[];const c=[];for(const[l,u]of a)for(let f=l;f<=u;f++)if(s.binIndex[f]){const h=s.binIndex[f];for(const d of h)c.push(d)}return lx(c,new cx(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let r=0,o=0,i=this.minShift+this.depth*3;const s=[];for(;r<=this.depth;i-=3,o+=z9(1,r*3),r+=1){const a=o+dx(e,i),c=o+dx(n,i);if(c-a+s.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);s.push([a,c])}return s}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}};const dn={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},px="=ACMGRSVTWYHKDBN".split(""),Ra="MIDNSHP=X???????".split("");class Fo{constructor(e){this.bytes=e.bytes,this.fileOffset=e.fileOffset}get byteArray(){return this.bytes.byteArray}get flags(){return(this.byteArray.readInt32LE(this.bytes.start+16)&4294901760)>>16}get ref_id(){return this.byteArray.readInt32LE(this.bytes.start+4)}get start(){return this.byteArray.readInt32LE(this.bytes.start+8)}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_ops*4+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(){return this.byteArray.toString("ascii",this.b0,this.b0+this.read_name_length-1)}get tags(){const{byteArray:e}=this.bytes;let n=this.b0+this.read_name_length+this.num_cigar_ops*4+this.num_seq_bytes+this.seq_length;const r=this.bytes.end,o={};for(;n<r;){const i=String.fromCharCode(e[n],e[n+1]),s=String.fromCharCode(e[n+2]);if(n+=3,s==="A")o[i]=String.fromCharCode(e[n]),n+=1;else if(s==="i")o[i]=e.readInt32LE(n),n+=4;else if(s==="I")o[i]=e.readUInt32LE(n),n+=4;else if(s==="c")o[i]=e.readInt8(n),n+=1;else if(s==="C")o[i]=e.readUInt8(n),n+=1;else if(s==="s")o[i]=e.readInt16LE(n),n+=2;else if(s==="S")o[i]=e.readUInt16LE(n),n+=2;else if(s==="f")o[i]=e.readFloatLE(n),n+=4;else if(s==="Z"||s==="H"){const a=[];for(;n<=r;){const c=e[n++];if(c!==0)a.push(String.fromCharCode(c));else break}o[i]=a.join("")}else if(s==="B"){const a=e[n++],c=String.fromCharCode(a),l=e.readInt32LE(n);if(n+=4,c==="i")if(i==="CG"){const u=[];for(let f=0;f<l;f++){const h=e.readInt32LE(n),d=h>>4,p=Ra[h&15];u.push(d+p),n+=4}o[i]=u.join("")}else{const u=[];for(let f=0;f<l;f++)u.push(e.readInt32LE(n)),n+=4;o[i]=u}else if(c==="I")if(i==="CG"){const u=[];for(let f=0;f<l;f++){const h=e.readUInt32LE(n),d=h>>4,p=Ra[h&15];u.push(d+p),n+=4}o[i]=u.join("")}else{const u=[];for(let f=0;f<l;f++)u.push(e.readUInt32LE(n)),n+=4;o[i]=u}else if(c==="s"){const u=[];for(let f=0;f<l;f++)u.push(e.readInt16LE(n)),n+=2;o[i]=u}else if(c==="S"){const u=[];for(let f=0;f<l;f++)u.push(e.readUInt16LE(n)),n+=2;o[i]=u}else if(c==="c"){const u=[];for(let f=0;f<l;f++)u.push(e.readInt8(n)),n+=1;o[i]=u}else if(c==="C"){const u=[];for(let f=0;f<l;f++)u.push(e.readUInt8(n)),n+=1;o[i]=u}else if(c==="f"){const u=[];for(let f=0;f<l;f++)u.push(e.readFloatLE(n)),n+=4;o[i]=u}}else{console.error("Unknown BAM tag type",s);break}}return o}isPaired(){return!!(this.flags&dn.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&dn.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&dn.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&dn.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&dn.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&dn.BAM_FMREVERSE)}isRead1(){return!!(this.flags&dn.BAM_FREAD1)}isRead2(){return!!(this.flags&dn.BAM_FREAD2)}isSecondary(){return!!(this.flags&dn.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&dn.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&dn.BAM_FDUP)}isSupplementary(){return!!(this.flags&dn.BAM_FSUPPLEMENTARY)}get cigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,CIGAR:""};const e=this.num_cigar_ops;let n=this.b0+this.read_name_length;const r=[];let o=this.byteArray.readInt32LE(n),i=o>>4,s=Ra[o&15];if(s==="S"&&i===this.seq_length)return n+=4,o=this.byteArray.readInt32LE(n),i=o>>4,s=Ra[o&15],s!=="N"&&console.warn("CG tag with no N tag"),{CIGAR:this.tags.CG,length_on_ref:i};{let a=0;for(let c=0;c<e;++c)o=this.byteArray.readInt32LE(n),i=o>>4,s=Ra[o&15],r.push(i+s),s!=="H"&&s!=="S"&&s!=="I"&&(a+=i),n+=4;return{CIGAR:r.join(""),length_on_ref:a}}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get CIGAR(){return this.cigarAndLength.CIGAR}get num_cigar_ops(){return this.flag_nc&65535}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get seq(){const{byteArray:e}=this.bytes,n=this.b0+this.read_name_length+this.num_cigar_ops*4,r=this.num_seq_bytes,o=this.seq_length,i=[];let s=0;for(let a=0;a<r;++a){const c=e[n+a];i.push(px[(c&240)>>4]),s++,s<o&&(i.push(px[c&15]),s++)}return i.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const e=this.isReverseComplemented()?"R":"F",n=this.isMateReverseComplemented()?"R":"F";let r=" ",o=" ";this.isRead1()?(r="1",o="2"):this.isRead2()&&(r="2",o="1");const i=[];return this.template_length>0?(i[0]=e,i[1]=r,i[2]=n,i[3]=o):(i[2]=e,i[3]=r,i[0]=n,i[1]=o),i.join("")}}get bin_mq_nl(){return this.byteArray.readInt32LE(this.bytes.start+12)}get flag_nc(){return this.byteArray.readInt32LE(this.bytes.start+16)}get seq_length(){return this.byteArray.readInt32LE(this.bytes.start+20)}get next_refid(){return this.byteArray.readInt32LE(this.bytes.start+24)}get next_pos(){return this.byteArray.readInt32LE(this.bytes.start+28)}get template_length(){return this.byteArray.readInt32LE(this.bytes.start+32)}toJSON(){const e={};for(const n of Object.keys(this))n.startsWith("_")||n==="bytes"||(e[n]=this[n]);return e}}function nu(t,e){const n=Object.getOwnPropertyDescriptor(t.prototype,e);if(!n)throw new Error("OH NO, NO PROPERTY DESCRIPTOR");const r=n.get;if(!r)throw new Error("OH NO, NOT A GETTER");Object.defineProperty(t.prototype,e,{get(){const o=r.call(this);return Object.defineProperty(this,e,{value:o}),o}})}nu(Fo,"tags"),nu(Fo,"cigarAndLength"),nu(Fo,"seq"),nu(Fo,"qual");function gx(t){const e=t.split(/\r?\n/),n=[];for(const r of e){const[o,...i]=r.split(/\t/);o&&n.push({tag:o.slice(1),data:i.map(s=>{const a=s.indexOf(":"),c=s.slice(0,a),l=s.slice(a+1);return{tag:c,value:l}})})}return n}const mx=21840194,yx=65536;async function U9(t){let e=[];for await(const n of t)e=e.concat(n);return e}class G9{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}class bx{constructor({bamFilehandle:e,bamPath:n,bamUrl:r,baiPath:o,baiFilehandle:i,baiUrl:s,csiPath:a,csiFilehandle:c,csiUrl:l,htsget:u,yieldThreadTime:f=100,renameRefSeqs:h=d=>d}){if(this.htsget=!1,this.featureCache=new Ii({cache:new Vl({maxSize:50}),fill:async(d,p)=>{const{chunk:b,opts:v}=d,{data:y,cpositions:A,dpositions:S}=await this._readChunk({chunk:b,opts:{...v,signal:p}});return this.readBamFeatures(y,A,S,b)}}),this.renameRefSeq=h,e)this.bam=e;else if(n)this.bam=new Ct(n);else if(r)this.bam=new Sn(r);else if(u)this.htsget=!0,this.bam=new G9;else throw new Error("unable to initialize bam");if(c)this.index=new tu({filehandle:c});else if(a)this.index=new tu({filehandle:new Ct(a)});else if(l)this.index=new tu({filehandle:new Sn(l)});else if(i)this.index=new Ro({filehandle:i});else if(o)this.index=new Ro({filehandle:new Ct(o)});else if(s)this.index=new Ro({filehandle:new Sn(s)});else if(n)this.index=new Ro({filehandle:new Ct(`${n}.bai`)});else if(r)this.index=new Ro({filehandle:new Sn(`${r}.bai`)});else if(u)this.htsget=!0;else throw new Error("unable to infer index format");this.yieldThreadTime=f}async getHeaderPre(e){const n=D9(e);if(!this.index)return;const r=await this.index.parse(n),o=r.firstDataLine?r.firstDataLine.blockPosition+65535:void 0;let i;if(o){const u=o+yx,f=await this.bam.read(Ke.Buffer.alloc(u),0,u,0,n);if(!f.bytesRead)throw new Error("Error reading header");i=f.buffer.subarray(0,Math.min(f.bytesRead,o))}else i=await this.bam.readFile(n);const s=await Nr(i);if(s.readInt32LE(0)!==mx)throw new Error("Not a BAM file");const a=s.readInt32LE(4);this.header=s.toString("utf8",8,8+a);const{chrToIndex:c,indexToChr:l}=await this._readRefSeqs(a+8,65535,n);return this.chrToIndex=c,this.indexToChr=l,gx(this.header)}getHeader(e){return this.headerP||(this.headerP=this.getHeaderPre(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}async getHeaderText(e={}){return await this.getHeader(e),this.header}async _readRefSeqs(e,n,r){if(e>n)return this._readRefSeqs(e,n*2,r);const o=n+yx,{bytesRead:i,buffer:s}=await this.bam.read(Ke.Buffer.alloc(o),0,n,0,r);if(!i)throw new Error("Error reading refseqs from header");const a=await Nr(s.subarray(0,Math.min(i,n))),c=a.readInt32LE(e);let l=e+4;const u={},f=[];for(let h=0;h<c;h+=1){const d=a.readInt32LE(l),p=this.renameRefSeq(a.toString("utf8",l+4,l+4+d-1)),b=a.readInt32LE(l+d+4);if(u[p]=h,f.push({refName:p,length:b}),l=l+8+d,l>a.length)return console.warn(`BAM header is very big. Re-fetching ${n} bytes.`),this._readRefSeqs(e,n*2,r)}return{chrToIndex:u,indexToChr:f}}async getRecordsForRange(e,n,r,o){return U9(this.streamRecordsForRange(e,n,r,o))}async*streamRecordsForRange(e,n,r,o){var i;await this.getHeader(o);const s=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];if(s===void 0||!this.index)yield[];else{const a=await this.index.blocksForRange(s,n-1,r,o);yield*this._fetchChunkFeatures(a,s,n,r,o)}}async*_fetchChunkFeatures(e,n,r,o,i={}){const{viewAsPairs:s}=i,a=[];let c=!1;for(const l of e){const u=await this.featureCache.get(l.toString(),{chunk:l,opts:i},i.signal),f=[];for(const h of u)if(h.ref_id===n)if(h.start>=o){c=!0;break}else h.end>=r&&f.push(h);if(a.push(f),yield f,c)break}I9(i.signal),s&&(yield this.fetchPairs(n,a,i))}async fetchPairs(e,n,r){const{pairAcrossChr:o,maxInsertSize:i=2e5}=r,s={},a={};n.map(h=>{const d={};for(const p of h){const b=p.name,v=p.id;d[b]||(d[b]=0),d[b]++,a[v]=1}for(const[p,b]of Object.entries(d))b===1&&(s[p]=!0)});const c=[];n.map(h=>{for(const d of h){const p=d.name,b=d.start,v=d.next_pos,y=d.next_refid;this.index&&s[p]&&(o||y===e&&Math.abs(b-v)<i)&&c.push(this.index.blocksForRange(y,v,v+1,r))}});const l=new Map,u=await Promise.all(c);for(const h of u.flat())l.has(h.toString())||l.set(h.toString(),h);return(await Promise.all([...l.values()].map(async h=>{const{data:d,cpositions:p,dpositions:b,chunk:v}=await this._readChunk({chunk:h,opts:r}),y=[];for(const A of await this.readBamFeatures(d,p,b,v))s[A.name]&&!a[A.id]&&y.push(A);return y}))).flat()}async _readRegion(e,n,r={}){const{bytesRead:o,buffer:i}=await this.bam.read(Ke.Buffer.alloc(n),0,n,e,r);return i.subarray(0,Math.min(o,n))}async _readChunk({chunk:e,opts:n}){const r=await this._readRegion(e.minv.blockPosition,e.fetchedSize(),n),{buffer:o,cpositions:i,dpositions:s}=await D2(r,e);return{data:o,cpositions:i,dpositions:s,chunk:e}}async readBamFeatures(e,n,r,o){let i=0;const s=[];let a=0,c=+Date.now();for(;i+4<e.length;){const l=e.readInt32LE(i),u=i+4+l-1;if(r){for(;i+o.minv.dataPosition>=r[a++];);a--}if(u<e.length){const f=new Fo({bytes:{byteArray:e,start:i,end:u},fileOffset:n.length>0?n[a]*256+(i-r[a])+o.minv.dataPosition+1:L9.signed(e.slice(i,u))});s.push(f),this.yieldThreadTime&&+Date.now()-c>this.yieldThreadTime&&(await C9(1),c=+Date.now())}i=u+1}return s}async hasRefSeq(e){var n,r;const o=(n=this.chrToIndex)===null||n===void 0?void 0:n[e];return o===void 0?!1:(r=this.index)===null||r===void 0?void 0:r.hasRefSeq(o)}async lineCount(e){var n;const r=(n=this.chrToIndex)===null||n===void 0?void 0:n[e];return r===void 0||!this.index?0:this.index.lineCount(r)}async indexCov(e,n,r){var o;if(!this.index)return[];await this.index.parse();const i=(o=this.chrToIndex)===null||o===void 0?void 0:o[e];return i===void 0?[]:this.index.indexCov(i,n,r)}async blocksForRange(e,n,r,o){var i;if(!this.index)return[];await this.index.parse();const s=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];return s===void 0?[]:this.index.blocksForRange(s,n,r,o)}}async function wx(t,e){const n=await Promise.all(t.map(async r=>{const{url:o,headers:i}=r;if(o.startsWith("data:"))return Ke.Buffer.from(o.split(",")[1],"base64");{const{referer:s,...a}=i,c=await fetch(o,{...e,headers:{...e==null?void 0:e.headers,...a}});if(!c.ok)throw new Error(`HTTP ${c.status} fetching ${o}: ${await c.text()}`);return Ke.Buffer.from(await c.arrayBuffer())}}));return Ke.Buffer.concat(await Promise.all(n.map(r=>Nr(r))))}class H9 extends bx{constructor(e){super({htsget:!0}),this.baseUrl=e.baseUrl,this.trackId=e.trackId}async*streamRecordsForRange(e,n,r,o){var i;const a=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${e}&start=${n}&end=${r}&format=BAM`,c=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];if(c===void 0)yield[];else{const l=await fetch(a,{...o});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${a}: ${await l.text()}`);const u=await l.json(),f=await wx(u.htsget.urls.slice(1),o);yield*this._fetchChunkFeatures([{buffer:f,_fetchedSize:void 0,bin:0,compareTo(){return 0},toUniqueString(){return`${e}_${n}_${r}`},fetchedSize(){return 0},minv:{dataPosition:0,blockPosition:0,compareTo:()=>0},maxv:{dataPosition:Number.MAX_SAFE_INTEGER,blockPosition:0,compareTo:()=>0},toString(){return`${e}_${n}_${r}`}}],c,n,r,o)}}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 n=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,r=await fetch(n,e);if(!r.ok)throw new Error(`HTTP ${r.status} fetching ${n}: ${await r.text()}`);const o=await r.json(),i=await wx(o.htsget.urls,e);if(i.readInt32LE(0)!==mx)throw new Error("Not a BAM file");const s=i.readInt32LE(4),a=i.toString("utf8",8,8+s),c=gx(a),l=[],u={},f=c.filter(h=>h.tag==="SQ");for(const[h,d]of f.entries()){let p="",b=0;for(const v of d.data)v.tag==="SN"?p=v.value:v.tag==="LN"&&(b=+v.value);u[p]=h,l[h]={refName:p,length:b}}return this.chrToIndex=u,this.indexToChr=l,c}}const V9=Object.freeze(Object.defineProperty({__proto__:null,BAI:Ro,BamFile:bx,BamRecord:Fo,CSI:tu,HtsgetFile:H9},Symbol.toStringTag,{value:"Module"}));function xx(t){if(t.greaterThan(Number.MAX_SAFE_INTEGER)||t.lessThan(Number.MIN_SAFE_INTEGER))throw new Error("integer overflow");return t.toNumber()}class q9 extends Error{}function Fa(t){if(t&&t.aborted){if(typeof DOMException<"u")throw new DOMException("aborted","AbortError");{const e=new q9("aborted");throw e.code="ERR_ABORTED",e}}}function j9(t,e){return e.minv.blockPosition-t.maxv.blockPosition<65e3&&e.maxv.blockPosition-t.minv.blockPosition<5e6}function vx(t,e){const n=[];let r=null;return t.length===0?t:(t.sort(function(o,i){const s=o.minv.blockPosition-i.minv.blockPosition;return s!==0?s:o.minv.dataPosition-i.minv.dataPosition}),t.forEach(o=>{(!e||o.maxv.compareTo(e)>0)&&(r===null?(n.push(o),r=o):j9(r,o)?o.maxv.compareTo(r.maxv)>0&&(r.maxv=o.maxv):(n.push(o),r=o))}),n)}class Zd{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function Mo(t,e=0,n=!1){if(n)throw new Error("big-endian virtual file offsets not implemented");return new Zd(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}class ru{constructor(e,n,r,o=void 0){this.minv=e,this.maxv=n,this.bin=r,this._fetchedSize=o}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 Ax{constructor({filehandle:e,renameRefSeqs:n=r=>r}){this.filehandle=e,this.renameRefSeq=n}async getMetadata(e={}){const{indices:n,...r}=await this.parse(e);return r}_findFirstData(e,n){return e?e.compareTo(n)>0?n:e:n}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(n=>{throw this.parseP=void 0,n})),this.parseP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}}const W9=21578324,Ex=14;function Y9(t,e){return t+=1,e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Po extends Ax{async lineCount(e,n={}){const r=await this.parse(n),o=r.refNameToId[e];if(o===void 0||!r.indices[o])return-1;const{stats:s}=r.indices[o];return s?s.lineCount:-1}async _parse(e={}){const n=await this.filehandle.readFile(e),r=await Nr(n);if(Fa(e.signal),r.readUInt32LE(0)!==W9)throw new Error("Not a TBI file");const o=r.readInt32LE(4),i=r.readInt32LE(8),s=i&65536?"zero-based-half-open":"1-based-closed",c={0:"generic",1:"SAM",2:"VCF"}[i&15];if(!c)throw new Error(`invalid Tabix preset format flags ${i}`);const l={ref:r.readInt32LE(12),start:r.readInt32LE(16),end:r.readInt32LE(20)},u=r.readInt32LE(24),f=5,h=((1<<(f+1)*3)-1)/7,d=2**(14+f*3),p=u?String.fromCharCode(u):null,b=r.readInt32LE(28),v=r.readInt32LE(32),{refNameToId:y,refIdToName:A}=this._parseNameBytes(r.slice(36,36+v));let S=36+v,E;return{indices:new Array(o).fill(0).map(()=>{const _=r.readInt32LE(S);S+=4;const B={};let N;for(let C=0;C<_;C+=1){const Y=r.readUInt32LE(S);if(S+=4,Y>h+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(Y===h+1){const Q=r.readInt32LE(S);S+=4,Q===2&&(N=this.parsePseudoBin(r,S)),S+=16*Q}else{const Q=r.readInt32LE(S);S+=4;const se=new Array(Q);for(let oe=0;oe<Q;oe+=1){const ae=Mo(r,S),ce=Mo(r,S+8);S+=16,E=this._findFirstData(E,ae),se[oe]=new ru(ae,ce,Y)}B[Y]=se}}const F=r.readInt32LE(S);S+=4;const M=new Array(F);for(let C=0;C<F;C+=1)M[C]=Mo(r,S),S+=8,E=this._findFirstData(E,M[C]);return{binIndex:B,linearIndex:M,stats:N}}),metaChar:p,maxBinNumber:h,maxRefLength:d,skipLines:b,firstDataLine:E,columnNumbers:l,coordinateType:s,format:c,refIdToName:A,refNameToId:y,maxBlockSize:65536}}parsePseudoBin(e,n){return{lineCount:xx(Gl.fromBytesLE(e.slice(n+16,n+24),!0))}}_parseNameBytes(e){let n=0,r=0;const o=[],i={};for(let s=0;s<e.length;s+=1)if(!e[s]){if(r<s){let a=e.toString("utf8",r,s);a=this.renameRefSeq(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o),s=i.refNameToId[e];if(s===void 0)return[];const a=i.indices[s];if(!a)return[];(a.linearIndex.length?a.linearIndex[n>>Ex>=a.linearIndex.length?a.linearIndex.length-1:n>>Ex]:new Zd(0,0))||console.warn("querying outside of possible tabix range");const l=Y9(n,r),u=[];for(const[b,v]of l)for(let y=b;y<=v;y++)if(a.binIndex[y])for(const A of a.binIndex[y])u.push(new ru(A.minv,A.maxv,y));const f=a.linearIndex.length;let h=null;const d=Math.min(n>>14,f-1),p=Math.min(r>>14,f-1);for(let b=d;b<=p;++b){const v=a.linearIndex[b];v&&(!h||v.compareTo(h)<0)&&(h=v)}return vx(u,h)}}const Q9=21582659,Z9=38359875;function X9(t,e){return t*2**e}function Sx(t,e){return Math.floor(t/2**e)}class iu extends Ax{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n={}){const r=await this.parse(n),o=r.refNameToId[e];if(o===void 0||!r.indices[o])return-1;const{stats:s}=r.indices[o];return s?s.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,n){const r=e.readInt32LE(n),o=r&65536?"zero-based-half-open":"1-based-closed",i={0:"generic",1:"SAM",2:"VCF"}[r&15];if(!i)throw new Error(`invalid Tabix preset format flags ${r}`);const s={ref:e.readInt32LE(n+4),start:e.readInt32LE(n+8),end:e.readInt32LE(n+12)},a=e.readInt32LE(n+16),c=a?String.fromCharCode(a):null,l=e.readInt32LE(n+20),u=e.readInt32LE(n+24),{refIdToName:f,refNameToId:h}=this._parseNameBytes(e.slice(n+28,n+28+u));return{refIdToName:f,refNameToId:h,skipLines:l,metaChar:c,columnNumbers:s,format:i,coordinateType:o}}_parseNameBytes(e){let n=0,r=0;const o=[],i={};for(let s=0;s<e.length;s+=1)if(!e[s]){if(r<s){let a=e.toString("utf8",r,s);a=this.renameRefSeq(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}async _parse(e={}){const n=await Nr(await this.filehandle.readFile(e));let r;if(n.readUInt32LE(0)===Q9)r=1;else if(n.readUInt32LE(0)===Z9)r=2;else throw new Error("Not a CSI file");this.minShift=n.readInt32LE(4),this.depth=n.readInt32LE(8),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const o=2**(this.minShift+this.depth*3),i=n.readInt32LE(12),s=i&&i>=30?this.parseAuxData(n,16):{refIdToName:[],refNameToId:{},metaChar:null,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},a=n.readInt32LE(16+i);let c,l=16+i+4;const u=new Array(a).fill(0).map(()=>{const f=n.readInt32LE(l);l+=4;const h={};let d;for(let p=0;p<f;p+=1){const b=n.readUInt32LE(l);if(b>this.maxBinNumber)d=this.parsePseudoBin(n,l+4),l+=48;else{const v=Mo(n,l+4);c=this._findFirstData(c,v);const y=n.readInt32LE(l+12);l+=16;const A=new Array(y);for(let S=0;S<y;S+=1){const E=Mo(n,l),I=Mo(n,l+8);l+=16,A[S]=new ru(E,I,b)}h[b]=A}}return{binIndex:h,stats:d}});return{...s,csi:!0,refCount:a,maxBlockSize:65536,firstDataLine:c,csiVersion:r,indices:u,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:o}}parsePseudoBin(e,n){return{lineCount:xx(Gl.fromBytesLE(e.slice(n+28,n+36),!0))}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o),s=i.refNameToId[e];if(s===void 0)return[];const a=i.indices[s];if(!a)return[];const c=this.reg2bins(n,r),l=[];for(const[u,f]of c)for(let h=u;h<=f;h++)if(a.binIndex[h])for(const d of a.binIndex[h])l.push(new ru(d.minv,d.maxv,h));return vx(l,new Zd(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let r=0,o=0,i=this.minShift+this.depth*3;const s=[];for(;r<=this.depth;i-=3,o+=X9(1,r*3),r+=1){const a=o+Sx(e,i),c=o+Sx(n,i);if(c-a+s.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);s.push([a,c])}return s}}function K9(t){return/^[\u0000-\u007F]*$/.test(t)}const Lo=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;class J9{constructor({path:e,filehandle:n,url:r,tbiPath:o,tbiUrl:i,tbiFilehandle:s,csiPath:a,csiUrl:c,csiFilehandle:l,renameRefSeqs:u=h=>h,chunkCacheSize:f=5*2**20}){if(n)this.filehandle=n;else if(e)this.filehandle=new Ct(e);else if(r)this.filehandle=new Sn(r);else throw new TypeError("must provide either filehandle or path");if(s)this.index=new Po({filehandle:s,renameRefSeqs:u});else if(l)this.index=new iu({filehandle:l,renameRefSeqs:u});else if(o)this.index=new Po({filehandle:new Ct(o),renameRefSeqs:u});else if(a)this.index=new iu({filehandle:new Ct(a),renameRefSeqs:u});else if(e)this.index=new Po({filehandle:new Ct(`${e}.tbi`),renameRefSeqs:u});else if(c)this.index=new iu({filehandle:new Sn(c)});else if(i)this.index=new Po({filehandle:new Sn(i)});else if(r)this.index=new Po({filehandle:new Sn(`${r}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=u,this.chunkCache=new Ii({cache:new Vl({maxSize:Math.floor(f/65536)}),fill:(h,d)=>this.readChunk(h,{signal:d})})}async getLines(e,n,r,o){var i,s;let a,c={},l;typeof o=="function"?l=o:(c=o,l=o.lineCallback,a=o.signal);const u=await this.index.getMetadata(c);Fa(a);const f=n??0,h=r??u.maxRefLength;if(!(f<=h))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(f===h)return;const d=await this.index.blocksForRange(e,f,h,c);Fa(a);for(const p of d){const{buffer:b,cpositions:v,dpositions:y}=await this.chunkCache.get(p.toString(),p,a);Fa(a);let A=0,S=0;const E=(i=Lo==null?void 0:Lo.decode(b))!==null&&i!==void 0?i:b.toString(),I=b.length<5e8&&K9(E);for(;A<E.length;){let _,B;if(I){if(B=E.indexOf(`
|
|
815
|
-
`,A),B===-1)break;_=E.slice(A,B)}else{if(B=
|
|
816
|
-
`,A),B===-1)break;const M=b.slice(A,B);_=(s=Lo==null?void 0:Lo.decode(M))!==null&&s!==void 0?s:M.toString()}if(y){for(;A+p.minv.dataPosition>=y[S++];);S--}const{startCoordinate:N,overlaps:F}=this.checkLine(u,e,f,h,_);if(F)l(_,v[S]*256+(A-y[S])+p.minv.dataPosition+1);else if(N!==void 0&&N>=h)return;A=B+1}}}async getMetadata(e={}){return this.index.getMetadata(e)}async getHeaderBuffer(e={}){const{firstDataLine:n,metaChar:r,maxBlockSize:o}=await this.getMetadata(e);Fa(e.signal);const i=((n==null?void 0:n.blockPosition)||0)+o,s=await this._readRegion(0,i,e),a=await Nr(s);if(r){let c=-1;const l=10,u=r.charCodeAt(0);for(let f=0;f<a.length&&!(f===c+1&&a[f]!==u);f+=1)a[f]===l&&(c=f);return a.subarray(0,c+1)}return a}async getHeader(e={}){return(await this.getHeaderBuffer(e)).toString("utf8")}async getReferenceSequenceNames(e={}){return(await this.getMetadata(e)).refIdToName}checkLine(e,n,r,o,i){const{columnNumbers:s,metaChar:a,coordinateType:c,format:l}=e;if(a&&i.startsWith(a))return{overlaps:!1};let{ref:u,start:f,end:h}=s;u||(u=0),f||(f=0),h||(h=0),l==="VCF"&&(h=8);const d=Math.max(u,f,h);let p=1,b=0,v="",y=-1/0;const A=i.length;for(let S=0;S<A+1;S++)if(i[S]===" "||S===A){if(p===u){if(this.renameRefSeq(i.slice(b,S))!==n)return{overlaps:!1}}else if(p===f){if(y=parseInt(i.slice(b,S),10),c==="1-based-closed"&&(y-=1),y>=o)return{startCoordinate:y,overlaps:!1};if((h===0||h===f)&&y+1<=r)return{startCoordinate:y,overlaps:!1}}else if(l==="VCF"&&p===4)v=i.slice(b,S);else if(p===h&&(l==="VCF"?this._getVcfEnd(y,v,i.slice(b,S)):Number.parseInt(i.slice(b,S),10))<=r)return{overlaps:!1};if(b=S+1,p+=1,p>d)break}return{startCoordinate:y,overlaps:!0}}_getVcfEnd(e,n,r){let o=e+n.length;const i=r.includes("SVTYPE=TRA");if(r[0]!=="."&&!i){let s=";";for(let a=0;a<r.length;a+=1){if(s===";"&&r.slice(a,a+4)==="END="){let c=r.indexOf(";",a);c===-1&&(c=r.length),o=parseInt(r.slice(a+4,c),10);break}s=r[a]}}else if(i)return e+1;return o}async lineCount(e,n={}){return this.index.lineCount(e,n)}async _readRegion(e,n,r={}){const o=Ke.Buffer.alloc(n),{bytesRead:i,buffer:s}=await this.filehandle.read(o,0,n,e,r);return s.subarray(0,i)}async readChunk(e,n={}){const r=await this._readRegion(e.minv.blockPosition,e.fetchedSize(),n);return D2(r,e)}}const $9=Object.freeze(Object.defineProperty({__proto__:null,CSI:iu,TBI:Po,TabixIndexedFile:J9},Symbol.toStringTag,{value:"Module"}));var ou={exports:{}},Cx;function Xd(){if(Cx)return ou.exports;Cx=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(I,_,B){return Function.prototype.apply.call(I,_,B)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(I){return Object.getOwnPropertyNames(I).concat(Object.getOwnPropertySymbols(I))}:n=function(I){return Object.getOwnPropertyNames(I)};function r(E){console&&console.warn&&console.warn(E)}var o=Number.isNaN||function(I){return I!==I};function i(){i.init.call(this)}ou.exports=i,ou.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(E){if(typeof E!="number"||E<0||o(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");s=E}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(I){if(typeof I!="number"||I<0||o(I))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+I+".");return this._maxListeners=I,this};function c(E){return E._maxListeners===void 0?i.defaultMaxListeners:E._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(I){for(var _=[],B=1;B<arguments.length;B++)_.push(arguments[B]);var N=I==="error",F=this._events;if(F!==void 0)N=N&&F.error===void 0;else if(!N)return!1;if(N){var M;if(_.length>0&&(M=_[0]),M instanceof Error)throw M;var C=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw C.context=M,C}var Y=F[I];if(Y===void 0)return!1;if(typeof Y=="function")e(Y,this,_);else for(var Q=Y.length,se=p(Y,Q),B=0;B<Q;++B)e(se[B],this,_);return!0};function l(E,I,_,B){var N,F,M;if(a(_),F=E._events,F===void 0?(F=E._events=Object.create(null),E._eventsCount=0):(F.newListener!==void 0&&(E.emit("newListener",I,_.listener?_.listener:_),F=E._events),M=F[I]),M===void 0)M=F[I]=_,++E._eventsCount;else if(typeof M=="function"?M=F[I]=B?[_,M]:[M,_]:B?M.unshift(_):M.push(_),N=c(E),N>0&&M.length>N&&!M.warned){M.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=E,C.type=I,C.count=M.length,r(C)}return E}i.prototype.addListener=function(I,_){return l(this,I,_,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(I,_){return l(this,I,_,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(E,I,_){var B={fired:!1,wrapFn:void 0,target:E,type:I,listener:_},N=u.bind(B);return N.listener=_,B.wrapFn=N,N}i.prototype.once=function(I,_){return a(_),this.on(I,f(this,I,_)),this},i.prototype.prependOnceListener=function(I,_){return a(_),this.prependListener(I,f(this,I,_)),this},i.prototype.removeListener=function(I,_){var B,N,F,M,C;if(a(_),N=this._events,N===void 0)return this;if(B=N[I],B===void 0)return this;if(B===_||B.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete N[I],N.removeListener&&this.emit("removeListener",I,B.listener||_));else if(typeof B!="function"){for(F=-1,M=B.length-1;M>=0;M--)if(B[M]===_||B[M].listener===_){C=B[M].listener,F=M;break}if(F<0)return this;F===0?B.shift():b(B,F),B.length===1&&(N[I]=B[0]),N.removeListener!==void 0&&this.emit("removeListener",I,C||_)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(I){var _,B,N;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):B[I]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete B[I]),this;if(arguments.length===0){var F=Object.keys(B),M;for(N=0;N<F.length;++N)M=F[N],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(_=B[I],typeof _=="function")this.removeListener(I,_);else if(_!==void 0)for(N=_.length-1;N>=0;N--)this.removeListener(I,_[N]);return this};function h(E,I,_){var B=E._events;if(B===void 0)return[];var N=B[I];return N===void 0?[]:typeof N=="function"?_?[N.listener||N]:[N]:_?v(N):p(N,N.length)}i.prototype.listeners=function(I){return h(this,I,!0)},i.prototype.rawListeners=function(I){return h(this,I,!1)},i.listenerCount=function(E,I){return typeof E.listenerCount=="function"?E.listenerCount(I):d.call(E,I)},i.prototype.listenerCount=d;function d(E){var I=this._events;if(I!==void 0){var _=I[E];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function p(E,I){for(var _=new Array(I),B=0;B<I;++B)_[B]=E[B];return _}function b(E,I){for(;I+1<E.length;I++)E[I]=E[I+1];E.pop()}function v(E){for(var I=new Array(E.length),_=0;_<I.length;++_)I[_]=E[_].listener||E[_];return I}function y(E,I){return new Promise(function(_,B){function N(M){E.removeListener(I,F),B(M)}function F(){typeof E.removeListener=="function"&&E.removeListener("error",N),_([].slice.call(arguments))}S(E,I,F,{once:!0}),I!=="error"&&A(E,N,{once:!0})})}function A(E,I,_){typeof E.on=="function"&&S(E,"error",I,_)}function S(E,I,_,B){if(typeof E.on=="function")B.once?E.once(I,_):E.on(I,_);else if(typeof E.addEventListener=="function")E.addEventListener(I,function N(F){B.once&&E.removeEventListener(I,N),_(F)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof E)}return ou.exports}var su={exports:{}},Ix;function Oo(){return Ix||(Ix=1,typeof Object.create=="function"?su.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:su.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}),su.exports}var Kd,Tx;function Dx(){return Tx||(Tx=1,Kd=Xd().EventEmitter),Kd}const Bx=G_(j_);var Jd,kx;function eM(){if(kx)return Jd;kx=1;function t(p,b){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(p);b&&(y=y.filter(function(A){return Object.getOwnPropertyDescriptor(p,A).enumerable})),v.push.apply(v,y)}return v}function e(p){for(var b=1;b<arguments.length;b++){var v=arguments[b]!=null?arguments[b]:{};b%2?t(Object(v),!0).forEach(function(y){n(p,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach(function(y){Object.defineProperty(p,y,Object.getOwnPropertyDescriptor(v,y))})}return p}function n(p,b,v){return b=s(b),b in p?Object.defineProperty(p,b,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[b]=v,p}function r(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function o(p,b){for(var v=0;v<b.length;v++){var y=b[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,s(y.key),y)}}function i(p,b,v){return b&&o(p.prototype,b),Object.defineProperty(p,"prototype",{writable:!1}),p}function s(p){var b=a(p,"string");return typeof b=="symbol"?b:String(b)}function a(p,b){if(typeof p!="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var y=v.call(p,b);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}var c=Ca(),l=c.Buffer,u=Bx,f=u.inspect,h=f&&f.custom||"inspect";function d(p,b,v){l.prototype.copy.call(p,b,v)}return Jd=function(){function p(){r(this,p),this.head=null,this.tail=null,this.length=0}return i(p,[{key:"push",value:function(v){var y={data:v,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(v){var y={data:v,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var y=this.head,A=""+y.data;y=y.next;)A+=v+y.data;return A}},{key:"concat",value:function(v){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(v>>>0),A=this.head,S=0;A;)d(A.data,y,S),S+=A.data.length,A=A.next;return y}},{key:"consume",value:function(v,y){var A;return v<this.head.data.length?(A=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?A=this.shift():A=y?this._getString(v):this._getBuffer(v),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var y=this.head,A=1,S=y.data;for(v-=S.length;y=y.next;){var E=y.data,I=v>E.length?E.length:v;if(I===E.length?S+=E:S+=E.slice(0,v),v-=I,v===0){I===E.length?(++A,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=E.slice(I));break}++A}return this.length-=A,S}},{key:"_getBuffer",value:function(v){var y=l.allocUnsafe(v),A=this.head,S=1;for(A.data.copy(y),v-=A.data.length;A=A.next;){var E=A.data,I=v>E.length?E.length:v;if(E.copy(y,y.length-v,0,I),v-=I,v===0){I===E.length?(++S,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=E.slice(I));break}++S}return this.length-=S,y}},{key:h,value:function(v,y){return f(this,e(e({},y),{},{depth:0,customInspect:!1}))}}]),p}(),Jd}var $d,_x;function Rx(){if(_x)return $d;_x=1;function t(s,a){var c=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,s)):process.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(f){!a&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(n,c):(c._writableState.errorEmitted=!0,process.nextTick(e,c,f)):process.nextTick(e,c,f):a?(process.nextTick(n,c),a(f)):process.nextTick(n,c)}),this)}function e(s,a){o(s,a),n(s)}function n(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(s,a){s.emit("error",a)}function i(s,a){var c=s._readableState,l=s._writableState;c&&c.autoDestroy||l&&l.autoDestroy?s.destroy(a):s.emit("error",a)}return $d={destroy:t,undestroy:r,errorOrDestroy:i},$d}var e0={},Fx;function No(){if(Fx)return e0;Fx=1;function t(a,c){a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c}var e={};function n(a,c,l){l||(l=Error);function u(h,d,p){return typeof c=="string"?c:c(h,d,p)}var f=function(h){t(d,h);function d(p,b,v){return h.call(this,u(p,b,v))||this}return d}(l);f.prototype.name=l.name,f.prototype.code=a,e[a]=f}function r(a,c){if(Array.isArray(a)){var l=a.length;return a=a.map(function(u){return String(u)}),l>2?"one of ".concat(c," ").concat(a.slice(0,l-1).join(", "),", or ")+a[l-1]:l===2?"one of ".concat(c," ").concat(a[0]," or ").concat(a[1]):"of ".concat(c," ").concat(a[0])}else return"of ".concat(c," ").concat(String(a))}function o(a,c,l){return a.substr(0,c.length)===c}function i(a,c,l){return(l===void 0||l>a.length)&&(l=a.length),a.substring(l-c.length,l)===c}function s(a,c,l){return typeof l!="number"&&(l=0),l+c.length>a.length?!1:a.indexOf(c,l)!==-1}return n("ERR_INVALID_OPT_VALUE",function(a,c){return'The value "'+c+'" is invalid for option "'+a+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(a,c,l){var u;typeof c=="string"&&o(c,"not ")?(u="must not be",c=c.replace(/^not /,"")):u="must be";var f;if(i(a," argument"))f="The ".concat(a," ").concat(u," ").concat(r(c,"type"));else{var h=s(a,".")?"property":"argument";f='The "'.concat(a,'" ').concat(h," ").concat(u," ").concat(r(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e0.codes=e,e0}var t0,Mx;function Px(){if(Mx)return t0;Mx=1;var t=No().codes.ERR_INVALID_OPT_VALUE;function e(r,o,i){return r.highWaterMark!=null?r.highWaterMark:o?r[i]:null}function n(r,o,i,s){var a=e(o,s,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var c=s?i:"highWaterMark";throw new t(c,a)}return Math.floor(a)}return r.objectMode?16:16*1024}return t0={getHighWaterMark:n},t0}var n0,Lx;function tM(){if(Lx)return n0;Lx=1,n0=t;function t(n,r){if(e("noDeprecation"))return n;var o=!1;function i(){if(!o){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),o=!0}return n.apply(this,arguments)}return i}function e(n){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return n0}var r0,Ox;function Nx(){if(Ox)return r0;Ox=1,r0=N;function t(q){var j=this;this.next=null,this.entry=null,this.finish=function(){Ve(j,q)}}var e;N.WritableState=_;var n={deprecate:tM()},r=Dx(),o=Ca().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(q){return o.from(q)}function a(q){return o.isBuffer(q)||q instanceof i}var c=Rx(),l=Px(),u=l.getHighWaterMark,f=No().codes,h=f.ERR_INVALID_ARG_TYPE,d=f.ERR_METHOD_NOT_IMPLEMENTED,p=f.ERR_MULTIPLE_CALLBACK,b=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,A=f.ERR_STREAM_WRITE_AFTER_END,S=f.ERR_UNKNOWN_ENCODING,E=c.errorOrDestroy;Oo()(N,r);function I(){}function _(q,j,ee){e=e||zo(),q=q||{},typeof ee!="boolean"&&(ee=j instanceof e),this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",ee),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var J=q.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(fe){ae(j,fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}_.prototype.getBuffer=function(){for(var j=this.bufferedRequest,ee=[];j;)ee.push(j),j=j.next;return ee},function(){try{Object.defineProperty(_.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var B;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(j){return B.call(this,j)?!0:this!==N?!1:j&&j._writableState instanceof _}})):B=function(j){return j instanceof this};function N(q){e=e||zo();var j=this instanceof e;if(!j&&!B.call(N,this))return new N(q);this._writableState=new _(q,this,j),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}N.prototype.pipe=function(){E(this,new b)};function F(q,j){var ee=new A;E(q,ee),process.nextTick(j,ee)}function M(q,j,ee,J){var fe;return ee===null?fe=new y:typeof ee!="string"&&!j.objectMode&&(fe=new h("chunk",["string","Buffer"],ee)),fe?(E(q,fe),process.nextTick(J,fe),!1):!0}N.prototype.write=function(q,j,ee){var J=this._writableState,fe=!1,L=!J.objectMode&&a(q);return L&&!o.isBuffer(q)&&(q=s(q)),typeof j=="function"&&(ee=j,j=null),L?j="buffer":j||(j=J.defaultEncoding),typeof ee!="function"&&(ee=I),J.ending?F(this,ee):(L||M(this,J,q,ee))&&(J.pendingcb++,fe=Y(this,J,L,q,j,ee)),fe},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&he(this,q))},N.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(q,j,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof j=="string"&&(j=o.from(j,ee)),j}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(q,j,ee,J,fe,L){if(!ee){var D=C(j,J,fe);J!==D&&(ee=!0,fe="buffer",J=D)}var te=j.objectMode?1:J.length;j.length+=te;var le=j.length<j.highWaterMark;if(le||(j.needDrain=!0),j.writing||j.corked){var Be=j.lastBufferedRequest;j.lastBufferedRequest={chunk:J,encoding:fe,isBuf:ee,callback:L,next:null},Be?Be.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else Q(q,j,!1,te,J,fe,L);return le}function Q(q,j,ee,J,fe,L,D){j.writelen=J,j.writecb=D,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new v("write")):ee?q._writev(fe,j.onwrite):q._write(fe,L,j.onwrite),j.sync=!1}function se(q,j,ee,J,fe){--j.pendingcb,ee?(process.nextTick(fe,J),process.nextTick(Te,q,j),q._writableState.errorEmitted=!0,E(q,J)):(fe(J),q._writableState.errorEmitted=!0,E(q,J),Te(q,j))}function oe(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function ae(q,j){var ee=q._writableState,J=ee.sync,fe=ee.writecb;if(typeof fe!="function")throw new p;if(oe(ee),j)se(q,ee,J,j,fe);else{var L=De(ee)||q.destroyed;!L&&!ee.corked&&!ee.bufferProcessing&&ee.bufferedRequest&&he(q,ee),J?process.nextTick(ce,q,ee,L,fe):ce(q,ee,L,fe)}}function ce(q,j,ee,J){ee||be(q,j),j.pendingcb--,J(),Te(q,j)}function be(q,j){j.length===0&&j.needDrain&&(j.needDrain=!1,q.emit("drain"))}function he(q,j){j.bufferProcessing=!0;var ee=j.bufferedRequest;if(q._writev&&ee&&ee.next){var J=j.bufferedRequestCount,fe=new Array(J),L=j.corkedRequestsFree;L.entry=ee;for(var D=0,te=!0;ee;)fe[D]=ee,ee.isBuf||(te=!1),ee=ee.next,D+=1;fe.allBuffers=te,Q(q,j,!0,j.length,fe,"",L.finish),j.pendingcb++,j.lastBufferedRequest=null,L.next?(j.corkedRequestsFree=L.next,L.next=null):j.corkedRequestsFree=new t(j),j.bufferedRequestCount=0}else{for(;ee;){var le=ee.chunk,Be=ee.encoding,ve=ee.callback,Ae=j.objectMode?1:le.length;if(Q(q,j,!1,Ae,le,Be,ve),ee=ee.next,j.bufferedRequestCount--,j.writing)break}ee===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=ee,j.bufferProcessing=!1}N.prototype._write=function(q,j,ee){ee(new d("_write()"))},N.prototype._writev=null,N.prototype.end=function(q,j,ee){var J=this._writableState;return typeof q=="function"?(ee=q,q=null,j=null):typeof j=="function"&&(ee=j,j=null),q!=null&&this.write(q,j),J.corked&&(J.corked=1,this.uncork()),J.ending||Ge(this,J,ee),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function De(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function we(q,j){q._final(function(ee){j.pendingcb--,ee&&E(q,ee),j.prefinished=!0,q.emit("prefinish"),Te(q,j)})}function Ee(q,j){!j.prefinished&&!j.finalCalled&&(typeof q._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,process.nextTick(we,q,j)):(j.prefinished=!0,q.emit("prefinish")))}function Te(q,j){var ee=De(j);if(ee&&(Ee(q,j),j.pendingcb===0&&(j.finished=!0,q.emit("finish"),j.autoDestroy))){var J=q._readableState;(!J||J.autoDestroy&&J.endEmitted)&&q.destroy()}return ee}function Ge(q,j,ee){j.ending=!0,Te(q,j),ee&&(j.finished?process.nextTick(ee):q.once("finish",ee)),j.ended=!0,q.writable=!1}function Ve(q,j,ee){var J=q.entry;for(q.entry=null;J;){var fe=J.callback;j.pendingcb--,fe(ee),J=J.next}j.corkedRequestsFree.next=q}return Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),N.prototype.destroy=c.destroy,N.prototype._undestroy=c.undestroy,N.prototype._destroy=function(q,j){j(q)},r0}var i0,zx;function zo(){if(zx)return i0;zx=1;var t=Object.keys||function(l){var u=[];for(var f in l)u.push(f);return u};i0=s;var e=Wx(),n=Nx();Oo()(s,e);for(var r=t(n.prototype),o=0;o<r.length;o++){var i=r[o];s.prototype[i]||(s.prototype[i]=n.prototype[i])}function s(l){if(!(this instanceof s))return new s(l);e.call(this,l),n.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||process.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),i0}var o0={},au={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ux;function nM(){return Ux||(Ux=1,function(t,e){var n=Ca(),r=n.Buffer;function o(s,a){for(var c in s)a[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=i);function i(s,a,c){return r(s,a,c)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(s,a,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,a,c)},i.alloc=function(s,a,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=r(s);return a!==void 0?typeof c=="string"?l.fill(a,c):l.fill(a):l.fill(0),l},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}}(au,au.exports)),au.exports}var Gx;function s0(){if(Gx)return o0;Gx=1;var t=nM().Buffer,e=t.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(y){if(!y)return"utf8";for(var A;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(A)return;y=(""+y).toLowerCase(),A=!0}}function r(y){var A=n(y);if(typeof A!="string"&&(t.isEncoding===e||!e(y)))throw new Error("Unknown encoding: "+y);return A||y}o0.StringDecoder=o;function o(y){this.encoding=r(y);var A;switch(this.encoding){case"utf16le":this.text=f,this.end=h,A=4;break;case"utf8":this.fillLast=c,A=4;break;case"base64":this.text=d,this.end=p,A=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(A)}o.prototype.write=function(y){if(y.length===0)return"";var A,S;if(this.lastNeed){if(A=this.fillLast(y),A===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<y.length?A?A+this.text(y,S):this.text(y,S):A||""},o.prototype.end=u,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function s(y,A,S){var E=A.length-1;if(E<S)return 0;var I=i(A[E]);return I>=0?(I>0&&(y.lastNeed=I-1),I):--E<S||I===-2?0:(I=i(A[E]),I>=0?(I>0&&(y.lastNeed=I-2),I):--E<S||I===-2?0:(I=i(A[E]),I>=0?(I>0&&(I===2?I=0:y.lastNeed=I-3),I):0))}function a(y,A,S){if((A[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&A.length>1){if((A[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&A.length>2&&(A[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var A=this.lastTotal-this.lastNeed,S=a(this,y);if(S!==void 0)return S;if(this.lastNeed<=y.length)return y.copy(this.lastChar,A,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,A,0,y.length),this.lastNeed-=y.length}function l(y,A){var S=s(this,y,A);if(!this.lastNeed)return y.toString("utf8",A);this.lastTotal=S;var E=y.length-(S-this.lastNeed);return y.copy(this.lastChar,0,E),y.toString("utf8",A,E)}function u(y){var A=y&&y.length?this.write(y):"";return this.lastNeed?A+"�":A}function f(y,A){if((y.length-A)%2===0){var S=y.toString("utf16le",A);if(S){var E=S.charCodeAt(S.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",A,y.length-1)}function h(y){var A=y&&y.length?this.write(y):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return A+this.lastChar.toString("utf16le",0,S)}return A}function d(y,A){var S=(y.length-A)%3;return S===0?y.toString("base64",A):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",A,y.length-S))}function p(y){var A=y&&y.length?this.write(y):"";return this.lastNeed?A+this.lastChar.toString("base64",0,3-this.lastNeed):A}function b(y){return y.toString(this.encoding)}function v(y){return y&&y.length?this.write(y):""}return o0}var a0,Hx;function c0(){if(Hx)return a0;Hx=1;var t=No().codes.ERR_STREAM_PREMATURE_CLOSE;function e(i){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];i.apply(this,c)}}}function n(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function o(i,s,a){if(typeof s=="function")return o(i,null,s);s||(s={}),a=e(a||n);var c=s.readable||s.readable!==!1&&i.readable,l=s.writable||s.writable!==!1&&i.writable,u=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||a.call(i)},d=i._readableState&&i._readableState.endEmitted,p=function(){c=!1,d=!0,l||a.call(i)},b=function(S){a.call(i,S)},v=function(){var S;if(c&&!d)return(!i._readableState||!i._readableState.ended)&&(S=new t),a.call(i,S);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(S=new t),a.call(i,S)},y=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",v),i.req?y():i.on("request",y)):l&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",p),i.on("finish",h),s.error!==!1&&i.on("error",b),i.on("close",v),function(){i.removeListener("complete",h),i.removeListener("abort",v),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",p),i.removeListener("error",b),i.removeListener("close",v)}}return a0=o,a0}var l0,Vx;function rM(){if(Vx)return l0;Vx=1;var t;function e(S,E,I){return E=n(E),E in S?Object.defineProperty(S,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[E]=I,S}function n(S){var E=r(S,"string");return typeof E=="symbol"?E:String(E)}function r(S,E){if(typeof S!="object"||S===null)return S;var I=S[Symbol.toPrimitive];if(I!==void 0){var _=I.call(S,E);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}var o=c0(),i=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function h(S,E){return{value:S,done:E}}function d(S){var E=S[i];if(E!==null){var I=S[f].read();I!==null&&(S[l]=null,S[i]=null,S[s]=null,E(h(I,!1)))}}function p(S){process.nextTick(d,S)}function b(S,E){return function(I,_){S.then(function(){if(E[c]){I(h(void 0,!0));return}E[u](I,_)},_)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((t={get stream(){return this[f]},next:function(){var E=this,I=this[a];if(I!==null)return Promise.reject(I);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(F,M){process.nextTick(function(){E[a]?M(E[a]):F(h(void 0,!0))})});var _=this[l],B;if(_)B=new Promise(b(_,this));else{var N=this[f].read();if(N!==null)return Promise.resolve(h(N,!1));B=new Promise(this[u])}return this[l]=B,B}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var E=this;return new Promise(function(I,_){E[f].destroy(null,function(B){if(B){_(B);return}I(h(void 0,!0))})})}),t),v),A=function(E){var I,_=Object.create(y,(I={},e(I,f,{value:E,writable:!0}),e(I,i,{value:null,writable:!0}),e(I,s,{value:null,writable:!0}),e(I,a,{value:null,writable:!0}),e(I,c,{value:E._readableState.endEmitted,writable:!0}),e(I,u,{value:function(N,F){var M=_[f].read();M?(_[l]=null,_[i]=null,_[s]=null,N(h(M,!1))):(_[i]=N,_[s]=F)},writable:!0}),I));return _[l]=null,o(E,function(B){if(B&&B.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=_[s];N!==null&&(_[l]=null,_[i]=null,_[s]=null,N(B)),_[a]=B;return}var F=_[i];F!==null&&(_[l]=null,_[i]=null,_[s]=null,F(h(void 0,!0))),_[c]=!0}),E.on("readable",p.bind(null,_)),_};return l0=A,l0}var u0,qx;function iM(){return qx||(qx=1,u0=function(){throw new Error("Readable.from is not available in the browser")}),u0}var f0,jx;function Wx(){if(jx)return f0;jx=1,f0=F;var t;F.ReadableState=N,Xd().EventEmitter;var e=function(D,te){return D.listeners(te).length},n=Dx(),r=Ca().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(L){return r.from(L)}function s(L){return r.isBuffer(L)||L instanceof o}var a=Bx,c;a&&a.debuglog?c=a.debuglog("stream"):c=function(){};var l=eM(),u=Rx(),f=Px(),h=f.getHighWaterMark,d=No().codes,p=d.ERR_INVALID_ARG_TYPE,b=d.ERR_STREAM_PUSH_AFTER_EOF,v=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,S,E;Oo()(F,n);var I=u.errorOrDestroy,_=["error","close","destroy","pause","resume"];function B(L,D,te){if(typeof L.prependListener=="function")return L.prependListener(D,te);!L._events||!L._events[D]?L.on(D,te):Array.isArray(L._events[D])?L._events[D].unshift(te):L._events[D]=[te,L._events[D]]}function N(L,D,te){t=t||zo(),L=L||{},typeof te!="boolean"&&(te=D instanceof t),this.objectMode=!!L.objectMode,te&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=h(this,L,"readableHighWaterMark",te),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(A||(A=s0().StringDecoder),this.decoder=new A(L.encoding),this.encoding=L.encoding)}function F(L){if(t=t||zo(),!(this instanceof F))return new F(L);var D=this instanceof t;this._readableState=new N(L,this,D),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),n.call(this)}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),F.prototype.destroy=u.destroy,F.prototype._undestroy=u.undestroy,F.prototype._destroy=function(L,D){D(L)},F.prototype.push=function(L,D){var te=this._readableState,le;return te.objectMode?le=!0:typeof L=="string"&&(D=D||te.defaultEncoding,D!==te.encoding&&(L=r.from(L,D),D=""),le=!0),M(this,L,D,!1,le)},F.prototype.unshift=function(L){return M(this,L,null,!0,!1)};function M(L,D,te,le,Be){c("readableAddChunk",D);var ve=L._readableState;if(D===null)ve.reading=!1,ae(L,ve);else{var Ae;if(Be||(Ae=Y(ve,D)),Ae)I(L,Ae);else if(ve.objectMode||D&&D.length>0)if(typeof D!="string"&&!ve.objectMode&&Object.getPrototypeOf(D)!==r.prototype&&(D=i(D)),le)ve.endEmitted?I(L,new y):C(L,ve,D,!0);else if(ve.ended)I(L,new b);else{if(ve.destroyed)return!1;ve.reading=!1,ve.decoder&&!te?(D=ve.decoder.write(D),ve.objectMode||D.length!==0?C(L,ve,D,!1):he(L,ve)):C(L,ve,D,!1)}else le||(ve.reading=!1,he(L,ve))}return!ve.ended&&(ve.length<ve.highWaterMark||ve.length===0)}function C(L,D,te,le){D.flowing&&D.length===0&&!D.sync?(D.awaitDrain=0,L.emit("data",te)):(D.length+=D.objectMode?1:te.length,le?D.buffer.unshift(te):D.buffer.push(te),D.needReadable&&ce(L)),he(L,D)}function Y(L,D){var te;return!s(D)&&typeof D!="string"&&D!==void 0&&!L.objectMode&&(te=new p("chunk",["string","Buffer","Uint8Array"],D)),te}F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(L){A||(A=s0().StringDecoder);var D=new A(L);this._readableState.decoder=D,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,le="";te!==null;)le+=D.write(te.data),te=te.next;return this._readableState.buffer.clear(),le!==""&&this._readableState.buffer.push(le),this._readableState.length=le.length,this};var Q=1073741824;function se(L){return L>=Q?L=Q:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function oe(L,D){return L<=0||D.length===0&&D.ended?0:D.objectMode?1:L!==L?D.flowing&&D.length?D.buffer.head.data.length:D.length:(L>D.highWaterMark&&(D.highWaterMark=se(L)),L<=D.length?L:D.ended?D.length:(D.needReadable=!0,0))}F.prototype.read=function(L){c("read",L),L=parseInt(L,10);var D=this._readableState,te=L;if(L!==0&&(D.emittedReadable=!1),L===0&&D.needReadable&&((D.highWaterMark!==0?D.length>=D.highWaterMark:D.length>0)||D.ended))return c("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?ee(this):ce(this),null;if(L=oe(L,D),L===0&&D.ended)return D.length===0&&ee(this),null;var le=D.needReadable;c("need readable",le),(D.length===0||D.length-L<D.highWaterMark)&&(le=!0,c("length less than watermark",le)),D.ended||D.reading?(le=!1,c("reading or ended",le)):le&&(c("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(L=oe(te,D)));var Be;return L>0?Be=j(L,D):Be=null,Be===null?(D.needReadable=D.length<=D.highWaterMark,L=0):(D.length-=L,D.awaitDrain=0),D.length===0&&(D.ended||(D.needReadable=!0),te!==L&&D.ended&&ee(this)),Be!==null&&this.emit("data",Be),Be};function ae(L,D){if(c("onEofChunk"),!D.ended){if(D.decoder){var te=D.decoder.end();te&&te.length&&(D.buffer.push(te),D.length+=D.objectMode?1:te.length)}D.ended=!0,D.sync?ce(L):(D.needReadable=!1,D.emittedReadable||(D.emittedReadable=!0,be(L)))}}function ce(L){var D=L._readableState;c("emitReadable",D.needReadable,D.emittedReadable),D.needReadable=!1,D.emittedReadable||(c("emitReadable",D.flowing),D.emittedReadable=!0,process.nextTick(be,L))}function be(L){var D=L._readableState;c("emitReadable_",D.destroyed,D.length,D.ended),!D.destroyed&&(D.length||D.ended)&&(L.emit("readable"),D.emittedReadable=!1),D.needReadable=!D.flowing&&!D.ended&&D.length<=D.highWaterMark,q(L)}function he(L,D){D.readingMore||(D.readingMore=!0,process.nextTick(De,L,D))}function De(L,D){for(;!D.reading&&!D.ended&&(D.length<D.highWaterMark||D.flowing&&D.length===0);){var te=D.length;if(c("maybeReadMore read 0"),L.read(0),te===D.length)break}D.readingMore=!1}F.prototype._read=function(L){I(this,new v("_read()"))},F.prototype.pipe=function(L,D){var te=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=L;break;case 1:le.pipes=[le.pipes,L];break;default:le.pipes.push(L);break}le.pipesCount+=1,c("pipe count=%d opts=%j",le.pipesCount,D);var Be=(!D||D.end!==!1)&&L!==process.stdout&&L!==process.stderr,ve=Be?Re:Nt;le.endEmitted?process.nextTick(ve):te.once("end",ve),L.on("unpipe",Ae);function Ae(k,m){c("onunpipe"),k===te&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,It())}function Re(){c("onend"),L.end()}var dt=we(te);L.on("drain",dt);var $t=!1;function It(){c("cleanup"),L.removeListener("close",Ot),L.removeListener("finish",et),L.removeListener("drain",dt),L.removeListener("error",kt),L.removeListener("unpipe",Ae),te.removeListener("end",Re),te.removeListener("end",Nt),te.removeListener("data",$e),$t=!0,le.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&dt()}te.on("data",$e);function $e(k){c("ondata");var m=L.write(k);c("dest.write",m),m===!1&&((le.pipesCount===1&&le.pipes===L||le.pipesCount>1&&fe(le.pipes,L)!==-1)&&!$t&&(c("false write response, pause",le.awaitDrain),le.awaitDrain++),te.pause())}function kt(k){c("onerror",k),Nt(),L.removeListener("error",kt),e(L,"error")===0&&I(L,k)}B(L,"error",kt);function Ot(){L.removeListener("finish",et),Nt()}L.once("close",Ot);function et(){c("onfinish"),L.removeListener("close",Ot),Nt()}L.once("finish",et);function Nt(){c("unpipe"),te.unpipe(L)}return L.emit("pipe",te),le.flowing||(c("pipe resume"),te.resume()),L};function we(L){return function(){var te=L._readableState;c("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&e(L,"data")&&(te.flowing=!0,q(L))}}F.prototype.unpipe=function(L){var D=this._readableState,te={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return L&&L!==D.pipes?this:(L||(L=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,L&&L.emit("unpipe",this,te),this);if(!L){var le=D.pipes,Be=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var ve=0;ve<Be;ve++)le[ve].emit("unpipe",this,{hasUnpiped:!1});return this}var Ae=fe(D.pipes,L);return Ae===-1?this:(D.pipes.splice(Ae,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),L.emit("unpipe",this,te),this)},F.prototype.on=function(L,D){var te=n.prototype.on.call(this,L,D),le=this._readableState;return L==="data"?(le.readableListening=this.listenerCount("readable")>0,le.flowing!==!1&&this.resume()):L==="readable"&&!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,c("on readable",le.length,le.reading),le.length?ce(this):le.reading||process.nextTick(Te,this)),te},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(L,D){var te=n.prototype.removeListener.call(this,L,D);return L==="readable"&&process.nextTick(Ee,this),te},F.prototype.removeAllListeners=function(L){var D=n.prototype.removeAllListeners.apply(this,arguments);return(L==="readable"||L===void 0)&&process.nextTick(Ee,this),D};function Ee(L){var D=L._readableState;D.readableListening=L.listenerCount("readable")>0,D.resumeScheduled&&!D.paused?D.flowing=!0:L.listenerCount("data")>0&&L.resume()}function Te(L){c("readable nexttick read 0"),L.read(0)}F.prototype.resume=function(){var L=this._readableState;return L.flowing||(c("resume"),L.flowing=!L.readableListening,Ge(this,L)),L.paused=!1,this};function Ge(L,D){D.resumeScheduled||(D.resumeScheduled=!0,process.nextTick(Ve,L,D))}function Ve(L,D){c("resume",D.reading),D.reading||L.read(0),D.resumeScheduled=!1,L.emit("resume"),q(L),D.flowing&&!D.reading&&L.read(0)}F.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(L){var D=L._readableState;for(c("flow",D.flowing);D.flowing&&L.read()!==null;);}F.prototype.wrap=function(L){var D=this,te=this._readableState,le=!1;L.on("end",function(){if(c("wrapped end"),te.decoder&&!te.ended){var Ae=te.decoder.end();Ae&&Ae.length&&D.push(Ae)}D.push(null)}),L.on("data",function(Ae){if(c("wrapped data"),te.decoder&&(Ae=te.decoder.write(Ae)),!(te.objectMode&&Ae==null)&&!(!te.objectMode&&(!Ae||!Ae.length))){var Re=D.push(Ae);Re||(le=!0,L.pause())}});for(var Be in L)this[Be]===void 0&&typeof L[Be]=="function"&&(this[Be]=function(Re){return function(){return L[Re].apply(L,arguments)}}(Be));for(var ve=0;ve<_.length;ve++)L.on(_[ve],this.emit.bind(this,_[ve]));return this._read=function(Ae){c("wrapped _read",Ae),le&&(le=!1,L.resume())},this},typeof Symbol=="function"&&(F.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=rM()),S(this)}),Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(F.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(F.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),F._fromList=j,Object.defineProperty(F.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(L,D){if(D.length===0)return null;var te;return D.objectMode?te=D.buffer.shift():!L||L>=D.length?(D.decoder?te=D.buffer.join(""):D.buffer.length===1?te=D.buffer.first():te=D.buffer.concat(D.length),D.buffer.clear()):te=D.buffer.consume(L,D.decoder),te}function ee(L){var D=L._readableState;c("endReadable",D.endEmitted),D.endEmitted||(D.ended=!0,process.nextTick(J,D,L))}function J(L,D){if(c("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,D.readable=!1,D.emit("end"),L.autoDestroy)){var te=D._writableState;(!te||te.autoDestroy&&te.finished)&&D.destroy()}}typeof Symbol=="function"&&(F.from=function(L,D){return E===void 0&&(E=iM()),E(F,L,D)});function fe(L,D){for(var te=0,le=L.length;te<le;te++)if(L[te]===D)return te;return-1}return f0}var h0,Yx;function Qx(){if(Yx)return h0;Yx=1,h0=a;var t=No().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=t.ERR_TRANSFORM_WITH_LENGTH_0,i=zo();Oo()(a,i);function s(u,f){var h=this._transformState;h.transforming=!1;var d=h.writecb;if(d===null)return this.emit("error",new n);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),d(u);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function a(u){if(!(this instanceof a))return new a(u);i.call(this,u),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",c)}function c(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(u,f,h)}):l(this,null,null)}a.prototype.push=function(u,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,f)},a.prototype._transform=function(u,f,h){h(new e("_transform()"))},a.prototype._write=function(u,f,h){var d=this._transformState;if(d.writecb=h,d.writechunk=u,d.writeencoding=f,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},a.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},a.prototype._destroy=function(u,f){i.prototype._destroy.call(this,u,function(h){f(h)})};function l(u,f,h){if(f)return u.emit("error",f);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new r;return u.push(null)}return h0}var d0,Zx;function oM(){if(Zx)return d0;Zx=1,d0=e;var t=Qx();Oo()(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,o){o(null,n)},d0}var p0,Xx;function sM(){if(Xx)return p0;Xx=1;var t;function e(h){var d=!1;return function(){d||(d=!0,h.apply(void 0,arguments))}}var n=No().codes,r=n.ERR_MISSING_ARGS,o=n.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function s(h){return h.setHeader&&typeof h.abort=="function"}function a(h,d,p,b){b=e(b);var v=!1;h.on("close",function(){v=!0}),t===void 0&&(t=c0()),t(h,{readable:d,writable:p},function(A){if(A)return b(A);v=!0,b()});var y=!1;return function(A){if(!v&&!y){if(y=!0,s(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(A||new o("pipe"))}}}function c(h){h()}function l(h,d){return h.pipe(d)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,d=new Array(h),p=0;p<h;p++)d[p]=arguments[p];var b=u(d);if(Array.isArray(d[0])&&(d=d[0]),d.length<2)throw new r("streams");var v,y=d.map(function(A,S){var E=S<d.length-1,I=S>0;return a(A,E,I,function(_){v||(v=_),_&&y.forEach(c),!E&&(y.forEach(c),b(v))})});return d.reduce(l)}return p0=f,p0}var g0,Kx;function aM(){if(Kx)return g0;Kx=1,g0=n;var t=Xd().EventEmitter,e=Oo();e(n,t),n.Readable=Wx(),n.Writable=Nx(),n.Duplex=zo(),n.Transform=Qx(),n.PassThrough=oM(),n.finished=c0(),n.pipeline=sM(),n.Stream=n;function n(){t.call(this)}return n.prototype.pipe=function(r,o){var i=this;function s(d){r.writable&&r.write(d)===!1&&i.pause&&i.pause()}i.on("data",s);function a(){i.readable&&i.resume&&i.resume()}r.on("drain",a),!r._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",u));var c=!1;function l(){c||(c=!0,r.end())}function u(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function f(d){if(h(),t.listenerCount(this,"error")===0)throw d}i.on("error",f),r.on("error",f);function h(){i.removeListener("data",s),r.removeListener("drain",a),i.removeListener("end",l),i.removeListener("close",u),i.removeListener("error",f),r.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),r.removeListener("close",h)}return i.on("end",h),i.on("close",h),r.on("close",h),r.emit("pipe",i),r},g0}var Jx=aM(),cM=s0();function Ma(t){return t.replace(/%([0-9A-Fa-f]{2})/g,(e,n)=>String.fromCharCode(parseInt(n,16)))}function $x(t,e){return String(e).replace(t,n=>`%${n.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function Pa(t){return $x(/[\n;\r\t=%&,\x00-\x1f\x7f-\xff]/g,t)}function ir(t){return $x(/[\n\r\t%\x00-\x1f\x7f-\xff]/g,t)}function ev(t){if(!(t&&t.length)||t===".")return{};const e={};return t.replace(/\r?\n$/,"").split(";").forEach(n=>{const r=n.split("=",2);if(!(r[1]&&r[1].length))return;r[0]=r[0].trim();let o=e[r[0].trim()];o||(o=[],e[r[0]]=o),o.push(...r[1].split(",").map(i=>i.trim()).map(Ma))}),e}function tv(t){const e=t.split(" ").map(r=>r==="."||r===""?null:r);return{seq_id:e[0]&&Ma(e[0]),source:e[1]&&Ma(e[1]),type:e[2]&&Ma(e[2]),start:e[3]===null?null:parseInt(e[3],10),end:e[4]===null?null:parseInt(e[4],10),score:e[5]===null?null:parseFloat(e[5]),strand:e[6],phase:e[7],attributes:e[8]===null?null:ev(e[8])}}function nv(t){const e=/^\s*##\s*(\S+)\s*(.*)/.exec(t);if(!e)return null;const[,n]=e;let[,,r]=e;const o={directive:n};if(r.length&&(r=r.replace(/\r?\n$/,""),o.value=r),n==="sequence-region"){const i=r.split(/\s+/,3);return{...o,seq_id:i[0],start:i[1]&&i[1].replace(/\D/g,""),end:i[2]&&i[2].replace(/\D/g,"")}}else if(n==="genome-build"){const[i,s]=r.split(/\s+/,2);return{...o,source:i,buildName:s}}return o}function rv(t){const e=[];return Object.entries(t).forEach(([n,r])=>{if(!r)return;let o;r.hasOwnProperty("toString")?o=Pa(r.toString()):Array.isArray(r)?o=r.map(Pa).join(","):o=Pa(r),e.push(`${Pa(n)}=${o}`)}),e.length?e.join(";"):"."}function lM(t,e){const n=t.attributes===null||t.attributes===void 0?".":rv(t.attributes),o=`${[t.seq_id===null?".":ir(t.seq_id),t.source===null?".":ir(t.source),t.type===null?".":ir(t.type),t.start===null?".":ir(t.start),t.end===null?".":ir(t.end),t.score===null?".":ir(t.score),t.strand===null?".":ir(t.strand),t.phase===null?".":ir(t.phase),n].join(" ")}
|
|
817
|
-
`;return e[o]?"":(e[o]=!0,o)}function
|
|
818
|
-
`,e}function
|
|
819
|
-
`}function
|
|
814
|
+
)`},Symbol.toStringTag,{value:"Module"}))).map(([t,e])=>[t,cx.parse(e.trim())]));function Yd(t){const e=new Set(["uint","int","float","long"]);return{...t,fields:t.fields.map(n=>({...n,isArray:n.size&&n.type!=="char",arrayIsNumeric:n.size&&e.has(n.type),isNumeric:!n.size&&e.has(n.type)})).filter(n=>!!n.name)}}const E9={".":0,"-":-1,"+":1};function S9(t){var e;return t.length>=12&&!Number.isNaN(parseInt(t[9],10))&&((e=t[10])===null||e===void 0?void 0:e.split(",").filter(n=>!!n).length)===parseInt(t[9],10)}class C9{constructor(e={}){if(e.autoSql)this.autoSql=Yd(A9.parse(e.autoSql));else if(e.type){if(!Wd[e.type])throw new Error("Type not found");this.autoSql=Yd(Wd[e.type])}else this.autoSql=Yd(Wd.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,n={}){const{autoSql:r}=this,{uniqueId:o}=n,i=Array.isArray(e)?e:e.split(" ");let s={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&S9(i))for(let a=0;a<r.fields.length;a++){const c=r.fields[a];let l=i[a];const{isNumeric:u,isArray:f,arrayIsNumeric:h,name:d}=c;if(l==null)break;if(l!=="."){if(u){const p=Number(l);l=Number.isNaN(p)?l:p}else f&&(l=l.split(","),l[l.length-1]===""&&l.pop(),h&&(l=l.map(Number)));s[d]=l}}else{const a=["chrom","chromStart","chromEnd","name"];s=Object.fromEntries(i.map((c,l)=>[a[l]||"field"+l,c])),s.chromStart=+s.chromStart,s.chromEnd=+s.chromEnd,Number.isNaN(Number.parseFloat(s.field4))||(s.score=+s.field4,delete s.field4),(s.field5==="+"||s.field5==="-")&&(s.strand=s.field5,delete s.field5)}return o&&(s.uniqueId=o),s.strand=E9[s.strand]||0,s.chrom=decodeURIComponent(s.chrom),s}}const I9=Object.freeze(Object.defineProperty({__proto__:null,default:C9},Symbol.toStringTag,{value:"Module"}));let lx=class{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}static min(...e){let n,r=0;for(;!n;r+=1)n=e[r];for(;r<e.length;r+=1)n.compareTo(e[r])>0&&(n=e[r]);return n}};function _o(t,e=0,n=!1){if(n)throw new Error("big-endian virtual file offsets not implemented");return new lx(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}let Qd=class{constructor(e,n,r,o){this.minv=e,this.maxv=n,this.bin=r,this._fetchedSize=o}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}};function T9(t){return new Promise(e=>setTimeout(e,t))}function D9(t){if(t&&t.aborted)if(typeof DOMException>"u"){const e=new Error("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}function B9(t,e){return e.minv.blockPosition-t.maxv.blockPosition<65e3&&e.maxv.blockPosition-t.minv.blockPosition<5e6}function k9(t={}){return"aborted"in t?{signal:t}:t}function ux(t,e){const n=[];let r;if(t.length===0)return t;t.sort((o,i)=>{const s=o.minv.blockPosition-i.minv.blockPosition;return s===0?o.minv.dataPosition-i.minv.dataPosition:s});for(const o of t)(!e||o.maxv.compareTo(e)>0)&&(r===void 0?(n.push(o),r=o):B9(r,o)?o.maxv.compareTo(r.maxv)>0&&(r.maxv=o.maxv):(n.push(o),r=o));return n}function fx(t,e){return{lineCount:Hl.fromBytesLE(Array.prototype.slice.call(t,e,e+8),!0).toNumber()}}function tu(t,e){return t?t.compareTo(e)>0?e:t:e}function _9(t,e=n=>n){let n=0,r=0;const o=[],i={};for(let s=0;s<t.length;s+=1)if(!t[s]){if(r<s){let a=t.toString("utf8",r,s);a=e(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}let hx=class{constructor({filehandle:e,renameRefSeq:n=r=>r}){this.filehandle=e,this.renameRefSeq=n}};const R9=21578050;function F9(t,e){return t-t%e}function M9(t,e){return t-t%e+e}function P9(t,e){return e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Ro extends hx{async lineCount(e,n){var r,o;return((o=(r=(await this.parse(n)).indices[e])===null||r===void 0?void 0:r.stats)===null||o===void 0?void 0:o.lineCount)||0}async _parse(e){const n=await this.filehandle.readFile(e);if(n.readUInt32LE(0)!==R9)throw new Error("Not a BAI file");const r=n.readInt32LE(4),i=((1<<(5+1)*3)-1)/7;let s=8,a;const c=new Array(r);for(let l=0;l<r;l++){const u=n.readInt32LE(s);let f;s+=4;const h={};for(let y=0;y<u;y+=1){const v=n.readUInt32LE(s);if(s+=4,v===i+1)s+=4,f=fx(n,s+16),s+=32;else{if(v>i+1)throw new Error("bai index contains too many bins, please use CSI");{const b=n.readInt32LE(s);s+=4;const A=new Array(b);for(let S=0;S<b;S++){const E=_o(n,s);s+=8;const I=_o(n,s);s+=8,a=tu(a,E),A[S]=new Qd(E,I,v)}h[v]=A}}}const d=n.readInt32LE(s);s+=4;const p=new Array(d);for(let y=0;y<d;y++){const v=_o(n,s);s+=8,a=tu(a,v),p[y]=v}c[l]={binIndex:h,linearIndex:p,stats:f}}return{bai:!0,firstDataLine:a,maxBlockSize:65536,indices:c,refCount:r}}async indexCov(e,n,r,o={}){const s=n!==void 0,c=(await this.parse(o)).indices[e];if(!c)return[];const{linearIndex:l=[],stats:u}=c;if(l.length===0)return[];const f=r===void 0?(l.length-1)*16384:M9(r,16384),h=n===void 0?0:F9(n,16384),d=s?new Array((f-h)/16384):new Array(l.length-1),p=l[l.length-1].blockPosition;if(f>(l.length-1)*16384)throw new Error("query outside of range of linear index");let y=l[h/16384].blockPosition;for(let v=h/16384,b=0;v<f/16384;v++,b++)d[b]={score:l[v+1].blockPosition-y,start:v*16384,end:v*16384+16384},y=l[v+1].blockPosition;return d.map(v=>({...v,score:v.score*((u==null?void 0:u.lineCount)||0)/p}))}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o);if(!i)return[];const s=i.indices[e];if(!s)return[];const a=P9(n,r),c=[];for(const[d,p]of a)for(let y=d;y<=p;y++)if(s.binIndex[y]){const v=s.binIndex[y];for(const b of v)c.push(new Qd(b.minv,b.maxv,y))}const l=s.linearIndex.length;let u;const f=Math.min(n>>14,l-1),h=Math.min(r>>14,l-1);for(let d=f;d<=h;++d){const p=s.linearIndex[d];p&&(!u||p.compareTo(u)<0)&&(u=p)}return ux(c,u)}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}}let Zd=[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"&&(Zd=new Int32Array(Zd));const L9=(t,e)=>{let n=e===0?0:~~e^-1;for(let r=0;r<t.length;r++)n=Zd[(n^t[r])&255]^n>>>8;return n^-1},dx=(t,e)=>Ke.Buffer.from(t,e);function O9(t,e){const n=(r,o)=>e(dx(r),o)>>>0;return n.signed=(r,o)=>e(dx(r),o),n.unsigned=n,n.model=t,n}const N9=O9("crc-32",L9),z9=21582659,U9=38359875;function G9(t,e){return t*2**e}function px(t,e){return Math.floor(t/2**e)}let nu=class extends hx{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n){var r,o;return((o=(r=(await this.parse(n)).indices[e])===null||r===void 0?void 0:r.stats)===null||o===void 0?void 0:o.lineCount)||0}async indexCov(){return[]}parseAuxData(e,n){const r=e.readInt32LE(n),o=r&65536?"zero-based-half-open":"1-based-closed",i={0:"generic",1:"SAM",2:"VCF"}[r&15];if(!i)throw new Error(`invalid Tabix preset format flags ${r}`);const s={ref:e.readInt32LE(n+4),start:e.readInt32LE(n+8),end:e.readInt32LE(n+12)},a=e.readInt32LE(n+16),c=a?String.fromCharCode(a):"",l=e.readInt32LE(n+20),u=e.readInt32LE(n+24);return{columnNumbers:s,coordinateType:o,metaValue:a,metaChar:c,skipLines:l,format:i,formatFlags:r,..._9(e.subarray(n+28,n+28+u),this.renameRefSeq)}}async _parse(e){const n=await this.filehandle.readFile(e),r=await Nr(n);let o;if(r.readUInt32LE(0)===z9)o=1;else if(r.readUInt32LE(0)===U9)o=2;else throw new Error("Not a CSI file");this.minShift=r.readInt32LE(4),this.depth=r.readInt32LE(8),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const i=r.readInt32LE(12),s=i>=30?this.parseAuxData(r,16):void 0,a=r.readInt32LE(16+i);let c=16+i+4,l;const u=new Array(a);for(let f=0;f<a;f++){const h=r.readInt32LE(c);c+=4;const d={};let p;for(let y=0;y<h;y++){const v=r.readUInt32LE(c);if(c+=4,v>this.maxBinNumber)p=fx(r,c+28),c+=44;else{l=tu(l,_o(r,c)),c+=8;const b=r.readInt32LE(c);c+=4;const A=new Array(b);for(let S=0;S<b;S+=1){const E=_o(r,c);c+=8;const I=_o(r,c);c+=8,l=tu(l,E),A[S]=new Qd(E,I,v)}d[v]=A}}u[f]={binIndex:d,stats:p}}return{csiVersion:o,firstDataLine:l,indices:u,refCount:a,csi:!0,maxBlockSize:65536,...s}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const s=(await this.parse(o)).indices[e];if(!s)return[];const a=this.reg2bins(n,r);if(a.length===0)return[];const c=[];for(const[l,u]of a)for(let f=l;f<=u;f++)if(s.binIndex[f]){const h=s.binIndex[f];for(const d of h)c.push(d)}return ux(c,new lx(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let r=0,o=0,i=this.minShift+this.depth*3;const s=[];for(;r<=this.depth;i-=3,o+=G9(1,r*3),r+=1){const a=o+px(e,i),c=o+px(n,i);if(c-a+s.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);s.push([a,c])}return s}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}};const dn={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},gx="=ACMGRSVTWYHKDBN".split(""),Fa="MIDNSHP=X???????".split("");class Fo{constructor(e){this.bytes=e.bytes,this.fileOffset=e.fileOffset}get byteArray(){return this.bytes.byteArray}get flags(){return(this.byteArray.readInt32LE(this.bytes.start+16)&4294901760)>>16}get ref_id(){return this.byteArray.readInt32LE(this.bytes.start+4)}get start(){return this.byteArray.readInt32LE(this.bytes.start+8)}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_ops*4+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(){return this.byteArray.toString("ascii",this.b0,this.b0+this.read_name_length-1)}get tags(){const{byteArray:e}=this.bytes;let n=this.b0+this.read_name_length+this.num_cigar_ops*4+this.num_seq_bytes+this.seq_length;const r=this.bytes.end,o={};for(;n<r;){const i=String.fromCharCode(e[n],e[n+1]),s=String.fromCharCode(e[n+2]);if(n+=3,s==="A")o[i]=String.fromCharCode(e[n]),n+=1;else if(s==="i")o[i]=e.readInt32LE(n),n+=4;else if(s==="I")o[i]=e.readUInt32LE(n),n+=4;else if(s==="c")o[i]=e.readInt8(n),n+=1;else if(s==="C")o[i]=e.readUInt8(n),n+=1;else if(s==="s")o[i]=e.readInt16LE(n),n+=2;else if(s==="S")o[i]=e.readUInt16LE(n),n+=2;else if(s==="f")o[i]=e.readFloatLE(n),n+=4;else if(s==="Z"||s==="H"){const a=[];for(;n<=r;){const c=e[n++];if(c!==0)a.push(String.fromCharCode(c));else break}o[i]=a.join("")}else if(s==="B"){const a=e[n++],c=String.fromCharCode(a),l=e.readInt32LE(n);if(n+=4,c==="i")if(i==="CG"){const u=[];for(let f=0;f<l;f++){const h=e.readInt32LE(n),d=h>>4,p=Fa[h&15];u.push(d+p),n+=4}o[i]=u.join("")}else{const u=[];for(let f=0;f<l;f++)u.push(e.readInt32LE(n)),n+=4;o[i]=u}else if(c==="I")if(i==="CG"){const u=[];for(let f=0;f<l;f++){const h=e.readUInt32LE(n),d=h>>4,p=Fa[h&15];u.push(d+p),n+=4}o[i]=u.join("")}else{const u=[];for(let f=0;f<l;f++)u.push(e.readUInt32LE(n)),n+=4;o[i]=u}else if(c==="s"){const u=[];for(let f=0;f<l;f++)u.push(e.readInt16LE(n)),n+=2;o[i]=u}else if(c==="S"){const u=[];for(let f=0;f<l;f++)u.push(e.readUInt16LE(n)),n+=2;o[i]=u}else if(c==="c"){const u=[];for(let f=0;f<l;f++)u.push(e.readInt8(n)),n+=1;o[i]=u}else if(c==="C"){const u=[];for(let f=0;f<l;f++)u.push(e.readUInt8(n)),n+=1;o[i]=u}else if(c==="f"){const u=[];for(let f=0;f<l;f++)u.push(e.readFloatLE(n)),n+=4;o[i]=u}}else{console.error("Unknown BAM tag type",s);break}}return o}isPaired(){return!!(this.flags&dn.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&dn.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&dn.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&dn.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&dn.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&dn.BAM_FMREVERSE)}isRead1(){return!!(this.flags&dn.BAM_FREAD1)}isRead2(){return!!(this.flags&dn.BAM_FREAD2)}isSecondary(){return!!(this.flags&dn.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&dn.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&dn.BAM_FDUP)}isSupplementary(){return!!(this.flags&dn.BAM_FSUPPLEMENTARY)}get cigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,CIGAR:""};const e=this.num_cigar_ops;let n=this.b0+this.read_name_length;const r=[];let o=this.byteArray.readInt32LE(n),i=o>>4,s=Fa[o&15];if(s==="S"&&i===this.seq_length)return n+=4,o=this.byteArray.readInt32LE(n),i=o>>4,s=Fa[o&15],s!=="N"&&console.warn("CG tag with no N tag"),{CIGAR:this.tags.CG,length_on_ref:i};{let a=0;for(let c=0;c<e;++c)o=this.byteArray.readInt32LE(n),i=o>>4,s=Fa[o&15],r.push(i+s),s!=="H"&&s!=="S"&&s!=="I"&&(a+=i),n+=4;return{CIGAR:r.join(""),length_on_ref:a}}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get CIGAR(){return this.cigarAndLength.CIGAR}get num_cigar_ops(){return this.flag_nc&65535}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get seq(){const{byteArray:e}=this.bytes,n=this.b0+this.read_name_length+this.num_cigar_ops*4,r=this.num_seq_bytes,o=this.seq_length,i=[];let s=0;for(let a=0;a<r;++a){const c=e[n+a];i.push(gx[(c&240)>>4]),s++,s<o&&(i.push(gx[c&15]),s++)}return i.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const e=this.isReverseComplemented()?"R":"F",n=this.isMateReverseComplemented()?"R":"F";let r=" ",o=" ";this.isRead1()?(r="1",o="2"):this.isRead2()&&(r="2",o="1");const i=[];return this.template_length>0?(i[0]=e,i[1]=r,i[2]=n,i[3]=o):(i[2]=e,i[3]=r,i[0]=n,i[1]=o),i.join("")}}get bin_mq_nl(){return this.byteArray.readInt32LE(this.bytes.start+12)}get flag_nc(){return this.byteArray.readInt32LE(this.bytes.start+16)}get seq_length(){return this.byteArray.readInt32LE(this.bytes.start+20)}get next_refid(){return this.byteArray.readInt32LE(this.bytes.start+24)}get next_pos(){return this.byteArray.readInt32LE(this.bytes.start+28)}get template_length(){return this.byteArray.readInt32LE(this.bytes.start+32)}toJSON(){const e={};for(const n of Object.keys(this))n.startsWith("_")||n==="bytes"||(e[n]=this[n]);return e}}function ru(t,e){const n=Object.getOwnPropertyDescriptor(t.prototype,e);if(!n)throw new Error("OH NO, NO PROPERTY DESCRIPTOR");const r=n.get;if(!r)throw new Error("OH NO, NOT A GETTER");Object.defineProperty(t.prototype,e,{get(){const o=r.call(this);return Object.defineProperty(this,e,{value:o}),o}})}ru(Fo,"tags"),ru(Fo,"cigarAndLength"),ru(Fo,"seq"),ru(Fo,"qual");function mx(t){const e=t.split(/\r?\n/),n=[];for(const r of e){const[o,...i]=r.split(/\t/);o&&n.push({tag:o.slice(1),data:i.map(s=>{const a=s.indexOf(":"),c=s.slice(0,a),l=s.slice(a+1);return{tag:c,value:l}})})}return n}const bx=21840194,yx=65536;async function H9(t){let e=[];for await(const n of t)e=e.concat(n);return e}class V9{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}class wx{constructor({bamFilehandle:e,bamPath:n,bamUrl:r,baiPath:o,baiFilehandle:i,baiUrl:s,csiPath:a,csiFilehandle:c,csiUrl:l,htsget:u,yieldThreadTime:f=100,renameRefSeqs:h=d=>d}){if(this.htsget=!1,this.featureCache=new Ti({cache:new ql({maxSize:50}),fill:async(d,p)=>{const{chunk:y,opts:v}=d,{data:b,cpositions:A,dpositions:S}=await this._readChunk({chunk:y,opts:{...v,signal:p}});return this.readBamFeatures(b,A,S,y)}}),this.renameRefSeq=h,e)this.bam=e;else if(n)this.bam=new Ct(n);else if(r)this.bam=new Sn(r);else if(u)this.htsget=!0,this.bam=new V9;else throw new Error("unable to initialize bam");if(c)this.index=new nu({filehandle:c});else if(a)this.index=new nu({filehandle:new Ct(a)});else if(l)this.index=new nu({filehandle:new Sn(l)});else if(i)this.index=new Ro({filehandle:i});else if(o)this.index=new Ro({filehandle:new Ct(o)});else if(s)this.index=new Ro({filehandle:new Sn(s)});else if(n)this.index=new Ro({filehandle:new Ct(`${n}.bai`)});else if(r)this.index=new Ro({filehandle:new Sn(`${r}.bai`)});else if(u)this.htsget=!0;else throw new Error("unable to infer index format");this.yieldThreadTime=f}async getHeaderPre(e){const n=k9(e);if(!this.index)return;const r=await this.index.parse(n),o=r.firstDataLine?r.firstDataLine.blockPosition+65535:void 0;let i;if(o){const u=o+yx,f=await this.bam.read(Ke.Buffer.alloc(u),0,u,0,n);if(!f.bytesRead)throw new Error("Error reading header");i=f.buffer.subarray(0,Math.min(f.bytesRead,o))}else i=await this.bam.readFile(n);const s=await Nr(i);if(s.readInt32LE(0)!==bx)throw new Error("Not a BAM file");const a=s.readInt32LE(4);this.header=s.toString("utf8",8,8+a);const{chrToIndex:c,indexToChr:l}=await this._readRefSeqs(a+8,65535,n);return this.chrToIndex=c,this.indexToChr=l,mx(this.header)}getHeader(e){return this.headerP||(this.headerP=this.getHeaderPre(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}async getHeaderText(e={}){return await this.getHeader(e),this.header}async _readRefSeqs(e,n,r){if(e>n)return this._readRefSeqs(e,n*2,r);const o=n+yx,{bytesRead:i,buffer:s}=await this.bam.read(Ke.Buffer.alloc(o),0,n,0,r);if(!i)throw new Error("Error reading refseqs from header");const a=await Nr(s.subarray(0,Math.min(i,n))),c=a.readInt32LE(e);let l=e+4;const u={},f=[];for(let h=0;h<c;h+=1){const d=a.readInt32LE(l),p=this.renameRefSeq(a.toString("utf8",l+4,l+4+d-1)),y=a.readInt32LE(l+d+4);if(u[p]=h,f.push({refName:p,length:y}),l=l+8+d,l>a.length)return console.warn(`BAM header is very big. Re-fetching ${n} bytes.`),this._readRefSeqs(e,n*2,r)}return{chrToIndex:u,indexToChr:f}}async getRecordsForRange(e,n,r,o){return H9(this.streamRecordsForRange(e,n,r,o))}async*streamRecordsForRange(e,n,r,o){var i;await this.getHeader(o);const s=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];if(s===void 0||!this.index)yield[];else{const a=await this.index.blocksForRange(s,n-1,r,o);yield*this._fetchChunkFeatures(a,s,n,r,o)}}async*_fetchChunkFeatures(e,n,r,o,i={}){const{viewAsPairs:s}=i,a=[];let c=!1;for(const l of e){const u=await this.featureCache.get(l.toString(),{chunk:l,opts:i},i.signal),f=[];for(const h of u)if(h.ref_id===n)if(h.start>=o){c=!0;break}else h.end>=r&&f.push(h);if(a.push(f),yield f,c)break}D9(i.signal),s&&(yield this.fetchPairs(n,a,i))}async fetchPairs(e,n,r){const{pairAcrossChr:o,maxInsertSize:i=2e5}=r,s={},a={};n.map(h=>{const d={};for(const p of h){const y=p.name,v=p.id;d[y]||(d[y]=0),d[y]++,a[v]=1}for(const[p,y]of Object.entries(d))y===1&&(s[p]=!0)});const c=[];n.map(h=>{for(const d of h){const p=d.name,y=d.start,v=d.next_pos,b=d.next_refid;this.index&&s[p]&&(o||b===e&&Math.abs(y-v)<i)&&c.push(this.index.blocksForRange(b,v,v+1,r))}});const l=new Map,u=await Promise.all(c);for(const h of u.flat())l.has(h.toString())||l.set(h.toString(),h);return(await Promise.all([...l.values()].map(async h=>{const{data:d,cpositions:p,dpositions:y,chunk:v}=await this._readChunk({chunk:h,opts:r}),b=[];for(const A of await this.readBamFeatures(d,p,y,v))s[A.name]&&!a[A.id]&&b.push(A);return b}))).flat()}async _readRegion(e,n,r={}){const{bytesRead:o,buffer:i}=await this.bam.read(Ke.Buffer.alloc(n),0,n,e,r);return i.subarray(0,Math.min(o,n))}async _readChunk({chunk:e,opts:n}){const r=await this._readRegion(e.minv.blockPosition,e.fetchedSize(),n),{buffer:o,cpositions:i,dpositions:s}=await B2(r,e);return{data:o,cpositions:i,dpositions:s,chunk:e}}async readBamFeatures(e,n,r,o){let i=0;const s=[];let a=0,c=+Date.now();for(;i+4<e.length;){const l=e.readInt32LE(i),u=i+4+l-1;if(r){for(;i+o.minv.dataPosition>=r[a++];);a--}if(u<e.length){const f=new Fo({bytes:{byteArray:e,start:i,end:u},fileOffset:n.length>0?n[a]*256+(i-r[a])+o.minv.dataPosition+1:N9.signed(e.slice(i,u))});s.push(f),this.yieldThreadTime&&+Date.now()-c>this.yieldThreadTime&&(await T9(1),c=+Date.now())}i=u+1}return s}async hasRefSeq(e){var n,r;const o=(n=this.chrToIndex)===null||n===void 0?void 0:n[e];return o===void 0?!1:(r=this.index)===null||r===void 0?void 0:r.hasRefSeq(o)}async lineCount(e){var n;const r=(n=this.chrToIndex)===null||n===void 0?void 0:n[e];return r===void 0||!this.index?0:this.index.lineCount(r)}async indexCov(e,n,r){var o;if(!this.index)return[];await this.index.parse();const i=(o=this.chrToIndex)===null||o===void 0?void 0:o[e];return i===void 0?[]:this.index.indexCov(i,n,r)}async blocksForRange(e,n,r,o){var i;if(!this.index)return[];await this.index.parse();const s=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];return s===void 0?[]:this.index.blocksForRange(s,n,r,o)}}async function xx(t,e){const n=await Promise.all(t.map(async r=>{const{url:o,headers:i}=r;if(o.startsWith("data:"))return Ke.Buffer.from(o.split(",")[1],"base64");{const{referer:s,...a}=i,c=await fetch(o,{...e,headers:{...e==null?void 0:e.headers,...a}});if(!c.ok)throw new Error(`HTTP ${c.status} fetching ${o}: ${await c.text()}`);return Ke.Buffer.from(await c.arrayBuffer())}}));return Ke.Buffer.concat(await Promise.all(n.map(r=>Nr(r))))}class q9 extends wx{constructor(e){super({htsget:!0}),this.baseUrl=e.baseUrl,this.trackId=e.trackId}async*streamRecordsForRange(e,n,r,o){var i;const a=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${e}&start=${n}&end=${r}&format=BAM`,c=(i=this.chrToIndex)===null||i===void 0?void 0:i[e];if(c===void 0)yield[];else{const l=await fetch(a,{...o});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${a}: ${await l.text()}`);const u=await l.json(),f=await xx(u.htsget.urls.slice(1),o);yield*this._fetchChunkFeatures([{buffer:f,_fetchedSize:void 0,bin:0,compareTo(){return 0},toUniqueString(){return`${e}_${n}_${r}`},fetchedSize(){return 0},minv:{dataPosition:0,blockPosition:0,compareTo:()=>0},maxv:{dataPosition:Number.MAX_SAFE_INTEGER,blockPosition:0,compareTo:()=>0},toString(){return`${e}_${n}_${r}`}}],c,n,r,o)}}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 n=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,r=await fetch(n,e);if(!r.ok)throw new Error(`HTTP ${r.status} fetching ${n}: ${await r.text()}`);const o=await r.json(),i=await xx(o.htsget.urls,e);if(i.readInt32LE(0)!==bx)throw new Error("Not a BAM file");const s=i.readInt32LE(4),a=i.toString("utf8",8,8+s),c=mx(a),l=[],u={},f=c.filter(h=>h.tag==="SQ");for(const[h,d]of f.entries()){let p="",y=0;for(const v of d.data)v.tag==="SN"?p=v.value:v.tag==="LN"&&(y=+v.value);u[p]=h,l[h]={refName:p,length:y}}return this.chrToIndex=u,this.indexToChr=l,c}}const j9=Object.freeze(Object.defineProperty({__proto__:null,BAI:Ro,BamFile:wx,BamRecord:Fo,CSI:nu,HtsgetFile:q9},Symbol.toStringTag,{value:"Module"}));function vx(t){if(t.greaterThan(Number.MAX_SAFE_INTEGER)||t.lessThan(Number.MIN_SAFE_INTEGER))throw new Error("integer overflow");return t.toNumber()}class W9 extends Error{}function Ma(t){if(t&&t.aborted){if(typeof DOMException<"u")throw new DOMException("aborted","AbortError");{const e=new W9("aborted");throw e.code="ERR_ABORTED",e}}}function Y9(t,e){return e.minv.blockPosition-t.maxv.blockPosition<65e3&&e.maxv.blockPosition-t.minv.blockPosition<5e6}function Ax(t,e){const n=[];let r=null;return t.length===0?t:(t.sort(function(o,i){const s=o.minv.blockPosition-i.minv.blockPosition;return s!==0?s:o.minv.dataPosition-i.minv.dataPosition}),t.forEach(o=>{(!e||o.maxv.compareTo(e)>0)&&(r===null?(n.push(o),r=o):Y9(r,o)?o.maxv.compareTo(r.maxv)>0&&(r.maxv=o.maxv):(n.push(o),r=o))}),n)}class Xd{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function Mo(t,e=0,n=!1){if(n)throw new Error("big-endian virtual file offsets not implemented");return new Xd(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}class iu{constructor(e,n,r,o=void 0){this.minv=e,this.maxv=n,this.bin=r,this._fetchedSize=o}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 Ex{constructor({filehandle:e,renameRefSeqs:n=r=>r}){this.filehandle=e,this.renameRefSeq=n}async getMetadata(e={}){const{indices:n,...r}=await this.parse(e);return r}_findFirstData(e,n){return e?e.compareTo(n)>0?n:e:n}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(n=>{throw this.parseP=void 0,n})),this.parseP}async hasRefSeq(e,n={}){var r;return!!(!((r=(await this.parse(n)).indices[e])===null||r===void 0)&&r.binIndex)}}const Q9=21578324,Sx=14;function Z9(t,e){return t+=1,e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Po extends Ex{async lineCount(e,n={}){const r=await this.parse(n),o=r.refNameToId[e];if(o===void 0||!r.indices[o])return-1;const{stats:s}=r.indices[o];return s?s.lineCount:-1}async _parse(e={}){const n=await this.filehandle.readFile(e),r=await Nr(n);if(Ma(e.signal),r.readUInt32LE(0)!==Q9)throw new Error("Not a TBI file");const o=r.readInt32LE(4),i=r.readInt32LE(8),s=i&65536?"zero-based-half-open":"1-based-closed",c={0:"generic",1:"SAM",2:"VCF"}[i&15];if(!c)throw new Error(`invalid Tabix preset format flags ${i}`);const l={ref:r.readInt32LE(12),start:r.readInt32LE(16),end:r.readInt32LE(20)},u=r.readInt32LE(24),f=5,h=((1<<(f+1)*3)-1)/7,d=2**(14+f*3),p=u?String.fromCharCode(u):null,y=r.readInt32LE(28),v=r.readInt32LE(32),{refNameToId:b,refIdToName:A}=this._parseNameBytes(r.slice(36,36+v));let S=36+v,E;return{indices:new Array(o).fill(0).map(()=>{const _=r.readInt32LE(S);S+=4;const B={};let N;for(let C=0;C<_;C+=1){const Y=r.readUInt32LE(S);if(S+=4,Y>h+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(Y===h+1){const Q=r.readInt32LE(S);S+=4,Q===2&&(N=this.parsePseudoBin(r,S)),S+=16*Q}else{const Q=r.readInt32LE(S);S+=4;const se=new Array(Q);for(let oe=0;oe<Q;oe+=1){const ae=Mo(r,S),ce=Mo(r,S+8);S+=16,E=this._findFirstData(E,ae),se[oe]=new iu(ae,ce,Y)}B[Y]=se}}const F=r.readInt32LE(S);S+=4;const M=new Array(F);for(let C=0;C<F;C+=1)M[C]=Mo(r,S),S+=8,E=this._findFirstData(E,M[C]);return{binIndex:B,linearIndex:M,stats:N}}),metaChar:p,maxBinNumber:h,maxRefLength:d,skipLines:y,firstDataLine:E,columnNumbers:l,coordinateType:s,format:c,refIdToName:A,refNameToId:b,maxBlockSize:65536}}parsePseudoBin(e,n){return{lineCount:vx(Hl.fromBytesLE(e.slice(n+16,n+24),!0))}}_parseNameBytes(e){let n=0,r=0;const o=[],i={};for(let s=0;s<e.length;s+=1)if(!e[s]){if(r<s){let a=e.toString("utf8",r,s);a=this.renameRefSeq(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o),s=i.refNameToId[e];if(s===void 0)return[];const a=i.indices[s];if(!a)return[];(a.linearIndex.length?a.linearIndex[n>>Sx>=a.linearIndex.length?a.linearIndex.length-1:n>>Sx]:new Xd(0,0))||console.warn("querying outside of possible tabix range");const l=Z9(n,r),u=[];for(const[y,v]of l)for(let b=y;b<=v;b++)if(a.binIndex[b])for(const A of a.binIndex[b])u.push(new iu(A.minv,A.maxv,b));const f=a.linearIndex.length;let h=null;const d=Math.min(n>>14,f-1),p=Math.min(r>>14,f-1);for(let y=d;y<=p;++y){const v=a.linearIndex[y];v&&(!h||v.compareTo(h)<0)&&(h=v)}return Ax(u,h)}}const X9=21582659,K9=38359875;function J9(t,e){return t*2**e}function Cx(t,e){return Math.floor(t/2**e)}class ou extends Ex{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n={}){const r=await this.parse(n),o=r.refNameToId[e];if(o===void 0||!r.indices[o])return-1;const{stats:s}=r.indices[o];return s?s.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,n){const r=e.readInt32LE(n),o=r&65536?"zero-based-half-open":"1-based-closed",i={0:"generic",1:"SAM",2:"VCF"}[r&15];if(!i)throw new Error(`invalid Tabix preset format flags ${r}`);const s={ref:e.readInt32LE(n+4),start:e.readInt32LE(n+8),end:e.readInt32LE(n+12)},a=e.readInt32LE(n+16),c=a?String.fromCharCode(a):null,l=e.readInt32LE(n+20),u=e.readInt32LE(n+24),{refIdToName:f,refNameToId:h}=this._parseNameBytes(e.slice(n+28,n+28+u));return{refIdToName:f,refNameToId:h,skipLines:l,metaChar:c,columnNumbers:s,format:i,coordinateType:o}}_parseNameBytes(e){let n=0,r=0;const o=[],i={};for(let s=0;s<e.length;s+=1)if(!e[s]){if(r<s){let a=e.toString("utf8",r,s);a=this.renameRefSeq(a),o[n]=a,i[a]=n}r=s+1,n+=1}return{refNameToId:i,refIdToName:o}}async _parse(e={}){const n=await Nr(await this.filehandle.readFile(e));let r;if(n.readUInt32LE(0)===X9)r=1;else if(n.readUInt32LE(0)===K9)r=2;else throw new Error("Not a CSI file");this.minShift=n.readInt32LE(4),this.depth=n.readInt32LE(8),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const o=2**(this.minShift+this.depth*3),i=n.readInt32LE(12),s=i&&i>=30?this.parseAuxData(n,16):{refIdToName:[],refNameToId:{},metaChar:null,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},a=n.readInt32LE(16+i);let c,l=16+i+4;const u=new Array(a).fill(0).map(()=>{const f=n.readInt32LE(l);l+=4;const h={};let d;for(let p=0;p<f;p+=1){const y=n.readUInt32LE(l);if(y>this.maxBinNumber)d=this.parsePseudoBin(n,l+4),l+=48;else{const v=Mo(n,l+4);c=this._findFirstData(c,v);const b=n.readInt32LE(l+12);l+=16;const A=new Array(b);for(let S=0;S<b;S+=1){const E=Mo(n,l),I=Mo(n,l+8);l+=16,A[S]=new iu(E,I,y)}h[y]=A}}return{binIndex:h,stats:d}});return{...s,csi:!0,refCount:a,maxBlockSize:65536,firstDataLine:c,csiVersion:r,indices:u,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:o}}parsePseudoBin(e,n){return{lineCount:vx(Hl.fromBytesLE(e.slice(n+28,n+36),!0))}}async blocksForRange(e,n,r,o={}){n<0&&(n=0);const i=await this.parse(o),s=i.refNameToId[e];if(s===void 0)return[];const a=i.indices[s];if(!a)return[];const c=this.reg2bins(n,r),l=[];for(const[u,f]of c)for(let h=u;h<=f;h++)if(a.binIndex[h])for(const d of a.binIndex[h])l.push(new iu(d.minv,d.maxv,h));return Ax(l,new Xd(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let r=0,o=0,i=this.minShift+this.depth*3;const s=[];for(;r<=this.depth;i-=3,o+=J9(1,r*3),r+=1){const a=o+Cx(e,i),c=o+Cx(n,i);if(c-a+s.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);s.push([a,c])}return s}}function $9(t){return/^[\u0000-\u007F]*$/.test(t)}const Lo=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;class eM{constructor({path:e,filehandle:n,url:r,tbiPath:o,tbiUrl:i,tbiFilehandle:s,csiPath:a,csiUrl:c,csiFilehandle:l,renameRefSeqs:u=h=>h,chunkCacheSize:f=5*2**20}){if(n)this.filehandle=n;else if(e)this.filehandle=new Ct(e);else if(r)this.filehandle=new Sn(r);else throw new TypeError("must provide either filehandle or path");if(s)this.index=new Po({filehandle:s,renameRefSeqs:u});else if(l)this.index=new ou({filehandle:l,renameRefSeqs:u});else if(o)this.index=new Po({filehandle:new Ct(o),renameRefSeqs:u});else if(a)this.index=new ou({filehandle:new Ct(a),renameRefSeqs:u});else if(e)this.index=new Po({filehandle:new Ct(`${e}.tbi`),renameRefSeqs:u});else if(c)this.index=new ou({filehandle:new Sn(c)});else if(i)this.index=new Po({filehandle:new Sn(i)});else if(r)this.index=new Po({filehandle:new Sn(`${r}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=u,this.chunkCache=new Ti({cache:new ql({maxSize:Math.floor(f/65536)}),fill:(h,d)=>this.readChunk(h,{signal:d})})}async getLines(e,n,r,o){var i,s;let a,c={},l;typeof o=="function"?l=o:(c=o,l=o.lineCallback,a=o.signal);const u=await this.index.getMetadata(c);Ma(a);const f=n??0,h=r??u.maxRefLength;if(!(f<=h))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(f===h)return;const d=await this.index.blocksForRange(e,f,h,c);Ma(a);for(const p of d){const{buffer:y,cpositions:v,dpositions:b}=await this.chunkCache.get(p.toString(),p,a);Ma(a);let A=0,S=0;const E=(i=Lo==null?void 0:Lo.decode(y))!==null&&i!==void 0?i:y.toString(),I=y.length<5e8&&$9(E);for(;A<E.length;){let _,B;if(I){if(B=E.indexOf(`
|
|
815
|
+
`,A),B===-1)break;_=E.slice(A,B)}else{if(B=y.indexOf(`
|
|
816
|
+
`,A),B===-1)break;const M=y.slice(A,B);_=(s=Lo==null?void 0:Lo.decode(M))!==null&&s!==void 0?s:M.toString()}if(b){for(;A+p.minv.dataPosition>=b[S++];);S--}const{startCoordinate:N,overlaps:F}=this.checkLine(u,e,f,h,_);if(F)l(_,v[S]*256+(A-b[S])+p.minv.dataPosition+1);else if(N!==void 0&&N>=h)return;A=B+1}}}async getMetadata(e={}){return this.index.getMetadata(e)}async getHeaderBuffer(e={}){const{firstDataLine:n,metaChar:r,maxBlockSize:o}=await this.getMetadata(e);Ma(e.signal);const i=((n==null?void 0:n.blockPosition)||0)+o,s=await this._readRegion(0,i,e),a=await Nr(s);if(r){let c=-1;const l=10,u=r.charCodeAt(0);for(let f=0;f<a.length&&!(f===c+1&&a[f]!==u);f+=1)a[f]===l&&(c=f);return a.subarray(0,c+1)}return a}async getHeader(e={}){return(await this.getHeaderBuffer(e)).toString("utf8")}async getReferenceSequenceNames(e={}){return(await this.getMetadata(e)).refIdToName}checkLine(e,n,r,o,i){const{columnNumbers:s,metaChar:a,coordinateType:c,format:l}=e;if(a&&i.startsWith(a))return{overlaps:!1};let{ref:u,start:f,end:h}=s;u||(u=0),f||(f=0),h||(h=0),l==="VCF"&&(h=8);const d=Math.max(u,f,h);let p=1,y=0,v="",b=-1/0;const A=i.length;for(let S=0;S<A+1;S++)if(i[S]===" "||S===A){if(p===u){if(this.renameRefSeq(i.slice(y,S))!==n)return{overlaps:!1}}else if(p===f){if(b=parseInt(i.slice(y,S),10),c==="1-based-closed"&&(b-=1),b>=o)return{startCoordinate:b,overlaps:!1};if((h===0||h===f)&&b+1<=r)return{startCoordinate:b,overlaps:!1}}else if(l==="VCF"&&p===4)v=i.slice(y,S);else if(p===h&&(l==="VCF"?this._getVcfEnd(b,v,i.slice(y,S)):Number.parseInt(i.slice(y,S),10))<=r)return{overlaps:!1};if(y=S+1,p+=1,p>d)break}return{startCoordinate:b,overlaps:!0}}_getVcfEnd(e,n,r){let o=e+n.length;const i=r.includes("SVTYPE=TRA");if(r[0]!=="."&&!i){let s=";";for(let a=0;a<r.length;a+=1){if(s===";"&&r.slice(a,a+4)==="END="){let c=r.indexOf(";",a);c===-1&&(c=r.length),o=parseInt(r.slice(a+4,c),10);break}s=r[a]}}else if(i)return e+1;return o}async lineCount(e,n={}){return this.index.lineCount(e,n)}async _readRegion(e,n,r={}){const o=Ke.Buffer.alloc(n),{bytesRead:i,buffer:s}=await this.filehandle.read(o,0,n,e,r);return s.subarray(0,i)}async readChunk(e,n={}){const r=await this._readRegion(e.minv.blockPosition,e.fetchedSize(),n);return B2(r,e)}}const tM=Object.freeze(Object.defineProperty({__proto__:null,CSI:ou,TBI:Po,TabixIndexedFile:eM},Symbol.toStringTag,{value:"Module"}));var su={exports:{}},Ix;function Kd(){if(Ix)return su.exports;Ix=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(I,_,B){return Function.prototype.apply.call(I,_,B)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(I){return Object.getOwnPropertyNames(I).concat(Object.getOwnPropertySymbols(I))}:n=function(I){return Object.getOwnPropertyNames(I)};function r(E){console&&console.warn&&console.warn(E)}var o=Number.isNaN||function(I){return I!==I};function i(){i.init.call(this)}su.exports=i,su.exports.once=b,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(E){if(typeof E!="number"||E<0||o(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");s=E}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(I){if(typeof I!="number"||I<0||o(I))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+I+".");return this._maxListeners=I,this};function c(E){return E._maxListeners===void 0?i.defaultMaxListeners:E._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(I){for(var _=[],B=1;B<arguments.length;B++)_.push(arguments[B]);var N=I==="error",F=this._events;if(F!==void 0)N=N&&F.error===void 0;else if(!N)return!1;if(N){var M;if(_.length>0&&(M=_[0]),M instanceof Error)throw M;var C=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw C.context=M,C}var Y=F[I];if(Y===void 0)return!1;if(typeof Y=="function")e(Y,this,_);else for(var Q=Y.length,se=p(Y,Q),B=0;B<Q;++B)e(se[B],this,_);return!0};function l(E,I,_,B){var N,F,M;if(a(_),F=E._events,F===void 0?(F=E._events=Object.create(null),E._eventsCount=0):(F.newListener!==void 0&&(E.emit("newListener",I,_.listener?_.listener:_),F=E._events),M=F[I]),M===void 0)M=F[I]=_,++E._eventsCount;else if(typeof M=="function"?M=F[I]=B?[_,M]:[M,_]:B?M.unshift(_):M.push(_),N=c(E),N>0&&M.length>N&&!M.warned){M.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=E,C.type=I,C.count=M.length,r(C)}return E}i.prototype.addListener=function(I,_){return l(this,I,_,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(I,_){return l(this,I,_,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(E,I,_){var B={fired:!1,wrapFn:void 0,target:E,type:I,listener:_},N=u.bind(B);return N.listener=_,B.wrapFn=N,N}i.prototype.once=function(I,_){return a(_),this.on(I,f(this,I,_)),this},i.prototype.prependOnceListener=function(I,_){return a(_),this.prependListener(I,f(this,I,_)),this},i.prototype.removeListener=function(I,_){var B,N,F,M,C;if(a(_),N=this._events,N===void 0)return this;if(B=N[I],B===void 0)return this;if(B===_||B.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete N[I],N.removeListener&&this.emit("removeListener",I,B.listener||_));else if(typeof B!="function"){for(F=-1,M=B.length-1;M>=0;M--)if(B[M]===_||B[M].listener===_){C=B[M].listener,F=M;break}if(F<0)return this;F===0?B.shift():y(B,F),B.length===1&&(N[I]=B[0]),N.removeListener!==void 0&&this.emit("removeListener",I,C||_)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(I){var _,B,N;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):B[I]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete B[I]),this;if(arguments.length===0){var F=Object.keys(B),M;for(N=0;N<F.length;++N)M=F[N],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(_=B[I],typeof _=="function")this.removeListener(I,_);else if(_!==void 0)for(N=_.length-1;N>=0;N--)this.removeListener(I,_[N]);return this};function h(E,I,_){var B=E._events;if(B===void 0)return[];var N=B[I];return N===void 0?[]:typeof N=="function"?_?[N.listener||N]:[N]:_?v(N):p(N,N.length)}i.prototype.listeners=function(I){return h(this,I,!0)},i.prototype.rawListeners=function(I){return h(this,I,!1)},i.listenerCount=function(E,I){return typeof E.listenerCount=="function"?E.listenerCount(I):d.call(E,I)},i.prototype.listenerCount=d;function d(E){var I=this._events;if(I!==void 0){var _=I[E];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function p(E,I){for(var _=new Array(I),B=0;B<I;++B)_[B]=E[B];return _}function y(E,I){for(;I+1<E.length;I++)E[I]=E[I+1];E.pop()}function v(E){for(var I=new Array(E.length),_=0;_<I.length;++_)I[_]=E[_].listener||E[_];return I}function b(E,I){return new Promise(function(_,B){function N(M){E.removeListener(I,F),B(M)}function F(){typeof E.removeListener=="function"&&E.removeListener("error",N),_([].slice.call(arguments))}S(E,I,F,{once:!0}),I!=="error"&&A(E,N,{once:!0})})}function A(E,I,_){typeof E.on=="function"&&S(E,"error",I,_)}function S(E,I,_,B){if(typeof E.on=="function")B.once?E.once(I,_):E.on(I,_);else if(typeof E.addEventListener=="function")E.addEventListener(I,function N(F){B.once&&E.removeEventListener(I,N),_(F)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof E)}return su.exports}var au={exports:{}},Tx;function Oo(){return Tx||(Tx=1,typeof Object.create=="function"?au.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:au.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}),au.exports}var Jd,Dx;function Bx(){return Dx||(Dx=1,Jd=Kd().EventEmitter),Jd}const kx=V_(Y_);var $d,_x;function nM(){if(_x)return $d;_x=1;function t(p,y){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);y&&(b=b.filter(function(A){return Object.getOwnPropertyDescriptor(p,A).enumerable})),v.push.apply(v,b)}return v}function e(p){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?t(Object(v),!0).forEach(function(b){n(p,b,v[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach(function(b){Object.defineProperty(p,b,Object.getOwnPropertyDescriptor(v,b))})}return p}function n(p,y,v){return y=s(y),y in p?Object.defineProperty(p,y,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[y]=v,p}function r(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function o(p,y){for(var v=0;v<y.length;v++){var b=y[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,s(b.key),b)}}function i(p,y,v){return y&&o(p.prototype,y),Object.defineProperty(p,"prototype",{writable:!1}),p}function s(p){var y=a(p,"string");return typeof y=="symbol"?y:String(y)}function a(p,y){if(typeof p!="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var b=v.call(p,y);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}var c=Ia(),l=c.Buffer,u=kx,f=u.inspect,h=f&&f.custom||"inspect";function d(p,y,v){l.prototype.copy.call(p,y,v)}return $d=function(){function p(){r(this,p),this.head=null,this.tail=null,this.length=0}return i(p,[{key:"push",value:function(v){var b={data:v,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(v){var b={data:v,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var b=this.head,A=""+b.data;b=b.next;)A+=v+b.data;return A}},{key:"concat",value:function(v){if(this.length===0)return l.alloc(0);for(var b=l.allocUnsafe(v>>>0),A=this.head,S=0;A;)d(A.data,b,S),S+=A.data.length,A=A.next;return b}},{key:"consume",value:function(v,b){var A;return v<this.head.data.length?(A=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?A=this.shift():A=b?this._getString(v):this._getBuffer(v),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var b=this.head,A=1,S=b.data;for(v-=S.length;b=b.next;){var E=b.data,I=v>E.length?E.length:v;if(I===E.length?S+=E:S+=E.slice(0,v),v-=I,v===0){I===E.length?(++A,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=E.slice(I));break}++A}return this.length-=A,S}},{key:"_getBuffer",value:function(v){var b=l.allocUnsafe(v),A=this.head,S=1;for(A.data.copy(b),v-=A.data.length;A=A.next;){var E=A.data,I=v>E.length?E.length:v;if(E.copy(b,b.length-v,0,I),v-=I,v===0){I===E.length?(++S,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=E.slice(I));break}++S}return this.length-=S,b}},{key:h,value:function(v,b){return f(this,e(e({},b),{},{depth:0,customInspect:!1}))}}]),p}(),$d}var e0,Rx;function Fx(){if(Rx)return e0;Rx=1;function t(s,a){var c=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,s)):process.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(f){!a&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(n,c):(c._writableState.errorEmitted=!0,process.nextTick(e,c,f)):process.nextTick(e,c,f):a?(process.nextTick(n,c),a(f)):process.nextTick(n,c)}),this)}function e(s,a){o(s,a),n(s)}function n(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(s,a){s.emit("error",a)}function i(s,a){var c=s._readableState,l=s._writableState;c&&c.autoDestroy||l&&l.autoDestroy?s.destroy(a):s.emit("error",a)}return e0={destroy:t,undestroy:r,errorOrDestroy:i},e0}var t0={},Mx;function No(){if(Mx)return t0;Mx=1;function t(a,c){a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c}var e={};function n(a,c,l){l||(l=Error);function u(h,d,p){return typeof c=="string"?c:c(h,d,p)}var f=function(h){t(d,h);function d(p,y,v){return h.call(this,u(p,y,v))||this}return d}(l);f.prototype.name=l.name,f.prototype.code=a,e[a]=f}function r(a,c){if(Array.isArray(a)){var l=a.length;return a=a.map(function(u){return String(u)}),l>2?"one of ".concat(c," ").concat(a.slice(0,l-1).join(", "),", or ")+a[l-1]:l===2?"one of ".concat(c," ").concat(a[0]," or ").concat(a[1]):"of ".concat(c," ").concat(a[0])}else return"of ".concat(c," ").concat(String(a))}function o(a,c,l){return a.substr(0,c.length)===c}function i(a,c,l){return(l===void 0||l>a.length)&&(l=a.length),a.substring(l-c.length,l)===c}function s(a,c,l){return typeof l!="number"&&(l=0),l+c.length>a.length?!1:a.indexOf(c,l)!==-1}return n("ERR_INVALID_OPT_VALUE",function(a,c){return'The value "'+c+'" is invalid for option "'+a+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(a,c,l){var u;typeof c=="string"&&o(c,"not ")?(u="must not be",c=c.replace(/^not /,"")):u="must be";var f;if(i(a," argument"))f="The ".concat(a," ").concat(u," ").concat(r(c,"type"));else{var h=s(a,".")?"property":"argument";f='The "'.concat(a,'" ').concat(h," ").concat(u," ").concat(r(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t0.codes=e,t0}var n0,Px;function Lx(){if(Px)return n0;Px=1;var t=No().codes.ERR_INVALID_OPT_VALUE;function e(r,o,i){return r.highWaterMark!=null?r.highWaterMark:o?r[i]:null}function n(r,o,i,s){var a=e(o,s,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var c=s?i:"highWaterMark";throw new t(c,a)}return Math.floor(a)}return r.objectMode?16:16*1024}return n0={getHighWaterMark:n},n0}var r0,Ox;function rM(){if(Ox)return r0;Ox=1,r0=t;function t(n,r){if(e("noDeprecation"))return n;var o=!1;function i(){if(!o){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),o=!0}return n.apply(this,arguments)}return i}function e(n){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return r0}var i0,Nx;function zx(){if(Nx)return i0;Nx=1,i0=N;function t(q){var j=this;this.next=null,this.entry=null,this.finish=function(){Ve(j,q)}}var e;N.WritableState=_;var n={deprecate:rM()},r=Bx(),o=Ia().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(q){return o.from(q)}function a(q){return o.isBuffer(q)||q instanceof i}var c=Fx(),l=Lx(),u=l.getHighWaterMark,f=No().codes,h=f.ERR_INVALID_ARG_TYPE,d=f.ERR_METHOD_NOT_IMPLEMENTED,p=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,A=f.ERR_STREAM_WRITE_AFTER_END,S=f.ERR_UNKNOWN_ENCODING,E=c.errorOrDestroy;Oo()(N,r);function I(){}function _(q,j,ee){e=e||zo(),q=q||{},typeof ee!="boolean"&&(ee=j instanceof e),this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",ee),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var J=q.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(fe){ae(j,fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}_.prototype.getBuffer=function(){for(var j=this.bufferedRequest,ee=[];j;)ee.push(j),j=j.next;return ee},function(){try{Object.defineProperty(_.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var B;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(j){return B.call(this,j)?!0:this!==N?!1:j&&j._writableState instanceof _}})):B=function(j){return j instanceof this};function N(q){e=e||zo();var j=this instanceof e;if(!j&&!B.call(N,this))return new N(q);this._writableState=new _(q,this,j),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}N.prototype.pipe=function(){E(this,new y)};function F(q,j){var ee=new A;E(q,ee),process.nextTick(j,ee)}function M(q,j,ee,J){var fe;return ee===null?fe=new b:typeof ee!="string"&&!j.objectMode&&(fe=new h("chunk",["string","Buffer"],ee)),fe?(E(q,fe),process.nextTick(J,fe),!1):!0}N.prototype.write=function(q,j,ee){var J=this._writableState,fe=!1,L=!J.objectMode&&a(q);return L&&!o.isBuffer(q)&&(q=s(q)),typeof j=="function"&&(ee=j,j=null),L?j="buffer":j||(j=J.defaultEncoding),typeof ee!="function"&&(ee=I),J.ending?F(this,ee):(L||M(this,J,q,ee))&&(J.pendingcb++,fe=Y(this,J,L,q,j,ee)),fe},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&he(this,q))},N.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(q,j,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof j=="string"&&(j=o.from(j,ee)),j}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(q,j,ee,J,fe,L){if(!ee){var D=C(j,J,fe);J!==D&&(ee=!0,fe="buffer",J=D)}var te=j.objectMode?1:J.length;j.length+=te;var le=j.length<j.highWaterMark;if(le||(j.needDrain=!0),j.writing||j.corked){var Be=j.lastBufferedRequest;j.lastBufferedRequest={chunk:J,encoding:fe,isBuf:ee,callback:L,next:null},Be?Be.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else Q(q,j,!1,te,J,fe,L);return le}function Q(q,j,ee,J,fe,L,D){j.writelen=J,j.writecb=D,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new v("write")):ee?q._writev(fe,j.onwrite):q._write(fe,L,j.onwrite),j.sync=!1}function se(q,j,ee,J,fe){--j.pendingcb,ee?(process.nextTick(fe,J),process.nextTick(Te,q,j),q._writableState.errorEmitted=!0,E(q,J)):(fe(J),q._writableState.errorEmitted=!0,E(q,J),Te(q,j))}function oe(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function ae(q,j){var ee=q._writableState,J=ee.sync,fe=ee.writecb;if(typeof fe!="function")throw new p;if(oe(ee),j)se(q,ee,J,j,fe);else{var L=De(ee)||q.destroyed;!L&&!ee.corked&&!ee.bufferProcessing&&ee.bufferedRequest&&he(q,ee),J?process.nextTick(ce,q,ee,L,fe):ce(q,ee,L,fe)}}function ce(q,j,ee,J){ee||ye(q,j),j.pendingcb--,J(),Te(q,j)}function ye(q,j){j.length===0&&j.needDrain&&(j.needDrain=!1,q.emit("drain"))}function he(q,j){j.bufferProcessing=!0;var ee=j.bufferedRequest;if(q._writev&&ee&&ee.next){var J=j.bufferedRequestCount,fe=new Array(J),L=j.corkedRequestsFree;L.entry=ee;for(var D=0,te=!0;ee;)fe[D]=ee,ee.isBuf||(te=!1),ee=ee.next,D+=1;fe.allBuffers=te,Q(q,j,!0,j.length,fe,"",L.finish),j.pendingcb++,j.lastBufferedRequest=null,L.next?(j.corkedRequestsFree=L.next,L.next=null):j.corkedRequestsFree=new t(j),j.bufferedRequestCount=0}else{for(;ee;){var le=ee.chunk,Be=ee.encoding,ve=ee.callback,Ae=j.objectMode?1:le.length;if(Q(q,j,!1,Ae,le,Be,ve),ee=ee.next,j.bufferedRequestCount--,j.writing)break}ee===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=ee,j.bufferProcessing=!1}N.prototype._write=function(q,j,ee){ee(new d("_write()"))},N.prototype._writev=null,N.prototype.end=function(q,j,ee){var J=this._writableState;return typeof q=="function"?(ee=q,q=null,j=null):typeof j=="function"&&(ee=j,j=null),q!=null&&this.write(q,j),J.corked&&(J.corked=1,this.uncork()),J.ending||Ge(this,J,ee),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function De(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function we(q,j){q._final(function(ee){j.pendingcb--,ee&&E(q,ee),j.prefinished=!0,q.emit("prefinish"),Te(q,j)})}function Ee(q,j){!j.prefinished&&!j.finalCalled&&(typeof q._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,process.nextTick(we,q,j)):(j.prefinished=!0,q.emit("prefinish")))}function Te(q,j){var ee=De(j);if(ee&&(Ee(q,j),j.pendingcb===0&&(j.finished=!0,q.emit("finish"),j.autoDestroy))){var J=q._readableState;(!J||J.autoDestroy&&J.endEmitted)&&q.destroy()}return ee}function Ge(q,j,ee){j.ending=!0,Te(q,j),ee&&(j.finished?process.nextTick(ee):q.once("finish",ee)),j.ended=!0,q.writable=!1}function Ve(q,j,ee){var J=q.entry;for(q.entry=null;J;){var fe=J.callback;j.pendingcb--,fe(ee),J=J.next}j.corkedRequestsFree.next=q}return Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),N.prototype.destroy=c.destroy,N.prototype._undestroy=c.undestroy,N.prototype._destroy=function(q,j){j(q)},i0}var o0,Ux;function zo(){if(Ux)return o0;Ux=1;var t=Object.keys||function(l){var u=[];for(var f in l)u.push(f);return u};o0=s;var e=Yx(),n=zx();Oo()(s,e);for(var r=t(n.prototype),o=0;o<r.length;o++){var i=r[o];s.prototype[i]||(s.prototype[i]=n.prototype[i])}function s(l){if(!(this instanceof s))return new s(l);e.call(this,l),n.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||process.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),o0}var s0={},cu={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Gx;function iM(){return Gx||(Gx=1,function(t,e){var n=Ia(),r=n.Buffer;function o(s,a){for(var c in s)a[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=i);function i(s,a,c){return r(s,a,c)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(s,a,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,a,c)},i.alloc=function(s,a,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=r(s);return a!==void 0?typeof c=="string"?l.fill(a,c):l.fill(a):l.fill(0),l},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}}(cu,cu.exports)),cu.exports}var Hx;function a0(){if(Hx)return s0;Hx=1;var t=iM().Buffer,e=t.isEncoding||function(b){switch(b=""+b,b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(b){if(!b)return"utf8";for(var A;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(A)return;b=(""+b).toLowerCase(),A=!0}}function r(b){var A=n(b);if(typeof A!="string"&&(t.isEncoding===e||!e(b)))throw new Error("Unknown encoding: "+b);return A||b}s0.StringDecoder=o;function o(b){this.encoding=r(b);var A;switch(this.encoding){case"utf16le":this.text=f,this.end=h,A=4;break;case"utf8":this.fillLast=c,A=4;break;case"base64":this.text=d,this.end=p,A=3;break;default:this.write=y,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(A)}o.prototype.write=function(b){if(b.length===0)return"";var A,S;if(this.lastNeed){if(A=this.fillLast(b),A===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<b.length?A?A+this.text(b,S):this.text(b,S):A||""},o.prototype.end=u,o.prototype.text=l,o.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function i(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function s(b,A,S){var E=A.length-1;if(E<S)return 0;var I=i(A[E]);return I>=0?(I>0&&(b.lastNeed=I-1),I):--E<S||I===-2?0:(I=i(A[E]),I>=0?(I>0&&(b.lastNeed=I-2),I):--E<S||I===-2?0:(I=i(A[E]),I>=0?(I>0&&(I===2?I=0:b.lastNeed=I-3),I):0))}function a(b,A,S){if((A[0]&192)!==128)return b.lastNeed=0,"�";if(b.lastNeed>1&&A.length>1){if((A[1]&192)!==128)return b.lastNeed=1,"�";if(b.lastNeed>2&&A.length>2&&(A[2]&192)!==128)return b.lastNeed=2,"�"}}function c(b){var A=this.lastTotal-this.lastNeed,S=a(this,b);if(S!==void 0)return S;if(this.lastNeed<=b.length)return b.copy(this.lastChar,A,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,A,0,b.length),this.lastNeed-=b.length}function l(b,A){var S=s(this,b,A);if(!this.lastNeed)return b.toString("utf8",A);this.lastTotal=S;var E=b.length-(S-this.lastNeed);return b.copy(this.lastChar,0,E),b.toString("utf8",A,E)}function u(b){var A=b&&b.length?this.write(b):"";return this.lastNeed?A+"�":A}function f(b,A){if((b.length-A)%2===0){var S=b.toString("utf16le",A);if(S){var E=S.charCodeAt(S.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",A,b.length-1)}function h(b){var A=b&&b.length?this.write(b):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return A+this.lastChar.toString("utf16le",0,S)}return A}function d(b,A){var S=(b.length-A)%3;return S===0?b.toString("base64",A):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",A,b.length-S))}function p(b){var A=b&&b.length?this.write(b):"";return this.lastNeed?A+this.lastChar.toString("base64",0,3-this.lastNeed):A}function y(b){return b.toString(this.encoding)}function v(b){return b&&b.length?this.write(b):""}return s0}var c0,Vx;function l0(){if(Vx)return c0;Vx=1;var t=No().codes.ERR_STREAM_PREMATURE_CLOSE;function e(i){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];i.apply(this,c)}}}function n(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function o(i,s,a){if(typeof s=="function")return o(i,null,s);s||(s={}),a=e(a||n);var c=s.readable||s.readable!==!1&&i.readable,l=s.writable||s.writable!==!1&&i.writable,u=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||a.call(i)},d=i._readableState&&i._readableState.endEmitted,p=function(){c=!1,d=!0,l||a.call(i)},y=function(S){a.call(i,S)},v=function(){var S;if(c&&!d)return(!i._readableState||!i._readableState.ended)&&(S=new t),a.call(i,S);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(S=new t),a.call(i,S)},b=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",v),i.req?b():i.on("request",b)):l&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",p),i.on("finish",h),s.error!==!1&&i.on("error",y),i.on("close",v),function(){i.removeListener("complete",h),i.removeListener("abort",v),i.removeListener("request",b),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",p),i.removeListener("error",y),i.removeListener("close",v)}}return c0=o,c0}var u0,qx;function oM(){if(qx)return u0;qx=1;var t;function e(S,E,I){return E=n(E),E in S?Object.defineProperty(S,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[E]=I,S}function n(S){var E=r(S,"string");return typeof E=="symbol"?E:String(E)}function r(S,E){if(typeof S!="object"||S===null)return S;var I=S[Symbol.toPrimitive];if(I!==void 0){var _=I.call(S,E);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}var o=l0(),i=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function h(S,E){return{value:S,done:E}}function d(S){var E=S[i];if(E!==null){var I=S[f].read();I!==null&&(S[l]=null,S[i]=null,S[s]=null,E(h(I,!1)))}}function p(S){process.nextTick(d,S)}function y(S,E){return function(I,_){S.then(function(){if(E[c]){I(h(void 0,!0));return}E[u](I,_)},_)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((t={get stream(){return this[f]},next:function(){var E=this,I=this[a];if(I!==null)return Promise.reject(I);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(F,M){process.nextTick(function(){E[a]?M(E[a]):F(h(void 0,!0))})});var _=this[l],B;if(_)B=new Promise(y(_,this));else{var N=this[f].read();if(N!==null)return Promise.resolve(h(N,!1));B=new Promise(this[u])}return this[l]=B,B}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var E=this;return new Promise(function(I,_){E[f].destroy(null,function(B){if(B){_(B);return}I(h(void 0,!0))})})}),t),v),A=function(E){var I,_=Object.create(b,(I={},e(I,f,{value:E,writable:!0}),e(I,i,{value:null,writable:!0}),e(I,s,{value:null,writable:!0}),e(I,a,{value:null,writable:!0}),e(I,c,{value:E._readableState.endEmitted,writable:!0}),e(I,u,{value:function(N,F){var M=_[f].read();M?(_[l]=null,_[i]=null,_[s]=null,N(h(M,!1))):(_[i]=N,_[s]=F)},writable:!0}),I));return _[l]=null,o(E,function(B){if(B&&B.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=_[s];N!==null&&(_[l]=null,_[i]=null,_[s]=null,N(B)),_[a]=B;return}var F=_[i];F!==null&&(_[l]=null,_[i]=null,_[s]=null,F(h(void 0,!0))),_[c]=!0}),E.on("readable",p.bind(null,_)),_};return u0=A,u0}var f0,jx;function sM(){return jx||(jx=1,f0=function(){throw new Error("Readable.from is not available in the browser")}),f0}var h0,Wx;function Yx(){if(Wx)return h0;Wx=1,h0=F;var t;F.ReadableState=N,Kd().EventEmitter;var e=function(D,te){return D.listeners(te).length},n=Bx(),r=Ia().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(L){return r.from(L)}function s(L){return r.isBuffer(L)||L instanceof o}var a=kx,c;a&&a.debuglog?c=a.debuglog("stream"):c=function(){};var l=nM(),u=Fx(),f=Lx(),h=f.getHighWaterMark,d=No().codes,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_STREAM_PUSH_AFTER_EOF,v=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,S,E;Oo()(F,n);var I=u.errorOrDestroy,_=["error","close","destroy","pause","resume"];function B(L,D,te){if(typeof L.prependListener=="function")return L.prependListener(D,te);!L._events||!L._events[D]?L.on(D,te):Array.isArray(L._events[D])?L._events[D].unshift(te):L._events[D]=[te,L._events[D]]}function N(L,D,te){t=t||zo(),L=L||{},typeof te!="boolean"&&(te=D instanceof t),this.objectMode=!!L.objectMode,te&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=h(this,L,"readableHighWaterMark",te),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(A||(A=a0().StringDecoder),this.decoder=new A(L.encoding),this.encoding=L.encoding)}function F(L){if(t=t||zo(),!(this instanceof F))return new F(L);var D=this instanceof t;this._readableState=new N(L,this,D),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),n.call(this)}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),F.prototype.destroy=u.destroy,F.prototype._undestroy=u.undestroy,F.prototype._destroy=function(L,D){D(L)},F.prototype.push=function(L,D){var te=this._readableState,le;return te.objectMode?le=!0:typeof L=="string"&&(D=D||te.defaultEncoding,D!==te.encoding&&(L=r.from(L,D),D=""),le=!0),M(this,L,D,!1,le)},F.prototype.unshift=function(L){return M(this,L,null,!0,!1)};function M(L,D,te,le,Be){c("readableAddChunk",D);var ve=L._readableState;if(D===null)ve.reading=!1,ae(L,ve);else{var Ae;if(Be||(Ae=Y(ve,D)),Ae)I(L,Ae);else if(ve.objectMode||D&&D.length>0)if(typeof D!="string"&&!ve.objectMode&&Object.getPrototypeOf(D)!==r.prototype&&(D=i(D)),le)ve.endEmitted?I(L,new b):C(L,ve,D,!0);else if(ve.ended)I(L,new y);else{if(ve.destroyed)return!1;ve.reading=!1,ve.decoder&&!te?(D=ve.decoder.write(D),ve.objectMode||D.length!==0?C(L,ve,D,!1):he(L,ve)):C(L,ve,D,!1)}else le||(ve.reading=!1,he(L,ve))}return!ve.ended&&(ve.length<ve.highWaterMark||ve.length===0)}function C(L,D,te,le){D.flowing&&D.length===0&&!D.sync?(D.awaitDrain=0,L.emit("data",te)):(D.length+=D.objectMode?1:te.length,le?D.buffer.unshift(te):D.buffer.push(te),D.needReadable&&ce(L)),he(L,D)}function Y(L,D){var te;return!s(D)&&typeof D!="string"&&D!==void 0&&!L.objectMode&&(te=new p("chunk",["string","Buffer","Uint8Array"],D)),te}F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(L){A||(A=a0().StringDecoder);var D=new A(L);this._readableState.decoder=D,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,le="";te!==null;)le+=D.write(te.data),te=te.next;return this._readableState.buffer.clear(),le!==""&&this._readableState.buffer.push(le),this._readableState.length=le.length,this};var Q=1073741824;function se(L){return L>=Q?L=Q:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function oe(L,D){return L<=0||D.length===0&&D.ended?0:D.objectMode?1:L!==L?D.flowing&&D.length?D.buffer.head.data.length:D.length:(L>D.highWaterMark&&(D.highWaterMark=se(L)),L<=D.length?L:D.ended?D.length:(D.needReadable=!0,0))}F.prototype.read=function(L){c("read",L),L=parseInt(L,10);var D=this._readableState,te=L;if(L!==0&&(D.emittedReadable=!1),L===0&&D.needReadable&&((D.highWaterMark!==0?D.length>=D.highWaterMark:D.length>0)||D.ended))return c("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?ee(this):ce(this),null;if(L=oe(L,D),L===0&&D.ended)return D.length===0&&ee(this),null;var le=D.needReadable;c("need readable",le),(D.length===0||D.length-L<D.highWaterMark)&&(le=!0,c("length less than watermark",le)),D.ended||D.reading?(le=!1,c("reading or ended",le)):le&&(c("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(L=oe(te,D)));var Be;return L>0?Be=j(L,D):Be=null,Be===null?(D.needReadable=D.length<=D.highWaterMark,L=0):(D.length-=L,D.awaitDrain=0),D.length===0&&(D.ended||(D.needReadable=!0),te!==L&&D.ended&&ee(this)),Be!==null&&this.emit("data",Be),Be};function ae(L,D){if(c("onEofChunk"),!D.ended){if(D.decoder){var te=D.decoder.end();te&&te.length&&(D.buffer.push(te),D.length+=D.objectMode?1:te.length)}D.ended=!0,D.sync?ce(L):(D.needReadable=!1,D.emittedReadable||(D.emittedReadable=!0,ye(L)))}}function ce(L){var D=L._readableState;c("emitReadable",D.needReadable,D.emittedReadable),D.needReadable=!1,D.emittedReadable||(c("emitReadable",D.flowing),D.emittedReadable=!0,process.nextTick(ye,L))}function ye(L){var D=L._readableState;c("emitReadable_",D.destroyed,D.length,D.ended),!D.destroyed&&(D.length||D.ended)&&(L.emit("readable"),D.emittedReadable=!1),D.needReadable=!D.flowing&&!D.ended&&D.length<=D.highWaterMark,q(L)}function he(L,D){D.readingMore||(D.readingMore=!0,process.nextTick(De,L,D))}function De(L,D){for(;!D.reading&&!D.ended&&(D.length<D.highWaterMark||D.flowing&&D.length===0);){var te=D.length;if(c("maybeReadMore read 0"),L.read(0),te===D.length)break}D.readingMore=!1}F.prototype._read=function(L){I(this,new v("_read()"))},F.prototype.pipe=function(L,D){var te=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=L;break;case 1:le.pipes=[le.pipes,L];break;default:le.pipes.push(L);break}le.pipesCount+=1,c("pipe count=%d opts=%j",le.pipesCount,D);var Be=(!D||D.end!==!1)&&L!==process.stdout&&L!==process.stderr,ve=Be?Re:Ut;le.endEmitted?process.nextTick(ve):te.once("end",ve),L.on("unpipe",Ae);function Ae(k,m){c("onunpipe"),k===te&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,It())}function Re(){c("onend"),L.end()}var dt=we(te);L.on("drain",dt);var $t=!1;function It(){c("cleanup"),L.removeListener("close",zt),L.removeListener("finish",et),L.removeListener("drain",dt),L.removeListener("error",kt),L.removeListener("unpipe",Ae),te.removeListener("end",Re),te.removeListener("end",Ut),te.removeListener("data",$e),$t=!0,le.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&dt()}te.on("data",$e);function $e(k){c("ondata");var m=L.write(k);c("dest.write",m),m===!1&&((le.pipesCount===1&&le.pipes===L||le.pipesCount>1&&fe(le.pipes,L)!==-1)&&!$t&&(c("false write response, pause",le.awaitDrain),le.awaitDrain++),te.pause())}function kt(k){c("onerror",k),Ut(),L.removeListener("error",kt),e(L,"error")===0&&I(L,k)}B(L,"error",kt);function zt(){L.removeListener("finish",et),Ut()}L.once("close",zt);function et(){c("onfinish"),L.removeListener("close",zt),Ut()}L.once("finish",et);function Ut(){c("unpipe"),te.unpipe(L)}return L.emit("pipe",te),le.flowing||(c("pipe resume"),te.resume()),L};function we(L){return function(){var te=L._readableState;c("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&e(L,"data")&&(te.flowing=!0,q(L))}}F.prototype.unpipe=function(L){var D=this._readableState,te={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return L&&L!==D.pipes?this:(L||(L=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,L&&L.emit("unpipe",this,te),this);if(!L){var le=D.pipes,Be=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var ve=0;ve<Be;ve++)le[ve].emit("unpipe",this,{hasUnpiped:!1});return this}var Ae=fe(D.pipes,L);return Ae===-1?this:(D.pipes.splice(Ae,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),L.emit("unpipe",this,te),this)},F.prototype.on=function(L,D){var te=n.prototype.on.call(this,L,D),le=this._readableState;return L==="data"?(le.readableListening=this.listenerCount("readable")>0,le.flowing!==!1&&this.resume()):L==="readable"&&!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,c("on readable",le.length,le.reading),le.length?ce(this):le.reading||process.nextTick(Te,this)),te},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(L,D){var te=n.prototype.removeListener.call(this,L,D);return L==="readable"&&process.nextTick(Ee,this),te},F.prototype.removeAllListeners=function(L){var D=n.prototype.removeAllListeners.apply(this,arguments);return(L==="readable"||L===void 0)&&process.nextTick(Ee,this),D};function Ee(L){var D=L._readableState;D.readableListening=L.listenerCount("readable")>0,D.resumeScheduled&&!D.paused?D.flowing=!0:L.listenerCount("data")>0&&L.resume()}function Te(L){c("readable nexttick read 0"),L.read(0)}F.prototype.resume=function(){var L=this._readableState;return L.flowing||(c("resume"),L.flowing=!L.readableListening,Ge(this,L)),L.paused=!1,this};function Ge(L,D){D.resumeScheduled||(D.resumeScheduled=!0,process.nextTick(Ve,L,D))}function Ve(L,D){c("resume",D.reading),D.reading||L.read(0),D.resumeScheduled=!1,L.emit("resume"),q(L),D.flowing&&!D.reading&&L.read(0)}F.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(L){var D=L._readableState;for(c("flow",D.flowing);D.flowing&&L.read()!==null;);}F.prototype.wrap=function(L){var D=this,te=this._readableState,le=!1;L.on("end",function(){if(c("wrapped end"),te.decoder&&!te.ended){var Ae=te.decoder.end();Ae&&Ae.length&&D.push(Ae)}D.push(null)}),L.on("data",function(Ae){if(c("wrapped data"),te.decoder&&(Ae=te.decoder.write(Ae)),!(te.objectMode&&Ae==null)&&!(!te.objectMode&&(!Ae||!Ae.length))){var Re=D.push(Ae);Re||(le=!0,L.pause())}});for(var Be in L)this[Be]===void 0&&typeof L[Be]=="function"&&(this[Be]=function(Re){return function(){return L[Re].apply(L,arguments)}}(Be));for(var ve=0;ve<_.length;ve++)L.on(_[ve],this.emit.bind(this,_[ve]));return this._read=function(Ae){c("wrapped _read",Ae),le&&(le=!1,L.resume())},this},typeof Symbol=="function"&&(F.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=oM()),S(this)}),Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(F.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(F.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),F._fromList=j,Object.defineProperty(F.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(L,D){if(D.length===0)return null;var te;return D.objectMode?te=D.buffer.shift():!L||L>=D.length?(D.decoder?te=D.buffer.join(""):D.buffer.length===1?te=D.buffer.first():te=D.buffer.concat(D.length),D.buffer.clear()):te=D.buffer.consume(L,D.decoder),te}function ee(L){var D=L._readableState;c("endReadable",D.endEmitted),D.endEmitted||(D.ended=!0,process.nextTick(J,D,L))}function J(L,D){if(c("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,D.readable=!1,D.emit("end"),L.autoDestroy)){var te=D._writableState;(!te||te.autoDestroy&&te.finished)&&D.destroy()}}typeof Symbol=="function"&&(F.from=function(L,D){return E===void 0&&(E=sM()),E(F,L,D)});function fe(L,D){for(var te=0,le=L.length;te<le;te++)if(L[te]===D)return te;return-1}return h0}var d0,Qx;function Zx(){if(Qx)return d0;Qx=1,d0=a;var t=No().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=t.ERR_TRANSFORM_WITH_LENGTH_0,i=zo();Oo()(a,i);function s(u,f){var h=this._transformState;h.transforming=!1;var d=h.writecb;if(d===null)return this.emit("error",new n);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),d(u);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function a(u){if(!(this instanceof a))return new a(u);i.call(this,u),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",c)}function c(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(u,f,h)}):l(this,null,null)}a.prototype.push=function(u,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,f)},a.prototype._transform=function(u,f,h){h(new e("_transform()"))},a.prototype._write=function(u,f,h){var d=this._transformState;if(d.writecb=h,d.writechunk=u,d.writeencoding=f,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},a.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},a.prototype._destroy=function(u,f){i.prototype._destroy.call(this,u,function(h){f(h)})};function l(u,f,h){if(f)return u.emit("error",f);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new r;return u.push(null)}return d0}var p0,Xx;function aM(){if(Xx)return p0;Xx=1,p0=e;var t=Zx();Oo()(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,o){o(null,n)},p0}var g0,Kx;function cM(){if(Kx)return g0;Kx=1;var t;function e(h){var d=!1;return function(){d||(d=!0,h.apply(void 0,arguments))}}var n=No().codes,r=n.ERR_MISSING_ARGS,o=n.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function s(h){return h.setHeader&&typeof h.abort=="function"}function a(h,d,p,y){y=e(y);var v=!1;h.on("close",function(){v=!0}),t===void 0&&(t=l0()),t(h,{readable:d,writable:p},function(A){if(A)return y(A);v=!0,y()});var b=!1;return function(A){if(!v&&!b){if(b=!0,s(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();y(A||new o("pipe"))}}}function c(h){h()}function l(h,d){return h.pipe(d)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,d=new Array(h),p=0;p<h;p++)d[p]=arguments[p];var y=u(d);if(Array.isArray(d[0])&&(d=d[0]),d.length<2)throw new r("streams");var v,b=d.map(function(A,S){var E=S<d.length-1,I=S>0;return a(A,E,I,function(_){v||(v=_),_&&b.forEach(c),!E&&(b.forEach(c),y(v))})});return d.reduce(l)}return g0=f,g0}var m0,Jx;function lM(){if(Jx)return m0;Jx=1,m0=n;var t=Kd().EventEmitter,e=Oo();e(n,t),n.Readable=Yx(),n.Writable=zx(),n.Duplex=zo(),n.Transform=Zx(),n.PassThrough=aM(),n.finished=l0(),n.pipeline=cM(),n.Stream=n;function n(){t.call(this)}return n.prototype.pipe=function(r,o){var i=this;function s(d){r.writable&&r.write(d)===!1&&i.pause&&i.pause()}i.on("data",s);function a(){i.readable&&i.resume&&i.resume()}r.on("drain",a),!r._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",u));var c=!1;function l(){c||(c=!0,r.end())}function u(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function f(d){if(h(),t.listenerCount(this,"error")===0)throw d}i.on("error",f),r.on("error",f);function h(){i.removeListener("data",s),r.removeListener("drain",a),i.removeListener("end",l),i.removeListener("close",u),i.removeListener("error",f),r.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),r.removeListener("close",h)}return i.on("end",h),i.on("close",h),r.on("close",h),r.emit("pipe",i),r},m0}var $x=lM(),uM=a0();function Pa(t){return t.replace(/%([0-9A-Fa-f]{2})/g,(e,n)=>String.fromCharCode(parseInt(n,16)))}function ev(t,e){return String(e).replace(t,n=>`%${n.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function La(t){return ev(/[\n;\r\t=%&,\x00-\x1f\x7f-\xff]/g,t)}function ir(t){return ev(/[\n\r\t%\x00-\x1f\x7f-\xff]/g,t)}function tv(t){if(!(t&&t.length)||t===".")return{};const e={};return t.replace(/\r?\n$/,"").split(";").forEach(n=>{const r=n.split("=",2);if(!(r[1]&&r[1].length))return;r[0]=r[0].trim();let o=e[r[0].trim()];o||(o=[],e[r[0]]=o),o.push(...r[1].split(",").map(i=>i.trim()).map(Pa))}),e}function nv(t){const e=t.split(" ").map(r=>r==="."||r===""?null:r);return{seq_id:e[0]&&Pa(e[0]),source:e[1]&&Pa(e[1]),type:e[2]&&Pa(e[2]),start:e[3]===null?null:parseInt(e[3],10),end:e[4]===null?null:parseInt(e[4],10),score:e[5]===null?null:parseFloat(e[5]),strand:e[6],phase:e[7],attributes:e[8]===null?null:tv(e[8])}}function rv(t){const e=/^\s*##\s*(\S+)\s*(.*)/.exec(t);if(!e)return null;const[,n]=e;let[,,r]=e;const o={directive:n};if(r.length&&(r=r.replace(/\r?\n$/,""),o.value=r),n==="sequence-region"){const i=r.split(/\s+/,3);return{...o,seq_id:i[0],start:i[1]&&i[1].replace(/\D/g,""),end:i[2]&&i[2].replace(/\D/g,"")}}else if(n==="genome-build"){const[i,s]=r.split(/\s+/,2);return{...o,source:i,buildName:s}}return o}function iv(t){const e=[];return Object.entries(t).forEach(([n,r])=>{if(!r)return;let o;r.hasOwnProperty("toString")?o=La(r.toString()):Array.isArray(r)?o=r.map(La).join(","):o=La(r),e.push(`${La(n)}=${o}`)}),e.length?e.join(";"):"."}function fM(t,e){const n=t.attributes===null||t.attributes===void 0?".":iv(t.attributes),o=`${[t.seq_id===null?".":ir(t.seq_id),t.source===null?".":ir(t.source),t.type===null?".":ir(t.type),t.start===null?".":ir(t.start),t.end===null?".":ir(t.end),t.score===null?".":ir(t.score),t.strand===null?".":ir(t.strand),t.phase===null?".":ir(t.phase),n].join(" ")}
|
|
817
|
+
`;return e[o]?"":(e[o]=!0,o)}function lu(t,e){if(Array.isArray(t))return t.map(r=>lu(r,e)).join("");const n=[fM(t,e)];return hM(t)&&n.push(...t.child_features.map(r=>lu(r,e)),...t.derived_features.map(r=>lu(r,e))),n.join("")}function ov(t){return lu(t,{})}function sv(t){let e=`##${t.directive}`;return t.value&&(e+=` ${t.value}`),e+=`
|
|
818
|
+
`,e}function av(t){return`# ${t.comment}
|
|
819
|
+
`}function b0(t){return`>${t.id}${t.description?` ${t.description}`:""}
|
|
820
820
|
${t.sequence}
|
|
821
|
-
`}function
|
|
822
|
-
`}return Array.isArray(t)?t.map(e):e(t)}function
|
|
823
|
-
`,r+=n.map(
|
|
821
|
+
`}function uu(t){function e(n){return"attributes"in n?ov(n):"directive"in n?sv(n):"sequence"in n?b0(n):"comment"in n?av(n):`# (invalid item found during format)
|
|
822
|
+
`}return Array.isArray(t)?t.map(e):e(t)}function hM(t){return t.child_features!==void 0&&t.derived_features!==void 0}const dM=Object.freeze(Object.defineProperty({__proto__:null,escape:La,escapeColumn:ir,formatAttributes:iv,formatComment:av,formatDirective:sv,formatFeature:ov,formatItem:uu,formatSequence:b0,parseAttributes:tv,parseDirective:rv,parseFeature:nv,unescape:Pa},Symbol.toStringTag,{value:"Module"})),cv={Parent:"child_features",Derives_from:"derived_features"};class lv{constructor(e){this.seqCallback=e,this.currentSequence=void 0}addLine(e){const n=/^>\s*(\S+)\s*(.*)/.exec(e);n?(this._flush(),this.currentSequence={id:n[1],sequence:""},n[2]&&(this.currentSequence.description=n[2].trim())):this.currentSequence&&/\S/.test(e)&&(this.currentSequence.sequence+=e.replace(/\s/g,""))}_flush(){this.currentSequence&&this.seqCallback(this.currentSequence)}finish(){this._flush()}}class uv{constructor(e){this.fastaParser=void 0,this.eof=!1,this.lineNumber=0,this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={},this._underConstructionOrphans={};const n=()=>{};this.featureCallback=e.featureCallback||n,this.endCallback=e.endCallback||n,this.commentCallback=e.commentCallback||n,this.errorCallback=e.errorCallback||n,this.directiveCallback=e.directiveCallback||n,this.sequenceCallback=e.sequenceCallback||n,this.disableDerivesFromReferences=e.disableDerivesFromReferences||!1,this.bufferSize=e.bufferSize===void 0?1e3:e.bufferSize}addLine(e){if(this.fastaParser){this.fastaParser.addLine(e);return}if(this.eof)return;if(this.lineNumber+=1,/^\s*[^#\s>]/.test(e)){this._bufferLine(e);return}const n=/^\s*(#+)(.*)/.exec(e);if(n){const[,r]=n;let[,,o]=n;if(r.length===3)this._emitAllUnderConstructionFeatures();else if(r.length===2){const i=rv(e);i&&(i.directive==="FASTA"?(this._emitAllUnderConstructionFeatures(),this.eof=!0,this.fastaParser=new lv(this.sequenceCallback)):this._emitItem(i))}else o=o.replace(/\s*/,""),this._emitItem({comment:o})}else if(!/^\s*$/.test(e))if(/^\s*>/.test(e))this._emitAllUnderConstructionFeatures(),this.eof=!0,this.fastaParser=new lv(this.sequenceCallback),this.fastaParser.addLine(e);else{const r=e.replace(/\r?\n?$/g,"");throw new Error(`GFF3 parse error. Cannot parse '${r}'.`)}}finish(){this._emitAllUnderConstructionFeatures(),this.fastaParser&&this.fastaParser.finish(),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 n=r=>{r&&Array.isArray(r)&&r[0].attributes&&r[0].attributes.ID&&r[0].attributes.ID[0]&&(r[0].attributes.ID.forEach(i=>{delete this._underConstructionById[i],delete this._completedReferences[i]}),r.forEach(i=>{i.child_features&&i.child_features.forEach(s=>n(s)),i.derived_features&&i.derived_features.forEach(s=>n(s))}))};for(;this._underConstructionTopLevel.length+e>this.bufferSize;){const r=this._underConstructionTopLevel.shift();r&&(this._emitItem(r),n(r))}}_emitAllUnderConstructionFeatures(){if(this._underConstructionTopLevel.forEach(this._emitItem.bind(this)),this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={},Array.from(Object.values(this._underConstructionOrphans)).length)throw new Error(`some features reference other features that do not exist in the file (or in the same '###' scope). ${Object.keys(this._underConstructionOrphans)}`)}_bufferLine(e){var n,r,o;const s={...nv(e),child_features:[],derived_features:[]},a=((n=s.attributes)===null||n===void 0?void 0:n.ID)||[],c=((r=s.attributes)===null||r===void 0?void 0:r.Parent)||[],l=this.disableDerivesFromReferences?[]:((o=s.attributes)===null||o===void 0?void 0:o.Derives_from)||[];if(!a.length&&!c.length&&!l.length){this._emitItem([s]);return}let u;a.forEach(f=>{const h=this._underConstructionById[f];h?(h[h.length-1].type!==s.type&&this._parseError(`multi-line feature "${f}" has inconsistent types: "${s.type}", "${h[h.length-1].type}"`),h.push(s),u=h):(u=[s],this._enforceBufferSizeLimit(1),!c.length&&!l.length&&this._underConstructionTopLevel.push(u),this._underConstructionById[f]=u,this._resolveReferencesTo(u,f))}),this._resolveReferencesFrom(u||[s],{Parent:c,Derives_from:l},a)}_resolveReferencesTo(e,n){const r=this._underConstructionOrphans[n];r&&(e.forEach(o=>{o.child_features.push(...r.Parent)}),e.forEach(o=>{o.derived_features.push(...r.Derives_from)}),delete this._underConstructionOrphans[n])}_parseError(e){this.eof=!0,this.errorCallback(`${this.lineNumber}: ${e}`)}_resolveReferencesFrom(e,n,r){function o(i,s,a){let c=i[s];c||(c={},i[s]=c);const l=c[a]||!1;return c[a]=!0,l}n.Parent.forEach(i=>{const s=this._underConstructionById[i];if(s){const a=cv.Parent;r.filter(c=>o(this._completedReferences,c,`Parent,${i}`)).length||s.forEach(c=>{c[a].push(e)})}else{let a=this._underConstructionOrphans[i];a||(a={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=a),a.Parent.push(e)}}),n.Derives_from.forEach(i=>{const s=this._underConstructionById[i];if(s){const a=cv.Derives_from;r.filter(c=>o(this._completedReferences,c,`Derives_from,${i}`)).length||s.forEach(c=>{c[a].push(e)})}else{let a=this._underConstructionOrphans[i];a||(a={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=a),a.Derives_from.push(e)}})}}function y0(t){process&&process.nextTick?process.nextTick(t):t()}function fv(t){const e={encoding:"utf8",parseFeatures:!0,parseDirectives:!1,parseSequences:!0,parseComments:!1,bufferSize:1e3,disableDerivesFromReferences:!1,...t};return t.parseAll&&(e.parseFeatures=!0,e.parseDirectives=!0,e.parseComments=!0,e.parseSequences=!0),e}class pM extends $x.Transform{constructor(e={}){super({objectMode:!0}),this.textBuffer="";const n=fv(e);this.encoding=e.encoding||"utf8",this.decoder=new uM.StringDecoder;const r=this.push.bind(this);this.parser=new uv({featureCallback:n.parseFeatures?r:void 0,directiveCallback:n.parseDirectives?r:void 0,commentCallback:n.parseComments?r:void 0,sequenceCallback:n.parseSequences?r:void 0,errorCallback:o=>this.emit("error",o),bufferSize:n.bufferSize,disableDerivesFromReferences:n.disableDerivesFromReferences})}_addLine(e){e&&this.parser.addLine(e)}_nextText(e){const n=(this.textBuffer+e).split(/\r?\n/);this.textBuffer=n.pop()||"",n.forEach(r=>this._addLine(r))}_transform(e,n,r){this._nextText(this.decoder.write(e)),y0(r)}_flush(e){this.decoder.end&&this._nextText(this.decoder.end()),this.textBuffer!=null&&this._addLine(this.textBuffer),this.parser.finish(),y0(e)}}function gM(t={}){return new pM(t)}function mM(t,e={}){if(!t)return[];const n=fv(e),r=[],o=r.push.bind(r),i=new uv({featureCallback:n.parseFeatures?o:void 0,directiveCallback:n.parseDirectives?o:void 0,commentCallback:n.parseComments?o:void 0,sequenceCallback:n.parseSequences?o:void 0,disableDerivesFromReferences:n.disableDerivesFromReferences||!1,bufferSize:1/0,errorCallback:s=>{throw s}});return t.split(/\r?\n/).forEach(i.addLine.bind(i)),i.finish(),r}function bM(t){const e=[],n=[];t.forEach(o=>{"sequence"in o?n.push(o):e.push(o)});let r=e.map(uu).join("");return n.length&&(r+=`##FASTA
|
|
823
|
+
`,r+=n.map(b0).join("")),r}class hv extends $x.Transform{constructor(e={}){super(Object.assign(e,{objectMode:!0})),this.linesSinceLastSyncMark=0,this.haveWeEmittedData=!1,this.fastaMode=!1,this.minLinesBetweenSyncMarks=e.minSyncLines||100,this.insertVersionDirective=e.insertVersionDirective||!1}_transform(e,n,r){let o;if(!this.haveWeEmittedData&&this.insertVersionDirective){const i=Array.isArray(e)?e[0]:e;"directive"in i&&i.directive!=="gff-version"&&this.push(`##gff-version 3
|
|
824
824
|
`)}if("sequence"in e&&!this.fastaMode&&(this.push(`##FASTA
|
|
825
|
-
`),this.fastaMode=!0),Array.isArray(e)?o=e.map(
|
|
825
|
+
`),this.fastaMode=!0),Array.isArray(e)?o=e.map(uu).join(""):o=uu(e),this.push(o),this.linesSinceLastSyncMark>=this.minLinesBetweenSyncMarks)this.push(`###
|
|
826
826
|
`),this.linesSinceLastSyncMark=0;else{let i=0;for(let s=0;s<o.length;s+=1)o[s]===`
|
|
827
|
-
`&&(i+=1);this.linesSinceLastSyncMark+=i}this.haveWeEmittedData=!0,y0(r)}}function
|
|
827
|
+
`&&(i+=1);this.linesSinceLastSyncMark+=i}this.haveWeEmittedData=!0,y0(r)}}function yM(t={}){return new hv(t)}function wM(t,e,n={}){const r={insertVersionDirective:!0,...n};return new Promise((o,i)=>{t.pipe(new hv(r)).on("end",()=>o(null)).on("error",i).pipe(e)})}const xM=Object.freeze(Object.defineProperty({__proto__:null,default:{parseStream:gM,parseStringSync:mM,formatSync:bM,formatStream:yM,formatFile:wM,util:dM}},Symbol.toStringTag,{value:"Module"})),fu={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 vM(t){try{return decodeURIComponent(t)}catch{return t}}class AM{constructor({header:e="",strict:n=!0}){if(!e.length)throw new Error("empty header received");const r=e.split(/[\r\n]+/).filter(c=>c);if(!r.length)throw new Error("no non-empty header lines specified");this.strict=n,this.metadata=JSON.parse(JSON.stringify({INFO:fu.InfoFields,FORMAT:fu.GenotypeFields,ALT:fu.AltTypes,FILTER:fu.FilterTypes}));let o;if(r.forEach(c=>{if(c.startsWith("#"))c.startsWith("##")?this.parseMetadata(c):o=c;else throw new Error(`Bad line in header:
|
|
828
828
|
${c}`)}),!o)throw new Error("No format line found in header");const i=o.trim().split(" "),s=i.slice(0,8),a=["#CHROM","POS","ID","REF","ALT","QUAL","FILTER","INFO"];if(i.length<8)throw new Error(`VCF header missing columns:
|
|
829
829
|
${o}`);if(s.length!==a.length||!s.every((c,l)=>c===a[l]))throw new Error(`VCF column headers not correct:
|
|
830
|
-
${o}`);this.samples=i.slice(9)}parseSamples(e,n){const r={};if(e){const o=n.split(" "),i=e.split(":"),s=i.map(a=>{const c=this.getMetadata("FORMAT",a,"Type");return c==="Integer"||c==="Float"});for(let a=0;a<this.samples.length;a++){const c=this.samples[a];r[c]={};const l=o[a].split(":");for(let u=0;u<l.length;u++){const f=l[u];r[c][i[u]]=f===""||f==="."?void 0:f.split(",").map(h=>h==="."?void 0:s[u]?+h:h)}}}return r}parseGenotypesOnly(e,n){const r=n.split(" "),o={};let i=0;const s=e.split(":");if(s.length===1)for(const a of this.samples)o[a]=r[i++];else{const a=s.findIndex(c=>c==="GT");if(a===0)for(const c of this.samples){const l=r[i++],u=l.indexOf(":");u!==-1?o[c]=l.slice(0,u):console.warn("unknown")}else for(const c of this.samples){const l=r[i++].split(":");o[c]=l[a]}}return o}parseMetadata(e){const n=/^##(.+?)=(.*)/.exec(e.trim());if(!n)throw new Error(`Line is not a valid metadata line: ${e}`);const[r,o]=n.slice(1,3),i=r;if(o!=null&&o.startsWith("<")){i in this.metadata||(this.metadata[i]={});const[s,a]=this.parseStructuredMetaVal(o);this.metadata[i][s]=a}else this.metadata[i]=o}parseStructuredMetaVal(e){const n=this.parseKeyValue(e.replace(/^<|>$/g,""),","),r=n.ID;return delete n.ID,"Number"in n&&(Number.isNaN(Number(n.Number))||(n.Number=Number(n.Number))),[r,n]}getMetadata(...e){let n=this.metadata;for(const r of e)if(n=n[r],!n)return n;return n}parseKeyValue(e,n=";"){const r={};let o="",i="",s=1;for(const a of e)s===1?a==="="?s=2:a!==n?o+=a:i===""&&(r[o]=void 0,o=""):s===2?a===n?(r[o]=i,o="",i="",s=1):a==='"'?s=3:i+=a:s===3&&(a!=='"'?i+=a:s=2);return s===2||s===3?r[o]=i:s===1&&(r[o]=void 0),r}parseLine(e){var n,r;let o=0;for(let B=0;o<e.length&&(e[o]===" "&&(B+=1),B!==9);o+=1);const i=e.slice(0,o).split(" "),s=e.slice(o+1),[a,c,l,u,f,h,d]=i,p=a,
|
|
830
|
+
${o}`);this.samples=i.slice(9)}parseSamples(e,n){const r={};if(e){const o=n.split(" "),i=e.split(":"),s=i.map(a=>{const c=this.getMetadata("FORMAT",a,"Type");return c==="Integer"||c==="Float"});for(let a=0;a<this.samples.length;a++){const c=this.samples[a];r[c]={};const l=o[a].split(":");for(let u=0;u<l.length;u++){const f=l[u];r[c][i[u]]=f===""||f==="."?void 0:f.split(",").map(h=>h==="."?void 0:s[u]?+h:h)}}}return r}parseGenotypesOnly(e,n){const r=n.split(" "),o={};let i=0;const s=e.split(":");if(s.length===1)for(const a of this.samples)o[a]=r[i++];else{const a=s.findIndex(c=>c==="GT");if(a===0)for(const c of this.samples){const l=r[i++],u=l.indexOf(":");u!==-1?o[c]=l.slice(0,u):console.warn("unknown")}else for(const c of this.samples){const l=r[i++].split(":");o[c]=l[a]}}return o}parseMetadata(e){const n=/^##(.+?)=(.*)/.exec(e.trim());if(!n)throw new Error(`Line is not a valid metadata line: ${e}`);const[r,o]=n.slice(1,3),i=r;if(o!=null&&o.startsWith("<")){i in this.metadata||(this.metadata[i]={});const[s,a]=this.parseStructuredMetaVal(o);this.metadata[i][s]=a}else this.metadata[i]=o}parseStructuredMetaVal(e){const n=this.parseKeyValue(e.replace(/^<|>$/g,""),","),r=n.ID;return delete n.ID,"Number"in n&&(Number.isNaN(Number(n.Number))||(n.Number=Number(n.Number))),[r,n]}getMetadata(...e){let n=this.metadata;for(const r of e)if(n=n[r],!n)return n;return n}parseKeyValue(e,n=";"){const r={};let o="",i="",s=1;for(const a of e)s===1?a==="="?s=2:a!==n?o+=a:i===""&&(r[o]=void 0,o=""):s===2?a===n?(r[o]=i,o="",i="",s=1):a==='"'?s=3:i+=a:s===3&&(a!=='"'?i+=a:s=2);return s===2||s===3?r[o]=i:s===1&&(r[o]=void 0),r}parseLine(e){var n,r;let o=0;for(let B=0;o<e.length&&(e[o]===" "&&(B+=1),B!==9);o+=1);const i=e.slice(0,o).split(" "),s=e.slice(o+1),[a,c,l,u,f,h,d]=i,p=a,y=+c,v=l==="."?void 0:l.split(";"),b=u,A=f==="."?void 0:f.split(","),S=h==="."?void 0:+h,E=d==="."?void 0:d.split(";");if(this.strict&&!i[7])throw new Error("no INFO field specified, must contain at least a '.' (turn off strict mode to allow)");const I=(n=i[7])===null||n===void 0?void 0:n.includes("%"),_=i[7]===void 0||i[7]==="."?{}:this.parseKeyValue(i[7]);for(const B of Object.keys(_)){const N=(r=_[B])===null||r===void 0?void 0:r.split(",").map(M=>M==="."?void 0:M).map(M=>M&&I?vM(M):M),F=this.getMetadata("INFO",B,"Type");F==="Integer"||F==="Float"?_[B]=N==null?void 0:N.map(M=>M===void 0?void 0:Number(M)):F==="Flag"?_[B]=!0:_[B]=N}return{CHROM:p,POS:y,ALT:A,INFO:_,REF:b,FILTER:E&&E.length===1&&E[0]==="PASS"?"PASS":E,ID:v,QUAL:S,SAMPLES:()=>{var B;return this.parseSamples((B=i[8])!==null&&B!==void 0?B:"",s)},GENOTYPES:()=>{var B;return this.parseGenotypesOnly((B=i[8])!==null&&B!==void 0?B:"",s)}}}}const EM=Object.freeze(Object.defineProperty({__proto__:null,default:AM},Symbol.toStringTag,{value:"Module"}));ze.GenomeSpy=e2,ze.embed=G_,ze.favIcon=U_,ze.html=ot,ze.icon=z_,ze.loadSpec=t2,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
|