2 lines
25 KiB
JavaScript
2 lines
25 KiB
JavaScript
|
|
"use strict";(()=>{var vt=Object.create;var K=Object.defineProperty,wt=Object.defineProperties,bt=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,kt=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))Y.call(e,n)&&B(t,n,e[n]);if(W)for(var n of W(e))Et.call(e,n)&&B(t,n,e[n]);return t},Q=(t,e)=>wt(t,Tt(e));var Ft=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Rt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Mt(e))!Y.call(t,l)&&l!==n&&K(t,l,{get:()=>e[l],enumerable:!(r=bt(e,l))||r.enumerable});return t};var qt=(t,e,n)=>(n=t!=null?vt(kt(t)):{},Rt(e||!t||!t.__esModule?K(n,"default",{value:t,enumerable:!0}):n,t));var L=(t,e,n)=>B(t,typeof e!="symbol"?e+"":e,n);var E=(t,e,n)=>new Promise((r,l)=>{var o=u=>{try{s(n.next(u))}catch(i){l(i)}},a=u=>{try{s(n.throw(u))}catch(i){l(i)}},s=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,a);s((n=n.apply(t,e)).next())});var xt=Ft(mt=>{"use strict";function C(t,e,n={}){return{name:t,from:e,meta:n}}function H(t,e){let n=[{value:t,depth:0}];for(let r=0,l=-1,o=0;r>=0;){let{value:a,depth:s}=n[r];if(l<=s&&a.type==="operator"&&a.data.operands.length>0)for(let u=a.data.operands.length;u>0;)n[++r]={value:a.data.operands[--u],depth:s+1};else{let u=e(a,o++,s);if(typeof u<"u")return u;--r}l=s}}var P=class extends Error{constructor(t,e){super(e),this.code=t}};function $(t,e){let n=zt(t);for(let r=0;r<n.length;r++){let l=e(n[r]);if(typeof l<"u")return l}}function zt(t){return t.items}function X(t,e){return $(t,n=>{let{matches:r}=n;for(let l=0;l<r.length;l++){let o=e(r[l],n);if(typeof o<"u")return o}})}function G(t,e=new Map){return(n,...r)=>{let l=e.get(n);return typeof l>"u"&&e.set(n,l=t(n,...r)),l}}function D(t,e){return Object.defineProperty(e,"name",{value:t}),e}function tt(t){return E(this,null,function*(){let e=[];if(typeof t.plugins<"u")for(let n=0;n<t.plugins.length;n++){let r=t.plugins[n];e.push(typeof r=="function"?yield r(t):r)}return e})}function et(t,e){return E(this,null,function*(){for(let n=0;n<t.length;n++){let r=e(t[n]);r instanceof Promise&&(yield r)}})}function z(t,e,n){for(let r=0;r<t.length;r++){let l=e(n,t[r]);typeof l<"u"&&(n=l)}return n}function At(t,e,n){return E(this,null,function*(){var r;for(let l=0;l<t.length;l++){let o=e(n,t[l]);typeof o<"u"&&(n=o instanceof Promise?(r=yield o)!=null?r:n:o)}return n})}function Qt(t){return typeof t!="object"?{node:t,children:[]}:t}function It(t){return typeof t=="object"&&t!==null&&"select"in t&&"values"in t}function N(t){return Math.max(1,Math.ceil(Math.log2(t)))}function St(t){if(t.d+t.f+t.x>32)throw new RangeError("Bit format exceeds 32 bits");return t}function nt(t,e,n){let r=N(t),l=N(e),o=typeof n<"u"?N(n):32-r-l;return St({d:r,f:l,x:o})}var T=[0];for(let t=0;t<32;t++)T.push(T[t]|1<<t);function Ot(t){return new Uint8Array(t)}function jt(t){return new Uint32Array(t)}function k(){return[0].slice(0,0)}function Ct(){return[1/0].slice(0,0)}var J=class{constructor(t=[]){L(this,"magnitude",0);this.data=t}add(t,e,n){this.data.push({start:t,end:e,value:n}),this.magnitude=0}get(t){for(let e=0;e<this.data.length;e++){let{start:n,end:r,value:l}=this.data[e];if(t>=n&&t<r)return l}return 0}forEach(t){for(let e=0;e<this.data.length;e++){let{start:n,end:r,value:l}=this.data[e];for(let o=n;o<r;o++)t(o,l)}}get length(){return this.magnitude||(this.magnitude=rt(this))}},j=class{constructor(t,e=k()){L(this,"magnitude",0);this.data=t,this.cols=e}add(t,e){this.cols.push(t),this.data.push(e),this.magnitude=0}get(t){for(let e=0;e<this.cols.length;e++)if(this.cols[e]===t)return this.data[e];return 0}forEach(t){for(let e=0;e<this.cols.length;e++)t(this.cols[e],this.data[e])}get length(){return this.magnitude||(this.magnitude=rt(this))}};function rt(t){let e=0;return t.forEach((n,r)=>{e+=r*r}),Math.sqrt(e)}function Pt(t,e){t instanceof J?t.data.forEach((n,r)=>{e(n,r)}):t.forE
|