From 92add15dcfbd724e3a7ad71c04c9c7040d4921f4 Mon Sep 17 00:00:00 2001 From: Marcos Vinicius Date: Tue, 1 Oct 2024 22:34:04 -0300 Subject: [PATCH] Updates --- english/level3/index.html | 2 +- level3/{index.5dd934c5.js => index.8a21e007.js} | 2 +- level3/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename level3/{index.5dd934c5.js => index.8a21e007.js} (60%) diff --git a/english/level3/index.html b/english/level3/index.html index eec5839..2b95b68 100644 --- a/english/level3/index.html +++ b/english/level3/index.html @@ -1 +1 @@ -ELoS - Level 3

Level 3 - Round x of X

Do something

Time:

Available Functions:
Actions:
Checkers:
Structures:

moveForward(quantity)

moveBackwards(quantity)

rotateLeft()

rotateRight()

turnBack()

disableBlueLaser()

disableRedLaser()

collectCrystal()

isBlueLaserActive()

isRedLaserActive()

if(condition){
 action()
}
else{
 action()
}

Enter your code here:
Console:
\ No newline at end of file +ELoS - Level 3

Level 3 - Round x of X

Do something

Time:

Available Functions:
Actions:
Checkers:
Structures:

moveForward(quantity)

moveBackwards(quantity)

rotateLeft()

rotateRight()

turnBack()

disableBlueLaser()

disableRedLaser()

collectCrystal()

isBlueLaserActive()

isRedLaserActive()

if(condition){
 action()
}
else{
 action()
}

