diff --git a/filestorage/gd/ducklife6/index.html b/filestorage/gd/ducklife6/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..7590b8bbaf30c194ef9a07bb5e4f3a38455672a8
--- /dev/null
+++ b/filestorage/gd/ducklife6/index.html
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+IXL - Dashboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/filestorage/gd/ducklife6/rocket-loader.min.js b/filestorage/gd/ducklife6/rocket-loader.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..bc15d493d9d814a2ae963cd4d55e4e7efba2cd45
--- /dev/null
+++ b/filestorage/gd/ducklife6/rocket-loader.min.js
@@ -0,0 +1 @@
+!function(){"use strict";function t(){return"cf-marker-"+Math.random().toString().slice(2)}function e(){for(var t=[],e=0;e"+e.outerHTML+"":e.outerHTML;L.call(document,i);var a=document.querySelector("["+r+"]");if(a){a.removeAttribute(r);var c=n&&a.parentNode;c&&o(c)}return a}function f(t){if(t&&"handleEvent"in t){var e=t.handleEvent;return"function"==typeof e?e.bind(t):e}return t}function h(t,e,n){var r=n?function(t){return e.insertBefore(t,n)}:function(t){return e.appendChild(t)};Array.prototype.slice.call(t).forEach(r)}function v(){return/chrome/i.test(navigator.userAgent)&&/google/i.test(navigator.vendor)}function y(t,e){function n(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function m(t){return t instanceof Window?["load"]:t instanceof Document?["DOMContentLoaded","readystatechange"]:[]}function b(t){var e=t.getAttribute(R);if(!e)return null;var n=e.split(T);return{nonce:n[0],handlerPrefixLength:+n[1],bailout:!t.hasAttribute("defer")}}function g(t){var e=B+t.nonce;Array.prototype.forEach.call(document.querySelectorAll("["+e+"]"),function(n){n.removeAttribute(e),Array.prototype.forEach.call(n.attributes,function(e){/^on/.test(e.name)&&"function"!=typeof n[e.name]&&n.setAttribute(e.name,e.value.substring(t.handlerPrefixLength))})})}function S(){var t=window;"undefined"!=typeof Promise&&(t.__cfQR={done:new Promise(function(t){return U=t})})}function w(t){var e=new N(t),n=new C(e);e.harvestScriptsInDocument(),new W(e,{nonce:t,blocking:!0,docWriteSimulator:n,callback:function(){}}).run()}function x(t){var e=new N(t),n=new C(e);e.harvestScriptsInDocument();var r=new W(e,{nonce:t,blocking:!1,docWriteSimulator:n,callback:function(){window.__cfRLUnblockHandlers=!0,r.removePreloadHints(),P(t)}});r.insertPreloadHints(),M.runOnLoad(function(){r.run()})}function P(t){var e=new O(t);M.simulateStateBeforeDeferScriptsActivation(),e.harvestDeferScriptsInDocument(),new W(e,{nonce:t,blocking:!1,callback:function(){M.simulateStateAfterDeferScriptsActivation(),U&&U()}}).run()}var A="http://www.w3.org/2000/svg",E={"application/ecmascript":!0,"application/javascript":!0,"application/x-ecmascript":!0,"application/x-javascript":!0,"text/ecmascript":!0,"text/javascript":!0,"text/javascript1.0":!0,"text/javascript1.1":!0,"text/javascript1.2":!0,"text/javascript1.3":!0,"text/javascript1.4":!0,"text/javascript1.5":!0,"text/jscript":!0,"text/livescript":!0,"text/x-ecmascript":!0,"text/x-javascript":!0,module:!0},k=void 0!==document.createElement("script").noModule,I=function(){var t=window;return t.__rocketLoaderEventCtor||Object.defineProperty(t,"__rocketLoaderEventCtor",{value:Event}),t.__rocketLoaderEventCtor}(),L=document.write,_=document.writeln,H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},D=function(){function t(t){this.nonce=t,this.items=[]}return Object.defineProperty(t.prototype,"hasItems",{get:function(){return this.items.length>0},enumerable:!0,configurable:!0}),t.prototype.pop=function(){return this.items.pop()},t.prototype.forEach=function(t){this.items.forEach(function(e){var n=e.script;return t(n)})},t.prototype.harvestScripts=function(t,e){var n=this,r=e.filter,o=e.mutate;Array.prototype.slice.call(t.querySelectorAll("script")).filter(r).reverse().forEach(function(t){o(t),n.pushScriptOnStack(t)})},t.prototype.pushScriptOnStack=function(t){var e=t.parentNode,n=this.createPlaceholder(t),r=!!i(t);e.replaceChild(n,t),this.items.push({script:t,placeholder:n,external:r,async:r&&t.hasAttribute("async"),executable:c(t)})},t.prototype.hasNonce=function(t){return 0===(t.getAttribute("type")||"").indexOf(this.nonce)},t.prototype.removeNonce=function(t){t.type=t.type.substr(this.nonce.length)},t.prototype.makeNonExecutable=function(t){t.type=this.nonce+t.type},t.prototype.isPendingDeferScript=function(t){return t.hasAttribute("defer")||t.type===this.nonce+"module"&&!t.hasAttribute("async")},t}(),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.harvestScriptsInDocument=function(){var t=this;this.harvestScripts(document,{filter:function(e){return t.hasNonce(e)},mutate:function(e){t.isPendingDeferScript(e)||t.removeNonce(e)}})},e.prototype.harvestScriptsAfterDocWrite=function(t){var e=this;this.harvestScripts(t,{filter:c,mutate:function(t){e.isPendingDeferScript(t)&&e.makeNonExecutable(t)}})},e.prototype.createPlaceholder=function(t){return document.createComment(t.outerHTML)},e}(D),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.harvestDeferScriptsInDocument=function(){var t=this;this.harvestScripts(document,{filter:function(e){return t.hasNonce(e)&&t.isPendingDeferScript(e)},mutate:function(e){return t.removeNonce(e)}})},e.prototype.createPlaceholder=function(t){var e=p(t);return this.makeNonExecutable(e),e},e}(D),C=function(){function t(t){this.scriptStack=t}return t.prototype.enable=function(t){var e=this;this.insertionPointMarker=t,this.buffer="",document.write=function(){for(var t=[],n=0;n"+this.buffer+"",o=t.parseFromString(e,"text/html");if(this.scriptStack.harvestScriptsAfterDocWrite(o),n(o.head.childNodes,this.insertionPointMarker),o.body.childNodes.length){for(var i=Array.prototype.slice.call(o.body.childNodes),a=this.insertionPointMarker.nextSibling;a;)i.push(a),a=a.nextSibling;document.body||L.call(document,""),r(i,document.body)}},t.prototype.insertContentInBody=function(){var t=this.insertionPointMarker.parentElement,e=document.createElement(t.tagName);e.innerHTML=this.buffer,this.scriptStack.harvestScriptsAfterDocWrite(e),n(e.childNodes,this.insertionPointMarker)},t.prototype.write=function(t,e){var n=document.currentScript;n&&i(n)&&n.hasAttribute("async")?(r=e?_:L).call.apply(r,[document].concat(t)):this.buffer+=t.map(String).join(e?"\n":"");var r},t}(),j=function(){function t(){var t=this;this.simulatedReadyState="loading",this.bypassEventsInProxies=!1,this.nativeWindowAddEventListener=window.addEventListener;try{Object.defineProperty(document,"readyState",{get:function(){return t.simulatedReadyState}})}catch(e){}this.setupEventListenerProxy(),this.updateInlineHandlers()}return t.prototype.runOnLoad=function(t){var e=this;this.nativeWindowAddEventListener.call(window,"load",function(n){if(!e.bypassEventsInProxies)return t(n)})},t.prototype.updateInlineHandlers=function(){this.proxyInlineHandler(document,"onreadystatechange"),this.proxyInlineHandler(window,"onload"),document.body&&this.proxyInlineHandler(document.body,"onload")},t.prototype.simulateStateBeforeDeferScriptsActivation=function(){this.bypassEventsInProxies=!0,this.simulatedReadyState="interactive",l(document,"readystatechange"),this.bypassEventsInProxies=!1},t.prototype.simulateStateAfterDeferScriptsActivation=function(){var t=this;this.bypassEventsInProxies=!0,l(document,"DOMContentLoaded"),this.simulatedReadyState="complete",l(document,"readystatechange"),l(window,"load"),this.bypassEventsInProxies=!1,window.setTimeout(function(){return t.bypassEventsInProxies=!0},0)},t.prototype.setupEventListenerProxy=function(){var t=this;("undefined"!=typeof EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]).forEach(function(e){return t.patchEventTargetMethods(e)})},t.prototype.patchEventTargetMethods=function(t){var e=this,n=t.addEventListener,r=t.removeEventListener;t.addEventListener=function(t,r){for(var o=[],i=2;i
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IXL - Dashboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/filestorage/gd/office-fight/index.html b/filestorage/gd/office-fight/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..f281e3c22f921a0a09a2d070c014675355a6941a
--- /dev/null
+++ b/filestorage/gd/office-fight/index.html
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+Unity WebGL Player | Funny Puzzles
+
+
+
+
+
+
+
+
+
+
+
diff --git a/filestorage/gd/qwook-last-seen-online/assets.js b/filestorage/gd/qwook-last-seen-online/assets.js
new file mode 100644
index 0000000000000000000000000000000000000000..437ffdb9d85eefbe9b29e8d819e8a90910e0693a
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/assets.js
@@ -0,0 +1,256 @@
+
+ const loadQueue = [];
+
+function Load(path) {
+ // Load path into an
that is hidden in the background:
+ let img;
+
+ const handled = () => {
+ if (img.parentNode === document.body) {
+ document.body.removeChild(img);
+ }
+
+ if (loadQueue.length > 0) {
+ Load(loadQueue.shift());
+ }
+ };
+
+ if (path.endsWith(".mp3") || path.endsWith(".wav")) {
+ // return path;
+ if (typeof Audio === "undefined") {
+ return;
+ }
+ img = new Audio();
+ img.addEventListener("loadeddata", handled);
+ } else if (path.endsWith(".mp4")) {
+ img = document.createElement("video");
+ img.addEventListener("canplay", handled);
+ } else {
+ img = new Image();
+ // Delete img once the image has loaded:
+ img.onload = handled;
+ // Also handle when img doesn't successfully load:
+ img.onerror = handled;
+ }
+ img.style.display = "none";
+ document.body.appendChild(img);
+
+ img.src = path;
+}
+
+let loaded = 0;
+function QueueToLoad(path) {
+ if (loaded < 5) {
+ Load(path);
+ loaded++;
+ } else {
+ loadQueue.push(path);
+ }
+}
+
+ QueueToLoad("./assets/bubble.f2df5515d875bfb422b0.gif");
+QueueToLoad("./assets/loseamp.5b7d327e9fdbfbaaeb73.gif");
+QueueToLoad("./assets/otherworlds.aba358b4131fa3282fc2.gif");
+QueueToLoad("./assets/folder.9605776671c9b7a6d97f.gif");
+QueueToLoad("./assets/photo.35907fa6d5c1cafcde93.gif");
+QueueToLoad("./assets/notepad.e9430243fd32543de900.gif");
+QueueToLoad("./assets/gear.100ad850915b524e939e.png");
+QueueToLoad("./assets/fake_camera.c39352704197279ab4b5.png");
+QueueToLoad("./assets/fullscreen.2759113d3a7b7b217822.png");
+QueueToLoad("./assets/house.8fc649925cc3934f39cc.gif");
+QueueToLoad("./assets/hints.b93459d8966ee762de33.png");
+QueueToLoad("./assets/birthday_wallpaper.aa1805df5a118859174a.gif");
+QueueToLoad("./assets/liz_em_desktop.c855514e7ee467183c63.gif");
+QueueToLoad("./assets/typing.3badeee93e2a04861940.png");
+QueueToLoad("./assets/move.c924d2db82500e505747.png");
+QueueToLoad("./assets/arrow2x.952d3842b6daaeba0fa1.png");
+QueueToLoad("./assets/pointer2x.693569d19d5e22ee6c90.png");
+QueueToLoad("./assets/busy.6258b3802062858ef3ed.png");
+QueueToLoad("./assets/pc_horror.1bda71cfb53864b6869b.png");
+QueueToLoad("./assets/check.48fc8a62e22e73b8f888.png");
+QueueToLoad("./assets/slider.bd31e3920e4570144a8a.png");
+QueueToLoad("./assets/back_up_arrow.b9b9daff7a5c825a47d3.png");
+QueueToLoad("./assets/folder2.4f0f84ec5e1e148efff8.gif");
+QueueToLoad("./assets/play.2af606f73448cf66a8c5.gif");
+QueueToLoad("./assets/mic.59a43b7d043b583f43f3.png");
+QueueToLoad("./assets/liz_em_desktop_cropped.0dc544973dfb61d5b411.gif");
+QueueToLoad("./assets/lawson.5c7c51295dbe9c6df814.gif");
+QueueToLoad("./assets/liz.f65d8fd109076025b69d.gif");
+QueueToLoad("./assets/creepyvid2.092a95f7cf9119f35a6f.mp4");
+QueueToLoad("./assets/ritual1.8e898b84d94cea0b4ca1.gif");
+QueueToLoad("./assets/ritual2.05fa0ba27fb3275ea2c2.gif");
+QueueToLoad("./assets/ritual3.d847ca0945b2d19f4f5e.gif");
+QueueToLoad("./assets/ritual4.70db979383efee5f65ad.gif");
+QueueToLoad("./assets/song_1_2.3b90a68a619108bb039a.mp3");
+QueueToLoad("./assets/game_2_hands.a77ed87a719732f95d2e.mp3");
+QueueToLoad("./assets/song_3_2.24e69a7bbe413a038296.mp3");
+QueueToLoad("./assets/song_6_2.1007506e15a79c4fd496.mp3");
+QueueToLoad("./assets/song_7.86c1088b3d344f8166bd.mp3");
+QueueToLoad("./assets/song_5_2.ddb7bbd3f6e8ce57e0ce.mp3");
+QueueToLoad("./assets/song_4.63b5339e8119e0953078.mp3");
+QueueToLoad("./assets/song_8.fa59cad655ea848c31ea.mp3");
+QueueToLoad("./assets/tutorial.31ef9df7126f50d48b7d.mp3");
+QueueToLoad("./assets/login.88c6eeca1696e7b5aeef.mp3");
+QueueToLoad("./assets/house1_wind.5da5ef7366266d79f650.mp3");
+QueueToLoad("./assets/house_statue.69204d437f21ff9aed2f.mp3");
+QueueToLoad("./assets/dialup.8f9c0e3cfa94ec55c6d1.mp3");
+QueueToLoad("./assets/beep.7a4a1c1d3557631de9e1.mp3");
+QueueToLoad("./assets/tribute_2.b7f1d5c5c936b17d08cc.mp3");
+QueueToLoad("./assets/phonecall.242121f1a5a73ca823b4.mp3");
+QueueToLoad("./assets/fountain.929b5a2b891ff542f514.mp3");
+QueueToLoad("./assets/ending2.aa9fd0bc15a18011d5f5.mp3");
+QueueToLoad("./assets/receive.539ffeffa285ee3c891b.mp3");
+QueueToLoad("./assets/credits.0562cf1b60c4047cfa48.mp3");
+QueueToLoad("./assets/send.7d3772040d3d41cbfc23.mp3");
+QueueToLoad("./assets/disco.e7b5f5ac3d421255c6ce.mp3");
+QueueToLoad("./assets/retribution.7e00a40b60eee610b6f9.mp3");
+QueueToLoad("./assets/buddylist.c023b5a07a8e4efac4c9.gif");
+QueueToLoad("./assets/corruption.9a4e57e6cfeed77e28db.gif");
+QueueToLoad("./assets/im_receive_echo.3bdb2dbe14906554b402.mp3");
+QueueToLoad("./assets/mousedown.fa4b9d00f42e7f87cb06.mp3");
+QueueToLoad("./assets/mouseup.607540a207ea846c8f94.mp3");
+QueueToLoad("./assets/key1_down.79dc7bae09bb40fab84d.mp3");
+QueueToLoad("./assets/phone.5a5bfe648bd7114b47b2.mp3");
+QueueToLoad("./assets/key1_up.ad18c0c35729ce7442ad.mp3");
+QueueToLoad("./assets/key2_down.8467945cc1a9d588115e.mp3");
+QueueToLoad("./assets/key2_up.b81cea993623b167eb24.mp3");
+QueueToLoad("./assets/key3_down.b495db48293cc4d2b774.mp3");
+QueueToLoad("./assets/key3_up.c31437b1fc27019cc43a.mp3");
+QueueToLoad("./assets/key4_down.92ef32709433cac5477f.mp3");
+QueueToLoad("./assets/key4_up.265e8ebb473011a1c9c7.mp3");
+QueueToLoad("./assets/key5_down.c609fc9b2914d815e061.mp3");
+QueueToLoad("./assets/key5_up.86af276c8bcfb07e1e3f.mp3");
+QueueToLoad("./assets/knock.0f3cffd09f93a807fd7e.mp3");
+QueueToLoad("./assets/knock_echo.bf975f73e0962288d1d7.mp3");
+QueueToLoad("./assets/door_open.7cd515a9d3e724377560.mp3");
+QueueToLoad("./assets/candle.c4966b0ef4dc62170eec.mp3");
+QueueToLoad("./assets/rumble.130199303805ec1b2d45.mp3");
+QueueToLoad("./assets/stonebutton.a88aac145bf921c34a30.mp3");
+QueueToLoad("./assets/door_close_buddylist.e96ebe75b7a75392dec2.mp3");
+QueueToLoad("./assets/aum_single.c4b54d3cfbc3d62444fb.mp3");
+QueueToLoad("./assets/twinkle2.d0c7c551ee38253d34cf.mp3");
+QueueToLoad("./assets/twinkle1.b4aadeba26be0be6e256.mp3");
+QueueToLoad("./assets/Plaster.ac645ff9a50fd50604c7.png");
+QueueToLoad("./assets/congratulations.0904d14b4b7a5177496c.gif");
+QueueToLoad("./assets/clap.d7d8efc7a9b388706497.gif");
+QueueToLoad("./assets/bts1.ce40cd10a1f712599bff.gif");
+QueueToLoad("./assets/bts2.fd0eb63cef543a4effa5.gif");
+QueueToLoad("./assets/bts6.e262c98119540c490cd1.gif");
+QueueToLoad("./assets/bts3.74689715832191efe6f3.gif");
+QueueToLoad("./assets/bts5.3a0adc41fe97498b2aac.gif");
+QueueToLoad("./assets/bts4.499a1f8aec8b99efc99f.gif");
+QueueToLoad("./assets/bts_jenna.d6d6effa553725752b52.gif");
+QueueToLoad("./assets/bts_isabel.47f25eb0f77f9d6f4f93.gif");
+QueueToLoad("./assets/bts_fountain.1726bd287ddc63118135.gif");
+QueueToLoad("./assets/bts_bg.b3dba07844835a5841c5.gif");
+QueueToLoad("./assets/desk.4ba0a6cf4962289e7f17.gif");
+QueueToLoad("./assets/scan1.a640186201451a3ad717.gif");
+QueueToLoad("./assets/en.9cb3933bb4f16634b766.jsonc");
+QueueToLoad("./assets/fr.e6665df5aada37acff64.jsonc");
+QueueToLoad("./assets/it.54d9ca131acf04041b06.jsonc");
+QueueToLoad("./assets/id.c648ac5f9b773700ebe2.jsonc");
+QueueToLoad("./assets/ru.4ecffbcdb417d1b52653.jsonc");
+QueueToLoad("./assets/jp.f06f812944b9b3315c0f.jsonc");
+QueueToLoad("./assets/cz.0ea25e9620918415e2b1.jsonc");
+QueueToLoad("./assets/cn_simplified.8661b534eb181e97e35e.jsonc");
+QueueToLoad("./assets/es.e6a78f6a6d82aab7977b.jsonc");
+QueueToLoad("./assets/eo.8b806132758cf815bdfb.jsonc");
+QueueToLoad("./assets/ua-uk.a2f2e42159f846ad59fc.jsonc");
+QueueToLoad("./assets/pl.ad0459f81d48a34adb7a.jsonc");
+QueueToLoad("./assets/kr.7cac458a4f03cda084ed.jsonc");
+QueueToLoad("./assets/pt.64f8e91dcffb11d3cdbf.jsonc");
+QueueToLoad("./assets/tr.2fc07abe241f1e7308c8.jsonc");
+QueueToLoad("./assets/sign_customworld.c546bd3a4a4a225a7a07.gif");
+QueueToLoad("./assets/sign_house.8fbb21cf59f27bc26b34.gif");
+QueueToLoad("./assets/playername.ee76661cc774c092cd31.png");
+QueueToLoad("./assets/discofloor.d7ee881105827ea6cf4e.gif");
+QueueToLoad("./assets/clock.c493085c7eba368eec45.png");
+QueueToLoad("./assets/clock_hand1.b99c9875a12dd66cc17e.png");
+QueueToLoad("./assets/clock_hand2.b280b3375fd515afb2e9.png");
+QueueToLoad("./assets/Grass.7a69caabfea1d587e104.png");
+QueueToLoad("./assets/disco.90ce591eba585e4dc9c1.png");
+QueueToLoad("./assets/noise_black_transparent.3768f6eac4994843ded6.png");
+QueueToLoad("./assets/disco_statue.f6932c356402f4dae092.gif");
+QueueToLoad("./assets/liz_glow.f74bdb2d248de8d20b1c.png");
+QueueToLoad("./assets/PIXEARG_.dcb6c402987977c07259.ttf");
+QueueToLoad("./assets/PIXEAB__.e1d1622c832a3e2c218f.ttf");
+QueueToLoad("./assets/fusion-pixel-12px-proportional-latin.fe619a1165b50ea8c935.otf");
+QueueToLoad("./assets/fusion-pixel-12px-proportional-ja.48cd791b1bdd3fa4fb31.otf");
+QueueToLoad("./assets/fusion-pixel-12px-proportional-ko.90a080428337f4b294ae.otf");
+QueueToLoad("./assets/fusion-pixel-12px-proportional-zh_hans.70f66c6222d0398a7e23.otf");
+QueueToLoad("./assets/fusion-pixel-12px-proportional-zh_hant.2335a4ad1ef1a99d19fe.otf");
+QueueToLoad("./assets/PixeloidSans.e3def220c35436048cae.otf");
+QueueToLoad("./assets/vignette.6c28c88519d612695303.png");
+QueueToLoad("./assets/login.fd3cf57a2e572662a236.png");
+QueueToLoad("./assets/password_help.28d96b38f282d6ce7e42.png");
+QueueToLoad("./assets/comic-sans-ms-pixel-rus-eng.31dba021cca18d2274fc.otf");
+QueueToLoad("./assets/PixeloidSans-Bold.ea46f15498a98fe48461.otf");
+QueueToLoad("./assets/arrow.f9c19299d94dac69842d.png");
+QueueToLoad("./assets/wood.f1522b05e430b453f1de.gif");
+QueueToLoad("./assets/brick2.a23d35a9c380dec75ade.gif");
+QueueToLoad("./assets/brick.a23d35a9c380dec75ade.gif");
+QueueToLoad("./assets/glow.1c2e09dd97e7367350e9.png");
+QueueToLoad("./assets/bookglow.bbc0b0b286859ad8f9d3.png");
+QueueToLoad("./assets/skybox.eea96d9c2e969855370e.png");
+QueueToLoad("./assets/candle.2bf72b1cd4796816726b.png");
+QueueToLoad("./assets/candle_unlit.3c510550ed0ba2d2691c.png");
+QueueToLoad("./assets/door_knocker_1.d16f767413dc8eed0331.gif");
+QueueToLoad("./assets/door_knocker_2.a4eb782a1f0962554a21.gif");
+QueueToLoad("./assets/goat.755952c87a44ec614854.gif");
+QueueToLoad("./assets/cow.a0c361f84e5634b7dd1d.gif");
+QueueToLoad("./assets/flag.7b2971fdc66b08c50b2f.gif");
+QueueToLoad("./assets/glow_question.2bf3ddbf0c344e201ac6.png");
+QueueToLoad("./assets/glow_cow.c13d8d3123b7be36bf48.png");
+QueueToLoad("./assets/eagle.9498a502e499c4acafdf.gif");
+QueueToLoad("./assets/glow_lion.f36658b3b9142bbf0ffd.png");
+QueueToLoad("./assets/glow_goat.59c697b9a036f3c958b5.png");
+QueueToLoad("./assets/lion.c2e14f51fb4987861bd3.gif");
+QueueToLoad("./assets/glow_eagle.f177a802bd2cec64e28d.png");
+QueueToLoad("./assets/portrait1.18ebb488b3b8a1649bd1.gif");
+QueueToLoad("./assets/portrait3.d3e313123d676125bd1f.gif");
+QueueToLoad("./assets/portrait2.3e4ef710257cabce5953.gif");
+QueueToLoad("./assets/portrait4.d1f273b21dca4c385ebd.gif");
+QueueToLoad("./assets/fountain_loop.99d50b403f96c8251e28.mp3");
+QueueToLoad("./assets/fountain.74ed50d29d28d583b979.gif");
+QueueToLoad("./assets/shape3.ccf3b8ca527241ab9639.png");
+QueueToLoad("./assets/shape2.3074d490271211a54a19.png");
+QueueToLoad("./assets/shape1.b3d6cb32cc5e572d4144.png");
+QueueToLoad("./assets/letter_button.972965872516f47ffc74.png");
+QueueToLoad("./assets/f.a2a0c9b89a499cba12de.png");
+QueueToLoad("./assets/e.c41658b82eebb47840f0.png");
+QueueToLoad("./assets/v.712d912e7e70d9c600c3.png");
+QueueToLoad("./assets/r.8b9ab9bbb06723305a4f.png");
+QueueToLoad("./assets/d.e7855cb18738c1637945.png");
+QueueToLoad("./assets/a.8be027d5deade1bfb6a4.png");
+QueueToLoad("./assets/m.03c377cc5ab352f0ab2a.png");
+QueueToLoad("./assets/o.a919d582b9baf4b440f2.png");
+QueueToLoad("./assets/s.fb755407630154efb268.png");
+QueueToLoad("./assets/i.8cc8916c474230d404d6.png");
+QueueToLoad("./assets/u.2d4a919d67cd8087e81c.png");
+QueueToLoad("./assets/l.2662616cc12340143b11.png");
+QueueToLoad("./assets/t.60c1e40509c5334705de.png");
+QueueToLoad("./assets/n.fe9b28ecff3a79efbb1b.png");
+QueueToLoad("./assets/b.e6466061cedc8c6dd6c6.png");
+QueueToLoad("./assets/h.30a9b642fcbf7b4ac950.png");
+QueueToLoad("./assets/question.e3639fc3624a0cf82de0.png");
+QueueToLoad("./assets/frame1.beffaa66435c1dc6bd50.png");
+QueueToLoad("./assets/frame2.ca0f3a8b21518d509313.png");
+QueueToLoad("./assets/frame3.629699bb9c682302d116.png");
+QueueToLoad("./assets/profile.e8be6395147fcd4c13a0.gif");
+QueueToLoad("./assets/liz_j.9d7f25ccbb2325b419c8.png");
+QueueToLoad("./assets/symbol1.23372ff7a94ed7740080.png");
+QueueToLoad("./assets/symbol2.9001fa94441e0b6519e7.png");
+QueueToLoad("./assets/symbol3.6697a74da418cd7d2843.png");
+QueueToLoad("./assets/symbol4.73149023c034fd9a0d3e.png");
+QueueToLoad("./assets/symbol5.a358c3557a1bea8ee3f0.png");
+QueueToLoad("./assets/symbol6.5778b960cd2a2230d1c6.png");
+QueueToLoad("./assets/lock.dc4bd63f43fbbcc77691.png");
+QueueToLoad("./assets/train.6dbf0ab72bca15ac5d2d.gif");
+QueueToLoad("./assets/rain.276da54aa3e0f0ceff6c.gif");
+QueueToLoad("./assets/bird.7635e44300fa76ce493f.gif");
+QueueToLoad("./assets/run.6ba21f64e9fcd4325ed1.gif");
+QueueToLoad("./assets/hell.808adc8e76c2f976ab93.png");
+QueueToLoad("./assets/scrollbar_up.a2169395a19a06752f56.png");
+QueueToLoad("./assets/scrollbar_down.1cc3f92fbb786fe2f4da.png");
+QueueToLoad("./assets/scrollbar_sandie.d21a12b3ea3e2a39039e.png");
+
\ No newline at end of file
diff --git a/filestorage/gd/qwook-last-seen-online/bundle.js b/filestorage/gd/qwook-last-seen-online/bundle.js
new file mode 100644
index 0000000000000000000000000000000000000000..f3fe0313ac37adbd6593cbcee17c24ebfcd26aea
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/bundle.js
@@ -0,0 +1 @@
+(()=>{"use strict";var e,t={266:(e,t,n)=>{n.d(t,{A:()=>s});const s='Copyright (c) 2019-2023 Minseo Lee (itoupluk427@gmail.com)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n"Font Software" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n"Reserved Font Name" refers to any names specified as such after the\ncopyright statement(s).\n\n"Original Version" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n"Modified Version" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n"Author" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n'},1726:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(74848),o=s(n(93136)),i=s(n(96540)),a=s(n(5338)),l=s(n(58648));a.default.createRoot(document.getElementById("root")).render((0,r.jsx)(i.default.StrictMode,{children:(0,r.jsx)(o.default,{})})),(0,l.default)()},1909:(e,t,n)=>{e.exports=n.p+"assets/e.c41658b82eebb47840f0.png"},2266:(e,t,n)=>{e.exports=n.p+"assets/ritual4.70db979383efee5f65ad.gif"},2484:(e,t,n)=>{e.exports=n.p+"assets/portrait2.3e4ef710257cabce5953.gif"},2777:(e,t,n)=>{e.exports=n.p+"assets/fountain_loop.99d50b403f96c8251e28.mp3"},2905:(e,t,n)=>{e.exports=n.p+"assets/bts4.499a1f8aec8b99efc99f.gif"},3811:(e,t,n)=>{e.exports=n.p+"assets/disco.90ce591eba585e4dc9c1.png"},3939:(e,t,n)=>{e.exports=n.p+"assets/congratulations.0904d14b4b7a5177496c.gif"},4683:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onFinishDownloading:e}){const[t,n]=(0,l.useState)(!1),[s,r]=(0,l.useState)([]),{orientation:o,size:u}=(0,l.useContext)(c.LayoutContext),{makeWindowInvisible:p,makeWindowVisible:h,bringToTop:f}=(0,l.useContext)(a.WindowManagerContext),x=(0,l.useRef)(0),m=()=>{d.SHOW_HOUSE_AFTER_LOAD&&(h("house"),f("house"))};return(0,l.useEffect)((()=>{if(t){const t=setInterval((()=>{if(x.current>18)return p("house-loading"),e(),void m();r((e=>{const t=[...e];return t.push(t.length+1),x.current=t.length,t}))}),400),n=setInterval((()=>{if(x.current>18)return p("house-loading"),e(),void m();r((e=>{const t=[...e];return t.push(t.length+1),x.current=t.length,t}))}),277),s=setInterval((()=>{if(x.current>18)return p("house-loading"),e(),void m();r((e=>{const t=[...e];return t.push(t.length+1),x.current=t.length,t}))}),655);return()=>{clearInterval(t),clearInterval(n),clearInterval(s)}}}),[t,p]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{name:"house-loading",initialPosition:{x:200,y:200},title:"Net Surfer",disableCloseButton:!0,onVisibleChange:e=>{n(e)},children:(0,i.jsxs)("div",{style:{padding:30},children:["Downloading redherring.exe...",(0,i.jsx)("div",{className:"house-progress",children:s.map(((e,t)=>(0,i.jsx)("div",{className:"house-progress-block"},t)))})]})}),(0,i.jsx)(a.default,{name:"house",initialPosition:{x:"landscape"===o?250:60,y:"landscape"===o?30:200},title:"redherring.exe",style:{background:"white",border:2*u+"px solid black"},topBarStyle:{padding:10*u,background:"black",color:"white"},children:(0,i.jsx)("div",{style:{position:"relative",width:800*u*.6,height:600*u*.6},children:(0,i.jsx)("div",{style:{transform:`translate(-50%, -50%) scale(${.6*u})`,position:"absolute",top:"50%",left:"50%"},children:(0,i.jsx)("iframe",{title:"Chia House",id:"ChiaHouse",src:"https://las-pinas.com/h.html?i=henry",style:{width:800,height:600,border:"none",overflow:"scroll"},houseid:"henry"})})})})]})};const i=n(74848),a=o(n(96886)),l=n(96540),c=n(49616),d=n(78815);n(91722)},5159:(e,t,n)=>{e.exports=n.p+"assets/goat.755952c87a44ec614854.gif"},5266:(e,t,n)=>{e.exports=n.p+"assets/mouseup.607540a207ea846c8f94.mp3"},5316:(e,t,n)=>{e.exports=n.p+"assets/l.2662616cc12340143b11.png"},5723:(e,t,n)=>{e.exports=n.p+"assets/credits.0562cf1b60c4047cfa48.mp3"},7216:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoiseGrainPass2=void 0;const s=n(14754),r=n(27186),o=n(9400);class i extends s.Pass{material;fsQuad;uniforms;constructor(){super(),o.NoiseGrainShader2;const e=o.NoiseGrainShader2;this.uniforms=r.UniformsUtils.clone(e.uniforms),this.material=new r.ShaderMaterial({uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new s.FullScreenQuad(this.material)}render(e,t,n,s){this.uniforms.tDiffuse.value=n.texture,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(),this.fsQuad.render(e))}}t.NoiseGrainPass2=i},7443:(e,t,n)=>{e.exports=n.p+"assets/key2_up.b81cea993623b167eb24.mp3"},7898:(e,t,n)=>{e.exports=n.p+"assets/check.48fc8a62e22e73b8f888.png"},8632:(e,t,n)=>{e.exports=n.p+"assets/clock.c493085c7eba368eec45.png"},8836:(e,t,n)=>{e.exports=n.p+"assets/house_statue.69204d437f21ff9aed2f.mp3"},8870:(e,t,n)=>{e.exports=n.p+"assets/vignette.6c28c88519d612695303.png"},9345:(e,t,n)=>{e.exports=n.p+"assets/PIXEARG_.dcb6c402987977c07259.ttf"},9400:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NoiseGrainShader2=void 0;const r=s(n(35818));t.NoiseGrainShader2={uniforms:{tDiffuse:{value:null}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = vec4( position, 1.0 );","}"].join("\n"),fragmentShader:r.default}},9560:(e,t,n)=>{e.exports=n.p+"assets/frame3.629699bb9c682302d116.png"},9657:(e,t,n)=>{e.exports=n.p+"assets/en.9cb3933bb4f16634b766.jsonc"},9674:(e,t,n)=>{e.exports=n.p+"assets/aum_single.c4b54d3cfbc3d62444fb.mp3"},9924:(e,t,n)=>{e.exports=n.p+"assets/wood.f1522b05e430b453f1de.gif"},11079:(e,t,n)=>{e.exports=n.p+"assets/fusion-pixel-12px-proportional-zh_hant.2335a4ad1ef1a99d19fe.otf"},11455:(e,t,n)=>{e.exports=n.p+"assets/symbol6.5778b960cd2a2230d1c6.png"},11963:(e,t,n)=>{e.exports=n.p+"assets/cow.a0c361f84e5634b7dd1d.gif"},12366:(e,t,n)=>{e.exports=n.p+"assets/song_7.86c1088b3d344f8166bd.mp3"},12795:(e,t,n)=>{n.d(t,{A:()=>s});const s="The FontStruction “Comic Sans MS pixel rus eng”\n(https://fontstruct.com/fontstructions/show/1376562) by “JustAngelSQ” is\nlicensed under a Creative Commons Attribution Share Alike license\n(http://creativecommons.org/licenses/by-sa/3.0/).\r\n“Comic Sans MS pixel rus eng” was originally cloned (copied) from the\nFontStruction “Sans” (https://fontstruct.com/fontstructions/show/1212388) by\nRyan Brotherston, which is licensed under a Creative Commons Attribution Share\nAlike license (http://creativecommons.org/licenses/by-sa/3.0/)."},13224:(e,t,n)=>{e.exports=n.p+"assets/typing.3badeee93e2a04861940.png"},13713:(e,t,n)=>{e.exports=n.p+"assets/ua-uk.a2f2e42159f846ad59fc.jsonc"},14107:(e,t,n)=>{e.exports=n.p+"assets/fusion-pixel-12px-proportional-latin.fe619a1165b50ea8c935.otf"},14757:(e,t,n)=>{e.exports=n.p+"assets/twinkle1.b4aadeba26be0be6e256.mp3"},14962:(e,t,n)=>{e.exports=n.p+"assets/scrollbar_up.a2169395a19a06752f56.png"},15049:(e,t,n)=>{e.exports=n.p+"assets/i.8cc8916c474230d404d6.png"},15392:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoiseGrainShader=void 0,t.NoiseGrainShader={uniforms:{tDiffuse:{value:null},tGhostGirl:{value:null},time:{value:0},nIntensity:{value:.5},sIntensity:{value:.05},sCount:{value:4096},grayscale:{value:1}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:'\n #include \n precision mediump float;\n\n // control parameter\n uniform float time;\n\n uniform bool grayscale;\n\n // noise effect intensity value (0 = no effect, 1 = full effect)\n uniform float nIntensity;\n\n // scanlines effect intensity value (0 = no effect, 1 = full effect)\n uniform float sIntensity;\n\n // scanlines effect count value (0 = no effect, 4096 = full effect)\n uniform float sCount;\n\n uniform sampler2D tDiffuse;\n uniform sampler2D tGhostGirl;\n\n varying vec2 vUv;\n\n // " vec4 sharpen(in sampler2D tex, in vec2 coords, in vec2 renderSize) {\n // " float dx = 1.0 / renderSize.x;\n // " float dy = 1.0 / renderSize.y;\n // " vec4 sum = vec4(0.0);\n // " sum += -1. * texture2D(tex, coords + vec2( -1.0 * dx , 0.0 * dy));\n // " sum += -1. * texture2D(tex, coords + vec2( 0.0 * dx , -1.0 * dy));\n // " sum += 5. * texture2D(tex, coords + vec2( 0.0 * dx , 0.0 * dy));\n // " sum += -1. * texture2D(tex, coords + vec2( 0.0 * dx , 1.0 * dy));\n // " sum += -1. * texture2D(tex, coords + vec2( 1.0 * dx , 0.0 * dy));\n // " return sum;\n // " }\n\n void main() {\n\n // sample the source\n vec4 cTextureGhostGirl = texture2D( tGhostGirl, vUv );\n\n // make some noise\n float dx = rand( floor(vUv*800.0)/800.0 + time );\n float dx2 = rand( floor(vUv*800.0)/800.0 + time );\n\n vec2 averageGhostgirl = \n texture2D( tGhostGirl, vUv ).rg;\n // vec2 averageGhostgirl = (\n // texture2D( tGhostGirl, vUv ).rg +\n // texture2D( tGhostGirl, vUv + vec2(0.01, 0.01) ).rg +\n // texture2D( tGhostGirl, vUv + vec2(0.01, 0.0) ).rg +\n // texture2D( tGhostGirl, vUv + vec2(0.0, 0.01) ).rg +\n // texture2D( tGhostGirl, vUv + vec2(-0.01, -0.01) ).rg +\n // texture2D( tGhostGirl, vUv + vec2(-0.01, 0.0) ).rg +\n // texture2D( tGhostGirl, vUv + vec2(0.0, -0.01) ).rg)/7.0;\n\n\n vec4 cTextureScreen = texture2D( tDiffuse, vUv );\n // vec4 cTextureScreen = texture2D( tDiffuse, vUv + vec2((1.0-averageGhostgirl.r)*(dx-0.5)/300.0, (1.0-averageGhostgirl.g)*(dx2-0.5)/300.0) );\n \n float contrast = 1.0;\n float brightness = 0.0;\n\n vec3 colorContrasted = (cTextureScreen.rgb) * contrast;\n vec3 bright = colorContrasted + vec3(brightness,brightness,brightness);\n // " vec3 sharpend = sharpen(tDiffuse, vUv, vec2(800, 400)).rgb;\n cTextureScreen.rgb = bright * 0.7;// + sharpend * 0.3;\n cTextureScreen.rgb = bright;\n vec2 vigUv = vUv;\n vigUv *= 1.0 - vUv.yx; //vec2(1.0)- vUv.yx; -> 1.-u.yx;\n float vig = (vigUv.x/2.0)*(vigUv.y/2.0) * 250.0; // multiply with sth for intensity\n vig = pow(vig, 0.5); // change pow for modifying the extend of the vignette\n\n // Multiply cTextureScreen by vignette.\n // " cTextureScreen.rgb *= vig;\n\n // add noise\n vec3 cResult = cTextureScreen.rgb + cTextureScreen.rgb * clamp( dx*50.0-9.0, -1.0, 1.0 );\n cResult = cResult - vec3(0.5, 2.0, 2.0) * clamp( (dx2 * (1.0-(vig/2.5)))*35.0-15.0, 0.0, 1.0 );\n cResult = cResult + vec3(dx, dx, dx) * 0.3 * (1.0-averageGhostgirl.r);\n\n // // get us a sine and cosine\n // "\tvec2 sc = vec2( sin( vUv.y * sCount ), cos( vUv.y * sCount ) );\n\n // // add scanlines\n // "\tcResult += cTextureScreen.rgb * vec3( sc.x, sc.y, sc.x ) * sIntensity;\n\n // // interpolate between source and result by intensity\n // " cResult.gb /= (1.3);\n cResult.r *= (1.6 - (0.6 * (1.0-averageGhostgirl.r)));\n cResult = cTextureScreen.rgb + clamp( ((2.0 - averageGhostgirl.r * 2.0) + nIntensity), 0.0, 1.0 ) * ( cResult - cTextureScreen.rgb );\n\n // Make it more red.\n\n // // convert to grayscale if desired\n // "\tif( grayscale ) {\n\n // "\t\tcResult = vec3( cResult.r * 0.3 + cResult.g * 0.59 + cResult.b * 0.11 );\n\n // "\t}\n\n gl_FragColor = vec4( cResult, cTextureScreen.a );\n }\n '}},15575:(e,t,n)=>{e.exports=n.p+"assets/stonebutton.a88aac145bf921c34a30.mp3"},15957:(e,t,n)=>{e.exports=n.p+"assets/photo.35907fa6d5c1cafcde93.gif"},16158:(e,t,n)=>{e.exports=n.p+"assets/f.a2a0c9b89a499cba12de.png"},17322:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playBGM=function(e){a[e]||function(e){if(a[e])return;const t=new r.Howl({src:[i[e].src],autoplay:!1,volume:i[e].volume||1,loop:i[e].loop});t.original=i[e],t.on("play",(e=>{Object.keys(l).includes(t)||(l[e]=t)})),t.on("end",(e=>{Object.keys(l).includes(t)&&(l[e]=null,delete l[e])})),a[e]=t}(e);if(!a[e])return;if(!i[e].loop||d!==e){c&&c.pause(),c=a[e],d=e;const t=a[e].play();a[e].volume(t,u*(a[e].original.volume||1))}},t.pauseBGM=function(){c&&c.pause()},t.setRate=function(e){c.rate(e)},t.isPlaying=function(e){return d===e&&c&&c.playing()},t.setVolume=function(e){if(!i[d])return;c.volume(u*(i[d].volume||1)*e)},t.setMusicBusVolume=function(e){u=e;for(const t of Object.keys(a)){const n=a[t];n.volume(e*(n.original.volume||1))}},t.fadeMusic=function(e,t,n){if(!c)return;const s=i[d].volume||1;c.fade(e*s*u,t*s*u,n)};const r=n(94196),o=s(n(36430)),i={dialup:{src:n(89850)},beep:{src:n(90227)},login:{src:n(25582)},intro:{src:n(29089),loop:!0,volume:.7},disco:{src:n(18863),loop:!0,volume:.7},house:{src:n(84843),loop:!0},inside_house:{src:n(8836),loop:!0,volume:.4},fountain:{src:n(44011),loop:!0,volume:.4},tribute:{src:n(20291),loop:!0,volume:.9},ending:{src:n(84196),loop:!0},phone:{src:n(42172),loop:!0},white_noise:{src:n(61625),volume:.4},credits:{src:n(17362),loop:!0,volume:.4},post_credits:{src:n(5723),loop:!0,volume:.25}},a={};let l={};let c=null,d=null,u=0;if("undefined"!=typeof window){window.pauseListener&&o.default.off("pause",window.pauseListener);let e=!1;window.pauseListener=t=>{t?(e=c&&c.playing(),e&&c.pause()):e&&c.play()},o.default.on("pause",window.pauseListener)}},17362:(e,t,n)=>{e.exports=n.p+"assets/retribution.7e00a40b60eee610b6f9.mp3"},17953:(e,t,n)=>{e.exports=n.p+"assets/mousedown.fa4b9d00f42e7f87cb06.mp3"},18044:(e,t,n)=>{e.exports=n.p+"assets/hints.b93459d8966ee762de33.png"},18348:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenSaver=function(){const[e,t]=(0,c.useState)(),n=(0,c.useRef)(),s=(0,c.useRef)(),{setHidden:r}=(0,u.useCustomCursor)();(0,c.useRef)().current=e,(0,c.useEffect)((()=>{r&&r(!!e)}),[e,r]),(0,c.useEffect)((()=>{let e;function n(n){t(!1),e&&clearTimeout(e),e=setTimeout((()=>{t(!0)}),3e5)}n();const s=e=>{n()};return document.addEventListener("mousemove",n),document.addEventListener("touchmove",n),document.addEventListener("pointermove",n),document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousemove",n),document.removeEventListener("touchmove",n),document.removeEventListener("pointermove",n),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n),document.removeEventListener("keydown",s),clearTimeout(e)}}),[]);const o=(0,c.useRef)(),p=(0,c.useRef)([0,0]),f=(0,c.useRef)([l.MathUtils.randFloat(.1,5),l.MathUtils.randFloat(.1,5)]);return(0,d.useFrameCanvasless)((e=>{o.current&&(p.current[0]=l.MathUtils.clamp(p.current[0]+f.current[0]*e/200,-35,35),p.current[1]=l.MathUtils.clamp(p.current[1]+f.current[1]*e/200,-40,40),p.current[1]>35&&(f.current[1]=-1),p.current[1]<-35&&(f.current[1]=1),p.current[0]>30&&(f.current[0]=-1),p.current[0]<-30&&(f.current[0]=1),o.current.style.left=`${50+p.current[0]}%`,o.current.style.top=`${50+p.current[1]}%`)})),(0,i.jsxs)("div",{className:"screen-saver cursor-none",style:e?{display:"block",zIndex:999990}:{display:"none",width:0,height:0},children:[(0,i.jsxs)(a.Canvas,{children:[(0,i.jsx)("ambientLight",{intensity:1}),(0,i.jsx)("directionalLight",{ref:s,position:[0,0,0],target:n.current,intensity:4}),(0,i.jsx)("object3D",{ref:n,position:[40,40,-30]}),e&&(0,i.jsx)(h,{})]}),(0,i.jsxs)("div",{ref:o,className:"screensaver-warning",children:["Still here? Move or tap to continue."," "]})]})};const i=n(74848),a=n(73560);n(95616);n(27186);const l=o(n(27186)),c=n(96540),d=n(91722),u=(n(10159),n(80985),n(94869));function p({color:e,position:t,rotation:n}){const s=(0,c.useRef)(),r=(0,c.useRef)();return(0,c.useEffect)((()=>{let e=new l.Vector3,t=[],n=r.current.attributes.position;if(!r.current.userData.nPos){for(let s=0;s{if(!r.current.userData.nPos)return;let n=performance.now();r.current.userData.nPos.forEach(((e,t)=>{let s=Math.sin(Math.sqrt(e.x*e.x+e.y*e.y)/60*Math.PI+n/500),o=new l.Vector3;o.copy(e).multiplyScalar(Math.cos(Math.sqrt(e.x*e.x+e.y*e.y)/60+n/2e3)).add(new l.Vector3(0,0,20*s+20)),r.current.attributes.position.setXYZ(t,o.x,o.y,o.z)})),r.current.computeVertexNormals(),r.current.attributes.position.needsUpdate=!0})),(0,i.jsxs)("mesh",{position:t,rotation:n,ref:s,children:[(0,i.jsx)("planeGeometry",{ref:r,args:[30,30,30,30]}),(0,i.jsx)("meshLambertMaterial",{color:e})]})}function h(){const e=(0,c.useRef)(new l.Vector3(0,-1,-100)),t=(0,c.useRef)();return(0,a.useFrame)(((n,s)=>{t.current.rotation.x+=s,t.current.rotation.y+=.5*s;const r=10*s;t.current.position.distanceTo(e.current){e.exports=n.p+"assets/glow.1c2e09dd97e7367350e9.png"},18747:(e,t,n)=>{e.exports=n.p+"assets/bts2.fd0eb63cef543a4effa5.gif"},18803:(e,t,n)=>{e.exports=n.p+"assets/glow_question.2bf3ddbf0c344e201ac6.png"},18863:(e,t,n)=>{e.exports=n.p+"assets/disco.e7b5f5ac3d421255c6ce.mp3"},18879:(e,t,n)=>{e.exports=n.p+"assets/o.a919d582b9baf4b440f2.png"},19020:(e,t,n)=>{e.exports=n.p+"assets/d.e7855cb18738c1637945.png"},20284:(e,t,n)=>{e.exports=n.p+"assets/otherworlds.aba358b4131fa3282fc2.gif"},20291:(e,t,n)=>{e.exports=n.p+"assets/tribute_2.b7f1d5c5c936b17d08cc.mp3"},20509:(e,t,n)=>{e.exports=n.p+"assets/key1_down.79dc7bae09bb40fab84d.mp3"},21475:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{size:e,orientation:t}=(0,o.useContext)(i.LayoutContext),{language:s}=(0,o.useContext)(l.l10n.Context);return(0,o.useEffect)((()=>{document.body.style.fontFamily=s.FONT_FAMILY}),[s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:`\n@font-face {\n font-family: PixelArial11;\n src: url(${(0,a.default)(n(9345))});\n font-weight: normal;\n}\n@font-face {\n font-family: PixelArial11;\n src: url(${(0,a.default)(n(87289))});\n font-weight: bold;\n}\n@font-face {\n font-family: 'Fusion Pixel';\n src: url(${(0,a.default)(n(14107))}) format('opentype'),\n url(${(0,a.default)(n(97178))}) format('opentype'),\n url(${(0,a.default)(n(86515))}) format('opentype'),\n url(${(0,a.default)(n(63396))}) format('opentype'),\n url(${(0,a.default)(n(11079))}) format('opentype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: PixeloidSans;\n src: url(${(0,a.default)(n(41500))}) format('opentype');\n font-weight: normal;\n}\n@font-face {\n font-family: PixeloidSans;\n src: url(${(0,a.default)(n(24170))}) format('opentype');\n font-weight: bold;\n}\n\n@font-face {\n font-family: PixelComicSans;\n src: url(${(0,a.default)(n(56505))});\n font-weight: normal;\n}\n\n`}),(0,r.jsx)("style",{children:`\nhtml,\nbody {\n font-smooth: never;\n -webkit-font-smoothing: none;\n font-size: ${16*e}px;\n min-height: 100%;\n height: 100%;\n background: black;\n user-select: none;\n -webkit-user-select: none; /* Safari */\n overflow: hidden;\n}\n\ncanvas, img, video, div {\n image-rendering: pixelated;\n image-rendering: optimizeSpeed; // Older versions of FF\n image-rendering: -moz-crisp-edges; // FF 6.0+\n image-rendering: -webkit-optimize-contrast; // Webkit (non standard naming)\n image-rendering: -o-crisp-edges; // OS X & Windows Opera (12.02+)\n image-rendering: crisp-edges; // Possible future browsers.\n -ms-interpolation-mode: nearest-neighbor; // IE (non standard naming)\n}\n\n.intro-character {\n transition: left 6.0s ease-in-out, opacity 5.0s ease-out, top 5.0s ease-in-out;\n}\n\n/* Blink animation */\n@keyframes blink {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n}\n\n/* Jitter animation for wrong password. */\n@keyframes jitter {\n 0% {\n transform: translate(0, 0);\n }\n 10% {\n transform: translate(-${2*e}px, -${2*e}px);\n }\n 20% {\n transform: translate(${2*e}px, -${2*e}px);\n }\n 30% {\n transform: translate(-${2*e}px, ${2*e}px);\n }\n 40% {\n transform: translate(${2*e}px, -${2*e}px);\n }\n 50% {\n transform: translate(-${2*e}px, -${2*e}px);\n }\n 60% {\n transform: translate(${2*e}px, -${2*e}px);\n }\n 70% {\n transform: translate(-${2*e}px, ${2*e}px);\n }\n 80% {\n transform: translate(${2*e}px, -${2*e}px);\n }\n 90% {\n transform: translate(-${2*e}px, ${2*e}px);\n }\n 100% {\n transform: translate(0, 0);\n }\n}\n\n@keyframes flicker {\n 0%, 100% {\n opacity: 1;\n }\n 10% {\n opacity: 0.0;\n }\n 20% {\n opacity: 0.95;\n }\n 30% {\n opacity: 0.5;\n }\n 40% {\n opacity: 1;\n }\n 50% {\n opacity: 0.08;\n }\n 60% {\n opacity: 1;\n }\n 70% {\n opacity: 0.0;\n }\n 80% {\n opacity: 0.75;\n }\n 90% {\n opacity: 0.85;\n }\n}\n\ninput {\n font-family: ${s.FONT_FAMILY.toString().replace(/[^a-zA-Z0-9 ,]/g,"")};\n font-size: ${16*e}px;\n}\n\n.them {\n font-weight: bold;\n color: red;\n}\n.me {\n font-weight: bold;\n color: blue;\n}\n.system {\n color: #888;\n}\n\n.chat-choice {\n color: blue;\n text-decoration: underline;\n // cursor: pointer;\n}\n\n.chat-choice:hover {\n color: red;\n}\n\n/* Fade-in Animation */\n@keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.chat-log {\n animation: fade-in 0.5s ease-in-out;\n}\n\ninput:focus {\n outline: 2px solid blue;\n}\n\ninput::selection {\n background: navy;\n color: white;\n}\n\n.button-98 {\n /* Button in the style of Windows 98 button */\n background: #c0c0c0;\n border: 2px solid #000;\n border-radius: ${2*e}px;\n padding: ${10*e}px;\n // cursor: pointer;\n box-shadow: inset ${2*e}px ${2*e}px 0px #fff, inset -${1*e}px -${1*e}px 0px #000;\n margin: ${5*e}px;\n text-align: center;\n}\n\n.button-98:hover {\n background:rgb(228, 228, 228);\n}\n\n.button-98:active {\n background:rgb(163, 163, 163);\n}\n\n.text-98 {\n display: block;\n font-family: ${s.FONT_FAMILY.toString().replace(/[^a-zA-Z0-9 ,]/g,"")};\n /* font-size: 16px; */\n color: #000;\n padding: ${10*e}px;\n border-radius: 0;\n box-shadow: inset ${2*e}px ${2*e}px 0px #000;\n}\n\n.game-chatbox {\n border: ${3*e}px solid black;\n display: block;\n position: absolute;\n background: black;\n color: white;\n padding: ${20*e}px;\n left: ${5*e}px;\n bottom: ${5*e}px;\n right: ${5*e}px;\n height: ${180*e}px;\n overflow-y: scroll;\n transform: translate3d(0,0,0);\n}\n\n.game-vignette {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-size: contain;\n background-image: url(${(0,a.default)(n(8870))});\n pointer-events: none;\n opacity: 0.6;\n transform: translate3d(0,0,0);\n}\n\n.file-browser {\n display: inline-block;\n width: ${250*e}px;\n height: ${270*e}px;\n background: white;\n padding: ${5*e}px;\n padding-bottom: 0px;\n margin: ${10*e}px;\n border: ${2*e}px solid black;\n}\n\n.file-browser li {\n padding: 0;\n padding-bottom: ${5*e}px;\n list-style-type: none;\n}\n\n.file-browser li.selected {\n background: #00f;\n color: #fff;\n}\n\n.file-preview {\n display: inline-block;\n vertical-align: top;\n margin: ${10*e};\n}\n\n.window.pop-up {\n animation: bounce 0.2s ease-in-out;\n}\n\n/* window popup bounce animation (size up and size down) */\n@keyframes bounce {\n 0% {\n transform: scale(0.9);\n }\n 30% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n.window.pop-up.fullscreen {\n animation: bounce-fullscreen 0.4s ease-in-out;\n}\n\n@keyframes bounce-fullscreen {\n 0% {\n transform: scale(0.01);\n top: 10%;\n left: -40%;\n }\n 100% {\n transform: scale(1);\n top: 0%;\n left: 0%;\n }\n}\n\n.server-browser th,\n.server-browser td {\n padding: ${10*e}px;\n}\n\n.server-browser th {\n background: #ccc;\n border: ${3*e}px solid black;\n}\n\n.login {\n position: absolute;\n top: ${"landscape"===t?200*e:300*e}px;\n width: 100%;\n color: white;\n text-shadow: ${2*e}px ${2*e}px ${5*e}px black, ${2*e}px ${2*e}px ${5*e}px black, 2px 2px 10px black;\n}\n\n.login input {\n padding: ${10*e}px;\n}\n\n.welcome {\n background: rgb(75, 127, 229);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n transition: opacity 1s;\n}\n\n.welcome-text {\n position: absolute;\n font-size: ${40*e}pt;\n color: white;\n text-shadow: ${4*e}px ${4*e}px 0px black;\n text-align: left;\n top: ${200*e}px;\n right: ${70*e}px;\n}\n\n@keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 0.7;\n }\n}\n\n.facegram {\n background: white;\n padding: ${10*e}px;\n text-align: left;\n}\n\n.facegram h1 {\n font-size: ${12*e}pt;\n padding: 0;\n margin: 0;\n margin-top: ${15*e}px;\n}\n\n.facegram td {\n padding: ${5*e}px;\n text-align: center;\n}\n\n.facegram .strong td {\n font-weight: bold;\n}\n\n.login-text {\n border-radius: ${8*e}px;\n margin: ${5*e}px;\n}\n\n.login-button {\n background: url(${(0,a.default)(n(87417))}) no-repeat center center /\n contain;\n border: 0px;\n width: ${Math.max(40,50*e)}px;\n height: ${Math.max(40,50*e)}px;\n vertical-align: middle;\n // cursor: pointer;\n margin: ${5*e}px;\n}\n\n.help-button {\n background: url(${(0,a.default)(n(67025))}) no-repeat center center /\n contain;\n border: 0px;\n width: ${Math.max(40,50*e)}px;\n height: ${Math.max(40,50*e)}px;\n vertical-align: middle;\n // cursor: pointer;\n margin: ${5*e}px;\n}\n\n.placeholder-size::placeholder {\n font-size: ${16*e}px;\n}\n\n.house-progress {\n margin-top: ${10*e}px;\n border: ${2*e}px inset #aaa;\n width: ${300*e}px;\n height: ${26*e}px;\n padding: ${2*e}px;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.house-progress-block {\n display: inline-block;\n height: 100%;\n width: ${15*e}px;\n background: rgb(0,0,150);\n margin-right: ${2*e}px;\n}\n\n.corrupted {\n position: relative;\n}\n\n.close-button {\n background: red;\n}\n\n.close-button:hover {\n background: rgb(255, 100, 100);\n}\n\n.close-button:active {\n background: rgb(200, 0, 0);\n}\n`})]})};const r=n(74848),o=n(96540),i=n(49616),a=s(n(99240)),l=n(81218)},21486:(e,t,n)=>{e.exports=n.p+"assets/key4_down.92ef32709433cac5477f.mp3"},21555:(e,t,n)=>{e.exports=n.p+"assets/liz_em_desktop.c855514e7ee467183c63.gif"},21825:(e,t,n)=>{e.exports=n.p+"assets/liz.f65d8fd109076025b69d.gif"},21933:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(31601),r=n.n(s),o=n(76314),i=n.n(o)()(r());i.push([e.id,".screen-saver{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;background:#000}.screensaver-warning{position:absolute;top:50%;left:50%;right:0;width:40%;color:#fff;transform:translate(-50%, -50%)}",""]);const a=i},22796:(e,t,n)=>{e.exports=n.p+"assets/liz_j.9d7f25ccbb2325b419c8.png"},23127:(e,t,n)=>{e.exports=n.p+"assets/fullscreen.2759113d3a7b7b217822.png"},23618:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(31601),r=n.n(s),o=n(76314),i=n.n(o),a=n(4417),l=n.n(a),c=new URL(n(14962),n.b),d=new URL(n(89633),n.b),u=new URL(n(89453),n.b),p=i()(r()),h=l()(c),f=l()(d),x=l()(u);p.push([e.id,`.scrollbar-wrapper{position:relative}.scrollbar{color:#000;position:absolute;background:#ccc;top:0;right:0em;height:100%;width:2em;background-color:#fff}.scrollbar .scrollbar-buttons{position:relative;width:100%;height:100%;box-shadow:inset .13em 0em .15em rgba(0,0,0,.1)}.scrollbar .scrollbar-top,.scrollbar .scrollbar-bottom{height:2em;background:#94bdff;background-repeat:no-repeat;background-size:50%;background-position:center;border-radius:.15em;box-shadow:inset .15em 0 0 rgba(0,0,0,.2),inset -0.15em -0.15em 0 rgba(0,0,0,.5),inset .3em .15em 0 #fff,inset -0.3em -0.3em 0 #fff,inset .3em -0.3em 0 #fff,inset -0.3em .15em 0 #fff,inset 0 0 .3em -0.15em rgba(0,0,0,.5)}.scrollbar .scrollbar-top{position:absolute;width:100%;top:0;background-image:url(${h})}.scrollbar .scrollbar-bottom{position:absolute;width:100%;bottom:0;background-image:url(${f})}.scrollbar .scrollbar-track{position:absolute;width:100%;top:2em;bottom:2.6em}.scrollbar .scrollbar-btn{position:absolute;top:0%;background-color:#ccc;width:100%;height:4em;background:#94bdff;background-image:url(${x});background-repeat:no-repeat;background-size:60%;background-position:center;border-radius:.15em;box-shadow:inset .15em 0 0 rgba(0,0,0,.2),inset -0.15em -0.15em 0 rgba(0,0,0,.5),inset .3em .15em 0 #fff,inset -0.3em -0.3em 0 #fff,inset .3em -0.3em 0 #fff,inset -0.3em .15em 0 #fff,inset 0 0 .3em -0.15em rgba(0,0,0,.5)}.scrollbar .scrollbar-top:hover,.scrollbar .scrollbar-bottom:hover,.scrollbar .scrollbar-btn:hover{background-color:#b0cfff}.scrollbar .scrollbar-top:active,.scrollbar .scrollbar-bottom:active,.scrollbar .scrollbar-btn:active{background-color:#7eaff9}`,""]);const m=p},24170:(e,t,n)=>{e.exports=n.p+"assets/PixeloidSans-Bold.ea46f15498a98fe48461.otf"},24193:(e,t,n)=>{e.exports=n.p+"assets/bubble.f2df5515d875bfb422b0.gif"},24359:(e,t,n)=>{e.exports=n.p+"assets/pointer2x.693569d19d5e22ee6c90.png"},24425:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisableMouse=function(){const[e,t]=(0,d.useState)(!1),{visibleWindows:n}=(0,d.useContext)(l.WindowManagerContext);return(0,d.useEffect)((()=>{t(n.includes("disable-mouse"))}),[n]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{name:"disable-mouse",title:"",initialPosition:{x:0,y:0},style:{display:"none"}}),e?(0,a.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1002},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}):null]})},t.FadeScreen=function(){const[e,t]=(0,d.useState)(!1),{visibleWindows:n}=(0,d.useContext)(l.WindowManagerContext);return(0,d.useEffect)((()=>{t(n.includes("fade-screen"))}),[n]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{name:"fade-screen",title:"",initialPosition:{x:0,y:0},style:{display:"none"}}),e?(0,a.jsx)("div",{style:{position:"absolute",background:"white",top:0,left:0,width:"100%",height:"100%",zIndex:4002,opacity:.7,animation:"fade-in 1s"},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}):null]})},t.ErrorScreen=function(){const[e,t]=(0,d.useState)(0),{makeWindowVisible:s}=(0,d.useContext)(l.WindowManagerContext),{size:r,orientation:o}=(0,d.useContext)(f.LayoutContext),{language:i}=(0,d.useContext)(x.l10n.Context);return(0,a.jsxs)(l.default,{name:"error-screen",title:"Other World",disableCloseButton:!0,initialPosition:{x:"landscape"===o?100:30,y:"landscape"===o?100:150},onVisibleChange:e=>{e&&((0,c.pauseBGM)(),t(0),p.DEMO_ENDING&&(0,m.setTimeoutPausible)((()=>{t(1),(0,m.setTimeoutPausible)((()=>{t(2),(0,m.setTimeoutPausible)((()=>{t(3),(0,m.setTimeoutPausible)((()=>{t(4)}),2e3)}),2e3)}),2e3)}),2e3))},style:{zIndex:4003},children:[(0,a.jsxs)("div",{style:{padding:20*r,fontWeight:"bold",background:"white",borderBottom:2*r+"px black"},children:[(0,a.jsx)("div",{style:{display:"inline-block",width:"landscape"===o?500*r:430*r},children:i.ERROR_REPORT_OTHER_WORLD_HAS_ENCOUNTERED_A_PROBLEM}),(0,a.jsx)("img",{src:n(20284),height:60*r,alt:"",onDragStart:e=>e.preventDefault()})]}),(0,a.jsxs)("div",{style:{width:"landscape"===o?540*r:470*r,padding:30*r},children:[0===e?(0,a.jsxs)(a.Fragment,{children:[i.ERROR_REPORT_IF_YOU_WERE_IN_THE_MIDDLE_OF_SOMETHING,(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:i.ERROR_REPORT_PLEASE_TELL_OTHER_WORLD_ABOUT_THIS_PROBLEM}),(0,a.jsx)("br",{}),i.ERROR_REPORT_WE_HAVE_CREATED_AN_ERROR_REPORT]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{style:{verticalAlign:"middle",display:"inline-block",background:1===e?"#0f0":"red",width:40*r,height:40*r,borderRadius:50*r,marginRight:20*r}}),(0,a.jsx)("span",{style:{fontSize:49*r,verticalAlign:"middle"},children:1===e?"online":2===e?"offline":"last seen online"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}),(0,a.jsxs)("div",{style:{textAlign:"right",marginTop:15*r},children:[(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:`0px ${4*r}px`},onClick:e=>{s("credits"),(0,c.playBGM)("credits")},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,g.default)(i.ERROR_REPORT_BUTTON_1.toString(),["b","u"])}})}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:`0px ${4*r}px`},onClick:e=>{s("credits"),(0,c.playBGM)("credits")},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,g.default)(i.ERROR_REPORT_BUTTON_2.toString(),["b","u"])}})})]})]})]})},t.default=function(){const[e,t]=(0,d.useState)(0),n=(0,d.useRef)(e);n.current=e;(0,d.useContext)(h.EndingPopupContext).setLawsonStage=t;const s=(0,d.useRef)();(0,d.useLayoutEffect)((()=>{s.current.scrollTop=s.current.scrollHeight-100}),[e]);const{size:r,orientation:o}=(0,d.useContext)(f.LayoutContext),{language:i}=(0,d.useContext)(x.l10n.Context),[c,p]=(0,d.useState)(!1),[m,g]=(0,d.useState)(66),[_,b]=(0,d.useState)(70),[y,E]=(0,d.useState)(60),j=(0,d.useRef)(m);j.current=m,(0,d.useEffect)((()=>{e<10&&E(30)}),[e]),(0,d.useEffect)((()=>{if(c){const e=setInterval((()=>{b(Math.floor(j.current+4*Math.random()))}),100);return()=>{clearInterval(e)}}}),[c]),(0,d.useEffect)((()=>{if(c){const e=setInterval((()=>{E((e=>e>4?e-Math.floor(4*Math.random()):e))}),100);return()=>{clearInterval(e)}}}),[c]),(0,d.useEffect)((()=>{const e=setInterval((()=>{n.current>0&&g((e=>e+Math.floor(2*Math.random())))}),900);return()=>{clearInterval(e)}}),[]);const T=_+y;let S="rgb(0,255,0)",v="rgb(0,100,0)";T>90?(S="rgb(255,0,0)",v="rgb(100,0,0)"):T>80&&(S="rgb(255,255,0)",v="rgb(100,100,0)");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{title:i.ENDING_TASK_MANAGER_TITLE,name:"resources",initialPosition:{x:"landscape"===o?450:250,y:10},style:{zIndex:1003},onVisibleChange:e=>{p(!0)},children:(0,a.jsxs)("div",{style:{padding:5*r},children:[(0,a.jsx)("div",{style:{padding:5*r},children:i.ENDING_TASK_MANAGER_WARNING}),(0,a.jsxs)("div",{style:{width:330*r},children:[(0,a.jsx)("div",{style:{display:"inline-block"},children:(0,a.jsx)("div",{style:{border:2*r+"px solid black",background:"white",textAlign:"left",width:250*r},children:(0,a.jsx)("table",{className:"server-browser",children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i.ENDING_TASK_MANAGER_PROGRAM}),(0,a.jsx)("th",{children:i.ENDING_TASK_MANAGER_USAGE})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:i.DESKTOP_SHORTCUT_OTHER_WORLD}),(0,a.jsxs)("td",{children:[_,"%"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:i.BUDDYLIST_CHAT_WINDOW_TITLE.format("aznl4ws0n")}),(0,a.jsxs)("td",{children:[y,"%"]})]})]})})})}),(0,a.jsxs)("div",{style:{display:"inline-block",width:70*r,verticalAlign:"top",position:"relative"},children:[(0,a.jsx)("div",{style:{position:"absolute",background:"black",width:2*r,height:125*r,left:39*r}}),(0,a.jsxs)("div",{style:{background:"black",padding:5*r,marginLeft:10*r},children:[Array(30).fill(0).map(((e,t)=>(0,a.jsx)("div",{style:{background:2*t<100-T?v:S,width:40*r,height:2*r,marginLeft:5*r,marginBottom:2*r}},t))),(0,a.jsxs)("div",{style:{color:S,textAlign:"center",fontSize:12*r},children:[T,"%"]})]})]})]})]})}),(0,a.jsx)(l.default,{disableCloseButton:!0,name:"aznL4ws0n_controlled",initialPosition:{x:"landscape"===o?210:120,y:"landscape"===o?140:250},title:"aznL4ws0n - Chat",style:{zIndex:1004},onVisibleChange:e=>{e&&(s.current.scrollTop=s.current.scrollHeight-100)},children:(0,a.jsx)("div",{ref:s,style:{width:350*r,height:250*r,background:"white",margin:5*r,padding:10*r,overflowY:"scroll",overflowX:"hidden",wordBreak:"break-word"},children:(0,a.jsxs)("div",{children:[(0,u.ConvertL10nChatLogToHTML)(i.LAWSON_CHATLOG,"aznL4ws0n"),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:i.USER_IS_OFFLINE})}),e>0?(0,a.jsx)("div",{className:"chat-log",children:(0,a.jsx)("span",{className:"system",children:i.ENDING_USER_IS_ONLINE.format("aznL4ws0n")})}):null,e>1?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_HEY_LIZ]}):null,e>2?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_I_KEEP_SEEING_YOUR_ACCOUNT_ONLINE_AND_OFFLINE]}):null,e>3?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_IVE_BEEN_MESSAGING_YOU_EVERY_YEAR]}):null,e>4?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_I_VISITED_YOU_TODAY]}):null,e>5?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_I_DECIDED_THAT_ITS_TIME_TO_MOVE_ON]}):null,e>6?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_YOURE_NOT_COMING_BACK_ARE_YOU_LIZ]}):null,e>7?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_IVE_MISSED_YOU_SO_MUCH]}):null,e>8?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("span",{className:"them",children:"aznL4ws0n"}),":"," ",i.ENDING_GOODBYE]}):null,(0,a.jsx)("br",{}),e>9?(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:i.USER_IS_OFFLINE})}):null]})})})]})};const a=n(74848),l=o(n(96886)),c=n(17322),d=n(96540),u=(i(n(70839)),n(93110)),p=n(78815),h=n(98722),f=n(49616),x=n(81218),m=n(91722),g=i(n(67098))},24544:(e,t,n)=>{e.exports=n.p+"assets/lawson.5c7c51295dbe9c6df814.gif"},24714:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onChangeLanguage:e}){const{escapeMenuVisible:t,setEscapeMenuVisible:n}=(0,g.useEscapeMenu)(),[s,r]=(0,_.useSettingsConsumer)("fullscreen"),[o,i]=(0,_.useSettingsConsumer)("master-volume"),[m,y]=(0,_.useSettingsConsumer)("sfx-volume",0),[E,j]=(0,_.useSettingsConsumer)("music-volume"),{orientation:T,size:S}=(0,d.useContext)(p.LayoutContext),{language:v}=(0,d.useContext)(f.l10n.Context),O=(0,d.useRef)(),[N,I]=(0,d.useState)(["escape-menu"]);return(0,d.useEffect)((()=>{t&&I(["escape-menu"])}),[t]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{zIndex:99999,position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.8)"},children:[(0,a.jsx)("div",{style:{color:"white",textAlign:"center",marginTop:20*S},children:"Paused"}),(0,a.jsxs)(c.WindowManager,{ref:O,visibleWindows:N,setVisibleWindows:I,children:[(0,a.jsx)(c.default,{name:"exit-warning",title:"Warning!",initialPosition:{x:235,y:130},children:(0,a.jsxs)("div",{style:{width:300*S,padding:10*S,textAlign:"center",fontFamily:"sans-serif"},children:["Are you sure you want to exit? Your progress will not be saved.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},onClick:e=>{window.electronAPI?.quitApp()},children:"Yes, I'm Sure"}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},onClick:e=>{O.current.makeWindowInvisible("exit-warning")},children:"Cancel"})]})}),(0,a.jsx)(c.default,{name:"escape-menu",title:(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_TITLE"}),initialPosition:{x:"landscape"===T?270:170,y:100},style:{width:250*S,fontFamily:"sans-serif"},onVisibleChange:e=>{e||n(!1)},children:(0,a.jsxs)("div",{style:{margin:10*S},children:[!h.isMobile&&!1,(0,a.jsx)("br",{}),(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_MASTER_VOLUME"})," ",(0,a.jsx)("br",{}),(0,a.jsx)(b,{slideMinMax:[0,1],value:o,onValueChange:i}),(0,a.jsx)("br",{}),(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_SFX_VOLUME"})," ",(0,a.jsx)("br",{}),(0,a.jsx)(b,{slideMinMax:[0,1],value:m,onValueChange:y}),(0,a.jsx)("br",{}),(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_MUSIC_VOLUME"})," ",(0,a.jsx)("br",{}),(0,a.jsx)(b,{slideMinMax:[0,1],value:E,onValueChange:j}),(0,a.jsx)("br",{}),x.STANDALONE_APP&&(0,a.jsx)("div",{className:"button-98 cursor-pointer",onClick:e=>{O.current.makeWindowVisible("exit-warning"),O.current.bringToTop("exit-warning")},children:(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_QUIT_GAME"})}),l.SHOW_LANGUAGE_MENU&&(0,a.jsxs)("div",{className:"button-98 cursor-pointer",onClick:t=>{e(!0)},children:[(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_LANGUAGE"}),": ",v.NAME]}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",onClick:e=>{(0,u.resetSave)()},children:(0,a.jsx)(f.l10n.Text,{name:"SETTINGS_DELETE_SAVE"})})]})})]})]})})};const a=n(74848),l=n(78815),c=o(n(96886)),d=n(96540),u=n(80985),p=n(49616),h=n(10159),f=n(81218),x=(n(91722),n(98899)),m=i(n(99240)),g=n(84344),_=n(70641);function b({slideMinMax:e,value:t,onValueChange:s}){let[r,o]=(0,d.useState)(!1);const i=(0,d.useRef)(),{size:l}=(0,d.useContext)(p.LayoutContext),c=(0,d.useCallback)((t=>{if(!r)return;const n=i.current.getBoundingClientRect(),o=t.clientX||t.pageX||t.touches&&t.touches[0]?.pageX||t.touches&&t.touches[0]?.clientX,a=(t.clientY||t.pageY||t.touches&&t.touches[0]?.pageY||t.touches&&t.touches[0],o-n.left);s&&s(Math.max(Math.min(a/n.width*(e[1]-e[0])+e[0],e[1]),0))}),[e,r,s]);return(0,d.useEffect)((()=>{const e=()=>{o(!1)};return window.document.body.addEventListener("mousemove",c),window.document.body.addEventListener("mouseup",e),window.document.body.addEventListener("touchmove",c),window.document.body.addEventListener("touchend",e),()=>{window.document.body.removeEventListener("mousemove",c),window.document.body.removeEventListener("mouseup",e),window.document.body.removeEventListener("touchmove",c),window.document.body.removeEventListener("touchend",e)}}),[c]),(0,a.jsxs)("div",{className:"cursor-pointer",style:{width:"100%",height:20*l,display:"inline-block",marginTop:10*l,marginRight:10*l,position:"relative"},ref:i,onMouseDown:e=>{o(!0),r=!0,c(e)},onTouchStart:e=>{o(!0),r=!0,c(e)},onMouseMove:c,children:[(0,a.jsx)("div",{style:{marginTop:4*l,border:2*l+"px inset white"}}),(0,a.jsx)("div",{style:{margin:4*l,position:"relative"},children:(0,a.jsx)("div",{style:{position:"absolute",left:t/(e[1]-e[0])*100+"%",top:-5*l,transform:"translate(-50%, -50%)",width:30*l,height:30*l,backgroundImage:`url(${(0,m.default)(n(26523))})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center"}})})]})}x.STANDALONE_APP&&navigator&&navigator.keyboard&&navigator.keyboard.lock&&navigator.keyboard.lock(["Escape"])},25455:(e,t,n)=>{e.exports=n.p+"assets/key3_down.b495db48293cc4d2b774.mp3"},25496:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,c.useContext)(o.LayoutContext).size,{language:t}=(0,c.useContext)(l.l10n.Context);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.default,{name:"notes",initialPosition:{x:100,y:150},title:"asdfhzfzzz.txt",children:(0,r.jsx)(d.Scrollable,{style:{width:250*e,height:200*e,background:"white",padding:10*e,margin:5*e,overflowY:"scroll",overflowX:"hidden"},onScroll:e=>{if(e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-40){if(p)return;p=!0,(0,a.achieve)(u.AchievementString.SNOOP)}},children:(t.NOTES.map?t.NOTES:[]).map(((e,n)=>(0,r.jsxs)("span",{children:[e,n!==t.NOTES.length-1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]})]},n)))})})})};const r=n(74848),o=n(49616),i=s(n(96886)),a=n(73719),l=n(81218),c=n(96540),d=n(73917),u=n(37815);let p=!1},25582:(e,t,n)=>{e.exports=n.p+"assets/login.88c6eeca1696e7b5aeef.mp3"},26180:(e,t,n)=>{e.exports=n.p+"assets/symbol5.a358c3557a1bea8ee3f0.png"},26523:(e,t,n)=>{e.exports=n.p+"assets/slider.bd31e3920e4570144a8a.png"},26592:(e,t,n)=>{e.exports=n.p+"assets/flag.7b2971fdc66b08c50b2f.gif"},26657:(e,t,n)=>{e.exports=n.p+"assets/song_4.63b5339e8119e0953078.mp3"},26661:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChatContext=void 0;const s=n(96540);t.ChatContext=(0,s.createContext)({})},26696:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoiseGrainPass=void 0;const s=n(14754),r=n(27186),o=n(15392),i=n(91722);class a extends s.Pass{material;fsQuad;uniforms;noiseIntensity;noiseTarget;constructor(e,t,n,i,a){super(),this.noiseIntensity=e,this.noiseTarget=t,o.NoiseGrainShader;const l=o.NoiseGrainShader;this.uniforms=r.UniformsUtils.clone(l.uniforms),this.material=new r.ShaderMaterial({uniforms:this.uniforms,vertexShader:l.vertexShader,fragmentShader:l.fragmentShader}),void 0!==a&&(this.uniforms.grayscale.value=a),void 0!==e&&(this.uniforms.nIntensity.value=e),void 0!==n&&(this.uniforms.sIntensity.value=n),void 0!==i&&(this.uniforms.sCount.value=i),this.fsQuad=new s.FullScreenQuad(this.material)}render(e,t,n,s){this.uniforms.tGhostGirl.value=this.noiseTarget.texture,this.uniforms.tDiffuse.value=n.texture;const r=Math.floor(100*(0,i.pausibleNow)())/100%100;r!==this.uniforms.time.value&&(this.uniforms.time.value=r),this.uniforms.nIntensity.value=this.noiseIntensity,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(),this.fsQuad.render(e))}}t.NoiseGrainPass=a},26983:(e,t,n)=>{e.exports=n.p+"assets/skybox.eea96d9c2e969855370e.png"},27610:(e,t,n)=>{e.exports=n.p+"assets/b.e6466061cedc8c6dd6c6.png"},28150:(e,t,n)=>{e.exports=n.p+"assets/key1_up.ad18c0c35729ce7442ad.mp3"},28842:(e,t,n)=>{e.exports=n.p+"assets/frame1.beffaa66435c1dc6bd50.png"},29085:(e,t,n)=>{e.exports=n.p+"assets/arrow.f9c19299d94dac69842d.png"},29089:(e,t,n)=>{e.exports=n.p+"assets/tutorial.31ef9df7126f50d48b7d.mp3"},29116:(e,t,n)=>{e.exports=n.p+"assets/key2_down.8467945cc1a9d588115e.mp3"},29162:(e,t,n)=>{e.exports=n.p+"assets/train.6dbf0ab72bca15ac5d2d.gif"},29369:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HintContext=void 0,t.default=function({visible:e,setVisible:s}){(0,c.useEffect)((()=>{}));const{orientation:r,size:o}=(0,c.useContext)(d.LayoutContext),{showHintsFor:i,showHintId:f,setShowGlobalHint:x}=(0,c.useContext)(t.HintContext),m=(0,c.useRef)(),[g,_]=(0,c.useState)(["hint-menu"]);return(0,c.useEffect)((()=>{e&&_(["hint-menu"])}),[e]),(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsxs)("div",{style:{zIndex:99999,position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.8)"},children:[(0,a.jsx)("div",{style:{color:"white",textAlign:"center",marginTop:20*o}}),(0,a.jsx)(l.WindowManager,{ref:m,visibleWindows:g,setVisibleWindows:_,children:(0,a.jsx)(l.default,{name:"hint-menu",title:"Hints",initialPosition:{x:"landscape"===r?250:200,y:100},style:{width:300*o},onVisibleChange:e=>{e||s(!1)},children:(0,a.jsx)("div",{style:{margin:10*o},children:h[i]?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("strong",{children:["Puzzle: ",h[i].name]}),h[i].hints.slice(0,f).map(((e,t)=>(0,a.jsxs)("div",{children:[t+1,". ",e]},t))),(0,a.jsx)("br",{}),h[i].hints.length>f&&(0,a.jsxs)("div",{className:"button-98 cursor-pointer",onClick:e=>{x(i,f+1)},children:["Show Hint ",f+1]})]}):(0,a.jsx)("div",{children:"Woops I didn't have enough time to write the other hints for this demo."})})})})]}),u.isMobile&&(0,a.jsx)("div",{style:{zIndex:5e3,position:"absolute",right:10,bottom:10,width:25,height:25,background:`url(${(0,p.default)(n(78453))}) no-repeat center center / contain`,opacity:.5,transition:"opacity 0.5s"},onMouseEnter:e=>{e.currentTarget.style.opacity=1},onMouseLeave:e=>{e.currentTarget.style.opacity=.5},onClick:e=>{s(!0)}})]})};const a=n(74848),l=o(n(96886)),c=n(96540),d=(n(80985),n(49616)),u=n(10159),p=(n(91722),i(n(99240)));t.HintContext=(0,c.createContext)({showHintsFor:0,showHintId:0,setShowGlobalHint:()=>{}});const h=[{name:"Login / Password",hints:["Did you click on the question mark button?","Have you found the names of the people in the photo?","Have you figured out the year of the photo?","Have you found out the age of the girl in the photo?","Can you use math to figure out the birth year?"]},{name:"Music",hints:["Have you read all the chatlogs?","Have you found somewhere to type 4 digits into?","Can you figure out where to position the LoseAmp player?","Did you listen the the lyrics of the songs?","There are numbers pointing to a song, maybe the numbers tell you the order to listen?"]},{name:"Chat",hints:["Have you found someone to talk to?","Have you found the images on your Desktop?","Do the images match any other text you found?"]},{name:"Other World",hints:["Can you login to Other World?","Are you sure you clicked on everything?"]},{name:"Door",hints:["There are two ways to knock, have you found both ways?","Have you found the portraits of the four fallen?","Listen closely. Are the portraits trying to communicate something?","The door is divided by four segments with four door knockers."]},{name:"Statues",hints:["Can you figure out the starting statue and end statues?","Can you figure out the neighboring statues of the start and end?","Statues holding gems will show which statues are neighbors.","One of the statues is greedy, and must be blessed multiple times."]},{name:"Fountain",hints:["Have you found the fountain?","Have you tried pressing the buttons on the fountain to form one of the symbosl?","Read from the fountain.","Where can you input what you've just read?"]},{name:"Near the end :)",hints:[]}]},29397:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onFinished:e,...t}){const{size:n,orientation:s}=(0,d.useContext)(p.LayoutContext),r=(0,d.useRef)(null),[o,i]=(0,d.useState)([]),[h,b]=(0,d.useState)([]),[y,E]=(0,d.useState)(!1),[T,S]=(0,d.useState)(!1),{language:v}=(0,d.useContext)(f.l10n.Context),{neverlandPassword:O}=(0,d.useContext)(l.SaveContext);j.text=()=>v.VISUAL_NOVEL_HMM_OKAY_I_BELIEVE_U_FOR_NOW_YOU_NEED_TO_REGISTER_A_NEW_ACCOUNT_THE_INVITE_CODE_IS_NEVERLAND.format(O),(0,d.useEffect)((()=>{b([{owner:"npc",text:_.text}]),i(_.choices)}),[]),(0,d.useEffect)((()=>{if(T){let t=h;(0,m.setTimeoutPausible)((()=>{t=[...h,{owner:"npc",text:()=>v.VISUAL_NOVEL_HMM_HEY_LIZ_IMMA_BRB}],b(t),(0,x.playSFX)("imreceive"),(0,m.setTimeoutPausible)((()=>{(0,x.playSFX)("signoff"),t=[...t,{owner:"system",text:()=>v.USER_IS_OFFLINE}],b(t),e(),(0,m.setTimeoutPausible)((()=>{r.current.scrollTop=r.current.scrollHeight-100}),10)}),1e3),(0,m.setTimeoutPausible)((()=>{r.current.scrollTop=r.current.scrollHeight-100}),10)}),1e3)}}),[T]);const{makeWindowVisible:N,bringToTop:I}=(0,d.useContext)(c.WindowManagerContext);return(0,a.jsx)(c.default,{name:t.name,initialPosition:t.initialPosition,title:t.title,onVisibleChange:e=>{e&&(0,m.setTimeoutPausible)((()=>{r.current.scrollTop=r.current.scrollHeight-100}),1)},children:(0,a.jsxs)(g.Scrollable,{ref:r,style:{width:400*n,height:250*n,background:"white",margin:5*n,padding:10*n,overflowY:"scroll",overflowX:"hidden",wordBreak:"break-word"},children:[(0,u.ConvertL10nChatLogToHTML)(v.ORION_CHATLOG,"__orion__",(()=>{N("house-loading"),I("house-loading")})),h.map(((e,t)=>"system"!==e.owner?(0,a.jsxs)("div",{className:"chat-log",children:[(0,a.jsx)("b",{style:{color:"npc"===e.owner?"red":"blue"},children:"npc"===e.owner?"__orion__":"alonegurl15"}),": ",e.text()," ",(0,a.jsx)("br",{})]},t):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"system",children:v.USER_IS_OFFLINE})]}))),(0,a.jsx)("br",{}),y?(0,a.jsx)("div",{children:(0,a.jsx)("b",{children:v.ORION_IS_TYPING})}):null,o.map(((e,t)=>(0,a.jsxs)("div",{className:"chat-choice cursor-pointer",onClick:t=>{t.stopPropagation();const n=[...h,{owner:"player",text:e.text}];b(n),(0,x.playSFX)("imsend"),i([]),E(!0),(0,m.setTimeoutPausible)((()=>{r.current.scrollTop=r.current.scrollHeight-100}),10),(0,m.setTimeoutPausible)((()=>{const t=e.next();S(!!t.finished),b([...n,{owner:"npc",text:t.text}]),(0,x.playSFX)("imreceive"),i(t.choices),E(!1),(0,m.setTimeoutPausible)((()=>{r.current.scrollTop=r.current.scrollHeight-100}),10)}),1e3)},children:[t+1,". ",e.text()," ",(0,a.jsx)("br",{})]},t)))]})})};const a=n(74848),l=n(80985),c=o(n(96886)),d=n(96540),u=n(93110),p=n(49616),h=i(n(2543)),f=n(81218),x=(n(17322),n(44190)),m=n(91722),g=n(73917),_={text:()=>f.l10n.language.VISUAL_NOVEL_HEY_IS_THIS_LIZ,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_YEAH_THIS_IS_LIZ,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_OH_INTERESTING_SO_STRANGE_TO_SEE_YOU_HERE,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_UM_YEAH_JUST_TOOK_A_LONG_BREAK,next:()=>b},{text:()=>f.l10n.language.VISUAL_NOVEL_I_DONT_KNOW_WHAT_YOU_MEAN,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_WELL_GLAD_YOURE_BACK_IVE_MISSED_YOU,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_IVE_MISSED_YOU_TOO,next:()=>b}]})}]})},{text:()=>f.l10n.language.VISUAL_NOVEL_CAN_YOU_REMIND_ME_WHO_THIS_IS,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_ITS_ORION_WE_USED_TO_BE_GOOD_FRIENDS_IM_SURPRISED_YOU_DONT_REMEMBER_ME_THATS_FINE,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_UM_YEAH_JUST_TOOK_A_LONG_BREAK,next:()=>b},{text:()=>f.l10n.language.VISUAL_NOVEL_I_DONT_KNOW_WHAT_YOU_MEAN,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_WELL_GLAD_YOURE_BACK_IVE_MISSED_YOU,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_IVE_MISSED_YOU_TOO,next:()=>b}]})}]})}]},b={text:()=>f.l10n.language.VISUAL_NOVEL_ANYTHING_I_CAN_HELP_YOU_WITH,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_DO_YOU_KNOW_THE_PASSCODE_FOR_PHOTOS4EMZIP,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_HMM_I_DONT_REMEMBER_TRY_DIGGING_THROUGH_YOUR_OLD_CHATLOGS_MAYBE_YOU_SENT_IT_TO_SOMEONE,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_OKAY_ILL_TRY_THAT_OUT,next:()=>b}]})},{text:()=>f.l10n.language.VISUAL_NOVEL_WHATS_OTHER_WORLD,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_YOU_GOTTA_BE_JOKING_YOU_DONT_REMEMBER_ITS_THE_GAME_WE_PLAYED_WHEN_WE_WERE_KIDS_ARE_YOU_SURE_THIS_IS_LIZ,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_YES_IM_SURE_HOW_DO_I_GET_IN,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_JUST_TO_MAKE_SURE_YOU_ARE_WHO_YOU_SAY_YOU_ARE_CAN_YOU_TELL_ME_THE_ORDER_OF_THE_FOUR_EVENTS_DURING_OUR_FINAL_RITUAL,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_ILL_TRY_TO_REMEMBER,next:()=>y()},{text:()=>f.l10n.language.VISUAL_NOVEL_I_DONT_REMEMBER,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_THAT_S_OKAY_TAKE_YOUR_TIME,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_OKAY,next:()=>b}]})}]})}]})}]},y=function(){const e=[f.l10n.language.VISUAL_NOVEL_SO_REMIND_ME_WHAT_HAPPENED,f.l10n.language.VISUAL_NOVEL_THAT_MIGHT_BE_RIGHT_THAT_MIGHT_BE_WRONG_WHAT_NEXT,f.l10n.language.VISUAL_NOVEL_OK_COULD_BE_WHAT_HAPPENED_BUT_I_WONT_TELL_YOU_WHAT_THEN,f.l10n.language.VISUAL_NOVEL_AND_FINALLY],t=["VISUAL_NOVEL_WE_BLESSED_THE_STATUE","VISUAL_NOVEL_WE_LIT_CANDLES_FOR_OUR_TRIBUTES","VISUAL_NOVEL_WE_GAZED_UPON_THE_FOUNTAIN","VISUAL_NOVEL_WE_FOUGHT_THE_LOST_BOYS","VISUAL_NOVEL_WE_RESPECTED_THE_FOUR_FALLEN","VISUAL_NOVEL_WE_SUNG_AWAY_OUR_AGE"],n=[],s=["VISUAL_NOVEL_WE_RESPECTED_THE_FOUR_FALLEN","VISUAL_NOVEL_WE_BLESSED_THE_STATUE","VISUAL_NOVEL_WE_GAZED_UPON_THE_FOUNTAIN","VISUAL_NOVEL_WE_LIT_CANDLES_FOR_OUR_TRIBUTES"];let r=-1;const o=()=>{if(r++,r>=e.length)return h.default.isEqual(n,s)?j:E;t.sort((()=>Math.random()-.5));let i=e[r];return{text:()=>i,choices:[...t.map(((e,s)=>({text:()=>f.l10n.language[e],next:()=>(n.push(t.splice(s,1)[0]),o())}))),{text:()=>f.l10n.language.VISUAL_NOVEL_HOLD_ON_MY_MEMORY_IS_JUST_FUZZY,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_SURE_TAKE_YOUR_TIME_YOU_CAN_PROBABLY_FIND_SOMETHING_ON_YOUR_COMPUTER_TO_HELP_YOU_REFRESH_YOUR_MEMORY,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_THANKS_ILL_TRY_AGAIN,next:()=>b}]})}]}};return o()},E={text:()=>f.l10n.language.VISUAL_NOVEL_I_DONT_THINK_THATS_IT,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_HOLD_ON_MY_MEMORY_IS_JUST_FUZZY,next:()=>({text:()=>f.l10n.language.VISUAL_NOVEL_SURE_TAKE_YOUR_TIME_YOU_CAN_PROBABLY_FIND_SOMETHING_ON_YOUR_COMPUTER_TO_HELP_YOU_REFRESH_YOUR_MEMORY,choices:[{text:()=>f.l10n.language.VISUAL_NOVEL_THANKS_ILL_TRY_AGAIN,next:()=>b}]})}]},j={text:()=>f.l10n.language.VISUAL_NOVEL_HMM_OKAY_I_BELIEVE_U_FOR_NOW_YOU_NEED_TO_REGISTER_A_NEW_ACCOUNT_THE_INVITE_CODE_IS_NEVERLAND.format("NEVERLAND"),choices:[],finished:!0}},29478:(e,t,n)=>{e.exports=n.p+"assets/rain.276da54aa3e0f0ceff6c.gif"},30112:(e,t,n)=>{e.exports=n.p+"assets/candle.2bf72b1cd4796816726b.png"},30667:(e,t,n)=>{e.exports=n.p+"assets/door_knocker_1.d16f767413dc8eed0331.gif"},31469:(e,t,n)=>{e.exports=n.p+"assets/m.03c377cc5ab352f0ab2a.png"},31956:(e,t,n)=>{e.exports=n.p+"assets/Plaster.ac645ff9a50fd50604c7.png"},32625:(e,t,n)=>{e.exports=n.p+"assets/bird.7635e44300fa76ce493f.gif"},32853:(e,t,n)=>{e.exports=n.p+"assets/play.2af606f73448cf66a8c5.gif"},34873:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,a.useContext)(o.LayoutContext).size;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{name:"img001.jpg",initialPosition:{x:10,y:10},title:"IMG001.jpg",children:(0,r.jsx)("img",{src:n(74319),alt:"img001",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:256*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"img002.jpg",initialPosition:{x:20,y:20},title:"IMG002.jpg",children:(0,r.jsx)("img",{src:n(84872),alt:"img001",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:256*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"img003.jpg",initialPosition:{x:30,y:30},title:"IMG003.jpg",children:(0,r.jsx)("img",{src:n(85601),alt:"img001",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:256*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"img004.jpg",initialPosition:{x:40,y:40},title:"IMG004.jpg",children:(0,r.jsx)("img",{src:n(2266),alt:"img001",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:256*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"lawson.png",initialPosition:{x:50,y:50},title:"lawson.jpg",children:(0,r.jsx)("img",{src:n(24544),alt:"img001",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:256*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"SCAN01.jpg",initialPosition:{x:50,y:50},title:"SCAN01.jpg",children:(0,r.jsx)("img",{src:n(72206),alt:"SCAN01",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:400*e,pointerEvents:"none"}})}),(0,r.jsx)(i.default,{name:"SCAN02.jpg",initialPosition:{x:50,y:50},title:"SCAN02.jpg",children:(0,r.jsx)("img",{src:n(94469),alt:"SCAN02",onDrag:e=>e.preventDefault(),style:{padding:5*e,width:400*e,pointerEvents:"none"}})})]})};const r=n(74848),o=n(49616),i=s(n(96886)),a=n(96540)},34921:(e,t,n)=>{e.exports=n.p+"assets/creepyvid2.092a95f7cf9119f35a6f.mp4"},35117:(e,t,n)=>{e.exports=n.p+"assets/portrait3.d3e313123d676125bd1f.gif"},35723:(e,t,n)=>{e.exports=n.p+"assets/cz.0ea25e9620918415e2b1.jsonc"},35818:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const s="#include \nprecision mediump float;\n\nuniform sampler2D tDiffuse;\n\nvarying vec2 vUv;\n\nvoid main() { gl_FragColor = texture2D(tDiffuse, vUv); }\n"},37276:(e,t,n)=>{e.exports=n.p+"assets/liz_glow.f74bdb2d248de8d20b1c.png"},37815:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AchievementString=void 0,function(e){e.ASL="ASL",e.BASIC_MATH="BASIC_MATH",e.SCOTTY_2000="SCOTTY_2000",e.THANK_YOU="THANK_YOU",e.SNOOP="SNOOP",e.YOURE_NOT_LIZ="YOURE_NOT_LIZ",e.KNOCK="KNOCK",e.ZIP_UNLOCKED="ZIP_UNLOCKED",e.FOUNTAIN="FOUNTAIN",e.BLESSED="BLESSED",e.TRIBUTES="TRIBUTES"}(n||(t.AchievementString=n={}))},38780:(e,t,n)=>{n.d(t,{A:()=>s});const s='Copyright © 2020-2023 GGBotNet (https://ggbot.net/fonts/), with Reserved Font Name "Pixeloid".\r\n\r\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\r\nThis license is copied below, and is also available with a FAQ at:\r\nhttp://scripts.sil.org/OFL\r\n\r\n-----------------------------------------------------------\r\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r\n-----------------------------------------------------------\r\n\r\nPREAMBLE\r\nThe goals of the Open Font License (OFL) are to stimulate worldwide\r\ndevelopment of collaborative font projects, to support the font creation\r\nefforts of academic and linguistic communities, and to provide a free and\r\nopen framework in which fonts may be shared and improved in partnership\r\nwith others.\r\n\r\nThe OFL allows the licensed fonts to be used, studied, modified and\r\nredistributed freely as long as they are not sold by themselves. The\r\nfonts, including any derivative works, can be bundled, embedded, \r\nredistributed and/or sold with any software provided that any reserved\r\nnames are not used by derivative works. The fonts and derivatives,\r\nhowever, cannot be released under any other type of license. The\r\nrequirement for fonts to remain under this license does not apply\r\nto any document created using the fonts or their derivatives.\r\n\r\nDEFINITIONS\r\n"Font Software" refers to the set of files released by the Copyright\r\nHolder(s) under this license and clearly marked as such. This may\r\ninclude source files, build scripts and documentation.\r\n\r\n"Reserved Font Name" refers to any names specified as such after the\r\ncopyright statement(s).\r\n\r\n"Original Version" refers to the collection of Font Software components as\r\ndistributed by the Copyright Holder(s).\r\n\r\n"Modified Version" refers to any derivative made by adding to, deleting,\r\nor substituting -- in part or in whole -- any of the components of the\r\nOriginal Version, by changing formats or by porting the Font Software to a\r\nnew environment.\r\n\r\n"Author" refers to any designer, engineer, programmer, technical\r\nwriter or other person who contributed to the Font Software.\r\n\r\nPERMISSION & CONDITIONS\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of the Font Software, to use, study, copy, merge, embed, modify,\r\nredistribute, and sell modified and unmodified copies of the Font\r\nSoftware, subject to the following conditions:\r\n\r\n1) Neither the Font Software nor any of its individual components,\r\nin Original or Modified Versions, may be sold by itself.\r\n\r\n2) Original or Modified Versions of the Font Software may be bundled,\r\nredistributed and/or sold with any software, provided that each copy\r\ncontains the above copyright notice and this license. These can be\r\nincluded either as stand-alone text files, human-readable headers or\r\nin the appropriate machine-readable metadata fields within text or\r\nbinary files as long as those fields can be easily viewed by the user.\r\n\r\n3) No Modified Version of the Font Software may use the Reserved Font\r\nName(s) unless explicit written permission is granted by the corresponding\r\nCopyright Holder. This restriction only applies to the primary font name as\r\npresented to the users.\r\n\r\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r\nSoftware shall not be used to promote, endorse or advertise any\r\nModified Version, except to acknowledge the contribution(s) of the\r\nCopyright Holder(s) and the Author(s) or with their explicit written\r\npermission.\r\n\r\n5) The Font Software, modified or unmodified, in part or in whole,\r\nmust be distributed entirely under this license, and must not be\r\ndistributed under any other license. The requirement for fonts to\r\nremain under this license does not apply to any document created\r\nusing the Font Software.\r\n\r\nTERMINATION\r\nThis license becomes null and void if any of the above conditions are\r\nnot met.\r\n\r\nDISCLAIMER\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r\nOTHER DEALINGS IN THE FONT SOFTWARE.\r\n'},39484:(e,t,n)=>{e.exports=n.p+"assets/clap.d7d8efc7a9b388706497.gif"},39635:(e,t,n)=>{e.exports=n.p+"assets/s.fb755407630154efb268.png"},39899:(e,t,n)=>{e.exports=n.p+"assets/ru.4ecffbcdb417d1b52653.jsonc"},39975:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Sounds=function({children:e}){const{getSound:t}=(0,o.useSound)(),[d,u]=(0,r.useSettingsState)("master-volume",1),[p,h]=(0,r.useSettingsState)("sfx-volume",1),[f,x]=(0,r.useSettingsState)("music-volume",1);return(0,i.useEffect)((()=>{(0,a.setSFXBusVolume)(d*p),(0,l.setMusicBusVolume)(d*f),(0,c.setMusicPlayerBusVolume)(d*f),t("master").volume.value=30*d-30,t("music").volume.value=30*f-30}),[p,f,d]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.SoundPanVol,{name:"master",children:(0,s.jsx)(o.SoundPanVol,{name:"music",children:(0,s.jsxs)(o.SoundSampleCatch,{children:[(0,s.jsx)(o.SoundSample,{name:"dialup",src:n(89850)}),(0,s.jsx)(o.SoundSample,{name:"beep",src:n(90227)})]})})})})};const s=n(74848),r=n(70641),o=n(49046),i=n(96540),a=n(44190),l=n(17322),c=n(84613)},40352:(e,t,n)=>{e.exports=n.p+"assets/bts5.3a0adc41fe97498b2aac.gif"},40454:(e,t,n)=>{e.exports=n.p+"assets/notepad.e9430243fd32543de900.gif"},40466:(e,t,n)=>{e.exports=n.p+"assets/eagle.9498a502e499c4acafdf.gif"},40790:(e,t,n)=>{e.exports=n.p+"assets/n.fe9b28ecff3a79efbb1b.png"},41428:(e,t,n)=>{e.exports=n.p+"assets/bts1.ce40cd10a1f712599bff.gif"},41500:(e,t,n)=>{e.exports=n.p+"assets/PixeloidSans.e3def220c35436048cae.otf"},41608:(e,t,n)=>{e.exports=n.p+"assets/lion.c2e14f51fb4987861bd3.gif"},41656:(e,t,n)=>{e.exports=n.p+"assets/noise_black_transparent.3768f6eac4994843ded6.png"},42172:(e,t,n)=>{e.exports=n.p+"assets/phone.5a5bfe648bd7114b47b2.mp3"},42465:(e,t,n)=>{e.exports=n.p+"assets/bts_jenna.d6d6effa553725752b52.gif"},42590:(e,t,n)=>{e.exports=n.p+"assets/brick.a23d35a9c380dec75ade.gif"},42948:(e,t,n)=>{e.exports=n.p+"assets/knock.0f3cffd09f93a807fd7e.mp3"},43105:(e,t,n)=>{e.exports=n.p+"assets/glow_lion.f36658b3b9142bbf0ffd.png"},43373:(e,t,n)=>{e.exports=n.p+"assets/song_8.fa59cad655ea848c31ea.mp3"},43698:(e,t,n)=>{e.exports=n.p+"assets/key5_up.86af276c8bcfb07e1e3f.mp3"},44011:(e,t,n)=>{e.exports=n.p+"assets/fountain.929b5a2b891ff542f514.mp3"},44190:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setSFXBusVolume=function(e){c=e;for(const t of Object.keys(a)){const n=a[t];n.volume(e*(n.original.volume||1))}},t.playSFX=function(e){a[e]||function(e){if(a[e])return;const t=new r.Howl({src:[i[e].src],autoplay:!1,volume:i[e].volume||1});t.original=i[e],t.on("play",(e=>{Object.keys(l).includes(""+e)||(l[""+e]=t)})),t.on("end",(e=>{Object.keys(l).includes(""+e)&&(l[""+e]=null,delete l[""+e])})),a[e]=t}(e);if(!a[e])return;a[e].volume(c*(a[e].original.volume||1));a[e].play()},t.stopSFX=function(e){if(!a[e])return;a[e].pause()};const r=n(94196),o=s(n(36430)),i={imreceive:{src:n(78942),volume:.15},imsend:{src:n(95345),volume:.15},imreceive_echo:{src:n(94672),volume:1},phone:{src:n(42172)},mousedown:{src:n(17953),volume:.3},mouseup:{src:n(5266),volume:.3},key1_down:{src:n(20509),volume:.5},key1_up:{src:n(28150),volume:.5},key2_down:{src:n(29116),volume:.5},key2_up:{src:n(7443),volume:.5},key3_down:{src:n(25455),volume:.5},key3_up:{src:n(64100),volume:.5},key4_down:{src:n(21486),volume:.5},key4_up:{src:n(87969),volume:.5},key5_down:{src:n(91169),volume:.5},key5_up:{src:n(43698),volume:.5},knock:{src:n(42948),volume:1},knock_echo:{src:n(73864),volume:1},door_open:{src:n(70407),volume:1},candle:{src:n(83275),volume:1},rumble:{src:n(84899),volume:.4},stonebutton:{src:n(15575),volume:.4},signoff:{src:n(90172),volume:1},aum:{src:n(9674),volume:.3},twinkle1:{src:n(14757),volume:.05},twinkle2:{src:n(47186),volume:.05}},a={},l={};"undefined"!=typeof window&&(window.pauseListenerSFX&&o.default.off("pause",window.pauseListenerSFX),window.pauseListenerSFX=e=>{if(e)for(const e of Object.keys(l)){l[e].pause(parseInt(e))}else for(const e of Object.keys(l)){l[e].play(parseInt(e))}},o.default.on("pause",window.pauseListenerSFX));let c=0},45544:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onUnlocked:e}){const[t,n]=(0,o.useState)(""),{size:s,orientation:u}=(0,o.useContext)(a.LayoutContext),{language:p}=(0,o.useContext)(c.l10n.Context),{setShowGlobalHint:h}=(0,o.useContext)(i.HintContext);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.default,{name:"COOL!!!.zip",initialPosition:{x:"landscape"===u?200:70,y:"landscape"===u?150:250},title:"UnZipper - COOL!!!.zip",children:(0,r.jsxs)("div",{style:{width:400*s,textAlign:"center",padding:30*s,background:"rgb(240, 180, 180)"},children:[(0,r.jsx)("div",{children:"This ZIP file is password-protected with a sentence."}),(0,r.jsx)("br",{}),(0,r.jsx)("div",{children:"Hint: SCAN**.jpg"}),(0,r.jsxs)("form",{action:"#",onSubmit:t=>{t.preventDefault(),"whydoikeepcomingbackhere"===t.target[0].value.toLowerCase().replace(/[^a-zA-Z]/g,"")?(e(),h(2)):(n(p.UNZIPPER_INCORRECT_PASSWORD),(0,d.setTimeoutPausible)((()=>{n("")}),1e3))},autoComplete:"off",children:[(0,r.jsx)("input",{style:{border:2*s+"px solid black",borderRadius:0,padding:10*s,width:200*s,fontSize:Math.max(16,16*s),verticalAlign:"middle"},type:"text"}),(0,r.jsx)("input",{className:"button-98 cursor-pointer",style:{color:"black",height:Math.max(38,50*s)},type:"submit",value:p.UNZIPPER_UNLOCK_BUTTON})]}),(0,r.jsx)("div",{style:{color:"red",height:20*s},children:t})]})})})};const r=n(74848),o=n(96540),i=n(29369),a=n(49616),l=s(n(96886)),c=(n(73719),n(81218)),d=n(91722)},45607:(e,t,n)=>{e.exports=n.p+"assets/bts6.e262c98119540c490cd1.gif"},45627:(e,t,n)=>{e.exports=n.p+"assets/portrait1.18ebb488b3b8a1649bd1.gif"},46179:(e,t,n)=>{e.exports=n.p+"assets/discofloor.d7ee881105827ea6cf4e.gif"},46714:(e,t,n)=>{e.exports=n.p+"assets/glow_cow.c13d8d3123b7be36bf48.png"},47107:(e,t,n)=>{e.exports=n.p+"assets/back_up_arrow.b9b9daff7a5c825a47d3.png"},47186:(e,t,n)=>{e.exports=n.p+"assets/twinkle2.d0c7c551ee38253d34cf.mp3"},47279:(e,t,n)=>{e.exports=n.p+"assets/bts_fountain.1726bd287ddc63118135.gif"},48469:(e,t,n)=>{e.exports=n.p+"assets/candle_unlit.3c510550ed0ba2d2691c.png"},48676:(e,t,n)=>{e.exports=n.p+"assets/pt.64f8e91dcffb11d3cdbf.jsonc"},50062:(e,t,n)=>{n.d(t,{A:()=>s});const s='Copyright (c) 2022, TakWolf (https://takwolf.com),\r\nwith Reserved Font Name \'Fusion Pixel\'.\r\n\r\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\r\nThis license is copied below, and is also available with a FAQ at:\r\nhttps://openfontlicense.org\r\n\r\n\r\n-----------------------------------------------------------\r\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r\n-----------------------------------------------------------\r\n\r\nPREAMBLE\r\nThe goals of the Open Font License (OFL) are to stimulate worldwide\r\ndevelopment of collaborative font projects, to support the font creation\r\nefforts of academic and linguistic communities, and to provide a free and\r\nopen framework in which fonts may be shared and improved in partnership\r\nwith others.\r\n\r\nThe OFL allows the licensed fonts to be used, studied, modified and\r\nredistributed freely as long as they are not sold by themselves. The\r\nfonts, including any derivative works, can be bundled, embedded,\r\nredistributed and/or sold with any software provided that any reserved\r\nnames are not used by derivative works. The fonts and derivatives,\r\nhowever, cannot be released under any other type of license. The\r\nrequirement for fonts to remain under this license does not apply\r\nto any document created using the fonts or their derivatives.\r\n\r\nDEFINITIONS\r\n"Font Software" refers to the set of files released by the Copyright\r\nHolder(s) under this license and clearly marked as such. This may\r\ninclude source files, build scripts and documentation.\r\n\r\n"Reserved Font Name" refers to any names specified as such after the\r\ncopyright statement(s).\r\n\r\n"Original Version" refers to the collection of Font Software components as\r\ndistributed by the Copyright Holder(s).\r\n\r\n"Modified Version" refers to any derivative made by adding to, deleting,\r\nor substituting -- in part or in whole -- any of the components of the\r\nOriginal Version, by changing formats or by porting the Font Software to a\r\nnew environment.\r\n\r\n"Author" refers to any designer, engineer, programmer, technical\r\nwriter or other person who contributed to the Font Software.\r\n\r\nPERMISSION & CONDITIONS\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of the Font Software, to use, study, copy, merge, embed, modify,\r\nredistribute, and sell modified and unmodified copies of the Font\r\nSoftware, subject to the following conditions:\r\n\r\n1) Neither the Font Software nor any of its individual components,\r\nin Original or Modified Versions, may be sold by itself.\r\n\r\n2) Original or Modified Versions of the Font Software may be bundled,\r\nredistributed and/or sold with any software, provided that each copy\r\ncontains the above copyright notice and this license. These can be\r\nincluded either as stand-alone text files, human-readable headers or\r\nin the appropriate machine-readable metadata fields within text or\r\nbinary files as long as those fields can be easily viewed by the user.\r\n\r\n3) No Modified Version of the Font Software may use the Reserved Font\r\nName(s) unless explicit written permission is granted by the corresponding\r\nCopyright Holder. This restriction only applies to the primary font name as\r\npresented to the users.\r\n\r\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r\nSoftware shall not be used to promote, endorse or advertise any\r\nModified Version, except to acknowledge the contribution(s) of the\r\nCopyright Holder(s) and the Author(s) or with their explicit written\r\npermission.\r\n\r\n5) The Font Software, modified or unmodified, in part or in whole,\r\nmust be distributed entirely under this license, and must not be\r\ndistributed under any other license. The requirement for fonts to\r\nremain under this license does not apply to any document created\r\nusing the Font Software.\r\n\r\nTERMINATION\r\nThis license becomes null and void if any of the above conditions are\r\nnot met.\r\n\r\nDISCLAIMER\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r\nOTHER DEALINGS IN THE FONT SOFTWARE.\r\n'},50831:(e,t,n)=>{e.exports=n.p+"assets/mic.59a43b7d043b583f43f3.png"},51019:(e,t,n)=>{e.exports=n.p+"assets/song_1_2.3b90a68a619108bb039a.mp3"},51920:(e,t,n)=>{e.exports=n.p+"assets/pc_horror.1bda71cfb53864b6869b.png"},52273:(e,t,n)=>{e.exports=n.p+"assets/a.8be027d5deade1bfb6a4.png"},52725:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileBrowserContext=void 0,t.default=function({title:e,cb:t,browserCallback:s,mapOnly:r}){const o={root:!0,name:"/Users/liz",type:"folder",contents:[{name:"Wallpapers",display:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_WALLPAPERS_FOLDER"}),type:"folder",contents:[{name:"me_and_best_friend.jpg",display:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_ME_AND_MY_BF_JPG"}),type:"image",source:n(54383)}]},{name:"Desktop",display:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_DESKTOP_FOLDER"}),type:"folder",contents:[{name:"lawson.jpg",type:"image",source:n(24544)},{name:"IMG01.jpg",type:"image",source:n(74319)},{name:"IMG02.jpg",type:"image",source:n(84872)},{name:"IMG03.jpg",type:"image",source:n(85601)},{name:"IMG04.jpg",type:"image",source:n(2266)},{name:"asdfhzfzzz.txt",type:"text"}]},{name:"Pictures",display:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_PICTURES_FOLDER"}),type:"folder",contents:[{name:"me.jpg",display:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_ME_JPG"}),type:"image",source:n(21825)}]}]},i=e=>{e.contents.forEach((t=>{t.parent=e,"folder"===t.type&&i(t)}))};i(o);const{makeWindowInvisible:h}=(0,c.useContext)(l.WindowManagerContext),f=e=>e.parent?f(e.parent)+"/"+e.name:e.name,[x,m]=(0,c.useState)(""),[g,_]=(0,c.useState)(""),[b,y]=(0,c.useState)(o),[E,j]=(0,c.useState)(""),T=(0,c.useContext)(d.LayoutContext).size;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(l.default,{name:"files",style:{zIndex:1001,width:500*T,height:400*T},initialPosition:{x:50,y:50},title:e||"File Browser",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("ul",{className:"file-browser",children:[b.root?null:(0,a.jsxs)("li",{onClick:e=>{y(b.parent)},children:[(0,a.jsx)("img",{height:20*T,src:n(47107)})," ",(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_GO_BACK"})]}),b.contents.map((e=>"folder"===e.type?(0,a.jsxs)("li",{style:{wordBreak:"break-all"},className:x===f(b)+"/"+e.name?"selected":"",onClick:t=>{y(e),m(),j()},children:[(0,a.jsx)("img",{height:20*T,src:n(59335)})," ",e.display||e.name]},e.name):"text"===e.type?(0,a.jsxs)("li",{style:{wordBreak:"break-all"},className:x===f(b)+"/"+e.name?"selected":"",onClick:t=>{m(f(b)+"/"+e.name),j(e.source),_(e)},children:[(0,a.jsx)("img",{height:20*T,src:n(40454)})," ",e.display||e.name]},e.name):(0,a.jsxs)("li",{style:{wordBreak:"break-all"},className:x===f(b)+"/"+e.name?"selected":"",onClick:t=>{g===e&&(s(g),h("files")),m(f(b)+"/"+e.name),j(e.source),_(e)},children:[(0,a.jsx)("img",{height:20*T,src:n(15957)})," ",e.display||e.name]})))]}),(0,a.jsx)("div",{className:"file-preview",style:{display:"inline-block"},children:!r&&E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{backgroundImage:`url(${(0,u.default)(E)})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",marginTop:10*T,height:230*T,width:200*T}}),(0,a.jsx)("div",{style:{display:"inline-block",width:200*T,wordBreak:"break-word"},children:x})]})})]}),(0,a.jsxs)("div",{style:{position:"absolute",bottom:0,right:0,margin:10},children:[(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*T},onClick:e=>{s(g),h("files")},children:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_OPEN"})}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*T},onClick:e=>{h("files")},children:(0,a.jsx)(p.l10n.Text,{name:"FILE_BROWSER_CANCEL"})})]})]})})};const a=n(74848),l=o(n(96886)),c=n(96540),d=n(49616),u=i(n(99240)),p=n(81218);t.FileBrowserContext=(0,c.createContext)({openBrowser:(e,t,n)=>{}})},52763:(e,t,n)=>{e.exports=n.p+"assets/it.54d9ca131acf04041b06.jsonc"},53702:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCameraContext=void 0,t.default=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(_,{}),(0,a.jsx)(b,{})]})};const a=n(74848),l=o(n(96886)),c=n(96540),d=n(17322),u=n(49616),p=i(n(36430)),h=n(81218),f=n(91722),x=i(n(67098)),m=n(34921);function g(){const{makeWindowVisible:e,makeWindowInvisible:t,visibleWindows:n}=(0,c.useContext)(l.WindowManagerContext),s=((0,c.useRef)(),()=>{t("accept-call"),e("dialing-in-call"),(0,d.pauseBGM)()}),[r,o]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(r){const e=(0,f.setTimeoutPausible)((()=>{s()}),5e3);return(0,d.playBGM)("phone"),()=>{e()}}}),[r]),(0,c.useEffect)((()=>{o(n.includes("accept-call"))}),[n]);const{size:i,orientation:p}=(0,c.useContext)(u.LayoutContext),{language:m}=(0,c.useContext)(h.l10n.Context);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{name:"accept-call",title:m.VIDEO_CALL_INCOMING_CALL,initialPosition:{x:"landscape"===p?250:175,y:"landscape"===p?100:280},style:{zIndex:1003},onVisibleChange:e=>{e||s()},children:(0,a.jsxs)("div",{style:{padding:5*i},children:[(0,a.jsx)("div",{style:{margin:4*i,width:250*i},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,x.default)(m.VIDEO_CALL_REQUEST.toString(),["b"])}})}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*i},onClick:s,children:m.VIDEO_CALL_ACCEPT}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*i},onClick:s,children:m.VIDEO_CALL_DECLINE})]})}),r?(0,a.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1002},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}):null]})}function _(){const{makeWindowVisible:e,makeWindowInvisible:t,visibleWindows:n}=(0,c.useContext)(l.WindowManagerContext),[s,r]=(0,c.useState)(!1),o=(0,c.useRef)();(0,c.useEffect)((()=>{r(n.includes("dialing-in-call"))}),[n]),(0,c.useEffect)((()=>{s?(o.current&&clearTimeout(o.current),o.current=(0,f.setTimeoutPausible)((()=>{t("dialing-in-call"),e("video-call")}),2e3)):o.current&&clearTimeout(o.current)}));const{size:i,orientation:d}=(0,c.useContext)(u.LayoutContext),{language:p}=(0,c.useContext)(h.l10n.Context);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{name:"dialing-in-call",title:p.VIDEO_CALL_TITLE,disableCloseButton:!0,initialPosition:{x:"landscape"===d?270:150,y:"landscape"===d?150:300},children:(0,a.jsx)("div",{style:{padding:20*i,width:250*i},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,x.default)(p.VIDEO_CALL_CONNECTING.toString(),["b"])}})})}),s?(0,a.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1002},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}):null]})}function b(){const{makeWindowInvisible:e,setVisibleWindows:n,visibleWindows:s}=(0,c.useContext)(l.WindowManagerContext),[r,o]=(0,c.useState)(!1),i=(0,c.useRef)(),[x,g]=(0,c.useState)(m),_=(0,c.useRef)();(0,c.useEffect)((()=>{var e=new XMLHttpRequest;e.open("GET",m,!0),e.responseType="blob",e.onload=function(){if(200===this.status){var e=this.response;_.current=URL.createObjectURL(e)}},e.send();const t=e=>{"NotSupportedError"===e.reason.name&&9===e.reason.code&&(g(_.current),b.current.play(),e.returnValue=!1,e.preventDefault(),e.stopPropagation())};return window.addEventListener("unhandledrejection",t),()=>{e.onload=null,e.abort(),window.removeEventListener("unhandledrejection",t)}}),[]),(0,c.useEffect)((()=>{o(s.includes("video-call")),s.includes("video-call")&&s.length>1&&n(["video-call"])}),[s]);const b=(0,c.useRef)(),{setShowCamera:y}=(0,c.useContext)(t.ShowCameraContext),E=(0,c.useRef)(!1);(0,c.useEffect)((()=>{const e=e=>{e?(E.current=!b.current.paused&&!b.current.ended&&b.current.currentTime>0,E.current&&b.current.pause()):E.current&&b.current.play()};p.default.on("pause",e);return()=>{p.default.off("pause",e)}}),[]),(0,c.useEffect)((()=>{if(r){i.current&&clearTimeout(i.current),i.current=(0,f.setTimeoutPausible)((()=>{e("video-call"),(0,d.pauseBGM)(),y(!1)}),10900),b.current.currentTime=0;try{b.current.play()}catch(e){g(_.current)}(0,d.playBGM)("white_noise"),y(!0)}else i.current&&clearTimeout(i.current)}),[r]);const{size:j,orientation:T}=(0,c.useContext)(u.LayoutContext),{language:S}=(0,c.useContext)(h.l10n.Context);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{name:"video-call",title:S.VIDEO_CALL_TITLE,disableCloseButton:!0,initialPosition:{x:"landscape"===T?200:40,y:"landscape"===T?20:100},style:{zIndex:1001},children:(0,a.jsxs)("div",{style:{padding:5*j},children:[(0,a.jsx)("strong",{style:{margin:5*j,color:"red"},children:S.VIDEO_CALL_CAMERA_ON}),(0,a.jsx)("br",{}),(0,a.jsx)("video",{playsInline:!0,ref:b,src:x,muted:!0,controls:!1,onEnded:()=>{n((e=>e.filter((e=>"video-call"!==e)))),y(!1),(0,d.pauseBGM)()},style:{margin:5*j,width:500*j,objectFit:"cover"}}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*j},children:S.VIDEO_CALL_END_CALL}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*j},children:S.VIDEO_CALL_MUTE})]})}),r?(0,a.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1002},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}):null]})}t.ShowCameraContext=(0,c.createContext)()},53758:(e,t,n)=>{e.exports=n.p+"assets/jp.f06f812944b9b3315c0f.jsonc"},54383:(e,t,n)=>{e.exports=n.p+"assets/liz_em_desktop_cropped.0dc544973dfb61d5b411.gif"},54405:(e,t,n)=>{e.exports=n.p+"assets/song_3_2.24e69a7bbe413a038296.mp3"},54820:(e,t,n)=>{e.exports=n.p+"assets/fr.e6665df5aada37acff64.jsonc"},55081:(e,t,n)=>{e.exports=n.p+"assets/lock.dc4bd63f43fbbcc77691.png"},55909:(e,t,n)=>{e.exports=n.p+"assets/bts_isabel.47f25eb0f77f9d6f4f93.gif"},56266:(e,t,n)=>{e.exports=n.p+"assets/bts_bg.b3dba07844835a5841c5.gif"},56505:(e,t,n)=>{e.exports=n.p+"assets/comic-sans-ms-pixel-rus-eng.31dba021cca18d2274fc.otf"},57367:(e,t,n)=>{e.exports=n.p+"assets/busy.6258b3802062858ef3ed.png"},57845:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{scene:e}=(0,a.useThree)(),t=(0,o.useCubeTexture)([l,l,l,l,l,l],{path:""});return e.background=t,(0,i.useEffect)((()=>{t.minFilter=r.NearestFilter,t.magFilter=r.NearestFilter,t.wrapS=r.RepeatWrapping,t.wrapT=r.RepeatWrapping,t.needsUpdate=!0}),[t]),(0,s.jsx)(s.Fragment,{})};const s=n(74848),r=n(27186),o=n(56448),i=n(96540),a=n(73560),l=n(65936)},57955:(e,t,n)=>{e.exports=n.p+"assets/glow_eagle.f177a802bd2cec64e28d.png"},58220:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({doorUnlocked:e,setDoorUnlocked:t,morseSolved:s,setMorseSolved:r}){const o=(0,O.useLoader)(c.TextureLoader,n(42590));(0,x.useEffect)((()=>{o.minFilter=c.NearestFilter,o.magFilter=c.NearestFilter,o.wrapS=c.RepeatWrapping,o.wrapT=c.RepeatWrapping,o.repeat.set(30,5),o.needsUpdate=!0}),[o]);const i=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{i.setNavigation&&i.setNavigation({forward:{level:"house2"}})}),[i]);const l=(0,x.useContext)(d.EffectsContext);return(0,x.useEffect)((()=>{l.setNoiseIntensity&&l.setNoiseIntensity(.3)})),(0,x.useEffect)((()=>{(0,h.playBGM)("house")})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#000",0,20]}),(0,a.jsxs)("object3D",{position:[0,2,0],children:[(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-4,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,50,30]}),(0,a.jsx)("meshStandardMaterial",{map:o})]}),(0,a.jsx)(D,{position:[0,0,-7],rotation:[0,0,0],doorUnlocked:e,setDoorUnlocked:t,morseSolved:s,setMorseSolved:r})]})]})},t.HouseOfBaphomet2=function({doorUnlocked:e,setDoorUnlocked:t,morseSolved:s,setMorseSolved:r}){const o=(0,O.useLoader)(c.TextureLoader,n(42590));(0,x.useEffect)((()=>{o.minFilter=c.NearestFilter,o.magFilter=c.NearestFilter,o.wrapS=c.RepeatWrapping,o.wrapT=c.RepeatWrapping,o.repeat.set(30,5),o.needsUpdate=!0}),[o]);const i=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{i.setNavigation&&i.setNavigation({backward:{level:"house1"},right:{level:"garden"}})}),[i]);const l=(0,x.useContext)(d.EffectsContext);return(0,x.useEffect)((()=>{l.setNoiseIntensity&&l.setNoiseIntensity(.35)})),(0,x.useEffect)((()=>{(0,h.playBGM)("house")})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#000",0,20]}),(0,a.jsxs)("object3D",{position:[0,3.3,3],children:[(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-4,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,30,30]}),(0,a.jsx)("meshStandardMaterial",{map:o})]}),(0,a.jsx)(D,{position:[0,0,0],doorUnlocked:e,setDoorUnlocked:t,morseSolved:s,setMorseSolved:r})]})]})},t.BlessingGarden=function({blessed:e,setBlessed:t}){const s=(0,O.useLoader)(c.TextureLoader,n(42590));(0,x.useEffect)((()=>{s.minFilter=c.NearestFilter,s.magFilter=c.NearestFilter,s.wrapS=c.RepeatWrapping,s.wrapT=c.RepeatWrapping,s.repeat.set(30,5),s.needsUpdate=!0}),[s]);const r=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{r.setNavigation&&r.setNavigation({left:{level:"house2"}})}),[r]);const o=(0,x.useContext)(d.EffectsContext);(0,x.useEffect)((()=>{o.setNoiseIntensity&&o.setNoiseIntensity(.35)}));const i=(0,x.useContext)(g.ChatContext);return(0,x.useEffect)((()=>{i.addMessage&&i.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_FOUR_PORTRAITS"}))}),[]),(0,x.useEffect)((()=>{i.addMessage&&e&&(0,f.setTimeoutPausible)((()=>{i.addMessage(" Thank you for paying your respects, you are now welcome."),r.moveTo("house2","left")}),500)}),[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#000",0,20]}),(0,a.jsxs)("object3D",{position:[-1,3,4],rotation:[0,-.3,0],children:[(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-4,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,30,30]}),(0,a.jsx)("meshStandardMaterial",{map:s})]}),(0,a.jsx)(D,{position:[-12,0,-1],doorUnlocked:!1,setMorseSolved:e=>{},morseSolved:[!1,!1,!1,!1]})]}),(0,a.jsx)(P,{texture:n(45627),morse:R,position:[0,1,-5],rotation:[0,-.3,0],scale:[1.5,1,1],setBlessed:t,whichToBless:2,message:(0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_GREGG"})}),(0,a.jsx)(P,{texture:n(35117),morse:M,position:[2,1.2,-5],rotation:[0,-.3,0],scale:[1.5,1,1],setBlessed:t,whichToBless:1,message:(0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_AURORA"})}),(0,a.jsx)(P,{texture:n(62670),morse:C,position:[0,-.5,-5],rotation:[0,-.3,0],scale:[1.5,1,1],setBlessed:t,whichToBless:3,message:(0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_SAHRA"})}),(0,a.jsx)(P,{texture:n(2484),morse:L,position:[2,-.5,-5],rotation:[0,-.3,0],scale:[1.5,1,1],setBlessed:t,whichToBless:0,message:(0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_JORDEN"})})]})},t.BaphometPuzzle=function({level:e,unlocked:t,setUnlocked:n,unlockedTime:s,setUnlockedTime:r}){const[o,i]=(0,x.useState)([]),{setShowGlobalHint:c}=(0,x.useContext)(b.HintContext),m=(0,x.useContext)(g.ChatContext),_=e=>{const t=[...o,e];t.length>F.length&&t.splice(0,1),i(t);(u.SKIP_STATUE_PUZZLE?!p.default.isEqual(t,[]):p.default.isEqual(t,F))&&(m.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_SOLVED"})),(0,T.achieve)(w.AchievementString.BLESSED),c(6),l.stopEventTimer("statues"),r((0,f.pausibleNow)()),n(!0),(0,v.playSFX)("door_open"))},E=(0,x.useContext)(d.EffectsContext);(0,x.useEffect)((()=>{E.setNoiseIntensity&&E.setNoiseIntensity(.3)})),(0,x.useEffect)((()=>{(0,h.playBGM)("inside_house")})),(0,x.useEffect)((()=>{m.addMessage?.((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_INTRO"}))}),[m]);const{orientation:j}=(0,x.useContext)(y.LayoutContext);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("fog",{attach:"fog",args:["#000","landscape"===j?5:0,20]}),(e=>{switch(e){case"puzzle1":return(0,a.jsx)(H,{history:o,onClick:()=>_("4"),unlocked:t,unlockedTime:s});case"puzzle2":return(0,a.jsx)(W,{history:o,onClick:()=>_("2"),unlocked:t});case"puzzle3":return(0,a.jsx)(B,{history:o,onClick:()=>_("1"),unlocked:t});case"puzzle4":return(0,a.jsx)(V,{history:o,onClick:()=>_("3"),unlocked:t});default:return(0,a.jsx)(H,{})}})(e)]})},t.BaphometPuzzleCommon=G,t.BaphometPuzzle1=H,t.BaphometPuzzle2=W,t.BaphometPuzzle3=B,t.BaphometPuzzle4=V,t.WallButton=function({onClick:e,onRelease:t,toggle:s,map:r,baseColor:o,children:i,...l}){const[d,u]=(0,x.useState)(0),[p,h]=(0,x.useState)(!1),m=z(n(68487));o=o||new c.Color(1,1,1);const g=(0,x.useRef)(),_=(0,x.useRef)();return(0,f.useFramePausible)((()=>{if(g.current&&_.current)if(s){if(s)if(p)if(0!==d&&(0,f.pausibleNow)()-d<250){const e=((0,f.pausibleNow)()-d)/250;g.current.position.z=-.4*Math.sin(((0,f.pausibleNow)()-d)/250*Math.PI/2),_.current.color=new c.Color(o.r+(1-o.r)*e,o.g+(0-o.g)*e,o.b+(0-o.b)*e)}else g.current.position.z=-.4,_.current.color=new c.Color(1,0,0);else if(0!==d&&(0,f.pausibleNow)()-d<250){const e=((0,f.pausibleNow)()-d)/250;g.current.position.z=-.4*Math.sin((((0,f.pausibleNow)()-d)/250+1)*Math.PI/2),_.current.color=new c.Color(1+(o.r-1)*e,0+(o.g-0)*e,0+(o.b-0)*e)}else g.current.position.z=0,_.current.color=o}else 0!==d&&(0,f.pausibleNow)()-d<1e3?(g.current.position.z=-.4*Math.sin(((0,f.pausibleNow)()-d)/1e3*Math.PI),_.current.color=new c.Color(1*Math.sin(((0,f.pausibleNow)()-d)/1e3*Math.PI)+o.r,Math.max(o.g-1*Math.sin(((0,f.pausibleNow)()-d)/1e3*Math.PI),0),Math.max(o.b-1*Math.sin(((0,f.pausibleNow)()-d)/1e3*Math.PI),0))):(g.current.position.z=0,_.current.color=o)})),(0,a.jsx)("object3D",{...l,children:(0,a.jsxs)("mesh",{ref:g,onPointerDown:n=>{(0,v.playSFX)("stonebutton"),s?(p?t&&t():e&&e(),h(!p)):e&&e(),u((0,f.pausibleNow)()),n.stopPropagation()},children:[(0,a.jsx)("boxGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:r||m,ref:_}),i]})})},t.useSimpleTexture=z,t.SacrificeRoom=function(){const e=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{e.setNavigation&&e.setNavigation({})}),[e]);const t=(0,x.useContext)(d.EffectsContext);(0,x.useEffect)((()=>{t.setNoiseIntensity&&t.setNoiseIntensity(.8)})),(0,x.useEffect)((()=>{(0,h.playBGM)("tribute")}));const s=(0,x.useRef)(),r=(0,x.useRef)(),o=(0,x.useRef)(),[i,l]=(0,x.useState)([]),[c,p]=(0,x.useState)(""),[m,b]=(0,x.useState)(""),[y,j]=(0,x.useState)(""),O=z(n(30112)),I=z(n(48469)),R=z(n(18619)),M=(0,x.useRef)(),C=(0,x.useRef)(),L=(0,x.useRef)(),A=n(28842),D=n(77825),P=n(9560),F=(0,x.useContext)(g.ChatContext),k=(0,x.useContext)(_.FileBrowserContext),{language:U}=(0,x.useContext)(S.l10n.Context),[H]=(0,N.default)([{onStart:()=>{(0,v.playSFX)("rumble")},duration:.5,frameCallback:(e,t)=>{s.current&&(s.current.position.x=.2*Math.sin(t*Math.PI*4)*t,s.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2))*t)}},{duration:.5,frameCallback:(e,t)=>{s.current&&r.current&&(s.current.position.x=.4*Math.sin((1+t)*Math.PI*4),s.current.position.y=.2*Math.sin(5*Math.cos((1+t)*Math.PI*2)),r.current.position.x=.2*Math.sin(t*Math.PI*4+5)*t,r.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+5))*t)}},{duration:.5,frameCallback:(e,t)=>{s.current&&r.current&&o.current&&(s.current.position.x=.4*Math.sin((2+t)*Math.PI*4),s.current.position.y=.2*Math.sin(5*Math.cos((2+t)*Math.PI*2)),r.current.position.x=.2*Math.sin((t+1)*Math.PI*4+5),r.current.position.y=.2*Math.sin(5*Math.cos((t+1)*Math.PI*2+5)),o.current.position.x=.2*Math.sin(t*Math.PI*4+10)*t,o.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+10))*t)}},{duration:1,frameCallback:(e,t)=>{s.current&&r.current&&o.current&&(s.current.position.x=.4*Math.sin((2+t)*Math.PI*4)*(1-t),s.current.position.y=.2*Math.sin(5*Math.cos((2+t)*Math.PI*2))*(1-t),r.current.position.x=.2*Math.sin((t+1)*Math.PI*4+5)*(1-t),r.current.position.y=.2*Math.sin(5*Math.cos((t+1)*Math.PI*2+5))*(1-t),o.current.position.x=.2*Math.sin(t*Math.PI*4+10)*(1-t),o.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+10))*(1-t))},onEnd:()=>{F.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_TRIBUTE_PUZZLE_FAILURE"})),p(""),b(""),j("")}}]),[W]=(0,N.default)([{onStart:()=>{(0,v.playSFX)("rumble")},duration:.5,frameCallback:(e,t)=>{s.current&&(s.current.position.x=.2*Math.sin(t*Math.PI*4)*t,s.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2))*t)}},{duration:.5,frameCallback:(e,t)=>{s.current&&r.current&&(s.current.position.x=.4*Math.sin((1+t)*Math.PI*4),s.current.position.y=.2*Math.sin(5*Math.cos((1+t)*Math.PI*2)),r.current.position.x=.2*Math.sin(t*Math.PI*4+5)*t,r.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+5))*t)}},{duration:.5,frameCallback:(e,t)=>{s.current&&r.current&&o.current&&(s.current.position.x=.4*Math.sin((2+t)*Math.PI*4),s.current.position.y=.2*Math.sin(5*Math.cos((2+t)*Math.PI*2)),r.current.position.x=.2*Math.sin((t+1)*Math.PI*4+5),r.current.position.y=.2*Math.sin(5*Math.cos((t+1)*Math.PI*2+5)),o.current.position.x=.2*Math.sin(t*Math.PI*4+10)*t,o.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+10))*t)}},{duration:1,frameCallback:(e,t)=>{s.current&&r.current&&o.current&&(s.current.position.x=.4*Math.sin((2+t)*Math.PI*4)*(1-t),s.current.position.y=.2*Math.sin(5*Math.cos((2+t)*Math.PI*2))*(1-t),r.current.position.x=.2*Math.sin((t+1)*Math.PI*4+5)*(1-t),r.current.position.y=.2*Math.sin(5*Math.cos((t+1)*Math.PI*2+5))*(1-t),o.current.position.x=.2*Math.sin(t*Math.PI*4+10)*(1-t),o.current.position.y=.2*Math.sin(5*Math.cos(t*Math.PI*2+10))*(1-t))},onEnd:()=>{l(["1"]),(0,v.playSFX)("candle")}},{duration:.5,onEnd:()=>{l(["1","3"]),(0,v.playSFX)("candle")}},{duration:.5,onEnd:()=>{l(["1","3","2"]),(0,v.playSFX)("candle"),F.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_TRIBUTE_PUZZLE_SUCCESS"})),(0,T.achieve)(w.AchievementString.TRIBUTES)}},{duration:2,onEnd:()=>{e.moveTo("ending","backward",!0)}},{duration:.5,onEnd:()=>{(0,h.pauseBGM)()}}]),[B]=(0,N.default)([{duration:2.5},{duration:.25,frameCallback:(e,t)=>{M.current&&(M.current.material.opacity=1-t,M.current.scale.set(2.5+5*Math.sin(t*t*Math.PI),2+4*Math.sin(t*t*Math.PI),1))}},{duration:.25},{duration:.25,frameCallback:(e,t)=>{C.current&&(C.current.material.opacity=1-t,C.current.scale.set(2.5+5*Math.sin(t*t*Math.PI),2+4*Math.sin(t*t*Math.PI),1))}},{duration:.25},{duration:.25,frameCallback:(e,t)=>{L.current&&(L.current.material.opacity=1-t,L.current.scale.set(2.5+5*Math.sin(t*t*Math.PI),2+4*Math.sin(t*t*Math.PI),1))}}]);return(0,x.useEffect)((()=>{""===c||""===m||""===y||("me_and_best_friend.jpg"===c.name&&"lawson.jpg"===m.name&&"me.jpg"===y.name?(W(),B()):H())}),[c,m,y]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("fog",{attach:"fog",args:["#000",0,30]}),(0,a.jsx)(G,{}),(0,a.jsxs)("mesh",{position:[0,-1,-8.4],rotation:[0,0,0],scale:[.9,2,1],onPointerDown:e=>{F.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_CANDLES"})),u.SKIP_CANDLES&&(W(),B())},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:i.includes("1")?O:I,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[-4,-1.2,-9.4],rotation:[0,0,0],scale:[.7,1.5,1],onPointerDown:e=>{F.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_CANDLES"}))},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:i.includes("2")?O:I,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[4,-1.2,-9.4],rotation:[0,0,0],scale:[.7,1.5,1],onPointerDown:e=>{F.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_CANDLES"}))},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:i.includes("3")?O:I,transparent:!0})]}),(0,a.jsxs)("mesh",{ref:M,position:[0,-.6,-8.3],rotation:[0,0,0],scale:[2,2,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:R,transparent:!0,opacity:0})]}),(0,a.jsxs)("mesh",{ref:C,position:[4,-.94,-9.3],rotation:[0,0,0],scale:[2,2,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:R,transparent:!0,opacity:0})]}),(0,a.jsxs)("mesh",{ref:L,position:[-4,-.94,-9.3],rotation:[0,0,0],scale:[2,2,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:R,transparent:!0,opacity:0})]}),(0,a.jsxs)("object3D",{ref:s,children:[(0,a.jsxs)("mesh",{position:[-7,2,-13.4],rotation:[0,0,0],scale:[5,5,1],onPointerDown:e=>{e.stopPropagation(),k.openBrowser((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_TRIBUTE_PUZZLE_1"}),(e=>{e.source&&(0,f.setTimeoutPausible)((()=>{p(e)}))}))},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)(d.DynamicSignTexture,{backgroundColor:"rgb(0,0,255)",graphics:[{type:"image",image:A,x:0,y:0,width:128,height:80},{type:"rect",color:"rgb(0,0,255)",x:15,y:15,width:98,height:50},{type:"text",x:64,y:30,fontSize:13,color:"white",text:U.TRIBUTES_BOND_LINE_1},{type:"text",x:64,y:45,fontSize:13,color:"white",text:U.TRIBUTES_BOND_LINE_2},{type:"text",x:64,y:60,fontSize:13,color:"white",text:U.TRIBUTES_BOND_LINE_3}]})]}),""!==c?(0,a.jsx)(Y,{position:[-7,2,-13.3],rotation:[0,0,0],scale:[4.2,4.2,1],texture:c.source}):null]}),(0,a.jsxs)("object3D",{ref:r,children:[(0,a.jsxs)("mesh",{position:[0,2,-13.4],rotation:[0,0,0],scale:[4,6,1],onPointerDown:e=>{e.stopPropagation(),k.openBrowser((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_TRIBUTE_PUZZLE_2"}),(e=>{e.source&&(0,f.setTimeoutPausible)((()=>{b(e)}))}))},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)(d.DynamicSignTexture,{backgroundColor:"rgb(0,0,255)",width:"128",height:"128",graphics:[{type:"image",image:D,x:0,y:0,width:128,height:128},{type:"rect",color:"rgb(0,0,255)",x:15,y:15,width:98,height:98},{type:"text",x:64,y:50,fontSize:16,color:"white",text:U.TRIBUTES_UNREQUITED_LINE_1},{type:"text",x:64,y:70,fontSize:16,color:"white",text:U.TRIBUTES_UNREQUITED_LINE_2},{type:"text",x:64,y:90,fontSize:16,color:"white",text:U.TRIBUTES_UNREQUITED_LINE_3}]})]}),""!==m?(0,a.jsx)(Y,{position:[0,2,-13.3],rotation:[0,0,0],scale:[3.2,5,1],texture:m.source}):null]}),(0,a.jsxs)("object3D",{ref:o,children:[(0,a.jsxs)("mesh",{position:[7,2,-13.4],rotation:[0,0,0],scale:[6.5,4.5,1],onPointerDown:e=>{e.stopPropagation(),k.openBrowser((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_TRIBUTE_PUZZLE_3"}),(e=>{e.source&&(0,f.setTimeoutPausible)((()=>{j(e)}))}))},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)(d.DynamicSignTexture,{backgroundColor:"rgb(0,0,255)",width:"128",height:"128",graphics:[{type:"image",image:P,x:0,y:0,width:128,height:128},{type:"rect",color:"rgb(0,0,255)",x:15,y:15,width:98,height:98},{type:"text",x:64,y:50,fontSize:12,color:"white",text:U.TRIBUTES_FATE_LINE_1},{type:"text",x:64,y:70,fontSize:12,color:"white",text:U.TRIBUTES_FATE_LINE_2},{type:"text",x:64,y:90,fontSize:12,color:"white",text:U.TRIBUTES_FATE_LINE_3}]})]}),""!==y?(0,a.jsx)(Y,{position:[7,2,-13.3],rotation:[0,0,0],scale:[5.5,3.8,1],texture:y.source}):null]})]})};const a=n(74848),l=o(n(23571)),c=n(27186),d=n(73965),u=n(78815),p=i(n(2543)),h=n(17322),f=n(91722),x=n(96540),m=i(n(57845)),g=n(26661),_=n(52725),b=n(29369),y=n(49616),E=n(80129),j=i(n(13857)),T=n(73719),S=n(81218),v=n(44190),O=n(73560),N=i(n(20584)),I=n(97172),w=n(37815),R=u.TWO_KNOCKS?[".","."]:["-",".",".","-"],M=["-","-","-","."],C=["-",".","-","."],L=[".","-",".","-"];function A({morse:e,solved:t,onSolved:s,...r}){const o=z(n(9924)),[i,l]=(0,x.useState)(0),d=(0,x.useRef)(0),[u,h]=(0,x.useState)([]),[m,_]=(0,x.useState)(!1),[b,y]=(0,x.useState)(!1),[E,j]=(0,x.useState)(!1),T=z(n(30667)),O=z(n(75812));(0,x.useEffect)((()=>{_(p.default.isEqual(u,e))}),[e,u]),(0,x.useEffect)((()=>{m&&(s(),N.addMessage((0,a.jsx)(a.Fragment,{children:(0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_SOMETHING_IN_DOOR_CHANGES"})})))}),[m]);const N=(0,x.useContext)(g.ChatContext);return(0,a.jsxs)("object3D",{...r,receiveShadow:!0,castShadow:!0,children:[(0,a.jsxs)("mesh",{onPointerDown:e=>{(0,f.pausibleNow)()-d.current>5e3&&h([]),d.current=(0,f.pausibleNow)(),y(!0),j(!0),e.stopPropagation()},onPointerUp:t=>{let n=[...u];(0,f.pausibleNow)()-d.current<400?(n.push("."),N.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_SHORT_KNOCK"})),(0,v.playSFX)("knock")):(n.push("-"),N.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_LONG_KNOCK"})),(0,v.playSFX)("knock_echo")),n.length>e.length&&n.splice(0,1),h(n),j(!1),t.stopPropagation()},children:[(0,a.jsx)("boxGeometry",{args:[1,1,1]}),(0,a.jsx)("meshStandardMaterial",{map:o,color:t?new c.Color(1,0,0):new c.Color(1,1,1),transparent:!0})]}),E?(0,a.jsxs)("mesh",{position:[-.01,0,.6],rotation:[0,0,0],children:[(0,a.jsx)("planeGeometry",{args:[.6,1,1]}),(0,a.jsx)("meshStandardMaterial",{map:O,transparent:!0})]}):(0,a.jsxs)("mesh",{position:[-.01,0,.6],rotation:[0,0,0],children:[(0,a.jsx)("planeGeometry",{args:[.6,1,1]}),(0,a.jsx)("meshStandardMaterial",{map:T,transparent:!0})]})]})}function D({doorUnlocked:e,setDoorUnlocked:t,morseSolved:s,setMorseSolved:r,...o}){const i=z(n(73556)),d=z(n(9924)),u=z(n(5159)),p=(0,x.useContext)(g.ChatContext),h=(0,x.useContext)(E.NavigationContext),f=(0,x.useCallback)((e=>{r((t=>{const n=[...t];return n[e]=!0,n}))}),[r]);return(0,a.jsxs)("object3D",{...o,children:[(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-1,-9],children:[(0,a.jsx)("boxGeometry",{args:[15.5,2,5]}),(0,a.jsx)("meshStandardMaterial",{map:i})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[-4.5,-3,-9],children:[(0,a.jsx)("boxGeometry",{args:[6.5,2,5]}),(0,a.jsx)("meshStandardMaterial",{map:i})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[4.5,-3,-9],children:[(0,a.jsx)("boxGeometry",{args:[6.5,2,5]}),(0,a.jsx)("meshStandardMaterial",{map:i})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[-10,-3,-15],children:[(0,a.jsx)("boxGeometry",{args:[15,7,5]}),(0,a.jsx)("meshStandardMaterial",{map:i})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[10,-3,-15],children:[(0,a.jsx)("boxGeometry",{args:[15,7,5]}),(0,a.jsx)("meshStandardMaterial",{map:i})]}),(0,a.jsxs)("mesh",{position:[.05,-3.2,-15],rotation:[0,0,0],scale:[1,.9,1],children:[(0,a.jsx)("planeGeometry",{args:[1.2,2,15]}),(0,a.jsx)("meshStandardMaterial",{map:u,transparent:!0})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-3,-7.5],onPointerDown:t=>{e?(h.moveTo("puzzle3","forward",!0),l.startEventTimer("statues")):p.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_FRAME_KNOCK"}))},children:[(0,a.jsx)("boxGeometry",{args:[3,2,1]}),(0,a.jsx)("meshStandardMaterial",{map:d,color:new c.Color(.5,.5,.5),transparent:!0,opacity:e?0:1})]}),e?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A,{solved:s&&s[0],onSolved:e=>f(0),morse:R,scale:[1,.8,1],position:[-.6,-2.5,-7.3]}),(0,a.jsx)(A,{solved:s&&s[1],onSolved:e=>f(1),morse:M,scale:[1,.8,1],position:[.6,-2.5,-7.3]}),(0,a.jsx)(A,{solved:s&&s[2],onSolved:e=>f(2),morse:C,scale:[1,.8,1],position:[-.6,-3.5,-7.3]}),(0,a.jsx)(A,{solved:s&&s[3],onSolved:e=>f(3),morse:L,scale:[1,.8,1],position:[.6,-3.5,-7.3]})]})]})}function P({morse:e,onClick:t,texture:s,setBlessed:r,whichToBless:o,message:i,...l}){const c=z(s),d=z(n(18619)),[u,p]=(0,x.useState)(!1),h=(0,x.useContext)(g.ChatContext),f=(0,x.useRef)(),m=(0,x.useRef)(),[_]=(0,N.default)([...e.map((e=>"."===e?[{duration:.5,frameCallback:(e,t)=>{if(!f.current)return;if(!m.current)return;const n=1-Math.pow(1-t,2);f.current.scale.set(.5+2.5*n,.5+2.5*n,.5+2.5*n),m.current.opacity=Math.cos(t*Math.PI)/2+.5},onStart:()=>{(0,v.playSFX)("twinkle1")},onEnd:()=>{f.current&&f.current.scale.set(0,0,0)}},{duration:.5}]:[{duration:.1,frameCallback:(e,t)=>{if(!f.current)return;if(!m.current)return;const n=1-Math.pow(1-t,2);f.current.scale.set(.5+2*n,.5+2*n,.5+2*n),m.current.opacity=Math.sin(t/2*Math.PI)/2+.5},onStart:()=>{(0,v.playSFX)("twinkle2")},onEnd:()=>{f.current&&f.current.scale.set(2.5,2.5,2.5)}},{duration:.9,frameCallback:(e,t)=>{if(!f.current)return;if(!m.current)return;Math.pow(1-t,2);f.current.scale.set(2.5,2.5,2.5),m.current.opacity=1},onEnd:()=>{f.current&&f.current.scale.set(0,0,0)}},{duration:.2,frameCallback:(e,t)=>{if(!f.current)return;if(!m.current)return;Math.pow(1-t,2);f.current.scale.set(2.5,2.5,2.5),m.current.opacity=Math.sin((t/2+.5)*Math.PI)/2+.5},onEnd:()=>{f.current&&f.current.scale.set(0,0,0)}},{duration:.5}])).flat()]);return(0,a.jsxs)("object3D",{...l,children:[(0,a.jsxs)("mesh",{scale:[1,1,1],onClick:e=>{e.stopPropagation(),h.addMessage(i),p(!0),_()},children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshStandardMaterial",{map:c})]}),(0,a.jsxs)("mesh",{ref:f,position:[0,0,.5],scale:[.5,.5,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshStandardMaterial",{ref:m,map:d,opacity:0,transparent:!0})]})]})}const F=["1","2","3","4","4","4"];function k({color:e,onClick:t}){const s=z(n(26592));return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("mesh",{onPointerDown:t,children:[(0,a.jsxs)("mesh",{position:[-4.6,2.6,-13],rotation:[0,0,0],scale:[.6,.8,1],children:[(0,a.jsx)("planeGeometry",{args:[1.3*3,6,15]}),(0,a.jsx)("meshStandardMaterial",{opacity:0,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[4.6,2.6,-13],rotation:[0,0,0],scale:[.6,.8,1],children:[(0,a.jsx)("planeGeometry",{args:[1.3*3,6,15]}),(0,a.jsx)("meshStandardMaterial",{opacity:0,transparent:!0})]})]}),(0,a.jsxs)("mesh",{position:[-4.5,2.5,-13],rotation:[0,0,0],scale:[1.5,1,1],children:[(0,a.jsx)("planeGeometry",{args:[1.3*1.5,7,15]}),(0,a.jsx)("meshBasicMaterial",{color:e,map:s,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[4.5,2.5,-13],rotation:[0,0,0],scale:[1.5,1,1],children:[(0,a.jsx)("planeGeometry",{args:[1.3*1.5,7,15]}),(0,a.jsx)("meshBasicMaterial",{color:e,map:s,transparent:!0})]})]})}function G(){const e=(0,O.useLoader)(c.TextureLoader,n(42590));(0,x.useEffect)((()=>{e.minFilter=c.NearestFilter,e.magFilter=c.NearestFilter,e.wrapS=c.RepeatWrapping,e.wrapT=c.RepeatWrapping,e.repeat.set(30,5),e.needsUpdate=!0}),[e]);const t=(0,O.useLoader)(c.TextureLoader,n(73556));return(0,x.useEffect)((()=>{t.minFilter=c.NearestFilter,t.magFilter=c.NearestFilter,t.wrapS=c.RepeatWrapping,t.wrapT=c.RepeatWrapping,t.repeat.set(8,3),t.needsUpdate=!0}),[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,7.5,-5],rotation:[Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,20,30]}),(0,a.jsx)("meshStandardMaterial",{map:e})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-2,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,20,30]}),(0,a.jsx)("meshStandardMaterial",{map:e})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,2,-16],children:[(0,a.jsx)("boxGeometry",{args:[30,11,5]}),(0,a.jsx)("meshStandardMaterial",{map:t})]}),(0,a.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,position:[0,-2,-15],children:[(0,a.jsx)("boxGeometry",{args:[30,2,5]}),(0,a.jsx)("meshStandardMaterial",{map:t})]})]})}function U(e,t,n){const{setCameraShake:s}=(0,x.useContext)(d.EffectsContext);return(0,N.default)([{duration:5,frameCallback:(n,r)=>{if(!e.current)return;if(!t.current)return;var o;r=1===(o=r)?1:1-Math.pow(2,-10*o);const i=1-(Math.cos(r*Math.PI*2)/2+.5);e.current.opacity=i,t.current.opacity=i,s(.04*(1-r))},onStart:()=>{(0,v.playSFX)("aum")},onEnd:()=>{s(0)}}],{onEarlyCleanup:()=>{s(0)}})}function H({onClick:e,unlocked:t,unlockedTime:s,history:r}){const o=(0,O.useLoader)(c.TextureLoader,n(11963));(0,x.useEffect)((()=>{o.minFilter=c.NearestFilter,o.magFilter=c.NearestFilter,o.wrapS=c.RepeatWrapping,o.wrapT=c.RepeatWrapping,o.transparent=!0,o.needsUpdate=!0}),[o]);const i=z(n(18619)),u=z(n(18803)),p=z(n(46714)),[h,m]=(0,x.useState)(1),_=(0,x.useRef)(),b=(0,x.useRef)(),j=(0,x.useRef)(),T=(0,x.useRef)(),v=(0,x.useRef)(),w=(0,x.useRef)(),R=(0,x.useRef)(),M=(0,x.useRef)(),[C]=U(_,b),{setCameraShake:L}=(0,x.useContext)(d.EffectsContext),[A]=(0,N.default)([{duration:.2,frameCallback:(e,t)=>{j.current&&(j.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{j.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{T.current&&(T.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{T.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{v.current&&(v.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{v.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{w.current&&(w.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{w.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{R.current&&(R.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{R.current.opacity=0}},{duration:.5,frameCallback:(e,t)=>{M.current&&(M.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{M.current.opacity=0}}],{onRestart:()=>{j.current.opacity=0,T.current.opacity=0,v.current.opacity=0,w.current.opacity=0,R.current.opacity=0,M.current.opacity=0}}),D=(0,x.useRef)(L);D.current=L,(0,x.useEffect)((()=>()=>{D.current(0)}),[]);const P=(0,x.useRef)(),F=(0,x.useRef)();(0,f.useFramePausible)((()=>{if(F.current&&P.current&&t){const e=((0,f.pausibleNow)()-s)/3e3;e>0&&e<1&&(L(.05*(1-(0,I.easeOutCubic)(e))),P.current.position.x=-4*e);const t=((0,f.pausibleNow)()-1e3-s)/2e3;t>0&&t<1?F.current.scale.x=(0,I.easeOutCubic)(t):t>0&&(F.current.scale.x=1,L(0))}}));const H=(0,x.useContext)(g.ChatContext),W=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{W.setNavigation&&W.setNavigation({right:{level:"puzzle2"}})}),[W]);const{orientation:B}=(0,x.useContext)(y.LayoutContext);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("object3D",{position:[0,"landscape"===B?-.5:-1,"landscape"===B?1:4],children:[(0,a.jsx)(G,{history:r}),(0,a.jsx)(k,{color:"rgb(255,0,255)",onClick:e=>{A()}}),(0,a.jsxs)("group",{position:[t?-4:0,0,0],ref:P,children:[(0,a.jsxs)("mesh",{position:[0,1,-10],rotation:[0,0,0],scale:[1.25,1,1],renderOrder:0,onPointerDown:()=>{H.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_BLESS_OX"})),"4"===r[r.length-1]?(_.current.opacity=0,b.current.opacity=0,"4"===r[r.length-2]?m(2):m(1.5)):m(.8),C(),e()},children:[(0,a.jsx)("planeGeometry",{args:[1.4*3,2.2*3,15]}),(0,a.jsx)("meshStandardMaterial",{map:o,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[-.6,3,-9.81],rotation:[0,0,0],scale:[h,h,h],renderOrder:1,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:_,emissiveIntensity:5,opacity:0,map:i,transparent:!0,color:"rgb(255,0,255)"})]}),(0,a.jsxs)("mesh",{position:[.2,3,-9.81],rotation:[0,0,0],scale:[h,h,h],renderOrder:2,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:b,emissiveIntensity:5,opacity:0,map:i,transparent:!0,color:"rgb(255,0,255)"})]}),(0,a.jsxs)("mesh",{position:[-2.6,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:3,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:j,emissiveIntensity:5,map:u,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[-2.1,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:4,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:T,emissiveIntensity:5,map:u,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[-1.6,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:5,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:v,emissiveIntensity:5,map:u,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[-1.1,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:6,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:w,emissiveIntensity:5,map:u,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[-.6,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:7,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:R,emissiveIntensity:5,map:u,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[-.1,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:8,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:M,emissiveIntensity:5,map:p,opacity:0,transparent:!0,color:"rgb(255,0,255)"})]})]}),t?(0,a.jsxs)("mesh",{ref:F,receiveShadow:!0,castShadow:!0,position:[0,-2,-14.9],scale:[0,1,1],onClick:()=>{W.moveTo("fountain2","forward",!0),l.startEventTimer("fountain")},children:[(0,a.jsx)("boxGeometry",{args:[5,12,5]}),(0,a.jsx)("meshStandardMaterial",{color:"rgb(0,0,0)"})]}):null]})})}function W({onClick:e,unlocked:t,history:s}){const r=(0,O.useLoader)(c.TextureLoader,n(40466));(0,x.useEffect)((()=>{r.minFilter=c.NearestFilter,r.magFilter=c.NearestFilter,r.wrapS=c.RepeatWrapping,r.wrapT=c.RepeatWrapping,r.transparent=!0,r.needsUpdate=!0}),[r]);const o=z(n(18619)),i=z(n(43105)),l=z(n(46714)),d=(z(n(69783)),(0,x.useRef)()),u=(0,x.useRef)(),p=(0,x.useRef)(),h=(0,x.useRef)(),f=(0,x.useRef)(),m=(0,x.useRef)(),[_]=U(d,u),[b]=(0,N.default)([{duration:.5,frameCallback:(e,t)=>{p.current&&(p.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{p.current.opacity=0}},{duration:.5,frameCallback:(e,t)=>{h.current&&(h.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{h.current.opacity=0}},{duration:.5,frameCallback:(e,t)=>{f.current&&(f.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{f.current.opacity=0}},{duration:.5,frameCallback:(e,t)=>{m.current&&(m.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{m.current.opacity=0}}],{onRestart:()=>{p.current.opacity=0,h.current.opacity=0,f.current.opacity=0,m.current.opacity=0}}),j=(0,x.useContext)(g.ChatContext),T=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{T.setNavigation&&T.setNavigation({left:{level:"puzzle1"},right:{level:"puzzle3"}})}),[T]);const{orientation:v}=(0,x.useContext)(y.LayoutContext);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("object3D",{position:[0,"landscape"===v?-.5:-1,"landscape"===v?1:4],children:[(0,a.jsx)(G,{history:s}),(0,a.jsx)(k,{color:"rgb(0,255,0)",onClick:e=>{b()}}),(0,a.jsxs)("mesh",{position:[0,1,-10],rotation:[0,0,0],scale:[1.25,1,1],renderOrder:100,onPointerDown:()=>{j.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_BLESS_EAGLE"})),_(),e()},children:[(0,a.jsx)("planeGeometry",{args:[1.4*3,2.2*3,15]}),(0,a.jsx)("meshStandardMaterial",{map:r,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[-.5,3,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:101,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:d,emissiveIntensity:5,map:o,opacity:0,transparent:!0,color:"rgb(0,255,0)"})]}),(0,a.jsxs)("mesh",{position:[.2,3,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:102,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:u,emissiveIntensity:5,map:o,opacity:0,transparent:!0,color:"rgb(0,255,0)"})]}),(0,a.jsxs)("mesh",{position:[-2,2.5,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:103,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:p,emissiveIntensity:5,map:i,opacity:0,transparent:!0,color:"rgb(255,255,0)"})]}),(0,a.jsxs)("mesh",{position:[1.9-1.5,2.5,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:104,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:h,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,0,255)"})]}),(0,a.jsxs)("mesh",{position:[1.9,2.5,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:105,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:f,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,0,255)"})]}),(0,a.jsxs)("mesh",{position:[3.4,2.5,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:106,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:m,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,0,255)"})]})]})})}function B({onClick:e,unlocked:t,history:s}){const r=(0,O.useLoader)(c.TextureLoader,n(5159));(0,x.useEffect)((()=>{r.minFilter=c.NearestFilter,r.magFilter=c.NearestFilter,r.wrapS=c.RepeatWrapping,r.wrapT=c.RepeatWrapping,r.transparent=!0,r.needsUpdate=!0}),[r]);const o=z(n(18619)),i=z(n(62102)),l=z(n(18803)),[d]=(z(n(70286)),z(n(85780)),(0,N.default)([{duration:.5,frameCallback:(e,t)=>{m.current&&(m.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{m.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{_.current&&(_.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{_.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{b.current&&(b.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{b.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{j.current&&(j.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{j.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{T.current&&(T.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{T.current.opacity=0}},{duration:.2,frameCallback:(e,t)=>{v.current&&(v.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{v.current.opacity=0}}],{onRestart:()=>{m.current.opacity=0,_.current.opacity=0,b.current.opacity=0,j.current.opacity=0,T.current.opacity=0,v.current.opacity=0}})),u=(0,x.useContext)(g.ChatContext),p=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{p.setNavigation&&p.setNavigation({left:{level:"puzzle2"},right:{level:"puzzle4"}})}),[p]);const h=(0,x.useRef)(),f=(0,x.useRef)(),m=(0,x.useRef)(),_=(0,x.useRef)(),b=(0,x.useRef)(),j=(0,x.useRef)(),T=(0,x.useRef)(),v=(0,x.useRef)(),[I]=U(h,f),{orientation:w}=(0,x.useContext)(y.LayoutContext);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("object3D",{position:[0,"landscape"===w?-.5:-1,"landscape"===w?1:4],children:[(0,a.jsx)(G,{history:s}),(0,a.jsx)(k,{color:"rgb(255,0,0)",onClick:e=>{d()}}),(0,a.jsxs)("mesh",{position:[0,1,-10],rotation:[0,0,0],scale:[1.25,1,1],renderOrder:100,onPointerDown:()=>{u.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_BLESS_GOAT"})),I(),e()},children:[(0,a.jsx)("planeGeometry",{args:[1.4*3,2.2*3,15]}),(0,a.jsx)("meshStandardMaterial",{map:r,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[-.55,3.2,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:101,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:h,emissiveIntensity:5,opacity:0,map:o,transparent:!0,color:"rgb(255,0,0)"})]}),(0,a.jsxs)("mesh",{position:[.3,3.2,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:102,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:f,emissiveIntensity:5,opacity:0,map:o,transparent:!0,color:"rgb(255,0,0)"})]}),(0,a.jsxs)("mesh",{position:[-.1,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:103,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:m,emissiveIntensity:5,map:i,opacity:0,transparent:!0,color:"rgb(255,0,0)"})]}),(0,a.jsxs)("mesh",{position:[.4,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:104,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:_,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[.9,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:105,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:b,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[1.4,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:106,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:j,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[1.9,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:107,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:T,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]}),(0,a.jsxs)("mesh",{position:[2.4,1.1,-9.8],rotation:[0,0,0],scale:[2,2,2],renderOrder:108,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:v,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(255,255,255)"})]})]})})}function V({onClick:e,unlocked:t,history:s}){const r=(0,O.useLoader)(c.TextureLoader,n(41608));(0,x.useEffect)((()=>{r.minFilter=c.NearestFilter,r.magFilter=c.NearestFilter,r.wrapS=c.RepeatWrapping,r.wrapT=c.RepeatWrapping,r.transparent=!0,r.needsUpdate=!0}),[r]);const o=z(n(18619)),i=z(n(62102)),l=z(n(57955)),[d,u]=(z(n(98117)),(0,x.useState)(0)),[p,h]=(0,x.useState)(!0),f=(0,x.useRef)(),m=(0,x.useRef)(),_=(0,x.useRef)(),b=(0,x.useRef)(),[j]=((0,x.useRef)(),U(f,m)),[T]=(0,N.default)([{duration:.5,frameCallback:(e,t)=>{_.current&&(_.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{_.current.opacity=0}},{duration:.5,frameCallback:(e,t)=>{b.current&&(b.current.opacity=1-(Math.cos(t*Math.PI*2)/2+.5))},onEnd:()=>{b.current.opacity=0}}],{onRestart:()=>{_.current.opacity=0,b.current.opacity=0}}),v=(0,x.useContext)(g.ChatContext),I=(0,x.useContext)(E.NavigationContext);(0,x.useEffect)((()=>{I.setNavigation&&I.setNavigation({left:{level:"puzzle3"}})}),[I]);const{orientation:w}=(0,x.useContext)(y.LayoutContext);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("object3D",{position:[0,"landscape"===w?-.5:-1,"landscape"===w?1:4],children:[(0,a.jsx)(G,{history:s}),(0,a.jsx)(k,{color:"rgb(255,255,0)",onClick:e=>{T()}}),(0,a.jsxs)("mesh",{position:[0,1,-10],rotation:[0,0,0],scale:[1.25,1,1],renderOrder:101,onPointerDown:()=>{v.addMessage((0,a.jsx)(S.l10n.Text,{name:"OTHER_WORLD_STATUE_PUZZLE_BLESS_LION"})),j(),e()},children:[(0,a.jsx)("planeGeometry",{args:[1.4*3,2.2*3,15]}),(0,a.jsx)("meshStandardMaterial",{map:r,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[-.4,3.2,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:102,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:f,emissiveIntensity:5,map:o,opacity:0,transparent:!0,color:"rgb(255,255,0)"})]}),(0,a.jsxs)("mesh",{position:[.2,3.2,-9.9],rotation:[0,0,0],scale:[1,1,1],renderOrder:103,children:[(0,a.jsx)("planeGeometry",{args:[3,3]}),(0,a.jsx)("meshBasicMaterial",{ref:m,emissiveIntensity:5,map:o,opacity:0,transparent:!0,color:"rgb(255,255,0)"})]}),(0,a.jsxs)("mesh",{position:[-1.8,2.5,-9.7],rotation:[0,0,0],scale:[2,2,2],renderOrder:104,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:_,emissiveIntensity:5,map:i,opacity:0,transparent:!0,color:"rgb(255,0,0)"})]}),(0,a.jsxs)("mesh",{position:[1.8,3,-9.7],rotation:[0,0,0],scale:[2,2,2],renderOrder:105,children:[(0,a.jsx)("planeGeometry",{args:[1.5,1.5]}),(0,a.jsx)("meshBasicMaterial",{ref:b,emissiveIntensity:5,map:l,opacity:0,transparent:!0,color:"rgb(0,255,0)"})]})]})})}function z(e){const t=(0,O.useLoader)(j.default,e);return(0,x.useEffect)((()=>{t.minFilter=c.NearestFilter,t.magFilter=c.NearestFilter,t.wrapS=c.RepeatWrapping,t.wrapT=c.RepeatWrapping,t.transparent=!0,t.needsUpdate=!0}),[t]),t}function Y({texture:e,...t}){const n=z(e);return(0,a.jsxs)("mesh",{...t,children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:n,transparent:!0})]})}},59335:(e,t,n)=>{e.exports=n.p+"assets/folder2.4f0f84ec5e1e148efff8.gif"},59442:(e,t,n)=>{e.exports=n.p+"assets/symbol3.6697a74da418cd7d2843.png"},60224:(e,t,n)=>{e.exports=n.p+"assets/h.30a9b642fcbf7b4ac950.png"},60962:(e,t,n)=>{e.exports=n.p+"assets/profile.e8be6395147fcd4c13a0.gif"},61625:(e,t,n)=>{e.exports=n.p+"assets/phonecall.242121f1a5a73ca823b4.mp3"},62102:(e,t,n)=>{e.exports=n.p+"assets/glow_goat.59c697b9a036f3c958b5.png"},62670:(e,t,n)=>{e.exports=n.p+"assets/portrait4.d1f273b21dca4c385ebd.gif"},63396:(e,t,n)=>{e.exports=n.p+"assets/fusion-pixel-12px-proportional-zh_hans.70f66c6222d0398a7e23.otf"},63565:(e,t,n)=>{e.exports=n.p+"assets/buddylist.c023b5a07a8e4efac4c9.gif"},63783:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TriggerWarning=function({onFinished:e}){const{size:t}=(0,l.useContext)(c.LayoutContext),{language:s}=(0,l.useContext)(d.l10n.Context),r=(0,l.useRef)(),{play:o,playing:i}=(0,u.useTimeline2WithPlayState)((()=>[{duration:1,onFrame:(e,t)=>{r.current.style.opacity=1-t},onEnd:()=>{e()}}]));return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{background:"black",width:"100%",height:"100%"},children:(0,a.jsxs)("div",{ref:r,children:[(0,a.jsxs)("div",{style:{color:"white",paddingTop:180*t,fontFamily:"Courier New",fontSize:20*t},children:[(0,a.jsx)("img",{width:10*t,style:{opacity:0},src:n(51920),alt:"pc_horror"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block",width:600*t},children:[(0,a.jsxs)("span",{style:{color:"red"},children:[s.WARNING,":"]})," ",s.TRIGGER_WARNING]}),(0,a.jsx)("br",{})]}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",marginTop:40*t},onClick:e=>{i||o()},children:(0,a.jsx)(d.l10n.Text,{name:"CONTINUE_BUTTON"})})]})})})};const a=n(74848),l=n(96540),c=n(49616),d=n(81218),u=(i(n(20584)),n(17322),o(n(27186)),n(97172),n(34015));n(49046)},63976:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.builtInLanguages=void 0,t.default=function({selectedLanguage:e,visible:n,setVisible:s,onLanguageChange:r}){const{language:o}=(0,d.useContext)(c.l10n.Context),{orientation:i,size:h}=(0,d.useContext)(u.LayoutContext),f=(0,d.useRef)(),[x,m]=(0,d.useState)(["language-menu"]),[g,_]=(0,d.useState)("English");return(0,d.useEffect)((()=>{n&&m(["language-menu"])}),[n]),(0,a.jsx)(a.Fragment,{children:n&&(0,a.jsx)("div",{style:{zIndex:99999,position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.8)"},children:(0,a.jsx)(l.WindowManager,{ref:f,visibleWindows:x,setVisibleWindows:m,children:(0,a.jsx)(l.default,{name:"language-menu",title:"Language",initialPosition:{x:"landscape"===i?190:90,y:"landscape"===i?50:150},style:{width:450*h,fontFamily:"sans-serif, Arial"},onVisibleChange:e=>{e||s(!1)},children:(0,a.jsxs)("div",{style:{margin:10*h},children:[(0,a.jsxs)("div",{children:["Note: These are community translations and may not be completely accurate. If you want to contribute or make corrections, join our"," ",(0,a.jsx)(p.default,{href:"https://discord.gg/4HtZG2uR6J",children:"Discord"}),"."]}),(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsx)("ul",{className:"file-browser",style:{width:200*h,height:250*h,overflowY:"scroll",overflowX:"hidden",wordBreak:"break-word",fontFamily:"arial"},children:Object.keys(t.builtInLanguages).map((e=>(0,a.jsx)("li",{className:["pointer",e===o.NAME.toString()&&"selected"].join(" "),onClick:t=>{r(e)},onDoubleClick:t=>{r(e),s(!1)},style:{},children:e},e)))}),(0,a.jsx)("div",{style:{padding:10*h},children:!0===o.SHOW_TRANSLATION_CREDITS&&o.CREDITS.map(((e,t)=>(0,a.jsx)("ul",{style:{margin:0,padding:0},children:(0,a.jsxs)("li",{style:{listStyle:"none",fontSize:15*h},children:[e.name," ",e.website&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.default,{href:e.website,children:"[link]"})})]})},t)))})]}),(0,a.jsx)("div",{style:{textAlign:"right"},children:(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},onClick:e=>{s(!1)},children:(0,a.jsx)(c.l10n.Text,{name:"CONTINUE_BUTTON"})})})]})})})})})};const a=n(74848),l=o(n(96886)),c=n(81218),d=n(96540),u=(n(80985),n(49616)),p=i(n(35133));i(n(99240));t.builtInLanguages={English:n(9657),Français:n(54820),Italiano:n(52763),"Bahasa Indonesia":n(77227),Русский:n(39899),日本語:n(53758),Čeština:n(35723),简体中文:n(91254),Español:n(99116),Esperanto:n(82024),українська:n(13713),Polski:n(77932),한국인:n(69243),"Português (Brasileiro)":n(48676),Türkçe:n(83938)}},64100:(e,t,n)=>{e.exports=n.p+"assets/key3_up.c31437b1fc27019cc43a.mp3"},64159:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FountainPuzzle=function({level:e,unlockedFountain:t,setUnlockedFountain:n}){const s=(0,p.useContext)(h.ChatContext);return(0,p.useEffect)((()=>{s.showOneMessage?.((0,i.jsx)(y.l10n.Text,{name:"OTHER_WORLD_FOUNTAIN_PUZZLE_INTRO"}))}),[s]),(0,i.jsx)(i.Fragment,{children:(()=>{switch(e){case"fountain2":return(0,i.jsx)(w,{unlockedFountain:t,setUnlockedFountain:n});case"fountain":return(0,i.jsx)(I,{});default:return(0,i.jsx)(i.Fragment,{})}})()})},t.FountainFlowing=I,t.FountainDoor=w;const i=n(74848),a=o(n(23571)),l=n(58220),c=n(27186),d=n(73965),u=n(91722),p=n(96540),h=n(26661),f=n(29369),x=n(94196),m=n(49616),g=n(80129),b=n(73719),y=n(81218),E=n(17322),j=n(44190),T=n(97172),S=n(37815);function v({layers:e,...t}){const s=[(0,l.useSimpleTexture)(n(83424)),(0,l.useSimpleTexture)(n(80987)),(0,l.useSimpleTexture)(n(59442)),(0,l.useSimpleTexture)(n(89421)),(0,l.useSimpleTexture)(n(26180)),(0,l.useSimpleTexture)(n(11455))];return(0,i.jsx)("mesh",{...t,children:e.map(((e,t)=>(0,i.jsxs)("mesh",{rotation:[0,0,0],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshStandardMaterial",{map:s[e],transparent:!0},t)]})))})}function O({velXRange:e,velYRange:t,floor:n,distance:s,...r}){const o=(0,p.useRef)(),a=s;return(0,u.useFramePausible)(((s,r)=>{if(o.current){if(!o.current.initialized){o.current.initialized=!0;for(let n=0;n<10;n++){const s=o.current.children[n];s.velocity=new c.Vector3((e[1]-e[0])*Math.random()+e[0],(t[1]-t[0])*Math.random()+t[0],0),s.acceleration=new c.Vector3(0,-9.8,0),s.awakeIn=(0,u.pausibleNow)()+100*n}}for(let s=0;s<10;s++){const i=o.current.children[s];if((0,u.pausibleNow)()a&&(i.velocity=new c.Vector3((e[1]-e[0])*Math.random()+e[0],(t[1]-t[0])*Math.random()+t[0],0),i.position.set(0,0,0))}}})),(0,i.jsx)("object3D",{...r,ref:o,children:Array(10).fill(0).map(((e,t)=>(0,i.jsxs)("mesh",{children:[(0,i.jsx)("planeGeometry",{args:[.2,.2]}),(0,i.jsx)("meshStandardMaterial",{color:"red",transparent:!0})]},t)))})}const N=new x.Howl({src:[n(2777)],autoplay:!1,volume:0,loop:!0});function I(){const e=(0,p.useContext)(d.EffectsContext);(0,p.useEffect)((()=>{e.setNoiseIntensity&&e.setNoiseIntensity(.5)})),(0,p.useEffect)((()=>{(0,E.playBGM)("fountain")}));const t=(0,l.useSimpleTexture)(n(65592)),s=(0,l.useSimpleTexture)(n(42590)),r=(0,p.useContext)(g.NavigationContext);(0,p.useEffect)((()=>{r.setNavigation&&r.setNavigation({right:{level:"fountain2"}})}),[r]);const[o,a]=(0,p.useState)([0,0,0,0,0,0,0,0]),h=o.reduce(((e,t)=>e+t),0)>0;(0,p.useEffect)((()=>(N.play(),N.volume(0),()=>{N.stop()})),[]),(0,p.useEffect)((()=>{h?N.fade(0,.8,100):N.fade(.8,0,400)}),[h]);const f=(0,p.useCallback)((e=>[()=>{for(let t=0;t{var e;e=n,a((t=>{const n=[...t];return n[e]++,n}))}),200*t)}},()=>{for(let t=0;t{var e;e=n,a((t=>{const n=[...t];return n[e]--,n}))}),400*t)}}]),[]),[x,_]=(0,p.useMemo)((()=>f([0,5,1])),[]),[b,y]=(0,p.useMemo)((()=>f([5,6])),[]),[j,T]=(0,p.useMemo)((()=>f([2,3])),[]),[S,I]=(0,p.useMemo)((()=>f([4])),[]),[w,R]=(0,p.useMemo)((()=>f([4,2])),[]),[M,C]=(0,p.useMemo)((()=>f([7])),[]),{orientation:L}=(0,p.useContext)(m.LayoutContext),A=[{position:[.05,3.8,-9],velXRange:[-2.5,2.5],velYRange:[0,2],floor:0,distance:1},{position:[.05,2.2,-9],velXRange:[-2.5,2.5],velYRange:[0,2],floor:0,distance:1},{position:[-1.2,2,-9],velXRange:[2.4,2.9],velYRange:[0,0],floor:-1.1,distance:1.9},{position:[1.2,2,-9],velXRange:[-2.4,-2.9],velYRange:[0,0],floor:-1.1,distance:1.9},{position:[.9,3.7,-9],velXRange:[0,.3],velYRange:[.2,.4],floor:-2,distance:1.6},{position:[-.9,3.7,-9],velXRange:[0,-.3],velYRange:[.2,.4],floor:-2,distance:1.6},{position:[-.9,2,-9],velXRange:[0,-.3],velYRange:[.2,.4],floor:-2,distance:1.6},{position:[.05,.7,-9],velXRange:[-2.5,2.5],velYRange:[0,2],floor:0,distance:1}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("fog",{attach:"fog",args:["#000",0,30]}),(0,i.jsxs)("object3D",{position:[0,"landscape"===L?0:-1,"landscape"===L?0:3],children:[(0,i.jsx)(l.BaphometPuzzleCommon,{}),(0,i.jsxs)("mesh",{position:[0,1,-10],rotation:[0,0,0],scale:[1.8,1.2,1],children:[(0,i.jsx)("planeGeometry",{args:[6,6,15]}),(0,i.jsx)("meshStandardMaterial",{map:t,transparent:!0})]}),o.map(((e,t)=>e>0?(0,i.jsx)(O,{scale:[1,1,1],position:A[t].position,velXRange:A[t].velXRange,velYRange:A[t].velYRange,floor:A[t].floor,distance:A[t].distance}):null)),(0,i.jsxs)("mesh",{position:[0,-1.5,-13],children:[(0,i.jsx)("boxGeometry",{args:[10,1.5,10]}),(0,i.jsx)("meshStandardMaterial",{map:s,color:[.8,.8,.8]})]}),(0,i.jsx)(v,{layers:[0,1],position:[-3.75,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[0,4],position:[-2.5,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[0,1,2],position:[-1.25,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[0,1,3],position:[0,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[5],position:[1.25,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[0,1,3],position:[2.5,-1.3,-7.9]}),(0,i.jsx)(v,{layers:[0,1,2],position:[3.75,-1.3,-7.9]}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[7,2.8,-13.5]:[6,5,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{x()},onRelease:()=>{_()},children:(0,i.jsx)(v,{layers:[0],position:[0,0,.5]})}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[8.5,1,-13.5]:[5,6.7,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{b()},onRelease:()=>{y()},children:(0,i.jsx)(v,{layers:[1],position:[0,0,.5]})}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[-9,4,-13.5]:[-3,6.5,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{w()},onRelease:()=>{R()},children:(0,i.jsx)(v,{layers:[2],position:[0,0,.5]})}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[-8.5,1,-13.5]:[-5,6.7,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{M()},onRelease:()=>{C()},children:(0,i.jsx)(v,{layers:[3],position:[0,0,.5]})}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[9,4,-13.5]:[3,6.5,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{S()},onRelease:()=>{I()},children:(0,i.jsx)(v,{layers:[4],position:[0,0,.5]})}),(0,i.jsx)(l.WallButton,{toggle:!0,baseColor:new c.Color(.5,.5,.5),position:"landscape"===L?[-7,2.7,-13.5]:[-6,5,-13.5],scale:[1.5,1.5,1.5],onClick:()=>{j()},onRelease:()=>{T()},children:(0,i.jsx)(v,{layers:[5],position:[0,0,.5]})})]})]})}function w({unlockedFountain:e,setUnlockedFountain:t}){const s=(0,p.useContext)(g.NavigationContext);(0,p.useEffect)((()=>{s.setNavigation&&s.setNavigation({left:{level:"fountain"}})}),[s]),(0,p.useEffect)((()=>{(0,E.playBGM)("fountain")}));const r=(0,p.useContext)(d.EffectsContext);(0,p.useEffect)((()=>{r.setNoiseIntensity&&r.setNoiseIntensity(.5)}));const[o,c]=(0,p.useState)(0),x=(0,p.useContext)(h.ChatContext),{setShowGlobalHint:m}=(0,p.useContext)(f.HintContext),[v,O]=(0,p.useState)([]),N=e=>{const n=[...v,e];n.length>7&&n.splice(0,1),O(n),_.isEqual(n,["f","o","r","e","v","e","r"])&&(t(!0),c((0,u.pausibleNow)()),(0,j.playSFX)("door_open"),x.addMessage((0,i.jsx)(y.l10n.Text,{name:"OTHER_WORLD_FOUNTAIN_PUZZLE_SOLVED"})),a.stopEventTimer("fountain"),(0,b.achieve)(S.AchievementString.FOUNTAIN),m(7))},I=(0,p.useRef)(),{setCameraShake:w}=(0,p.useContext)(d.EffectsContext),R=(0,p.useRef)(w);R.current=w,(0,p.useEffect)((()=>()=>{R.current(0)}),[]),(0,u.useFramePausible)((()=>{if(I.current&&e){const e=((0,u.pausibleNow)()-o)/3e3;e>0&&e<1?(I.current.scale.x=(0,T.easeOutCubic)(e),w(.05*(1-(0,T.easeOutCubic)(e)))):w(0)}}));const M=(0,l.useSimpleTexture)(n(68487)),C={f:(0,l.useSimpleTexture)(n(16158)),e:(0,l.useSimpleTexture)(n(1909)),v:(0,l.useSimpleTexture)(n(97294)),r:(0,l.useSimpleTexture)(n(84426)),d:(0,l.useSimpleTexture)(n(19020)),a:(0,l.useSimpleTexture)(n(52273)),m:(0,l.useSimpleTexture)(n(31469)),o:(0,l.useSimpleTexture)(n(18879)),s:(0,l.useSimpleTexture)(n(39635)),i:(0,l.useSimpleTexture)(n(15049)),u:(0,l.useSimpleTexture)(n(67653)),l:(0,l.useSimpleTexture)(n(5316)),t:(0,l.useSimpleTexture)(n(84764)),n:(0,l.useSimpleTexture)(n(40790)),b:(0,l.useSimpleTexture)(n(27610)),h:(0,l.useSimpleTexture)(n(60224)),"?":(0,l.useSimpleTexture)(n(67198))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("fog",{attach:"fog",args:["#000",0,30]}),(0,i.jsx)(l.BaphometPuzzleCommon,{}),(0,i.jsx)("mesh",{position:[-6.5,2.9,-13.5],scale:[1.5,1.5,1.5],children:["a"].map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[-7.5,1.4,-13.5],scale:[1.5,1.5,1.5],children:["a"].map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[-5,1.4,-13.4],scale:[1.5,1.5,1.5],children:["f","e","v","e","r"].map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[3.3,1.4,-13.4],scale:[1.5,1.5,1.5],children:["d","r","e","a","m"].map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[-1.8,-.1,-13.4],scale:[1.5,1.5,1.5],children:["o","r"].map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[1.8,-.1,-13.4],scale:[1.5,1.5,1.5],children:"both?".split("").map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),(0,i.jsx)("mesh",{position:[-4,2.9,-13.4],scale:[1.5,1.5,1.5],children:"simulation".split("").map(((e,t)=>(0,i.jsx)(l.WallButton,{position:[t,0,0],map:M,onClick:()=>{N(e)},children:(0,i.jsxs)("mesh",{position:[0,0,.5],children:[(0,i.jsx)("planeGeometry",{args:[1,1]}),(0,i.jsx)("meshBasicMaterial",{map:C[e],transparent:!0})]})},t)))}),e?(0,i.jsxs)("mesh",{ref:I,receiveShadow:!0,castShadow:!0,position:[0,-2,-14.9],onClick:()=>{s.moveTo("sacrifice","forward",!0)},children:[(0,i.jsx)("boxGeometry",{args:[5,12,5]}),(0,i.jsx)("meshStandardMaterial",{color:"rgb(0,0,0)"})]}):null]})}},64297:(e,t,n)=>{e.exports=n.p+"assets/sign_house.8fbb21cf59f27bc26b34.gif"},65592:(e,t,n)=>{e.exports=n.p+"assets/fountain.74ed50d29d28d583b979.gif"},65936:(e,t,n)=>{e.exports=n.p+"assets/hell.808adc8e76c2f976ab93.png"},67025:(e,t,n)=>{e.exports=n.p+"assets/password_help.28d96b38f282d6ce7e42.png"},67198:(e,t,n)=>{e.exports=n.p+"assets/question.e3639fc3624a0cf82de0.png"},67653:(e,t,n)=>{e.exports=n.p+"assets/u.2d4a919d67cd8087e81c.png"},68487:(e,t,n)=>{e.exports=n.p+"assets/letter_button.972965872516f47ffc74.png"},69243:(e,t,n)=>{e.exports=n.p+"assets/kr.7cac458a4f03cda084ed.jsonc"},69592:(e,t,n)=>{e.exports=n.p+"assets/birthday_wallpaper.aa1805df5a118859174a.gif"},69783:(e,t,n)=>{e.exports=n.p+"assets/shape3.ccf3b8ca527241ab9639.png"},69784:(e,t,n)=>{e.exports=n.p+"assets/corruption.9a4e57e6cfeed77e28db.gif"},70286:(e,t,n)=>{e.exports=n.p+"assets/shape2.3074d490271211a54a19.png"},70407:(e,t,n)=>{e.exports=n.p+"assets/door_open.7cd515a9d3e724377560.mp3"},70839:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,o.useContext)(i.LayoutContext).size,[n,s]=(0,o.useState)(!0),d=(0,o.useRef)(null);return(0,r.jsxs)(a.default,{name:e.name,initialPosition:e.initialPosition,title:e.title,style:e.style,onVisibleChange:e=>{e&&(d.current.scrollTop=d.current.scrollHeight-d.current.clientHeight,d.current.scrollTop>40?s(!0):s(!1))},children:[(0,r.jsx)(c.Scrollable,{ref:d,style:{width:400*t,height:250*t,overflowY:"scroll",overflowX:"hidden",background:"white",margin:5*t,padding:10*t,wordBreak:"break-word"},onScroll:e=>{e.target.scrollTop>40?s(!0):s(!1)},children:e.chat}),n&&(0,r.jsx)("div",{className:"button-98 cursor-pointer",style:{position:"absolute",background:"#ccc",padding:5*t,height:20*t,top:45*t,left:5*t,border:3*t+"px solid black"},onClick:()=>{d.current.scrollTop=0},children:(0,r.jsx)(l.l10n.Text,{name:"SCROLL_TO_TOP"})})]})};const r=n(74848),o=n(96540),i=n(49616),a=s(n(96886)),l=n(81218),c=n(73917)},71346:(e,t,n)=>{e.exports=n.p+"assets/bts3.74689715832191efe6f3.gif"},71536:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onUnlocked:e}){const[t,n]=(0,o.useState)(""),{size:s,orientation:h}=(0,o.useContext)(a.LayoutContext),{language:f}=(0,o.useContext)(d.l10n.Context),{setShowGlobalHint:x}=(0,o.useContext)(i.HintContext);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.default,{name:"photos4em.zip",initialPosition:{x:"landscape"===h?200:70,y:"landscape"===h?150:250},title:f.UNZIPPER_TITLE,children:(0,r.jsxs)("div",{style:{width:400*s,textAlign:"center",padding:30*s},children:[(0,r.jsx)("div",{children:f.UNZIPPER_TEXT}),(0,r.jsx)("br",{}),(0,r.jsxs)("form",{action:"#",onSubmit:t=>{t.preventDefault(),"7436"===t.target[0].value?(e(),(0,c.achieve)(p.AchievementString.ZIP_UNLOCKED),x(2)):(n(f.UNZIPPER_INCORRECT_PASSWORD),(0,u.setTimeoutPausible)((()=>{n("")}),1e3))},autoComplete:"off",children:[(0,r.jsx)("input",{style:{border:2*s+"px solid black",borderRadius:0,padding:10*s,width:200*s,fontSize:Math.max(16,16*s),verticalAlign:"middle"},type:"text"}),(0,r.jsx)("input",{className:"button-98 cursor-pointer",style:{color:"black",height:Math.max(38,50*s)},type:"submit",value:f.UNZIPPER_UNLOCK_BUTTON})]}),(0,r.jsx)("div",{style:{color:"red",height:20*s},children:t})]})})})};const r=n(74848),o=n(96540),i=n(29369),a=n(49616),l=s(n(96886)),c=n(73719),d=n(81218),u=n(91722),p=n(37815)},72206:(e,t,n)=>{e.exports=n.p+"assets/scan1.a640186201451a3ad717.gif"},72694:(e,t,n)=>{e.exports=n.p+"assets/playername.ee76661cc774c092cd31.png"},73164:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewIntroText=function({onFinished:e}){const{playMusic:t}=(0,f.useSound)(),{size:s}=(0,l.useContext)(c.LayoutContext),{language:r}=(0,l.useContext)(d.l10n.Context),o=(0,l.useRef)(),{play:i}=(0,h.useTimeline2WithPlayState)((()=>[{duration:1,onFrame:(e,t)=>{o.current.style.opacity=t}}]));(0,l.useEffect)((()=>{i()}),[]);const g=(0,l.useMemo)((()=>r.INTRO_TEXT_1.trim().split("")),[r.INTRO_TEXT_1]),b=(0,l.useMemo)((()=>r.INTRO_TEXT_2.trim().split("")),[r.INTRO_TEXT_2]),y=(0,l.useMemo)((()=>r.TITLE_TEXT.trim().split("")),[r.TITLE_TEXT]),E=(0,l.useMemo)((()=>_.shuffle(_.range(0,g.length+b.length))),[g.length]),[j,T,S]=(0,l.useMemo)((()=>{const e=[],t=[],n=[];for(let n of y){let s=!1;for(let r=0;r{const e=[],t=[],n=[],o=[];for(let i=0;i{v.leftStarts.map(((e,t)=>{const n=v.topStarts[t];if(t[{duration:6,onFrame:(e,t)=>{I.current&&(I.current.style.opacity=1-2*t),w.current&&(w.current.style.opacity=1-2*t),v.leftStarts.map(((e,n)=>{const s=v.topStarts[n],r=v.leftEnds[n],o=v.topEnds[n],i=new u.Vector2(e,s).lerp(new u.Vector2(r,o),(0,p.easeInOutQuad)(t)),a=i.x,l=i.y;if(n.5-n/100?1:t<.4-n/100?-1:Math.sin(20*t*n/100-123*n)*Math.sin(100*t-123*n)*Math.sin(t*Math.PI);O.current[n].innerText=s>0?y[e]:g[n]}O.current[n].style.opacity=t>.52+n/200?1:Math.sin(150*t-123*n)*Math.sin(t*Math.PI)+1}else O.current[n].style.opacity=1}else{if(!N.current[n-g.length])return;if(N.current[n-g.length].style.left=`${a}%`,N.current[n-g.length].style.top=`${l}px`,-1===T.indexOf(n))N.current[n-g.length].style.opacity=1-2*t;else if(-1!==S.indexOf(n)){const e=j.indexOf(n);if(-1!==e){const s=t>.5-n/100?1:t<.4-n/100?-1:Math.sin(20*t*n/100-123*n)*Math.sin(100*t-123*n)*Math.sin(t*Math.PI);N.current[n-g.length].innerText=s>0?y[e]:b[n-g.length]}N.current[n-g.length].style.opacity=t>.52+n/200?1:Math.sin(150*t-123*n)*Math.sin(t*Math.PI)+1}else N.current[n-g.length].style.opacity=1}}))}},{deps:[g,v],duration:.5,onEnd:()=>{t("beep"),e&&e()}}]));return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{background:"black",width:"100%",height:"100%"},children:(0,a.jsxs)("div",{ref:o,children:[(0,a.jsxs)("div",{style:{color:"white",paddingTop:180*s,fontFamily:"Courier New",fontSize:20*s},children:[(0,a.jsx)("img",{ref:I,width:120*s,src:n(51920),alt:"pc_horror"}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block",width:600*s},children:[g.map(((e,t)=>(0,a.jsx)("span",{ref:e=>O.current[t]=e,style:{position:"absolute",top:0,left:0},children:e},t))),b.map(((e,t)=>(0,a.jsx)("span",{ref:e=>N.current[t]=e,style:{position:"absolute",top:0,left:0},children:e},t)))]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",ref:w,style:{display:"inline-block",marginTop:40*s},onClick:e=>{M||R(),t("dialup")},children:(0,a.jsx)(d.l10n.Text,{name:"CONTINUE_BUTTON"})})]})})})};const a=n(74848),l=n(96540),c=n(49616),d=n(81218),u=(i(n(20584)),n(17322),o(n(27186))),p=n(97172),h=n(34015),f=n(49046);function x(e,t,n,s,r,o,i){return r.includes(s)&&i?2*r.indexOf(s)*o+(50-n.length*o):s{e.exports=n.p+"assets/song_5_2.ddb7bbd3f6e8ce57e0ce.mp3"},73556:(e,t,n)=>{e.exports=n.p+"assets/brick2.a23d35a9c380dec75ade.gif"},73864:(e,t,n)=>{e.exports=n.p+"assets/knock_echo.bf975f73e0962288d1d7.mp3"},73917:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollable=void 0,t.ScrollBar=l;const r=n(74848),o=n(96540),i=n(49616),a=s(n(74692));function l({element:e,content:t}){const n=(0,o.useRef)(),s=(0,o.useRef)(),l=(0,o.useRef)(),{size:c}=(0,o.useContext)(i.LayoutContext),[d,u]=(0,o.useState)(50*c),p=()=>{let n=(0,a.default)(e.current).scrollTop(),s=((0,a.default)(e.current).height(),(0,a.default)(t.current).height(),n/(e.current.scrollHeight-e.current.clientHeight)*100);return s=Math.min(s,100),s=Math.max(s,0),s};(0,o.useEffect)((()=>{if(e&&e.current){const r=e=>{let t=p();s.current.style.top=`${t}%`};r(),e.current.addEventListener("scroll",r);const o=new ResizeObserver((()=>{const t=(0,a.default)(n.current).height()-65*c;(0,a.default)(e.current).height(),e.current.scrollHeight;u(Math.max(Math.min(t/e.current.scrollHeight*e.current.clientHeight,t),50))}));o.observe(t.current);const i=e.current;return()=>{i&&i.removeEventListener("scroll",r),o.disconnect()}}}),[e,t,c]),(0,o.useEffect)((()=>{s.current.style.height=`${d}px`,l.current.style.bottom=`${d+30*c}px`}),[d,c]);const h=(0,o.useRef)(!1),f=(0,o.useRef)(0),x=(0,o.useRef)(0);return(0,o.useEffect)((()=>{const n=n=>{if(h.current){const s=n.clientY||n.pageY||n.touches&&n.touches[0]?.pageY||n.touches&&n.touches[0]?.clientY,r=((0,a.default)(l.current).offset(),(0,a.default)(l.current).height());let o=f.current+(s-x.current)/r*100;o=Math.min(o,100),o=Math.max(o,0),(n=>{(0,a.default)(e.current).height(),(0,a.default)(t.current).height();let s=n/100*(e.current.scrollHeight-e.current.clientHeight);(0,a.default)(e.current).scrollTop(s)})(o)}},s=e=>{h.current=!1};return window.addEventListener("mousemove",n),window.addEventListener("touchmove",n),window.addEventListener("mouseup",s),window.addEventListener("touchend",s),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("touchmove",n),window.removeEventListener("mouseup",s),window.removeEventListener("touchend",s)}}),[]),(0,r.jsx)("div",{className:"scrollbar",ref:n,children:(0,r.jsxs)("div",{className:"scrollbar-buttons",onClick:t=>{(t.clientY||t.pageY||t.touches&&t.touches[0]?.pageY||t.touches&&t.touches[0]?.clientY){(0,a.default)(e.current).scrollTop((0,a.default)(e.current).scrollTop()-50*c),t.stopPropagation()}}),(0,r.jsx)("div",{className:"scrollbar-track",ref:l,children:(0,r.jsx)("div",{className:"scrollbar-btn",ref:s,onClick:e=>{e.stopPropagation()},onTouchStart:e=>{const t=e.clientY||e.pageY||e.touches&&e.touches[0]?.pageY||e.touches&&e.touches[0]?.clientY;f.current=p(),h.current=!0,x.current=t},onMouseDown:e=>{const t=e.clientY||e.pageY||e.touches&&e.touches[0]?.pageY||e.touches&&e.touches[0]?.clientY;f.current=p(),h.current=!0,x.current=t}})}),(0,r.jsx)("div",{className:"scrollbar-bottom",onClick:t=>{(0,a.default)(e.current).scrollTop((0,a.default)(e.current).scrollTop()+50*c),t.stopPropagation()}})]})})}n(80011),t.Scrollable=(0,o.forwardRef)((({children:e,style:t,onScroll:n},s)=>{s=s||(0,o.useRef)();const i=(0,o.useRef)();return(0,r.jsx)("div",{style:{position:"relative",background:t.background,margin:t.margin},children:(0,r.jsxs)("div",{ref:s,style:{width:t.width,height:t.height,overflow:t.overflow,overflowX:t.overflowX,overflowY:t.overflowY},onScroll:n,children:[(0,r.jsx)("div",{ref:i,style:{...t,marginRight:"2.2em",margin:void 0,width:void 0,height:void 0,overflow:void 0,overflowX:void 0,overflowY:void 0,background:void 0},children:e}),(0,r.jsx)(l,{element:s,content:i})]})})}))},73965:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EffectsContext=t.Ghost=t.DynamicSignTexture=void 0,t.SpinningFountain=z,t.default=function(){const[e,t]=(0,g.useSaveState)("loggedInOtherworld",d.LOGGED_IN_OTHER_WORLD),[n,s]=(0,g.useSaveState)("showJumpScare",!0),[r,o]=(0,b.useState)(""),[i,l]=(0,b.useState)(!1),[c,p]=(0,b.useState)(""),[h,f]=(0,g.useSaveState)("level",d.OTHER_WORLD_LEVEL),[m,T]=(0,g.useSaveState)("ghostClickedInDisco",!1),[v,O]=(0,g.useSaveState)("ghostSeenInIntro",!1),[I,w]=(0,g.useSaveState)("ghostSeenInServer",!1),[R,M]=(0,b.useState)([]),C=(0,b.useRef)(),L=(0,b.useCallback)((e=>{C.current?.addMessage(e)}),[C]),A=(0,b.useCallback)((e=>{C.current?.showOneMessage(e)}),[C]),D=(0,b.useRef)(!1),P=(0,b.useCallback)(((e,t,n)=>{D.current||(p(t),D.current=!0,(0,E.setTimeoutPausible)((()=>{D.current&&(l(!0),n&&(0,y.fadeMusic)(1,0,400))}),100),(0,E.setTimeoutPausible)((()=>{D.current&&f(e)}),400),(0,E.setTimeoutPausible)((()=>{D.current&&(f(e),p(""),D.current=!1,l(!1),n&&(0,y.fadeMusic)(0,1,400))}),500))}),[p]),F=(0,b.useMemo)((()=>({setNavigation:M,moveTo:P})),[M,P]),k=(0,b.useMemo)((()=>({addMessage:L,showOneMessage:A})),[L,A]),[G,U]=(0,g.useSaveState)("animation",d.ANIMATE_OTHER_WORLD?null:"none"),[W,B]=(0,g.useSaveState)("shouldAnimate",!0);(0,b.useContext)(S.EndingPopupContext).setAnimation=U;const z=(0,b.useContext)(N.LayoutContext);return(0,a.jsx)(_.default,{name:"otherworld",fullscreen:!0,initialPosition:{x:0,y:0},style:{position:"absolute",zIndex:1e3,transform:"translate3d(0,0,0)",width:"landscape"===z.orientation?800*z.size:600*z.size,height:"landscape"===z.orientation?600*z.size:800*z.size,border:0,borderRadius:0,background:"#111",animation:W?G:"none"},topBarStyle:{display:"none"},onVisibleChange:e=>{B(!e)},children:(0,a.jsx)(j.ChatContext.Provider,{value:k,children:e?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(H.Provider,{value:{ghostClickedInDisco:m,setGhostClickedInDisco:T,ghostSeenInIntro:v,setGhostSeenInIntro:O,ghostSeenInServer:I,setGhostSeenInServer:w},children:(0,a.jsxs)(x.NavigationContext.Provider,{value:F,children:[(0,a.jsx)("div",{style:{},children:(0,a.jsx)("div",{style:{width:"landscape"===z.orientation?800*z.size:600*z.size,height:"landscape"===z.orientation?600*z.size:800*z.size},children:(0,a.jsx)(u.Canvas,{flat:!0,linear:!0,children:(0,a.jsx)(te,{name:r,level:h,fade:i,moveAnimation:c,onMoveAnimationDone:()=>{}})})})}),(0,a.jsx)(x.GameNavigator,{fade:i,navigation:R,onNavigate:e=>{P(R[e].level,e,R[e].fadeMusic)}}),(0,a.jsx)(ne,{ref:C})]})})}):(0,a.jsx)(V,{onLoggedIn:e=>{t(!0),o(e)},showJumpscare:n,setShowJumpscare:s})})})};const a=n(74848),l=o(n(27186)),c=o(n(23571)),d=n(78815),u=n(73560),p=n(27186),h=o(n(75206)),f=n(64159),x=n(80129),m=o(n(58220)),g=n(80985),_=o(n(96886)),b=n(96540),y=n(17322),E=n(91722),j=n(26661),T=n(56448),S=n(98722),v=n(52725),O=n(29369),N=n(49616),I=n(26696),w=n(7216),R=i(n(98845)),M=i(n(2543)),C=n(73719),L=n(40961),A=n(81218),D=n(44190),P=i(n(20584)),F=n(97172),k=n(70641),G=n(73917),U=n(37815),H=(0,b.createContext)({});(0,u.extend)({NoiseGrainPass:I.NoiseGrainPass}),(0,u.extend)({NoiseGrainPass2:w.NoiseGrainPass2});const W=[0,22,45,67,80,112,135,157,180,202,225,247,280,292,315,337,360];function B(){const{size:e}=(0,b.useContext)(N.LayoutContext),t=(0,b.useRef)(null),s=(0,b.useRef)(0);return(0,b.useEffect)((()=>{const e=setInterval((()=>{s.current===W.length-1?s.current=0:s.current+=1,t.current.style.transform=`rotateY(${W[s.current]}deg)`}),300);return()=>clearInterval(e)}),[]),(0,a.jsx)("img",{ref:t,src:n(20284),alt:"logo",style:{width:150*e,transform:`rotateY(${W[s.current]}deg)`}})}function V({onLoggedIn:e,showJumpscare:t,setShowJumpscare:n}){const{makeWindowInvisible:s,setVisibleWindows:r}=(0,b.useContext)(_.WindowManagerContext),o=(0,b.createRef)(),i=(0,b.createRef)(),[l,u]=(0,b.useState)("main"),[p,h]=(0,b.useState)("Logging In..."),[f,x]=(0,b.useState)(!1),[m,y]=(0,b.useState)(!1),{neverlandPassword:j}=(0,b.useContext)(g.SaveContext),[T]=(0,k.useCheatState)("jumpscare",!0),S=()=>{if(o.current.value.toUpperCase()===j)c.stopEventTimer("otherworld_password"),t&&T?(n(!1),r(["accept-call"])):u("invited");else{o.current.style.animation="jitter 0.5s";const e=o.current;(0,E.setTimeoutPausible)((()=>{e&&(e.style.animation="")}),500),o.current.value=""}},v=()=>{const t=i.current.value;""!==t&&(x(!0),h(I.OTHER_WORLD_CONNECTING),y(!0),(0,E.setTimeoutPausible)((()=>{h(I.OTHER_WORLD_LOGGING_IN),(0,E.setTimeoutPausible)((()=>{h(I.OTHER_WORLD_WELCOME.format(t)),(0,E.setTimeoutPausible)((()=>{x(!1),u("main"),e(t)}),2e3)}),1200)}),500))},O=(0,b.useContext)(N.LayoutContext).size,{language:I}=(0,b.useContext)(A.l10n.Context);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"absolute",width:"100%",textAlign:"center",height:"100%"},children:[(0,a.jsx)("div",{style:{height:100*O}}),(0,a.jsx)("div",{style:{perspective:150*O,imageRendering:"pixelated"},children:(0,a.jsx)(B,{})}),"main"===l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto"},onClick:e=>{u("login")},children:I.OTHER_WORLD_LOGIN}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto"},onClick:e=>{d.AUTO_REGISTER?u("invited"):u("register")},children:I.OTHER_WORLD_REGISTER}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto",background:"#c00"},onClick:()=>{s("otherworld")},children:I.OTHER_WORLD_EXIT})]}):"login"===l?(0,a.jsx)(a.Fragment,{children:f?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{style:{color:"white"},children:p})}):(0,a.jsxs)("form",{autoComplete:"off",children:[(0,a.jsx)("input",{name:"notsearch_username",autocomplete:"off",className:"text-98",type:"text",placeholder:I.OTHER_WORLD_USERNAME,style:{width:200*O,margin:4*O+"px auto"}}),(0,a.jsx)("input",{name:"notsearch_password",autocomplete:"off",autoComplete:"off",className:"text-98",type:"password",placeholder:I.OTHER_WORLD_PASSWORD,style:{width:200*O,margin:4*O+"px auto"}}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto"},onClick:e=>{x(!0),h(I.OTHER_WORLD_CONNECTING),y(!0),(0,E.setTimeoutPausible)((()=>{h(I.OTHER_WORLD_LOGGING_IN),(0,E.setTimeoutPausible)((()=>{x(!1)}),1200)}),500)},children:I.OTHER_WORLD_LOGIN}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto",background:"#c00"},onClick:e=>{u("main"),y(!1)},children:I.OTHER_WORLD_BACK}),m?(0,a.jsx)("span",{style:{color:"red"},children:I.OTHER_WORLD_INVALID}):null]})}):"register"===l?(0,a.jsx)(a.Fragment,{children:f?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{style:{color:"white"},children:p})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("form",{onSubmit:e=>{S(),e.preventDefault()},autocomplete:"off",children:(0,a.jsx)("input",{name:"invite",ref:o,className:"text-98",type:"text",placeholder:I.OTHER_WORLD_INVITE_CODE,style:{width:200*O,margin:4*O+"px auto",fontSize:Math.max(16,16*O)}})}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto"},onClick:e=>{S()},children:I.OTHER_WORLD_CONTINUE}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto",background:"#c00"},onClick:e=>{u("main"),y(!1)},children:I.OTHER_WORLD_BACK})]})}):"invited"===l?(0,a.jsx)(a.Fragment,{children:f?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{style:{color:"white"},children:p})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("form",{onSubmit:e=>{v(),e.preventDefault()},autocomplete:"off",children:(0,a.jsx)("input",{ref:i,name:"name",className:"text-98 placeholder-size",type:"text",placeholder:I.OTHER_WORLD_WHATS_YOUR_NAME,style:{width:200*O,margin:4*O+"px auto",fontSize:Math.max(16,16*O)}})}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{width:200*O,margin:4*O+"px auto"},onClick:e=>{v()},children:I.OTHER_WORLD_CONTINUE})]})})}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{style:{position:"absolute",color:"white",bottom:20*O,width:"100%"},children:"© 1994 OtherCorp"})]})})}function z(e){const t=(0,b.useRef)(),n=(0,b.useRef)(),s=(0,b.useRef)();(0,b.useEffect)((()=>{const e=setInterval((()=>{const e=(0,E.pausibleNow)();t.current&&n.current&&s.current&&(t.current.position.x=Math.sin(e/1e3)+.5*Math.sin(e/750+100),t.current.position.y=.5*Math.cos(e/1e3),t.current.position.z=.5*Math.cos(e/1200+500),t.current.rotation.x=e/1e3,t.current.rotation.y=e/1e3*.2,t.current.rotation.z=e/1e3*.1,t.current.material.opacity>.5?t.current.material.opacity-=.05:t.current.material.opacity=.5,n.current.position.x=.5*Math.sin(e/1e3+500),n.current.position.y=.5*Math.cos(e/1e3+500)*Math.sin(e/1e3+500),t.current.position.z=1*Math.sin(e/1e3)+.5*Math.sin(e/750+100),n.current.rotation.x=e/1e3,n.current.rotation.y=e/1e3*.2,n.current.rotation.z=e/1e3*.1,n.current.material.opacity>.5?n.current.material.opacity-=.05:n.current.material.opacity=.5,s.current.position.x=.5*Math.sin(e/1e3+500+200),s.current.position.y=.5*Math.cos(e/1e3+500+600)*Math.sin(e/1e3+500),s.current.position.z=.5*Math.sin(e/1e3)*Math.sin(e/750+100)*.5,s.current.rotation.x=e/1e3,s.current.rotation.y=e/1e3*.2,s.current.rotation.z=e/1e3*.1,s.current.material.opacity>.5?s.current.material.opacity-=.05:s.current.material.opacity=.5)}),100);return()=>clearInterval(e)}),[]);const r=(0,b.useContext)(j.ChatContext);return(0,a.jsxs)("object3D",{...e,children:[(0,a.jsxs)("mesh",{ref:t,onClick:e=>{r.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_CUBE"})),e.stopPropagation(),t.current.material.opacity=1},children:[(0,a.jsx)("boxGeometry",{args:[1,1,1]}),(0,a.jsx)("meshStandardMaterial",{color:"red",transparent:"true",opacity:.5})]}),(0,a.jsxs)("mesh",{ref:n,onClick:e=>{r.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_PYRAMID"})),e.stopPropagation(),n.current.material.opacity=1},children:[(0,a.jsx)("coneGeometry",{args:[.6,1,3,1]}),(0,a.jsx)("meshStandardMaterial",{color:"blue",transparent:"true",opacity:.5})]}),(0,a.jsxs)("mesh",{ref:s,onClick:e=>{r.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_SPHERE"})),e.stopPropagation(),s.current.material.opacity=1},children:[(0,a.jsx)("sphereGeometry",{args:[.6,12,12]}),(0,a.jsx)("meshStandardMaterial",{color:"green",transparent:"true",opacity:.5})]})]})}function Y(){const e=(0,u.useLoader)(p.TextureLoader,n(87147));(0,b.useEffect)((()=>{e.minFilter=p.NearestFilter,e.magFilter=p.NearestFilter,e.wrapS=p.RepeatWrapping,e.wrapT=p.RepeatWrapping,e.repeat.set(3,3),e.needsUpdate=!0}),[e]);const t=(0,b.useContext)(x.NavigationContext);return(0,b.useEffect)((()=>{t.setNavigation&&t.setNavigation({forward:{level:"intro2"}})}),[t]),(0,b.useEffect)((()=>{(0,y.playBGM)("intro")}),[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#cff",0,30]}),(0,a.jsxs)("object3D",{position:[0,2,0],children:[(0,a.jsxs)("mesh",{position:[0,-4,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,30,30]}),(0,a.jsx)("meshStandardMaterial",{map:e})]}),(0,a.jsx)(z,{position:[0,-1,-15]})]})]})}function $(){const{ghostClickedInDisco:e,ghostSeenInIntro:s,setGhostSeenInIntro:r}=(0,b.useContext)(H),o=(0,u.useLoader)(p.TextureLoader,n(87147));(0,b.useEffect)((()=>{o.minFilter=p.NearestFilter,o.magFilter=p.NearestFilter,o.wrapS=p.RepeatWrapping,o.wrapT=p.RepeatWrapping,o.repeat.set(3,3),o.needsUpdate=!0}),[o]);const i=(0,b.useRef)({}),l=(0,b.useRef)({}),[c]=(0,P.default)([{duration:1,onStart:()=>{d.setNavigation({}),(0,y.setRate)(.5),h.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15] ","(:"]}))}},{duration:1,frameCallback:(e,t)=>{if(!i.current)return;if(!l.current)return;const n=.01*Math.floor(t/.01);i.current.position.x=2*-n,i.current.position.z=-.5-.1*n+Math.cos(50*n)*Math.cos(50*n+10)*.1,(0,y.setRate)(.5+.5*t),l.current.position.set(i.current.position.x,i.current.position.y,i.current.position.z)},onEnd:()=>{(0,y.setRate)(1),r(!0),d.setNavigation({backward:{level:"intro"},right:{level:"disco",fadeMusic:!0},left:{level:"servers"}})}}]);(0,b.useEffect)((()=>{e&&!s&&c()}),[e,s]);const d=(0,b.useContext)(x.NavigationContext);(0,b.useEffect)((()=>{d.setNavigation&&d.setNavigation({backward:{level:"intro"},left:{level:"servers"},right:{level:"disco",fadeMusic:!0}})}),[d]),(0,b.useEffect)((()=>{(0,y.playBGM)("intro")}),[]);const h=(0,b.useContext)(j.ChatContext);(0,b.useEffect)((()=>{h.addMessage&&h.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_CREATION"}))}),[]);const{noiseScene:f}=(0,b.useContext)(t.EffectsContext);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#cff",0,30]}),(0,a.jsxs)("object3D",{position:[0,2,0],children:[(0,a.jsxs)("mesh",{position:[0,-4,-5],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[50,30,30]}),(0,a.jsx)("meshStandardMaterial",{map:o})]}),(0,a.jsx)(z,{position:[0,-1,-5]})]}),(0,u.createPortal)((0,a.jsx)(a.Fragment,{children:e&&!s?(0,a.jsx)(t.Ghost,{ref:l,position:[0,-.1,-.5],scale:[.1,.1,.1]}):null}),f),e&&!s?(0,a.jsx)(t.Ghost,{ref:i,position:[0,-.1,-.5],scale:[.1,.1,.1]}):null]})}const X=new l.ImageLoader;function K(e){const s=(0,u.useLoader)(p.TextureLoader,n(98762));(0,b.useEffect)((()=>{s.minFilter=p.NearestFilter,s.magFilter=p.NearestFilter,s.needsUpdate=!0}),[s]);const r=(0,b.useContext)(j.ChatContext),o=(0,b.useContext)(v.FileBrowserContext),{language:i}=(0,b.useContext)(A.l10n.Context);return(0,a.jsx)("object3D",{...e,children:(0,a.jsxs)("mesh",{rotation:[0,0,0],scale:[1.5,1,1],onPointerDown:t=>{e.ghostEffectOccluder||(o.openBrowser((0,a.jsx)(A.l10n.Text,{name:"FILE_BROWSER_TITLE_UPLOAD_WORLD"}),(e=>{r.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_UPLOAD_WORLD_ERROR"}))}),!0),t.stopPropagation())},children:[(0,a.jsx)("planeGeometry",{args:[10,10,10]}),e.ghostEffectOccluder?(0,a.jsx)("meshBasicMaterial",{color:"white"}):(0,a.jsx)(t.DynamicSignTexture,{graphics:[{type:"text",x:64,y:40,fontSize:26,color:"white",text:i.SERVERS_EMPTY},{type:"text",x:64,y:55,fontSize:9,color:"white",text:i.SERVERS_UPLOAD}]})]})})}function Z(e){const s=(0,u.useLoader)(p.TextureLoader,n(64297));(0,b.useEffect)((()=>{s.minFilter=p.NearestFilter,s.magFilter=p.NearestFilter,s.needsUpdate=!0}),[s]);const[r,o]=(0,b.useState)(!1),i=(0,b.useContext)(x.NavigationContext),l=(0,b.useContext)(j.ChatContext),{setShowGlobalHint:d}=(0,b.useContext)(O.HintContext),{language:h}=(0,b.useContext)(A.l10n.Context);return(0,a.jsx)("object3D",{...e,onPointerEnter:e=>o(!0),onPointerLeave:e=>o(!1),onPointerDown:e=>{e.stopPropagation(),i.moveTo("house1","forward",!0),l.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_HOUSE_INTRO"})),c.startEventTimer("knocks"),d(4)},children:(0,a.jsxs)("mesh",{rotation:[0,0,0],scale:[1.5,1,1],children:[(0,a.jsx)("planeGeometry",{args:[10,10,10]}),(0,a.jsx)(t.DynamicSignTexture,{backgroundColor:"rgb(0,0,255)",graphics:[{type:"text",x:64,y:20,fontSize:12,color:"white",text:h.SERVERS_USER_WORLD},{type:"text",x:64,y:40,fontSize:18,color:"white",text:h.SERVERS_HOUSE_OF_BAPHOMET_LINE_1},{type:"text",x:64,y:60,fontSize:18,color:"white",text:h.SERVERS_HOUSE_OF_BAPHOMET_LINE_2}],color:r?new p.Color(1,0,0):new p.Color(1,1,1)})]})})}function J(){const[e,s]=(0,b.useState)(d.SHOW_BAPHOMET),r=(0,b.useContext)(x.NavigationContext);(0,b.useEffect)((()=>{r.setNavigation&&r.setNavigation({right:{level:"intro2"}})}),[r]);const{ghostClickedInDisco:o,ghostSeenInIntro:i,ghostSeenInServer:l,setGhostSeenInServer:c}=(0,b.useContext)(H),h=(0,u.useLoader)(p.TextureLoader,n(87147));(0,b.useEffect)((()=>{h.minFilter=p.NearestFilter,h.magFilter=p.NearestFilter,h.wrapS=p.RepeatWrapping,h.wrapT=p.RepeatWrapping,h.repeat.set(3,3),h.needsUpdate=!0}),[h]);const f=(0,b.useContext)(j.ChatContext),{noiseScene:m}=(0,b.useContext)(t.EffectsContext);(0,b.useEffect)((()=>{f.addMessage&&f.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_NEXUS"}))}),[]),(0,b.useEffect)((()=>{(0,y.playBGM)("intro")}),[]);const g=(0,b.useRef)(),_=(0,b.useRef)(),[E]=(0,P.default)([{duration:1,frameCallback:(e,t)=>{if(!g.current)return;if(!_.current)return;const n=(0,F.easeOutCubic)(.05*Math.floor(t/.05));g.current.position.x=-5-10*n+Math.cos(50*n)*Math.cos(50*n+10)*2,g.current.position.z=Math.cos(50*n)*Math.cos(50*n+10)*2-20,_.current.position.set(g.current.position.x,g.current.position.y,g.current.position.z)},onStart:()=>{r.setNavigation({}),(0,y.setRate)(.5)}},{duration:.1,onEnd:()=>{s(!0)}},{duration:1,frameCallback:(e,t)=>{if(!g.current)return;if(!_.current)return;const n=(0,F.easeOutCubic)(.1*Math.floor(t/.1));g.current.position.x=-15-5*n+Math.cos(50*n)*Math.cos(50*n+10)*1,g.current.position.z=-20-15*n+Math.cos(50*n)*Math.cos(50*n+10)*1,_.current.position.set(g.current.position.x,g.current.position.y,g.current.position.z),(0,y.setRate)(.5+.5*t)},onEnd:()=>{r.setNavigation({right:{level:"intro2"}}),c(!0)}}]);return(0,b.useEffect)((()=>{o&&i&&!l&&E()}),[o,i,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#cff",30,150]}),(0,a.jsxs)("mesh",{position:[0,-4,-20],rotation:[-Math.PI/2,0,0],children:[(0,a.jsx)("planeGeometry",{args:[150,200,30]}),(0,a.jsx)("meshStandardMaterial",{map:h})]}),e||l?(0,a.jsx)(Z,{position:[-18,1,-30],rotation:[0,-.2,0]}):(0,a.jsx)(K,{position:[-18,1,-30],rotation:[0,-.2,0]}),(0,a.jsx)(K,{position:[18,1,-30],rotation:[0,.2,0]}),(0,a.jsx)(K,{position:[18,1,-50],rotation:[0,-.4,0]}),(0,a.jsx)(K,{position:[36,1,-50],rotation:[0,-.3,0]}),(0,a.jsx)(K,{position:[54,1,-50],rotation:[0,-.2,0]}),(0,a.jsx)(K,{position:[-18,1,-50],rotation:[0,.2,0]}),(0,a.jsx)(K,{position:[-36,1,-50],rotation:[0,.3,0]}),(0,a.jsx)(K,{position:[-54,1,-50],rotation:[0,.4,0]}),(0,a.jsx)(K,{position:[18,1,-80],rotation:[0,-.4,0]}),(0,a.jsx)(K,{position:[36,1,-80],rotation:[0,-.3,0]}),(0,a.jsx)(K,{position:[54,1,-80],rotation:[0,-.2,0]}),(0,a.jsx)(K,{position:[-18,1,-80],rotation:[0,.2,0]}),(0,a.jsx)(K,{position:[-36,1,-80],rotation:[0,.3,0]}),(0,a.jsx)(K,{position:[-54,1,-80],rotation:[0,.4,0]}),(0,a.jsx)(K,{position:[0,1,-80],rotation:[0,0,0]}),o&&i&&!l?(0,a.jsx)(t.Ghost,{ref:g,position:[-15,-.8,-20]}):null,(0,u.createPortal)((0,a.jsxs)(a.Fragment,{children:[o&&i&&!l?(0,a.jsx)(t.Ghost,{ref:_,position:[-15,-.8,-20]}):null,(0,a.jsx)(K,{position:[-18,1,-30],rotation:[0,-.2,0],ghostEffectOccluder:!0})]}),m)]})}function q(e){const t=(0,u.useLoader)(p.TextureLoader,n(46179));(0,b.useEffect)((()=>{t.minFilter=p.NearestFilter,t.magFilter=p.NearestFilter,t.wrapS=p.RepeatWrapping,t.wrapT=p.RepeatWrapping,t.needsUpdate=!0}),[t]);const[s,r]=(0,b.useState)(`rgb(${Math.floor(255*Math.random())}, ${Math.floor(255*Math.random())}, ${Math.floor(255*Math.random())})`);return(0,b.useEffect)((()=>{const e=setInterval((()=>{r((e=>`rgb(${Math.floor(255*Math.random())}, ${Math.floor(255*Math.random())}, ${Math.floor(255*Math.random())})`))}),500+2e3*Math.random());return()=>clearInterval(e)}),[]),(0,a.jsxs)("mesh",{...e,children:[(0,a.jsx)("boxGeometry",{args:[4,1,4]}),(0,a.jsx)("meshStandardMaterial",{map:t,color:s,emissive:s})]})}function Q({...e}){const t=(0,m.useSimpleTexture)(n(8632)),s=(0,m.useSimpleTexture)(n(78389)),r=(0,m.useSimpleTexture)(n(92638)),o=(0,b.useRef)(),i=(0,b.useRef)();return(0,E.useFramePausible)(((e,t)=>{const n=(0,E.pausibleNow)();o.current&&i.current&&(o.current.rotation.z=n/100*.1,i.current.rotation.z=n/100*.2)})),(0,a.jsxs)("object3D",{...e,children:[(0,a.jsxs)("mesh",{renderOrder:2,ref:o,position:[.5,.4,.01],rotation:[0,0,0],scale:[4,4,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:s,transparent:!0})]}),(0,a.jsxs)("mesh",{renderOrder:1,ref:i,position:[.5,.4,.01],rotation:[0,0,0],scale:[4,4,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:r,transparent:!0})]}),(0,a.jsxs)("mesh",{renderOrder:0,position:[0,0,0],rotation:[0,0,0],scale:[4,4,1],children:[(0,a.jsx)("planeGeometry",{args:[1,1,1]}),(0,a.jsx)("meshBasicMaterial",{map:t,transparent:!0})]})]})}function ee(){const e=(0,b.useContext)(j.ChatContext),{ghostClickedInDisco:s,setGhostClickedInDisco:r}=(0,b.useContext)(H);(0,b.useEffect)((()=>{e.addMessage&&e.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_DISCO"}))}),[]),(0,b.useEffect)((()=>{(0,y.playBGM)("disco")}),[]);const o=(0,u.useLoader)(p.TextureLoader,n(87147));(0,b.useEffect)((()=>{o.minFilter=p.NearestFilter,o.magFilter=p.NearestFilter,o.wrapS=p.RepeatWrapping,o.wrapT=p.RepeatWrapping,o.repeat.set(3,3),o.needsUpdate=!0}),[o]);const i=(0,u.useLoader)(p.TextureLoader,n(3811));(0,b.useEffect)((()=>{i.minFilter=p.NearestFilter,i.magFilter=p.NearestFilter,i.wrapS=p.RepeatWrapping,i.wrapT=p.RepeatWrapping,i.repeat.set(1,1),i.needsUpdate=!0}),[i]);const l=(0,u.useLoader)(p.TextureLoader,n(31956));(0,b.useEffect)((()=>{l.minFilter=p.NearestFilter,l.magFilter=p.NearestFilter,l.wrapS=p.RepeatWrapping,l.wrapT=p.RepeatWrapping,l.needsUpdate=!0}),[l]);const c=(0,u.useLoader)(p.TextureLoader,n(46179));(0,b.useEffect)((()=>{c.minFilter=p.NearestFilter,c.magFilter=p.NearestFilter,c.wrapS=p.RepeatWrapping,c.wrapT=p.RepeatWrapping,c.needsUpdate=!0}),[c]);const d=(0,u.useLoader)(p.TextureLoader,n(91821));(0,b.useEffect)((()=>{d.minFilter=p.NearestFilter,d.magFilter=p.NearestFilter,d.wrapS=p.RepeatWrapping,d.wrapT=p.RepeatWrapping,d.transparent=!0,d.needsUpdate=!0}),[d]);const h=(0,b.useContext)(x.NavigationContext);(0,b.useEffect)((()=>{h.setNavigation&&h.setNavigation({left:{level:"intro2",fadeMusic:!0}})}),[h]);const f=(0,b.useRef)(),m=(0,b.useRef)(),g=(0,b.useRef)(),[_,E]=(0,P.default)([{duration:3,frameCallback:(e,t)=>{m.current&&g.current&&(m.current.position.x=-10,m.current.position.z=-35,m.current.position.y=3.8*(0,F.easeInOutCubic)(t)-5,g.current.position.set(m.current.position.x,m.current.position.y,m.current.position.z),(0,y.setRate)(.3*(1-t)+.7))},onStart:()=>{h.setNavigation({}),e.addMessage((0,a.jsx)("span",{style:{color:"red"},children:(0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_ALONEGURL_OH_HELLO_FRIEND"})}))},onEnd:()=>{h.setNavigation({})}},{duration:.5,frameCallback:(e,t)=>{m.current&&g.current&&(m.current.position.x=9*t-10+1*Math.sin((0,F.easeOutCubic)(t)*Math.PI*20),m.current.position.y=-1.2,m.current.position.z=25*t-35,g.current.position.set(m.current.position.x,m.current.position.y,m.current.position.z))}},{duration:.5,onStart:()=>{(0,y.setRate)(.6)}},{duration:2,frameCallback:(e,t)=>{if(!m.current)return;if(!g.current)return;const n=Math.floor(t*t*t*50)/.15*.15;m.current.position.x=Math.sin(n)*Math.cos(n+50)*n*.15-1,m.current.position.y=-1.2,m.current.position.z=Math.cos(n)*Math.cos(n+60)*n*.15-10,g.current.position.set(m.current.position.x,m.current.position.y,m.current.position.z),(0,y.setRate)(.3*(1-t)+.4)}},{duration:.05,frameCallback:(e,t)=>{if(!m.current)return;if(!g.current)return;const n=Math.floor(30*t)/.5*.5;m.current.position.x=10*Math.cos(5*n+50)-1-50*t,m.current.position.y=-1.2,m.current.position.z=Math.cos(5*n)*Math.cos(5*n+60)*10-10-5*t,g.current.position.set(m.current.position.x,m.current.position.y,m.current.position.z)}},{duration:0,onEnd:()=>{(0,y.setRate)(1),h.setNavigation({left:{level:"intro2",fadeMusic:!0}}),r(!0)}}]);(0,b.useEffect)((()=>{const e=setInterval((()=>{f.current&&(f.current.rotation.y+=.1)}),100);return()=>clearInterval(e)}),[]);const{noiseScene:T}=(0,b.useContext)(t.EffectsContext);return(0,a.jsxs)(a.Fragment,{children:[(0,u.createPortal)((0,a.jsxs)(a.Fragment,{children:[s?null:(0,a.jsx)(t.Ghost,{ref:g,position:[-10,-5,-35],onClick:e=>{E||_()}}),(0,a.jsxs)("mesh",{position:[0,-5,-40],children:[(0,a.jsx)("boxGeometry",{args:[30,1,50]}),(0,a.jsx)("meshBasicMaterial",{color:"rgb(255,255,255)"})]})]}),T),(0,a.jsx)(R.default,{}),(0,a.jsx)("fog",{attach:"fog",args:["#111",0,65]}),(0,a.jsxs)("object3D",{position:[0,0,-30],rotation:[0,Math.PI/4+.2,0],children:[(0,a.jsxs)("mesh",{position:[0,0,-30],children:[(0,a.jsx)("boxGeometry",{args:[60,30,1]}),(0,a.jsx)("meshStandardMaterial",{map:l,color:"red"})]}),(0,a.jsxs)("mesh",{position:[30,0,0],children:[(0,a.jsx)("boxGeometry",{args:[1,30,60]}),(0,a.jsx)("meshStandardMaterial",{map:l,color:"rgb(200, 0, 0)"})]}),(0,a.jsxs)("mesh",{position:[0,15,-0],children:[(0,a.jsx)("boxGeometry",{args:[60,1,60]}),(0,a.jsx)("meshStandardMaterial",{map:l,color:"rgb(255, 255, 255)"})]}),(()=>{const e=[];for(let t=0;t<20;t++)for(let n=0;n<20;n++)t>8&&t<13&&n>8&&n<13?e.push((0,a.jsx)(q,{position:[40-4*t,-5,4*n-40]},20*t+n)):e.push((0,a.jsxs)("mesh",{position:[40-4*t,-5,4*n-40],children:[(0,a.jsx)("boxGeometry",{args:[4,1,4]}),(0,a.jsx)("meshStandardMaterial",{map:c,color:(t+n)%2==0?"rgb(255, 255, 255)":"rgb(0,0,0)"})]},20*t+n));return e})()]}),(0,a.jsx)(Q,{position:[-25,5,-45],rotation:[0,Math.PI/4,0],scale:[2,2,1],onClick:t=>{t.stopPropagation(),e.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_CLOCK"}))}}),(0,a.jsxs)("mesh",{position:[10,0,-15],rotation:[0,0,0],scale:[1.5,1,1],onClick:t=>{t.stopPropagation(),e.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_STATUE"}))},children:[(0,a.jsx)("planeGeometry",{args:[3.6,9,1]}),(0,a.jsx)("meshStandardMaterial",{map:d,transparent:!0})]}),(0,a.jsx)("object3D",{position:[0,3,-10],onClick:t=>{t.stopPropagation(),e.addMessage((0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_DISCO_BALL"}))},children:(0,a.jsxs)("mesh",{ref:f,children:[(0,a.jsx)("sphereGeometry",{args:[1,8,8]}),(0,a.jsx)("meshStandardMaterial",{map:i})]})}),s?null:(0,a.jsx)(t.Ghost,{ref:m,position:[-10,-5,-35],onClick:e=>{E||_()}})]})}function te({moveAnimation:e,onMoveAnimationDone:n,level:s,name:r,fade:o}){const i=(0,u.useThree)((({camera:e})=>e)),[p,x]=(0,b.useState)(!1),[g,_]=(0,b.useState)([!1,!1,!1,!1]),[S,v]=(0,b.useState)(!1),[I,w]=(0,b.useState)(0),[R,L]=(0,b.useState)(!1),[F,k]=(0,b.useState)([]),[G,H]=(0,b.useState)(0),[W,B]=(0,b.useState)(0),{orientation:V}=(0,b.useContext)(N.LayoutContext);(0,b.useEffect)((()=>{i.fov="landscape"===V?75:100,i.updateProjectionMatrix()}),[i,V]),(0,E.useFramePausible)(((t,s)=>{"forward"===e?(i.position.z-=3*s,i.position.y=0+.1*Math.sin(4*i.position.z),i.position.z<-2&&(n(),i.position.z=-2)):"backward"===e?(i.position.z+=3*s,i.position.y=0+.1*Math.sin(4*i.position.z),i.position.z>2&&(n(),i.position.z=2)):"left"===e?(i.position.x-=3*s,i.position.y=0+.1*Math.sin(4*i.position.x),i.position.x<-2&&(n(),i.position.x=-2)):"right"===e?(i.position.x+=3*s,i.position.y=0+.1*Math.sin(4*i.position.x),i.position.x>2&&(n(),i.position.x=2)):(i.position.set(Math.sin(2*Math.sin((0,E.pausibleNow)()/15))*W,Math.sin(3*Math.sin((0,E.pausibleNow)()/20))*W,0),i.rotation.set(-Math.PI/16,0,0))}));const z=(0,b.useContext)(j.ChatContext),X=(0,b.useRef)(!1),[K]=(0,P.default)([]),{setShowGlobalHint:Z}=(0,b.useContext)(O.HintContext);(0,b.useEffect)((()=>{X.current=!0,(0,y.fadeMusic)(0,1,500);const e=(0,E.setTimeoutPausible)((()=>{z.addMessage((0,a.jsx)("span",{style:{color:"red"},children:(0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_YOU_ARENT_LIZ"})})),(0,C.achieve)(U.AchievementString.YOURE_NOT_LIZ)}),1e3);return()=>{e()}}),[]),(0,b.useEffect)((()=>{(d.TWO_KNOCKS?M.default.isEqual(g,[!0,!1,!1,!1]):M.default.isEqual(g,[!0,!0,!0,!0]))&&(x(!0),z.addMessage((0,a.jsx)(a.Fragment,{children:(0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_DOOR_PUZZLE_SOLVED"})})),c.stopEventTimer("knocks"),(0,D.playSFX)("door_open"),(0,C.achieve)(U.AchievementString.KNOCK),Z(5))}),[g,z]);const[q,Q]=(0,b.useState)(!0),te=(0,b.useRef)((0,E.pausibleNow)()),ne=(0,b.useRef)(0),se=(0,b.useRef)(0);(0,E.useFramePausible)((()=>{const e=(0,E.pausibleNow)(),t=1e3/(e-te.current);ne.current=(4*ne.current+t)/5,te.current=e})),(0,E.useFramePausible)((()=>{const e=setInterval((()=>{se.current>5?q&&Q(!1):ne.current<10?q&&(Q(!1),se.current++):q||(Q(!0),se.current++)}),2e3);return()=>clearInterval(e)}));const[re,oe]=(0,b.useMemo)((()=>{const e=new l.Scene;e.background=new l.Color("white");return[e,new l.WebGLRenderTarget(128,128)]}),[]);return(0,E.useFramePausible)((e=>{e.gl.setRenderTarget(oe),e.gl.render(re,i),e.gl.setRenderTarget(null)})),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(t.EffectsContext.Provider,{value:{noiseIntensity:G,setNoiseIntensity:H,setCameraShake:B,noiseScene:re,noiseTarget:oe},children:[(0,a.jsx)("ambientLight",{intensity:Math.PI/2}),(()=>{switch(s){case"intro":default:return(0,a.jsx)(Y,{});case"intro2":return(0,a.jsx)($,{});case"servers":return(0,a.jsx)(J,{});case"disco":return(0,a.jsx)(ee,{});case"garden":return(0,a.jsx)(m.BlessingGarden,{blessed:M.default.isEqual(F,[!0,!0,!0,!0]),setBlessed:k});case"house1":return(0,a.jsx)(m.default,{doorUnlocked:p,morseSolved:g,setDoorUnlocked:x,setMorseSolved:_});case"house2":return(0,a.jsx)(m.HouseOfBaphomet2,{doorUnlocked:p,morseSolved:g,setDoorUnlocked:x,setMorseSolved:_});case"puzzle1":case"puzzle2":case"puzzle3":case"puzzle4":return(0,a.jsx)(m.BaphometPuzzle,{level:s,unlocked:S,setUnlocked:v,unlockedTime:I,setUnlockedTime:w});case"fountain":case"fountain2":return(0,a.jsx)(f.FountainPuzzle,{level:s,unlockedFountain:R,setUnlockedFountain:L});case"sacrifice":return(0,a.jsx)(m.SacrificeRoom,{});case"ending":return d.DEMO_ENDING?(0,a.jsx)(h.DemoEndingScreen,{}):(0,a.jsx)(h.default,{})}})(),q&&(0,a.jsx)(T.Effects,{disableGamma:!0,children:(0,a.jsx)("noiseGrainPass",{noiseTarget:oe,noiseIntensity:G})})]})})}t.DynamicSignTexture=(0,b.forwardRef)((({width:e=128,height:t=80,backgroundColor:n="rgb(50, 50, 50)",graphics:s=[],...r},o)=>{const i=(0,b.useRef)(),[c,d]=(0,b.useMemo)((()=>{const n=document.createElement("canvas");n.width=e,n.height=t;const s=n.getContext("2d",{alpha:!0});return[n,s]}),[e,t]);return(0,b.useEffect)((()=>{(async()=>{d.clearRect(0,0,e,t),d.fillStyle=n,d.rect(0,0,e,t),d.fill();for(const e of s)if("text"===e.type)d.font=`${e.fontSize}px Arial, sans-serif`,d.textAlign="center",d.fillStyle=e.color,d.fillText(e.text,e.x,e.y);else if("image"===e.type){const t=await X.loadAsync(e.image);d.drawImage(t,e.x,e.y,e.width,e.height)}else"rect"===e.type&&(d.fillStyle=e.color,d.fillRect(e.x,e.y,e.width,e.height));i.current&&(i.current.needsUpdate=!0)})()}),[d,n,s]),(0,a.jsx)("meshBasicMaterial",{...r,ref:o,children:(0,a.jsx)("canvasTexture",{magFilter:l.NearestFilter,ref:i,attach:"map",image:c})})})),t.Ghost=(0,b.forwardRef)(((e,t)=>{const s=(0,b.useRef)(),r=(0,b.useRef)();(0,E.useFramePausible)(((e,t)=>{s.current.rotation.setFromRotationMatrix(e.camera.matrix),r.current.rotation.setFromRotationMatrix(e.camera.matrix)}));const o=(0,m.useSimpleTexture)(n(72694)),i=(0,m.useSimpleTexture)(n(37276));return(0,a.jsxs)("object3D",{...e,ref:t,children:[(0,a.jsxs)("mesh",{position:[0,-.1,0],ref:r,children:[(0,a.jsx)("planeGeometry",{args:[2.5,2.5/147*367,1]}),(0,a.jsx)("meshStandardMaterial",{map:i,opacity:e.opacity||1,transparent:!0})]}),(0,a.jsxs)("mesh",{position:[0,3,.1],ref:s,children:[(0,a.jsx)("planeGeometry",{args:[6,1,1]}),(0,a.jsx)("meshStandardMaterial",{map:o,opacity:e.opacity||1,transparent:!0})]})]})})),t.EffectsContext=(0,b.createContext)();const ne=(0,b.forwardRef)(((e,t)=>{const{size:n}=(0,b.useContext)(N.LayoutContext),[s,r]=(0,b.useState)([(0,a.jsx)(A.l10n.Text,{name:"OTHER_WORLD_CHAT_WELCOME"})]),o=(0,b.useRef)();return(0,b.useImperativeHandle)(t,(()=>({addMessage:e=>{(0,L.flushSync)((()=>{r((t=>[...t,e]))})),o.current.scrollTop=o.current.scrollHeight},showOneMessage:e=>{(0,L.flushSync)((()=>{r([e])})),o.current.scrollTop=o.current.scrollHeight}}))),(0,a.jsx)("div",{style:{border:3*n+"px solid black",display:"block",position:"absolute",background:"black",color:"white",left:5*n+"px",bottom:5*n+"px",right:5*n+"px"},children:(0,a.jsx)(G.Scrollable,{style:{background:"black",color:"white",width:"100%",height:180*n+"px",padding:20*n+"px",overflowY:"scroll",overflowX:"hidden"},ref:o,children:s.map(((e,t)=>(0,a.jsx)("div",{className:"chat-log",children:e},t)))})})}))},74140:(e,t,n)=>{e.exports=n.p+"assets/song_6_2.1007506e15a79c4fd496.mp3"},74205:(e,t,n)=>{e.exports=n.p+"assets/house.8fc649925cc3934f39cc.gif"},74319:(e,t,n)=>{e.exports=n.p+"assets/ritual1.8e898b84d94cea0b4ca1.gif"},75206:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,u.useState)(""),{scene:s}=(0,S.useThree)();"world"!==e&&"blood"!==e&&"girl"!==e&&(s.background=new f.Color(0,0,0));const r=(0,u.useContext)(_.NavigationContext);(0,u.useEffect)((()=>{r.setNavigation({})}),[r]),(0,u.useEffect)((()=>{}),[]);const o=(0,u.useContext)(h.ChatContext),i=(0,u.useContext)(m.EndingPopupContext),{setVisibleWindows:x,makeWindowVisible:T}=(0,u.useContext)(y.WindowManagerContext),{size:M,orientation:C}=(0,u.useContext)(g.LayoutContext),[L]=(0,v.default)([{duration:1,onStart:()=>{}},{duration:2,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),10,10)}},{duration:1,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),400,50)}},{duration:.8,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),600,300)}},{duration:.7,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),50,280,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"})])}},{duration:.6,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),610,360,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"})])}},{duration:.5,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),30,60,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"})])}},{duration:.4,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),30,450,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"})])}},...[.4,.4,.3,.2,.2,.1,.1,.1,.1,.1,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05,.05].map((e=>({duration:e,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_DONT_LEAVE_ME"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_DONT_WANT_TO_BE_ALONE"}),Math.random()*("landscape"===C?600:300),Math.random()*("landscape"===C?400:800),[(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_NO"})])}}))),{duration:1,onStart:()=>{T("fade-screen")}},{duration:4,onStart:()=>{T("error-screen")}}]),[A,D]=(0,u.useState)(1),P=(0,u.useContext)(c.EffectsContext);(0,u.useEffect)((()=>{P.setNoiseIntensity&&P.setNoiseIntensity(1)}));const[F]=(0,v.default)([{duration:1,onStart:()=>{i.closeAllPopups(),o.showOneMessage("sv_cheats 1"),t("")}},{duration:1,onStart:()=>{o.addMessage("god"),(0,d.playBGM)("ending")}},{duration:.5,onStart:()=>{o.addMessage("noclip")}},{duration:.5,onStart:()=>{o.addMessage("impulse 101")}},...["ROSEBUD","↑, ↓, ←, →, ←, →, b, a, start","482-555-0100","RT, RT, LB, RT, ↑, ↓, ↑, ↓, ↑, ↓","sv_latency 0","sv_reticulating_splines 1","sv_infinite 1","sv_nodeath 1","sv_forever 1","sv_full_access 1",(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{style:{color:"rgb(0,0,255)"},children:[(0,a.jsx)(E.l10n.Text,{name:"CONSCIOUSNESS_TRIANGULATION"}),": "]})," ",(0,a.jsx)("span",{style:{color:"yellow"},children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_WARNING"})})]})].map((e=>({duration:.05,onEnd:()=>{o.addMessage(e)}}))),{duration:2},{duration:2,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15] ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_HOW_LONG_HAS_IT_BEEN"})]}))}},{duration:2,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15]"," ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_THANK_U_FOR_UPLOADING_THOSE_PICTURES"})]}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15]"," ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_WONDERED_IF_I_WOULD_SEE_THEM"})]}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15]"," ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_EVEN_FORGOT_WHAT_I_USED_TO_LOOK_LIKE"})]}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15] ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_HAVENT_SEEN_ANOTHER_PERSON"})]}))}},{duration:2,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_UPLOADING_WEBCAM"})),o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:4,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15]"," ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_A_LONG_TIME_AGO_I_WAS_APPROACHED_BY_A_MAN"})]}))}},{duration:4,onStart:()=>{o.addMessage((0,a.jsxs)("span",{style:{color:"red"},children:["[alonegurl15] ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_HE_PROMISED_ME_FOREVER"})]}))}},{duration:1,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"}))}},{duration:.2,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_THANK_U_FOR_UPLOADING_THOSE_PICTURES"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_WONDERED_IF_I_WOULD_SEE_THEM"}),60,90)}},{duration:.1,onStart:()=>{i.openPopup("me_and_my_bestie",(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("img",{src:n(54383),width:200*M})}),20,200)}},{duration:4,onStart:()=>{i.openPopup("lawson",(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("img",{src:n(24544),width:200*M})}),260,220)}},{duration:3,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_HAVENT_SEEN_ANOTHER_PERSON"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_EVEN_FORGOT_WHAT_I_USED_TO_LOOK_LIKE"}),110,170)}},{duration:3,onStart:()=>{i.openPopup("me",(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(w,{})}),"landscape"===C?0:-30*M,"landscape"===C?0:70*M)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_GOT_INTO_A_FIGHT_WITH_MY_MOTHER"}),160,250)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_SO_I_DECIDED_TO_UPLOAD_MYSELF_ONTO_THE_INTERNET"}),210,330)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_UPLOADED_MYSELF_ONTO_THIS_GAME"}),260,410)}},{duration:.1,onStart:()=>{i.closeAllPopups()}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_AT_FIRST_IT_WAS_GREAT"}),10,90),t("world")}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_WE_CREATED_SO_MANY_BEAUTIFUL_THINGS_HERE"}),60,170)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_THE_WORLD_USED_TO_BE_CROWDED"}),110,250)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_BUT_NOW"}),160,330)}},...["TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy"].map(((e,t)=>({duration:.05,onEnd:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_PROFILE_TITLE",format:[e]}),(0,a.jsx)(N,{name:e,days:Math.floor(2920*Math.random()+365)}),280*Math.floor(t/4)-30,t%4*190,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_MESSAGE_BUTTON"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_BLOCK_BUTTON"})])}}))),{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_THE_WORLD_OUT_THERE_CHANGES"}),10,90)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_PEOPLE_LEAVE_GROW_OLD"}),60,170)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_OTHER_WORLD_STAYS_THE_SAME"}),110,250)}},{duration:1,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_TITLE"}),(0,a.jsx)(I,{}),100,70,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_REFRESH_BUTTON"}),(0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_CLOSE_BUTTON"})])}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_WITHOUT_THE_PLAYERS_WORLDS_ARE_GONE"}),10,490)}},{duration:6,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_EVERYONE_RITUAL_DELETED_THEMSELVES"}),20,230)}},{duration:6,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_HOW_IS_A_SOUL_STORED_IN_A_FILESYSTEM"}),40,310)}},{duration:6,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_I_HEAR_THEM"}),60,390)}},{duration:.1,onStart:()=>{i.closeAllPopups()}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_THIS_PLACE_IS_ALL_I_HAVE_LEFT"}),30,235)}},{duration:3,onStart:()=>{i.openPopup("[alonegurl15]",(0,a.jsx)(E.l10n.Text,{name:"ENDING_ALL_THINGS_DETERIORATE_EVEN_THIS"}),30,315,[(0,a.jsx)(E.l10n.Text,{name:"ENDING_HOW_COULD_WE_HAVE_KNOWN"})])}},{duration:1,onStart:()=>{t(""),o.showOneMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_EMILY"})),i.closeAllPopups()}},{duration:3,onStart:()=>{i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_TITLE",format:["@burningember"]}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"facegram",children:[(0,a.jsx)("div",{style:{display:"inline-block",width:64*M,height:64*M,background:"black",backgroundImage:`url(${(0,O.default)(n(60962))})`,backgroundSize:"cover",backgroundPosition:"center",borderRadius:32*M,marginRight:10*M}}),(0,a.jsxs)("table",{style:{display:"inline-block"},children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"175"}),(0,a.jsx)("td",{children:"865"}),(0,a.jsx)("td",{children:"91"})]}),(0,a.jsxs)("tr",{className:"strong",children:[(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_POSTS_COUNT"})}),(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_FOLLOWERS_COUNT"})}),(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_FOLLOWING_COUNT"})})]})]}),(0,a.jsx)("h1",{children:"Emily Nguyen"}),(0,a.jsxs)("p",{children:["💍: ",(0,a.jsx)("span",{style:{color:"rgb(0, 0, 150)"},children:"@sonoflaw92"})]}),(0,a.jsxs)("div",{style:{borderTop:2*M+"px solid #ccc",paddingTop:5*M},children:[(0,a.jsx)("img",{width:64*M,src:n(55081),style:{verticalAlign:"middle"}}),(0,a.jsx)("span",{style:{display:"inline-block",width:300*M,verticalAlign:"middle",paddingLeft:10*M},children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_THIS_ACCOUNT_IS_PRIVATE"})})]})]})}),10,0)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_GOING_ON_THE_COMPUTER_WITH_HER"})),i.openPopup("IMG0725.mov",(0,a.jsx)(R,{video:n(29162)}),"landscape"===C?460:400,0)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SLEEPING_OVER_WATCHING_TV_SHOWS"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_WONDER_WHO_SHE_GREW_UP_TO_BECOME"}))}},{duration:3,onStart:()=>{o.showOneMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_LAWSON"})),i.openPopup((0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_TITLE",format:["@sonoflaw92"]}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"facegram",children:[(0,a.jsx)("div",{style:{display:"inline-block",width:64*M,height:64*M,background:"black",backgroundImage:`url(${(0,O.default)(n(60962))})`,backgroundSize:"cover",backgroundPosition:"center",borderRadius:32*M,marginRight:10*M}}),(0,a.jsxs)("table",{style:{display:"inline-block"},children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"34"}),(0,a.jsx)("td",{children:"263"}),(0,a.jsx)("td",{children:"310"})]}),(0,a.jsxs)("tr",{className:"strong",children:[(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_POSTS_COUNT"})}),(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_FOLLOWERS_COUNT"})}),(0,a.jsx)("td",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_FACEGRAM_FOLLOWING_COUNT"})})]})]}),(0,a.jsx)("h1",{children:"Lawson Fernandez"}),(0,a.jsx)("p",{children:"john 3:16"}),(0,a.jsxs)("div",{style:{borderTop:2*M+"px solid #ccc",paddingTop:5},children:[(0,a.jsx)("img",{width:64*M,src:n(55081),style:{verticalAlign:"middle"}}),(0,a.jsx)("span",{style:{display:"inline-block",width:300*M,verticalAlign:"middle",paddingLeft:10*M},children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_THIS_ACCOUNT_IS_PRIVATE"})})]})]})}),15,20)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_TALKING_TO_HIM"}))}},{duration:3,onStart:()=>{i.openPopup("IMG0125.mov",(0,a.jsx)(R,{video:n(29478)}),"landscape"===C?490:410,"landscape"===C?5:150)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_HOW_COMFORTING_HE_WAS"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_DONT_WANT_HIM_TO_SEE_ME_LIKE_THIS"}))}},{duration:3,onStart:()=>{o.showOneMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_MY_MOM"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_MISS_OUR_STUPID_FIGHTS"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_ITS_ALL_SO_MEANINGLESS_NOW"}))}},{duration:3,onStart:()=>{o.showOneMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_USED_TO_BE_AFRAID_OF_BAD_GRADES"})),i.openPopup("IMG0344.mov",(0,a.jsx)(R,{video:n(32625)}),"landscape"===C?60:30,"landscape"===C?40:250)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_USED_TO_BE_AFRAID_OF_NOT_LOOKING_PRETTY"})),i.openPopup("IMG0455.mov",(0,a.jsx)(R,{video:n(92403)}),"landscape"===C?360:330,"landscape"===C?20:260)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_USED_TO_BE_AFRAID_OF_DISAPPOINTING_PEOPLE"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_I_USED_TO_BE_AFRAID_OF_DEATH"}))}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_BUT_NOW_2"}))}},{duration:5,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_IM_AFRAID_OF_FOREVER"})),i.closeAllPopups(),t("blood")}},{duration:3,onStart:()=>{o.showOneMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_BUT_YOURE_HERE_NOW_ARENT_YOU"})),t("girl")},frameCallback:(e,t)=>{D(t)}},{duration:3,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_PERFORMED_THE_RITUAL"}))}},{duration:2,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_ONLY_A_FEW_MINUTES_UNTIL_YOU_JOIN_ME"}))}},{duration:2,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_AND_THEN_I_WONT_BE_ALONE"}))}},{duration:2,onStart:()=>{o.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_FOREVER"})),i.setAnimation("none")}},{duration:.4,onStart:()=>{x(["otherworld","resources"])}},{duration:.2,onStart:()=>{x(["disable-mouse","resources"])}},{duration:.1,onStart:()=>{x(["otherworld"])}},{duration:.1,onStart:()=>{x(["disable-mouse","resources"])}},{duration:.05,onStart:()=>{x(["otherworld"])}},{duration:.1,onStart:()=>{x(["disable-mouse","resources"])}},{duration:.1,onStart:()=>{x(["disable-mouse","aznL4ws0n_controlled","resources"])}},{duration:.1,onStart:()=>{i.setLawsonStage(1)}},{duration:4,onStart:()=>{i.setLawsonStage(2),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(3),i.openPopup("Other World",(0,a.jsx)(E.l10n.Text,{name:"ENDING_ERROR_MEMORYBOUNDS_EXCEEDED"}),0,0,["OK"]),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(4),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(5),i.openPopup("Other World",(0,a.jsx)(E.l10n.Text,{name:"ENDING_ERROR_SEGMENTATION_FAULT"}),10,10,["OK"]),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(6),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(7),(0,j.playSFX)("imreceive_echo")}},{duration:5,onStart:()=>{i.setLawsonStage(8),(0,j.playSFX)("imreceive_echo"),L()}},{duration:3,onStart:()=>{i.setLawsonStage(9),(0,j.playSFX)("imreceive_echo")}},{duration:3,onStart:()=>{i.setLawsonStage(10);try{l.publishEvent("game_finished")}catch(e){}}}]);return(0,u.useEffect)((()=>{F()}),[]),(0,a.jsxs)(a.Fragment,{children:["world"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.SpinningFountain,{position:[0,0,-2]}),(0,a.jsx)(b.default,{})]}),"blood"===e&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.default,{})}),"girl"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.default,{}),(0,a.jsx)(c.Ghost,{position:[0,-1.8,-3],opacity:A})]})]})},t.DemoEndingScreen=function(){const{scene:e}=(0,S.useThree)();e.background=new f.Color(0,0,0);const t=(0,u.useContext)(_.NavigationContext);(0,u.useEffect)((()=>{t.setNavigation({})}),[t]),(0,u.useEffect)((()=>{}),[]);const n=(0,u.useContext)(h.ChatContext),s=(0,u.useContext)(m.EndingPopupContext),{setVisibleWindows:r,makeWindowVisible:o}=(0,u.useContext)(y.WindowManagerContext),[i]=(0,v.default)([{duration:1,onStart:()=>{(0,d.playBGM)("ending"),s.closeAllPopups(),n.showOneMessage("sv_cheats 1")}},{duration:1,onStart:()=>{n.addMessage("god")}},{duration:.5,onStart:()=>{n.addMessage("noclip")}},{duration:.5,onStart:()=>{n.addMessage("impulse 101")}},...["ROSEBUD","↑, ↓, ←, →, ←, →, b, a, start","482-555-0100","RT, RT, LB, RT, ↑, ↓, ↑, ↓, ↑, ↓","sv_latency 0","sv_reticulating_spines 1","sv_infinite 1","sv_nodeath 1","sv_forever 1","sv_full_access 1"].map((e=>({duration:.05,onEnd:()=>{n.addMessage(e)}}))),{duration:2},{duration:2,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_SYSTEM_ACTION_ERROR"}))}},{duration:.3,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},{duration:.1,onStart:()=>{n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_OFFLINE"})),n.addMessage((0,a.jsx)(E.l10n.Text,{name:"ENDING_YOU_ARE_ONLINE"}))}},...["TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy"].map(((e,t)=>({duration:Math.max(1.5-t/9,.1),onEnd:()=>{s.openPopup(`Profile - ${e}`,(0,a.jsx)(N,{name:e,days:Math.floor(2920*Math.random()+365)}),280*Math.floor(t/4)-30,t%4*190,["Message","Block"])}}))),...["TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy","TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy","TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy","TotallykoolKyle","__waywardson89","iceFyre","0xDEADBEEF","DeepSleep3","xXaznEmoBoiXx","redCandle1960","norikoEats","EmilyIsHere","EmotionalChia","cowzGoMooIdo2","hypnospace_cowboy"].map(((e,t)=>({duration:Math.max(.5-t/6*.5,.05),onEnd:()=>{s.openPopup(`Profile - ${e}`,(0,a.jsx)(N,{name:e,days:Math.floor(2920*Math.random()+365)}),400*Math.random()-100,800*Math.random()-100,["Message","Block"])}})))]);return(0,u.useEffect)((()=>{i()}),[]),(0,a.jsx)(a.Fragment,{})};const a=n(74848),l=o(n(23571)),c=n(73965),d=n(17322),u=n(96540),p=i(n(57845)),h=n(26661),f=n(27186),x=n(78815),m=n(98722),g=n(49616),_=n(80129),b=i(n(98845)),y=n(96886),E=n(81218),j=n(44190),T=n(91722),S=n(73560),v=i(n(20584)),O=i(n(99240));function N({name:e,days:t}){const s=(0,u.useContext)(g.LayoutContext).size,[r,o]=(0,u.useState)(0);return(0,u.useEffect)((()=>{let e;const t=(0,T.setTimeoutPausible)((()=>{o(1),e=(0,T.setTimeoutPausible)((()=>{o(2)}),x.DEMO_ENDING?10:1e3)}),x.DEMO_ENDING?10:1e3);return()=>{clearTimeout(t),e&&clearTimeout(e)}}),[]),(0,a.jsxs)("div",{style:{textAlign:"left",width:290*s},children:[(0,a.jsx)("div",{style:{backgroundColor:"black",backgroundImage:`url(${(0,O.default)(n(60962))})`,backgroundSize:"cover",backgroundPosition:"center",width:64*s,height:64*s,margin:"0 10px 0px 0px",display:"inline-block"}}),(0,a.jsxs)("div",{style:{display:"inline-block",verticalAlign:"top",width:200*s},children:[(0,a.jsx)("strong",{children:e}),(0,a.jsx)("br",{}),0===r?(0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_LOADING"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{verticalAlign:"middle",display:"inline-block",borderRadius:"50%",width:10*s,height:10*s,fontFamily:"Arial, sans-serif",fontSize:40*s,background:"#f00"}})," ",(0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_OFFLINE"}),(0,a.jsx)("br",{}),2===r&&(0,a.jsx)(E.l10n.Text,{name:"ENDING_POPUP_LAST_SEEN",format:[t]})]})]})]})}function I(){const e=[200,30,50,20],[t,n]=(0,u.useState)([200,0,0,0]);(0,u.useEffect)((()=>{const t=()=>{n((t=>{t=t.slice(0);const n=Math.floor(Math.random()*t.length);return t[n]=Math.floor(10+Math.random()*e[n]),t}))},s=setInterval(t,600),r=setInterval(t,330),o=setInterval(t,1020);return()=>{clearInterval(s),clearInterval(r),clearInterval(o)}}),[]);const s=(0,u.useContext)(g.LayoutContext).size;return(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{border:2*s+"px solid black",width:500*s,height:300*s,background:"white",textAlign:"left"},children:(0,a.jsxs)("table",{className:"server-browser",children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{width:300*s,children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_SERVER_NAME"})}),(0,a.jsx)("th",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_PLAYERS_IN_SERVER"})}),(0,a.jsx)("th",{children:(0,a.jsx)(E.l10n.Text,{name:"ENDING_SERVER_BROWSER_SERVER_PING"})})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"House of Baphomet"}),(0,a.jsx)("td",{children:"(1/30)"}),(0,a.jsx)("td",{children:t[0]})]}),(0,a.jsxs)("tr",{style:{color:"#aaa"},children:[(0,a.jsx)("td",{children:"Home World"}),(0,a.jsx)("td",{children:"(0/200)"}),(0,a.jsx)("td",{children:t[1]})]}),(0,a.jsxs)("tr",{style:{color:"#aaa"},children:[(0,a.jsx)("td",{children:"Nexus"}),(0,a.jsx)("td",{children:"(0/100)"}),(0,a.jsx)("td",{children:t[2]})]}),(0,a.jsxs)("tr",{style:{color:"#aaa"},children:[(0,a.jsx)("td",{children:"Disco"}),(0,a.jsx)("td",{children:"(0/45)"}),(0,a.jsx)("td",{children:t[3]})]})]})})})}function w(){const{size:e,orientation:t}=(0,u.useContext)(g.LayoutContext),s=(0,u.useRef)(0),r=(0,u.useRef)();return(0,u.useEffect)((()=>{const e=setInterval((()=>{s.current+=1,s.current>10&&(s.current>20?r.current.style.display="block":r.current.style.display=Math.random()>.5?"block":"none")}),100);return()=>clearInterval(e)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative",width:600*e,height:480*e,overflow:"hidden"},children:[(0,a.jsx)("img",{style:{position:"absolute",top:0,left:0},src:n(21825),width:600*e}),(0,a.jsx)("img",{ref:r,style:{position:"absolute",top:0,left:0,display:"none"},src:n(22796),width:610*e})]})})}function R({video:e}){const{size:t,orientation:n}=(0,u.useContext)(g.LayoutContext);return(0,a.jsx)("img",{src:e,width:"landscape"===n?256*t:150*t})}},75812:(e,t,n)=>{e.exports=n.p+"assets/door_knocker_2.a4eb782a1f0962554a21.gif"},75828:(e,t,n)=>{n.d(t,{A:()=>s});const s='Copyright (c) 2021, TakWolf (https://takwolf.com),\r\nwith Reserved Font Name \'Ark Pixel\'.\r\n\r\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\r\nThis license is copied below, and is also available with a FAQ at:\r\nhttps://openfontlicense.org\r\n\r\n\r\n-----------------------------------------------------------\r\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r\n-----------------------------------------------------------\r\n\r\nPREAMBLE\r\nThe goals of the Open Font License (OFL) are to stimulate worldwide\r\ndevelopment of collaborative font projects, to support the font creation\r\nefforts of academic and linguistic communities, and to provide a free and\r\nopen framework in which fonts may be shared and improved in partnership\r\nwith others.\r\n\r\nThe OFL allows the licensed fonts to be used, studied, modified and\r\nredistributed freely as long as they are not sold by themselves. The\r\nfonts, including any derivative works, can be bundled, embedded,\r\nredistributed and/or sold with any software provided that any reserved\r\nnames are not used by derivative works. The fonts and derivatives,\r\nhowever, cannot be released under any other type of license. The\r\nrequirement for fonts to remain under this license does not apply\r\nto any document created using the fonts or their derivatives.\r\n\r\nDEFINITIONS\r\n"Font Software" refers to the set of files released by the Copyright\r\nHolder(s) under this license and clearly marked as such. This may\r\ninclude source files, build scripts and documentation.\r\n\r\n"Reserved Font Name" refers to any names specified as such after the\r\ncopyright statement(s).\r\n\r\n"Original Version" refers to the collection of Font Software components as\r\ndistributed by the Copyright Holder(s).\r\n\r\n"Modified Version" refers to any derivative made by adding to, deleting,\r\nor substituting -- in part or in whole -- any of the components of the\r\nOriginal Version, by changing formats or by porting the Font Software to a\r\nnew environment.\r\n\r\n"Author" refers to any designer, engineer, programmer, technical\r\nwriter or other person who contributed to the Font Software.\r\n\r\nPERMISSION & CONDITIONS\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of the Font Software, to use, study, copy, merge, embed, modify,\r\nredistribute, and sell modified and unmodified copies of the Font\r\nSoftware, subject to the following conditions:\r\n\r\n1) Neither the Font Software nor any of its individual components,\r\nin Original or Modified Versions, may be sold by itself.\r\n\r\n2) Original or Modified Versions of the Font Software may be bundled,\r\nredistributed and/or sold with any software, provided that each copy\r\ncontains the above copyright notice and this license. These can be\r\nincluded either as stand-alone text files, human-readable headers or\r\nin the appropriate machine-readable metadata fields within text or\r\nbinary files as long as those fields can be easily viewed by the user.\r\n\r\n3) No Modified Version of the Font Software may use the Reserved Font\r\nName(s) unless explicit written permission is granted by the corresponding\r\nCopyright Holder. This restriction only applies to the primary font name as\r\npresented to the users.\r\n\r\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r\nSoftware shall not be used to promote, endorse or advertise any\r\nModified Version, except to acknowledge the contribution(s) of the\r\nCopyright Holder(s) and the Author(s) or with their explicit written\r\npermission.\r\n\r\n5) The Font Software, modified or unmodified, in part or in whole,\r\nmust be distributed entirely under this license, and must not be\r\ndistributed under any other license. The requirement for fonts to\r\nremain under this license does not apply to any document created\r\nusing the Font Software.\r\n\r\nTERMINATION\r\nThis license becomes null and void if any of the above conditions are\r\nnot met.\r\n\r\nDISCLAIMER\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r\nOTHER DEALINGS IN THE FONT SOFTWARE.\r\n'},76692:(e,t,n)=>{n.d(t,{A:()=>s});const s='[Cubic 11]\nThese fonts are free software.\nUnlimited permission is granted to use, copy, and distribute them, with or without modification, either commercially or noncommercially.\nTHESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.\n此字型是免費的。\n無論您是否進行對本字型進行商業或非商業性修改,均可無限制地使用,複製和分發它們。\n本字型的衍生品之授權必須與此字型相同,且不作任何擔保。\n[JF Dot M+H 12]\nCopyright(c) 2005 M+ FONTS PROJECT\n[M+ BITMAP FONTS]\nCopyright (C) 2002-2004 COZ\nThese fonts are free software.\nUnlimited permission is granted to use, copy, and distribute it, with or without modification, either commercially and noncommercially.\nTHESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.\nこれらのフォントはフリー(自由な)ソフトウエアです。\nあらゆる改変の有無に関わらず、また商業的な利用であっても、自由にご利用、複製、再配布することができますが、全て無保証とさせていただきます。\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttps://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n"Font Software" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n"Reserved Font Name" refers to any names specified as such after the\ncopyright statement(s).\n\n"Original Version" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n"Modified Version" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n"Author" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n'},77227:(e,t,n)=>{e.exports=n.p+"assets/id.c648ac5f9b773700ebe2.jsonc"},77825:(e,t,n)=>{e.exports=n.p+"assets/frame2.ca0f3a8b21518d509313.png"},77932:(e,t,n)=>{e.exports=n.p+"assets/pl.ad0459f81d48a34adb7a.jsonc"},78389:(e,t,n)=>{e.exports=n.p+"assets/clock_hand1.b99c9875a12dd66cc17e.png"},78437:(e,t,n)=>{e.exports=n.p+"assets/game_2_hands.a77ed87a719732f95d2e.mp3"},78453:(e,t,n)=>{e.exports=n.p+"assets/gear.100ad850915b524e939e.png"},78815:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SHOW_LANGUAGE_MENU=t.SHOW_HINTS=t.SHOW_HOUSE_AFTER_LOAD=t.DEMO_ENDING=t.SKIP_CANDLES=t.ALLOW_PASSWORD_SKIP=t.SKIP_FOUNTAIN=t.TWO_KNOCKS=t.AUTO_REGISTER=t.SKIP_STATUE_PUZZLE=t.SHOW_BAPHOMET=t.ANIMATE_OTHER_WORLD=t.VISIBLE_WINDOWS=t.OTHER_WORLD_LEVEL=t.LOGGED_IN_OTHER_WORLD=t.LOGGED_IN_MAIN_SCREEN=t.DEFAULT_LANGUAGE=void 0;const r=s(n(64564));r.default.IGNORE_SAVE=!1,t.DEFAULT_LANGUAGE="English",t.LOGGED_IN_MAIN_SCREEN=!1,t.LOGGED_IN_OTHER_WORLD=!1,t.OTHER_WORLD_LEVEL="intro",t.VISIBLE_WINDOWS=[],t.ANIMATE_OTHER_WORLD=!0,t.SHOW_BAPHOMET=!1,t.SKIP_STATUE_PUZZLE=!1,t.AUTO_REGISTER=!1,t.TWO_KNOCKS=!1,t.SKIP_FOUNTAIN=!1,t.ALLOW_PASSWORD_SKIP=!1,t.SKIP_CANDLES=!1,t.DEMO_ENDING=!1,t.SHOW_HOUSE_AFTER_LOAD=!1,t.SHOW_HINTS=!1,t.SHOW_LANGUAGE_MENU=!0,"undefined"!=typeof window&&"#chia"===window?.location.hash&&(r.default.IGNORE_SAVE=!0,t.SHOW_LANGUAGE_MENU=!1,t.LOGGED_IN_MAIN_SCREEN=!0,t.LOGGED_IN_OTHER_WORLD=!1,t.OTHER_WORLD_LEVEL="intro",t.VISIBLE_WINDOWS=["house-loading"],t.ANIMATE_OTHER_WORLD=!0,t.SKIP_STATUE_PUZZLE=!1,t.AUTO_REGISTER=!1,t.TWO_KNOCKS=!1,t.SKIP_FOUNTAIN=!1,t.ALLOW_PASSWORD_SKIP=!1,t.SKIP_CANDLES=!1,t.DEMO_ENDING=!1,t.SHOW_HOUSE_AFTER_LOAD=!0)},78942:(e,t,n)=>{e.exports=n.p+"assets/receive.539ffeffa285ee3c891b.mp3"},80011:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var s=n(85072),r=n.n(s),o=n(97825),i=n.n(o),a=n(77659),l=n.n(a),c=n(55056),d=n.n(c),u=n(10540),p=n.n(u),h=n(41113),f=n.n(h),x=n(23618),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=p();r()(x.A,m);const g=x.A&&x.A.locals?x.A.locals:void 0},80129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationContext=void 0,t.GameNavigator=function({navigation:e,onNavigate:t,fade:i}){const{size:a,orientation:l}=(0,r.useContext)(o.LayoutContext);return(0,s.jsxs)(s.Fragment,{children:[e.forward?(0,s.jsx)("div",{className:"cursor-pointer",style:{position:"absolute",top:-5*a,left:"landscape"===l?380*a:280*a,color:"blue",fontWeight:"bold",textDecoration:"underline",userSelect:"none",opacity:.25},onClick:e=>{i||t("forward")},children:(0,s.jsx)("img",{src:n(29085),width:40*a,onDragStart:e=>e.preventDefault(),style:{transform:"rotate(90deg)"}})}):null,e.backward?(0,s.jsx)("div",{className:"cursor-pointer",style:{position:"absolute",bottom:210*a,left:"landscape"===l?380*a:280*a,color:"blue",fontWeight:"bold",textDecoration:"underline",userSelect:"none",opacity:.25},onClick:e=>{i||t("backward")},children:(0,s.jsx)("img",{src:n(29085),width:40*a,onDragStart:e=>e.preventDefault(),style:{transform:"rotate(-90deg)"}})}):null,e.left?(0,s.jsx)("div",{className:"cursor-pointer",style:{position:"absolute",top:"landscape"===l?130*a:230*a,left:10*a,color:"blue",fontWeight:"bold",textDecoration:"underline",userSelect:"none",opacity:.25},onClick:e=>{i||t("left")},children:(0,s.jsx)("img",{src:n(29085),width:40*a,onDragStart:e=>e.preventDefault()})}):null,e.right?(0,s.jsx)("div",{className:"cursor-pointer",style:{position:"absolute",top:"landscape"===l?130*a:230*a,right:10*a,color:"blue",fontWeight:"bold",textDecoration:"underline",userSelect:"none",opacity:.25},onClick:e=>{i||t("right")},children:(0,s.jsx)("img",{src:n(29085),width:40*a,onDragStart:e=>e.preventDefault(),style:{transform:"translate3d(0,0,0) rotate(180deg)"}})}):null,(0,s.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"black",pointerEvents:"none",opacity:i?1:0,transition:"opacity 0.5s"}})]})};const s=n(74848),r=n(96540),o=n(49616);t.NavigationContext=(0,r.createContext)({})},80987:(e,t,n)=>{e.exports=n.p+"assets/symbol2.9001fa94441e0b6519e7.png"},81533:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{size:e,orientation:t}=(0,h.useContext)(l.LayoutContext),{language:s}=(0,h.useContext)(u.l10n.Context);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.default,{name:"credits",style:{zIndex:4004,whiteSpace:"nowrap"},initialPosition:{x:"landscape"===t?110:10,y:50},title:"file://Users/liz92/.../credits.html - Slozilla NetSurfer",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},children:"<"}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},children:">"}),(0,a.jsx)("div",{style:{display:"inline-block",padding:10*e,textAlign:"center",background:"white",border:2*e+"px solid black"},children:"file://Users/liz92/My%20Documents/credits.html"}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},children:"Go"})]}),(0,a.jsxs)("div",{style:{width:541*e,margin:5*e,padding:10*e,backgroundImage:`url(${(0,m.default)(n(31956))})`,border:2*e+"px solid black",height:"landscape"===t?350*e:500*e,fontFamily:"PixelComicSans",fontSize:20*e,overflowX:"hidden",overflowY:"scroll",whiteSpace:"normal"},onScroll:e=>{if(e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-50){if(_)return;_=!0,(0,d.achieve)(g.AchievementString.THANK_YOU)}},children:[(0,a.jsx)("img",{width:140*e,src:n(3939)}),(0,a.jsxs)("h1",{children:["Thank you so much for playing!"," ",(0,a.jsx)("img",{width:20*e,src:n(39484)})]}),(0,a.jsx)("p",{children:"It has always been a dream of mine to create a puzzle horror game and I am so thankful that you decided to play all the way through to the end!"}),(0,a.jsx)("p",{children:"Please stick around and scroll down for credits!"}),!0===s.SHOW_TRANSLATION_CREDITS&&(0,a.jsxs)("div",{style:{fontFamily:s.FONT_FAMILY.toString()},children:[(0,a.jsx)("h3",{style:{fontSize:20*e},children:s.CREDITS_TITLE}),s.CREDITS.map(((t,n)=>(0,a.jsx)("ul",{children:(0,a.jsxs)("li",{style:{fontSize:15*e},children:[t.name," ",t.website&&(0,a.jsxs)(a.Fragment,{children:["-"," ",(0,a.jsx)(b,{website:t.website,websiteTitle:t.website})]})]})},n)))]}),!0===s.SHOW_TRANSLATION_CREDITS&&(0,a.jsx)("p",{children:"Careful following the translation links, since I can't control them!"}),(0,a.jsx)("h2",{children:"Music Credits"}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(41428),style:{position:"absolute",width:180*e,left:360*e,top:-70*e}})}),(0,a.jsxs)("ul",{style:{position:"relative",width:300*e},children:[(0,a.jsxs)("li",{children:["Other World Soundtrack by entropicsonics -"," ",(0,a.jsx)(b,{instagram:"entropicsonics",soundcloud:"entropic-sonics"})]}),(0,a.jsxs)("li",{children:['"Leave This World" vocals by Gail -'," ",(0,a.jsx)(b,{instagram:"studioghobbli"})]}),(0,a.jsxs)("li",{children:['"Hindsight" vocals by Gail - ',(0,a.jsx)(b,{instagram:"studioghobbli"})]}),(0,a.jsxs)("li",{children:['"Roma Pizza" by toomi -'," ",(0,a.jsx)(b,{linktree:"toomi2",instagram:"toomiiiii__"})]}),(0,a.jsxs)("li",{children:['"11 demo song" by Joe Baker - ',(0,a.jsx)(b,{instagram:"joesshoestore"})]}),(0,a.jsxs)("li",{children:['"Retribution (End Credits)" by Sunny Grey -'," ",(0,a.jsx)(b,{instagram:"sunnygrey0"})]})]}),(0,a.jsx)("h2",{children:"Misc Credits"}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(42465),style:{position:"absolute",width:180*e,left:330*e,top:-70*e}})}),(0,a.jsxs)("ul",{style:{position:"relative",width:300*e},children:[(0,a.jsxs)("li",{children:["liz face model portrayed by Jenna Velasco -"," ",(0,a.jsx)(b,{instagram:"iennq"})]}),(0,a.jsxs)("li",{children:["cover art by Isabel Yi - ",(0,a.jsx)(b,{instagram:"ilyues"})]}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(55909),style:{position:"absolute",width:120*e,left:330*e,top:5*e}})}),(0,a.jsxs)("li",{children:["melting clock by Melissa Vorndren -"," ",(0,a.jsx)(b,{website:"https://www.instagram.com/p/CrCTjr0MlFX/",instagram:"madebymelis"})]}),(0,a.jsxs)("li",{children:["Comic Sans Pixel -"," ",(0,a.jsx)(E,{window:"credits-license-1",children:"license"})]}),(0,a.jsxs)("li",{children:["Pixeloid Sans -"," ",(0,a.jsx)(E,{window:"credits-license-2",children:"license"})]}),(0,a.jsxs)("li",{children:["Fusion Pixel -"," ",(0,a.jsx)(E,{window:"credits-license-3",children:"license"})]}),(0,a.jsxs)("li",{children:["Pixel Arial 11 -"," ",(0,a.jsx)(E,{window:"credits-license-4",children:"readme"})]})]}),(0,a.jsx)("h2",{children:"Special Thanks!"}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(18747),style:{position:"absolute",width:180*e,left:250*e,top:-70*e}})}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["Early Playtesters",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Mark Muendelein"}),(0,a.jsxs)("li",{children:["Ash - ",(0,a.jsx)(b,{website:"https://imempowa.com/"})]}),(0,a.jsx)("li",{children:"Emerson Ye"}),(0,a.jsx)("li",{children:"Jenna Velasco"}),(0,a.jsx)("li",{children:"Chaya Wurman"}),(0,a.jsx)("li",{children:"entropicsonics"}),(0,a.jsx)("li",{children:"Juan Salcedo"}),(0,a.jsx)("li",{children:"Will Braganza"})]})]}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(45607),style:{position:"absolute",width:150*e,left:350*e,top:90*e}})}),(0,a.jsxs)("li",{children:["Inspiration",(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["Chia Amisola - ",(0,a.jsx)(b,{website:"https://chia.design/"}),(0,a.jsx)("ul",{children:(0,a.jsxs)("li",{children:["Chia's"," ",(0,a.jsx)(f.default,{href:"https://www.instagram.com/p/CwBF3QTolje/",target:"_blank",children:"Internet Ambience"})," ","performance heavily inspired many parts of this game."]})})]}),(0,a.jsx)("li",{children:"Searching (2018 Film)"}),(0,a.jsx)("li",{children:"Noriko's Dinner Table (2005 Film)"}),(0,a.jsx)("li",{children:"Deep Sleep Trilogy (2012/2013/2014 Game)"}),(0,a.jsx)("li",{children:"Hypnospace Outlaw (2019 Game)"}),(0,a.jsx)("li",{children:"Emily is Away (2015 Game)"}),(0,a.jsx)("li",{children:"Lost Memories Dot Net (2017 Game)"}),(0,a.jsx)("li",{children:"No Players Online (2019 Game)"}),(0,a.jsx)("li",{children:"Windows XP"})]})]})]}),(0,a.jsx)("div",{style:{textAlign:"center"},children:(0,a.jsx)("img",{src:n(71346),style:{width:340*e}})}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(47279),style:{position:"absolute",width:180*e,left:320*e,top:-300*e}})}),(0,a.jsx)("h1",{style:{fontFamily:"PixelArial11",textAlign:"center"},children:"last seen online"}),(0,a.jsx)("p",{style:{fontFamily:"PixelArial11",textAlign:"center"},children:(0,a.jsx)("div",{style:{display:"inline-block",width:300*e,fontSize:14*e},children:"artwork, story, code, and extra music by henry tran."})}),(0,a.jsx)("p",{style:{fontFamily:"PixelArial11",textAlign:"center",fontSize:14*e},children:(0,a.jsx)(b,{website:"https://qwook.io",twitter:"henryqtran",instagram:"nohurryhen",soundcloud:"kid64"})}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{style:{textAlign:"center"},children:[(0,a.jsx)("img",{src:n(40352),style:{width:300*e}}),(0,a.jsx)("img",{src:n(2905),style:{width:200*e}})]}),(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("img",{src:n(56266),style:{position:"absolute",width:180*e,left:150*e,top:-200*e}})}),x.STANDALONE_APP?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{children:"Want to continue the story?"}),(0,a.jsxs)("p",{children:["Consider"," ",(0,a.jsx)(f.default,{href:"https://store.steampowered.com/app/2824230/last_seen_online/",children:"leaving a review."})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{children:"Want to continue the story?"}),(0,a.jsxs)("p",{children:["Consider"," ",(0,a.jsx)(f.default,{href:"https://qwook.itch.io/last-seen-online/rate",children:"leaving a review"}),"(these are only visible to me :P) , sharing the game,"," ",(0,a.jsxs)(f.default,{href:"https://qwook.itch.io/last-seen-online",children:[" ","writing a comment"]}),", or"," ",(0,a.jsx)(f.default,{href:"https://qwook.itch.io/last-seen-online/donate",children:"donating"})," ","on the itch.io page!"]})]})]}),(0,a.jsx)("div",{className:"button-98",onClick:e=>{(0,p.resetSave)()},style:{fontFamily:s.FONT_FAMILY},children:(0,a.jsx)(u.l10n.Text,{name:"CLICK_TO_REPLAY"})})]}),(0,a.jsx)(y,{name:"credits-license-1",children:(0,a.jsx)("pre",{style:{fontFamily:"PixelArial11"},children:n(12795).A})}),(0,a.jsx)(y,{name:"credits-license-2",children:(0,a.jsxs)("pre",{style:{fontFamily:"PixelArial11"},children:[" ",n(38780).A]})}),(0,a.jsxs)(y,{name:"credits-license-3",children:[(0,a.jsxs)("pre",{style:{fontFamily:"PixelArial11"},children:[" ",n(50062).A]}),(0,a.jsxs)("pre",{style:{fontFamily:"PixelArial11"},children:[" ",n(75828).A]}),(0,a.jsxs)("pre",{style:{fontFamily:"PixelArial11"},children:[" ",n(76692).A]}),(0,a.jsxs)("pre",{style:{fontFamily:"PixelArial11"},children:[" ",n(266).A]})]}),(0,a.jsx)(y,{name:"credits-license-4",children:(0,a.jsx)("pre",{style:{fontFamily:"PixelArial11"},children:n(97344).A})})]})};const a=n(74848),l=n(49616),c=o(n(96886)),d=n(73719),u=n(81218),p=n(80985),h=n(96540),f=i(n(35133)),x=n(98899),m=i(n(99240)),g=n(37815);let _;function b({instagram:e,soundcloud:t,twitter:n,linktree:s,website:r,websiteTitle:o}){const i=[...r?[{text:o||"website",href:`${r}`}]:[],...s?[{text:"linktree",href:`https://linktr.ee/${s}`}]:[],...e?[{text:"instagram",href:`https://instagram.com/${e}`}]:[],...t?[{text:"soundcloud",href:`https://soundcloud.com/${t}`}]:[],...n?[{text:"twitter",href:`https://twitter.com/${n}`}]:[]];return(0,a.jsx)(a.Fragment,{children:i.map((({href:e,text:t},n)=>(0,a.jsxs)("span",{children:[(0,a.jsx)(f.default,{target:"_blank",rel:"noreferrer",style:{color:"blue"},href:`${e}`,children:t})," ",n"}),(0,a.jsx)("div",{style:{display:"inline-block",padding:10*n,textAlign:"center",background:"white",border:2*n+"px solid black"},children:"file://Program Files/.../LICENSE.html"}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},children:"Go"}),(0,a.jsx)("div",{style:{width:424*n,margin:5*n,padding:10*n,border:2*n+"px solid black",height:"landscape"===s?350*n:500*n,background:"white",fontFamily:"PixelComicSans",fontSize:11*n,overflowX:"scroll",overflowY:"scroll",whiteSpace:"normal"},children:t})]})}function E({children:e,window:t,...n}){const{makeWindowVisible:s}=(0,h.useContext)(c.WindowManagerContext);return(0,a.jsx)("a",{href:"#",rel:"noreferrer",onClick:e=>{s(t),e.preventDefault()},...n,children:e})}},81735:(e,t,n)=>{e.exports=n.p+"assets/folder.9605776671c9b7a6d97f.gif"},82024:(e,t,n)=>{e.exports=n.p+"assets/eo.8b806132758cf815bdfb.jsonc"},83275:(e,t,n)=>{e.exports=n.p+"assets/candle.c4966b0ef4dc62170eec.mp3"},83424:(e,t,n)=>{e.exports=n.p+"assets/symbol1.23372ff7a94ed7740080.png"},83899:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntroText=function({moveToPosition:e}){const{language:t}=(0,j.useContext)(G.l10n.Context),n=(0,j.useContext)(m.LayoutContext).size,s=t.INTRO_TEXT_1.trim().split(""),r=t.INTRO_TEXT_2.trim().split(""),o=t.TITLE_TEXT.trim().split(""),i=[],l=[],c=[],[d,u]=(0,j.useState)(!1),[p,h]=(0,j.useState)(!1);(0,j.useEffect)((()=>{if(e){const e=[setTimeout((()=>{h(!0)}),500),setTimeout((()=>{u(!0)}),2e3),setTimeout((()=>{h(!1)}),2500)];return()=>{e.map((e=>clearTimeout(e)))}}}),[e]);for(let e of o){let t=!1;for(let n=0;n_.shuffle(_.range(0,s.length+r.length))),[s.length]);for(let e=0;e!l.includes(t)&&e?0:1,g=n=>l.includes(n)&&e?2*l.indexOf(n)*t.TITLE_SPACING+(50-o.length*t.TITLE_SPACING)+"%":nl.includes(t)&&e?-15*n:t{if(e&&d){const e=l.indexOf(t);if(-1!==e)return o[e]}return t{if(e){if(-1!==l.indexOf(t)&&-1!==c.indexOf(t)&&p)return`flicker 0.6s infinite ${Math.sin(321*t)/2+1}s`}return"none"};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block",width:600*n},children:[s.map(((t,n)=>(0,a.jsx)("span",{className:e?"intro-character":"",style:{position:"absolute",left:g(n),top:b(n),opacity:x(n),animation:E(n)},children:y(n)},n))),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),r.map(((t,n)=>(0,a.jsx)("span",{className:e?"intro-character":"",style:{position:"absolute",left:g(n+s.length),top:b(n+s.length),opacity:x(n+s.length),animation:E(n+s.length)},children:y(n+s.length)},n)))]})})},t.default=function(){const[e,t]=(0,b.useSaveState)("languageText",""),[s,r]=(0,b.useSaveState)("languageFile",d.DEFAULT_LANGUAGE);return(0,a.jsx)(l.CustomCursorProvider,{children:(0,a.jsx)(l.CustomCursor,{cursorMap:{default:{img:n(99923)},pointer:{img:n(24359),offsetX:11,offsetY:1},beam:{img:n(13224),offsetX:8,offsetY:18},move:{img:n(92730),offsetX:31,offsetY:31},busy:{img:n(57367),offsetX:13,offsetY:22}},children:(0,a.jsx)(m.default,{children:(0,a.jsx)(G.l10n.L10nProvider,{languages:R.builtInLanguages,languageText:e,currentLanguage:s,defaultLanguage:d.DEFAULT_LANGUAGE,children:(0,a.jsx)(X.SoundProvider,{children:(0,a.jsxs)(Y.ConVarProvider,{children:[(0,a.jsx)(K.Sounds,{}),(0,a.jsx)(I.FileDrop,{onDropJsonFile:e=>{t(e)}}),(0,a.jsx)(re,{onChangeLanguageKey:e=>{r(e)}}),(0,a.jsx)($.CheatsMenu,{}),(0,a.jsx)(J.ScreenSaver,{}),(0,a.jsx)(z.Fullscreen,{})]})})})})})})},t.HorrorInternal=re;const a=n(74848);n(47059);const l=n(94869),c=(o(n(27186)),o(n(23571))),d=(n(98823),n(78815)),u=n(98722),p=o(n(24714)),h=o(n(52725)),f=o(n(29369)),x=o(n(24425)),m=o(n(49616)),g=o(n(84613)),b=n(80985),y=o(n(53702)),E=o(n(96886)),j=n(96540),T=n(17322),S=n(44190),v=n(73164),O=i(n(93110)),N=i(n(81533)),I=n(47059),w=i(n(4683)),R=o(n(63976)),M=i(n(25496)),C=i(n(73965)),L=i(n(34873)),A=i(n(21475)),D=i(n(71536)),P=i(n(45544)),F=n(73719),k=(n(40961),n(10159)),G=n(81218),U=i(n(45041)),H=n(91722),W=n(98899),B=i(n(99240)),V=n(84344),z=n(42771),Y=n(19204),$=n(46777),X=(n(70641),i(n(20584)),n(97172),n(49046)),K=n(39975),Z=n(63783),J=n(18348),q=n(37815);let Q=!1;function ee({setLoggedIn:e}){const[t,s]=(0,j.useState)(!1),[r,o]=(0,j.useState)(""),i=(0,j.useRef)(),[l,u]=(0,j.useState)(!1),[p,h]=(0,j.useState)(!1),x=(0,j.useRef)(),{size:g,orientation:_}=(0,j.useContext)(m.LayoutContext),{language:b}=(0,j.useContext)(G.l10n.Context);(0,j.useEffect)((()=>{c.startEventTimer("main_login")}),[]);const{setShowGlobalHint:y}=(0,j.useContext)(f.HintContext);return(0,a.jsxs)("div",{style:{width:"100%",height:"100%",background:`url(${(0,B.default)(n(69592))}) no-repeat center black`,backgroundSize:"landscape"===_?"115%":"150%",backgroundPosition:"landscape"===_?`${-50*g}px ${0*g}px`:`${-230*g}px ${100*g}px`},children:[(0,a.jsx)("div",{className:"login",ref:i,children:(0,a.jsx)("div",{children:l?(0,a.jsx)("div",{children:b.LOGGING_IN}):(0,a.jsxs)("form",{ref:x,autoComplete:"off",onSubmit:t=>{if(t.preventDefault(),p)return;const n=(""+r).toLowerCase();n.includes("92")&&n.includes("scotty")||d.ALLOW_PASSWORD_SKIP&&n.includes("***")?(c.stopEventTimer("main_login"),u(!0),(0,T.playBGM)("login"),(0,H.setTimeoutPausible)((()=>{h(!0),(0,H.setTimeoutPausible)((()=>{e(!0)}),1500)}),1e3),(0,F.achieve)(q.AchievementString.BASIC_MATH),y(1)):(n.includes("2000")&&n.includes("scotty")&&(0,F.achieve)(q.AchievementString.SCOTTY_2000),s(!0),o(""),i.current.style.animation="jitter 0.5s",(0,H.setTimeoutPausible)((()=>{i.current.style.animation=""}),1e3))},children:[(0,a.jsx)("input",{type:"text",name:"code",className:"login-text",placeholder:b.PASSWORD_TEXT,style:{fontSize:Math.max(16,16*g)},value:r,onChange:e=>o(e.currentTarget.value)}),(0,a.jsx)("input",{type:"submit",value:"",className:"login-button cursor-pointer"}),(0,a.jsx)("input",{type:"button",value:"",className:"help-button cursor-pointer",onClick:()=>s(!0)}),t&&(0,a.jsx)("div",{children:b.PASSWORD_HINT})]})})}),(0,a.jsx)("div",{className:"welcome",style:{opacity:p?1:0},children:(0,a.jsx)("div",{className:"welcome-text",children:b.WELCOME_BACK})})]})}function te(e){const t=(0,j.useContext)(m.LayoutContext).size;return(0,a.jsxs)("div",{className:"cursor-pointer",style:{display:"flex",gap:0,alignItems:"center",flexDirection:"column",width:140*t,height:130*t,textAlign:"center",verticalAlign:"top",margin:5*t,visibility:e.invisible?"hidden":"visible"},onClick:t=>e.invisible?null:e.onClick(t),children:[(0,a.jsx)("img",{src:e.src||n(24193),style:{width:80*t,height:80*t,marginBottom:2*t},alt:e.text,onDragStart:e=>e.preventDefault()}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{style:{textShadow:`${2*t}px ${2*t}px 0px white`},children:e.text})})]})}function ne(){const[e,t]=(0,b.useSaveState)("photosUnzipped",!1),[s,r]=(0,b.useSaveState)("ritualUnzipped",!1),[o,i]=(0,b.useSaveState)("hideInitialIcons",!0),l=(0,j.useRef)();(0,j.useEffect)((()=>{const e=(0,H.setTimeoutPausible)((()=>{i(!1)}),1e3);return()=>{e()}}));const[p,f]=(0,j.useState)("File Browser"),[_,T]=(0,j.useState)(null),[S,v]=(0,j.useState)(!1),I=(0,j.useRef)(),R=(0,j.useCallback)(((e,t,n,s,r)=>{I.current.openPopup(e,t,n,s,r)}),[I]),A=(0,j.useCallback)(((e,t,n,s,r)=>{I.current.openGif(e,t,n,s,r)}),[I]),F=(0,j.useCallback)((()=>{I.current.closeAllPopups()}),[I]),{size:k,orientation:U}=(0,j.useContext)(m.LayoutContext),[W,V]=(0,b.useSaveState)("showBuddyListSignOn",!0),[z,Y]=(0,b.useSaveState)("visibleWindows",d.VISIBLE_WINDOWS,(e=>e instanceof Array?e.filter((e=>"files"!==e)):e)),[$,X]=(0,b.useSaveState)("finishedDownloading",!1),{language:K}=(0,j.useContext)(G.l10n.Context);return(0,a.jsxs)("div",{style:{background:`url(${(0,B.default)(n(21555))}) no-repeat center black`,backgroundSize:"landscape"===U?"110%":"146%",backgroundPosition:"landscape"===U?`${-40*k}px ${-300*k}px`:`${-250*k}px ${-100*k}px`,height:"100%"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:0,flexWrap:"wrap",flexDirection:"landscape"===U?"column":"row",width:"landscape"===U?"30%":"80%",height:"landscape"===U?"100%":"40%",padding:10*k,textAlign:"left",wordBreak:"break-word"},children:[(0,a.jsx)(te,{invisible:o,text:K.DESKTOP_SHORTCUT_BUDDYLIST,src:n(24193),onClick:e=>{l.current?.makeWindowVisible(W?"buddylist-signing-on":"buddylist"),l.current?.bringToTop(W?"buddylist-signing-on":"buddylist")}}),(0,a.jsx)(te,{invisible:o,text:K.DESKTOP_SHORTCUT_LOSEAMP_PLAYER,src:n(97146),onClick:e=>{l.current?.makeWindowVisible("loseamp"),l.current?.bringToTop("loseamp")}}),(0,a.jsx)(te,{invisible:o,text:K.DESKTOP_SHORTCUT_OTHER_WORLD,src:n(20284),onClick:e=>{l.current?.makeWindowVisible("otherworld")}}),e?null:(0,a.jsx)(te,{text:K.DESKTOP_SHORTCUT_ZIP,src:n(81735),onClick:e=>{l.current?.makeWindowVisible("photos4em.zip"),l.current?.bringToTop("photos4em.zip")}}),$&&(0,a.jsx)(te,{invisible:o,text:"redherring.exe",src:n(74205),onClick:e=>{l.current?.makeWindowVisible("house"),l.current?.bringToTop("house")}}),e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(te,{text:"lawson.jpg",src:n(15957),onClick:e=>{l.current?.makeWindowVisible("lawson.png"),l.current?.bringToTop("lawson.png")}}),(0,a.jsx)(te,{text:"asdfhzfzzz.txt",src:n(40454),onClick:e=>{l.current?.makeWindowVisible("notes"),l.current?.bringToTop("notes")}})]}):null,s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(te,{text:"IMG001.jpg",src:n(15957),onClick:e=>{l.current?.makeWindowVisible("img001.jpg"),l.current?.bringToTop("img001.jpg")}}),(0,a.jsx)(te,{text:"IMG002.jpg",src:n(15957),onClick:e=>{l.current?.makeWindowVisible("img002.jpg"),l.current?.bringToTop("img002.jpg")}}),(0,a.jsx)(te,{text:"IMG003.jpg",src:n(15957),onClick:e=>{l.current?.makeWindowVisible("img003.jpg"),l.current?.bringToTop("img003.jpg")}}),(0,a.jsx)(te,{text:"IMG004.jpg",src:n(15957),onClick:e=>{l.current?.makeWindowVisible("img004.jpg"),l.current?.bringToTop("img004.jpg")}})]}):null]}),(0,a.jsx)("div",{children:(0,a.jsx)(h.FileBrowserContext.Provider,{value:{openBrowser:(e,t,n)=>{f(e),T((()=>t)),v(n),l.current?.makeWindowInvisible("files"),(0,H.setTimeoutPausible)((()=>{l.current?.makeWindowVisible("files"),l.current?.bringToTop("files")}),0)}},children:(0,a.jsx)(E.WindowManager,{visibleWindows:z,setVisibleWindows:Y,ref:l,children:(0,a.jsxs)(u.EndingPopupContext.Provider,{value:{openPopup:R,openGif:A,closeAllPopups:F},children:[(0,a.jsx)(O.default,{setShowBuddyListSignOn:V}),(0,a.jsx)(g.default,{}),(0,a.jsx)(D.default,{onUnlocked:()=>{c.stopEventTimer("zip_file"),c.startEventTimer("otherworld_password"),l.current?.makeWindowInvisible("photos4em.zip"),r(!0),t(!0)}}),(0,a.jsx)(P.default,{onUnlocked:()=>{l.current?.makeWindowInvisible("COOL!!!.zip"),r(!0)}}),(0,a.jsx)(L.default,{}),(0,a.jsx)(M.default,{}),(0,a.jsx)(y.default,{}),(0,a.jsx)(C.default,{}),(0,a.jsx)(x.DisableMouse,{}),(0,a.jsx)(x.default,{}),(0,a.jsx)(x.FadeScreen,{}),(0,a.jsx)(x.ErrorScreen,{}),(0,a.jsx)(N.default,{}),(0,a.jsx)(h.default,{browserCallback:_,title:p,mapOnly:S}),(0,a.jsx)(w.default,{onFinishDownloading:()=>{X(!0)}}),(0,a.jsx)(u.EndingPopup,{ref:I})]})})})})]})}function se(){const{setEscapeMenuVisible:e}=(0,V.useEscapeMenu)();return(0,a.jsx)("div",{style:{zIndex:5e3,position:"absolute",right:10,bottom:10,width:25,height:25,background:`url(${(0,B.default)(n(78453))}) no-repeat center center / contain`,opacity:.5,transition:"opacity 0.5s"},onMouseEnter:e=>{e.currentTarget.style.opacity=1},onMouseLeave:e=>{e.currentTarget.style.opacity=.5},onClick:t=>{e(!0)}})}function re({onChangeLanguageKey:e}){const[t,s]=(0,b.useSaveState)("prologue",!d.LOGGED_IN_MAIN_SCREEN),[r,o]=(0,j.useState)(!0),[i,l]=(0,b.useSaveState)("loggedin",d.LOGGED_IN_MAIN_SCREEN),[c,u]=(0,j.useState)(!1),[h,x]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!k.isMobile);let E="NEVERLAND";try{window.electronAPI?(window.electronAPI.loadKey("neverland-password")||window.electronAPI.saveKey("neverland-password",`NEVERLAND${Math.floor(999*Math.random())}`),E=window.electronAPI.loadKey("neverland-password")):(localStorage.getItem("neverland-password")||localStorage.setItem("neverland-password",`NEVERLAND${Math.floor(999*Math.random())}`),E=localStorage.getItem("neverland-password"))}catch(e){}const[T,O]=(0,j.useState)(!1),[N,I]=(0,b.useSaveState)("hintFor",0),[w,M]=(0,b.useSaveState)("hintId",0),C=(0,j.useCallback)(((e,t)=>{I(e),M(t||0)}),[]),[L,D]=(0,b.useSaveState)("showLanguage",!0),{size:P}=(0,j.useContext)(m.LayoutContext);return(0,a.jsx)(f.HintContext.Provider,{value:{showHintsFor:N,showHintId:w,setShowGlobalHint:C},children:(0,a.jsx)(b.SaveContext.Provider,{value:{neverlandPassword:E},children:(0,a.jsxs)(y.ShowCameraContext.Provider,{value:{setShowCamera:x},children:[(0,a.jsx)(A.default,{}),(0,a.jsxs)("div",{style:{fontSize:14*P,display:"block",background:"lightblue",width:"100%",height:"100%",overflow:"hidden"},onTouchStart:e=>{Q=!0,1===e.touches.length&&(0,S.playSFX)("mousedown")},onTouchEnd:e=>{0===e.touches.length&&(0,S.playSFX)("mouseup")},onMouseDown:()=>{Q||(0,S.playSFX)("mousedown")},onMouseUp:()=>{Q||(0,S.playSFX)("mouseup")},onKeyDown:e=>{(0,S.playSFX)(`key${Math.floor(5*Math.random())+1}_down`)},onKeyUp:e=>{(0,S.playSFX)(`key${Math.floor(5*Math.random())+1}_up`)},children:[t?r?(0,a.jsx)(Z.TriggerWarning,{onFinished:()=>{o(!1)}}):(0,a.jsx)(v.NewIntroText,{onFinished:()=>{s(!1)}}):(0,a.jsx)(a.Fragment,{children:i?(0,a.jsx)(ne,{}):(0,a.jsx)(ee,{setLoggedIn:l})}),(0,a.jsx)(V.EscapeMenu,{menu:()=>(0,a.jsx)(p.default,{onChangeLanguage:D}),children:k.isMobile&&(0,a.jsx)(se,{})}),d.SHOW_HINTS&&(0,a.jsx)(f.default,{visible:T,setVisible:O}),d.SHOW_LANGUAGE_MENU&&(0,a.jsx)(R.default,{visible:L,setVisible:D,onLanguageChange:t=>{e(t)}})]}),h&&(0,a.jsx)("div",{style:{position:"absolute",background:`black url(${(0,B.default)(n(92337))}) no-repeat`,backgroundSize:"80px",backgroundPosition:"50px",transform:"translate(-50%, 0%)",top:0,left:"50%",width:150,height:40,borderRadius:"0px 0px 10px 10px",zIndex:2e3},children:(0,a.jsx)("div",{style:{position:"absolute",background:"black",top:0,right:30,width:20,height:"100%",animation:"blink 0.5s infinite"}})}),!W.STANDALONE_APP&&g&&(0,a.jsx)("div",{style:{zIndex:5e3,position:"absolute",right:10,bottom:10,width:50,height:50,background:`url(${(0,B.default)(n(23127))}) no-repeat center center / contain`,opacity:.3,transition:"opacity 0.5s"},onMouseEnter:e=>{e.currentTarget.style.opacity=1},onMouseLeave:e=>{e.currentTarget.style.opacity=.3},onClick:e=>{if(U.default.isEnabled)try{U.default.request()}catch(e){}}}),d.SHOW_HINTS&&(0,a.jsx)("div",{style:{zIndex:5e3,position:"absolute",top:10,right:10,width:100,height:100,background:`url(${(0,B.default)(n(18044))}) no-repeat center center / contain`,opacity:.3,transition:"opacity 0.5s"},onMouseEnter:e=>{e.currentTarget.style.opacity=1},onMouseLeave:e=>{e.currentTarget.style.opacity=.7},onClick:e=>{O(!0)}})]})})})}},83938:(e,t,n)=>{e.exports=n.p+"assets/tr.2fc07abe241f1e7308c8.jsonc"},84196:(e,t,n)=>{e.exports=n.p+"assets/ending2.aa9fd0bc15a18011d5f5.mp3"},84426:(e,t,n)=>{e.exports=n.p+"assets/r.8b9ab9bbb06723305a4f.png"},84613:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setMusicPlayerBusVolume=function(e){x=e;for(const t of Object.keys(p)){const n=p[t];n.volume(e*(n.original.volume||1))}},t.default=function(){const[e,t]=(0,o.useState)(null),[s,c]=(0,o.useState)([]),[y,E]=(0,o.useState)(0),j=s.filter((e=>{const[t,n,s]=e.start.split(":");return 60*parseInt(t)+parseInt(n)+parseInt(s)/100<=y})).pop(),T=e=>{g===e&&m&&m.playing()?m&&(m.pause(),h(null)):function(e){p[e]||function(e){if(p[e])return;const t=new i.Howl({src:[u[e].src],autoplay:!1,volume:u[e].volume||1,loop:u[e].loop});t.on("end",f),t.original=u[e],p[e]=t}(e);if(!p[e])return;u[e].loop&&g===e||(m&&m.pause(),p[e].seek(0),p[e].play(),p[e].volume(x*(p[e].original.volume||1)),m=p[e],g=e,h(e))}(e)};(0,o.useEffect)((()=>{h=e=>{t(e)}}),[]);const S=(0,o.useContext)(a.LayoutContext).size,{language:v}=(0,o.useContext)(d.l10n.Context);return(0,r.jsx)(l.default,{name:"loseamp",className:"cursor-move",style:{borderRadius:0,border:3*S+"px solid black",background:"linear-gradient(90deg, rgb(10, 10, 50) 0%, rgb(40, 40, 70) 30%, rgb(40, 40, 70) 70%, rgb(10, 10, 50) 100%)"},topBarStyle:{padding:10*S,background:"transparent",color:"white",userSelect:"none"},closeButtonStyle:{background:"none",position:"absolute",borderRadius:0,right:10*S,top:9*S,height:20*S,width:20*S},initialPosition:{x:100,y:150},title:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{style:{background:"transparent",height:20*S,textAlign:"center"},children:"LoseAmp Player"})}),children:(0,r.jsx)(_.Provider,{value:{currentSong:e,playAudio:T,setCurrentLyrics:c,setTime:E},children:(0,r.jsxs)("div",{style:{padding:10*S},children:[(0,r.jsxs)("div",{style:{width:335*S,background:"black",color:"#0f0",padding:10*S,border:"1px solid #444",marginBottom:10*S,height:20*S,overflow:"hidden"},children:[(0,r.jsx)("img",{src:n(50831),width:20*S,style:{paddingRight:10*S,verticalAlign:"middle"}}),(0,r.jsx)("span",{style:{verticalAlign:"middle"},children:j?.lyric})]}),(0,r.jsx)("div",{style:{width:335*S,height:250*S,background:"black",color:"#0f0",padding:10*S,border:"1px solid #444",overflowX:"hidden",overflowY:"hidden"},children:(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)(b,{n:0,title:"1. Roma_Pizza_25.mp3",duration:"1:50",playAudio:T,src:"loseamp_1",lyrics:v.LYRICS_1||[]}),(0,r.jsx)(b,{n:1,title:"2. holding hands.wav",duration:"1:53",playAudio:T,src:"loseamp_2",lyrics:v.LYRICS_2||[]}),(0,r.jsx)(b,{n:2,title:"3. in heaven.wav",duration:"3:02",playAudio:T,src:"loseamp_7",lyrics:v.LYRICS_3}),(0,r.jsx)(b,{n:3,title:"4. who am i to you.wav",duration:"2:16",playAudio:T,src:"loseamp_8",lyrics:v.LYRICS_4}),(0,r.jsx)(b,{n:4,title:"5. leave this world.mp3",duration:"3:23",playAudio:T,src:"loseamp_6",lyrics:v.LYRICS_5}),(0,r.jsx)(b,{n:5,title:"6. 11_j-demo (2).mp3",duration:"2:30",playAudio:T,src:"loseamp_5",lyrics:v.LYRICS_6}),(0,r.jsx)(b,{n:6,title:"7. hindsight (tube2mp3.com).mp3",duration:"1:20",playAudio:T,src:"loseamp_3",lyrics:v.LYRICS_7}),(0,r.jsx)(b,{n:7,title:"8. just my luck.mp3",duration:"2:13",playAudio:T,src:"loseamp_4",lyrics:v.LYRICS_8})]})})]})})})};const r=n(74848),o=n(96540),i=n(94196),a=n(49616),l=s(n(96886)),c=s(n(36430)),d=n(81218),u={loseamp_1:{src:n(51019)},loseamp_2:{src:n(78437),volume:.2},loseamp_3:{src:n(54405)},loseamp_4:{src:n(26657)},loseamp_5:{src:n(73359)},loseamp_6:{src:n(74140)},loseamp_7:{src:n(12366)},loseamp_8:{src:n(43373)}},p={};let h=e=>{};const f=()=>{h(null)};if("undefined"!=typeof window){window.pauseListenerMusicPlayer&&c.default.off("pause",window.pauseListenerMusicPlayer);let e=!1;window.pauseListenerMusicPlayer=t=>{t?(e=m&&m.playing(),e&&m.pause()):e&&m.play()},c.default.on("pause",window.pauseListenerMusicPlayer)}let x=1;let m=null,g=null;const _=(0,o.createContext)();function b({title:e,duration:t,src:s,n:i,lyrics:l}){const{playAudio:c,currentSong:d,setCurrentLyrics:u,setTime:p}=(0,o.useContext)(_),[h,f]=(0,o.useState)(0),x=d===s;(0,o.useEffect)((()=>{let e=null;return x&&(e=setInterval((()=>{const e=m?m.seek()/m.duration():0;f(e),m&&p(m.seek())}),100)),()=>{e&&clearInterval(e)}}),[x]);const g=(0,o.useContext)(a.LayoutContext).size;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"cursor-pointer",style:{position:"absolute",userSelect:"none",padding:5*g,top:32*i*g,width:325*g},onClick:e=>{c(s),p(0),u(l)},children:[e,s===d&&(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:100*h+"%",background:"rgba(0, 255, 0, 0.5)"}}),(0,r.jsx)("span",{style:{float:"right"},children:s===d?(0,r.jsx)("img",{src:n(32853),width:20*g}):t})]})})}},84764:(e,t,n)=>{e.exports=n.p+"assets/t.60c1e40509c5334705de.png"},84843:(e,t,n)=>{e.exports=n.p+"assets/house1_wind.5da5ef7366266d79f650.mp3"},84872:(e,t,n)=>{e.exports=n.p+"assets/ritual2.05fa0ba27fb3275ea2c2.gif"},84899:(e,t,n)=>{e.exports=n.p+"assets/rumble.130199303805ec1b2d45.mp3"},85601:(e,t,n)=>{e.exports=n.p+"assets/ritual3.d847ca0945b2d19f4f5e.gif"},85780:(e,t,n)=>{e.exports=n.p+"assets/bookglow.bbc0b0b286859ad8f9d3.png"},86515:(e,t,n)=>{e.exports=n.p+"assets/fusion-pixel-12px-proportional-ko.90a080428337f4b294ae.otf"},87147:(e,t,n)=>{e.exports=n.p+"assets/Grass.7a69caabfea1d587e104.png"},87289:(e,t,n)=>{e.exports=n.p+"assets/PIXEAB__.e1d1622c832a3e2c218f.ttf"},87417:(e,t,n)=>{e.exports=n.p+"assets/login.fd3cf57a2e572662a236.png"},87969:(e,t,n)=>{e.exports=n.p+"assets/key4_up.265e8ebb473011a1c9c7.mp3"},89421:(e,t,n)=>{e.exports=n.p+"assets/symbol4.73149023c034fd9a0d3e.png"},89453:(e,t,n)=>{e.exports=n.p+"assets/scrollbar_sandie.d21a12b3ea3e2a39039e.png"},89633:(e,t,n)=>{e.exports=n.p+"assets/scrollbar_down.1cc3f92fbb786fe2f4da.png"},89850:(e,t,n)=>{e.exports=n.p+"assets/dialup.8f9c0e3cfa94ec55c6d1.mp3"},90172:(e,t,n)=>{e.exports=n.p+"assets/door_close_buddylist.e96ebe75b7a75392dec2.mp3"},90227:(e,t,n)=>{e.exports=n.p+"assets/beep.7a4a1c1d3557631de9e1.mp3"},91169:(e,t,n)=>{e.exports=n.p+"assets/key5_down.c609fc9b2914d815e061.mp3"},91254:(e,t,n)=>{e.exports=n.p+"assets/cn_simplified.8661b534eb181e97e35e.jsonc"},91821:(e,t,n)=>{e.exports=n.p+"assets/disco_statue.f6932c356402f4dae092.gif"},92337:(e,t,n)=>{e.exports=n.p+"assets/fake_camera.c39352704197279ab4b5.png"},92403:(e,t,n)=>{e.exports=n.p+"assets/run.6ba21f64e9fcd4325ed1.gif"},92638:(e,t,n)=>{e.exports=n.p+"assets/clock_hand2.b280b3375fd515afb2e9.png"},92730:(e,t,n)=>{e.exports=n.p+"assets/move.c924d2db82500e505747.png"},93110:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConvertL10nChatLogToHTML=v,t.default=function({setShowBuddyListSignOn:e}){const{size:t,orientation:s}=(0,d.useContext)(f.LayoutContext),{makeWindowVisible:r,makeWindowInvisible:o,bringToTop:i}=(0,d.useContext)(c.WindowManagerContext),[E,j]=(0,d.useState)(!0),[S,O]=(0,d.useState)(!1),{language:N}=(0,d.useContext)(g.l10n.Context),[I,w]=(0,d.useState)(0),R=[N.BUDDYLIST_SIGN_ON_STEP_1,N.BUDDYLIST_SIGN_ON_STEP_2,N.BUDDYLIST_SIGN_ON_STEP_3,N.BUDDYLIST_SIGN_ON_STEP_4],{setShowGlobalHint:M}=(0,d.useContext)(p.HintContext);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.default,{name:"buddylist-signing-on",title:N.BUDDYLIST_SIGN_ON,disableCloseButton:!0,initialPosition:{x:"landscape"===s?280:160,y:"landscape"===s?50:170},onVisibleChange:t=>{t&&(0,y.setTimeoutPausible)((()=>{w(1),(0,y.setTimeoutPausible)((()=>{w(2),(0,y.setTimeoutPausible)((()=>{w(3),r("buddylist"),i("buddylist"),e(!1),(0,y.setTimeoutPausible)((()=>{o("buddylist-signing-on")}),1e3)}),1e3)}),1e3)}),1500)},children:(0,a.jsxs)("div",{style:{padding:`${10*t}px ${10*t}px`,textAlign:"center"},children:[(0,a.jsx)("div",{style:{width:250*t,background:"#3237b7"},children:(0,a.jsx)("img",{src:n(63565),alt:"buddylist",style:{width:200*t}})}),(0,a.jsx)("br",{}),"alonegurl15",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),R[I],(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block"},children:"Cancel"})]})}),(0,a.jsx)(c.default,{name:"buddylist",title:N.DESKTOP_SHORTCUT_BUDDYLIST,initialPosition:{x:"landscape"===s?560:370,y:50},onVisibleChange:e=>{S||(O(!0),(0,y.setTimeoutPausible)((()=>{r("__orion__"),i("__orion__"),(0,b.playSFX)("imreceive"),l.startEventTimer("zip_file")}),3e3))},children:(0,a.jsxs)("div",{style:{margin:5*t,width:200*t,height:400*t,background:"white"},children:[(0,a.jsx)(T,{name:"aznL4ws0n",status:"offline",onClick:e=>{r("aznL4ws0n"),i("aznL4ws0n")}}),(0,a.jsx)(T,{name:"scottNJ",status:"offline",onClick:e=>{r("scottNJ"),i("scottNJ")}}),(0,a.jsx)(T,{name:"EterNalJuice",status:"offline",onClick:e=>{r("EterNalJuice"),i("EterNalJuice")}}),(0,a.jsx)(T,{name:"xXemmberXx86",status:"offline",onClick:e=>{r("xXemmberXx86"),i("xXemmberXx86")}}),(0,a.jsx)(T,{name:"__orion__",status:E?"online":"offline",onClick:e=>{S||(0,_.playBGM)("imreceive"),O(!0),r("__orion__"),i("__orion__"),l.startEventTimer("zip_file")}})]})}),(0,a.jsx)(u.default,{name:"aznL4ws0n",initialPosition:{x:20,y:10},title:N.BUDDYLIST_CHAT_WINDOW_TITLE.format("aznL4ws0n"),chat:(0,a.jsxs)("div",{children:[v(N.LAWSON_CHATLOG,"aznL4ws0n"),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:N.USER_IS_OFFLINE})})]})}),(0,a.jsx)(u.default,{name:"scottNJ",initialPosition:{x:30,y:20},title:N.BUDDYLIST_CHAT_WINDOW_TITLE.format("scottNJ"),chat:(0,a.jsxs)("div",{children:[v(N.SCOTT_CHATLOG,"scottNJ"),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:N.USER_IS_OFFLINE})})]})}),(0,a.jsx)(u.default,{name:"EterNalJuice",initialPosition:{x:40,y:30},title:N.BUDDYLIST_CHAT_WINDOW_TITLE.format("EterNalJuice"),chat:(0,a.jsxs)("div",{children:[v(N.ETERNALJUICE_CHATLOG,"EterNalJuice"),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:N.USER_IS_OFFLINE})})]})}),(0,a.jsx)(u.default,{name:"xXemmberXx86",initialPosition:{x:50,y:40},title:N.BUDDYLIST_CHAT_WINDOW_TITLE.format("xXemmberXx86"),chat:(0,a.jsxs)("div",{children:[v(N.EMMBER_CHATLOG,"xXemmberXx86"),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"system",children:N.USER_IS_OFFLINE})})]})}),(0,a.jsx)(h.default,{name:"__orion__",initialPosition:{x:"landscape"===s?220:110,y:"landscape"===s?240:290},onFinished:()=>{j(!1),(0,x.achieve)(m.AchievementString.ASL),M(3)},title:N.BUDDYLIST_CHAT_WINDOW_TITLE.format("__orion__")})]})};const a=n(74848),l=o(n(23571)),c=o(n(96886)),d=n(96540),u=i(n(70839)),p=n(29369),h=i(n(29397)),f=n(49616),x=n(73719),m=n(37815),g=n(81218),_=n(17322),b=n(44190),y=n(91722),E=i(n(67098)),j=i(n(99240));function T({name:e,status:t,onClick:n}){const s=(0,d.useContext)(f.LayoutContext).size,{language:r}=(0,d.useContext)(g.l10n.Context);return(0,a.jsxs)("div",{className:"cursor-pointer",style:{color:"offline"===t?"#aaa":"black",padding:5*s},onClick:n,children:[(0,a.jsx)("div",{style:{display:"inline-block",borderRadius:"50%",width:10*s,height:10*s,fontFamily:r.FONT_FAMILY.toString(),fontSize:40*s,background:"offline"===t?"#ddd":"#0f0"}})," ",e]})}function S({children:e}){const t=(0,d.useContext)(f.LayoutContext).size,s=e.split(" ");return(0,a.jsx)(a.Fragment,{children:s.map(((e,s)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"corrupted",style:{whiteSpace:"nowrap"},children:e.split("").map(((e,r)=>(0,a.jsxs)("span",{style:{display:"inline-block",position:"relative"},children:[e,(0,a.jsx)("span",{style:{background:`url(${(0,j.default)(n(69784))}) repeat-x center`,backgroundSize:`auto ${25*t}px`,backgroundPositionX:2*(12*r+12*s)*t+"px",width:"100%",height:20*t,display:"inline-block",position:"absolute",left:0}})]},r)))},s)," "]})))})}function v(e,t,n){return"ERROR"===e.toString()&&(e=[]),e.map(((e,s)=>{let r=!1,o="them";e.startsWith(": ")?(o="me",e=e.replace(": ","")):e.startsWith(": ")?(o="me",r=!0,e=e.replace(": ","")):e.startsWith(": ")?(o="system",e=e.replace(": ","")):e.startsWith("<")&&(e=e.replace(/<[^>]*?>: /,""));let i=!1;return e.match("RED_HERRING_EXE")&&(e=e.replace("RED_HERRING_EXE",""),i=!0),(0,a.jsx)("div",{children:"system"===o?(0,a.jsx)("span",{className:"system",children:e}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:o,children:["me"===o?"alonegurl15":t,": "]}),r?(0,a.jsx)(S,{children:e}):(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,E.default)(e,["b"])}})," ",i?(0,a.jsx)("span",{className:"chat-choice",onClick:n,children:"redherring.exe"}):null]})},s)}))}},93136:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(74848),o=s(n(83899));{function i(e){if("NotSupportedError"!==e.reason.name||9!==e.reason.code)return"unhandledrejection"===e.type||e.type,!1}window.addEventListener("unhandledrejection",i),window.addEventListener("error",i)}t.default=function(){return(0,r.jsx)("div",{className:"App",style:{textAlign:"center"},children:(0,r.jsx)(o.default,{})})}},94469:(e,t,n)=>{e.exports=n.p+"assets/desk.4ba0a6cf4962289e7f17.gif"},94672:(e,t,n)=>{e.exports=n.p+"assets/im_receive_echo.3bdb2dbe14906554b402.mp3"},95345:(e,t,n)=>{e.exports=n.p+"assets/send.7d3772040d3d41cbfc23.mp3"},95616:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var s=n(85072),r=n.n(s),o=n(97825),i=n.n(o),a=n(77659),l=n.n(a),c=n(55056),d=n.n(c),u=n(10540),p=n.n(u),h=n(41113),f=n.n(h),x=n(21933),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=p();r()(x.A,m);const g=x.A&&x.A.locals?x.A.locals:void 0},97146:(e,t,n)=>{e.exports=n.p+"assets/loseamp.5b7d327e9fdbfbaaeb73.gif"},97178:(e,t,n)=>{e.exports=n.p+"assets/fusion-pixel-12px-proportional-ja.48cd791b1bdd3fa4fb31.otf"},97294:(e,t,n)=>{e.exports=n.p+"assets/v.712d912e7e70d9c600c3.png"},97344:(e,t,n)=>{n.d(t,{A:()=>s});const s="I created this font specifically with Macromedia Flash in mind.\r\n\r\nThis font is Arial set at 11px un-antialiased. I take no credit in the design of the original Arial font.\r\n\r\nHOW TO USE:\r\n\r\nThis font uses the same rules that Miniml.com fonts use or any other Flash specific fonts that are made.\r\n\r\n- Open flash and create a text box.\r\n\r\n- Make sure that text box X & Y values are set to a whole number (ie: 56.0 is correct 56.1 is NOT)\r\n\r\n- In the properties for the text box, choose Pixel Arial 11 and then set the size to 8. If you installed both fonts (regular and bold) Clicking the bold button will give the bold version of this font. \r\n\r\n- If you would like to use this font with HTML (specifically the bold tag) you add 2 text boxes, one for regualr and one for bold, set them accordingly in the properties window. Be sure to embed the fonts. Use the un-bold arial text box to display your text. When your text has a tag and the HTML option is set, your text will be BOLD and pixel crisp. Other wise it will just be a blank where text should be, so be sure to add both text boxes ANYWHERE in your project, doesn't matter where.\r\n\r\n- Your text box should now be a crisp pixel arial font set at 11. If not, check you X & Y coordinates for the text box make sure its on a whole number.\r\n\r\n\r\n\r\nWHY USE THIS?\r\n\r\nWell if you play with Flash, you will know there are limitations to their program when it comes to fonts. Even with the option to pixelate the font you selected... it just never comes out exactly right, so this font is for the picky people who would like a font that is pixelated and Arial and Bold.\r\n\r\nThe font covers the basic symbols that are found on a US keyboard. \r\n\r\nUse this font however you feel.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},98117:(e,t,n)=>{e.exports=n.p+"assets/shape1.b3d6cb32cc5e572d4144.png"},98722:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EndingPopup=t.EndingPopupContext=void 0;const i=n(74848),a=o(n(96886)),l=n(96540),c=n(49616);n(40961);t.EndingPopupContext=(0,l.createContext)({openPopup:(e,t,n,s,r)=>{},openGif:(e,t)=>{},closeAllPopups:()=>{}}),t.EndingPopup=(0,l.forwardRef)(((e,t)=>{const n=(0,l.useRef)(0),[s,r]=(0,l.useState)([]),{makeWindowVisible:o,makeWindowInvisible:d,setVisibleWindows:u}=(0,l.useContext)(a.WindowManagerContext),p=(0,l.useContext)(c.LayoutContext).size;return(0,l.useImperativeHandle)(t,(()=>({openPopup:(e,t,s,i,a)=>{r((r=>[...r,{id:"popup-"+ ++n.current,title:e,text:t,x:s,y:i,options:a}])),o(`popup-${n.current}`)},closeAllPopups:()=>{u((e=>e.filter((e=>!e.startsWith("popup-"))))),r([])}}))),(0,i.jsx)(i.Fragment,{children:s.map((({id:e,title:t,text:n,x:s,y:o,options:l})=>(0,i.jsx)(a.default,{name:e,initialPosition:{x:s,y:o},title:t,style:{zIndex:1005,minWidth:150*p},onVisibleChange:t=>{t||r((t=>t.filter((t=>t.id!==e))))},children:(0,i.jsxs)("div",{style:{padding:10*p,textAlign:"center"},children:[n,(0,i.jsx)("div",{style:{marginTop:10*p},children:l?l.map((t=>(0,i.jsx)("div",{className:"button-98 cursor-pointer",style:{display:"inline-block",margin:4*p},onClick:t=>{d(e)},children:t},t))):null})]})},e)))})}))},98762:(e,t,n)=>{e.exports=n.p+"assets/sign_customworld.c546bd3a4a4a225a7a07.gif"},98845:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{scene:e}=(0,a.useThree)(),t=(0,o.useCubeTexture)([l,l,l,l,l,l],{path:""});return e.background=t,(0,i.useEffect)((()=>{t.minFilter=r.NearestFilter,t.magFilter=r.NearestFilter,t.wrapS=r.RepeatWrapping,t.wrapT=r.RepeatWrapping,t.needsUpdate=!0}),[t]),(0,s.jsx)(s.Fragment,{})};const s=n(74848),r=n(27186),o=n(56448),i=n(96540),a=n(73560),l=n(26983)},99116:(e,t,n)=>{e.exports=n.p+"assets/es.e6a78f6a6d82aab7977b.jsonc"},99923:(e,t,n)=>{e.exports=n.p+"assets/arrow2x.952d3842b6daaeba0fa1.png"}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,s),o.loaded=!0,o.exports}s.m=t,s.amdO={},e=[],s.O=(t,n,r,o)=>{if(!n){var i=1/0;for(d=0;d=o)&&Object.keys(s.O).every((e=>s.O[e](n[l])))?n.splice(l--,1):(a=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.e=()=>Promise.resolve(),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{s.b=document.baseURI||self.location.href;var e={23:0};s.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(l)var d=l(s)}for(t&&t(n);cs(1726)));r=s.O(r)})();
\ No newline at end of file
diff --git a/filestorage/gd/qwook-last-seen-online/index.html b/filestorage/gd/qwook-last-seen-online/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..4ef1d26f6ffec23ef471fcab619bde4f744cb76b
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/index.html
@@ -0,0 +1,4 @@
+
+Last Seen Online
\ No newline at end of file
diff --git a/filestorage/gd/qwook-last-seen-online/react.js b/filestorage/gd/qwook-last-seen-online/react.js
new file mode 100644
index 0000000000000000000000000000000000000000..c1dda74947fa09b7847b56ce7e9a6bb0f4298685
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/react.js
@@ -0,0 +1,2 @@
+/*! For license information please see react.js.LICENSE.txt */
+"use strict";(self.webpackChunksketches=self.webpackChunksketches||[]).push([[644],{5338:(e,n,t)=>{var r=t(40961);n.createRoot=r.createRoot,n.hydrateRoot=r.hydrateRoot},15287:(e,n)=>{var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}function y(){}function b(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function C(e,n,r){var l,a={},u=null,o=null;if(null!=n)for(l in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(u=""+n.key),n)S.call(n,l)&&!x.hasOwnProperty(l)&&(a[l]=n[l]);var i=arguments.length-2;if(1===i)a.children=r;else if(1{var r=t(96540),l=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,a={},s=null,c=null;for(r in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)u.call(n,r)&&!i.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}n.Fragment=a,n.jsx=s,n.jsxs=s},22551:(e,n,t)=>{var r=t(96540),l=t(69982);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),N=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var D,I=Object.assign;function U(e){if(void 0===D)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);D=n&&n[1]||""}return"\n"+D+e}var V=!1;function $(e,n){if(!e||V)return"";V=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),a=r.stack.split("\n"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do{if(u--,0>--o||l[u]!==a[o]){var i="\n"+l[u].replace(" at new "," at ");return e.displayName&&i.includes("")&&(i=i.replace("",e.displayName)),i}}while(1<=u&&0<=o);break}}}finally{V=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?U(e):""}function A(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case C:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case z:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(n=e.displayName||null)?n:j(e.type)||"Memo";case R:n=e._payload,e=e._init;try{return j(e(n))}catch(e){}}return null}function B(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(n);case 8:return n===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var n=W(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function q(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Y(e,n){var t=n.checked;return I({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function X(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=H(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function G(e,n){null!=(n=n.checked)&&b(e,"checked",n,!1)}function Z(e,n){G(e,n);var t=H(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?ee(e,n.type,t):n.hasOwnProperty("defaultValue")&&ee(e,n.type,H(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function J(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function ee(e,n,t){"number"===n&&K(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var ne=Array.isArray;function te(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,n)}))}:ce);function de(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||pe.hasOwnProperty(e)&&pe[e]?(""+n).trim():n+"px"}function ge(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=he(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(pe).forEach((function(e){me.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),pe[n]=pe[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,n){if(n){if(ve[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(a(62))}}function be(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,xe=null;function Ce(e){if(e=bl(e)){if("function"!=typeof Se)throw Error(a(280));var n=e.stateNode;n&&(n=wl(n),Se(e.stateNode,e.type,n))}}function _e(e){Ee?xe?xe.push(e):xe=[e]:Ee=e}function Ne(){if(Ee){var e=Ee,n=xe;if(xe=Ee=null,Ce(e),n)for(e=0;e>>=0,0===e?32:31-(on(e)/sn|0)|0},on=Math.log,sn=Math.LN2;var cn=64,fn=4194304;function dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=dn(o):0!==(a&=u)&&(r=dn(a))}else 0!==(u=t&~l)?r=dn(u):0!==a&&(r=dn(a));if(0===r)return 0;if(0!==n&&n!==r&&!(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&4194240&a))return n;if(4&r&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function yn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-un(n)]=t}function bn(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-un(t),l=1<=Ft),Ut=String.fromCharCode(32),Vt=!1;function $t(e,n){switch(e){case"keyup":return-1!==Ot.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function At(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jt=!1;var Bt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ht(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Bt[e.type]:"textarea"===n}function Wt(e,n,t,r){_e(r),0<(n=Qr(n,"onChange")).length&&(t=new ct("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Qt=null,qt=null;function Kt(e){Ur(e,0)}function Yt(e){if(q(kl(e)))return e}function Xt(e,n){if("change"===e)return n}var Gt=!1;if(c){var Zt;if(c){var Jt="oninput"in document;if(!Jt){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jt="function"==typeof er.oninput}Zt=Jt}else Zt=!1;Gt=Zt&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?fr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function dr(){for(var e=window,n=K();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=K((e=n.contentWindow).document)}return n}function pr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function mr(e){var n=dr(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fr(t.ownerDocument.documentElement,t)){if(null!==r&&pr(t))if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=cr(t,a);var u=cr(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,gr=null,vr=null,yr=null,br=!1;function kr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;br||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ir(yr,r)||(yr=r,0<(r=Qr(vr,"onSelect")).length&&(n=new ct("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=gr)))}function wr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},xr={};function Cr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var n,t=Sr[e];for(n in t)if(t.hasOwnProperty(n)&&n in xr)return Er[e]=t[n];return e}c&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Cr("animationend"),Nr=Cr("animationiteration"),zr=Cr("animationstart"),Pr=Cr("transitionend"),Lr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,n){Lr.set(e,n),i(n,[e])}for(var Or=0;OrEl||(e.current=Sl[El],Sl[El]=null,El--)}function _l(e,n){El++,Sl[El]=e.current,e.current=n}var Nl={},zl=xl(Nl),Pl=xl(!1),Ll=Nl;function Tl(e,n){var t=e.type.contextTypes;if(!t)return Nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rl(e){return null!=(e=e.childContextTypes)}function Ol(){Cl(Pl),Cl(zl)}function Ml(e,n,t){if(zl.current!==Nl)throw Error(a(168));_l(zl,n),_l(Pl,t)}function Fl(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(a(108,B(e)||"Unknown",l));return I({},t,r)}function Dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nl,Ll=zl.current,_l(zl,e),_l(Pl,Pl.current),!0}function Il(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=Fl(e,n,Ll),r.__reactInternalMemoizedMergedChildContext=e,Cl(Pl),Cl(zl),_l(zl,e)):Cl(Pl),_l(Pl,t)}var Ul=null,Vl=!1,$l=!1;function Al(e){null===Ul?Ul=[e]:Ul.push(e)}function jl(){if(!$l&&null!==Ul){$l=!0;var e=0,n=kn;try{var t=Ul;for(kn=1;e>=u,l-=u,Xl=1<<32-un(n)+l|t<h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),a=u(v,a,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),la&&Zl(l,h),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),o=u(b,o,g),null===f?c=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),la&&Zl(l,g),c;if(null===h){for(;!y.done;g++,y=i.next())null!==(y=d(l,y.value,s))&&(o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return la&&Zl(l,g),c}for(h=r(l,h);!y.done;g++,y=i.next())null!==(y=m(h,l,g,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return n(l,e)})),la&&Zl(l,g),c}return function e(r,a,u,i){if("object"==typeof u&&null!==u&&u.type===E&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case w:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===E){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&ya(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=ga(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===E?((a=Ms(u.props.children,r.mode,i,u.key)).return=r,r=a):((i=Os(u.type,u.key,u.props,null,r.mode,i)).ref=ga(r,a,u),i.return=r,r=i)}return o(r);case S:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Is(u,r.mode,i)).return=r,r=a}return o(r);case R:return e(r,a,(c=u._init)(u._payload),i)}if(ne(u))return h(r,a,u,i);if(F(u))return g(r,a,u,i);va(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Ds(u,r.mode,i)).return=r,r=a),o(r)):t(r,a)}}var ka=ba(!0),wa=ba(!1),Sa=xl(null),Ea=null,xa=null,Ca=null;function _a(){Ca=xa=Ea=null}function Na(e){var n=Sa.current;Cl(Sa),e._currentValue=n}function za(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Pa(e,n){Ea=e,Ca=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&n)&&(yo=!0),e.firstContext=null)}function La(e){var n=e._currentValue;if(Ca!==e)if(e={context:e,memoizedValue:n,next:null},null===xa){if(null===Ea)throw Error(a(308));xa=e,Ea.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return n}var Ta=null;function Ra(e){null===Ta?Ta=[e]:Ta.push(e)}function Oa(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,Ra(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ma(e,r)}function Ma(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var Fa=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ua(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Va(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ni){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ma(e,t)}return null===(l=r.interleaved)?(n.next=n,Ra(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ma(e,t)}function $a(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}function Aa(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function ja(e,n,t,r){var l=e.updateQueue;Fa=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&((o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i))}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=I({},f,d);break e;case 2:Fa=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do{u|=l.lane,l=l.next}while(l!==n)}else null===a&&(l.shared.lanes=0);Fi|=u,e.lanes=u,e.memoizedState=f}}function Ba(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;nt?t:4,e(!0);var r=lu.transition;lu.transition={};try{e(!1),n()}finally{kn=t,lu.transition=r}}function Wu(){return yu().memoizedState}function Qu(e,n,t){var r=es(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ku(e))Yu(n,t);else if(null!==(t=Oa(e,n,t,r))){ns(t,e,r,Ji()),Xu(t,n,r)}}function qu(e,n,t){var r=es(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ku(e))Yu(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,or(o,u)){var i=n.interleaved;return null===i?(l.next=l,Ra(n)):(l.next=i.next,i.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Oa(e,n,l,r))&&(ns(t,e,r,l=Ji()),Xu(t,n,r))}}function Ku(e){var n=e.alternate;return e===uu||null!==n&&n===uu}function Yu(e,n){cu=su=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Xu(e,n,t){if(4194240&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}var Gu={readContext:La,useCallback:pu,useContext:pu,useEffect:pu,useImperativeHandle:pu,useInsertionEffect:pu,useLayoutEffect:pu,useMemo:pu,useReducer:pu,useRef:pu,useState:pu,useDebugValue:pu,useDeferredValue:pu,useTransition:pu,useMutableSource:pu,useSyncExternalStore:pu,useId:pu,unstable_isNewReconciler:!1},Zu={readContext:La,useCallback:function(e,n){return vu().memoizedState=[e,void 0===n?null:n],e},useContext:La,useEffect:Mu,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,Ru(4194308,4,Uu.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Ru(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ru(4,2,e,n)},useMemo:function(e,n){var t=vu();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=vu();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Qu.bind(null,uu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vu().memoizedState=e},useState:Pu,useDebugValue:$u,useDeferredValue:function(e){return vu().memoizedState=e},useTransition:function(){var e=Pu(!1),n=e[0];return e=Hu.bind(null,e[1]),vu().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=uu,l=vu();if(la){if(void 0===t)throw Error(a(407));t=t()}else{if(t=n(),null===zi)throw Error(a(349));30&au||xu(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};return l.queue=u,Mu(_u.bind(null,r,u,e),[e]),r.flags|=2048,Lu(9,Cu.bind(null,r,u,t,n),void 0,null),t},useId:function(){var e=vu(),n=zi.identifierPrefix;if(la){var t=Gl;n=":"+n+"R"+(t=(Xl&~(1<<32-un(Xl)-1)).toString(32)+t),0<(t=fu++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=du++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ju={readContext:La,useCallback:Au,useContext:La,useEffect:Fu,useImperativeHandle:Vu,useInsertionEffect:Du,useLayoutEffect:Iu,useMemo:ju,useReducer:ku,useRef:Tu,useState:function(){return ku(bu)},useDebugValue:$u,useDeferredValue:function(e){return Bu(yu(),ou.memoizedState,e)},useTransition:function(){return[ku(bu)[0],yu().memoizedState]},useMutableSource:Su,useSyncExternalStore:Eu,useId:Wu,unstable_isNewReconciler:!1},eo={readContext:La,useCallback:Au,useContext:La,useEffect:Fu,useImperativeHandle:Vu,useInsertionEffect:Du,useLayoutEffect:Iu,useMemo:ju,useReducer:wu,useRef:Tu,useState:function(){return wu(bu)},useDebugValue:$u,useDeferredValue:function(e){var n=yu();return null===ou?n.memoizedState=e:Bu(n,ou.memoizedState,e)},useTransition:function(){return[wu(bu)[0],yu().memoizedState]},useMutableSource:Su,useSyncExternalStore:Eu,useId:Wu,unstable_isNewReconciler:!1};function no(e,n){if(e&&e.defaultProps){for(var t in n=I({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function to(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:I({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var ro={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=Ji(),l=es(e),a=Ua(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=Va(e,a,l))&&(ns(n,e,l,r),$a(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=Ji(),l=es(e),a=Ua(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=Va(e,a,l))&&(ns(n,e,l,r),$a(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=Ji(),r=es(e),l=Ua(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=Va(e,l,r))&&(ns(n,e,r,t),$a(n,e,r))}};function lo(e,n,t,r,l,a,u){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||(!ir(t,r)||!ir(l,a))}function ao(e,n,t){var r=!1,l=Nl,a=n.contextType;return"object"==typeof a&&null!==a?a=La(a):(l=Rl(n)?Ll:zl.current,a=(r=null!=(r=n.contextTypes))?Tl(e,l):Nl),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=ro,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function uo(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&ro.enqueueReplaceState(n,n.state,null)}function oo(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},Da(e);var a=n.contextType;"object"==typeof a&&null!==a?l.context=La(a):(a=Rl(n)?Ll:zl.current,l.context=Tl(e,a)),l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(to(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&ro.enqueueReplaceState(l,l.state,null),ja(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function io(e,n){try{var t="",r=n;do{t+=A(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function so(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}var co="function"==typeof WeakMap?WeakMap:Map;function fo(e,n,t){(t=Ua(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Bi||(Bi=!0,Hi=r)},t}function po(e,n,t){(t=Ua(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===Wi?Wi=new Set([this]):Wi.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}function mo(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new co;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=xs.bind(null,e,n,t),n.then(e,e))}function ho(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function go(e,n,t,r,l){return 1&e.mode?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Ua(-1,1)).tag=2,Va(t,n,1))),t.lanes|=1),e)}var vo=k.ReactCurrentOwner,yo=!1;function bo(e,n,t,r){n.child=null===e?wa(n,null,t,r):ka(n,e.child,t,r)}function ko(e,n,t,r,l){t=t.render;var a=n.ref;return Pa(n,l),r=hu(e,n,t,r,a,l),t=gu(),null===e||yo?(la&&t&&ea(n),n.flags|=1,bo(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Bo(e,n,l))}function wo(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Ts(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Os(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,So(e,n,a,r,l))}if(a=e.child,!(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:ir)(u,r)&&e.ref===n.ref)return Bo(e,n,l)}return n.flags|=1,(e=Rs(a,r)).ref=n.ref,e.return=n,n.child=e}function So(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(ir(a,r)&&e.ref===n.ref){if(yo=!1,n.pendingProps=r=a,!(e.lanes&l))return n.lanes=e.lanes,Bo(e,n,l);131072&e.flags&&(yo=!0)}}return Co(e,n,t,r,l)}function Eo(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&n.mode){if(!(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,_l(Ri,Ti),Ti|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,_l(Ri,Ti),Ti|=r}else n.memoizedState={baseLanes:0,cachePool:null,transitions:null},_l(Ri,Ti),Ti|=t;else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,_l(Ri,Ti),Ti|=r;return bo(e,n,l,t),n.child}function xo(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Co(e,n,t,r,l){var a=Rl(t)?Ll:zl.current;return a=Tl(n,a),Pa(n,l),t=hu(e,n,t,r,a,l),r=gu(),null===e||yo?(la&&r&&ea(n),n.flags|=1,bo(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Bo(e,n,l))}function _o(e,n,t,r,l){if(Rl(t)){var a=!0;Dl(n)}else a=!1;if(Pa(n,l),null===n.stateNode)jo(e,n),ao(n,t,r),oo(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;"object"==typeof s&&null!==s?s=La(s):s=Tl(n,s=Rl(t)?Ll:zl.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof u.getSnapshotBeforeUpdate;f||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&uo(n,u,r,s),Fa=!1;var d=n.memoizedState;u.state=d,ja(n,r,u,l),i=n.memoizedState,o!==r||d!==i||Pl.current||Fa?("function"==typeof c&&(to(n,t,c,r),i=n.memoizedState),(o=Fa||lo(n,t,o,r,d,i,s))?(f||"function"!=typeof u.UNSAFE_componentWillMount&&"function"!=typeof u.componentWillMount||("function"==typeof u.componentWillMount&&u.componentWillMount(),"function"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"==typeof u.componentDidMount&&(n.flags|=4194308)):("function"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):("function"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Ia(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:no(n.type,o),u.props=s,f=n.pendingProps,d=u.context,"object"==typeof(i=t.contextType)&&null!==i?i=La(i):i=Tl(n,i=Rl(t)?Ll:zl.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&uo(n,u,r,i),Fa=!1,d=n.memoizedState,u.state=d,ja(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||Pl.current||Fa?("function"==typeof p&&(to(n,t,p,r),m=n.memoizedState),(s=Fa||lo(n,t,s,r,d,m,i)||!1)?(c||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),"function"==typeof u.componentDidUpdate&&(n.flags|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return No(e,n,t,r,a,l)}function No(e,n,t,r,l,a){xo(e,n);var u=!!(128&n.flags);if(!r&&!u)return l&&Il(n,t,!1),Bo(e,n,a);r=n.stateNode,vo.current=n;var o=u&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=ka(n,e.child,null,a),n.child=ka(n,null,o,a)):bo(e,n,o,a),n.memoizedState=r.state,l&&Il(n,t,!0),n.child}function zo(e){var n=e.stateNode;n.pendingContext?Ml(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Ml(0,n.context,!1),Ya(e,n.containerInfo)}function Po(e,n,t,r,l){return pa(),ma(l),n.flags|=256,bo(e,n,t,r),n.child}var Lo,To,Ro,Oo,Mo={dehydrated:null,treeContext:null,retryLane:0};function Fo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Do(e,n,t){var r,l=n.pendingProps,u=Ja.current,o=!1,i=!!(128&n.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&u)),r?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(u|=1),_l(Ja,1&u),null===e)return sa(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(1&n.mode?"$!"===e.data?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(i=l.children,e=l.fallback,o?(l=n.mode,o=n.child,i={mode:"hidden",children:i},1&l||null===o?o=Fs(i,l,0,null):(o.childLanes=0,o.pendingProps=i),e=Ms(e,l,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Fo(t),n.memoizedState=Mo,e):Io(n,i));if(null!==(u=e.memoizedState)&&null!==(r=u.dehydrated))return function(e,n,t,r,l,u,o){if(t)return 256&n.flags?(n.flags&=-257,Uo(e,n,o,r=so(Error(a(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(u=r.fallback,l=n.mode,r=Fs({mode:"visible",children:r.children},l,0,null),(u=Ms(u,l,o,null)).flags|=2,r.return=n,u.return=n,r.sibling=u,n.child=r,1&n.mode&&ka(n,e.child,null,o),n.child.memoizedState=Fo(o),n.memoizedState=Mo,u);if(!(1&n.mode))return Uo(e,n,o,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var i=r.dgst;return r=i,Uo(e,n,o,r=so(u=Error(a(419)),r,void 0))}if(i=!!(o&e.childLanes),yo||i){if(null!==(r=zi)){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=l&(r.suspendedLanes|o)?0:l)&&l!==u.retryLane&&(u.retryLane=l,Ma(e,l),ns(r,e,l,-1))}return ms(),Uo(e,n,o,r=so(Error(a(421))))}return"$?"===l.data?(n.flags|=128,n.child=e.child,n=_s.bind(null,e),l._reactRetry=n,null):(e=u.treeContext,ra=sl(l.nextSibling),ta=n,la=!0,aa=null,null!==e&&(ql[Kl++]=Xl,ql[Kl++]=Gl,ql[Kl++]=Yl,Xl=e.id,Gl=e.overflow,Yl=n),n=Io(n,r.children),n.flags|=4096,n)}(e,n,i,l,r,u,t);if(o){o=l.fallback,i=n.mode,r=(u=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&i||n.child===u?(l=Rs(u,s)).subtreeFlags=14680064&u.subtreeFlags:((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null),null!==r?o=Rs(r,o):(o=Ms(o,i,t,null)).flags|=2,o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,i=null===(i=e.child.memoizedState)?Fo(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Mo,l}return e=(o=e.child).sibling,l=Rs(o,{mode:"visible",children:l.children}),!(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function Io(e,n){return(n=Fs({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Uo(e,n,t,r){return null!==r&&ma(r),ka(n,e.child,null,t),(e=Io(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Vo(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),za(e.return,n,t)}function $o(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Ao(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(bo(e,n,r.children,t),2&(r=Ja.current))r=1&r|2,n.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vo(e,t,n);else if(19===e.tag)Vo(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_l(Ja,r),1&n.mode)switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===eu(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),$o(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===eu(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}$o(n,!0,t,null,a);break;case"together":$o(n,!1,null,null,void 0);break;default:n.memoizedState=null}else n.memoizedState=null;return n.child}function jo(e,n){!(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Bo(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Fi|=n.lanes,!(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=Rs(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Rs(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Ho(e,n){if(!la)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wo(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Qo(e,n,t){var r=n.pendingProps;switch(na(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wo(n),null;case 1:case 17:return Rl(n.type)&&Ol(),Wo(n),null;case 3:return r=n.stateNode,Xa(),Cl(Pl),Cl(zl),tu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,null!==aa&&(as(aa),aa=null))),To(e,n),Wo(n),null;case 5:Za(n);var l=Ka(qa.current);if(t=n.type,null!==e&&null!=n.stateNode)Ro(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(a(166));return Wo(n),null}if(e=Ka(Wa.current),fa(n)){r=n.stateNode,t=n.type;var u=n.memoizedProps;switch(r[dl]=n,r[pl]=u,e=!!(1&n.mode),t){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),"select"===t&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[dl]=n,e[pl]=r,Lo(e,n,!1,!1),n.stateNode=e;e:{switch(i=be(t,r),t){case"dialog":Vr("cancel",e),Vr("close",e),l=r;break;case"iframe":case"object":case"embed":Vr("load",e),l=r;break;case"video":case"audio":for(l=0;lAi&&(n.flags|=128,r=!0,Ho(u,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=eu(i))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),Ho(u,!0),null===u.tail&&"hidden"===u.tailMode&&!i.alternate&&!la)return Wo(n),null}else 2*Ge()-u.renderingStartTime>Ai&&1073741824!==t&&(n.flags|=128,r=!0,Ho(u,!1),n.lanes=4194304);u.isBackwards?(i.sibling=n.child,n.child=i):(null!==(t=u.last)?t.sibling=i:n.child=i,u.last=i)}return null!==u.tail?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=Ge(),n.sibling=null,t=Ja.current,_l(Ja,r?1&t|2:1&t),n):(Wo(n),null);case 22:case 23:return cs(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&1&n.mode?!!(1073741824&Ti)&&(Wo(n),6&n.subtreeFlags&&(n.flags|=8192)):Wo(n),null;case 24:case 25:return null}throw Error(a(156,n.tag))}function qo(e,n){switch(na(n),n.tag){case 1:return Rl(n.type)&&Ol(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Xa(),Cl(Pl),Cl(zl),tu(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Za(n),null;case 13:if(Cl(Ja),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));pa()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return Cl(Ja),null;case 4:return Xa(),null;case 10:return Na(n.type._context),null;case 22:case 23:return cs(),null;default:return null}}Lo=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},To=function(){},Ro=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,Ka(Wa.current);var a,u=null;switch(t){case"input":l=Y(e,l),r=Y(e,r),u=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),u=[];break;case"textarea":l=re(e,l),r=re(e,r),u=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(t,r),t=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var i=l[c];for(a in i)i.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var s=r[c];if(i=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==i&&(null!=s||null!=i))if("style"===c)if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(t||(t={}),t[a]=s[a])}else t||(u||(u=[]),u.push(c,t)),t=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,i=i?i.__html:void 0,null!=s&&i!==s&&(u=u||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(u=u||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Vr("scroll",e),u||i===s||(u=[])):(u=u||[]).push(c,s))}t&&(u=u||[]).push("style",t);var c=u;(n.updateQueue=c)&&(n.flags|=4)}},Oo=function(e,n,t,r){t!==r&&(n.flags|=4)};var Ko=!1,Yo=!1,Xo="function"==typeof WeakSet?WeakSet:Set,Go=null;function Zo(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Es(e,n,t)}else t.current=null}function Jo(e,n,t){try{t()}catch(t){Es(e,n,t)}}var ei=!1;function ni(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&Jo(n,t,a)}l=l.next}while(l!==r)}}function ti(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ri(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function li(e){var n=e.alternate;null!==n&&(e.alternate=null,li(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(n=e.stateNode)&&(delete n[dl],delete n[pl],delete n[hl],delete n[gl],delete n[vl])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ai(e){return 5===e.tag||3===e.tag||4===e.tag}function ui(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ai(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function oi(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(oi(e,n,t),e=e.sibling;null!==e;)oi(e,n,t),e=e.sibling}function ii(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ii(e,n,t),e=e.sibling;null!==e;)ii(e,n,t),e=e.sibling}var si=null,ci=!1;function fi(e,n,t){for(t=t.child;null!==t;)di(e,n,t),t=t.sibling}function di(e,n,t){if(an&&"function"==typeof an.onCommitFiberUnmount)try{an.onCommitFiberUnmount(ln,t)}catch(e){}switch(t.tag){case 5:Yo||Zo(t,n);case 6:var r=si,l=ci;si=null,fi(e,n,t),ci=l,null!==(si=r)&&(ci?(e=si,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):si.removeChild(t.stateNode));break;case 18:null!==si&&(ci?(e=si,t=t.stateNode,8===e.nodeType?il(e.parentNode,t):1===e.nodeType&&il(e,t),Bn(e)):il(si,t.stateNode));break;case 4:r=si,l=ci,si=t.stateNode.containerInfo,ci=!0,fi(e,n,t),si=r,ci=l;break;case 0:case 11:case 14:case 15:if(!Yo&&(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect))){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(2&a||4&a)&&Jo(t,n,u),l=l.next}while(l!==r)}fi(e,n,t);break;case 1:if(!Yo&&(Zo(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Es(t,n,e)}fi(e,n,t);break;case 21:fi(e,n,t);break;case 22:1&t.mode?(Yo=(r=Yo)||null!==t.memoizedState,fi(e,n,t),Yo=r):fi(e,n,t);break;default:fi(e,n,t)}}function pi(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Xo),n.forEach((function(n){var r=Ns.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function mi(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=o),r&=~u}if(r=l,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ei(r/1960))-r)){e.timeoutHandle=rl(ks.bind(null,e,Vi,ji),r);break}ks(e,Vi,ji);break;default:throw Error(a(329))}}}return ts(e,Ge()),e.callbackNode===t?rs.bind(null,e):null}function ls(e,n){var t=Ui;return e.current.memoizedState.isDehydrated&&(fs(e,n).flags|=256),2!==(e=hs(e,n))&&(n=Vi,Vi=t,null!==n&&as(n)),e}function as(e){null===Vi?Vi=e:Vi.push.apply(Vi,e)}function us(e,n){for(n&=~Ii,n&=~Di,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0e?16:e,null===qi)var r=!1;else{if(e=qi,qi=null,Ki=0,6&Ni)throw Error(a(331));var l=Ni;for(Ni|=4,Go=e.current;null!==Go;){var u=Go,o=u.child;if(16&Go.flags){var i=u.deletions;if(null!==i){for(var s=0;sGe()-$i?fs(e,0):Ii|=t),ts(e,n)}function Cs(e,n){0===n&&(1&e.mode?(n=fn,!(130023424&(fn<<=1))&&(fn=4194304)):n=1);var t=Ji();null!==(e=Ma(e,n))&&(yn(e,n,t),ts(e,t))}function _s(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Cs(e,t)}function Ns(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n),Cs(e,t)}function zs(e,n){return qe(e,n)}function Ps(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,n,t,r){return new Ps(e,n,t,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rs(e,n){var t=e.alternate;return null===t?((t=Ls(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Os(e,n,t,r,l,u){var o=2;if(r=e,"function"==typeof e)Ts(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case E:return Ms(t.children,l,u,n);case x:o=8,l|=8;break;case C:return(e=Ls(12,t,n,2|l)).elementType=C,e.lanes=u,e;case P:return(e=Ls(13,t,n,l)).elementType=P,e.lanes=u,e;case L:return(e=Ls(19,t,n,l)).elementType=L,e.lanes=u,e;case O:return Fs(t,l,u,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:o=10;break e;case N:o=9;break e;case z:o=11;break e;case T:o=14;break e;case R:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=Ls(o,t,n,l)).elementType=e,n.type=r,n.lanes=u,n}function Ms(e,n,t,r){return(e=Ls(7,e,r,n)).lanes=t,e}function Fs(e,n,t,r){return(e=Ls(22,e,r,n)).elementType=O,e.lanes=t,e.stateNode={isHidden:!1},e}function Ds(e,n,t){return(e=Ls(6,e,null,n)).lanes=t,e}function Is(e,n,t){return(n=Ls(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Us(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Vs(e,n,t,r,l,a,u,o,i){return e=new Us(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=Ls(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(a),e}function $s(e){if(!e)return Nl;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Rl(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(a(171))}if(1===e.tag){var t=e.type;if(Rl(t))return Fl(e,t,n)}return n}function As(e,n,t,r,l,a,u,o,i){return(e=Vs(t,r,!0,e,0,a,0,o,i)).context=$s(null),t=e.current,(a=Ua(r=Ji(),l=es(t))).callback=null!=n?n:null,Va(t,a,l),e.current.lanes=l,yn(e,l,r),ts(e,r),e}function js(e,n,t,r){var l=n.current,a=Ji(),u=es(l);return t=$s(t),null===n.context?n.context=t:n.pendingContext=t,(n=Ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Va(l,n,u))&&(ns(e,l,u,a),$a(e,l,u)),u}function Bs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hs(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=t(22551)},74848:(e,n,t)=>{e.exports=t(21020)},96540:(e,n,t)=>{e.exports=t(15287)}}]);
\ No newline at end of file
diff --git a/filestorage/gd/qwook-last-seen-online/sk2tch.js b/filestorage/gd/qwook-last-seen-online/sk2tch.js
new file mode 100644
index 0000000000000000000000000000000000000000..69c19b02b5f478d17308f2fdb55045e70cd43f32
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/sk2tch.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunksketches=self.webpackChunksketches||[]).push([[250],{5636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unmute=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!1);var r;void 0!==document.hidden?r={hidden:"hidden",visibilitychange:"visibilitychange"}:void 0!==document.webkitHidden?r={hidden:"webkitHidden",visibilitychange:"webkitvisibilitychange"}:void 0!==document.mozHidden?r={hidden:"mozHidden",visibilitychange:"mozvisibilitychange"}:void 0!==document.msHidden&&(r={hidden:"msHidden",visibilitychange:"msvisibilitychange"});function o(e,t,n,r,o){for(var a=0;a=0&&i.indexOf("like iphone")<0||i.indexOf("ipad")>=0&&i.indexOf("like ipad")<0||i.indexOf("ipod")>=0&&i.indexOf("like ipod")<0||i.indexOf("mac os x")>=0&&navigator.maxTouchPoints>0,c=!0;function l(){var e=!(!t&&(r&&document[r.hidden]||u&&!document.hasFocus()));e!==c&&(c=e,y(!1),p())}function d(){l()}r&&o(window.document,[r.visibilitychange],d,!0,!0);function f(e){e&&e.target!==window||l()}u&&o(window,["focus","blur"],f,!0,!0);function p(){var t;c?"running"!==e.state&&"closed"!==e.state&&x&&(t=e.resume())&&t.then(s,s).catch(s):"running"===e.state&&(t=e.suspend())&&t.then(s,s).catch(s)}function m(e){e&&e.unmute_handled||(e.unmute_handled=!0,p())}o(e,["statechange"],m,!0,!0),e.onstatechange||(e.onstatechange=m);var h=null;function v(e,t){for(var n=t;e>1;e--)n+=t;return n}var g="data:audio/mpeg;base64,//uQx"+v(23,"A")+"WGluZwAAAA8AAAACAAACcQCA"+v(16,"gICA")+v(66,"/")+"8AAABhTEFNRTMuMTAwA8MAAAAAAAAAABQgJAUHQQAB9AAAAnGMHkkI"+v(320,"A")+"//sQxAADgnABGiAAQBCqgCRMAAgEAH"+v(15,"/")+"7+n/9FTuQsQH//////2NG0jWUGlio5gLQTOtIoeR2WX////X4s9Atb/JRVCbBUpeRUq"+v(18,"/")+"9RUi0f2jn/+xDECgPCjAEQAABN4AAANIAAAAQVTEFNRTMuMTAw"+v(97,"V")+"Q==";function y(e){if(u)if(c){if(e){if(!h){var t=document.createElement("div");t.innerHTML="",(h=t.children.item(0)).controls=!1,h.disableRemotePlayback=!0,h.preload="auto",h.src=g,h.loop=!0,h.load()}if(h.paused){var n=h.play();n&&n.then(s,b).catch(b)}}}else b()}function b(){h&&(h.src="about:blank",h.load(),h=null)}var w=["click","contextmenu","auxclick","dblclick","mousedown","mouseup","touchend","keydown","keyup"],x=!1;function S(){x=!0,y(!0),p()}return o(window,w,S,!0,!0),{dispose:function(){b(),r&&a(document,[r.visibilitychange],d,!0,!0),u&&a(window,["focus","blur"],f,!0,!0),a(window,w,S,!0,!0),a(e,["statechange"],m,!0,!0),e.onstatechange===m&&(e.onstatechange=null)}}}},13857:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const r=n(27186);class o extends r.Loader{constructor(e){super(e)}load(e,t,n,o){const a=new r.Texture,s=new r.ImageLoader(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),t&&t(a);let i=10;const u=()=>{i--,s.load(e,(function(e){a.image=e,a.needsUpdate=!0,void 0!==t&&t(a)}),n,(e=>{i>0?setTimeout((()=>u()),1e3-100*i):void 0!==o&&(e.message="Failed to download this file. Check your internet connection.")}))};return u(),a}}t.default=o},19204:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConVarContext=void 0,t.ConVarProvider=function({children:e}){const n=(0,a.useMemo)((()=>(0,s.createStore)(u((0,i.loadStorage)("conVarPersistMap")))),[]);(0,s.useStore)(n,(e=>e.persistMap));return(0,r.jsxs)(t.ConVarContext.Provider,{value:{conVarStore:n},children:[(0,r.jsx)(c,{}),e]})};const r=n(74848),o=n(89407),a=n(96540),s=n(42341),i=n(80985);t.ConVarContext=(0,a.createContext)(null);const u=e=>t=>({conVarMap:{},persistMap:e,loadedPersist:{},setConVar:(e,n)=>t((t=>(n=n instanceof Function?n(t.conVarMap[e].value):n,(0,o.produce)(t,(t=>{t.conVarMap[e]?t.conVarMap[e].value=n:t.conVarMap[e]=(0,o.produce)(l,(e=>{e.value=n}))}))))),setSync:(e,n,r)=>t((t=>(0,o.produce)(t,(t=>{t.conVarMap[e]?t.conVarMap[e].sync={getter:n,setter:r}:t.conVarMap[e]=(0,o.produce)(l,(e=>{e.sync={getter:n,setter:r}}))})))),clearSync:e=>t((t=>(0,o.produce)(t,(t=>{t.conVarMap[e]&&delete t.conVarMap[e].sync})))),setPersistEnabled:(e,n)=>t((t=>(0,o.produce)(t,(t=>{t.persistMap[e]?t.persistMap[e].enabled=n:t.persistMap[e]=(0,o.produce)(d,(e=>{e.enabled=n}))})))),setPersistValue:(e,n)=>t((t=>(0,o.produce)(t,(t=>{t.persistMap[e]?t.persistMap[e].value=n:t.persistMap[e]=(0,o.produce)(d,(e=>{e.value=n}))})))),setPersistMap:e=>{t((t=>(0,o.produce)(t,(t=>{t.persistmap=e}))))},setLoadedPersist:e=>{t((t=>(0,o.produce)(t,(t=>{t.loadedPersist[e]=!0}))))}});function c(){const{conVarStore:e}=(0,a.useContext)(t.ConVarContext),n=(0,s.useStore)(e,(e=>e.persistMap));return(0,a.useEffect)((()=>{(0,i.saveStorage)("conVarPersistMap",n)}),[n]),(0,r.jsx)(r.Fragment,{})}const l={value:null,sync:void 0,persist:!1},d={value:null,enabled:!1}},20584:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=(0,r.useRef)(!1),a=(0,r.useRef)(t),[s,i]=(0,r.useState)(!1),u=(0,r.useRef)(0);a.current=t;const c=(0,r.useMemo)((()=>{let t=0;return("function"==typeof e?e():e).map((e=>{const n=t;return t+=e.duration,{...e,startTime:n}}))}),[e]);return(0,o.useFramePausibleCanvasless)((e=>{if(!1===s)return;const t=u.current,r=u.current+e;u.current=r;let o=!1;c.forEach(((n,a)=>{n.startTime>=t&&n.startTime=t&&n.startTime<=r||n.startTimer||n.startTimet)&&(n.frameCallback&&n.frameCallback(e,Math.min((u.current-n.startTime)/n.duration,1)),o=!0),n.startTime+n.duration>=t&&n.startTime+n.duration()=>{n.current&&a.current?.onEarlyCleanup&&a.current?.onEarlyCleanup()}),[]),[()=>{s&&t?.norestart||(s&&t?.onRestart&&t?.onRestart(),i(!0),n.current=!0,u.current=0)},s]};const r=n(96540),o=n(91722)},23571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publishEvent=o,t.startEventTimer=function(e){try{if(a[e])return;a[e]=Date.now(),o(`start_${e}`)}catch(e){}},t.stopEventTimer=function(e){try{a[e]&&o(`finish_${e}`,{value:Date.now()-a[e]})}catch(e){}};const r=n(79279);try{(0,r.install)("G-1WPQ18JJT3")}catch(e){}function o(e,t={}){try{(0,r.gtag)("event",e,t)}catch(e){}}let a={}},33687:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(85072),o=n.n(r),a=n(97825),s=n.n(a),i=n(77659),u=n.n(i),c=n(55056),l=n.n(c),d=n(10540),f=n.n(d),p=n(41113),m=n.n(p),h=n(46146),v={};v.styleTagTransform=m(),v.setAttributes=l(),v.insert=u().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f();o()(h.A,v);const g=h.A&&h.A.locals?h.A.locals:void 0},34015:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useTimeline2=s,t.useTimeline2WithPlayState=function(e,t){const[n,o]=(0,r.useState)(!1);return{...s(e,{...t,onStart(){o(!0),t?.onStart&&t?.onStart()},onStop(){o(!1),t?.onStop&&t?.onStop()}}),playing:n}};const r=n(96540),o=n(91722),a=n(74442);function s(e,t={deps:[],canRetrigger:!1}){const[n,s]=(0,r.useState)((()=>new a.Timeline2)),i=(0,r.useMemo)(e,t.deps);return n.timeline=i,n.onStart=t.onStart,n.onStop=t.onStop,n.canRetrigger=t.canRetrigger,(0,o.useFramePausibleCanvasless)((e=>{n.process(e)})),{play:(0,r.useCallback)((()=>n.play()),[n]),stop:(0,r.useCallback)((()=>n.stop()),[n])}}},35133:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({href:e,children:t,...n}){return o.STANDALONE_APP?(0,r.jsx)("a",{href:"#",rel:"noreferrer",onClick:t=>{t.preventDefault(),window?.electronAPI?.steamworks?.overlay.activateToWebPage(e)},...n,children:t}):(0,r.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",...n,children:t})};const r=n(74848),o=n(98899)},36430:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=new(r(n(37007)).default);t.default=o},42771:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Fullscreen=function(){const[e,t]=(0,i.useSettingsState)("fullscreen",!0);return(0,a.useEffect)((()=>{window.electronAPI||t(!1),s.default.isEnabled&&s.default.on("change",(()=>{t(s.default.isFullscreen)}))}),[]),(0,a.useEffect)((()=>{(async()=>{if(s.default.isEnabled)if(e)if(window.electronAPI)window.electronAPI?.setFullscreen(!0);else try{s.default.isFullscreen||(await s.default.request(),s.default.isFullscreen||t(!1))}catch(e){t(!1)}else if(window.electronAPI)window.electronAPI?.setFullscreen(!1);else if(s.default.isFullscreen)try{s.default.exit()}catch(e){}})()}),[e]),(0,o.jsx)(o.Fragment,{})};const o=n(74848),a=n(96540),s=r(n(45041)),i=n(70641)},46146:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(31601),o=n.n(r),a=n(76314),s=n.n(a)()(o());s.push([e.id,"img{user-select:none;-webkit-user-drag:none}",""]);const i=s},46777:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheatsMenu=function(){const[e,t]=(0,a.useState)(!1),{conVarStore:n}=(0,o.useContext)(i.ConVarContext),[u,p,m]=(0,c.useStore)(n,(0,l.useShallow)((e=>[e.conVarMap,e.persistMap,e.setPersistEnabled])));return(0,s.useEffect)((()=>{const e=e=>{"Backquote"===e.code&&t((e=>!e))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]),(0,r.jsx)("div",{className:"cheats-menu",style:{fontFamily:"Courier New",display:e?"block":"none",background:"rgba(0, 0, 0, 0.5)",color:"white",position:"absolute",top:0,left:0,overflow:"scroll",width:"100%",height:"100%",cursor:"default",zIndex:1e8},children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Value"}),(0,r.jsx)("th",{children:"Persist"}),(0,r.jsx)("th",{children:"Persist Value"})]})}),(0,r.jsx)("tbody",{children:e&&Object.keys(u).map((e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e}),(0,r.jsx)("td",{children:(0,r.jsx)(d,{name:e})}),(0,r.jsx)("td",{children:(0,r.jsx)("input",{type:"checkbox",defaultChecked:p[e]?.enabled,checked:p[e]?.enabled,onChange:t=>{m(e,!p[e]?.enabled)}})}),(0,r.jsx)("td",{children:(0,r.jsx)(f,{name:e,disabled:!p[e]?.enabled})})]},e)))})]})})};const r=n(74848),o=n(96540),a=n(96540),s=n(96540),i=n(19204);n(60559);const u=n(96540),c=n(42341),l=n(70969);function d({name:e}){const{conVarStore:t}=(0,o.useContext)(i.ConVarContext),[n,a,d]=(0,c.useStore)(t,(0,l.useShallow)((t=>[t.conVarMap[e]?.sync,t.setConVar,t.conVarMap[e]?.value]))),f=(0,u.useRef)(null);return(0,s.useEffect)((()=>{if(n){const e=setInterval((()=>{document.activeElement!==f.current&&(f.current.value=JSON.stringify(n.getter()))}),10);return()=>{clearInterval(e)}}}),[n]),(0,s.useEffect)((()=>{document.activeElement!==f.current&&(n||(f.current.value=JSON.stringify(d)))}),[d,n]),(0,r.jsx)("input",{type:"text",ref:f,onKeyDown:t=>{if("Enter"===t.code)try{n?n.setter(JSON.parse(f.current.value)):a(e,JSON.parse(f.current.value))}catch(t){}document.activeElement===f.current&&t.stopPropagation()}})}function f({name:e,disabled:t}){const{conVarStore:n}=(0,o.useContext)(i.ConVarContext),[a,d]=(0,c.useStore)(n,(0,l.useShallow)((t=>[t.persistMap[e]?.value,t.setPersistValue]))),f=(0,u.useRef)(null);return(0,s.useEffect)((()=>{document.activeElement!==f.current&&(f.current.value=JSON.stringify(a))}),[a]),(0,r.jsx)("input",{type:"text",ref:f,disabled:t,onKeyDown:t=>{if("Enter"===t.code)try{d(e,JSON.parse(f.current.value))}catch(t){}document.activeElement===f.current&&t.stopPropagation()}})}},47059:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileDrop=function({onDropJsonFile:e}){return(0,o.useEffect)((()=>{const t=e=>{var t=e.dataTransfer;t.types&&(t.types.indexOf?-1!==t.types.indexOf("Files"):t.types.contains("Files"))&&e.preventDefault()};document.addEventListener("dragover",t);const n=async t=>{if(t.preventDefault(),t.dataTransfer.items&&1===t.dataTransfer.items.length){const n=t.dataTransfer.items[0];if("file"===n.kind){const t=n.getAsFile();t.name.endsWith(".jsonc")&&e(await t.text())}}else if(t.dataTransfer.files&&1===t.dataTransfer.files.length){const n=t.dataTransfer.files[0];n.name.endsWith(".jsonc")&&e(await n.text())}};return document.addEventListener("drop",n),()=>{document.removeEventListener("dragover",t),document.removeEventListener("drop",n)}}),[e]),(0,r.jsx)(r.Fragment,{})};const r=n(74848),o=n(96540)},49046:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundPanVol=void 0,t.SoundProvider=function({children:e}){const t=(0,i.useRef)({}),n=(0,i.useCallback)(((e,n)=>{if(t.current[e])throw new Error("Sound name needs to be unique.");t.current[e]=n}),[t]),r=(0,i.useCallback)((e=>{t.current[e]=null,delete t.current[e]}),[t]),o=(0,i.useCallback)((e=>{if(!t.current[e])throw new Error("Trying to play a non-existent sound.");t.current[e].loaded?t.current[e].start():t.current[e].autostart=!0}),[t]),a=(0,i.useCallback)((e=>{const t=c(e);if(t){const e=t.catch;if(e)for(const n of e)n!==t&&n.stop()}o(e)}),[]),c=(0,i.useCallback)((e=>t.current[e]),[t]);return(0,s.jsx)(d.Provider,{value:u.getDestination(),children:(0,s.jsx)(l.Provider,{value:{addSound:n,removeSound:r,playSound:o,getSound:c,playMusic:a},children:e})})},t.useSound=function(){return(0,i.useContext)(l)},t.SoundSample=function({src:e,name:t,children:n,playbackRate:r=1,pool:o=1,retrigger:a,loop:c,volume:p=1}){const{addSound:m,removeSound:h}=(0,i.useContext)(l),v=(0,i.useContext)(d),g=(0,i.useContext)(f),[y,b]=(0,i.useState)(null);return(0,i.useEffect)((()=>{if(y)return-1===g.indexOf(y)&&(g.push(y),y.catch=g),()=>{const e=g.indexOf(y);-1!==e&&g.splice(e,1),y.catch=g}}),[y,g]),(0,i.useEffect)((()=>{const n=new u.Player(e);n.sync(),b(n);const r=t;return r&&m(r,n),()=>{n.dispose(),b(null),r&&h(r,n)}}),[e]),(0,i.useEffect)((()=>(y&&v&&y.connect(v),()=>{y&&y.disconnect()})),[y,v]),(0,i.useEffect)((()=>{y&&(y.retrigger=a,y.loop=c,y.playbackRate=r,y.volume.value=p)}),[y,a,c,p]),(0,s.jsx)(s.Fragment,{children:n})},t.SoundSampleCatch=function({name:e,children:t}){const{addSound:n,removeSound:r}=(0,i.useContext)(l),o=(0,i.useMemo)((()=>[]),[]);return(0,i.useEffect)((()=>{const t=e;return t&&n(t,o),()=>{t&&r(t,o)}}),[]),(0,s.jsx)(f.Provider,{value:o,children:t})};const s=n(74848),i=n(96540),u=a(n(79606)),c=n(5636),l=(0,i.createContext)(null),d=(0,i.createContext)(null),f=(0,i.createContext)([]);var p;(0,c.unmute)(u.getContext().rawContext,!0,!1),n.g.toneStarted=!1,document.body.addEventListener("click",(async()=>{n.g.toneStarted||(n.g.toneStarted=!0,await u.start())})),t.SoundPanVol=(p=u.PanVol,function({src:e,name:t,args:n=[],children:r}){const{addSound:o,removeSound:a}=(0,i.useContext)(l),u=(0,i.useContext)(d),[c,f]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const e=new p(...n);f(e);const r=t;return r&&o(r,e),()=>{e.dispose(),f(null),r&&a(r)}}),[e]),(0,i.useEffect)((()=>(c&&u&&c.connect(u),()=>{c&&c.disconnect()})),[c,u]),(0,s.jsx)(d.Provider,{value:c,children:r})})},49616:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutContext=void 0;const r=n(74848),o=n(96540),a=n(96540);t.LayoutContext=(0,a.createContext)();const s=(0,o.forwardRef)((({targetWidth:e=800,targetHeight:n=600,landscapeOnly:a=!1,noresize:s=!1,children:i},u)=>{const[c,l]=(0,o.useState)(window.innerWidth/window.innerHeight<1?"portrait":"landscape"),[d,f]=(0,o.useState)(1),p=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,(()=>({orientation:c,size:d})),[c,d]);const[m,h]=(0,o.useState)({width:window.innerWidth,height:window.innerHeight});return(0,o.useEffect)((()=>{if(!s){const t=()=>{const t=window.innerWidth,r=window.innerHeight;h({width:t,height:r});const o=t/r,s=a?"landscape":o<1?"portrait":"landscape";l(s),"landscape"===s&&f(o{window.removeEventListener("resize",t)}}h({width:e,height:n}),f(1),l("landscape")}),[s]),(0,r.jsx)(t.LayoutContext.Provider,{value:{layoutElement:p,size:d,orientation:c,targetWidth:e,targetHeight:n},children:(0,r.jsx)("div",{className:"layout",ref:p,style:{position:"absolute",left:"landscape"===c?m.width/2-e/2*d:m.width/2-n/2*d,top:"landscape"===c?m.height/2-n/2*d:m.height/2-e/2*d,width:"landscape"===c?e*d:n*d,height:"landscape"===c?n*d:e*d,overflow:"hidden"},children:i})})}));t.default=s},58648:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{e&&e instanceof Function&&Promise.resolve().then((()=>a(n(364)))).then((({getCLS:t,getFID:n,getFCP:r,getLCP:o,getTTFB:a})=>{t(e),n(e),r(e),o(e),a(e)}))}},60559:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(85072),o=n.n(r),a=n(97825),s=n.n(a),i=n(77659),u=n.n(i),c=n(55056),l=n.n(c),d=n(10540),f=n.n(d),p=n(41113),m=n.n(p),h=n(88012),v={};v.styleTagTransform=m(),v.setAttributes=l(),v.insert=u().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f();o()(h.A,v);const g=h.A&&h.A.locals?h.A.locals:void 0},64564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default={IGNORE_SAVE:!1}},70641:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSettingsConsumer=void 0,t.useCheatConsumer=i,t.useCheatState=u,t.useCheatSync=function(e,t,n){const{conVarStore:i}=(0,r.useContext)(s.ConVarContext),u=(0,r.useCallback)(t,[]),c=(0,r.useCallback)(n,[]),[l,d]=(0,o.useStore)(i,(0,a.useShallow)((e=>[e.setSync,e.clearSync])));(0,r.useEffect)((()=>(l(e,u,c),()=>{d(e)})),[e,u,c])},t.useSettingsState=function(e,t){const{conVarStore:n}=(0,r.useContext)(s.ConVarContext),[i,c]=(0,o.useStore)(n,(0,a.useShallow)((e=>[e.setPersistEnabled,e.setPersistValue]))),[l,d]=u(e,t);return(0,r.useEffect)((()=>{i(e,!0)}),[]),(0,r.useEffect)((()=>{c(e,l)}),[l]),[l,d]};const r=n(96540),o=n(42341),a=n(70969),s=n(19204);function i(e){const{conVarStore:t}=(0,r.useContext)(s.ConVarContext),n=(0,o.useStore)(t,(e=>e.setConVar));return[(0,o.useStore)(t,(0,a.useShallow)((t=>t.conVarMap[e]?.value))),(0,r.useCallback)((t=>{n(e,t)}),[])]}function u(e,t){const{conVarStore:n}=(0,r.useContext)(s.ConVarContext),[u,c,l,d,f,p]=(0,o.useStore)(n,(0,a.useShallow)((t=>[t.loadedPersist,t.setLoadedPersist,t.persistMap&&t.persistMap[e]?.enabled,t.persistMap&&t.persistMap[e]?.value,t.setConVar,t.clearSync])));return u[e]||(c(e),f(e,l?d:t)),(0,r.useEffect)((()=>{p()}),[]),i(e)}t.useSettingsConsumer=i},73719:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AchievementString=void 0,t.achieve=function(e){window?.electronAPI?.steamworks?.achievement?.activate&&window?.electronAPI?.steamworks?.achievement?.activate(e)},t.unachieve=function(e){window?.electronAPI?.steamworks?.achievement?.clear&&window?.electronAPI?.steamworks?.achievement?.clear(e)},function(e){e.ACHIEVEMENT_INVALID="ACHIEVEMENT_INVALID"}(n||(t.AchievementString=n={}))},74442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Timeline2=void 0;t.Timeline2=class{timeline=[];canRetrigger=!1;onStart=()=>{};onStop=()=>{};frame=0;frameTimeElapsedMs=0;playing=!1;constructor(){}isPlaying(){return this.playing}play(){this.playing&&!this.canRetrigger||(this.playing=!0,this.frame=0,this.frameTimeElapsedMs=0,this.timeline[0]&&this.timeline[0].onStart&&this.timeline[0].onStart(),this.onStart&&this.onStart())}stop(){this.playing=!1,this.onStop&&this.onStop()}process(e){if(this.playing){for(;e>0&&this.frame=t.duration?(this.timeline[this.frame]?.onEnd&&this.timeline[this.frame]?.onEnd(),e=this.frameTimeElapsedMs-t.duration,this.frameTimeElapsedMs=0,this.frame++,this.timeline[this.frame]?.onStart&&this.timeline[this.frame]?.onStart()):e=0}this.frame>=this.timeline.length&&this.stop()}}}},80985:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SaveContext=void 0,t.loadStorage=s,t.saveStorage=i,t.useSaveState=function(e,t,n=e=>e,r=e=>e){a.default.IGNORE_SAVE&&(u[e]=t);const[s,i]=(0,o.useState)(void 0!==u[e]?n(u[e]):t);return(0,o.useEffect)((()=>{u[e]=r(s),a.default.IGNORE_SAVE||c()}),[e,s,r]),[s,i]},t.resetSave=function(){u={},i("save",u),window.location.reload()},t.save=c;const o=n(96540),a=r(n(64564));function s(e){try{return"undefined"!=typeof window&&window.electronAPI?JSON.parse(window.electronAPI.loadKey(e))||{}:("undefined"!=typeof localStorage?JSON.parse(localStorage.getItem(e)):null)||{}}catch(e){return{}}}function i(e,t){window.electronAPI?window.electronAPI?.saveKey(e,JSON.stringify(t)):localStorage.setItem(e,JSON.stringify(t))}let u=s("save");function c(){i("save",u)}t.SaveContext=(0,o.createContext)()},81218:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.l10n=t.FormattableString=void 0;const o=n(74848),a=n(96540),s=r(n(37007)),i=r(n(95512)),u=n(96540),c=n(96540);class l extends String{template;constructor(e){super(e),this.template=e}format=(...e)=>this.template.replace(/{(\d+)}/g,((t,n)=>void 0!==e[n]?e[n]:t));toString=()=>this.template}t.FormattableString=l;const d=new s.default;let f={},p={};const m={get:(e,t)=>f[t]||p[t]||new l("ERROR")};let h=new Proxy({},m);var v;!function(e){async function t(t){let n=JSON.parse((0,i.default)(t));Object.keys(n).forEach((e=>{"string"==typeof n[e]?n[e]=new l(n[e]):Array.isArray(n[e])&&(n[e]=n[e].map((e=>"string"==typeof e?new l(e):e)))})),p=n,h=new Proxy({},m),e.language=h,d.emit("languageFileLoaded",h)}async function n(e){let t;try{t=JSON.parse((0,i.default)(e))}catch(e){return}Object.keys(t).forEach((e=>{"string"==typeof t[e]?t[e]=new l(t[e]):Array.isArray(t[e])&&(t[e]=t[e].map((e=>"string"==typeof e?new l(e):e)))})),f=t,h=new Proxy({},m),d.emit("languageFileLoaded",h)}e.language=h,e.loadFallbackLanguageFile=async function(e){try{t(await(await fetch(e)).text())}catch(t){throw Error(`Error parsing language file: ${e}`)}},e.loadFallbackLanguageText=t,e.loadLanguageFromUrl=async function(e){let t;try{t=await fetch(e),n(await t.text())}catch(e){}},e.loadLanguageText=n,e.L10nProvider=function({children:t,languages:n,languageText:r,currentLanguage:s,defaultLanguage:i}){const[u,l]=(0,c.useState)(h),[f,p]=(0,c.useState)(!1);return(0,a.useEffect)((()=>{const e=e=>{l(e)};return d.on("languageFileLoaded",e),()=>{d.off("languageFileLoaded",e)}}),[]),(0,a.useEffect)((()=>{(async()=>{e.loadFallbackLanguageText(await(await fetch(n[i])).text()),p(!0)})()}),[n,i]),(0,a.useEffect)((()=>{r&&""!==r?e.loadLanguageText(r):e.loadLanguageFromUrl(n[s])}),[n,r,s]),(0,o.jsx)(e.Context.Provider,{value:{language:u},children:t})},e.Context=(0,u.createContext)({}),e.Text=function({name:t,format:n}){const{language:r}=(0,a.useContext)(e.Context);return(0,o.jsx)(o.Fragment,{children:r[t].format(n||[])})}}(v||(t.l10n=v={}))},84344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useEscapeMenu=function(){return(0,c.useContext)(l)},t.EscapeMenu=function({menu:e,children:t}){const[n,a]=(0,s.useState)(!1);return(0,o.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(a((e=>!e)),e.preventDefault())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}})),(0,o.useEffect)((()=>{(0,i.setPaused)(n)}),[n]),(0,r.jsxs)(l.Provider,{value:{escapeMenuVisible:n,setEscapeMenuVisible:a},children:[n&&e(),t]})};const r=n(74848),o=n(96540),a=n(98899),s=n(96540),i=n(91722),u=n(96540),c=n(96540);a.STANDALONE_APP&&navigator&&navigator.keyboard&&navigator.keyboard.lock&&navigator.keyboard.lock(["Escape"]);const l=(0,u.createContext)({})},88012:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(31601),o=n.n(r),a=n(76314),s=n.n(a)()(o());s.push([e.id,'.cheats-menu table{margin:20px}.cheats-menu table td,.cheats-menu table th{text-align:left;padding:5px}.cheats-menu table,.cheats-menu th,.cheats-menu td{border:1px dashed #fff;border-collapse:collapse}.cheats-menu input[type=text]{font-family:"Courier New"}',""]);const i=s},91722:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sleepPausible=function(e){return new Promise(((t,n)=>{f(t,e)}))},t.setTimeoutPausible=f,t.clearTimeoutPausible=function(e){e()},t.setIntervalPausible=function(e,t,n=!0){let r;return function o(){r=f((()=>{e(),o()}),t,n)}(),()=>{r()}},t.pausibleNow=function(){return d?p:p+(performance.now()-m)},t.setPaused=v,t.useFramePausibleCanvaslessAsync=function(e){(0,c.useEffect)((()=>{let t,n=!1,r=performance.now();const o=async()=>{const a=performance.now(),s=a-r;r=a,n||(d||await e(s/1e3),n||(t=requestAnimationFrame(o)))};return o(),()=>{n=!0,cancelAnimationFrame(t)}}),[e])},t.useFramePausibleCanvasless=function(e){(0,c.useEffect)((()=>{let t,n=performance.now();const r=()=>{const o=performance.now(),a=o-n;n=o,d||e(a/1e3),t=requestAnimationFrame(r)};return r(),()=>{cancelAnimationFrame(t)}}),[e])},t.useFrameCanvasless=function(e){(0,c.useEffect)((()=>{let t,n=performance.now();const r=()=>{const o=performance.now(),a=o-n;n=o,e(a),t=requestAnimationFrame(r)};return r(),()=>{cancelAnimationFrame(t)}}),[e])},t.useFramePausible=function(e,t){let n=(0,c.useRef)(0),r=(0,c.useRef)(0);(0,u.useFrame)(((t,o)=>{n.current++,r.current+=o,n.current%1==0&&(d||(e(t,r.current),r.current=0))}),t)};const i=s(n(36430)),u=n(73560),c=n(96540),l=a(n(79606));let d=!1;function f(e,t,n=!0){t=t||0;let r=performance.now(),o=0,a=0;return a=requestAnimationFrame((function s(){const i=performance.now();d&&n||(o+=i-r),r=i,o>=t?e():a=requestAnimationFrame(s)})),function(){cancelAnimationFrame(a)}}let p=0,m=performance.now();let h=0;function v(e){i.default.emit("pause",e),e?(p+=performance.now()-m,h=l.now(),l.getTransport().pause(h)):(m=performance.now(),l.getTransport().start()),d=e}v(d)},94869:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCursorProvider=function({children:e}){const[t,n]=(0,a.useState)(0),[r,s]=(0,a.useState)(0);return(0,o.jsx)(d.Provider,{value:{busy:t,setBusy:n,hidden:r,setHidden:s},children:e})},t.useCustomCursor=f,t.CustomCursor=function({cursorMap:e,children:t}){const n=(0,a.useRef)(),r=(0,a.useMemo)((()=>l.default.range(0,5)),[]),d=(0,a.useRef)([]),m=(0,a.useRef)(0),h=(0,a.useRef)(0),v=(0,a.useRef)({x:0,y:0}),g=(0,a.useRef)({x:0,y:0}),{busy:y,hidden:b}=f(),w=(0,a.useRef)(!1);return w.current=y,(0,a.useEffect)((()=>{if(!e)return;let t=h.current;if(y&&(t="busy"),!e[t])return;const r=d.current[m.current];r.style.top=-(e[t].offsetY||0)+"px",r.style.left=-(e[t].offsetX||0)+"px",r.style.backgroundImage=b?"":`url(${(0,c.default)(e[t].img)})`,n.current&&(n.current.style.cursor=`${r.style.backgroundImage} ${e[t].offsetX||0} ${e[t].offsetY||0}, auto`)}),[y,b,e]),(0,a.useEffect)((()=>{let t;const r=r=>{const o=d.current[m.current];o.position={x:r.clientX+window.scrollX,y:r.clientY+window.scrollY};let a="default",s=p(r.target);if(s&&("INPUT"!==s.tagName||"password"!==s.type&&"text"!==s.type||(a="beam"),s.classList.contains("cursor-pointer")&&(a="pointer"),s.classList.contains("cursor-move")&&(a="move"),s.classList.contains("cursor-none")))return a="none",void(o.style.backgroundImage="");w.current&&(a="busy"),h.current=a;let i=!1;u.isMobile?t&&(i=!0,g.current.x=r.clientX,g.current.y=r.clientY):window.innerWidth-o.position.x<40||window.innerHeight-o.position.y<40?(i=!0,n.current&&(n.current.style.cursor="none"),o.style.display="block",o.style.opacity=1,o.style.transform=`translate(${r.clientX}px, ${r.clientY}px) scale(100%, 100%)`):(n.current&&(n.current.style.cursor=`url(${(0,c.default)(e[a].img)}) ${e[a].offsetX||0} ${e[a].offsetY||0}, auto`),o.style.display="none"),i&&(o.style.top=-(e[a].offsetY||0)+"px",o.style.left=-(e[a].offsetX||0)+"px",o.style.backgroundImage=`url(${(0,c.default)(e[a].img)})`)};document.addEventListener("pointermove",r);const o=e=>{u.isMobile&&(g.current={x:e.clientX+window.scrollX,y:e.clientY+window.scrollY}),t=!0};document.addEventListener("pointerdown",o);return document.addEventListener("pointerup",(e=>{t=!1})),()=>{document.removeEventListener("pointermove",r),document.removeEventListener("pointerdown",o)}})),(0,i.useFrameCanvasless)((t=>{if(!u.isMobile)return;const n=d.current[m.current],r=new s.Vector2(v.current.x,v.current.y),o=new s.Vector2(g.current.x,g.current.y),a=2*t;if(r.distanceTo(o)(0,o.jsx)("div",{className:"custom-cursor-image",style:{zIndex:2,position:"absolute",top:0,left:0,width:200,height:200,textAlign:"left",pointerEvents:"none",userSelect:"none",backgroundRepeat:"no-repeat"},ref:t=>d.current[e]=t})))]})};const o=n(74848),a=n(96540),s=n(27186),i=n(91722);n(33687);const u=n(10159),c=r(n(99240)),l=r(n(2543)),d=(0,a.createContext)({});function f(){return(0,a.useContext)(d)}const p=l.default.throttle((e=>e.closest(".cursor-pointer, .cursor-move, .cursor-none, input[type='text'], input[type='password']")),20)},96886:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowManager=t.WindowManagerContext=void 0,t.default=function(e){const{zOrder:n,setZOrder:s,visibleWindows:i,setVisibleWindows:u}=(0,o.useContext)(t.WindowManagerContext),[c,l]=(0,o.useState)({x:0,y:0}),[d,f]=(0,o.useState)(!1),p=(0,o.useRef)(null),m=(0,o.useRef)(null),h=(0,o.useRef)(!1),v=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=v.current;if(e){const t=e=>{e.preventDefault()};return e.addEventListener("touchstart",t),()=>{e.removeEventListener("touchstart",t)}}}),[]);const g=i.includes(e.name),[y,b]=(0,o.useState)(!1),w=e.onVisibleChange;(0,o.useLayoutEffect)((()=>{g!==y&&(w&&w(g),g&&!h.current&&(l(e.initialPosition),h.current=!0)),b(g)}),[e.initialPosition,y,w,b,g]);const x=(0,o.useRef)({x:0,y:0}),S=(0,o.useRef)({x:0,y:0}),C=(0,o.useContext)(a.LayoutContext);p.current=e=>{if(d){const t={x:e.clientX||e.pageX||e.touches&&e.touches[0]?.pageX||e.touches&&e.touches[0]?.clientX,y:e.clientY||e.pageY||e.touches&&e.touches[0]?.pageY||e.touches&&e.touches[0]?.clientY};if(void 0===t.x||void 0===t.y)return;l({x:Math.max(-300,Math.min(x.current.x+(t.x-S.current.x)/C.size,700)),y:Math.max(0,Math.min(x.current.y+(t.y-S.current.y)/C.size,500))})}},m.current=e=>{m&&f(!1)},(0,o.useEffect)((()=>{s((t=>t.includes(e.name)?t:[...t,e.name])),l(e.initialPosition);const t=e=>{p.current(e)};document.body.addEventListener("mousemove",t),document.body.addEventListener("touchmove",t);const n=e=>{m.current(e)};return document.body.addEventListener("mouseup",n),document.body.addEventListener("touchend",n),()=>{document.body.removeEventListener("mousemove",t),document.body.removeEventListener("mouseup",n),document.body.removeEventListener("touchmove",t),document.body.removeEventListener("touchend",n)}}),[]);const E=(0,o.useContext)(a.LayoutContext).size;return(0,r.jsxs)("div",{className:["window",g?"pop-up":"",e.fullscreen?"fullscreen":""].join(" "),style:Object.assign({position:"absolute",display:"inline-block",visibility:i.includes(e.name)?"visible":"hidden",top:c.y*E,left:c.x*E,background:"#ccc",zIndex:n.indexOf(e.name),textAlign:"left",border:2*E+"px solid #245DDA",borderRadius:12*E,boxShadow:`${5*E}px ${5*E}px ${10*E}px -${5*E}px #000000`,transform:"translate3d(0,0,0)",overflow:"hidden"},e.style||{}),onMouseDown:t=>{n[n.length-1]!==e.name&&s((t=>[...t.filter((t=>t!==e.name)),e.name]))},onTouchStart:t=>{n[n.length-1]!==e.name&&s((t=>[...t.filter((t=>t!==e.name)),e.name]))},children:[(0,r.jsxs)("div",{className:"cursor-move",style:e.topBarStyle||{padding:10*E+"px",background:"linear-gradient(90deg, #245DDA 0%, #4F9FDF 100%)",color:"white",userSelect:"none",fontSize:14*E},ref:v,onMouseDown:t=>{f(!0),S.current={x:t.clientX||t.pageX,y:t.clientY||t.pageY},x.current={x:c.x,y:c.y},n[n.length-1]!==e.name&&s((t=>[...t.filter((t=>t!==e.name)),e.name])),t.preventDefault()},onTouchStart:t=>{f(!0);var n=t.touches[0]||t.changedTouches[0];S.current={x:n.pageX,y:n.pageY},x.current={x:c.x,y:c.y},s((t=>[...t.filter((t=>t!==e.name)),e.name]))},children:[e.title,(0,r.jsx)("div",{className:"cursor-pointer close-button",style:e.closeButtonStyle||{position:"absolute",top:3*E,right:3*E,padding:`${5*E}px ${10*E}px`,fontWeight:"bold",borderRadius:6*E,border:2*E+"px solid white"},onMouseDown:e=>{e.stopPropagation()},onTouchStart:t=>{e.disableCloseButton||u((t=>t.filter((t=>t!==e.name))))},onClick:t=>{e.disableCloseButton||u((t=>t.filter((t=>t!==e.name))))},children:"x"})]}),(0,r.jsx)("div",{style:{height:"100%",pointerEvents:d?"none":"auto"},children:e.children})]})};const r=n(74848),o=n(96540),a=n(49616);n(80985);t.WindowManagerContext=(0,o.createContext)(),t.WindowManager=(0,o.forwardRef)((({children:e,visibleWindows:n,setVisibleWindows:a},s)=>{const[i,u]=(0,o.useState)([]),c=e=>{a((t=>t.includes(e)?t:[...t,e]))},l=e=>{a((t=>t.filter((t=>t!==e))))},d=e=>{u((t=>[...t.filter((t=>t!==e)),e]))};return(0,o.useImperativeHandle)(s,(()=>({makeWindowVisible:c,makeWindowInvisible:l,bringToTop:d}))),(0,r.jsx)(t.WindowManagerContext.Provider,{value:{zOrder:i,setZOrder:u,visibleWindows:n,setVisibleWindows:a,makeWindowVisible:c,makeWindowInvisible:l,bringToTop:d},children:e})}))},97172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.easeOutBounce=function(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},t.easeOutBack=function(e){const t=1.70158;return 1+(t+1)*Math.pow(e-1,3)+t*Math.pow(e-1,2)},t.easeInOutSine=function(e){return-(Math.cos(Math.PI*e)-1)/2},t.easeOutQuart=function(e){return 1-Math.pow(1-e,4)},t.easeInOutCubic=function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},t.easeOutCubic=function(e){return 1-Math.pow(1-e,3)},t.easeInOutExpo=function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},t.easeInOutQuad=function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},t.easeInQuad=function(e){return e*e},t.easeInQuint=function(e){return e*e*e*e*e}},98899:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.STANDALONE_APP=void 0,t.STANDALONE_APP=!1},99240:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return String(e).replace(/['"\(\)]/g,"\\$&")}}}]);
\ No newline at end of file
diff --git a/filestorage/gd/qwook-last-seen-online/three.js b/filestorage/gd/qwook-last-seen-online/three.js
new file mode 100644
index 0000000000000000000000000000000000000000..1a12161d6e91a21d8e42cf5f629ef3a68d78a726
--- /dev/null
+++ b/filestorage/gd/qwook-last-seen-online/three.js
@@ -0,0 +1,2 @@
+/*! For license information please see three.js.LICENSE.txt */
+"use strict";(self.webpackChunksketches=self.webpackChunksketches||[]).push([[233],{27186:(t,e)=>{const i="162",n=1,r=2,s=3,a=0,o=1,l=2,c=100,h=101,u=102,d=200,p=201,m=202,f=203,g=204,_=205,v=206,x=207,y=208,M=209,S=210,b=211,T=212,w=213,A=214,E=0,C=1,R=2,P=0,L=1,I=2,U=3,N=4,D=5,O=6,F=7,B="attached",z="detached",V=300,k=301,G=302,H=303,W=304,X=306,j=1e3,q=1001,Y=1002,Z=1003,J=1004,K=1005,$=1006,Q=1007,tt=1008,et=1009,it=1012,nt=1013,rt=1014,st=1015,at=1016,ot=1017,lt=1018,ct=1020,ht=1023,ut=1026,dt=1027,pt=1028,mt=1029,ft=1031,gt=1033,_t=33776,vt=33777,xt=33778,yt=33779,Mt=35840,St=35841,bt=35842,Tt=35843,wt=36196,At=37492,Et=37496,Ct=37808,Rt=37809,Pt=37810,Lt=37811,It=37812,Ut=37813,Nt=37814,Dt=37815,Ot=37816,Ft=37817,Bt=37818,zt=37819,Vt=37820,kt=37821,Gt=36492,Ht=36494,Wt=36495,Xt=36284,jt=36285,qt=36286,Yt=2300,Zt=2301,Jt=2302,Kt=2400,$t=2401,Qt=2402,te=2500,ee=2501,ie="",ne="srgb",re="srgb-linear",se="display-p3",ae="display-p3-linear",oe="linear",le="srgb",ce="rec709",he="p3",ue=7680,de=512,pe=513,me=514,fe=515,ge=516,_e=517,ve=518,xe=519,ye=35044,Me="300 es",Se=1035,be=2e3,Te=2001;class we{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const i=this._listeners[t];if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const i=e.slice(0);for(let e=0,n=i.length;e>8&255]+Ae[t>>16&255]+Ae[t>>24&255]+"-"+Ae[255&e]+Ae[e>>8&255]+"-"+Ae[e>>16&15|64]+Ae[e>>24&255]+"-"+Ae[63&i|128]+Ae[i>>8&255]+"-"+Ae[i>>16&255]+Ae[i>>24&255]+Ae[255&n]+Ae[n>>8&255]+Ae[n>>16&255]+Ae[n>>24&255]).toLowerCase()}function Le(t,e,i){return Math.max(e,Math.min(i,t))}function Ie(t,e){return(t%e+e)%e}function Ue(t,e,i){return(1-i)*t+i*e}function Ne(t){return!(t&t-1)&&0!==t}function De(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Oe(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Fe(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}const Be={DEG2RAD:Ce,RAD2DEG:Re,generateUUID:Pe,clamp:Le,euclideanModulo:Ie,mapLinear:function(t,e,i,n,r){return n+(t-e)*(r-n)/(i-e)},inverseLerp:function(t,e,i){return t!==e?(i-t)/(e-t):0},lerp:Ue,damp:function(t,e,i,n){return Ue(t,e,1-Math.exp(-i*n))},pingpong:function(t,e=1){return e-Math.abs(Ie(t,2*e)-e)},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(Ee=t);let e=Ee+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*Ce},radToDeg:function(t){return t*Re},isPowerOfTwo:Ne,ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:De,setQuaternionFromProperEuler:function(t,e,i,n,r){const s=Math.cos,a=Math.sin,o=s(i/2),l=a(i/2),c=s((e+n)/2),h=a((e+n)/2),u=s((e-n)/2),d=a((e-n)/2),p=s((n-e)/2),m=a((n-e)/2);switch(r){case"XYX":t.set(o*h,l*u,l*d,o*c);break;case"YZY":t.set(l*d,o*h,l*u,o*c);break;case"ZXZ":t.set(l*u,l*d,o*h,o*c);break;case"XZX":t.set(o*h,l*m,l*p,o*c);break;case"YXY":t.set(l*p,o*h,l*m,o*c);break;case"ZYZ":t.set(l*m,l*p,o*h,o*c)}},normalize:Fe,denormalize:Oe};class ze{constructor(t=0,e=0){ze.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,i=this.y,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}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(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.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(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(Le(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const i=Math.cos(e),n=Math.sin(e),r=this.x-t.x,s=this.y-t.y;return this.x=r*i-s*n+t.x,this.y=r*n+s*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ve{constructor(t,e,i,n,r,s,a,o,l){Ve.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,e,i,n,r,s,a,o,l)}set(t,e,i,n,r,s,a,o,l){const c=this.elements;return c[0]=t,c[1]=n,c[2]=a,c[3]=e,c[4]=r,c[5]=o,c[6]=i,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}extractBasis(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,s=i[0],a=i[3],o=i[6],l=i[1],c=i[4],h=i[7],u=i[2],d=i[5],p=i[8],m=n[0],f=n[3],g=n[6],_=n[1],v=n[4],x=n[7],y=n[2],M=n[5],S=n[8];return r[0]=s*m+a*_+o*y,r[3]=s*f+a*v+o*M,r[6]=s*g+a*x+o*S,r[1]=l*m+c*_+h*y,r[4]=l*f+c*v+h*M,r[7]=l*g+c*x+h*S,r[2]=u*m+d*_+p*y,r[5]=u*f+d*v+p*M,r[8]=u*g+d*x+p*S,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-i*r*c+i*a*o+n*r*l-n*s*o}invert(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+i*u+n*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return t[0]=h*m,t[1]=(n*l-c*i)*m,t[2]=(a*i-n*s)*m,t[3]=u*m,t[4]=(c*e-n*o)*m,t[5]=(n*r-a*e)*m,t[6]=d*m,t[7]=(i*o-l*e)*m,t[8]=(s*e-i*r)*m,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,i,n,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(i*o,i*l,-i*(o*s+l*a)+s+t,-n*l,n*o,-n*(-l*s+o*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(ke.makeScale(t,e)),this}rotate(t){return this.premultiply(ke.makeRotation(-t)),this}translate(t,e){return this.premultiply(ke.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,i,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<9;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e=0){for(let i=0;i<9;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}const ke=new Ve;function Ge(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}const He={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function We(t,e){return new He[t](e)}function Xe(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function je(){const t=Xe("canvas");return t.style.display="block",t}const qe={};function Ye(t){t in qe||(qe[t]=!0)}const Ze=(new Ve).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Je=(new Ve).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Ke={[re]:{transfer:oe,primaries:ce,toReference:t=>t,fromReference:t=>t},[ne]:{transfer:le,primaries:ce,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[ae]:{transfer:oe,primaries:he,toReference:t=>t.applyMatrix3(Je),fromReference:t=>t.applyMatrix3(Ze)},[se]:{transfer:le,primaries:he,toReference:t=>t.convertSRGBToLinear().applyMatrix3(Je),fromReference:t=>t.applyMatrix3(Ze).convertLinearToSRGB()}},$e=new Set([re,ae]),Qe={enabled:!0,_workingColorSpace:re,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!$e.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,i){if(!1===this.enabled||e===i||!e||!i)return t;const n=Ke[e].toReference;return(0,Ke[i].fromReference)(n(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Ke[t].primaries},getTransfer:function(t){return t===ie?oe:Ke[t].transfer}};function ti(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function ei(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}let ii;class ni{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===ii&&(ii=Xe("canvas")),ii.width=t.width,ii.height=t.height;const i=ii.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=ii}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=Xe("canvas");e.width=t.width,e.height=t.height;const i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);const n=i.getImageData(0,0,t.width,t.height),r=n.data;for(let t=0;t0&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==V)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case j:t.x=t.x-Math.floor(t.x);break;case q:t.x=t.x<0?0:1;break;case Y:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case j:t.y=t.y-Math.floor(t.y);break;case q:t.y=t.y<0?0:1;break;case Y:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}}li.DEFAULT_IMAGE=null,li.DEFAULT_MAPPING=V,li.DEFAULT_ANISOTROPY=1;class ci{constructor(t=0,e=0,i=0,n=1){ci.prototype.isVector4=!0,this.x=t,this.y=e,this.z=i,this.w=n}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=this.w,s=t.elements;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12]*r,this.y=s[1]*e+s[5]*i+s[9]*n+s[13]*r,this.z=s[2]*e+s[6]*i+s[10]*n+s[14]*r,this.w=s[3]*e+s[7]*i+s[11]*n+s[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,i,n,r;const s=.01,a=.1,o=t.elements,l=o[0],c=o[4],h=o[8],u=o[1],d=o[5],p=o[9],m=o[2],f=o[6],g=o[10];if(Math.abs(c-u)o&&t>_?t_?o=0?1:-1,n=1-e*e;if(n>Number.EPSILON){const r=Math.sqrt(n),s=Math.atan2(r,e*i);t=Math.sin(t*s)/r,a=Math.sin(a*s)/r}const r=a*i;if(o=o*t+u*r,l=l*t+d*r,c=c*t+p*r,h=h*t+m*r,t===1-a){const t=1/Math.sqrt(o*o+l*l+c*c+h*h);o*=t,l*=t,c*=t,h*=t}}t[e]=o,t[e+1]=l,t[e+2]=c,t[e+3]=h}static multiplyQuaternionsFlat(t,e,i,n,r,s){const a=i[n],o=i[n+1],l=i[n+2],c=i[n+3],h=r[s],u=r[s+1],d=r[s+2],p=r[s+3];return t[e]=a*p+c*h+o*d-l*u,t[e+1]=o*p+c*u+l*h-a*d,t[e+2]=l*p+c*d+a*u-o*h,t[e+3]=c*p-a*h-o*u-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const i=t._x,n=t._y,r=t._z,s=t._order,a=Math.cos,o=Math.sin,l=a(i/2),c=a(n/2),h=a(r/2),u=o(i/2),d=o(n/2),p=o(r/2);switch(s){case"XYZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"YXZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"ZXY":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"ZYX":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"YZX":this._x=u*c*h+l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h-u*d*p;break;case"XZY":this._x=u*c*h-l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h+u*d*p}return!0===e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const i=e/2,n=Math.sin(i);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],n=e[4],r=e[8],s=e[1],a=e[5],o=e[9],l=e[2],c=e[6],h=e[10],u=i+a+h;if(u>0){const t=.5/Math.sqrt(u+1);this._w=.25/t,this._x=(c-o)*t,this._y=(r-l)*t,this._z=(s-n)*t}else if(i>a&&i>h){const t=2*Math.sqrt(1+i-a-h);this._w=(c-o)/t,this._x=.25*t,this._y=(n+s)/t,this._z=(r+l)/t}else if(a>h){const t=2*Math.sqrt(1+a-i-h);this._w=(r-l)/t,this._x=(n+s)/t,this._y=.25*t,this._z=(o+c)/t}else{const t=2*Math.sqrt(1+h-i-a);this._w=(s-n)/t,this._x=(r+l)/t,this._y=(o+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return iMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Le(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(0===i)return this;const n=Math.min(1,e/i);return this.slerp(t,n),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(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._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 t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t._x,n=t._y,r=t._z,s=t._w,a=e._x,o=e._y,l=e._z,c=e._w;return this._x=i*c+s*a+n*l-r*o,this._y=n*c+s*o+r*a-i*l,this._z=r*c+s*l+i*o-n*a,this._w=s*c-i*a-n*o-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const i=this._x,n=this._y,r=this._z,s=this._w;let a=s*t._w+i*t._x+n*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=i,this._y=n,this._z=r,this;const o=1-a*a;if(o<=Number.EPSILON){const t=1-e;return this._w=t*s+e*this._w,this._x=t*i+e*this._x,this._y=t*n+e*this._y,this._z=t*r+e*this._z,this.normalize(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),h=Math.sin((1-e)*c)/l,u=Math.sin(e*c)/l;return this._w=s*h+this._w*u,this._x=i*h+this._x*u,this._y=n*h+this._y*u,this._z=r*h+this._z*u,this._onChangeCallback(),this}slerpQuaternions(t,e,i){return this.copy(t).slerp(e,i)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),r=Math.sqrt(i);return this.set(n*Math.sin(t),n*Math.cos(t),r*Math.sin(e),r*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class fi{constructor(t=0,e=0,i=0){fi.prototype.isVector3=!0,this.x=t,this.y=e,this.z=i}set(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(_i.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(_i.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[3]*i+r[6]*n,this.y=r[1]*e+r[4]*i+r[7]*n,this.z=r[2]*e+r[5]*i+r[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=t.elements,s=1/(r[3]*e+r[7]*i+r[11]*n+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*n+r[12])*s,this.y=(r[1]*e+r[5]*i+r[9]*n+r[13])*s,this.z=(r[2]*e+r[6]*i+r[10]*n+r[14])*s,this}applyQuaternion(t){const e=this.x,i=this.y,n=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=2*(s*n-a*i),c=2*(a*e-r*n),h=2*(r*i-s*e);return this.x=e+o*l+s*h-a*c,this.y=i+o*c+a*l-r*h,this.z=n+o*h+r*c-s*l,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[4]*i+r[8]*n,this.y=r[1]*e+r[5]*i+r[9]*n,this.z=r[2]*e+r[6]*i+r[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}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(t){return this.x*t.x+this.y*t.y+this.z*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,n=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=n*o-r*a,this.y=r*s-i*o,this.z=i*a-n*s,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return gi.copy(this).projectOnVector(t),this.sub(gi)}reflect(t){return this.sub(gi.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(Le(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,n=this.z-t.z;return e*e+i*i+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=2*Math.random()-1,i=Math.sqrt(1-e*e);return this.x=i*Math.cos(t),this.y=e,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const gi=new fi,_i=new mi;class vi{constructor(t=new fi(1/0,1/0,1/0),e=new fi(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,i=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}intersectsSphere(t){return this.clampPoint(t.center,yi),yi.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Ci),Ri.subVectors(this.max,Ci),Si.subVectors(t.a,Ci),bi.subVectors(t.b,Ci),Ti.subVectors(t.c,Ci),wi.subVectors(bi,Si),Ai.subVectors(Ti,bi),Ei.subVectors(Si,Ti);let e=[0,-wi.z,wi.y,0,-Ai.z,Ai.y,0,-Ei.z,Ei.y,wi.z,0,-wi.x,Ai.z,0,-Ai.x,Ei.z,0,-Ei.x,-wi.y,wi.x,0,-Ai.y,Ai.x,0,-Ei.y,Ei.x,0];return!!Ii(e,Si,bi,Ti,Ri)&&(e=[1,0,0,0,1,0,0,0,1],!!Ii(e,Si,bi,Ti,Ri)&&(Pi.crossVectors(wi,Ai),e=[Pi.x,Pi.y,Pi.z],Ii(e,Si,bi,Ti,Ri)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,yi).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(yi).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(xi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),xi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),xi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),xi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),xi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),xi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),xi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),xi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(xi)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const xi=[new fi,new fi,new fi,new fi,new fi,new fi,new fi,new fi],yi=new fi,Mi=new vi,Si=new fi,bi=new fi,Ti=new fi,wi=new fi,Ai=new fi,Ei=new fi,Ci=new fi,Ri=new fi,Pi=new fi,Li=new fi;function Ii(t,e,i,n,r){for(let s=0,a=t.length-3;s<=a;s+=3){Li.fromArray(t,s);const a=r.x*Math.abs(Li.x)+r.y*Math.abs(Li.y)+r.z*Math.abs(Li.z),o=e.dot(Li),l=i.dot(Li),c=n.dot(Li);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const Ui=new vi,Ni=new fi,Di=new fi;class Oi{constructor(t=new fi,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const i=this.center;void 0!==e?i.copy(e):Ui.setFromPoints(t).getCenter(i);let n=0;for(let e=0,r=t.length;ethis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Ni.subVectors(t,this.center);const e=Ni.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),i=.5*(t-this.radius);this.center.addScaledVector(Ni,i/t),this.radius+=i}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(Di.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Ni.copy(t.center).add(Di)),this.expandByPoint(Ni.copy(t.center).sub(Di))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Fi=new fi,Bi=new fi,zi=new fi,Vi=new fi,ki=new fi,Gi=new fi,Hi=new fi;class Wi{constructor(t=new fi,e=new fi(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Fi)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Fi.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Fi.copy(this.origin).addScaledVector(this.direction,e),Fi.distanceToSquared(t))}distanceSqToSegment(t,e,i,n){Bi.copy(t).add(e).multiplyScalar(.5),zi.copy(e).sub(t).normalize(),Vi.copy(this.origin).sub(Bi);const r=.5*t.distanceTo(e),s=-this.direction.dot(zi),a=Vi.dot(this.direction),o=-Vi.dot(zi),l=Vi.lengthSq(),c=Math.abs(1-s*s);let h,u,d,p;if(c>0)if(h=s*o-a,u=s*a-o,p=r*c,h>=0)if(u>=-p)if(u<=p){const t=1/c;h*=t,u*=t,d=h*(h+s*u+2*a)+u*(s*h+u+2*o)+l}else u=r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u=-r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u<=-p?(h=Math.max(0,-(-s*r+a)),u=h>0?-r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l):u<=p?(h=0,u=Math.min(Math.max(-r,-o),r),d=u*(u+2*o)+l):(h=Math.max(0,-(s*r+a)),u=h>0?r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l);else u=s>0?-r:r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;return i&&i.copy(this.origin).addScaledVector(this.direction,h),n&&n.copy(Bi).addScaledVector(zi,u),d}intersectSphere(t,e){Fi.subVectors(t.center,this.origin);const i=Fi.dot(this.direction),n=Fi.dot(Fi)-i*i,r=t.radius*t.radius;if(n>r)return null;const s=Math.sqrt(r-n),a=i-s,o=i+s;return o<0?null:a<0?this.at(o,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}intersectPlane(t,e){const i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let i,n,r,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,u=this.origin;return l>=0?(i=(t.min.x-u.x)*l,n=(t.max.x-u.x)*l):(i=(t.max.x-u.x)*l,n=(t.min.x-u.x)*l),c>=0?(r=(t.min.y-u.y)*c,s=(t.max.y-u.y)*c):(r=(t.max.y-u.y)*c,s=(t.min.y-u.y)*c),i>s||r>n?null:((r>i||isNaN(i))&&(i=r),(s=0?(a=(t.min.z-u.z)*h,o=(t.max.z-u.z)*h):(a=(t.max.z-u.z)*h,o=(t.min.z-u.z)*h),i>o||a>n?null:((a>i||i!=i)&&(i=a),(o=0?i:n,e)))}intersectsBox(t){return null!==this.intersectBox(t,Fi)}intersectTriangle(t,e,i,n,r){ki.subVectors(e,t),Gi.subVectors(i,t),Hi.crossVectors(ki,Gi);let s,a=this.direction.dot(Hi);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Vi.subVectors(this.origin,t);const o=s*this.direction.dot(Gi.crossVectors(Vi,Gi));if(o<0)return null;const l=s*this.direction.dot(ki.cross(Vi));if(l<0)return null;if(o+l>a)return null;const c=-s*Vi.dot(Hi);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Xi{constructor(t,e,i,n,r,s,a,o,l,c,h,u,d,p,m,f){Xi.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,e,i,n,r,s,a,o,l,c,h,u,d,p,m,f)}set(t,e,i,n,r,s,a,o,l,c,h,u,d,p,m,f){const g=this.elements;return g[0]=t,g[4]=e,g[8]=i,g[12]=n,g[1]=r,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=h,g[14]=u,g[3]=d,g[7]=p,g[11]=m,g[15]=f,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 Xi).fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,n=1/ji.setFromMatrixColumn(t,0).length(),r=1/ji.setFromMatrixColumn(t,1).length(),s=1/ji.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=0,e[8]=i[8]*s,e[9]=i[9]*s,e[10]=i[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,i=t.x,n=t.y,r=t.z,s=Math.cos(i),a=Math.sin(i),o=Math.cos(n),l=Math.sin(n),c=Math.cos(r),h=Math.sin(r);if("XYZ"===t.order){const t=s*c,i=s*h,n=a*c,r=a*h;e[0]=o*c,e[4]=-o*h,e[8]=l,e[1]=i+n*l,e[5]=t-r*l,e[9]=-a*o,e[2]=r-t*l,e[6]=n+i*l,e[10]=s*o}else if("YXZ"===t.order){const t=o*c,i=o*h,n=l*c,r=l*h;e[0]=t+r*a,e[4]=n*a-i,e[8]=s*l,e[1]=s*h,e[5]=s*c,e[9]=-a,e[2]=i*a-n,e[6]=r+t*a,e[10]=s*o}else if("ZXY"===t.order){const t=o*c,i=o*h,n=l*c,r=l*h;e[0]=t-r*a,e[4]=-s*h,e[8]=n+i*a,e[1]=i+n*a,e[5]=s*c,e[9]=r-t*a,e[2]=-s*l,e[6]=a,e[10]=s*o}else if("ZYX"===t.order){const t=s*c,i=s*h,n=a*c,r=a*h;e[0]=o*c,e[4]=n*l-i,e[8]=t*l+r,e[1]=o*h,e[5]=r*l+t,e[9]=i*l-n,e[2]=-l,e[6]=a*o,e[10]=s*o}else if("YZX"===t.order){const t=s*o,i=s*l,n=a*o,r=a*l;e[0]=o*c,e[4]=r-t*h,e[8]=n*h+i,e[1]=h,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=i*h+n,e[10]=t-r*h}else if("XZY"===t.order){const t=s*o,i=s*l,n=a*o,r=a*l;e[0]=o*c,e[4]=-h,e[8]=l*c,e[1]=t*h+r,e[5]=s*c,e[9]=i*h-n,e[2]=n*h-i,e[6]=a*c,e[10]=r*h+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Yi,t,Zi)}lookAt(t,e,i){const n=this.elements;return $i.subVectors(t,e),0===$i.lengthSq()&&($i.z=1),$i.normalize(),Ji.crossVectors(i,$i),0===Ji.lengthSq()&&(1===Math.abs(i.z)?$i.x+=1e-4:$i.z+=1e-4,$i.normalize(),Ji.crossVectors(i,$i)),Ji.normalize(),Ki.crossVectors($i,Ji),n[0]=Ji.x,n[4]=Ki.x,n[8]=$i.x,n[1]=Ji.y,n[5]=Ki.y,n[9]=$i.y,n[2]=Ji.z,n[6]=Ki.z,n[10]=$i.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,s=i[0],a=i[4],o=i[8],l=i[12],c=i[1],h=i[5],u=i[9],d=i[13],p=i[2],m=i[6],f=i[10],g=i[14],_=i[3],v=i[7],x=i[11],y=i[15],M=n[0],S=n[4],b=n[8],T=n[12],w=n[1],A=n[5],E=n[9],C=n[13],R=n[2],P=n[6],L=n[10],I=n[14],U=n[3],N=n[7],D=n[11],O=n[15];return r[0]=s*M+a*w+o*R+l*U,r[4]=s*S+a*A+o*P+l*N,r[8]=s*b+a*E+o*L+l*D,r[12]=s*T+a*C+o*I+l*O,r[1]=c*M+h*w+u*R+d*U,r[5]=c*S+h*A+u*P+d*N,r[9]=c*b+h*E+u*L+d*D,r[13]=c*T+h*C+u*I+d*O,r[2]=p*M+m*w+f*R+g*U,r[6]=p*S+m*A+f*P+g*N,r[10]=p*b+m*E+f*L+g*D,r[14]=p*T+m*C+f*I+g*O,r[3]=_*M+v*w+x*R+y*U,r[7]=_*S+v*A+x*P+y*N,r[11]=_*b+v*E+x*L+y*D,r[15]=_*T+v*C+x*I+y*O,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],n=t[8],r=t[12],s=t[1],a=t[5],o=t[9],l=t[13],c=t[2],h=t[6],u=t[10],d=t[14];return t[3]*(+r*o*h-n*l*h-r*a*u+i*l*u+n*a*d-i*o*d)+t[7]*(+e*o*d-e*l*u+r*s*u-n*s*d+n*l*c-r*o*c)+t[11]*(+e*l*h-e*a*d-r*s*h+i*s*d+r*a*c-i*l*c)+t[15]*(-n*a*c-e*o*h+e*a*u+n*s*h-i*s*u+i*o*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const n=this.elements;return t.isVector3?(n[12]=t.x,n[13]=t.y,n[14]=t.z):(n[12]=t,n[13]=e,n[14]=i),this}invert(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11],p=t[12],m=t[13],f=t[14],g=t[15],_=h*f*l-m*u*l+m*o*d-a*f*d-h*o*g+a*u*g,v=p*u*l-c*f*l-p*o*d+s*f*d+c*o*g-s*u*g,x=c*m*l-p*h*l+p*a*d-s*m*d-c*a*g+s*h*g,y=p*h*o-c*m*o-p*a*u+s*m*u+c*a*f-s*h*f,M=e*_+i*v+n*x+r*y;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const S=1/M;return t[0]=_*S,t[1]=(m*u*r-h*f*r-m*n*d+i*f*d+h*n*g-i*u*g)*S,t[2]=(a*f*r-m*o*r+m*n*l-i*f*l-a*n*g+i*o*g)*S,t[3]=(h*o*r-a*u*r-h*n*l+i*u*l+a*n*d-i*o*d)*S,t[4]=v*S,t[5]=(c*f*r-p*u*r+p*n*d-e*f*d-c*n*g+e*u*g)*S,t[6]=(p*o*r-s*f*r-p*n*l+e*f*l+s*n*g-e*o*g)*S,t[7]=(s*u*r-c*o*r+c*n*l-e*u*l-s*n*d+e*o*d)*S,t[8]=x*S,t[9]=(p*h*r-c*m*r-p*i*d+e*m*d+c*i*g-e*h*g)*S,t[10]=(s*m*r-p*a*r+p*i*l-e*m*l-s*i*g+e*a*g)*S,t[11]=(c*a*r-s*h*r-c*i*l+e*h*l+s*i*d-e*a*d)*S,t[12]=y*S,t[13]=(c*m*n-p*h*n+p*i*u-e*m*u-c*i*f+e*h*f)*S,t[14]=(p*a*n-s*m*n-p*i*o+e*m*o+s*i*f-e*a*f)*S,t[15]=(s*h*n-c*a*n+c*i*o-e*h*o-s*i*u+e*a*u)*S,this}scale(t){const e=this.elements,i=t.x,n=t.y,r=t.z;return e[0]*=i,e[4]*=n,e[8]*=r,e[1]*=i,e[5]*=n,e[9]*=r,e[2]*=i,e[6]*=n,e[10]*=r,e[3]*=i,e[7]*=n,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}makeTranslation(t,e,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),n=Math.sin(e),r=1-i,s=t.x,a=t.y,o=t.z,l=r*s,c=r*a;return this.set(l*s+i,l*a-n*o,l*o+n*a,0,l*a+n*o,c*a+i,c*o-n*s,0,l*o-n*a,c*o+n*s,r*o*o+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i,n,r,s){return this.set(1,i,r,0,t,1,s,0,e,n,1,0,0,0,0,1),this}compose(t,e,i){const n=this.elements,r=e._x,s=e._y,a=e._z,o=e._w,l=r+r,c=s+s,h=a+a,u=r*l,d=r*c,p=r*h,m=s*c,f=s*h,g=a*h,_=o*l,v=o*c,x=o*h,y=i.x,M=i.y,S=i.z;return n[0]=(1-(m+g))*y,n[1]=(d+x)*y,n[2]=(p-v)*y,n[3]=0,n[4]=(d-x)*M,n[5]=(1-(u+g))*M,n[6]=(f+_)*M,n[7]=0,n[8]=(p+v)*S,n[9]=(f-_)*S,n[10]=(1-(u+m))*S,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}decompose(t,e,i){const n=this.elements;let r=ji.set(n[0],n[1],n[2]).length();const s=ji.set(n[4],n[5],n[6]).length(),a=ji.set(n[8],n[9],n[10]).length();this.determinant()<0&&(r=-r),t.x=n[12],t.y=n[13],t.z=n[14],qi.copy(this);const o=1/r,l=1/s,c=1/a;return qi.elements[0]*=o,qi.elements[1]*=o,qi.elements[2]*=o,qi.elements[4]*=l,qi.elements[5]*=l,qi.elements[6]*=l,qi.elements[8]*=c,qi.elements[9]*=c,qi.elements[10]*=c,e.setFromRotationMatrix(qi),i.x=r,i.y=s,i.z=a,this}makePerspective(t,e,i,n,r,s,a=2e3){const o=this.elements,l=2*r/(e-t),c=2*r/(i-n),h=(e+t)/(e-t),u=(i+n)/(i-n);let d,p;if(a===be)d=-(s+r)/(s-r),p=-2*s*r/(s-r);else{if(a!==Te)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);d=-s/(s-r),p=-s*r/(s-r)}return o[0]=l,o[4]=0,o[8]=h,o[12]=0,o[1]=0,o[5]=c,o[9]=u,o[13]=0,o[2]=0,o[6]=0,o[10]=d,o[14]=p,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}makeOrthographic(t,e,i,n,r,s,a=2e3){const o=this.elements,l=1/(e-t),c=1/(i-n),h=1/(s-r),u=(e+t)*l,d=(i+n)*c;let p,m;if(a===be)p=(s+r)*h,m=-2*h;else{if(a!==Te)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);p=r*h,m=-1*h}return o[0]=2*l,o[4]=0,o[8]=0,o[12]=-u,o[1]=0,o[5]=2*c,o[9]=0,o[13]=-d,o[2]=0,o[6]=0,o[10]=m,o[14]=-p,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<16;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e=0){for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const ji=new fi,qi=new Xi,Yi=new fi(0,0,0),Zi=new fi(1,1,1),Ji=new fi,Ki=new fi,$i=new fi,Qi=new Xi,tn=new mi;class en{constructor(t=0,e=0,i=0,n=en.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=i,this._order=n}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,i,n=this._order){return this._x=t,this._y=e,this._z=i,this._order=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,i=!0){const n=t.elements,r=n[0],s=n[4],a=n[8],o=n[1],l=n[5],c=n[9],h=n[2],u=n[6],d=n[10];switch(e){case"XYZ":this._y=Math.asin(Le(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,r)):(this._x=Math.atan2(u,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Le(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Le(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-Le(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(u,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(Le(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-Le(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(u,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0)}return this._order=e,!0===i&&this._onChangeCallback(),this}setFromQuaternion(t,e,i){return Qi.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Qi,e,i)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return tn.setFromEuler(this),this.setFromQuaternion(tn,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}en.DEFAULT_ORDER="XYZ";class nn{constructor(){this.mask=1}set(t){this.mask=1<>>0}enable(t){this.mask|=1<1){for(let t=0;t1){for(let t=0;t0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map((t=>({boxInitialized:t.boxInitialized,boxMin:t.box.min.toArray(),boxMax:t.box.max.toArray(),sphereInitialized:t.sphereInitialized,sphereRadius:t.sphere.radius,sphereCenter:t.sphere.center.toArray()}))),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(t),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const i=e.shapes;if(Array.isArray(i))for(let e=0,n=i.length;e0){n.children=[];for(let e=0;e0){n.animations=[];for(let e=0;e0&&(i.geometries=e),n.length>0&&(i.materials=n),r.length>0&&(i.textures=r),a.length>0&&(i.images=a),o.length>0&&(i.shapes=o),l.length>0&&(i.skeletons=l),c.length>0&&(i.animations=c),h.length>0&&(i.nodes=h)}return i.object=n,i;function s(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e0?n.multiplyScalar(1/Math.sqrt(r)):n.set(0,0,0)}static getBarycoord(t,e,i,n,r){yn.subVectors(n,e),Mn.subVectors(i,e),Sn.subVectors(t,e);const s=yn.dot(yn),a=yn.dot(Mn),o=yn.dot(Sn),l=Mn.dot(Mn),c=Mn.dot(Sn),h=s*l-a*a;if(0===h)return r.set(0,0,0),null;const u=1/h,d=(l*o-a*c)*u,p=(s*c-a*o)*u;return r.set(1-d-p,p,d)}static containsPoint(t,e,i,n){return null!==this.getBarycoord(t,e,i,n,bn)&&(bn.x>=0&&bn.y>=0&&bn.x+bn.y<=1)}static getInterpolation(t,e,i,n,r,s,a,o){return null===this.getBarycoord(t,e,i,n,bn)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(r,bn.x),o.addScaledVector(s,bn.y),o.addScaledVector(a,bn.z),o)}static isFrontFacing(t,e,i,n){return yn.subVectors(i,e),Mn.subVectors(t,e),yn.cross(Mn).dot(n)<0}set(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}setFromPointsAndIndices(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this}setFromAttributeAndIndices(t,e,i,n){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return yn.subVectors(this.c,this.b),Mn.subVectors(this.a,this.b),.5*yn.cross(Mn).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Pn.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Pn.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,i,n,r){return Pn.getInterpolation(t,this.a,this.b,this.c,e,i,n,r)}containsPoint(t){return Pn.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Pn.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const i=this.a,n=this.b,r=this.c;let s,a;Tn.subVectors(n,i),wn.subVectors(r,i),En.subVectors(t,i);const o=Tn.dot(En),l=wn.dot(En);if(o<=0&&l<=0)return e.copy(i);Cn.subVectors(t,n);const c=Tn.dot(Cn),h=wn.dot(Cn);if(c>=0&&h<=c)return e.copy(n);const u=o*h-c*l;if(u<=0&&o>=0&&c<=0)return s=o/(o-c),e.copy(i).addScaledVector(Tn,s);Rn.subVectors(t,r);const d=Tn.dot(Rn),p=wn.dot(Rn);if(p>=0&&d<=p)return e.copy(r);const m=d*l-o*p;if(m<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(i).addScaledVector(wn,a);const f=c*p-d*h;if(f<=0&&h-c>=0&&d-p>=0)return An.subVectors(r,n),a=(h-c)/(h-c+(d-p)),e.copy(n).addScaledVector(An,a);const g=1/(f+m+u);return s=m*g,a=u*g,e.copy(i).addScaledVector(Tn,s).addScaledVector(wn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const Ln={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},In={h:0,s:0,l:0},Un={h:0,s:0,l:0};function Nn(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}class Dn{constructor(t,e,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,i)}set(t,e,i){if(void 0===e&&void 0===i){const e=t;e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e)}else this.setRGB(t,e,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=ne){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,Qe.toWorkingColorSpace(this,e),this}setRGB(t,e,i,n=Qe.workingColorSpace){return this.r=t,this.g=e,this.b=i,Qe.toWorkingColorSpace(this,n),this}setHSL(t,e,i,n=Qe.workingColorSpace){if(t=Ie(t,1),e=Le(e,0,1),i=Le(i,0,1),0===e)this.r=this.g=this.b=i;else{const n=i<=.5?i*(1+e):i+e-i*e,r=2*i-n;this.r=Nn(r,n,t+1/3),this.g=Nn(r,n,t),this.b=Nn(r,n,t-1/3)}return Qe.toWorkingColorSpace(this,n),this}setStyle(t,e=ne){function i(t){void 0!==t&&parseFloat(t)}let n;if(n=/^(\w+)\(([^\)]*)\)/.exec(t)){let t;const r=n[1],s=n[2];switch(r){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(t[4]),this.setRGB(Math.min(255,parseInt(t[1],10))/255,Math.min(255,parseInt(t[2],10))/255,Math.min(255,parseInt(t[3],10))/255,e);if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(t[4]),this.setRGB(Math.min(100,parseInt(t[1],10))/100,Math.min(100,parseInt(t[2],10))/100,Math.min(100,parseInt(t[3],10))/100,e);break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(t[4]),this.setHSL(parseFloat(t[1])/360,parseFloat(t[2])/100,parseFloat(t[3])/100,e)}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],i=t.length;if(3===i)return this.setRGB(parseInt(t.charAt(0),16)/15,parseInt(t.charAt(1),16)/15,parseInt(t.charAt(2),16)/15,e);if(6===i)return this.setHex(parseInt(t,16),e)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=ne){const i=Ln[t.toLowerCase()];return void 0!==i&&this.setHex(i,e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=ti(t.r),this.g=ti(t.g),this.b=ti(t.b),this}copyLinearToSRGB(t){return this.r=ei(t.r),this.g=ei(t.g),this.b=ei(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=ne){return Qe.fromWorkingColorSpace(On.copy(this),t),65536*Math.round(Le(255*On.r,0,255))+256*Math.round(Le(255*On.g,0,255))+Math.round(Le(255*On.b,0,255))}getHexString(t=ne){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Qe.workingColorSpace){Qe.fromWorkingColorSpace(On.copy(this),e);const i=On.r,n=On.g,r=On.b,s=Math.max(i,n,r),a=Math.min(i,n,r);let o,l;const c=(a+s)/2;if(a===s)o=0,l=0;else{const t=s-a;switch(l=c<=.5?t/(s+a):t/(2-s-a),s){case i:o=(n-r)/t+(n0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const i=t[e];if(void 0===i)continue;const n=this[e];void 0!==n&&(n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i)}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),this.side!==a&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),this.blendSrc!==g&&(i.blendSrc=this.blendSrc),this.blendDst!==_&&(i.blendDst=this.blendDst),this.blendEquation!==c&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ue&&(i.stencilFail=this.stencilFail),this.stencilZFail!==ue&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==ue&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),e){const e=n(t.textures),r=n(t.images);e.length>0&&(i.textures=e),r.length>0&&(i.images=r)}return i}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let i=null;if(null!==e){const t=e.length;i=new Array(t);for(let n=0;n!==t;++n)i[n]=e[n].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}class zn extends Bn{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Dn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new en,this.combine=E,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const Vn=kn();function kn(){const t=new ArrayBuffer(4),e=new Float32Array(t),i=new Uint32Array(t),n=new Uint32Array(512),r=new Uint32Array(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(n[t]=0,n[256|t]=32768,r[t]=24,r[256|t]=24):e<-14?(n[t]=1024>>-e-14,n[256|t]=1024>>-e-14|32768,r[t]=-e-1,r[256|t]=-e-1):e<=15?(n[t]=e+15<<10,n[256|t]=e+15<<10|32768,r[t]=13,r[256|t]=13):e<128?(n[t]=31744,n[256|t]=64512,r[t]=24,r[256|t]=24):(n[t]=31744,n[256|t]=64512,r[t]=13,r[256|t]=13)}const s=new Uint32Array(2048),a=new Uint32Array(64),o=new Uint32Array(64);for(let t=1;t<1024;++t){let e=t<<13,i=0;for(;!(8388608&e);)e<<=1,i-=8388608;e&=-8388609,i+=947912704,s[t]=e|i}for(let t=1024;t<2048;++t)s[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)a[t]=t<<23;a[31]=1199570944,a[32]=2147483648;for(let t=33;t<63;++t)a[t]=2147483648+(t-32<<23);a[63]=3347054592;for(let t=1;t<64;++t)32!==t&&(o[t]=1024);return{floatView:e,uint32View:i,baseTable:n,shiftTable:r,mantissaTable:s,exponentTable:a,offsetTable:o}}function Gn(t){Math.abs(t),t=Le(t,-65504,65504),Vn.floatView[0]=t;const e=Vn.uint32View[0],i=e>>23&511;return Vn.baseTable[i]+((8388607&e)>>Vn.shiftTable[i])}function Hn(t){const e=t>>10;return Vn.uint32View[0]=Vn.mantissaTable[Vn.offsetTable[e]+(1023&t)]+Vn.exponentTable[e],Vn.floatView[0]}const Wn={toHalfFloat:Gn,fromHalfFloat:Hn},Xn=new fi,jn=new ze;class qn{constructor(t,e,i=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=i,this.usage=ye,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=st,this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}get updateRange(){return Ye("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,i){t*=this.itemSize,i*=e.itemSize;for(let n=0,r=this.itemSize;n0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const i=this.attributes;for(const e in i){const n=i[e];t.data.attributes[e]=n.toJSON(t.data)}const n={};let r=!1;for(const e in this.morphAttributes){const i=this.morphAttributes[e],s=[];for(let e=0,n=i.length;e0&&(n[e]=s,r=!0)}r&&(t.data.morphAttributes=n,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const i=t.index;null!==i&&this.setIndex(i.clone(e));const n=t.attributes;for(const t in n){const i=n[t];this.setAttribute(t,i.clone(e))}const r=t.morphAttributes;for(const t in r){const i=[],n=r[t];for(let t=0,r=n.length;t0){const i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=i.length;t(t.far-t.near)**2)return}sr.copy(r).invert(),ar.copy(t.ray).applyMatrix4(sr),null!==i.boundingBox&&!1===ar.intersectsBox(i.boundingBox)||this._computeIntersections(t,e,ar)}}_computeIntersections(t,e,i){let n;const r=this.geometry,s=this.material,a=r.index,o=r.attributes.position,l=r.attributes.uv,c=r.attributes.uv1,h=r.attributes.normal,u=r.groups,d=r.drawRange;if(null!==a)if(Array.isArray(s))for(let r=0,o=u.length;ri.far?null:{distance:u,point:Mr.clone(),object:t}}(t,e,i,n,cr,hr,ur,yr);if(d){r&&(mr.fromBufferAttribute(r,c),fr.fromBufferAttribute(r,h),gr.fromBufferAttribute(r,u),d.uv=Pn.getInterpolation(yr,cr,hr,ur,mr,fr,gr,new ze)),s&&(mr.fromBufferAttribute(s,c),fr.fromBufferAttribute(s,h),gr.fromBufferAttribute(s,u),d.uv1=Pn.getInterpolation(yr,cr,hr,ur,mr,fr,gr,new ze)),l&&(_r.fromBufferAttribute(l,c),vr.fromBufferAttribute(l,h),xr.fromBufferAttribute(l,u),d.normal=Pn.getInterpolation(yr,cr,hr,ur,_r,vr,xr,new fi),d.normal.dot(n.direction)>0&&d.normal.multiplyScalar(-1));const t={a:c,b:h,c:u,normal:new fi,materialIndex:0};Pn.getNormal(cr,hr,ur,t.normal),d.face=t}return d}class Tr extends rr{constructor(t=1,e=1,i=1,n=1,r=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:s};const a=this;n=Math.floor(n),r=Math.floor(r),s=Math.floor(s);const o=[],l=[],c=[],h=[];let u=0,d=0;function p(t,e,i,n,r,s,p,m,f,g,_){const v=s/f,x=p/g,y=s/2,M=p/2,S=m/2,b=f+1,T=g+1;let w=0,A=0;const E=new fi;for(let s=0;s0?1:-1,c.push(E.x,E.y,E.z),h.push(o/f),h.push(1-s/g),w+=1}}for(let t=0;t0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e.lights=this.lights,e.clipping=this.clipping;const i={};for(const t in this.extensions)!0===this.extensions[t]&&(i[t]=!0);return Object.keys(i).length>0&&(e.extensions=i),e}}class Pr extends xn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Xi,this.projectionMatrix=new Xi,this.projectionMatrixInverse=new Xi,this.coordinateSystem=be}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const Lr=new fi,Ir=new ze,Ur=new ze;class Nr extends Pr{constructor(t=50,e=1,i=.1,n=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=i,this.far=n,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*Re*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*Ce*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*Re*Math.atan(Math.tan(.5*Ce*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,e,i){Lr.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),e.set(Lr.x,Lr.y).multiplyScalar(-t/Lr.z),Lr.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(Lr.x,Lr.y).multiplyScalar(-t/Lr.z)}getViewSize(t,e){return this.getViewBounds(t,Ir,Ur),e.subVectors(Ur,Ir)}setViewOffset(t,e,i,n,r,s){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*Ce*this.fov)/this.zoom,i=2*e,n=this.aspect*i,r=-.5*n;const s=this.view;if(null!==this.view&&this.view.enabled){const t=s.fullWidth,a=s.fullHeight;r+=s.offsetX*n/t,e-=s.offsetY*i/a,n*=s.width/t,i*=s.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+n,e,e-i,t,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const Dr=-90;class Or extends xn{constructor(t,e,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const n=new Nr(Dr,1,t,e);n.layers=this.layers,this.add(n);const r=new Nr(Dr,1,t,e);r.layers=this.layers,this.add(r);const s=new Nr(Dr,1,t,e);s.layers=this.layers,this.add(s);const a=new Nr(Dr,1,t,e);a.layers=this.layers,this.add(a);const o=new Nr(Dr,1,t,e);o.layers=this.layers,this.add(o);const l=new Nr(Dr,1,t,e);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const t=this.coordinateSystem,e=this.children.concat(),[i,n,r,s,a,o]=e;for(const t of e)this.remove(t);if(t===be)i.up.set(0,1,0),i.lookAt(1,0,0),n.up.set(0,1,0),n.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),o.up.set(0,1,0),o.lookAt(0,0,-1);else{if(t!==Te)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+t);i.up.set(0,-1,0),i.lookAt(-1,0,0),n.up.set(0,-1,0),n.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),o.up.set(0,-1,0),o.lookAt(0,0,-1)}for(const t of e)this.add(t),t.updateMatrixWorld()}update(t,e){null===this.parent&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:n}=this;this.coordinateSystem!==t.coordinateSystem&&(this.coordinateSystem=t.coordinateSystem,this.updateCoordinateSystem());const[r,s,a,o,l,c]=this.children,h=t.getRenderTarget(),u=t.getActiveCubeFace(),d=t.getActiveMipmapLevel(),p=t.xr.enabled;t.xr.enabled=!1;const m=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,t.setRenderTarget(i,0,n),t.render(e,r),t.setRenderTarget(i,1,n),t.render(e,s),t.setRenderTarget(i,2,n),t.render(e,a),t.setRenderTarget(i,3,n),t.render(e,o),t.setRenderTarget(i,4,n),t.render(e,l),i.texture.generateMipmaps=m,t.setRenderTarget(i,5,n),t.render(e,c),t.setRenderTarget(h,u,d),t.xr.enabled=p,i.texture.needsPMREMUpdate=!0}}class Fr extends li{constructor(t,e,i,n,r,s,a,o,l,c){super(t=void 0!==t?t:[],e=void 0!==e?e:k,i,n,r,s,a,o,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class Br extends ui{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const i={width:t,height:t,depth:1},n=[i,i,i,i,i,i];this.texture=new Fr(n,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:$}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.colorSpace=e.colorSpace,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},n=new Tr(5,5,5),r=new Rr({name:"CubemapFromEquirect",uniforms:wr(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:o,blending:0});r.uniforms.tEquirect.value=e;const s=new Sr(n,r),a=e.minFilter;e.minFilter===tt&&(e.minFilter=$);return new Or(1,10,this).update(t,s),e.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(t,e,i,n){const r=t.getRenderTarget();for(let r=0;r<6;r++)t.setRenderTarget(this,r),t.clear(e,i,n);t.setRenderTarget(r)}}const zr=new fi,Vr=new fi,kr=new Ve;class Gr{constructor(t=new fi(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,i){const n=zr.subVectors(i,e).cross(Vr.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const i=t.delta(zr),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/n;return r<0||r>1?null:e.copy(t.start).addScaledVector(i,r)}intersectsLine(t){const e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const i=e||kr.getNormalMatrix(t),n=this.coplanarPoint(zr).applyMatrix4(t),r=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Hr=new Oi,Wr=new fi;class Xr{constructor(t=new Gr,e=new Gr,i=new Gr,n=new Gr,r=new Gr,s=new Gr){this.planes=[t,e,i,n,r,s]}set(t,e,i,n,r,s){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(r),a[5].copy(s),this}copy(t){const e=this.planes;for(let i=0;i<6;i++)e[i].copy(t.planes[i]);return this}setFromProjectionMatrix(t,e=2e3){const i=this.planes,n=t.elements,r=n[0],s=n[1],a=n[2],o=n[3],l=n[4],c=n[5],h=n[6],u=n[7],d=n[8],p=n[9],m=n[10],f=n[11],g=n[12],_=n[13],v=n[14],x=n[15];if(i[0].setComponents(o-r,u-l,f-d,x-g).normalize(),i[1].setComponents(o+r,u+l,f+d,x+g).normalize(),i[2].setComponents(o+s,u+c,f+p,x+_).normalize(),i[3].setComponents(o-s,u-c,f-p,x-_).normalize(),i[4].setComponents(o-a,u-h,f-m,x-v).normalize(),e===be)i[5].setComponents(o+a,u+h,f+m,x+v).normalize();else{if(e!==Te)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);i[5].setComponents(a,h,m,v).normalize()}return this}intersectsObject(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),Hr.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Hr.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Hr)}intersectsSprite(t){return Hr.center.set(0,0,0),Hr.radius=.7071067811865476,Hr.applyMatrix4(t.matrixWorld),this.intersectsSphere(Hr)}intersectsSphere(t){const e=this.planes,i=t.center,n=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(i)0?t.max.x:t.min.x,Wr.y=n.normal.y>0?t.max.y:t.min.y,Wr.z=n.normal.z>0?t.max.z:t.min.z,n.distanceToPoint(Wr)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function jr(){let t=null,e=!1,i=null,n=null;function r(e,s){i(e,s),n=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==i&&(n=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(t){i=t},setContext:function(e){t=e}}}function qr(t,e){const i=e.isWebGL2,n=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),n.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const i=n.get(e);i&&(t.deleteBuffer(i.buffer),n.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=n.get(e);return void((!t||t.version 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tfloat startCompression = 0.8 - 0.04;\n\tfloat desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min(color.r, min(color.g, color.b));\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max(color.r, max(color.g, color.b));\n\tif (peak < startCompression) return color;\n\tfloat d = 1. - startCompression;\n\tfloat newPeak = 1. - d * d / (peak + d - startCompression);\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / (desaturation * (peak - newPeak) + 1.);\n\treturn mix(color, vec3(1, 1, 1), g);\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include