@navaramap/three 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{fontWorker-8oWvyvwL.js → fontWorker-wz61edjR.js} +2 -2
- package/dist/assets/{fontWorker-8oWvyvwL.js.map → fontWorker-wz61edjR.js.map} +1 -1
- package/dist/assets/{index-D9G7kIEj.js → index-ywHSGImj.js} +3 -3
- package/dist/assets/{index-D9G7kIEj.js.map → index-ywHSGImj.js.map} +1 -1
- package/dist/assets/{navara_wasm_font_worker_bg-CkZP9l2i.wasm → navara_wasm_font_worker_bg-Du9nb2Pn.wasm} +0 -0
- package/dist/assets/{navara_wasm_worker_bg-Q8zrkLCR.wasm → navara_wasm_worker_bg-Xadu67fw.wasm} +0 -0
- package/dist/index.d.ts +133 -2
- package/dist/index.js +4309 -4288
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +223 -210
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +12 -12
- package/src/atmosphere.ts +43 -1
- package/src/event/feature.ts +43 -13
- package/src/event/features/polygon.ts +2 -1
- package/src/input.ts +48 -15
- package/src/material/enhancer/instancedSprite/instancedSpriteBaseEnhancer/mutates.test.ts +1 -0
- package/src/material/enhancer/instancedSprite/instancedSpriteBaseEnhancer/mutates.ts +2 -0
- package/src/material/enhancer/instancedSprite/instancedSpriteBaseEnhancer/types.ts +2 -0
- package/src/material/enhancer/polygon/polygonBaseEnhancer/mutates.ts +2 -0
- package/src/material/enhancer/polygon/polygonBaseEnhancer/shader.ts +5 -1
- package/src/material/enhancer/polygon/polygonBaseEnhancer/types.ts +2 -0
- package/src/material/enhancer/polyline/polylineBaseEnhancer/mutates.ts +2 -0
- package/src/material/enhancer/polyline/polylineBaseEnhancer/types.ts +2 -0
- package/src/material/enhancer/sdfText/sdfTextBaseEnhancer/mutates.ts +2 -0
- package/src/material/enhancer/sdfText/sdfTextBaseEnhancer/types.ts +2 -0
- package/src/material/overrideMaterialsForMRT.ts +7 -2
- package/src/mesh/batchedSdfText.ts +234 -70
- package/src/mesh/instanced.ts +1 -1
- package/src/mesh/polygon.ts +11 -4
- package/src/mesh/polyline.ts +10 -2
- package/src/mesh/sdfText.ts +6 -1
- package/src/solar.test.ts +33 -0
- package/src/solar.ts +31 -0
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
`,r+=" spawnfile: `"+o.spawnfile+`\`
|
|
9
9
|
`,r+=" stdout: `"+o.stdout+`\`
|
|
10
10
|
`,r+=" stderr: `"+o.stderr+`\`
|
|
11
|
-
`,i(new D(r))}),this.processing=Object.create(null),this.tracking=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}E.prototype.methods=function(){return this.exec(`methods`)},E.prototype.exec=function(e,t,r,i){r||=n.defer();var a=++this.lastId;this.processing[a]={id:a,resolver:r,options:i};var o={message:{id:a,method:e,params:t},transfer:i&&i.transfer};this.terminated?r.reject(new D(`Worker is terminated`)):this.worker.ready?this.worker.send(o.message,o.transfer):this.requestQueue.push(o);var s=this;return r.promise.catch(function(e){if(e instanceof n.CancellationError||e instanceof n.TimeoutError)return s.tracking[a]={id:a,resolver:n.defer(),options:i,error:e},delete s.processing[a],s.tracking[a].resolver.promise=s.tracking[a].resolver.promise.catch(function(e){if(delete s.tracking[a],e instanceof ee)throw e.error;return s.terminateAndNotify(!0).then(function(){throw e},function(e){throw e})}),s.worker.send({id:a,method:l}),s.tracking[a].timeoutId=setTimeout(function(){s.tracking[a].resolver.reject(e)},s.workerTerminateTimeout),s.tracking[a].resolver.promise;throw e})},E.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0||Object.keys(this.tracking).length>0},E.prototype.terminate=function(e,t){var n=this;if(e){for(var r in this.processing)this.processing[r]!==void 0&&this.processing[r].resolver.reject(Error(`Worker terminated`));this.processing=Object.create(null)}for(var i of Object.values(n.tracking))clearTimeout(i.timeoutId),i.resolver.reject(Error(`Worker Terminating`));if(n.tracking=Object.create(null),typeof t==`function`&&(this.terminationHandler=t),this.busy())this.terminating=!0;else{var a=function(e){if(n.terminated=!0,n.cleaning=!1,n.worker!=null&&n.worker.removeAllListeners&&n.worker.removeAllListeners(`message`),n.worker=null,n.terminating=!1,n.terminationHandler)n.terminationHandler(e,n);else if(e)throw e};if(this.worker)if(typeof this.worker.kill==`function`){if(this.worker.killed){a(Error(`worker already killed!`));return}var o=setTimeout(function(){n.worker&&n.worker.kill()},this.workerTerminateTimeout);this.worker.once(`exit`,function(){clearTimeout(o),n.worker&&(n.worker.killed=!0),a()}),this.worker.ready?this.worker.send(c):this.requestQueue.push({message:c}),this.cleaning=!0;return}else if(typeof this.worker.terminate==`function`)this.worker.terminate(),this.worker.killed=!0;else throw Error(`Failed to terminate worker`);a()}},E.prototype.terminateAndNotify=function(e,t){var r=n.defer();return t&&r.promise.timeout(t),this.terminate(e,function(e,t){e?r.reject(e):r.resolve(t)}),r.promise};function ee(e){this.error=e,this.stack=Error().stack}var D=class extends Error{constructor(e,t){super(e||`worker terminated`),this.cause=t}};t.exports=E,t.exports._tryRequireWorkerThreads=_,t.exports._setupProcessWorker=S,t.exports._setupBrowserWorker=b,t.exports._setupWorkerThreadWorker=x,t.exports.ensureWorkerThreads=u,t.exports.TerminateError=D})),_=o(((e,t)=>{function n(){this.tasks=[]}n.prototype.push=function(e){this.tasks.push(e)},n.prototype.pop=function(){return this.tasks.shift()},n.prototype.size=function(){return this.tasks.length},n.prototype.contains=function(e){return this.tasks.includes(e)},n.prototype.clear=function(){this.tasks.length=0};function r(){this.tasks=[]}r.prototype.push=function(e){this.tasks.push(e)},r.prototype.pop=function(){return this.tasks.pop()},r.prototype.size=function(){return this.tasks.length},r.prototype.contains=function(e){return this.tasks.includes(e)},r.prototype.clear=function(){this.tasks.length=0},t.exports={FIFOQueue:n,LIFOQueue:r}})),v=o(((e,t)=>{t.exports=n;function n(){this.ports=Object.create(null),this.length=0}n.prototype.nextAvailableStartingAt=function(e){for(;this.ports[e]===!0;)e++;if(e>=65535)throw Error(`WorkerPool debug port limit reached: `+e+`>= 65535`);return this.ports[e]=!0,this.length++,e},n.prototype.releasePort=function(e){delete this.ports[e],this.length--}})),y=o(((e,t)=>{var{Promise:n}=p(),r=g(),i=f(),{FIFOQueue:a,LIFOQueue:o}=_(),s=new(v());function c(e,t){typeof e==`string`?this.script=e||null:(this.script=null,t=e),this.workers=[],this.taskQueue=this._createQueue(t&&t.queueStrategy||`fifo`),t||={},this.forkArgs=Object.freeze(t.forkArgs||[]),this.forkOpts=Object.freeze(t.forkOpts||{}),this.workerOpts=Object.freeze(t.workerOpts||{}),this.workerThreadOpts=Object.freeze(t.workerThreadOpts||{}),this.debugPortStart=t.debugPortStart||43210,this.nodeWorker=t.nodeWorker,this.workerType=t.workerType||t.nodeWorker||`auto`,this.maxQueueSize=t.maxQueueSize||1/0,this.workerTerminateTimeout=t.workerTerminateTimeout||1e3,this.onCreateWorker=t.onCreateWorker||(()=>null),this.onTerminateWorker=t.onTerminateWorker||(()=>null),this.emitStdStreams=t.emitStdStreams||!1,t&&`maxWorkers`in t?(l(t.maxWorkers),this.maxWorkers=t.maxWorkers):this.maxWorkers=Math.max((i.cpus||4)-1,1),t&&`minWorkers`in t&&(t.minWorkers===`max`?this.minWorkers=this.maxWorkers:(u(t.minWorkers),this.minWorkers=t.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),this.workerType===`thread`&&r.ensureWorkerThreads()}c.prototype.exec=function(e,t,r){if(t&&!Array.isArray(t))throw TypeError(`Array expected as argument "params"`);if(typeof e==`string`){var i=n.defer();if(this.taskQueue.size()>=this.maxQueueSize)throw Error(`Max queue size of `+this.maxQueueSize+` reached`);var a={method:e,params:t,resolver:i,timeout:null,options:r};this.taskQueue.push(a);var o=i.promise.timeout,s=this.taskQueue;return i.promise.timeout=function(e){return s.contains(a)?(a.timeout=e,i.promise):o.call(i.promise,e)},this._next(),i.promise}else if(typeof e==`function`)return this.exec(`run`,[String(e),t],r);else throw TypeError(`Function or string expected as argument "method"`)},c.prototype.proxy=function(){if(arguments.length>0)throw Error(`No arguments expected`);var e=this;return this.exec(`methods`).then(function(t){var n={};return t.forEach(function(t){n[t]=function(){return e.exec(t,Array.prototype.slice.call(arguments))}}),n})},c.prototype._next=function(){if(this.taskQueue.size()>0){var e=this._getWorker();if(e){var t=this,n=this.taskQueue.pop();if(n.resolver.promise.pending){var r=e.exec(n.method,n.params,n.resolver,n.options).then(t._boundNext).catch(function(){if(e.terminated)return t._removeWorker(e)}).then(function(){t._next()});typeof n.timeout==`number`&&r.timeout(n.timeout)}else t._next()}}},c.prototype._getWorker=function(){for(var e=this.workers,t=0;t<e.length;t++){var n=e[t];if(n.busy()===!1)return n}return e.length<this.maxWorkers?(n=this._createWorkerHandler(),e.push(n),n):null},c.prototype._removeWorker=function(e){var t=this;return s.releasePort(e.debugPort),this._removeWorkerFromList(e),this._ensureMinWorkers(),new n(function(n,r){e.terminate(!1,function(i){t.onTerminateWorker({forkArgs:e.forkArgs,forkOpts:e.forkOpts,workerThreadOpts:e.workerThreadOpts,script:e.script}),i?r(i):n(e)})})},c.prototype._removeWorkerFromList=function(e){var t=this.workers.indexOf(e);t!==-1&&this.workers.splice(t,1)},c.prototype.terminate=function(e,t){for(var r=this,i=this.taskQueue;i.size()>0;){var a=i.pop();if(a)a.resolver.reject(Error(`Pool terminated`));else break}i.clear();var o=function(e){s.releasePort(e.debugPort),this._removeWorkerFromList(e)}.bind(this),c=[];return this.workers.slice().forEach(function(n){var i=n.terminateAndNotify(e,t).then(o).always(function(){r.onTerminateWorker({forkArgs:n.forkArgs,forkOpts:n.forkOpts,workerThreadOpts:n.workerThreadOpts,script:n.script})});c.push(i)}),n.all(c)},c.prototype.stats=function(){var e=this.workers.length,t=this.workers.filter(function(e){return e.busy()}).length;return{totalWorkers:e,busyWorkers:t,idleWorkers:e-t,pendingTasks:this.taskQueue.size(),activeTasks:t}},c.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var e=this.workers.length;e<this.minWorkers;e++)this.workers.push(this._createWorkerHandler())},c.prototype._createWorkerHandler=function(){let e=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerOpts:this.workerOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new r(e.script||this.script,{forkArgs:e.forkArgs||this.forkArgs,forkOpts:e.forkOpts||this.forkOpts,workerOpts:e.workerOpts||this.workerOpts,workerThreadOpts:e.workerThreadOpts||this.workerThreadOpts,debugPort:s.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout,emitStdStreams:this.emitStdStreams})},c.prototype._createQueue=function(e){if(typeof e==`string`)switch(e){case`fifo`:return new a;case`lifo`:return new o;default:throw Error(`Unknown queue strategy: `+e)}if(!e)throw Error(`Queue strategy cannot be null or undefined`);for(var t=[`push`,`pop`,`size`,`contains`,`clear`],n=0;n<t.length;n++){var r=t[n];if(typeof e[r]!=`function`)throw Error(`Queue strategy must implement method: `+r)}return e};function l(e){if(!d(e)||!m(e)||e<1)throw TypeError(`Option maxWorkers must be an integer number >= 1`)}function u(e){if(!d(e)||!m(e)||e<0)throw TypeError(`Option minWorkers must be an integer number >= 0`)}function d(e){return typeof e==`number`}function m(e){return Math.round(e)==e}t.exports=c})),b=o(((e,t)=>{function n(e,t){this.message=e,this.transfer=t}t.exports=n})),x=o((e=>{var t=b(),n=p().Promise,r=`__workerpool-terminate__`,i=`__workerpool-cleanup__`,a=1e3,o={exit:function(){}},s={addAbortListener:function(e){o.abortListeners.push(e)},emit:o.emit};if(typeof self<`u`&&typeof postMessage==`function`&&typeof addEventListener==`function`)o.on=function(e,t){addEventListener(e,function(e){t(e.data)})},o.send=function(e,t){t?postMessage(e,t):postMessage(e)};else if(typeof process<`u`){var c;try{c=d()}catch(e){if(!(typeof e==`object`&&e&&e.code===`MODULE_NOT_FOUND`))throw e}if(c&&c.parentPort!==null){var l=c.parentPort;o.send=l.postMessage.bind(l),o.on=l.on.bind(l),o.exit=process.exit.bind(process)}else o.on=process.on.bind(process),o.send=function(e){process.send(e)},o.on(`disconnect`,function(){process.exit(1)}),o.exit=process.exit.bind(process)}else throw Error(`Script must be executed as a worker`);function u(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function f(e){return e&&typeof e.then==`function`&&typeof e.catch==`function`}o.methods={},o.methods.run=function(e,t){var n=Function(`return (`+e+`).apply(this, arguments);`);return n.worker=s,n.apply(n,t)},o.methods.methods=function(){return Object.keys(o.methods)},o.terminationHandler=void 0,o.abortListenerTimeout=a,o.abortListeners=[],o.terminateAndExit=function(e){var t=function(){o.exit(e)};if(!o.terminationHandler)return t();var r=o.terminationHandler(e);return f(r)?(r.then(t,t),r):(t(),new n(function(e,t){t(Error(`Worker terminating`))}))},o.cleanup=function(e){if(!o.abortListeners.length)return o.send({id:e,method:i,error:u(Error(`Worker terminating`))}),new n(function(e){e()});var t=function(){o.exit()},r=function(){o.abortListeners.length&&(o.abortListeners=[])};let a=o.abortListeners.map(e=>e()),s,c=new n((e,t)=>{s=setTimeout(function(){t(Error(`Timeout occurred waiting for abort handler, killing worker`))},o.abortListenerTimeout)}),l=n.all(a).then(function(){clearTimeout(s),r()},function(){clearTimeout(s),t()});return new n(function(e,t){l.then(e,t),c.then(e,t)}).then(function(){o.send({id:e,method:i,error:null})},function(t){o.send({id:e,method:i,error:t?u(t):null})})};var m=null;o.on(`message`,function(e){if(e===r)return o.terminateAndExit(0);if(e.method===i)return o.cleanup(e.id);try{var n=o.methods[e.method];if(n){m=e.id;var a=n.apply(n,e.params);f(a)?a.then(function(n){n instanceof t?o.send({id:e.id,result:n.message,error:null},n.transfer):o.send({id:e.id,result:n,error:null}),m=null}).catch(function(t){o.send({id:e.id,result:null,error:u(t)}),m=null}):(a instanceof t?o.send({id:e.id,result:a.message,error:null},a.transfer):o.send({id:e.id,result:a,error:null}),m=null)}else throw Error(`Unknown method "`+e.method+`"`)}catch(t){o.send({id:e.id,result:null,error:u(t)})}}),o.register=function(e,t){if(e)for(var n in e)e.hasOwnProperty(n)&&(o.methods[n]=e[n],o.methods[n].worker=s);t&&(o.terminationHandler=t.onTerminate,o.abortListenerTimeout=t.abortListenerTimeout||a),o.send(`ready`)},o.emit=function(e){if(m){if(e instanceof t){o.send({id:m,isEvent:!0,payload:e.message},e.transfer);return}o.send({id:m,isEvent:!0,payload:e})}},e!==void 0&&(e.add=o.register,e.emit=o.emit)})),S=c(o((e=>{let{platform:t,isMainThread:n,cpus:r}=f(),{TerminateError:i}=g();function a(e,t){return new(y())(e,t)}e.pool=a;function o(e,t){x().add(e,t)}e.worker=o;let{Promise:s}=p();e.Transfer=b()}))(),1);let C=e=>S.pool(e,{maxWorkers:1,minWorkers:0,workerTerminateTimeout:3e4,workerOpts:{type:void 0}});var w=class{url;maxWorkerHeapBytes;slots;idleSweepTimer;terminated=!1;constructor(e,t,n){u(t>0,`maxWorkers must be a positive number.`),this.url=e,this.maxWorkerHeapBytes=n?.maxWorkerHeapBytes??268435456,this.slots=Array.from({length:t},()=>({pool:C(e),tasksSinceSpawn:0,inflight:0,draining:!1,probing:!1,lastHeapBytes:void 0}))}exec(e,t,n){let r=this.pickSlot();r.inflight++;try{return r.pool.exec(e,t,n).then(e=>(this.onSettled(r),e)).catch(e=>{throw this.onSettled(r),e})}catch(e){throw this.onSettled(r),e}}warmUp(){let[e,...t]=this.slots;return this.warmSlot(e).then(()=>{for(let e of t)this.warmSlot(e).catch(()=>void 0)},e=>{if(t.length===0)throw e;return Promise.any(t.map(e=>this.warmSlot(e))).then(()=>void 0)})}canAcceptTasks(){return this.slots.some(e=>!e.draining)}stats(){let e={totalWorkers:0,busyWorkers:0,idleWorkers:0,pendingTasks:0,activeTasks:0,tasksSinceSpawn:0};for(let t of this.slots){let n=t.pool.stats();e.totalWorkers+=n.totalWorkers,e.busyWorkers+=n.busyWorkers,e.idleWorkers+=n.idleWorkers,e.pendingTasks+=n.pendingTasks,e.activeTasks+=n.activeTasks,e.tasksSinceSpawn+=t.tasksSinceSpawn}return e}heapStats(){let e=this.slots.map(e=>e.lastHeapBytes);return{perSlot:e,totalBytes:e.reduce((e,t)=>e+(t??0),0),maxWorkerHeapBytes:this.maxWorkerHeapBytes}}probeHeap(){if(!this.terminated)for(let e of this.slots)e.draining||this.probeSlot(e)}terminate(){this.idleSweepTimer!==void 0&&(clearTimeout(this.idleSweepTimer),this.idleSweepTimer=void 0),this.terminated=!0;for(let e of this.slots)e.pool.terminate()}pickSlot(){let e=this.slots.filter(e=>!e.draining);return(e.length>0?e:this.slots).reduce((e,t)=>t.inflight<e.inflight?t:e)}onSettled(e){e.inflight--,!this.terminated&&(e.tasksSinceSpawn++,e.tasksSinceSpawn>=128&&(e.draining=!0),e.draining&&e.inflight===0?this.recycleSlot(e):e.draining||this.probeSlot(e),this.armIdleSweep())}recycleSlot(e){e.pool.terminate(),e.pool=C(this.url),e.tasksSinceSpawn=0,e.draining=!1,e.lastHeapBytes=void 0,this.warmSlot(e).catch(()=>void 0)}warmSlot(e){e.inflight++;let t=()=>{e.inflight--,!this.terminated&&e.draining&&e.inflight===0&&this.recycleSlot(e)};return new Promise((n,r)=>{try{e.pool.exec(`warmUp`).then(()=>{t(),n()}).catch(e=>{t(),r(e)})}catch(e){t(),r(e)}})}probeSlot(e){if(e.probing)return;e.probing=!0,e.inflight++;let t=t=>{e.probing=!1,e.inflight--,!this.terminated&&(t&&(e.draining=!0),e.draining&&e.inflight===0&&this.recycleSlot(e))};try{e.pool.exec(`getWasmMemoryUsage`).then(n=>{typeof n==`number`&&(e.lastHeapBytes=n),t(typeof n==`number`&&n>=this.maxWorkerHeapBytes)}).catch(()=>{t(!0)})}catch{t(!0)}}armIdleSweep(){this.idleSweepTimer!==void 0&&clearTimeout(this.idleSweepTimer),this.idleSweepTimer=setTimeout(()=>{this.idleSweepTimer=void 0;for(let e of this.slots)e.tasksSinceSpawn>0&&e.inflight===0&&this.recycleSlot(e)},5e3)}};function T(e){return e!=null}var E=class{x;y;z;constructor(e){this.x=e.x,this.y=e.y,this.z=e.z}},ee=class{vertices;uvs;indices;heights;max_height;min_height;rtc_translation;normals;skirt_vertices;skirt_uvs;skirt_indices;skirt_normals;watermask;constructor(e){this.vertices=e.transferVertices(),this.uvs=e.transferUvs(),this.indices=e.transferIndices(),this.heights=e.transferHeights(),this.max_height=e.max_height,this.min_height=e.min_height,this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0,e.hasNormals()&&(this.normals=e.transferNormals()),e.hasSkirt()&&(this.skirt_vertices=e.transferSkirtVertices(),this.skirt_uvs=e.transferSkirtUvs(),this.skirt_indices=e.transferSkirtIndices(),this.skirt_normals=e.transferSkirtNormals()),e.hasWatermask()&&(this.watermask=e.transferWatermask())}transferVertices(){throw Error()}transferUvs(){throw Error()}transferIndices(){throw Error()}transferHeights(){throw Error()}transferNormals(){throw Error()}transferSkirtVertices(){throw Error()}transferSkirtUvs(){throw Error()}transferSkirtIndices(){throw Error()}transferSkirtNormals(){throw Error()}transferWatermask(){throw Error()}hasSkirt(){return this.skirt_vertices!==void 0&&this.skirt_uvs!==void 0&&this.skirt_indices!==void 0}hasNormals(){return this.normals!==void 0}hasWatermask(){return this.watermask!==void 0}},D=class{east;north;south;west;constructor(e){this.east=e.east,this.north=e.north,this.south=e.south,this.west=e.west}},te=class{extent;position_3d_high;position_3d_high_size;position_3d_low;position_3d_low_size;position;position_size;normal;normal_size;scale_normal_and_cap;scale_normal_and_cap_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;rtc_translation;outline_position;outline_position_size;outline_scale_normal_and_cap;outline_scale_normal_and_cap_size;outline_skip_indices;outline_batch_index;outline_batch_index_size;constructor(e){let t=e.extent;this.extent=t?new D(t):void 0,this.position_3d_high=e.position_3d_high()?.slice(),this.position_3d_high_size=e.position_3d_high_size(),this.position_3d_low=e.position_3d_low()?.slice(),this.position_3d_low_size=e.position_3d_low_size(),this.position=e.position()?.slice(),this.position_size=e.position_size(),this.normal=e.normal()?.slice(),this.normal_size=e.normal_size(),this.scale_normal_and_cap=e.scale_normal_and_cap()?.slice(),this.scale_normal_and_cap_size=e.scale_normal_and_cap_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice(),this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0;let n=e.outline();n&&(this.outline_position=n.position()?.slice(),this.outline_position_size=n.position_size(),this.outline_scale_normal_and_cap=n.scale_normal_and_cap()?.slice(),this.outline_scale_normal_and_cap_size=n.scale_normal_and_cap_size(),this.outline_skip_indices=n.skip_indices()?.slice(),this.outline_batch_index=n.batch_index()?.slice(),this.outline_batch_index_size=n.batch_index_size(),n.free())}},O=class{extent;position;position_size;position_high;position_high_size;position_low;position_low_size;start;start_size;start_high;start_high_size;start_low;start_low_size;forward_offset;forward_offset_size;end_high;end_high_size;end_low;end_low_size;start_normals;start_normals_size;end_normal_and_texture_coordinate_normalization_x;end_normal_and_texture_coordinate_normalization_x_size;right_normal_and_texture_coordinate_normalization_y;right_normal_and_texture_coordinate_normalization_y_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;constructor(e){let t=e.extent;this.extent=t?new D(t):void 0,this.position=e.position().slice(),this.position_size=e.position_size(),this.position_high=e.position_high()?.slice(),this.position_high_size=e.position_high_size(),this.position_low=e.position_low()?.slice(),this.position_low_size=e.position_low_size(),this.start=e.start()?.slice(),this.start_size=e.start_size(),this.start_high=e.start_high()?.slice(),this.start_high_size=e.start_high_size(),this.start_low=e.start_low()?.slice(),this.start_low_size=e.start_low_size(),this.forward_offset=e.forward_offset()?.slice(),this.forward_offset_size=e.forward_offset_size(),this.end_high=e.end_high()?.slice(),this.end_high_size=e.end_high_size(),this.end_low=e.end_low()?.slice(),this.end_low_size=e.end_low_size(),this.start_normals=e.start_normals()?.slice(),this.start_normals_size=e.start_normals_size(),this.end_normal_and_texture_coordinate_normalization_x=e.end_normal_and_texture_coordinate_normalization_x()?.slice(),this.end_normal_and_texture_coordinate_normalization_x_size=e.end_normal_and_texture_coordinate_normalization_x_size(),this.right_normal_and_texture_coordinate_normalization_y=e.right_normal_and_texture_coordinate_normalization_y().slice(),this.right_normal_and_texture_coordinate_normalization_y_size=e.right_normal_and_texture_coordinate_normalization_y_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice()}},ne={value:()=>{}};function re(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ie(n)}function ie(e){this._=e}function ae(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ie.prototype=re.prototype={constructor:ie,on:function(e,t){var n=this._,r=ae(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=oe(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=se(n[i],e.name,t);else if(t==null)for(i in n)n[i]=se(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ie(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function oe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function se(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=ne,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ce={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function le(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ce.hasOwnProperty(t)?{space:ce[t],local:e}:e}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function de(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fe(e){var t=le(e);return(t.local?de:ue)(t)}function pe(){}function me(e){return e==null?pe:function(){return this.querySelector(e)}}function he(e){typeof e!=`function`&&(e=me(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new rn(r,this._parents)}function ge(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _e(){return[]}function ve(e){return e==null?_e:function(){return this.querySelectorAll(e)}}function ye(e){return function(){return ge(e.apply(this,arguments))}}function be(e){e=typeof e==`function`?ye(e):ve(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new rn(r,i)}function xe(e){return function(){return this.matches(e)}}function Se(e){return function(t){return t.matches(e)}}var Ce=Array.prototype.find;function we(e){return function(){return Ce.call(this.children,e)}}function Te(){return this.firstElementChild}function Ee(e){return this.select(e==null?Te:we(typeof e==`function`?e:Se(e)))}var De=Array.prototype.filter;function Oe(){return Array.from(this.children)}function ke(e){return function(){return De.call(this.children,e)}}function Ae(e){return this.selectAll(e==null?Oe:ke(typeof e==`function`?e:Se(e)))}function je(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new rn(r,this._parents)}function Me(e){return Array(e.length)}function Ne(){return new rn(this._enter||this._groups.map(Me),this._parents)}function Pe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Pe.prototype={constructor:Pe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fe(e){return function(){return e}}function Ie(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Pe(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Le(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Pe(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Re(e){return e.__data__}function ze(e,t){if(!arguments.length)return Array.from(this,Re);var n=t?Le:Ie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Be(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new rn(o,r),o._enter=s,o._exit=c,o}function Be(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ve(){return new rn(this._exit||this._groups.map(Me),this._parents)}function He(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ue(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new rn(s,this._parents)}function We(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ge(e){e||=Ke;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new rn(i,this._parents).order()}function Ke(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Je(){return Array.from(this)}function Ye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Xe(){let e=0;for(let t of this)++e;return e}function Ze(){return!this.node()}function Qe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function $e(e){return function(){this.removeAttribute(e)}}function et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tt(e,t){return function(){this.setAttribute(e,t)}}function nt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function it(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e,t){var n=le(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?et:$e:typeof t==`function`?n.local?it:rt:n.local?nt:tt)(n,t))}function ot(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function st(e){return function(){this.style.removeProperty(e)}}function ct(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ut(e,t,n){return arguments.length>1?this.each((t==null?st:typeof t==`function`?lt:ct)(e,t,n??``)):dt(this.node(),e)}function dt(e,t){return e.style.getPropertyValue(t)||ot(e).getComputedStyle(e,null).getPropertyValue(t)}function ft(e){return function(){delete this[e]}}function pt(e,t){return function(){this[e]=t}}function mt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ht(e,t){return arguments.length>1?this.each((t==null?ft:typeof t==`function`?mt:pt)(e,t)):this.node()[e]}function gt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new vt(e)}function vt(e){this._node=e,this._names=gt(e.getAttribute(`class`)||``)}vt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function bt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function xt(e){return function(){yt(this,e)}}function St(e){return function(){bt(this,e)}}function Ct(e,t){return function(){(t.apply(this,arguments)?yt:bt)(this,e)}}function wt(e,t){var n=gt(e+``);if(arguments.length<2){for(var r=_t(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Ct:t?xt:St)(n,t))}function Tt(){this.textContent=``}function Et(e){return function(){this.textContent=e}}function Dt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Ot(e){return arguments.length?this.each(e==null?Tt:(typeof e==`function`?Dt:Et)(e)):this.node().textContent}function kt(){this.innerHTML=``}function At(e){return function(){this.innerHTML=e}}function jt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Mt(e){return arguments.length?this.each(e==null?kt:(typeof e==`function`?jt:At)(e)):this.node().innerHTML}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function Pt(){return this.each(Nt)}function Ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function It(){return this.each(Ft)}function Lt(e){var t=typeof e==`function`?e:fe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rt(){return null}function zt(e,t){var n=typeof e==`function`?e:fe(e),r=t==null?Rt:typeof t==`function`?t:me(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Bt(){var e=this.parentNode;e&&e.removeChild(this)}function Vt(){return this.each(Bt)}function Ht(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wt(e){return this.select(e?Ut:Ht)}function Gt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Kt(e){return function(t){e.call(this,t,this.__data__)}}function qt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Jt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Yt(e,t,n){return function(){var r=this.__on,i,a=Kt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Xt(e,t,n){var r=qt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Yt:Jt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Zt(e,t,n){var r=ot(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Qt(e,t){return function(){return Zt(this,e,t)}}function $t(e,t){return function(){return Zt(this,e,t.apply(this,arguments))}}function en(e,t){return this.each((typeof t==`function`?$t:Qt)(e,t))}function*tn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var nn=[null];function rn(e,t){this._groups=e,this._parents=t}function an(){return new rn([[document.documentElement]],nn)}function on(){return this}rn.prototype=an.prototype={constructor:rn,select:he,selectAll:be,selectChild:Ee,selectChildren:Ae,filter:je,data:ze,enter:Ne,exit:Ve,join:He,merge:Ue,selection:on,order:We,sort:Ge,call:qe,nodes:Je,node:Ye,size:Xe,empty:Ze,each:Qe,attr:at,style:ut,property:ht,classed:wt,text:Ot,html:Mt,raise:Pt,lower:It,append:Lt,insert:zt,remove:Vt,clone:Wt,datum:Gt,on:Xt,dispatch:en,[Symbol.iterator]:tn};function sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ln(){}var un=.7,dn=1/un,fn=`\\s*([+-]?\\d+)\\s*`,pn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,mn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,hn=/^#([0-9a-f]{3,8})$/,gn=RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),_n=RegExp(`^rgb\\(${mn},${mn},${mn}\\)$`),vn=RegExp(`^rgba\\(${fn},${fn},${fn},${pn}\\)$`),yn=RegExp(`^rgba\\(${mn},${mn},${mn},${pn}\\)$`),bn=RegExp(`^hsl\\(${pn},${mn},${mn}\\)$`),xn=RegExp(`^hsla\\(${pn},${mn},${mn},${pn}\\)$`),Sn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sn(ln,Dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cn,formatHex:Cn,formatHex8:wn,formatHsl:Tn,formatRgb:En,toString:En});function Cn(){return this.rgb().formatHex()}function wn(){return this.rgb().formatHex8()}function Tn(){return zn(this).formatHsl()}function En(){return this.rgb().formatRgb()}function Dn(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=hn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?On(t):n===3?new k(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gn.exec(e))?new k(t[1],t[2],t[3],1):(t=_n.exec(e))?new k(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vn.exec(e))?kn(t[1],t[2],t[3],t[4]):(t=yn.exec(e))?kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,1):(t=xn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,t[4]):Sn.hasOwnProperty(e)?On(Sn[e]):e===`transparent`?new k(NaN,NaN,NaN,0):null}function On(e){return new k(e>>16&255,e>>8&255,e&255,1)}function kn(e,t,n,r){return r<=0&&(e=t=n=NaN),new k(e,t,n,r)}function An(e){return e instanceof ln||(e=Dn(e)),e?(e=e.rgb(),new k(e.r,e.g,e.b,e.opacity)):new k}function jn(e,t,n,r){return arguments.length===1?An(e):new k(e,t,n,r??1)}function k(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sn(k,jn,cn(ln,{brighter(e){return e=e==null?dn:dn**+e,new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?un:un**+e,new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(In(this.r),In(this.g),In(this.b),Fn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mn,formatHex:Mn,formatHex8:Nn,formatRgb:Pn,toString:Pn}));function Mn(){return`#${Ln(this.r)}${Ln(this.g)}${Ln(this.b)}`}function Nn(){return`#${Ln(this.r)}${Ln(this.g)}${Ln(this.b)}${Ln((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pn(){let e=Fn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${In(this.r)}, ${In(this.g)}, ${In(this.b)}${e===1?`)`:`, ${e})`}`}function Fn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function In(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ln(e){return e=In(e),(e<16?`0`:``)+e.toString(16)}function Rn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vn(e,t,n,r)}function zn(e){if(e instanceof Vn)return new Vn(e.h,e.s,e.l,e.opacity);if(e instanceof ln||(e=Dn(e)),!e)return new Vn;if(e instanceof Vn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Vn(o,s,c,e.opacity)}function Bn(e,t,n,r){return arguments.length===1?zn(e):new Vn(e,t,n,r??1)}function Vn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sn(Vn,Bn,cn(ln,{brighter(e){return e=e==null?dn:dn**+e,new Vn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?un:un**+e,new Vn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new k(Wn(e>=240?e-240:e+120,i,r),Wn(e,i,r),Wn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vn(Hn(this.h),Un(this.s),Un(this.l),Fn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Fn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Hn(this.h)}, ${Un(this.s)*100}%, ${Un(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Hn(e){return e=(e||0)%360,e<0?e+360:e}function Un(e){return Math.max(0,Math.min(1,e||0))}function Wn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Gn=e=>()=>e;function Kn(e,t){return function(n){return e+n*t}}function qn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Jn(e){return(e=+e)==1?Yn:function(t,n){return n-t?qn(t,n,e):Gn(isNaN(t)?n:t)}}function Yn(e,t){var n=t-e;return n?Kn(e,n):Gn(isNaN(e)?t:e)}var Xn=(function e(t){var n=Jn(t);function r(e,t){var r=n((e=jn(e)).r,(t=jn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Yn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Zn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Qn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$n=new RegExp(Qn.source,`g`);function er(e){return function(){return e}}function tr(e){return function(t){return e(t)+``}}function nr(e,t){var n=Qn.lastIndex=$n.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Qn.exec(e))&&(i=$n.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Zn(r,i)})),n=$n.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?tr(c[0].x):er(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var rr=180/Math.PI,ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ar(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*rr,skewX:Math.atan(c)*rr,scaleX:o,scaleY:s}}var or;function sr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ir:ar(t.a,t.b,t.c,t.d,t.e,t.f)}function cr(e){return e==null||(or||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),or.setAttribute(`transform`,e),!(e=or.transform.baseVal.consolidate()))?ir:(e=e.matrix,ar(e.a,e.b,e.c,e.d,e.e,e.f))}function lr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Zn(e,i)},{i:c-2,x:Zn(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Zn(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Zn(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Zn(e,n)},{i:s-2,x:Zn(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ur=lr(sr,`px, `,`px)`,`deg)`),dr=lr(cr,`, `,`)`,`)`),fr=0,pr=0,mr=0,hr=1e3,gr,_r,vr=0,yr=0,br=0,xr=typeof performance==`object`&&performance.now?performance:Date,Sr=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cr(){return yr||=(Sr(wr),xr.now()+br)}function wr(){yr=0}function Tr(){this._call=this._time=this._next=null}Tr.prototype=Er.prototype={constructor:Tr,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Cr():+n)+(t==null?0:+t),!this._next&&_r!==this&&(_r?_r._next=this:gr=this,_r=this),this._call=e,this._time=n,jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,jr())}};function Er(e,t,n){var r=new Tr;return r.restart(e,t,n),r}function Dr(){Cr(),++fr;for(var e=gr,t;e;)(t=yr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fr}function Or(){yr=(vr=xr.now())+br,fr=pr=0;try{Dr()}finally{fr=0,Ar(),yr=0}}function kr(){var e=xr.now(),t=e-vr;t>hr&&(br-=t,vr=e)}function Ar(){for(var e,t=gr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:gr=n);_r=e,jr(r)}function jr(e){fr||(pr&&=clearTimeout(pr),e-yr>24?(e<1/0&&(pr=setTimeout(Or,e-xr.now()-br)),mr&&=clearInterval(mr)):(mr||=(vr=xr.now(),setInterval(kr,hr)),fr=1,Sr(Or)))}function Mr(e,t,n){var r=new Tr;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Nr=re(`start`,`end`,`cancel`,`interrupt`),Pr=[];function Fr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;zr(e,n,{name:t,index:r,group:i,on:Nr,tween:Pr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Ir(e,t){var n=Rr(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Lr(e,t){var n=Rr(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Rr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function zr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Er(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Mr(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Mr(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Br(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Vr(e){return this.each(function(){Br(this,e)})}function Hr(e,t){var n,r;return function(){var i=Lr(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ur(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Lr(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Wr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Rr(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Hr:Ur)(n,e,t))}function Gr(e,t,n){var r=e._id;return e.each(function(){var e=Lr(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Rr(e,r).value[t]}}function Kr(e,t){var n;return(typeof t==`number`?Zn:t instanceof Dn?Xn:(n=Dn(t))?(t=n,Xn):nr)(e,t)}function qr(e){return function(){this.removeAttribute(e)}}function Jr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Xr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Zr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Qr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function $r(e,t){var n=le(e),r=n===`transform`?dr:Kr;return this.attrTween(e,typeof t==`function`?(n.local?Qr:Zr)(n,r,Gr(this,`attr.`+e,t)):t==null?(n.local?Jr:qr)(n):(n.local?Xr:Yr)(n,r,t))}function ei(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ti(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ni(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ti(e,i)),n}return i._value=t,i}function ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ei(e,i)),n}return i._value=t,i}function ii(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=le(e);return this.tween(n,(r.local?ni:ri)(r,t))}function ai(e,t){return function(){Ir(this,e).delay=+t.apply(this,arguments)}}function oi(e,t){return t=+t,function(){Ir(this,e).delay=t}}function si(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ai:oi)(t,e)):Rr(this.node(),t).delay}function ci(e,t){return function(){Lr(this,e).duration=+t.apply(this,arguments)}}function li(e,t){return t=+t,function(){Lr(this,e).duration=t}}function ui(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ci:li)(t,e)):Rr(this.node(),t).duration}function di(e,t){if(typeof t!=`function`)throw Error();return function(){Lr(this,e).ease=t}}function fi(e){var t=this._id;return arguments.length?this.each(di(t,e)):Rr(this.node(),t).ease}function pi(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Lr(this,e).ease=n}}function mi(e){if(typeof e!=`function`)throw Error();return this.each(pi(this._id,e))}function hi(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Wi(r,this._parents,this._name,this._id)}function gi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Wi(o,this._parents,this._name,this._id)}function _i(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function vi(e,t,n){var r,i,a=_i(t)?Ir:Lr;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function yi(e,t){var n=this._id;return arguments.length<2?Rr(this.node(),n).on.on(e):this.each(vi(n,e,t))}function bi(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function xi(){return this.on(`end.remove`,bi(this._id))}function Si(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=me(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Fr(l[f],t,n,f,l,Rr(u,n)));return new Wi(a,this._parents,t,n)}function Ci(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ve(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Rr(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Fr(p,t,n,h,f,m);a.push(f),o.push(u)}return new Wi(a,o,t,n)}var wi=an.prototype.constructor;function Ti(){return new wi(this._groups,this._parents)}function Ei(e,t){var n,r,i;return function(){var a=dt(this,e),o=(this.style.removeProperty(e),dt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Di(e){return function(){this.style.removeProperty(e)}}function Oi(e,t,n){var r,i=n+``,a;return function(){var o=dt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ki(e,t,n){var r,i,a;return function(){var o=dt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),dt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ai(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Lr(this,e),l=c.on,u=c.value[a]==null?s||=Di(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function ji(e,t,n){var r=(e+=``)==`transform`?ur:Kr;return t==null?this.styleTween(e,Ei(e,r)).on(`end.style.`+e,Di(e)):typeof t==`function`?this.styleTween(e,ki(e,r,Gr(this,`style.`+e,t))).each(Ai(this._id,e)):this.styleTween(e,Oi(e,r,t),n).on(`end.style.`+e,null)}function Mi(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ni(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Mi(e,a,n)),r}return a._value=t,a}function Pi(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Ni(e,t,n??``))}function Fi(e){return function(){this.textContent=e}}function Ii(e){return function(){var t=e(this);this.textContent=t??``}}function Li(e){return this.tween(`text`,typeof e==`function`?Ii(Gr(this,`text`,e)):Fi(e==null?``:e+``))}function Ri(e){return function(t){this.textContent=e.call(this,t)}}function zi(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ri(r)),t}return r._value=e,r}function Bi(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,zi(e))}function Vi(){for(var e=this._name,t=this._id,n=Ki(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Rr(c,t);Fr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Wi(r,this._parents,e,n)}function Hi(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Lr(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Ui=0;function Wi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gi(e){return an().transition(e)}function Ki(){return++Ui}var qi=an.prototype;Wi.prototype=Gi.prototype={constructor:Wi,select:Si,selectAll:Ci,selectChild:qi.selectChild,selectChildren:qi.selectChildren,filter:hi,merge:gi,selection:Ti,transition:Vi,call:qi.call,nodes:qi.nodes,node:qi.node,size:qi.size,empty:qi.empty,each:qi.each,on:yi,attr:$r,attrTween:ii,style:ji,styleTween:Pi,text:Li,textTween:Bi,remove:xi,tween:Wr,delay:si,duration:ui,ease:fi,easeVarying:mi,end:Hi,[Symbol.iterator]:qi[Symbol.iterator]};function Ji(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Yi={time:null,delay:0,duration:250,ease:Ji};function Xi(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Zi(e){var t,n;e instanceof Wi?(t=e._id,e=e._name):(t=Ki(),(n=Yi).time=Cr(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Fr(c,e,t,l,o,n||Xi(c,t));return new Wi(r,this._parents,e,t)}an.prototype.interrupt=Vr,an.prototype.transition=Zi;let{abs:Qi,max:$i,min:ea}=Math;[`w`,`e`].map(ta),[`n`,`s`].map(ta),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(ta);function ta(e){return{type:e}}function na(e,t,n){this.k=e,this.x=t,this.y=n}na.prototype={constructor:na,scale:function(e){return e===1?this:new na(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new na(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var ra=new na(1,0,0);ia.prototype=na.prototype;function ia(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ra;return e.__zoom}var aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_aabb_free(e,0)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.aabb_new(n,r);return this.__wbg_ptr=i,bo.register(this,this.__wbg_ptr,this),this}get center(){let e=R.__wbg_get_aabb_center(this.__wbg_ptr);return j.__wrap(e)}get extent(){let e=R.__wbg_get_aabb_extent(this.__wbg_ptr);return j.__wrap(e)}set center(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_aabb_center(this.__wbg_ptr,t)}set extent(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_aabb_extent(this.__wbg_ptr,t)}};Symbol.dispose&&(aa.prototype[Symbol.dispose]=aa.prototype.free);var oa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_batchpropresult_free(e,0)}get layerId(){let e=R.__wbg_get_batchpropresult_layerId(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get properties(){return R.__wbg_get_batchpropresult_properties(this.__wbg_ptr)}set layerId(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_batchpropresult_layerId(this.__wbg_ptr,t,n)}set properties(e){R.__wbg_set_batchpropresult_properties(this.__wbg_ptr,e)}};Symbol.dispose&&(oa.prototype[Symbol.dispose]=oa.prototype.free);var sa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,So.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_billboardmaterial_free(e,0)}get alphaTest(){let e=R.__wbg_get_billboardmaterial_alphaTest(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_billboardmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_billboardmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_billboardmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_billboardmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_billboardmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_billboardmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_billboardmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_billboardmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_billboardmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_billboardmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_billboardmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_billboardmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_billboardmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_billboardmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_billboardmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_billboardmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_billboardmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}set alphaTest(e){R.__wbg_set_billboardmaterial_alphaTest(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_billboardmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_billboardmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_billboardmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_billboardmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_billboardmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_billboardmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_billboardmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_billboardmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_billboardmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_billboardmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_billboardmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_billboardmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_billboardmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_billboardmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_billboardmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_billboardmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_billboardmaterial_url(this.__wbg_ptr,t,n)}};Symbol.dispose&&(sa.prototype[Symbol.dispose]=sa.prototype.free);var ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Co.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_boundingsphere_free(e,0)}constructor(e,t,n,r){let i=R.boundingsphere_new(e,t,n,r);return this.__wbg_ptr=i,Co.register(this,this.__wbg_ptr,this),this}get center_x(){return R.__wbg_get_boundingsphere_center_x(this.__wbg_ptr)}get center_y(){return R.__wbg_get_boundingsphere_center_y(this.__wbg_ptr)}get center_z(){return R.__wbg_get_boundingsphere_center_z(this.__wbg_ptr)}get radius(){return R.__wbg_get_boundingsphere_radius(this.__wbg_ptr)}set center_x(e){R.__wbg_set_boundingsphere_center_x(this.__wbg_ptr,e)}set center_y(e){R.__wbg_set_boundingsphere_center_y(this.__wbg_ptr,e)}set center_z(e){R.__wbg_set_boundingsphere_center_z(this.__wbg_ptr,e)}set radius(e){R.__wbg_set_boundingsphere_radius(this.__wbg_ptr,e)}};Symbol.dispose&&(ca.prototype[Symbol.dispose]=ca.prototype.free),Object.freeze({Geographic:0,0:`Geographic`,Geocentric:1,1:`Geocentric`});var la=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cachedmeshhandle_free(e,0)}constructor(e,t,n,r){let i=R.cachedmeshhandle_new(e,t,n,F(r)?2**53-1:r>>0);return this.__wbg_ptr=i,wo.register(this,this.__wbg_ptr,this),this}get heights(){let e=R.__wbg_get_cachedmeshhandle_heights(this.__wbg_ptr);return e===2**53-1?void 0:e}get indices(){return R.__wbg_get_cachedmeshhandle_indices(this.__wbg_ptr)}get normals(){let e=R.__wbg_get_cachedmeshhandle_normals(this.__wbg_ptr);return e===2**53-1?void 0:e}get uvs(){return R.__wbg_get_cachedmeshhandle_uvs(this.__wbg_ptr)}get vertices(){return R.__wbg_get_cachedmeshhandle_vertices(this.__wbg_ptr)}get watermask(){let e=R.__wbg_get_cachedmeshhandle_watermask(this.__wbg_ptr);return e===2**53-1?void 0:e}set heights(e){R.__wbg_set_cachedmeshhandle_heights(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set indices(e){R.__wbg_set_cachedmeshhandle_indices(this.__wbg_ptr,e)}set normals(e){R.__wbg_set_cachedmeshhandle_normals(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set uvs(e){R.__wbg_set_cachedmeshhandle_uvs(this.__wbg_ptr,e)}set vertices(e){R.__wbg_set_cachedmeshhandle_vertices(this.__wbg_ptr,e)}set watermask(e){R.__wbg_set_cachedmeshhandle_watermask(this.__wbg_ptr,F(e)?2**53-1:e>>0)}};Symbol.dispose&&(la.prototype[Symbol.dispose]=la.prototype.free);var ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,To.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameracontrolupdateevent_free(e,0)}constructor(){let e=R.cameracontrolupdateevent_new();return this.__wbg_ptr=e,To.register(this,this.__wbg_ptr,this),this}get autoAdjustNearFar(){let e=R.__wbg_get_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableSpin(){let e=R.__wbg_get_cameracontrolupdateevent_enableSpin(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableTilt(){let e=R.__wbg_get_cameracontrolupdateevent_enableTilt(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableZoom(){let e=R.__wbg_get_cameracontrolupdateevent_enableZoom(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maximumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minimumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get spinDuration(){let e=R.__wbg_get_cameracontrolupdateevent_spinDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get spinSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get translateDuration(){let e=R.__wbg_get_cameracontrolupdateevent_translateDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomDuration(){let e=R.__wbg_get_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set autoAdjustNearFar(e){R.__wbg_set_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableSpin(e){R.__wbg_set_cameracontrolupdateevent_enableSpin(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableTilt(e){R.__wbg_set_cameracontrolupdateevent_enableTilt(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableZoom(e){R.__wbg_set_cameracontrolupdateevent_enableZoom(this.__wbg_ptr,F(e)?16777215:+!!e)}set maximumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set minimumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set spinDuration(e){R.__wbg_set_cameracontrolupdateevent_spinDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set spinSpeed(e){R.__wbg_set_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}set translateDuration(e){R.__wbg_set_cameracontrolupdateevent_translateDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomDuration(e){R.__wbg_set_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomSpeed(e){R.__wbg_set_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ua.prototype[Symbol.dispose]=ua.prototype.free),Object.freeze({Forward:0,0:`Forward`,Backward:1,1:`Backward`,Left:2,2:`Left`,Right:3,3:`Right`,Up:4,4:`Up`,Down:5,5:`Down`});var da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Eo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerafrustum_free(e,0)}constructor(e,t,n,r){let i=R.camerafrustum_new(e,t,n,r);return this.__wbg_ptr=i,Eo.register(this,this.__wbg_ptr,this),this}get aspect_ratio(){return R.__wbg_get_camerafrustum_aspect_ratio(this.__wbg_ptr)}get far(){return R.__wbg_get_camerafrustum_far(this.__wbg_ptr)}get fov(){return R.__wbg_get_camerafrustum_fov(this.__wbg_ptr)}get near(){return R.__wbg_get_camerafrustum_near(this.__wbg_ptr)}set aspect_ratio(e){R.__wbg_set_camerafrustum_aspect_ratio(this.__wbg_ptr,e)}set far(e){R.__wbg_set_camerafrustum_far(this.__wbg_ptr,e)}set fov(e){R.__wbg_set_camerafrustum_fov(this.__wbg_ptr,e)}set near(e){R.__wbg_set_camerafrustum_near(this.__wbg_ptr,e)}};Symbol.dispose&&(da.prototype[Symbol.dispose]=da.prototype.free);var fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Do.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraorientation_free(e,0)}get heading(){return R.__wbg_get_cameraorientation_heading(this.__wbg_ptr)}get pitch(){return R.__wbg_get_cameraorientation_pitch(this.__wbg_ptr)}get roll(){return R.__wbg_get_cameraorientation_roll(this.__wbg_ptr)}set heading(e){R.__wbg_set_cameraorientation_heading(this.__wbg_ptr,e)}set pitch(e){R.__wbg_set_cameraorientation_pitch(this.__wbg_ptr,e)}set roll(e){R.__wbg_set_cameraorientation_roll(this.__wbg_ptr,e)}};Symbol.dispose&&(fa.prototype[Symbol.dispose]=fa.prototype.free);var pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Oo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerastatus_free(e,0)}get status(){let e=R.__wbg_get_camerastatus_status(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}set status(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_camerastatus_status(this.__wbg_ptr,t,n)}};Symbol.dispose&&(pa.prototype[Symbol.dispose]=pa.prototype.free),Object.freeze({Change:0,0:`Change`,LookAt:1,1:`LookAt`,Rotate:2,2:`Rotate`,MoveStart:3,3:`MoveStart`,Moving:4,4:`Moving`,MoveEnd:5,5:`MoveEnd`});var ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledexpression_free(e,0)}evaluate(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledexpression_evaluate(this.__wbg_ptr,e,t,r,i);if(a[2])throw Xs(a[1]);return Xs(a[0])}getRequiredProperties(){return R.compiledexpression_getRequiredProperties(this.__wbg_ptr)}constructor(e,t){var n=F(t)?0:I(t,R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;let i=R.compiledexpression_new(e,n,r);if(i[2])throw Xs(i[1]);return this.__wbg_ptr=i[0],ko.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ma.prototype[Symbol.dispose]=ma.prototype.free);var ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ao.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledfilter_free(e,0)}constructor(e){let t=R.compiledfilter_new(e);if(t[2])throw Xs(t[1]);return this.__wbg_ptr=t[0],Ao.register(this,this.__wbg_ptr,this),this}test(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledfilter_test(this.__wbg_ptr,e,t,r,i);if(a[2])throw Xs(a[1]);return a[0]!==0}};Symbol.dispose&&(ha.prototype[Symbol.dispose]=ha.prototype.free);var ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,jo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygongeometry_free(e,0)}batch_id(){return R.constructedpolygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolygongeometry_indices(this.__wbg_ptr)}normal(){return R.constructedpolygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.constructedpolygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}outline(){let e=R.constructedpolygongeometry_outline(this.__wbg_ptr);return e===0?void 0:_a.__wrap(e)}position(){return R.constructedpolygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.constructedpolygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.constructedpolygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.constructedpolygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.__wbg_get_constructedpolygongeometry_extent(this.__wbg_ptr);return e===0?void 0:Ca.__wrap(e)}get rtc_translation(){let e=R.__wbg_get_constructedpolygongeometry_rtc_translation(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}set extent(e){let t=0;F(e)||(M(e,Ca),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_extent(this.__wbg_ptr,t)}set rtc_translation(e){let t=0;F(e)||(M(e,j),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(ga.prototype[Symbol.dispose]=ga.prototype.free);var _a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Mo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Mo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygonoutlinegeometry_free(e,0)}batch_index(){return R.constructedpolygonoutlinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygonoutlinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.constructedpolygonoutlinegeometry_position(this.__wbg_ptr)}position_size(){return R.constructedpolygonoutlinegeometry_position_size(this.__wbg_ptr)}scale_normal_and_cap(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap_size(this.__wbg_ptr)}skip_indices(){return R.constructedpolygonoutlinegeometry_skip_indices(this.__wbg_ptr)}};Symbol.dispose&&(_a.prototype[Symbol.dispose]=_a.prototype.free);var va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,No.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,No.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolylinegeometry_free(e,0)}batch_id(){return R.constructedpolylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.constructedpolylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.constructedpolylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.constructedpolylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.constructedpolylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.constructedpolylinegeometry_extent(this.__wbg_ptr);return e===0?void 0:Ca.__wrap(e)}forward_offset(){return R.constructedpolylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.constructedpolylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolylinegeometry_indices(this.__wbg_ptr)}position(){return R.constructedpolylinegeometry_position(this.__wbg_ptr)}position_high(){return R.constructedpolylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.constructedpolylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.constructedpolylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.constructedpolylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.constructedpolylinegeometry_start(this.__wbg_ptr)}start_high(){return R.constructedpolylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.constructedpolylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.constructedpolylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.constructedpolylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.constructedpolylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.constructedpolylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.constructedpolylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(va.prototype[Symbol.dispose]=va.prototype.free);var ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Po.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Po.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationdecoder_free(e,0)}static japanGSI(){let t=R.elevationdecoder_japanGSI();return e.__wrap(t)}static mapbox(){let t=R.elevationdecoder_mapbox();return e.__wrap(t)}constructor(e,t,n,r,i,a,o,s){let c=R.elevationdecoder_new(e,t,n,r,i,a,o,s);return this.__wbg_ptr=c,Po.register(this,this.__wbg_ptr,this),this}static terrarium(){let t=R.elevationdecoder_terrarium();return e.__wrap(t)}get b_scaler(){return R.__wbg_get_elevationdecoder_b_scaler(this.__wbg_ptr)}get boundary(){return R.__wbg_get_elevationdecoder_boundary(this.__wbg_ptr)}get epsilon(){return R.__wbg_get_elevationdecoder_epsilon(this.__wbg_ptr)}get g_scaler(){return R.__wbg_get_elevationdecoder_g_scaler(this.__wbg_ptr)}get max_offset(){return R.__wbg_get_elevationdecoder_max_offset(this.__wbg_ptr)}get min_offset(){return R.__wbg_get_elevationdecoder_min_offset(this.__wbg_ptr)}get offset(){return R.__wbg_get_elevationdecoder_offset(this.__wbg_ptr)}get r_scaler(){return R.__wbg_get_elevationdecoder_r_scaler(this.__wbg_ptr)}set b_scaler(e){R.__wbg_set_elevationdecoder_b_scaler(this.__wbg_ptr,e)}set boundary(e){R.__wbg_set_elevationdecoder_boundary(this.__wbg_ptr,e)}set epsilon(e){R.__wbg_set_elevationdecoder_epsilon(this.__wbg_ptr,e)}set g_scaler(e){R.__wbg_set_elevationdecoder_g_scaler(this.__wbg_ptr,e)}set max_offset(e){R.__wbg_set_elevationdecoder_max_offset(this.__wbg_ptr,e)}set min_offset(e){R.__wbg_set_elevationdecoder_min_offset(this.__wbg_ptr,e)}set offset(e){R.__wbg_set_elevationdecoder_offset(this.__wbg_ptr,e)}set r_scaler(e){R.__wbg_set_elevationdecoder_r_scaler(this.__wbg_ptr,e)}};Symbol.dispose&&(ya.prototype[Symbol.dispose]=ya.prototype.free);var ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Fo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationheatmapmaterial_free(e,0)}get logBoundary(){let e=R.__wbg_get_elevationheatmapmaterial_logBoundary(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get logarithmic(){let e=R.__wbg_get_elevationheatmapmaterial_logarithmic(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxHeight(){let e=R.__wbg_get_elevationheatmapmaterial_maxHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minHeight(){let e=R.__wbg_get_elevationheatmapmaterial_minHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set logBoundary(e){R.__wbg_set_elevationheatmapmaterial_logBoundary(this.__wbg_ptr,!F(e),F(e)?0:e)}set logarithmic(e){R.__wbg_set_elevationheatmapmaterial_logarithmic(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxHeight(e){R.__wbg_set_elevationheatmapmaterial_maxHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}set minHeight(e){R.__wbg_set_elevationheatmapmaterial_minHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ba.prototype[Symbol.dispose]=ba.prototype.free);var xa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Io.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ellipsoidgeodesic_free(e,0)}interpolateDistance(e){let t=R.ellipsoidgeodesic_interpolateDistance(this.__wbg_ptr,e);return Oa.__wrap(t)}interpolateGeodeticPoints(e){let t=R.ellipsoidgeodesic_interpolateGeodeticPoints(this.__wbg_ptr,!F(e),F(e)?0:e);var n=Ms(t[0],t[1]).slice();return R.__wbindgen_free(t[0],t[1]*4,4),n}constructor(e,t){M(e,Oa);var n=e.__destroy_into_raw();M(t,Oa);var r=t.__destroy_into_raw();let i=R.ellipsoidgeodesic_new(n,r);return this.__wbg_ptr=i,Io.register(this,this.__wbg_ptr,this),this}get distance(){return R.__wbg_get_ellipsoidgeodesic_distance(this.__wbg_ptr)}get end_heading(){return R.__wbg_get_ellipsoidgeodesic_end_heading(this.__wbg_ptr)}get end(){let e=R.__wbg_get_ellipsoidgeodesic_end(this.__wbg_ptr);return Oa.__wrap(e)}get start_heading(){return R.__wbg_get_ellipsoidgeodesic_start_heading(this.__wbg_ptr)}get start(){let e=R.__wbg_get_ellipsoidgeodesic_start(this.__wbg_ptr);return Oa.__wrap(e)}set distance(e){R.__wbg_set_ellipsoidgeodesic_distance(this.__wbg_ptr,e)}set end_heading(e){R.__wbg_set_ellipsoidgeodesic_end_heading(this.__wbg_ptr,e)}set end(e){M(e,Oa);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_end(this.__wbg_ptr,t)}set start_heading(e){R.__wbg_set_ellipsoidgeodesic_start_heading(this.__wbg_ptr,e)}set start(e){M(e,Oa);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_start(this.__wbg_ptr,t)}};Symbol.dispose&&(xa.prototype[Symbol.dispose]=xa.prototype.free);var Sa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Lo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_encodedvec3_free(e,0)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.encodedvec3_new(n,r);return this.__wbg_ptr=i,Lo.register(this,this.__wbg_ptr,this),this}get high(){let e=R.__wbg_get_encodedvec3_high(this.__wbg_ptr);return j.__wrap(e)}get low(){let e=R.__wbg_get_encodedvec3_low(this.__wbg_ptr);return j.__wrap(e)}set high(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_high(this.__wbg_ptr,t)}set low(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_low(this.__wbg_ptr,t)}};Symbol.dispose&&(Sa.prototype[Symbol.dispose]=Sa.prototype.free);var Ca=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ro.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ro.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_extentradianf32_free(e,0)}constructor(e,t,n,r){let i=R.extentradianf32_new(e,t,n,r);return this.__wbg_ptr=i,Ro.register(this,this.__wbg_ptr,this),this}get east(){return R.__wbg_get_extentradianf32_east(this.__wbg_ptr)}get north(){return R.__wbg_get_extentradianf32_north(this.__wbg_ptr)}get south(){return R.__wbg_get_extentradianf32_south(this.__wbg_ptr)}get west(){return R.__wbg_get_extentradianf32_west(this.__wbg_ptr)}set east(e){R.__wbg_set_extentradianf32_east(this.__wbg_ptr,e)}set north(e){R.__wbg_set_extentradianf32_north(this.__wbg_ptr,e)}set south(e){R.__wbg_set_extentradianf32_south(this.__wbg_ptr,e)}set west(e){R.__wbg_set_extentradianf32_west(this.__wbg_ptr,e)}};Symbol.dispose&&(Ca.prototype[Symbol.dispose]=Ca.prototype.free);var wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_floatattribute_free(e,0)}constructor(e,t){let n=qs(e,R.__wbindgen_malloc),r=L,i=R.floatattribute_new(n,r,t);return this.__wbg_ptr=i,zo.register(this,this.__wbg_ptr,this),this}transferData(){return R.floatattribute_transferData(this.__wbg_ptr)}get size(){return R.__wbg_get_floatattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_floatattribute_size(this.__wbg_ptr,e)}};Symbol.dispose&&(wa.prototype[Symbol.dispose]=wa.prototype.free);var Ta=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_geometry_free(e,0)}hasNormals(){return R.geometry_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.geometry_hasSkirt(this.__wbg_ptr)!==0}constructor(e,t,n){let r=qs(e,R.__wbindgen_malloc),i=L,a=Gs(t,R.__wbindgen_malloc),o=L,s=qs(n,R.__wbindgen_malloc),c=L,l=R.geometry_new(r,i,a,o,s,c);return this.__wbg_ptr=l,Bo.register(this,this.__wbg_ptr,this),this}transferIndices(){return R.geometry_transferIndices(this.__wbg_ptr)}transferNormals(){return R.geometry_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.geometry_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.geometry_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.geometry_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.geometry_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.geometry_transferUvs(this.__wbg_ptr)}transferVertices(){return R.geometry_transferVertices(this.__wbg_ptr)}};Symbol.dispose&&(Ta.prototype[Symbol.dispose]=Ta.prototype.free);var Ea=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Vo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_globe_free(e,0)}get color(){return R.__wbg_get_globe_color(this.__wbg_ptr)>>>0}get elevationColormap(){let e=R.__wbg_get_globe_elevationColormap(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get hideUnderground(){return R.__wbg_get_globe_hideUnderground(this.__wbg_ptr)!==0}get isGeographicTiling(){return R.__wbg_get_globe_isGeographicTiling(this.__wbg_ptr)!==0}get maxSse(){return R.__wbg_get_globe_maxSse(this.__wbg_ptr)}get opacity(){return R.__wbg_get_globe_opacity(this.__wbg_ptr)}get segments(){return R.__wbg_get_globe_segments(this.__wbg_ptr)}get transparent(){return R.__wbg_get_globe_transparent(this.__wbg_ptr)!==0}get useNormal(){return R.__wbg_get_globe_useNormal(this.__wbg_ptr)!==0}get wireframe(){return R.__wbg_get_globe_wireframe(this.__wbg_ptr)!==0}constructor(e,t,n,r,i,a,o,s,c){let l=qs(c,R.__wbindgen_malloc),u=L,d=R.globe_new(e,t,n,r,i,a,o,s,l,u);return this.__wbg_ptr=d,Vo.register(this,this.__wbg_ptr,this),this}set color(e){R.__wbg_set_globe_color(this.__wbg_ptr,e)}set elevationColormap(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_globe_elevationColormap(this.__wbg_ptr,t,n)}set hideUnderground(e){R.__wbg_set_globe_hideUnderground(this.__wbg_ptr,e)}set isGeographicTiling(e){R.__wbg_set_globe_isGeographicTiling(this.__wbg_ptr,e)}set maxSse(e){R.__wbg_set_globe_maxSse(this.__wbg_ptr,e)}set opacity(e){R.__wbg_set_globe_opacity(this.__wbg_ptr,e)}set segments(e){R.__wbg_set_globe_segments(this.__wbg_ptr,e)}set transparent(e){R.__wbg_set_globe_transparent(this.__wbg_ptr,e)}set useNormal(e){R.__wbg_set_globe_useNormal(this.__wbg_ptr,e)}set wireframe(e){R.__wbg_set_globe_wireframe(this.__wbg_ptr,e)}};Symbol.dispose&&(Ea.prototype[Symbol.dispose]=Ea.prototype.free);var Da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ho.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_hillshadematerial_free(e,0)}get exaggeration(){let e=R.__wbg_get_hillshadematerial_exaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}set exaggeration(e){R.__wbg_set_hillshadematerial_exaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Da.prototype[Symbol.dispose]=Da.prototype.free);var Oa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Uo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Uo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_lle_free(e,0)}get height(){return R.__wbg_get_lle_height(this.__wbg_ptr)}get lat(){return R.__wbg_get_lle_lat(this.__wbg_ptr)}get lng(){return R.__wbg_get_lle_lng(this.__wbg_ptr)}constructor(e,t,n){let r=R.lle_new(e,t,n);return this.__wbg_ptr=r,Uo.register(this,this.__wbg_ptr,this),this}set height(e){R.__wbg_set_lle_height(this.__wbg_ptr,e)}set lat(e){R.__wbg_set_lle_lat(this.__wbg_ptr,e)}set lng(e){R.__wbg_set_lle_lng(this.__wbg_ptr,e)}};Symbol.dispose&&(Oa.prototype[Symbol.dispose]=Oa.prototype.free);var ka=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelinternalmaterial_free(e,0)}get dracoCompressed(){return R.__wbg_get_modelinternalmaterial_dracoCompressed(this.__wbg_ptr)!==0}get pointCloudGeodeticNormal(){let e=R.__wbg_get_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr);return j.__wrap(e)}get pointCloud(){return R.__wbg_get_modelinternalmaterial_pointCloud(this.__wbg_ptr)!==0}set dracoCompressed(e){R.__wbg_set_modelinternalmaterial_dracoCompressed(this.__wbg_ptr,e)}set pointCloudGeodeticNormal(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr,t)}set pointCloud(e){R.__wbg_set_modelinternalmaterial_pointCloud(this.__wbg_ptr,e)}};Symbol.dispose&&(ka.prototype[Symbol.dispose]=ka.prototype.free);var Aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Go.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_modelmaterial___internal__(this.__wbg_ptr);return e===0?void 0:ka.__wrap(e)}get animationActiveClip(){let e=R.__wbg_get_modelmaterial_animationActiveClip(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get animationSpeed(){let e=R.__wbg_get_modelmaterial_animationSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get applyWaterNormal(){let e=R.__wbg_get_modelmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_modelmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_modelmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get creaseNormalAngle(){let e=R.__wbg_get_modelmaterial_creaseNormalAngle(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_modelmaterial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_modelmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_modelmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_modelmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_modelmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_modelmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxSse(){let e=R.__wbg_get_modelmaterial_maxSse(this.__wbg_ptr);return e===2**53-1?void 0:e}get metalness(){let e=R.__wbg_get_modelmaterial_metalness(this.__wbg_ptr);return e===2**53-1?void 0:e}get normals(){let e=R.__wbg_get_modelmaterial_normals(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_modelmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get pointSize(){let e=R.__wbg_get_modelmaterial_pointSize(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_modelmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_modelmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_modelmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_modelmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get shouldRotateInDefault(){let e=R.__wbg_get_modelmaterial_shouldRotateInDefault(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_modelmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_modelmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_modelmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get specularStrength(){let e=R.__wbg_get_modelmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_modelmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_modelmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_modelmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get waterScaleNormal(){let e=R.__wbg_get_modelmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_modelmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_modelmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}set __internal__(e){let t=0;F(e)||(M(e,ka),t=e.__destroy_into_raw()),R.__wbg_set_modelmaterial___internal__(this.__wbg_ptr,t)}set animationActiveClip(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_animationActiveClip(this.__wbg_ptr,t,n)}set animationSpeed(e){R.__wbg_set_modelmaterial_animationSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set applyWaterNormal(e){R.__wbg_set_modelmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_modelmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_modelmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set creaseNormalAngle(e){R.__wbg_set_modelmaterial_creaseNormalAngle(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set depthWrite(e){R.__wbg_set_modelmaterial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_modelmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_modelmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_modelmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_modelmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_modelmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxSse(e){R.__wbg_set_modelmaterial_maxSse(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set metalness(e){R.__wbg_set_modelmaterial_metalness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set normals(e){R.__wbg_set_modelmaterial_normals(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_modelmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set pointSize(e){R.__wbg_set_modelmaterial_pointSize(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_modelmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_modelmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_modelmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_modelmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shouldRotateInDefault(e){R.__wbg_set_modelmaterial_shouldRotateInDefault(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_modelmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_modelmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_modelmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specularStrength(e){R.__wbg_set_modelmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_modelmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_modelmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_url(this.__wbg_ptr,t,n)}set waterScaleNormal(e){R.__wbg_set_modelmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_modelmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_modelmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Aa.prototype[Symbol.dispose]=Aa.prototype.free);var ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_nearfar_free(e,0)}get far(){return R.__wbg_get_nearfar_far(this.__wbg_ptr)}get near(){return R.__wbg_get_nearfar_near(this.__wbg_ptr)}set far(e){R.__wbg_set_nearfar_far(this.__wbg_ptr,e)}set near(e){R.__wbg_set_nearfar_near(this.__wbg_ptr,e)}};Symbol.dispose&&(ja.prototype[Symbol.dispose]=ja.prototype.free);var Ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_overscaledtilehandle_free(e,0)}get handle(){let e=R.__wbg_get_overscaledtilehandle_handle(this.__wbg_ptr);return BigInt.asUintN(64,e)}set handle(e){R.__wbg_set_overscaledtilehandle_handle(this.__wbg_ptr,e)}};Symbol.dispose&&(Ma.prototype[Symbol.dispose]=Ma.prototype.free);var Na=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_plane_free(e,0)}get distance(){return R.__wbg_get_plane_distance(this.__wbg_ptr)}get normal(){let e=R.__wbg_get_plane_normal(this.__wbg_ptr);return j.__wrap(e)}set distance(e){R.__wbg_set_plane_distance(this.__wbg_ptr,e)}set normal(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_plane_normal(this.__wbg_ptr,t)}};Symbol.dispose&&(Na.prototype[Symbol.dispose]=Na.prototype.free);var Pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_pointmaterial_free(e,0)}get center(){let e=R.__wbg_get_pointmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_pointmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_pointmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_pointmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_pointmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_pointmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_pointmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_pointmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_pointmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_pointmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_pointmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_pointmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_pointmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_pointmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_pointmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_pointmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_pointmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_pointmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_pointmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_pointmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_pointmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_pointmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_pointmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_pointmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_pointmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_pointmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_pointmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_pointmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_pointmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_pointmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_pointmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_pointmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Pa.prototype[Symbol.dispose]=Pa.prototype.free);var Fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometry_free(e,0)}batch_id(){return R.polygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polygongeometry_indices(this.__wbg_ptr)}normal(){return R.polygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.polygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.polygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.polygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.polygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.polygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.polygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.polygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.polygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.polygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Fa.prototype[Symbol.dispose]=Fa.prototype.free);var Ia=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometryattributes_free(e,0)}transfer_batch_id(){return R.polygongeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polygongeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polygongeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polygongeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_normal(){return R.polygongeometryattributes_transfer_normal(this.__wbg_ptr)}transfer_normal_size(){let e=R.polygongeometryattributes_transfer_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polygongeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_3d_high(){return R.polygongeometryattributes_transfer_position_3d_high(this.__wbg_ptr)}transfer_position_3d_high_size(){let e=R.polygongeometryattributes_transfer_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_3d_low(){return R.polygongeometryattributes_transfer_position_3d_low(this.__wbg_ptr)}transfer_position_3d_low_size(){let e=R.polygongeometryattributes_transfer_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){let e=R.polygongeometryattributes_transfer_position_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_scale_normal_and_cap(){return R.polygongeometryattributes_transfer_scale_normal_and_cap(this.__wbg_ptr)}transfer_scale_normal_and_cap_size(){let e=R.polygongeometryattributes_transfer_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ia.prototype[Symbol.dispose]=Ia.prototype.free);var La=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Qo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygoninternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(La.prototype[Symbol.dispose]=La.prototype.free);var Ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$o.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygonmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_polygonmaterial___internal__(this.__wbg_ptr);return e===0?void 0:La.__wrap(e)}get applyWaterNormal(){let e=R.__wbg_get_polygonmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_polygonmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polygonmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polygonmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get effectIds(){let e=R.__wbg_get_polygonmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polygonmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polygonmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get extrudedHeight(){let e=R.__wbg_get_polygonmaterial_extrudedHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polygonmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polygonmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_polygonmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineShow(){let e=R.__wbg_get_polygonmaterial_outlineShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get outlineWidth(){let e=R.__wbg_get_polygonmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get outline(){let e=R.__wbg_get_polygonmaterial_outline(this.__wbg_ptr);return e===16777215?void 0:e!==0}get perPositionHeight(){let e=R.__wbg_get_polygonmaterial_perPositionHeight(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_polygonmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_polygonmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_polygonmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_polygonmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_polygonmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get specularStrength(){let e=R.__wbg_get_polygonmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_polygonmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get surfaceShow(){let e=R.__wbg_get_polygonmaterial_surfaceShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polygonmaterial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polygonmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get waterScaleNormal(){let e=R.__wbg_get_polygonmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_polygonmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_polygonmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}get wireframe(){let e=R.__wbg_get_polygonmaterial_wireframe(this.__wbg_ptr);return e===16777215?void 0:e!==0}constructor(e,t,n,r,i,a,o,s,c,l,u,d){let f=0;F(d)||(M(d,La),f=d.__destroy_into_raw());let p=R.polygonmaterial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?16777215:+!!c,F(l)?16777215:+!!l,F(u)?16777215:+!!u,f);return this.__wbg_ptr=p,$o.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(M(e,La),t=e.__destroy_into_raw()),R.__wbg_set_polygonmaterial___internal__(this.__wbg_ptr,t)}set applyWaterNormal(e){R.__wbg_set_polygonmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_polygonmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polygonmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polygonmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygonmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polygonmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polygonmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set extrudedHeight(e){R.__wbg_set_polygonmaterial_extrudedHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polygonmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_polygonmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polygonmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_polygonmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineShow(e){R.__wbg_set_polygonmaterial_outlineShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set outlineWidth(e){R.__wbg_set_polygonmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outline(e){R.__wbg_set_polygonmaterial_outline(this.__wbg_ptr,F(e)?16777215:+!!e)}set perPositionHeight(e){R.__wbg_set_polygonmaterial_perPositionHeight(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_polygonmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_polygonmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_polygonmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_polygonmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_polygonmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set specularStrength(e){R.__wbg_set_polygonmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_polygonmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set surfaceShow(e){R.__wbg_set_polygonmaterial_surfaceShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polygonmaterial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polygonmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set waterScaleNormal(e){R.__wbg_set_polygonmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_polygonmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_polygonmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}set wireframe(e){R.__wbg_set_polygonmaterial_wireframe(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ra.prototype[Symbol.dispose]=Ra.prototype.free);var za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometry_free(e,0)}batch_id(){return R.polylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.polylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.polylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.polylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.polylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}forward_offset(){return R.polylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.polylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polylinegeometry_indices(this.__wbg_ptr)}position(){return R.polylinegeometry_position(this.__wbg_ptr)}position_high(){return R.polylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.polylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.polylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.polylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.polylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.polylinegeometry_start(this.__wbg_ptr)}start_high(){return R.polylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.polylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.polylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.polylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.polylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.polylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.polylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(za.prototype[Symbol.dispose]=za.prototype.free);var Ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometryattributes_free(e,0)}transfer_batch_id(){return R.polylinegeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polylinegeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polylinegeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polylinegeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_high(){return R.polylinegeometryattributes_transfer_end_high(this.__wbg_ptr)}transfer_end_high_size(){let e=R.polylinegeometryattributes_transfer_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_low(){return R.polylinegeometryattributes_transfer_end_low(this.__wbg_ptr)}transfer_end_low_size(){let e=R.polylinegeometryattributes_transfer_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}transfer_end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_forward_offset(){return R.polylinegeometryattributes_transfer_forward_offset(this.__wbg_ptr)}transfer_forward_offset_size(){let e=R.polylinegeometryattributes_transfer_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polylinegeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_high(){return R.polylinegeometryattributes_transfer_position_high(this.__wbg_ptr)}transfer_position_high_size(){let e=R.polylinegeometryattributes_transfer_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_low(){return R.polylinegeometryattributes_transfer_position_low(this.__wbg_ptr)}transfer_position_low_size(){let e=R.polylinegeometryattributes_transfer_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){return R.polylinegeometryattributes_transfer_position_size(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}transfer_start(){return R.polylinegeometryattributes_transfer_start(this.__wbg_ptr)}transfer_start_high(){return R.polylinegeometryattributes_transfer_start_high(this.__wbg_ptr)}transfer_start_high_size(){let e=R.polylinegeometryattributes_transfer_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_low(){return R.polylinegeometryattributes_transfer_start_low(this.__wbg_ptr)}transfer_start_low_size(){let e=R.polylinegeometryattributes_transfer_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_normals(){return R.polylinegeometryattributes_transfer_start_normals(this.__wbg_ptr)}transfer_start_normals_size(){let e=R.polylinegeometryattributes_transfer_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_size(){let e=R.polylinegeometryattributes_transfer_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ba.prototype[Symbol.dispose]=Ba.prototype.free);var Va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ns.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ns.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylineinternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Va.prototype[Symbol.dispose]=Va.prototype.free);var Ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,rs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinematerial_free(e,0)}get __internal__(){let e=R.__wbg_get_polylinematerial___internal__(this.__wbg_ptr);return e===0?void 0:Va.__wrap(e)}get castShadow(){let e=R.__wbg_get_polylinematerial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polylinematerial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polylinematerial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_polylinematerial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_polylinematerial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polylinematerial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polylinematerial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polylinematerial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_polylinematerial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polylinematerial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_polylinematerial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_polylinematerial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polylinematerial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polylinematerial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get width(){let e=R.__wbg_get_polylinematerial_width(this.__wbg_ptr);return e===2**53-1?void 0:e}constructor(e,t,n,r,i,a,o,s,c,l){let u=0;F(l)||(M(l,Va),u=l.__destroy_into_raw());let d=R.polylinematerial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?2**53-1:Math.fround(c),u);return this.__wbg_ptr=d,rs.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(M(e,Va),t=e.__destroy_into_raw()),R.__wbg_set_polylinematerial___internal__(this.__wbg_ptr,t)}set castShadow(e){R.__wbg_set_polylinematerial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polylinematerial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polylinematerial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set depthWrite(e){R.__wbg_set_polylinematerial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylinematerial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polylinematerial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polylinematerial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polylinematerial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_polylinematerial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polylinematerial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_polylinematerial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_polylinematerial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polylinematerial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polylinematerial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set width(e){R.__wbg_set_polylinematerial_width(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Ha.prototype[Symbol.dispose]=Ha.prototype.free);var Ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,is.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastermaterial_free(e,0)}get color(){let e=R.__wbg_get_rastermaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_rastermaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get showBoundingBox(){let e=R.__wbg_get_rastermaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_rastermaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}set color(e){R.__wbg_set_rastermaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set opacity(e){R.__wbg_set_rastermaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set showBoundingBox(e){R.__wbg_set_rastermaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_rastermaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ua.prototype[Symbol.dispose]=Ua.prototype.free);var Wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,as.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastertileinternalmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_rastertileinternalmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get colors(){let e=R.__wbg_get_rastertileinternalmaterial_colors(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get elevationBScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr)}get elevationBoundary(){return R.__wbg_get_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr)}get elevationEpsilon(){return R.__wbg_get_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr)}get elevationGScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr)}get elevationMaxHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr)}get elevationMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr)}get elevationMinHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr)}get elevationMinOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr)}get elevationOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr)}get elevationRScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr)}get hillshadeBScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr)}get hillshadeBoundary(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr)}get hillshadeEpsilon(){return R.__wbg_get_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr)}get hillshadeExaggeration(){return R.__wbg_get_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr)}get hillshadeGScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr)}get hillshadeMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr)}get hillshadeMinOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr)}get hillshadeOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr)}get hillshadeRScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr)}get isElevationHeatmaps(){let e=R.__wbg_get_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get isHillshades(){let e=R.__wbg_get_rastertileinternalmaterial_isHillshades(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get layerReproject(){let e=R.__wbg_get_rastertileinternalmaterial_layerReproject(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get logBoundary(){return R.__wbg_get_rastertileinternalmaterial_logBoundary(this.__wbg_ptr)}get logarithmic(){return R.__wbg_get_rastertileinternalmaterial_logarithmic(this.__wbg_ptr)!==0}get opacities(){let e=R.__wbg_get_rastertileinternalmaterial_opacities(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get receiveShadow(){let e=R.__wbg_get_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get shows(){let e=R.__wbg_get_rastertileinternalmaterial_shows(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get terrainLatRange(){let e=R.__wbg_get_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}layerUvTransforms(){let e=R.rastertileinternalmaterial_layerUvTransforms(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}texture_fragments(){let e=R.rastertileinternalmaterial_texture_fragments(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}set castShadow(e){R.__wbg_set_rastertileinternalmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set colors(e){let t=Gs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_colors(this.__wbg_ptr,t,n)}set elevationBScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr,e)}set elevationBoundary(e){R.__wbg_set_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr,e)}set elevationEpsilon(e){R.__wbg_set_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr,e)}set elevationGScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr,e)}set elevationMaxHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr,e)}set elevationMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr,e)}set elevationMinHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr,e)}set elevationMinOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr,e)}set elevationOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr,e)}set elevationRScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr,e)}set hillshadeBScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr,e)}set hillshadeBoundary(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr,e)}set hillshadeEpsilon(e){R.__wbg_set_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr,e)}set hillshadeExaggeration(e){R.__wbg_set_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr,e)}set hillshadeGScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr,e)}set hillshadeMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr,e)}set hillshadeMinOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr,e)}set hillshadeOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr,e)}set hillshadeRScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr,e)}set isElevationHeatmaps(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr,t,n)}set isHillshades(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isHillshades(this.__wbg_ptr,t,n)}set layerReproject(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr,t,n)}set logBoundary(e){R.__wbg_set_rastertileinternalmaterial_logBoundary(this.__wbg_ptr,e)}set logarithmic(e){R.__wbg_set_rastertileinternalmaterial_logarithmic(this.__wbg_ptr,e)}set opacities(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_opacities(this.__wbg_ptr,t,n)}set receiveShadow(e){R.__wbg_set_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set shows(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_shows(this.__wbg_ptr,t,n)}set terrainLatRange(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Wa.prototype[Symbol.dispose]=Wa.prototype.free);var Ga=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,os.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ray_free(e,0)}get direction(){let e=R.__wbg_get_ray_direction(this.__wbg_ptr);return j.__wrap(e)}get origin(){let e=R.__wbg_get_ray_origin(this.__wbg_ptr);return j.__wrap(e)}getPoint(e){let t=R.ray_getPoint(this.__wbg_ptr,e);return j.__wrap(t)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.ray_new(n,r);return this.__wbg_ptr=i,os.register(this,this.__wbg_ptr,this),this}set direction(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_ray_direction(this.__wbg_ptr,t)}set origin(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_ray_origin(this.__wbg_ptr,t)}};Symbol.dispose&&(Ga.prototype[Symbol.dispose]=Ga.prototype.free);var Ka=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ss.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_returnedconstructedterrainmesh_free(e,0)}get max_height(){return R.__wbg_get_returnedconstructedterrainmesh_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_returnedconstructedterrainmesh_min_height(this.__wbg_ptr)}get rtc_translation(){let e=R.__wbg_get_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}hasNormals(){return R.returnedconstructedterrainmesh_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.returnedconstructedterrainmesh_hasSkirt(this.__wbg_ptr)!==0}hasWatermask(){return R.returnedconstructedterrainmesh_hasWatermask(this.__wbg_ptr)!==0}constructor(e,t,n,r,i){M(e,Ta);var a=e.__destroy_into_raw();let o=qs(r,R.__wbindgen_malloc),s=L,c=0;F(i)||(M(i,j),c=i.__destroy_into_raw());let l=R.returnedconstructedterrainmesh_new(a,t,n,o,s,c);return this.__wbg_ptr=l,ss.register(this,this.__wbg_ptr,this),this}transferHeights(){return R.returnedconstructedterrainmesh_transferHeights(this.__wbg_ptr)}transferIndices(){return R.returnedconstructedterrainmesh_transferIndices(this.__wbg_ptr)}transferNormals(){return R.returnedconstructedterrainmesh_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.returnedconstructedterrainmesh_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.returnedconstructedterrainmesh_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.returnedconstructedterrainmesh_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.returnedconstructedterrainmesh_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.returnedconstructedterrainmesh_transferUvs(this.__wbg_ptr)}transferVertices(){return R.returnedconstructedterrainmesh_transferVertices(this.__wbg_ptr)}transferWatermask(){return R.returnedconstructedterrainmesh_transferWatermask(this.__wbg_ptr)}set max_height(e){R.__wbg_set_returnedconstructedterrainmesh_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_returnedconstructedterrainmesh_min_height(this.__wbg_ptr,e)}set rtc_translation(e){let t=0;F(e)||(M(e,j),t=e.__destroy_into_raw()),R.__wbg_set_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(Ka.prototype[Symbol.dispose]=Ka.prototype.free);var qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_terrainmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_terrainmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_terrainmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_terrainmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get skirtExaggeration(){let e=R.__wbg_get_terrainmaterial_skirtExaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}get skirt(){let e=R.__wbg_get_terrainmaterial_skirt(this.__wbg_ptr);return e===16777215?void 0:e!==0}set castShadow(e){R.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_terrainmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_terrainmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_terrainmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set skirtExaggeration(e){R.__wbg_set_terrainmaterial_skirtExaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set skirt(e){R.__wbg_set_terrainmaterial_skirt(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(qa.prototype[Symbol.dispose]=qa.prototype.free);var Ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ls.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_textmaterial_free(e,0)}get backgroundColor(){let e=R.__wbg_get_textmaterial_backgroundColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderColor(){let e=R.__wbg_get_textmaterial_borderColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderWidth(){let e=R.__wbg_get_textmaterial_borderWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_textmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_textmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_textmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_textmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_textmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_textmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get font(){let e=R.__wbg_get_textmaterial_font(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get height(){let e=R.__wbg_get_textmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get highQuality(){let e=R.__wbg_get_textmaterial_highQuality(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lang(){let e=R.__wbg_get_textmaterial_lang(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get lineHeight(){let e=R.__wbg_get_textmaterial_lineHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_textmaterial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_textmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_textmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_textmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineOpacity(){let e=R.__wbg_get_textmaterial_outlineOpacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineWidth(){let e=R.__wbg_get_textmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_textmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_textmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_textmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get textAlign(){let e=R.__wbg_get_textmaterial_textAlign(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get text(){let e=R.__wbg_get_textmaterial_text(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get transparent(){let e=R.__wbg_get_textmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set backgroundColor(e){R.__wbg_set_textmaterial_backgroundColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderColor(e){R.__wbg_set_textmaterial_borderColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderWidth(e){R.__wbg_set_textmaterial_borderWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_textmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_textmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_textmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_textmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_textmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_textmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set font(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_font(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_textmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set highQuality(e){R.__wbg_set_textmaterial_highQuality(this.__wbg_ptr,F(e)?16777215:+!!e)}set lang(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_lang(this.__wbg_ptr,t,n)}set lineHeight(e){R.__wbg_set_textmaterial_lineHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_textmaterial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_textmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_textmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_textmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineOpacity(e){R.__wbg_set_textmaterial_outlineOpacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineWidth(e){R.__wbg_set_textmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_textmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_textmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_textmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set textAlign(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_textAlign(this.__wbg_ptr,t,n)}set text(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_text(this.__wbg_ptr,t,n)}set transparent(e){R.__wbg_set_textmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ja.prototype[Symbol.dispose]=Ja.prototype.free);var Ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,us.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,us.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_texturefragment_free(e,0)}get gen(){return R.__wbg_get_texturefragment_gen(this.__wbg_ptr)>>>0}get ind(){return R.__wbg_get_texturefragment_ind(this.__wbg_ptr)>>>0}set gen(e){R.__wbg_set_texturefragment_gen(this.__wbg_ptr,e)}set ind(e){R.__wbg_set_texturefragment_ind(this.__wbg_ptr,e)}};Symbol.dispose&&(Ya.prototype[Symbol.dispose]=Ya.prototype.free);var Xa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ds.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tileuvtransform_free(e,0)}get offset(){let e=R.__wbg_get_tileuvtransform_offset(this.__wbg_ptr);return A.__wrap(e)}get scale(){let e=R.__wbg_get_tileuvtransform_scale(this.__wbg_ptr);return A.__wrap(e)}set offset(e){M(e,A);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_offset(this.__wbg_ptr,t)}set scale(e){M(e,A);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_scale(this.__wbg_ptr,t)}};Symbol.dispose&&(Xa.prototype[Symbol.dispose]=Xa.prototype.free);var Za=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,fs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,fs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tilexyz_free(e,0)}get x(){return R.__wbg_get_tilexyz_x(this.__wbg_ptr)>>>0}get y(){return R.__wbg_get_tilexyz_y(this.__wbg_ptr)>>>0}get z(){return R.__wbg_get_tilexyz_z(this.__wbg_ptr)>>>0}set x(e){R.__wbg_set_tilexyz_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_tilexyz_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_tilexyz_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.tilexyz_new(e,t,n);return this.__wbg_ptr=r,fs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(Za.prototype[Symbol.dispose]=Za.prototype.free);var Qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ps.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablehierarchy_free(e,0)}get expected_winding_order(){return R.__wbg_get_transferablehierarchy_expected_winding_order(this.__wbg_ptr)}set expected_winding_order(e){R.__wbg_set_transferablehierarchy_expected_winding_order(this.__wbg_ptr,e)}};Symbol.dispose&&(Qa.prototype[Symbol.dispose]=Qa.prototype.free);var $a=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ms.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableholes_free(e,0)}};Symbol.dispose&&($a.prototype[Symbol.dispose]=$a.prototype.free);var eo=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,hs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,hs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablemartini_free(e,0)}get size(){return R.__wbg_get_transferablemartini_size(this.__wbg_ptr)>>>0}set size(e){R.__wbg_set_transferablemartini_size(this.__wbg_ptr,e)}static fromSize(t){let n=R.transferablemartini_fromSize(t);return e.__wrap(n)}constructor(e,t){let n=Gs(t,R.__wbindgen_malloc),r=L,i=R.transferablemartini_new(e,n,r);return this.__wbg_ptr=i,hs.register(this,this.__wbg_ptr,this),this}transfer_coords(){return R.transferablemartini_transfer_coords(this.__wbg_ptr)}};Symbol.dispose&&(eo.prototype[Symbol.dispose]=eo.prototype.free);var to=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,gs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,gs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableparsedmvtresult_free(e,0)}f32_stream(){return R.transferableparsedmvtresult_f32_stream(this.__wbg_ptr)}f64_stream(){return R.transferableparsedmvtresult_f64_stream(this.__wbg_ptr)}meta(){return R.transferableparsedmvtresult_meta(this.__wbg_ptr)}u32_stream(){return R.transferableparsedmvtresult_u32_stream(this.__wbg_ptr)}u8_stream(){return R.transferableparsedmvtresult_u8_stream(this.__wbg_ptr)}};Symbol.dispose&&(to.prototype[Symbol.dispose]=to.prototype.free);var no=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_s.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolygonbatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolygonbatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolygonbatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolygonbatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolygonbatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolygonbatchedfeature_constructor(e,t);return this.__wbg_ptr=n,_s.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolygonbatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolygonbatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setExpectedWindingOrders(e,t){R.transferablepolygonbatchedfeature_setExpectedWindingOrders(this.__wbg_ptr,e,t)}setHoles(e,t){R.transferablepolygonbatchedfeature_setHoles(this.__wbg_ptr,e,t)}setHolesBoundaries(e,t){R.transferablepolygonbatchedfeature_setHolesBoundaries(this.__wbg_ptr,e,t)}setHolesSizes(e,t){R.transferablepolygonbatchedfeature_setHolesSizes(this.__wbg_ptr,e,t)}setHolesTotalSizes(e,t){R.transferablepolygonbatchedfeature_setHolesTotalSizes(this.__wbg_ptr,e,t)}setOuterRing(e,t){R.transferablepolygonbatchedfeature_setOuterRing(this.__wbg_ptr,e,t)}setOuterRingSizes(e,t){R.transferablepolygonbatchedfeature_setOuterRingSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolygonbatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolygonbatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferExpectedWindingOrders(){return R.transferablepolygonbatchedfeature_transferExpectedWindingOrders(this.__wbg_ptr)}transferHoles(){return R.transferablepolygonbatchedfeature_transferHoles(this.__wbg_ptr)}transferHolesBoundaries(){return R.transferablepolygonbatchedfeature_transferHolesBoundaries(this.__wbg_ptr)}transferHolesSizes(){return R.transferablepolygonbatchedfeature_transferHolesSizes(this.__wbg_ptr)}transferHolesTotalSizes(){return R.transferablepolygonbatchedfeature_transferHolesTotalSizes(this.__wbg_ptr)}transferOuterRing(){return R.transferablepolygonbatchedfeature_transferOuterRing(this.__wbg_ptr)}transferOuterRingSizes(){return R.transferablepolygonbatchedfeature_transferOuterRingSizes(this.__wbg_ptr)}};Symbol.dispose&&(no.prototype[Symbol.dispose]=no.prototype.free);var ro=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,vs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolylinebatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolylinebatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolylinebatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolylinebatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolylinebatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolylinebatchedfeature_constructor(e,t);return this.__wbg_ptr=n,vs.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolylinebatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolylinebatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setPoints(e,t){R.transferablepolylinebatchedfeature_setPoints(this.__wbg_ptr,e,t)}setPointsSizes(e,t){R.transferablepolylinebatchedfeature_setPointsSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolylinebatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolylinebatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferPoints(){return R.transferablepolylinebatchedfeature_transferPoints(this.__wbg_ptr)}transferPointsSizes(){return R.transferablepolylinebatchedfeature_transferPointsSizes(this.__wbg_ptr)}};Symbol.dispose&&(ro.prototype[Symbol.dispose]=ro.prototype.free);var io=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ys.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablerasterdemdata_free(e,0)}get decoder(){let e=R.__wbg_get_transferablerasterdemdata_decoder(this.__wbg_ptr);return ya.__wrap(e)}set decoder(e){M(e,ya);var t=e.__destroy_into_raw();R.__wbg_set_transferablerasterdemdata_decoder(this.__wbg_ptr,t)}constructor(e){M(e,ya);var t=e.__destroy_into_raw();let n=R.transferablerasterdemdata_new(t);return this.__wbg_ptr=n,ys.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(io.prototype[Symbol.dispose]=io.prototype.free);var ao=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferabletile_free(e,0)}get cached_mesh_handle(){let e=R.__wbg_get_transferabletile_cached_mesh_handle(this.__wbg_ptr);return e===0?void 0:la.__wrap(e)}get coords(){let e=R.__wbg_get_transferabletile_coords(this.__wbg_ptr);return Za.__wrap(e)}get max_height(){return R.__wbg_get_transferabletile_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_transferabletile_min_height(this.__wbg_ptr)}set cached_mesh_handle(e){let t=0;F(e)||(M(e,la),t=e.__destroy_into_raw()),R.__wbg_set_transferabletile_cached_mesh_handle(this.__wbg_ptr,t)}set coords(e){M(e,Za);var t=e.__destroy_into_raw();R.__wbg_set_transferabletile_coords(this.__wbg_ptr,t)}set max_height(e){R.__wbg_set_transferabletile_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_transferabletile_min_height(this.__wbg_ptr,e)}constructor(e,t,n,r){M(e,Za);var i=e.__destroy_into_raw();let a=0;F(r)||(M(r,la),a=r.__destroy_into_raw());let o=R.transferabletile_new(i,t,n,a);return this.__wbg_ptr=o,bs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ao.prototype[Symbol.dispose]=ao.prototype.free);var oo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transform_free(e,0)}get qw(){return R.__wbg_get_transform_qw(this.__wbg_ptr)}get qx(){return R.__wbg_get_transform_qx(this.__wbg_ptr)}get qy(){return R.__wbg_get_transform_qy(this.__wbg_ptr)}get qz(){return R.__wbg_get_transform_qz(this.__wbg_ptr)}get sx(){return R.__wbg_get_transform_sx(this.__wbg_ptr)}get sy(){return R.__wbg_get_transform_sy(this.__wbg_ptr)}get sz(){return R.__wbg_get_transform_sz(this.__wbg_ptr)}get tx(){return R.__wbg_get_transform_tx(this.__wbg_ptr)}get ty(){return R.__wbg_get_transform_ty(this.__wbg_ptr)}get tz(){return R.__wbg_get_transform_tz(this.__wbg_ptr)}set qw(e){R.__wbg_set_transform_qw(this.__wbg_ptr,e)}set qx(e){R.__wbg_set_transform_qx(this.__wbg_ptr,e)}set qy(e){R.__wbg_set_transform_qy(this.__wbg_ptr,e)}set qz(e){R.__wbg_set_transform_qz(this.__wbg_ptr,e)}set sx(e){R.__wbg_set_transform_sx(this.__wbg_ptr,e)}set sy(e){R.__wbg_set_transform_sy(this.__wbg_ptr,e)}set sz(e){R.__wbg_set_transform_sz(this.__wbg_ptr,e)}set tx(e){R.__wbg_set_transform_tx(this.__wbg_ptr,e)}set ty(e){R.__wbg_set_transform_ty(this.__wbg_ptr,e)}set tz(e){R.__wbg_set_transform_tz(this.__wbg_ptr,e)}constructor(e,t,n,r,i,a,o,s,c,l){let u=R.transform_new(e,t,n,r,i,a,o,s,c,l);return this.__wbg_ptr=u,xs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(oo.prototype[Symbol.dispose]=oo.prototype.free);var so=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_uintattribute_free(e,0)}get size(){return R.__wbg_get_uintattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_uintattribute_size(this.__wbg_ptr,e)}constructor(e,t){let n=Gs(e,R.__wbindgen_malloc),r=L,i=R.uintattribute_new(n,r,t);return this.__wbg_ptr=i,Ss.register(this,this.__wbg_ptr,this),this}transferData(){return R.uintattribute_transferData(this.__wbg_ptr)}};Symbol.dispose&&(so.prototype[Symbol.dispose]=so.prototype.free);var co=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_upsamplableterraingeometry_free(e,0)}constructor(e,t,n,r,i){let a=qs(e,R.__wbindgen_malloc),o=L,s=Gs(t,R.__wbindgen_malloc),c=L,l=qs(n,R.__wbindgen_malloc),u=L;var d=F(r)?0:qs(r,R.__wbindgen_malloc),f=L,p=F(i)?0:Ks(i,R.__wbindgen_malloc),m=L;let h=R.upsamplableterraingeometry_new(a,o,s,c,l,u,d,f,p,m);return this.__wbg_ptr=h,Cs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(co.prototype[Symbol.dispose]=co.prototype.free);var A=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ws.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ws.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec2_free(e,0)}get x(){return R.__wbg_get_vec2_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec2_y(this.__wbg_ptr)}set x(e){R.__wbg_set_vec2_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec2_y(this.__wbg_ptr,e)}constructor(e,t){let n=R.vec2_new(e,t);return this.__wbg_ptr=n,ws.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);var j=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ts.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec3_free(e,0)}get x(){return R.__wbg_get_vec3_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec3_y(this.__wbg_ptr)}get z(){return R.__wbg_get_vec3_z(this.__wbg_ptr)}set x(e){R.__wbg_set_vec3_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec3_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_vec3_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.vec3_new(e,t,n);return this.__wbg_ptr=r,Ts.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var lo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_windingorder_free(e,0)}get 0(){return R.__wbg_get_windingorder_0(this.__wbg_ptr)}set 0(e){R.__wbg_set_windingorder_0(this.__wbg_ptr,e)}};Symbol.dispose&&(lo.prototype[Symbol.dispose]=lo.prototype.free);var uo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_window_free(e,0)}get height(){return R.__wbg_get_window_height(this.__wbg_ptr)}get pixelRatio(){return R.__wbg_get_window_pixelRatio(this.__wbg_ptr)}get width(){return R.__wbg_get_window_width(this.__wbg_ptr)}set height(e){R.__wbg_set_window_height(this.__wbg_ptr,e)}set pixelRatio(e){R.__wbg_set_window_pixelRatio(this.__wbg_ptr,e)}set width(e){R.__wbg_set_window_width(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.window_new(e,t,n);return this.__wbg_ptr=r,Ds.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(uo.prototype[Symbol.dispose]=uo.prototype.free);function fo(e,t,n,r){M(e,no);var i=e.__destroy_into_raw();M(t,Ra);var a=t.__destroy_into_raw();let o=0;F(r)||(M(r,Ca),o=r.__destroy_into_raw());let s=R.constructPolygonBatchedFeature(i,a,n,o);return s===0?void 0:ga.__wrap(s)}function po(e,t,n){M(e,ro);var r=e.__destroy_into_raw();M(t,Ha);var i=t.__destroy_into_raw();let a=R.constructPolylineBatchedFeature(r,i,n);return a===0?void 0:va.__wrap(a)}function mo(e,t,n,r,i,a){let o=Ks(e,R.__wbindgen_malloc),s=L;M(t,ao);var c=t.__destroy_into_raw();let l=R.constructQuantizedMeshTerrainMesh(o,s,c,n,r,i,a);return Ka.__wrap(l)}function ho(e,t,n,r,i,a){let o=Ks(e,R.__wbindgen_malloc),s=L;M(t,ao);var c=t.__destroy_into_raw();M(n,io);var l=n.__destroy_into_raw();M(r,eo);var u=r.__destroy_into_raw();let d=R.constructTerrainMesh(o,s,c,l,u,i,a);return Ka.__wrap(d)}function go(e,t,n,r,i,a,o){let s=Ks(e,R.__wbindgen_malloc),c=L,l=0;F(i)||(M(i,Ca),l=i.__destroy_into_raw());let u=I(o,R.__wbindgen_malloc,R.__wbindgen_realloc),d=L,f=R.parseMvtTile(s,c,t,n,r,l,a,u,d);if(f[2])throw Xs(f[1]);return to.__wrap(f[0])}function _o(e,t,n,r,i,a,o){M(e,ao);var s=e.__destroy_into_raw();M(t,ao);var c=t.__destroy_into_raw();M(n,co);var l=n.__destroy_into_raw();let u=R.upsampleQuantizedMeshTerrainMesh(s,c,l,r,i,a,o);return Ka.__wrap(u)}function vo(e,t,n,r,i,a,o){M(e,ao);var s=e.__destroy_into_raw();M(t,ao);var c=t.__destroy_into_raw();M(n,io);var l=n.__destroy_into_raw();M(r,co);var u=r.__destroy_into_raw();let d=R.upsampleTerrainMesh(s,c,l,u,i,a,o);return Ka.__wrap(d)}function yo(){return{__proto__:null,"./navara_wasm_worker_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(P(e,t))},__wbg_Number_9a4e0ecb0fa16705:function(e){return Number(e)},__wbg_String_8564e559799eccda:function(e,t){let n=I(String(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;N().setInt32(e+4,r,!0),N().setInt32(e+0,n,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(e,t){let n=t,r=typeof n==`bigint`?n:void 0;N().setBigInt64(e+8,F(r)?BigInt(0):r,!0),N().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(e){let t=e,n=typeof t==`boolean`?t:void 0;return F(n)?16777215:+!!n},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let n=I(ks(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;N().setInt32(e+4,r,!0),N().setInt32(e+0,n,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(e,t){return e in t},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(e){return typeof e==`bigint`},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(e){return typeof e==`function`},__wbg___wbindgen_is_object_a27215656b807791:function(e){let t=e;return typeof t==`object`&&!!t},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(e,t){return e==t},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R.memory},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(e,t){let n=t,r=typeof n==`number`?n:void 0;N().setFloat64(e+8,F(r)?0:r,!0),N().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=F(r)?0:I(r,R.__wbindgen_malloc,R.__wbindgen_realloc),a=L;N().setInt32(e+4,a,!0),N().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(P(e,t))},__wbg_buffer_0f212447ac64c53b:function(e){return e.buffer},__wbg_call_8a2dd23819f8a60a:function(){return Ws(function(e,t){return e.call(t)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Ws(function(e,t,n){return e.call(t,n)},arguments)},__wbg_done_89b2b13e91a60321:function(e){return e.done},__wbg_entries_015dc610cd81ede0:function(e){return Object.entries(e)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_c7eb1f358a7654df:function(){return Ws(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(e,t){return e[t>>>0]},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},__wbg_instanceof_Map_e5b5e3db98422fcc:function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},__wbg_isArray_0677c962b281d01a:function(e){return Array.isArray(e)},__wbg_isSafeInteger_04f36e4056f1b851:function(e){return Number.isSafeInteger(e)},__wbg_iterator_6f722e4a93058b71:function(){return Symbol.iterator},__wbg_length_0133fa10e3234c57:function(e){return e.length},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_381d540857ec99e8:function(e){return e.length},__wbg_length_98f10d1e2f4ea968:function(e){return e.length},__wbg_lle_new:function(e){return Oa.__wrap(e)},__wbg_log_631549b8bf4c7159:function(e,t){console.log(P(e,t))},__wbg_new_32b398fb48b6d94a:function(){return[]},__wbg_new_80efd62ef570c5de:function(e){return new Float64Array(e)},__wbg_new_92a08b12c30e98e8:function(e){return new Float32Array(e)},__wbg_new_cd45aabdf6073e84:function(e){return new Uint8Array(e)},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_dfd44b7151fab657:function(e){return new Uint32Array(e)},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_5784416b97d45088:function(e,t,n){return new Float64Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_c6e1a1aae380b2ff:function(e,t,n){return new Uint32Array(e,t>>>0,n>>>0)},__wbg_next_6dbf2c0ac8cde20f:function(e){return e.next},__wbg_next_71f2aa1cb3d1e37e:function(){return Ws(function(e){return e.next()},arguments)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,n){Uint8Array.prototype.set.call(Ps(e,t),n)},__wbg_push_d2ae3af0c1217ae6:function(e,t){return e.push(t)},__wbg_set_1e016b6a1b5f7cb3:function(e,t,n){e.set(As(t,n))},__wbg_set_29967298e530d279:function(e,t,n){e.set(js(t,n))},__wbg_set_4d7dd76f3dae2926:function(e,t,n){e.set(Ps(t,n))},__wbg_set_6be42768c690e380:function(e,t,n){e[t]=n},__wbg_set_8535240470bf2500:function(){return Ws(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_8a16b38e4805b298:function(e,t,n){e[t>>>0]=n},__wbg_set_b5e6b338281ca6ff:function(e,t,n){e.set(Ns(t,n))},__wbg_texturefragment_new:function(e){return Ya.__wrap(e)},__wbg_tileuvtransform_new:function(e){return Xa.__wrap(e)},__wbg_value_a5d5488a9589444a:function(e){return e.value},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e,t){return P(e,t)},__wbindgen_cast_0000000000000004:function(e){return BigInt.asUintN(64,e)},__wbindgen_init_externref_table:function(){let e=R.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}let bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_aabb_free(e,1)),xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_batchpropresult_free(e,1)),So=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_billboardmaterial_free(e,1)),Co=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_boundingsphere_free(e,1)),wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cachedmeshhandle_free(e,1)),To=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameracontrolupdateevent_free(e,1)),Eo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerafrustum_free(e,1)),Do=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraorientation_free(e,1)),Oo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerastatus_free(e,1)),ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledexpression_free(e,1)),Ao=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledfilter_free(e,1)),jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygongeometry_free(e,1)),Mo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygonoutlinegeometry_free(e,1)),No=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolylinegeometry_free(e,1)),Po=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationdecoder_free(e,1)),Fo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationheatmapmaterial_free(e,1)),Io=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ellipsoidgeodesic_free(e,1)),Lo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_encodedvec3_free(e,1)),Ro=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_extentradianf32_free(e,1)),zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_floatattribute_free(e,1)),Bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_geometry_free(e,1)),Vo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_globe_free(e,1)),Ho=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_hillshadematerial_free(e,1)),Uo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_lle_free(e,1)),Wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelinternalmaterial_free(e,1)),Go=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelmaterial_free(e,1)),Ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_nearfar_free(e,1)),qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_overscaledtilehandle_free(e,1)),Jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_plane_free(e,1)),Yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_pointmaterial_free(e,1)),Xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometry_free(e,1)),Zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometryattributes_free(e,1)),Qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygoninternalmaterial_free(e,1)),$o=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygonmaterial_free(e,1)),es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometry_free(e,1)),ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometryattributes_free(e,1)),ns=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylineinternalmaterial_free(e,1)),rs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinematerial_free(e,1)),is=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastermaterial_free(e,1)),as=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastertileinternalmaterial_free(e,1)),os=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ray_free(e,1)),ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_returnedconstructedterrainmesh_free(e,1)),cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_terrainmaterial_free(e,1)),ls=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_textmaterial_free(e,1)),us=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_texturefragment_free(e,1)),ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tileuvtransform_free(e,1)),fs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tilexyz_free(e,1)),ps=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablehierarchy_free(e,1)),ms=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableholes_free(e,1)),hs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablemartini_free(e,1)),gs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableparsedmvtresult_free(e,1)),_s=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolygonbatchedfeature_free(e,1)),vs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolylinebatchedfeature_free(e,1)),ys=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablerasterdemdata_free(e,1)),bs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferabletile_free(e,1)),xs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transform_free(e,1)),Ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_uintattribute_free(e,1)),Cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_upsamplableterraingeometry_free(e,1)),ws=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec2_free(e,1)),Ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec3_free(e,1)),Es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_windingorder_free(e,1)),Ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_window_free(e,1));function Os(e){let t=R.__externref_table_alloc();return R.__wbindgen_externrefs.set(t,e),t}function M(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function ks(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=ks(e[0]));for(let r=1;r<t;r++)n+=`, `+ks(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function As(e,t){return e>>>=0,Ls().subarray(e/4,e/4+t)}function js(e,t){return e>>>=0,zs().subarray(e/8,e/8+t)}function Ms(e,t){e>>>=0;let n=N(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(R.__wbindgen_externrefs.get(n.getUint32(i,!0)));return R.__externref_drop_slice(e,t),r}function Ns(e,t){return e>>>=0,Vs().subarray(e/4,e/4+t)}function Ps(e,t){return e>>>=0,Us().subarray(e/1,e/1+t)}let Fs=null;function N(){return(Fs===null||Fs.buffer.detached===!0||Fs.buffer.detached===void 0&&Fs.buffer!==R.memory.buffer)&&(Fs=new DataView(R.memory.buffer)),Fs}let Is=null;function Ls(){return(Is===null||Is.byteLength===0)&&(Is=new Float32Array(R.memory.buffer)),Is}let Rs=null;function zs(){return(Rs===null||Rs.byteLength===0)&&(Rs=new Float64Array(R.memory.buffer)),Rs}function P(e,t){return $s(e>>>0,t)}let Bs=null;function Vs(){return(Bs===null||Bs.byteLength===0)&&(Bs=new Uint32Array(R.memory.buffer)),Bs}let Hs=null;function Us(){return(Hs===null||Hs.byteLength===0)&&(Hs=new Uint8Array(R.memory.buffer)),Hs}function Ws(e,t){try{return e.apply(this,t)}catch(e){let t=Os(e);R.__wbindgen_exn_store(t)}}function F(e){return e==null}function Gs(e,t){let n=t(e.length*4,4)>>>0;return Vs().set(e,n/4),L=e.length,n}function Ks(e,t){let n=t(e.length*1,1)>>>0;return Us().set(e,n/1),L=e.length,n}function qs(e,t){let n=t(e.length*4,4)>>>0;return Ls().set(e,n/4),L=e.length,n}function Js(e,t){let n=t(e.length*8,8)>>>0;return zs().set(e,n/8),L=e.length,n}function Ys(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=Os(e[t]);N().setUint32(n+4*t,r,!0)}return L=e.length,n}function I(e,t,n){if(n===void 0){let n=ec.encode(e),r=t(n.length,1)>>>0;return Us().subarray(r,r+n.length).set(n),L=n.length,r}let r=e.length,i=t(r,1)>>>0,a=Us(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=Us().subarray(i+o,i+r),a=ec.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return L=o,i}function Xs(e){let t=R.__wbindgen_externrefs.get(e);return R.__externref_table_dealloc(e),t}let Zs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});Zs.decode();let Qs=0;function $s(e,t){return Qs+=t,Qs>=2146435072&&(Zs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),Zs.decode(),Qs=t),Zs.decode(Us().subarray(e,e+t))}let ec=new TextEncoder;`encodeInto`in ec||(ec.encodeInto=function(e,t){let n=ec.encode(e);return t.set(n),{read:e.length,written:n.length}});let L=0,R;function tc(e,t){return R=e.exports,Fs=null,Is=null,Rs=null,Bs=null,Hs=null,R.__wbindgen_start(),R}async function nc(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function rc(e){if(R!==void 0)return R;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(``+new URL(`navara_wasm_worker_bg-Q8zrkLCR.wasm`,self.location.href).href,``+self.location.href));let t=yo();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await nc(await e,t);return tc(n,r)}function ic(e){let t=new te(e);return{result:t,transfers:[t.batch_id?.buffer,t.batch_index?.buffer,t.normal?.buffer,t.position_3d_high?.buffer,t.position_3d_low?.buffer,t.position?.buffer,t.scale_normal_and_cap?.buffer,t.indices.buffer,t.outline_position?.buffer,t.outline_scale_normal_and_cap?.buffer,t.outline_skip_indices?.buffer,t.outline_batch_index?.buffer].filter(T)}}function ac(e){return new ao(oc(e.coords),e.max_height,e.min_height,e.cached_mesh_handle?sc(e.cached_mesh_handle):void 0)}function oc(e){return new Za(e.x,e.y,e.z)}function sc(e){return new la(e.vertices,e.indices,e.uvs,e.heights)}function cc(e){return new co(e.uvs,e.indices,e.heights,e.normals,e.watermask)}function lc(e){return new Ca(e.west,e.south,e.east,e.north)}function uc(e){return new Ra(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.extrudedHeight,e.wireframe,e.outline,e.perPositionHeight,e.__internal__)}function dc(e){let t=new no(e.crs,e.length);return t.setOuterRing(e.outer_ring.length,t=>{t.set(e.outer_ring)}),t.setOuterRingSizes(e.outer_ring_sizes.length,t=>{t.set(e.outer_ring_sizes)}),t.setHoles(e.holes.length,t=>{t.set(e.holes)}),t.setHolesSizes(e.holes_sizes.length,t=>{t.set(e.holes_sizes)}),t.setHolesTotalSizes(e.holes_total_sizes.length,t=>{t.set(e.holes_total_sizes)}),t.setHolesBoundaries(e.holes_boundaries.length,t=>{t.set(e.holes_boundaries)}),t.setExpectedWindingOrders(e.expected_winding_orders.length,t=>{t.set(e.expected_winding_orders)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}let fc;async function pc(){return fc??=rc(),fc}async function mc(){if(!fc)return 0;let{memory:e}=await fc;return e.buffer.byteLength}async function hc(e,t,n,r){await pc();let i=fo(dc(e),uc(t),n,r?lc(r):void 0);if(!i)return;let{result:a,transfers:o}=ic(i);return i.free(),jc(a,o)}function gc(e){let t=new O(e);return{result:t,transfers:[t.position.buffer,t.position_high?.buffer,t.position_low?.buffer,t.start?.buffer,t.start_high?.buffer,t.start_low?.buffer,t.end_high?.buffer,t.end_low?.buffer,t.start_normals?.buffer,t.forward_offset?.buffer,t.end_normal_and_texture_coordinate_normalization_x?.buffer,t.right_normal_and_texture_coordinate_normalization_y.buffer,t.batch_id?.buffer,t.batch_index?.buffer,t.indices.buffer].filter(T)}}function _c(e){return new Ha(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.width,e.maxWidth,e.__internal__)}function vc(e){let t=new ro(e.crs,e.length);return t.setPoints(e.points.length,t=>{t.set(e.points)}),t.setPointsSizes(e.points_sizes.length,t=>{t.set(e.points_sizes)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}async function yc(e,t,n){await pc();let r=po(vc(e),_c(t),n);if(!r)return;let{result:i,transfers:a}=gc(r);return r.free(),jc(i,a)}function bc(e){let t=new ee(e),n=[t.vertices.buffer,t.uvs.buffer,t.indices.buffer,t.heights.buffer];return t.normals&&n.push(t.normals.buffer),t.skirt_vertices&&n.push(t.skirt_vertices.buffer),t.skirt_uvs&&n.push(t.skirt_uvs.buffer),t.skirt_indices&&n.push(t.skirt_indices.buffer),t.skirt_normals&&n.push(t.skirt_normals.buffer),t.watermask&&n.push(t.watermask.buffer),{result:t,transfers:n}}async function xc(e,t,n,r,i,a){await pc();let o=mo(e,ac(t),n,r,i,a),{result:s,transfers:c}=bc(o);return o.free(),jc({result:s},[...c])}function Sc(e){return new io(new ya(e.decoder.r_scaler,e.decoder.g_scaler,e.decoder.b_scaler,e.decoder.offset,e.decoder.max_offset,e.decoder.min_offset,e.decoder.boundary,e.decoder.epsilon))}async function Cc(e,t,n,r,i,a){await pc();let o=r+1,s=eo.fromSize(o),c=ho(e,ac(t),Sc(n),s,i,a),{result:l,transfers:u}=bc(c);return c.free(),jc({result:l},[...u])}async function wc(e){let t=await createImageBitmap(e);try{let e=new OffscreenCanvas(t.width,t.height).getContext(`2d`);if(e===null)throw Error(`failed to get context of canvas`);e.drawImage(t,0,0);let n=e.getImageData(0,0,t.width,t.height).data;return jc(n,[n.buffer])}finally{t.close()}}async function Tc(e,t){try{let n=t.getContext(`2d`);if(n===null)throw Error(`failed to get context of canvas`);return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data}finally{e.close()}}async function Ec(e,t,n,r,i,a,o){await pc();let s=go(e,t,n,r,i?lc(i):void 0,a,o),c,l,u,d,f;try{c=s.f64_stream(),l=s.f32_stream(),u=s.u32_stream(),d=s.u8_stream(),f=s.meta()}finally{s.free()}return jc({f64_stream:c,f32_stream:l,u32_stream:u,u8_stream:d,meta:f},[c.buffer,l.buffer,u.buffer,d.buffer])}async function Dc(e,t,n,r,i,a,o){await pc();let s=_o(ac(e),ac(t),cc(n),r,i,a,o),{result:c,transfers:l}=bc(s);return s.free(),jc(c,l)}async function Oc(e,t,n,r,i,a,o){await pc();let s=vo(ac(e),ac(t),Sc(n),cc(r),i,a,o),{result:c,transfers:l}=bc(s);return s.free(),jc(c,l)}async function kc(){await pc()}let Ac={constructTerrainMesh:Cc,constructQuantizedMeshTerrainMesh:xc,upsampleTerrainMesh:Oc,upsampleQuantizedMeshTerrainMesh:Dc,getImageDataFromImageBitmap:Tc,getImageDataFromBlob:wc,constructPolygonBatchedFeature:hc,constructPolylineBatchedFeature:yc,parseMvtTile:Ec,warmUp:kc,getWasmMemoryUsage:mc},jc=(e,t)=>new S.Transfer(e,t),Mc=!1,Nc=(...e)=>(Mc||=(S.worker(Ac),Pc(),!0),S.worker(...e));function Pc(){Ac.warmUp.worker?.addAbortListener(async()=>{})}let{initializeWorkerPool:Fc,terminateWorkerPool:Ic,warmUpWorkerPool:Lc,worker:Rc,workerPoolStats:zc,workerPoolHeapStats:Bc,probeWorkerPoolHeap:Vc}=(()=>{let e;return{initializeWorkerPool:(t,n,r)=>{if(e)throw Error(`Worker pool has already been initialized.`);e={pool:new w(t,n.total,r),manager:n}},terminateWorkerPool:()=>{e&&=(e.pool.terminate(),void 0)},warmUpWorkerPool:()=>(u(e,`initializeWorkerPool() must be invoked first.`),e.pool.warmUp()),worker:()=>(u(e,`initializeWorkerPool() must be invoked first.`),{pool:e.pool,manager:e.manager}),workerPoolStats:()=>e?.pool.stats(),workerPoolHeapStats:()=>e?.pool.heapStats(),probeWorkerPoolHeap:()=>e?.pool.probeHeap()}})();var Hc=typeof global==`object`&&global&&global.Object===Object&&global,Uc=typeof self==`object`&&self&&self.Object===Object&&self,Wc=Hc||Uc||Function(`return this`)(),Gc=Wc.Symbol,Kc=Object.prototype,qc=Kc.hasOwnProperty,Jc=Kc.toString,Yc=Gc?Gc.toStringTag:void 0;function Xc(e){var t=qc.call(e,Yc),n=e[Yc];try{e[Yc]=void 0;var r=!0}catch{}var i=Jc.call(e);return r&&(t?e[Yc]=n:delete e[Yc]),i}var Zc=Object.prototype.toString;function Qc(e){return Zc.call(e)}var $c=`[object Null]`,el=`[object Undefined]`,tl=Gc?Gc.toStringTag:void 0;function nl(e){return e==null?e===void 0?el:$c:tl&&tl in Object(e)?Xc(e):Qc(e)}function rl(e){return typeof e==`object`&&!!e}var il=`[object Symbol]`;function al(e){return typeof e==`symbol`||rl(e)&&nl(e)==il}function ol(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sl=Array.isArray,cl=1/0,ll=Gc?Gc.prototype:void 0,ul=ll?ll.toString:void 0;function dl(e){if(typeof e==`string`)return e;if(sl(e))return ol(e,dl)+``;if(al(e))return ul?ul.call(e):``;var t=e+``;return t==`0`&&1/e==-cl?`-0`:t}function fl(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function pl(e){return e}var ml=`[object AsyncFunction]`,hl=`[object Function]`,gl=`[object GeneratorFunction]`,_l=`[object Proxy]`;function vl(e){if(!fl(e))return!1;var t=nl(e);return t==hl||t==gl||t==ml||t==_l}var yl=Wc[`__core-js_shared__`],bl=function(){var e=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function xl(e){return!!bl&&bl in e}var Sl=Function.prototype.toString;function Cl(e){if(e!=null){try{return Sl.call(e)}catch{}try{return e+``}catch{}}return``}var wl=/[\\^$.*+?()[\]{}|]/g,Tl=/^\[object .+?Constructor\]$/,El=Function.prototype,Dl=Object.prototype,Ol=El.toString,kl=Dl.hasOwnProperty,Al=RegExp(`^`+Ol.call(kl).replace(wl,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function jl(e){return!fl(e)||xl(e)?!1:(vl(e)?Al:Tl).test(Cl(e))}function Ml(e,t){return e?.[t]}function Nl(e,t){var n=Ml(e,t);return jl(n)?n:void 0}function Pl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fl=800,Il=16,Ll=Date.now;function Rl(e){var t=0,n=0;return function(){var r=Ll(),i=Il-(r-n);if(n=r,i>0){if(++t>=Fl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zl(e){return function(){return e}}var Bl=function(){try{var e=Nl(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Vl=Rl(Bl?function(e,t){return Bl(e,`toString`,{configurable:!0,enumerable:!1,value:zl(t),writable:!0})}:pl),Hl=9007199254740991,Ul=/^(?:0|[1-9]\d*)$/;function Wl(e,t){var n=typeof e;return t??=Hl,!!t&&(n==`number`||n!=`symbol`&&Ul.test(e))&&e>-1&&e%1==0&&e<t}function Gl(e,t,n){t==`__proto__`&&Bl?Bl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kl(e,t){return e===t||e!==e&&t!==t}var ql=Object.prototype.hasOwnProperty;function Jl(e,t,n){var r=e[t];(!(ql.call(e,t)&&Kl(r,n))||n===void 0&&!(t in e))&&Gl(e,t,n)}var Yl=Math.max;function Xl(e,t,n){return t=Yl(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Yl(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Pl(e,this,s)}}var Zl=9007199254740991;function Ql(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Zl}var $l=`[object Arguments]`;function eu(e){return rl(e)&&nl(e)==$l}var tu=Object.prototype,nu=tu.hasOwnProperty,ru=tu.propertyIsEnumerable,iu=eu(function(){return arguments}())?eu:function(e){return rl(e)&&nu.call(e,`callee`)&&!ru.call(e,`callee`)},au=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ou=/^\w*$/;function su(e,t){if(sl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||al(e)?!0:ou.test(e)||!au.test(e)||t!=null&&e in Object(t)}var cu=Nl(Object,`create`);function lu(){this.__data__=cu?cu(null):{},this.size=0}function uu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var du=`__lodash_hash_undefined__`,fu=Object.prototype.hasOwnProperty;function pu(e){var t=this.__data__;if(cu){var n=t[e];return n===du?void 0:n}return fu.call(t,e)?t[e]:void 0}var mu=Object.prototype.hasOwnProperty;function hu(e){var t=this.__data__;return cu?t[e]!==void 0:mu.call(t,e)}var gu=`__lodash_hash_undefined__`;function _u(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=cu&&t===void 0?gu:t,this}function vu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vu.prototype.clear=lu,vu.prototype.delete=uu,vu.prototype.get=pu,vu.prototype.has=hu,vu.prototype.set=_u;function yu(){this.__data__=[],this.size=0}function bu(e,t){for(var n=e.length;n--;)if(Kl(e[n][0],t))return n;return-1}var xu=Array.prototype.splice;function Su(e){var t=this.__data__,n=bu(t,e);return n<0?!1:(n==t.length-1?t.pop():xu.call(t,n,1),--this.size,!0)}function Cu(e){var t=this.__data__,n=bu(t,e);return n<0?void 0:t[n][1]}function wu(e){return bu(this.__data__,e)>-1}function Tu(e,t){var n=this.__data__,r=bu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Eu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Eu.prototype.clear=yu,Eu.prototype.delete=Su,Eu.prototype.get=Cu,Eu.prototype.has=wu,Eu.prototype.set=Tu;var Du=Nl(Wc,`Map`);function Ou(){this.size=0,this.__data__={hash:new vu,map:new(Du||Eu),string:new vu}}function ku(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Au(e,t){var n=e.__data__;return ku(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ju(e){var t=Au(this,e).delete(e);return this.size-=+!!t,t}function Mu(e){return Au(this,e).get(e)}function Nu(e){return Au(this,e).has(e)}function Pu(e,t){var n=Au(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Fu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fu.prototype.clear=Ou,Fu.prototype.delete=ju,Fu.prototype.get=Mu,Fu.prototype.has=Nu,Fu.prototype.set=Pu;var Iu=`Expected a function`;function Lu(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Iu);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Lu.Cache||Fu),n}Lu.Cache=Fu;var Ru=500;function zu(e){var t=Lu(e,function(e){return n.size===Ru&&n.clear(),e}),n=t.cache;return t}var Bu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vu=/\\(\\)?/g,Hu=zu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Bu,function(e,n,r,i){t.push(r?i.replace(Vu,`$1`):n||e)}),t});function Uu(e){return e==null?``:dl(e)}function Wu(e,t){return sl(e)?e:su(e,t)?[e]:Hu(Uu(e))}var Gu=1/0;function Ku(e){if(typeof e==`string`||al(e))return e;var t=e+``;return t==`0`&&1/e==-Gu?`-0`:t}function qu(e,t){t=Wu(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ku(t[n++])];return n&&n==r?e:void 0}function Ju(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Yu=Gc?Gc.isConcatSpreadable:void 0;function Xu(e){return sl(e)||iu(e)||!!(Yu&&e&&e[Yu])}function Zu(e,t,n,r,i){var a=-1,o=e.length;for(n||=Xu,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Zu(s,t-1,n,r,i):Ju(i,s):r||(i[i.length]=s)}return i}function Qu(e){return e!=null&&e.length?Zu(e,1):[]}function $u(e){return Vl(Xl(e,void 0,Qu),e+``)}function ed(e,t){return e!=null&&t in Object(e)}function td(e,t,n){t=Wu(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ku(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ql(i)&&Wl(o,i)&&(sl(e)||iu(e)))}function nd(e,t){return e!=null&&td(e,t,ed)}function rd(e,t,n,r){if(!fl(e))return e;t=Wu(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=Ku(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=fl(u)?u:Wl(t[i+1])?[]:{})}Jl(s,c,l),s=s[c]}return e}function id(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=qu(e,o);n(s,o)&&rd(a,Wu(o,e),s)}return a}function ad(e,t){return id(e,t,function(t,n){return nd(e,n)})}var od=$u(function(e,t){return e==null?{}:ad(e,t)})
|
|
11
|
+
`,i(new D(r))}),this.processing=Object.create(null),this.tracking=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}E.prototype.methods=function(){return this.exec(`methods`)},E.prototype.exec=function(e,t,r,i){r||=n.defer();var a=++this.lastId;this.processing[a]={id:a,resolver:r,options:i};var o={message:{id:a,method:e,params:t},transfer:i&&i.transfer};this.terminated?r.reject(new D(`Worker is terminated`)):this.worker.ready?this.worker.send(o.message,o.transfer):this.requestQueue.push(o);var s=this;return r.promise.catch(function(e){if(e instanceof n.CancellationError||e instanceof n.TimeoutError)return s.tracking[a]={id:a,resolver:n.defer(),options:i,error:e},delete s.processing[a],s.tracking[a].resolver.promise=s.tracking[a].resolver.promise.catch(function(e){if(delete s.tracking[a],e instanceof ee)throw e.error;return s.terminateAndNotify(!0).then(function(){throw e},function(e){throw e})}),s.worker.send({id:a,method:l}),s.tracking[a].timeoutId=setTimeout(function(){s.tracking[a].resolver.reject(e)},s.workerTerminateTimeout),s.tracking[a].resolver.promise;throw e})},E.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0||Object.keys(this.tracking).length>0},E.prototype.terminate=function(e,t){var n=this;if(e){for(var r in this.processing)this.processing[r]!==void 0&&this.processing[r].resolver.reject(Error(`Worker terminated`));this.processing=Object.create(null)}for(var i of Object.values(n.tracking))clearTimeout(i.timeoutId),i.resolver.reject(Error(`Worker Terminating`));if(n.tracking=Object.create(null),typeof t==`function`&&(this.terminationHandler=t),this.busy())this.terminating=!0;else{var a=function(e){if(n.terminated=!0,n.cleaning=!1,n.worker!=null&&n.worker.removeAllListeners&&n.worker.removeAllListeners(`message`),n.worker=null,n.terminating=!1,n.terminationHandler)n.terminationHandler(e,n);else if(e)throw e};if(this.worker)if(typeof this.worker.kill==`function`){if(this.worker.killed){a(Error(`worker already killed!`));return}var o=setTimeout(function(){n.worker&&n.worker.kill()},this.workerTerminateTimeout);this.worker.once(`exit`,function(){clearTimeout(o),n.worker&&(n.worker.killed=!0),a()}),this.worker.ready?this.worker.send(c):this.requestQueue.push({message:c}),this.cleaning=!0;return}else if(typeof this.worker.terminate==`function`)this.worker.terminate(),this.worker.killed=!0;else throw Error(`Failed to terminate worker`);a()}},E.prototype.terminateAndNotify=function(e,t){var r=n.defer();return t&&r.promise.timeout(t),this.terminate(e,function(e,t){e?r.reject(e):r.resolve(t)}),r.promise};function ee(e){this.error=e,this.stack=Error().stack}var D=class extends Error{constructor(e,t){super(e||`worker terminated`),this.cause=t}};t.exports=E,t.exports._tryRequireWorkerThreads=_,t.exports._setupProcessWorker=S,t.exports._setupBrowserWorker=b,t.exports._setupWorkerThreadWorker=x,t.exports.ensureWorkerThreads=u,t.exports.TerminateError=D})),_=o(((e,t)=>{function n(){this.tasks=[]}n.prototype.push=function(e){this.tasks.push(e)},n.prototype.pop=function(){return this.tasks.shift()},n.prototype.size=function(){return this.tasks.length},n.prototype.contains=function(e){return this.tasks.includes(e)},n.prototype.clear=function(){this.tasks.length=0};function r(){this.tasks=[]}r.prototype.push=function(e){this.tasks.push(e)},r.prototype.pop=function(){return this.tasks.pop()},r.prototype.size=function(){return this.tasks.length},r.prototype.contains=function(e){return this.tasks.includes(e)},r.prototype.clear=function(){this.tasks.length=0},t.exports={FIFOQueue:n,LIFOQueue:r}})),v=o(((e,t)=>{t.exports=n;function n(){this.ports=Object.create(null),this.length=0}n.prototype.nextAvailableStartingAt=function(e){for(;this.ports[e]===!0;)e++;if(e>=65535)throw Error(`WorkerPool debug port limit reached: `+e+`>= 65535`);return this.ports[e]=!0,this.length++,e},n.prototype.releasePort=function(e){delete this.ports[e],this.length--}})),y=o(((e,t)=>{var{Promise:n}=p(),r=g(),i=f(),{FIFOQueue:a,LIFOQueue:o}=_(),s=new(v());function c(e,t){typeof e==`string`?this.script=e||null:(this.script=null,t=e),this.workers=[],this.taskQueue=this._createQueue(t&&t.queueStrategy||`fifo`),t||={},this.forkArgs=Object.freeze(t.forkArgs||[]),this.forkOpts=Object.freeze(t.forkOpts||{}),this.workerOpts=Object.freeze(t.workerOpts||{}),this.workerThreadOpts=Object.freeze(t.workerThreadOpts||{}),this.debugPortStart=t.debugPortStart||43210,this.nodeWorker=t.nodeWorker,this.workerType=t.workerType||t.nodeWorker||`auto`,this.maxQueueSize=t.maxQueueSize||1/0,this.workerTerminateTimeout=t.workerTerminateTimeout||1e3,this.onCreateWorker=t.onCreateWorker||(()=>null),this.onTerminateWorker=t.onTerminateWorker||(()=>null),this.emitStdStreams=t.emitStdStreams||!1,t&&`maxWorkers`in t?(l(t.maxWorkers),this.maxWorkers=t.maxWorkers):this.maxWorkers=Math.max((i.cpus||4)-1,1),t&&`minWorkers`in t&&(t.minWorkers===`max`?this.minWorkers=this.maxWorkers:(u(t.minWorkers),this.minWorkers=t.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),this.workerType===`thread`&&r.ensureWorkerThreads()}c.prototype.exec=function(e,t,r){if(t&&!Array.isArray(t))throw TypeError(`Array expected as argument "params"`);if(typeof e==`string`){var i=n.defer();if(this.taskQueue.size()>=this.maxQueueSize)throw Error(`Max queue size of `+this.maxQueueSize+` reached`);var a={method:e,params:t,resolver:i,timeout:null,options:r};this.taskQueue.push(a);var o=i.promise.timeout,s=this.taskQueue;return i.promise.timeout=function(e){return s.contains(a)?(a.timeout=e,i.promise):o.call(i.promise,e)},this._next(),i.promise}else if(typeof e==`function`)return this.exec(`run`,[String(e),t],r);else throw TypeError(`Function or string expected as argument "method"`)},c.prototype.proxy=function(){if(arguments.length>0)throw Error(`No arguments expected`);var e=this;return this.exec(`methods`).then(function(t){var n={};return t.forEach(function(t){n[t]=function(){return e.exec(t,Array.prototype.slice.call(arguments))}}),n})},c.prototype._next=function(){if(this.taskQueue.size()>0){var e=this._getWorker();if(e){var t=this,n=this.taskQueue.pop();if(n.resolver.promise.pending){var r=e.exec(n.method,n.params,n.resolver,n.options).then(t._boundNext).catch(function(){if(e.terminated)return t._removeWorker(e)}).then(function(){t._next()});typeof n.timeout==`number`&&r.timeout(n.timeout)}else t._next()}}},c.prototype._getWorker=function(){for(var e=this.workers,t=0;t<e.length;t++){var n=e[t];if(n.busy()===!1)return n}return e.length<this.maxWorkers?(n=this._createWorkerHandler(),e.push(n),n):null},c.prototype._removeWorker=function(e){var t=this;return s.releasePort(e.debugPort),this._removeWorkerFromList(e),this._ensureMinWorkers(),new n(function(n,r){e.terminate(!1,function(i){t.onTerminateWorker({forkArgs:e.forkArgs,forkOpts:e.forkOpts,workerThreadOpts:e.workerThreadOpts,script:e.script}),i?r(i):n(e)})})},c.prototype._removeWorkerFromList=function(e){var t=this.workers.indexOf(e);t!==-1&&this.workers.splice(t,1)},c.prototype.terminate=function(e,t){for(var r=this,i=this.taskQueue;i.size()>0;){var a=i.pop();if(a)a.resolver.reject(Error(`Pool terminated`));else break}i.clear();var o=function(e){s.releasePort(e.debugPort),this._removeWorkerFromList(e)}.bind(this),c=[];return this.workers.slice().forEach(function(n){var i=n.terminateAndNotify(e,t).then(o).always(function(){r.onTerminateWorker({forkArgs:n.forkArgs,forkOpts:n.forkOpts,workerThreadOpts:n.workerThreadOpts,script:n.script})});c.push(i)}),n.all(c)},c.prototype.stats=function(){var e=this.workers.length,t=this.workers.filter(function(e){return e.busy()}).length;return{totalWorkers:e,busyWorkers:t,idleWorkers:e-t,pendingTasks:this.taskQueue.size(),activeTasks:t}},c.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var e=this.workers.length;e<this.minWorkers;e++)this.workers.push(this._createWorkerHandler())},c.prototype._createWorkerHandler=function(){let e=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerOpts:this.workerOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new r(e.script||this.script,{forkArgs:e.forkArgs||this.forkArgs,forkOpts:e.forkOpts||this.forkOpts,workerOpts:e.workerOpts||this.workerOpts,workerThreadOpts:e.workerThreadOpts||this.workerThreadOpts,debugPort:s.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout,emitStdStreams:this.emitStdStreams})},c.prototype._createQueue=function(e){if(typeof e==`string`)switch(e){case`fifo`:return new a;case`lifo`:return new o;default:throw Error(`Unknown queue strategy: `+e)}if(!e)throw Error(`Queue strategy cannot be null or undefined`);for(var t=[`push`,`pop`,`size`,`contains`,`clear`],n=0;n<t.length;n++){var r=t[n];if(typeof e[r]!=`function`)throw Error(`Queue strategy must implement method: `+r)}return e};function l(e){if(!d(e)||!m(e)||e<1)throw TypeError(`Option maxWorkers must be an integer number >= 1`)}function u(e){if(!d(e)||!m(e)||e<0)throw TypeError(`Option minWorkers must be an integer number >= 0`)}function d(e){return typeof e==`number`}function m(e){return Math.round(e)==e}t.exports=c})),b=o(((e,t)=>{function n(e,t){this.message=e,this.transfer=t}t.exports=n})),x=o((e=>{var t=b(),n=p().Promise,r=`__workerpool-terminate__`,i=`__workerpool-cleanup__`,a=1e3,o={exit:function(){}},s={addAbortListener:function(e){o.abortListeners.push(e)},emit:o.emit};if(typeof self<`u`&&typeof postMessage==`function`&&typeof addEventListener==`function`)o.on=function(e,t){addEventListener(e,function(e){t(e.data)})},o.send=function(e,t){t?postMessage(e,t):postMessage(e)};else if(typeof process<`u`){var c;try{c=d()}catch(e){if(!(typeof e==`object`&&e&&e.code===`MODULE_NOT_FOUND`))throw e}if(c&&c.parentPort!==null){var l=c.parentPort;o.send=l.postMessage.bind(l),o.on=l.on.bind(l),o.exit=process.exit.bind(process)}else o.on=process.on.bind(process),o.send=function(e){process.send(e)},o.on(`disconnect`,function(){process.exit(1)}),o.exit=process.exit.bind(process)}else throw Error(`Script must be executed as a worker`);function u(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function f(e){return e&&typeof e.then==`function`&&typeof e.catch==`function`}o.methods={},o.methods.run=function(e,t){var n=Function(`return (`+e+`).apply(this, arguments);`);return n.worker=s,n.apply(n,t)},o.methods.methods=function(){return Object.keys(o.methods)},o.terminationHandler=void 0,o.abortListenerTimeout=a,o.abortListeners=[],o.terminateAndExit=function(e){var t=function(){o.exit(e)};if(!o.terminationHandler)return t();var r=o.terminationHandler(e);return f(r)?(r.then(t,t),r):(t(),new n(function(e,t){t(Error(`Worker terminating`))}))},o.cleanup=function(e){if(!o.abortListeners.length)return o.send({id:e,method:i,error:u(Error(`Worker terminating`))}),new n(function(e){e()});var t=function(){o.exit()},r=function(){o.abortListeners.length&&(o.abortListeners=[])};let a=o.abortListeners.map(e=>e()),s,c=new n((e,t)=>{s=setTimeout(function(){t(Error(`Timeout occurred waiting for abort handler, killing worker`))},o.abortListenerTimeout)}),l=n.all(a).then(function(){clearTimeout(s),r()},function(){clearTimeout(s),t()});return new n(function(e,t){l.then(e,t),c.then(e,t)}).then(function(){o.send({id:e,method:i,error:null})},function(t){o.send({id:e,method:i,error:t?u(t):null})})};var m=null;o.on(`message`,function(e){if(e===r)return o.terminateAndExit(0);if(e.method===i)return o.cleanup(e.id);try{var n=o.methods[e.method];if(n){m=e.id;var a=n.apply(n,e.params);f(a)?a.then(function(n){n instanceof t?o.send({id:e.id,result:n.message,error:null},n.transfer):o.send({id:e.id,result:n,error:null}),m=null}).catch(function(t){o.send({id:e.id,result:null,error:u(t)}),m=null}):(a instanceof t?o.send({id:e.id,result:a.message,error:null},a.transfer):o.send({id:e.id,result:a,error:null}),m=null)}else throw Error(`Unknown method "`+e.method+`"`)}catch(t){o.send({id:e.id,result:null,error:u(t)})}}),o.register=function(e,t){if(e)for(var n in e)e.hasOwnProperty(n)&&(o.methods[n]=e[n],o.methods[n].worker=s);t&&(o.terminationHandler=t.onTerminate,o.abortListenerTimeout=t.abortListenerTimeout||a),o.send(`ready`)},o.emit=function(e){if(m){if(e instanceof t){o.send({id:m,isEvent:!0,payload:e.message},e.transfer);return}o.send({id:m,isEvent:!0,payload:e})}},e!==void 0&&(e.add=o.register,e.emit=o.emit)})),S=c(o((e=>{let{platform:t,isMainThread:n,cpus:r}=f(),{TerminateError:i}=g();function a(e,t){return new(y())(e,t)}e.pool=a;function o(e,t){x().add(e,t)}e.worker=o;let{Promise:s}=p();e.Transfer=b()}))(),1);let C=e=>S.pool(e,{maxWorkers:1,minWorkers:0,workerTerminateTimeout:3e4,workerOpts:{type:void 0}});var w=class{url;maxWorkerHeapBytes;slots;idleSweepTimer;terminated=!1;constructor(e,t,n){u(t>0,`maxWorkers must be a positive number.`),this.url=e,this.maxWorkerHeapBytes=n?.maxWorkerHeapBytes??268435456,this.slots=Array.from({length:t},()=>({pool:C(e),tasksSinceSpawn:0,inflight:0,draining:!1,probing:!1,lastHeapBytes:void 0}))}exec(e,t,n){let r=this.pickSlot();r.inflight++;try{return r.pool.exec(e,t,n).then(e=>(this.onSettled(r),e)).catch(e=>{throw this.onSettled(r),e})}catch(e){throw this.onSettled(r),e}}warmUp(){let[e,...t]=this.slots;return this.warmSlot(e).then(()=>{for(let e of t)this.warmSlot(e).catch(()=>void 0)},e=>{if(t.length===0)throw e;return Promise.any(t.map(e=>this.warmSlot(e))).then(()=>void 0)})}canAcceptTasks(){return this.slots.some(e=>!e.draining)}stats(){let e={totalWorkers:0,busyWorkers:0,idleWorkers:0,pendingTasks:0,activeTasks:0,tasksSinceSpawn:0};for(let t of this.slots){let n=t.pool.stats();e.totalWorkers+=n.totalWorkers,e.busyWorkers+=n.busyWorkers,e.idleWorkers+=n.idleWorkers,e.pendingTasks+=n.pendingTasks,e.activeTasks+=n.activeTasks,e.tasksSinceSpawn+=t.tasksSinceSpawn}return e}heapStats(){let e=this.slots.map(e=>e.lastHeapBytes);return{perSlot:e,totalBytes:e.reduce((e,t)=>e+(t??0),0),maxWorkerHeapBytes:this.maxWorkerHeapBytes}}probeHeap(){if(!this.terminated)for(let e of this.slots)e.draining||this.probeSlot(e)}terminate(){this.idleSweepTimer!==void 0&&(clearTimeout(this.idleSweepTimer),this.idleSweepTimer=void 0),this.terminated=!0;for(let e of this.slots)e.pool.terminate()}pickSlot(){let e=this.slots.filter(e=>!e.draining);return(e.length>0?e:this.slots).reduce((e,t)=>t.inflight<e.inflight?t:e)}onSettled(e){e.inflight--,!this.terminated&&(e.tasksSinceSpawn++,e.tasksSinceSpawn>=128&&(e.draining=!0),e.draining&&e.inflight===0?this.recycleSlot(e):e.draining||this.probeSlot(e),this.armIdleSweep())}recycleSlot(e){e.pool.terminate(),e.pool=C(this.url),e.tasksSinceSpawn=0,e.draining=!1,e.lastHeapBytes=void 0,this.warmSlot(e).catch(()=>void 0)}warmSlot(e){e.inflight++;let t=()=>{e.inflight--,!this.terminated&&e.draining&&e.inflight===0&&this.recycleSlot(e)};return new Promise((n,r)=>{try{e.pool.exec(`warmUp`).then(()=>{t(),n()}).catch(e=>{t(),r(e)})}catch(e){t(),r(e)}})}probeSlot(e){if(e.probing)return;e.probing=!0,e.inflight++;let t=t=>{e.probing=!1,e.inflight--,!this.terminated&&(t&&(e.draining=!0),e.draining&&e.inflight===0&&this.recycleSlot(e))};try{e.pool.exec(`getWasmMemoryUsage`).then(n=>{typeof n==`number`&&(e.lastHeapBytes=n),t(typeof n==`number`&&n>=this.maxWorkerHeapBytes)}).catch(()=>{t(!0)})}catch{t(!0)}}armIdleSweep(){this.idleSweepTimer!==void 0&&clearTimeout(this.idleSweepTimer),this.idleSweepTimer=setTimeout(()=>{this.idleSweepTimer=void 0;for(let e of this.slots)e.tasksSinceSpawn>0&&e.inflight===0&&this.recycleSlot(e)},5e3)}};function T(e){return e!=null}var E=class{x;y;z;constructor(e){this.x=e.x,this.y=e.y,this.z=e.z}},ee=class{vertices;uvs;indices;heights;max_height;min_height;rtc_translation;normals;skirt_vertices;skirt_uvs;skirt_indices;skirt_normals;watermask;constructor(e){this.vertices=e.transferVertices(),this.uvs=e.transferUvs(),this.indices=e.transferIndices(),this.heights=e.transferHeights(),this.max_height=e.max_height,this.min_height=e.min_height,this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0,e.hasNormals()&&(this.normals=e.transferNormals()),e.hasSkirt()&&(this.skirt_vertices=e.transferSkirtVertices(),this.skirt_uvs=e.transferSkirtUvs(),this.skirt_indices=e.transferSkirtIndices(),this.skirt_normals=e.transferSkirtNormals()),e.hasWatermask()&&(this.watermask=e.transferWatermask())}transferVertices(){throw Error()}transferUvs(){throw Error()}transferIndices(){throw Error()}transferHeights(){throw Error()}transferNormals(){throw Error()}transferSkirtVertices(){throw Error()}transferSkirtUvs(){throw Error()}transferSkirtIndices(){throw Error()}transferSkirtNormals(){throw Error()}transferWatermask(){throw Error()}hasSkirt(){return this.skirt_vertices!==void 0&&this.skirt_uvs!==void 0&&this.skirt_indices!==void 0}hasNormals(){return this.normals!==void 0}hasWatermask(){return this.watermask!==void 0}},D=class{east;north;south;west;constructor(e){this.east=e.east,this.north=e.north,this.south=e.south,this.west=e.west}},te=class{extent;position_3d_high;position_3d_high_size;position_3d_low;position_3d_low_size;position;position_size;normal;normal_size;scale_normal_and_cap;scale_normal_and_cap_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;rtc_translation;outline_position;outline_position_size;outline_scale_normal_and_cap;outline_scale_normal_and_cap_size;outline_skip_indices;outline_batch_index;outline_batch_index_size;constructor(e){let t=e.extent;this.extent=t?new D(t):void 0,this.position_3d_high=e.position_3d_high()?.slice(),this.position_3d_high_size=e.position_3d_high_size(),this.position_3d_low=e.position_3d_low()?.slice(),this.position_3d_low_size=e.position_3d_low_size(),this.position=e.position()?.slice(),this.position_size=e.position_size(),this.normal=e.normal()?.slice(),this.normal_size=e.normal_size(),this.scale_normal_and_cap=e.scale_normal_and_cap()?.slice(),this.scale_normal_and_cap_size=e.scale_normal_and_cap_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice(),this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0;let n=e.outline();n&&(this.outline_position=n.position()?.slice(),this.outline_position_size=n.position_size(),this.outline_scale_normal_and_cap=n.scale_normal_and_cap()?.slice(),this.outline_scale_normal_and_cap_size=n.scale_normal_and_cap_size(),this.outline_skip_indices=n.skip_indices()?.slice(),this.outline_batch_index=n.batch_index()?.slice(),this.outline_batch_index_size=n.batch_index_size(),n.free())}},O=class{extent;position;position_size;position_high;position_high_size;position_low;position_low_size;start;start_size;start_high;start_high_size;start_low;start_low_size;forward_offset;forward_offset_size;end_high;end_high_size;end_low;end_low_size;start_normals;start_normals_size;end_normal_and_texture_coordinate_normalization_x;end_normal_and_texture_coordinate_normalization_x_size;right_normal_and_texture_coordinate_normalization_y;right_normal_and_texture_coordinate_normalization_y_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;constructor(e){let t=e.extent;this.extent=t?new D(t):void 0,this.position=e.position().slice(),this.position_size=e.position_size(),this.position_high=e.position_high()?.slice(),this.position_high_size=e.position_high_size(),this.position_low=e.position_low()?.slice(),this.position_low_size=e.position_low_size(),this.start=e.start()?.slice(),this.start_size=e.start_size(),this.start_high=e.start_high()?.slice(),this.start_high_size=e.start_high_size(),this.start_low=e.start_low()?.slice(),this.start_low_size=e.start_low_size(),this.forward_offset=e.forward_offset()?.slice(),this.forward_offset_size=e.forward_offset_size(),this.end_high=e.end_high()?.slice(),this.end_high_size=e.end_high_size(),this.end_low=e.end_low()?.slice(),this.end_low_size=e.end_low_size(),this.start_normals=e.start_normals()?.slice(),this.start_normals_size=e.start_normals_size(),this.end_normal_and_texture_coordinate_normalization_x=e.end_normal_and_texture_coordinate_normalization_x()?.slice(),this.end_normal_and_texture_coordinate_normalization_x_size=e.end_normal_and_texture_coordinate_normalization_x_size(),this.right_normal_and_texture_coordinate_normalization_y=e.right_normal_and_texture_coordinate_normalization_y().slice(),this.right_normal_and_texture_coordinate_normalization_y_size=e.right_normal_and_texture_coordinate_normalization_y_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice()}},ne={value:()=>{}};function re(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ie(n)}function ie(e){this._=e}function ae(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ie.prototype=re.prototype={constructor:ie,on:function(e,t){var n=this._,r=ae(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=oe(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=se(n[i],e.name,t);else if(t==null)for(i in n)n[i]=se(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ie(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function oe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function se(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=ne,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ce={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function le(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ce.hasOwnProperty(t)?{space:ce[t],local:e}:e}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function de(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fe(e){var t=le(e);return(t.local?de:ue)(t)}function pe(){}function me(e){return e==null?pe:function(){return this.querySelector(e)}}function he(e){typeof e!=`function`&&(e=me(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new rn(r,this._parents)}function ge(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _e(){return[]}function ve(e){return e==null?_e:function(){return this.querySelectorAll(e)}}function ye(e){return function(){return ge(e.apply(this,arguments))}}function be(e){e=typeof e==`function`?ye(e):ve(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new rn(r,i)}function xe(e){return function(){return this.matches(e)}}function Se(e){return function(t){return t.matches(e)}}var Ce=Array.prototype.find;function we(e){return function(){return Ce.call(this.children,e)}}function Te(){return this.firstElementChild}function Ee(e){return this.select(e==null?Te:we(typeof e==`function`?e:Se(e)))}var De=Array.prototype.filter;function Oe(){return Array.from(this.children)}function ke(e){return function(){return De.call(this.children,e)}}function Ae(e){return this.selectAll(e==null?Oe:ke(typeof e==`function`?e:Se(e)))}function je(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new rn(r,this._parents)}function Me(e){return Array(e.length)}function Ne(){return new rn(this._enter||this._groups.map(Me),this._parents)}function Pe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Pe.prototype={constructor:Pe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fe(e){return function(){return e}}function Ie(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Pe(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Le(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Pe(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Re(e){return e.__data__}function ze(e,t){if(!arguments.length)return Array.from(this,Re);var n=t?Le:Ie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Be(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new rn(o,r),o._enter=s,o._exit=c,o}function Be(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ve(){return new rn(this._exit||this._groups.map(Me),this._parents)}function He(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ue(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new rn(s,this._parents)}function We(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ge(e){e||=Ke;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new rn(i,this._parents).order()}function Ke(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Je(){return Array.from(this)}function Ye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Xe(){let e=0;for(let t of this)++e;return e}function Ze(){return!this.node()}function Qe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function $e(e){return function(){this.removeAttribute(e)}}function et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tt(e,t){return function(){this.setAttribute(e,t)}}function nt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function it(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e,t){var n=le(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?et:$e:typeof t==`function`?n.local?it:rt:n.local?nt:tt)(n,t))}function ot(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function st(e){return function(){this.style.removeProperty(e)}}function ct(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ut(e,t,n){return arguments.length>1?this.each((t==null?st:typeof t==`function`?lt:ct)(e,t,n??``)):dt(this.node(),e)}function dt(e,t){return e.style.getPropertyValue(t)||ot(e).getComputedStyle(e,null).getPropertyValue(t)}function ft(e){return function(){delete this[e]}}function pt(e,t){return function(){this[e]=t}}function mt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ht(e,t){return arguments.length>1?this.each((t==null?ft:typeof t==`function`?mt:pt)(e,t)):this.node()[e]}function gt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new vt(e)}function vt(e){this._node=e,this._names=gt(e.getAttribute(`class`)||``)}vt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function bt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function xt(e){return function(){yt(this,e)}}function St(e){return function(){bt(this,e)}}function Ct(e,t){return function(){(t.apply(this,arguments)?yt:bt)(this,e)}}function wt(e,t){var n=gt(e+``);if(arguments.length<2){for(var r=_t(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Ct:t?xt:St)(n,t))}function Tt(){this.textContent=``}function Et(e){return function(){this.textContent=e}}function Dt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Ot(e){return arguments.length?this.each(e==null?Tt:(typeof e==`function`?Dt:Et)(e)):this.node().textContent}function kt(){this.innerHTML=``}function At(e){return function(){this.innerHTML=e}}function jt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Mt(e){return arguments.length?this.each(e==null?kt:(typeof e==`function`?jt:At)(e)):this.node().innerHTML}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function Pt(){return this.each(Nt)}function Ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function It(){return this.each(Ft)}function Lt(e){var t=typeof e==`function`?e:fe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rt(){return null}function zt(e,t){var n=typeof e==`function`?e:fe(e),r=t==null?Rt:typeof t==`function`?t:me(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Bt(){var e=this.parentNode;e&&e.removeChild(this)}function Vt(){return this.each(Bt)}function Ht(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wt(e){return this.select(e?Ut:Ht)}function Gt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Kt(e){return function(t){e.call(this,t,this.__data__)}}function qt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Jt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Yt(e,t,n){return function(){var r=this.__on,i,a=Kt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Xt(e,t,n){var r=qt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Yt:Jt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Zt(e,t,n){var r=ot(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Qt(e,t){return function(){return Zt(this,e,t)}}function $t(e,t){return function(){return Zt(this,e,t.apply(this,arguments))}}function en(e,t){return this.each((typeof t==`function`?$t:Qt)(e,t))}function*tn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var nn=[null];function rn(e,t){this._groups=e,this._parents=t}function an(){return new rn([[document.documentElement]],nn)}function on(){return this}rn.prototype=an.prototype={constructor:rn,select:he,selectAll:be,selectChild:Ee,selectChildren:Ae,filter:je,data:ze,enter:Ne,exit:Ve,join:He,merge:Ue,selection:on,order:We,sort:Ge,call:qe,nodes:Je,node:Ye,size:Xe,empty:Ze,each:Qe,attr:at,style:ut,property:ht,classed:wt,text:Ot,html:Mt,raise:Pt,lower:It,append:Lt,insert:zt,remove:Vt,clone:Wt,datum:Gt,on:Xt,dispatch:en,[Symbol.iterator]:tn};function sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ln(){}var un=.7,dn=1/un,fn=`\\s*([+-]?\\d+)\\s*`,pn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,mn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,hn=/^#([0-9a-f]{3,8})$/,gn=RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),_n=RegExp(`^rgb\\(${mn},${mn},${mn}\\)$`),vn=RegExp(`^rgba\\(${fn},${fn},${fn},${pn}\\)$`),yn=RegExp(`^rgba\\(${mn},${mn},${mn},${pn}\\)$`),bn=RegExp(`^hsl\\(${pn},${mn},${mn}\\)$`),xn=RegExp(`^hsla\\(${pn},${mn},${mn},${pn}\\)$`),Sn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sn(ln,Dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cn,formatHex:Cn,formatHex8:wn,formatHsl:Tn,formatRgb:En,toString:En});function Cn(){return this.rgb().formatHex()}function wn(){return this.rgb().formatHex8()}function Tn(){return zn(this).formatHsl()}function En(){return this.rgb().formatRgb()}function Dn(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=hn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?On(t):n===3?new k(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gn.exec(e))?new k(t[1],t[2],t[3],1):(t=_n.exec(e))?new k(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vn.exec(e))?kn(t[1],t[2],t[3],t[4]):(t=yn.exec(e))?kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,1):(t=xn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,t[4]):Sn.hasOwnProperty(e)?On(Sn[e]):e===`transparent`?new k(NaN,NaN,NaN,0):null}function On(e){return new k(e>>16&255,e>>8&255,e&255,1)}function kn(e,t,n,r){return r<=0&&(e=t=n=NaN),new k(e,t,n,r)}function An(e){return e instanceof ln||(e=Dn(e)),e?(e=e.rgb(),new k(e.r,e.g,e.b,e.opacity)):new k}function jn(e,t,n,r){return arguments.length===1?An(e):new k(e,t,n,r??1)}function k(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sn(k,jn,cn(ln,{brighter(e){return e=e==null?dn:dn**+e,new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?un:un**+e,new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(In(this.r),In(this.g),In(this.b),Fn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mn,formatHex:Mn,formatHex8:Nn,formatRgb:Pn,toString:Pn}));function Mn(){return`#${Ln(this.r)}${Ln(this.g)}${Ln(this.b)}`}function Nn(){return`#${Ln(this.r)}${Ln(this.g)}${Ln(this.b)}${Ln((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pn(){let e=Fn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${In(this.r)}, ${In(this.g)}, ${In(this.b)}${e===1?`)`:`, ${e})`}`}function Fn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function In(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ln(e){return e=In(e),(e<16?`0`:``)+e.toString(16)}function Rn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vn(e,t,n,r)}function zn(e){if(e instanceof Vn)return new Vn(e.h,e.s,e.l,e.opacity);if(e instanceof ln||(e=Dn(e)),!e)return new Vn;if(e instanceof Vn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Vn(o,s,c,e.opacity)}function Bn(e,t,n,r){return arguments.length===1?zn(e):new Vn(e,t,n,r??1)}function Vn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sn(Vn,Bn,cn(ln,{brighter(e){return e=e==null?dn:dn**+e,new Vn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?un:un**+e,new Vn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new k(Wn(e>=240?e-240:e+120,i,r),Wn(e,i,r),Wn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vn(Hn(this.h),Un(this.s),Un(this.l),Fn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Fn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Hn(this.h)}, ${Un(this.s)*100}%, ${Un(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Hn(e){return e=(e||0)%360,e<0?e+360:e}function Un(e){return Math.max(0,Math.min(1,e||0))}function Wn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Gn=e=>()=>e;function Kn(e,t){return function(n){return e+n*t}}function qn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Jn(e){return(e=+e)==1?Yn:function(t,n){return n-t?qn(t,n,e):Gn(isNaN(t)?n:t)}}function Yn(e,t){var n=t-e;return n?Kn(e,n):Gn(isNaN(e)?t:e)}var Xn=(function e(t){var n=Jn(t);function r(e,t){var r=n((e=jn(e)).r,(t=jn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Yn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Zn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Qn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$n=new RegExp(Qn.source,`g`);function er(e){return function(){return e}}function tr(e){return function(t){return e(t)+``}}function nr(e,t){var n=Qn.lastIndex=$n.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Qn.exec(e))&&(i=$n.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Zn(r,i)})),n=$n.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?tr(c[0].x):er(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var rr=180/Math.PI,ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ar(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*rr,skewX:Math.atan(c)*rr,scaleX:o,scaleY:s}}var or;function sr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ir:ar(t.a,t.b,t.c,t.d,t.e,t.f)}function cr(e){return e==null||(or||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),or.setAttribute(`transform`,e),!(e=or.transform.baseVal.consolidate()))?ir:(e=e.matrix,ar(e.a,e.b,e.c,e.d,e.e,e.f))}function lr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Zn(e,i)},{i:c-2,x:Zn(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Zn(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Zn(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Zn(e,n)},{i:s-2,x:Zn(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ur=lr(sr,`px, `,`px)`,`deg)`),dr=lr(cr,`, `,`)`,`)`),fr=0,pr=0,mr=0,hr=1e3,gr,_r,vr=0,yr=0,br=0,xr=typeof performance==`object`&&performance.now?performance:Date,Sr=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cr(){return yr||=(Sr(wr),xr.now()+br)}function wr(){yr=0}function Tr(){this._call=this._time=this._next=null}Tr.prototype=Er.prototype={constructor:Tr,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Cr():+n)+(t==null?0:+t),!this._next&&_r!==this&&(_r?_r._next=this:gr=this,_r=this),this._call=e,this._time=n,jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,jr())}};function Er(e,t,n){var r=new Tr;return r.restart(e,t,n),r}function Dr(){Cr(),++fr;for(var e=gr,t;e;)(t=yr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fr}function Or(){yr=(vr=xr.now())+br,fr=pr=0;try{Dr()}finally{fr=0,Ar(),yr=0}}function kr(){var e=xr.now(),t=e-vr;t>hr&&(br-=t,vr=e)}function Ar(){for(var e,t=gr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:gr=n);_r=e,jr(r)}function jr(e){fr||(pr&&=clearTimeout(pr),e-yr>24?(e<1/0&&(pr=setTimeout(Or,e-xr.now()-br)),mr&&=clearInterval(mr)):(mr||=(vr=xr.now(),setInterval(kr,hr)),fr=1,Sr(Or)))}function Mr(e,t,n){var r=new Tr;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Nr=re(`start`,`end`,`cancel`,`interrupt`),Pr=[];function Fr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;zr(e,n,{name:t,index:r,group:i,on:Nr,tween:Pr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Ir(e,t){var n=Rr(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Lr(e,t){var n=Rr(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Rr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function zr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Er(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Mr(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Mr(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Br(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Vr(e){return this.each(function(){Br(this,e)})}function Hr(e,t){var n,r;return function(){var i=Lr(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ur(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Lr(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Wr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Rr(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Hr:Ur)(n,e,t))}function Gr(e,t,n){var r=e._id;return e.each(function(){var e=Lr(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Rr(e,r).value[t]}}function Kr(e,t){var n;return(typeof t==`number`?Zn:t instanceof Dn?Xn:(n=Dn(t))?(t=n,Xn):nr)(e,t)}function qr(e){return function(){this.removeAttribute(e)}}function Jr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Xr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Zr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Qr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function $r(e,t){var n=le(e),r=n===`transform`?dr:Kr;return this.attrTween(e,typeof t==`function`?(n.local?Qr:Zr)(n,r,Gr(this,`attr.`+e,t)):t==null?(n.local?Jr:qr)(n):(n.local?Xr:Yr)(n,r,t))}function ei(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ti(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ni(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ti(e,i)),n}return i._value=t,i}function ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ei(e,i)),n}return i._value=t,i}function ii(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=le(e);return this.tween(n,(r.local?ni:ri)(r,t))}function ai(e,t){return function(){Ir(this,e).delay=+t.apply(this,arguments)}}function oi(e,t){return t=+t,function(){Ir(this,e).delay=t}}function si(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ai:oi)(t,e)):Rr(this.node(),t).delay}function ci(e,t){return function(){Lr(this,e).duration=+t.apply(this,arguments)}}function li(e,t){return t=+t,function(){Lr(this,e).duration=t}}function ui(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ci:li)(t,e)):Rr(this.node(),t).duration}function di(e,t){if(typeof t!=`function`)throw Error();return function(){Lr(this,e).ease=t}}function fi(e){var t=this._id;return arguments.length?this.each(di(t,e)):Rr(this.node(),t).ease}function pi(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Lr(this,e).ease=n}}function mi(e){if(typeof e!=`function`)throw Error();return this.each(pi(this._id,e))}function hi(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Wi(r,this._parents,this._name,this._id)}function gi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Wi(o,this._parents,this._name,this._id)}function _i(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function vi(e,t,n){var r,i,a=_i(t)?Ir:Lr;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function yi(e,t){var n=this._id;return arguments.length<2?Rr(this.node(),n).on.on(e):this.each(vi(n,e,t))}function bi(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function xi(){return this.on(`end.remove`,bi(this._id))}function Si(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=me(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Fr(l[f],t,n,f,l,Rr(u,n)));return new Wi(a,this._parents,t,n)}function Ci(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ve(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Rr(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Fr(p,t,n,h,f,m);a.push(f),o.push(u)}return new Wi(a,o,t,n)}var wi=an.prototype.constructor;function Ti(){return new wi(this._groups,this._parents)}function Ei(e,t){var n,r,i;return function(){var a=dt(this,e),o=(this.style.removeProperty(e),dt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Di(e){return function(){this.style.removeProperty(e)}}function Oi(e,t,n){var r,i=n+``,a;return function(){var o=dt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ki(e,t,n){var r,i,a;return function(){var o=dt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),dt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ai(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Lr(this,e),l=c.on,u=c.value[a]==null?s||=Di(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function ji(e,t,n){var r=(e+=``)==`transform`?ur:Kr;return t==null?this.styleTween(e,Ei(e,r)).on(`end.style.`+e,Di(e)):typeof t==`function`?this.styleTween(e,ki(e,r,Gr(this,`style.`+e,t))).each(Ai(this._id,e)):this.styleTween(e,Oi(e,r,t),n).on(`end.style.`+e,null)}function Mi(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ni(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Mi(e,a,n)),r}return a._value=t,a}function Pi(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Ni(e,t,n??``))}function Fi(e){return function(){this.textContent=e}}function Ii(e){return function(){var t=e(this);this.textContent=t??``}}function Li(e){return this.tween(`text`,typeof e==`function`?Ii(Gr(this,`text`,e)):Fi(e==null?``:e+``))}function Ri(e){return function(t){this.textContent=e.call(this,t)}}function zi(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ri(r)),t}return r._value=e,r}function Bi(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,zi(e))}function Vi(){for(var e=this._name,t=this._id,n=Ki(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Rr(c,t);Fr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Wi(r,this._parents,e,n)}function Hi(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Lr(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Ui=0;function Wi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gi(e){return an().transition(e)}function Ki(){return++Ui}var qi=an.prototype;Wi.prototype=Gi.prototype={constructor:Wi,select:Si,selectAll:Ci,selectChild:qi.selectChild,selectChildren:qi.selectChildren,filter:hi,merge:gi,selection:Ti,transition:Vi,call:qi.call,nodes:qi.nodes,node:qi.node,size:qi.size,empty:qi.empty,each:qi.each,on:yi,attr:$r,attrTween:ii,style:ji,styleTween:Pi,text:Li,textTween:Bi,remove:xi,tween:Wr,delay:si,duration:ui,ease:fi,easeVarying:mi,end:Hi,[Symbol.iterator]:qi[Symbol.iterator]};function Ji(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Yi={time:null,delay:0,duration:250,ease:Ji};function Xi(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Zi(e){var t,n;e instanceof Wi?(t=e._id,e=e._name):(t=Ki(),(n=Yi).time=Cr(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Fr(c,e,t,l,o,n||Xi(c,t));return new Wi(r,this._parents,e,t)}an.prototype.interrupt=Vr,an.prototype.transition=Zi;let{abs:Qi,max:$i,min:ea}=Math;[`w`,`e`].map(ta),[`n`,`s`].map(ta),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(ta);function ta(e){return{type:e}}function na(e,t,n){this.k=e,this.x=t,this.y=n}na.prototype={constructor:na,scale:function(e){return e===1?this:new na(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new na(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var ra=new na(1,0,0);ia.prototype=na.prototype;function ia(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ra;return e.__zoom}var aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_aabb_free(e,0)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.aabb_new(n,r);return this.__wbg_ptr=i,bo.register(this,this.__wbg_ptr,this),this}get center(){let e=R.__wbg_get_aabb_center(this.__wbg_ptr);return j.__wrap(e)}get extent(){let e=R.__wbg_get_aabb_extent(this.__wbg_ptr);return j.__wrap(e)}set center(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_aabb_center(this.__wbg_ptr,t)}set extent(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_aabb_extent(this.__wbg_ptr,t)}};Symbol.dispose&&(aa.prototype[Symbol.dispose]=aa.prototype.free);var oa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_batchpropresult_free(e,0)}get layerId(){let e=R.__wbg_get_batchpropresult_layerId(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get properties(){return R.__wbg_get_batchpropresult_properties(this.__wbg_ptr)}set layerId(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_batchpropresult_layerId(this.__wbg_ptr,t,n)}set properties(e){R.__wbg_set_batchpropresult_properties(this.__wbg_ptr,e)}};Symbol.dispose&&(oa.prototype[Symbol.dispose]=oa.prototype.free);var sa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,So.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_billboardmaterial_free(e,0)}get alphaTest(){let e=R.__wbg_get_billboardmaterial_alphaTest(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_billboardmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_billboardmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_billboardmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_billboardmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_billboardmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_billboardmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_billboardmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_billboardmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_billboardmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_billboardmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_billboardmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_billboardmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_billboardmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_billboardmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_billboardmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_billboardmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_billboardmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}set alphaTest(e){R.__wbg_set_billboardmaterial_alphaTest(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_billboardmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_billboardmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_billboardmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_billboardmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_billboardmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_billboardmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_billboardmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_billboardmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_billboardmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_billboardmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_billboardmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_billboardmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_billboardmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_billboardmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_billboardmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_billboardmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_billboardmaterial_url(this.__wbg_ptr,t,n)}};Symbol.dispose&&(sa.prototype[Symbol.dispose]=sa.prototype.free);var ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Co.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_boundingsphere_free(e,0)}constructor(e,t,n,r){let i=R.boundingsphere_new(e,t,n,r);return this.__wbg_ptr=i,Co.register(this,this.__wbg_ptr,this),this}get center_x(){return R.__wbg_get_boundingsphere_center_x(this.__wbg_ptr)}get center_y(){return R.__wbg_get_boundingsphere_center_y(this.__wbg_ptr)}get center_z(){return R.__wbg_get_boundingsphere_center_z(this.__wbg_ptr)}get radius(){return R.__wbg_get_boundingsphere_radius(this.__wbg_ptr)}set center_x(e){R.__wbg_set_boundingsphere_center_x(this.__wbg_ptr,e)}set center_y(e){R.__wbg_set_boundingsphere_center_y(this.__wbg_ptr,e)}set center_z(e){R.__wbg_set_boundingsphere_center_z(this.__wbg_ptr,e)}set radius(e){R.__wbg_set_boundingsphere_radius(this.__wbg_ptr,e)}};Symbol.dispose&&(ca.prototype[Symbol.dispose]=ca.prototype.free),Object.freeze({Geographic:0,0:`Geographic`,Geocentric:1,1:`Geocentric`});var la=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cachedmeshhandle_free(e,0)}constructor(e,t,n,r){let i=R.cachedmeshhandle_new(e,t,n,F(r)?2**53-1:r>>0);return this.__wbg_ptr=i,wo.register(this,this.__wbg_ptr,this),this}get heights(){let e=R.__wbg_get_cachedmeshhandle_heights(this.__wbg_ptr);return e===2**53-1?void 0:e}get indices(){return R.__wbg_get_cachedmeshhandle_indices(this.__wbg_ptr)}get normals(){let e=R.__wbg_get_cachedmeshhandle_normals(this.__wbg_ptr);return e===2**53-1?void 0:e}get uvs(){return R.__wbg_get_cachedmeshhandle_uvs(this.__wbg_ptr)}get vertices(){return R.__wbg_get_cachedmeshhandle_vertices(this.__wbg_ptr)}get watermask(){let e=R.__wbg_get_cachedmeshhandle_watermask(this.__wbg_ptr);return e===2**53-1?void 0:e}set heights(e){R.__wbg_set_cachedmeshhandle_heights(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set indices(e){R.__wbg_set_cachedmeshhandle_indices(this.__wbg_ptr,e)}set normals(e){R.__wbg_set_cachedmeshhandle_normals(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set uvs(e){R.__wbg_set_cachedmeshhandle_uvs(this.__wbg_ptr,e)}set vertices(e){R.__wbg_set_cachedmeshhandle_vertices(this.__wbg_ptr,e)}set watermask(e){R.__wbg_set_cachedmeshhandle_watermask(this.__wbg_ptr,F(e)?2**53-1:e>>0)}};Symbol.dispose&&(la.prototype[Symbol.dispose]=la.prototype.free);var ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,To.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameracontrolupdateevent_free(e,0)}constructor(){let e=R.cameracontrolupdateevent_new();return this.__wbg_ptr=e,To.register(this,this.__wbg_ptr,this),this}get autoAdjustNearFar(){let e=R.__wbg_get_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableSpin(){let e=R.__wbg_get_cameracontrolupdateevent_enableSpin(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableTilt(){let e=R.__wbg_get_cameracontrolupdateevent_enableTilt(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableZoom(){let e=R.__wbg_get_cameracontrolupdateevent_enableZoom(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maximumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minimumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get spinDuration(){let e=R.__wbg_get_cameracontrolupdateevent_spinDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get spinSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get translateDuration(){let e=R.__wbg_get_cameracontrolupdateevent_translateDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomDuration(){let e=R.__wbg_get_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set autoAdjustNearFar(e){R.__wbg_set_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableSpin(e){R.__wbg_set_cameracontrolupdateevent_enableSpin(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableTilt(e){R.__wbg_set_cameracontrolupdateevent_enableTilt(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableZoom(e){R.__wbg_set_cameracontrolupdateevent_enableZoom(this.__wbg_ptr,F(e)?16777215:+!!e)}set maximumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set minimumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set spinDuration(e){R.__wbg_set_cameracontrolupdateevent_spinDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set spinSpeed(e){R.__wbg_set_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}set translateDuration(e){R.__wbg_set_cameracontrolupdateevent_translateDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomDuration(e){R.__wbg_set_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomSpeed(e){R.__wbg_set_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ua.prototype[Symbol.dispose]=ua.prototype.free),Object.freeze({Forward:0,0:`Forward`,Backward:1,1:`Backward`,Left:2,2:`Left`,Right:3,3:`Right`,Up:4,4:`Up`,Down:5,5:`Down`});var da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Eo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerafrustum_free(e,0)}constructor(e,t,n,r){let i=R.camerafrustum_new(e,t,n,r);return this.__wbg_ptr=i,Eo.register(this,this.__wbg_ptr,this),this}get aspect_ratio(){return R.__wbg_get_camerafrustum_aspect_ratio(this.__wbg_ptr)}get far(){return R.__wbg_get_camerafrustum_far(this.__wbg_ptr)}get fov(){return R.__wbg_get_camerafrustum_fov(this.__wbg_ptr)}get near(){return R.__wbg_get_camerafrustum_near(this.__wbg_ptr)}set aspect_ratio(e){R.__wbg_set_camerafrustum_aspect_ratio(this.__wbg_ptr,e)}set far(e){R.__wbg_set_camerafrustum_far(this.__wbg_ptr,e)}set fov(e){R.__wbg_set_camerafrustum_fov(this.__wbg_ptr,e)}set near(e){R.__wbg_set_camerafrustum_near(this.__wbg_ptr,e)}};Symbol.dispose&&(da.prototype[Symbol.dispose]=da.prototype.free);var fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Do.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraorientation_free(e,0)}get heading(){return R.__wbg_get_cameraorientation_heading(this.__wbg_ptr)}get pitch(){return R.__wbg_get_cameraorientation_pitch(this.__wbg_ptr)}get roll(){return R.__wbg_get_cameraorientation_roll(this.__wbg_ptr)}set heading(e){R.__wbg_set_cameraorientation_heading(this.__wbg_ptr,e)}set pitch(e){R.__wbg_set_cameraorientation_pitch(this.__wbg_ptr,e)}set roll(e){R.__wbg_set_cameraorientation_roll(this.__wbg_ptr,e)}};Symbol.dispose&&(fa.prototype[Symbol.dispose]=fa.prototype.free);var pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Oo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerastatus_free(e,0)}get status(){let e=R.__wbg_get_camerastatus_status(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}set status(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_camerastatus_status(this.__wbg_ptr,t,n)}};Symbol.dispose&&(pa.prototype[Symbol.dispose]=pa.prototype.free),Object.freeze({Change:0,0:`Change`,LookAt:1,1:`LookAt`,Rotate:2,2:`Rotate`,MoveStart:3,3:`MoveStart`,Moving:4,4:`Moving`,MoveEnd:5,5:`MoveEnd`});var ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledexpression_free(e,0)}evaluate(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledexpression_evaluate(this.__wbg_ptr,e,t,r,i);if(a[2])throw Xs(a[1]);return Xs(a[0])}getRequiredProperties(){return R.compiledexpression_getRequiredProperties(this.__wbg_ptr)}constructor(e,t){var n=F(t)?0:I(t,R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;let i=R.compiledexpression_new(e,n,r);if(i[2])throw Xs(i[1]);return this.__wbg_ptr=i[0],ko.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ma.prototype[Symbol.dispose]=ma.prototype.free);var ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ao.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledfilter_free(e,0)}constructor(e){let t=R.compiledfilter_new(e);if(t[2])throw Xs(t[1]);return this.__wbg_ptr=t[0],Ao.register(this,this.__wbg_ptr,this),this}test(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledfilter_test(this.__wbg_ptr,e,t,r,i);if(a[2])throw Xs(a[1]);return a[0]!==0}};Symbol.dispose&&(ha.prototype[Symbol.dispose]=ha.prototype.free);var ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,jo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygongeometry_free(e,0)}batch_id(){return R.constructedpolygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolygongeometry_indices(this.__wbg_ptr)}normal(){return R.constructedpolygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.constructedpolygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}outline(){let e=R.constructedpolygongeometry_outline(this.__wbg_ptr);return e===0?void 0:_a.__wrap(e)}position(){return R.constructedpolygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.constructedpolygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.constructedpolygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.constructedpolygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.__wbg_get_constructedpolygongeometry_extent(this.__wbg_ptr);return e===0?void 0:Ca.__wrap(e)}get rtc_translation(){let e=R.__wbg_get_constructedpolygongeometry_rtc_translation(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}set extent(e){let t=0;F(e)||(M(e,Ca),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_extent(this.__wbg_ptr,t)}set rtc_translation(e){let t=0;F(e)||(M(e,j),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(ga.prototype[Symbol.dispose]=ga.prototype.free);var _a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Mo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Mo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygonoutlinegeometry_free(e,0)}batch_index(){return R.constructedpolygonoutlinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygonoutlinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.constructedpolygonoutlinegeometry_position(this.__wbg_ptr)}position_size(){return R.constructedpolygonoutlinegeometry_position_size(this.__wbg_ptr)}scale_normal_and_cap(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap_size(this.__wbg_ptr)}skip_indices(){return R.constructedpolygonoutlinegeometry_skip_indices(this.__wbg_ptr)}};Symbol.dispose&&(_a.prototype[Symbol.dispose]=_a.prototype.free);var va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,No.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,No.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolylinegeometry_free(e,0)}batch_id(){return R.constructedpolylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.constructedpolylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.constructedpolylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.constructedpolylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.constructedpolylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.constructedpolylinegeometry_extent(this.__wbg_ptr);return e===0?void 0:Ca.__wrap(e)}forward_offset(){return R.constructedpolylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.constructedpolylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolylinegeometry_indices(this.__wbg_ptr)}position(){return R.constructedpolylinegeometry_position(this.__wbg_ptr)}position_high(){return R.constructedpolylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.constructedpolylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.constructedpolylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.constructedpolylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.constructedpolylinegeometry_start(this.__wbg_ptr)}start_high(){return R.constructedpolylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.constructedpolylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.constructedpolylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.constructedpolylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.constructedpolylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.constructedpolylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.constructedpolylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(va.prototype[Symbol.dispose]=va.prototype.free);var ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Po.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Po.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationdecoder_free(e,0)}static japanGSI(){let t=R.elevationdecoder_japanGSI();return e.__wrap(t)}static mapbox(){let t=R.elevationdecoder_mapbox();return e.__wrap(t)}constructor(e,t,n,r,i,a,o,s){let c=R.elevationdecoder_new(e,t,n,r,i,a,o,s);return this.__wbg_ptr=c,Po.register(this,this.__wbg_ptr,this),this}static terrarium(){let t=R.elevationdecoder_terrarium();return e.__wrap(t)}get b_scaler(){return R.__wbg_get_elevationdecoder_b_scaler(this.__wbg_ptr)}get boundary(){return R.__wbg_get_elevationdecoder_boundary(this.__wbg_ptr)}get epsilon(){return R.__wbg_get_elevationdecoder_epsilon(this.__wbg_ptr)}get g_scaler(){return R.__wbg_get_elevationdecoder_g_scaler(this.__wbg_ptr)}get max_offset(){return R.__wbg_get_elevationdecoder_max_offset(this.__wbg_ptr)}get min_offset(){return R.__wbg_get_elevationdecoder_min_offset(this.__wbg_ptr)}get offset(){return R.__wbg_get_elevationdecoder_offset(this.__wbg_ptr)}get r_scaler(){return R.__wbg_get_elevationdecoder_r_scaler(this.__wbg_ptr)}set b_scaler(e){R.__wbg_set_elevationdecoder_b_scaler(this.__wbg_ptr,e)}set boundary(e){R.__wbg_set_elevationdecoder_boundary(this.__wbg_ptr,e)}set epsilon(e){R.__wbg_set_elevationdecoder_epsilon(this.__wbg_ptr,e)}set g_scaler(e){R.__wbg_set_elevationdecoder_g_scaler(this.__wbg_ptr,e)}set max_offset(e){R.__wbg_set_elevationdecoder_max_offset(this.__wbg_ptr,e)}set min_offset(e){R.__wbg_set_elevationdecoder_min_offset(this.__wbg_ptr,e)}set offset(e){R.__wbg_set_elevationdecoder_offset(this.__wbg_ptr,e)}set r_scaler(e){R.__wbg_set_elevationdecoder_r_scaler(this.__wbg_ptr,e)}};Symbol.dispose&&(ya.prototype[Symbol.dispose]=ya.prototype.free);var ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Fo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationheatmapmaterial_free(e,0)}get logBoundary(){let e=R.__wbg_get_elevationheatmapmaterial_logBoundary(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get logarithmic(){let e=R.__wbg_get_elevationheatmapmaterial_logarithmic(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxHeight(){let e=R.__wbg_get_elevationheatmapmaterial_maxHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minHeight(){let e=R.__wbg_get_elevationheatmapmaterial_minHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set logBoundary(e){R.__wbg_set_elevationheatmapmaterial_logBoundary(this.__wbg_ptr,!F(e),F(e)?0:e)}set logarithmic(e){R.__wbg_set_elevationheatmapmaterial_logarithmic(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxHeight(e){R.__wbg_set_elevationheatmapmaterial_maxHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}set minHeight(e){R.__wbg_set_elevationheatmapmaterial_minHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ba.prototype[Symbol.dispose]=ba.prototype.free);var xa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Io.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ellipsoidgeodesic_free(e,0)}interpolateDistance(e){let t=R.ellipsoidgeodesic_interpolateDistance(this.__wbg_ptr,e);return Oa.__wrap(t)}interpolateGeodeticPoints(e){let t=R.ellipsoidgeodesic_interpolateGeodeticPoints(this.__wbg_ptr,!F(e),F(e)?0:e);var n=Ms(t[0],t[1]).slice();return R.__wbindgen_free(t[0],t[1]*4,4),n}constructor(e,t){M(e,Oa);var n=e.__destroy_into_raw();M(t,Oa);var r=t.__destroy_into_raw();let i=R.ellipsoidgeodesic_new(n,r);return this.__wbg_ptr=i,Io.register(this,this.__wbg_ptr,this),this}get distance(){return R.__wbg_get_ellipsoidgeodesic_distance(this.__wbg_ptr)}get end_heading(){return R.__wbg_get_ellipsoidgeodesic_end_heading(this.__wbg_ptr)}get end(){let e=R.__wbg_get_ellipsoidgeodesic_end(this.__wbg_ptr);return Oa.__wrap(e)}get start_heading(){return R.__wbg_get_ellipsoidgeodesic_start_heading(this.__wbg_ptr)}get start(){let e=R.__wbg_get_ellipsoidgeodesic_start(this.__wbg_ptr);return Oa.__wrap(e)}set distance(e){R.__wbg_set_ellipsoidgeodesic_distance(this.__wbg_ptr,e)}set end_heading(e){R.__wbg_set_ellipsoidgeodesic_end_heading(this.__wbg_ptr,e)}set end(e){M(e,Oa);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_end(this.__wbg_ptr,t)}set start_heading(e){R.__wbg_set_ellipsoidgeodesic_start_heading(this.__wbg_ptr,e)}set start(e){M(e,Oa);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_start(this.__wbg_ptr,t)}};Symbol.dispose&&(xa.prototype[Symbol.dispose]=xa.prototype.free);var Sa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Lo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_encodedvec3_free(e,0)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.encodedvec3_new(n,r);return this.__wbg_ptr=i,Lo.register(this,this.__wbg_ptr,this),this}get high(){let e=R.__wbg_get_encodedvec3_high(this.__wbg_ptr);return j.__wrap(e)}get low(){let e=R.__wbg_get_encodedvec3_low(this.__wbg_ptr);return j.__wrap(e)}set high(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_high(this.__wbg_ptr,t)}set low(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_low(this.__wbg_ptr,t)}};Symbol.dispose&&(Sa.prototype[Symbol.dispose]=Sa.prototype.free);var Ca=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ro.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ro.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_extentradianf32_free(e,0)}constructor(e,t,n,r){let i=R.extentradianf32_new(e,t,n,r);return this.__wbg_ptr=i,Ro.register(this,this.__wbg_ptr,this),this}get east(){return R.__wbg_get_extentradianf32_east(this.__wbg_ptr)}get north(){return R.__wbg_get_extentradianf32_north(this.__wbg_ptr)}get south(){return R.__wbg_get_extentradianf32_south(this.__wbg_ptr)}get west(){return R.__wbg_get_extentradianf32_west(this.__wbg_ptr)}set east(e){R.__wbg_set_extentradianf32_east(this.__wbg_ptr,e)}set north(e){R.__wbg_set_extentradianf32_north(this.__wbg_ptr,e)}set south(e){R.__wbg_set_extentradianf32_south(this.__wbg_ptr,e)}set west(e){R.__wbg_set_extentradianf32_west(this.__wbg_ptr,e)}};Symbol.dispose&&(Ca.prototype[Symbol.dispose]=Ca.prototype.free);var wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_floatattribute_free(e,0)}constructor(e,t){let n=qs(e,R.__wbindgen_malloc),r=L,i=R.floatattribute_new(n,r,t);return this.__wbg_ptr=i,zo.register(this,this.__wbg_ptr,this),this}transferData(){return R.floatattribute_transferData(this.__wbg_ptr)}get size(){return R.__wbg_get_floatattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_floatattribute_size(this.__wbg_ptr,e)}};Symbol.dispose&&(wa.prototype[Symbol.dispose]=wa.prototype.free);var Ta=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_geometry_free(e,0)}hasNormals(){return R.geometry_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.geometry_hasSkirt(this.__wbg_ptr)!==0}constructor(e,t,n){let r=qs(e,R.__wbindgen_malloc),i=L,a=Gs(t,R.__wbindgen_malloc),o=L,s=qs(n,R.__wbindgen_malloc),c=L,l=R.geometry_new(r,i,a,o,s,c);return this.__wbg_ptr=l,Bo.register(this,this.__wbg_ptr,this),this}transferIndices(){return R.geometry_transferIndices(this.__wbg_ptr)}transferNormals(){return R.geometry_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.geometry_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.geometry_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.geometry_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.geometry_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.geometry_transferUvs(this.__wbg_ptr)}transferVertices(){return R.geometry_transferVertices(this.__wbg_ptr)}};Symbol.dispose&&(Ta.prototype[Symbol.dispose]=Ta.prototype.free);var Ea=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Vo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_globe_free(e,0)}get color(){return R.__wbg_get_globe_color(this.__wbg_ptr)>>>0}get elevationColormap(){let e=R.__wbg_get_globe_elevationColormap(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get hideUnderground(){return R.__wbg_get_globe_hideUnderground(this.__wbg_ptr)!==0}get isGeographicTiling(){return R.__wbg_get_globe_isGeographicTiling(this.__wbg_ptr)!==0}get maxSse(){return R.__wbg_get_globe_maxSse(this.__wbg_ptr)}get opacity(){return R.__wbg_get_globe_opacity(this.__wbg_ptr)}get segments(){return R.__wbg_get_globe_segments(this.__wbg_ptr)}get transparent(){return R.__wbg_get_globe_transparent(this.__wbg_ptr)!==0}get useNormal(){return R.__wbg_get_globe_useNormal(this.__wbg_ptr)!==0}get wireframe(){return R.__wbg_get_globe_wireframe(this.__wbg_ptr)!==0}constructor(e,t,n,r,i,a,o,s,c){let l=qs(c,R.__wbindgen_malloc),u=L,d=R.globe_new(e,t,n,r,i,a,o,s,l,u);return this.__wbg_ptr=d,Vo.register(this,this.__wbg_ptr,this),this}set color(e){R.__wbg_set_globe_color(this.__wbg_ptr,e)}set elevationColormap(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_globe_elevationColormap(this.__wbg_ptr,t,n)}set hideUnderground(e){R.__wbg_set_globe_hideUnderground(this.__wbg_ptr,e)}set isGeographicTiling(e){R.__wbg_set_globe_isGeographicTiling(this.__wbg_ptr,e)}set maxSse(e){R.__wbg_set_globe_maxSse(this.__wbg_ptr,e)}set opacity(e){R.__wbg_set_globe_opacity(this.__wbg_ptr,e)}set segments(e){R.__wbg_set_globe_segments(this.__wbg_ptr,e)}set transparent(e){R.__wbg_set_globe_transparent(this.__wbg_ptr,e)}set useNormal(e){R.__wbg_set_globe_useNormal(this.__wbg_ptr,e)}set wireframe(e){R.__wbg_set_globe_wireframe(this.__wbg_ptr,e)}};Symbol.dispose&&(Ea.prototype[Symbol.dispose]=Ea.prototype.free);var Da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ho.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_hillshadematerial_free(e,0)}get exaggeration(){let e=R.__wbg_get_hillshadematerial_exaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}set exaggeration(e){R.__wbg_set_hillshadematerial_exaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Da.prototype[Symbol.dispose]=Da.prototype.free);var Oa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Uo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Uo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_lle_free(e,0)}get height(){return R.__wbg_get_lle_height(this.__wbg_ptr)}get lat(){return R.__wbg_get_lle_lat(this.__wbg_ptr)}get lng(){return R.__wbg_get_lle_lng(this.__wbg_ptr)}constructor(e,t,n){let r=R.lle_new(e,t,n);return this.__wbg_ptr=r,Uo.register(this,this.__wbg_ptr,this),this}set height(e){R.__wbg_set_lle_height(this.__wbg_ptr,e)}set lat(e){R.__wbg_set_lle_lat(this.__wbg_ptr,e)}set lng(e){R.__wbg_set_lle_lng(this.__wbg_ptr,e)}};Symbol.dispose&&(Oa.prototype[Symbol.dispose]=Oa.prototype.free);var ka=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelinternalmaterial_free(e,0)}get dracoCompressed(){return R.__wbg_get_modelinternalmaterial_dracoCompressed(this.__wbg_ptr)!==0}get pointCloudGeodeticNormal(){let e=R.__wbg_get_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr);return j.__wrap(e)}get pointCloud(){return R.__wbg_get_modelinternalmaterial_pointCloud(this.__wbg_ptr)!==0}set dracoCompressed(e){R.__wbg_set_modelinternalmaterial_dracoCompressed(this.__wbg_ptr,e)}set pointCloudGeodeticNormal(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr,t)}set pointCloud(e){R.__wbg_set_modelinternalmaterial_pointCloud(this.__wbg_ptr,e)}};Symbol.dispose&&(ka.prototype[Symbol.dispose]=ka.prototype.free);var Aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Go.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_modelmaterial___internal__(this.__wbg_ptr);return e===0?void 0:ka.__wrap(e)}get animationActiveClip(){let e=R.__wbg_get_modelmaterial_animationActiveClip(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get animationSpeed(){let e=R.__wbg_get_modelmaterial_animationSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get applyWaterNormal(){let e=R.__wbg_get_modelmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_modelmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_modelmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get creaseNormalAngle(){let e=R.__wbg_get_modelmaterial_creaseNormalAngle(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_modelmaterial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_modelmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_modelmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_modelmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_modelmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_modelmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxSse(){let e=R.__wbg_get_modelmaterial_maxSse(this.__wbg_ptr);return e===2**53-1?void 0:e}get metalness(){let e=R.__wbg_get_modelmaterial_metalness(this.__wbg_ptr);return e===2**53-1?void 0:e}get normals(){let e=R.__wbg_get_modelmaterial_normals(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_modelmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get pointSize(){let e=R.__wbg_get_modelmaterial_pointSize(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_modelmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_modelmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_modelmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_modelmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get shouldRotateInDefault(){let e=R.__wbg_get_modelmaterial_shouldRotateInDefault(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_modelmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_modelmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_modelmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get specularStrength(){let e=R.__wbg_get_modelmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_modelmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_modelmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_modelmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get waterScaleNormal(){let e=R.__wbg_get_modelmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_modelmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_modelmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}set __internal__(e){let t=0;F(e)||(M(e,ka),t=e.__destroy_into_raw()),R.__wbg_set_modelmaterial___internal__(this.__wbg_ptr,t)}set animationActiveClip(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_animationActiveClip(this.__wbg_ptr,t,n)}set animationSpeed(e){R.__wbg_set_modelmaterial_animationSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set applyWaterNormal(e){R.__wbg_set_modelmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_modelmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_modelmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set creaseNormalAngle(e){R.__wbg_set_modelmaterial_creaseNormalAngle(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set depthWrite(e){R.__wbg_set_modelmaterial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_modelmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_modelmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_modelmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_modelmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_modelmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxSse(e){R.__wbg_set_modelmaterial_maxSse(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set metalness(e){R.__wbg_set_modelmaterial_metalness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set normals(e){R.__wbg_set_modelmaterial_normals(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_modelmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set pointSize(e){R.__wbg_set_modelmaterial_pointSize(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_modelmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_modelmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_modelmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_modelmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shouldRotateInDefault(e){R.__wbg_set_modelmaterial_shouldRotateInDefault(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_modelmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_modelmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_modelmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specularStrength(e){R.__wbg_set_modelmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_modelmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_modelmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_url(this.__wbg_ptr,t,n)}set waterScaleNormal(e){R.__wbg_set_modelmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_modelmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_modelmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Aa.prototype[Symbol.dispose]=Aa.prototype.free);var ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_nearfar_free(e,0)}get far(){return R.__wbg_get_nearfar_far(this.__wbg_ptr)}get near(){return R.__wbg_get_nearfar_near(this.__wbg_ptr)}set far(e){R.__wbg_set_nearfar_far(this.__wbg_ptr,e)}set near(e){R.__wbg_set_nearfar_near(this.__wbg_ptr,e)}};Symbol.dispose&&(ja.prototype[Symbol.dispose]=ja.prototype.free);var Ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_overscaledtilehandle_free(e,0)}get handle(){let e=R.__wbg_get_overscaledtilehandle_handle(this.__wbg_ptr);return BigInt.asUintN(64,e)}set handle(e){R.__wbg_set_overscaledtilehandle_handle(this.__wbg_ptr,e)}};Symbol.dispose&&(Ma.prototype[Symbol.dispose]=Ma.prototype.free);var Na=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_plane_free(e,0)}get distance(){return R.__wbg_get_plane_distance(this.__wbg_ptr)}get normal(){let e=R.__wbg_get_plane_normal(this.__wbg_ptr);return j.__wrap(e)}set distance(e){R.__wbg_set_plane_distance(this.__wbg_ptr,e)}set normal(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_plane_normal(this.__wbg_ptr,t)}};Symbol.dispose&&(Na.prototype[Symbol.dispose]=Na.prototype.free);var Pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_pointmaterial_free(e,0)}get center(){let e=R.__wbg_get_pointmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_pointmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_pointmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_pointmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_pointmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_pointmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_pointmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_pointmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_pointmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_pointmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_pointmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_pointmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_pointmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_pointmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_pointmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_pointmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_pointmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_pointmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_pointmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_pointmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_pointmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_pointmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_pointmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_pointmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_pointmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_pointmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_pointmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_pointmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_pointmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_pointmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_pointmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_pointmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Pa.prototype[Symbol.dispose]=Pa.prototype.free);var Fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometry_free(e,0)}batch_id(){return R.polygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polygongeometry_indices(this.__wbg_ptr)}normal(){return R.polygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.polygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.polygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.polygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.polygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.polygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.polygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.polygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.polygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.polygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Fa.prototype[Symbol.dispose]=Fa.prototype.free);var Ia=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometryattributes_free(e,0)}transfer_batch_id(){return R.polygongeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polygongeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polygongeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polygongeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_normal(){return R.polygongeometryattributes_transfer_normal(this.__wbg_ptr)}transfer_normal_size(){let e=R.polygongeometryattributes_transfer_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polygongeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_3d_high(){return R.polygongeometryattributes_transfer_position_3d_high(this.__wbg_ptr)}transfer_position_3d_high_size(){let e=R.polygongeometryattributes_transfer_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_3d_low(){return R.polygongeometryattributes_transfer_position_3d_low(this.__wbg_ptr)}transfer_position_3d_low_size(){let e=R.polygongeometryattributes_transfer_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){let e=R.polygongeometryattributes_transfer_position_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_scale_normal_and_cap(){return R.polygongeometryattributes_transfer_scale_normal_and_cap(this.__wbg_ptr)}transfer_scale_normal_and_cap_size(){let e=R.polygongeometryattributes_transfer_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ia.prototype[Symbol.dispose]=Ia.prototype.free);var La=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Qo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygoninternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(La.prototype[Symbol.dispose]=La.prototype.free);var Ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$o.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygonmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_polygonmaterial___internal__(this.__wbg_ptr);return e===0?void 0:La.__wrap(e)}get applyWaterNormal(){let e=R.__wbg_get_polygonmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_polygonmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polygonmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polygonmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get effectIds(){let e=R.__wbg_get_polygonmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polygonmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polygonmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get extrudedHeight(){let e=R.__wbg_get_polygonmaterial_extrudedHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polygonmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polygonmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_polygonmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineShow(){let e=R.__wbg_get_polygonmaterial_outlineShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get outlineWidth(){let e=R.__wbg_get_polygonmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get outline(){let e=R.__wbg_get_polygonmaterial_outline(this.__wbg_ptr);return e===16777215?void 0:e!==0}get perPositionHeight(){let e=R.__wbg_get_polygonmaterial_perPositionHeight(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_polygonmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_polygonmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_polygonmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_polygonmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_polygonmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get specularStrength(){let e=R.__wbg_get_polygonmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_polygonmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get surfaceShow(){let e=R.__wbg_get_polygonmaterial_surfaceShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polygonmaterial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polygonmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get waterScaleNormal(){let e=R.__wbg_get_polygonmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_polygonmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_polygonmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}get wireframe(){let e=R.__wbg_get_polygonmaterial_wireframe(this.__wbg_ptr);return e===16777215?void 0:e!==0}constructor(e,t,n,r,i,a,o,s,c,l,u,d){let f=0;F(d)||(M(d,La),f=d.__destroy_into_raw());let p=R.polygonmaterial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?16777215:+!!c,F(l)?16777215:+!!l,F(u)?16777215:+!!u,f);return this.__wbg_ptr=p,$o.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(M(e,La),t=e.__destroy_into_raw()),R.__wbg_set_polygonmaterial___internal__(this.__wbg_ptr,t)}set applyWaterNormal(e){R.__wbg_set_polygonmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_polygonmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polygonmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polygonmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygonmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polygonmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polygonmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set extrudedHeight(e){R.__wbg_set_polygonmaterial_extrudedHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polygonmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_polygonmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polygonmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_polygonmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineShow(e){R.__wbg_set_polygonmaterial_outlineShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set outlineWidth(e){R.__wbg_set_polygonmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outline(e){R.__wbg_set_polygonmaterial_outline(this.__wbg_ptr,F(e)?16777215:+!!e)}set perPositionHeight(e){R.__wbg_set_polygonmaterial_perPositionHeight(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_polygonmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_polygonmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_polygonmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_polygonmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_polygonmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set specularStrength(e){R.__wbg_set_polygonmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_polygonmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set surfaceShow(e){R.__wbg_set_polygonmaterial_surfaceShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polygonmaterial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polygonmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set waterScaleNormal(e){R.__wbg_set_polygonmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_polygonmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_polygonmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}set wireframe(e){R.__wbg_set_polygonmaterial_wireframe(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ra.prototype[Symbol.dispose]=Ra.prototype.free);var za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometry_free(e,0)}batch_id(){return R.polylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.polylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.polylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.polylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.polylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}forward_offset(){return R.polylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.polylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polylinegeometry_indices(this.__wbg_ptr)}position(){return R.polylinegeometry_position(this.__wbg_ptr)}position_high(){return R.polylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.polylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.polylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.polylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.polylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.polylinegeometry_start(this.__wbg_ptr)}start_high(){return R.polylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.polylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.polylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.polylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.polylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.polylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.polylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(za.prototype[Symbol.dispose]=za.prototype.free);var Ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometryattributes_free(e,0)}transfer_batch_id(){return R.polylinegeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polylinegeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polylinegeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polylinegeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_high(){return R.polylinegeometryattributes_transfer_end_high(this.__wbg_ptr)}transfer_end_high_size(){let e=R.polylinegeometryattributes_transfer_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_low(){return R.polylinegeometryattributes_transfer_end_low(this.__wbg_ptr)}transfer_end_low_size(){let e=R.polylinegeometryattributes_transfer_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}transfer_end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_forward_offset(){return R.polylinegeometryattributes_transfer_forward_offset(this.__wbg_ptr)}transfer_forward_offset_size(){let e=R.polylinegeometryattributes_transfer_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polylinegeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_high(){return R.polylinegeometryattributes_transfer_position_high(this.__wbg_ptr)}transfer_position_high_size(){let e=R.polylinegeometryattributes_transfer_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_low(){return R.polylinegeometryattributes_transfer_position_low(this.__wbg_ptr)}transfer_position_low_size(){let e=R.polylinegeometryattributes_transfer_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){return R.polylinegeometryattributes_transfer_position_size(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}transfer_start(){return R.polylinegeometryattributes_transfer_start(this.__wbg_ptr)}transfer_start_high(){return R.polylinegeometryattributes_transfer_start_high(this.__wbg_ptr)}transfer_start_high_size(){let e=R.polylinegeometryattributes_transfer_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_low(){return R.polylinegeometryattributes_transfer_start_low(this.__wbg_ptr)}transfer_start_low_size(){let e=R.polylinegeometryattributes_transfer_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_normals(){return R.polylinegeometryattributes_transfer_start_normals(this.__wbg_ptr)}transfer_start_normals_size(){let e=R.polylinegeometryattributes_transfer_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_size(){let e=R.polylinegeometryattributes_transfer_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ba.prototype[Symbol.dispose]=Ba.prototype.free);var Va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ns.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ns.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylineinternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Va.prototype[Symbol.dispose]=Va.prototype.free);var Ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,rs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinematerial_free(e,0)}get __internal__(){let e=R.__wbg_get_polylinematerial___internal__(this.__wbg_ptr);return e===0?void 0:Va.__wrap(e)}get castShadow(){let e=R.__wbg_get_polylinematerial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polylinematerial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polylinematerial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_polylinematerial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_polylinematerial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polylinematerial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polylinematerial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polylinematerial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_polylinematerial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polylinematerial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_polylinematerial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_polylinematerial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polylinematerial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polylinematerial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get width(){let e=R.__wbg_get_polylinematerial_width(this.__wbg_ptr);return e===2**53-1?void 0:e}constructor(e,t,n,r,i,a,o,s,c,l){let u=0;F(l)||(M(l,Va),u=l.__destroy_into_raw());let d=R.polylinematerial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?2**53-1:Math.fround(c),u);return this.__wbg_ptr=d,rs.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(M(e,Va),t=e.__destroy_into_raw()),R.__wbg_set_polylinematerial___internal__(this.__wbg_ptr,t)}set castShadow(e){R.__wbg_set_polylinematerial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polylinematerial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polylinematerial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set depthWrite(e){R.__wbg_set_polylinematerial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylinematerial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polylinematerial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polylinematerial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polylinematerial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_polylinematerial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polylinematerial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_polylinematerial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_polylinematerial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polylinematerial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polylinematerial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set width(e){R.__wbg_set_polylinematerial_width(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Ha.prototype[Symbol.dispose]=Ha.prototype.free);var Ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,is.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastermaterial_free(e,0)}get color(){let e=R.__wbg_get_rastermaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_rastermaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get showBoundingBox(){let e=R.__wbg_get_rastermaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_rastermaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}set color(e){R.__wbg_set_rastermaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set opacity(e){R.__wbg_set_rastermaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set showBoundingBox(e){R.__wbg_set_rastermaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_rastermaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ua.prototype[Symbol.dispose]=Ua.prototype.free);var Wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,as.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastertileinternalmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_rastertileinternalmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get colors(){let e=R.__wbg_get_rastertileinternalmaterial_colors(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get elevationBScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr)}get elevationBoundary(){return R.__wbg_get_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr)}get elevationEpsilon(){return R.__wbg_get_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr)}get elevationGScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr)}get elevationMaxHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr)}get elevationMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr)}get elevationMinHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr)}get elevationMinOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr)}get elevationOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr)}get elevationRScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr)}get hillshadeBScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr)}get hillshadeBoundary(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr)}get hillshadeEpsilon(){return R.__wbg_get_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr)}get hillshadeExaggeration(){return R.__wbg_get_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr)}get hillshadeGScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr)}get hillshadeMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr)}get hillshadeMinOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr)}get hillshadeOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr)}get hillshadeRScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr)}get isElevationHeatmaps(){let e=R.__wbg_get_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get isHillshades(){let e=R.__wbg_get_rastertileinternalmaterial_isHillshades(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get layerReproject(){let e=R.__wbg_get_rastertileinternalmaterial_layerReproject(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get logBoundary(){return R.__wbg_get_rastertileinternalmaterial_logBoundary(this.__wbg_ptr)}get logarithmic(){return R.__wbg_get_rastertileinternalmaterial_logarithmic(this.__wbg_ptr)!==0}get opacities(){let e=R.__wbg_get_rastertileinternalmaterial_opacities(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get receiveShadow(){let e=R.__wbg_get_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get shows(){let e=R.__wbg_get_rastertileinternalmaterial_shows(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get terrainLatRange(){let e=R.__wbg_get_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}layerUvTransforms(){let e=R.rastertileinternalmaterial_layerUvTransforms(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}texture_fragments(){let e=R.rastertileinternalmaterial_texture_fragments(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}set castShadow(e){R.__wbg_set_rastertileinternalmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set colors(e){let t=Gs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_colors(this.__wbg_ptr,t,n)}set elevationBScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr,e)}set elevationBoundary(e){R.__wbg_set_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr,e)}set elevationEpsilon(e){R.__wbg_set_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr,e)}set elevationGScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr,e)}set elevationMaxHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr,e)}set elevationMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr,e)}set elevationMinHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr,e)}set elevationMinOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr,e)}set elevationOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr,e)}set elevationRScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr,e)}set hillshadeBScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr,e)}set hillshadeBoundary(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr,e)}set hillshadeEpsilon(e){R.__wbg_set_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr,e)}set hillshadeExaggeration(e){R.__wbg_set_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr,e)}set hillshadeGScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr,e)}set hillshadeMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr,e)}set hillshadeMinOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr,e)}set hillshadeOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr,e)}set hillshadeRScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr,e)}set isElevationHeatmaps(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr,t,n)}set isHillshades(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isHillshades(this.__wbg_ptr,t,n)}set layerReproject(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr,t,n)}set logBoundary(e){R.__wbg_set_rastertileinternalmaterial_logBoundary(this.__wbg_ptr,e)}set logarithmic(e){R.__wbg_set_rastertileinternalmaterial_logarithmic(this.__wbg_ptr,e)}set opacities(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_opacities(this.__wbg_ptr,t,n)}set receiveShadow(e){R.__wbg_set_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set shows(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_shows(this.__wbg_ptr,t,n)}set terrainLatRange(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Wa.prototype[Symbol.dispose]=Wa.prototype.free);var Ga=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,os.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ray_free(e,0)}get direction(){let e=R.__wbg_get_ray_direction(this.__wbg_ptr);return j.__wrap(e)}get origin(){let e=R.__wbg_get_ray_origin(this.__wbg_ptr);return j.__wrap(e)}getPoint(e){let t=R.ray_getPoint(this.__wbg_ptr,e);return j.__wrap(t)}constructor(e,t){M(e,j);var n=e.__destroy_into_raw();M(t,j);var r=t.__destroy_into_raw();let i=R.ray_new(n,r);return this.__wbg_ptr=i,os.register(this,this.__wbg_ptr,this),this}set direction(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_ray_direction(this.__wbg_ptr,t)}set origin(e){M(e,j);var t=e.__destroy_into_raw();R.__wbg_set_ray_origin(this.__wbg_ptr,t)}};Symbol.dispose&&(Ga.prototype[Symbol.dispose]=Ga.prototype.free);var Ka=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ss.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_returnedconstructedterrainmesh_free(e,0)}get max_height(){return R.__wbg_get_returnedconstructedterrainmesh_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_returnedconstructedterrainmesh_min_height(this.__wbg_ptr)}get rtc_translation(){let e=R.__wbg_get_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}hasNormals(){return R.returnedconstructedterrainmesh_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.returnedconstructedterrainmesh_hasSkirt(this.__wbg_ptr)!==0}hasWatermask(){return R.returnedconstructedterrainmesh_hasWatermask(this.__wbg_ptr)!==0}constructor(e,t,n,r,i){M(e,Ta);var a=e.__destroy_into_raw();let o=qs(r,R.__wbindgen_malloc),s=L,c=0;F(i)||(M(i,j),c=i.__destroy_into_raw());let l=R.returnedconstructedterrainmesh_new(a,t,n,o,s,c);return this.__wbg_ptr=l,ss.register(this,this.__wbg_ptr,this),this}transferHeights(){return R.returnedconstructedterrainmesh_transferHeights(this.__wbg_ptr)}transferIndices(){return R.returnedconstructedterrainmesh_transferIndices(this.__wbg_ptr)}transferNormals(){return R.returnedconstructedterrainmesh_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.returnedconstructedterrainmesh_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.returnedconstructedterrainmesh_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.returnedconstructedterrainmesh_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.returnedconstructedterrainmesh_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.returnedconstructedterrainmesh_transferUvs(this.__wbg_ptr)}transferVertices(){return R.returnedconstructedterrainmesh_transferVertices(this.__wbg_ptr)}transferWatermask(){return R.returnedconstructedterrainmesh_transferWatermask(this.__wbg_ptr)}set max_height(e){R.__wbg_set_returnedconstructedterrainmesh_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_returnedconstructedterrainmesh_min_height(this.__wbg_ptr,e)}set rtc_translation(e){let t=0;F(e)||(M(e,j),t=e.__destroy_into_raw()),R.__wbg_set_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(Ka.prototype[Symbol.dispose]=Ka.prototype.free);var qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_terrainmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_terrainmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_terrainmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_terrainmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get skirtExaggeration(){let e=R.__wbg_get_terrainmaterial_skirtExaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}get skirt(){let e=R.__wbg_get_terrainmaterial_skirt(this.__wbg_ptr);return e===16777215?void 0:e!==0}set castShadow(e){R.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_terrainmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_terrainmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_terrainmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set skirtExaggeration(e){R.__wbg_set_terrainmaterial_skirtExaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set skirt(e){R.__wbg_set_terrainmaterial_skirt(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(qa.prototype[Symbol.dispose]=qa.prototype.free);var Ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ls.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_textmaterial_free(e,0)}get backgroundColor(){let e=R.__wbg_get_textmaterial_backgroundColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderColor(){let e=R.__wbg_get_textmaterial_borderColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderWidth(){let e=R.__wbg_get_textmaterial_borderWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_textmaterial_center(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}get clampToGround(){let e=R.__wbg_get_textmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_textmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_textmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_textmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_textmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get font(){let e=R.__wbg_get_textmaterial_font(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get height(){let e=R.__wbg_get_textmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get highQuality(){let e=R.__wbg_get_textmaterial_highQuality(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lang(){let e=R.__wbg_get_textmaterial_lang(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get lineHeight(){let e=R.__wbg_get_textmaterial_lineHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_textmaterial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_textmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_textmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_textmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineOpacity(){let e=R.__wbg_get_textmaterial_outlineOpacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineWidth(){let e=R.__wbg_get_textmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_textmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_textmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_textmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get textAlign(){let e=R.__wbg_get_textmaterial_textAlign(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get text(){let e=R.__wbg_get_textmaterial_text(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get transparent(){let e=R.__wbg_get_textmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set backgroundColor(e){R.__wbg_set_textmaterial_backgroundColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderColor(e){R.__wbg_set_textmaterial_borderColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderWidth(e){R.__wbg_set_textmaterial_borderWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(M(e,A),t=e.__destroy_into_raw()),R.__wbg_set_textmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_textmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_textmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_textmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_textmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_textmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set font(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_font(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_textmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set highQuality(e){R.__wbg_set_textmaterial_highQuality(this.__wbg_ptr,F(e)?16777215:+!!e)}set lang(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_lang(this.__wbg_ptr,t,n)}set lineHeight(e){R.__wbg_set_textmaterial_lineHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_textmaterial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_textmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_textmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_textmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineOpacity(e){R.__wbg_set_textmaterial_outlineOpacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineWidth(e){R.__wbg_set_textmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_textmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_textmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_textmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set textAlign(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_textAlign(this.__wbg_ptr,t,n)}set text(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_text(this.__wbg_ptr,t,n)}set transparent(e){R.__wbg_set_textmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ja.prototype[Symbol.dispose]=Ja.prototype.free);var Ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,us.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,us.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_texturefragment_free(e,0)}get gen(){return R.__wbg_get_texturefragment_gen(this.__wbg_ptr)>>>0}get ind(){return R.__wbg_get_texturefragment_ind(this.__wbg_ptr)>>>0}set gen(e){R.__wbg_set_texturefragment_gen(this.__wbg_ptr,e)}set ind(e){R.__wbg_set_texturefragment_ind(this.__wbg_ptr,e)}};Symbol.dispose&&(Ya.prototype[Symbol.dispose]=Ya.prototype.free);var Xa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ds.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tileuvtransform_free(e,0)}get offset(){let e=R.__wbg_get_tileuvtransform_offset(this.__wbg_ptr);return A.__wrap(e)}get scale(){let e=R.__wbg_get_tileuvtransform_scale(this.__wbg_ptr);return A.__wrap(e)}set offset(e){M(e,A);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_offset(this.__wbg_ptr,t)}set scale(e){M(e,A);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_scale(this.__wbg_ptr,t)}};Symbol.dispose&&(Xa.prototype[Symbol.dispose]=Xa.prototype.free);var Za=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,fs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,fs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tilexyz_free(e,0)}get x(){return R.__wbg_get_tilexyz_x(this.__wbg_ptr)>>>0}get y(){return R.__wbg_get_tilexyz_y(this.__wbg_ptr)>>>0}get z(){return R.__wbg_get_tilexyz_z(this.__wbg_ptr)>>>0}set x(e){R.__wbg_set_tilexyz_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_tilexyz_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_tilexyz_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.tilexyz_new(e,t,n);return this.__wbg_ptr=r,fs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(Za.prototype[Symbol.dispose]=Za.prototype.free);var Qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ps.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablehierarchy_free(e,0)}get expected_winding_order(){return R.__wbg_get_transferablehierarchy_expected_winding_order(this.__wbg_ptr)}set expected_winding_order(e){R.__wbg_set_transferablehierarchy_expected_winding_order(this.__wbg_ptr,e)}};Symbol.dispose&&(Qa.prototype[Symbol.dispose]=Qa.prototype.free);var $a=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ms.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableholes_free(e,0)}};Symbol.dispose&&($a.prototype[Symbol.dispose]=$a.prototype.free);var eo=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,hs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,hs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablemartini_free(e,0)}get size(){return R.__wbg_get_transferablemartini_size(this.__wbg_ptr)>>>0}set size(e){R.__wbg_set_transferablemartini_size(this.__wbg_ptr,e)}static fromSize(t){let n=R.transferablemartini_fromSize(t);return e.__wrap(n)}constructor(e,t){let n=Gs(t,R.__wbindgen_malloc),r=L,i=R.transferablemartini_new(e,n,r);return this.__wbg_ptr=i,hs.register(this,this.__wbg_ptr,this),this}transfer_coords(){return R.transferablemartini_transfer_coords(this.__wbg_ptr)}};Symbol.dispose&&(eo.prototype[Symbol.dispose]=eo.prototype.free);var to=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,gs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,gs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableparsedmvtresult_free(e,0)}f32_stream(){return R.transferableparsedmvtresult_f32_stream(this.__wbg_ptr)}f64_stream(){return R.transferableparsedmvtresult_f64_stream(this.__wbg_ptr)}meta(){return R.transferableparsedmvtresult_meta(this.__wbg_ptr)}u32_stream(){return R.transferableparsedmvtresult_u32_stream(this.__wbg_ptr)}u8_stream(){return R.transferableparsedmvtresult_u8_stream(this.__wbg_ptr)}};Symbol.dispose&&(to.prototype[Symbol.dispose]=to.prototype.free);var no=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_s.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolygonbatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolygonbatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolygonbatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolygonbatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolygonbatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolygonbatchedfeature_constructor(e,t);return this.__wbg_ptr=n,_s.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolygonbatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolygonbatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setExpectedWindingOrders(e,t){R.transferablepolygonbatchedfeature_setExpectedWindingOrders(this.__wbg_ptr,e,t)}setHoles(e,t){R.transferablepolygonbatchedfeature_setHoles(this.__wbg_ptr,e,t)}setHolesBoundaries(e,t){R.transferablepolygonbatchedfeature_setHolesBoundaries(this.__wbg_ptr,e,t)}setHolesSizes(e,t){R.transferablepolygonbatchedfeature_setHolesSizes(this.__wbg_ptr,e,t)}setHolesTotalSizes(e,t){R.transferablepolygonbatchedfeature_setHolesTotalSizes(this.__wbg_ptr,e,t)}setOuterRing(e,t){R.transferablepolygonbatchedfeature_setOuterRing(this.__wbg_ptr,e,t)}setOuterRingSizes(e,t){R.transferablepolygonbatchedfeature_setOuterRingSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolygonbatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolygonbatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferExpectedWindingOrders(){return R.transferablepolygonbatchedfeature_transferExpectedWindingOrders(this.__wbg_ptr)}transferHoles(){return R.transferablepolygonbatchedfeature_transferHoles(this.__wbg_ptr)}transferHolesBoundaries(){return R.transferablepolygonbatchedfeature_transferHolesBoundaries(this.__wbg_ptr)}transferHolesSizes(){return R.transferablepolygonbatchedfeature_transferHolesSizes(this.__wbg_ptr)}transferHolesTotalSizes(){return R.transferablepolygonbatchedfeature_transferHolesTotalSizes(this.__wbg_ptr)}transferOuterRing(){return R.transferablepolygonbatchedfeature_transferOuterRing(this.__wbg_ptr)}transferOuterRingSizes(){return R.transferablepolygonbatchedfeature_transferOuterRingSizes(this.__wbg_ptr)}};Symbol.dispose&&(no.prototype[Symbol.dispose]=no.prototype.free);var ro=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,vs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolylinebatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolylinebatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolylinebatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolylinebatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolylinebatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolylinebatchedfeature_constructor(e,t);return this.__wbg_ptr=n,vs.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolylinebatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolylinebatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setPoints(e,t){R.transferablepolylinebatchedfeature_setPoints(this.__wbg_ptr,e,t)}setPointsSizes(e,t){R.transferablepolylinebatchedfeature_setPointsSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolylinebatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolylinebatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferPoints(){return R.transferablepolylinebatchedfeature_transferPoints(this.__wbg_ptr)}transferPointsSizes(){return R.transferablepolylinebatchedfeature_transferPointsSizes(this.__wbg_ptr)}};Symbol.dispose&&(ro.prototype[Symbol.dispose]=ro.prototype.free);var io=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ys.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablerasterdemdata_free(e,0)}get decoder(){let e=R.__wbg_get_transferablerasterdemdata_decoder(this.__wbg_ptr);return ya.__wrap(e)}set decoder(e){M(e,ya);var t=e.__destroy_into_raw();R.__wbg_set_transferablerasterdemdata_decoder(this.__wbg_ptr,t)}constructor(e){M(e,ya);var t=e.__destroy_into_raw();let n=R.transferablerasterdemdata_new(t);return this.__wbg_ptr=n,ys.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(io.prototype[Symbol.dispose]=io.prototype.free);var ao=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferabletile_free(e,0)}get cached_mesh_handle(){let e=R.__wbg_get_transferabletile_cached_mesh_handle(this.__wbg_ptr);return e===0?void 0:la.__wrap(e)}get coords(){let e=R.__wbg_get_transferabletile_coords(this.__wbg_ptr);return Za.__wrap(e)}get max_height(){return R.__wbg_get_transferabletile_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_transferabletile_min_height(this.__wbg_ptr)}set cached_mesh_handle(e){let t=0;F(e)||(M(e,la),t=e.__destroy_into_raw()),R.__wbg_set_transferabletile_cached_mesh_handle(this.__wbg_ptr,t)}set coords(e){M(e,Za);var t=e.__destroy_into_raw();R.__wbg_set_transferabletile_coords(this.__wbg_ptr,t)}set max_height(e){R.__wbg_set_transferabletile_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_transferabletile_min_height(this.__wbg_ptr,e)}constructor(e,t,n,r){M(e,Za);var i=e.__destroy_into_raw();let a=0;F(r)||(M(r,la),a=r.__destroy_into_raw());let o=R.transferabletile_new(i,t,n,a);return this.__wbg_ptr=o,bs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ao.prototype[Symbol.dispose]=ao.prototype.free);var oo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transform_free(e,0)}get qw(){return R.__wbg_get_transform_qw(this.__wbg_ptr)}get qx(){return R.__wbg_get_transform_qx(this.__wbg_ptr)}get qy(){return R.__wbg_get_transform_qy(this.__wbg_ptr)}get qz(){return R.__wbg_get_transform_qz(this.__wbg_ptr)}get sx(){return R.__wbg_get_transform_sx(this.__wbg_ptr)}get sy(){return R.__wbg_get_transform_sy(this.__wbg_ptr)}get sz(){return R.__wbg_get_transform_sz(this.__wbg_ptr)}get tx(){return R.__wbg_get_transform_tx(this.__wbg_ptr)}get ty(){return R.__wbg_get_transform_ty(this.__wbg_ptr)}get tz(){return R.__wbg_get_transform_tz(this.__wbg_ptr)}set qw(e){R.__wbg_set_transform_qw(this.__wbg_ptr,e)}set qx(e){R.__wbg_set_transform_qx(this.__wbg_ptr,e)}set qy(e){R.__wbg_set_transform_qy(this.__wbg_ptr,e)}set qz(e){R.__wbg_set_transform_qz(this.__wbg_ptr,e)}set sx(e){R.__wbg_set_transform_sx(this.__wbg_ptr,e)}set sy(e){R.__wbg_set_transform_sy(this.__wbg_ptr,e)}set sz(e){R.__wbg_set_transform_sz(this.__wbg_ptr,e)}set tx(e){R.__wbg_set_transform_tx(this.__wbg_ptr,e)}set ty(e){R.__wbg_set_transform_ty(this.__wbg_ptr,e)}set tz(e){R.__wbg_set_transform_tz(this.__wbg_ptr,e)}constructor(e,t,n,r,i,a,o,s,c,l){let u=R.transform_new(e,t,n,r,i,a,o,s,c,l);return this.__wbg_ptr=u,xs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(oo.prototype[Symbol.dispose]=oo.prototype.free);var so=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_uintattribute_free(e,0)}get size(){return R.__wbg_get_uintattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_uintattribute_size(this.__wbg_ptr,e)}constructor(e,t){let n=Gs(e,R.__wbindgen_malloc),r=L,i=R.uintattribute_new(n,r,t);return this.__wbg_ptr=i,Ss.register(this,this.__wbg_ptr,this),this}transferData(){return R.uintattribute_transferData(this.__wbg_ptr)}};Symbol.dispose&&(so.prototype[Symbol.dispose]=so.prototype.free);var co=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_upsamplableterraingeometry_free(e,0)}constructor(e,t,n,r,i){let a=qs(e,R.__wbindgen_malloc),o=L,s=Gs(t,R.__wbindgen_malloc),c=L,l=qs(n,R.__wbindgen_malloc),u=L;var d=F(r)?0:qs(r,R.__wbindgen_malloc),f=L,p=F(i)?0:Ks(i,R.__wbindgen_malloc),m=L;let h=R.upsamplableterraingeometry_new(a,o,s,c,l,u,d,f,p,m);return this.__wbg_ptr=h,Cs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(co.prototype[Symbol.dispose]=co.prototype.free);var A=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ws.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ws.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec2_free(e,0)}get x(){return R.__wbg_get_vec2_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec2_y(this.__wbg_ptr)}set x(e){R.__wbg_set_vec2_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec2_y(this.__wbg_ptr,e)}constructor(e,t){let n=R.vec2_new(e,t);return this.__wbg_ptr=n,ws.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);var j=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ts.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec3_free(e,0)}get x(){return R.__wbg_get_vec3_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec3_y(this.__wbg_ptr)}get z(){return R.__wbg_get_vec3_z(this.__wbg_ptr)}set x(e){R.__wbg_set_vec3_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec3_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_vec3_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.vec3_new(e,t,n);return this.__wbg_ptr=r,Ts.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var lo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_windingorder_free(e,0)}get 0(){return R.__wbg_get_windingorder_0(this.__wbg_ptr)}set 0(e){R.__wbg_set_windingorder_0(this.__wbg_ptr,e)}};Symbol.dispose&&(lo.prototype[Symbol.dispose]=lo.prototype.free);var uo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_window_free(e,0)}get height(){return R.__wbg_get_window_height(this.__wbg_ptr)}get pixelRatio(){return R.__wbg_get_window_pixelRatio(this.__wbg_ptr)}get width(){return R.__wbg_get_window_width(this.__wbg_ptr)}set height(e){R.__wbg_set_window_height(this.__wbg_ptr,e)}set pixelRatio(e){R.__wbg_set_window_pixelRatio(this.__wbg_ptr,e)}set width(e){R.__wbg_set_window_width(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.window_new(e,t,n);return this.__wbg_ptr=r,Ds.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(uo.prototype[Symbol.dispose]=uo.prototype.free);function fo(e,t,n,r){M(e,no);var i=e.__destroy_into_raw();M(t,Ra);var a=t.__destroy_into_raw();let o=0;F(r)||(M(r,Ca),o=r.__destroy_into_raw());let s=R.constructPolygonBatchedFeature(i,a,n,o);return s===0?void 0:ga.__wrap(s)}function po(e,t,n){M(e,ro);var r=e.__destroy_into_raw();M(t,Ha);var i=t.__destroy_into_raw();let a=R.constructPolylineBatchedFeature(r,i,n);return a===0?void 0:va.__wrap(a)}function mo(e,t,n,r,i,a){let o=Ks(e,R.__wbindgen_malloc),s=L;M(t,ao);var c=t.__destroy_into_raw();let l=R.constructQuantizedMeshTerrainMesh(o,s,c,n,r,i,a);return Ka.__wrap(l)}function ho(e,t,n,r,i,a){let o=Ks(e,R.__wbindgen_malloc),s=L;M(t,ao);var c=t.__destroy_into_raw();M(n,io);var l=n.__destroy_into_raw();M(r,eo);var u=r.__destroy_into_raw();let d=R.constructTerrainMesh(o,s,c,l,u,i,a);return Ka.__wrap(d)}function go(e,t,n,r,i,a,o){let s=Ks(e,R.__wbindgen_malloc),c=L,l=0;F(i)||(M(i,Ca),l=i.__destroy_into_raw());let u=I(o,R.__wbindgen_malloc,R.__wbindgen_realloc),d=L,f=R.parseMvtTile(s,c,t,n,r,l,a,u,d);if(f[2])throw Xs(f[1]);return to.__wrap(f[0])}function _o(e,t,n,r,i,a,o){M(e,ao);var s=e.__destroy_into_raw();M(t,ao);var c=t.__destroy_into_raw();M(n,co);var l=n.__destroy_into_raw();let u=R.upsampleQuantizedMeshTerrainMesh(s,c,l,r,i,a,o);return Ka.__wrap(u)}function vo(e,t,n,r,i,a,o){M(e,ao);var s=e.__destroy_into_raw();M(t,ao);var c=t.__destroy_into_raw();M(n,io);var l=n.__destroy_into_raw();M(r,co);var u=r.__destroy_into_raw();let d=R.upsampleTerrainMesh(s,c,l,u,i,a,o);return Ka.__wrap(d)}function yo(){return{__proto__:null,"./navara_wasm_worker_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(P(e,t))},__wbg_Number_9a4e0ecb0fa16705:function(e){return Number(e)},__wbg_String_8564e559799eccda:function(e,t){let n=I(String(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;N().setInt32(e+4,r,!0),N().setInt32(e+0,n,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(e,t){let n=t,r=typeof n==`bigint`?n:void 0;N().setBigInt64(e+8,F(r)?BigInt(0):r,!0),N().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(e){let t=e,n=typeof t==`boolean`?t:void 0;return F(n)?16777215:+!!n},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let n=I(ks(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;N().setInt32(e+4,r,!0),N().setInt32(e+0,n,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(e,t){return e in t},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(e){return typeof e==`bigint`},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(e){return typeof e==`function`},__wbg___wbindgen_is_object_a27215656b807791:function(e){let t=e;return typeof t==`object`&&!!t},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(e,t){return e==t},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R.memory},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(e,t){let n=t,r=typeof n==`number`?n:void 0;N().setFloat64(e+8,F(r)?0:r,!0),N().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=F(r)?0:I(r,R.__wbindgen_malloc,R.__wbindgen_realloc),a=L;N().setInt32(e+4,a,!0),N().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(P(e,t))},__wbg_buffer_0f212447ac64c53b:function(e){return e.buffer},__wbg_call_8a2dd23819f8a60a:function(){return Ws(function(e,t){return e.call(t)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Ws(function(e,t,n){return e.call(t,n)},arguments)},__wbg_done_89b2b13e91a60321:function(e){return e.done},__wbg_entries_015dc610cd81ede0:function(e){return Object.entries(e)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_c7eb1f358a7654df:function(){return Ws(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(e,t){return e[t>>>0]},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},__wbg_instanceof_Map_e5b5e3db98422fcc:function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},__wbg_isArray_0677c962b281d01a:function(e){return Array.isArray(e)},__wbg_isSafeInteger_04f36e4056f1b851:function(e){return Number.isSafeInteger(e)},__wbg_iterator_6f722e4a93058b71:function(){return Symbol.iterator},__wbg_length_0133fa10e3234c57:function(e){return e.length},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_381d540857ec99e8:function(e){return e.length},__wbg_length_98f10d1e2f4ea968:function(e){return e.length},__wbg_lle_new:function(e){return Oa.__wrap(e)},__wbg_log_631549b8bf4c7159:function(e,t){console.log(P(e,t))},__wbg_new_32b398fb48b6d94a:function(){return[]},__wbg_new_80efd62ef570c5de:function(e){return new Float64Array(e)},__wbg_new_92a08b12c30e98e8:function(e){return new Float32Array(e)},__wbg_new_cd45aabdf6073e84:function(e){return new Uint8Array(e)},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_dfd44b7151fab657:function(e){return new Uint32Array(e)},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_5784416b97d45088:function(e,t,n){return new Float64Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_c6e1a1aae380b2ff:function(e,t,n){return new Uint32Array(e,t>>>0,n>>>0)},__wbg_next_6dbf2c0ac8cde20f:function(e){return e.next},__wbg_next_71f2aa1cb3d1e37e:function(){return Ws(function(e){return e.next()},arguments)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,n){Uint8Array.prototype.set.call(Ps(e,t),n)},__wbg_push_d2ae3af0c1217ae6:function(e,t){return e.push(t)},__wbg_set_1e016b6a1b5f7cb3:function(e,t,n){e.set(As(t,n))},__wbg_set_29967298e530d279:function(e,t,n){e.set(js(t,n))},__wbg_set_4d7dd76f3dae2926:function(e,t,n){e.set(Ps(t,n))},__wbg_set_6be42768c690e380:function(e,t,n){e[t]=n},__wbg_set_8535240470bf2500:function(){return Ws(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_8a16b38e4805b298:function(e,t,n){e[t>>>0]=n},__wbg_set_b5e6b338281ca6ff:function(e,t,n){e.set(Ns(t,n))},__wbg_texturefragment_new:function(e){return Ya.__wrap(e)},__wbg_tileuvtransform_new:function(e){return Xa.__wrap(e)},__wbg_value_a5d5488a9589444a:function(e){return e.value},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e,t){return P(e,t)},__wbindgen_cast_0000000000000004:function(e){return BigInt.asUintN(64,e)},__wbindgen_init_externref_table:function(){let e=R.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}let bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_aabb_free(e,1)),xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_batchpropresult_free(e,1)),So=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_billboardmaterial_free(e,1)),Co=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_boundingsphere_free(e,1)),wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cachedmeshhandle_free(e,1)),To=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameracontrolupdateevent_free(e,1)),Eo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerafrustum_free(e,1)),Do=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraorientation_free(e,1)),Oo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerastatus_free(e,1)),ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledexpression_free(e,1)),Ao=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledfilter_free(e,1)),jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygongeometry_free(e,1)),Mo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygonoutlinegeometry_free(e,1)),No=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolylinegeometry_free(e,1)),Po=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationdecoder_free(e,1)),Fo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationheatmapmaterial_free(e,1)),Io=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ellipsoidgeodesic_free(e,1)),Lo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_encodedvec3_free(e,1)),Ro=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_extentradianf32_free(e,1)),zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_floatattribute_free(e,1)),Bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_geometry_free(e,1)),Vo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_globe_free(e,1)),Ho=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_hillshadematerial_free(e,1)),Uo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_lle_free(e,1)),Wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelinternalmaterial_free(e,1)),Go=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelmaterial_free(e,1)),Ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_nearfar_free(e,1)),qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_overscaledtilehandle_free(e,1)),Jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_plane_free(e,1)),Yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_pointmaterial_free(e,1)),Xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometry_free(e,1)),Zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometryattributes_free(e,1)),Qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygoninternalmaterial_free(e,1)),$o=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygonmaterial_free(e,1)),es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometry_free(e,1)),ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometryattributes_free(e,1)),ns=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylineinternalmaterial_free(e,1)),rs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinematerial_free(e,1)),is=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastermaterial_free(e,1)),as=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastertileinternalmaterial_free(e,1)),os=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ray_free(e,1)),ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_returnedconstructedterrainmesh_free(e,1)),cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_terrainmaterial_free(e,1)),ls=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_textmaterial_free(e,1)),us=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_texturefragment_free(e,1)),ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tileuvtransform_free(e,1)),fs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tilexyz_free(e,1)),ps=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablehierarchy_free(e,1)),ms=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableholes_free(e,1)),hs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablemartini_free(e,1)),gs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableparsedmvtresult_free(e,1)),_s=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolygonbatchedfeature_free(e,1)),vs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolylinebatchedfeature_free(e,1)),ys=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablerasterdemdata_free(e,1)),bs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferabletile_free(e,1)),xs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transform_free(e,1)),Ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_uintattribute_free(e,1)),Cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_upsamplableterraingeometry_free(e,1)),ws=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec2_free(e,1)),Ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec3_free(e,1)),Es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_windingorder_free(e,1)),Ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_window_free(e,1));function Os(e){let t=R.__externref_table_alloc();return R.__wbindgen_externrefs.set(t,e),t}function M(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function ks(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=ks(e[0]));for(let r=1;r<t;r++)n+=`, `+ks(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function As(e,t){return e>>>=0,Ls().subarray(e/4,e/4+t)}function js(e,t){return e>>>=0,zs().subarray(e/8,e/8+t)}function Ms(e,t){e>>>=0;let n=N(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(R.__wbindgen_externrefs.get(n.getUint32(i,!0)));return R.__externref_drop_slice(e,t),r}function Ns(e,t){return e>>>=0,Vs().subarray(e/4,e/4+t)}function Ps(e,t){return e>>>=0,Us().subarray(e/1,e/1+t)}let Fs=null;function N(){return(Fs===null||Fs.buffer.detached===!0||Fs.buffer.detached===void 0&&Fs.buffer!==R.memory.buffer)&&(Fs=new DataView(R.memory.buffer)),Fs}let Is=null;function Ls(){return(Is===null||Is.byteLength===0)&&(Is=new Float32Array(R.memory.buffer)),Is}let Rs=null;function zs(){return(Rs===null||Rs.byteLength===0)&&(Rs=new Float64Array(R.memory.buffer)),Rs}function P(e,t){return $s(e>>>0,t)}let Bs=null;function Vs(){return(Bs===null||Bs.byteLength===0)&&(Bs=new Uint32Array(R.memory.buffer)),Bs}let Hs=null;function Us(){return(Hs===null||Hs.byteLength===0)&&(Hs=new Uint8Array(R.memory.buffer)),Hs}function Ws(e,t){try{return e.apply(this,t)}catch(e){let t=Os(e);R.__wbindgen_exn_store(t)}}function F(e){return e==null}function Gs(e,t){let n=t(e.length*4,4)>>>0;return Vs().set(e,n/4),L=e.length,n}function Ks(e,t){let n=t(e.length*1,1)>>>0;return Us().set(e,n/1),L=e.length,n}function qs(e,t){let n=t(e.length*4,4)>>>0;return Ls().set(e,n/4),L=e.length,n}function Js(e,t){let n=t(e.length*8,8)>>>0;return zs().set(e,n/8),L=e.length,n}function Ys(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=Os(e[t]);N().setUint32(n+4*t,r,!0)}return L=e.length,n}function I(e,t,n){if(n===void 0){let n=ec.encode(e),r=t(n.length,1)>>>0;return Us().subarray(r,r+n.length).set(n),L=n.length,r}let r=e.length,i=t(r,1)>>>0,a=Us(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=Us().subarray(i+o,i+r),a=ec.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return L=o,i}function Xs(e){let t=R.__wbindgen_externrefs.get(e);return R.__externref_table_dealloc(e),t}let Zs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});Zs.decode();let Qs=0;function $s(e,t){return Qs+=t,Qs>=2146435072&&(Zs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),Zs.decode(),Qs=t),Zs.decode(Us().subarray(e,e+t))}let ec=new TextEncoder;`encodeInto`in ec||(ec.encodeInto=function(e,t){let n=ec.encode(e);return t.set(n),{read:e.length,written:n.length}});let L=0,R;function tc(e,t){return R=e.exports,Fs=null,Is=null,Rs=null,Bs=null,Hs=null,R.__wbindgen_start(),R}async function nc(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function rc(e){if(R!==void 0)return R;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(``+new URL(`navara_wasm_worker_bg-Xadu67fw.wasm`,self.location.href).href,``+self.location.href));let t=yo();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await nc(await e,t);return tc(n,r)}function ic(e){let t=new te(e);return{result:t,transfers:[t.batch_id?.buffer,t.batch_index?.buffer,t.normal?.buffer,t.position_3d_high?.buffer,t.position_3d_low?.buffer,t.position?.buffer,t.scale_normal_and_cap?.buffer,t.indices.buffer,t.outline_position?.buffer,t.outline_scale_normal_and_cap?.buffer,t.outline_skip_indices?.buffer,t.outline_batch_index?.buffer].filter(T)}}function ac(e){return new ao(oc(e.coords),e.max_height,e.min_height,e.cached_mesh_handle?sc(e.cached_mesh_handle):void 0)}function oc(e){return new Za(e.x,e.y,e.z)}function sc(e){return new la(e.vertices,e.indices,e.uvs,e.heights)}function cc(e){return new co(e.uvs,e.indices,e.heights,e.normals,e.watermask)}function lc(e){return new Ca(e.west,e.south,e.east,e.north)}function uc(e){return new Ra(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.extrudedHeight,e.wireframe,e.outline,e.perPositionHeight,e.__internal__)}function dc(e){let t=new no(e.crs,e.length);return t.setOuterRing(e.outer_ring.length,t=>{t.set(e.outer_ring)}),t.setOuterRingSizes(e.outer_ring_sizes.length,t=>{t.set(e.outer_ring_sizes)}),t.setHoles(e.holes.length,t=>{t.set(e.holes)}),t.setHolesSizes(e.holes_sizes.length,t=>{t.set(e.holes_sizes)}),t.setHolesTotalSizes(e.holes_total_sizes.length,t=>{t.set(e.holes_total_sizes)}),t.setHolesBoundaries(e.holes_boundaries.length,t=>{t.set(e.holes_boundaries)}),t.setExpectedWindingOrders(e.expected_winding_orders.length,t=>{t.set(e.expected_winding_orders)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}let fc;async function pc(){return fc??=rc(),fc}async function mc(){if(!fc)return 0;let{memory:e}=await fc;return e.buffer.byteLength}async function hc(e,t,n,r){await pc();let i=fo(dc(e),uc(t),n,r?lc(r):void 0);if(!i)return;let{result:a,transfers:o}=ic(i);return i.free(),jc(a,o)}function gc(e){let t=new O(e);return{result:t,transfers:[t.position.buffer,t.position_high?.buffer,t.position_low?.buffer,t.start?.buffer,t.start_high?.buffer,t.start_low?.buffer,t.end_high?.buffer,t.end_low?.buffer,t.start_normals?.buffer,t.forward_offset?.buffer,t.end_normal_and_texture_coordinate_normalization_x?.buffer,t.right_normal_and_texture_coordinate_normalization_y.buffer,t.batch_id?.buffer,t.batch_index?.buffer,t.indices.buffer].filter(T)}}function _c(e){return new Ha(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.width,e.maxWidth,e.__internal__)}function vc(e){let t=new ro(e.crs,e.length);return t.setPoints(e.points.length,t=>{t.set(e.points)}),t.setPointsSizes(e.points_sizes.length,t=>{t.set(e.points_sizes)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}async function yc(e,t,n){await pc();let r=po(vc(e),_c(t),n);if(!r)return;let{result:i,transfers:a}=gc(r);return r.free(),jc(i,a)}function bc(e){let t=new ee(e),n=[t.vertices.buffer,t.uvs.buffer,t.indices.buffer,t.heights.buffer];return t.normals&&n.push(t.normals.buffer),t.skirt_vertices&&n.push(t.skirt_vertices.buffer),t.skirt_uvs&&n.push(t.skirt_uvs.buffer),t.skirt_indices&&n.push(t.skirt_indices.buffer),t.skirt_normals&&n.push(t.skirt_normals.buffer),t.watermask&&n.push(t.watermask.buffer),{result:t,transfers:n}}async function xc(e,t,n,r,i,a){await pc();let o=mo(e,ac(t),n,r,i,a),{result:s,transfers:c}=bc(o);return o.free(),jc({result:s},[...c])}function Sc(e){return new io(new ya(e.decoder.r_scaler,e.decoder.g_scaler,e.decoder.b_scaler,e.decoder.offset,e.decoder.max_offset,e.decoder.min_offset,e.decoder.boundary,e.decoder.epsilon))}async function Cc(e,t,n,r,i,a){await pc();let o=r+1,s=eo.fromSize(o),c=ho(e,ac(t),Sc(n),s,i,a),{result:l,transfers:u}=bc(c);return c.free(),jc({result:l},[...u])}async function wc(e){let t=await createImageBitmap(e);try{let e=new OffscreenCanvas(t.width,t.height).getContext(`2d`);if(e===null)throw Error(`failed to get context of canvas`);e.drawImage(t,0,0);let n=e.getImageData(0,0,t.width,t.height).data;return jc(n,[n.buffer])}finally{t.close()}}async function Tc(e,t){try{let n=t.getContext(`2d`);if(n===null)throw Error(`failed to get context of canvas`);return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data}finally{e.close()}}async function Ec(e,t,n,r,i,a,o){await pc();let s=go(e,t,n,r,i?lc(i):void 0,a,o),c,l,u,d,f;try{c=s.f64_stream(),l=s.f32_stream(),u=s.u32_stream(),d=s.u8_stream(),f=s.meta()}finally{s.free()}return jc({f64_stream:c,f32_stream:l,u32_stream:u,u8_stream:d,meta:f},[c.buffer,l.buffer,u.buffer,d.buffer])}async function Dc(e,t,n,r,i,a,o){await pc();let s=_o(ac(e),ac(t),cc(n),r,i,a,o),{result:c,transfers:l}=bc(s);return s.free(),jc(c,l)}async function Oc(e,t,n,r,i,a,o){await pc();let s=vo(ac(e),ac(t),Sc(n),cc(r),i,a,o),{result:c,transfers:l}=bc(s);return s.free(),jc(c,l)}async function kc(){await pc()}let Ac={constructTerrainMesh:Cc,constructQuantizedMeshTerrainMesh:xc,upsampleTerrainMesh:Oc,upsampleQuantizedMeshTerrainMesh:Dc,getImageDataFromImageBitmap:Tc,getImageDataFromBlob:wc,constructPolygonBatchedFeature:hc,constructPolylineBatchedFeature:yc,parseMvtTile:Ec,warmUp:kc,getWasmMemoryUsage:mc},jc=(e,t)=>new S.Transfer(e,t),Mc=!1,Nc=(...e)=>(Mc||=(S.worker(Ac),Pc(),!0),S.worker(...e));function Pc(){Ac.warmUp.worker?.addAbortListener(async()=>{})}let{initializeWorkerPool:Fc,terminateWorkerPool:Ic,warmUpWorkerPool:Lc,worker:Rc,workerPoolStats:zc,workerPoolHeapStats:Bc,probeWorkerPoolHeap:Vc}=(()=>{let e;return{initializeWorkerPool:(t,n,r)=>{if(e)throw Error(`Worker pool has already been initialized.`);e={pool:new w(t,n.total,r),manager:n}},terminateWorkerPool:()=>{e&&=(e.pool.terminate(),void 0)},warmUpWorkerPool:()=>(u(e,`initializeWorkerPool() must be invoked first.`),e.pool.warmUp()),worker:()=>(u(e,`initializeWorkerPool() must be invoked first.`),{pool:e.pool,manager:e.manager}),workerPoolStats:()=>e?.pool.stats(),workerPoolHeapStats:()=>e?.pool.heapStats(),probeWorkerPoolHeap:()=>e?.pool.probeHeap()}})();var Hc=typeof global==`object`&&global&&global.Object===Object&&global,Uc=typeof self==`object`&&self&&self.Object===Object&&self,Wc=Hc||Uc||Function(`return this`)(),Gc=Wc.Symbol,Kc=Object.prototype,qc=Kc.hasOwnProperty,Jc=Kc.toString,Yc=Gc?Gc.toStringTag:void 0;function Xc(e){var t=qc.call(e,Yc),n=e[Yc];try{e[Yc]=void 0;var r=!0}catch{}var i=Jc.call(e);return r&&(t?e[Yc]=n:delete e[Yc]),i}var Zc=Object.prototype.toString;function Qc(e){return Zc.call(e)}var $c=`[object Null]`,el=`[object Undefined]`,tl=Gc?Gc.toStringTag:void 0;function nl(e){return e==null?e===void 0?el:$c:tl&&tl in Object(e)?Xc(e):Qc(e)}function rl(e){return typeof e==`object`&&!!e}var il=`[object Symbol]`;function al(e){return typeof e==`symbol`||rl(e)&&nl(e)==il}function ol(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sl=Array.isArray,cl=1/0,ll=Gc?Gc.prototype:void 0,ul=ll?ll.toString:void 0;function dl(e){if(typeof e==`string`)return e;if(sl(e))return ol(e,dl)+``;if(al(e))return ul?ul.call(e):``;var t=e+``;return t==`0`&&1/e==-cl?`-0`:t}function fl(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function pl(e){return e}var ml=`[object AsyncFunction]`,hl=`[object Function]`,gl=`[object GeneratorFunction]`,_l=`[object Proxy]`;function vl(e){if(!fl(e))return!1;var t=nl(e);return t==hl||t==gl||t==ml||t==_l}var yl=Wc[`__core-js_shared__`],bl=function(){var e=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function xl(e){return!!bl&&bl in e}var Sl=Function.prototype.toString;function Cl(e){if(e!=null){try{return Sl.call(e)}catch{}try{return e+``}catch{}}return``}var wl=/[\\^$.*+?()[\]{}|]/g,Tl=/^\[object .+?Constructor\]$/,El=Function.prototype,Dl=Object.prototype,Ol=El.toString,kl=Dl.hasOwnProperty,Al=RegExp(`^`+Ol.call(kl).replace(wl,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function jl(e){return!fl(e)||xl(e)?!1:(vl(e)?Al:Tl).test(Cl(e))}function Ml(e,t){return e?.[t]}function Nl(e,t){var n=Ml(e,t);return jl(n)?n:void 0}function Pl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fl=800,Il=16,Ll=Date.now;function Rl(e){var t=0,n=0;return function(){var r=Ll(),i=Il-(r-n);if(n=r,i>0){if(++t>=Fl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zl(e){return function(){return e}}var Bl=function(){try{var e=Nl(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Vl=Rl(Bl?function(e,t){return Bl(e,`toString`,{configurable:!0,enumerable:!1,value:zl(t),writable:!0})}:pl),Hl=9007199254740991,Ul=/^(?:0|[1-9]\d*)$/;function Wl(e,t){var n=typeof e;return t??=Hl,!!t&&(n==`number`||n!=`symbol`&&Ul.test(e))&&e>-1&&e%1==0&&e<t}function Gl(e,t,n){t==`__proto__`&&Bl?Bl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kl(e,t){return e===t||e!==e&&t!==t}var ql=Object.prototype.hasOwnProperty;function Jl(e,t,n){var r=e[t];(!(ql.call(e,t)&&Kl(r,n))||n===void 0&&!(t in e))&&Gl(e,t,n)}var Yl=Math.max;function Xl(e,t,n){return t=Yl(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Yl(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Pl(e,this,s)}}var Zl=9007199254740991;function Ql(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Zl}var $l=`[object Arguments]`;function eu(e){return rl(e)&&nl(e)==$l}var tu=Object.prototype,nu=tu.hasOwnProperty,ru=tu.propertyIsEnumerable,iu=eu(function(){return arguments}())?eu:function(e){return rl(e)&&nu.call(e,`callee`)&&!ru.call(e,`callee`)},au=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ou=/^\w*$/;function su(e,t){if(sl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||al(e)?!0:ou.test(e)||!au.test(e)||t!=null&&e in Object(t)}var cu=Nl(Object,`create`);function lu(){this.__data__=cu?cu(null):{},this.size=0}function uu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var du=`__lodash_hash_undefined__`,fu=Object.prototype.hasOwnProperty;function pu(e){var t=this.__data__;if(cu){var n=t[e];return n===du?void 0:n}return fu.call(t,e)?t[e]:void 0}var mu=Object.prototype.hasOwnProperty;function hu(e){var t=this.__data__;return cu?t[e]!==void 0:mu.call(t,e)}var gu=`__lodash_hash_undefined__`;function _u(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=cu&&t===void 0?gu:t,this}function vu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vu.prototype.clear=lu,vu.prototype.delete=uu,vu.prototype.get=pu,vu.prototype.has=hu,vu.prototype.set=_u;function yu(){this.__data__=[],this.size=0}function bu(e,t){for(var n=e.length;n--;)if(Kl(e[n][0],t))return n;return-1}var xu=Array.prototype.splice;function Su(e){var t=this.__data__,n=bu(t,e);return n<0?!1:(n==t.length-1?t.pop():xu.call(t,n,1),--this.size,!0)}function Cu(e){var t=this.__data__,n=bu(t,e);return n<0?void 0:t[n][1]}function wu(e){return bu(this.__data__,e)>-1}function Tu(e,t){var n=this.__data__,r=bu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Eu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Eu.prototype.clear=yu,Eu.prototype.delete=Su,Eu.prototype.get=Cu,Eu.prototype.has=wu,Eu.prototype.set=Tu;var Du=Nl(Wc,`Map`);function Ou(){this.size=0,this.__data__={hash:new vu,map:new(Du||Eu),string:new vu}}function ku(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Au(e,t){var n=e.__data__;return ku(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ju(e){var t=Au(this,e).delete(e);return this.size-=+!!t,t}function Mu(e){return Au(this,e).get(e)}function Nu(e){return Au(this,e).has(e)}function Pu(e,t){var n=Au(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Fu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fu.prototype.clear=Ou,Fu.prototype.delete=ju,Fu.prototype.get=Mu,Fu.prototype.has=Nu,Fu.prototype.set=Pu;var Iu=`Expected a function`;function Lu(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Iu);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Lu.Cache||Fu),n}Lu.Cache=Fu;var Ru=500;function zu(e){var t=Lu(e,function(e){return n.size===Ru&&n.clear(),e}),n=t.cache;return t}var Bu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vu=/\\(\\)?/g,Hu=zu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Bu,function(e,n,r,i){t.push(r?i.replace(Vu,`$1`):n||e)}),t});function Uu(e){return e==null?``:dl(e)}function Wu(e,t){return sl(e)?e:su(e,t)?[e]:Hu(Uu(e))}var Gu=1/0;function Ku(e){if(typeof e==`string`||al(e))return e;var t=e+``;return t==`0`&&1/e==-Gu?`-0`:t}function qu(e,t){t=Wu(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ku(t[n++])];return n&&n==r?e:void 0}function Ju(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Yu=Gc?Gc.isConcatSpreadable:void 0;function Xu(e){return sl(e)||iu(e)||!!(Yu&&e&&e[Yu])}function Zu(e,t,n,r,i){var a=-1,o=e.length;for(n||=Xu,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Zu(s,t-1,n,r,i):Ju(i,s):r||(i[i.length]=s)}return i}function Qu(e){return e!=null&&e.length?Zu(e,1):[]}function $u(e){return Vl(Xl(e,void 0,Qu),e+``)}function ed(e,t){return e!=null&&t in Object(e)}function td(e,t,n){t=Wu(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ku(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ql(i)&&Wl(o,i)&&(sl(e)||iu(e)))}function nd(e,t){return e!=null&&td(e,t,ed)}function rd(e,t,n,r){if(!fl(e))return e;t=Wu(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=Ku(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=fl(u)?u:Wl(t[i+1])?[]:{})}Jl(s,c,l),s=s[c]}return e}function id(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=qu(e,o);n(s,o)&&rd(a,Wu(o,e),s)}return a}function ad(e,t){return id(e,t,function(t,n){return nd(e,n)})}var od=$u(function(e,t){return e==null?{}:ad(e,t)})
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2010-2026 Three.js Authors
|
|
15
15
|
* SPDX-License-Identifier: MIT
|
|
16
16
|
*/
|
|
17
|
-
;let sd=1e3,cd=1001,ld=1002,ud=2300,dd=2301,fd=2302,pd=2303,md=2400,hd=2401,gd=2402,_d=`srgb`,vd=`srgb-linear`,yd=`linear`,bd=2e3;function xd(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Sd(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Cd(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}let wd={};function Td(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function z(...e){e=Td(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function B(...e){e=Td(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Ed(...e){let t=e.join(` `);t in wd||(wd[t]=!0,z(...e))}var Dd=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n<r;n++)t[n].call(this,e);e.target=null}}};let V=`00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff`.split(`.`);Math.PI/180,180/Math.PI;function Od(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(V[e&255]+V[e>>8&255]+V[e>>16&255]+V[e>>24&255]+`-`+V[t&255]+V[t>>8&255]+`-`+V[t>>16&15|64]+V[t>>24&255]+`-`+V[n&63|128]+V[n>>8&255]+`-`+V[n>>16&255]+V[n>>24&255]+V[r&255]+V[r>>8&255]+V[r>>16&255]+V[r>>24&255]).toLowerCase()}function H(e,t,n){return Math.max(t,Math.min(n,e))}function kd(e,t){return(e%t+t)%t}function Ad(e,t,n){return(1-n)*e+n*t}function jd(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function U(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var Md=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},Nd=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:z(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(H(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},W=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Fd.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Fd.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Pd.copy(this).projectOnVector(e),this.sub(Pd)}reflect(e){return this.sub(Pd.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};let Pd=new W,Fd=new Nd;var Id=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Ed(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(Ld.makeScale(e,t)),this}rotate(e){return Ed(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(Ld.makeRotation(-e)),this}translate(e,t){return Ed(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(Ld.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}};let Ld=new Id,Rd=new Id().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),zd=new Id().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Bd(){let e={enabled:!0,workingColorSpace:vd,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=Hd(e.r),e.g=Hd(e.g),e.b=Hd(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Ud(e.r),e.g=Ud(e.g),e.b=Ud(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?yd:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Ed(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Ed(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[vd]:{primaries:t,whitePoint:r,transfer:yd,toXYZ:Rd,fromXYZ:zd,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:_d},outputColorSpaceConfig:{drawingBufferColorSpace:_d}},[_d]:{primaries:t,whitePoint:r,transfer:`srgb`,toXYZ:Rd,fromXYZ:zd,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:_d}}}),e}let Vd=Bd();function Hd(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Ud(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}let Wd;var Gd=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Wd===void 0&&(Wd=Cd(`canvas`)),Wd.width=e.width,Wd.height=e.height;let t=Wd.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Wd}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Cd(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=Hd(i[e]/255)*255;return n.putImageData(r,0,0),t}else if(e.data){let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(Hd(t[e]/255)*255):t[e]=Hd(t[e]);return{data:t,width:e.width,height:e.height}}else return z(`ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied.`),e}};let Kd=0;var qd=class{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Kd++}),this.uuid=Od(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return typeof HTMLVideoElement<`u`&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):typeof VideoFrame<`u`&&t instanceof VideoFrame?e.set(t.displayWidth,t.displayHeight,0):t===null?e.set(0,0,0):e.set(t.width,t.height,t.depth||0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];let n={uuid:this.uuid,url:``},r=this.data;if(r!==null){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(Jd(r[t].image)):e.push(Jd(r[t]))}else e=Jd(r);n.url=e}return t||(e.images[this.uuid]=n),n}};function Jd(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap?Gd.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(z(`Texture: Unable to serialize Texture.`),{})}let Yd=0,Xd=new W;var Zd=class e extends Dd{constructor(t=e.DEFAULT_IMAGE,n=e.DEFAULT_MAPPING,r=cd,i=cd,a=1006,o=1008,s=1023,c=1009,l=e.DEFAULT_ANISOTROPY,u=``){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Yd++}),this.uuid=Od(),this.name=``,this.source=new qd(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=c,this.offset=new Md(0,0),this.repeat=new Md(1,1),this.center=new Md(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Id,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(Xd).x}get height(){return this.source.getSize(Xd).y}get depth(){return this.source.getSize(Xd).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){z(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){z(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case sd:e.x-=Math.floor(e.x);break;case cd:e.x=e.x<0?0:1;break;case ld:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case sd:e.y-=Math.floor(e.y);break;case cd:e.y=e.y<0?0:1;break;case ld:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Zd.DEFAULT_IMAGE=null,Zd.DEFAULT_MAPPING=300,Zd.DEFAULT_ANISOTROPY=1,class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)<a&&Math.abs(u-m)<a&&Math.abs(p-h)<a){if(Math.abs(l+d)<o&&Math.abs(u+m)<o&&Math.abs(p+h)<o&&Math.abs(c+f+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;let e=(c+1)/2,s=(f+1)/2,_=(g+1)/2,v=(l+d)/4,y=(u+m)/4,b=(p+h)/4;return e>s&&e>_?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=v/n,i=y/n):s>_?s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=v/r,i=b/r):_<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(_),n=y/i,r=b/i),this.set(n,r,i,t),this}let _=Math.sqrt((h-p)*(h-p)+(u-m)*(u-m)+(d-l)*(d-l));return Math.abs(_)<.001&&(_=1),this.x=(h-p)/_,this.y=(u-m)/_,this.z=(d-l)/_,this.w=Math.acos((c+f+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this.w=H(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this.w=H(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}};var Qd=class e{static{e.prototype.isMatrix4=!0}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return this.determinantAffine()===0?(e.set(1,0,0),t.set(0,1,0),n.set(0,0,1),this):(e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this)}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){if(e.determinantAffine()===0)return this.identity();let t=this.elements,n=e.elements,r=1/$d.setFromMatrixColumn(e,0).length(),i=1/$d.setFromMatrixColumn(e,1).length(),a=1/$d.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(tf,e,nf)}lookAt(e,t,n){let r=this.elements;return G.subVectors(e,t),G.lengthSq()===0&&(G.z=1),G.normalize(),rf.crossVectors(n,G),rf.lengthSq()===0&&(Math.abs(n.z)===1?G.x+=1e-4:G.z+=1e-4,G.normalize(),rf.crossVectors(n,G)),rf.normalize(),af.crossVectors(G,rf),r[0]=rf.x,r[4]=af.x,r[8]=G.x,r[1]=rf.y,r[5]=af.y,r[9]=G.y,r[2]=rf.z,r[6]=af.z,r[10]=G.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],ee=r[9],D=r[13],te=r[2],O=r[6],ne=r[10],re=r[14],ie=r[3],ae=r[7],oe=r[11],se=r[15];return i[0]=a*x+o*T+s*te+c*ie,i[4]=a*S+o*E+s*O+c*ae,i[8]=a*C+o*ee+s*ne+c*oe,i[12]=a*w+o*D+s*re+c*se,i[1]=l*x+u*T+d*te+f*ie,i[5]=l*S+u*E+d*O+f*ae,i[9]=l*C+u*ee+d*ne+f*oe,i[13]=l*w+u*D+d*re+f*se,i[2]=p*x+m*T+h*te+g*ie,i[6]=p*S+m*E+h*O+g*ae,i[10]=p*C+m*ee+h*ne+g*oe,i[14]=p*w+m*D+h*re+g*se,i[3]=_*x+v*T+y*te+b*ie,i[7]=_*S+v*E+y*O+b*ae,i[11]=_*C+v*ee+y*ne+b*oe,i[15]=_*w+v*D+y*re+b*se,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15],_=s*f-c*d,v=o*f-c*u,y=o*d-s*u,b=a*f-c*l,x=a*d-s*l,S=a*u-o*l;return t*(m*_-h*v+g*y)-n*(p*_-h*b+g*x)+r*(p*v-m*b+g*S)-i*(p*y-m*x+h*S)}determinantAffine(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[1],a=e[5],o=e[9],s=e[2],c=e[6],l=e[10];return t*(a*l-o*c)-n*(i*l-o*s)+r*(i*c-a*s)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,ee=u*g-f*m,D=d*g-f*h,te=_*D-v*ee+y*E+b*T-x*w+S*C;if(te===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let O=1/te;return e[0]=(o*D-s*ee+c*E)*O,e[1]=(r*ee-n*D-i*E)*O,e[2]=(m*S-h*x+g*b)*O,e[3]=(d*x-u*S-f*b)*O,e[4]=(s*T-a*D-c*w)*O,e[5]=(t*D-r*T+i*w)*O,e[6]=(h*y-p*S-g*v)*O,e[7]=(l*S-d*y+f*v)*O,e[8]=(a*ee-o*T+c*C)*O,e[9]=(n*T-t*ee-i*C)*O,e[10]=(p*x-m*y+g*_)*O,e[11]=(u*y-l*x-f*_)*O,e[12]=(o*w-a*E-s*C)*O,e[13]=(t*E-n*w+r*C)*O,e[14]=(m*v-p*b-h*_)*O,e[15]=(l*b-u*v+d*_)*O,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements;e.x=r[12],e.y=r[13],e.z=r[14];let i=this.determinantAffine();if(i===0)return n.set(1,1,1),t.identity(),this;let a=$d.set(r[0],r[1],r[2]).length(),o=$d.set(r[4],r[5],r[6]).length(),s=$d.set(r[8],r[9],r[10]).length();i<0&&(a=-a),ef.copy(this);let c=1/a,l=1/o,u=1/s;return ef.elements[0]*=c,ef.elements[1]*=c,ef.elements[2]*=c,ef.elements[4]*=l,ef.elements[5]*=l,ef.elements[6]*=l,ef.elements[8]*=u,ef.elements[9]*=u,ef.elements[10]*=u,t.setFromRotationMatrix(ef),n.x=a,n.y=o,n.z=s,this}makePerspective(e,t,n,r,i,a,o=bd,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===2e3)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===2001)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=bd,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===2e3)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===2001)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}};let $d=new W,ef=new Qd,tf=new W(0,0,0),nf=new W(1,1,1),rf=new W,af=new W,G=new W,of=new Qd,sf=new Nd;var cf=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(H(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-H(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(H(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-H(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(H(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-H(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:z(`Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return of.makeRotationFromQuaternion(e),this.setFromRotationMatrix(of,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return sf.setFromEuler(this),this.setFromQuaternion(sf,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};cf.DEFAULT_ORDER=`XYZ`;var lf=class{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!=0}};let uf=0,df=new W,ff=new Nd,pf=new Qd,mf=new W,hf=new W,gf=new W,_f=new Nd,vf=new W(1,0,0),yf=new W(0,1,0),bf=new W(0,0,1),xf={type:`added`},Sf={type:`removed`},Cf={type:`childadded`,child:null},wf={type:`childremoved`,child:null};var Tf=class e extends Dd{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:uf++}),this.uuid=Od(),this.name=``,this.type=`Object3D`,this.parent=null,this.children=[],this.up=e.DEFAULT_UP.clone();let t=new W,n=new cf,r=new Nd,i=new W(1,1,1);function a(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Qd},normalMatrix:{value:new Id}}),this.matrix=new Qd,this.matrixWorld=new Qd,this.matrixAutoUpdate=e.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new lf,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.static=!1,this.userData={},this.pivot=null}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return ff.setFromAxisAngle(e,t),this.quaternion.multiply(ff),this}rotateOnWorldAxis(e,t){return ff.setFromAxisAngle(e,t),this.quaternion.premultiply(ff),this}rotateX(e){return this.rotateOnAxis(vf,e)}rotateY(e){return this.rotateOnAxis(yf,e)}rotateZ(e){return this.rotateOnAxis(bf,e)}translateOnAxis(e,t){return df.copy(e).applyQuaternion(this.quaternion),this.position.add(df.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(vf,e)}translateY(e){return this.translateOnAxis(yf,e)}translateZ(e){return this.translateOnAxis(bf,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(pf.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?mf.copy(e):mf.set(e,t,n);let r=this.parent;this.updateWorldMatrix(!0,!1),hf.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?pf.lookAt(hf,mf,this.up):pf.lookAt(mf,hf,this.up),this.quaternion.setFromRotationMatrix(pf),r&&(pf.extractRotation(r.matrixWorld),ff.setFromRotationMatrix(pf),this.quaternion.premultiply(ff.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(B(`Object3D.add: object can't be added as a child of itself.`,e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(xf),Cf.child=e,this.dispatchEvent(Cf),Cf.child=null):B(`Object3D.add: object not an instance of THREE.Object3D.`,e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Sf),wf.child=e,this.dispatchEvent(wf),wf.child=null),this}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),pf.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),pf.multiply(e.parent.matrixWorld)),e.applyMatrix4(pf),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(xf),Cf.child=e,this.dispatchEvent(Cf),Cf.child=null,this}getObjectById(e){return this.getObjectByProperty(`id`,e)}getObjectByName(e){return this.getObjectByProperty(`name`,e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){let r=this.children[n].getObjectByProperty(e,t);if(r!==void 0)return r}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let r=this.children;for(let i=0,a=r.length;i<a;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hf,e,gf),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hf,_f,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);let e=this.pivot;if(e!==null){let t=e.x,n=e.y,r=e.z,i=this.matrix.elements;i[12]+=t-i[0]*t-i[4]*n-i[8]*r,i[13]+=n-i[1]*t-i[5]*n-i[9]*r,i[14]+=r-i[2]*t-i[6]*n-i[10]*r}this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t,n=!1){let r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||n)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,n=!0),t===!0){let e=this.children;for(let t=0,r=e.length;t<r;t++)e[t].updateWorldMatrix(!1,!0,n)}}toJSON(e){let t=e===void 0||typeof e==`string`,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:`Object`,generator:`Object3D.toJSON`});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==``&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),this.static!==!1&&(r.static=this.static),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){let r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){let t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}};Tf.DEFAULT_UP=new W(0,1,0),Tf.DEFAULT_MATRIX_AUTO_UPDATE=!0,Tf.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;let Ef={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Df={h:0,s:0,l:0},Of={h:0,s:0,l:0};function kf(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Af=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=_d){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Vd.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Vd.workingColorSpace){return this.r=e,this.g=t,this.b=n,Vd.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Vd.workingColorSpace){if(e=kd(e,1),t=H(t,0,1),n=H(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=kf(i,r,e+1/3),this.g=kf(i,r,e),this.b=kf(i,r,e-1/3)}return Vd.colorSpaceToWorking(this,r),this}setStyle(e,t=_d){function n(t){t!==void 0&&parseFloat(t)<1&&z(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:z(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);z(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=_d){let n=Ef[e.toLowerCase()];return n===void 0?z(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Hd(e.r),this.g=Hd(e.g),this.b=Hd(e.b),this}copyLinearToSRGB(e){return this.r=Ud(e.r),this.g=Ud(e.g),this.b=Ud(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=_d){return Vd.workingToColorSpace(K.copy(this),e),Math.round(H(K.r*255,0,255))*65536+Math.round(H(K.g*255,0,255))*256+Math.round(H(K.b*255,0,255))}getHexString(e=_d){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Vd.workingColorSpace){Vd.workingToColorSpace(K.copy(this),t);let n=K.r,r=K.g,i=K.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4;break}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=Vd.workingColorSpace){return Vd.workingToColorSpace(K.copy(this),t),e.r=K.r,e.g=K.g,e.b=K.b,e}getStyle(e=_d){Vd.workingToColorSpace(K.copy(this),e);let t=K.r,n=K.g,r=K.b;return e===`srgb`?`rgb(${Math.round(t*255)},${Math.round(n*255)},${Math.round(r*255)})`:`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`}offsetHSL(e,t,n){return this.getHSL(Df),this.setHSL(Df.h+e,Df.s+t,Df.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Df),e.getHSL(Of);let n=Ad(Df.h,Of.h,t),r=Ad(Df.s,Of.s,t),i=Ad(Df.l,Of.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};let K=new Af;Af.NAMES=Ef;var jf=class{constructor(e=new W(1/0,1/0,1/0),t=new W(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(Nf.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(Nf.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=Nf.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(n!==void 0){let r=n.getAttribute(`position`);if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let t=0,n=r.count;t<n;t++)e.isMesh===!0?e.getVertexPosition(t,Nf):Nf.fromBufferAttribute(r,t),Nf.applyMatrix4(e.matrixWorld),this.expandByPoint(Nf);else e.boundingBox===void 0?(n.boundingBox===null&&n.computeBoundingBox(),Pf.copy(n.boundingBox)):(e.boundingBox===null&&e.computeBoundingBox(),Pf.copy(e.boundingBox)),Pf.applyMatrix4(e.matrixWorld),this.union(Pf)}let r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Nf),Nf.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Vf),Hf.subVectors(this.max,Vf),Ff.subVectors(e.a,Vf),If.subVectors(e.b,Vf),Lf.subVectors(e.c,Vf),Rf.subVectors(If,Ff),zf.subVectors(Lf,If),Bf.subVectors(Ff,Lf);let t=[0,-Rf.z,Rf.y,0,-zf.z,zf.y,0,-Bf.z,Bf.y,Rf.z,0,-Rf.x,zf.z,0,-zf.x,Bf.z,0,-Bf.x,-Rf.y,Rf.x,0,-zf.y,zf.x,0,-Bf.y,Bf.x,0];return!Gf(t,Ff,If,Lf,Hf)||(t=[1,0,0,0,1,0,0,0,1],!Gf(t,Ff,If,Lf,Hf))?!1:(Uf.crossVectors(Rf,zf),t=[Uf.x,Uf.y,Uf.z],Gf(t,Ff,If,Lf,Hf))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Nf).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Nf).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Mf[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Mf[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Mf[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Mf[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Mf[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Mf[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Mf[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Mf[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Mf),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}};let Mf=[new W,new W,new W,new W,new W,new W,new W,new W],Nf=new W,Pf=new jf,Ff=new W,If=new W,Lf=new W,Rf=new W,zf=new W,Bf=new W,Vf=new W,Hf=new W,Uf=new W,Wf=new W;function Gf(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Wf.fromArray(e,a);let o=i.x*Math.abs(Wf.x)+i.y*Math.abs(Wf.y)+i.z*Math.abs(Wf.z),s=t.dot(Wf),c=n.dot(Wf),l=r.dot(Wf);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}let q=new W,Kf=new Md,qf=0;var Jf=class extends Dd{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:qf++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=35044,this.updateRanges=[],this.gpuType=1015,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,n=this.count;t<n;t++)Kf.fromBufferAttribute(this,t),Kf.applyMatrix3(e),this.setXY(t,Kf.x,Kf.y);else if(this.itemSize===3)for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyMatrix3(e),this.setXYZ(t,q.x,q.y,q.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyMatrix4(e),this.setXYZ(t,q.x,q.y,q.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyNormalMatrix(e),this.setXYZ(t,q.x,q.y,q.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.transformDirection(e),this.setXYZ(t,q.x,q.y,q.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=jd(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=U(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=jd(t,this.array)),t}setX(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=jd(t,this.array)),t}setY(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=jd(t,this.array)),t}setZ(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=jd(t,this.array)),t}setW(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array),r=U(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array),r=U(r,this.array),i=U(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==``&&(e.name=this.name),this.usage!==35044&&(e.usage=this.usage),e}dispose(){this.dispatchEvent({type:`dispose`})}},Yf=class extends Jf{constructor(e,t,n){super(new Uint16Array(e),t,n)}},Xf=class extends Jf{constructor(e,t,n){super(new Uint32Array(e),t,n)}},Zf=class extends Jf{constructor(e,t,n){super(new Float32Array(e),t,n)}};let Qf=new jf,$f=new W,ep=new W;var tp=class{constructor(e=new W,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?Qf.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;$f.subVectors(e,this.center);let t=$f.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector($f,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ep.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint($f.copy(e.center).add(ep)),this.expandByPoint($f.copy(e.center).sub(ep))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}};let np=0,J=new Qd,rp=new Tf,ip=new W,Y=new jf,ap=new jf,X=new W;var op=class e extends Dd{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:np++}),this.uuid=Od(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(xd(e)?Xf:Yf)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new Id().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return J.makeRotationFromQuaternion(e),this.applyMatrix4(J),this}rotateX(e){return J.makeRotationX(e),this.applyMatrix4(J),this}rotateY(e){return J.makeRotationY(e),this.applyMatrix4(J),this}rotateZ(e){return J.makeRotationZ(e),this.applyMatrix4(J),this}translate(e,t,n){return J.makeTranslation(e,t,n),this.applyMatrix4(J),this}scale(e,t,n){return J.makeScale(e,t,n),this.applyMatrix4(J),this}lookAt(e){return rp.lookAt(e),rp.updateMatrix(),this.applyMatrix4(rp.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(ip).negate(),this.translate(ip.x,ip.y,ip.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];t.push(r.x,r.y,r.z||0)}this.setAttribute(`position`,new Zf(t,3))}else{let n=Math.min(e.length,t.count);for(let r=0;r<n;r++){let n=e[r];t.setXYZ(r,n.x,n.y,n.z||0)}e.length>t.count&&z(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new jf);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){B(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new W(-1/0,-1/0,-1/0),new W(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Y.setFromBufferAttribute(n),this.morphTargetsRelative?(X.addVectors(this.boundingBox.min,Y.min),this.boundingBox.expandByPoint(X),X.addVectors(this.boundingBox.max,Y.max),this.boundingBox.expandByPoint(X)):(this.boundingBox.expandByPoint(Y.min),this.boundingBox.expandByPoint(Y.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&B(`BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.`,this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new tp);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){B(`BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.`,this),this.boundingSphere.set(new W,1/0);return}if(e){let n=this.boundingSphere.center;if(Y.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];ap.setFromBufferAttribute(n),this.morphTargetsRelative?(X.addVectors(Y.min,ap.min),Y.expandByPoint(X),X.addVectors(Y.max,ap.max),Y.expandByPoint(X)):(Y.expandByPoint(ap.min),Y.expandByPoint(ap.max))}Y.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)X.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(X));if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)X.fromBufferAttribute(a,t),o&&(ip.fromBufferAttribute(e,t),X.add(ip)),r=Math.max(r,n.distanceToSquared(X))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&B(`BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.`,this)}}computeTangents(){let e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){B(`BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)`);return}let n=t.position,r=t.normal,i=t.uv,a=this.getAttribute(`tangent`);(a===void 0||a.count!==n.count)&&(a=new Jf(new Float32Array(4*n.count),4),this.setAttribute(`tangent`,a));let o=[],s=[];for(let e=0;e<n.count;e++)o[e]=new W,s[e]=new W;let c=new W,l=new W,u=new W,d=new Md,f=new Md,p=new Md,m=new W,h=new W;function g(e,t,r){c.fromBufferAttribute(n,e),l.fromBufferAttribute(n,t),u.fromBufferAttribute(n,r),d.fromBufferAttribute(i,e),f.fromBufferAttribute(i,t),p.fromBufferAttribute(i,r),l.sub(c),u.sub(c),f.sub(d),p.sub(d);let a=1/(f.x*p.y-p.x*f.y);isFinite(a)&&(m.copy(l).multiplyScalar(p.y).addScaledVector(u,-f.y).multiplyScalar(a),h.copy(u).multiplyScalar(f.x).addScaledVector(l,-p.x).multiplyScalar(a),o[e].add(m),o[t].add(m),o[r].add(m),s[e].add(h),s[t].add(h),s[r].add(h))}let _=this.groups;_.length===0&&(_=[{start:0,count:e.count}]);for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let v=new W,y=new W,b=new W,x=new W;function S(e){b.fromBufferAttribute(r,e),x.copy(b);let t=o[e];v.copy(t),v.sub(b.multiplyScalar(b.dot(t))).normalize(),y.crossVectors(x,t);let n=y.dot(s[e])<0?-1:1;a.setXYZW(e,v.x,v.y,v.z,n)}for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)S(e.getX(t+0)),S(e.getX(t+1)),S(e.getX(t+2))}this._transformed=!0}computeVertexNormals(){let e=this.index,t=this.getAttribute(`position`);if(t!==void 0){let n=this.getAttribute(`normal`);if(n===void 0||n.count!==t.count)n=new Jf(new Float32Array(t.count*3),3),this.setAttribute(`normal`,n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let r=new W,i=new W,a=new W,o=new W,s=new W,c=new W,l=new W,u=new W;if(e)for(let d=0,f=e.count;d<f;d+=3){let f=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,p),a.fromBufferAttribute(t,m),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)X.fromBufferAttribute(e,t),X.normalize(),e.setXYZ(t,X.x,X.y,X.z)}toNonIndexed(){function t(e,t){let n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new Jf(a,r,i)}if(this.index===null)return z(`BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.`),this;let n=new e,r=this.index.array,i=this.attributes;for(let e in i){let a=i[e],o=t(a,r);n.setAttribute(e,o)}let a=this.morphAttributes;for(let e in a){let i=[],o=a[e];for(let e=0,n=o.length;e<n;e++){let n=o[e],a=t(n,r);i.push(a)}n.morphAttributes[e]=i}n.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let e=0,t=o.length;e<t;e++){let t=o[e];n.addGroup(t.start,t.count,t.materialIndex)}return n}toJSON(){let e={metadata:{version:4.7,type:`BufferGeometry`,generator:`BufferGeometry.toJSON`}};if(e.uuid=this.uuid,e.type=this.parameters!==void 0&&this._transformed===!0?`BufferGeometry`:this.type,this.name!==``&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){let r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());let s=e.boundingSphere;return s!==null&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this._transformed=e._transformed,this}dispose(){this.dispatchEvent({type:`dispose`})}};function sp(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var cp=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e<r)){for(let a=n+2;;){if(r===void 0){if(e<i)break forward_scan;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(i=r,r=t[++n],e<r)break seek}a=t.length;break linear_scan}if(!(e>=i)){let o=t[1];e<o&&(n=2,i=o);for(let a=n-2;;){if(i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n<a;){let r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw Error(`THREE.Interpolant: Call to abstract method.`)}intervalChanged_(){}},lp=class extends cp{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:md,endingEnd:md}}intervalChanged_(e,t,n){let r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(o===void 0)switch(this.getSettings_().endingStart){case hd:i=e,o=2*t-n;break;case gd:i=r.length-2,o=t+r[i]-r[i+1];break;default:i=e,o=n}if(s===void 0)switch(this.getSettings_().endingEnd){case hd:a=e,s=2*n-t;break;case gd:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}let c=(n-t)*.5,l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,f=this._weightNext,p=(n-t)/(r-t),m=p*p,h=m*p,g=-d*h+2*d*m-d*p,_=(1+d)*h+(-1.5-2*d)*m+(-.5+d)*p+1,v=(-1-f)*h+(1.5+f)*m+.5*p,y=f*h-f*m;for(let e=0;e!==o;++e)i[e]=g*a[l+e]+_*a[c+e]+v*a[s+e]+y*a[u+e];return i}},up=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}},dp=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}},fp=class extends cp{interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this.inTangents,u=this.outTangents;if(!l||!u){let e=(n-t)/(r-t),l=1-e;for(let t=0;t!==o;++t)i[t]=a[c+t]*l+a[s+t]*e;return i}let d=o*2,f=e-1;for(let p=0;p!==o;++p){let o=a[c+p],m=a[s+p],h=f*d+p*2,g=u[h],_=u[h+1],v=e*d+p*2,y=l[v],b=l[v+1],x=(n-t)/(r-t),S,C,w,T,E;for(let e=0;e<8;e++){S=x*x,C=S*x,w=1-x,T=w*w,E=T*w;let e=E*t+3*T*x*g+3*w*S*y+C*r-n;if(Math.abs(e)<1e-10)break;let i=3*T*(g-t)+6*w*x*(y-g)+3*S*(r-y);if(Math.abs(i)<1e-10)break;x-=e/i,x=Math.max(0,Math.min(1,x))}i[p]=E*o+3*T*x*_+3*w*S*b+C*m}return i}},pp=class{constructor(e,t,n,r){if(e===void 0)throw Error(`THREE.KeyframeTrack: track name is undefined`);if(t===void 0||t.length===0)throw Error(`THREE.KeyframeTrack: no keyframes in track named `+e);this.name=e,this.times=sp(t,this.TimeBufferType),this.values=sp(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){let t=e.constructor,n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:sp(e.times,Array),values:sp(e.values,Array)};let t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new dp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new up(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new lp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodBezier(e){let t=new fp(this.times,this.values,this.getValueSize(),e);return this.settings&&(t.inTangents=this.settings.inTangents,t.outTangents=this.settings.outTangents),t}setInterpolation(e){let t;switch(e){case ud:t=this.InterpolantFactoryMethodDiscrete;break;case dd:t=this.InterpolantFactoryMethodLinear;break;case fd:t=this.InterpolantFactoryMethodSmooth;break;case pd:t=this.InterpolantFactoryMethodBezier;break}if(t===void 0){let t=`unsupported interpolation for `+this.ValueTypeName+` keyframe track named `+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t);return z(`KeyframeTrack:`,t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return ud;case this.InterpolantFactoryMethodLinear:return dd;case this.InterpolantFactoryMethodSmooth:return fd;case this.InterpolantFactoryMethodBezier:return pd}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(e!==1){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){let n=this.times,r=n.length,i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;a!==-1&&n[a]>t;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(B(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(B(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){B(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){B(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Sd(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){B(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===fd,i=e.length-1,a=1;for(let o=1;o<i;++o){let i=!1,s=e[o];if(s!==e[o+1]&&(o!==1||s!==e[0]))if(r)i=!0;else{let e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){let n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}if(i){if(o!==a){e[a]=e[o];let r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};pp.prototype.ValueTypeName=``,pp.prototype.TimeBufferType=Float32Array,pp.prototype.ValueBufferType=Float32Array,pp.prototype.DefaultInterpolation=dd;var mp=class extends pp{constructor(e,t,n){super(e,t,n)}};mp.prototype.ValueTypeName=`bool`,mp.prototype.ValueBufferType=Array,mp.prototype.DefaultInterpolation=ud,mp.prototype.InterpolantFactoryMethodLinear=void 0,mp.prototype.InterpolantFactoryMethodSmooth=void 0;var hp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};hp.prototype.ValueTypeName=`color`;var gp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};gp.prototype.ValueTypeName=`number`;var _p=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)Nd.slerpFlat(i,0,a,c-o,a,c,s);return i}},vp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new _p(this.times,this.values,this.getValueSize(),e)}};vp.prototype.ValueTypeName=`quaternion`,vp.prototype.InterpolantFactoryMethodSmooth=void 0;var yp=class extends pp{constructor(e,t,n){super(e,t,n)}};yp.prototype.ValueTypeName=`string`,yp.prototype.ValueBufferType=Array,yp.prototype.DefaultInterpolation=ud,yp.prototype.InterpolantFactoryMethodLinear=void 0,yp.prototype.InterpolantFactoryMethodSmooth=void 0;var bp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};bp.prototype.ValueTypeName=`vector`;let xp=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return e=e.normalize(`NFC`),s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){let n=c[t],r=c[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||=new AbortController,this._abortController}};var Sp=class{constructor(e){this.manager=e===void 0?xp:e,this.crossOrigin=`anonymous`,this.withCredentials=!1,this.path=``,this.resourcePath=``,this.requestHeader={},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}load(){}loadAsync(e,t){let n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}abort(){return this}};Sp.DEFAULT_MATERIAL_NAME=`__DEFAULT`;let Cp=RegExp(`[\\[\\]\\.:\\/]`,`g`),wp=RegExp(`^((?:[^\\[\\]\\.:\\/]+[\\/:])*)([^\\[\\]:\\/]+)?(?:\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?)?\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?$`),Tp=[`material`,`materials`,`bones`,`map`];var Ep=class{constructor(e,t,n){let r=n||Z.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},Z=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Cp,``)}static parseTrackName(e){let t=wp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);Tp.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r<e.length;r++){let i=e[r];if(i.name===t||i.uuid===t)return i;let a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){z(`PropertyBinding: No target node found for track: `+this.path+`.`);return}if(r){let e=n.objectIndex;switch(r){case`materials`:if(!t.material){B(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.materials){B(`PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.`,this);return}t=t.material.materials;break;case`bones`:if(!t.skeleton){B(`PropertyBinding: Can not bind to bones as node does not have a skeleton.`,this);return}t=t.skeleton.bones;for(let n=0;n<t.length;n++)if(t[n].name===e){e=n;break}break;case`map`:if(`map`in t){t=t.map;break}if(!t.material){B(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.map){B(`PropertyBinding: Can not bind to material.map as node.material does not have a map.`,this);return}t=t.material.map;break;default:if(t[r]===void 0){B(`PropertyBinding: Can not bind to objectName of node undefined.`,this);return}t=t[r]}if(e!==void 0){if(t[e]===void 0){B(`PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.`,this,t);return}t=t[e]}}let o=t[i];if(o===void 0){let e=n.nodeName;B(`PropertyBinding: Trying to update property for track: `+e+`.`+i+` but it wasn't found.`,t);return}let s=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?s=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(s=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i===`morphTargetInfluences`){if(!t.geometry){B(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.`,this);return}if(!t.geometry.morphAttributes){B(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.`,this);return}t.morphTargetDictionary[a]!==void 0&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=a}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};Z.Composite=Ep,Z.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Z.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},Z.prototype.GetterByBindingType=[Z.prototype._getValue_direct,Z.prototype._getValue_array,Z.prototype._getValue_arrayElement,Z.prototype._getValue_toArray],Z.prototype.SetterByBindingTypeAndVersioning=[[Z.prototype._setValue_direct,Z.prototype._setValue_direct_setNeedsUpdate,Z.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_array,Z.prototype._setValue_array_setNeedsUpdate,Z.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_arrayElement,Z.prototype._setValue_arrayElement_setNeedsUpdate,Z.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_fromArray,Z.prototype._setValue_fromArray_setNeedsUpdate,Z.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]],class e{static{e.prototype.isMatrix2=!0}constructor(e,t,n,r){this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,n,r)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let n=0;n<4;n++)this.elements[n]=e[n+t];return this}set(e,t,n,r){let i=this.elements;return i[0]=e,i[2]=t,i[1]=n,i[3]=r,this}},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`185`}})),typeof window<`u`&&(window.__THREE__?z(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`185`);function Dp(e){return[od(e,[`attributes`,`index`,`boundingBox`,`boundingSphere`]),[...Object.values(e.attributes).map(e=>e.array.buffer),e.index?.array.buffer].filter(T)]}function Op(e,t=new op){for(let[n,r]of Object.entries(e.attributes))t.setAttribute(n,new Jf(r.array,r.itemSize,r.normalized));return t.index=e.index==null?null:new Jf(e.index.array,e.index.itemSize,e.index.normalized),t.boundingBox=e.boundingBox,t.boundingSphere=e.boundingSphere,t}new Qd,new W;
|
|
17
|
+
;let sd=1e3,cd=1001,ld=1002,ud=2300,dd=2301,fd=2302,pd=2303,md=2400,hd=2401,gd=2402,_d=`srgb`,vd=`srgb-linear`,yd=`linear`,bd=2e3;function xd(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Sd(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Cd(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}let wd={};function Td(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function z(...e){e=Td(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function B(...e){e=Td(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Ed(...e){let t=e.join(` `);t in wd||(wd[t]=!0,z(...e))}var Dd=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n<r;n++)t[n].call(this,e);e.target=null}}};let V=`00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff`.split(`.`);Math.PI/180,180/Math.PI;function Od(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(V[e&255]+V[e>>8&255]+V[e>>16&255]+V[e>>24&255]+`-`+V[t&255]+V[t>>8&255]+`-`+V[t>>16&15|64]+V[t>>24&255]+`-`+V[n&63|128]+V[n>>8&255]+`-`+V[n>>16&255]+V[n>>24&255]+V[r&255]+V[r>>8&255]+V[r>>16&255]+V[r>>24&255]).toLowerCase()}function H(e,t,n){return Math.max(t,Math.min(n,e))}function kd(e,t){return(e%t+t)%t}function Ad(e,t,n){return(1-n)*e+n*t}function jd(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function U(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var Md=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},Nd=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:z(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(H(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},W=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Fd.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Fd.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Pd.copy(this).projectOnVector(e),this.sub(Pd)}reflect(e){return this.sub(Pd.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};let Pd=new W,Fd=new Nd;var Id=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Ed(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(Ld.makeScale(e,t)),this}rotate(e){return Ed(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(Ld.makeRotation(-e)),this}translate(e,t){return Ed(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(Ld.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}};let Ld=new Id,Rd=new Id().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),zd=new Id().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Bd(){let e={enabled:!0,workingColorSpace:vd,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=Hd(e.r),e.g=Hd(e.g),e.b=Hd(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Ud(e.r),e.g=Ud(e.g),e.b=Ud(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?yd:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Ed(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Ed(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[vd]:{primaries:t,whitePoint:r,transfer:yd,toXYZ:Rd,fromXYZ:zd,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:_d},outputColorSpaceConfig:{drawingBufferColorSpace:_d}},[_d]:{primaries:t,whitePoint:r,transfer:`srgb`,toXYZ:Rd,fromXYZ:zd,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:_d}}}),e}let Vd=Bd();function Hd(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Ud(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}let Wd;var Gd=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Wd===void 0&&(Wd=Cd(`canvas`)),Wd.width=e.width,Wd.height=e.height;let t=Wd.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Wd}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Cd(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=Hd(i[e]/255)*255;return n.putImageData(r,0,0),t}else if(e.data){let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(Hd(t[e]/255)*255):t[e]=Hd(t[e]);return{data:t,width:e.width,height:e.height}}else return z(`ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied.`),e}};let Kd=0;var qd=class{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Kd++}),this.uuid=Od(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return typeof HTMLVideoElement<`u`&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):typeof VideoFrame<`u`&&t instanceof VideoFrame?e.set(t.displayWidth,t.displayHeight,0):t===null?e.set(0,0,0):e.set(t.width,t.height,t.depth||0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];let n={uuid:this.uuid,url:``},r=this.data;if(r!==null){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(Jd(r[t].image)):e.push(Jd(r[t]))}else e=Jd(r);n.url=e}return t||(e.images[this.uuid]=n),n}};function Jd(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap?Gd.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(z(`Texture: Unable to serialize Texture.`),{})}let Yd=0,Xd=new W;var Zd=class e extends Dd{constructor(t=e.DEFAULT_IMAGE,n=e.DEFAULT_MAPPING,r=cd,i=cd,a=1006,o=1008,s=1023,c=1009,l=e.DEFAULT_ANISOTROPY,u=``){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Yd++}),this.uuid=Od(),this.name=``,this.source=new qd(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=c,this.offset=new Md(0,0),this.repeat=new Md(1,1),this.center=new Md(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Id,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(Xd).x}get height(){return this.source.getSize(Xd).y}get depth(){return this.source.getSize(Xd).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){z(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){z(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case sd:e.x-=Math.floor(e.x);break;case cd:e.x=e.x<0?0:1;break;case ld:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case sd:e.y-=Math.floor(e.y);break;case cd:e.y=e.y<0?0:1;break;case ld:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Zd.DEFAULT_IMAGE=null,Zd.DEFAULT_MAPPING=300,Zd.DEFAULT_ANISOTROPY=1,class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)<a&&Math.abs(u-m)<a&&Math.abs(p-h)<a){if(Math.abs(l+d)<o&&Math.abs(u+m)<o&&Math.abs(p+h)<o&&Math.abs(c+f+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;let e=(c+1)/2,s=(f+1)/2,_=(g+1)/2,v=(l+d)/4,y=(u+m)/4,b=(p+h)/4;return e>s&&e>_?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=v/n,i=y/n):s>_?s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=v/r,i=b/r):_<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(_),n=y/i,r=b/i),this.set(n,r,i,t),this}let _=Math.sqrt((h-p)*(h-p)+(u-m)*(u-m)+(d-l)*(d-l));return Math.abs(_)<.001&&(_=1),this.x=(h-p)/_,this.y=(u-m)/_,this.z=(d-l)/_,this.w=Math.acos((c+f+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this.w=H(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this.w=H(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}};var Qd=class e{static{e.prototype.isMatrix4=!0}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return this.determinantAffine()===0?(e.set(1,0,0),t.set(0,1,0),n.set(0,0,1),this):(e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this)}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){if(e.determinantAffine()===0)return this.identity();let t=this.elements,n=e.elements,r=1/$d.setFromMatrixColumn(e,0).length(),i=1/$d.setFromMatrixColumn(e,1).length(),a=1/$d.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(tf,e,nf)}lookAt(e,t,n){let r=this.elements;return G.subVectors(e,t),G.lengthSq()===0&&(G.z=1),G.normalize(),rf.crossVectors(n,G),rf.lengthSq()===0&&(Math.abs(n.z)===1?G.x+=1e-4:G.z+=1e-4,G.normalize(),rf.crossVectors(n,G)),rf.normalize(),af.crossVectors(G,rf),r[0]=rf.x,r[4]=af.x,r[8]=G.x,r[1]=rf.y,r[5]=af.y,r[9]=G.y,r[2]=rf.z,r[6]=af.z,r[10]=G.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],ee=r[9],D=r[13],te=r[2],O=r[6],ne=r[10],re=r[14],ie=r[3],ae=r[7],oe=r[11],se=r[15];return i[0]=a*x+o*T+s*te+c*ie,i[4]=a*S+o*E+s*O+c*ae,i[8]=a*C+o*ee+s*ne+c*oe,i[12]=a*w+o*D+s*re+c*se,i[1]=l*x+u*T+d*te+f*ie,i[5]=l*S+u*E+d*O+f*ae,i[9]=l*C+u*ee+d*ne+f*oe,i[13]=l*w+u*D+d*re+f*se,i[2]=p*x+m*T+h*te+g*ie,i[6]=p*S+m*E+h*O+g*ae,i[10]=p*C+m*ee+h*ne+g*oe,i[14]=p*w+m*D+h*re+g*se,i[3]=_*x+v*T+y*te+b*ie,i[7]=_*S+v*E+y*O+b*ae,i[11]=_*C+v*ee+y*ne+b*oe,i[15]=_*w+v*D+y*re+b*se,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15],_=s*f-c*d,v=o*f-c*u,y=o*d-s*u,b=a*f-c*l,x=a*d-s*l,S=a*u-o*l;return t*(m*_-h*v+g*y)-n*(p*_-h*b+g*x)+r*(p*v-m*b+g*S)-i*(p*y-m*x+h*S)}determinantAffine(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[1],a=e[5],o=e[9],s=e[2],c=e[6],l=e[10];return t*(a*l-o*c)-n*(i*l-o*s)+r*(i*c-a*s)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,ee=u*g-f*m,D=d*g-f*h,te=_*D-v*ee+y*E+b*T-x*w+S*C;if(te===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let O=1/te;return e[0]=(o*D-s*ee+c*E)*O,e[1]=(r*ee-n*D-i*E)*O,e[2]=(m*S-h*x+g*b)*O,e[3]=(d*x-u*S-f*b)*O,e[4]=(s*T-a*D-c*w)*O,e[5]=(t*D-r*T+i*w)*O,e[6]=(h*y-p*S-g*v)*O,e[7]=(l*S-d*y+f*v)*O,e[8]=(a*ee-o*T+c*C)*O,e[9]=(n*T-t*ee-i*C)*O,e[10]=(p*x-m*y+g*_)*O,e[11]=(u*y-l*x-f*_)*O,e[12]=(o*w-a*E-s*C)*O,e[13]=(t*E-n*w+r*C)*O,e[14]=(m*v-p*b-h*_)*O,e[15]=(l*b-u*v+d*_)*O,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements;e.x=r[12],e.y=r[13],e.z=r[14];let i=this.determinantAffine();if(i===0)return n.set(1,1,1),t.identity(),this;let a=$d.set(r[0],r[1],r[2]).length(),o=$d.set(r[4],r[5],r[6]).length(),s=$d.set(r[8],r[9],r[10]).length();i<0&&(a=-a),ef.copy(this);let c=1/a,l=1/o,u=1/s;return ef.elements[0]*=c,ef.elements[1]*=c,ef.elements[2]*=c,ef.elements[4]*=l,ef.elements[5]*=l,ef.elements[6]*=l,ef.elements[8]*=u,ef.elements[9]*=u,ef.elements[10]*=u,t.setFromRotationMatrix(ef),n.x=a,n.y=o,n.z=s,this}makePerspective(e,t,n,r,i,a,o=bd,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===2e3)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===2001)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=bd,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===2e3)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===2001)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}};let $d=new W,ef=new Qd,tf=new W(0,0,0),nf=new W(1,1,1),rf=new W,af=new W,G=new W,of=new Qd,sf=new Nd;var cf=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(H(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-H(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(H(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-H(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(H(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-H(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:z(`Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return of.makeRotationFromQuaternion(e),this.setFromRotationMatrix(of,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return sf.setFromEuler(this),this.setFromQuaternion(sf,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};cf.DEFAULT_ORDER=`XYZ`;var lf=class{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!=0}};let uf=0,df=new W,ff=new Nd,pf=new Qd,mf=new W,hf=new W,gf=new W,_f=new Nd,vf=new W(1,0,0),yf=new W(0,1,0),bf=new W(0,0,1),xf={type:`added`},Sf={type:`removed`},Cf={type:`childadded`,child:null},wf={type:`childremoved`,child:null};var Tf=class e extends Dd{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:uf++}),this.uuid=Od(),this.name=``,this.type=`Object3D`,this.parent=null,this.children=[],this.up=e.DEFAULT_UP.clone();let t=new W,n=new cf,r=new Nd,i=new W(1,1,1);function a(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Qd},normalMatrix:{value:new Id}}),this.matrix=new Qd,this.matrixWorld=new Qd,this.matrixAutoUpdate=e.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new lf,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.static=!1,this.userData={},this.pivot=null}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return ff.setFromAxisAngle(e,t),this.quaternion.multiply(ff),this}rotateOnWorldAxis(e,t){return ff.setFromAxisAngle(e,t),this.quaternion.premultiply(ff),this}rotateX(e){return this.rotateOnAxis(vf,e)}rotateY(e){return this.rotateOnAxis(yf,e)}rotateZ(e){return this.rotateOnAxis(bf,e)}translateOnAxis(e,t){return df.copy(e).applyQuaternion(this.quaternion),this.position.add(df.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(vf,e)}translateY(e){return this.translateOnAxis(yf,e)}translateZ(e){return this.translateOnAxis(bf,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(pf.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?mf.copy(e):mf.set(e,t,n);let r=this.parent;this.updateWorldMatrix(!0,!1),hf.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?pf.lookAt(hf,mf,this.up):pf.lookAt(mf,hf,this.up),this.quaternion.setFromRotationMatrix(pf),r&&(pf.extractRotation(r.matrixWorld),ff.setFromRotationMatrix(pf),this.quaternion.premultiply(ff.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(B(`Object3D.add: object can't be added as a child of itself.`,e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(xf),Cf.child=e,this.dispatchEvent(Cf),Cf.child=null):B(`Object3D.add: object not an instance of THREE.Object3D.`,e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Sf),wf.child=e,this.dispatchEvent(wf),wf.child=null),this}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),pf.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),pf.multiply(e.parent.matrixWorld)),e.applyMatrix4(pf),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(xf),Cf.child=e,this.dispatchEvent(Cf),Cf.child=null,this}getObjectById(e){return this.getObjectByProperty(`id`,e)}getObjectByName(e){return this.getObjectByProperty(`name`,e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){let r=this.children[n].getObjectByProperty(e,t);if(r!==void 0)return r}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let r=this.children;for(let i=0,a=r.length;i<a;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hf,e,gf),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hf,_f,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);let e=this.pivot;if(e!==null){let t=e.x,n=e.y,r=e.z,i=this.matrix.elements;i[12]+=t-i[0]*t-i[4]*n-i[8]*r,i[13]+=n-i[1]*t-i[5]*n-i[9]*r,i[14]+=r-i[2]*t-i[6]*n-i[10]*r}this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t,n=!1){let r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||n)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,n=!0),t===!0){let e=this.children;for(let t=0,r=e.length;t<r;t++)e[t].updateWorldMatrix(!1,!0,n)}}toJSON(e){let t=e===void 0||typeof e==`string`,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:`Object`,generator:`Object3D.toJSON`});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==``&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),this.static!==!1&&(r.static=this.static),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){let r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){let t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}};Tf.DEFAULT_UP=new W(0,1,0),Tf.DEFAULT_MATRIX_AUTO_UPDATE=!0,Tf.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;let Ef={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Df={h:0,s:0,l:0},Of={h:0,s:0,l:0};function kf(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Af=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=_d){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Vd.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Vd.workingColorSpace){return this.r=e,this.g=t,this.b=n,Vd.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Vd.workingColorSpace){if(e=kd(e,1),t=H(t,0,1),n=H(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=kf(i,r,e+1/3),this.g=kf(i,r,e),this.b=kf(i,r,e-1/3)}return Vd.colorSpaceToWorking(this,r),this}setStyle(e,t=_d){function n(t){t!==void 0&&parseFloat(t)<1&&z(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:z(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);z(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=_d){let n=Ef[e.toLowerCase()];return n===void 0?z(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Hd(e.r),this.g=Hd(e.g),this.b=Hd(e.b),this}copyLinearToSRGB(e){return this.r=Ud(e.r),this.g=Ud(e.g),this.b=Ud(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=_d){return Vd.workingToColorSpace(K.copy(this),e),Math.round(H(K.r*255,0,255))*65536+Math.round(H(K.g*255,0,255))*256+Math.round(H(K.b*255,0,255))}getHexString(e=_d){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Vd.workingColorSpace){Vd.workingToColorSpace(K.copy(this),t);let n=K.r,r=K.g,i=K.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4;break}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=Vd.workingColorSpace){return Vd.workingToColorSpace(K.copy(this),t),e.r=K.r,e.g=K.g,e.b=K.b,e}getStyle(e=_d){Vd.workingToColorSpace(K.copy(this),e);let t=K.r,n=K.g,r=K.b;return e===`srgb`?`rgb(${Math.round(t*255)},${Math.round(n*255)},${Math.round(r*255)})`:`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`}offsetHSL(e,t,n){return this.getHSL(Df),this.setHSL(Df.h+e,Df.s+t,Df.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Df),e.getHSL(Of);let n=Ad(Df.h,Of.h,t),r=Ad(Df.s,Of.s,t),i=Ad(Df.l,Of.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};let K=new Af;Af.NAMES=Ef;var jf=class{constructor(e=new W(1/0,1/0,1/0),t=new W(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(Nf.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(Nf.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=Nf.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(n!==void 0){let r=n.getAttribute(`position`);if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let t=0,n=r.count;t<n;t++)e.isMesh===!0?e.getVertexPosition(t,Nf):Nf.fromBufferAttribute(r,t),Nf.applyMatrix4(e.matrixWorld),this.expandByPoint(Nf);else e.boundingBox===void 0?(n.boundingBox===null&&n.computeBoundingBox(),Pf.copy(n.boundingBox)):(e.boundingBox===null&&e.computeBoundingBox(),Pf.copy(e.boundingBox)),Pf.applyMatrix4(e.matrixWorld),this.union(Pf)}let r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Nf),Nf.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Vf),Hf.subVectors(this.max,Vf),Ff.subVectors(e.a,Vf),If.subVectors(e.b,Vf),Lf.subVectors(e.c,Vf),Rf.subVectors(If,Ff),zf.subVectors(Lf,If),Bf.subVectors(Ff,Lf);let t=[0,-Rf.z,Rf.y,0,-zf.z,zf.y,0,-Bf.z,Bf.y,Rf.z,0,-Rf.x,zf.z,0,-zf.x,Bf.z,0,-Bf.x,-Rf.y,Rf.x,0,-zf.y,zf.x,0,-Bf.y,Bf.x,0];return!Gf(t,Ff,If,Lf,Hf)||(t=[1,0,0,0,1,0,0,0,1],!Gf(t,Ff,If,Lf,Hf))?!1:(Uf.crossVectors(Rf,zf),t=[Uf.x,Uf.y,Uf.z],Gf(t,Ff,If,Lf,Hf))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Nf).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Nf).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Mf[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Mf[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Mf[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Mf[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Mf[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Mf[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Mf[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Mf[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Mf),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}};let Mf=[new W,new W,new W,new W,new W,new W,new W,new W],Nf=new W,Pf=new jf,Ff=new W,If=new W,Lf=new W,Rf=new W,zf=new W,Bf=new W,Vf=new W,Hf=new W,Uf=new W,Wf=new W;function Gf(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Wf.fromArray(e,a);let o=i.x*Math.abs(Wf.x)+i.y*Math.abs(Wf.y)+i.z*Math.abs(Wf.z),s=t.dot(Wf),c=n.dot(Wf),l=r.dot(Wf);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}let q=new W,Kf=new Md,qf=0;var Jf=class extends Dd{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:qf++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=35044,this.updateRanges=[],this.gpuType=1015,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,n=this.count;t<n;t++)Kf.fromBufferAttribute(this,t),Kf.applyMatrix3(e),this.setXY(t,Kf.x,Kf.y);else if(this.itemSize===3)for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyMatrix3(e),this.setXYZ(t,q.x,q.y,q.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyMatrix4(e),this.setXYZ(t,q.x,q.y,q.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.applyNormalMatrix(e),this.setXYZ(t,q.x,q.y,q.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)q.fromBufferAttribute(this,t),q.transformDirection(e),this.setXYZ(t,q.x,q.y,q.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=jd(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=U(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=jd(t,this.array)),t}setX(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=jd(t,this.array)),t}setY(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=jd(t,this.array)),t}setZ(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=jd(t,this.array)),t}setW(e,t){return this.normalized&&(t=U(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array),r=U(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=U(t,this.array),n=U(n,this.array),r=U(r,this.array),i=U(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==``&&(e.name=this.name),this.usage!==35044&&(e.usage=this.usage),e}dispose(){this.dispatchEvent({type:`dispose`})}},Yf=class extends Jf{constructor(e,t,n){super(new Uint16Array(e),t,n)}},Xf=class extends Jf{constructor(e,t,n){super(new Uint32Array(e),t,n)}},Zf=class extends Jf{constructor(e,t,n){super(new Float32Array(e),t,n)}};let Qf=new jf,$f=new W,ep=new W;var tp=class{constructor(e=new W,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?Qf.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;$f.subVectors(e,this.center);let t=$f.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector($f,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ep.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint($f.copy(e.center).add(ep)),this.expandByPoint($f.copy(e.center).sub(ep))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}};let np=0,J=new Qd,rp=new Tf,ip=new W,Y=new jf,ap=new jf,X=new W;var op=class e extends Dd{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:np++}),this.uuid=Od(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(xd(e)?Xf:Yf)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new Id().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return J.makeRotationFromQuaternion(e),this.applyMatrix4(J),this}rotateX(e){return J.makeRotationX(e),this.applyMatrix4(J),this}rotateY(e){return J.makeRotationY(e),this.applyMatrix4(J),this}rotateZ(e){return J.makeRotationZ(e),this.applyMatrix4(J),this}translate(e,t,n){return J.makeTranslation(e,t,n),this.applyMatrix4(J),this}scale(e,t,n){return J.makeScale(e,t,n),this.applyMatrix4(J),this}lookAt(e){return rp.lookAt(e),rp.updateMatrix(),this.applyMatrix4(rp.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(ip).negate(),this.translate(ip.x,ip.y,ip.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];t.push(r.x,r.y,r.z||0)}this.setAttribute(`position`,new Zf(t,3))}else{let n=Math.min(e.length,t.count);for(let r=0;r<n;r++){let n=e[r];t.setXYZ(r,n.x,n.y,n.z||0)}e.length>t.count&&z(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new jf);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){B(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new W(-1/0,-1/0,-1/0),new W(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Y.setFromBufferAttribute(n),this.morphTargetsRelative?(X.addVectors(this.boundingBox.min,Y.min),this.boundingBox.expandByPoint(X),X.addVectors(this.boundingBox.max,Y.max),this.boundingBox.expandByPoint(X)):(this.boundingBox.expandByPoint(Y.min),this.boundingBox.expandByPoint(Y.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&B(`BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.`,this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new tp);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){B(`BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.`,this),this.boundingSphere.set(new W,1/0);return}if(e){let n=this.boundingSphere.center;if(Y.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];ap.setFromBufferAttribute(n),this.morphTargetsRelative?(X.addVectors(Y.min,ap.min),Y.expandByPoint(X),X.addVectors(Y.max,ap.max),Y.expandByPoint(X)):(Y.expandByPoint(ap.min),Y.expandByPoint(ap.max))}Y.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)X.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(X));if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)X.fromBufferAttribute(a,t),o&&(ip.fromBufferAttribute(e,t),X.add(ip)),r=Math.max(r,n.distanceToSquared(X))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&B(`BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.`,this)}}computeTangents(){let e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){B(`BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)`);return}let n=t.position,r=t.normal,i=t.uv,a=this.getAttribute(`tangent`);(a===void 0||a.count!==n.count)&&(a=new Jf(new Float32Array(4*n.count),4),this.setAttribute(`tangent`,a));let o=[],s=[];for(let e=0;e<n.count;e++)o[e]=new W,s[e]=new W;let c=new W,l=new W,u=new W,d=new Md,f=new Md,p=new Md,m=new W,h=new W;function g(e,t,r){c.fromBufferAttribute(n,e),l.fromBufferAttribute(n,t),u.fromBufferAttribute(n,r),d.fromBufferAttribute(i,e),f.fromBufferAttribute(i,t),p.fromBufferAttribute(i,r),l.sub(c),u.sub(c),f.sub(d),p.sub(d);let a=1/(f.x*p.y-p.x*f.y);isFinite(a)&&(m.copy(l).multiplyScalar(p.y).addScaledVector(u,-f.y).multiplyScalar(a),h.copy(u).multiplyScalar(f.x).addScaledVector(l,-p.x).multiplyScalar(a),o[e].add(m),o[t].add(m),o[r].add(m),s[e].add(h),s[t].add(h),s[r].add(h))}let _=this.groups;_.length===0&&(_=[{start:0,count:e.count}]);for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let v=new W,y=new W,b=new W,x=new W;function S(e){b.fromBufferAttribute(r,e),x.copy(b);let t=o[e];v.copy(t),v.sub(b.multiplyScalar(b.dot(t))).normalize(),y.crossVectors(x,t);let n=y.dot(s[e])<0?-1:1;a.setXYZW(e,v.x,v.y,v.z,n)}for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)S(e.getX(t+0)),S(e.getX(t+1)),S(e.getX(t+2))}this._transformed=!0}computeVertexNormals(){let e=this.index,t=this.getAttribute(`position`);if(t!==void 0){let n=this.getAttribute(`normal`);if(n===void 0||n.count!==t.count)n=new Jf(new Float32Array(t.count*3),3),this.setAttribute(`normal`,n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let r=new W,i=new W,a=new W,o=new W,s=new W,c=new W,l=new W,u=new W;if(e)for(let d=0,f=e.count;d<f;d+=3){let f=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,p),a.fromBufferAttribute(t,m),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)X.fromBufferAttribute(e,t),X.normalize(),e.setXYZ(t,X.x,X.y,X.z)}toNonIndexed(){function t(e,t){let n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new Jf(a,r,i)}if(this.index===null)return z(`BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.`),this;let n=new e,r=this.index.array,i=this.attributes;for(let e in i){let a=i[e],o=t(a,r);n.setAttribute(e,o)}let a=this.morphAttributes;for(let e in a){let i=[],o=a[e];for(let e=0,n=o.length;e<n;e++){let n=o[e],a=t(n,r);i.push(a)}n.morphAttributes[e]=i}n.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let e=0,t=o.length;e<t;e++){let t=o[e];n.addGroup(t.start,t.count,t.materialIndex)}return n}toJSON(){let e={metadata:{version:4.7,type:`BufferGeometry`,generator:`BufferGeometry.toJSON`}};if(e.uuid=this.uuid,e.type=this.parameters!==void 0&&this._transformed===!0?`BufferGeometry`:this.type,this.name!==``&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){let r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());let s=e.boundingSphere;return s!==null&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this._transformed=e._transformed,this}dispose(){this.dispatchEvent({type:`dispose`})}};function sp(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var cp=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e<r)){for(let a=n+2;;){if(r===void 0){if(e<i)break forward_scan;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(i=r,r=t[++n],e<r)break seek}a=t.length;break linear_scan}if(!(e>=i)){let o=t[1];e<o&&(n=2,i=o);for(let a=n-2;;){if(i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n<a;){let r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw Error(`THREE.Interpolant: Call to abstract method.`)}intervalChanged_(){}},lp=class extends cp{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:md,endingEnd:md}}intervalChanged_(e,t,n){let r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(o===void 0)switch(this.getSettings_().endingStart){case hd:i=e,o=2*t-n;break;case gd:i=r.length-2,o=t+r[i]-r[i+1];break;default:i=e,o=n}if(s===void 0)switch(this.getSettings_().endingEnd){case hd:a=e,s=2*n-t;break;case gd:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}let c=(n-t)*.5,l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,f=this._weightNext,p=(n-t)/(r-t),m=p*p,h=m*p,g=-d*h+2*d*m-d*p,_=(1+d)*h+(-1.5-2*d)*m+(-.5+d)*p+1,v=(-1-f)*h+(1.5+f)*m+.5*p,y=f*h-f*m;for(let e=0;e!==o;++e)i[e]=g*a[l+e]+_*a[c+e]+v*a[s+e]+y*a[u+e];return i}},up=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}},dp=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}},fp=class extends cp{interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this.inTangents,u=this.outTangents;if(!l||!u){let e=(n-t)/(r-t),l=1-e;for(let t=0;t!==o;++t)i[t]=a[c+t]*l+a[s+t]*e;return i}let d=o*2,f=e-1;for(let p=0;p!==o;++p){let o=a[c+p],m=a[s+p],h=f*d+p*2,g=u[h],_=u[h+1],v=e*d+p*2,y=l[v],b=l[v+1],x=(n-t)/(r-t),S,C,w,T,E;for(let e=0;e<8;e++){S=x*x,C=S*x,w=1-x,T=w*w,E=T*w;let e=E*t+3*T*x*g+3*w*S*y+C*r-n;if(Math.abs(e)<1e-10)break;let i=3*T*(g-t)+6*w*x*(y-g)+3*S*(r-y);if(Math.abs(i)<1e-10)break;x-=e/i,x=Math.max(0,Math.min(1,x))}i[p]=E*o+3*T*x*_+3*w*S*b+C*m}return i}},pp=class{constructor(e,t,n,r){if(e===void 0)throw Error(`THREE.KeyframeTrack: track name is undefined`);if(t===void 0||t.length===0)throw Error(`THREE.KeyframeTrack: no keyframes in track named `+e);this.name=e,this.times=sp(t,this.TimeBufferType),this.values=sp(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){let t=e.constructor,n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:sp(e.times,Array),values:sp(e.values,Array)};let t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new dp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new up(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new lp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodBezier(e){let t=new fp(this.times,this.values,this.getValueSize(),e);return this.settings&&(t.inTangents=this.settings.inTangents,t.outTangents=this.settings.outTangents),t}setInterpolation(e){let t;switch(e){case ud:t=this.InterpolantFactoryMethodDiscrete;break;case dd:t=this.InterpolantFactoryMethodLinear;break;case fd:t=this.InterpolantFactoryMethodSmooth;break;case pd:t=this.InterpolantFactoryMethodBezier;break}if(t===void 0){let t=`unsupported interpolation for `+this.ValueTypeName+` keyframe track named `+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t);return z(`KeyframeTrack:`,t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return ud;case this.InterpolantFactoryMethodLinear:return dd;case this.InterpolantFactoryMethodSmooth:return fd;case this.InterpolantFactoryMethodBezier:return pd}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(e!==1){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){let n=this.times,r=n.length,i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;a!==-1&&n[a]>t;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(B(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(B(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){B(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){B(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Sd(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){B(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===fd,i=e.length-1,a=1;for(let o=1;o<i;++o){let i=!1,s=e[o];if(s!==e[o+1]&&(o!==1||s!==e[0]))if(r)i=!0;else{let e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){let n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}if(i){if(o!==a){e[a]=e[o];let r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};pp.prototype.ValueTypeName=``,pp.prototype.TimeBufferType=Float32Array,pp.prototype.ValueBufferType=Float32Array,pp.prototype.DefaultInterpolation=dd;var mp=class extends pp{constructor(e,t,n){super(e,t,n)}};mp.prototype.ValueTypeName=`bool`,mp.prototype.ValueBufferType=Array,mp.prototype.DefaultInterpolation=ud,mp.prototype.InterpolantFactoryMethodLinear=void 0,mp.prototype.InterpolantFactoryMethodSmooth=void 0;var hp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};hp.prototype.ValueTypeName=`color`;var gp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};gp.prototype.ValueTypeName=`number`;var _p=class extends cp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)Nd.slerpFlat(i,0,a,c-o,a,c,s);return i}},vp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new _p(this.times,this.values,this.getValueSize(),e)}};vp.prototype.ValueTypeName=`quaternion`,vp.prototype.InterpolantFactoryMethodSmooth=void 0;var yp=class extends pp{constructor(e,t,n){super(e,t,n)}};yp.prototype.ValueTypeName=`string`,yp.prototype.ValueBufferType=Array,yp.prototype.DefaultInterpolation=ud,yp.prototype.InterpolantFactoryMethodLinear=void 0,yp.prototype.InterpolantFactoryMethodSmooth=void 0;var bp=class extends pp{constructor(e,t,n,r){super(e,t,n,r)}};bp.prototype.ValueTypeName=`vector`;let xp=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return e=e.normalize(`NFC`),s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){let n=c[t],r=c[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||=new AbortController,this._abortController}};var Sp=class{constructor(e){this.manager=e===void 0?xp:e,this.crossOrigin=`anonymous`,this.withCredentials=!1,this.path=``,this.resourcePath=``,this.requestHeader={},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}load(){}loadAsync(e,t){let n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}abort(){return this}};Sp.DEFAULT_MATERIAL_NAME=`__DEFAULT`;let Cp=RegExp(`[\\[\\]\\.:\\/]`,`g`),wp=RegExp(`^((?:[^\\[\\]\\.:\\/]+[\\/:])*)([^\\[\\]:\\/]+)?(?:\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?)?\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?$`),Tp=[`material`,`materials`,`bones`,`map`];var Ep=class{constructor(e,t,n){let r=n||Z.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},Z=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Cp,``)}static parseTrackName(e){let t=wp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);Tp.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r<e.length;r++){let i=e[r];if(i.name===t||i.uuid===t)return i;let a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){z(`PropertyBinding: No target node found for track: `+this.path+`.`);return}if(r){let e=n.objectIndex;switch(r){case`materials`:if(!t.material){B(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.materials){B(`PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.`,this);return}t=t.material.materials;break;case`bones`:if(!t.skeleton){B(`PropertyBinding: Can not bind to bones as node does not have a skeleton.`,this);return}t=t.skeleton.bones;for(let n=0;n<t.length;n++)if(t[n].name===e){e=n;break}break;case`map`:if(`map`in t){t=t.map;break}if(!t.material){B(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.map){B(`PropertyBinding: Can not bind to material.map as node.material does not have a map.`,this);return}t=t.material.map;break;default:if(t[r]===void 0){B(`PropertyBinding: Can not bind to objectName of node undefined.`,this);return}t=t[r]}if(e!==void 0){if(t[e]===void 0){B(`PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.`,this,t);return}t=t[e]}}let o=t[i];if(o===void 0){let e=n.nodeName;B(`PropertyBinding: Trying to update property for track: `+e+`.`+i+` but it wasn't found.`,t);return}let s=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?s=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(s=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i===`morphTargetInfluences`){if(!t.geometry){B(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.`,this);return}if(!t.geometry.morphAttributes){B(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.`,this);return}t.morphTargetDictionary[a]!==void 0&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=a}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};Z.Composite=Ep,Z.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Z.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},Z.prototype.GetterByBindingType=[Z.prototype._getValue_direct,Z.prototype._getValue_array,Z.prototype._getValue_arrayElement,Z.prototype._getValue_toArray],Z.prototype.SetterByBindingTypeAndVersioning=[[Z.prototype._setValue_direct,Z.prototype._setValue_direct_setNeedsUpdate,Z.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_array,Z.prototype._setValue_array_setNeedsUpdate,Z.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_arrayElement,Z.prototype._setValue_arrayElement_setNeedsUpdate,Z.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Z.prototype._setValue_fromArray,Z.prototype._setValue_fromArray_setNeedsUpdate,Z.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]],class e{static{e.prototype.isMatrix2=!0}constructor(e,t,n,r){this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,n,r)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let n=0;n<4;n++)this.elements[n]=e[n+t];return this}set(e,t,n,r){let i=this.elements;return i[0]=e,i[2]=t,i[1]=n,i[3]=r,this}},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`185`}})),typeof window<`u`&&(window.__THREE__?z(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`185`);function Dp(e){return[od(e,[`attributes`,`index`,`boundingBox`,`boundingSphere`]),[...Object.values(e.attributes).map(e=>e.array.buffer),e.index?.array.buffer].filter(T)]}function Op(e,t=new op){for(let[n,r]of Object.entries(e.attributes))t.setAttribute(n,new Jf(r.array,r.itemSize,r.normalized));return t.index=e.index==null?null:new Jf(e.index.array,e.index.itemSize,e.index.normalized),t.boundingBox=e.boundingBox,t.boundingSphere=e.boundingSphere,t}Object.freeze({value:1}),new Qd,new W;
|
|
18
18
|
/**
|
|
19
19
|
* postprocessing v6.39.3 build Sat Jul 18 2026
|
|
20
20
|
* https://github.com/pmndrs/postprocessing
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* @license Zlib
|
|
23
23
|
*/
|
|
24
24
|
var Q={SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32};Q.ADD,Q.ALPHA,Q.AVERAGE,Q.COLOR,Q.COLOR_BURN,Q.COLOR_DODGE,Q.DARKEN,Q.DIFFERENCE,Q.DIVIDE,Q.DST,Q.EXCLUSION,Q.HARD_LIGHT,Q.HARD_MIX,Q.HUE,Q.INVERT,Q.INVERT_RGB,Q.LIGHTEN,Q.LINEAR_BURN,Q.LINEAR_DODGE,Q.LINEAR_LIGHT,Q.LUMINOSITY,Q.MULTIPLY,Q.NEGATION,Q.NORMAL,Q.OVERLAY,Q.PIN_LIGHT,Q.REFLECT,Q.SATURATION,Q.SCREEN,Q.SOFT_LIGHT,Q.SRC,Q.SUBTRACT,Q.VIVID_LIGHT,new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10]),Math.PI*.5,Number(`185`.replace(/\D+/g,``));var kp=255/256;new Float32Array([kp/256**3,kp/256**2,kp/256,kp]),new Float32Array([kp,kp/256,kp/256**2,1/256**3]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125]),new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4]),new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3]),$(0,0,0,0),new Float32Array([0,0,0,0]),$(0,0,0,1),new Float32Array([0,0,0,1]),$(0,0,1,0),new Float32Array([0,0,1,0]),$(0,0,1,1),new Float32Array([0,0,1,1]),$(0,1,0,0),new Float32Array([0,1,0,0]),$(0,1,0,1),new Float32Array([0,1,0,1]),$(0,1,1,0),new Float32Array([0,1,1,0]),$(0,1,1,1),new Float32Array([0,1,1,1]),$(1,0,0,0),new Float32Array([1,0,0,0]),$(1,0,0,1),new Float32Array([1,0,0,1]),$(1,0,1,0),new Float32Array([1,0,1,0]),$(1,0,1,1),new Float32Array([1,0,1,1]),$(1,1,0,0),new Float32Array([1,1,0,0]),$(1,1,0,1),new Float32Array([1,1,0,1]),$(1,1,1,0),new Float32Array([1,1,1,0]),$(1,1,1,1),new Float32Array([1,1,1,1]);function Ap(e,t,n){return e+(t-e)*n}function $(e,t,n,r){return Ap(Ap(e,t,.75),Ap(n,r,.75),.875)}Q.SKIP,Q.SET,Q.ADD,Q.ALPHA,Q.AVERAGE,Q.COLOR,Q.COLOR_BURN,Q.COLOR_DODGE,Q.DARKEN,Q.DIFFERENCE,Q.DIVIDE,Q.DST,Q.EXCLUSION,Q.HARD_LIGHT,Q.HARD_MIX,Q.HUE,Q.INVERT,Q.INVERT_RGB,Q.LIGHTEN,Q.LINEAR_BURN,Q.LINEAR_DODGE,Q.LINEAR_LIGHT,Q.LUMINOSITY,Q.MULTIPLY,Q.NEGATION,Q.NORMAL,Q.OVERLAY,Q.PIN_LIGHT,Q.REFLECT,Q.SATURATION,Q.SCREEN,Q.SOFT_LIGHT,Q.SRC,Q.SUBTRACT,Q.VIVID_LIGHT;function jp(e){let t=Op(e);t.computeVertexNormals();let[n,r]=Dp(t);return jc(n,r)}function Mp(e,t=Math.PI/3){let n=Math.cos(t),r=1.0000000001*100,i=[new W,new W,new W],a=new W,o=new W,s=new W,c=new W;function l(e){return`${~~(e.x*r)},${~~(e.y*r)},${~~(e.z*r)}`}let u=e.index?e.toNonIndexed():e,d=u.attributes.position,f={};for(let e=0,t=d.count/3;e<t;e++){let t=3*e,n=i[0].fromBufferAttribute(d,t+0),r=i[1].fromBufferAttribute(d,t+1),s=i[2].fromBufferAttribute(d,t+2);a.subVectors(s,r),o.subVectors(n,r);let c=new W().crossVectors(a,o).normalize();for(let e=0;e<3;e++){let t=i[e],n=l(t);n in f||(f[n]=[]),f[n].push(c)}}let p=new Jf(new Float32Array(d.count*3),3,!1);for(let e=0,t=d.count/3;e<t;e++){let t=3*e,r=i[0].fromBufferAttribute(d,t+0),u=i[1].fromBufferAttribute(d,t+1),m=i[2].fromBufferAttribute(d,t+2);a.subVectors(m,u),o.subVectors(r,u),s.crossVectors(a,o).normalize();for(let e=0;e<3;e++){let r=i[e],a=f[l(r)];c.set(0,0,0);for(let e=0,t=a.length;e<t;e++){let t=a[e];s.dot(t)>n&&c.add(t)}c.normalize(),p.setXYZ(t+e,c.x,c.y,c.z)}}return u.setAttribute(`normal`,p),u}function Np(e,t){let[n,r]=Dp(Mp(Op(e),t));return jc(n,r)}Nc({toCreasedNormals:Np,computeVertexNormals:jp})})();
|
|
25
|
-
//# sourceMappingURL=index-
|
|
25
|
+
//# sourceMappingURL=index-ywHSGImj.js.map
|