diff --git a/docs/assets/index-a6861c0c.js b/docs/assets/index-20911a88.js similarity index 98% rename from docs/assets/index-a6861c0c.js rename to docs/assets/index-20911a88.js index 46c6b7c..197ce93 100644 --- a/docs/assets/index-a6861c0c.js +++ b/docs/assets/index-20911a88.js @@ -1,4 +1,4 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function tB(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Kw(e){if(Tn(e)){const t={};for(let n=0;n{if(n){const i=n.split(UQ);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ml(e){let t="";if(No(e))t=e;else if(Tn(e))for(let n=0;nNo(e)?e:e==null?"":Tn(e)||eo(e)&&(e.toString===pG||!An(e.toString))?JSON.stringify(e,fG,2):String(e),fG=(e,t)=>t&&t.__v_isRef?fG(e,t.value):vg(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:dG(t)?{[`Set(${t.size})`]:[...t.values()]}:eo(t)&&!Tn(t)&&!mG(t)?String(t):t,ro={},Sg=[],El=()=>{},WQ=()=>!1,jQ=/^on[^a-z]/,Jw=e=>jQ.test(e),nB=e=>e.startsWith("onUpdate:"),cs=Object.assign,iB=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qQ=Object.prototype.hasOwnProperty,ti=(e,t)=>qQ.call(e,t),Tn=Array.isArray,vg=e=>Qw(e)==="[object Map]",dG=e=>Qw(e)==="[object Set]",An=e=>typeof e=="function",No=e=>typeof e=="string",oB=e=>typeof e=="symbol",eo=e=>e!==null&&typeof e=="object",hG=e=>eo(e)&&An(e.then)&&An(e.catch),pG=Object.prototype.toString,Qw=e=>pG.call(e),YQ=e=>Qw(e).slice(8,-1),mG=e=>Qw(e)==="[object Object]",rB=e=>No(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,XE=tB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},XQ=/-(\w)/g,Pu=Zw(e=>e.replace(XQ,(t,n)=>n?n.toUpperCase():"")),$Q=/\B([A-Z])/g,Ay=Zw(e=>e.replace($Q,"-$1").toLowerCase()),eS=Zw(e=>e.charAt(0).toUpperCase()+e.slice(1)),kv=Zw(e=>e?`on${eS(e)}`:""),GA=(e,t)=>!Object.is(e,t),Gv=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sB=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let bM;const KQ=()=>bM||(bM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Da;class _G{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Da,!t&&Da&&(this.index=(Da.scopes||(Da.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Da;try{return Da=this,t()}finally{Da=n}}}on(){Da=this}off(){Da=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},gG=e=>(e.w&Rh)>0,yG=e=>(e.n&Rh)>0,tZ=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(f==="length"||f>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Tn(e)?rB(n)&&a.push(s.get("length")):(a.push(s.get(dm)),vg(e)&&a.push(s.get(BO)));break;case"delete":Tn(e)||(a.push(s.get(dm)),vg(e)&&a.push(s.get(BO)));break;case"set":vg(e)&&a.push(s.get(dm));break}if(a.length===1)a[0]&&RO(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);RO(aB(c))}}function RO(e,t){const n=Tn(e)?e:[...e];for(const i of n)i.computed&&xM(i);for(const i of n)i.computed||xM(i)}function xM(e,t){(e!==_l||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const iZ=tB("__proto__,__v_isRef,__isVue"),TG=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oB)),oZ=lB(),rZ=lB(!1,!0),sZ=lB(!0),wM=aZ();function aZ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=xi(this);for(let r=0,s=this.length;r{e[t]=function(...n){Cy();const i=xi(this)[t].apply(this,n);return Ty(),i}}),e}function lB(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?EZ:SG:t?wG:xG).get(i))return i;const s=Tn(i);if(!e&&s&&ti(wM,o))return Reflect.get(wM,o,r);const a=Reflect.get(i,o,r);return(oB(o)?TG.has(o):iZ(o))||(e||Ya(i,"get",o),t)?a:Bs(a)?s&&rB(o)?a:a.value:eo(a)?e?DG(a):FC(a):a}}const cZ=bG(),lZ=bG(!0);function bG(e=!1){return function(n,i,o,r){let s=n[i];if(Kg(s)&&Bs(s)&&!Bs(o))return!1;if(!e&&(!Gx(o)&&!Kg(o)&&(s=xi(s),o=xi(o)),!Tn(n)&&Bs(s)&&!Bs(o)))return s.value=o,!0;const a=Tn(n)&&rB(i)?Number(i)e,tS=e=>Reflect.getPrototypeOf(e);function MT(e,t,n=!1,i=!1){e=e.__v_raw;const o=xi(e),r=xi(t);n||(t!==r&&Ya(o,"get",t),Ya(o,"get",r));const{has:s}=tS(o),a=i?uB:n?pB:WA;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function FT(e,t=!1){const n=this.__v_raw,i=xi(n),o=xi(e);return t||(e!==o&&Ya(i,"has",e),Ya(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function zT(e,t=!1){return e=e.__v_raw,!t&&Ya(xi(e),"iterate",dm),Reflect.get(e,"size",e)}function SM(e){e=xi(e);const t=xi(this);return tS(t).has.call(t,e)||(t.add(e),Yf(t,"add",e,e)),this}function vM(e,t){t=xi(t);const n=xi(this),{has:i,get:o}=tS(n);let r=i.call(n,e);r||(e=xi(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?GA(t,s)&&Yf(n,"set",e,t):Yf(n,"add",e,t),this}function DM(e){const t=xi(this),{has:n,get:i}=tS(t);let o=n.call(t,e);o||(e=xi(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&Yf(t,"delete",e,void 0),r}function IM(){const e=xi(this),t=e.size!==0,n=e.clear();return t&&Yf(e,"clear",void 0,void 0),n}function UT(e,t){return function(i,o){const r=this,s=r.__v_raw,a=xi(s),c=t?uB:e?pB:WA;return!e&&Ya(a,"iterate",dm),s.forEach((u,f)=>i.call(o,c(u),c(f),r))}}function HT(e,t,n){return function(...i){const o=this.__v_raw,r=xi(o),s=vg(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),f=n?uB:t?pB:WA;return!t&&Ya(r,"iterate",c?BO:dm),{next(){const{value:h,done:_}=u.next();return _?{value:h,done:_}:{value:a?[f(h[0]),f(h[1])]:f(h),done:_}},[Symbol.iterator](){return this}}}}function Sd(e){return function(...t){return e==="delete"?!1:this}}function mZ(){const e={get(r){return MT(this,r)},get size(){return zT(this)},has:FT,add:SM,set:vM,delete:DM,clear:IM,forEach:UT(!1,!1)},t={get(r){return MT(this,r,!1,!0)},get size(){return zT(this)},has:FT,add:SM,set:vM,delete:DM,clear:IM,forEach:UT(!1,!0)},n={get(r){return MT(this,r,!0)},get size(){return zT(this,!0)},has(r){return FT.call(this,r,!0)},add:Sd("add"),set:Sd("set"),delete:Sd("delete"),clear:Sd("clear"),forEach:UT(!0,!1)},i={get(r){return MT(this,r,!0,!0)},get size(){return zT(this,!0)},has(r){return FT.call(this,r,!0)},add:Sd("add"),set:Sd("set"),delete:Sd("delete"),clear:Sd("clear"),forEach:UT(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=HT(r,!1,!1),n[r]=HT(r,!0,!1),t[r]=HT(r,!1,!0),i[r]=HT(r,!0,!0)}),[e,n,t,i]}const[_Z,gZ,yZ,AZ]=mZ();function fB(e,t){const n=t?e?AZ:yZ:e?gZ:_Z;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(ti(n,o)&&o in i?n:i,o,r)}const CZ={get:fB(!1,!1)},TZ={get:fB(!1,!0)},bZ={get:fB(!0,!1)},xG=new WeakMap,wG=new WeakMap,SG=new WeakMap,EZ=new WeakMap;function xZ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wZ(e){return e.__v_skip||!Object.isExtensible(e)?0:xZ(YQ(e))}function FC(e){return Kg(e)?e:dB(e,!1,EG,CZ,xG)}function vG(e){return dB(e,!1,pZ,TZ,wG)}function DG(e){return dB(e,!0,hZ,bZ,SG)}function dB(e,t,n,i,o){if(!eo(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=wZ(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function Dg(e){return Kg(e)?Dg(e.__v_raw):!!(e&&e.__v_isReactive)}function Kg(e){return!!(e&&e.__v_isReadonly)}function Gx(e){return!!(e&&e.__v_isShallow)}function IG(e){return Dg(e)||Kg(e)}function xi(e){const t=e&&e.__v_raw;return t?xi(t):e}function hB(e){return kx(e,"__v_skip",!0),e}const WA=e=>eo(e)?FC(e):e,pB=e=>eo(e)?DG(e):e;function PG(e){Ah&&_l&&(e=xi(e),CG(e.dep||(e.dep=aB())))}function OG(e,t){e=xi(e),e.dep&&RO(e.dep)}function Bs(e){return!!(e&&e.__v_isRef===!0)}function Bf(e){return LG(e,!1)}function SZ(e){return LG(e,!0)}function LG(e,t){return Bs(e)?e:new vZ(e,t)}class vZ{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:xi(t),this._value=n?t:WA(t)}get value(){return PG(this),this._value}set value(t){const n=this.__v_isShallow||Gx(t)||Kg(t);t=n?t:xi(t),GA(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:WA(t),OG(this))}}function kn(e){return Bs(e)?e.value:e}const DZ={get:(e,t,n)=>kn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Bs(o)&&!Bs(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function BG(e){return Dg(e)?e:new Proxy(e,DZ)}var RG;class IZ{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[RG]=!1,this._dirty=!0,this.effect=new cB(t,()=>{this._dirty||(this._dirty=!0,OG(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=xi(this);return PG(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}RG="__v_isReadonly";function PZ(e,t,n=!1){let i,o;const r=An(e);return r?(i=e,o=El):(i=e.get,o=e.set),new IZ(i,o,r||!o,n)}function OZ(e,...t){}function Ch(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){nS(r,t,n)}return o}function Lc(e,t,n,i){if(An(e)){const r=Ch(e,t,n,i);return r&&hG(r)&&r.catch(s=>{nS(s,t,n)}),r}const o=[];for(let r=0;r>>1;qA(Ds[i])gu&&Ds.splice(t,1)}function NZ(e){Tn(e)?Ig.push(...e):(!yf||!yf.includes(e,e.allowRecurse?Kp+1:Kp))&&Ig.push(e),MG()}function PM(e,t=jA?gu+1:0){for(;tqA(n)-qA(i)),Kp=0;Kpe.id==null?1/0:e.id,MZ=(e,t)=>{const n=qA(e)-qA(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zG(e){NO=!1,jA=!0,Ds.sort(MZ);const t=El;try{for(gu=0;guNo(g)?g.trim():g)),h&&(o=n.map(sB))}let a,c=i[a=kv(t)]||i[a=kv(Pu(t))];!c&&r&&(c=i[a=kv(Ay(t))]),c&&Lc(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lc(u,e,6,o)}}function UG(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!An(e)){const c=u=>{const f=UG(u,t,!0);f&&(a=!0,cs(s,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(eo(e)&&i.set(e,null),null):(Tn(r)?r.forEach(c=>s[c]=null):cs(s,r),eo(e)&&i.set(e,s),s)}function iS(e,t){return!e||!Jw(t)?!1:(t=t.slice(2).replace(/Once$/,""),ti(e,t[0].toLowerCase()+t.slice(1))||ti(e,Ay(t))||ti(e,t))}let ss=null,HG=null;function Wx(e){const t=ss;return ss=e,HG=e&&e.type.__scopeId||null,t}function mA(e,t=ss,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&HM(-1);const r=Wx(t);let s;try{s=e(...o)}finally{Wx(r),i._d&&HM(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Wv(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:f,renderCache:h,data:_,setupState:g,ctx:p,inheritAttrs:A}=e;let C,b;const x=Wx(e);try{if(n.shapeFlag&4){const S=o||i;C=du(f.call(S,S,h,r,g,_,p)),b=c}else{const S=t;C=du(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),b=t.props?c:zZ(c)}}catch(S){AA.length=0,nS(S,e,1),C=as(Bc)}let w=C;if(b&&A!==!1){const S=Object.keys(b),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(nB)&&(b=UZ(b,s)),w=Nh(w,b))}return n.dirs&&(w=Nh(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),C=w,Wx(x),C}const zZ=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jw(n))&&((t||(t={}))[n]=e[n]);return t},UZ=(e,t)=>{const n={};for(const i in e)(!nB(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function HZ(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?OM(i,s,u):!!s;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function GZ(e,t){t&&t.pendingBranch?Tn(e)?t.effects.push(...e):t.effects.push(e):NZ(e)}function _A(e,t){if(Wr){let n=Wr.provides;const i=Wr.parent&&Wr.parent.provides;i===n&&(n=Wr.provides=Object.create(i)),n[e]=t}}function Eu(e,t,n=!1){const i=Wr||ss;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&An(t)?t.call(i.proxy):t}}const VT={};function Th(e,t,n){return VG(e,t,n)}function VG(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=ro){const a=Wr;let c,u=!1,f=!1;if(Bs(e)?(c=()=>e.value,u=Gx(e)):Dg(e)?(c=()=>e,i=!0):Tn(e)?(f=!0,u=e.some(w=>Dg(w)||Gx(w)),c=()=>e.map(w=>{if(Bs(w))return w.value;if(Dg(w))return rm(w);if(An(w))return Ch(w,a,2)})):An(e)?t?c=()=>Ch(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Lc(e,a,3,[_])}:c=El,t&&i){const w=c;c=()=>rm(w())}let h,_=w=>{h=b.onStop=()=>{Ch(w,a,4)}},g;if(XA)if(_=El,t?n&&Lc(t,a,3,[c(),f?[]:void 0,_]):c(),o==="sync"){const w=Mee();g=w.__watcherHandles||(w.__watcherHandles=[])}else return El;let p=f?new Array(e.length).fill(VT):VT;const A=()=>{if(b.active)if(t){const w=b.run();(i||u||(f?w.some((S,P)=>GA(S,p[P])):GA(w,p)))&&(h&&h(),Lc(t,a,3,[w,p===VT?void 0:f&&p[0]===VT?[]:p,_]),p=w)}else b.run()};A.allowRecurse=!!t;let C;o==="sync"?C=A:o==="post"?C=()=>Ca(A,a&&a.suspense):(A.pre=!0,a&&(A.id=a.uid),C=()=>gB(A));const b=new cB(c,C);t?n?A():p=b.run():o==="post"?Ca(b.run.bind(b),a&&a.suspense):b.run();const x=()=>{b.stop(),a&&a.scope&&iB(a.scope.effects,b)};return g&&g.push(x),x}function WZ(e,t,n){const i=this.proxy,o=No(e)?e.includes(".")?kG(i,e):()=>i[e]:e.bind(i,i);let r;An(t)?r=t:(r=t.handler,n=t);const s=Wr;Qg(this);const a=VG(o,r.bind(i),n);return s?Qg(s):hm(),a}function kG(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{rm(n,t)});else if(mG(e))for(const n in e)rm(e[n],t);return e}function jZ(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zC(()=>{e.isMounted=!0}),YG(()=>{e.isUnmounting=!0}),e}const cc=[Function,Array],qZ={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cc,onEnter:cc,onAfterEnter:cc,onEnterCancelled:cc,onBeforeLeave:cc,onLeave:cc,onAfterLeave:cc,onLeaveCancelled:cc,onBeforeAppear:cc,onAppear:cc,onAfterAppear:cc,onAppearCancelled:cc},setup(e,{slots:t}){const n=lS(),i=jZ();let o;return()=>{const r=t.default&&jG(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const A of r)if(A.type!==Bc){s=A;break}}const a=xi(e),{mode:c}=a;if(i.isLeaving)return jv(s);const u=LM(s);if(!u)return jv(s);const f=MO(u,a,i,n);FO(u,f);const h=n.subTree,_=h&&LM(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const A=p();o===void 0?o=A:A!==o&&(o=A,g=!0)}if(_&&_.type!==Bc&&(!Jp(u,_)||g)){const A=MO(_,a,i,n);if(FO(_,A),c==="out-in")return i.isLeaving=!0,A.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},jv(s);c==="in-out"&&u.type!==Bc&&(A.delayLeave=(C,b,x)=>{const w=WG(i,_);w[String(_.key)]=_,C._leaveCb=()=>{b(),C._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return s}}},GG=qZ;function WG(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function MO(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:_,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:A,onAppear:C,onAfterAppear:b,onAppearCancelled:x}=t,w=String(e.key),S=WG(n,e),P=(R,z)=>{R&&Lc(R,i,9,z)},L=(R,z)=>{const U=z[1];P(R,z),Tn(R)?R.every(v=>v.length<=1)&&U():R.length<=1&&U()},H={mode:r,persisted:s,beforeEnter(R){let z=a;if(!n.isMounted)if(o)z=A||a;else return;R._leaveCb&&R._leaveCb(!0);const U=S[w];U&&Jp(e,U)&&U.el._leaveCb&&U.el._leaveCb(),P(z,[R])},enter(R){let z=c,U=u,v=f;if(!n.isMounted)if(o)z=C||c,U=b||u,v=x||f;else return;let I=!1;const m=R._enterCb=D=>{I||(I=!0,D?P(v,[R]):P(U,[R]),H.delayedLeave&&H.delayedLeave(),R._enterCb=void 0)};z?L(z,[R,m]):m()},leave(R,z){const U=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return z();P(h,[R]);let v=!1;const I=R._leaveCb=m=>{v||(v=!0,z(),m?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,_?L(_,[R,I]):I()},clone(R){return MO(R,t,n,i)}};return H}function jv(e){if(oS(e))return e=Nh(e),e.children=null,e}function LM(e){return oS(e)?e.children?e.children[0]:void 0:e}function FO(e,t){e.shapeFlag&6&&e.component?FO(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jG(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,oS=e=>e.type.__isKeepAlive;function YZ(e,t){qG(e,"a",t)}function XZ(e,t){qG(e,"da",t)}function qG(e,t,n=Wr){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(rS(t,i,n),n){let o=n.parent;for(;o&&o.parent;)oS(o.parent.vnode)&&$Z(i,t,n,o),o=o.parent}}function $Z(e,t,n,i){const o=rS(t,e,i,!0);XG(()=>{iB(i[t],o)},n)}function rS(e,t,n=Wr,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Cy(),Qg(n);const a=Lc(t,n,e,s);return hm(),Ty(),a});return i?o.unshift(r):o.push(r),r}}const rd=e=>(t,n=Wr)=>(!XA||e==="sp")&&rS(e,(...i)=>t(...i),n),KZ=rd("bm"),zC=rd("m"),JZ=rd("bu"),QZ=rd("u"),YG=rd("bum"),XG=rd("um"),ZZ=rd("sp"),eee=rd("rtg"),tee=rd("rtc");function nee(e,t=Wr){rS("ec",e,t)}function $G(e,t){const n=ss;if(n===null)return e;const i=uS(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rJg(t)?!(t.type===Bc||t.type===Oa&&!QG(t.children)):!0)?e:null}const zO=e=>e?u5(e)?uS(e)||e.proxy:zO(e.parent):null,yA=cs(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zO(e.parent),$root:e=>zO(e.root),$emit:e=>e.emit,$options:e=>yB(e),$forceUpdate:e=>e.f||(e.f=()=>gB(e.update)),$nextTick:e=>e.n||(e.n=_B.bind(e.proxy)),$watch:e=>WZ.bind(e)}),qv=(e,t)=>e!==ro&&!e.__isScriptSetup&&ti(e,t),ree={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(qv(i,t))return s[t]=1,i[t];if(o!==ro&&ti(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&ti(u,t))return s[t]=3,r[t];if(n!==ro&&ti(n,t))return s[t]=4,n[t];UO&&(s[t]=0)}}const f=yA[t];let h,_;if(f)return t==="$attrs"&&Ya(e,"get",t),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==ro&&ti(n,t))return s[t]=4,n[t];if(_=c.config.globalProperties,ti(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return qv(o,t)?(o[t]=n,!0):i!==ro&&ti(i,t)?(i[t]=n,!0):ti(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==ro&&ti(e,s)||qv(t,s)||(a=r[0])&&ti(a,s)||ti(i,s)||ti(yA,s)||ti(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ti(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let UO=!0;function see(e){const t=yB(e),n=e.proxy,i=e.ctx;UO=!1,t.beforeCreate&&RM(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:f,beforeMount:h,mounted:_,beforeUpdate:g,updated:p,activated:A,deactivated:C,beforeDestroy:b,beforeUnmount:x,destroyed:w,unmounted:S,render:P,renderTracked:L,renderTriggered:H,errorCaptured:R,serverPrefetch:z,expose:U,inheritAttrs:v,components:I,directives:m,filters:D}=t;if(u&&aee(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];An(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);eo(V)&&(e.data=FC(V))}if(UO=!0,r)for(const V in r){const k=r[V],W=An(k)?k.bind(n,n):An(k.get)?k.get.bind(n,n):El,G=!An(k)&&An(k.set)?k.set.bind(n):El,K=Co({get:W,set:G});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)ZG(a[V],i,n,V);if(c){const V=An(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{_A(k,V[k])})}f&&RM(f,e,"c");function M(V,k){Tn(k)?k.forEach(W=>V(W.bind(n))):k&&V(k.bind(n))}if(M(KZ,h),M(zC,_),M(JZ,g),M(QZ,p),M(YZ,A),M(XZ,C),M(nee,R),M(tee,L),M(eee,H),M(YG,x),M(XG,S),M(ZZ,z),Tn(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:W=>n[k]=W})})}else e.exposed||(e.exposed={});P&&e.render===El&&(e.render=P),v!=null&&(e.inheritAttrs=v),I&&(e.components=I),m&&(e.directives=m)}function aee(e,t,n=El,i=!1){Tn(e)&&(e=HO(e));for(const o in e){const r=e[o];let s;eo(r)?"default"in r?s=Eu(r.from||o,r.default,!0):s=Eu(r.from||o):s=Eu(r),Bs(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function RM(e,t,n){Lc(Tn(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function ZG(e,t,n,i){const o=i.includes(".")?kG(n,i):()=>n[i];if(No(e)){const r=t[e];An(r)&&Th(o,r)}else if(An(e))Th(o,e.bind(n));else if(eo(e))if(Tn(e))e.forEach(r=>ZG(r,t,n,i));else{const r=An(e.handler)?e.handler.bind(n):t[e.handler];An(r)&&Th(o,r,e)}}function yB(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>jx(c,u,s,!0)),jx(c,t,s)),eo(t)&&r.set(t,c),c}function jx(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&jx(e,r,n,!0),o&&o.forEach(s=>jx(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=cee[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const cee={data:NM,props:Yp,emits:Yp,methods:Yp,computed:Yp,beforeCreate:ea,created:ea,beforeMount:ea,mounted:ea,beforeUpdate:ea,updated:ea,beforeDestroy:ea,beforeUnmount:ea,destroyed:ea,unmounted:ea,activated:ea,deactivated:ea,errorCaptured:ea,serverPrefetch:ea,components:Yp,directives:Yp,watch:uee,provide:NM,inject:lee};function NM(e,t){return t?e?function(){return cs(An(e)?e.call(this,this):e,An(t)?t.call(this,this):t)}:t:e}function lee(e,t){return Yp(HO(e),HO(t))}function HO(e){if(Tn(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[_,g]=t5(h,t,!0);cs(s,_),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return eo(e)&&i.set(e,Sg),Sg;if(Tn(r))for(let f=0;f-1,g[1]=A<0||p-1||ti(g,"default"))&&a.push(h)}}}const u=[s,a];return eo(e)&&i.set(e,u),u}function MM(e){return e[0]!=="$"}function FM(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function zM(e,t){return FM(e)===FM(t)}function UM(e,t){return Tn(t)?t.findIndex(n=>zM(n,e)):An(t)&&zM(t,e)?0:-1}const n5=e=>e[0]==="_"||e==="$stable",AB=e=>Tn(e)?e.map(du):[du(e)],hee=(e,t,n)=>{if(t._n)return t;const i=mA((...o)=>AB(t(...o)),n);return i._c=!1,i},i5=(e,t,n)=>{const i=e._ctx;for(const o in e){if(n5(o))continue;const r=e[o];if(An(r))t[o]=hee(o,r,i);else if(r!=null){const s=AB(r);t[o]=()=>s}}},o5=(e,t)=>{const n=AB(t);e.slots.default=()=>n},pee=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=xi(t),kx(t,"_",n)):i5(t,e.slots={})}else e.slots={},t&&o5(e,t);kx(e.slots,cS,1)},mee=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=ro;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(cs(o,t),!n&&a===1&&delete o._):(r=!t.$stable,i5(t,o)),s=t}else t&&(o5(e,t),s={default:1});if(r)for(const a in o)!n5(a)&&!(a in s)&&delete o[a]};function r5(){return{app:null,config:{isNativeTag:WQ,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _ee=0;function gee(e,t){return function(i,o=null){An(i)||(i=Object.assign({},i)),o!=null&&!eo(o)&&(o=null);const r=r5(),s=new Set;let a=!1;const c=r.app={_uid:_ee++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Fee,get config(){return r.config},set config(u){},use(u,...f){return s.has(u)||(u&&An(u.install)?(s.add(u),u.install(c,...f)):An(u)&&(s.add(u),u(c,...f))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,f){return f?(r.components[u]=f,c):r.components[u]},directive(u,f){return f?(r.directives[u]=f,c):r.directives[u]},mount(u,f,h){if(!a){const _=as(i,o);return _.appContext=r,f&&t?t(_,u):e(_,u,h),a=!0,c._container=u,u.__vue_app__=c,uS(_.component)||_.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return r.provides[u]=f,c}};return c}}function kO(e,t,n,i,o=!1){if(Tn(e)){e.forEach((_,g)=>kO(_,t&&(Tn(t)?t[g]:t),n,i,o));return}if(gA(i)&&!o)return;const r=i.shapeFlag&4?uS(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,f=a.refs===ro?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(No(u)?(f[u]=null,ti(h,u)&&(h[u]=null)):Bs(u)&&(u.value=null)),An(c))Ch(c,a,12,[s,f]);else{const _=No(c),g=Bs(c);if(_||g){const p=()=>{if(e.f){const A=_?ti(h,c)?h[c]:f[c]:c.value;o?Tn(A)&&iB(A,r):Tn(A)?A.includes(r)||A.push(r):_?(f[c]=[r],ti(h,c)&&(h[c]=f[c])):(c.value=[r],e.k&&(f[e.k]=c.value))}else _?(f[c]=s,ti(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(f[e.k]=s))};s?(p.id=-1,Ca(p,n)):p()}}}const Ca=GZ;function yee(e){return Aee(e)}function Aee(e,t){const n=KQ();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:_,setScopeId:g=El,insertStaticContent:p}=e,A=(Q,ie,de,me=null,Ee=null,xe=null,Pe=!1,Te=null,Oe=!!ie.dynamicChildren)=>{if(Q===ie)return;Q&&!Jp(Q,ie)&&(me=ae(Q),q(Q,Ee,xe,!0),Q=null),ie.patchFlag===-2&&(Oe=!1,ie.dynamicChildren=null);const{type:De,ref:Me,shapeFlag:ve}=ie;switch(De){case aS:C(Q,ie,de,me);break;case Bc:b(Q,ie,de,me);break;case Yv:Q==null&&x(ie,de,me,Pe);break;case Oa:I(Q,ie,de,me,Ee,xe,Pe,Te,Oe);break;default:ve&1?P(Q,ie,de,me,Ee,xe,Pe,Te,Oe):ve&6?m(Q,ie,de,me,Ee,xe,Pe,Te,Oe):(ve&64||ve&128)&&De.process(Q,ie,de,me,Ee,xe,Pe,Te,Oe,re)}Me!=null&&Ee&&kO(Me,Q&&Q.ref,xe,ie||Q,!ie)},C=(Q,ie,de,me)=>{if(Q==null)i(ie.el=a(ie.children),de,me);else{const Ee=ie.el=Q.el;ie.children!==Q.children&&u(Ee,ie.children)}},b=(Q,ie,de,me)=>{Q==null?i(ie.el=c(ie.children||""),de,me):ie.el=Q.el},x=(Q,ie,de,me)=>{[Q.el,Q.anchor]=p(Q.children,ie,de,me,Q.el,Q.anchor)},w=({el:Q,anchor:ie},de,me)=>{let Ee;for(;Q&&Q!==ie;)Ee=_(Q),i(Q,de,me),Q=Ee;i(ie,de,me)},S=({el:Q,anchor:ie})=>{let de;for(;Q&&Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},P=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Pe=Pe||ie.type==="svg",Q==null?L(ie,de,me,Ee,xe,Pe,Te,Oe):z(Q,ie,Ee,xe,Pe,Te,Oe)},L=(Q,ie,de,me,Ee,xe,Pe,Te)=>{let Oe,De;const{type:Me,props:ve,shapeFlag:Ie,transition:Ve,dirs:Le}=Q;if(Oe=Q.el=s(Q.type,xe,ve&&ve.is,ve),Ie&8?f(Oe,Q.children):Ie&16&&R(Q.children,Oe,null,me,Ee,xe&&Me!=="foreignObject",Pe,Te),Le&&gp(Q,null,me,"created"),ve){for(const Ct in ve)Ct!=="value"&&!XE(Ct)&&r(Oe,Ct,null,ve[Ct],xe,Q.children,me,Ee,Y);"value"in ve&&r(Oe,"value",null,ve.value),(De=ve.onVnodeBeforeMount)&&iu(De,me,Q)}H(Oe,Q,Q.scopeId,Pe,me),Le&&gp(Q,null,me,"beforeMount");const mt=(!Ee||Ee&&!Ee.pendingBranch)&&Ve&&!Ve.persisted;mt&&Ve.beforeEnter(Oe),i(Oe,ie,de),((De=ve&&ve.onVnodeMounted)||mt||Le)&&Ca(()=>{De&&iu(De,me,Q),mt&&Ve.enter(Oe),Le&&gp(Q,null,me,"mounted")},Ee)},H=(Q,ie,de,me,Ee)=>{if(de&&g(Q,de),me)for(let xe=0;xe{for(let De=Oe;De{const Te=ie.el=Q.el;let{patchFlag:Oe,dynamicChildren:De,dirs:Me}=ie;Oe|=Q.patchFlag&16;const ve=Q.props||ro,Ie=ie.props||ro;let Ve;de&&yp(de,!1),(Ve=Ie.onVnodeBeforeUpdate)&&iu(Ve,de,ie,Q),Me&&gp(ie,Q,de,"beforeUpdate"),de&&yp(de,!0);const Le=Ee&&ie.type!=="foreignObject";if(De?U(Q.dynamicChildren,De,Te,de,me,Le,xe):Pe||k(Q,ie,Te,null,de,me,Le,xe,!1),Oe>0){if(Oe&16)v(Te,ie,ve,Ie,de,me,Ee);else if(Oe&2&&ve.class!==Ie.class&&r(Te,"class",null,Ie.class,Ee),Oe&4&&r(Te,"style",ve.style,Ie.style,Ee),Oe&8){const mt=ie.dynamicProps;for(let Ct=0;Ct{Ve&&iu(Ve,de,ie,Q),Me&&gp(ie,Q,de,"updated")},me)},U=(Q,ie,de,me,Ee,xe,Pe)=>{for(let Te=0;Te{if(de!==me){if(de!==ro)for(const Te in de)!XE(Te)&&!(Te in me)&&r(Q,Te,de[Te],null,Pe,ie.children,Ee,xe,Y);for(const Te in me){if(XE(Te))continue;const Oe=me[Te],De=de[Te];Oe!==De&&Te!=="value"&&r(Q,Te,De,Oe,Pe,ie.children,Ee,xe,Y)}"value"in me&&r(Q,"value",de.value,me.value)}},I=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{const De=ie.el=Q?Q.el:a(""),Me=ie.anchor=Q?Q.anchor:a("");let{patchFlag:ve,dynamicChildren:Ie,slotScopeIds:Ve}=ie;Ve&&(Te=Te?Te.concat(Ve):Ve),Q==null?(i(De,de,me),i(Me,de,me),R(ie.children,de,Me,Ee,xe,Pe,Te,Oe)):ve>0&&ve&64&&Ie&&Q.dynamicChildren?(U(Q.dynamicChildren,Ie,de,Ee,xe,Pe,Te),(ie.key!=null||Ee&&ie===Ee.subTree)&&s5(Q,ie,!0)):k(Q,ie,de,Me,Ee,xe,Pe,Te,Oe)},m=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{ie.slotScopeIds=Te,Q==null?ie.shapeFlag&512?Ee.ctx.activate(ie,de,me,Pe,Oe):D(ie,de,me,Ee,xe,Pe,Oe):O(Q,ie,Oe)},D=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=Q.component=Dee(Q,me,Ee);if(oS(Q)&&(Te.ctx.renderer=re),Iee(Te),Te.asyncDep){if(Ee&&Ee.registerDep(Te,M),!Q.el){const Oe=Te.subTree=as(Bc);b(null,Oe,ie,de)}return}M(Te,Q,ie,de,Ee,xe,Pe)},O=(Q,ie,de)=>{const me=ie.component=Q.component;if(HZ(Q,ie,de))if(me.asyncDep&&!me.asyncResolved){V(me,ie,de);return}else me.next=ie,RZ(me.update),me.update();else ie.el=Q.el,me.vnode=ie},M=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=()=>{if(Q.isMounted){let{next:Me,bu:ve,u:Ie,parent:Ve,vnode:Le}=Q,mt=Me,Ct;yp(Q,!1),Me?(Me.el=Le.el,V(Q,Me,Pe)):Me=Le,ve&&Gv(ve),(Ct=Me.props&&Me.props.onVnodeBeforeUpdate)&&iu(Ct,Ve,Me,Le),yp(Q,!0);const Pt=Wv(Q),yn=Q.subTree;Q.subTree=Pt,A(yn,Pt,h(yn.el),ae(yn),Q,Ee,xe),Me.el=Pt.el,mt===null&&VZ(Q,Pt.el),Ie&&Ca(Ie,Ee),(Ct=Me.props&&Me.props.onVnodeUpdated)&&Ca(()=>iu(Ct,Ve,Me,Le),Ee)}else{let Me;const{el:ve,props:Ie}=ie,{bm:Ve,m:Le,parent:mt}=Q,Ct=gA(ie);if(yp(Q,!1),Ve&&Gv(Ve),!Ct&&(Me=Ie&&Ie.onVnodeBeforeMount)&&iu(Me,mt,ie),yp(Q,!0),ve&&ce){const Pt=()=>{Q.subTree=Wv(Q),ce(ve,Q.subTree,Q,Ee,null)};Ct?ie.type.__asyncLoader().then(()=>!Q.isUnmounted&&Pt()):Pt()}else{const Pt=Q.subTree=Wv(Q);A(null,Pt,de,me,Q,Ee,xe),ie.el=Pt.el}if(Le&&Ca(Le,Ee),!Ct&&(Me=Ie&&Ie.onVnodeMounted)){const Pt=ie;Ca(()=>iu(Me,mt,Pt),Ee)}(ie.shapeFlag&256||mt&&gA(mt.vnode)&&mt.vnode.shapeFlag&256)&&Q.a&&Ca(Q.a,Ee),Q.isMounted=!0,ie=de=me=null}},Oe=Q.effect=new cB(Te,()=>gB(De),Q.scope),De=Q.update=()=>Oe.run();De.id=Q.uid,yp(Q,!0),De()},V=(Q,ie,de)=>{ie.component=Q;const me=Q.vnode.props;Q.vnode=ie,Q.next=null,dee(Q,ie.props,me,de),mee(Q,ie.children,de),Cy(),PM(),Ty()},k=(Q,ie,de,me,Ee,xe,Pe,Te,Oe=!1)=>{const De=Q&&Q.children,Me=Q?Q.shapeFlag:0,ve=ie.children,{patchFlag:Ie,shapeFlag:Ve}=ie;if(Ie>0){if(Ie&128){G(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}else if(Ie&256){W(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}}Ve&8?(Me&16&&Y(De,Ee,xe),ve!==De&&f(de,ve)):Me&16?Ve&16?G(De,ve,de,me,Ee,xe,Pe,Te,Oe):Y(De,Ee,xe,!0):(Me&8&&f(de,""),Ve&16&&R(ve,de,me,Ee,xe,Pe,Te,Oe))},W=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Q=Q||Sg,ie=ie||Sg;const De=Q.length,Me=ie.length,ve=Math.min(De,Me);let Ie;for(Ie=0;IeMe?Y(Q,Ee,xe,!0,!1,ve):R(ie,de,me,Ee,xe,Pe,Te,Oe,ve)},G=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{let De=0;const Me=ie.length;let ve=Q.length-1,Ie=Me-1;for(;De<=ve&&De<=Ie;){const Ve=Q[De],Le=ie[De]=Oe?th(ie[De]):du(ie[De]);if(Jp(Ve,Le))A(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;De++}for(;De<=ve&&De<=Ie;){const Ve=Q[ve],Le=ie[Ie]=Oe?th(ie[Ie]):du(ie[Ie]);if(Jp(Ve,Le))A(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;ve--,Ie--}if(De>ve){if(De<=Ie){const Ve=Ie+1,Le=VeIe)for(;De<=ve;)q(Q[De],Ee,xe,!0),De++;else{const Ve=De,Le=De,mt=new Map;for(De=Le;De<=Ie;De++){const mn=ie[De]=Oe?th(ie[De]):du(ie[De]);mn.key!=null&&mt.set(mn.key,De)}let Ct,Pt=0;const yn=Ie-Le+1;let xn=!1,pn=0;const en=new Array(yn);for(De=0;De=yn){q(mn,Ee,xe,!0);continue}let gn;if(mn.key!=null)gn=mt.get(mn.key);else for(Ct=Le;Ct<=Ie;Ct++)if(en[Ct-Le]===0&&Jp(mn,ie[Ct])){gn=Ct;break}gn===void 0?q(mn,Ee,xe,!0):(en[gn-Le]=De+1,gn>=pn?pn=gn:xn=!0,A(mn,ie[gn],de,null,Ee,xe,Pe,Te,Oe),Pt++)}const Rt=xn?Cee(en):Sg;for(Ct=Rt.length-1,De=yn-1;De>=0;De--){const mn=Le+De,gn=ie[mn],Ut=mn+1{const{el:xe,type:Pe,transition:Te,children:Oe,shapeFlag:De}=Q;if(De&6){K(Q.component.subTree,ie,de,me);return}if(De&128){Q.suspense.move(ie,de,me);return}if(De&64){Pe.move(Q,ie,de,re);return}if(Pe===Oa){i(xe,ie,de);for(let ve=0;veTe.enter(xe),Ee);else{const{leave:ve,delayLeave:Ie,afterLeave:Ve}=Te,Le=()=>i(xe,ie,de),mt=()=>{ve(xe,()=>{Le(),Ve&&Ve()})};Ie?Ie(xe,Le,mt):mt()}else i(xe,ie,de)},q=(Q,ie,de,me=!1,Ee=!1)=>{const{type:xe,props:Pe,ref:Te,children:Oe,dynamicChildren:De,shapeFlag:Me,patchFlag:ve,dirs:Ie}=Q;if(Te!=null&&kO(Te,null,de,Q,!0),Me&256){ie.ctx.deactivate(Q);return}const Ve=Me&1&&Ie,Le=!gA(Q);let mt;if(Le&&(mt=Pe&&Pe.onVnodeBeforeUnmount)&&iu(mt,ie,Q),Me&6)$(Q.component,de,me);else{if(Me&128){Q.suspense.unmount(de,me);return}Ve&&gp(Q,null,ie,"beforeUnmount"),Me&64?Q.type.remove(Q,ie,de,Ee,re,me):De&&(xe!==Oa||ve>0&&ve&64)?Y(De,ie,de,!1,!0):(xe===Oa&&ve&384||!Ee&&Me&16)&&Y(Oe,ie,de),me&&te(Q)}(Le&&(mt=Pe&&Pe.onVnodeUnmounted)||Ve)&&Ca(()=>{mt&&iu(mt,ie,Q),Ve&&gp(Q,null,ie,"unmounted")},de)},te=Q=>{const{type:ie,el:de,anchor:me,transition:Ee}=Q;if(ie===Oa){X(de,me);return}if(ie===Yv){S(Q);return}const xe=()=>{o(de),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(Q.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:Pe,delayLeave:Te}=Ee,Oe=()=>Pe(de,xe);Te?Te(Q.el,xe,Oe):Oe()}else xe()},X=(Q,ie)=>{let de;for(;Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},$=(Q,ie,de)=>{const{bum:me,scope:Ee,update:xe,subTree:Pe,um:Te}=Q;me&&Gv(me),Ee.stop(),xe&&(xe.active=!1,q(Pe,Q,ie,de)),Te&&Ca(Te,ie),Ca(()=>{Q.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},Y=(Q,ie,de,me=!1,Ee=!1,xe=0)=>{for(let Pe=xe;PeQ.shapeFlag&6?ae(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():_(Q.anchor||Q.el),ue=(Q,ie,de)=>{Q==null?ie._vnode&&q(ie._vnode,null,null,!0):A(ie._vnode||null,Q,ie,null,null,null,de),PM(),FG(),ie._vnode=Q},re={p:A,um:q,m:K,r:te,mt:D,mc:R,pc:k,pbc:U,n:ae,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:gee(ue,he)}}function yp({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function s5(e,t,n=!1){const i=e.children,o=t.children;if(Tn(i)&&Tn(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Tee=e=>e.__isTeleport,Oa=Symbol(void 0),aS=Symbol(void 0),Bc=Symbol(void 0),Yv=Symbol(void 0),AA=[];let gl=null;function Ur(e=!1){AA.push(gl=e?null:[])}function bee(){AA.pop(),gl=AA[AA.length-1]||null}let YA=1;function HM(e){YA+=e}function a5(e){return e.dynamicChildren=YA>0?gl||Sg:null,bee(),YA>0&&gl&&gl.push(e),e}function Ou(e,t,n,i,o,r){return a5(Lu(e,t,n,i,o,r,!0))}function sh(e,t,n,i,o){return a5(as(e,t,n,i,o,!0))}function Jg(e){return e?e.__v_isVNode===!0:!1}function Jp(e,t){return e.type===t.type&&e.key===t.key}const cS="__vInternal",c5=({key:e})=>e??null,$E=({ref:e,ref_key:t,ref_for:n})=>e!=null?No(e)||Bs(e)||An(e)?{i:ss,r:e,k:t,f:!!n}:e:null;function Lu(e,t=null,n=null,i=0,o=null,r=e===Oa?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&c5(t),ref:t&&$E(t),scopeId:HG,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ss};return a?(CB(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=No(n)?8:16),YA>0&&!s&&gl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&gl.push(c),c}const as=Eee;function Eee(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===JG)&&(e=Bc),Jg(e)){const a=Nh(e,t,!0);return n&&CB(a,n),YA>0&&!r&&gl&&(a.shapeFlag&6?gl[gl.indexOf(e)]=a:gl.push(a)),a.patchFlag|=-2,a}if(Ree(e)&&(e=e.__vccOpts),t){t=xee(t);let{class:a,style:c}=t;a&&!No(a)&&(t.class=ml(a)),eo(c)&&(IG(c)&&!Tn(c)&&(c=cs({},c)),t.style=Kw(c))}const s=No(e)?1:kZ(e)?128:Tee(e)?64:eo(e)?4:An(e)?2:0;return Lu(e,t,n,i,o,s,r,!0)}function xee(e){return e?IG(e)||cS in e?cs({},e):e:null}function Nh(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?l5(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&c5(a),ref:t&&t.ref?n&&o?Tn(o)?o.concat($E(t)):[o,$E(t)]:$E(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oa?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nh(e.ssContent),ssFallback:e.ssFallback&&Nh(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function wee(e=" ",t=0){return as(aS,null,e,t)}function kT(e="",t=!1){return t?(Ur(),sh(Bc,null,e)):as(Bc,null,e)}function du(e){return e==null||typeof e=="boolean"?as(Bc):Tn(e)?as(Oa,null,e.slice()):typeof e=="object"?th(e):as(aS,null,String(e))}function th(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nh(e)}function CB(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Tn(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),CB(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(cS in t)?t._ctx=ss:o===3&&ss&&(ss.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else An(t)?(t={default:t,_ctx:ss},n=32):(t=String(t),i&64?(n=16,t=[wee(t)]):n=8);e.children=t,e.shapeFlag|=n}function l5(...e){const t={};for(let n=0;nWr||ss,Qg=e=>{Wr=e,e.scope.on()},hm=()=>{Wr&&Wr.scope.off(),Wr=null};function u5(e){return e.vnode.shapeFlag&4}let XA=!1;function Iee(e,t=!1){XA=t;const{props:n,children:i}=e.vnode,o=u5(e);fee(e,n,o,t),pee(e,i);const r=o?Pee(e,t):void 0;return XA=!1,r}function Pee(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=hB(new Proxy(e.ctx,ree));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Lee(e):null;Qg(e),Cy();const r=Ch(i,e,0,[e.props,o]);if(Ty(),hm(),hG(r)){if(r.then(hm,hm),t)return r.then(s=>{VM(e,s,t)}).catch(s=>{nS(s,e,0)});e.asyncDep=r}else VM(e,r,t)}else f5(e,t)}function VM(e,t,n){An(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:eo(t)&&(e.setupState=BG(t)),f5(e,n)}let kM;function f5(e,t,n){const i=e.type;if(!e.render){if(!t&&kM&&!i.render){const o=i.template||yB(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=cs(cs({isCustomElement:r,delimiters:a},s),c);i.render=kM(o,u)}}e.render=i.render||El}Qg(e),Cy(),see(e),Ty(),hm()}function Oee(e){return new Proxy(e.attrs,{get(t,n){return Ya(e,"get","$attrs"),t[n]}})}function Lee(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=Oee(e))},slots:e.slots,emit:e.emit,expose:t}}function uS(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(BG(hB(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yA)return yA[n](e)},has(t,n){return n in t||n in yA}}))}function Bee(e,t=!0){return An(e)?e.displayName||e.name:e.name||t&&e.__name}function Ree(e){return An(e)&&"__vccOpts"in e}const Co=(e,t)=>PZ(e,t,XA);function TB(e,t,n){const i=arguments.length;return i===2?eo(t)&&!Tn(t)?Jg(t)?as(e,null,[t]):as(e,t):as(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Jg(n)&&(n=[n]),as(e,t,n))}const Nee=Symbol(""),Mee=()=>Eu(Nee),Fee="3.2.45",zee="http://www.w3.org/2000/svg",Qp=typeof document<"u"?document:null,GM=Qp&&Qp.createElement("template"),Uee={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?Qp.createElementNS(zee,e):Qp.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Qp.createTextNode(e),createComment:e=>Qp.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qp.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{GM.innerHTML=i?`${e}`:e;const a=GM.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Hee(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Vee(e,t,n){const i=e.style,o=No(n);if(n&&!o){for(const r in n)GO(i,r,n[r]);if(t&&!No(t))for(const r in t)n[r]==null&&GO(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const WM=/\s*!important$/;function GO(e,t,n){if(Tn(n))n.forEach(i=>GO(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=kee(e,t);WM.test(n)?e.setProperty(Ay(i),n.replace(WM,""),"important"):e[i]=n}}const jM=["Webkit","Moz","ms"],Xv={};function kee(e,t){const n=Xv[t];if(n)return n;let i=Pu(t);if(i!=="filter"&&i in e)return Xv[t]=i;i=eS(i);for(let o=0;o$v||($ee.then(()=>$v=0),$v=Date.now());function Jee(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Lc(Qee(i,n.value),t,5,[i])};return n.value=e,n.attached=Kee(),n}function Qee(e,t){if(Tn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const XM=/^on[a-z]/,Zee=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?Hee(e,i,o):t==="style"?Vee(e,n,i):Jw(t)?nB(t)||Yee(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ete(e,t,i,o))?Wee(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Gee(e,t,i,o))};function ete(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&XM.test(t)&&An(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||XM.test(t)&&No(n)?!1:t in e}const vd="transition",jy="animation",fS=(e,{slots:t})=>TB(GG,tte(e),t);fS.displayName="Transition";const d5={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};fS.props=cs({},GG.props,d5);const Ap=(e,t=[])=>{Tn(e)?e.forEach(n=>n(...t)):e&&e(...t)},$M=e=>e?Tn(e)?e.some(t=>t.length>1):e.length>1:!1;function tte(e){const t={};for(const I in e)I in d5||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:_=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=nte(o),A=p&&p[0],C=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:L=b,onAppear:H=x,onAppearCancelled:R=w}=t,z=(I,m,D)=>{Cp(I,m?f:a),Cp(I,m?u:s),D&&D()},U=(I,m)=>{I._isLeaving=!1,Cp(I,h),Cp(I,g),Cp(I,_),m&&m()},v=I=>(m,D)=>{const O=I?H:x,M=()=>z(m,I,D);Ap(O,[m,M]),KM(()=>{Cp(m,I?c:r),Dd(m,I?f:a),$M(O)||JM(m,i,A,M)})};return cs(t,{onBeforeEnter(I){Ap(b,[I]),Dd(I,r),Dd(I,s)},onBeforeAppear(I){Ap(L,[I]),Dd(I,c),Dd(I,u)},onEnter:v(!1),onAppear:v(!0),onLeave(I,m){I._isLeaving=!0;const D=()=>U(I,m);Dd(I,h),rte(),Dd(I,_),KM(()=>{I._isLeaving&&(Cp(I,h),Dd(I,g),$M(S)||JM(I,i,C,D))}),Ap(S,[I,D])},onEnterCancelled(I){z(I,!1),Ap(w,[I])},onAppearCancelled(I){z(I,!0),Ap(R,[I])},onLeaveCancelled(I){U(I),Ap(P,[I])}})}function nte(e){if(e==null)return null;if(eo(e))return[Kv(e.enter),Kv(e.leave)];{const t=Kv(e);return[t,t]}}function Kv(e){return sB(e)}function Dd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Cp(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function KM(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ite=0;function JM(e,t,n,i){const o=e._endId=++ite,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=ote(e,t);if(!s)return i();const u=s+"end";let f=0;const h=()=>{e.removeEventListener(u,_),r()},_=g=>{g.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[p]||"").split(", "),o=i(`${vd}Delay`),r=i(`${vd}Duration`),s=QM(o,r),a=i(`${jy}Delay`),c=i(`${jy}Duration`),u=QM(a,c);let f=null,h=0,_=0;t===vd?s>0&&(f=vd,h=s,_=r.length):t===jy?u>0&&(f=jy,h=u,_=c.length):(h=Math.max(s,u),f=h>0?s>u?vd:jy:null,_=f?f===vd?r.length:c.length:0);const g=f===vd&&/\b(transform|all)(,|$)/.test(i(`${vd}Property`).toString());return{type:f,timeout:h,propCount:_,hasTransform:g}}function QM(e,t){for(;e.lengthZM(n)+ZM(e[i])))}function ZM(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function rte(){return document.body.offsetHeight}const ste=["ctrl","shift","alt","meta"],ate={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ste.some(n=>e[`${n}Key`]&&!t.includes(n))},cte=(e,t)=>(n,...i)=>{for(let o=0;o{qy(e,!1)}):qy(e,t))},beforeUnmount(e,{value:t}){qy(e,t)}};function qy(e,t){e.style.display=t?e._vod:"none"}const lte=cs({patchProp:Zee},Uee);let eF;function p5(){return eF||(eF=yee(lte))}const tF=(...e)=>{p5().render(...e)},ute=(...e)=>{const t=p5().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=fte(i);if(!o)return;const r=t._component;!An(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function fte(e){return No(e)?document.querySelector(e):e}var dte=!1;/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function tB(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Kw(e){if(Tn(e)){const t={};for(let n=0;n{if(n){const i=n.split(UQ);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ml(e){let t="";if(Mo(e))t=e;else if(Tn(e))for(let n=0;nMo(e)?e:e==null?"":Tn(e)||eo(e)&&(e.toString===pG||!An(e.toString))?JSON.stringify(e,fG,2):String(e),fG=(e,t)=>t&&t.__v_isRef?fG(e,t.value):vg(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:dG(t)?{[`Set(${t.size})`]:[...t.values()]}:eo(t)&&!Tn(t)&&!mG(t)?String(t):t,ro={},Sg=[],El=()=>{},WQ=()=>!1,jQ=/^on[^a-z]/,Jw=e=>jQ.test(e),nB=e=>e.startsWith("onUpdate:"),cs=Object.assign,iB=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qQ=Object.prototype.hasOwnProperty,ti=(e,t)=>qQ.call(e,t),Tn=Array.isArray,vg=e=>Qw(e)==="[object Map]",dG=e=>Qw(e)==="[object Set]",An=e=>typeof e=="function",Mo=e=>typeof e=="string",oB=e=>typeof e=="symbol",eo=e=>e!==null&&typeof e=="object",hG=e=>eo(e)&&An(e.then)&&An(e.catch),pG=Object.prototype.toString,Qw=e=>pG.call(e),YQ=e=>Qw(e).slice(8,-1),mG=e=>Qw(e)==="[object Object]",rB=e=>Mo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,XE=tB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},XQ=/-(\w)/g,Pu=Zw(e=>e.replace(XQ,(t,n)=>n?n.toUpperCase():"")),$Q=/\B([A-Z])/g,Ay=Zw(e=>e.replace($Q,"-$1").toLowerCase()),eS=Zw(e=>e.charAt(0).toUpperCase()+e.slice(1)),kv=Zw(e=>e?`on${eS(e)}`:""),GA=(e,t)=>!Object.is(e,t),Gv=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sB=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let bM;const KQ=()=>bM||(bM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Da;class _G{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Da,!t&&Da&&(this.index=(Da.scopes||(Da.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Da;try{return Da=this,t()}finally{Da=n}}}on(){Da=this}off(){Da=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},gG=e=>(e.w&Rh)>0,yG=e=>(e.n&Rh)>0,tZ=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(f==="length"||f>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Tn(e)?rB(n)&&a.push(s.get("length")):(a.push(s.get(dm)),vg(e)&&a.push(s.get(BO)));break;case"delete":Tn(e)||(a.push(s.get(dm)),vg(e)&&a.push(s.get(BO)));break;case"set":vg(e)&&a.push(s.get(dm));break}if(a.length===1)a[0]&&RO(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);RO(aB(c))}}function RO(e,t){const n=Tn(e)?e:[...e];for(const i of n)i.computed&&xM(i);for(const i of n)i.computed||xM(i)}function xM(e,t){(e!==_l||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const iZ=tB("__proto__,__v_isRef,__isVue"),TG=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oB)),oZ=lB(),rZ=lB(!1,!0),sZ=lB(!0),wM=aZ();function aZ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=wi(this);for(let r=0,s=this.length;r{e[t]=function(...n){Cy();const i=wi(this)[t].apply(this,n);return Ty(),i}}),e}function lB(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?EZ:SG:t?wG:xG).get(i))return i;const s=Tn(i);if(!e&&s&&ti(wM,o))return Reflect.get(wM,o,r);const a=Reflect.get(i,o,r);return(oB(o)?TG.has(o):iZ(o))||(e||Ya(i,"get",o),t)?a:Bs(a)?s&&rB(o)?a:a.value:eo(a)?e?DG(a):FC(a):a}}const cZ=bG(),lZ=bG(!0);function bG(e=!1){return function(n,i,o,r){let s=n[i];if(Kg(s)&&Bs(s)&&!Bs(o))return!1;if(!e&&(!Gx(o)&&!Kg(o)&&(s=wi(s),o=wi(o)),!Tn(n)&&Bs(s)&&!Bs(o)))return s.value=o,!0;const a=Tn(n)&&rB(i)?Number(i)e,tS=e=>Reflect.getPrototypeOf(e);function MT(e,t,n=!1,i=!1){e=e.__v_raw;const o=wi(e),r=wi(t);n||(t!==r&&Ya(o,"get",t),Ya(o,"get",r));const{has:s}=tS(o),a=i?uB:n?pB:WA;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function FT(e,t=!1){const n=this.__v_raw,i=wi(n),o=wi(e);return t||(e!==o&&Ya(i,"has",e),Ya(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function zT(e,t=!1){return e=e.__v_raw,!t&&Ya(wi(e),"iterate",dm),Reflect.get(e,"size",e)}function SM(e){e=wi(e);const t=wi(this);return tS(t).has.call(t,e)||(t.add(e),Yf(t,"add",e,e)),this}function vM(e,t){t=wi(t);const n=wi(this),{has:i,get:o}=tS(n);let r=i.call(n,e);r||(e=wi(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?GA(t,s)&&Yf(n,"set",e,t):Yf(n,"add",e,t),this}function DM(e){const t=wi(this),{has:n,get:i}=tS(t);let o=n.call(t,e);o||(e=wi(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&Yf(t,"delete",e,void 0),r}function IM(){const e=wi(this),t=e.size!==0,n=e.clear();return t&&Yf(e,"clear",void 0,void 0),n}function UT(e,t){return function(i,o){const r=this,s=r.__v_raw,a=wi(s),c=t?uB:e?pB:WA;return!e&&Ya(a,"iterate",dm),s.forEach((u,f)=>i.call(o,c(u),c(f),r))}}function HT(e,t,n){return function(...i){const o=this.__v_raw,r=wi(o),s=vg(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),f=n?uB:t?pB:WA;return!t&&Ya(r,"iterate",c?BO:dm),{next(){const{value:h,done:_}=u.next();return _?{value:h,done:_}:{value:a?[f(h[0]),f(h[1])]:f(h),done:_}},[Symbol.iterator](){return this}}}}function Sd(e){return function(...t){return e==="delete"?!1:this}}function mZ(){const e={get(r){return MT(this,r)},get size(){return zT(this)},has:FT,add:SM,set:vM,delete:DM,clear:IM,forEach:UT(!1,!1)},t={get(r){return MT(this,r,!1,!0)},get size(){return zT(this)},has:FT,add:SM,set:vM,delete:DM,clear:IM,forEach:UT(!1,!0)},n={get(r){return MT(this,r,!0)},get size(){return zT(this,!0)},has(r){return FT.call(this,r,!0)},add:Sd("add"),set:Sd("set"),delete:Sd("delete"),clear:Sd("clear"),forEach:UT(!0,!1)},i={get(r){return MT(this,r,!0,!0)},get size(){return zT(this,!0)},has(r){return FT.call(this,r,!0)},add:Sd("add"),set:Sd("set"),delete:Sd("delete"),clear:Sd("clear"),forEach:UT(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=HT(r,!1,!1),n[r]=HT(r,!0,!1),t[r]=HT(r,!1,!0),i[r]=HT(r,!0,!0)}),[e,n,t,i]}const[_Z,gZ,yZ,AZ]=mZ();function fB(e,t){const n=t?e?AZ:yZ:e?gZ:_Z;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(ti(n,o)&&o in i?n:i,o,r)}const CZ={get:fB(!1,!1)},TZ={get:fB(!1,!0)},bZ={get:fB(!0,!1)},xG=new WeakMap,wG=new WeakMap,SG=new WeakMap,EZ=new WeakMap;function xZ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wZ(e){return e.__v_skip||!Object.isExtensible(e)?0:xZ(YQ(e))}function FC(e){return Kg(e)?e:dB(e,!1,EG,CZ,xG)}function vG(e){return dB(e,!1,pZ,TZ,wG)}function DG(e){return dB(e,!0,hZ,bZ,SG)}function dB(e,t,n,i,o){if(!eo(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=wZ(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function Dg(e){return Kg(e)?Dg(e.__v_raw):!!(e&&e.__v_isReactive)}function Kg(e){return!!(e&&e.__v_isReadonly)}function Gx(e){return!!(e&&e.__v_isShallow)}function IG(e){return Dg(e)||Kg(e)}function wi(e){const t=e&&e.__v_raw;return t?wi(t):e}function hB(e){return kx(e,"__v_skip",!0),e}const WA=e=>eo(e)?FC(e):e,pB=e=>eo(e)?DG(e):e;function PG(e){Ah&&_l&&(e=wi(e),CG(e.dep||(e.dep=aB())))}function OG(e,t){e=wi(e),e.dep&&RO(e.dep)}function Bs(e){return!!(e&&e.__v_isRef===!0)}function Bf(e){return LG(e,!1)}function SZ(e){return LG(e,!0)}function LG(e,t){return Bs(e)?e:new vZ(e,t)}class vZ{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:wi(t),this._value=n?t:WA(t)}get value(){return PG(this),this._value}set value(t){const n=this.__v_isShallow||Gx(t)||Kg(t);t=n?t:wi(t),GA(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:WA(t),OG(this))}}function kn(e){return Bs(e)?e.value:e}const DZ={get:(e,t,n)=>kn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Bs(o)&&!Bs(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function BG(e){return Dg(e)?e:new Proxy(e,DZ)}var RG;class IZ{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[RG]=!1,this._dirty=!0,this.effect=new cB(t,()=>{this._dirty||(this._dirty=!0,OG(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=wi(this);return PG(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}RG="__v_isReadonly";function PZ(e,t,n=!1){let i,o;const r=An(e);return r?(i=e,o=El):(i=e.get,o=e.set),new IZ(i,o,r||!o,n)}function OZ(e,...t){}function Ch(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){nS(r,t,n)}return o}function Lc(e,t,n,i){if(An(e)){const r=Ch(e,t,n,i);return r&&hG(r)&&r.catch(s=>{nS(s,t,n)}),r}const o=[];for(let r=0;r>>1;qA(Ds[i])gu&&Ds.splice(t,1)}function NZ(e){Tn(e)?Ig.push(...e):(!yf||!yf.includes(e,e.allowRecurse?Kp+1:Kp))&&Ig.push(e),MG()}function PM(e,t=jA?gu+1:0){for(;tqA(n)-qA(i)),Kp=0;Kpe.id==null?1/0:e.id,MZ=(e,t)=>{const n=qA(e)-qA(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zG(e){NO=!1,jA=!0,Ds.sort(MZ);const t=El;try{for(gu=0;guMo(g)?g.trim():g)),h&&(o=n.map(sB))}let a,c=i[a=kv(t)]||i[a=kv(Pu(t))];!c&&r&&(c=i[a=kv(Ay(t))]),c&&Lc(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lc(u,e,6,o)}}function UG(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!An(e)){const c=u=>{const f=UG(u,t,!0);f&&(a=!0,cs(s,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(eo(e)&&i.set(e,null),null):(Tn(r)?r.forEach(c=>s[c]=null):cs(s,r),eo(e)&&i.set(e,s),s)}function iS(e,t){return!e||!Jw(t)?!1:(t=t.slice(2).replace(/Once$/,""),ti(e,t[0].toLowerCase()+t.slice(1))||ti(e,Ay(t))||ti(e,t))}let ss=null,HG=null;function Wx(e){const t=ss;return ss=e,HG=e&&e.type.__scopeId||null,t}function mA(e,t=ss,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&HM(-1);const r=Wx(t);let s;try{s=e(...o)}finally{Wx(r),i._d&&HM(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Wv(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:f,renderCache:h,data:_,setupState:g,ctx:p,inheritAttrs:A}=e;let C,b;const x=Wx(e);try{if(n.shapeFlag&4){const S=o||i;C=du(f.call(S,S,h,r,g,_,p)),b=c}else{const S=t;C=du(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),b=t.props?c:zZ(c)}}catch(S){AA.length=0,nS(S,e,1),C=as(Bc)}let w=C;if(b&&A!==!1){const S=Object.keys(b),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(nB)&&(b=UZ(b,s)),w=Nh(w,b))}return n.dirs&&(w=Nh(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),C=w,Wx(x),C}const zZ=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jw(n))&&((t||(t={}))[n]=e[n]);return t},UZ=(e,t)=>{const n={};for(const i in e)(!nB(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function HZ(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?OM(i,s,u):!!s;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function GZ(e,t){t&&t.pendingBranch?Tn(e)?t.effects.push(...e):t.effects.push(e):NZ(e)}function _A(e,t){if(Wr){let n=Wr.provides;const i=Wr.parent&&Wr.parent.provides;i===n&&(n=Wr.provides=Object.create(i)),n[e]=t}}function Eu(e,t,n=!1){const i=Wr||ss;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&An(t)?t.call(i.proxy):t}}const VT={};function Th(e,t,n){return VG(e,t,n)}function VG(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=ro){const a=Wr;let c,u=!1,f=!1;if(Bs(e)?(c=()=>e.value,u=Gx(e)):Dg(e)?(c=()=>e,i=!0):Tn(e)?(f=!0,u=e.some(w=>Dg(w)||Gx(w)),c=()=>e.map(w=>{if(Bs(w))return w.value;if(Dg(w))return rm(w);if(An(w))return Ch(w,a,2)})):An(e)?t?c=()=>Ch(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Lc(e,a,3,[_])}:c=El,t&&i){const w=c;c=()=>rm(w())}let h,_=w=>{h=b.onStop=()=>{Ch(w,a,4)}},g;if(XA)if(_=El,t?n&&Lc(t,a,3,[c(),f?[]:void 0,_]):c(),o==="sync"){const w=Mee();g=w.__watcherHandles||(w.__watcherHandles=[])}else return El;let p=f?new Array(e.length).fill(VT):VT;const A=()=>{if(b.active)if(t){const w=b.run();(i||u||(f?w.some((S,P)=>GA(S,p[P])):GA(w,p)))&&(h&&h(),Lc(t,a,3,[w,p===VT?void 0:f&&p[0]===VT?[]:p,_]),p=w)}else b.run()};A.allowRecurse=!!t;let C;o==="sync"?C=A:o==="post"?C=()=>Ca(A,a&&a.suspense):(A.pre=!0,a&&(A.id=a.uid),C=()=>gB(A));const b=new cB(c,C);t?n?A():p=b.run():o==="post"?Ca(b.run.bind(b),a&&a.suspense):b.run();const x=()=>{b.stop(),a&&a.scope&&iB(a.scope.effects,b)};return g&&g.push(x),x}function WZ(e,t,n){const i=this.proxy,o=Mo(e)?e.includes(".")?kG(i,e):()=>i[e]:e.bind(i,i);let r;An(t)?r=t:(r=t.handler,n=t);const s=Wr;Qg(this);const a=VG(o,r.bind(i),n);return s?Qg(s):hm(),a}function kG(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{rm(n,t)});else if(mG(e))for(const n in e)rm(e[n],t);return e}function jZ(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zC(()=>{e.isMounted=!0}),YG(()=>{e.isUnmounting=!0}),e}const cc=[Function,Array],qZ={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cc,onEnter:cc,onAfterEnter:cc,onEnterCancelled:cc,onBeforeLeave:cc,onLeave:cc,onAfterLeave:cc,onLeaveCancelled:cc,onBeforeAppear:cc,onAppear:cc,onAfterAppear:cc,onAppearCancelled:cc},setup(e,{slots:t}){const n=lS(),i=jZ();let o;return()=>{const r=t.default&&jG(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const A of r)if(A.type!==Bc){s=A;break}}const a=wi(e),{mode:c}=a;if(i.isLeaving)return jv(s);const u=LM(s);if(!u)return jv(s);const f=MO(u,a,i,n);FO(u,f);const h=n.subTree,_=h&&LM(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const A=p();o===void 0?o=A:A!==o&&(o=A,g=!0)}if(_&&_.type!==Bc&&(!Jp(u,_)||g)){const A=MO(_,a,i,n);if(FO(_,A),c==="out-in")return i.isLeaving=!0,A.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},jv(s);c==="in-out"&&u.type!==Bc&&(A.delayLeave=(C,b,x)=>{const w=WG(i,_);w[String(_.key)]=_,C._leaveCb=()=>{b(),C._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return s}}},GG=qZ;function WG(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function MO(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:_,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:A,onAppear:C,onAfterAppear:b,onAppearCancelled:x}=t,w=String(e.key),S=WG(n,e),P=(R,z)=>{R&&Lc(R,i,9,z)},L=(R,z)=>{const U=z[1];P(R,z),Tn(R)?R.every(v=>v.length<=1)&&U():R.length<=1&&U()},H={mode:r,persisted:s,beforeEnter(R){let z=a;if(!n.isMounted)if(o)z=A||a;else return;R._leaveCb&&R._leaveCb(!0);const U=S[w];U&&Jp(e,U)&&U.el._leaveCb&&U.el._leaveCb(),P(z,[R])},enter(R){let z=c,U=u,v=f;if(!n.isMounted)if(o)z=C||c,U=b||u,v=x||f;else return;let I=!1;const m=R._enterCb=D=>{I||(I=!0,D?P(v,[R]):P(U,[R]),H.delayedLeave&&H.delayedLeave(),R._enterCb=void 0)};z?L(z,[R,m]):m()},leave(R,z){const U=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return z();P(h,[R]);let v=!1;const I=R._leaveCb=m=>{v||(v=!0,z(),m?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,_?L(_,[R,I]):I()},clone(R){return MO(R,t,n,i)}};return H}function jv(e){if(oS(e))return e=Nh(e),e.children=null,e}function LM(e){return oS(e)?e.children?e.children[0]:void 0:e}function FO(e,t){e.shapeFlag&6&&e.component?FO(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jG(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,oS=e=>e.type.__isKeepAlive;function YZ(e,t){qG(e,"a",t)}function XZ(e,t){qG(e,"da",t)}function qG(e,t,n=Wr){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(rS(t,i,n),n){let o=n.parent;for(;o&&o.parent;)oS(o.parent.vnode)&&$Z(i,t,n,o),o=o.parent}}function $Z(e,t,n,i){const o=rS(t,e,i,!0);XG(()=>{iB(i[t],o)},n)}function rS(e,t,n=Wr,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Cy(),Qg(n);const a=Lc(t,n,e,s);return hm(),Ty(),a});return i?o.unshift(r):o.push(r),r}}const rd=e=>(t,n=Wr)=>(!XA||e==="sp")&&rS(e,(...i)=>t(...i),n),KZ=rd("bm"),zC=rd("m"),JZ=rd("bu"),QZ=rd("u"),YG=rd("bum"),XG=rd("um"),ZZ=rd("sp"),eee=rd("rtg"),tee=rd("rtc");function nee(e,t=Wr){rS("ec",e,t)}function $G(e,t){const n=ss;if(n===null)return e;const i=uS(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rJg(t)?!(t.type===Bc||t.type===Oa&&!QG(t.children)):!0)?e:null}const zO=e=>e?u5(e)?uS(e)||e.proxy:zO(e.parent):null,yA=cs(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zO(e.parent),$root:e=>zO(e.root),$emit:e=>e.emit,$options:e=>yB(e),$forceUpdate:e=>e.f||(e.f=()=>gB(e.update)),$nextTick:e=>e.n||(e.n=_B.bind(e.proxy)),$watch:e=>WZ.bind(e)}),qv=(e,t)=>e!==ro&&!e.__isScriptSetup&&ti(e,t),ree={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(qv(i,t))return s[t]=1,i[t];if(o!==ro&&ti(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&ti(u,t))return s[t]=3,r[t];if(n!==ro&&ti(n,t))return s[t]=4,n[t];UO&&(s[t]=0)}}const f=yA[t];let h,_;if(f)return t==="$attrs"&&Ya(e,"get",t),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==ro&&ti(n,t))return s[t]=4,n[t];if(_=c.config.globalProperties,ti(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return qv(o,t)?(o[t]=n,!0):i!==ro&&ti(i,t)?(i[t]=n,!0):ti(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==ro&&ti(e,s)||qv(t,s)||(a=r[0])&&ti(a,s)||ti(i,s)||ti(yA,s)||ti(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ti(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let UO=!0;function see(e){const t=yB(e),n=e.proxy,i=e.ctx;UO=!1,t.beforeCreate&&RM(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:f,beforeMount:h,mounted:_,beforeUpdate:g,updated:p,activated:A,deactivated:C,beforeDestroy:b,beforeUnmount:x,destroyed:w,unmounted:S,render:P,renderTracked:L,renderTriggered:H,errorCaptured:R,serverPrefetch:z,expose:U,inheritAttrs:v,components:I,directives:m,filters:D}=t;if(u&&aee(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];An(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);eo(V)&&(e.data=FC(V))}if(UO=!0,r)for(const V in r){const k=r[V],W=An(k)?k.bind(n,n):An(k.get)?k.get.bind(n,n):El,G=!An(k)&&An(k.set)?k.set.bind(n):El,K=Co({get:W,set:G});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)ZG(a[V],i,n,V);if(c){const V=An(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{_A(k,V[k])})}f&&RM(f,e,"c");function M(V,k){Tn(k)?k.forEach(W=>V(W.bind(n))):k&&V(k.bind(n))}if(M(KZ,h),M(zC,_),M(JZ,g),M(QZ,p),M(YZ,A),M(XZ,C),M(nee,R),M(tee,L),M(eee,H),M(YG,x),M(XG,S),M(ZZ,z),Tn(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:W=>n[k]=W})})}else e.exposed||(e.exposed={});P&&e.render===El&&(e.render=P),v!=null&&(e.inheritAttrs=v),I&&(e.components=I),m&&(e.directives=m)}function aee(e,t,n=El,i=!1){Tn(e)&&(e=HO(e));for(const o in e){const r=e[o];let s;eo(r)?"default"in r?s=Eu(r.from||o,r.default,!0):s=Eu(r.from||o):s=Eu(r),Bs(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function RM(e,t,n){Lc(Tn(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function ZG(e,t,n,i){const o=i.includes(".")?kG(n,i):()=>n[i];if(Mo(e)){const r=t[e];An(r)&&Th(o,r)}else if(An(e))Th(o,e.bind(n));else if(eo(e))if(Tn(e))e.forEach(r=>ZG(r,t,n,i));else{const r=An(e.handler)?e.handler.bind(n):t[e.handler];An(r)&&Th(o,r,e)}}function yB(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>jx(c,u,s,!0)),jx(c,t,s)),eo(t)&&r.set(t,c),c}function jx(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&jx(e,r,n,!0),o&&o.forEach(s=>jx(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=cee[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const cee={data:NM,props:Yp,emits:Yp,methods:Yp,computed:Yp,beforeCreate:ea,created:ea,beforeMount:ea,mounted:ea,beforeUpdate:ea,updated:ea,beforeDestroy:ea,beforeUnmount:ea,destroyed:ea,unmounted:ea,activated:ea,deactivated:ea,errorCaptured:ea,serverPrefetch:ea,components:Yp,directives:Yp,watch:uee,provide:NM,inject:lee};function NM(e,t){return t?e?function(){return cs(An(e)?e.call(this,this):e,An(t)?t.call(this,this):t)}:t:e}function lee(e,t){return Yp(HO(e),HO(t))}function HO(e){if(Tn(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[_,g]=t5(h,t,!0);cs(s,_),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return eo(e)&&i.set(e,Sg),Sg;if(Tn(r))for(let f=0;f-1,g[1]=A<0||p-1||ti(g,"default"))&&a.push(h)}}}const u=[s,a];return eo(e)&&i.set(e,u),u}function MM(e){return e[0]!=="$"}function FM(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function zM(e,t){return FM(e)===FM(t)}function UM(e,t){return Tn(t)?t.findIndex(n=>zM(n,e)):An(t)&&zM(t,e)?0:-1}const n5=e=>e[0]==="_"||e==="$stable",AB=e=>Tn(e)?e.map(du):[du(e)],hee=(e,t,n)=>{if(t._n)return t;const i=mA((...o)=>AB(t(...o)),n);return i._c=!1,i},i5=(e,t,n)=>{const i=e._ctx;for(const o in e){if(n5(o))continue;const r=e[o];if(An(r))t[o]=hee(o,r,i);else if(r!=null){const s=AB(r);t[o]=()=>s}}},o5=(e,t)=>{const n=AB(t);e.slots.default=()=>n},pee=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=wi(t),kx(t,"_",n)):i5(t,e.slots={})}else e.slots={},t&&o5(e,t);kx(e.slots,cS,1)},mee=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=ro;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(cs(o,t),!n&&a===1&&delete o._):(r=!t.$stable,i5(t,o)),s=t}else t&&(o5(e,t),s={default:1});if(r)for(const a in o)!n5(a)&&!(a in s)&&delete o[a]};function r5(){return{app:null,config:{isNativeTag:WQ,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _ee=0;function gee(e,t){return function(i,o=null){An(i)||(i=Object.assign({},i)),o!=null&&!eo(o)&&(o=null);const r=r5(),s=new Set;let a=!1;const c=r.app={_uid:_ee++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Fee,get config(){return r.config},set config(u){},use(u,...f){return s.has(u)||(u&&An(u.install)?(s.add(u),u.install(c,...f)):An(u)&&(s.add(u),u(c,...f))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,f){return f?(r.components[u]=f,c):r.components[u]},directive(u,f){return f?(r.directives[u]=f,c):r.directives[u]},mount(u,f,h){if(!a){const _=as(i,o);return _.appContext=r,f&&t?t(_,u):e(_,u,h),a=!0,c._container=u,u.__vue_app__=c,uS(_.component)||_.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return r.provides[u]=f,c}};return c}}function kO(e,t,n,i,o=!1){if(Tn(e)){e.forEach((_,g)=>kO(_,t&&(Tn(t)?t[g]:t),n,i,o));return}if(gA(i)&&!o)return;const r=i.shapeFlag&4?uS(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,f=a.refs===ro?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(Mo(u)?(f[u]=null,ti(h,u)&&(h[u]=null)):Bs(u)&&(u.value=null)),An(c))Ch(c,a,12,[s,f]);else{const _=Mo(c),g=Bs(c);if(_||g){const p=()=>{if(e.f){const A=_?ti(h,c)?h[c]:f[c]:c.value;o?Tn(A)&&iB(A,r):Tn(A)?A.includes(r)||A.push(r):_?(f[c]=[r],ti(h,c)&&(h[c]=f[c])):(c.value=[r],e.k&&(f[e.k]=c.value))}else _?(f[c]=s,ti(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(f[e.k]=s))};s?(p.id=-1,Ca(p,n)):p()}}}const Ca=GZ;function yee(e){return Aee(e)}function Aee(e,t){const n=KQ();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:_,setScopeId:g=El,insertStaticContent:p}=e,A=(Q,ie,de,me=null,Ee=null,xe=null,Pe=!1,Te=null,Oe=!!ie.dynamicChildren)=>{if(Q===ie)return;Q&&!Jp(Q,ie)&&(me=ae(Q),q(Q,Ee,xe,!0),Q=null),ie.patchFlag===-2&&(Oe=!1,ie.dynamicChildren=null);const{type:De,ref:Me,shapeFlag:ve}=ie;switch(De){case aS:C(Q,ie,de,me);break;case Bc:b(Q,ie,de,me);break;case Yv:Q==null&&x(ie,de,me,Pe);break;case Oa:I(Q,ie,de,me,Ee,xe,Pe,Te,Oe);break;default:ve&1?P(Q,ie,de,me,Ee,xe,Pe,Te,Oe):ve&6?m(Q,ie,de,me,Ee,xe,Pe,Te,Oe):(ve&64||ve&128)&&De.process(Q,ie,de,me,Ee,xe,Pe,Te,Oe,re)}Me!=null&&Ee&&kO(Me,Q&&Q.ref,xe,ie||Q,!ie)},C=(Q,ie,de,me)=>{if(Q==null)i(ie.el=a(ie.children),de,me);else{const Ee=ie.el=Q.el;ie.children!==Q.children&&u(Ee,ie.children)}},b=(Q,ie,de,me)=>{Q==null?i(ie.el=c(ie.children||""),de,me):ie.el=Q.el},x=(Q,ie,de,me)=>{[Q.el,Q.anchor]=p(Q.children,ie,de,me,Q.el,Q.anchor)},w=({el:Q,anchor:ie},de,me)=>{let Ee;for(;Q&&Q!==ie;)Ee=_(Q),i(Q,de,me),Q=Ee;i(ie,de,me)},S=({el:Q,anchor:ie})=>{let de;for(;Q&&Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},P=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Pe=Pe||ie.type==="svg",Q==null?L(ie,de,me,Ee,xe,Pe,Te,Oe):z(Q,ie,Ee,xe,Pe,Te,Oe)},L=(Q,ie,de,me,Ee,xe,Pe,Te)=>{let Oe,De;const{type:Me,props:ve,shapeFlag:Ie,transition:Ve,dirs:Le}=Q;if(Oe=Q.el=s(Q.type,xe,ve&&ve.is,ve),Ie&8?f(Oe,Q.children):Ie&16&&R(Q.children,Oe,null,me,Ee,xe&&Me!=="foreignObject",Pe,Te),Le&&gp(Q,null,me,"created"),ve){for(const Ct in ve)Ct!=="value"&&!XE(Ct)&&r(Oe,Ct,null,ve[Ct],xe,Q.children,me,Ee,Y);"value"in ve&&r(Oe,"value",null,ve.value),(De=ve.onVnodeBeforeMount)&&iu(De,me,Q)}H(Oe,Q,Q.scopeId,Pe,me),Le&&gp(Q,null,me,"beforeMount");const mt=(!Ee||Ee&&!Ee.pendingBranch)&&Ve&&!Ve.persisted;mt&&Ve.beforeEnter(Oe),i(Oe,ie,de),((De=ve&&ve.onVnodeMounted)||mt||Le)&&Ca(()=>{De&&iu(De,me,Q),mt&&Ve.enter(Oe),Le&&gp(Q,null,me,"mounted")},Ee)},H=(Q,ie,de,me,Ee)=>{if(de&&g(Q,de),me)for(let xe=0;xe{for(let De=Oe;De{const Te=ie.el=Q.el;let{patchFlag:Oe,dynamicChildren:De,dirs:Me}=ie;Oe|=Q.patchFlag&16;const ve=Q.props||ro,Ie=ie.props||ro;let Ve;de&&yp(de,!1),(Ve=Ie.onVnodeBeforeUpdate)&&iu(Ve,de,ie,Q),Me&&gp(ie,Q,de,"beforeUpdate"),de&&yp(de,!0);const Le=Ee&&ie.type!=="foreignObject";if(De?U(Q.dynamicChildren,De,Te,de,me,Le,xe):Pe||k(Q,ie,Te,null,de,me,Le,xe,!1),Oe>0){if(Oe&16)v(Te,ie,ve,Ie,de,me,Ee);else if(Oe&2&&ve.class!==Ie.class&&r(Te,"class",null,Ie.class,Ee),Oe&4&&r(Te,"style",ve.style,Ie.style,Ee),Oe&8){const mt=ie.dynamicProps;for(let Ct=0;Ct{Ve&&iu(Ve,de,ie,Q),Me&&gp(ie,Q,de,"updated")},me)},U=(Q,ie,de,me,Ee,xe,Pe)=>{for(let Te=0;Te{if(de!==me){if(de!==ro)for(const Te in de)!XE(Te)&&!(Te in me)&&r(Q,Te,de[Te],null,Pe,ie.children,Ee,xe,Y);for(const Te in me){if(XE(Te))continue;const Oe=me[Te],De=de[Te];Oe!==De&&Te!=="value"&&r(Q,Te,De,Oe,Pe,ie.children,Ee,xe,Y)}"value"in me&&r(Q,"value",de.value,me.value)}},I=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{const De=ie.el=Q?Q.el:a(""),Me=ie.anchor=Q?Q.anchor:a("");let{patchFlag:ve,dynamicChildren:Ie,slotScopeIds:Ve}=ie;Ve&&(Te=Te?Te.concat(Ve):Ve),Q==null?(i(De,de,me),i(Me,de,me),R(ie.children,de,Me,Ee,xe,Pe,Te,Oe)):ve>0&&ve&64&&Ie&&Q.dynamicChildren?(U(Q.dynamicChildren,Ie,de,Ee,xe,Pe,Te),(ie.key!=null||Ee&&ie===Ee.subTree)&&s5(Q,ie,!0)):k(Q,ie,de,Me,Ee,xe,Pe,Te,Oe)},m=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{ie.slotScopeIds=Te,Q==null?ie.shapeFlag&512?Ee.ctx.activate(ie,de,me,Pe,Oe):D(ie,de,me,Ee,xe,Pe,Oe):O(Q,ie,Oe)},D=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=Q.component=Dee(Q,me,Ee);if(oS(Q)&&(Te.ctx.renderer=re),Iee(Te),Te.asyncDep){if(Ee&&Ee.registerDep(Te,M),!Q.el){const Oe=Te.subTree=as(Bc);b(null,Oe,ie,de)}return}M(Te,Q,ie,de,Ee,xe,Pe)},O=(Q,ie,de)=>{const me=ie.component=Q.component;if(HZ(Q,ie,de))if(me.asyncDep&&!me.asyncResolved){V(me,ie,de);return}else me.next=ie,RZ(me.update),me.update();else ie.el=Q.el,me.vnode=ie},M=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=()=>{if(Q.isMounted){let{next:Me,bu:ve,u:Ie,parent:Ve,vnode:Le}=Q,mt=Me,Ct;yp(Q,!1),Me?(Me.el=Le.el,V(Q,Me,Pe)):Me=Le,ve&&Gv(ve),(Ct=Me.props&&Me.props.onVnodeBeforeUpdate)&&iu(Ct,Ve,Me,Le),yp(Q,!0);const Pt=Wv(Q),yn=Q.subTree;Q.subTree=Pt,A(yn,Pt,h(yn.el),ae(yn),Q,Ee,xe),Me.el=Pt.el,mt===null&&VZ(Q,Pt.el),Ie&&Ca(Ie,Ee),(Ct=Me.props&&Me.props.onVnodeUpdated)&&Ca(()=>iu(Ct,Ve,Me,Le),Ee)}else{let Me;const{el:ve,props:Ie}=ie,{bm:Ve,m:Le,parent:mt}=Q,Ct=gA(ie);if(yp(Q,!1),Ve&&Gv(Ve),!Ct&&(Me=Ie&&Ie.onVnodeBeforeMount)&&iu(Me,mt,ie),yp(Q,!0),ve&&ce){const Pt=()=>{Q.subTree=Wv(Q),ce(ve,Q.subTree,Q,Ee,null)};Ct?ie.type.__asyncLoader().then(()=>!Q.isUnmounted&&Pt()):Pt()}else{const Pt=Q.subTree=Wv(Q);A(null,Pt,de,me,Q,Ee,xe),ie.el=Pt.el}if(Le&&Ca(Le,Ee),!Ct&&(Me=Ie&&Ie.onVnodeMounted)){const Pt=ie;Ca(()=>iu(Me,mt,Pt),Ee)}(ie.shapeFlag&256||mt&&gA(mt.vnode)&&mt.vnode.shapeFlag&256)&&Q.a&&Ca(Q.a,Ee),Q.isMounted=!0,ie=de=me=null}},Oe=Q.effect=new cB(Te,()=>gB(De),Q.scope),De=Q.update=()=>Oe.run();De.id=Q.uid,yp(Q,!0),De()},V=(Q,ie,de)=>{ie.component=Q;const me=Q.vnode.props;Q.vnode=ie,Q.next=null,dee(Q,ie.props,me,de),mee(Q,ie.children,de),Cy(),PM(),Ty()},k=(Q,ie,de,me,Ee,xe,Pe,Te,Oe=!1)=>{const De=Q&&Q.children,Me=Q?Q.shapeFlag:0,ve=ie.children,{patchFlag:Ie,shapeFlag:Ve}=ie;if(Ie>0){if(Ie&128){G(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}else if(Ie&256){W(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}}Ve&8?(Me&16&&Y(De,Ee,xe),ve!==De&&f(de,ve)):Me&16?Ve&16?G(De,ve,de,me,Ee,xe,Pe,Te,Oe):Y(De,Ee,xe,!0):(Me&8&&f(de,""),Ve&16&&R(ve,de,me,Ee,xe,Pe,Te,Oe))},W=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Q=Q||Sg,ie=ie||Sg;const De=Q.length,Me=ie.length,ve=Math.min(De,Me);let Ie;for(Ie=0;IeMe?Y(Q,Ee,xe,!0,!1,ve):R(ie,de,me,Ee,xe,Pe,Te,Oe,ve)},G=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{let De=0;const Me=ie.length;let ve=Q.length-1,Ie=Me-1;for(;De<=ve&&De<=Ie;){const Ve=Q[De],Le=ie[De]=Oe?th(ie[De]):du(ie[De]);if(Jp(Ve,Le))A(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;De++}for(;De<=ve&&De<=Ie;){const Ve=Q[ve],Le=ie[Ie]=Oe?th(ie[Ie]):du(ie[Ie]);if(Jp(Ve,Le))A(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;ve--,Ie--}if(De>ve){if(De<=Ie){const Ve=Ie+1,Le=VeIe)for(;De<=ve;)q(Q[De],Ee,xe,!0),De++;else{const Ve=De,Le=De,mt=new Map;for(De=Le;De<=Ie;De++){const mn=ie[De]=Oe?th(ie[De]):du(ie[De]);mn.key!=null&&mt.set(mn.key,De)}let Ct,Pt=0;const yn=Ie-Le+1;let xn=!1,pn=0;const en=new Array(yn);for(De=0;De=yn){q(mn,Ee,xe,!0);continue}let gn;if(mn.key!=null)gn=mt.get(mn.key);else for(Ct=Le;Ct<=Ie;Ct++)if(en[Ct-Le]===0&&Jp(mn,ie[Ct])){gn=Ct;break}gn===void 0?q(mn,Ee,xe,!0):(en[gn-Le]=De+1,gn>=pn?pn=gn:xn=!0,A(mn,ie[gn],de,null,Ee,xe,Pe,Te,Oe),Pt++)}const Rt=xn?Cee(en):Sg;for(Ct=Rt.length-1,De=yn-1;De>=0;De--){const mn=Le+De,gn=ie[mn],Ut=mn+1{const{el:xe,type:Pe,transition:Te,children:Oe,shapeFlag:De}=Q;if(De&6){K(Q.component.subTree,ie,de,me);return}if(De&128){Q.suspense.move(ie,de,me);return}if(De&64){Pe.move(Q,ie,de,re);return}if(Pe===Oa){i(xe,ie,de);for(let ve=0;veTe.enter(xe),Ee);else{const{leave:ve,delayLeave:Ie,afterLeave:Ve}=Te,Le=()=>i(xe,ie,de),mt=()=>{ve(xe,()=>{Le(),Ve&&Ve()})};Ie?Ie(xe,Le,mt):mt()}else i(xe,ie,de)},q=(Q,ie,de,me=!1,Ee=!1)=>{const{type:xe,props:Pe,ref:Te,children:Oe,dynamicChildren:De,shapeFlag:Me,patchFlag:ve,dirs:Ie}=Q;if(Te!=null&&kO(Te,null,de,Q,!0),Me&256){ie.ctx.deactivate(Q);return}const Ve=Me&1&&Ie,Le=!gA(Q);let mt;if(Le&&(mt=Pe&&Pe.onVnodeBeforeUnmount)&&iu(mt,ie,Q),Me&6)$(Q.component,de,me);else{if(Me&128){Q.suspense.unmount(de,me);return}Ve&&gp(Q,null,ie,"beforeUnmount"),Me&64?Q.type.remove(Q,ie,de,Ee,re,me):De&&(xe!==Oa||ve>0&&ve&64)?Y(De,ie,de,!1,!0):(xe===Oa&&ve&384||!Ee&&Me&16)&&Y(Oe,ie,de),me&&te(Q)}(Le&&(mt=Pe&&Pe.onVnodeUnmounted)||Ve)&&Ca(()=>{mt&&iu(mt,ie,Q),Ve&&gp(Q,null,ie,"unmounted")},de)},te=Q=>{const{type:ie,el:de,anchor:me,transition:Ee}=Q;if(ie===Oa){X(de,me);return}if(ie===Yv){S(Q);return}const xe=()=>{o(de),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(Q.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:Pe,delayLeave:Te}=Ee,Oe=()=>Pe(de,xe);Te?Te(Q.el,xe,Oe):Oe()}else xe()},X=(Q,ie)=>{let de;for(;Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},$=(Q,ie,de)=>{const{bum:me,scope:Ee,update:xe,subTree:Pe,um:Te}=Q;me&&Gv(me),Ee.stop(),xe&&(xe.active=!1,q(Pe,Q,ie,de)),Te&&Ca(Te,ie),Ca(()=>{Q.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},Y=(Q,ie,de,me=!1,Ee=!1,xe=0)=>{for(let Pe=xe;PeQ.shapeFlag&6?ae(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():_(Q.anchor||Q.el),ue=(Q,ie,de)=>{Q==null?ie._vnode&&q(ie._vnode,null,null,!0):A(ie._vnode||null,Q,ie,null,null,null,de),PM(),FG(),ie._vnode=Q},re={p:A,um:q,m:K,r:te,mt:D,mc:R,pc:k,pbc:U,n:ae,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:gee(ue,he)}}function yp({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function s5(e,t,n=!1){const i=e.children,o=t.children;if(Tn(i)&&Tn(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Tee=e=>e.__isTeleport,Oa=Symbol(void 0),aS=Symbol(void 0),Bc=Symbol(void 0),Yv=Symbol(void 0),AA=[];let gl=null;function Ur(e=!1){AA.push(gl=e?null:[])}function bee(){AA.pop(),gl=AA[AA.length-1]||null}let YA=1;function HM(e){YA+=e}function a5(e){return e.dynamicChildren=YA>0?gl||Sg:null,bee(),YA>0&&gl&&gl.push(e),e}function Ou(e,t,n,i,o,r){return a5(Lu(e,t,n,i,o,r,!0))}function sh(e,t,n,i,o){return a5(as(e,t,n,i,o,!0))}function Jg(e){return e?e.__v_isVNode===!0:!1}function Jp(e,t){return e.type===t.type&&e.key===t.key}const cS="__vInternal",c5=({key:e})=>e??null,$E=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mo(e)||Bs(e)||An(e)?{i:ss,r:e,k:t,f:!!n}:e:null;function Lu(e,t=null,n=null,i=0,o=null,r=e===Oa?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&c5(t),ref:t&&$E(t),scopeId:HG,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ss};return a?(CB(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=Mo(n)?8:16),YA>0&&!s&&gl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&gl.push(c),c}const as=Eee;function Eee(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===JG)&&(e=Bc),Jg(e)){const a=Nh(e,t,!0);return n&&CB(a,n),YA>0&&!r&&gl&&(a.shapeFlag&6?gl[gl.indexOf(e)]=a:gl.push(a)),a.patchFlag|=-2,a}if(Ree(e)&&(e=e.__vccOpts),t){t=xee(t);let{class:a,style:c}=t;a&&!Mo(a)&&(t.class=ml(a)),eo(c)&&(IG(c)&&!Tn(c)&&(c=cs({},c)),t.style=Kw(c))}const s=Mo(e)?1:kZ(e)?128:Tee(e)?64:eo(e)?4:An(e)?2:0;return Lu(e,t,n,i,o,s,r,!0)}function xee(e){return e?IG(e)||cS in e?cs({},e):e:null}function Nh(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?l5(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&c5(a),ref:t&&t.ref?n&&o?Tn(o)?o.concat($E(t)):[o,$E(t)]:$E(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oa?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nh(e.ssContent),ssFallback:e.ssFallback&&Nh(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function wee(e=" ",t=0){return as(aS,null,e,t)}function kT(e="",t=!1){return t?(Ur(),sh(Bc,null,e)):as(Bc,null,e)}function du(e){return e==null||typeof e=="boolean"?as(Bc):Tn(e)?as(Oa,null,e.slice()):typeof e=="object"?th(e):as(aS,null,String(e))}function th(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nh(e)}function CB(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Tn(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),CB(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(cS in t)?t._ctx=ss:o===3&&ss&&(ss.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else An(t)?(t={default:t,_ctx:ss},n=32):(t=String(t),i&64?(n=16,t=[wee(t)]):n=8);e.children=t,e.shapeFlag|=n}function l5(...e){const t={};for(let n=0;nWr||ss,Qg=e=>{Wr=e,e.scope.on()},hm=()=>{Wr&&Wr.scope.off(),Wr=null};function u5(e){return e.vnode.shapeFlag&4}let XA=!1;function Iee(e,t=!1){XA=t;const{props:n,children:i}=e.vnode,o=u5(e);fee(e,n,o,t),pee(e,i);const r=o?Pee(e,t):void 0;return XA=!1,r}function Pee(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=hB(new Proxy(e.ctx,ree));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Lee(e):null;Qg(e),Cy();const r=Ch(i,e,0,[e.props,o]);if(Ty(),hm(),hG(r)){if(r.then(hm,hm),t)return r.then(s=>{VM(e,s,t)}).catch(s=>{nS(s,e,0)});e.asyncDep=r}else VM(e,r,t)}else f5(e,t)}function VM(e,t,n){An(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:eo(t)&&(e.setupState=BG(t)),f5(e,n)}let kM;function f5(e,t,n){const i=e.type;if(!e.render){if(!t&&kM&&!i.render){const o=i.template||yB(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=cs(cs({isCustomElement:r,delimiters:a},s),c);i.render=kM(o,u)}}e.render=i.render||El}Qg(e),Cy(),see(e),Ty(),hm()}function Oee(e){return new Proxy(e.attrs,{get(t,n){return Ya(e,"get","$attrs"),t[n]}})}function Lee(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=Oee(e))},slots:e.slots,emit:e.emit,expose:t}}function uS(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(BG(hB(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yA)return yA[n](e)},has(t,n){return n in t||n in yA}}))}function Bee(e,t=!0){return An(e)?e.displayName||e.name:e.name||t&&e.__name}function Ree(e){return An(e)&&"__vccOpts"in e}const Co=(e,t)=>PZ(e,t,XA);function TB(e,t,n){const i=arguments.length;return i===2?eo(t)&&!Tn(t)?Jg(t)?as(e,null,[t]):as(e,t):as(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Jg(n)&&(n=[n]),as(e,t,n))}const Nee=Symbol(""),Mee=()=>Eu(Nee),Fee="3.2.45",zee="http://www.w3.org/2000/svg",Qp=typeof document<"u"?document:null,GM=Qp&&Qp.createElement("template"),Uee={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?Qp.createElementNS(zee,e):Qp.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Qp.createTextNode(e),createComment:e=>Qp.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qp.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{GM.innerHTML=i?`${e}`:e;const a=GM.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Hee(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Vee(e,t,n){const i=e.style,o=Mo(n);if(n&&!o){for(const r in n)GO(i,r,n[r]);if(t&&!Mo(t))for(const r in t)n[r]==null&&GO(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const WM=/\s*!important$/;function GO(e,t,n){if(Tn(n))n.forEach(i=>GO(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=kee(e,t);WM.test(n)?e.setProperty(Ay(i),n.replace(WM,""),"important"):e[i]=n}}const jM=["Webkit","Moz","ms"],Xv={};function kee(e,t){const n=Xv[t];if(n)return n;let i=Pu(t);if(i!=="filter"&&i in e)return Xv[t]=i;i=eS(i);for(let o=0;o$v||($ee.then(()=>$v=0),$v=Date.now());function Jee(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Lc(Qee(i,n.value),t,5,[i])};return n.value=e,n.attached=Kee(),n}function Qee(e,t){if(Tn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const XM=/^on[a-z]/,Zee=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?Hee(e,i,o):t==="style"?Vee(e,n,i):Jw(t)?nB(t)||Yee(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ete(e,t,i,o))?Wee(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Gee(e,t,i,o))};function ete(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&XM.test(t)&&An(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||XM.test(t)&&Mo(n)?!1:t in e}const vd="transition",jy="animation",fS=(e,{slots:t})=>TB(GG,tte(e),t);fS.displayName="Transition";const d5={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};fS.props=cs({},GG.props,d5);const Ap=(e,t=[])=>{Tn(e)?e.forEach(n=>n(...t)):e&&e(...t)},$M=e=>e?Tn(e)?e.some(t=>t.length>1):e.length>1:!1;function tte(e){const t={};for(const I in e)I in d5||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:_=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=nte(o),A=p&&p[0],C=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:L=b,onAppear:H=x,onAppearCancelled:R=w}=t,z=(I,m,D)=>{Cp(I,m?f:a),Cp(I,m?u:s),D&&D()},U=(I,m)=>{I._isLeaving=!1,Cp(I,h),Cp(I,g),Cp(I,_),m&&m()},v=I=>(m,D)=>{const O=I?H:x,M=()=>z(m,I,D);Ap(O,[m,M]),KM(()=>{Cp(m,I?c:r),Dd(m,I?f:a),$M(O)||JM(m,i,A,M)})};return cs(t,{onBeforeEnter(I){Ap(b,[I]),Dd(I,r),Dd(I,s)},onBeforeAppear(I){Ap(L,[I]),Dd(I,c),Dd(I,u)},onEnter:v(!1),onAppear:v(!0),onLeave(I,m){I._isLeaving=!0;const D=()=>U(I,m);Dd(I,h),rte(),Dd(I,_),KM(()=>{I._isLeaving&&(Cp(I,h),Dd(I,g),$M(S)||JM(I,i,C,D))}),Ap(S,[I,D])},onEnterCancelled(I){z(I,!1),Ap(w,[I])},onAppearCancelled(I){z(I,!0),Ap(R,[I])},onLeaveCancelled(I){U(I),Ap(P,[I])}})}function nte(e){if(e==null)return null;if(eo(e))return[Kv(e.enter),Kv(e.leave)];{const t=Kv(e);return[t,t]}}function Kv(e){return sB(e)}function Dd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Cp(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function KM(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ite=0;function JM(e,t,n,i){const o=e._endId=++ite,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=ote(e,t);if(!s)return i();const u=s+"end";let f=0;const h=()=>{e.removeEventListener(u,_),r()},_=g=>{g.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[p]||"").split(", "),o=i(`${vd}Delay`),r=i(`${vd}Duration`),s=QM(o,r),a=i(`${jy}Delay`),c=i(`${jy}Duration`),u=QM(a,c);let f=null,h=0,_=0;t===vd?s>0&&(f=vd,h=s,_=r.length):t===jy?u>0&&(f=jy,h=u,_=c.length):(h=Math.max(s,u),f=h>0?s>u?vd:jy:null,_=f?f===vd?r.length:c.length:0);const g=f===vd&&/\b(transform|all)(,|$)/.test(i(`${vd}Property`).toString());return{type:f,timeout:h,propCount:_,hasTransform:g}}function QM(e,t){for(;e.lengthZM(n)+ZM(e[i])))}function ZM(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function rte(){return document.body.offsetHeight}const ste=["ctrl","shift","alt","meta"],ate={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ste.some(n=>e[`${n}Key`]&&!t.includes(n))},cte=(e,t)=>(n,...i)=>{for(let o=0;o{qy(e,!1)}):qy(e,t))},beforeUnmount(e,{value:t}){qy(e,t)}};function qy(e,t){e.style.display=t?e._vod:"none"}const lte=cs({patchProp:Zee},Uee);let eF;function p5(){return eF||(eF=yee(lte))}const tF=(...e)=>{p5().render(...e)},ute=(...e)=>{const t=p5().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=fte(i);if(!o)return;const r=t._component;!An(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function fte(e){return Mo(e)?document.querySelector(e):e}var dte=!1;/*! * pinia v2.0.28 * (c) 2022 Eduardo San Martin Morote * @license MIT @@ -6,14 +6,14 @@ * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const ng=typeof window<"u";function mte(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Fi=Object.assign;function Jv(e,t){const n={};for(const i in t){const o=t[i];n[i]=Ll(o)?o.map(e):e(o)}return n}const CA=()=>{},Ll=Array.isArray,_te=/\/$/,gte=e=>e.replace(_te,"");function Qv(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=Tte(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function yte(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function iF(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ate(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Zg(t.matched[i],n.matched[o])&&m5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zg(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Cte(e[n],t[n]))return!1;return!0}function Cte(e,t){return Ll(e)?oF(e,t):Ll(t)?oF(t,e):e===t}function oF(e,t){return Ll(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Tte(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var $A;(function(e){e.pop="pop",e.push="push"})($A||($A={}));var TA;(function(e){e.back="back",e.forward="forward",e.unknown=""})(TA||(TA={}));function bte(e){if(!e)if(ng){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gte(e)}const Ete=/^[^#]+#/;function xte(e,t){return e.replace(Ete,"#")+t}function wte(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const dS=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ste(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=wte(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function rF(e,t){return(history.state?history.state.position-t:-1)+e}const WO=new Map;function vte(e,t){WO.set(e,t)}function Dte(e){const t=WO.get(e);return WO.delete(e),t}let Ite=()=>location.protocol+"//"+location.host;function _5(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),iF(c,"")}return iF(n,e)+i+o}function Pte(e,t,n,i){let o=[],r=[],s=null;const a=({state:_})=>{const g=_5(e,location),p=n.value,A=t.value;let C=0;if(_){if(n.value=g,t.value=_,s&&s===p){s=null;return}C=A?_.position-A.position:0}else i(g);o.forEach(b=>{b(n.value,p,{delta:C,type:$A.pop,direction:C?C>0?TA.forward:TA.back:TA.unknown})})};function c(){s=n.value}function u(_){o.push(_);const g=()=>{const p=o.indexOf(_);p>-1&&o.splice(p,1)};return r.push(g),g}function f(){const{history:_}=window;_.state&&_.replaceState(Fi({},_.state,{scroll:dS()}),"")}function h(){for(const _ of r)_();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:u,destroy:h}}function sF(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?dS():null}}function Ote(e){const{history:t,location:n}=window,i={value:_5(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,f){const h=e.indexOf("#"),_=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ite()+e+c;try{t[f?"replaceState":"pushState"](u,"",_),o.value=u}catch(g){console.error(g),n[f?"replace":"assign"](_)}}function s(c,u){const f=Fi({},t.state,sF(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,f,!0),i.value=c}function a(c,u){const f=Fi({},o.value,t.state,{forward:c,scroll:dS()});r(f.current,f,!0);const h=Fi({},sF(i.value,c,null),{position:f.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function Lte(e){e=bte(e);const t=Ote(e),n=Pte(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Fi({location:"",base:e,go:i,createHref:xte.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Bte(e){return typeof e=="string"||e&&typeof e=="object"}function g5(e){return typeof e=="string"||typeof e=="symbol"}const Id={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},y5=Symbol("");var aF;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(aF||(aF={}));function ey(e,t){return Fi(new Error,{type:e,[y5]:!0},t)}function cf(e,t){return e instanceof Error&&y5 in e&&(t==null||!!(e.type&t))}const cF="[^/]+?",Rte={sensitive:!1,strict:!1,start:!0,end:!0},Nte=/[.+*?^${}()[\]/\\]/g;function Mte(e,t){const n=Fi({},Rte,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function zte(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ute={type:0,value:""},Hte=/[a-zA-Z0-9_]/;function Vte(e){if(!e)return[[]];if(e==="/")return[[Ute]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",f="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function _(){u+=c}for(;a{s(x)}:CA}function s(f){if(g5(f)){const h=i.get(f);h&&(i.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function c(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!A5(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!fF(f)&&i.set(f.record.name,f)}function u(f,h){let _,g={},p,A;if("name"in f&&f.name){if(_=i.get(f.name),!_)throw ey(1,{location:f});A=_.record.name,g=Fi(uF(h.params,_.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&uF(f.params,_.keys.map(x=>x.name))),p=_.stringify(g)}else if("path"in f)p=f.path,_=n.find(x=>x.re.test(p)),_&&(g=_.parse(p),A=_.record.name);else{if(_=h.name?i.get(h.name):n.find(x=>x.re.test(h.path)),!_)throw ey(1,{location:f,currentLocation:h});A=_.record.name,g=Fi({},h.params,f.params),p=_.stringify(g)}const C=[];let b=_;for(;b;)C.unshift(b.record),b=b.parent;return{name:A,path:p,params:g,matched:C,meta:qte(C)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function uF(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Wte(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:jte(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function jte(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function fF(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qte(e){return e.reduce((t,n)=>Fi(t,n.meta),{})}function dF(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function A5(e,t){return t.children.some(n=>n===e||A5(e,n))}const C5=/#/g,Yte=/&/g,Xte=/\//g,$te=/=/g,Kte=/\?/g,T5=/\+/g,Jte=/%5B/g,Qte=/%5D/g,b5=/%5E/g,Zte=/%60/g,E5=/%7B/g,ene=/%7C/g,x5=/%7D/g,tne=/%20/g;function bB(e){return encodeURI(""+e).replace(ene,"|").replace(Jte,"[").replace(Qte,"]")}function nne(e){return bB(e).replace(E5,"{").replace(x5,"}").replace(b5,"^")}function jO(e){return bB(e).replace(T5,"%2B").replace(tne,"+").replace(C5,"%23").replace(Yte,"%26").replace(Zte,"`").replace(E5,"{").replace(x5,"}").replace(b5,"^")}function ine(e){return jO(e).replace($te,"%3D")}function one(e){return bB(e).replace(C5,"%23").replace(Kte,"%3F")}function rne(e){return e==null?"":one(e).replace(Xte,"%2F")}function qx(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function sne(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&jO(r)):[i&&jO(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ane(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Ll(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const cne=Symbol(""),pF=Symbol(""),EB=Symbol(""),w5=Symbol(""),qO=Symbol("");function Yy(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function nh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(ey(4,{from:n,to:t})):h instanceof Error?a(h):Bte(h)?a(ey(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>a(h))})}function Zv(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(lne(a)){const u=(a.__vccOpts||a)[t];u&&o.push(nh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const f=mte(u)?u.default:u;r.components[s]=f;const _=(f.__vccOpts||f)[t];return _&&nh(_,n,i,r,s)()}))}}return o}function lne(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mF(e){const t=Eu(EB),n=Eu(w5),i=Co(()=>t.resolve(kn(e.to))),o=Co(()=>{const{matched:c}=i.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const _=h.findIndex(Zg.bind(null,f));if(_>-1)return _;const g=_F(c[u-2]);return u>1&&_F(f)===g&&h[h.length-1].path!==g?h.findIndex(Zg.bind(null,c[u-2])):_}),r=Co(()=>o.value>-1&&hne(n.params,i.value.params)),s=Co(()=>o.value>-1&&o.value===n.matched.length-1&&m5(n.params,i.value.params));function a(c={}){return dne(c)?t[kn(e.replace)?"replace":"push"](kn(e.to)).catch(CA):Promise.resolve()}return{route:i,href:Co(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const une=od({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mF,setup(e,{slots:t}){const n=FC(mF(e)),{options:i}=Eu(EB),o=Co(()=>({[gF(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[gF(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:TB("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),fne=une;function dne(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hne(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Ll(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function _F(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gF=(e,t,n)=>e??t??n,pne=od({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Eu(qO),o=Co(()=>e.route||i.value),r=Eu(pF,0),s=Co(()=>{let u=kn(r);const{matched:f}=o.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=Co(()=>o.value.matched[s.value]);_A(pF,Co(()=>s.value+1)),_A(cne,a),_A(qO,o);const c=Bf();return Th(()=>[c.value,a.value,e.name],([u,f,h],[_,g,p])=>{f&&(f.instances[h]=u,g&&g!==f&&u&&u===_&&(f.leaveGuards.size||(f.leaveGuards=g.leaveGuards),f.updateGuards.size||(f.updateGuards=g.updateGuards))),u&&f&&(!g||!Zg(f,g)||!_)&&(f.enterCallbacks[h]||[]).forEach(A=>A(u))},{flush:"post"}),()=>{const u=o.value,f=e.name,h=a.value,_=h&&h.components[f];if(!_)return yF(n.default,{Component:_,route:u});const g=h.props[f],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,C=TB(_,Fi({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return yF(n.default,{Component:C,route:u})||C}}});function yF(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const S5=pne;function mne(e){const t=Gte(e.routes,e),n=e.parseQuery||sne,i=e.stringifyQuery||hF,o=e.history,r=Yy(),s=Yy(),a=Yy(),c=SZ(Id);let u=Id;ng&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Jv.bind(null,$=>""+$),h=Jv.bind(null,rne),_=Jv.bind(null,qx);function g($,Y){let ae,ue;return g5($)?(ae=t.getRecordMatcher($),ue=Y):ue=$,t.addRoute(ue,ae)}function p($){const Y=t.getRecordMatcher($);Y&&t.removeRoute(Y)}function A(){return t.getRoutes().map($=>$.record)}function C($){return!!t.getRecordMatcher($)}function b($,Y){if(Y=Fi({},Y||c.value),typeof $=="string"){const Q=Qv(n,$,Y.path),ie=t.resolve({path:Q.path},Y),de=o.createHref(Q.fullPath);return Fi(Q,ie,{params:_(ie.params),hash:qx(Q.hash),redirectedFrom:void 0,href:de})}let ae;if("path"in $)ae=Fi({},$,{path:Qv(n,$.path,Y.path).path});else{const Q=Fi({},$.params);for(const ie in Q)Q[ie]==null&&delete Q[ie];ae=Fi({},$,{params:h($.params)}),Y.params=h(Y.params)}const ue=t.resolve(ae,Y),re=$.hash||"";ue.params=f(_(ue.params));const he=yte(i,Fi({},$,{hash:nne(re),path:ue.path})),ce=o.createHref(he);return Fi({fullPath:he,hash:re,query:i===hF?ane($.query):$.query||{}},ue,{redirectedFrom:void 0,href:ce})}function x($){return typeof $=="string"?Qv(n,$,c.value.path):Fi({},$)}function w($,Y){if(u!==$)return ey(8,{from:Y,to:$})}function S($){return H($)}function P($){return S(Fi(x($),{replace:!0}))}function L($){const Y=$.matched[$.matched.length-1];if(Y&&Y.redirect){const{redirect:ae}=Y;let ue=typeof ae=="function"?ae($):ae;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=x(ue):{path:ue},ue.params={}),Fi({query:$.query,hash:$.hash,params:"path"in ue?{}:$.params},ue)}}function H($,Y){const ae=u=b($),ue=c.value,re=$.state,he=$.force,ce=$.replace===!0,Q=L(ae);if(Q)return H(Fi(x(Q),{state:typeof Q=="object"?Fi({},re,Q.state):re,force:he,replace:ce}),Y||ae);const ie=ae;ie.redirectedFrom=Y;let de;return!he&&Ate(i,ue,ae)&&(de=ey(16,{to:ie,from:ue}),G(ue,ue,!0,!1)),(de?Promise.resolve(de):z(ie,ue)).catch(me=>cf(me)?cf(me,2)?me:W(me):V(me,ie,ue)).then(me=>{if(me){if(cf(me,2))return H(Fi({replace:ce},x(me.to),{state:typeof me.to=="object"?Fi({},re,me.to.state):re,force:he}),Y||ie)}else me=v(ie,ue,!0,ce,re);return U(ie,ue,me),me})}function R($,Y){const ae=w($,Y);return ae?Promise.reject(ae):Promise.resolve()}function z($,Y){let ae;const[ue,re,he]=_ne($,Y);ae=Zv(ue.reverse(),"beforeRouteLeave",$,Y);for(const Q of ue)Q.leaveGuards.forEach(ie=>{ae.push(nh(ie,$,Y))});const ce=R.bind(null,$,Y);return ae.push(ce),C_(ae).then(()=>{ae=[];for(const Q of r.list())ae.push(nh(Q,$,Y));return ae.push(ce),C_(ae)}).then(()=>{ae=Zv(re,"beforeRouteUpdate",$,Y);for(const Q of re)Q.updateGuards.forEach(ie=>{ae.push(nh(ie,$,Y))});return ae.push(ce),C_(ae)}).then(()=>{ae=[];for(const Q of $.matched)if(Q.beforeEnter&&!Y.matched.includes(Q))if(Ll(Q.beforeEnter))for(const ie of Q.beforeEnter)ae.push(nh(ie,$,Y));else ae.push(nh(Q.beforeEnter,$,Y));return ae.push(ce),C_(ae)}).then(()=>($.matched.forEach(Q=>Q.enterCallbacks={}),ae=Zv(he,"beforeRouteEnter",$,Y),ae.push(ce),C_(ae))).then(()=>{ae=[];for(const Q of s.list())ae.push(nh(Q,$,Y));return ae.push(ce),C_(ae)}).catch(Q=>cf(Q,8)?Q:Promise.reject(Q))}function U($,Y,ae){for(const ue of a.list())ue($,Y,ae)}function v($,Y,ae,ue,re){const he=w($,Y);if(he)return he;const ce=Y===Id,Q=ng?history.state:{};ae&&(ue||ce?o.replace($.fullPath,Fi({scroll:ce&&Q&&Q.scroll},re)):o.push($.fullPath,re)),c.value=$,G($,Y,ae,ce),W()}let I;function m(){I||(I=o.listen(($,Y,ae)=>{if(!X.listening)return;const ue=b($),re=L(ue);if(re){H(Fi(re,{replace:!0}),ue).catch(CA);return}u=ue;const he=c.value;ng&&vte(rF(he.fullPath,ae.delta),dS()),z(ue,he).catch(ce=>cf(ce,12)?ce:cf(ce,2)?(H(ce.to,ue).then(Q=>{cf(Q,20)&&!ae.delta&&ae.type===$A.pop&&o.go(-1,!1)}).catch(CA),Promise.reject()):(ae.delta&&o.go(-ae.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||v(ue,he,!1),ce&&(ae.delta&&!cf(ce,8)?o.go(-ae.delta,!1):ae.type===$A.pop&&cf(ce,20)&&o.go(-1,!1)),U(ue,he,ce)}).catch(CA)}))}let D=Yy(),O=Yy(),M;function V($,Y,ae){W($);const ue=O.list();return ue.length?ue.forEach(re=>re($,Y,ae)):console.error($),Promise.reject($)}function k(){return M&&c.value!==Id?Promise.resolve():new Promise(($,Y)=>{D.add([$,Y])})}function W($){return M||(M=!$,m(),D.list().forEach(([Y,ae])=>$?ae($):Y()),D.reset()),$}function G($,Y,ae,ue){const{scrollBehavior:re}=e;if(!ng||!re)return Promise.resolve();const he=!ae&&Dte(rF($.fullPath,0))||(ue||!ae)&&history.state&&history.state.scroll||null;return _B().then(()=>re($,Y,he)).then(ce=>ce&&Ste(ce)).catch(ce=>V(ce,$,Y))}const K=$=>o.go($);let q;const te=new Set,X={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:C,getRoutes:A,resolve:b,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:k,install($){const Y=this;$.component("RouterLink",fne),$.component("RouterView",S5),$.config.globalProperties.$router=Y,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>kn(c)}),ng&&!q&&c.value===Id&&(q=!0,S(o.location).catch(re=>{}));const ae={};for(const re in Id)ae[re]=Co(()=>c.value[re]);$.provide(EB,Y),$.provide(w5,FC(ae)),$.provide(qO,c);const ue=$.unmount;te.add($),$.unmount=function(){te.delete($),te.size<1&&(u=Id,I&&I(),I=null,c.value=Id,q=!1,M=!1),ue()}}};return X}function C_(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function _ne(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sZg(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>Zg(u,c))||o.push(c))}return[n,i,o]}const gne=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},yne={__name:"App",setup(e){return(t,n)=>(Ur(),sh(kn(S5)))}},Ane=gne(yne,[["__scopeId","data-v-0969e94e"]]);function l(e){return e!=null}function E(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(E.prototype=Object.create(Error.prototype),E.prototype.constructor=E);E.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` + */const ng=typeof window<"u";function mte(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const zi=Object.assign;function Jv(e,t){const n={};for(const i in t){const o=t[i];n[i]=Ll(o)?o.map(e):e(o)}return n}const CA=()=>{},Ll=Array.isArray,_te=/\/$/,gte=e=>e.replace(_te,"");function Qv(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=Tte(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function yte(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function iF(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ate(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Zg(t.matched[i],n.matched[o])&&m5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zg(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Cte(e[n],t[n]))return!1;return!0}function Cte(e,t){return Ll(e)?oF(e,t):Ll(t)?oF(t,e):e===t}function oF(e,t){return Ll(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Tte(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var $A;(function(e){e.pop="pop",e.push="push"})($A||($A={}));var TA;(function(e){e.back="back",e.forward="forward",e.unknown=""})(TA||(TA={}));function bte(e){if(!e)if(ng){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gte(e)}const Ete=/^[^#]+#/;function xte(e,t){return e.replace(Ete,"#")+t}function wte(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const dS=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ste(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=wte(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function rF(e,t){return(history.state?history.state.position-t:-1)+e}const WO=new Map;function vte(e,t){WO.set(e,t)}function Dte(e){const t=WO.get(e);return WO.delete(e),t}let Ite=()=>location.protocol+"//"+location.host;function _5(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),iF(c,"")}return iF(n,e)+i+o}function Pte(e,t,n,i){let o=[],r=[],s=null;const a=({state:_})=>{const g=_5(e,location),p=n.value,A=t.value;let C=0;if(_){if(n.value=g,t.value=_,s&&s===p){s=null;return}C=A?_.position-A.position:0}else i(g);o.forEach(b=>{b(n.value,p,{delta:C,type:$A.pop,direction:C?C>0?TA.forward:TA.back:TA.unknown})})};function c(){s=n.value}function u(_){o.push(_);const g=()=>{const p=o.indexOf(_);p>-1&&o.splice(p,1)};return r.push(g),g}function f(){const{history:_}=window;_.state&&_.replaceState(zi({},_.state,{scroll:dS()}),"")}function h(){for(const _ of r)_();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:u,destroy:h}}function sF(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?dS():null}}function Ote(e){const{history:t,location:n}=window,i={value:_5(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,f){const h=e.indexOf("#"),_=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ite()+e+c;try{t[f?"replaceState":"pushState"](u,"",_),o.value=u}catch(g){console.error(g),n[f?"replace":"assign"](_)}}function s(c,u){const f=zi({},t.state,sF(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,f,!0),i.value=c}function a(c,u){const f=zi({},o.value,t.state,{forward:c,scroll:dS()});r(f.current,f,!0);const h=zi({},sF(i.value,c,null),{position:f.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function Lte(e){e=bte(e);const t=Ote(e),n=Pte(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=zi({location:"",base:e,go:i,createHref:xte.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Bte(e){return typeof e=="string"||e&&typeof e=="object"}function g5(e){return typeof e=="string"||typeof e=="symbol"}const Id={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},y5=Symbol("");var aF;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(aF||(aF={}));function ey(e,t){return zi(new Error,{type:e,[y5]:!0},t)}function cf(e,t){return e instanceof Error&&y5 in e&&(t==null||!!(e.type&t))}const cF="[^/]+?",Rte={sensitive:!1,strict:!1,start:!0,end:!0},Nte=/[.+*?^${}()[\]/\\]/g;function Mte(e,t){const n=zi({},Rte,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function zte(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ute={type:0,value:""},Hte=/[a-zA-Z0-9_]/;function Vte(e){if(!e)return[[]];if(e==="/")return[[Ute]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",f="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function _(){u+=c}for(;a{s(x)}:CA}function s(f){if(g5(f)){const h=i.get(f);h&&(i.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function c(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!A5(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!fF(f)&&i.set(f.record.name,f)}function u(f,h){let _,g={},p,A;if("name"in f&&f.name){if(_=i.get(f.name),!_)throw ey(1,{location:f});A=_.record.name,g=zi(uF(h.params,_.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&uF(f.params,_.keys.map(x=>x.name))),p=_.stringify(g)}else if("path"in f)p=f.path,_=n.find(x=>x.re.test(p)),_&&(g=_.parse(p),A=_.record.name);else{if(_=h.name?i.get(h.name):n.find(x=>x.re.test(h.path)),!_)throw ey(1,{location:f,currentLocation:h});A=_.record.name,g=zi({},h.params,f.params),p=_.stringify(g)}const C=[];let b=_;for(;b;)C.unshift(b.record),b=b.parent;return{name:A,path:p,params:g,matched:C,meta:qte(C)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function uF(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Wte(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:jte(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function jte(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function fF(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qte(e){return e.reduce((t,n)=>zi(t,n.meta),{})}function dF(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function A5(e,t){return t.children.some(n=>n===e||A5(e,n))}const C5=/#/g,Yte=/&/g,Xte=/\//g,$te=/=/g,Kte=/\?/g,T5=/\+/g,Jte=/%5B/g,Qte=/%5D/g,b5=/%5E/g,Zte=/%60/g,E5=/%7B/g,ene=/%7C/g,x5=/%7D/g,tne=/%20/g;function bB(e){return encodeURI(""+e).replace(ene,"|").replace(Jte,"[").replace(Qte,"]")}function nne(e){return bB(e).replace(E5,"{").replace(x5,"}").replace(b5,"^")}function jO(e){return bB(e).replace(T5,"%2B").replace(tne,"+").replace(C5,"%23").replace(Yte,"%26").replace(Zte,"`").replace(E5,"{").replace(x5,"}").replace(b5,"^")}function ine(e){return jO(e).replace($te,"%3D")}function one(e){return bB(e).replace(C5,"%23").replace(Kte,"%3F")}function rne(e){return e==null?"":one(e).replace(Xte,"%2F")}function qx(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function sne(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&jO(r)):[i&&jO(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ane(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Ll(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const cne=Symbol(""),pF=Symbol(""),EB=Symbol(""),w5=Symbol(""),qO=Symbol("");function Yy(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function nh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(ey(4,{from:n,to:t})):h instanceof Error?a(h):Bte(h)?a(ey(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>a(h))})}function Zv(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(lne(a)){const u=(a.__vccOpts||a)[t];u&&o.push(nh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const f=mte(u)?u.default:u;r.components[s]=f;const _=(f.__vccOpts||f)[t];return _&&nh(_,n,i,r,s)()}))}}return o}function lne(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mF(e){const t=Eu(EB),n=Eu(w5),i=Co(()=>t.resolve(kn(e.to))),o=Co(()=>{const{matched:c}=i.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const _=h.findIndex(Zg.bind(null,f));if(_>-1)return _;const g=_F(c[u-2]);return u>1&&_F(f)===g&&h[h.length-1].path!==g?h.findIndex(Zg.bind(null,c[u-2])):_}),r=Co(()=>o.value>-1&&hne(n.params,i.value.params)),s=Co(()=>o.value>-1&&o.value===n.matched.length-1&&m5(n.params,i.value.params));function a(c={}){return dne(c)?t[kn(e.replace)?"replace":"push"](kn(e.to)).catch(CA):Promise.resolve()}return{route:i,href:Co(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const une=od({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mF,setup(e,{slots:t}){const n=FC(mF(e)),{options:i}=Eu(EB),o=Co(()=>({[gF(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[gF(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:TB("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),fne=une;function dne(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hne(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Ll(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function _F(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gF=(e,t,n)=>e??t??n,pne=od({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Eu(qO),o=Co(()=>e.route||i.value),r=Eu(pF,0),s=Co(()=>{let u=kn(r);const{matched:f}=o.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=Co(()=>o.value.matched[s.value]);_A(pF,Co(()=>s.value+1)),_A(cne,a),_A(qO,o);const c=Bf();return Th(()=>[c.value,a.value,e.name],([u,f,h],[_,g,p])=>{f&&(f.instances[h]=u,g&&g!==f&&u&&u===_&&(f.leaveGuards.size||(f.leaveGuards=g.leaveGuards),f.updateGuards.size||(f.updateGuards=g.updateGuards))),u&&f&&(!g||!Zg(f,g)||!_)&&(f.enterCallbacks[h]||[]).forEach(A=>A(u))},{flush:"post"}),()=>{const u=o.value,f=e.name,h=a.value,_=h&&h.components[f];if(!_)return yF(n.default,{Component:_,route:u});const g=h.props[f],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,C=TB(_,zi({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return yF(n.default,{Component:C,route:u})||C}}});function yF(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const S5=pne;function mne(e){const t=Gte(e.routes,e),n=e.parseQuery||sne,i=e.stringifyQuery||hF,o=e.history,r=Yy(),s=Yy(),a=Yy(),c=SZ(Id);let u=Id;ng&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Jv.bind(null,$=>""+$),h=Jv.bind(null,rne),_=Jv.bind(null,qx);function g($,Y){let ae,ue;return g5($)?(ae=t.getRecordMatcher($),ue=Y):ue=$,t.addRoute(ue,ae)}function p($){const Y=t.getRecordMatcher($);Y&&t.removeRoute(Y)}function A(){return t.getRoutes().map($=>$.record)}function C($){return!!t.getRecordMatcher($)}function b($,Y){if(Y=zi({},Y||c.value),typeof $=="string"){const Q=Qv(n,$,Y.path),ie=t.resolve({path:Q.path},Y),de=o.createHref(Q.fullPath);return zi(Q,ie,{params:_(ie.params),hash:qx(Q.hash),redirectedFrom:void 0,href:de})}let ae;if("path"in $)ae=zi({},$,{path:Qv(n,$.path,Y.path).path});else{const Q=zi({},$.params);for(const ie in Q)Q[ie]==null&&delete Q[ie];ae=zi({},$,{params:h($.params)}),Y.params=h(Y.params)}const ue=t.resolve(ae,Y),re=$.hash||"";ue.params=f(_(ue.params));const he=yte(i,zi({},$,{hash:nne(re),path:ue.path})),ce=o.createHref(he);return zi({fullPath:he,hash:re,query:i===hF?ane($.query):$.query||{}},ue,{redirectedFrom:void 0,href:ce})}function x($){return typeof $=="string"?Qv(n,$,c.value.path):zi({},$)}function w($,Y){if(u!==$)return ey(8,{from:Y,to:$})}function S($){return H($)}function P($){return S(zi(x($),{replace:!0}))}function L($){const Y=$.matched[$.matched.length-1];if(Y&&Y.redirect){const{redirect:ae}=Y;let ue=typeof ae=="function"?ae($):ae;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=x(ue):{path:ue},ue.params={}),zi({query:$.query,hash:$.hash,params:"path"in ue?{}:$.params},ue)}}function H($,Y){const ae=u=b($),ue=c.value,re=$.state,he=$.force,ce=$.replace===!0,Q=L(ae);if(Q)return H(zi(x(Q),{state:typeof Q=="object"?zi({},re,Q.state):re,force:he,replace:ce}),Y||ae);const ie=ae;ie.redirectedFrom=Y;let de;return!he&&Ate(i,ue,ae)&&(de=ey(16,{to:ie,from:ue}),G(ue,ue,!0,!1)),(de?Promise.resolve(de):z(ie,ue)).catch(me=>cf(me)?cf(me,2)?me:W(me):V(me,ie,ue)).then(me=>{if(me){if(cf(me,2))return H(zi({replace:ce},x(me.to),{state:typeof me.to=="object"?zi({},re,me.to.state):re,force:he}),Y||ie)}else me=v(ie,ue,!0,ce,re);return U(ie,ue,me),me})}function R($,Y){const ae=w($,Y);return ae?Promise.reject(ae):Promise.resolve()}function z($,Y){let ae;const[ue,re,he]=_ne($,Y);ae=Zv(ue.reverse(),"beforeRouteLeave",$,Y);for(const Q of ue)Q.leaveGuards.forEach(ie=>{ae.push(nh(ie,$,Y))});const ce=R.bind(null,$,Y);return ae.push(ce),C_(ae).then(()=>{ae=[];for(const Q of r.list())ae.push(nh(Q,$,Y));return ae.push(ce),C_(ae)}).then(()=>{ae=Zv(re,"beforeRouteUpdate",$,Y);for(const Q of re)Q.updateGuards.forEach(ie=>{ae.push(nh(ie,$,Y))});return ae.push(ce),C_(ae)}).then(()=>{ae=[];for(const Q of $.matched)if(Q.beforeEnter&&!Y.matched.includes(Q))if(Ll(Q.beforeEnter))for(const ie of Q.beforeEnter)ae.push(nh(ie,$,Y));else ae.push(nh(Q.beforeEnter,$,Y));return ae.push(ce),C_(ae)}).then(()=>($.matched.forEach(Q=>Q.enterCallbacks={}),ae=Zv(he,"beforeRouteEnter",$,Y),ae.push(ce),C_(ae))).then(()=>{ae=[];for(const Q of s.list())ae.push(nh(Q,$,Y));return ae.push(ce),C_(ae)}).catch(Q=>cf(Q,8)?Q:Promise.reject(Q))}function U($,Y,ae){for(const ue of a.list())ue($,Y,ae)}function v($,Y,ae,ue,re){const he=w($,Y);if(he)return he;const ce=Y===Id,Q=ng?history.state:{};ae&&(ue||ce?o.replace($.fullPath,zi({scroll:ce&&Q&&Q.scroll},re)):o.push($.fullPath,re)),c.value=$,G($,Y,ae,ce),W()}let I;function m(){I||(I=o.listen(($,Y,ae)=>{if(!X.listening)return;const ue=b($),re=L(ue);if(re){H(zi(re,{replace:!0}),ue).catch(CA);return}u=ue;const he=c.value;ng&&vte(rF(he.fullPath,ae.delta),dS()),z(ue,he).catch(ce=>cf(ce,12)?ce:cf(ce,2)?(H(ce.to,ue).then(Q=>{cf(Q,20)&&!ae.delta&&ae.type===$A.pop&&o.go(-1,!1)}).catch(CA),Promise.reject()):(ae.delta&&o.go(-ae.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||v(ue,he,!1),ce&&(ae.delta&&!cf(ce,8)?o.go(-ae.delta,!1):ae.type===$A.pop&&cf(ce,20)&&o.go(-1,!1)),U(ue,he,ce)}).catch(CA)}))}let D=Yy(),O=Yy(),M;function V($,Y,ae){W($);const ue=O.list();return ue.length?ue.forEach(re=>re($,Y,ae)):console.error($),Promise.reject($)}function k(){return M&&c.value!==Id?Promise.resolve():new Promise(($,Y)=>{D.add([$,Y])})}function W($){return M||(M=!$,m(),D.list().forEach(([Y,ae])=>$?ae($):Y()),D.reset()),$}function G($,Y,ae,ue){const{scrollBehavior:re}=e;if(!ng||!re)return Promise.resolve();const he=!ae&&Dte(rF($.fullPath,0))||(ue||!ae)&&history.state&&history.state.scroll||null;return _B().then(()=>re($,Y,he)).then(ce=>ce&&Ste(ce)).catch(ce=>V(ce,$,Y))}const K=$=>o.go($);let q;const te=new Set,X={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:C,getRoutes:A,resolve:b,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:k,install($){const Y=this;$.component("RouterLink",fne),$.component("RouterView",S5),$.config.globalProperties.$router=Y,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>kn(c)}),ng&&!q&&c.value===Id&&(q=!0,S(o.location).catch(re=>{}));const ae={};for(const re in Id)ae[re]=Co(()=>c.value[re]);$.provide(EB,Y),$.provide(w5,FC(ae)),$.provide(qO,c);const ue=$.unmount;te.add($),$.unmount=function(){te.delete($),te.size<1&&(u=Id,I&&I(),I=null,c.value=Id,q=!1,M=!1),ue()}}};return X}function C_(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function _ne(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sZg(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>Zg(u,c))||o.push(c))}return[n,i,o]}const gne=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},yne={__name:"App",setup(e){return(t,n)=>(Ur(),sh(kn(S5)))}},Ane=gne(yne,[["__scopeId","data-v-0969e94e"]]);function l(e){return e!=null}function E(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(E.prototype=Object.create(Error.prototype),E.prototype.constructor=E);E.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` ${this.stack.toString()}`),e};E.throwInstantiationError=function(){throw new E("This function defines an interface and should not be called directly.")};const hr={};hr.typeOf={};function Cne(e){return`${e} is required, actual value was undefined`}function by(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}hr.defined=function(e,t){if(!l(t))throw new E(Cne(e))};hr.typeOf.func=function(e,t){if(typeof t!="function")throw new E(by(typeof t,"function",e))};hr.typeOf.string=function(e,t){if(typeof t!="string")throw new E(by(typeof t,"string",e))};hr.typeOf.number=function(e,t){if(typeof t!="number")throw new E(by(typeof t,"number",e))};hr.typeOf.number.lessThan=function(e,t,n){if(hr.typeOf.number(e,t),t>=n)throw new E(`Expected ${e} to be less than ${n}, actual value was ${t}`)};hr.typeOf.number.lessThanOrEquals=function(e,t,n){if(hr.typeOf.number(e,t),t>n)throw new E(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};hr.typeOf.number.greaterThan=function(e,t,n){if(hr.typeOf.number(e,t),t<=n)throw new E(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};hr.typeOf.number.greaterThanOrEquals=function(e,t,n){if(hr.typeOf.number(e,t),t>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};sd.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};sd.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};sd.prototype.random_int31=function(){return this.random_int()>>>1};sd.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};sd.prototype.random=function(){return this.random_int()*(1/4294967296)};sd.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};sd.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var hS=sd;const Ye={};Ye.EPSILON1=.1;Ye.EPSILON2=.01;Ye.EPSILON3=.001;Ye.EPSILON4=1e-4;Ye.EPSILON5=1e-5;Ye.EPSILON6=1e-6;Ye.EPSILON7=1e-7;Ye.EPSILON8=1e-8;Ye.EPSILON9=1e-9;Ye.EPSILON10=1e-10;Ye.EPSILON11=1e-11;Ye.EPSILON12=1e-12;Ye.EPSILON13=1e-13;Ye.EPSILON14=1e-14;Ye.EPSILON15=1e-15;Ye.EPSILON16=1e-16;Ye.EPSILON17=1e-17;Ye.EPSILON18=1e-18;Ye.EPSILON19=1e-19;Ye.EPSILON20=1e-20;Ye.EPSILON21=1e-21;Ye.GRAVITATIONALPARAMETER=3986004418e5;Ye.SOLAR_RADIUS=6955e5;Ye.LUNAR_RADIUS=1737400;Ye.SIXTY_FOUR_KILOBYTES=64*1024;Ye.FOUR_GIGABYTES=4*1024*1024*1024;Ye.sign=y(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Ye.signNotZero=function(e){return e<0?-1:1};Ye.toSNorm=function(e,t){return t=y(t,255),Math.round((Ye.clamp(e,-1,1)*.5+.5)*t)};Ye.fromSNorm=function(e,t){return t=y(t,255),Ye.clamp(e,0,t)/t*2-1};Ye.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Ye.clamp((e-t)/n,0,1)};Ye.sinh=y(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Ye.cosh=y(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Ye.lerp=function(e,t,n){return(1-n)*e+n*t};Ye.PI=Math.PI;Ye.ONE_OVER_PI=1/Math.PI;Ye.PI_OVER_TWO=Math.PI/2;Ye.PI_OVER_THREE=Math.PI/3;Ye.PI_OVER_FOUR=Math.PI/4;Ye.PI_OVER_SIX=Math.PI/6;Ye.THREE_PI_OVER_TWO=3*Math.PI/2;Ye.TWO_PI=2*Math.PI;Ye.ONE_OVER_TWO_PI=1/(2*Math.PI);Ye.RADIANS_PER_DEGREE=Math.PI/180;Ye.DEGREES_PER_RADIAN=180/Math.PI;Ye.RADIANS_PER_ARCSECOND=Ye.RADIANS_PER_DEGREE/3600;Ye.toRadians=function(e){if(!l(e))throw new E("degrees is required.");return e*Ye.RADIANS_PER_DEGREE};Ye.toDegrees=function(e){if(!l(e))throw new E("radians is required.");return e*Ye.DEGREES_PER_RADIAN};Ye.convertLongitudeRange=function(e){if(!l(e))throw new E("angle is required.");const t=Ye.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Ye.clampToLatitudeRange=function(e){if(!l(e))throw new E("angle is required.");return Ye.clamp(e,-1*Ye.PI_OVER_TWO,Ye.PI_OVER_TWO)};Ye.negativePiToPi=function(e){if(!l(e))throw new E("angle is required.");return e>=-Ye.PI&&e<=Ye.PI?e:Ye.zeroToTwoPi(e+Ye.PI)-Ye.PI};Ye.zeroToTwoPi=function(e){if(!l(e))throw new E("angle is required.");if(e>=0&&e<=Ye.TWO_PI)return e;const t=Ye.mod(e,Ye.TWO_PI);return Math.abs(t)Ye.EPSILON14?Ye.TWO_PI:t};Ye.mod=function(e,t){if(!l(e))throw new E("m is required.");if(!l(t))throw new E("n is required.");if(t===0)throw new E("divisor cannot be 0.");return Ye.sign(e)===Ye.sign(t)&&Math.abs(e)n};Ye.greaterThanOrEquals=function(e,t,n){if(!l(e))throw new E("first is required.");if(!l(t))throw new E("second is required.");if(!l(n))throw new E("absoluteEpsilon is required.");return e-t>-n};const GT=[1];Ye.factorial=function(e){if(typeof e!="number"||e<0)throw new E("A number greater than or equal to 0 is required.");const t=GT.length;if(e>=t){let n=GT[t-1];for(let i=t;i<=e;i++){const o=n*i;GT.push(o),n=o}}return GT[e]};Ye.incrementWrap=function(e,t,n){if(n=y(n,0),!l(e))throw new E("n is required.");if(t<=n)throw new E("maximumValue must be greater than minimumValue.");return++e,e>t&&(e=n),e};Ye.isPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new E("A number between 0 and (2^32)-1 is required.");return e!==0&&(e&e-1)===0};Ye.nextPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>2147483648)throw new E("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Ye.previousPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new E("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Ye.clamp=function(e,t,n){return T.typeOf.number("value",e),T.typeOf.number("min",t),T.typeOf.number("max",n),en?n:e};let v5=new hS;Ye.setRandomNumberSeed=function(e){if(!l(e))throw new E("seed is required.");v5=new hS(e)};Ye.nextRandomNumber=function(){return v5.random()};Ye.randomBetween=function(e,t){return Ye.nextRandomNumber()*(t-e)+e};Ye.acosClamped=function(e){if(!l(e))throw new E("value is required.");return Math.acos(Ye.clamp(e,-1,1))};Ye.asinClamped=function(e){if(!l(e))throw new E("value is required.");return Math.asin(Ye.clamp(e,-1,1))};Ye.chordLength=function(e,t){if(!l(e))throw new E("angle is required.");if(!l(t))throw new E("radius is required.");return 2*t*Math.sin(e*.5)};Ye.logBase=function(e,t){if(!l(e))throw new E("number is required.");if(!l(t))throw new E("base is required.");return Math.log(e)/Math.log(t)};Ye.cbrt=y(Math.cbrt,function(t){const n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Ye.log2=y(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Ye.fog=function(e,t){const n=e*t;return 1-Math.exp(-(n*n))};Ye.fastApproximateAtan=function(e){return T.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Ye.fastApproximateAtan2=function(e,t){T.typeOf.number("x",e),T.typeOf.number("y",t);let n,i=Math.abs(e);n=Math.abs(t);const o=Math.max(i,n);n=Math.min(i,n);const r=n/o;if(isNaN(r))throw new E("either x or y must be nonzero");return i=Ye.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Ye.PI_OVER_TWO-i:i,i=e<0?Ye.PI-i:i,i=t<0?-i:i,i};const N=Ye;function d(e,t,n){this.x=y(e,0),this.y=y(t,0),this.z=y(n,0)}d.fromSpherical=function(e,t){T.typeOf.object("spherical",e),l(t)||(t=new d);const n=e.clock,i=e.cone,o=y(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};d.fromElements=function(e,t,n,i){return l(i)?(i.x=e,i.y=t,i.z=n,i):new d(e,t,n)};d.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new d(e.x,e.y,e.z)};d.fromCartesian4=d.clone;d.packedLength=3;d.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};d.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new d),n.x=e[t++],n.y=e[t++],n.z=e[t],n};d.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*3;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new E("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==i&&(t.length=i)}for(let o=0;oi&&(o=u,i=f)}let r=1,s=0;const a=YO[o],c=XO[o];if(Math.abs(e[J.getElementIndex(c,a)])>n){const u=e[J.getElementIndex(c,c)],f=e[J.getElementIndex(a,a)],h=e[J.getElementIndex(c,a)],_=(u-f)/2/h;let g;_<0?g=-1/(-_+Math.sqrt(1+_*_)):g=1/(_+Math.sqrt(1+_*_)),r=1/Math.sqrt(1+g*g),s=g*r}return t=J.clone(J.IDENTITY,t),t[J.getElementIndex(a,a)]=t[J.getElementIndex(c,c)]=r,t[J.getElementIndex(c,a)]=s,t[J.getElementIndex(a,c)]=-s,t}const jT=new J,bF=new J;J.computeEigenDecomposition=function(e,t){T.typeOf.object("matrix",e);const n=N.EPSILON20,i=10;let o=0,r=0;l(t)||(t={});const s=t.unitary=J.clone(J.IDENTITY,t.unitary),a=t.diagonal=J.clone(e,t.diagonal),c=n*Pne(a);for(;rc;)Lne(a,jT),J.transpose(jT,bF),J.multiply(a,jT,a),J.multiply(bF,a,a),J.multiply(s,jT,s),++o>2&&(++r,o=0);return t};J.abs=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};J.determinant=function(e){T.typeOf.object("matrix",e);const t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],u=e[8];return t*(r*u-c*s)+o*(c*i-n*u)+a*(n*s-r*i)};J.inverse=function(e,t){T.typeOf.object("matrix",e),T.typeOf.object("result",t);const n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],u=e[7],f=e[8],h=J.determinant(e);if(Math.abs(h)<=N.EPSILON15)throw new E("matrix is not invertible");t[0]=s*f-u*a,t[1]=u*o-i*f,t[2]=i*a-s*o,t[3]=c*a-r*f,t[4]=n*f-c*o,t[5]=r*o-n*a,t[6]=r*u-c*s,t[7]=c*i-n*u,t[8]=n*s-r*i;const _=1/h;return J.multiplyByScalar(t,_,t)};const Bne=new J;J.inverseTranspose=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),J.inverse(J.transpose(e,Bne),t)};J.equals=function(e,t){return e===t||l(e)&&l(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};J.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};J.IDENTITY=Object.freeze(new J(1,0,0,0,1,0,0,0,1));J.ZERO=Object.freeze(new J(0,0,0,0,0,0,0,0,0));J.COLUMN0ROW0=0;J.COLUMN0ROW1=1;J.COLUMN0ROW2=2;J.COLUMN1ROW0=3;J.COLUMN1ROW1=4;J.COLUMN1ROW2=5;J.COLUMN2ROW0=6;J.COLUMN2ROW1=7;J.COLUMN2ROW2=8;Object.defineProperties(J.prototype,{length:{get:function(){return J.packedLength}}});J.prototype.clone=function(e){return J.clone(this,e)};J.prototype.equals=function(e){return J.equals(this,e)};J.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};J.prototype.equalsEpsilon=function(e,t){return J.equalsEpsilon(this,e,t)};J.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]}) (${this[1]}, ${this[4]}, ${this[7]}) (${this[2]}, ${this[5]}, ${this[8]})`};function Se(e){this.name="RuntimeError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(Se.prototype=Object.create(Error.prototype),Se.prototype.constructor=Se);Se.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` ${this.stack.toString()}`),e};function B(e,t,n,i,o,r,s,a,c,u,f,h,_,g,p,A){this[0]=y(e,0),this[1]=y(o,0),this[2]=y(c,0),this[3]=y(_,0),this[4]=y(t,0),this[5]=y(r,0),this[6]=y(u,0),this[7]=y(g,0),this[8]=y(n,0),this[9]=y(s,0),this[10]=y(f,0),this[11]=y(p,0),this[12]=y(i,0),this[13]=y(a,0),this[14]=y(h,0),this[15]=y(A,0)}B.packedLength=16;B.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t[n++]=e[9],t[n++]=e[10],t[n++]=e[11],t[n++]=e[12],t[n++]=e[13],t[n++]=e[14],t[n]=e[15],t};B.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new B),n[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n[9]=e[t++],n[10]=e[t++],n[11]=e[t++],n[12]=e[t++],n[13]=e[t++],n[14]=e[t++],n[15]=e[t],n};B.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*16;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new E("If result is a typed array, it must have exactly array.length * 16 elements");t.length!==i&&(t.length=i)}for(let o=0;o=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};wr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new E("numberOfVertices is required.");if(!l(t))throw new E("sourceArray is required.");if(!l(n))throw new E("byteOffset is required.");return e>=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};wr.fromTypedArray=function(e){if(e instanceof Uint8Array)return wr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return wr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return wr.UNSIGNED_INT;throw new E("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const it=Object.freeze(wr),JE={STREAM_DRAW:se.STREAM_DRAW,STATIC_DRAW:se.STATIC_DRAW,DYNAMIC_DRAW:se.DYNAMIC_DRAW,validate:function(e){return e===JE.STREAM_DRAW||e===JE.STATIC_DRAW||e===JE.DYNAMIC_DRAW}},Ze=Object.freeze(JE);function yt(e){if(e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new E("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new E("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(T.typeOf.object("options.typedArray",e.typedArray),T.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!Ze.validate(e.usage))throw new E("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),T.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=ds(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}yt.createVertexBuffer=function(e){return T.defined("options.context",e.context),new yt({context:e.context,bufferTarget:se.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};yt.createIndexBuffer=function(e){if(T.defined("options.context",e.context),!it.validate(e.indexDatatype))throw new E("Invalid indexDatatype.");if(e.indexDatatype===it.UNSIGNED_INT&&!e.context.elementIndexUint)throw new E("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=it.getSizeInBytes(n),o=new yt({context:t,bufferTarget:se.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(yt.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});yt.prototype._getBuffer=function(){return this._buffer};yt.prototype.copyFromArrayView=function(e,t){t=y(t,0),T.defined("arrayView",e),T.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};yt.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new E("A WebGL 2 context is required.");if(!l(e))throw new E("readBuffer must be defined.");if(!l(i)||i<=0)throw new E("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new E("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new E("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new E("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new E("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new E("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new E("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=se.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};yt.prototype.isDestroyed=function(){return!1};yt.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),Ue(this)};let Pd;const Po={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},Ta={};Object.defineProperties(Ta,{element:{get:function(){if(Ta.supportsFullscreen())return document[Po.fullscreenElement]}},changeEventName:{get:function(){if(Ta.supportsFullscreen())return Po.fullscreenchange}},errorEventName:{get:function(){if(Ta.supportsFullscreen())return Po.fullscreenerror}},enabled:{get:function(){if(Ta.supportsFullscreen())return document[Po.fullscreenEnabled]}},fullscreen:{get:function(){if(Ta.supportsFullscreen())return Ta.element!==null}}});Ta.supportsFullscreen=function(){if(l(Pd))return Pd;Pd=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Po.requestFullscreen="requestFullscreen",Po.exitFullscreen="exitFullscreen",Po.fullscreenEnabled="fullscreenEnabled",Po.fullscreenElement="fullscreenElement",Po.fullscreenchange="fullscreenchange",Po.fullscreenerror="fullscreenerror",Pd=!0,Pd;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){bs._result=t.width>0&&t.height>0,e(bs._result)},t.onerror=function(){bs._result=!1,e(bs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),bs._promise};Object.defineProperties(bs,{initialized:{get:function(){return l(bs._result)}}});const ig=[];typeof ArrayBuffer<"u"&&(ig.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&ig.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&ig.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&ig.push(BigInt64Array),typeof BigUint64Array<"u"&&ig.push(BigUint64Array));const Bu={isChrome:wB,chromeVersion:Yne,isSafari:O5,safariVersion:Xne,isWebkit:L5,webkitVersion:$ne,isInternetExplorer:B5,internetExplorerVersion:Kne,isEdge:pS,edgeVersion:Jne,isFirefox:SB,firefoxVersion:eie,isWindows:Qne,isIPadOrIOS:Zne,hardwareConcurrency:y(Rs.hardwareConcurrency,3),supportsPointerEvents:tie,supportsImageRenderingPixelated:F5,supportsWebP:bs,imageRenderingValue:nie,typedArrayTypes:ig};Bu.supportsBasis=function(e){return Bu.supportsWebAssembly()&&e.context.supportsBasis};Bu.supportsFullscreen=function(){return zr.supportsFullscreen()};Bu.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};Bu.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};Bu.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};Bu.supportsBigInt=function(){return typeof BigInt<"u"};Bu.supportsWebWorkers=function(){return typeof Worker<"u"};Bu.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const an=Bu;function sD(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function F(e,t,n,i){this.red=y(e,1),this.green=y(t,1),this.blue=y(n,1),this.alpha=y(i,1)}F.fromCartesian4=function(e,t){return T.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new F(e.x,e.y,e.z,e.w)};F.fromBytes=function(e,t,n,i,o){return e=F.byteToFloat(y(e,255)),t=F.byteToFloat(y(t,255)),n=F.byteToFloat(y(n,255)),i=F.byteToFloat(y(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new F(e,t,n,i)};F.fromAlpha=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new F(e.red,e.green,e.blue,t)};let aD,vB,vf;an.supportsTypedArrays()&&(aD=new ArrayBuffer(4),vB=new Uint32Array(aD),vf=new Uint8Array(aD));F.fromRgba=function(e,t){return vB[0]=e,F.fromBytes(vf[0],vf[1],vf[2],vf[3],t)};F.fromHsl=function(e,t,n,i,o){e=y(e,0)%1,t=y(t,0),n=y(n,0),i=y(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=sD(u,c,e+1/3),s=sD(u,c,e),a=sD(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new F(r,s,a,i)};F.fromRandom=function(e,t){e=y(e,y.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=y(e.minimumRed,0),a=y(e.maximumRed,1);T.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+N.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=y(e.minimumGreen,0),a=y(e.maximumGreen,1);T.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+N.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=y(e.minimumBlue,0),a=y(e.maximumBlue,1);T.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+N.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=y(e.minimumAlpha,0),a=y(e.maximumAlpha,1);T.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+N.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new F(n,i,o,r)};const iie=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,oie=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,rie=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,sie=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;F.fromCssColorString=function(e,t){T.typeOf.string("color",e),l(t)||(t=new F),e=e.replace(/\s/g,"");const n=F[e.toUpperCase()];if(l(n))return F.clone(n,t),t;let i=iie.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(y(i[4],"f"),16)/15,t):(i=oie.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(y(i[4],"ff"),16)/255,t):(i=rie.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(y(i[4],"1.0")),t):(i=sie.exec(e),i!==null?F.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(y(i[4],"1.0")),t):(t=void 0,t))))};F.packedLength=4;F.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};F.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new F),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};F.byteToFloat=function(e){return e/255};F.floatToByte=function(e){return e===1?255:e*256|0};F.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new F(e.red,e.green,e.blue,e.alpha)};F.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};F.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};F.prototype.clone=function(e){return F.clone(this,e)};F.prototype.equals=function(e){return F.equals(this,e)};F.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};F.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};F.prototype.toCssColorString=function(){const e=F.floatToByte(this.red),t=F.floatToByte(this.green),n=F.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};F.prototype.toCssHexString=function(){let e=F.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=F.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=F.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=F.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};F.prototype.toBytes=function(e){const t=F.floatToByte(this.red),n=F.floatToByte(this.green),i=F.floatToByte(this.blue),o=F.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};F.prototype.toRgba=function(){return vf[0]=F.floatToByte(this.red),vf[1]=F.floatToByte(this.green),vf[2]=F.floatToByte(this.blue),vf[3]=F.floatToByte(this.alpha),vB[0]};F.prototype.brighten=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};F.prototype.darken=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};F.prototype.withAlpha=function(e,t){return F.fromAlpha(this,e,t)};F.add=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};F.subtract=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};F.multiply=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};F.divide=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};F.mod=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};F.lerp=function(e,t,n,i){return T.typeOf.object("start",e),T.typeOf.object("end",t),T.typeOf.number("t",n),T.typeOf.object("result",i),i.red=N.lerp(e.red,t.red,n),i.green=N.lerp(e.green,t.green,n),i.blue=N.lerp(e.blue,t.blue,n),i.alpha=N.lerp(e.alpha,t.alpha,n),i};F.multiplyByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};F.divideByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};F.ALICEBLUE=Object.freeze(F.fromCssColorString("#F0F8FF"));F.ANTIQUEWHITE=Object.freeze(F.fromCssColorString("#FAEBD7"));F.AQUA=Object.freeze(F.fromCssColorString("#00FFFF"));F.AQUAMARINE=Object.freeze(F.fromCssColorString("#7FFFD4"));F.AZURE=Object.freeze(F.fromCssColorString("#F0FFFF"));F.BEIGE=Object.freeze(F.fromCssColorString("#F5F5DC"));F.BISQUE=Object.freeze(F.fromCssColorString("#FFE4C4"));F.BLACK=Object.freeze(F.fromCssColorString("#000000"));F.BLANCHEDALMOND=Object.freeze(F.fromCssColorString("#FFEBCD"));F.BLUE=Object.freeze(F.fromCssColorString("#0000FF"));F.BLUEVIOLET=Object.freeze(F.fromCssColorString("#8A2BE2"));F.BROWN=Object.freeze(F.fromCssColorString("#A52A2A"));F.BURLYWOOD=Object.freeze(F.fromCssColorString("#DEB887"));F.CADETBLUE=Object.freeze(F.fromCssColorString("#5F9EA0"));F.CHARTREUSE=Object.freeze(F.fromCssColorString("#7FFF00"));F.CHOCOLATE=Object.freeze(F.fromCssColorString("#D2691E"));F.CORAL=Object.freeze(F.fromCssColorString("#FF7F50"));F.CORNFLOWERBLUE=Object.freeze(F.fromCssColorString("#6495ED"));F.CORNSILK=Object.freeze(F.fromCssColorString("#FFF8DC"));F.CRIMSON=Object.freeze(F.fromCssColorString("#DC143C"));F.CYAN=Object.freeze(F.fromCssColorString("#00FFFF"));F.DARKBLUE=Object.freeze(F.fromCssColorString("#00008B"));F.DARKCYAN=Object.freeze(F.fromCssColorString("#008B8B"));F.DARKGOLDENROD=Object.freeze(F.fromCssColorString("#B8860B"));F.DARKGRAY=Object.freeze(F.fromCssColorString("#A9A9A9"));F.DARKGREEN=Object.freeze(F.fromCssColorString("#006400"));F.DARKGREY=F.DARKGRAY;F.DARKKHAKI=Object.freeze(F.fromCssColorString("#BDB76B"));F.DARKMAGENTA=Object.freeze(F.fromCssColorString("#8B008B"));F.DARKOLIVEGREEN=Object.freeze(F.fromCssColorString("#556B2F"));F.DARKORANGE=Object.freeze(F.fromCssColorString("#FF8C00"));F.DARKORCHID=Object.freeze(F.fromCssColorString("#9932CC"));F.DARKRED=Object.freeze(F.fromCssColorString("#8B0000"));F.DARKSALMON=Object.freeze(F.fromCssColorString("#E9967A"));F.DARKSEAGREEN=Object.freeze(F.fromCssColorString("#8FBC8F"));F.DARKSLATEBLUE=Object.freeze(F.fromCssColorString("#483D8B"));F.DARKSLATEGRAY=Object.freeze(F.fromCssColorString("#2F4F4F"));F.DARKSLATEGREY=F.DARKSLATEGRAY;F.DARKTURQUOISE=Object.freeze(F.fromCssColorString("#00CED1"));F.DARKVIOLET=Object.freeze(F.fromCssColorString("#9400D3"));F.DEEPPINK=Object.freeze(F.fromCssColorString("#FF1493"));F.DEEPSKYBLUE=Object.freeze(F.fromCssColorString("#00BFFF"));F.DIMGRAY=Object.freeze(F.fromCssColorString("#696969"));F.DIMGREY=F.DIMGRAY;F.DODGERBLUE=Object.freeze(F.fromCssColorString("#1E90FF"));F.FIREBRICK=Object.freeze(F.fromCssColorString("#B22222"));F.FLORALWHITE=Object.freeze(F.fromCssColorString("#FFFAF0"));F.FORESTGREEN=Object.freeze(F.fromCssColorString("#228B22"));F.FUCHSIA=Object.freeze(F.fromCssColorString("#FF00FF"));F.GAINSBORO=Object.freeze(F.fromCssColorString("#DCDCDC"));F.GHOSTWHITE=Object.freeze(F.fromCssColorString("#F8F8FF"));F.GOLD=Object.freeze(F.fromCssColorString("#FFD700"));F.GOLDENROD=Object.freeze(F.fromCssColorString("#DAA520"));F.GRAY=Object.freeze(F.fromCssColorString("#808080"));F.GREEN=Object.freeze(F.fromCssColorString("#008000"));F.GREENYELLOW=Object.freeze(F.fromCssColorString("#ADFF2F"));F.GREY=F.GRAY;F.HONEYDEW=Object.freeze(F.fromCssColorString("#F0FFF0"));F.HOTPINK=Object.freeze(F.fromCssColorString("#FF69B4"));F.INDIANRED=Object.freeze(F.fromCssColorString("#CD5C5C"));F.INDIGO=Object.freeze(F.fromCssColorString("#4B0082"));F.IVORY=Object.freeze(F.fromCssColorString("#FFFFF0"));F.KHAKI=Object.freeze(F.fromCssColorString("#F0E68C"));F.LAVENDER=Object.freeze(F.fromCssColorString("#E6E6FA"));F.LAVENDAR_BLUSH=Object.freeze(F.fromCssColorString("#FFF0F5"));F.LAWNGREEN=Object.freeze(F.fromCssColorString("#7CFC00"));F.LEMONCHIFFON=Object.freeze(F.fromCssColorString("#FFFACD"));F.LIGHTBLUE=Object.freeze(F.fromCssColorString("#ADD8E6"));F.LIGHTCORAL=Object.freeze(F.fromCssColorString("#F08080"));F.LIGHTCYAN=Object.freeze(F.fromCssColorString("#E0FFFF"));F.LIGHTGOLDENRODYELLOW=Object.freeze(F.fromCssColorString("#FAFAD2"));F.LIGHTGRAY=Object.freeze(F.fromCssColorString("#D3D3D3"));F.LIGHTGREEN=Object.freeze(F.fromCssColorString("#90EE90"));F.LIGHTGREY=F.LIGHTGRAY;F.LIGHTPINK=Object.freeze(F.fromCssColorString("#FFB6C1"));F.LIGHTSEAGREEN=Object.freeze(F.fromCssColorString("#20B2AA"));F.LIGHTSKYBLUE=Object.freeze(F.fromCssColorString("#87CEFA"));F.LIGHTSLATEGRAY=Object.freeze(F.fromCssColorString("#778899"));F.LIGHTSLATEGREY=F.LIGHTSLATEGRAY;F.LIGHTSTEELBLUE=Object.freeze(F.fromCssColorString("#B0C4DE"));F.LIGHTYELLOW=Object.freeze(F.fromCssColorString("#FFFFE0"));F.LIME=Object.freeze(F.fromCssColorString("#00FF00"));F.LIMEGREEN=Object.freeze(F.fromCssColorString("#32CD32"));F.LINEN=Object.freeze(F.fromCssColorString("#FAF0E6"));F.MAGENTA=Object.freeze(F.fromCssColorString("#FF00FF"));F.MAROON=Object.freeze(F.fromCssColorString("#800000"));F.MEDIUMAQUAMARINE=Object.freeze(F.fromCssColorString("#66CDAA"));F.MEDIUMBLUE=Object.freeze(F.fromCssColorString("#0000CD"));F.MEDIUMORCHID=Object.freeze(F.fromCssColorString("#BA55D3"));F.MEDIUMPURPLE=Object.freeze(F.fromCssColorString("#9370DB"));F.MEDIUMSEAGREEN=Object.freeze(F.fromCssColorString("#3CB371"));F.MEDIUMSLATEBLUE=Object.freeze(F.fromCssColorString("#7B68EE"));F.MEDIUMSPRINGGREEN=Object.freeze(F.fromCssColorString("#00FA9A"));F.MEDIUMTURQUOISE=Object.freeze(F.fromCssColorString("#48D1CC"));F.MEDIUMVIOLETRED=Object.freeze(F.fromCssColorString("#C71585"));F.MIDNIGHTBLUE=Object.freeze(F.fromCssColorString("#191970"));F.MINTCREAM=Object.freeze(F.fromCssColorString("#F5FFFA"));F.MISTYROSE=Object.freeze(F.fromCssColorString("#FFE4E1"));F.MOCCASIN=Object.freeze(F.fromCssColorString("#FFE4B5"));F.NAVAJOWHITE=Object.freeze(F.fromCssColorString("#FFDEAD"));F.NAVY=Object.freeze(F.fromCssColorString("#000080"));F.OLDLACE=Object.freeze(F.fromCssColorString("#FDF5E6"));F.OLIVE=Object.freeze(F.fromCssColorString("#808000"));F.OLIVEDRAB=Object.freeze(F.fromCssColorString("#6B8E23"));F.ORANGE=Object.freeze(F.fromCssColorString("#FFA500"));F.ORANGERED=Object.freeze(F.fromCssColorString("#FF4500"));F.ORCHID=Object.freeze(F.fromCssColorString("#DA70D6"));F.PALEGOLDENROD=Object.freeze(F.fromCssColorString("#EEE8AA"));F.PALEGREEN=Object.freeze(F.fromCssColorString("#98FB98"));F.PALETURQUOISE=Object.freeze(F.fromCssColorString("#AFEEEE"));F.PALEVIOLETRED=Object.freeze(F.fromCssColorString("#DB7093"));F.PAPAYAWHIP=Object.freeze(F.fromCssColorString("#FFEFD5"));F.PEACHPUFF=Object.freeze(F.fromCssColorString("#FFDAB9"));F.PERU=Object.freeze(F.fromCssColorString("#CD853F"));F.PINK=Object.freeze(F.fromCssColorString("#FFC0CB"));F.PLUM=Object.freeze(F.fromCssColorString("#DDA0DD"));F.POWDERBLUE=Object.freeze(F.fromCssColorString("#B0E0E6"));F.PURPLE=Object.freeze(F.fromCssColorString("#800080"));F.RED=Object.freeze(F.fromCssColorString("#FF0000"));F.ROSYBROWN=Object.freeze(F.fromCssColorString("#BC8F8F"));F.ROYALBLUE=Object.freeze(F.fromCssColorString("#4169E1"));F.SADDLEBROWN=Object.freeze(F.fromCssColorString("#8B4513"));F.SALMON=Object.freeze(F.fromCssColorString("#FA8072"));F.SANDYBROWN=Object.freeze(F.fromCssColorString("#F4A460"));F.SEAGREEN=Object.freeze(F.fromCssColorString("#2E8B57"));F.SEASHELL=Object.freeze(F.fromCssColorString("#FFF5EE"));F.SIENNA=Object.freeze(F.fromCssColorString("#A0522D"));F.SILVER=Object.freeze(F.fromCssColorString("#C0C0C0"));F.SKYBLUE=Object.freeze(F.fromCssColorString("#87CEEB"));F.SLATEBLUE=Object.freeze(F.fromCssColorString("#6A5ACD"));F.SLATEGRAY=Object.freeze(F.fromCssColorString("#708090"));F.SLATEGREY=F.SLATEGRAY;F.SNOW=Object.freeze(F.fromCssColorString("#FFFAFA"));F.SPRINGGREEN=Object.freeze(F.fromCssColorString("#00FF7F"));F.STEELBLUE=Object.freeze(F.fromCssColorString("#4682B4"));F.TAN=Object.freeze(F.fromCssColorString("#D2B48C"));F.TEAL=Object.freeze(F.fromCssColorString("#008080"));F.THISTLE=Object.freeze(F.fromCssColorString("#D8BFD8"));F.TOMATO=Object.freeze(F.fromCssColorString("#FF6347"));F.TURQUOISE=Object.freeze(F.fromCssColorString("#40E0D0"));F.VIOLET=Object.freeze(F.fromCssColorString("#EE82EE"));F.WHEAT=Object.freeze(F.fromCssColorString("#F5DEB3"));F.WHITE=Object.freeze(F.fromCssColorString("#FFFFFF"));F.WHITESMOKE=Object.freeze(F.fromCssColorString("#F5F5F5"));F.YELLOW=Object.freeze(F.fromCssColorString("#FFFF00"));F.YELLOWGREEN=Object.freeze(F.fromCssColorString("#9ACD32"));F.TRANSPARENT=Object.freeze(new F(0,0,0,0));function ji(e){e=y(e,y.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}ji.ALL=Object.freeze(new ji({color:new F(0,0,0,0),depth:1,stencil:0}));ji.prototype.execute=function(e,t){e.clear(this,t)};const aie={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Be=Object.freeze(aie);function KA(e){e=y(e,y.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=y(e.persists,!1),this.pass=Be.COMPUTE,this.owner=e.owner}KA.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=y(e,0),this.y=y(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.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};j.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new E("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oN.EPSILON12);return l(o)?(o.x=r*z,o.y=s*U,o.z=a*v,o):new d(r*z,s*U,a*v)}function Ae(e,t,n){this.longitude=y(e,0),this.latitude=y(t,0),this.height=y(n,0)}Ae.fromRadians=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),n=y(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ae(e,t,n)};Ae.fromDegrees=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),e=N.toRadians(e),t=N.toRadians(t),Ae.fromRadians(e,t,n,i)};const fie=new d,die=new d,hie=new d,pie=new d(1/6378137,1/6378137,1/6356752314245179e-9),mie=new d(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),_ie=N.EPSILON1;Ae.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:pie,o=l(t)?t.oneOverRadiiSquared:mie,r=l(t)?t._centerToleranceSquared:_ie,s=z5(e,i,o,r,die);if(!l(s))return;let a=d.multiplyComponents(s,o,fie);a=d.normalize(a,a);const c=d.subtract(e,s,hie),u=Math.atan2(a.y,a.x),f=Math.asin(a.z),h=N.sign(d.dot(c,e))*d.magnitude(c);return l(n)?(n.longitude=u,n.latitude=f,n.height=h,n):new Ae(u,f,h)};Ae.toCartesian=function(e,t,n){return T.defined("cartographic",e),d.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ae.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ae(e.longitude,e.latitude,e.height)};Ae.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ae.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ae.ZERO=Object.freeze(new Ae(0,0,0));Ae.prototype.clone=function(e){return Ae.clone(this,e)};Ae.prototype.equals=function(e){return Ae.equals(this,e)};Ae.prototype.equalsEpsilon=function(e,t){return Ae.equalsEpsilon(this,e,t)};Ae.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function U5(e,t,n,i){t=y(t,0),n=y(n,0),i=y(i,0),T.typeOf.number.greaterThanOrEquals("x",t,0),T.typeOf.number.greaterThanOrEquals("y",n,0),T.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new d(t,n,i),e._radiiSquared=new d(t*t,n*n,i*i),e._radiiToTheFourth=new d(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new d(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new d(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=N.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function pe(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,U5(this,e,t,n)}Object.defineProperties(pe.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});pe.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(d.clone(n,t._radii),d.clone(e._radiiSquared,t._radiiSquared),d.clone(e._radiiToTheFourth,t._radiiToTheFourth),d.clone(e._oneOverRadii,t._oneOverRadii),d.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new pe(n.x,n.y,n.z)};pe.fromCartesian3=function(e,t){return l(t)||(t=new pe),l(e)&&U5(t,e.x,e.y,e.z),t};pe.WGS84=Object.freeze(new pe(6378137,6378137,6356752314245179e-9));pe.UNIT_SPHERE=Object.freeze(new pe(1,1,1));pe.MOON=Object.freeze(new pe(N.LUNAR_RADIUS,N.LUNAR_RADIUS,N.LUNAR_RADIUS));pe.prototype.clone=function(e){return pe.clone(this,e)};pe.packedLength=d.packedLength;pe.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),d.pack(e._radii,t,n),t};pe.unpack=function(e,t,n){T.defined("array",e),t=y(t,0);const i=d.unpack(e,t);return pe.fromCartesian3(i,n)};pe.prototype.geocentricSurfaceNormal=d.normalize;pe.prototype.geodeticSurfaceNormalCartographic=function(e,t){T.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new d),t.x=r,t.y=s,t.z=a,d.normalize(t,t)};pe.prototype.geodeticSurfaceNormal=function(e,t){if(!d.equalsEpsilon(e,d.ZERO,N.EPSILON14))return l(t)||(t=new d),t=d.multiplyComponents(e,this._oneOverRadiiSquared,t),d.normalize(t,t)};const gie=new d,yie=new d;pe.prototype.cartographicToCartesian=function(e,t){const n=gie,i=yie;this.geodeticSurfaceNormalCartographic(e,n),d.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(d.dot(n,i));return d.divideByScalar(i,o,i),d.multiplyByScalar(n,e.height,n),l(t)||(t=new d),d.add(i,n,t)};pe.prototype.cartographicArrayToCartesianArray=function(e,t){T.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const bie=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],Eie=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function vF(e,t,n){T.typeOf.number("a",e),T.typeOf.number("b",t),T.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*bie[s];r+=Eie[s]*(n(i+a)+n(i-a))}return r*=o,r}pe.prototype.surfaceArea=function(e){T.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?f.longitude:f.longitude+N.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>N.PI&&(i=i-N.TWO_PI),n>N.PI&&(n=n-N.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new _e(n,s,i,a)};_e.fromCartesianArray=function(e,t,n){T.defined("cartesians",e),t=y(t,pe.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,f=e.length;u=0?h.longitude:h.longitude+N.TWO_PI;r=Math.min(r,_),s=Math.max(s,_)}return o-i>s-r&&(i=r,o=s,o>N.PI&&(o=o-N.TWO_PI),i>N.PI&&(i=i-N.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new _e(i,a,o,c)};_e.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new _e(e.west,e.south,e.east,e.north)};_e.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};_e.prototype.clone=function(e){return _e.clone(this,e)};_e.prototype.equals=function(e){return _e.equals(this,e)};_e.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};_e.prototype.equalsEpsilon=function(e,t){return _e.equalsEpsilon(this,e,t)};_e.validate=function(e){T.typeOf.object("rectangle",e);const t=e.north;T.typeOf.number.greaterThanOrEquals("north",t,-N.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("north",t,N.PI_OVER_TWO);const n=e.south;T.typeOf.number.greaterThanOrEquals("south",n,-N.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("south",n,N.PI_OVER_TWO);const i=e.west;T.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),T.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;T.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),T.typeOf.number.lessThanOrEquals("east",o,Math.PI)};_e.southwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ae(e.west,e.south)};_e.northwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ae(e.west,e.north)};_e.northeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ae(e.east,e.north)};_e.southeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ae(e.east,e.south)};_e.center=function(e,t){T.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),i=f))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=f,n):new _e(a,u,c,f)};_e.simpleIntersection=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new _e(i,o,r,s)};_e.union=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t),l(n)||(n=new _e);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),io||N.equalsEpsilon(n,o,N.EPSILON14))&&(n=e.south&&i<=e.north};const wie=new Ae;_e.subsample=function(e,t,n,i){T.typeOf.object("rectangle",e),t=y(t,pe.WGS84),n=y(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=wie;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let f=1;f<8;++f)u.longitude=-Math.PI+f*N.PI_OVER_TWO,_e.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};_e.subsection=function(e,t,n,i,o,r){if(T.typeOf.object("rectangle",e),T.typeOf.number.greaterThanOrEquals("westLerp",t,0),T.typeOf.number.lessThanOrEquals("westLerp",t,1),T.typeOf.number.greaterThanOrEquals("southLerp",n,0),T.typeOf.number.lessThanOrEquals("southLerp",n,1),T.typeOf.number.greaterThanOrEquals("eastLerp",i,0),T.typeOf.number.lessThanOrEquals("eastLerp",i,1),T.typeOf.number.greaterThanOrEquals("northLerp",o,0),T.typeOf.number.lessThanOrEquals("northLerp",o,1),T.typeOf.number.lessThanOrEquals("westLerp",t,i),T.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new _e),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=N.TWO_PI+e.east-e.west;r.west=N.negativePiToPi(e.west+t*a),r.east=N.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};_e.MAX_VALUE=Object.freeze(new _e(-Math.PI,-N.PI_OVER_TWO,Math.PI,N.PI_OVER_TWO));function qe(e,t,n,i){this.x=y(e,0),this.y=y(t,0),this.width=y(n,0),this.height=y(i,0)}qe.packedLength=4;qe.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.width,t[n]=e.height,t};qe.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new qe),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};qe.fromPoints=function(e,t){if(l(t)||(t=new qe),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};qe.intersect=function(e,t){T.typeOf.object("left",e),T.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?dn.OUTSIDE:dn.INTERSECTING};qe.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};qe.prototype.clone=function(e){return qe.clone(this,e)};qe.prototype.intersect=function(e){return qe.intersect(this,e)};qe.prototype.equals=function(e){return qe.equals(this,e)};const ns={POINTS:se.POINTS,LINES:se.LINES,LINE_LOOP:se.LINE_LOOP,LINE_STRIP:se.LINE_STRIP,TRIANGLES:se.TRIANGLES,TRIANGLE_STRIP:se.TRIANGLE_STRIP,TRIANGLE_FAN:se.TRIANGLE_FAN};ns.isLines=function(e){return e===ns.LINES||e===ns.LINE_LOOP||e===ns.LINE_STRIP};ns.isTriangles=function(e){return e===ns.TRIANGLES||e===ns.TRIANGLE_STRIP||e===ns.TRIANGLE_FAN};ns.validate=function(e){return e===ns.POINTS||e===ns.LINES||e===ns.LINE_LOOP||e===ns.LINE_STRIP||e===ns.TRIANGLES||e===ns.TRIANGLE_STRIP||e===ns.TRIANGLE_FAN};const Je=Object.freeze(ns),H5=`attribute vec4 position; +(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};const Gne={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047},se=Object.freeze(Gne),Wne=new d;function At(e){this._size=e.size,this._datatype=e.datatype,this.getValue=e.getValue}const Qr={};Qr[se.FLOAT]="float";Qr[se.FLOAT_VEC2]="vec2";Qr[se.FLOAT_VEC3]="vec3";Qr[se.FLOAT_VEC4]="vec4";Qr[se.INT]="int";Qr[se.INT_VEC2]="ivec2";Qr[se.INT_VEC3]="ivec3";Qr[se.INT_VEC4]="ivec4";Qr[se.BOOL]="bool";Qr[se.BOOL_VEC2]="bvec2";Qr[se.BOOL_VEC3]="bvec3";Qr[se.BOOL_VEC4]="bvec4";Qr[se.FLOAT_MAT2]="mat2";Qr[se.FLOAT_MAT3]="mat3";Qr[se.FLOAT_MAT4]="mat4";Qr[se.SAMPLER_2D]="sampler2D";Qr[se.SAMPLER_CUBE]="samplerCube";At.prototype.getDeclaration=function(e){let t=`uniform ${Qr[this._datatype]} ${e}`;const n=this._size;return n===1?t+=";":t+=`[${n.toString()}];`,t};const jne={czm_viewport:new At({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.viewportCartesian4}}),czm_viewportOrthographic:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewportOrthographic}}),czm_viewportTransformation:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewportTransformation}}),czm_globeDepthTexture:new At({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.globeDepthTexture}}),czm_model:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.model}}),czm_inverseModel:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModel}}),czm_view:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.view}}),czm_view3D:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.view3D}}),czm_viewRotation:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.viewRotation}}),czm_viewRotation3D:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.viewRotation3D}}),czm_inverseView:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseView}}),czm_inverseView3D:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseView3D}}),czm_inverseViewRotation:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation}}),czm_inverseViewRotation3D:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation3D}}),czm_projection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.projection}}),czm_inverseProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseProjection}}),czm_infiniteProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.infiniteProjection}}),czm_modelView:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelView}}),czm_modelView3D:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelView3D}}),czm_modelViewRelativeToEye:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewRelativeToEye}}),czm_inverseModelView:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelView}}),czm_inverseModelView3D:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelView3D}}),czm_viewProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewProjection}}),czm_inverseViewProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseViewProjection}}),czm_modelViewProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewProjection}}),czm_inverseModelViewProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelViewProjection}}),czm_modelViewProjectionRelativeToEye:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewProjectionRelativeToEye}}),czm_modelViewInfiniteProjection:new At({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewInfiniteProjection}}),czm_orthographicIn3D:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.orthographicIn3D?1:0}}),czm_normal:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.normal}}),czm_normal3D:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.normal3D}}),czm_inverseNormal:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseNormal}}),czm_inverseNormal3D:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseNormal3D}}),czm_eyeHeight:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.eyeHeight}}),czm_eyeHeight2D:new At({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.eyeHeight2D}}),czm_entireFrustum:new At({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.entireFrustum}}),czm_currentFrustum:new At({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.currentFrustum}}),czm_frustumPlanes:new At({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.frustumPlanes}}),czm_farDepthFromNearPlusOne:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.farDepthFromNearPlusOne}}),czm_log2FarDepthFromNearPlusOne:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.log2FarDepthFromNearPlusOne}}),czm_oneOverLog2FarDepthFromNearPlusOne:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.oneOverLog2FarDepthFromNearPlusOne}}),czm_sunPositionWC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunPositionWC}}),czm_sunPositionColumbusView:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunPositionColumbusView}}),czm_sunDirectionEC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunDirectionEC}}),czm_sunDirectionWC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunDirectionWC}}),czm_moonDirectionEC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.moonDirectionEC}}),czm_lightDirectionEC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightDirectionEC}}),czm_lightDirectionWC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightDirectionWC}}),czm_lightColor:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightColor}}),czm_lightColorHdr:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightColorHdr}}),czm_encodedCameraPositionMCHigh:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCHigh}}),czm_encodedCameraPositionMCLow:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCLow}}),czm_viewerPositionWC:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return B.getTranslation(e.inverseView,Wne)}}),czm_frameNumber:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.frameNumber}}),czm_morphTime:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.morphTime}}),czm_sceneMode:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.mode}}),czm_pass:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.pass}}),czm_backgroundColor:new At({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.backgroundColor}}),czm_brdfLut:new At({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.brdfLut}}),czm_environmentMap:new At({size:1,datatype:se.SAMPLER_CUBE,getValue:function(e){return e.environmentMap}}),czm_specularEnvironmentMaps:new At({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.specularEnvironmentMaps}}),czm_specularEnvironmentMapSize:new At({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.specularEnvironmentMapsDimensions}}),czm_specularEnvironmentMapsMaximumLOD:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.specularEnvironmentMapsMaximumLOD}}),czm_sphericalHarmonicCoefficients:new At({size:9,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sphericalHarmonicCoefficients}}),czm_temeToPseudoFixed:new At({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.temeToPseudoFixedMatrix}}),czm_pixelRatio:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.pixelRatio}}),czm_fogDensity:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.fogDensity}}),czm_splitPosition:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.splitPosition}}),czm_geometricToleranceOverMeter:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.geometricToleranceOverMeter}}),czm_minimumDisableDepthTestDistance:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.minimumDisableDepthTestDistance}}),czm_invertClassificationColor:new At({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.invertClassificationColor}}),czm_gamma:new At({size:1,datatype:se.FLOAT,getValue:function(e){return e.gamma}}),czm_ellipsoidRadii:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.radii}}),czm_ellipsoidInverseRadii:new At({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.oneOverRadii}})},KE=jne;function ds(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function qne(){return!0}function Ue(e,t){t=y(t,"This object was destroyed, i.e., destroy() was called.");function n(){throw new E(t)}for(const i in e)typeof e[i]=="function"&&(e[i]=n);e.isDestroyed=qne}const wr={UNSIGNED_BYTE:se.UNSIGNED_BYTE,UNSIGNED_SHORT:se.UNSIGNED_SHORT,UNSIGNED_INT:se.UNSIGNED_INT};wr.getSizeInBytes=function(e){switch(e){case wr.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case wr.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case wr.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new E("indexDatatype is required and must be a valid IndexDatatype constant.")};wr.fromSizeInBytes=function(e){switch(e){case 2:return wr.UNSIGNED_SHORT;case 4:return wr.UNSIGNED_INT;case 1:return wr.UNSIGNED_BYTE;default:throw new E("Size in bytes cannot be mapped to an IndexDatatype")}};wr.validate=function(e){return l(e)&&(e===wr.UNSIGNED_BYTE||e===wr.UNSIGNED_SHORT||e===wr.UNSIGNED_INT)};wr.createTypedArray=function(e,t){if(!l(e))throw new E("numberOfVertices is required.");return e>=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};wr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new E("numberOfVertices is required.");if(!l(t))throw new E("sourceArray is required.");if(!l(n))throw new E("byteOffset is required.");return e>=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};wr.fromTypedArray=function(e){if(e instanceof Uint8Array)return wr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return wr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return wr.UNSIGNED_INT;throw new E("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const it=Object.freeze(wr),JE={STREAM_DRAW:se.STREAM_DRAW,STATIC_DRAW:se.STATIC_DRAW,DYNAMIC_DRAW:se.DYNAMIC_DRAW,validate:function(e){return e===JE.STREAM_DRAW||e===JE.STATIC_DRAW||e===JE.DYNAMIC_DRAW}},Ze=Object.freeze(JE);function yt(e){if(e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new E("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new E("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(T.typeOf.object("options.typedArray",e.typedArray),T.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!Ze.validate(e.usage))throw new E("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),T.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=ds(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}yt.createVertexBuffer=function(e){return T.defined("options.context",e.context),new yt({context:e.context,bufferTarget:se.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};yt.createIndexBuffer=function(e){if(T.defined("options.context",e.context),!it.validate(e.indexDatatype))throw new E("Invalid indexDatatype.");if(e.indexDatatype===it.UNSIGNED_INT&&!e.context.elementIndexUint)throw new E("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=it.getSizeInBytes(n),o=new yt({context:t,bufferTarget:se.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(yt.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});yt.prototype._getBuffer=function(){return this._buffer};yt.prototype.copyFromArrayView=function(e,t){t=y(t,0),T.defined("arrayView",e),T.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};yt.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new E("A WebGL 2 context is required.");if(!l(e))throw new E("readBuffer must be defined.");if(!l(i)||i<=0)throw new E("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new E("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new E("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new E("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new E("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new E("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new E("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=se.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};yt.prototype.isDestroyed=function(){return!1};yt.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),Ue(this)};let Pd;const Oo={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},Ta={};Object.defineProperties(Ta,{element:{get:function(){if(Ta.supportsFullscreen())return document[Oo.fullscreenElement]}},changeEventName:{get:function(){if(Ta.supportsFullscreen())return Oo.fullscreenchange}},errorEventName:{get:function(){if(Ta.supportsFullscreen())return Oo.fullscreenerror}},enabled:{get:function(){if(Ta.supportsFullscreen())return document[Oo.fullscreenEnabled]}},fullscreen:{get:function(){if(Ta.supportsFullscreen())return Ta.element!==null}}});Ta.supportsFullscreen=function(){if(l(Pd))return Pd;Pd=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Oo.requestFullscreen="requestFullscreen",Oo.exitFullscreen="exitFullscreen",Oo.fullscreenEnabled="fullscreenEnabled",Oo.fullscreenElement="fullscreenElement",Oo.fullscreenchange="fullscreenchange",Oo.fullscreenerror="fullscreenerror",Pd=!0,Pd;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){bs._result=t.width>0&&t.height>0,e(bs._result)},t.onerror=function(){bs._result=!1,e(bs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),bs._promise};Object.defineProperties(bs,{initialized:{get:function(){return l(bs._result)}}});const ig=[];typeof ArrayBuffer<"u"&&(ig.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&ig.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&ig.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&ig.push(BigInt64Array),typeof BigUint64Array<"u"&&ig.push(BigUint64Array));const Bu={isChrome:wB,chromeVersion:Yne,isSafari:O5,safariVersion:Xne,isWebkit:L5,webkitVersion:$ne,isInternetExplorer:B5,internetExplorerVersion:Kne,isEdge:pS,edgeVersion:Jne,isFirefox:SB,firefoxVersion:eie,isWindows:Qne,isIPadOrIOS:Zne,hardwareConcurrency:y(Rs.hardwareConcurrency,3),supportsPointerEvents:tie,supportsImageRenderingPixelated:F5,supportsWebP:bs,imageRenderingValue:nie,typedArrayTypes:ig};Bu.supportsBasis=function(e){return Bu.supportsWebAssembly()&&e.context.supportsBasis};Bu.supportsFullscreen=function(){return zr.supportsFullscreen()};Bu.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};Bu.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};Bu.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};Bu.supportsBigInt=function(){return typeof BigInt<"u"};Bu.supportsWebWorkers=function(){return typeof Worker<"u"};Bu.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const an=Bu;function sD(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function F(e,t,n,i){this.red=y(e,1),this.green=y(t,1),this.blue=y(n,1),this.alpha=y(i,1)}F.fromCartesian4=function(e,t){return T.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new F(e.x,e.y,e.z,e.w)};F.fromBytes=function(e,t,n,i,o){return e=F.byteToFloat(y(e,255)),t=F.byteToFloat(y(t,255)),n=F.byteToFloat(y(n,255)),i=F.byteToFloat(y(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new F(e,t,n,i)};F.fromAlpha=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new F(e.red,e.green,e.blue,t)};let aD,vB,vf;an.supportsTypedArrays()&&(aD=new ArrayBuffer(4),vB=new Uint32Array(aD),vf=new Uint8Array(aD));F.fromRgba=function(e,t){return vB[0]=e,F.fromBytes(vf[0],vf[1],vf[2],vf[3],t)};F.fromHsl=function(e,t,n,i,o){e=y(e,0)%1,t=y(t,0),n=y(n,0),i=y(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=sD(u,c,e+1/3),s=sD(u,c,e),a=sD(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new F(r,s,a,i)};F.fromRandom=function(e,t){e=y(e,y.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=y(e.minimumRed,0),a=y(e.maximumRed,1);T.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+N.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=y(e.minimumGreen,0),a=y(e.maximumGreen,1);T.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+N.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=y(e.minimumBlue,0),a=y(e.maximumBlue,1);T.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+N.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=y(e.minimumAlpha,0),a=y(e.maximumAlpha,1);T.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+N.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new F(n,i,o,r)};const iie=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,oie=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,rie=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,sie=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;F.fromCssColorString=function(e,t){T.typeOf.string("color",e),l(t)||(t=new F),e=e.replace(/\s/g,"");const n=F[e.toUpperCase()];if(l(n))return F.clone(n,t),t;let i=iie.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(y(i[4],"f"),16)/15,t):(i=oie.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(y(i[4],"ff"),16)/255,t):(i=rie.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(y(i[4],"1.0")),t):(i=sie.exec(e),i!==null?F.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(y(i[4],"1.0")),t):(t=void 0,t))))};F.packedLength=4;F.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};F.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new F),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};F.byteToFloat=function(e){return e/255};F.floatToByte=function(e){return e===1?255:e*256|0};F.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new F(e.red,e.green,e.blue,e.alpha)};F.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};F.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};F.prototype.clone=function(e){return F.clone(this,e)};F.prototype.equals=function(e){return F.equals(this,e)};F.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};F.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};F.prototype.toCssColorString=function(){const e=F.floatToByte(this.red),t=F.floatToByte(this.green),n=F.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};F.prototype.toCssHexString=function(){let e=F.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=F.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=F.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=F.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};F.prototype.toBytes=function(e){const t=F.floatToByte(this.red),n=F.floatToByte(this.green),i=F.floatToByte(this.blue),o=F.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};F.prototype.toRgba=function(){return vf[0]=F.floatToByte(this.red),vf[1]=F.floatToByte(this.green),vf[2]=F.floatToByte(this.blue),vf[3]=F.floatToByte(this.alpha),vB[0]};F.prototype.brighten=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};F.prototype.darken=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};F.prototype.withAlpha=function(e,t){return F.fromAlpha(this,e,t)};F.add=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};F.subtract=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};F.multiply=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};F.divide=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};F.mod=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};F.lerp=function(e,t,n,i){return T.typeOf.object("start",e),T.typeOf.object("end",t),T.typeOf.number("t",n),T.typeOf.object("result",i),i.red=N.lerp(e.red,t.red,n),i.green=N.lerp(e.green,t.green,n),i.blue=N.lerp(e.blue,t.blue,n),i.alpha=N.lerp(e.alpha,t.alpha,n),i};F.multiplyByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};F.divideByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};F.ALICEBLUE=Object.freeze(F.fromCssColorString("#F0F8FF"));F.ANTIQUEWHITE=Object.freeze(F.fromCssColorString("#FAEBD7"));F.AQUA=Object.freeze(F.fromCssColorString("#00FFFF"));F.AQUAMARINE=Object.freeze(F.fromCssColorString("#7FFFD4"));F.AZURE=Object.freeze(F.fromCssColorString("#F0FFFF"));F.BEIGE=Object.freeze(F.fromCssColorString("#F5F5DC"));F.BISQUE=Object.freeze(F.fromCssColorString("#FFE4C4"));F.BLACK=Object.freeze(F.fromCssColorString("#000000"));F.BLANCHEDALMOND=Object.freeze(F.fromCssColorString("#FFEBCD"));F.BLUE=Object.freeze(F.fromCssColorString("#0000FF"));F.BLUEVIOLET=Object.freeze(F.fromCssColorString("#8A2BE2"));F.BROWN=Object.freeze(F.fromCssColorString("#A52A2A"));F.BURLYWOOD=Object.freeze(F.fromCssColorString("#DEB887"));F.CADETBLUE=Object.freeze(F.fromCssColorString("#5F9EA0"));F.CHARTREUSE=Object.freeze(F.fromCssColorString("#7FFF00"));F.CHOCOLATE=Object.freeze(F.fromCssColorString("#D2691E"));F.CORAL=Object.freeze(F.fromCssColorString("#FF7F50"));F.CORNFLOWERBLUE=Object.freeze(F.fromCssColorString("#6495ED"));F.CORNSILK=Object.freeze(F.fromCssColorString("#FFF8DC"));F.CRIMSON=Object.freeze(F.fromCssColorString("#DC143C"));F.CYAN=Object.freeze(F.fromCssColorString("#00FFFF"));F.DARKBLUE=Object.freeze(F.fromCssColorString("#00008B"));F.DARKCYAN=Object.freeze(F.fromCssColorString("#008B8B"));F.DARKGOLDENROD=Object.freeze(F.fromCssColorString("#B8860B"));F.DARKGRAY=Object.freeze(F.fromCssColorString("#A9A9A9"));F.DARKGREEN=Object.freeze(F.fromCssColorString("#006400"));F.DARKGREY=F.DARKGRAY;F.DARKKHAKI=Object.freeze(F.fromCssColorString("#BDB76B"));F.DARKMAGENTA=Object.freeze(F.fromCssColorString("#8B008B"));F.DARKOLIVEGREEN=Object.freeze(F.fromCssColorString("#556B2F"));F.DARKORANGE=Object.freeze(F.fromCssColorString("#FF8C00"));F.DARKORCHID=Object.freeze(F.fromCssColorString("#9932CC"));F.DARKRED=Object.freeze(F.fromCssColorString("#8B0000"));F.DARKSALMON=Object.freeze(F.fromCssColorString("#E9967A"));F.DARKSEAGREEN=Object.freeze(F.fromCssColorString("#8FBC8F"));F.DARKSLATEBLUE=Object.freeze(F.fromCssColorString("#483D8B"));F.DARKSLATEGRAY=Object.freeze(F.fromCssColorString("#2F4F4F"));F.DARKSLATEGREY=F.DARKSLATEGRAY;F.DARKTURQUOISE=Object.freeze(F.fromCssColorString("#00CED1"));F.DARKVIOLET=Object.freeze(F.fromCssColorString("#9400D3"));F.DEEPPINK=Object.freeze(F.fromCssColorString("#FF1493"));F.DEEPSKYBLUE=Object.freeze(F.fromCssColorString("#00BFFF"));F.DIMGRAY=Object.freeze(F.fromCssColorString("#696969"));F.DIMGREY=F.DIMGRAY;F.DODGERBLUE=Object.freeze(F.fromCssColorString("#1E90FF"));F.FIREBRICK=Object.freeze(F.fromCssColorString("#B22222"));F.FLORALWHITE=Object.freeze(F.fromCssColorString("#FFFAF0"));F.FORESTGREEN=Object.freeze(F.fromCssColorString("#228B22"));F.FUCHSIA=Object.freeze(F.fromCssColorString("#FF00FF"));F.GAINSBORO=Object.freeze(F.fromCssColorString("#DCDCDC"));F.GHOSTWHITE=Object.freeze(F.fromCssColorString("#F8F8FF"));F.GOLD=Object.freeze(F.fromCssColorString("#FFD700"));F.GOLDENROD=Object.freeze(F.fromCssColorString("#DAA520"));F.GRAY=Object.freeze(F.fromCssColorString("#808080"));F.GREEN=Object.freeze(F.fromCssColorString("#008000"));F.GREENYELLOW=Object.freeze(F.fromCssColorString("#ADFF2F"));F.GREY=F.GRAY;F.HONEYDEW=Object.freeze(F.fromCssColorString("#F0FFF0"));F.HOTPINK=Object.freeze(F.fromCssColorString("#FF69B4"));F.INDIANRED=Object.freeze(F.fromCssColorString("#CD5C5C"));F.INDIGO=Object.freeze(F.fromCssColorString("#4B0082"));F.IVORY=Object.freeze(F.fromCssColorString("#FFFFF0"));F.KHAKI=Object.freeze(F.fromCssColorString("#F0E68C"));F.LAVENDER=Object.freeze(F.fromCssColorString("#E6E6FA"));F.LAVENDAR_BLUSH=Object.freeze(F.fromCssColorString("#FFF0F5"));F.LAWNGREEN=Object.freeze(F.fromCssColorString("#7CFC00"));F.LEMONCHIFFON=Object.freeze(F.fromCssColorString("#FFFACD"));F.LIGHTBLUE=Object.freeze(F.fromCssColorString("#ADD8E6"));F.LIGHTCORAL=Object.freeze(F.fromCssColorString("#F08080"));F.LIGHTCYAN=Object.freeze(F.fromCssColorString("#E0FFFF"));F.LIGHTGOLDENRODYELLOW=Object.freeze(F.fromCssColorString("#FAFAD2"));F.LIGHTGRAY=Object.freeze(F.fromCssColorString("#D3D3D3"));F.LIGHTGREEN=Object.freeze(F.fromCssColorString("#90EE90"));F.LIGHTGREY=F.LIGHTGRAY;F.LIGHTPINK=Object.freeze(F.fromCssColorString("#FFB6C1"));F.LIGHTSEAGREEN=Object.freeze(F.fromCssColorString("#20B2AA"));F.LIGHTSKYBLUE=Object.freeze(F.fromCssColorString("#87CEFA"));F.LIGHTSLATEGRAY=Object.freeze(F.fromCssColorString("#778899"));F.LIGHTSLATEGREY=F.LIGHTSLATEGRAY;F.LIGHTSTEELBLUE=Object.freeze(F.fromCssColorString("#B0C4DE"));F.LIGHTYELLOW=Object.freeze(F.fromCssColorString("#FFFFE0"));F.LIME=Object.freeze(F.fromCssColorString("#00FF00"));F.LIMEGREEN=Object.freeze(F.fromCssColorString("#32CD32"));F.LINEN=Object.freeze(F.fromCssColorString("#FAF0E6"));F.MAGENTA=Object.freeze(F.fromCssColorString("#FF00FF"));F.MAROON=Object.freeze(F.fromCssColorString("#800000"));F.MEDIUMAQUAMARINE=Object.freeze(F.fromCssColorString("#66CDAA"));F.MEDIUMBLUE=Object.freeze(F.fromCssColorString("#0000CD"));F.MEDIUMORCHID=Object.freeze(F.fromCssColorString("#BA55D3"));F.MEDIUMPURPLE=Object.freeze(F.fromCssColorString("#9370DB"));F.MEDIUMSEAGREEN=Object.freeze(F.fromCssColorString("#3CB371"));F.MEDIUMSLATEBLUE=Object.freeze(F.fromCssColorString("#7B68EE"));F.MEDIUMSPRINGGREEN=Object.freeze(F.fromCssColorString("#00FA9A"));F.MEDIUMTURQUOISE=Object.freeze(F.fromCssColorString("#48D1CC"));F.MEDIUMVIOLETRED=Object.freeze(F.fromCssColorString("#C71585"));F.MIDNIGHTBLUE=Object.freeze(F.fromCssColorString("#191970"));F.MINTCREAM=Object.freeze(F.fromCssColorString("#F5FFFA"));F.MISTYROSE=Object.freeze(F.fromCssColorString("#FFE4E1"));F.MOCCASIN=Object.freeze(F.fromCssColorString("#FFE4B5"));F.NAVAJOWHITE=Object.freeze(F.fromCssColorString("#FFDEAD"));F.NAVY=Object.freeze(F.fromCssColorString("#000080"));F.OLDLACE=Object.freeze(F.fromCssColorString("#FDF5E6"));F.OLIVE=Object.freeze(F.fromCssColorString("#808000"));F.OLIVEDRAB=Object.freeze(F.fromCssColorString("#6B8E23"));F.ORANGE=Object.freeze(F.fromCssColorString("#FFA500"));F.ORANGERED=Object.freeze(F.fromCssColorString("#FF4500"));F.ORCHID=Object.freeze(F.fromCssColorString("#DA70D6"));F.PALEGOLDENROD=Object.freeze(F.fromCssColorString("#EEE8AA"));F.PALEGREEN=Object.freeze(F.fromCssColorString("#98FB98"));F.PALETURQUOISE=Object.freeze(F.fromCssColorString("#AFEEEE"));F.PALEVIOLETRED=Object.freeze(F.fromCssColorString("#DB7093"));F.PAPAYAWHIP=Object.freeze(F.fromCssColorString("#FFEFD5"));F.PEACHPUFF=Object.freeze(F.fromCssColorString("#FFDAB9"));F.PERU=Object.freeze(F.fromCssColorString("#CD853F"));F.PINK=Object.freeze(F.fromCssColorString("#FFC0CB"));F.PLUM=Object.freeze(F.fromCssColorString("#DDA0DD"));F.POWDERBLUE=Object.freeze(F.fromCssColorString("#B0E0E6"));F.PURPLE=Object.freeze(F.fromCssColorString("#800080"));F.RED=Object.freeze(F.fromCssColorString("#FF0000"));F.ROSYBROWN=Object.freeze(F.fromCssColorString("#BC8F8F"));F.ROYALBLUE=Object.freeze(F.fromCssColorString("#4169E1"));F.SADDLEBROWN=Object.freeze(F.fromCssColorString("#8B4513"));F.SALMON=Object.freeze(F.fromCssColorString("#FA8072"));F.SANDYBROWN=Object.freeze(F.fromCssColorString("#F4A460"));F.SEAGREEN=Object.freeze(F.fromCssColorString("#2E8B57"));F.SEASHELL=Object.freeze(F.fromCssColorString("#FFF5EE"));F.SIENNA=Object.freeze(F.fromCssColorString("#A0522D"));F.SILVER=Object.freeze(F.fromCssColorString("#C0C0C0"));F.SKYBLUE=Object.freeze(F.fromCssColorString("#87CEEB"));F.SLATEBLUE=Object.freeze(F.fromCssColorString("#6A5ACD"));F.SLATEGRAY=Object.freeze(F.fromCssColorString("#708090"));F.SLATEGREY=F.SLATEGRAY;F.SNOW=Object.freeze(F.fromCssColorString("#FFFAFA"));F.SPRINGGREEN=Object.freeze(F.fromCssColorString("#00FF7F"));F.STEELBLUE=Object.freeze(F.fromCssColorString("#4682B4"));F.TAN=Object.freeze(F.fromCssColorString("#D2B48C"));F.TEAL=Object.freeze(F.fromCssColorString("#008080"));F.THISTLE=Object.freeze(F.fromCssColorString("#D8BFD8"));F.TOMATO=Object.freeze(F.fromCssColorString("#FF6347"));F.TURQUOISE=Object.freeze(F.fromCssColorString("#40E0D0"));F.VIOLET=Object.freeze(F.fromCssColorString("#EE82EE"));F.WHEAT=Object.freeze(F.fromCssColorString("#F5DEB3"));F.WHITE=Object.freeze(F.fromCssColorString("#FFFFFF"));F.WHITESMOKE=Object.freeze(F.fromCssColorString("#F5F5F5"));F.YELLOW=Object.freeze(F.fromCssColorString("#FFFF00"));F.YELLOWGREEN=Object.freeze(F.fromCssColorString("#9ACD32"));F.TRANSPARENT=Object.freeze(new F(0,0,0,0));function ji(e){e=y(e,y.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}ji.ALL=Object.freeze(new ji({color:new F(0,0,0,0),depth:1,stencil:0}));ji.prototype.execute=function(e,t){e.clear(this,t)};const aie={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Be=Object.freeze(aie);function KA(e){e=y(e,y.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=y(e.persists,!1),this.pass=Be.COMPUTE,this.owner=e.owner}KA.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=y(e,0),this.y=y(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.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};j.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new E("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oN.EPSILON12);return l(o)?(o.x=r*z,o.y=s*U,o.z=a*v,o):new d(r*z,s*U,a*v)}function Ae(e,t,n){this.longitude=y(e,0),this.latitude=y(t,0),this.height=y(n,0)}Ae.fromRadians=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),n=y(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ae(e,t,n)};Ae.fromDegrees=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),e=N.toRadians(e),t=N.toRadians(t),Ae.fromRadians(e,t,n,i)};const fie=new d,die=new d,hie=new d,pie=new d(1/6378137,1/6378137,1/6356752314245179e-9),mie=new d(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),_ie=N.EPSILON1;Ae.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:pie,o=l(t)?t.oneOverRadiiSquared:mie,r=l(t)?t._centerToleranceSquared:_ie,s=z5(e,i,o,r,die);if(!l(s))return;let a=d.multiplyComponents(s,o,fie);a=d.normalize(a,a);const c=d.subtract(e,s,hie),u=Math.atan2(a.y,a.x),f=Math.asin(a.z),h=N.sign(d.dot(c,e))*d.magnitude(c);return l(n)?(n.longitude=u,n.latitude=f,n.height=h,n):new Ae(u,f,h)};Ae.toCartesian=function(e,t,n){return T.defined("cartographic",e),d.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ae.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ae(e.longitude,e.latitude,e.height)};Ae.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ae.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ae.ZERO=Object.freeze(new Ae(0,0,0));Ae.prototype.clone=function(e){return Ae.clone(this,e)};Ae.prototype.equals=function(e){return Ae.equals(this,e)};Ae.prototype.equalsEpsilon=function(e,t){return Ae.equalsEpsilon(this,e,t)};Ae.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function U5(e,t,n,i){t=y(t,0),n=y(n,0),i=y(i,0),T.typeOf.number.greaterThanOrEquals("x",t,0),T.typeOf.number.greaterThanOrEquals("y",n,0),T.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new d(t,n,i),e._radiiSquared=new d(t*t,n*n,i*i),e._radiiToTheFourth=new d(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new d(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new d(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=N.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function pe(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,U5(this,e,t,n)}Object.defineProperties(pe.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});pe.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(d.clone(n,t._radii),d.clone(e._radiiSquared,t._radiiSquared),d.clone(e._radiiToTheFourth,t._radiiToTheFourth),d.clone(e._oneOverRadii,t._oneOverRadii),d.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new pe(n.x,n.y,n.z)};pe.fromCartesian3=function(e,t){return l(t)||(t=new pe),l(e)&&U5(t,e.x,e.y,e.z),t};pe.WGS84=Object.freeze(new pe(6378137,6378137,6356752314245179e-9));pe.UNIT_SPHERE=Object.freeze(new pe(1,1,1));pe.MOON=Object.freeze(new pe(N.LUNAR_RADIUS,N.LUNAR_RADIUS,N.LUNAR_RADIUS));pe.prototype.clone=function(e){return pe.clone(this,e)};pe.packedLength=d.packedLength;pe.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),d.pack(e._radii,t,n),t};pe.unpack=function(e,t,n){T.defined("array",e),t=y(t,0);const i=d.unpack(e,t);return pe.fromCartesian3(i,n)};pe.prototype.geocentricSurfaceNormal=d.normalize;pe.prototype.geodeticSurfaceNormalCartographic=function(e,t){T.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new d),t.x=r,t.y=s,t.z=a,d.normalize(t,t)};pe.prototype.geodeticSurfaceNormal=function(e,t){if(!d.equalsEpsilon(e,d.ZERO,N.EPSILON14))return l(t)||(t=new d),t=d.multiplyComponents(e,this._oneOverRadiiSquared,t),d.normalize(t,t)};const gie=new d,yie=new d;pe.prototype.cartographicToCartesian=function(e,t){const n=gie,i=yie;this.geodeticSurfaceNormalCartographic(e,n),d.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(d.dot(n,i));return d.divideByScalar(i,o,i),d.multiplyByScalar(n,e.height,n),l(t)||(t=new d),d.add(i,n,t)};pe.prototype.cartographicArrayToCartesianArray=function(e,t){T.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const bie=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],Eie=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function vF(e,t,n){T.typeOf.number("a",e),T.typeOf.number("b",t),T.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*bie[s];r+=Eie[s]*(n(i+a)+n(i-a))}return r*=o,r}pe.prototype.surfaceArea=function(e){T.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?f.longitude:f.longitude+N.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>N.PI&&(i=i-N.TWO_PI),n>N.PI&&(n=n-N.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new _e(n,s,i,a)};_e.fromCartesianArray=function(e,t,n){T.defined("cartesians",e),t=y(t,pe.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,f=e.length;u=0?h.longitude:h.longitude+N.TWO_PI;r=Math.min(r,_),s=Math.max(s,_)}return o-i>s-r&&(i=r,o=s,o>N.PI&&(o=o-N.TWO_PI),i>N.PI&&(i=i-N.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new _e(i,a,o,c)};_e.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new _e(e.west,e.south,e.east,e.north)};_e.equalsEpsilon=function(e,t,n){return n=y(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};_e.prototype.clone=function(e){return _e.clone(this,e)};_e.prototype.equals=function(e){return _e.equals(this,e)};_e.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};_e.prototype.equalsEpsilon=function(e,t){return _e.equalsEpsilon(this,e,t)};_e.validate=function(e){T.typeOf.object("rectangle",e);const t=e.north;T.typeOf.number.greaterThanOrEquals("north",t,-N.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("north",t,N.PI_OVER_TWO);const n=e.south;T.typeOf.number.greaterThanOrEquals("south",n,-N.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("south",n,N.PI_OVER_TWO);const i=e.west;T.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),T.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;T.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),T.typeOf.number.lessThanOrEquals("east",o,Math.PI)};_e.southwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ae(e.west,e.south)};_e.northwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ae(e.west,e.north)};_e.northeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ae(e.east,e.north)};_e.southeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ae(e.east,e.south)};_e.center=function(e,t){T.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),i=f))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=f,n):new _e(a,u,c,f)};_e.simpleIntersection=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new _e(i,o,r,s)};_e.union=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t),l(n)||(n=new _e);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),io||N.equalsEpsilon(n,o,N.EPSILON14))&&(n=e.south&&i<=e.north};const wie=new Ae;_e.subsample=function(e,t,n,i){T.typeOf.object("rectangle",e),t=y(t,pe.WGS84),n=y(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=wie;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let f=1;f<8;++f)u.longitude=-Math.PI+f*N.PI_OVER_TWO,_e.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};_e.subsection=function(e,t,n,i,o,r){if(T.typeOf.object("rectangle",e),T.typeOf.number.greaterThanOrEquals("westLerp",t,0),T.typeOf.number.lessThanOrEquals("westLerp",t,1),T.typeOf.number.greaterThanOrEquals("southLerp",n,0),T.typeOf.number.lessThanOrEquals("southLerp",n,1),T.typeOf.number.greaterThanOrEquals("eastLerp",i,0),T.typeOf.number.lessThanOrEquals("eastLerp",i,1),T.typeOf.number.greaterThanOrEquals("northLerp",o,0),T.typeOf.number.lessThanOrEquals("northLerp",o,1),T.typeOf.number.lessThanOrEquals("westLerp",t,i),T.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new _e),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=N.TWO_PI+e.east-e.west;r.west=N.negativePiToPi(e.west+t*a),r.east=N.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};_e.MAX_VALUE=Object.freeze(new _e(-Math.PI,-N.PI_OVER_TWO,Math.PI,N.PI_OVER_TWO));function qe(e,t,n,i){this.x=y(e,0),this.y=y(t,0),this.width=y(n,0),this.height=y(i,0)}qe.packedLength=4;qe.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.width,t[n]=e.height,t};qe.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new qe),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};qe.fromPoints=function(e,t){if(l(t)||(t=new qe),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};qe.intersect=function(e,t){T.typeOf.object("left",e),T.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?dn.OUTSIDE:dn.INTERSECTING};qe.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};qe.prototype.clone=function(e){return qe.clone(this,e)};qe.prototype.intersect=function(e){return qe.intersect(this,e)};qe.prototype.equals=function(e){return qe.equals(this,e)};const ns={POINTS:se.POINTS,LINES:se.LINES,LINE_LOOP:se.LINE_LOOP,LINE_STRIP:se.LINE_STRIP,TRIANGLES:se.TRIANGLES,TRIANGLE_STRIP:se.TRIANGLE_STRIP,TRIANGLE_FAN:se.TRIANGLE_FAN};ns.isLines=function(e){return e===ns.LINES||e===ns.LINE_LOOP||e===ns.LINE_STRIP};ns.isTriangles=function(e){return e===ns.TRIANGLES||e===ns.TRIANGLE_STRIP||e===ns.TRIANGLE_FAN};ns.validate=function(e){return e===ns.POINTS||e===ns.LINES||e===ns.LINE_LOOP||e===ns.LINE_STRIP||e===ns.TRIANGLES||e===ns.TRIANGLE_STRIP||e===ns.TRIANGLE_FAN};const Je=Object.freeze(ns),H5=`attribute vec4 position; attribute vec2 textureCoordinates; varying vec2 v_textureCoordinates; @@ -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"/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=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 Oi(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 Oi;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 Oi(new ne(2441317,43210,Mn.TAI),10),new Oi(new ne(2441499,43211,Mn.TAI),11),new Oi(new ne(2441683,43212,Mn.TAI),12),new Oi(new ne(2442048,43213,Mn.TAI),13),new Oi(new ne(2442413,43214,Mn.TAI),14),new Oi(new ne(2442778,43215,Mn.TAI),15),new Oi(new ne(2443144,43216,Mn.TAI),16),new Oi(new ne(2443509,43217,Mn.TAI),17),new Oi(new ne(2443874,43218,Mn.TAI),18),new Oi(new ne(2444239,43219,Mn.TAI),19),new Oi(new ne(2444786,43220,Mn.TAI),20),new Oi(new ne(2445151,43221,Mn.TAI),21),new Oi(new ne(2445516,43222,Mn.TAI),22),new Oi(new ne(2446247,43223,Mn.TAI),23),new Oi(new ne(2447161,43224,Mn.TAI),24),new Oi(new ne(2447892,43225,Mn.TAI),25),new Oi(new ne(2448257,43226,Mn.TAI),26),new Oi(new ne(2448804,43227,Mn.TAI),27),new Oi(new ne(2449169,43228,Mn.TAI),28),new Oi(new ne(2449534,43229,Mn.TAI),29),new Oi(new ne(2450083,43230,Mn.TAI),30),new Oi(new ne(2450630,43231,Mn.TAI),31),new Oi(new ne(2451179,43232,Mn.TAI),32),new Oi(new ne(2453736,43233,Mn.TAI),33),new Oi(new ne(2454832,43234,Mn.TAI),34),new Oi(new ne(2456109,43235,Mn.TAI),35),new Oi(new ne(2457204,43236,Mn.TAI),36),new Oi(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=1,M=arguments.length>=2;if(!(this instanceof s))return O?M?new s(m,D):new s(m):new s;if(m===void 0){if(O)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?m=location.href+"":m=""}if(m===null&&O)throw new TypeError("null is not a valid argument for URI");return this.href(m),D!==void 0?this.absoluteTo(D):this}function a(m){return/^[0-9]+$/.test(m)}s.version="1.19.11";var c=s.prototype,u=Object.prototype.hasOwnProperty;function f(m){return m.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(m){return m===void 0?"Undefined":String(Object.prototype.toString.call(m)).slice(8,-1)}function _(m){return h(m)==="Array"}function g(m,D){var O={},M,V;if(h(D)==="RegExp")O=null;else if(_(D))for(M=0,V=D.length;M]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(m){if(!(!m||!m.nodeName)){var D=m.nodeName.toLowerCase();if(!(D==="input"&&m.type!=="image"))return s.domAttributes[D]}};function b(m){return escape(m)}function x(m){return encodeURIComponent(m).replace(/[!'()*]/g,b).replace(/\*/g,"%2A")}s.encode=x,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=x,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(m,D){var O=s.encode(m+"");return D===void 0&&(D=s.escapeQuerySpace),D?O.replace(/%20/g,"+"):O},s.decodeQuery=function(m,D){m+="",D===void 0&&(D=s.escapeQuerySpace);try{return s.decode(D?m.replace(/\+/g,"%20"):m)}catch{return m}};var w={encode:"encode",decode:"decode"},S,P=function(m,D){return function(O){try{return s[D](O+"").replace(s.characters[m][D].expression,function(M){return s.characters[m][D].map[M]})}catch{return O}}};for(S in w)s[S+"PathSegment"]=P("pathname",w[S]),s[S+"UrnPathSegment"]=P("urnpath",w[S]);var L=function(m,D,O){return function(M){var V;O?V=function(K){return s[D](s[O](K))}:V=s[D];for(var k=(M+"").split(m),W=0,G=k.length;W-1&&(D.fragment=m.substring(O+1)||null,m=m.substring(0,O)),O=m.indexOf("?"),O>-1&&(D.query=m.substring(O+1)||null,m=m.substring(0,O)),m=m.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),m=m.replace(/^[/\\]{2,}/i,"//"),m.substring(0,2)==="//"?(D.protocol=null,m=m.substring(2),m=s.parseAuthority(m,D)):(O=m.indexOf(":"),O>-1&&(D.protocol=m.substring(0,O)||null,D.protocol&&!D.protocol.match(s.protocol_expression)?D.protocol=void 0:m.substring(O+1,O+3).replace(/\\/g,"/")==="//"?(m=m.substring(O+3),m=s.parseAuthority(m,D)):(m=m.substring(O+1),D.urn=!0))),D.path=m,D},s.parseHost=function(m,D){m||(m=""),m=m.replace(/\\/g,"/");var O=m.indexOf("/"),M,V;if(O===-1&&(O=m.length),m.charAt(0)==="[")M=m.indexOf("]"),D.hostname=m.substring(1,M)||null,D.port=m.substring(M+2,O)||null,D.port==="/"&&(D.port=null);else{var k=m.indexOf(":"),W=m.indexOf("/"),G=m.indexOf(":",k+1);G!==-1&&(W===-1||G-1?V:m.length-1),W;return k>-1&&(V===-1||k-1?$=$.slice(0,Y)+$.slice(Y).replace(k,""):$=$.replace(k,""),!($.length<=K[0].length)&&!(O.ignore&&O.ignore.test($))){X=q+$.length;var re=D($,q,X,m);if(re===void 0){M.lastIndex=X;continue}re=String(re),m=m.slice(0,q)+re+m.slice(X),M.lastIndex=q+re.length}}return M.lastIndex=0,m},s.ensureValidHostname=function(m,D){var O=!!m,M=!!D,V=!1;if(M&&(V=p(s.hostProtocols,D)),V&&!O)throw new TypeError("Hostname cannot be empty, if protocol is "+D);if(m&&m.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(m).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(m){if(m){var D=Number(m);if(!(a(D)&&D>0&&D<65536))throw new TypeError('Port "'+m+'" is not a valid port')}},s.noConflict=function(m){if(m){var D={URI:this.noConflict()};return o.URITemplate&&typeof o.URITemplate.noConflict=="function"&&(D.URITemplate=o.URITemplate.noConflict()),o.IPv6&&typeof o.IPv6.noConflict=="function"&&(D.IPv6=o.IPv6.noConflict()),o.SecondLevelDomains&&typeof o.SecondLevelDomains.noConflict=="function"&&(D.SecondLevelDomains=o.SecondLevelDomains.noConflict()),D}else o.URI===this&&(o.URI=r);return this},c.build=function(m){return m===!0?this._deferred_build=!0:(m===void 0||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new s(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function H(m){return function(D,O){return D===void 0?this._parts[m]||"":(this._parts[m]=D||null,this.build(!O),this)}}function R(m,D){return function(O,M){return O===void 0?this._parts[m]||"":(O!==null&&(O=O+"",O.charAt(0)===D&&(O=O.substring(1))),this._parts[m]=O,this.build(!M),this)}}c.protocol=H("protocol"),c.username=H("username"),c.password=H("password"),c.hostname=H("hostname"),c.port=H("port"),c.query=R("query","?"),c.fragment=R("fragment","#"),c.search=function(m,D){var O=this.query(m,D);return typeof O=="string"&&O.length?"?"+O:O},c.hash=function(m,D){var O=this.fragment(m,D);return typeof O=="string"&&O.length?"#"+O:O},c.pathname=function(m,D){if(m===void 0||m===!0){var O=this._parts.path||(this._parts.hostname?"/":"");return m?(this._parts.urn?s.decodeUrnPath:s.decodePath)(O):O}else return this._parts.urn?this._parts.path=m?s.recodeUrnPath(m):"":this._parts.path=m?s.recodePath(m):"/",this.build(!D),this},c.path=c.pathname,c.href=function(m,D){var O;if(m===void 0)return this.toString();this._string="",this._parts=s._parts();var M=m instanceof s,V=typeof m=="object"&&(m.hostname||m.path||m.pathname);if(m.nodeName){var k=s.getDomAttribute(m);m=m[k]||"",V=!1}if(!M&&V&&m.pathname!==void 0&&(m=m.toString()),typeof m=="string"||m instanceof String)this._parts=s.parse(String(m),this._parts);else if(M||V){var W=M?m._parts:m;for(O in W)O!=="query"&&u.call(this._parts,O)&&(this._parts[O]=W[O]);W.query&&this.query(W.query,!1)}else throw new TypeError("invalid input");return this.build(!D),this},c.is=function(m){var D=!1,O=!1,M=!1,V=!1,k=!1,W=!1,G=!1,K=!this._parts.urn;switch(this._parts.hostname&&(K=!1,O=s.ip4_expression.test(this._parts.hostname),M=s.ip6_expression.test(this._parts.hostname),D=O||M,V=!D,k=V&&i&&i.has(this._parts.hostname),W=V&&s.idn_expression.test(this._parts.hostname),G=V&&s.punycode_expression.test(this._parts.hostname)),m.toLowerCase()){case"relative":return K;case"absolute":return!K;case"domain":case"name":return V;case"sld":return k;case"ip":return D;case"ip4":case"ipv4":case"inet4":return O;case"ip6":case"ipv6":case"inet6":return M;case"idn":return W;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return G}return null};var z=c.protocol,U=c.port,v=c.hostname;c.protocol=function(m,D){if(m&&(m=m.replace(/:(\/\/)?$/,""),!m.match(s.protocol_expression)))throw new TypeError('Protocol "'+m+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return z.call(this,m,D)},c.scheme=c.protocol,c.port=function(m,D){return this._parts.urn?m===void 0?"":this:(m!==void 0&&(m===0&&(m=null),m&&(m+="",m.charAt(0)===":"&&(m=m.substring(1)),s.ensureValidPort(m))),U.call(this,m,D))},c.hostname=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m!==void 0){var O={preventInvalidHostname:this._parts.preventInvalidHostname},M=s.parseHost(m,O);if(M!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');m=O.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(m,this._parts.protocol)}return v.call(this,m,D)},c.origin=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){var O=this.protocol(),M=this.authority();return M?(O?O+"://":"")+this.authority():""}else{var V=s(m);return this.protocol(V.protocol()).authority(V.authority()).build(!D),this}},c.host=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0)return this._parts.hostname?s.buildHost(this._parts):"";var O=s.parseHost(m,this._parts);if(O!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.authority=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0)return this._parts.hostname?s.buildAuthority(this._parts):"";var O=s.parseAuthority(m,this._parts);if(O!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.userinfo=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){var O=s.buildUserinfo(this._parts);return O&&O.substring(0,O.length-1)}else return m[m.length-1]!=="@"&&(m+="@"),s.parseUserinfo(m,this._parts),this.build(!D),this},c.resource=function(m,D){var O;return m===void 0?this.path()+this.search()+this.hash():(O=s.parse(m),this._parts.path=O.path,this._parts.query=O.query,this._parts.fragment=O.fragment,this.build(!D),this)},c.subdomain=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,O)||""}else{var M=this._parts.hostname.length-this.domain().length,V=this._parts.hostname.substring(0,M),k=new RegExp("^"+f(V));if(m&&m.charAt(m.length-1)!=="."&&(m+="."),m.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return m&&s.ensureValidHostname(m,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,m),this.build(!D),this}},c.domain=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m=="boolean"&&(D=m,m=void 0),m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.match(/\./g);if(O&&O.length<2)return this._parts.hostname;var M=this._parts.hostname.length-this.tld(D).length-1;return M=this._parts.hostname.lastIndexOf(".",M-1)+1,this._parts.hostname.substring(M)||""}else{if(!m)throw new TypeError("cannot set domain empty");if(m.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(m,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=m;else{var V=new RegExp(f(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(V,m)}return this.build(!D),this}},c.tld=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m=="boolean"&&(D=m,m=void 0),m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.lastIndexOf("."),M=this._parts.hostname.substring(O+1);return D!==!0&&i&&i.list[M.toLowerCase()]&&i.get(this._parts.hostname)||M}else{var V;if(m)if(m.match(/[^a-zA-Z0-9-]/))if(i&&i.is(m))V=new RegExp(f(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,m);else throw new TypeError('TLD "'+m+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");V=new RegExp(f(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,m)}else throw new TypeError("cannot set TLD empty");return this.build(!D),this}},c.directory=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0||m===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var O=this._parts.path.length-this.filename().length-1,M=this._parts.path.substring(0,O)||(this._parts.hostname?"/":"");return m?s.decodePath(M):M}else{var V=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,V),W=new RegExp("^"+f(k));return this.is("relative")||(m||(m="/"),m.charAt(0)!=="/"&&(m="/"+m)),m&&m.charAt(m.length-1)!=="/"&&(m+="/"),m=s.recodePath(m),this._parts.path=this._parts.path.replace(W,m),this.build(!D),this}},c.filename=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m!="string"){if(!this._parts.path||this._parts.path==="/")return"";var O=this._parts.path.lastIndexOf("/"),M=this._parts.path.substring(O+1);return m?s.decodePathSegment(M):M}else{var V=!1;m.charAt(0)==="/"&&(m=m.substring(1)),m.match(/\.?\//)&&(V=!0);var k=new RegExp(f(this.filename())+"$");return m=s.recodePath(m),this._parts.path=this._parts.path.replace(k,m),V?this.normalizePath(D):this.build(!D),this}},c.suffix=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0||m===!0){if(!this._parts.path||this._parts.path==="/")return"";var O=this.filename(),M=O.lastIndexOf("."),V,k;return M===-1?"":(V=O.substring(M+1),k=/^[a-z0-9%]+$/i.test(V)?V:"",m?s.decodePathSegment(k):k)}else{m.charAt(0)==="."&&(m=m.substring(1));var W=this.suffix(),G;if(W)m?G=new RegExp(f(W)+"$"):G=new RegExp(f("."+W)+"$");else{if(!m)return this;this._parts.path+="."+s.recodePath(m)}return G&&(m=s.recodePath(m),this._parts.path=this._parts.path.replace(G,m)),this.build(!D),this}},c.segment=function(m,D,O){var M=this._parts.urn?":":"/",V=this.path(),k=V.substring(0,1)==="/",W=V.split(M);if(m!==void 0&&typeof m!="number"&&(O=D,D=m,m=void 0),m!==void 0&&typeof m!="number")throw new Error('Bad segment "'+m+'", must be 0-based integer');if(k&&W.shift(),m<0&&(m=Math.max(W.length+m,0)),D===void 0)return m===void 0?W:W[m];if(m===null||W[m]===void 0)if(_(D)){W=[];for(var G=0,K=D.length;G"u")return e;t=y(n.baseURI,n.location.href)}const i=new us(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};function Doe(e,t){if(!l(e))throw new E("uri is required.");let n="";const i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new us(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}function Ioe(e){if(!l(e))throw new E("uri is required.");const t=new us(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}const WF={};function tw(e,t,n){l(t)||(t=e.width),l(n)||(n=e.height);let i=WF[t];l(i)||(i={},WF[t]=i);let o=i[n];if(!l(o)){const r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d"),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}const Poe=/^blob:/i;function v8(e){return T.typeOf.string("uri",e),Poe.test(e)}let ru;function D8(e){l(ru)||(ru=document.createElement("a")),ru.href=window.location.href;const t=ru.host,n=ru.protocol;return ru.href=e,ru.href=ru.href,n!==ru.protocol||t!==ru.host}const Ooe=/^data:/i;function RB(e){return T.typeOf.string("uri",e),Ooe.test(e)}function Loe(e){const t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");const o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}function Boe(e){if(!l(e))throw new E("obj is required.");let t="";for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function ny(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Foe(this.responseHeaders))}ny.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function Xe(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(Xe.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});Xe.prototype.addEventListener=function(e,t){T.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};Xe.prototype.removeEventListener=function(e,t){T.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(zoe),e=0;e=0;--t)this.heapify(t)};Ym.prototype.insert=function(e){T.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};Ym.prototype.pop=function(e){if(e=y(e,0),this._length===0)return;T.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return NB(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function Uoe(e,t){return e.priority-t.priority}const ui={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Og=20;const Is=new Ym({comparator:Uoe});Is.maximumLength=Og;Is.reserve(Og);const yu=[];let Xf={};const Hoe=typeof document<"u"?new us(document.location.href):new us,gS=new Xe;function si(){}si.maximumRequests=50;si.maximumRequestsPerServer=6;si.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};si.throttleRequests=!0;si.debugShowStatistics=!1;si.requestCompletedEvent=gS;Object.defineProperties(si,{statistics:{get:function(){return ui}},priorityHeapLength:{get:function(){return Og},set:function(e){if(ee;){const t=Is.pop();pm(t)}Og=e,Is.maximumLength=e,Is.reserve(e)}}});function I8(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}si.serverHasOpenSlots=function(e,t){t=y(t,1);const n=y(si.requestsByServer[e],si.maximumRequestsPerServer);return Xf[e]+t<=n};si.heapHasOpenSlots=function(e){return Is.length+e<=Og};function P8(e){return e.state===lo.UNISSUED&&(e.state=lo.ISSUED,e.deferred=np()),e.deferred.promise}function Voe(e){return function(t){if(e.state===lo.CANCELLED)return;const n=e.deferred;--ui.numberOfActiveRequests,--Xf[e.serverKey],gS.raiseEvent(),e.state=lo.RECEIVED,e.deferred=void 0,n.resolve(t)}}function koe(e){return function(t){e.state!==lo.CANCELLED&&(++ui.numberOfFailedRequests,--ui.numberOfActiveRequests,--Xf[e.serverKey],gS.raiseEvent(t),e.state=lo.FAILED,e.deferred.reject(t))}}function O8(e){const t=P8(e);return e.state=lo.ACTIVE,yu.push(e),++ui.numberOfActiveRequests,++ui.numberOfActiveRequestsEver,++Xf[e.serverKey],e.requestFunction().then(Voe(e)).catch(koe(e)),t}function pm(e){const t=e.state===lo.ACTIVE;if(e.state=lo.CANCELLED,++ui.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--ui.numberOfActiveRequests,--Xf[e.serverKey],++ui.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}si.update=function(){let e,t,n=0;const i=yu.length;for(e=0;e0&&(yu[e-n]=t)}yu.length-=n;const o=Is.internalArray,r=Is.length;for(e=0;e0;){if(t=Is.pop(),t.cancelled){pm(t);continue}if(t.throttleByServer&&!si.serverHasOpenSlots(t.serverKey)){pm(t);continue}O8(t),++a}Goe()};si.getServerKey=function(e){T.typeOf.string("url",e);let t=new us(e);t.scheme()===""&&(t=new us(e).absoluteTo(Hoe),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=Xf[n];return l(i)||(Xf[n]=0),n};si.request=function(e){if(T.typeOf.object("request",e),T.typeOf.string("request.url",e.url),T.typeOf.func("request.requestFunction",e.requestFunction),RB(e.url)||v8(e.url))return gS.raiseEvent(),e.state=lo.RECEIVED,e.requestFunction();if(++ui.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=si.getServerKey(e.url)),si.throttleRequests&&e.throttleByServer&&!si.serverHasOpenSlots(e.serverKey))return;if(!si.throttleRequests||!e.throttle)return O8(e);if(yu.length>=si.maximumRequests)return;I8(e);const t=Is.insert(e);if(l(t)){if(t===e)return;pm(t)}return P8(e)};function Goe(){si.debugShowStatistics&&(ui.numberOfActiveRequests===0&&ui.lastNumberOfActiveRequests>0&&(ui.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${ui.numberOfAttemptedRequests}`),ui.numberOfAttemptedRequests=0),ui.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${ui.numberOfCancelledRequests}`),ui.numberOfCancelledRequests=0),ui.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${ui.numberOfCancelledActiveRequests}`),ui.numberOfCancelledActiveRequests=0),ui.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${ui.numberOfFailedRequests}`),ui.numberOfFailedRequests=0)),ui.lastNumberOfActiveRequests=ui.numberOfActiveRequests)}si.clearForSpecs=function(){for(;Is.length>0;){const t=Is.pop();pm(t)}const e=yu.length;for(let t=0;t0}}});Re.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Re.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new us(this._url);e&&joe(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Re.prototype.setQueryParameters=function(e,t){t?this._queryParameters=nw(this._queryParameters,e,!1):this._queryParameters=nw(e,this._queryParameters,!1)};Re.prototype.appendQueryParameters=function(e){this._queryParameters=nw(e,this._queryParameters,!0)};Re.prototype.setTemplateValues=function(e,t){t?this._templateValues=nn(this._templateValues,e):this._templateValues=nn(e,this._templateValues)};Re.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new us(e.url),i=y(e.preserveQueryParameters,!1);MB(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new us(HC(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=nn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=nn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=nn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Re.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Re.prototype.clone=function(e){return l(e)||(e=new Re({url:this._url})),e._url=this._url,e._queryParameters=lt(this._queryParameters),e._templateValues=lt(this._templateValues),e.headers=lt(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Re.prototype.getBaseUri=function(e){return Doe(this.getUrlComponent(e),e)};Re.prototype.appendForwardSlash=function(){this._url=voe(this._url)};Re.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Re.fetchArrayBuffer=function(e){return new Re(e).fetchArrayBuffer()};Re.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Re.fetchBlob=function(e){return new Re(e).fetchBlob()};Re.prototype.fetchImage=function(e){e=y(e,y.EMPTY_OBJECT);const t=y(e.preferImageBitmap,!1),n=y(e.preferBlob,!1),i=y(e.flipY,!1),o=y(e.skipColorSpaceConversion,!1);if(FB(this.request),!B8||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return QO({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Re.supportsImageBitmapOptions().then(function(f){return s=f,a=s&&t,r}).then(function(f){if(!l(f))return;if(u=f,a)return Re.createImageBitmapFromBlob(f,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(f);return c=new Re({url:h}),QO({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(f){if(l(f))return f.blob=u,a||window.URL.revokeObjectURL(c.url),f}).catch(function(f){return l(c)&&window.URL.revokeObjectURL(c.url),f.blob=u,Promise.reject(f)})};function QO(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=np();return Re._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=si.request(r);if(l(s))return s.catch(function(a){return r.state!==lo.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=lo.UNISSUED,r.deferred=void 0,QO({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Re.fetchImage=function(e){return new Re(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Re.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Re.fetchText=function(e){return new Re(e).fetchText()};Re.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Re.fetchJson=function(e){return new Re(e).fetchJson()};Re.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Re.fetchXML=function(e){return new Re(e).fetchXML()};Re.prototype.fetchJsonp=function(e){e=y(e,"callback"),FB(this.request);let t;do t=`loadJsonp${N.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return R8(this,e,t)};function R8(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=np();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Re._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=si.request(o);if(l(r))return r.catch(function(s){return o.state!==lo.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=lo.UNISSUED,o.deferred=void 0,R8(e,t,n)):Promise.reject(s)})})}Re.fetchJsonp=function(e){return new Re(e).fetchJsonp(e.callbackParameterName)};Re.prototype._makeRequest=function(e){const t=this;FB(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=nn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=np(),f=Re._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(f)&&l(f.abort)&&(n.cancelFunction=function(){f.abort()}),u.promise};const i=si.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==lo.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=lo.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const qoe=/^data:(.*?)(;base64)?,(.*)$/;function ex(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function jF(e,t){const n=ex(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),rb(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,f])=>(a=u.parse(e),c=f,a.protocol==="https:"?rb(()=>import("./__vite-browser-external-b25bb000.js"),[]):rb(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const f={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(f).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new ny(h.statusCode,h,h.headers));return}const _=[];h.on("data",function(g){_.push(g)}),h.on("end",function(){const g=Buffer.concat(_);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,A){p?r.reject(new Se("Error decompressing response.")):r.resolve(qF(A,t))}):r.resolve(qF(g,t))})}).on("error",function(h){r.reject(new ny)}).end()})}const $oe=typeof XMLHttpRequest>"u";Re._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=qoe.exec(e);if(a!==null){r.resolve(Yoe(a,t));return}if($oe){Xoe(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(L8.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const f in o)o.hasOwnProperty(f)&&c.setRequestHeader(f,o[f]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new ny(c.status,c.response,c.getAllResponseHeaders()));return}const f=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(A){const C=A.split(": "),b=C.shift();p[b]=C.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(f)&&(!l(t)||h===t))r.resolve(f);else if(t==="json"&&typeof f=="string")try{r.resolve(JSON.parse(f))}catch(_){r.reject(_)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Se("Invalid XMLHttpRequest response type."))},c.onerror=function(f){r.reject(new ny)},c.send(i),c};Re._Implementations.loadAndExecuteScript=function(e,t,n){return Loe(e).catch(function(i){n.reject(i)})};Re._DefaultImplementations={};Re._DefaultImplementations.createImage=Re._Implementations.createImage;Re._DefaultImplementations.loadWithXhr=Re._Implementations.loadWithXhr;Re._DefaultImplementations.loadAndExecuteScript=Re._Implementations.loadAndExecuteScript;Re.DEFAULT=Object.freeze(new Re({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function JA(e){e=y(e,y.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=y(e.addNewLeapSeconds,!0),l(e.data)?YF(this,e.data):YF(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}JA.fromUrl=async function(e,t){T.defined("url",e),t=y(t,y.EMPTY_OBJECT);const n=Re.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Se(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new JA({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};JA.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new PB(0,0,0,0,0),t}});JA.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new PB(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ne.lessThanOrEquals(a,e),f=!l(c),h=f||ne.greaterThanOrEquals(c,e);if(u&&h)return o=i,!f&&c.equals(e)&&++o,r=o+1,$F(this,n,this._samples,e,o,r,t),t}let s=ls(n,e,ne.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return XF(e,n,o,a,s),s;if(i.equals(u))return XF(e,n,r,a,s),s;const f=ne.secondsDifference(i,c)/ne.secondsDifference(u,c),h=o*a,_=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[_+e._ut1MinusUtcSecondsColumn];const A=p-g;if(A>.5||A<-.5){const C=n[h+e._taiMinusUtcSecondsColumn],b=n[_+e._taiMinusUtcSecondsColumn];C!==b&&(u.equals(i)?g=p:p-=b-C)}return s.xPoleWander=Qy(f,n[h+e._xPoleWanderRadiansColumn],n[_+e._xPoleWanderRadiansColumn]),s.yPoleWander=Qy(f,n[h+e._yPoleWanderRadiansColumn],n[_+e._yPoleWanderRadiansColumn]),s.xPoleOffset=Qy(f,n[h+e._xCelestialPoleOffsetRadiansColumn],n[_+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=Qy(f,n[h+e._yCelestialPoleOffsetRadiansColumn],n[_+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=Qy(f,g,p),s}function Ir(e,t,n){this.heading=y(e,0),this.pitch=y(t,0),this.roll=y(n,0)}Ir.fromQuaternion=function(e,t){if(!l(e))throw new E("quaternion is required");l(t)||(t=new Ir);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-N.asinClamped(n),t};Ir.fromDegrees=function(e,t,n,i){if(!l(e))throw new E("heading is required");if(!l(t))throw new E("pitch is required");if(!l(n))throw new E("roll is required");return l(i)||(i=new Ir),i.heading=e*N.RADIANS_PER_DEGREE,i.pitch=t*N.RADIANS_PER_DEGREE,i.roll=n*N.RADIANS_PER_DEGREE,i};Ir.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Ir(e.heading,e.pitch,e.roll)};Ir.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Ir.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&N.equalsEpsilon(e.heading,t.heading,n,i)&&N.equalsEpsilon(e.pitch,t.pitch,n,i)&&N.equalsEpsilon(e.roll,t.roll,n,i)};Ir.prototype.clone=function(e){return Ir.clone(this,e)};Ir.prototype.equals=function(e){return Ir.equals(this,e)};Ir.prototype.equalsEpsilon=function(e,t,n){return Ir.equalsEpsilon(this,e,t,n)};Ir.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const N8=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function Joe(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(S_)||(S_=document.createElement("a")),S_.href=e,S_.href=S_.href,S_.href)}let Zp;function F8(){if(l(Zp))return Zp;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=HC("..",ln("Core/buildModuleUrl.js")):e=Joe(),!l(e))throw new E("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return Zp=new Re({url:M8(e)}),Zp.appendForwardSlash(),Zp}function Qoe(e){return M8(require.toUrl(`../${e}`))}function z8(e){return F8().getDerivedResource({url:e}).url}let sb;function ln(e){return l(sb)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?sb=Qoe:sb=z8),sb(e)}ln._cesiumScriptRegex=N8;ln._buildModuleUrlFromBaseUrl=z8;ln._clearBaseResource=function(){Zp=void 0};ln.setBaseUrl=function(e){Zp=Re.DEFAULT.getDerivedResource({url:e})};ln.getCesiumBaseUrl=F8;function U8(e,t,n){this.x=e,this.y=t,this.s=n}function zB(e){e=y(e,y.EMPTY_OBJECT),this._xysFileUrlTemplate=Re.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=y(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=y(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ne(this._sampleZeroJulianEphemerisDate,0,Mn.TAI),this._stepSizeDays=y(e.stepSizeDays,1),this._samplesPerXysFile=y(e.samplesPerXysFile,1e3),this._totalSamples=y(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Zoe=new ne(0,0,Mn.TAI);function ZO(e,t,n){const i=Zoe;return i.dayNumber=t,i.secondsOfDay=n,ne.daysDifference(i,e._sampleZeroDateTT)}zB.prototype.preload=function(e,t,n,i){const o=ZO(this,e,t),r=ZO(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,f=[];for(let h=c;h<=u;++h)f.push(e1(this,h));return Promise.all(f)};zB.prototype.computeXysRadians=function(e,t,n){const i=ZO(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(e1(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(e1(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new U8(0,0,0);const f=i-s*this._stepSizeDays,h=this._work,_=this._denominators,g=this._coef,p=this._xTable;let A,C;for(A=0;A<=r;++A)h[A]=f-p[A];for(A=0;A<=r;++A){for(g[A]=1,C=0;C<=r;++C)C!==A&&(g[A]*=h[C]);g[A]*=_[A];let b=(s+A)*3;n.x+=g[A]*u[b++],n.y+=g[A]*u[b++],n.s+=g[A]*u[b]}return n};function e1(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Re({url:ln(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,f=a.length;u=43200?o=(r+.5)/yi.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/yi.DAYS_PER_JULIAN_CENTURY;const a=(ure+o*(fre+o*(dre+o*hre)))*_re%N.TWO_PI,c=mre+pre*(n-24515455e-1),u=(i+yi.SECONDS_PER_DAY*.5)%yi.SECONDS_PER_DAY,f=a+c*u,h=Math.cos(f),_=Math.sin(f);return l(t)?(t[0]=h,t[1]=-_,t[2]=0,t[3]=_,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,_,0,-_,h,0,0,0,1)};ai.iau2006XysData=new zB;ai.earthOrientationParameters=JA.NONE;const t1=32.184,gre=2451545;ai.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+t1,i=e.stop.dayNumber,o=e.stop.secondsOfDay+t1;return ai.iau2006XysData.preload(t,n,i,o)};ai.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new E("date is required.");l(t)||(t=new J);const n=ai.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const yre=new U8(0,0,0),Are=new PB(0,0,0,0,0),_D=new J,gD=new J;ai.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new E("date is required.");l(t)||(t=new J);const n=ai.earthOrientationParameters.compute(e,Are);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+t1,r=ai.iau2006XysData.computeXysRadians(i,o,yre);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=_D;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const f=J.fromRotationZ(-r.s,gD),h=J.multiply(u,f,_D),_=e.dayNumber,g=e.secondsOfDay-ne.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=_-2451545,A=g/yi.SECONDS_PER_DAY;let C=.779057273264+A+.00273781191135448*(p+A);C=C%1*N.TWO_PI;const b=J.fromRotationZ(C,gD),x=J.multiply(h,b,_D),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),L=Math.sin(n.yPoleWander);let H=i-gre+o/yi.SECONDS_PER_DAY;H/=36525;const R=-47e-6*H*N.RADIANS_PER_DEGREE/3600,z=Math.cos(R),U=Math.sin(R),v=gD;return v[0]=w*z,v[1]=w*U,v[2]=P,v[3]=-S*U+L*P*z,v[4]=S*z+L*P*U,v[5]=-L*w,v[6]=-L*U-S*P*z,v[7]=L*z-S*P*U,v[8]=S*w,J.multiply(x,v,t)};const Cre=new oe;ai.pointToWindowCoordinates=function(e,t,n,i){return i=ai.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};ai.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new E("modelViewProjectionMatrix is required.");if(!l(t))throw new E("viewportTransformation is required.");if(!l(n))throw new E("point is required.");l(i)||(i=new j);const o=Cre;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const Tre=new d,bre=new d,Ere=new d;ai.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new E("position is required.");if(!l(t))throw new E("velocity is required.");const o=y(n,pe.WGS84).geodeticSurfaceNormal(e,Tre);let r=d.cross(t,o,bre);d.equalsEpsilon(r,d.ZERO,N.EPSILON6)&&(r=d.clone(d.UNIT_X,r));const s=d.cross(r,t,Ere);return d.normalize(s,s),d.cross(t,s,r),d.negate(r,r),d.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const H8=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),V8=new Ae,k8=new d,xre=new d,wre=new J,n1=new B,G8=new B;ai.basisTo2D=function(e,t,n){if(!l(e))throw new E("projection is required.");if(!l(t))throw new E("matrix is required.");if(!l(n))throw new E("result is required.");const i=B.getTranslation(t,xre),o=e.ellipsoid,r=o.cartesianToCartographic(i,V8),s=e.project(r,k8);d.fromElements(s.z,s.x,s.y,s);const a=ai.eastNorthUpToFixedFrame(i,o,n1),c=B.inverseTransformation(a,G8),u=B.getMatrix3(t,wre),f=B.multiplyByMatrix3(c,u,n);return B.multiply(H8,f,n),B.setTranslation(n,s,n),n};ai.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new E("projection is required.");if(!l(t))throw new E("center is required.");if(!l(n))throw new E("result is required.");const i=e.ellipsoid,o=ai.eastNorthUpToFixedFrame(t,i,n1),r=B.inverseTransformation(o,G8),s=i.cartesianToCartographic(t,V8),a=e.project(s,k8);d.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,n1);return B.multiply(H8,r,n),B.multiply(c,n,n),n};const Qt=ai;function vt(e){e=y(e,y.EMPTY_OBJECT),T.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=y(e.primitiveType,Je.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=y(e.geometryType,yg.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}vt.computeNumberOfVertices=function(e){T.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new E("All attribute lists must have the same number of attributes.");t=o}return t};const Sre=new Ae,vre=new d,JF=new B,Dre=[new Ae,new Ae,new Ae],Ire=[new j,new j,new j],Pre=[new j,new j,new j],Ore=new d,Lre=new Ce,Bre=new B,Rre=new at;vt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=_e.center(i,Sre),s=Ae.toCartesian(r,n,vre),a=Qt.eastNorthUpToFixedFrame(s,n,JF),c=B.inverse(a,JF),u=Ire,f=Dre;f[0].longitude=i.west,f[0].latitude=i.south,f[1].longitude=i.west,f[1].latitude=i.north,f[2].longitude=i.east,f[2].latitude=i.south;let h=Ore;for(o=0;o<3;o++)Ae.toCartesian(f[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const _=Ce.fromAxisAngle(d.UNIT_Z,-t,Lre),g=J.fromQuaternion(_,Bre),p=e.length;let A=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,x=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new E("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new E("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=y(e.normalize,!1),this.values=e.values}function oy(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(oy.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});oy.clone=function(e){if(l(e))return new oy(e._format,e._datatype,e._width,e._height,e._buffer)};oy.prototype.clone=function(){return oy.clone(this)};function W8(){if(!l(Ei._canTransferArrayBuffer)){const e=new Worker(q8("Workers/transferTypedArrayTest.js"));e.postMessage=y(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return Ei._canTransferArrayBuffer=!1,Ei._canTransferArrayBuffer}const i=np();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),Ei._canTransferArrayBuffer=s},Ei._canTransferArrayBuffer=i.promise}return Ei._canTransferArrayBuffer}const i1=new Xe;function j8(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Se(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new E(t.error.message),r.stack=t.error.stack),i1.raiseEvent(r),o.reject(r)}else i1.raiseEvent(),o.resolve(t.result);delete i[n]}function q8(e){let t=ln(e);if(D8(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let yD;function Nre(){return l(yD)||(yD=q8("Workers/cesiumWorkerBootstrapper.js")),yD}function Y8(e){const t=new Worker(Nre());t.postMessage=y(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:ln("Workers")},baseUrl:ln.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){j8(e,i.data)},t}function Mre(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!an.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Se(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=ln(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=ln(t.modulePath),n.wasmBinaryFile=ln(t.wasmBinaryFile),Re.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function Ei(e,t){const n=new us(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:Ei._workerModulePrefix+e,this._maximumActiveTasks=y(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const Fre=[];Ei.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=Y8(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(W8()).then(function(i){l(t)?i||(t.length=0):t=Fre;const o=n._nextID++,r=np();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};Ei.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=Y8(this));const t=np(),n=this,i=this._worker;return Mre(this,e).then(function(o){return Promise.resolve(W8()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){j8(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};Ei.prototype.isDestroyed=function(){return!1};Ei.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),Ue(this)};Ei.taskCompletedEvent=i1;Ei._defaultWorkerModulePrefix="Workers/";Ei._workerModulePrefix=Ei._defaultWorkerModulePrefix;Ei._canTransferArrayBuffer=void 0;function Rf(){}Rf._transcodeTaskProcessor=new Ei("transcodeKTX2",Number.POSITIVE_INFINITY);Rf._readyPromise=void 0;function zre(){const e=Rf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return Rf._transcodeTaskProcessor});Rf._readyPromise=e}Rf.transcode=function(e,t){return T.defined("supportedTargetFormats",t),l(Rf._readyPromise)||zre(),Rf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new E("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new E("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._size,h=this._pixelFormat,_=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,A=this._flipY,C=y(e.skipColorSpaceConversion,!1);let b=4;l(u)&&(b=nt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,b),C?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let x=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===f)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),A&&(u=nt.flipY(u,h,g,f,f)),o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,A),o.texImage2D(s,0,_,h,Ke.toWebGLConstant(g,this._context),i)),x=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=nt.createTypedArray(h,g,f,f);o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),w)}this._initialized=!0}x||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),A&&(u=nt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,A),o.texSubImage2D(s,0,t,n,h,Ke.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Tf.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=y(e,0),t=y(t,0),n=y(n,0),i=y(i,0),o=y(o,this._size),r=y(r,this._size),T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new E("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new E("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Ke.FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const tx={DONT_CARE:se.DONT_CARE,FASTEST:se.FASTEST,NICEST:se.NICEST,validate:function(e){return e===tx.DONT_CARE||e===tx.FASTEST||e===tx.NICEST}},ry=Object.freeze(tx),nx={NEAREST:se.NEAREST,LINEAR:se.LINEAR};nx.validate=function(e){return e===nx.NEAREST||e===nx.LINEAR};const Pr=Object.freeze(nx),Jd={NEAREST:se.NEAREST,LINEAR:se.LINEAR,NEAREST_MIPMAP_NEAREST:se.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:se.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:se.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:se.LINEAR_MIPMAP_LINEAR};Jd.validate=function(e){return e===Jd.NEAREST||e===Jd.LINEAR||e===Jd.NEAREST_MIPMAP_NEAREST||e===Jd.LINEAR_MIPMAP_NEAREST||e===Jd.NEAREST_MIPMAP_LINEAR||e===Jd.LINEAR_MIPMAP_LINEAR};const _n=Object.freeze(Jd),ix={CLAMP_TO_EDGE:se.CLAMP_TO_EDGE,REPEAT:se.REPEAT,MIRRORED_REPEAT:se.MIRRORED_REPEAT,validate:function(e){return e===ix.CLAMP_TO_EDGE||e===ix.REPEAT||e===ix.MIRRORED_REPEAT}},Ci=Object.freeze(ix);function jn(e){e=y(e,y.EMPTY_OBJECT);const t=y(e.wrapS,Ci.CLAMP_TO_EDGE),n=y(e.wrapT,Ci.CLAMP_TO_EDGE),i=y(e.minificationFilter,_n.LINEAR),o=y(e.magnificationFilter,Pr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Ci.validate(t))throw new E("Invalid sampler.wrapS.");if(!Ci.validate(n))throw new E("Invalid sampler.wrapT.");if(!_n.validate(i))throw new E("Invalid sampler.minificationFilter.");if(!Pr.validate(o))throw new E("Invalid sampler.magnificationFilter.");T.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(jn.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});jn.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};jn.NEAREST=Object.freeze(new jn({wrapS:Ci.CLAMP_TO_EDGE,wrapT:Ci.CLAMP_TO_EDGE,minificationFilter:_n.NEAREST,magnificationFilter:Pr.NEAREST}));function kl(e){e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const x=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!x[0]||!x[1]||!x[2]||!x[3]||!x[4]||!x[5])throw new E("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=x[0].width,o=x[0].height;for(let w=1;w<6;++w)if(Number(x[w].width)!==i||Number(x[w].height)!==o)throw new E("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=y(e.pixelDatatype,Ke.UNSIGNED_BYTE),a=y(e.pixelFormat,nt.RGBA),c=nt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new E("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new E("Width must equal height.");if(r<=0)throw new E("Width and height must be greater than zero.");if(r>xt.maximumCubeMapSize)throw new E(`Width and height must be less than or equal to the maximum cube map size (${xt.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!nt.validate(a))throw new E("Invalid options.pixelFormat.");if(nt.isDepthFormat(a))throw new E("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Ke.validate(s))throw new E("Invalid options.pixelDatatype.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new E("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new E("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=nt.textureSizeInBytes(a,s,r,r)*6,f=e.preMultiplyAlpha||a===nt.RGB||a===nt.LUMINANCE,h=y(e.flipY,!0),_=y(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,A=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,A);function C(x,w,S,P,L){let H=w.arrayBufferView;l(H)||(H=w.bufferView);let R=4;l(H)&&(R=nt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),L?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(H)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(H=nt.flipY(H,a,s,r,r)),g.texImage2D(x,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),H)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(x,0,c,a,Ke.toWebGLConstant(s,t),w))}l(n)?(C(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,f,h,_)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=A,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=f,this._flipY=h,this._sampler=void 0;const b=l(n);this._positiveX=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,f,h,b),this._negativeX=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,f,h,b),this._positiveY=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,f,h,b),this._negativeY=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,f,h,b),this._positiveZ=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,f,h,b),this._negativeZ=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,f,h,b),this.sampler=l(e.sampler)?e.sampler:new jn}Object.defineProperties(kl.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===_n.NEAREST_MIPMAP_NEAREST||t===_n.NEAREST_MIPMAP_LINEAR||t===_n.LINEAR_MIPMAP_NEAREST||t===_n.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Ke.FLOAT&&!o.textureFloatLinear||r===Ke.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?_n.NEAREST_MIPMAP_NEAREST:_n.NEAREST,n=Pr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});kl.prototype.generateMipmap=function(e){if(e=y(e,ry.DONT_CARE),this._size>1&&!N.isPowerOfTwo(this._size))throw new E("width and height must be a power of two to call generateMipmap().");if(!ry.validate(e))throw new E("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};kl.prototype.isDestroyed=function(){return!1};kl.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=Ue(this._positiveX),this._negativeX=Ue(this._negativeX),this._positiveY=Ue(this._positiveY),this._negativeY=Ue(this._negativeY),this._positiveZ=Ue(this._positiveZ),this._negativeZ=Ue(this._negativeZ),Ue(this)};function $m(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function Ure(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` +`);for(let i=0;i0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function ny(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Foe(this.responseHeaders))}ny.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function Xe(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(Xe.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});Xe.prototype.addEventListener=function(e,t){T.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};Xe.prototype.removeEventListener=function(e,t){T.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(zoe),e=0;e=0;--t)this.heapify(t)};Ym.prototype.insert=function(e){T.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};Ym.prototype.pop=function(e){if(e=y(e,0),this._length===0)return;T.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return NB(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function Uoe(e,t){return e.priority-t.priority}const ui={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Og=20;const Is=new Ym({comparator:Uoe});Is.maximumLength=Og;Is.reserve(Og);const yu=[];let Xf={};const Hoe=typeof document<"u"?new us(document.location.href):new us,gS=new Xe;function si(){}si.maximumRequests=50;si.maximumRequestsPerServer=6;si.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};si.throttleRequests=!0;si.debugShowStatistics=!1;si.requestCompletedEvent=gS;Object.defineProperties(si,{statistics:{get:function(){return ui}},priorityHeapLength:{get:function(){return Og},set:function(e){if(ee;){const t=Is.pop();pm(t)}Og=e,Is.maximumLength=e,Is.reserve(e)}}});function I8(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}si.serverHasOpenSlots=function(e,t){t=y(t,1);const n=y(si.requestsByServer[e],si.maximumRequestsPerServer);return Xf[e]+t<=n};si.heapHasOpenSlots=function(e){return Is.length+e<=Og};function P8(e){return e.state===lo.UNISSUED&&(e.state=lo.ISSUED,e.deferred=np()),e.deferred.promise}function Voe(e){return function(t){if(e.state===lo.CANCELLED)return;const n=e.deferred;--ui.numberOfActiveRequests,--Xf[e.serverKey],gS.raiseEvent(),e.state=lo.RECEIVED,e.deferred=void 0,n.resolve(t)}}function koe(e){return function(t){e.state!==lo.CANCELLED&&(++ui.numberOfFailedRequests,--ui.numberOfActiveRequests,--Xf[e.serverKey],gS.raiseEvent(t),e.state=lo.FAILED,e.deferred.reject(t))}}function O8(e){const t=P8(e);return e.state=lo.ACTIVE,yu.push(e),++ui.numberOfActiveRequests,++ui.numberOfActiveRequestsEver,++Xf[e.serverKey],e.requestFunction().then(Voe(e)).catch(koe(e)),t}function pm(e){const t=e.state===lo.ACTIVE;if(e.state=lo.CANCELLED,++ui.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--ui.numberOfActiveRequests,--Xf[e.serverKey],++ui.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}si.update=function(){let e,t,n=0;const i=yu.length;for(e=0;e0&&(yu[e-n]=t)}yu.length-=n;const o=Is.internalArray,r=Is.length;for(e=0;e0;){if(t=Is.pop(),t.cancelled){pm(t);continue}if(t.throttleByServer&&!si.serverHasOpenSlots(t.serverKey)){pm(t);continue}O8(t),++a}Goe()};si.getServerKey=function(e){T.typeOf.string("url",e);let t=new us(e);t.scheme()===""&&(t=new us(e).absoluteTo(Hoe),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=Xf[n];return l(i)||(Xf[n]=0),n};si.request=function(e){if(T.typeOf.object("request",e),T.typeOf.string("request.url",e.url),T.typeOf.func("request.requestFunction",e.requestFunction),RB(e.url)||v8(e.url))return gS.raiseEvent(),e.state=lo.RECEIVED,e.requestFunction();if(++ui.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=si.getServerKey(e.url)),si.throttleRequests&&e.throttleByServer&&!si.serverHasOpenSlots(e.serverKey))return;if(!si.throttleRequests||!e.throttle)return O8(e);if(yu.length>=si.maximumRequests)return;I8(e);const t=Is.insert(e);if(l(t)){if(t===e)return;pm(t)}return P8(e)};function Goe(){si.debugShowStatistics&&(ui.numberOfActiveRequests===0&&ui.lastNumberOfActiveRequests>0&&(ui.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${ui.numberOfAttemptedRequests}`),ui.numberOfAttemptedRequests=0),ui.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${ui.numberOfCancelledRequests}`),ui.numberOfCancelledRequests=0),ui.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${ui.numberOfCancelledActiveRequests}`),ui.numberOfCancelledActiveRequests=0),ui.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${ui.numberOfFailedRequests}`),ui.numberOfFailedRequests=0)),ui.lastNumberOfActiveRequests=ui.numberOfActiveRequests)}si.clearForSpecs=function(){for(;Is.length>0;){const t=Is.pop();pm(t)}const e=yu.length;for(let t=0;t0}}});Re.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Re.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new us(this._url);e&&joe(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Re.prototype.setQueryParameters=function(e,t){t?this._queryParameters=nw(this._queryParameters,e,!1):this._queryParameters=nw(e,this._queryParameters,!1)};Re.prototype.appendQueryParameters=function(e){this._queryParameters=nw(e,this._queryParameters,!0)};Re.prototype.setTemplateValues=function(e,t){t?this._templateValues=nn(this._templateValues,e):this._templateValues=nn(e,this._templateValues)};Re.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new us(e.url),i=y(e.preserveQueryParameters,!1);MB(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new us(HC(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=nn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=nn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=nn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Re.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Re.prototype.clone=function(e){return l(e)||(e=new Re({url:this._url})),e._url=this._url,e._queryParameters=lt(this._queryParameters),e._templateValues=lt(this._templateValues),e.headers=lt(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Re.prototype.getBaseUri=function(e){return Doe(this.getUrlComponent(e),e)};Re.prototype.appendForwardSlash=function(){this._url=voe(this._url)};Re.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Re.fetchArrayBuffer=function(e){return new Re(e).fetchArrayBuffer()};Re.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Re.fetchBlob=function(e){return new Re(e).fetchBlob()};Re.prototype.fetchImage=function(e){e=y(e,y.EMPTY_OBJECT);const t=y(e.preferImageBitmap,!1),n=y(e.preferBlob,!1),i=y(e.flipY,!1),o=y(e.skipColorSpaceConversion,!1);if(FB(this.request),!B8||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return QO({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Re.supportsImageBitmapOptions().then(function(f){return s=f,a=s&&t,r}).then(function(f){if(!l(f))return;if(u=f,a)return Re.createImageBitmapFromBlob(f,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(f);return c=new Re({url:h}),QO({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(f){if(l(f))return f.blob=u,a||window.URL.revokeObjectURL(c.url),f}).catch(function(f){return l(c)&&window.URL.revokeObjectURL(c.url),f.blob=u,Promise.reject(f)})};function QO(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=np();return Re._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=si.request(r);if(l(s))return s.catch(function(a){return r.state!==lo.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=lo.UNISSUED,r.deferred=void 0,QO({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Re.fetchImage=function(e){return new Re(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Re.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Re.fetchText=function(e){return new Re(e).fetchText()};Re.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Re.fetchJson=function(e){return new Re(e).fetchJson()};Re.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Re.fetchXML=function(e){return new Re(e).fetchXML()};Re.prototype.fetchJsonp=function(e){e=y(e,"callback"),FB(this.request);let t;do t=`loadJsonp${N.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return R8(this,e,t)};function R8(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=np();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Re._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=si.request(o);if(l(r))return r.catch(function(s){return o.state!==lo.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=lo.UNISSUED,o.deferred=void 0,R8(e,t,n)):Promise.reject(s)})})}Re.fetchJsonp=function(e){return new Re(e).fetchJsonp(e.callbackParameterName)};Re.prototype._makeRequest=function(e){const t=this;FB(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=nn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=np(),f=Re._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(f)&&l(f.abort)&&(n.cancelFunction=function(){f.abort()}),u.promise};const i=si.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==lo.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=lo.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const qoe=/^data:(.*?)(;base64)?,(.*)$/;function ex(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function jF(e,t){const n=ex(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),rb(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,f])=>(a=u.parse(e),c=f,a.protocol==="https:"?rb(()=>import("./__vite-browser-external-b25bb000.js"),[]):rb(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const f={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(f).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new ny(h.statusCode,h,h.headers));return}const _=[];h.on("data",function(g){_.push(g)}),h.on("end",function(){const g=Buffer.concat(_);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,A){p?r.reject(new Se("Error decompressing response.")):r.resolve(qF(A,t))}):r.resolve(qF(g,t))})}).on("error",function(h){r.reject(new ny)}).end()})}const $oe=typeof XMLHttpRequest>"u";Re._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=qoe.exec(e);if(a!==null){r.resolve(Yoe(a,t));return}if($oe){Xoe(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(L8.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const f in o)o.hasOwnProperty(f)&&c.setRequestHeader(f,o[f]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new ny(c.status,c.response,c.getAllResponseHeaders()));return}const f=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(A){const C=A.split(": "),b=C.shift();p[b]=C.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(f)&&(!l(t)||h===t))r.resolve(f);else if(t==="json"&&typeof f=="string")try{r.resolve(JSON.parse(f))}catch(_){r.reject(_)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Se("Invalid XMLHttpRequest response type."))},c.onerror=function(f){r.reject(new ny)},c.send(i),c};Re._Implementations.loadAndExecuteScript=function(e,t,n){return Loe(e).catch(function(i){n.reject(i)})};Re._DefaultImplementations={};Re._DefaultImplementations.createImage=Re._Implementations.createImage;Re._DefaultImplementations.loadWithXhr=Re._Implementations.loadWithXhr;Re._DefaultImplementations.loadAndExecuteScript=Re._Implementations.loadAndExecuteScript;Re.DEFAULT=Object.freeze(new Re({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function JA(e){e=y(e,y.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=y(e.addNewLeapSeconds,!0),l(e.data)?YF(this,e.data):YF(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}JA.fromUrl=async function(e,t){T.defined("url",e),t=y(t,y.EMPTY_OBJECT);const n=Re.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Se(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new JA({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};JA.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new PB(0,0,0,0,0),t}});JA.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new PB(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ne.lessThanOrEquals(a,e),f=!l(c),h=f||ne.greaterThanOrEquals(c,e);if(u&&h)return o=i,!f&&c.equals(e)&&++o,r=o+1,$F(this,n,this._samples,e,o,r,t),t}let s=ls(n,e,ne.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return XF(e,n,o,a,s),s;if(i.equals(u))return XF(e,n,r,a,s),s;const f=ne.secondsDifference(i,c)/ne.secondsDifference(u,c),h=o*a,_=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[_+e._ut1MinusUtcSecondsColumn];const A=p-g;if(A>.5||A<-.5){const C=n[h+e._taiMinusUtcSecondsColumn],b=n[_+e._taiMinusUtcSecondsColumn];C!==b&&(u.equals(i)?g=p:p-=b-C)}return s.xPoleWander=Qy(f,n[h+e._xPoleWanderRadiansColumn],n[_+e._xPoleWanderRadiansColumn]),s.yPoleWander=Qy(f,n[h+e._yPoleWanderRadiansColumn],n[_+e._yPoleWanderRadiansColumn]),s.xPoleOffset=Qy(f,n[h+e._xCelestialPoleOffsetRadiansColumn],n[_+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=Qy(f,n[h+e._yCelestialPoleOffsetRadiansColumn],n[_+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=Qy(f,g,p),s}function Ir(e,t,n){this.heading=y(e,0),this.pitch=y(t,0),this.roll=y(n,0)}Ir.fromQuaternion=function(e,t){if(!l(e))throw new E("quaternion is required");l(t)||(t=new Ir);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-N.asinClamped(n),t};Ir.fromDegrees=function(e,t,n,i){if(!l(e))throw new E("heading is required");if(!l(t))throw new E("pitch is required");if(!l(n))throw new E("roll is required");return l(i)||(i=new Ir),i.heading=e*N.RADIANS_PER_DEGREE,i.pitch=t*N.RADIANS_PER_DEGREE,i.roll=n*N.RADIANS_PER_DEGREE,i};Ir.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Ir(e.heading,e.pitch,e.roll)};Ir.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Ir.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&N.equalsEpsilon(e.heading,t.heading,n,i)&&N.equalsEpsilon(e.pitch,t.pitch,n,i)&&N.equalsEpsilon(e.roll,t.roll,n,i)};Ir.prototype.clone=function(e){return Ir.clone(this,e)};Ir.prototype.equals=function(e){return Ir.equals(this,e)};Ir.prototype.equalsEpsilon=function(e,t,n){return Ir.equalsEpsilon(this,e,t,n)};Ir.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const N8=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function Joe(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(S_)||(S_=document.createElement("a")),S_.href=e,S_.href=S_.href,S_.href)}let Zp;function F8(){if(l(Zp))return Zp;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=HC("..",ln("Core/buildModuleUrl.js")):e=Joe(),!l(e))throw new E("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return Zp=new Re({url:M8(e)}),Zp.appendForwardSlash(),Zp}function Qoe(e){return M8(require.toUrl(`../${e}`))}function z8(e){return F8().getDerivedResource({url:e}).url}let sb;function ln(e){return l(sb)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?sb=Qoe:sb=z8),sb(e)}ln._cesiumScriptRegex=N8;ln._buildModuleUrlFromBaseUrl=z8;ln._clearBaseResource=function(){Zp=void 0};ln.setBaseUrl=function(e){Zp=Re.DEFAULT.getDerivedResource({url:e})};ln.getCesiumBaseUrl=F8;function U8(e,t,n){this.x=e,this.y=t,this.s=n}function zB(e){e=y(e,y.EMPTY_OBJECT),this._xysFileUrlTemplate=Re.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=y(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=y(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ne(this._sampleZeroJulianEphemerisDate,0,Mn.TAI),this._stepSizeDays=y(e.stepSizeDays,1),this._samplesPerXysFile=y(e.samplesPerXysFile,1e3),this._totalSamples=y(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Zoe=new ne(0,0,Mn.TAI);function ZO(e,t,n){const i=Zoe;return i.dayNumber=t,i.secondsOfDay=n,ne.daysDifference(i,e._sampleZeroDateTT)}zB.prototype.preload=function(e,t,n,i){const o=ZO(this,e,t),r=ZO(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,f=[];for(let h=c;h<=u;++h)f.push(e1(this,h));return Promise.all(f)};zB.prototype.computeXysRadians=function(e,t,n){const i=ZO(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(e1(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(e1(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new U8(0,0,0);const f=i-s*this._stepSizeDays,h=this._work,_=this._denominators,g=this._coef,p=this._xTable;let A,C;for(A=0;A<=r;++A)h[A]=f-p[A];for(A=0;A<=r;++A){for(g[A]=1,C=0;C<=r;++C)C!==A&&(g[A]*=h[C]);g[A]*=_[A];let b=(s+A)*3;n.x+=g[A]*u[b++],n.y+=g[A]*u[b++],n.s+=g[A]*u[b]}return n};function e1(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Re({url:ln(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,f=a.length;u=43200?o=(r+.5)/yi.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/yi.DAYS_PER_JULIAN_CENTURY;const a=(ure+o*(fre+o*(dre+o*hre)))*_re%N.TWO_PI,c=mre+pre*(n-24515455e-1),u=(i+yi.SECONDS_PER_DAY*.5)%yi.SECONDS_PER_DAY,f=a+c*u,h=Math.cos(f),_=Math.sin(f);return l(t)?(t[0]=h,t[1]=-_,t[2]=0,t[3]=_,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,_,0,-_,h,0,0,0,1)};ai.iau2006XysData=new zB;ai.earthOrientationParameters=JA.NONE;const t1=32.184,gre=2451545;ai.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+t1,i=e.stop.dayNumber,o=e.stop.secondsOfDay+t1;return ai.iau2006XysData.preload(t,n,i,o)};ai.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new E("date is required.");l(t)||(t=new J);const n=ai.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const yre=new U8(0,0,0),Are=new PB(0,0,0,0,0),_D=new J,gD=new J;ai.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new E("date is required.");l(t)||(t=new J);const n=ai.earthOrientationParameters.compute(e,Are);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+t1,r=ai.iau2006XysData.computeXysRadians(i,o,yre);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=_D;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const f=J.fromRotationZ(-r.s,gD),h=J.multiply(u,f,_D),_=e.dayNumber,g=e.secondsOfDay-ne.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=_-2451545,A=g/yi.SECONDS_PER_DAY;let C=.779057273264+A+.00273781191135448*(p+A);C=C%1*N.TWO_PI;const b=J.fromRotationZ(C,gD),x=J.multiply(h,b,_D),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),L=Math.sin(n.yPoleWander);let H=i-gre+o/yi.SECONDS_PER_DAY;H/=36525;const R=-47e-6*H*N.RADIANS_PER_DEGREE/3600,z=Math.cos(R),U=Math.sin(R),v=gD;return v[0]=w*z,v[1]=w*U,v[2]=P,v[3]=-S*U+L*P*z,v[4]=S*z+L*P*U,v[5]=-L*w,v[6]=-L*U-S*P*z,v[7]=L*z-S*P*U,v[8]=S*w,J.multiply(x,v,t)};const Cre=new oe;ai.pointToWindowCoordinates=function(e,t,n,i){return i=ai.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};ai.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new E("modelViewProjectionMatrix is required.");if(!l(t))throw new E("viewportTransformation is required.");if(!l(n))throw new E("point is required.");l(i)||(i=new j);const o=Cre;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const Tre=new d,bre=new d,Ere=new d;ai.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new E("position is required.");if(!l(t))throw new E("velocity is required.");const o=y(n,pe.WGS84).geodeticSurfaceNormal(e,Tre);let r=d.cross(t,o,bre);d.equalsEpsilon(r,d.ZERO,N.EPSILON6)&&(r=d.clone(d.UNIT_X,r));const s=d.cross(r,t,Ere);return d.normalize(s,s),d.cross(t,s,r),d.negate(r,r),d.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const H8=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),V8=new Ae,k8=new d,xre=new d,wre=new J,n1=new B,G8=new B;ai.basisTo2D=function(e,t,n){if(!l(e))throw new E("projection is required.");if(!l(t))throw new E("matrix is required.");if(!l(n))throw new E("result is required.");const i=B.getTranslation(t,xre),o=e.ellipsoid,r=o.cartesianToCartographic(i,V8),s=e.project(r,k8);d.fromElements(s.z,s.x,s.y,s);const a=ai.eastNorthUpToFixedFrame(i,o,n1),c=B.inverseTransformation(a,G8),u=B.getMatrix3(t,wre),f=B.multiplyByMatrix3(c,u,n);return B.multiply(H8,f,n),B.setTranslation(n,s,n),n};ai.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new E("projection is required.");if(!l(t))throw new E("center is required.");if(!l(n))throw new E("result is required.");const i=e.ellipsoid,o=ai.eastNorthUpToFixedFrame(t,i,n1),r=B.inverseTransformation(o,G8),s=i.cartesianToCartographic(t,V8),a=e.project(s,k8);d.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,n1);return B.multiply(H8,r,n),B.multiply(c,n,n),n};const Qt=ai;function vt(e){e=y(e,y.EMPTY_OBJECT),T.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=y(e.primitiveType,Je.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=y(e.geometryType,yg.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}vt.computeNumberOfVertices=function(e){T.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new E("All attribute lists must have the same number of attributes.");t=o}return t};const Sre=new Ae,vre=new d,JF=new B,Dre=[new Ae,new Ae,new Ae],Ire=[new j,new j,new j],Pre=[new j,new j,new j],Ore=new d,Lre=new Ce,Bre=new B,Rre=new at;vt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=_e.center(i,Sre),s=Ae.toCartesian(r,n,vre),a=Qt.eastNorthUpToFixedFrame(s,n,JF),c=B.inverse(a,JF),u=Ire,f=Dre;f[0].longitude=i.west,f[0].latitude=i.south,f[1].longitude=i.west,f[1].latitude=i.north,f[2].longitude=i.east,f[2].latitude=i.south;let h=Ore;for(o=0;o<3;o++)Ae.toCartesian(f[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const _=Ce.fromAxisAngle(d.UNIT_Z,-t,Lre),g=J.fromQuaternion(_,Bre),p=e.length;let A=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,x=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new E("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new E("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=y(e.normalize,!1),this.values=e.values}function oy(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(oy.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});oy.clone=function(e){if(l(e))return new oy(e._format,e._datatype,e._width,e._height,e._buffer)};oy.prototype.clone=function(){return oy.clone(this)};function W8(){if(!l(xi._canTransferArrayBuffer)){const e=new Worker(q8("Workers/transferTypedArrayTest.js"));e.postMessage=y(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return xi._canTransferArrayBuffer=!1,xi._canTransferArrayBuffer}const i=np();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),xi._canTransferArrayBuffer=s},xi._canTransferArrayBuffer=i.promise}return xi._canTransferArrayBuffer}const i1=new Xe;function j8(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Se(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new E(t.error.message),r.stack=t.error.stack),i1.raiseEvent(r),o.reject(r)}else i1.raiseEvent(),o.resolve(t.result);delete i[n]}function q8(e){let t=ln(e);if(D8(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let yD;function Nre(){return l(yD)||(yD=q8("Workers/cesiumWorkerBootstrapper.js")),yD}function Y8(e){const t=new Worker(Nre());t.postMessage=y(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:ln("Workers")},baseUrl:ln.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){j8(e,i.data)},t}function Mre(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!an.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Se(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=ln(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=ln(t.modulePath),n.wasmBinaryFile=ln(t.wasmBinaryFile),Re.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function xi(e,t){const n=new us(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:xi._workerModulePrefix+e,this._maximumActiveTasks=y(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const Fre=[];xi.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=Y8(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(W8()).then(function(i){l(t)?i||(t.length=0):t=Fre;const o=n._nextID++,r=np();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};xi.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=Y8(this));const t=np(),n=this,i=this._worker;return Mre(this,e).then(function(o){return Promise.resolve(W8()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){j8(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};xi.prototype.isDestroyed=function(){return!1};xi.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),Ue(this)};xi.taskCompletedEvent=i1;xi._defaultWorkerModulePrefix="Workers/";xi._workerModulePrefix=xi._defaultWorkerModulePrefix;xi._canTransferArrayBuffer=void 0;function Rf(){}Rf._transcodeTaskProcessor=new xi("transcodeKTX2",Number.POSITIVE_INFINITY);Rf._readyPromise=void 0;function zre(){const e=Rf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return Rf._transcodeTaskProcessor});Rf._readyPromise=e}Rf.transcode=function(e,t){return T.defined("supportedTargetFormats",t),l(Rf._readyPromise)||zre(),Rf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new E("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new E("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._size,h=this._pixelFormat,_=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,A=this._flipY,C=y(e.skipColorSpaceConversion,!1);let b=4;l(u)&&(b=nt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,b),C?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let x=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===f)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),A&&(u=nt.flipY(u,h,g,f,f)),o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,A),o.texImage2D(s,0,_,h,Ke.toWebGLConstant(g,this._context),i)),x=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=nt.createTypedArray(h,g,f,f);o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),w)}this._initialized=!0}x||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),A&&(u=nt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,A),o.texSubImage2D(s,0,t,n,h,Ke.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Tf.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=y(e,0),t=y(t,0),n=y(n,0),i=y(i,0),o=y(o,this._size),r=y(r,this._size),T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new E("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new E("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Ke.FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const tx={DONT_CARE:se.DONT_CARE,FASTEST:se.FASTEST,NICEST:se.NICEST,validate:function(e){return e===tx.DONT_CARE||e===tx.FASTEST||e===tx.NICEST}},ry=Object.freeze(tx),nx={NEAREST:se.NEAREST,LINEAR:se.LINEAR};nx.validate=function(e){return e===nx.NEAREST||e===nx.LINEAR};const Pr=Object.freeze(nx),Jd={NEAREST:se.NEAREST,LINEAR:se.LINEAR,NEAREST_MIPMAP_NEAREST:se.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:se.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:se.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:se.LINEAR_MIPMAP_LINEAR};Jd.validate=function(e){return e===Jd.NEAREST||e===Jd.LINEAR||e===Jd.NEAREST_MIPMAP_NEAREST||e===Jd.LINEAR_MIPMAP_NEAREST||e===Jd.NEAREST_MIPMAP_LINEAR||e===Jd.LINEAR_MIPMAP_LINEAR};const _n=Object.freeze(Jd),ix={CLAMP_TO_EDGE:se.CLAMP_TO_EDGE,REPEAT:se.REPEAT,MIRRORED_REPEAT:se.MIRRORED_REPEAT,validate:function(e){return e===ix.CLAMP_TO_EDGE||e===ix.REPEAT||e===ix.MIRRORED_REPEAT}},Ci=Object.freeze(ix);function jn(e){e=y(e,y.EMPTY_OBJECT);const t=y(e.wrapS,Ci.CLAMP_TO_EDGE),n=y(e.wrapT,Ci.CLAMP_TO_EDGE),i=y(e.minificationFilter,_n.LINEAR),o=y(e.magnificationFilter,Pr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Ci.validate(t))throw new E("Invalid sampler.wrapS.");if(!Ci.validate(n))throw new E("Invalid sampler.wrapT.");if(!_n.validate(i))throw new E("Invalid sampler.minificationFilter.");if(!Pr.validate(o))throw new E("Invalid sampler.magnificationFilter.");T.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(jn.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});jn.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};jn.NEAREST=Object.freeze(new jn({wrapS:Ci.CLAMP_TO_EDGE,wrapT:Ci.CLAMP_TO_EDGE,minificationFilter:_n.NEAREST,magnificationFilter:Pr.NEAREST}));function kl(e){e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const x=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!x[0]||!x[1]||!x[2]||!x[3]||!x[4]||!x[5])throw new E("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=x[0].width,o=x[0].height;for(let w=1;w<6;++w)if(Number(x[w].width)!==i||Number(x[w].height)!==o)throw new E("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=y(e.pixelDatatype,Ke.UNSIGNED_BYTE),a=y(e.pixelFormat,nt.RGBA),c=nt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new E("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new E("Width must equal height.");if(r<=0)throw new E("Width and height must be greater than zero.");if(r>xt.maximumCubeMapSize)throw new E(`Width and height must be less than or equal to the maximum cube map size (${xt.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!nt.validate(a))throw new E("Invalid options.pixelFormat.");if(nt.isDepthFormat(a))throw new E("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Ke.validate(s))throw new E("Invalid options.pixelDatatype.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new E("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new E("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=nt.textureSizeInBytes(a,s,r,r)*6,f=e.preMultiplyAlpha||a===nt.RGB||a===nt.LUMINANCE,h=y(e.flipY,!0),_=y(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,A=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,A);function C(x,w,S,P,L){let H=w.arrayBufferView;l(H)||(H=w.bufferView);let R=4;l(H)&&(R=nt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),L?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(H)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(H=nt.flipY(H,a,s,r,r)),g.texImage2D(x,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),H)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(x,0,c,a,Ke.toWebGLConstant(s,t),w))}l(n)?(C(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,f,h,_)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=A,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=f,this._flipY=h,this._sampler=void 0;const b=l(n);this._positiveX=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,f,h,b),this._negativeX=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,f,h,b),this._positiveY=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,f,h,b),this._negativeY=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,f,h,b),this._positiveZ=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,f,h,b),this._negativeZ=new Tf(t,A,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,f,h,b),this.sampler=l(e.sampler)?e.sampler:new jn}Object.defineProperties(kl.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===_n.NEAREST_MIPMAP_NEAREST||t===_n.NEAREST_MIPMAP_LINEAR||t===_n.LINEAR_MIPMAP_NEAREST||t===_n.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Ke.FLOAT&&!o.textureFloatLinear||r===Ke.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?_n.NEAREST_MIPMAP_NEAREST:_n.NEAREST,n=Pr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});kl.prototype.generateMipmap=function(e){if(e=y(e,ry.DONT_CARE),this._size>1&&!N.isPowerOfTwo(this._size))throw new E("width and height must be a power of two to call generateMipmap().");if(!ry.validate(e))throw new E("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};kl.prototype.isDestroyed=function(){return!1};kl.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=Ue(this._positiveX),this._negativeX=Ue(this._negativeX),this._positiveY=Ue(this._positiveY),this._negativeY=Ue(this._negativeY),this._positiveZ=Ue(this._positiveZ),this._negativeZ=Ue(this._negativeZ),Ue(this)};function $m(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function Ure(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` `);if(/#version 300 es/g.test(e))return e;let o=-1,r,s;for(r=0;r=0;S--)i.splice(b,0,`#endif //${x[S]}`)}const h="WEBGL_2",_=`#define ${h}`,g="#version 300 es";let p=!1;for(r=0;r=0}):n[h]=o.slice())}}return n}function AD(e,t,n){const i=`#extension\\s+GL_${e}\\s+:\\s+[a-zA-Z0-9]+\\s*$`;Hre(new RegExp(i,"g"),"",n),lu(`GL_${e}`,t,n)}const Wre=`/** * A built-in GLSL floating-point constant for converting radians to degrees. @@ -3513,7 +3513,7 @@ void main() } gl_FragColor = czm_pickColor; }`;return`${n} -${i}`};function pce(e,t){const n=e.defines,i=n.length;for(let o=0;o-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};Gl.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};Gl.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new Ge({sources:[r]})),typeof s=="string"&&(s=new Ge({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),f=s.createCombinedFragmentShader(c),h=new un({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:f,attributeLocations:a}),_={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=_,this._shaders[o]=_,h};function UB(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;oxt.maximumTextureSize)throw new E(`Width must be less than or equal to the maximum texture size (${xt.maximumTextureSize}). Check maximumTextureSize.`);if(T.typeOf.number.greaterThan("height",i,0),i>xt.maximumTextureSize)throw new E(`Height must be less than or equal to the maximum texture size (${xt.maximumTextureSize}). Check maximumTextureSize.`);if(!nt.validate(r))throw new E("Invalid options.pixelFormat.");if(!c&&!Ke.validate(s))throw new E("Invalid options.pixelDatatype.");if(r===nt.DEPTH_COMPONENT&&s!==Ke.UNSIGNED_SHORT&&s!==Ke.UNSIGNED_INT)throw new E("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===nt.DEPTH_STENCIL&&s!==Ke.UNSIGNED_INT_24_8)throw new E("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new E("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new E("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(nt.isDepthFormat(r)){if(l(o))throw new E("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new E("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new E("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(nt.isDXTFormat(a)&&!t.s3tc)throw new E("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(nt.isPVRTCFormat(a)&&!t.pvrtc)throw new E("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(nt.isASTCFormat(a)&&!t.astc)throw new E("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(nt.isETC2Format(a)&&!t.etc)throw new E("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(nt.isETC1Format(a)&&!t.etc1)throw new E("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(nt.isBC7Format(a)&&!t.bc7)throw new E("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(nt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new E("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===nt.RGB||r===nt.LUMINANCE,f=y(e.flipY,!0),h=y(e.skipColorSpaceConversion,!1);let _=!0;const g=t._gl,p=g.TEXTURE_2D,A=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,A);let C=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(C=nt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,C),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let x=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,x),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new E("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new E("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new Ft({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(Ft.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===_n.NEAREST_MIPMAP_NEAREST||t===_n.NEAREST_MIPMAP_LINEAR||t===_n.LINEAR_MIPMAP_NEAREST||t===_n.LINEAR_MIPMAP_LINEAR;(r===Ke.FLOAT&&!i.textureFloatLinear||r===Ke.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?_n.NEAREST_MIPMAP_NEAREST:_n.NEAREST,n=Pr.NEAREST),i.webgl2&&nt.isDepthFormat(o)&&(t=_n.NEAREST,n=Pr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});Ft.prototype.copyFrom=function(e){T.defined("options",e);const t=y(e.xOffset,0),n=y(e.yOffset,0);if(T.defined("options.source",e.source),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",t,0),T.typeOf.number.greaterThanOrEquals("yOffset",n,0),T.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),T.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._width,h=this._height,_=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,A=this._preMultiplyAlpha,C=this._flipY,b=y(e.skipColorSpaceConversion,!1);let x=4;l(u)&&(x=nt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,x),b?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,f,h)),r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texImage2D(s,0,_,g,Ke.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=nt.createTypedArray(g,p,f,h);r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texSubImage2D(s,0,t,n,g,Ke.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};Ft.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=y(e,0),t=y(t,0),n=y(n,0),i=y(i,0),o=y(o,this._width),r=y(r,this._height),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Ke.FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),T.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),T.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};Ft.prototype.generateMipmap=function(e){if(e=y(e,ry.DONT_CARE),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!N.isPowerOfTwo(this._width))throw new E("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!N.isPowerOfTwo(this._height))throw new E("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!ry.validate(e))throw new E("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};Ft.prototype.isDestroyed=function(){return!1};Ft.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),Ue(this)};function Km(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(Km.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});Km.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};Km.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};Km.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};Km.prototype.isDestroyed=function(){return!1};Km.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return Ue(this)};function En(){this.high=d.clone(d.ZERO),this.low=d.clone(d.ZERO)}En.encode=function(e,t){T.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const ff={high:0,low:0};En.fromCartesian=function(e,t){T.typeOf.object("cartesian",e),l(t)||(t=new En);const n=t.high,i=t.low;return En.encode(e.x,ff),n.x=ff.high,i.x=ff.low,En.encode(e.y,ff),n.y=ff.high,i.y=ff.low,En.encode(e.z,ff),n.z=ff.high,i.z=ff.low,t};const TD=new En;En.writeElements=function(e,t,n){T.defined("cartesianArray",t),T.typeOf.number("index",n),T.typeOf.number.greaterThanOrEquals("index",n,0),En.fromCartesian(e,TD);const i=TD.high,o=TD.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function wt(e,t){if(T.typeOf.object("normal",e),!N.equalsEpsilon(d.magnitude(e),1,N.EPSILON6))throw new E("normal must be normalized.");T.typeOf.number("distance",t),this.normal=d.clone(e),this.distance=t}wt.fromPointNormal=function(e,t,n){if(T.typeOf.object("point",e),T.typeOf.object("normal",t),!N.equalsEpsilon(d.magnitude(t),1,N.EPSILON6))throw new E("normal must be normalized.");const i=-d.dot(t,e);return l(n)?(d.clone(t,n.normal),n.distance=i,n):new wt(t,i)};const yce=new d;wt.fromCartesian4=function(e,t){T.typeOf.object("coefficients",e);const n=d.fromCartesian4(e,yce),i=e.w;if(!N.equalsEpsilon(d.magnitude(n),1,N.EPSILON6))throw new E("normal must be normalized.");return l(t)?(d.clone(n,t.normal),t.distance=i,t):new wt(n,i)};wt.getPointDistance=function(e,t){return T.typeOf.object("plane",e),T.typeOf.object("point",t),d.dot(e.normal,t)+e.distance};const Ace=new d;wt.projectPointOntoPlane=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("point",t),l(n)||(n=new d);const i=wt.getPointDistance(e,t),o=d.multiplyByScalar(e.normal,i,Ace);return d.subtract(t,o,n)};const Cce=new B,Tce=new oe,bce=new d;wt.transform=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,Cce);let s=oe.fromElements(i.x,i.y,i.z,o,Tce);s=B.multiplyByVector(r,s,s);const a=d.fromCartesian4(s,bce);return s=oe.divideByScalar(s,d.magnitude(a),s),wt.fromCartesian4(s,n)};wt.clone=function(e,t){return T.typeOf.object("plane",e),l(t)?(d.clone(e.normal,t.normal),t.distance=e.distance,t):new wt(e.normal,e.distance)};wt.equals=function(e,t){return T.typeOf.object("left",e),T.typeOf.object("right",t),e.distance===t.distance&&d.equals(e.normal,t.normal)};wt.ORIGIN_XY_PLANE=Object.freeze(new wt(d.UNIT_Z,0));wt.ORIGIN_YZ_PLANE=Object.freeze(new wt(d.UNIT_X,0));wt.ORIGIN_ZX_PLANE=Object.freeze(new wt(d.UNIT_Y,0));function Go(e){this.planes=y(e,[])}const QA=[new d,new d,new d];d.clone(d.UNIT_X,QA[0]);d.clone(d.UNIT_Y,QA[1]);d.clone(d.UNIT_Z,QA[2]);const Nd=new d,Ece=new d,t6=new wt(new d(1,0,0),0);Go.fromBoundingSphere=function(e,t){if(!l(e))throw new E("boundingSphere is required.");l(t)||(t=new Go);const n=QA.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new E("right must be greater than left.");if(e.bottom>e.top)throw new E("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new E("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(So.prototype,{projectionMatrix:{get:function(){return n6(this),this._orthographicMatrix}}});const xce=new d,wce=new d,Sce=new d,bD=new d;So.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new E("position is required.");if(!l(t))throw new E("direction is required.");if(!l(n))throw new E("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,f=d.cross(t,n,xce);d.normalize(f,f);const h=wce;d.multiplyByScalar(t,c,h),d.add(e,h,h);const _=Sce;d.multiplyByScalar(f,a,_),d.add(h,_,_);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=f.x,g.y=f.y,g.z=f.z,g.w=-d.dot(f,_),d.multiplyByScalar(f,s,_),d.add(h,_,_),g=i[1],l(g)||(g=i[1]=new oe),g.x=-f.x,g.y=-f.y,g.z=-f.z,g.w=-d.dot(d.negate(f,bD),_),d.multiplyByScalar(n,r,_),d.add(h,_,_),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-d.dot(n,_),d.multiplyByScalar(n,o,_),d.add(h,_,_),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-d.dot(d.negate(n,bD),_),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-d.dot(t,h),d.multiplyByScalar(t,u,_),d.add(e,_,_),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-d.dot(d.negate(t,bD),_),this._cullingVolume};So.prototype.getPixelDimensions=function(e,t,n,i,o){if(n6(this),!l(e)||!l(t))throw new E("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new E("drawingBufferWidth must be greater than zero.");if(t<=0)throw new E("drawingBufferHeight must be greater than zero.");if(!l(n))throw new E("distance is required.");if(!l(i))throw new E("pixelRatio is required.");if(i<=0)throw new E("pixelRatio must be greater than zero.");if(!l(o))throw new E("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};So.prototype.clone=function(e){return l(e)||(e=new So),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};So.prototype.equals=function(e){return l(e)&&e instanceof So&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};So.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof So&&N.equalsEpsilon(this.right,e.right,t,n)&&N.equalsEpsilon(this.left,e.left,t,n)&&N.equalsEpsilon(this.top,e.top,t,n)&&N.equalsEpsilon(this.bottom,e.bottom,t,n)&&N.equalsEpsilon(this.near,e.near,t,n)&&N.equalsEpsilon(this.far,e.far,t,n)};function Mt(e){e=y(e,y.EMPTY_OBJECT),this._offCenterFrustum=new So,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=y(e.near,1),this._near=this.near,this.far=y(e.far,5e8),this._far=this.far}Mt.packedLength=4;Mt.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Mt.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new Mt),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function wm(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new E("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new E("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new E("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Mt.prototype,{projectionMatrix:{get:function(){return wm(this),this._offCenterFrustum.projectionMatrix}}});Mt.prototype.computeCullingVolume=function(e,t,n){return wm(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Mt.prototype.getPixelDimensions=function(e,t,n,i,o){return wm(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Mt.prototype.clone=function(e){return l(e)||(e=new Mt),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Mt.prototype.equals=function(e){return!l(e)||!(e instanceof Mt)?!1:(wm(this),wm(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Mt.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Mt)?!1:(wm(this),wm(e),N.equalsEpsilon(this.width,e.width,t,n)&&N.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const HB={};function vce(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const Dce=32.184,Ice=2451545;function i6(e,t){t=ne.addSeconds(e,Dce,t);const n=ne.totalDays(t)-Ice;return t=ne.addSeconds(t,vce(n),t),t}const iw=new ne(2451545,0,Mn.TAI),Pce=1e3,yc=N.RADIANS_PER_DEGREE,Ia=N.RADIANS_PER_ARCSECOND,hs=14959787e4,ZF=new J;function o6(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=N.PI),n<0||n>N.PI)throw new E("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,f=Lce(r-i,t);if(Oce(t,0)==="Hyperbolic"&&Math.abs(N.negativePiToPi(f))>=Math.acos(-1/t))throw new E("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");Mce(c,n,u,ZF);const _=a*(1+t),g=Math.cos(f),p=Math.sin(f),A=1+t*g;if(A<=N.Epsilon10)throw new E("elements cannot be converted to cartesian");const C=_/A;return l(s)?(s.x=C*g,s.y=C*p,s.z=0):s=new d(C*g,C*p,0),J.multiplyByVector(ZF,s,s)}function Oce(e,t){if(e<0)throw new E("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function Lce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Rce(e,t);return Nce(n,t)}const e2=50,Bce=N.EPSILON8;function Rce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rBce;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=e2)throw new E("Kepler equation did not converge");return o=i+n*N.TWO_PI,o}function Nce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=N.zeroToTwoPi(r),e<0&&(r-=N.TWO_PI),r+=n*N.TWO_PI,r}function Mce(e,t,n,i){if(t<0||t>N.PI)throw new E("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const Fce=1.0000010178*hs,zce=100.46645683*yc,Uce=129597742283429e-5*Ia,t2=16002,n2=21863,i2=32004,o2=10931,r2=14529,s2=16368,a2=15318,c2=32794,Hce=64*1e-7*hs,Vce=-152*1e-7*hs,kce=62*1e-7*hs,Gce=-8*1e-7*hs,Wce=32*1e-7*hs,jce=-41*1e-7*hs,qce=19*1e-7*hs,Yce=-11*1e-7*hs,Xce=-150*1e-7*hs,$ce=-46*1e-7*hs,Kce=68*1e-7*hs,Jce=54*1e-7*hs,Qce=14*1e-7*hs,Zce=24*1e-7*hs,ele=-28*1e-7*hs,tle=22*1e-7*hs,l2=10,u2=16002,f2=21863,d2=10931,h2=1473,p2=32004,m2=4387,_2=73,nle=-325*1e-7,ile=-322*1e-7,ole=-79*1e-7,rle=232*1e-7,sle=-52*1e-7,ale=97*1e-7,cle=55*1e-7,lle=-41*1e-7,ule=-105*1e-7,fle=-137*1e-7,dle=258*1e-7,hle=35*1e-7,ple=-116*1e-7,mle=-88*1e-7,_le=-112*1e-7,gle=-80*1e-7,Lg=new ne(0,0,Mn.TAI);function yle(e,t){i6(e,Lg);const i=(Lg.dayNumber-iw.dayNumber+(Lg.secondsOfDay-iw.secondsOfDay)/yi.SECONDS_PER_DAY)/(yi.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=Fce+Hce*Math.cos(t2*o)+Xce*Math.sin(t2*o)+Vce*Math.cos(n2*o)+$ce*Math.sin(n2*o)+kce*Math.cos(i2*o)+Kce*Math.sin(i2*o)+Gce*Math.cos(o2*o)+Jce*Math.sin(o2*o)+Wce*Math.cos(r2*o)+Qce*Math.sin(r2*o)+jce*Math.cos(s2*o)+Zce*Math.sin(s2*o)+qce*Math.cos(a2*o)+ele*Math.sin(a2*o)+Yce*Math.cos(c2*o)+tle*Math.sin(c2*o),s=zce+Uce*i+nle*Math.cos(l2*o)+ule*Math.sin(l2*o)+ile*Math.cos(u2*o)+fle*Math.sin(u2*o)+ole*Math.cos(f2*o)+dle*Math.sin(f2*o)+rle*Math.cos(d2*o)+hle*Math.sin(d2*o)+sle*Math.cos(h2*o)+ple*Math.sin(h2*o)+ale*Math.cos(p2*o)+mle*Math.sin(p2*o)+cle*Math.cos(m2*o)+_le*Math.sin(m2*o)+lle*Math.cos(_2*o)+gle*Math.sin(_2*o),a=.0167086342-.0004203654*i,c=102.93734808*yc+11612.3529*Ia*i,u=469.97289*Ia*i,f=174.87317577*yc-8679.27034*Ia*i;return o6(r,a,u,c,f,s,t)}function r6(e,t){i6(e,Lg);const i=(Lg.dayNumber-iw.dayNumber+(Lg.secondsOfDay-iw.secondsOfDay)/yi.SECONDS_PER_DAY)/yi.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*yc;let f=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*yc;let _=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*yc;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const A=218.31664563*yc;let C=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const b=297.85019547*yc+Ia*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),x=93.27209062*yc+Ia*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*yc+Ia*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*yc+Ia*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*yc-Ia*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),L=2*b,H=4*b,R=6*b,z=2*w,U=3*w,v=4*w,I=2*x;a+=3400.4*Math.cos(L)-635.6*Math.cos(L-w)-235.6*Math.cos(w)+218.1*Math.cos(L-S)+181*Math.cos(L+w),c+=.014216*Math.cos(L-w)+.008551*Math.cos(L-z)-.001383*Math.cos(w)+.001356*Math.cos(L+w)-.001147*Math.cos(H-U)-914e-6*Math.cos(H-z)+869e-6*Math.cos(L-S-w)-627e-6*Math.cos(L)-394e-6*Math.cos(H-v)+282e-6*Math.cos(L-S-z)-279e-6*Math.cos(b-w)-236e-6*Math.cos(z)+231e-6*Math.cos(H)+229e-6*Math.cos(R-v)-201e-6*Math.cos(z-I),f+=486.26*Math.cos(L-I)-40.13*Math.cos(L)+37.51*Math.cos(I)+25.73*Math.cos(z-I)+19.97*Math.cos(L-S-I),_+=-55609*Math.sin(L-w)-34711*Math.sin(L-z)-9792*Math.sin(w)+9385*Math.sin(H-U)+7505*Math.sin(H-z)+5318*Math.sin(L+w)+3484*Math.sin(H-v)-3417*Math.sin(L-S-w)-2530*Math.sin(R-v)-2376*Math.sin(L)-2075*Math.sin(L-U)-1883*Math.sin(z)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-U),p+=-5392*Math.sin(L-I)-540*Math.sin(S)-441*Math.sin(L)+423*Math.sin(I)-288*Math.sin(z-I),C+=-3332.9*Math.sin(L)+1197.4*Math.sin(L-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(L-S);const m=2*P,D=3*P;f+=46.997*Math.cos(P)*i-.614*Math.cos(L-I+P)*i+.614*Math.cos(L-I-P)*i-.0297*Math.cos(m)*o-.0335*Math.cos(P)*o+.0012*Math.cos(L-I+m)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(D)*r+4e-5*Math.cos(m)*r;const O=2.116*Math.sin(P)*i-.111*Math.sin(L-I-P)*i-.0015*Math.sin(P)*o;_+=O,C+=O,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(L-I+P)*i+1.12*Math.sin(L-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(m)*o+.371*Math.sin(P)*o-.035*Math.sin(L-I+m)*o-.015*Math.sin(L-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(D)*r-9e-4*Math.sin(m)*r,a*=Pce;const M=u+f*Ia,V=h+_*Ia,k=A+C*Ia,W=g+p*Ia;return o6(a,c,M,V,W,k,t)}const g2=.012300034,Ale=g2/(g2+1)*-1;function Cle(e,t){return t=r6(e,t),d.multiplyByScalar(t,Ale,t)}const s6=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let Zy=new d;HB.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),l(t)||(t=new d),Zy=yle(e,Zy),t=d.negate(Zy,t),Cle(e,Zy),d.subtract(t,Zy,t),J.multiplyByVector(s6,t,t),t};HB.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),t=r6(e,t),J.multiplyByVector(s6,t,t),t};const o1=HB,ox={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};ox.getMorphTime=function(e){return e===ox.SCENE3D?1:e===ox.MORPHING?void 0:0};const le=Object.freeze(ox);function yS(e){e=y(e,y.EMPTY_OBJECT),this.color=F.clone(y(e.color,F.WHITE)),this.intensity=y(e.intensity,2)}function Ey(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new qe,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new En,this._cameraPosition=new d,this._sunPositionWC=new d,this._sunPositionColumbusView=new d,this._sunDirectionWC=new d,this._sunDirectionEC=new d,this._moonDirectionEC=new d,this._lightDirectionWC=new d,this._lightDirectionEC=new d,this._lightColor=new d,this._lightColorHdr=new d,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new d,this._cameraRight=new d,this._cameraUp=new d,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new F,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(Ey.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!qe.equals(e,this._viewport)){qe.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return y2(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return y2(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return ED(this),this._view3D}},viewRotation:{get:function(){return ED(this),this._viewRotation}},viewRotation3D:{get:function(){return ED(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return T2(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return T2(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return Ple(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return Ole(this),this._modelView}},modelView3D:{get:function(){return Lle(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return zle(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return Ble(this),this._inverseModelView}},inverseModelView3D:{get:function(){return Rle(this),this._inverseModelView3D}},viewProjection:{get:function(){return Nle(this),this._viewProjection}},inverseViewProjection:{get:function(){return Mle(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return Fle(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return Ule(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return Hle(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return Vle(this),this._modelViewInfiniteProjection}},normal:{get:function(){return kle(this),this._normal}},normal3D:{get:function(){return Gle(this),this._normal3D}},inverseNormal:{get:function(){return Wle(this),this._inverseNormal}},inverseNormal3D:{get:function(){return jle(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return C2(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return C2(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return y(this._ellipsoid,pe.WGS84)}}});function Tle(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function ble(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function Ele(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function xle(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function wle(e,t){d.clone(t.positionWC,e._cameraPosition),d.clone(t.directionWC,e._cameraDirection),d.clone(t.rightWC,e._cameraRight),d.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let e0=new J;const Sle=new Ae;function vle(e,t){l(Qt.computeIcrfToFixedMatrix(t.time,e0))||(e0=Qt.computeTemeToPseudoFixedMatrix(t.time,e0));let n=o1.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(e0,n,n),d.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),d.normalize(n,n),n=o1.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(e0,n,n),J.multiplyByVector(e.viewRotation3D,n,n),d.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,Sle);i.project(r,e._sunPositionColumbusView)}Ey.prototype.updateCamera=function(e){Tle(this,e.viewMatrix),ble(this,e.inverseViewMatrix),wle(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Mt};Ey.prototype.updateFrustum=function(e){Ele(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&xle(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=N.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};Ey.prototype.updatePass=function(e){this._pass=e};const Dle=[],Ile=new yS;Ey.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),vle(this,e);const n=y(e.light,Ile);n instanceof yS?(this._lightDirectionWC=d.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=d.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=d.normalize(d.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=d.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=d.multiplyByScalar(o,n.intensity,o);const r=d.maximumComponent(o);r>1?d.divideByScalar(o,r,this._lightColor):d.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=y(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=y(e.sphericalHarmonicCoefficients,Dle),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=Qt.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let f;l(c)?u.height>u.width?f=Math.tan(.5*c)*2/u.height:f=Math.tan(.5*c)*2/u.width:f=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=f*e.maximumScreenSpaceError,F.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function y2(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function Ple(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function Ole(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function Lle(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function Ble(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function Rle(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function Nle(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function Mle(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function Fle(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function zle(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function Ule(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function Hle(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function Vle(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function kle(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function Gle(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function Wle(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function jle(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const A2=new d;function C2(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,A2),En.fromCartesian(A2,e._encodedCameraPositionMC))}const qle=new d,Yle=new d,Xle=new d,$le=new d,Kle=new Ae,Jle=new d,Qle=new B;function Zle(e,t,n,i,o,r,s,a){const c=qle;c.x=e.y,c.y=e.z,c.z=e.x;const u=Yle;u.x=n.y,u.y=n.z,u.z=n.x;const f=Xle;f.x=i.y,f.y=i.z,f.z=i.x;const h=$le;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const _=s.unproject(c,Kle);_.longitude=N.clamp(_.longitude,-Math.PI,Math.PI),_.latitude=N.clamp(_.latitude,-N.PI_OVER_TWO,N.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(_,Jle),A=Qt.eastNorthUpToFixedFrame(p,g,Qle);return B.multiplyByPointAsVector(A,u,u),B.multiplyByPointAsVector(A,f,f),B.multiplyByPointAsVector(A,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=f.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=f.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=f.z,a[10]=-h.z,a[11]=0,a[12]=-d.dot(u,p),a[13]=-d.dot(f,p),a[14]=d.dot(h,p),a[15]=1,a}function ED(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):Zle(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function T2(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function eue(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new E("attribute must have a vertexBuffer or a value.");if(o&&r)throw new E("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new E("attribute.value.length must be in the range [1, 4]."):new E("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new E("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new E("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new E("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new E("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new E("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new E("attribute zero cannot have an instanceDivisor greater than 0");const a={index:y(t.index,n),enabled:y(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:y(t.componentDatatype,ee.FLOAT),normalize:y(t.normalize,!1),offsetInBytes:y(t.offsetInBytes,0),strideInBytes:y(t.strideInBytes,0),instanceDivisor:y(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function a6(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=b2(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),f=a%u;f!==0&&(a+=u-f);const h=r*a,_=new ArrayBuffer(h),g={};for(t=0;t=N.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?_=yt.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:it.UNSIGNED_INT}):_=yt.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:it.UNSIGNED_SHORT})),new $i({context:t,attributes:f,indexBuffer:_})};Object.defineProperties($i.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});$i.prototype.getAttribute=function(e){return T.defined("index",e),this._attributes[e]};function iue(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=xt.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function oue(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Se("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Se("The browser supports WebGL, but initialization failed.");return r}function sue(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function aue(e,t,n,i){let o=`${sue(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=uue(this._originalGLContext,e?cue:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new Ft({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new Ft({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new Ft({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new kl({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return fue}}});function due(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new E(i)}}}function c6(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,Qe.partialApply(e._gl,o,t,r,n,i)}let VB;typeof WebGLRenderingContext<"u"&&(VB=[se.BACK]);function kB(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=VB;if(l(t))t._bind(),due(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const hue=new ji;wa.prototype.clear=function(e,t){e=y(e,hue),t=y(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(F.equals(this._clearColor,o)||(F.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=y(e.renderState,this._defaultRenderState);c6(this,a,t,!0);const c=y(e.framebuffer,t.framebuffer);kB(this,c),n.clear(i)};function pue(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new E("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");kB(e,t),c6(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function mue(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Je.validate(o))throw new E("drawCommand.primitiveType is required and must be valid.");if(T.defined("drawCommand.vertexArray",r),T.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&T.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),T.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new E("Instanced arrays extension is not supported");e._us.model=y(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=y(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=y(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}wa.prototype.draw=function(e,t,n,i){T.defined("drawCommand",e),T.defined("drawCommand.shaderProgram",e._shaderProgram),t=y(t,this._defaultPassState);const o=y(e._framebuffer,t.framebuffer),r=y(e._renderState,this._defaultRenderState);n=y(n,e._shaderProgram),i=y(i,e._uniformMap),pue(this,o,t,n,r),mue(this,e,n,i)};wa.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=VB;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=nt.createTypedArray(nt.RGBA,a,o,r);return kB(this,s),t.readPixels(n,i,o,r,nt.RGBA,Ke.toWebGLConstant(a,this),c),c};const l6={position:0,textureCoordinates:1};wa.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new vt({attributes:{position:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Je.TRIANGLES});e=$i.fromGeometry({context:this,geometry:t,attributeLocations:l6,bufferUsage:Ze.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};wa.prototype.createViewportQuadCommand=function(e,t){return t=y(t,y.EMPTY_OBJECT),new ft({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Je.TRIANGLES,renderState:t.renderState,shaderProgram:un.fromCache({context:this,vertexShaderSource:H5,fragmentShaderSource:e,attributeLocations:l6}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};wa.prototype.getObjectByPickColor=function(e){return T.defined("pickColor",e),this._pickObjects[e.toRgba()]};function GB(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(GB.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});GB.prototype.destroy=function(){delete this._pickObjects[this.key]};wa.prototype.createPickId=function(e){T.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Se("Out of unique Pick IDs.");return this._pickObjects[t]=e,new GB(this._pickObjects,t,F.fromRgba(t))};wa.prototype.isDestroyed=function(){return!1};wa.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),Ue(this)};wa._deprecationWarning=ep;function xy(e){e=y(e,y.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;T.defined("options.context",t),T.defined("options.width",n),T.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new E("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new E("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Dr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new Dr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}xy.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};xy.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};xy.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};xy.prototype.isDestroyed=function(){return!1};xy.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),Ue(this)};const ga={RGBA4:se.RGBA4,RGBA8:se.RGBA8,RGBA16F:se.RGBA16F,RGBA32F:se.RGBA32F,RGB5_A1:se.RGB5_A1,RGB565:se.RGB565,DEPTH_COMPONENT16:se.DEPTH_COMPONENT16,STENCIL_INDEX8:se.STENCIL_INDEX8,DEPTH_STENCIL:se.DEPTH_STENCIL,DEPTH24_STENCIL8:se.DEPTH24_STENCIL8,validate:function(e){return e===ga.RGBA4||e===ga.RGBA8||e===ga.RGBA16F||e===ga.RGBA32F||e===ga.RGB5_A1||e===ga.RGB565||e===ga.DEPTH_COMPONENT16||e===ga.STENCIL_INDEX8||e===ga.DEPTH_STENCIL||e===ga.DEPTH24_STENCIL8},getColorFormat:function(e){return e===se.FLOAT?ga.RGBA32F:e===se.HALF_FLOAT_OES?ga.RGBA16F:ga.RGBA8}},Df=Object.freeze(ga);function yl(e){e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context);const n=e.context._gl,i=xt.maximumRenderbufferSize,o=y(e.format,Df.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=y(e.numSamples,1);if(!Df.validate(o))throw new E("Invalid format.");if(T.typeOf.number.greaterThan("width",r,0),r>i)throw new E(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(T.typeOf.number.greaterThan("height",s,0),s>i)throw new E(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(yl.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});yl.prototype._getRenderbuffer=function(){return this._renderbuffer};yl.prototype.isDestroyed=function(){return!1};yl.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),Ue(this)};function Cn(e){if(e=y(e,y.EMPTY_OBJECT),this._numSamples=y(e.numSamples,1),this._colorAttachmentsLength=y(e.colorAttachmentsLength,1),this._color=y(e.color,!0),this._depth=y(e.depth,!1),this._depthStencil=y(e.depthStencil,!1),this._supportsDepthTexture=y(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new E("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new E("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=y(e.createColorAttachments,!0),this._createDepthAttachments=y(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Cn.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Cn.prototype.isDirty=function(e,t,n,i,o){n=y(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};Cn.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new E("width and height must be defined.");if(i=e.msaa?y(i,1):1,o=y(o,this._color?y(this._pixelDatatype,Ke.UNSIGNED_BYTE):void 0),r=y(r,this._color?y(this._pixelFormat,nt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=Df.getColorFormat(o);this._colorRenderbuffers[s]=new yl({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new Ft({context:e,width:t,height:n,pixelFormat:nt.DEPTH_STENCIL,pixelDatatype:Ke.UNSIGNED_INT_24_8,sampler:jn.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new Ft({context:e,width:t,height:n,pixelFormat:nt.DEPTH_COMPONENT,pixelDatatype:Ke.UNSIGNED_INT,sampler:jn.NEAREST}):this._depthRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new xy({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Dr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Cn.prototype.getColorTexture=function(e){if(e=y(e,0),e>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");return this._colorTextures[e]};Cn.prototype.setColorTexture=function(e,t){if(t=y(t,0),this._createColorAttachments)throw new E("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Cn.prototype.getColorRenderbuffer=function(e){if(e=y(e,0),e>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};Cn.prototype.setColorRenderbuffer=function(e,t){if(t=y(t,0),this._createColorAttachments)throw new E("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Cn.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Cn.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Cn.prototype.getDepthTexture=function(){return this._depthTexture};Cn.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Cn.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Cn.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Cn.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Cn.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Cn.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Cn.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Cn.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Cn.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};Gl.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};Gl.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new Ge({sources:[r]})),typeof s=="string"&&(s=new Ge({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),f=s.createCombinedFragmentShader(c),h=new un({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:f,attributeLocations:a}),_={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=_,this._shaders[o]=_,h};function UB(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;oxt.maximumTextureSize)throw new E(`Width must be less than or equal to the maximum texture size (${xt.maximumTextureSize}). Check maximumTextureSize.`);if(T.typeOf.number.greaterThan("height",i,0),i>xt.maximumTextureSize)throw new E(`Height must be less than or equal to the maximum texture size (${xt.maximumTextureSize}). Check maximumTextureSize.`);if(!nt.validate(r))throw new E("Invalid options.pixelFormat.");if(!c&&!Ke.validate(s))throw new E("Invalid options.pixelDatatype.");if(r===nt.DEPTH_COMPONENT&&s!==Ke.UNSIGNED_SHORT&&s!==Ke.UNSIGNED_INT)throw new E("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===nt.DEPTH_STENCIL&&s!==Ke.UNSIGNED_INT_24_8)throw new E("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new E("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new E("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(nt.isDepthFormat(r)){if(l(o))throw new E("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new E("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new E("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(nt.isDXTFormat(a)&&!t.s3tc)throw new E("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(nt.isPVRTCFormat(a)&&!t.pvrtc)throw new E("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(nt.isASTCFormat(a)&&!t.astc)throw new E("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(nt.isETC2Format(a)&&!t.etc)throw new E("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(nt.isETC1Format(a)&&!t.etc1)throw new E("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(nt.isBC7Format(a)&&!t.bc7)throw new E("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(nt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new E("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===nt.RGB||r===nt.LUMINANCE,f=y(e.flipY,!0),h=y(e.skipColorSpaceConversion,!1);let _=!0;const g=t._gl,p=g.TEXTURE_2D,A=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,A);let C=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(C=nt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,C),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let x=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,x),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new E("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new E("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new Ft({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(Ft.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===_n.NEAREST_MIPMAP_NEAREST||t===_n.NEAREST_MIPMAP_LINEAR||t===_n.LINEAR_MIPMAP_NEAREST||t===_n.LINEAR_MIPMAP_LINEAR;(r===Ke.FLOAT&&!i.textureFloatLinear||r===Ke.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?_n.NEAREST_MIPMAP_NEAREST:_n.NEAREST,n=Pr.NEAREST),i.webgl2&&nt.isDepthFormat(o)&&(t=_n.NEAREST,n=Pr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});Ft.prototype.copyFrom=function(e){T.defined("options",e);const t=y(e.xOffset,0),n=y(e.yOffset,0);if(T.defined("options.source",e.source),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",t,0),T.typeOf.number.greaterThanOrEquals("yOffset",n,0),T.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),T.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._width,h=this._height,_=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,A=this._preMultiplyAlpha,C=this._flipY,b=y(e.skipColorSpaceConversion,!1);let x=4;l(u)&&(x=nt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,x),b?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,f,h)),r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texImage2D(s,0,_,g,Ke.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=nt.createTypedArray(g,p,f,h);r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texSubImage2D(s,0,t,n,g,Ke.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};Ft.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=y(e,0),t=y(t,0),n=y(n,0),i=y(i,0),o=y(o,this._width),r=y(r,this._height),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Ke.FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new E("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),T.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),T.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};Ft.prototype.generateMipmap=function(e){if(e=y(e,ry.DONT_CARE),nt.isDepthFormat(this._pixelFormat))throw new E("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new E("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!N.isPowerOfTwo(this._width))throw new E("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!N.isPowerOfTwo(this._height))throw new E("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!ry.validate(e))throw new E("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};Ft.prototype.isDestroyed=function(){return!1};Ft.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),Ue(this)};function Km(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(Km.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});Km.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};Km.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};Km.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};Km.prototype.isDestroyed=function(){return!1};Km.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return Ue(this)};function En(){this.high=d.clone(d.ZERO),this.low=d.clone(d.ZERO)}En.encode=function(e,t){T.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const ff={high:0,low:0};En.fromCartesian=function(e,t){T.typeOf.object("cartesian",e),l(t)||(t=new En);const n=t.high,i=t.low;return En.encode(e.x,ff),n.x=ff.high,i.x=ff.low,En.encode(e.y,ff),n.y=ff.high,i.y=ff.low,En.encode(e.z,ff),n.z=ff.high,i.z=ff.low,t};const TD=new En;En.writeElements=function(e,t,n){T.defined("cartesianArray",t),T.typeOf.number("index",n),T.typeOf.number.greaterThanOrEquals("index",n,0),En.fromCartesian(e,TD);const i=TD.high,o=TD.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function wt(e,t){if(T.typeOf.object("normal",e),!N.equalsEpsilon(d.magnitude(e),1,N.EPSILON6))throw new E("normal must be normalized.");T.typeOf.number("distance",t),this.normal=d.clone(e),this.distance=t}wt.fromPointNormal=function(e,t,n){if(T.typeOf.object("point",e),T.typeOf.object("normal",t),!N.equalsEpsilon(d.magnitude(t),1,N.EPSILON6))throw new E("normal must be normalized.");const i=-d.dot(t,e);return l(n)?(d.clone(t,n.normal),n.distance=i,n):new wt(t,i)};const yce=new d;wt.fromCartesian4=function(e,t){T.typeOf.object("coefficients",e);const n=d.fromCartesian4(e,yce),i=e.w;if(!N.equalsEpsilon(d.magnitude(n),1,N.EPSILON6))throw new E("normal must be normalized.");return l(t)?(d.clone(n,t.normal),t.distance=i,t):new wt(n,i)};wt.getPointDistance=function(e,t){return T.typeOf.object("plane",e),T.typeOf.object("point",t),d.dot(e.normal,t)+e.distance};const Ace=new d;wt.projectPointOntoPlane=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("point",t),l(n)||(n=new d);const i=wt.getPointDistance(e,t),o=d.multiplyByScalar(e.normal,i,Ace);return d.subtract(t,o,n)};const Cce=new B,Tce=new oe,bce=new d;wt.transform=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,Cce);let s=oe.fromElements(i.x,i.y,i.z,o,Tce);s=B.multiplyByVector(r,s,s);const a=d.fromCartesian4(s,bce);return s=oe.divideByScalar(s,d.magnitude(a),s),wt.fromCartesian4(s,n)};wt.clone=function(e,t){return T.typeOf.object("plane",e),l(t)?(d.clone(e.normal,t.normal),t.distance=e.distance,t):new wt(e.normal,e.distance)};wt.equals=function(e,t){return T.typeOf.object("left",e),T.typeOf.object("right",t),e.distance===t.distance&&d.equals(e.normal,t.normal)};wt.ORIGIN_XY_PLANE=Object.freeze(new wt(d.UNIT_Z,0));wt.ORIGIN_YZ_PLANE=Object.freeze(new wt(d.UNIT_X,0));wt.ORIGIN_ZX_PLANE=Object.freeze(new wt(d.UNIT_Y,0));function Go(e){this.planes=y(e,[])}const QA=[new d,new d,new d];d.clone(d.UNIT_X,QA[0]);d.clone(d.UNIT_Y,QA[1]);d.clone(d.UNIT_Z,QA[2]);const Nd=new d,Ece=new d,t6=new wt(new d(1,0,0),0);Go.fromBoundingSphere=function(e,t){if(!l(e))throw new E("boundingSphere is required.");l(t)||(t=new Go);const n=QA.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new E("right must be greater than left.");if(e.bottom>e.top)throw new E("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new E("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(So.prototype,{projectionMatrix:{get:function(){return n6(this),this._orthographicMatrix}}});const xce=new d,wce=new d,Sce=new d,bD=new d;So.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new E("position is required.");if(!l(t))throw new E("direction is required.");if(!l(n))throw new E("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,f=d.cross(t,n,xce);d.normalize(f,f);const h=wce;d.multiplyByScalar(t,c,h),d.add(e,h,h);const _=Sce;d.multiplyByScalar(f,a,_),d.add(h,_,_);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=f.x,g.y=f.y,g.z=f.z,g.w=-d.dot(f,_),d.multiplyByScalar(f,s,_),d.add(h,_,_),g=i[1],l(g)||(g=i[1]=new oe),g.x=-f.x,g.y=-f.y,g.z=-f.z,g.w=-d.dot(d.negate(f,bD),_),d.multiplyByScalar(n,r,_),d.add(h,_,_),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-d.dot(n,_),d.multiplyByScalar(n,o,_),d.add(h,_,_),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-d.dot(d.negate(n,bD),_),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-d.dot(t,h),d.multiplyByScalar(t,u,_),d.add(e,_,_),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-d.dot(d.negate(t,bD),_),this._cullingVolume};So.prototype.getPixelDimensions=function(e,t,n,i,o){if(n6(this),!l(e)||!l(t))throw new E("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new E("drawingBufferWidth must be greater than zero.");if(t<=0)throw new E("drawingBufferHeight must be greater than zero.");if(!l(n))throw new E("distance is required.");if(!l(i))throw new E("pixelRatio is required.");if(i<=0)throw new E("pixelRatio must be greater than zero.");if(!l(o))throw new E("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};So.prototype.clone=function(e){return l(e)||(e=new So),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};So.prototype.equals=function(e){return l(e)&&e instanceof So&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};So.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof So&&N.equalsEpsilon(this.right,e.right,t,n)&&N.equalsEpsilon(this.left,e.left,t,n)&&N.equalsEpsilon(this.top,e.top,t,n)&&N.equalsEpsilon(this.bottom,e.bottom,t,n)&&N.equalsEpsilon(this.near,e.near,t,n)&&N.equalsEpsilon(this.far,e.far,t,n)};function Mt(e){e=y(e,y.EMPTY_OBJECT),this._offCenterFrustum=new So,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=y(e.near,1),this._near=this.near,this.far=y(e.far,5e8),this._far=this.far}Mt.packedLength=4;Mt.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=y(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Mt.unpack=function(e,t,n){return T.defined("array",e),t=y(t,0),l(n)||(n=new Mt),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function wm(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new E("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new E("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new E("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Mt.prototype,{projectionMatrix:{get:function(){return wm(this),this._offCenterFrustum.projectionMatrix}}});Mt.prototype.computeCullingVolume=function(e,t,n){return wm(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Mt.prototype.getPixelDimensions=function(e,t,n,i,o){return wm(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Mt.prototype.clone=function(e){return l(e)||(e=new Mt),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Mt.prototype.equals=function(e){return!l(e)||!(e instanceof Mt)?!1:(wm(this),wm(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Mt.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Mt)?!1:(wm(this),wm(e),N.equalsEpsilon(this.width,e.width,t,n)&&N.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const HB={};function vce(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const Dce=32.184,Ice=2451545;function i6(e,t){t=ne.addSeconds(e,Dce,t);const n=ne.totalDays(t)-Ice;return t=ne.addSeconds(t,vce(n),t),t}const iw=new ne(2451545,0,Mn.TAI),Pce=1e3,yc=N.RADIANS_PER_DEGREE,Ia=N.RADIANS_PER_ARCSECOND,hs=14959787e4,ZF=new J;function o6(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=N.PI),n<0||n>N.PI)throw new E("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,f=Lce(r-i,t);if(Oce(t,0)==="Hyperbolic"&&Math.abs(N.negativePiToPi(f))>=Math.acos(-1/t))throw new E("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");Mce(c,n,u,ZF);const _=a*(1+t),g=Math.cos(f),p=Math.sin(f),A=1+t*g;if(A<=N.Epsilon10)throw new E("elements cannot be converted to cartesian");const C=_/A;return l(s)?(s.x=C*g,s.y=C*p,s.z=0):s=new d(C*g,C*p,0),J.multiplyByVector(ZF,s,s)}function Oce(e,t){if(e<0)throw new E("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function Lce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Rce(e,t);return Nce(n,t)}const e2=50,Bce=N.EPSILON8;function Rce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rBce;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=e2)throw new E("Kepler equation did not converge");return o=i+n*N.TWO_PI,o}function Nce(e,t){if(t<0||t>=1)throw new E("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=N.zeroToTwoPi(r),e<0&&(r-=N.TWO_PI),r+=n*N.TWO_PI,r}function Mce(e,t,n,i){if(t<0||t>N.PI)throw new E("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const Fce=1.0000010178*hs,zce=100.46645683*yc,Uce=129597742283429e-5*Ia,t2=16002,n2=21863,i2=32004,o2=10931,r2=14529,s2=16368,a2=15318,c2=32794,Hce=64*1e-7*hs,Vce=-152*1e-7*hs,kce=62*1e-7*hs,Gce=-8*1e-7*hs,Wce=32*1e-7*hs,jce=-41*1e-7*hs,qce=19*1e-7*hs,Yce=-11*1e-7*hs,Xce=-150*1e-7*hs,$ce=-46*1e-7*hs,Kce=68*1e-7*hs,Jce=54*1e-7*hs,Qce=14*1e-7*hs,Zce=24*1e-7*hs,ele=-28*1e-7*hs,tle=22*1e-7*hs,l2=10,u2=16002,f2=21863,d2=10931,h2=1473,p2=32004,m2=4387,_2=73,nle=-325*1e-7,ile=-322*1e-7,ole=-79*1e-7,rle=232*1e-7,sle=-52*1e-7,ale=97*1e-7,cle=55*1e-7,lle=-41*1e-7,ule=-105*1e-7,fle=-137*1e-7,dle=258*1e-7,hle=35*1e-7,ple=-116*1e-7,mle=-88*1e-7,_le=-112*1e-7,gle=-80*1e-7,Lg=new ne(0,0,Mn.TAI);function yle(e,t){i6(e,Lg);const i=(Lg.dayNumber-iw.dayNumber+(Lg.secondsOfDay-iw.secondsOfDay)/yi.SECONDS_PER_DAY)/(yi.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=Fce+Hce*Math.cos(t2*o)+Xce*Math.sin(t2*o)+Vce*Math.cos(n2*o)+$ce*Math.sin(n2*o)+kce*Math.cos(i2*o)+Kce*Math.sin(i2*o)+Gce*Math.cos(o2*o)+Jce*Math.sin(o2*o)+Wce*Math.cos(r2*o)+Qce*Math.sin(r2*o)+jce*Math.cos(s2*o)+Zce*Math.sin(s2*o)+qce*Math.cos(a2*o)+ele*Math.sin(a2*o)+Yce*Math.cos(c2*o)+tle*Math.sin(c2*o),s=zce+Uce*i+nle*Math.cos(l2*o)+ule*Math.sin(l2*o)+ile*Math.cos(u2*o)+fle*Math.sin(u2*o)+ole*Math.cos(f2*o)+dle*Math.sin(f2*o)+rle*Math.cos(d2*o)+hle*Math.sin(d2*o)+sle*Math.cos(h2*o)+ple*Math.sin(h2*o)+ale*Math.cos(p2*o)+mle*Math.sin(p2*o)+cle*Math.cos(m2*o)+_le*Math.sin(m2*o)+lle*Math.cos(_2*o)+gle*Math.sin(_2*o),a=.0167086342-.0004203654*i,c=102.93734808*yc+11612.3529*Ia*i,u=469.97289*Ia*i,f=174.87317577*yc-8679.27034*Ia*i;return o6(r,a,u,c,f,s,t)}function r6(e,t){i6(e,Lg);const i=(Lg.dayNumber-iw.dayNumber+(Lg.secondsOfDay-iw.secondsOfDay)/yi.SECONDS_PER_DAY)/yi.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*yc;let f=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*yc;let _=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*yc;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const A=218.31664563*yc;let C=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const b=297.85019547*yc+Ia*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),x=93.27209062*yc+Ia*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*yc+Ia*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*yc+Ia*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*yc-Ia*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),L=2*b,H=4*b,R=6*b,z=2*w,U=3*w,v=4*w,I=2*x;a+=3400.4*Math.cos(L)-635.6*Math.cos(L-w)-235.6*Math.cos(w)+218.1*Math.cos(L-S)+181*Math.cos(L+w),c+=.014216*Math.cos(L-w)+.008551*Math.cos(L-z)-.001383*Math.cos(w)+.001356*Math.cos(L+w)-.001147*Math.cos(H-U)-914e-6*Math.cos(H-z)+869e-6*Math.cos(L-S-w)-627e-6*Math.cos(L)-394e-6*Math.cos(H-v)+282e-6*Math.cos(L-S-z)-279e-6*Math.cos(b-w)-236e-6*Math.cos(z)+231e-6*Math.cos(H)+229e-6*Math.cos(R-v)-201e-6*Math.cos(z-I),f+=486.26*Math.cos(L-I)-40.13*Math.cos(L)+37.51*Math.cos(I)+25.73*Math.cos(z-I)+19.97*Math.cos(L-S-I),_+=-55609*Math.sin(L-w)-34711*Math.sin(L-z)-9792*Math.sin(w)+9385*Math.sin(H-U)+7505*Math.sin(H-z)+5318*Math.sin(L+w)+3484*Math.sin(H-v)-3417*Math.sin(L-S-w)-2530*Math.sin(R-v)-2376*Math.sin(L)-2075*Math.sin(L-U)-1883*Math.sin(z)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-U),p+=-5392*Math.sin(L-I)-540*Math.sin(S)-441*Math.sin(L)+423*Math.sin(I)-288*Math.sin(z-I),C+=-3332.9*Math.sin(L)+1197.4*Math.sin(L-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(L-S);const m=2*P,D=3*P;f+=46.997*Math.cos(P)*i-.614*Math.cos(L-I+P)*i+.614*Math.cos(L-I-P)*i-.0297*Math.cos(m)*o-.0335*Math.cos(P)*o+.0012*Math.cos(L-I+m)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(D)*r+4e-5*Math.cos(m)*r;const O=2.116*Math.sin(P)*i-.111*Math.sin(L-I-P)*i-.0015*Math.sin(P)*o;_+=O,C+=O,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(L-I+P)*i+1.12*Math.sin(L-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(m)*o+.371*Math.sin(P)*o-.035*Math.sin(L-I+m)*o-.015*Math.sin(L-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(D)*r-9e-4*Math.sin(m)*r,a*=Pce;const M=u+f*Ia,V=h+_*Ia,k=A+C*Ia,W=g+p*Ia;return o6(a,c,M,V,W,k,t)}const g2=.012300034,Ale=g2/(g2+1)*-1;function Cle(e,t){return t=r6(e,t),d.multiplyByScalar(t,Ale,t)}const s6=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let Zy=new d;HB.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),l(t)||(t=new d),Zy=yle(e,Zy),t=d.negate(Zy,t),Cle(e,Zy),d.subtract(t,Zy,t),J.multiplyByVector(s6,t,t),t};HB.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),t=r6(e,t),J.multiplyByVector(s6,t,t),t};const o1=HB,ox={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};ox.getMorphTime=function(e){return e===ox.SCENE3D?1:e===ox.MORPHING?void 0:0};const le=Object.freeze(ox);function yS(e){e=y(e,y.EMPTY_OBJECT),this.color=F.clone(y(e.color,F.WHITE)),this.intensity=y(e.intensity,2)}function Ey(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new qe,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new En,this._cameraPosition=new d,this._sunPositionWC=new d,this._sunPositionColumbusView=new d,this._sunDirectionWC=new d,this._sunDirectionEC=new d,this._moonDirectionEC=new d,this._lightDirectionWC=new d,this._lightDirectionEC=new d,this._lightColor=new d,this._lightColorHdr=new d,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new d,this._cameraRight=new d,this._cameraUp=new d,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new F,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(Ey.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!qe.equals(e,this._viewport)){qe.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return y2(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return y2(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return ED(this),this._view3D}},viewRotation:{get:function(){return ED(this),this._viewRotation}},viewRotation3D:{get:function(){return ED(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return T2(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return T2(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return Ple(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return Ole(this),this._modelView}},modelView3D:{get:function(){return Lle(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return zle(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return Ble(this),this._inverseModelView}},inverseModelView3D:{get:function(){return Rle(this),this._inverseModelView3D}},viewProjection:{get:function(){return Nle(this),this._viewProjection}},inverseViewProjection:{get:function(){return Mle(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return Fle(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return Ule(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return Hle(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return Vle(this),this._modelViewInfiniteProjection}},normal:{get:function(){return kle(this),this._normal}},normal3D:{get:function(){return Gle(this),this._normal3D}},inverseNormal:{get:function(){return Wle(this),this._inverseNormal}},inverseNormal3D:{get:function(){return jle(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return C2(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return C2(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return y(this._ellipsoid,pe.WGS84)}}});function Tle(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function ble(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function Ele(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function xle(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function wle(e,t){d.clone(t.positionWC,e._cameraPosition),d.clone(t.directionWC,e._cameraDirection),d.clone(t.rightWC,e._cameraRight),d.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let e0=new J;const Sle=new Ae;function vle(e,t){l(Qt.computeIcrfToFixedMatrix(t.time,e0))||(e0=Qt.computeTemeToPseudoFixedMatrix(t.time,e0));let n=o1.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(e0,n,n),d.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),d.normalize(n,n),n=o1.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(e0,n,n),J.multiplyByVector(e.viewRotation3D,n,n),d.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,Sle);i.project(r,e._sunPositionColumbusView)}Ey.prototype.updateCamera=function(e){Tle(this,e.viewMatrix),ble(this,e.inverseViewMatrix),wle(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Mt};Ey.prototype.updateFrustum=function(e){Ele(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&xle(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=N.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};Ey.prototype.updatePass=function(e){this._pass=e};const Dle=[],Ile=new yS;Ey.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),vle(this,e);const n=y(e.light,Ile);n instanceof yS?(this._lightDirectionWC=d.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=d.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=d.normalize(d.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=d.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=d.multiplyByScalar(o,n.intensity,o);const r=d.maximumComponent(o);r>1?d.divideByScalar(o,r,this._lightColor):d.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=y(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=y(e.sphericalHarmonicCoefficients,Dle),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=Qt.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let f;l(c)?u.height>u.width?f=Math.tan(.5*c)*2/u.height:f=Math.tan(.5*c)*2/u.width:f=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=f*e.maximumScreenSpaceError,F.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function y2(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function Ple(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function Ole(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function Lle(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function Ble(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function Rle(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function Nle(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function Mle(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function Fle(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function zle(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function Ule(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function Hle(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function Vle(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function kle(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function Gle(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function Wle(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function jle(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const A2=new d;function C2(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,A2),En.fromCartesian(A2,e._encodedCameraPositionMC))}const qle=new d,Yle=new d,Xle=new d,$le=new d,Kle=new Ae,Jle=new d,Qle=new B;function Zle(e,t,n,i,o,r,s,a){const c=qle;c.x=e.y,c.y=e.z,c.z=e.x;const u=Yle;u.x=n.y,u.y=n.z,u.z=n.x;const f=Xle;f.x=i.y,f.y=i.z,f.z=i.x;const h=$le;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const _=s.unproject(c,Kle);_.longitude=N.clamp(_.longitude,-Math.PI,Math.PI),_.latitude=N.clamp(_.latitude,-N.PI_OVER_TWO,N.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(_,Jle),A=Qt.eastNorthUpToFixedFrame(p,g,Qle);return B.multiplyByPointAsVector(A,u,u),B.multiplyByPointAsVector(A,f,f),B.multiplyByPointAsVector(A,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=f.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=f.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=f.z,a[10]=-h.z,a[11]=0,a[12]=-d.dot(u,p),a[13]=-d.dot(f,p),a[14]=d.dot(h,p),a[15]=1,a}function ED(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):Zle(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function T2(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function eue(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new E("attribute must have a vertexBuffer or a value.");if(o&&r)throw new E("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new E("attribute.value.length must be in the range [1, 4]."):new E("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new E("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new E("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new E("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new E("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new E("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new E("attribute zero cannot have an instanceDivisor greater than 0");const a={index:y(t.index,n),enabled:y(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:y(t.componentDatatype,ee.FLOAT),normalize:y(t.normalize,!1),offsetInBytes:y(t.offsetInBytes,0),strideInBytes:y(t.strideInBytes,0),instanceDivisor:y(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function a6(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=b2(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),f=a%u;f!==0&&(a+=u-f);const h=r*a,_=new ArrayBuffer(h),g={};for(t=0;t=N.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?_=yt.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:it.UNSIGNED_INT}):_=yt.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:it.UNSIGNED_SHORT})),new $i({context:t,attributes:f,indexBuffer:_})};Object.defineProperties($i.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});$i.prototype.getAttribute=function(e){return T.defined("index",e),this._attributes[e]};function iue(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=xt.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function oue(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Se("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Se("The browser supports WebGL, but initialization failed.");return r}function sue(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function aue(e,t,n,i){let o=`${sue(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=uue(this._originalGLContext,e?cue:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new Ft({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new Ft({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new Ft({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new kl({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return fue}}});function due(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new E(i)}}}function c6(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,Qe.partialApply(e._gl,o,t,r,n,i)}let VB;typeof WebGLRenderingContext<"u"&&(VB=[se.BACK]);function kB(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=VB;if(l(t))t._bind(),due(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const hue=new ji;wa.prototype.clear=function(e,t){e=y(e,hue),t=y(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(F.equals(this._clearColor,o)||(F.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=y(e.renderState,this._defaultRenderState);c6(this,a,t,!0);const c=y(e.framebuffer,t.framebuffer);kB(this,c),n.clear(i)};function pue(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new E("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");kB(e,t),c6(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function mue(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Je.validate(o))throw new E("drawCommand.primitiveType is required and must be valid.");if(T.defined("drawCommand.vertexArray",r),T.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&T.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),T.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new E("Instanced arrays extension is not supported");e._us.model=y(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=y(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=y(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}wa.prototype.draw=function(e,t,n,i){T.defined("drawCommand",e),T.defined("drawCommand.shaderProgram",e._shaderProgram),t=y(t,this._defaultPassState);const o=y(e._framebuffer,t.framebuffer),r=y(e._renderState,this._defaultRenderState);n=y(n,e._shaderProgram),i=y(i,e._uniformMap),pue(this,o,t,n,r),mue(this,e,n,i)};wa.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=VB;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=nt.createTypedArray(nt.RGBA,a,o,r);return kB(this,s),t.readPixels(n,i,o,r,nt.RGBA,Ke.toWebGLConstant(a,this),c),c};const l6={position:0,textureCoordinates:1};wa.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new vt({attributes:{position:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Je.TRIANGLES});e=$i.fromGeometry({context:this,geometry:t,attributeLocations:l6,bufferUsage:Ze.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};wa.prototype.createViewportQuadCommand=function(e,t){return t=y(t,y.EMPTY_OBJECT),new ft({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Je.TRIANGLES,renderState:t.renderState,shaderProgram:un.fromCache({context:this,vertexShaderSource:H5,fragmentShaderSource:e,attributeLocations:l6}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};wa.prototype.getObjectByPickColor=function(e){return T.defined("pickColor",e),this._pickObjects[e.toRgba()]};function GB(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(GB.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});GB.prototype.destroy=function(){delete this._pickObjects[this.key]};wa.prototype.createPickId=function(e){T.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Se("Out of unique Pick IDs.");return this._pickObjects[t]=e,new GB(this._pickObjects,t,F.fromRgba(t))};wa.prototype.isDestroyed=function(){return!1};wa.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),Ue(this)};wa._deprecationWarning=ep;function xy(e){e=y(e,y.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;T.defined("options.context",t),T.defined("options.width",n),T.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new E("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new E("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Dr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new Dr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}xy.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};xy.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};xy.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};xy.prototype.isDestroyed=function(){return!1};xy.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),Ue(this)};const ga={RGBA4:se.RGBA4,RGBA8:se.RGBA8,RGBA16F:se.RGBA16F,RGBA32F:se.RGBA32F,RGB5_A1:se.RGB5_A1,RGB565:se.RGB565,DEPTH_COMPONENT16:se.DEPTH_COMPONENT16,STENCIL_INDEX8:se.STENCIL_INDEX8,DEPTH_STENCIL:se.DEPTH_STENCIL,DEPTH24_STENCIL8:se.DEPTH24_STENCIL8,validate:function(e){return e===ga.RGBA4||e===ga.RGBA8||e===ga.RGBA16F||e===ga.RGBA32F||e===ga.RGB5_A1||e===ga.RGB565||e===ga.DEPTH_COMPONENT16||e===ga.STENCIL_INDEX8||e===ga.DEPTH_STENCIL||e===ga.DEPTH24_STENCIL8},getColorFormat:function(e){return e===se.FLOAT?ga.RGBA32F:e===se.HALF_FLOAT_OES?ga.RGBA16F:ga.RGBA8}},Df=Object.freeze(ga);function yl(e){e=y(e,y.EMPTY_OBJECT),T.defined("options.context",e.context);const n=e.context._gl,i=xt.maximumRenderbufferSize,o=y(e.format,Df.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=y(e.numSamples,1);if(!Df.validate(o))throw new E("Invalid format.");if(T.typeOf.number.greaterThan("width",r,0),r>i)throw new E(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(T.typeOf.number.greaterThan("height",s,0),s>i)throw new E(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(yl.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});yl.prototype._getRenderbuffer=function(){return this._renderbuffer};yl.prototype.isDestroyed=function(){return!1};yl.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),Ue(this)};function Cn(e){if(e=y(e,y.EMPTY_OBJECT),this._numSamples=y(e.numSamples,1),this._colorAttachmentsLength=y(e.colorAttachmentsLength,1),this._color=y(e.color,!0),this._depth=y(e.depth,!1),this._depthStencil=y(e.depthStencil,!1),this._supportsDepthTexture=y(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new E("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new E("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=y(e.createColorAttachments,!0),this._createDepthAttachments=y(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Cn.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Cn.prototype.isDirty=function(e,t,n,i,o){n=y(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};Cn.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new E("width and height must be defined.");if(i=e.msaa?y(i,1):1,o=y(o,this._color?y(this._pixelDatatype,Ke.UNSIGNED_BYTE):void 0),r=y(r,this._color?y(this._pixelFormat,nt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=Df.getColorFormat(o);this._colorRenderbuffers[s]=new yl({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new Ft({context:e,width:t,height:n,pixelFormat:nt.DEPTH_STENCIL,pixelDatatype:Ke.UNSIGNED_INT_24_8,sampler:jn.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new Ft({context:e,width:t,height:n,pixelFormat:nt.DEPTH_COMPONENT,pixelDatatype:Ke.UNSIGNED_INT,sampler:jn.NEAREST}):this._depthRenderbuffer=new yl({context:e,width:t,height:n,format:Df.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new xy({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Dr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Cn.prototype.getColorTexture=function(e){if(e=y(e,0),e>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");return this._colorTextures[e]};Cn.prototype.setColorTexture=function(e,t){if(t=y(t,0),this._createColorAttachments)throw new E("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Cn.prototype.getColorRenderbuffer=function(e){if(e=y(e,0),e>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};Cn.prototype.setColorRenderbuffer=function(e,t){if(t=y(t,0),this._createColorAttachments)throw new E("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new E("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Cn.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Cn.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Cn.prototype.getDepthTexture=function(){return this._depthTexture};Cn.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Cn.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Cn.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Cn.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Cn.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new E("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Cn.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Cn.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Cn.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Cn.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e0?ee.getSizeInBytes(e[0].componentDatatype):0,o=i>0?t%i:0,r=o===0?0:i-o;return t+=r,t};pr._createArrayViews=function(e,t){const n=[];let i=0;const o=e.length;for(let r=0;r0){const n=new ArrayBuffer(t*e.vertexSizeInBytes);if(l(e.arrayBuffer)){const r=new Uint8Array(n),s=new Uint8Array(e.arrayBuffer),a=s.length;for(let c=0;c0){t.needsCommit=!1;const n=t.vertexBuffer,i=e._size*t.vertexSizeInBytes,o=l(n);if(!o||n.sizeInBytes=this._size)throw new E("offsetInVertices must be greater than or equal to zero and less than the vertex array size.");if(e+t>this._size)throw new E("offsetInVertices + lengthInVertices cannot exceed the vertex array size.");const n=this._allBuffers;for(let i=0,o=n.length;i0){const i=e.vertexSizeInBytes*t,o=e.vertexSizeInBytes*n;e.vertexBuffer.copyFromArrayView(new Uint8Array(e.arrayBuffer,i,o),i)}}pr.prototype.endSubCommits=function(){const e=this._allBuffers;for(let t=0,n=e.length;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rx(e,t,n){return tfe()?rx=Reflect.construct:rx=function(o,r,s){var a=[null];a.push.apply(a,r);var c=Function.bind.apply(o,a),u=new c;return s&&s1(u,s.prototype),u},rx.apply(null,arguments)}function cl(e){return nfe(e)||ife(e)||ofe(e)||rfe()}function nfe(e){if(Array.isArray(e))return a1(e)}function ife(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ofe(e,t){if(e){if(typeof e=="string")return a1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a1(e,t)}}function a1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),o=1;o/gm),Cfe=Bl(/\${[\w\W]*}/gm),Tfe=Bl(/^data-[\-\w.\u00B7-\uFFFF]/),bfe=Bl(/^aria-[\-\w]+$/),Efe=Bl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xfe=Bl(/^(?:\w+script|data):/i),wfe=Bl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Sfe=Bl(/^html$/i),vfe=function(){return typeof window>"u"?null:window},Dfe=function(t,n){if(ah(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function h6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vfe(),t=function(be){return h6(be)};if(t.version="2.4.1",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,i=e.document,o=e.DocumentFragment,r=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,f=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,h=e.HTMLFormElement,_=e.DOMParser,g=e.trustedTypes,p=a.prototype,A=lb(p,"cloneNode"),C=lb(p,"nextSibling"),b=lb(p,"childNodes"),x=lb(p,"parentNode");if(typeof r=="function"){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var S=Dfe(g,n),P=S?S.createHTML(""):"",L=i,H=L.implementation,R=L.createNodeIterator,z=L.createDocumentFragment,U=L.getElementsByTagName,v=n.importNode,I={};try{I=Tp(i).documentMode?i.documentMode:{}}catch{}var m={};t.isSupported=typeof x=="function"&&H&&typeof H.createHTMLDocument<"u"&&I!==9;var D=yfe,O=Afe,M=Cfe,V=Tfe,k=bfe,W=xfe,G=wfe,K=Efe,q=null,te=Nn({},[].concat(cl(O2),cl(SD),cl(vD),cl(DD),cl(L2))),X=null,$=Nn({},[].concat(cl(B2),cl(ID),cl(R2),cl(ub))),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,ue=null,re=!0,he=!0,ce=!1,Q=!1,ie=!1,de=!1,me=!1,Ee=!1,xe=!1,Pe=!1,Te=!0,Oe=!1,De="user-content-",Me=!0,ve=!1,Ie={},Ve=null,Le=Nn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),mt=null,Ct=Nn({},["audio","video","img","source","image","track"]),Pt=null,yn=Nn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xn="http://www.w3.org/1998/Math/MathML",pn="http://www.w3.org/2000/svg",en="http://www.w3.org/1999/xhtml",Rt=en,mn=!1,gn=null,Ut=Nn({},[xn,pn,en],xD),Yt,Rn=["application/xhtml+xml","text/html"],Zn="text/html",Jt,Ti=null,Vi=i.createElement("form"),vi=function(be){return be instanceof RegExp||be instanceof Function},$n=function(be){Ti&&Ti===be||((!be||ah(be)!=="object")&&(be={}),be=Tp(be),Yt=Rn.indexOf(be.PARSER_MEDIA_TYPE)===-1?Yt=Zn:Yt=be.PARSER_MEDIA_TYPE,Jt=Yt==="application/xhtml+xml"?xD:sx,q="ALLOWED_TAGS"in be?Nn({},be.ALLOWED_TAGS,Jt):te,X="ALLOWED_ATTR"in be?Nn({},be.ALLOWED_ATTR,Jt):$,gn="ALLOWED_NAMESPACES"in be?Nn({},be.ALLOWED_NAMESPACES,xD):Ut,Pt="ADD_URI_SAFE_ATTR"in be?Nn(Tp(yn),be.ADD_URI_SAFE_ATTR,Jt):yn,mt="ADD_DATA_URI_TAGS"in be?Nn(Tp(Ct),be.ADD_DATA_URI_TAGS,Jt):Ct,Ve="FORBID_CONTENTS"in be?Nn({},be.FORBID_CONTENTS,Jt):Le,ae="FORBID_TAGS"in be?Nn({},be.FORBID_TAGS,Jt):{},ue="FORBID_ATTR"in be?Nn({},be.FORBID_ATTR,Jt):{},Ie="USE_PROFILES"in be?be.USE_PROFILES:!1,re=be.ALLOW_ARIA_ATTR!==!1,he=be.ALLOW_DATA_ATTR!==!1,ce=be.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=be.SAFE_FOR_TEMPLATES||!1,ie=be.WHOLE_DOCUMENT||!1,Ee=be.RETURN_DOM||!1,xe=be.RETURN_DOM_FRAGMENT||!1,Pe=be.RETURN_TRUSTED_TYPE||!1,me=be.FORCE_BODY||!1,Te=be.SANITIZE_DOM!==!1,Oe=be.SANITIZE_NAMED_PROPS||!1,Me=be.KEEP_CONTENT!==!1,ve=be.IN_PLACE||!1,K=be.ALLOWED_URI_REGEXP||K,Rt=be.NAMESPACE||en,be.CUSTOM_ELEMENT_HANDLING&&vi(be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),be.CUSTOM_ELEMENT_HANDLING&&vi(be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),be.CUSTOM_ELEMENT_HANDLING&&typeof be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(he=!1),xe&&(Ee=!0),Ie&&(q=Nn({},cl(L2)),X=[],Ie.html===!0&&(Nn(q,O2),Nn(X,B2)),Ie.svg===!0&&(Nn(q,SD),Nn(X,ID),Nn(X,ub)),Ie.svgFilters===!0&&(Nn(q,vD),Nn(X,ID),Nn(X,ub)),Ie.mathMl===!0&&(Nn(q,DD),Nn(X,R2),Nn(X,ub))),be.ADD_TAGS&&(q===te&&(q=Tp(q)),Nn(q,be.ADD_TAGS,Jt)),be.ADD_ATTR&&(X===$&&(X=Tp(X)),Nn(X,be.ADD_ATTR,Jt)),be.ADD_URI_SAFE_ATTR&&Nn(Pt,be.ADD_URI_SAFE_ATTR,Jt),be.FORBID_CONTENTS&&(Ve===Le&&(Ve=Tp(Ve)),Nn(Ve,be.FORBID_CONTENTS,Jt)),Me&&(q["#text"]=!0),ie&&Nn(q,["html","head","body"]),q.table&&(Nn(q,["tbody"]),delete ae.tbody),aa&&aa(be),Ti=be)},rn=Nn({},["mi","mo","mn","ms","mtext"]),Un=Nn({},["foreignobject","desc","title","annotation-xml"]),In=Nn({},["title","style","font","a","script"]),tn=Nn({},SD);Nn(tn,vD),Nn(tn,_fe);var _t=Nn({},DD);Nn(_t,gfe);var ke=function(be){var je=x(be);(!je||!je.tagName)&&(je={namespaceURI:Rt,tagName:"template"});var tt=sx(be.tagName),Hn=sx(je.tagName);return gn[be.namespaceURI]?be.namespaceURI===pn?je.namespaceURI===en?tt==="svg":je.namespaceURI===xn?tt==="svg"&&(Hn==="annotation-xml"||rn[Hn]):Boolean(tn[tt]):be.namespaceURI===xn?je.namespaceURI===en?tt==="math":je.namespaceURI===pn?tt==="math"&&Un[Hn]:Boolean(_t[tt]):be.namespaceURI===en?je.namespaceURI===pn&&!Un[Hn]||je.namespaceURI===xn&&!rn[Hn]?!1:!_t[tt]&&(In[tt]||!tn[tt]):!!(Yt==="application/xhtml+xml"&&gn[be.namespaceURI]):!1},wn=function(be){t0(t.removed,{element:be});try{be.parentNode.removeChild(be)}catch{try{be.outerHTML=P}catch{be.remove()}}},fn=function(be,je){try{t0(t.removed,{attribute:je.getAttributeNode(be),from:je})}catch{t0(t.removed,{attribute:null,from:je})}if(je.removeAttribute(be),be==="is"&&!X[be])if(Ee||xe)try{wn(je)}catch{}else try{je.setAttribute(be,"")}catch{}},Ni=function(be){var je,tt;if(me)be=""+be;else{var Hn=dfe(be,/^[\r\n\t ]+/);tt=Hn&&Hn[0]}Yt==="application/xhtml+xml"&&Rt===en&&(be=''+be+"");var Br=S?S.createHTML(be):be;if(Rt===en)try{je=new _().parseFromString(Br,Yt)}catch{}if(!je||!je.documentElement){je=H.createDocument(Rt,"template",null);try{je.documentElement.innerHTML=mn?"":Br}catch{}}var rr=je.body||je.documentElement;return be&&tt&&rr.insertBefore(i.createTextNode(tt),rr.childNodes[0]||null),Rt===en?U.call(je,ie?"html":"body")[0]:ie?je.documentElement:rr},Sn=function(be){return R.call(be.ownerDocument||be,be,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Di=function(be){return be instanceof h&&(typeof be.nodeName!="string"||typeof be.textContent!="string"||typeof be.removeChild!="function"||!(be.attributes instanceof f)||typeof be.removeAttribute!="function"||typeof be.setAttribute!="function"||typeof be.namespaceURI!="string"||typeof be.insertBefore!="function"||typeof be.hasChildNodes!="function")},po=function(be){return ah(s)==="object"?be instanceof s:be&&ah(be)==="object"&&typeof be.nodeType=="number"&&typeof be.nodeName=="string"},Ki=function(be,je,tt){m[be]&&ffe(m[be],function(Hn){Hn.call(t,je,tt,Ti)})},Ar=function(be){var je;if(Ki("beforeSanitizeElements",be,null),Di(be)||Qs(/[\u0080-\uFFFF]/,be.nodeName))return wn(be),!0;var tt=Jt(be.nodeName);if(Ki("uponSanitizeElement",be,{tagName:tt,allowedTags:q}),be.hasChildNodes()&&!po(be.firstElementChild)&&(!po(be.content)||!po(be.content.firstElementChild))&&Qs(/<[/\w]/g,be.innerHTML)&&Qs(/<[/\w]/g,be.textContent)||tt==="select"&&Qs(/