diff --git a/docs/assets/index-744b8c4c.js b/docs/assets/index-77cdde0b.js similarity index 99% rename from docs/assets/index-744b8c4c.js rename to docs/assets/index-77cdde0b.js index 4a31d1b..26d2f3b 100644 --- a/docs/assets/index-744b8c4c.js +++ b/docs/assets/index-77cdde0b.js @@ -27,7 +27,7 @@ void main() (${this[1]}, ${this[3]})`};function Uie(e,t,n,i){switch(t.type){case e.FLOAT:return new n8(e,t,n,i);case e.FLOAT_VEC2:return new i8(e,t,n,i);case e.FLOAT_VEC3:return new o8(e,t,n,i);case e.FLOAT_VEC4:return new r8(e,t,n,i);case e.SAMPLER_2D:case e.SAMPLER_CUBE:return new DB(e,t,n,i);case e.INT:case e.BOOL:return new s8(e,t,n,i);case e.INT_VEC2:case e.BOOL_VEC2:return new a8(e,t,n,i);case e.INT_VEC3:case e.BOOL_VEC3:return new c8(e,t,n,i);case e.INT_VEC4:case e.BOOL_VEC4:return new l8(e,t,n,i);case e.FLOAT_MAT2:return new u8(e,t,n,i);case e.FLOAT_MAT3:return new f8(e,t,n,i);case e.FLOAT_MAT4:return new d8(e,t,n,i);default:throw new Se(`Unrecognized uniform type: ${t.type} for uniform "${n}".`)}}function n8(e,t,n,i){this.name=n,this.value=void 0,this._value=0,this._gl=e,this._location=i}n8.prototype.set=function(){this.value!==this._value&&(this._value=this.value,this._gl.uniform1f(this._location,this.value))};function i8(e,t,n,i){this.name=n,this.value=void 0,this._value=new j,this._gl=e,this._location=i}i8.prototype.set=function(){const e=this.value;j.equals(e,this._value)||(j.clone(e,this._value),this._gl.uniform2f(this._location,e.x,e.y))};function o8(e,t,n,i){this.name=n,this.value=void 0,this._value=void 0,this._gl=e,this._location=i}o8.prototype.set=function(){const e=this.value;if(l(e.red))F.equals(e,this._value)||(this._value=F.clone(e,this._value),this._gl.uniform3f(this._location,e.red,e.green,e.blue));else if(l(e.x))d.equals(e,this._value)||(this._value=d.clone(e,this._value),this._gl.uniform3f(this._location,e.x,e.y,e.z));else throw new E(`Invalid vec3 value for uniform "${this.name}".`)};function r8(e,t,n,i){this.name=n,this.value=void 0,this._value=void 0,this._gl=e,this._location=i}r8.prototype.set=function(){const e=this.value;if(l(e.red))F.equals(e,this._value)||(this._value=F.clone(e,this._value),this._gl.uniform4f(this._location,e.red,e.green,e.blue,e.alpha));else if(l(e.x))oe.equals(e,this._value)||(this._value=oe.clone(e,this._value),this._gl.uniform4f(this._location,e.x,e.y,e.z,e.w));else throw new E(`Invalid vec4 value for uniform "${this.name}".`)};function DB(e,t,n,i){this.name=n,this.value=void 0,this._gl=e,this._location=i,this.textureUnitIndex=void 0}DB.prototype.set=function(){const e=this._gl;e.activeTexture(e.TEXTURE0+this.textureUnitIndex);const t=this.value;e.bindTexture(t._target,t._texture)};DB.prototype._setSampler=function(e){return this.textureUnitIndex=e,this._gl.uniform1i(this._location,e),e+1};function s8(e,t,n,i){this.name=n,this.value=void 0,this._value=0,this._gl=e,this._location=i}s8.prototype.set=function(){this.value!==this._value&&(this._value=this.value,this._gl.uniform1i(this._location,this.value))};function a8(e,t,n,i){this.name=n,this.value=void 0,this._value=new j,this._gl=e,this._location=i}a8.prototype.set=function(){const e=this.value;j.equals(e,this._value)||(j.clone(e,this._value),this._gl.uniform2i(this._location,e.x,e.y))};function c8(e,t,n,i){this.name=n,this.value=void 0,this._value=new d,this._gl=e,this._location=i}c8.prototype.set=function(){const e=this.value;d.equals(e,this._value)||(d.clone(e,this._value),this._gl.uniform3i(this._location,e.x,e.y,e.z))};function l8(e,t,n,i){this.name=n,this.value=void 0,this._value=new oe,this._gl=e,this._location=i}l8.prototype.set=function(){const e=this.value;oe.equals(e,this._value)||(oe.clone(e,this._value),this._gl.uniform4i(this._location,e.x,e.y,e.z,e.w))};const Hie=new Float32Array(4);function u8(e,t,n,i){this.name=n,this.value=void 0,this._value=new at,this._gl=e,this._location=i}u8.prototype.set=function(){if(!at.equalsArray(this.value,this._value,0)){at.clone(this.value,this._value);const e=at.toArray(this.value,Hie);this._gl.uniformMatrix2fv(this._location,!1,e)}};const Vie=new Float32Array(9);function f8(e,t,n,i){this.name=n,this.value=void 0,this._value=new J,this._gl=e,this._location=i}f8.prototype.set=function(){if(!J.equalsArray(this.value,this._value,0)){J.clone(this.value,this._value);const e=J.toArray(this.value,Vie);this._gl.uniformMatrix3fv(this._location,!1,e)}};const kie=new Float32Array(16);function d8(e,t,n,i){this.name=n,this.value=void 0,this._value=new B,this._gl=e,this._location=i}d8.prototype.set=function(){if(!B.equalsArray(this.value,this._value,0)){B.clone(this.value,this._value);const e=B.toArray(this.value,kie);this._gl.uniformMatrix4fv(this._location,!1,e)}};function Gie(e,t,n,i){switch(t.type){case e.FLOAT:return new h8(e,t,n,i);case e.FLOAT_VEC2:return new p8(e,t,n,i);case e.FLOAT_VEC3:return new m8(e,t,n,i);case e.FLOAT_VEC4:return new _8(e,t,n,i);case e.SAMPLER_2D:case e.SAMPLER_CUBE:return new IB(e,t,n,i);case e.INT:case e.BOOL:return new g8(e,t,n,i);case e.INT_VEC2:case e.BOOL_VEC2:return new y8(e,t,n,i);case e.INT_VEC3:case e.BOOL_VEC3:return new A8(e,t,n,i);case e.INT_VEC4:case e.BOOL_VEC4:return new C8(e,t,n,i);case e.FLOAT_MAT2:return new T8(e,t,n,i);case e.FLOAT_MAT3:return new b8(e,t,n,i);case e.FLOAT_MAT4:return new E8(e,t,n,i);default:throw new Se(`Unrecognized uniform type: ${t.type} for uniform "${n}".`)}}function h8(e,t,n,i){const o=i.length;this.name=n,this.value=new Array(o),this._value=new Float32Array(o),this._gl=e,this._location=i[0]}h8.prototype.set=function(){const e=this.value,t=e.length,n=this._value;let i=!1;for(let o=0;o0&&console.log(`${ou}Vertex shader compile log: ${c}`),c=e.getShaderInfoLog(r),l(c)&&c.length>0&&console.log(`${ou}Fragment shader compile log: ${c}`),c=e.getProgramInfoLog(s),l(c)&&c.length>0&&console.log(`${ou}Shader program link log: ${c}`)),e.deleteShader(o),e.deleteShader(r),s;let u;const f=t._debugShaders;throw e.getShaderParameter(r,e.COMPILE_STATUS)?e.getShaderParameter(o,e.COMPILE_STATUS)?(c=e.getProgramInfoLog(s),console.error(`${ou}Shader program link log: ${c}`),h(o,"vertex"),h(r,"fragment"),u=`Program failed to link. Link log: ${c}`):(c=e.getShaderInfoLog(o),console.error(`${ou}Vertex shader compile log: ${c}`),console.error(`${ou} Vertex shader source: ${n}`),u=`Vertex shader failed to compile. Compile log: ${c}`):(c=e.getShaderInfoLog(r),console.error(`${ou}Fragment shader compile log: ${c}`),console.error(`${ou} Fragment shader source: ${i}`),u=`Fragment shader failed to compile. Compile log: ${c}`),e.deleteShader(o),e.deleteShader(r),e.deleteProgram(s),new Se(u);function h(_,g){if(!l(f))return;const p=f.getTranslatedShaderSource(_);if(p===""){console.error(`${ou}${g} shader translation failed.`);return}console.error(`${ou}Translated ${g} shaderSource: -${p}`)}}function Yie(e,t,n){const i={};for(let o=0;o=0){if(f=n[u.slice(0,p)],!l(f))continue;h=f._locations,h.length<=1&&(_=f.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),_.push(e.getUniform(t,g))))}else{h=[];for(let A=0;A0)n=Math.sqrt(f+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=ioe;let _=0;c>a&&(_=1),u>a&&u>c&&(_=2);const g=h[_],p=h[g];n=Math.sqrt(e[J.getElementIndex(_,_)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const A=ooe;A[_]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,A[g]=(e[J.getElementIndex(g,_)]+e[J.getElementIndex(_,g)])*n,A[p]=(e[J.getElementIndex(p,_)]+e[J.getElementIndex(_,p)])*n,i=-A[0],o=-A[1],r=-A[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Ce(i,o,r,s)};const RF=new Ce;let NF=new Ce,lD=new Ce,MF=new Ce;Ce.fromHeadingPitchRoll=function(e,t){return T.typeOf.object("headingPitchRoll",e),MF=Ce.fromAxisAngle(d.UNIT_X,e.roll,RF),lD=Ce.fromAxisAngle(d.UNIT_Y,-e.pitch,t),t=Ce.multiply(lD,MF,lD),NF=Ce.fromAxisAngle(d.UNIT_Z,-e.heading,RF),Ce.multiply(NF,t,t)};const eb=new d,uD=new d,fl=new Ce,FF=new Ce,tb=new Ce;Ce.packedLength=4;Ce.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Ce.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new Ce),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Ce.packedInterpolationLength=3;Ce.convertPackedArrayForInterpolation=function(e,t,n,i){Ce.unpack(e,n*4,tb),Ce.conjugate(tb,tb);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)lf[g]=(Kx[g]*c-Jx[g])*s,uf[g]=(Kx[g]*u-Jx[g])*s;const f=r*n*(1+lf[0]*(1+lf[1]*(1+lf[2]*(1+lf[3]*(1+lf[4]*(1+lf[5]*(1+lf[6]*(1+lf[7])))))))),h=a*(1+uf[0]*(1+uf[1]*(1+uf[2]*(1+uf[3]*(1+uf[4]*(1+uf[5]*(1+uf[6]*(1+uf[7])))))))),_=Ce.multiplyByScalar(e,h,aoe);return Ce.multiplyByScalar(t,f,i),Ce.add(_,i,i)};Ce.fastSquad=function(e,t,n,i,o,r){T.typeOf.object("q0",e),T.typeOf.object("q1",t),T.typeOf.object("s0",n),T.typeOf.object("s1",i),T.typeOf.number("t",o),T.typeOf.object("result",r);const s=Ce.fastSlerp(e,t,o,bA),a=Ce.fastSlerp(n,i,o,Ag);return Ce.fastSlerp(s,a,2*o*(1-o),r)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Ce.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0,0));Ce.IDENTITY=Object.freeze(new Ce(0,0,0,1));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function ls(e,t,n){T.defined("array",e),T.defined("itemToFind",t),T.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function PB(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function UC(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function Qx(e){if(e===null||isNaN(e))throw new E("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function Pi(e,t){this.julianDate=e,this.offset=t}const coe={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},yi=Object.freeze(coe),loe={UTC:0,TAI:1},Mn=Object.freeze(loe),S8=new UC,nb=[31,28,31,30,31,30,31,31,30,31,30,31],ib=29;function OB(e,t){return ne.compare(e.julianDate,t.julianDate)}const ty=new Pi;function _S(e){ty.julianDate=e;const t=ne.leapSeconds;let n=ls(t,ty,OB);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ne.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ne.addSeconds(e,i,e)}function UF(e,t){ty.julianDate=e;const n=ne.leapSeconds;let i=ls(n,ty,OB);if(i<0&&(i=~i),i===0)return ne.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ne.addSeconds(e,-n[i-1].offset,t);const o=ne.secondsDifference(n[i].julianDate,e);if(o===0)return ne.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ne.addSeconds(e,-n[--i].offset,t)}function tp(e,t,n){const i=t/yi.SECONDS_PER_DAY|0;return e+=i,t-=yi.SECONDS_PER_DAY*i,t<0&&(e--,t+=yi.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function LB(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const f=r+(i*yi.SECONDS_PER_HOUR+o*yi.SECONDS_PER_MINUTE+s*yi.SECONDS_PER_MILLISECOND);return f>=43200&&(u-=1),[u,f]}const uoe=/^(\d{4})$/,foe=/^(\d{4})-(\d{2})$/,doe=/^(\d{4})-?(\d{3})$/,hoe=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,poe=/^(\d{4})-?(\d{2})-?(\d{2})$/,BB=/([Z+\-])?(\d{2})?:?(\d{2})?$/,moe=/^(\d{2})(\.\d+)?/.source+BB.source,_oe=/^(\d{2}):?(\d{2})(\.\d+)?/.source+BB.source,goe=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+BB.source,tl="Invalid ISO 8601 date.";function ne(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=y(e,0),t=y(t,0),n=y(n,Mn.UTC);const i=e|0;t=t+(e-i)*yi.SECONDS_PER_DAY,tp(i,t,this),n===Mn.UTC&&_S(this)}ne.fromGregorianDate=function(e,t){if(!(e instanceof UC))throw new E("date must be a valid GregorianDate.");const n=LB(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(tp(n[0],n[1],t),_S(t),t):new ne(n[0],n[1],Mn.UTC)};ne.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new E("date must be a valid JavaScript Date.");const n=LB(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(tp(n[0],n[1],t),_S(t),t):new ne(n[0],n[1],Mn.UTC)};ne.fromIso8601=function(e,t){if(typeof e!="string")throw new E(tl);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const f=n[0],h=n[1];let _,g;if(!l(f))throw new E(tl);let p;if(n=f.match(poe),n!==null){if(p=f.split("-").length-1,p>0&&p!==2)throw new E(tl);i=+n[1],o=+n[2],r=+n[3]}else if(n=f.match(foe),n!==null)i=+n[1],o=+n[2];else if(n=f.match(uoe),n!==null)i=+n[1];else{let x;if(n=f.match(doe),n!==null){if(i=+n[1],x=+n[2],g=Qx(i),x<1||g&&x>366||!g&&x>365)throw new E(tl)}else if(n=f.match(hoe),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=f.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new E(tl);const P=new Date(Date.UTC(i,0,4));x=w*7+S-P.getUTCDay()-3}else throw new E(tl);_=new Date(Date.UTC(i,0,1)),_.setUTCDate(x),o=_.getUTCMonth()+1,r=_.getUTCDate()}if(g=Qx(i),o<1||o>12||r<1||(o!==2||!g)&&r>nb[o-1]||g&&o===2&&r>ib)throw new E(tl);let A;if(l(h)){if(n=h.match(goe),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new E(tl);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,A=5}else if(n=h.match(_oe),n!==null){if(p=h.split(":").length-1,p>2)throw new E(tl);s=+n[1],a=+n[2],c=+(n[3]||0)*60,A=4}else if(n=h.match(moe),n!==null)s=+n[1],a=+(n[2]||0)*60,A=3;else throw new E(tl);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new E(tl);const x=n[A],w=+n[A+1],S=+(n[A+2]||0);switch(x){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const C=c===60;for(C&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(_=g&&o===2?ib:nb[o-1];r>_;)r-=_,o++,o>12&&(o-=12,i++),_=g&&o===2?ib:nb[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),_=g&&o===2?ib:nb[o-1],r+=_;const b=LB(i,o,r,s,a,c,u);return l(t)?(tp(b[0],b[1],t),_S(t)):t=new ne(b[0],b[1],Mn.UTC),C&&ne.addSeconds(t,1,t),t};ne.now=function(e){return ne.fromDate(new Date,e)};const ob=new ne(0,0,Mn.TAI);ne.toGregorianDate=function(e,t){if(!l(e))throw new E("julianDate is required.");let n=!1,i=UF(e,ob);l(i)||(ne.addSeconds(e,-1,ob),i=UF(ob,ob),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,f=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,_=100*(a-49)+c+s|0;let g=r/yi.SECONDS_PER_HOUR|0,p=r-g*yi.SECONDS_PER_HOUR;const A=p/yi.SECONDS_PER_MINUTE|0;p=p-A*yi.SECONDS_PER_MINUTE;let C=p|0;const b=(p-C)/yi.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(C+=1),l(t)?(t.year=_,t.month=h,t.day=f,t.hour=g,t.minute=A,t.second=C,t.millisecond=b,t.isLeapSecond=n,t):new UC(_,h,f,g,A,C,b,n)};ne.toDate=function(e){if(!l(e))throw new E("julianDate is required.");const t=ne.toGregorianDate(e,S8);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ne.toIso8601=function(e,t){if(!l(e))throw new E("julianDate is required.");const n=ne.toGregorianDate(e,S8);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let f;return!l(t)&&u!==0?(f=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(f=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`)};ne.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ne(e.dayNumber,e.secondsOfDay,Mn.TAI)};ne.compare=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ne.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ne.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(ne.secondsDifference(e,t))<=n};ne.totalDays=function(e){if(!l(e))throw new E("julianDate is required.");return e.dayNumber+e.secondsOfDay/yi.SECONDS_PER_DAY};ne.secondsDifference=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");return(e.dayNumber-t.dayNumber)*yi.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ne.daysDifference=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/yi.SECONDS_PER_DAY;return n+i};ne.computeTaiMinusUtc=function(e){ty.julianDate=e;const t=ne.leapSeconds;let n=ls(t,ty,OB);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ne.addSeconds=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("seconds is required.");if(!l(n))throw new E("result is required.");return tp(e.dayNumber,e.secondsOfDay+t,n)};ne.addMinutes=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("minutes is required.");if(!l(n))throw new E("result is required.");const i=e.secondsOfDay+t*yi.SECONDS_PER_MINUTE;return tp(e.dayNumber,i,n)};ne.addHours=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("hours is required.");if(!l(n))throw new E("result is required.");const i=e.secondsOfDay+t*yi.SECONDS_PER_HOUR;return tp(e.dayNumber,i,n)};ne.addDays=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("days is required.");if(!l(n))throw new E("result is required.");const i=e.dayNumber+t;return tp(i,e.secondsOfDay,n)};ne.lessThan=function(e,t){return ne.compare(e,t)<0};ne.lessThanOrEquals=function(e,t){return ne.compare(e,t)<=0};ne.greaterThan=function(e,t){return ne.compare(e,t)>0};ne.greaterThanOrEquals=function(e,t){return ne.compare(e,t)>=0};ne.prototype.clone=function(e){return ne.clone(this,e)};ne.prototype.equals=function(e){return ne.equals(this,e)};ne.prototype.equalsEpsilon=function(e,t){return ne.equalsEpsilon(this,e,t)};ne.prototype.toString=function(){return ne.toIso8601(this)};ne.leapSeconds=[new Pi(new ne(2441317,43210,Mn.TAI),10),new Pi(new ne(2441499,43211,Mn.TAI),11),new Pi(new ne(2441683,43212,Mn.TAI),12),new Pi(new ne(2442048,43213,Mn.TAI),13),new Pi(new ne(2442413,43214,Mn.TAI),14),new Pi(new ne(2442778,43215,Mn.TAI),15),new Pi(new ne(2443144,43216,Mn.TAI),16),new Pi(new ne(2443509,43217,Mn.TAI),17),new Pi(new ne(2443874,43218,Mn.TAI),18),new Pi(new ne(2444239,43219,Mn.TAI),19),new Pi(new ne(2444786,43220,Mn.TAI),20),new Pi(new ne(2445151,43221,Mn.TAI),21),new Pi(new ne(2445516,43222,Mn.TAI),22),new Pi(new ne(2446247,43223,Mn.TAI),23),new Pi(new ne(2447161,43224,Mn.TAI),24),new Pi(new ne(2447892,43225,Mn.TAI),25),new Pi(new ne(2448257,43226,Mn.TAI),26),new Pi(new ne(2448804,43227,Mn.TAI),27),new Pi(new ne(2449169,43228,Mn.TAI),28),new Pi(new ne(2449534,43229,Mn.TAI),29),new Pi(new ne(2450083,43230,Mn.TAI),30),new Pi(new ne(2450630,43231,Mn.TAI),31),new Pi(new ne(2451179,43232,Mn.TAI),32),new Pi(new ne(2453736,43233,Mn.TAI),33),new Pi(new ne(2454832,43234,Mn.TAI),34),new Pi(new ne(2456109,43235,Mn.TAI),35),new Pi(new ne(2457204,43236,Mn.TAI),36),new Pi(new ne(2457754,43237,Mn.TAI),37)];const yoe="modulepreload",Aoe=function(e){return"/"+e},HF={},rb=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Aoe(r),r in HF)return;HF[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let f=o.length-1;f>=0;f--){const h=o[f];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":yoe,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var JO={},Coe={get exports(){return JO},set exports(e){JO=e}},EA={},Toe={get exports(){return EA},set exports(e){EA=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var VF;function boe(){return VF||(VF=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof Pg=="object"&&Pg;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,f=26,h=38,_=700,g=72,p=128,A="-",C=/^xn--/,b=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,L=String.fromCharCode,H;function R(G){throw new RangeError(w[G])}function z(G,K){for(var q=G.length,te=[];q--;)te[q]=K(G[q]);return te}function U(G,K){var q=G.split("@"),te="";q.length>1&&(te=q[0]+"@",G=q[1]),G=G.replace(x,".");var X=G.split("."),$=z(X,K).join(".");return te+$}function v(G){for(var K=[],q=0,te=G.length,X,$;q=55296&&X<=56319&&q65535&&(K-=65536,q+=L(K>>>10&1023|55296),K=56320|K&1023),q+=L(K),q}).join("")}function m(G){return G-48<10?G-22:G-65<26?G-65:G-97<26?G-97:c}function D(G,K){return G+22+75*(G<26)-((K!=0)<<5)}function O(G,K,q){var te=0;for(G=q?P(G/_):G>>1,G+=P(G/K);G>S*f>>1;te+=c)G=P(G/S);return P(te+(S+1)*G/(G+h))}function M(G){var K=[],q=G.length,te,X=0,$=p,Y=g,ae,ue,re,he,ce,Q,ie,de,me;for(ae=G.lastIndexOf(A),ae<0&&(ae=0),ue=0;ue=128&&R("not-basic"),K.push(G.charCodeAt(ue));for(re=ae>0?ae+1:0;re=q&&R("invalid-input"),ie=m(G.charCodeAt(re++)),(ie>=c||ie>P((a-X)/ce))&&R("overflow"),X+=ie*ce,de=Q<=Y?u:Q>=Y+f?f:Q-Y,!(ieP(a/me)&&R("overflow"),ce*=me;te=K.length+1,Y=O(X-he,te,he==0),P(X/te)>a-$&&R("overflow"),$+=P(X/te),X%=te,K.splice(X++,0,$)}return I(K)}function V(G){var K,q,te,X,$,Y,ae,ue,re,he,ce,Q=[],ie,de,me,Ee;for(G=v(G),ie=G.length,K=p,q=0,$=g,Y=0;Y=K&&ceP((a-q)/de)&&R("overflow"),q+=(ae-K)*de,K=ae,Y=0;Ya&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=$?u:re>=$+f?f:re-$,!(ue=0){if(f=n[u.slice(0,p)],!l(f))continue;h=f._locations,h.length<=1&&(_=f.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),_.push(e.getUniform(t,g))))}else{h=[];for(let A=0;A0)n=Math.sqrt(f+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=ioe;let _=0;c>a&&(_=1),u>a&&u>c&&(_=2);const g=h[_],p=h[g];n=Math.sqrt(e[J.getElementIndex(_,_)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const A=ooe;A[_]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,A[g]=(e[J.getElementIndex(g,_)]+e[J.getElementIndex(_,g)])*n,A[p]=(e[J.getElementIndex(p,_)]+e[J.getElementIndex(_,p)])*n,i=-A[0],o=-A[1],r=-A[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Ce(i,o,r,s)};const RF=new Ce;let NF=new Ce,lD=new Ce,MF=new Ce;Ce.fromHeadingPitchRoll=function(e,t){return T.typeOf.object("headingPitchRoll",e),MF=Ce.fromAxisAngle(d.UNIT_X,e.roll,RF),lD=Ce.fromAxisAngle(d.UNIT_Y,-e.pitch,t),t=Ce.multiply(lD,MF,lD),NF=Ce.fromAxisAngle(d.UNIT_Z,-e.heading,RF),Ce.multiply(NF,t,t)};const eb=new d,uD=new d,fl=new Ce,FF=new Ce,tb=new Ce;Ce.packedLength=4;Ce.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Ce.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new Ce),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Ce.packedInterpolationLength=3;Ce.convertPackedArrayForInterpolation=function(e,t,n,i){Ce.unpack(e,n*4,tb),Ce.conjugate(tb,tb);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)lf[g]=(Kx[g]*c-Jx[g])*s,uf[g]=(Kx[g]*u-Jx[g])*s;const f=r*n*(1+lf[0]*(1+lf[1]*(1+lf[2]*(1+lf[3]*(1+lf[4]*(1+lf[5]*(1+lf[6]*(1+lf[7])))))))),h=a*(1+uf[0]*(1+uf[1]*(1+uf[2]*(1+uf[3]*(1+uf[4]*(1+uf[5]*(1+uf[6]*(1+uf[7])))))))),_=Ce.multiplyByScalar(e,h,aoe);return Ce.multiplyByScalar(t,f,i),Ce.add(_,i,i)};Ce.fastSquad=function(e,t,n,i,o,r){T.typeOf.object("q0",e),T.typeOf.object("q1",t),T.typeOf.object("s0",n),T.typeOf.object("s1",i),T.typeOf.number("t",o),T.typeOf.object("result",r);const s=Ce.fastSlerp(e,t,o,bA),a=Ce.fastSlerp(n,i,o,Ag);return Ce.fastSlerp(s,a,2*o*(1-o),r)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Ce.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0,0));Ce.IDENTITY=Object.freeze(new Ce(0,0,0,1));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function ls(e,t,n){T.defined("array",e),T.defined("itemToFind",t),T.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function PB(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function UC(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function Qx(e){if(e===null||isNaN(e))throw new E("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function Pi(e,t){this.julianDate=e,this.offset=t}const coe={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},yi=Object.freeze(coe),loe={UTC:0,TAI:1},Mn=Object.freeze(loe),S8=new UC,nb=[31,28,31,30,31,30,31,31,30,31,30,31],ib=29;function OB(e,t){return ne.compare(e.julianDate,t.julianDate)}const ty=new Pi;function _S(e){ty.julianDate=e;const t=ne.leapSeconds;let n=ls(t,ty,OB);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ne.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ne.addSeconds(e,i,e)}function UF(e,t){ty.julianDate=e;const n=ne.leapSeconds;let i=ls(n,ty,OB);if(i<0&&(i=~i),i===0)return ne.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ne.addSeconds(e,-n[i-1].offset,t);const o=ne.secondsDifference(n[i].julianDate,e);if(o===0)return ne.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ne.addSeconds(e,-n[--i].offset,t)}function tp(e,t,n){const i=t/yi.SECONDS_PER_DAY|0;return e+=i,t-=yi.SECONDS_PER_DAY*i,t<0&&(e--,t+=yi.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function LB(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const f=r+(i*yi.SECONDS_PER_HOUR+o*yi.SECONDS_PER_MINUTE+s*yi.SECONDS_PER_MILLISECOND);return f>=43200&&(u-=1),[u,f]}const uoe=/^(\d{4})$/,foe=/^(\d{4})-(\d{2})$/,doe=/^(\d{4})-?(\d{3})$/,hoe=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,poe=/^(\d{4})-?(\d{2})-?(\d{2})$/,BB=/([Z+\-])?(\d{2})?:?(\d{2})?$/,moe=/^(\d{2})(\.\d+)?/.source+BB.source,_oe=/^(\d{2}):?(\d{2})(\.\d+)?/.source+BB.source,goe=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+BB.source,tl="Invalid ISO 8601 date.";function ne(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=y(e,0),t=y(t,0),n=y(n,Mn.UTC);const i=e|0;t=t+(e-i)*yi.SECONDS_PER_DAY,tp(i,t,this),n===Mn.UTC&&_S(this)}ne.fromGregorianDate=function(e,t){if(!(e instanceof UC))throw new E("date must be a valid GregorianDate.");const n=LB(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(tp(n[0],n[1],t),_S(t),t):new ne(n[0],n[1],Mn.UTC)};ne.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new E("date must be a valid JavaScript Date.");const n=LB(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(tp(n[0],n[1],t),_S(t),t):new ne(n[0],n[1],Mn.UTC)};ne.fromIso8601=function(e,t){if(typeof e!="string")throw new E(tl);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const f=n[0],h=n[1];let _,g;if(!l(f))throw new E(tl);let p;if(n=f.match(poe),n!==null){if(p=f.split("-").length-1,p>0&&p!==2)throw new E(tl);i=+n[1],o=+n[2],r=+n[3]}else if(n=f.match(foe),n!==null)i=+n[1],o=+n[2];else if(n=f.match(uoe),n!==null)i=+n[1];else{let x;if(n=f.match(doe),n!==null){if(i=+n[1],x=+n[2],g=Qx(i),x<1||g&&x>366||!g&&x>365)throw new E(tl)}else if(n=f.match(hoe),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=f.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new E(tl);const P=new Date(Date.UTC(i,0,4));x=w*7+S-P.getUTCDay()-3}else throw new E(tl);_=new Date(Date.UTC(i,0,1)),_.setUTCDate(x),o=_.getUTCMonth()+1,r=_.getUTCDate()}if(g=Qx(i),o<1||o>12||r<1||(o!==2||!g)&&r>nb[o-1]||g&&o===2&&r>ib)throw new E(tl);let A;if(l(h)){if(n=h.match(goe),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new E(tl);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,A=5}else if(n=h.match(_oe),n!==null){if(p=h.split(":").length-1,p>2)throw new E(tl);s=+n[1],a=+n[2],c=+(n[3]||0)*60,A=4}else if(n=h.match(moe),n!==null)s=+n[1],a=+(n[2]||0)*60,A=3;else throw new E(tl);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new E(tl);const x=n[A],w=+n[A+1],S=+(n[A+2]||0);switch(x){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const C=c===60;for(C&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(_=g&&o===2?ib:nb[o-1];r>_;)r-=_,o++,o>12&&(o-=12,i++),_=g&&o===2?ib:nb[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),_=g&&o===2?ib:nb[o-1],r+=_;const b=LB(i,o,r,s,a,c,u);return l(t)?(tp(b[0],b[1],t),_S(t)):t=new ne(b[0],b[1],Mn.UTC),C&&ne.addSeconds(t,1,t),t};ne.now=function(e){return ne.fromDate(new Date,e)};const ob=new ne(0,0,Mn.TAI);ne.toGregorianDate=function(e,t){if(!l(e))throw new E("julianDate is required.");let n=!1,i=UF(e,ob);l(i)||(ne.addSeconds(e,-1,ob),i=UF(ob,ob),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,f=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,_=100*(a-49)+c+s|0;let g=r/yi.SECONDS_PER_HOUR|0,p=r-g*yi.SECONDS_PER_HOUR;const A=p/yi.SECONDS_PER_MINUTE|0;p=p-A*yi.SECONDS_PER_MINUTE;let C=p|0;const b=(p-C)/yi.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(C+=1),l(t)?(t.year=_,t.month=h,t.day=f,t.hour=g,t.minute=A,t.second=C,t.millisecond=b,t.isLeapSecond=n,t):new UC(_,h,f,g,A,C,b,n)};ne.toDate=function(e){if(!l(e))throw new E("julianDate is required.");const t=ne.toGregorianDate(e,S8);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ne.toIso8601=function(e,t){if(!l(e))throw new E("julianDate is required.");const n=ne.toGregorianDate(e,S8);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let f;return!l(t)&&u!==0?(f=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(f=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`)};ne.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ne(e.dayNumber,e.secondsOfDay,Mn.TAI)};ne.compare=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ne.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ne.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(ne.secondsDifference(e,t))<=n};ne.totalDays=function(e){if(!l(e))throw new E("julianDate is required.");return e.dayNumber+e.secondsOfDay/yi.SECONDS_PER_DAY};ne.secondsDifference=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");return(e.dayNumber-t.dayNumber)*yi.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ne.daysDifference=function(e,t){if(!l(e))throw new E("left is required.");if(!l(t))throw new E("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/yi.SECONDS_PER_DAY;return n+i};ne.computeTaiMinusUtc=function(e){ty.julianDate=e;const t=ne.leapSeconds;let n=ls(t,ty,OB);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ne.addSeconds=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("seconds is required.");if(!l(n))throw new E("result is required.");return tp(e.dayNumber,e.secondsOfDay+t,n)};ne.addMinutes=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("minutes is required.");if(!l(n))throw new E("result is required.");const i=e.secondsOfDay+t*yi.SECONDS_PER_MINUTE;return tp(e.dayNumber,i,n)};ne.addHours=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("hours is required.");if(!l(n))throw new E("result is required.");const i=e.secondsOfDay+t*yi.SECONDS_PER_HOUR;return tp(e.dayNumber,i,n)};ne.addDays=function(e,t,n){if(!l(e))throw new E("julianDate is required.");if(!l(t))throw new E("days is required.");if(!l(n))throw new E("result is required.");const i=e.dayNumber+t;return tp(i,e.secondsOfDay,n)};ne.lessThan=function(e,t){return ne.compare(e,t)<0};ne.lessThanOrEquals=function(e,t){return ne.compare(e,t)<=0};ne.greaterThan=function(e,t){return ne.compare(e,t)>0};ne.greaterThanOrEquals=function(e,t){return ne.compare(e,t)>=0};ne.prototype.clone=function(e){return ne.clone(this,e)};ne.prototype.equals=function(e){return ne.equals(this,e)};ne.prototype.equalsEpsilon=function(e,t){return ne.equalsEpsilon(this,e,t)};ne.prototype.toString=function(){return ne.toIso8601(this)};ne.leapSeconds=[new Pi(new ne(2441317,43210,Mn.TAI),10),new Pi(new ne(2441499,43211,Mn.TAI),11),new Pi(new ne(2441683,43212,Mn.TAI),12),new Pi(new ne(2442048,43213,Mn.TAI),13),new Pi(new ne(2442413,43214,Mn.TAI),14),new Pi(new ne(2442778,43215,Mn.TAI),15),new Pi(new ne(2443144,43216,Mn.TAI),16),new Pi(new ne(2443509,43217,Mn.TAI),17),new Pi(new ne(2443874,43218,Mn.TAI),18),new Pi(new ne(2444239,43219,Mn.TAI),19),new Pi(new ne(2444786,43220,Mn.TAI),20),new Pi(new ne(2445151,43221,Mn.TAI),21),new Pi(new ne(2445516,43222,Mn.TAI),22),new Pi(new ne(2446247,43223,Mn.TAI),23),new Pi(new ne(2447161,43224,Mn.TAI),24),new Pi(new ne(2447892,43225,Mn.TAI),25),new Pi(new ne(2448257,43226,Mn.TAI),26),new Pi(new ne(2448804,43227,Mn.TAI),27),new Pi(new ne(2449169,43228,Mn.TAI),28),new Pi(new ne(2449534,43229,Mn.TAI),29),new Pi(new ne(2450083,43230,Mn.TAI),30),new Pi(new ne(2450630,43231,Mn.TAI),31),new Pi(new ne(2451179,43232,Mn.TAI),32),new Pi(new ne(2453736,43233,Mn.TAI),33),new Pi(new ne(2454832,43234,Mn.TAI),34),new Pi(new ne(2456109,43235,Mn.TAI),35),new Pi(new ne(2457204,43236,Mn.TAI),36),new Pi(new ne(2457754,43237,Mn.TAI),37)];const yoe="modulepreload",Aoe=function(e){return"/satellite-track/"+e},HF={},rb=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Aoe(r),r in HF)return;HF[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let f=o.length-1;f>=0;f--){const h=o[f];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":yoe,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var JO={},Coe={get exports(){return JO},set exports(e){JO=e}},EA={},Toe={get exports(){return EA},set exports(e){EA=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var VF;function boe(){return VF||(VF=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof Pg=="object"&&Pg;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,f=26,h=38,_=700,g=72,p=128,A="-",C=/^xn--/,b=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,L=String.fromCharCode,H;function R(G){throw new RangeError(w[G])}function z(G,K){for(var q=G.length,te=[];q--;)te[q]=K(G[q]);return te}function U(G,K){var q=G.split("@"),te="";q.length>1&&(te=q[0]+"@",G=q[1]),G=G.replace(x,".");var X=G.split("."),$=z(X,K).join(".");return te+$}function v(G){for(var K=[],q=0,te=G.length,X,$;q=55296&&X<=56319&&q65535&&(K-=65536,q+=L(K>>>10&1023|55296),K=56320|K&1023),q+=L(K),q}).join("")}function m(G){return G-48<10?G-22:G-65<26?G-65:G-97<26?G-97:c}function D(G,K){return G+22+75*(G<26)-((K!=0)<<5)}function O(G,K,q){var te=0;for(G=q?P(G/_):G>>1,G+=P(G/K);G>S*f>>1;te+=c)G=P(G/S);return P(te+(S+1)*G/(G+h))}function M(G){var K=[],q=G.length,te,X=0,$=p,Y=g,ae,ue,re,he,ce,Q,ie,de,me;for(ae=G.lastIndexOf(A),ae<0&&(ae=0),ue=0;ue=128&&R("not-basic"),K.push(G.charCodeAt(ue));for(re=ae>0?ae+1:0;re=q&&R("invalid-input"),ie=m(G.charCodeAt(re++)),(ie>=c||ie>P((a-X)/ce))&&R("overflow"),X+=ie*ce,de=Q<=Y?u:Q>=Y+f?f:Q-Y,!(ieP(a/me)&&R("overflow"),ce*=me;te=K.length+1,Y=O(X-he,te,he==0),P(X/te)>a-$&&R("overflow"),$+=P(X/te),X%=te,K.splice(X++,0,$)}return I(K)}function V(G){var K,q,te,X,$,Y,ae,ue,re,he,ce,Q=[],ie,de,me,Ee;for(G=v(G),ie=G.length,K=p,q=0,$=g,Y=0;Y=K&&ceP((a-q)/de)&&R("overflow"),q+=(ae-K)*de,K=ae,Y=0;Ya&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=$?u:re>=$+f?f:re-$,!(ue{f++,h.push(_),f===3&&(u.push(h.join(`\r -`)),h=[],f=0)}),u}function s(){let a=t.screenSpaceEventHandler.getInputAction(On.LEFT_CLICK);t.screenSpaceEventHandler.setInputAction(function(u){a(u)},On.LEFT_CLICK)}return zC(async()=>{i(),o(),s();let a=await ret();r(a).forEach(u=>{let f=new vet(u);t.entities.add(f.createSatelliteEntity())})}),(a,c)=>(Ur(),Ou("div",Det))}},Pet=mne({history:Lte("/"),routes:[{path:"/",name:"home",component:Iet}]});const TM=ute(Ane);TM.use(pte());TM.use(Pet);TM.mount("#app"); +`)),h=[],f=0)}),u}function s(){let a=t.screenSpaceEventHandler.getInputAction(On.LEFT_CLICK);t.screenSpaceEventHandler.setInputAction(function(u){a(u)},On.LEFT_CLICK)}return zC(async()=>{i(),o(),s();let a=await ret();r(a).forEach(u=>{let f=new vet(u);t.entities.add(f.createSatelliteEntity())})}),(a,c)=>(Ur(),Ou("div",Det))}},Pet=mne({history:Lte("/satellite-track/"),routes:[{path:"/",name:"home",component:Iet}]});const TM=ute(Ane);TM.use(pte());TM.use(Pet);TM.mount("#app"); diff --git a/docs/index.html b/docs/index.html index 3aef584..dc26d8a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,11 +3,11 @@ - + Vite App - - + + diff --git a/vite.config.js b/vite.config.js index 5e6f458..6ac97ed 100644 --- a/vite.config.js +++ b/vite.config.js @@ -26,5 +26,6 @@ export default defineConfig({ }, build: { outDir: "docs" - } + }, + base: "/satellite-track/" })