Enter your code here:
Console:
\ No newline at end of file diff --git a/level3/index.5dd934c5.js b/level3/index.8a21e007.js similarity index 60% rename from level3/index.5dd934c5.js rename to level3/index.8a21e007.js index f2955a3..f26d7f0 100644 --- a/level3/index.5dd934c5.js +++ b/level3/index.8a21e007.js @@ -1 +1 @@ -function $parcel$export(e,t,a,r){Object.defineProperty(e,t,{get:a,set:r,enumerable:!0,configurable:!0})}var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequiredf3e;null==parcelRequire&&(parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var t=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,t.call(a.exports,a,a.exports),a.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r},parcelRequire.register=function(e,t){$parcel$inits[e]=t},$parcel$global.parcelRequiredf3e=parcelRequire),parcelRequire.register("3YhQm",(function(module,exports){var $4xklQ=parcelRequire("4xklQ"),$bsNDL=parcelRequire("bsNDL"),$7FzN9=parcelRequire("7FzN9"),$1M2iF=parcelRequire("1M2iF"),$kXIAH=parcelRequire("kXIAH"),$j0YSa=parcelRequire("j0YSa"),$dhcg3=parcelRequire("dhcg3");parcelRequire("iO2wr");var $hfAuX=parcelRequire("hfAuX"),$8TDdX=parcelRequire("8TDdX"),$7TtGC=parcelRequire("7TtGC");const sceneProperties={cancelExecution:!1,timer:0,phase:0,executing:!1,mult:1,lang:window.location.href.includes("english")?1:0};function generatePhaseTitle(){return 1===sceneProperties.lang?`Level 3 - Round ${sceneProperties.phase+1} of 8`:`Nível 3 - Fase ${sceneProperties.phase+1} de 8`}const textVariations=[[generatePhaseTitle,"Faça o robô chegar ao cristal, após isso, o colete.","Faça o robô chegar aos cristais, após isso, os colete.","Robô não está em frente ao cristal.\n","Cristal coletado.\n","Cristal coletado com sucesso.\n","Todos os cristais coletados com sucesso!\n","Nível Concluído","Finalizar","Deseja realmente finalizar a prática?","O robô entrou em curto circuito por tentar desativar um laser azul que não existe.\n","O robô entrou em curto circuito por tentar desativar um laser vermelho que não existe.\n"],[generatePhaseTitle,"Make the robot reach the crystal and collect it.","Make the robot reach the crystals and collect them.","Robot is not in front of the crystal.\n","Crystal collected.\n","Crystal successfully collected.\n","All crystals collected successfully!\n","Level Completed","Finish","Do you really want to finish the practice?","The robot short-circuited after trying to deactivate a blue laser that doesn't exist.\n","The robot short-circuited after trying to deactivate a red laser that doesn't exist.\n"]],commandsVariations=[["andarFrente(?)\n","andarTras(?)\n","girarEsquerda()\n","girarDireita()\n","darMeiaVolta()\n","coletarCristal()\n","desativarLaserAzul()\n","desativarLaserVermelho()\n","laserAzulAtivo()","laserVermelhoAtivo()","se(?){\n\n}\nsenão{\n\n}\n","se(?){\n\n}\n"],["moveForward(?)\n","moveBackwards(?)\n","rotateLeft()\n","rotateRight()\n","turnBack()","collectCrystal()\n","disableBlueLaser()\n","disableRedLaser()\n","isBlueLaserActive()","isRedLaserActive()","if(?){\n\n}\nelse{\n\n}\n","if(?){\n\n}\n"]],logModal=new(0,$8TDdX.Modal)(document.getElementById("logModal"));let timerUpadate,laserState,setLaserStates,setLaserStatesInterval,spikeTrapState,setSpikeTrapState,setSpikeTrapStateInterval;function updateTime(){sceneProperties.timer++}const editor=(0,$bsNDL.generateDefaultEditor)(document.getElementById("editorArea")),andarFrenteBtn=document.getElementById("andarFrente");andarFrenteBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][0]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][0]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const andarTrasBtn=document.getElementById("andarTras");andarTrasBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][1]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][1]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const girarEsquerdaBtn=document.getElementById("girarEsquerda");girarEsquerdaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][2]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][2]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const girarDireitaBtn=document.getElementById("girarDireita");girarDireitaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][3]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][3]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const darMeiaVoltaBtn=document.getElementById("darMeiaVolta");darMeiaVoltaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][4]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][4]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const desativarLaserAzulBtn=document.getElementById("desativarLaserAzul");desativarLaserAzulBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][6]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][6]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const desativarLaserVermelhoBtn=document.getElementById("desativarLaserVermelho");desativarLaserVermelhoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][7]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][7]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const coletarCristalBtn=document.getElementById("coletarCristal");coletarCristalBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][5]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][5]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const laserAzulAtivoBtn=document.getElementById("laserAzulAtivo");laserAzulAtivoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][8]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][8]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const laserVermelhoAtivoBtn=document.getElementById("laserVermelhoAtivo");laserVermelhoAtivoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][9]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][9]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const condicaoBtn=document.getElementById("condicao");condicaoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][11]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][11]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const condicaoFullBtn=document.getElementById("condicaoFull");condicaoFullBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][10]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][10]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const consoleElement=document.getElementById("consoleArea"),{renderer:renderer,scene:scene,camera:camera,controls:controls}=(0,$7FzN9.generateDefaultSceneObjects)(document.getElementById("phaseView")),gridMapHelper=new(0,$1M2iF.default),plane=gridMapHelper.createGridPlane(),actor=(0,$7FzN9.loadDefaultActor)(),wallTexture=(new $4xklQ.TextureLoader).load(new URL(parcelRequire("9fFOq")).toString());let objectives,walls,traps,laserFences,coletarCristal,resetLevel,winCondition;function changeLaserActiveStatus(e,t){gridMapHelper.lasers[e].active=t,0==t?laserFences[e].setNotVisible():"red"==gridMapHelper.lasers[e].state?(laserFences[e].setVisible(),laserFences[e].setRed()):(laserFences[e].setVisible(),laserFences[e].setBlue())}function changeLaserStateStatus(e,t){gridMapHelper.lasers.forEach((e=>{"multiColor"==e.type&&(e.state=t)})),"blue"==t?laserFences.forEach((e=>{"multiColor"==e.type&&e.setBlue()})):"red"==t&&laserFences.forEach((e=>{"multiColor"==e.type&&e.setRed()}))}function lasersVisualRestart(){for(let e=0;e10?10:e;await(0,$7FzN9.translateActor)(actor,t,gridMapHelper,sceneProperties,consoleElement)}async function andarTras(e){let t=e>10?10:e;await(0,$7FzN9.translateActor)(actor,-t,gridMapHelper,sceneProperties,consoleElement)}async function girarEsquerda(){await(0,$7FzN9.rotateActor)(actor,90,sceneProperties,1)}async function girarDireita(){await(0,$7FzN9.rotateActor)(actor,90,sceneProperties,-1)}async function darMeiaVolta(){await(0,$7FzN9.rotateActor)(actor,180,sceneProperties,1)}function laserAzulAtivo(){const e=new $4xklQ.Vector3;return actor.getObjectByName("interactionReference").getWorldPosition(e),null!=gridMapHelper.detectLaser(e,"blue")}function laserVermelhoAtivo(){const e=new $4xklQ.Vector3;return actor.getObjectByName("interactionReference").getWorldPosition(e),null!=gridMapHelper.detectLaser(e,"red")}function desativarLaserAzul(){const e=new $4xklQ.Vector3;actor.getObjectByName("interactionReference").getWorldPosition(e);let t=gridMapHelper.detectLaser(e,"blue");null!=t?changeLaserActiveStatus(t,!1):(consoleElement.innerText+=textVariations[sceneProperties.lang][10],sceneProperties.cancelExecution=!0)}function desativarLaserVermelho(){const e=new $4xklQ.Vector3;actor.getObjectByName("interactionReference").getWorldPosition(e);let t=gridMapHelper.detectLaser(e,"red");null!=t?changeLaserActiveStatus(t,!1):(consoleElement.innerText+=textVariations[sceneProperties.lang][11],sceneProperties.cancelExecution=!0)}function badLuck(e,t){const a=new $4xklQ.Vector3(gridMapHelper.getGlobalXPositionFromCoord(e[0]),0,gridMapHelper.getGlobalZPositionFromCoord(e[1]));let r="blue"==t?"red":"blue",s=gridMapHelper.detectLaser(a,t);null!=s&&("multiColor"==gridMapHelper.lasers[s].type?(gridMapHelper.lasers[s].state=r,"blue"==r?laserFences[s].setBlue():laserFences[s].setRed()):gridMapHelper.lasers[s].active?(gridMapHelper.lasers[s].active=!1,laserFences[s].setNotVisible()):(gridMapHelper.lasers[s].active=!0,laserFences[s].setVisible(),"blue"==gridMapHelper.lasers[s].state?laserFences[s].setBlue():laserFences[s].setRed()))}wallTexture.wrapS=$4xklQ.RepeatWrapping,wallTexture.wrapT=$4xklQ.RepeatWrapping,scene.add(plane),scene.add(actor);const phaseGeneration=[];function removeObjects(e,t,a,r){if(null!=e)for(let t=0;t{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][1],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(1),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addObstacle(9,9,5,5),scene.add(objectives[0]),walls=[];const e=new $4xklQ.BoxGeometry(18,2,2),t=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];t[2].map.repeat.set(9,1),t[3].map.repeat.set(9,1),t[4].map.repeat.set(9,1),t[5].map.repeat.set(9,1),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),scene.add(walls[0]),scene.add(walls[1]),gridMapHelper.addObstacle(1,9,4,4),gridMapHelper.addObstacle(1,9,6,6),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addLaser(7,5,laserFences[0]),scene.add(laserFences[0]),laserState=0,setLaserStates=()=>{changeLaserStateStatus(0,0==laserState?"blue":"red")},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][5],gridMapHelper.obstacles[0].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3])},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(7)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(3)),gridMapHelper.addObstacle(4,4,7,7),gridMapHelper.addObstacle(4,4,3,3),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addTrap(3,5,traps[0]),scene.add(traps[0]),(0,$dhcg3.trapsActivation)(traps),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];t[2].map.repeat.set(3,1),t[3].map.repeat.set(3,1),t[4].map.repeat.set(3,1),t[5].map.repeat.set(3,1),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),gridMapHelper.addObstacle(1,3,4,4),gridMapHelper.addObstacle(1,3,6,6),gridMapHelper.addObstacle(3,3,6,8),gridMapHelper.addObstacle(3,3,2,4),gridMapHelper.addObstacle(4,4,8,8),gridMapHelper.addObstacle(4,4,2,2),gridMapHelper.addObstacle(5,5,2,4),gridMapHelper.addObstacle(5,5,6,8),gridMapHelper.addObstacle(6,7,6,6),gridMapHelper.addObstacle(6,7,4,4),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addLaser(4,4,laserFences[0]),gridMapHelper.addLaser(4,6,laserFences[1]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(3)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addObstacle(9,9,3,3),gridMapHelper.addObstacle(9,9,6,6),scene.add(objectives[0]),scene.add(objectives[1]),traps=[];new $4xklQ.BoxGeometry(2,1,2),new $4xklQ.MeshLambertMaterial({color:"rgb(255,0,0)"});traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(2)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(7)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),traps[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addTrap(4,2,traps[0]),gridMapHelper.addTrap(4,7,traps[1]),gridMapHelper.addTrap(6,4,traps[2]),gridMapHelper.addTrap(6,5,traps[3]),gridMapHelper.addTrap(9,2,traps[4]),gridMapHelper.addTrap(9,7,traps[5]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),scene.add(traps[4]),scene.add(traps[5]),walls=[];const e=new $4xklQ.BoxGeometry(10,2,2),t=new $4xklQ.BoxGeometry(12,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(6,2,2),s=new $4xklQ.BoxGeometry(2,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(5,1),o[3].map.repeat.set(5,1),o[4].map.repeat.set(5,1),o[5].map.repeat.set(5,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(6,1),l[3].map.repeat.set(6,1),l[4].map.repeat.set(6,1),l[5].map.repeat.set(6,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(2,1),i[3].map.repeat.set(2,1),i[4].map.repeat.set(2,1),i[5].map.repeat.set(2,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(3,1),n[3].map.repeat.set(3,1),n[4].map.repeat.set(3,1),n[5].map.repeat.set(3,1);const p=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()});walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),gridMapHelper.addObstacle(3,7,9,9),gridMapHelper.addObstacle(3,7,0,0),gridMapHelper.addObstacle(3,3,2,7),gridMapHelper.addObstacle(5,5,4,5),gridMapHelper.addObstacle(5,5,7,7),gridMapHelper.addObstacle(5,5,2,2),gridMapHelper.addObstacle(7,8,7,7),gridMapHelper.addObstacle(7,8,2,2),gridMapHelper.addObstacle(7,9,4,4),gridMapHelper.addObstacle(7,9,5,5),laserFences=[],laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(6)),laserFences[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(8)),gridMapHelper.addLaser(3,1,laserFences[0]),gridMapHelper.addLaser(3,8,laserFences[1]),gridMapHelper.addLaser(7,1,laserFences[2]),gridMapHelper.addLaser(7,3,laserFences[3]),gridMapHelper.addLaser(7,6,laserFences[4]),gridMapHelper.addLaser(7,8,laserFences[5]),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),scene.add(laserFences[5]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(0,!0),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(5,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(0,!1),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(5,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][1],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(1),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),0,gridMapHelper.getGlobalZPositionFromCoord(9)),gridMapHelper.addObstacle(8,8,9,9),scene.add(objectives[0]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),0,gridMapHelper.getGlobalZPositionFromCoord(1)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addTrap(0,4,traps[0]),gridMapHelper.addTrap(3,5,traps[1]),gridMapHelper.addTrap(5,1,traps[2]),gridMapHelper.addTrap(7,5,traps[3]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),walls=[];const e=new $4xklQ.BoxGeometry(12,2,2),t=new $4xklQ.BoxGeometry(6,2,2),a=new $4xklQ.BoxGeometry(10,2,2),r=new $4xklQ.BoxGeometry(8,2,2),s=new $4xklQ.BoxGeometry(20,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(6,1),o[3].map.repeat.set(6,1),o[4].map.repeat.set(6,1),o[5].map.repeat.set(6,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(3,1),l[3].map.repeat.set(3,1),l[4].map.repeat.set(3,1),l[5].map.repeat.set(3,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(5,1),i[3].map.repeat.set(5,1),i[4].map.repeat.set(5,1),i[5].map.repeat.set(5,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(4,1),n[3].map.repeat.set(4,1),n[4].map.repeat.set(4,1),n[5].map.repeat.set(4,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(10,1),p[3].map.repeat.set(10,1),p[4].map.repeat.set(10,1),p[5].map.repeat.set(10,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2.5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2.5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),gridMapHelper.addObstacle(0,5,0,0),gridMapHelper.addObstacle(1,1,4,8),gridMapHelper.addObstacle(1,3,2,2),gridMapHelper.addObstacle(3,3,2,4),gridMapHelper.addObstacle(3,3,6,9),gridMapHelper.addObstacle(5,5,2,4),gridMapHelper.addObstacle(5,5,6,8),gridMapHelper.addObstacle(7,7,1,4),gridMapHelper.addObstacle(7,7,6,9),gridMapHelper.addObstacle(9,9,0,9),walls[1].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[4].rotateY(Math.PI/2),walls[5].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),walls[8].rotateY(Math.PI/2),walls[9].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(7)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),gridMapHelper.addLaser(5,5,laserFences[0]),gridMapHelper.addLaser(8,7,laserFences[1]),gridMapHelper.addLaser(5,9,laserFences[2]),laserFences[1].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][5],gridMapHelper.obstacles[0].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3])},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(0)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addObstacle(0,0,0,0),gridMapHelper.addObstacle(9,9,7,7),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(6)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addTrap(0,6,traps[0]),gridMapHelper.addTrap(3,6,traps[1]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=new $4xklQ.BoxGeometry(14,2,2),a=new $4xklQ.BoxGeometry(2,2,2),r=(new $4xklQ.BoxGeometry(10,2,2),new $4xklQ.BoxGeometry(4,2,2)),s=new $4xklQ.BoxGeometry(12,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(3,1),o[3].map.repeat.set(3,1),o[4].map.repeat.set(3,1),o[5].map.repeat.set(3,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(7,1),l[3].map.repeat.set(7,1),l[4].map.repeat.set(7,1),l[5].map.repeat.set(7,1);const i=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(6,1),p[3].map.repeat.set(6,1),p[4].map.repeat.set(6,1),p[5].map.repeat.set(6,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(4.5),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addObstacle(1,1,4,6),gridMapHelper.addObstacle(0,2,9,9),gridMapHelper.addObstacle(2,4,4,4),gridMapHelper.addObstacle(2,7,1,1),gridMapHelper.addObstacle(4,6,3,3),gridMapHelper.addObstacle(6,6,2,2),gridMapHelper.addObstacle(3,8,7,7),gridMapHelper.addObstacle(5,6,8,8),gridMapHelper.addObstacle(8,9,9,9),gridMapHelper.addObstacle(9,9,0,6),gridMapHelper.addObstacle(1,1,2,2),walls[0].rotateY(Math.PI/2),walls[9].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(2)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(8)),gridMapHelper.addLaser(0,2,laserFences[0]),gridMapHelper.addLaser(5,9,laserFences[1]),gridMapHelper.addLaser(8,1,laserFences[2]),gridMapHelper.addLaser(8,8,laserFences[3]),laserFences[0].rotateY(Math.PI/2),laserFences[2].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(3,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(3,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(9)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addObstacle(9,9,9,9),gridMapHelper.addObstacle(9,9,0,0),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),0,gridMapHelper.getGlobalZPositionFromCoord(3)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(7)),traps[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addTrap(3,4,traps[0]),gridMapHelper.addTrap(7,5,traps[1]),gridMapHelper.addTrap(8,3,traps[2]),gridMapHelper.addTrap(1,7,traps[3]),gridMapHelper.addTrap(1,6,traps[4]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),scene.add(traps[4]),walls=[];const e=new $4xklQ.BoxGeometry(10,2,2),t=new $4xklQ.BoxGeometry(2,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(6,2,2),s=new $4xklQ.BoxGeometry(12,2,2),o=new $4xklQ.BoxGeometry(14,2,2),l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(5,1),l[3].map.repeat.set(5,1),l[4].map.repeat.set(5,1),l[5].map.repeat.set(5,1);const i=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(3,1),p[3].map.repeat.set(3,1),p[4].map.repeat.set(3,1),p[5].map.repeat.set(3,1);const d=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];d[2].map.repeat.set(6,1),d[3].map.repeat.set(6,1),d[4].map.repeat.set(6,1),d[5].map.repeat.set(6,1);const c=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];c[2].map.repeat.set(7,1),c[3].map.repeat.set(7,1),c[4].map.repeat.set(7,1),c[5].map.repeat.set(7,1),walls.push(new $4xklQ.Mesh(e,l)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(r,p)),walls.push(new $4xklQ.Mesh(s,d)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(o,c)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(1.5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(2.5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(1.5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(3.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(3.5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[11].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[12].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[13].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[14].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[15].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addObstacle(0,4,9,9),gridMapHelper.addObstacle(0,0,1,2),gridMapHelper.addObstacle(1,1,1,3),gridMapHelper.addObstacle(0,5,0,0),gridMapHelper.addObstacle(1,2,5,5),gridMapHelper.addObstacle(3,4,6,6),gridMapHelper.addObstacle(3,4,3,3),gridMapHelper.addObstacle(5,5,2,2),gridMapHelper.addObstacle(5,5,7,7),gridMapHelper.addObstacle(6,6,2,8),gridMapHelper.addObstacle(8,9,8,8),gridMapHelper.addObstacle(8,8,7,7),gridMapHelper.addObstacle(8,9,1,1),gridMapHelper.addObstacle(8,8,2,2),gridMapHelper.addObstacle(9,9,5,5),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[10].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),scene.add(walls[11]),scene.add(walls[12]),scene.add(walls[13]),scene.add(walls[14]),scene.add(walls[15]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(7)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addLaser(2,3,laserFences[0]),gridMapHelper.addLaser(7,7,laserFences[1]),gridMapHelper.addLaser(7,2,laserFences[2]),gridMapHelper.addLaser(8,9,laserFences[3]),gridMapHelper.addLaser(8,0,laserFences[4]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),laserFences[2].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),0,gridMapHelper.getGlobalZPositionFromCoord(6)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addObstacle(2,2,6,6),gridMapHelper.addObstacle(4,4,5,5),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(6)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addTrap(1,6,traps[0]),gridMapHelper.addTrap(9,2,traps[2]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=new $4xklQ.BoxGeometry(12,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(2,2,2),s=new $4xklQ.BoxGeometry(8,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(3,1),o[3].map.repeat.set(3,1),o[4].map.repeat.set(3,1),o[5].map.repeat.set(3,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(6,1),l[3].map.repeat.set(6,1),l[4].map.repeat.set(6,1),l[5].map.repeat.set(6,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(2,1),i[3].map.repeat.set(2,1),i[4].map.repeat.set(2,1),i[5].map.repeat.set(2,1);const n=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(4,1),p[3].map.repeat.set(4,1),p[4].map.repeat.set(4,1),p[5].map.repeat.set(4,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(8.5)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[11].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2.5)),gridMapHelper.addObstacle(1,1,1,3),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(3,8,6,6),gridMapHelper.addObstacle(4,4,7,8),gridMapHelper.addObstacle(5,5,4,5),gridMapHelper.addObstacle(6,6,8,9),gridMapHelper.addObstacle(3,3,8,8),gridMapHelper.addObstacle(8,8,4,4),gridMapHelper.addObstacle(7,7,1,4),walls[0].rotateY(Math.PI/2),walls[1].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),walls[8].rotateY(Math.PI/2),walls[11].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),scene.add(walls[11]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(0)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addLaser(1,4,laserFences[0]),gridMapHelper.addLaser(1,0,laserFences[1]),gridMapHelper.addLaser(2,8,laserFences[2]),gridMapHelper.addLaser(4,4,laserFences[3]),gridMapHelper.addLaser(6,7,laserFences[4]),laserFences[2].rotateY(Math.PI/2),laserFences[3].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(3,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(3,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(3),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(0)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(1)),objectives[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(3)),gridMapHelper.addObstacle(0,0,0,0),gridMapHelper.addObstacle(9,9,1,1),gridMapHelper.addObstacle(9,9,3,3),scene.add(objectives[0]),scene.add(objectives[1]),scene.add(objectives[2]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(1)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addTrap(0,1,traps[0]),gridMapHelper.addTrap(9,2,traps[1]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(14,2,2),t=new $4xklQ.BoxGeometry(10,2,2),a=new $4xklQ.BoxGeometry(6,2,2),r=new $4xklQ.BoxGeometry(4,2,2),s=new $4xklQ.BoxGeometry(2,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(7,1),o[3].map.repeat.set(7,1),o[4].map.repeat.set(7,1),o[5].map.repeat.set(7,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(5,1),l[3].map.repeat.set(5,1),l[4].map.repeat.set(5,1),l[5].map.repeat.set(5,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(3,1),i[3].map.repeat.set(3,1),i[4].map.repeat.set(3,1),i[5].map.repeat.set(3,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()});walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(1)),gridMapHelper.addObstacle(1,1,2,8),gridMapHelper.addObstacle(3,3,3,9),gridMapHelper.addObstacle(5,5,2,8),gridMapHelper.addObstacle(1,5,1,1),gridMapHelper.addObstacle(6,8,8,8),gridMapHelper.addObstacle(8,9,6,6),gridMapHelper.addObstacle(7,8,4,4),gridMapHelper.addObstacle(7,8,2,2),gridMapHelper.addObstacle(6,6,6,6),gridMapHelper.addObstacle(7,7,1,1),walls[0].rotateY(Math.PI/2),walls[1].rotateY(Math.PI/2),walls[2].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(6)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addLaser(2,8,laserFences[0]),gridMapHelper.addLaser(4,3,laserFences[1]),gridMapHelper.addLaser(6,9,laserFences[2]),gridMapHelper.addLaser(7,6,laserFences[3]),gridMapHelper.addLaser(7,0,laserFences[4]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),laserFences[3].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(3,!1),changeLaserActiveStatus(4,!0)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(3,!0),changeLaserActiveStatus(4,!1))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[2],gridMapHelper)?(objectives[2].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[2].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||objectives[2].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,objectives[2].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.obstacles[2].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!(objectives[0].visible||objectives[1].visible||objectives[2].visible),setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),document.getElementById("winMessage").innerText=textVariations[sceneProperties.lang][7],document.getElementById("advanceBtn").innerText=textVariations[sceneProperties.lang][8],timerUpadate=setInterval(updateTime,1e3)})),window.addEventListener("resize",(()=>{(0,$7FzN9.resizeCanvasToDisplaySize)(renderer,camera)}));const finishEarlierButton=document.getElementById("finishEarlier"),execBtn=document.getElementById("execBtn");execBtn.addEventListener("click",(async function(){const codeParsed=(0,$kXIAH.default)((0,$7TtGC.convertCode)(sceneProperties.lang,editor.state.doc.toString()));console.log(codeParsed),cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),$7FzN9.smoke.deactiveSmokes(),sceneProperties.cancelExecution=!1,actor.getObjectByName("eve").position.y=0,null!=traps&&(0,$dhcg3.trapsDeactivation)(traps),null!=codeParsed&&((0,$bsNDL.updateTheme)(editor,1),resetLevel(),sceneProperties.executing=!0,this.disabled=!0,await eval(codeParsed),winCondition()?($bsNDL.readOnlyState.doc=editor.state.doc,editor.setState($bsNDL.readOnlyState),document.getElementById("winMessage").classList.remove("invisible"),document.getElementById("advanceBtn").classList.remove("invisible"),document.getElementById("resetBtn").disabled=!0,finishEarlierButton.disabled=!0,clearInterval(timerUpadate),sceneProperties.phase==phaseGeneration.length-1&&(0,$hfAuX.configureDataAndUpload)(document.getElementById("name"),document.getElementById("age"),"gender",document.getElementById("subBtn"),sceneProperties.timer,"../","Nível 3/Completo",document.getElementById("second-user"))):((0,$bsNDL.updateTheme)(editor,0),sceneProperties.executing=!1,this.disabled=!1))}));const resetBtn=document.getElementById("resetBtn");resetBtn.addEventListener("click",(()=>{cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),$7FzN9.smoke.deactiveSmokes(),(0,$bsNDL.updateTheme)(editor,0),sceneProperties.cancelExecution=!0,actor.getObjectByName("eve").position.y=0,0!=$7FzN9.materialColor.length&&(0,$7FzN9.resetRobotColor)(actor),resetLevel()}));const advanceBtn=document.getElementById("advanceBtn");advanceBtn.addEventListener("click",(e=>{sceneProperties.phase++,sceneProperties.phasephaseGeneration.length?phaseGeneration.length:sceneProperties.phase,logModal.show())}));const reloadBtn=document.getElementById("reloadBtn");reloadBtn.addEventListener("click",(e=>{void 0!==setLaserStatesInterval&&(clearInterval(setLaserStatesInterval),setLaserStatesInterval=void 0),void 0!==setSpikeTrapStateInterval&&(clearInterval(setSpikeTrapStateInterval),setSpikeTrapStateInterval=void 0),void 0!==timerUpadate&&(clearInterval(timerUpadate),timerUpadate=void 0),cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),sceneProperties.phasephaseGeneration.length?phaseGeneration.length:sceneProperties.phase})),finishEarlierButton.addEventListener("click",(e=>{confirm(textVariations[sceneProperties.lang][9])&&(clearInterval(timerUpadate),(0,$hfAuX.configureDataAndUpload)(document.getElementById("name"),document.getElementById("age"),"gender",document.getElementById("subBtn"),sceneProperties.timer,"../",`Nível 3/Fase ${sceneProperties.phase+1}`,document.getElementById("second-user")),logModal.show())}));let normalSpeedBtn=document.getElementById("normalSpeed"),fastSpeedBtn=document.getElementById("fastSpeed");normalSpeedBtn.addEventListener("click",(function(){this.disabled=!0,fastSpeedBtn.disabled=!1,sceneProperties.mult=1})),fastSpeedBtn.addEventListener("click",(function(){this.disabled=!0,normalSpeedBtn.disabled=!1,sceneProperties.mult=6})),(0,$7FzN9.resizeCanvasToDisplaySize)(renderer,camera),phaseGeneration[sceneProperties.phase](),animate()})),parcelRequire.register("kXIAH",(function(e,t){$parcel$export(e.exports,"default",(()=>g));const a=[["Código inválido:","linha:","(Condição inválida)","(Bloco é aberto mas nunca é fechado)","(Bloco é fechado mas nunca é aberto)","Aviso: O código tem mais linhas do que o robô pode processar. Tente rescrever seu código em","linhas ou menos."],["Invalid code:","line:","(Invalid condition)","(Block is opened but never closed)","(Block is closed but never opened)","Warning: The code has more lines than the robot can process. Try rewriting your code in","lines or less."]];let r=window.location.href.includes("english")?1:0;const s=[{filter:new RegExp("^andarFrente(\\s+)?\\((\\s+)?(0|[1-9][0-9]*)(\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^andarTras(\\s+)?\\((\\s+)?(0|[1-9][0-9]*)(\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^girarEsquerda(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^girarDireita(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^darMeiaVolta(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^coletarCristal(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"normal"},{filter:new RegExp("^desativarLaserAzul(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"mustCondition"},{filter:new RegExp("^desativarLaserVermelho(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"mustCondition"},{filter:new RegExp("^se(\\s+)?\\((\\s+)?.+\\)$"),type:"conditional"},{filter:new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{$"),type:"conditional&&blockValidation"},{filter:new RegExp("^senão$"),type:"elseValidation"},{filter:new RegExp("^senão(\\s+)?{$"),type:"elseValidation&&blockValidation"},{filter:new RegExp("^}$"),type:"closeBlockValidation"},{filter:new RegExp("^{$"),type:"blockValidation"}],o=[new RegExp("^laserAzulAtivo(\\s+)?\\((\\s+)?\\)(\\s+)?$"),new RegExp("^laserVermelhoAtivo(\\s+)?\\((\\s+)?\\)(\\s+)?$")];function l(e){let t=e.trim(),a=e.substring(t.indexOf("(")+1,t.lastIndexOf(")"));for(let e=0;e=0;r--)if(e[r].includes("{")){a=!0;break}return a}function p(e,t){let a=!1,r=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?(\\s+)?$"),s=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)$"),o=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{[^}]*?$"),l=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{$"),i=new RegExp("^senão$"),n=new RegExp("^senão(\\s+)?{$"),p=new RegExp("^senão(\\s+)?.+(\\s+)?$"),d=new RegExp("^senão(\\s+)?{[^]*?$"),c=null;for(let a=t-1;a>=0;a--)if(s.test(e[a].trim())||l.test(e[a].trim())||i.test(e[a].trim())||n.test(e[a].trim())){c=a;break}if(null!=c){let s="";for(let a=c;a=0;a--)if(s.test(e[a].trim())||l.test(e[a].trim())){i=a;break}if(null!=i){let s="";for(let a=i;a3?0:e<0?3:e}for(let p=0;p0&&w>t){document.getElementById("consoleArea").innerText+=`${a[r][5]} ${t} ${a[r][6]}\n`,b=!1;break}}}return b?(o+=`}${g}runCode()\n`,o):null}})),parcelRequire.register("j0YSa",(function(e,t){$parcel$export(e.exports,"default",(()=>n));var a=parcelRequire("4xklQ");parcelRequire("acMZl");class r extends a.Mesh{constructor(){super(new a.BoxGeometry(.5,2,.15),new a.MeshPhongMaterial({color:"white"}))}}class s extends a.Mesh{constructor(){super(new a.TorusGeometry(.15,.05,10,20),new a.MeshPhongMaterial({color:"black"}))}}class o extends a.Mesh{constructor(){super(new a.BoxGeometry(.5,2,.1),new a.MeshPhongMaterial({color:"white"}))}}class l extends a.Mesh{constructor(e){super(new a.CylinderGeometry(.1,.1,2,64,64),new a.MeshPhongMaterial({emissive:e,color:e,emissiveIntensity:1,transparent:!0,opacity:.7}))}}class i extends a.Object3D{constructor(e){super(),this.index=0,this.x=0,this.z=0,this.state=e,this.active=!0,this.type=e;let t=new o;t.rotateX(-Math.PI/2),t.position.set(0,-.95,0);let a=new r;a.position.set(0,0,-.93);let i=new r;i.position.set(0,0,.93);let n=new s;n.position.set(0,.6,.85);let p=new s;p.position.set(0,.6,-.85);let d=new s;d.position.set(0,0,.85);let c=new s;c.position.set(0,0,-.85);let m=new s;m.position.set(0,-.6,.85);let g=new s;g.position.set(0,-.6,-.85);let M=new l("blue");M.rotateX(-Math.PI/2),M.position.set(0,.6,0);let b=new l("blue");b.rotateX(-Math.PI/2),b.position.set(0,0,0);let w=new l("blue");w.rotateX(-Math.PI/2),w.position.set(0,-.6,0),this.blueLasers=[M,b,w];let u=new l("red");u.rotateX(-Math.PI/2),u.position.set(0,.6,0);let h=new l("red");h.rotateX(-Math.PI/2),h.position.set(0,0,0);let x=new l("red");return x.rotateX(-Math.PI/2),x.position.set(0,-.6,0),this.redLasers=[u,h,x],"blue"==e?(this.blueLasers.forEach((e=>e.visible=!0)),this.redLasers.forEach((e=>e.visible=!1)),this.state="blue"):"red"!=e&&"multiColor"!=e||(this.blueLasers.forEach((e=>e.visible=!1)),this.state="red"),this.add(t),this.add(a),this.add(i),this.add(n),this.add(p),this.add(d),this.add(c),this.add(m),this.add(g),this.add(M),this.add(b),this.add(w),this.add(u),this.add(h),this.add(x),this}setVisible(){this.active=!0}setNotVisible(){this.blueLasers.forEach((e=>e.visible=!1)),this.redLasers.forEach((e=>e.visible=!1)),this.active=!1}setBlue(){1==this.active&&(this.blueLasers.forEach((e=>e.visible=!0)),this.redLasers.forEach((e=>e.visible=!1)),this.state="blue")}setRed(){1==this.active&&(this.blueLasers.forEach((e=>e.visible=!1)),this.redLasers.forEach((e=>e.visible=!0)),this.state="red")}}var n=i})),parcelRequire.register("9fFOq",(function(e,t){e.exports=new URL("../"+parcelRequire("dRo73").resolve("53w00"),import.meta.url).toString()}));var $e78e6624b9c65fa7$exports={};parcelRequire("dRo73").register(JSON.parse('{"7e22K":"index.5dd934c5.js","53w00":"metalWallLvl3.c6e3c749.png","gyvkO":"index.708319b4.js","kCPXe":"index.5a96cabf.js"}')),parcelRequire("3YhQm"); \ No newline at end of file +function $parcel$export(e,t,a,r){Object.defineProperty(e,t,{get:a,set:r,enumerable:!0,configurable:!0})}var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequiredf3e;null==parcelRequire&&(parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var t=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,t.call(a.exports,a,a.exports),a.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r},parcelRequire.register=function(e,t){$parcel$inits[e]=t},$parcel$global.parcelRequiredf3e=parcelRequire),parcelRequire.register("3YhQm",(function(module,exports){var $4xklQ=parcelRequire("4xklQ"),$bsNDL=parcelRequire("bsNDL"),$7FzN9=parcelRequire("7FzN9"),$1M2iF=parcelRequire("1M2iF"),$kXIAH=parcelRequire("kXIAH"),$j0YSa=parcelRequire("j0YSa"),$dhcg3=parcelRequire("dhcg3");parcelRequire("iO2wr");var $hfAuX=parcelRequire("hfAuX"),$8TDdX=parcelRequire("8TDdX"),$7TtGC=parcelRequire("7TtGC");const sceneProperties={cancelExecution:!1,timer:0,phase:5,executing:!1,mult:1,lang:window.location.href.includes("english")?1:0};function generatePhaseTitle(){return 1===sceneProperties.lang?`Level 3 - Round ${sceneProperties.phase+1} of 8`:`Nível 3 - Fase ${sceneProperties.phase+1} de 8`}const textVariations=[[generatePhaseTitle,"Faça o robô chegar ao cristal, após isso, o colete.","Faça o robô chegar aos cristais, após isso, os colete.","Robô não está em frente ao cristal.\n","Cristal coletado.\n","Cristal coletado com sucesso.\n","Todos os cristais coletados com sucesso!\n","Nível Concluído","Finalizar","Deseja realmente finalizar a prática?","O robô entrou em curto circuito por tentar desativar um laser azul que não existe.\n","O robô entrou em curto circuito por tentar desativar um laser vermelho que não existe.\n"],[generatePhaseTitle,"Make the robot reach the crystal and collect it.","Make the robot reach the crystals and collect them.","Robot is not in front of the crystal.\n","Crystal collected.\n","Crystal successfully collected.\n","All crystals collected successfully!\n","Level Completed","Finish","Do you really want to finish the practice?","The robot short-circuited after trying to deactivate a blue laser that doesn't exist.\n","The robot short-circuited after trying to deactivate a red laser that doesn't exist.\n"]],commandsVariations=[["andarFrente(?)\n","andarTras(?)\n","girarEsquerda()\n","girarDireita()\n","darMeiaVolta()\n","coletarCristal()\n","desativarLaserAzul()\n","desativarLaserVermelho()\n","laserAzulAtivo()","laserVermelhoAtivo()","se(?){\n\n}\nsenão{\n\n}\n","se(?){\n\n}\n"],["moveForward(?)\n","moveBackwards(?)\n","rotateLeft()\n","rotateRight()\n","turnBack()","collectCrystal()\n","disableBlueLaser()\n","disableRedLaser()\n","isBlueLaserActive()","isRedLaserActive()","if(?){\n\n}\nelse{\n\n}\n","if(?){\n\n}\n"]],logModal=new(0,$8TDdX.Modal)(document.getElementById("logModal"));let timerUpadate,laserState,setLaserStates,setLaserStatesInterval,spikeTrapState,setSpikeTrapState,setSpikeTrapStateInterval;function updateTime(){sceneProperties.timer++}const editor=(0,$bsNDL.generateDefaultEditor)(document.getElementById("editorArea")),andarFrenteBtn=document.getElementById("andarFrente");andarFrenteBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][0]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][0]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const andarTrasBtn=document.getElementById("andarTras");andarTrasBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][1]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][1]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const girarEsquerdaBtn=document.getElementById("girarEsquerda");girarEsquerdaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][2]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][2]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const girarDireitaBtn=document.getElementById("girarDireita");girarDireitaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][3]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][3]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const darMeiaVoltaBtn=document.getElementById("darMeiaVolta");darMeiaVoltaBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][4]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][4]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const desativarLaserAzulBtn=document.getElementById("desativarLaserAzul");desativarLaserAzulBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][6]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][6]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const desativarLaserVermelhoBtn=document.getElementById("desativarLaserVermelho");desativarLaserVermelhoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][7]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][7]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const coletarCristalBtn=document.getElementById("coletarCristal");coletarCristalBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][5]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][5]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const laserAzulAtivoBtn=document.getElementById("laserAzulAtivo");laserAzulAtivoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][8]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][8]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const laserVermelhoAtivoBtn=document.getElementById("laserVermelhoAtivo");laserVermelhoAtivoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][9]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][9]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const condicaoBtn=document.getElementById("condicao");condicaoBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][11]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][11]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const condicaoFullBtn=document.getElementById("condicaoFull");condicaoFullBtn.addEventListener("click",(()=>{let e,t,a=editor.state.selection.main.anchor,r=editor.state.selection.main.head;a<=r?(e=editor.state.update({changes:{from:a,to:r,insert:commandsVariations[sceneProperties.lang][10]}}),t=editor.state.doc.lineAt(a).number):(e=editor.state.update({changes:{from:r,to:a,insert:commandsVariations[sceneProperties.lang][10]}}),t=editor.state.doc.lineAt(r).number),editor.dispatch(e),editor.focus();let s=editor.state.doc.line(t+1).to;editor.dispatch({selection:{anchor:s}})}));const consoleElement=document.getElementById("consoleArea"),{renderer:renderer,scene:scene,camera:camera,controls:controls}=(0,$7FzN9.generateDefaultSceneObjects)(document.getElementById("phaseView")),gridMapHelper=new(0,$1M2iF.default),plane=gridMapHelper.createGridPlane(),actor=(0,$7FzN9.loadDefaultActor)(),wallTexture=(new $4xklQ.TextureLoader).load(new URL(parcelRequire("9fFOq")).toString());let objectives,walls,traps,laserFences,coletarCristal,resetLevel,winCondition;function changeLaserActiveStatus(e,t){gridMapHelper.lasers[e].active=t,0==t?laserFences[e].setNotVisible():"red"==gridMapHelper.lasers[e].state?(laserFences[e].setVisible(),laserFences[e].setRed()):(laserFences[e].setVisible(),laserFences[e].setBlue())}function changeLaserStateStatus(e,t){gridMapHelper.lasers.forEach((e=>{"multiColor"==e.type&&(e.state=t)})),"blue"==t?laserFences.forEach((e=>{"multiColor"==e.type&&e.setBlue()})):"red"==t&&laserFences.forEach((e=>{"multiColor"==e.type&&e.setRed()}))}function lasersVisualRestart(){for(let e=0;e10?10:e;await(0,$7FzN9.translateActor)(actor,t,gridMapHelper,sceneProperties,consoleElement)}async function andarTras(e){let t=e>10?10:e;await(0,$7FzN9.translateActor)(actor,-t,gridMapHelper,sceneProperties,consoleElement)}async function girarEsquerda(){await(0,$7FzN9.rotateActor)(actor,90,sceneProperties,1)}async function girarDireita(){await(0,$7FzN9.rotateActor)(actor,90,sceneProperties,-1)}async function darMeiaVolta(){await(0,$7FzN9.rotateActor)(actor,180,sceneProperties,1)}function laserAzulAtivo(){const e=new $4xklQ.Vector3;return actor.getObjectByName("interactionReference").getWorldPosition(e),null!=gridMapHelper.detectLaser(e,"blue")}function laserVermelhoAtivo(){const e=new $4xklQ.Vector3;return actor.getObjectByName("interactionReference").getWorldPosition(e),null!=gridMapHelper.detectLaser(e,"red")}function desativarLaserAzul(){const e=new $4xklQ.Vector3;actor.getObjectByName("interactionReference").getWorldPosition(e);let t=gridMapHelper.detectLaser(e,"blue");null!=t?changeLaserActiveStatus(t,!1):(consoleElement.innerText+=textVariations[sceneProperties.lang][10],sceneProperties.cancelExecution=!0)}function desativarLaserVermelho(){const e=new $4xklQ.Vector3;actor.getObjectByName("interactionReference").getWorldPosition(e);let t=gridMapHelper.detectLaser(e,"red");null!=t?changeLaserActiveStatus(t,!1):(consoleElement.innerText+=textVariations[sceneProperties.lang][11],sceneProperties.cancelExecution=!0)}function badLuck(e,t){const a=new $4xklQ.Vector3(gridMapHelper.getGlobalXPositionFromCoord(e[0]),0,gridMapHelper.getGlobalZPositionFromCoord(e[1]));let r="blue"==t?"red":"blue",s=gridMapHelper.detectLaser(a,t);null!=s&&("multiColor"==gridMapHelper.lasers[s].type?(gridMapHelper.lasers[s].state=r,"blue"==r?laserFences[s].setBlue():laserFences[s].setRed()):gridMapHelper.lasers[s].active?(gridMapHelper.lasers[s].active=!1,laserFences[s].setNotVisible()):(gridMapHelper.lasers[s].active=!0,laserFences[s].setVisible(),"blue"==gridMapHelper.lasers[s].state?laserFences[s].setBlue():laserFences[s].setRed()))}wallTexture.wrapS=$4xklQ.RepeatWrapping,wallTexture.wrapT=$4xklQ.RepeatWrapping,scene.add(plane),scene.add(actor);const phaseGeneration=[];function removeObjects(e,t,a,r){if(null!=e)for(let t=0;t{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][1],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(1),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addObstacle(9,9,5,5),scene.add(objectives[0]),walls=[];const e=new $4xklQ.BoxGeometry(18,2,2),t=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];t[2].map.repeat.set(9,1),t[3].map.repeat.set(9,1),t[4].map.repeat.set(9,1),t[5].map.repeat.set(9,1),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),scene.add(walls[0]),scene.add(walls[1]),gridMapHelper.addObstacle(1,9,4,4),gridMapHelper.addObstacle(1,9,6,6),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addLaser(7,5,laserFences[0]),scene.add(laserFences[0]),laserState=0,setLaserStates=()=>{changeLaserStateStatus(0,0==laserState?"blue":"red")},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][5],gridMapHelper.obstacles[0].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3])},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(7)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(3)),gridMapHelper.addObstacle(4,4,7,7),gridMapHelper.addObstacle(4,4,3,3),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addTrap(3,5,traps[0]),scene.add(traps[0]),(0,$dhcg3.trapsActivation)(traps),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];t[2].map.repeat.set(3,1),t[3].map.repeat.set(3,1),t[4].map.repeat.set(3,1),t[5].map.repeat.set(3,1),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls.push(new $4xklQ.Mesh(e,t)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),gridMapHelper.addObstacle(1,3,4,4),gridMapHelper.addObstacle(1,3,6,6),gridMapHelper.addObstacle(3,3,6,8),gridMapHelper.addObstacle(3,3,2,4),gridMapHelper.addObstacle(4,4,8,8),gridMapHelper.addObstacle(4,4,2,2),gridMapHelper.addObstacle(5,5,2,4),gridMapHelper.addObstacle(5,5,6,8),gridMapHelper.addObstacle(6,7,6,6),gridMapHelper.addObstacle(6,7,4,4),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addLaser(4,4,laserFences[0]),gridMapHelper.addLaser(4,6,laserFences[1]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(3)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addObstacle(9,9,3,3),gridMapHelper.addObstacle(9,9,6,6),scene.add(objectives[0]),scene.add(objectives[1]),traps=[];new $4xklQ.BoxGeometry(2,1,2),new $4xklQ.MeshLambertMaterial({color:"rgb(255,0,0)"});traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(2)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(7)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),traps[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addTrap(4,2,traps[0]),gridMapHelper.addTrap(4,7,traps[1]),gridMapHelper.addTrap(6,4,traps[2]),gridMapHelper.addTrap(6,5,traps[3]),gridMapHelper.addTrap(9,2,traps[4]),gridMapHelper.addTrap(9,7,traps[5]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),scene.add(traps[4]),scene.add(traps[5]),walls=[];const e=new $4xklQ.BoxGeometry(10,2,2),t=new $4xklQ.BoxGeometry(12,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(6,2,2),s=new $4xklQ.BoxGeometry(2,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(5,1),o[3].map.repeat.set(5,1),o[4].map.repeat.set(5,1),o[5].map.repeat.set(5,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(6,1),l[3].map.repeat.set(6,1),l[4].map.repeat.set(6,1),l[5].map.repeat.set(6,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(2,1),i[3].map.repeat.set(2,1),i[4].map.repeat.set(2,1),i[5].map.repeat.set(2,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(3,1),n[3].map.repeat.set(3,1),n[4].map.repeat.set(3,1),n[5].map.repeat.set(3,1);const p=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()});walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),gridMapHelper.addObstacle(3,7,9,9),gridMapHelper.addObstacle(3,7,0,0),gridMapHelper.addObstacle(3,3,2,7),gridMapHelper.addObstacle(5,5,4,5),gridMapHelper.addObstacle(5,5,7,7),gridMapHelper.addObstacle(5,5,2,2),gridMapHelper.addObstacle(7,8,7,7),gridMapHelper.addObstacle(7,8,2,2),gridMapHelper.addObstacle(7,9,4,4),gridMapHelper.addObstacle(7,9,5,5),laserFences=[],laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(6)),laserFences[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(8)),gridMapHelper.addLaser(3,1,laserFences[0]),gridMapHelper.addLaser(3,8,laserFences[1]),gridMapHelper.addLaser(7,1,laserFences[2]),gridMapHelper.addLaser(7,3,laserFences[3]),gridMapHelper.addLaser(7,6,laserFences[4]),gridMapHelper.addLaser(7,8,laserFences[5]),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),scene.add(laserFences[5]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(0,!0),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(5,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(0,!1),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(5,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][1],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(1),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),0,gridMapHelper.getGlobalZPositionFromCoord(9)),gridMapHelper.addObstacle(8,8,9,9),scene.add(objectives[0]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),0,gridMapHelper.getGlobalZPositionFromCoord(1)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addTrap(0,4,traps[0]),gridMapHelper.addTrap(3,5,traps[1]),gridMapHelper.addTrap(5,1,traps[2]),gridMapHelper.addTrap(7,5,traps[3]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),walls=[];const e=new $4xklQ.BoxGeometry(12,2,2),t=new $4xklQ.BoxGeometry(6,2,2),a=new $4xklQ.BoxGeometry(10,2,2),r=new $4xklQ.BoxGeometry(8,2,2),s=new $4xklQ.BoxGeometry(20,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(6,1),o[3].map.repeat.set(6,1),o[4].map.repeat.set(6,1),o[5].map.repeat.set(6,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(3,1),l[3].map.repeat.set(3,1),l[4].map.repeat.set(3,1),l[5].map.repeat.set(3,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(5,1),i[3].map.repeat.set(5,1),i[4].map.repeat.set(5,1),i[5].map.repeat.set(5,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(4,1),n[3].map.repeat.set(4,1),n[4].map.repeat.set(4,1),n[5].map.repeat.set(4,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(10,1),p[3].map.repeat.set(10,1),p[4].map.repeat.set(10,1),p[5].map.repeat.set(10,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2.5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2.5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),gridMapHelper.addObstacle(0,5,0,0),gridMapHelper.addObstacle(1,1,4,8),gridMapHelper.addObstacle(1,3,2,2),gridMapHelper.addObstacle(3,3,2,4),gridMapHelper.addObstacle(3,3,6,9),gridMapHelper.addObstacle(5,5,2,4),gridMapHelper.addObstacle(5,5,6,8),gridMapHelper.addObstacle(7,7,1,4),gridMapHelper.addObstacle(7,7,6,9),gridMapHelper.addObstacle(9,9,0,9),walls[1].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[4].rotateY(Math.PI/2),walls[5].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),walls[8].rotateY(Math.PI/2),walls[9].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(7)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),gridMapHelper.addLaser(5,5,laserFences[0]),gridMapHelper.addLaser(8,7,laserFences[1]),gridMapHelper.addLaser(5,9,laserFences[2]),laserFences[1].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][5],gridMapHelper.obstacles[0].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3])},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(0)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addObstacle(0,0,0,0),gridMapHelper.addObstacle(9,9,7,7),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(6)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addTrap(0,6,traps[0]),gridMapHelper.addTrap(3,6,traps[1]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=new $4xklQ.BoxGeometry(14,2,2),a=new $4xklQ.BoxGeometry(2,2,2),r=(new $4xklQ.BoxGeometry(10,2,2),new $4xklQ.BoxGeometry(4,2,2)),s=new $4xklQ.BoxGeometry(12,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(3,1),o[3].map.repeat.set(3,1),o[4].map.repeat.set(3,1),o[5].map.repeat.set(3,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(7,1),l[3].map.repeat.set(7,1),l[4].map.repeat.set(7,1),l[5].map.repeat.set(7,1);const i=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(6,1),p[3].map.repeat.set(6,1),p[4].map.repeat.set(6,1),p[5].map.repeat.set(6,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(4.5),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addObstacle(1,1,4,6),gridMapHelper.addObstacle(0,2,9,9),gridMapHelper.addObstacle(2,4,4,4),gridMapHelper.addObstacle(2,7,1,1),gridMapHelper.addObstacle(4,6,3,3),gridMapHelper.addObstacle(6,6,2,2),gridMapHelper.addObstacle(3,8,7,7),gridMapHelper.addObstacle(5,6,8,8),gridMapHelper.addObstacle(8,9,9,9),gridMapHelper.addObstacle(9,9,0,6),gridMapHelper.addObstacle(1,1,2,2),walls[0].rotateY(Math.PI/2),walls[9].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(2)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(1)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(8)),gridMapHelper.addLaser(0,2,laserFences[0]),gridMapHelper.addLaser(5,9,laserFences[1]),gridMapHelper.addLaser(8,1,laserFences[2]),gridMapHelper.addLaser(8,8,laserFences[3]),laserFences[0].rotateY(Math.PI/2),laserFences[2].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(3,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(3,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(9)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addObstacle(9,9,9,9),gridMapHelper.addObstacle(9,9,0,0),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),0,gridMapHelper.getGlobalZPositionFromCoord(4)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),0,gridMapHelper.getGlobalZPositionFromCoord(5)),traps[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),0,gridMapHelper.getGlobalZPositionFromCoord(3)),traps[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(7)),traps[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(6)),gridMapHelper.addTrap(3,4,traps[0]),gridMapHelper.addTrap(7,5,traps[1]),gridMapHelper.addTrap(8,3,traps[2]),gridMapHelper.addTrap(1,7,traps[3]),gridMapHelper.addTrap(1,6,traps[4]),scene.add(traps[0]),scene.add(traps[1]),scene.add(traps[2]),scene.add(traps[3]),scene.add(traps[4]),walls=[];const e=new $4xklQ.BoxGeometry(10,2,2),t=new $4xklQ.BoxGeometry(2,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(6,2,2),s=new $4xklQ.BoxGeometry(12,2,2),o=new $4xklQ.BoxGeometry(14,2,2),l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(5,1),l[3].map.repeat.set(5,1),l[4].map.repeat.set(5,1),l[5].map.repeat.set(5,1);const i=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(3,1),p[3].map.repeat.set(3,1),p[4].map.repeat.set(3,1),p[5].map.repeat.set(3,1);const d=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];d[2].map.repeat.set(6,1),d[3].map.repeat.set(6,1),d[4].map.repeat.set(6,1),d[5].map.repeat.set(6,1);const c=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];c[2].map.repeat.set(7,1),c[3].map.repeat.set(7,1),c[4].map.repeat.set(7,1),c[5].map.repeat.set(7,1),walls.push(new $4xklQ.Mesh(e,l)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(r,p)),walls.push(new $4xklQ.Mesh(s,d)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(o,c)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(a,n)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls.push(new $4xklQ.Mesh(t,i)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(9)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(1.5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(2.5),1,gridMapHelper.getGlobalZPositionFromCoord(0)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(1.5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(3.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(3.5),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[11].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[12].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[13].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(7)),walls[14].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[15].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addObstacle(0,4,9,9),gridMapHelper.addObstacle(1,1,1,3),gridMapHelper.addObstacle(0,5,0,0),gridMapHelper.addObstacle(1,2,5,5),gridMapHelper.addObstacle(3,4,6,6),gridMapHelper.addObstacle(3,4,3,3),gridMapHelper.addObstacle(5,5,2,2),gridMapHelper.addObstacle(5,5,7,7),gridMapHelper.addObstacle(6,6,2,8),gridMapHelper.addObstacle(8,9,8,8),gridMapHelper.addObstacle(8,8,7,7),gridMapHelper.addObstacle(8,9,1,1),gridMapHelper.addObstacle(8,8,2,2),gridMapHelper.addObstacle(9,9,5,5),walls[2].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[10].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),scene.add(walls[11]),scene.add(walls[12]),scene.add(walls[13]),scene.add(walls[14]),scene.add(walls[15]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(7)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addLaser(2,3,laserFences[0]),gridMapHelper.addLaser(7,7,laserFences[1]),gridMapHelper.addLaser(7,2,laserFences[2]),gridMapHelper.addLaser(8,9,laserFences[3]),gridMapHelper.addLaser(8,0,laserFences[4]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),laserFences[2].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(1,!0),changeLaserActiveStatus(2,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(1,!1),changeLaserActiveStatus(2,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(2),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),0,gridMapHelper.getGlobalZPositionFromCoord(6)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),0,gridMapHelper.getGlobalZPositionFromCoord(5)),gridMapHelper.addObstacle(2,2,6,6),gridMapHelper.addObstacle(4,4,5,5),scene.add(objectives[0]),scene.add(objectives[1]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),0,gridMapHelper.getGlobalZPositionFromCoord(6)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addTrap(1,6,traps[0]),gridMapHelper.addTrap(9,2,traps[2]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(6,2,2),t=new $4xklQ.BoxGeometry(12,2,2),a=new $4xklQ.BoxGeometry(4,2,2),r=new $4xklQ.BoxGeometry(2,2,2),s=new $4xklQ.BoxGeometry(8,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(3,1),o[3].map.repeat.set(3,1),o[4].map.repeat.set(3,1),o[5].map.repeat.set(3,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(6,1),l[3].map.repeat.set(6,1),l[4].map.repeat.set(6,1),l[5].map.repeat.set(6,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(2,1),i[3].map.repeat.set(2,1),i[4].map.repeat.set(2,1),i[5].map.repeat.set(2,1);const n=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),p=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];p[2].map.repeat.set(4,1),p[3].map.repeat.set(4,1),p[4].map.repeat.set(4,1),p[5].map.repeat.set(4,1),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(3)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(5.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(7.5)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(4.5)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(8.5)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[10].position.set(gridMapHelper.getGlobalXPositionFromCoord(8),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[11].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(2.5)),gridMapHelper.addObstacle(1,1,1,3),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(1,1,7,9),gridMapHelper.addObstacle(3,8,6,6),gridMapHelper.addObstacle(4,4,7,8),gridMapHelper.addObstacle(5,5,4,5),gridMapHelper.addObstacle(6,6,8,9),gridMapHelper.addObstacle(3,3,8,8),gridMapHelper.addObstacle(8,8,4,4),gridMapHelper.addObstacle(7,7,1,4),walls[0].rotateY(Math.PI/2),walls[1].rotateY(Math.PI/2),walls[3].rotateY(Math.PI/2),walls[6].rotateY(Math.PI/2),walls[7].rotateY(Math.PI/2),walls[8].rotateY(Math.PI/2),walls[11].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),scene.add(walls[10]),scene.add(walls[11]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(0)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(4)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(7)),gridMapHelper.addLaser(1,4,laserFences[0]),gridMapHelper.addLaser(1,0,laserFences[1]),gridMapHelper.addLaser(2,8,laserFences[2]),gridMapHelper.addLaser(4,4,laserFences[3]),gridMapHelper.addLaser(6,7,laserFences[4]),laserFences[2].rotateY(Math.PI/2),laserFences[3].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(3,!1)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(3,!0))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!objectives[0].visible&&!objectives[1].visible,setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),timerUpadate=setInterval(updateTime,1e3)})),phaseGeneration.push((()=>{document.getElementById("phaseTitle").innerText=textVariations[sceneProperties.lang][0](),document.getElementById("phaseObjective").innerText=textVariations[sceneProperties.lang][2],sceneProperties.executing=!1,camera.position.set(0,15,30),actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),objectives=(0,$7FzN9.loadDefaultObjectives)(3),objectives[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(0)),objectives[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(1)),objectives[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(3)),gridMapHelper.addObstacle(0,0,0,0),gridMapHelper.addObstacle(9,9,1,1),gridMapHelper.addObstacle(9,9,3,3),scene.add(objectives[0]),scene.add(objectives[1]),scene.add(objectives[2]),traps=[],traps.push(new(0,$dhcg3.SpikeTrap)),traps.push(new(0,$dhcg3.SpikeTrap)),traps[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(0),0,gridMapHelper.getGlobalZPositionFromCoord(1)),traps[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(9),0,gridMapHelper.getGlobalZPositionFromCoord(2)),gridMapHelper.addTrap(0,1,traps[0]),gridMapHelper.addTrap(9,2,traps[1]),scene.add(traps[0]),scene.add(traps[1]),walls=[];const e=new $4xklQ.BoxGeometry(14,2,2),t=new $4xklQ.BoxGeometry(10,2,2),a=new $4xklQ.BoxGeometry(6,2,2),r=new $4xklQ.BoxGeometry(4,2,2),s=new $4xklQ.BoxGeometry(2,2,2),o=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];o[2].map.repeat.set(7,1),o[3].map.repeat.set(7,1),o[4].map.repeat.set(7,1),o[5].map.repeat.set(7,1);const l=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];l[2].map.repeat.set(5,1),l[3].map.repeat.set(5,1),l[4].map.repeat.set(5,1),l[5].map.repeat.set(5,1);const i=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];i[2].map.repeat.set(3,1),i[3].map.repeat.set(3,1),i[4].map.repeat.set(3,1),i[5].map.repeat.set(3,1);const n=[new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()}),new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()})];n[2].map.repeat.set(2,1),n[3].map.repeat.set(2,1),n[4].map.repeat.set(2,1),n[5].map.repeat.set(2,1);const p=new $4xklQ.MeshLambertMaterial({map:wallTexture.clone()});walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(e,o)),walls.push(new $4xklQ.Mesh(t,l)),walls.push(new $4xklQ.Mesh(a,i)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(r,n)),walls.push(new $4xklQ.Mesh(s,p)),walls.push(new $4xklQ.Mesh(s,p)),walls[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(1),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(5),1,gridMapHelper.getGlobalZPositionFromCoord(5)),walls[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(3),1,gridMapHelper.getGlobalZPositionFromCoord(1)),walls[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(8)),walls[5].position.set(gridMapHelper.getGlobalXPositionFromCoord(8.5),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[6].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(4)),walls[7].position.set(gridMapHelper.getGlobalXPositionFromCoord(7.5),1,gridMapHelper.getGlobalZPositionFromCoord(2)),walls[8].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(6)),walls[9].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(1)),gridMapHelper.addObstacle(1,1,2,8),gridMapHelper.addObstacle(3,3,3,9),gridMapHelper.addObstacle(5,5,2,8),gridMapHelper.addObstacle(1,5,1,1),gridMapHelper.addObstacle(6,8,8,8),gridMapHelper.addObstacle(8,9,6,6),gridMapHelper.addObstacle(7,8,4,4),gridMapHelper.addObstacle(7,8,2,2),gridMapHelper.addObstacle(6,6,6,6),gridMapHelper.addObstacle(7,7,1,1),walls[0].rotateY(Math.PI/2),walls[1].rotateY(Math.PI/2),walls[2].rotateY(Math.PI/2),scene.add(walls[0]),scene.add(walls[1]),scene.add(walls[2]),scene.add(walls[3]),scene.add(walls[4]),scene.add(walls[5]),scene.add(walls[6]),scene.add(walls[7]),scene.add(walls[8]),scene.add(walls[9]),laserFences=[],laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("blue")),laserFences.push(new(0,$j0YSa.default)("red")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences.push(new(0,$j0YSa.default)("multiColor")),laserFences[0].position.set(gridMapHelper.getGlobalXPositionFromCoord(2),1,gridMapHelper.getGlobalZPositionFromCoord(8)),laserFences[1].position.set(gridMapHelper.getGlobalXPositionFromCoord(4),1,gridMapHelper.getGlobalZPositionFromCoord(3)),laserFences[2].position.set(gridMapHelper.getGlobalXPositionFromCoord(6),1,gridMapHelper.getGlobalZPositionFromCoord(9)),laserFences[3].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(6)),laserFences[4].position.set(gridMapHelper.getGlobalXPositionFromCoord(7),1,gridMapHelper.getGlobalZPositionFromCoord(0)),gridMapHelper.addLaser(2,8,laserFences[0]),gridMapHelper.addLaser(4,3,laserFences[1]),gridMapHelper.addLaser(6,9,laserFences[2]),gridMapHelper.addLaser(7,6,laserFences[3]),gridMapHelper.addLaser(7,0,laserFences[4]),laserFences[0].rotateY(Math.PI/2),laserFences[1].rotateY(Math.PI/2),laserFences[3].rotateY(Math.PI/2),scene.add(laserFences[0]),scene.add(laserFences[1]),scene.add(laserFences[2]),scene.add(laserFences[3]),scene.add(laserFences[4]),laserState=0,setLaserStates=()=>{0==laserState?(changeLaserStateStatus(0,"blue"),changeLaserActiveStatus(2,!0),changeLaserActiveStatus(3,!1),changeLaserActiveStatus(4,!0)):(changeLaserStateStatus(0,"red"),changeLaserActiveStatus(2,!1),changeLaserActiveStatus(3,!0),changeLaserActiveStatus(4,!1))},coletarCristal=()=>{sceneProperties.cancelExecution||((0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[0],gridMapHelper)?(objectives[0].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[0].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[1],gridMapHelper)?(objectives[1].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[1].active=!1):(0,$7FzN9.checkCollision)(actor.getObjectByName("interactionReference"),objectives[2],gridMapHelper)?(objectives[2].visible=!1,consoleElement.innerText+=textVariations[sceneProperties.lang][4],gridMapHelper.obstacles[2].active=!1):consoleElement.innerText+=textVariations[sceneProperties.lang][3],objectives[0].visible||objectives[1].visible||objectives[2].visible||(consoleElement.innerText+=textVariations[sceneProperties.lang][6]))},resetLevel=()=>{actor.position.set(gridMapHelper.getGlobalXPositionFromCoord(0),1,gridMapHelper.getGlobalZPositionFromCoord(5)),actor.rotation.set(0,(0,$7FzN9.degreeToRadians)(90),0),actor.getObjectByName("eve").rotation.set(0,0,0),objectives[0].visible=!0,objectives[1].visible=!0,objectives[2].visible=!0,gridMapHelper.obstacles[0].active=!0,gridMapHelper.obstacles[1].active=!0,gridMapHelper.obstacles[2].active=!0,gridMapHelper.restartLasers(),lasersVisualRestart(),setLaserStates()},winCondition=()=>!(objectives[0].visible||objectives[1].visible||objectives[2].visible),setLaserStatesInterval=setInterval((()=>{sceneProperties.executing||(laserState=(laserState+1)%2,setLaserStates())}),1e3),spikeTrapState=0,setSpikeTrapState=()=>{0==spikeTrapState?(0,$dhcg3.trapsDeactivation)(traps):(0,$dhcg3.trapsActivation)(traps)},setSpikeTrapStateInterval=setInterval((()=>{sceneProperties.executing||(spikeTrapState=(spikeTrapState+1)%2,setSpikeTrapState())}),1e3),document.getElementById("winMessage").innerText=textVariations[sceneProperties.lang][7],document.getElementById("advanceBtn").innerText=textVariations[sceneProperties.lang][8],timerUpadate=setInterval(updateTime,1e3)})),window.addEventListener("resize",(()=>{(0,$7FzN9.resizeCanvasToDisplaySize)(renderer,camera)}));const finishEarlierButton=document.getElementById("finishEarlier"),execBtn=document.getElementById("execBtn");execBtn.addEventListener("click",(async function(){const codeParsed=(0,$kXIAH.default)((0,$7TtGC.convertCode)(sceneProperties.lang,editor.state.doc.toString()));console.log(codeParsed),cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),$7FzN9.smoke.deactiveSmokes(),sceneProperties.cancelExecution=!1,actor.getObjectByName("eve").position.y=0,null!=traps&&(0,$dhcg3.trapsDeactivation)(traps),null!=codeParsed&&((0,$bsNDL.updateTheme)(editor,1),resetLevel(),sceneProperties.executing=!0,this.disabled=!0,await eval(codeParsed),winCondition()?($bsNDL.readOnlyState.doc=editor.state.doc,editor.setState($bsNDL.readOnlyState),document.getElementById("winMessage").classList.remove("invisible"),document.getElementById("advanceBtn").classList.remove("invisible"),document.getElementById("resetBtn").disabled=!0,finishEarlierButton.disabled=!0,clearInterval(timerUpadate),sceneProperties.phase==phaseGeneration.length-1&&(0,$hfAuX.configureDataAndUpload)(document.getElementById("name"),document.getElementById("age"),"gender",document.getElementById("subBtn"),sceneProperties.timer,"../","Nível 3/Completo",document.getElementById("second-user"))):((0,$bsNDL.updateTheme)(editor,0),sceneProperties.executing=!1,this.disabled=!1))}));const resetBtn=document.getElementById("resetBtn");resetBtn.addEventListener("click",(()=>{cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),$7FzN9.smoke.deactiveSmokes(),(0,$bsNDL.updateTheme)(editor,0),sceneProperties.cancelExecution=!0,actor.getObjectByName("eve").position.y=0,0!=$7FzN9.materialColor.length&&(0,$7FzN9.resetRobotColor)(actor),resetLevel()}));const advanceBtn=document.getElementById("advanceBtn");advanceBtn.addEventListener("click",(e=>{sceneProperties.phase++,sceneProperties.phasephaseGeneration.length?phaseGeneration.length:sceneProperties.phase,logModal.show())}));const reloadBtn=document.getElementById("reloadBtn");reloadBtn.addEventListener("click",(e=>{void 0!==setLaserStatesInterval&&(clearInterval(setLaserStatesInterval),setLaserStatesInterval=void 0),void 0!==setSpikeTrapStateInterval&&(clearInterval(setSpikeTrapStateInterval),setSpikeTrapStateInterval=void 0),void 0!==timerUpadate&&(clearInterval(timerUpadate),timerUpadate=void 0),cancelAnimationFrame($7FzN9.corrID),cancelAnimationFrame($7FzN9.requestID),cancelAnimationFrame($7FzN9.changColorID),cancelAnimationFrame($7FzN9.smokeAnimationFrame),sceneProperties.phasephaseGeneration.length?phaseGeneration.length:sceneProperties.phase})),finishEarlierButton.addEventListener("click",(e=>{confirm(textVariations[sceneProperties.lang][9])&&(clearInterval(timerUpadate),(0,$hfAuX.configureDataAndUpload)(document.getElementById("name"),document.getElementById("age"),"gender",document.getElementById("subBtn"),sceneProperties.timer,"../",`Nível 3/Fase ${sceneProperties.phase+1}`,document.getElementById("second-user")),logModal.show())}));let normalSpeedBtn=document.getElementById("normalSpeed"),fastSpeedBtn=document.getElementById("fastSpeed");normalSpeedBtn.addEventListener("click",(function(){this.disabled=!0,fastSpeedBtn.disabled=!1,sceneProperties.mult=1})),fastSpeedBtn.addEventListener("click",(function(){this.disabled=!0,normalSpeedBtn.disabled=!1,sceneProperties.mult=6})),(0,$7FzN9.resizeCanvasToDisplaySize)(renderer,camera),phaseGeneration[sceneProperties.phase](),animate()})),parcelRequire.register("kXIAH",(function(e,t){$parcel$export(e.exports,"default",(()=>g));const a=[["Código inválido:","linha:","(Condição inválida)","(Bloco é aberto mas nunca é fechado)","(Bloco é fechado mas nunca é aberto)","Aviso: O código tem mais linhas do que o robô pode processar. Tente rescrever seu código em","linhas ou menos."],["Invalid code:","line:","(Invalid condition)","(Block is opened but never closed)","(Block is closed but never opened)","Warning: The code has more lines than the robot can process. Try rewriting your code in","lines or less."]];let r=window.location.href.includes("english")?1:0;const s=[{filter:new RegExp("^andarFrente(\\s+)?\\((\\s+)?(0|[1-9][0-9]*)(\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^andarTras(\\s+)?\\((\\s+)?(0|[1-9][0-9]*)(\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^girarEsquerda(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^girarDireita(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^darMeiaVolta(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"sequential"},{filter:new RegExp("^coletarCristal(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"normal"},{filter:new RegExp("^desativarLaserAzul(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"mustCondition"},{filter:new RegExp("^desativarLaserVermelho(\\s+)?\\((\\s+)?\\)(\\s+)?(;)?$"),type:"mustCondition"},{filter:new RegExp("^se(\\s+)?\\((\\s+)?.+\\)$"),type:"conditional"},{filter:new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{$"),type:"conditional&&blockValidation"},{filter:new RegExp("^senão$"),type:"elseValidation"},{filter:new RegExp("^senão(\\s+)?{$"),type:"elseValidation&&blockValidation"},{filter:new RegExp("^}$"),type:"closeBlockValidation"},{filter:new RegExp("^{$"),type:"blockValidation"}],o=[new RegExp("^laserAzulAtivo(\\s+)?\\((\\s+)?\\)(\\s+)?$"),new RegExp("^laserVermelhoAtivo(\\s+)?\\((\\s+)?\\)(\\s+)?$")];function l(e){let t=e.trim(),a=e.substring(t.indexOf("(")+1,t.lastIndexOf(")"));for(let e=0;e=0;r--)if(e[r].includes("{")){a=!0;break}return a}function p(e,t){let a=!1,r=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?(\\s+)?$"),s=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)$"),o=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{[^}]*?$"),l=new RegExp("^se(\\s+)?\\((\\s+)?.+\\)(\\s+)?{$"),i=new RegExp("^senão$"),n=new RegExp("^senão(\\s+)?{$"),p=new RegExp("^senão(\\s+)?.+(\\s+)?$"),d=new RegExp("^senão(\\s+)?{[^]*?$"),c=null;for(let a=t-1;a>=0;a--)if(s.test(e[a].trim())||l.test(e[a].trim())||i.test(e[a].trim())||n.test(e[a].trim())){c=a;break}if(null!=c){let s="";for(let a=c;a=0;a--)if(s.test(e[a].trim())||l.test(e[a].trim())){i=a;break}if(null!=i){let s="";for(let a=i;a3?0:e<0?3:e}for(let p=0;p0&&w>t){document.getElementById("consoleArea").innerText+=`${a[r][5]} ${t} ${a[r][6]}\n`,b=!1;break}}}return b?(o+=`}${g}runCode()\n`,o):null}})),parcelRequire.register("j0YSa",(function(e,t){$parcel$export(e.exports,"default",(()=>n));var a=parcelRequire("4xklQ");parcelRequire("acMZl");class r extends a.Mesh{constructor(){super(new a.BoxGeometry(.5,2,.15),new a.MeshPhongMaterial({color:"white"}))}}class s extends a.Mesh{constructor(){super(new a.TorusGeometry(.15,.05,10,20),new a.MeshPhongMaterial({color:"black"}))}}class o extends a.Mesh{constructor(){super(new a.BoxGeometry(.5,2,.1),new a.MeshPhongMaterial({color:"white"}))}}class l extends a.Mesh{constructor(e){super(new a.CylinderGeometry(.1,.1,2,64,64),new a.MeshPhongMaterial({emissive:e,color:e,emissiveIntensity:1,transparent:!0,opacity:.7}))}}class i extends a.Object3D{constructor(e){super(),this.index=0,this.x=0,this.z=0,this.state=e,this.active=!0,this.type=e;let t=new o;t.rotateX(-Math.PI/2),t.position.set(0,-.95,0);let a=new r;a.position.set(0,0,-.93);let i=new r;i.position.set(0,0,.93);let n=new s;n.position.set(0,.6,.85);let p=new s;p.position.set(0,.6,-.85);let d=new s;d.position.set(0,0,.85);let c=new s;c.position.set(0,0,-.85);let m=new s;m.position.set(0,-.6,.85);let g=new s;g.position.set(0,-.6,-.85);let M=new l("blue");M.rotateX(-Math.PI/2),M.position.set(0,.6,0);let b=new l("blue");b.rotateX(-Math.PI/2),b.position.set(0,0,0);let w=new l("blue");w.rotateX(-Math.PI/2),w.position.set(0,-.6,0),this.blueLasers=[M,b,w];let u=new l("red");u.rotateX(-Math.PI/2),u.position.set(0,.6,0);let h=new l("red");h.rotateX(-Math.PI/2),h.position.set(0,0,0);let x=new l("red");return x.rotateX(-Math.PI/2),x.position.set(0,-.6,0),this.redLasers=[u,h,x],"blue"==e?(this.blueLasers.forEach((e=>e.visible=!0)),this.redLasers.forEach((e=>e.visible=!1)),this.state="blue"):"red"!=e&&"multiColor"!=e||(this.blueLasers.forEach((e=>e.visible=!1)),this.state="red"),this.add(t),this.add(a),this.add(i),this.add(n),this.add(p),this.add(d),this.add(c),this.add(m),this.add(g),this.add(M),this.add(b),this.add(w),this.add(u),this.add(h),this.add(x),this}setVisible(){this.active=!0}setNotVisible(){this.blueLasers.forEach((e=>e.visible=!1)),this.redLasers.forEach((e=>e.visible=!1)),this.active=!1}setBlue(){1==this.active&&(this.blueLasers.forEach((e=>e.visible=!0)),this.redLasers.forEach((e=>e.visible=!1)),this.state="blue")}setRed(){1==this.active&&(this.blueLasers.forEach((e=>e.visible=!1)),this.redLasers.forEach((e=>e.visible=!0)),this.state="red")}}var n=i})),parcelRequire.register("9fFOq",(function(e,t){e.exports=new URL("../"+parcelRequire("dRo73").resolve("53w00"),import.meta.url).toString()}));var $e78e6624b9c65fa7$exports={};parcelRequire("dRo73").register(JSON.parse('{"7e22K":"index.8a21e007.js","53w00":"metalWallLvl3.c6e3c749.png","gyvkO":"index.708319b4.js","kCPXe":"index.5a96cabf.js"}')),parcelRequire("3YhQm"); \ No newline at end of file diff --git a/level3/index.html b/level3/index.html index c2ace17..4b22549 100644 --- a/level3/index.html +++ b/level3/index.html @@ -1 +1 @@ -ELoS - Nível 3

Nível 3 - Fase x de X

Faça algo

Tempo:

Funções Disponíveis:
Ações:
Verificadores:
Estruturas:

andarFrente(quantidade)

andarTras(quantidade)

girarEsquerda()

girarDireita()

darMeiaVolta()

desativarLaserAzul()

desativarLaserVermelho()

coletarCristal()

laserAzulAtivo()

laserVermelhoAtivo()

se(condição){
 ação()
}

se(condição){
 ação()
}
senão{
 ação()
}

Digite seu código aqui:
Console:
\ No newline at end of file +ELoS - Nível 3

Nível 3 - Fase x de X

Faça algo

Tempo:

Funções Disponíveis:
Ações:
Verificadores:
Estruturas:

andarFrente(quantidade)

andarTras(quantidade)

girarEsquerda()

girarDireita()

darMeiaVolta()

desativarLaserAzul()

desativarLaserVermelho()

coletarCristal()

laserAzulAtivo()

laserVermelhoAtivo()

se(condição){
 ação()
}

se(condição){
 ação()
}
senão{
 ação()
}

Digite seu código aqui:
Console:
\ No newline at end of file