(()=>{var t={6718:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,".JSONEditor{display:flex;flex-direction:row;height:100%;flex:1 0 0}.JSONEditor .RootContainer{display:flex;flex-direction:column;flex:1 0 0}.JSONEditor .RootContainer .TextContainer,.JSONEditor .RootContainer .NumberContainer{min-width:200px}.JSONEditor .JSONContainer{display:flex;flex-direction:column;flex:1 0 0}","",{version:3,sources:["webpack://./../../@h4x/packages/haxt/source/Components/ConfigEditor/ConfigEditor.scss"],names:[],mappings:"AAAA,YACC,YAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,2BACC,YAAA,CACA,qBAAA,CACA,UAAA,CACA,sFAEC,eAAA,CAGF,2BACC,YAAA,CACA,qBAAA,CACA,UAAA",sourcesContent:['.JSONEditor {\n\tdisplay: flex;\n\tflex-direction: row;\n\theight: 100%;\n\tflex: 1 0 0;\n\t.RootContainer {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 0 0;\n\t\t.TextContainer,\n\t\t.NumberContainer {\n\t\t\tmin-width: 200px;\n\t\t}\n\t}\n\t.JSONContainer {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 0 0;\n\t}\n}\n\n/*\n.tooltip {\n position: relative;\n display: inline-block;\n border-bottom: 1px dotted black; \n}\n\n.tooltip .tooltiptext {\n visibility: hidden;\n width: 120px;\n background-color: black;\n color: #fff;\n text-align: center;\n padding: 5px 0;\n border-radius: 6px;\n \n position: absolute;\n z-index: 1;\n}\n\n.tooltip:hover .tooltiptext {\n visibility: visible;\n}\n\n.tooltip .tooltiptext::after {\n content: " ";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: black transparent transparent transparent;\n}\n*/'],sourceRoot:""}]);const a=o},5131:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,".json{outline:1px solid #777;padding:5px;margin:5px;tab-size:4ch;white-space:pre-wrap;overflow-y:auto;background:#222;color:#ccc}.json .string{color:#ff8c00}.json .number{color:#ff0}.json .false{color:red}.json .true{color:lime}.json .null{color:#f0f}.json .key{color:#add8e6}","",{version:3,sources:["webpack://./../../@h4x/packages/haxt/source/Components/JSONView.scss"],names:[],mappings:"AAAA,MACC,sBAAA,CACA,WAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,cACC,aAAA,CAED,cACC,UAAA,CAED,aACC,SAAA,CAED,YACC,UAAA,CAED,YACC,UAAA,CAED,WACC,aAAA",sourcesContent:[".json {\n\toutline: 1px solid #777;\n\tpadding: 5px;\n\tmargin: 5px;\n\ttab-size: 4ch;\n\twhite-space: pre-wrap;\n\toverflow-y: auto;\n\tbackground: #222;\n\tcolor: #CCC;\n\t.string {\n\t\tcolor: darkorange;\n\t}\n\t.number {\n\t\tcolor: yellow;\n\t}\n\t.false {\n\t\tcolor: red;\n\t}\n\t.true {\n\t\tcolor: #0F0;\n\t}\n\t.null {\n\t\tcolor: magenta;\n\t}\n\t.key {\n\t\tcolor: lightblue;\n\t}\n}"],sourceRoot:""}]);const a=o},2287:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,".ListElement{border-bottom:1px solid #333;user-select:none}.ListElement:hover{cursor:pointer;background-color:#000}.ListElement.selected{background-color:#444}.ListSelect{overflow:auto}.ListSelect::-webkit-scrollbar{width:5px}.ListSelect::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.ListSelect::-webkit-scrollbar-thumb{background-color:#666;outline:1px solid #708090;border-radius:3px}","",{version:3,sources:["webpack://./../../@h4x/packages/haxt/source/Components/ListSelect.scss"],names:[],mappings:"AAAA,aACC,4BAAA,CACA,gBAAA,CACA,mBACC,cAAA,CACA,qBAAA,CAED,sBACC,qBAAA,CAIF,YACC,aAAA,CACA,+BACC,SAAA,CAED,qCACC,+CAAA,CACA,uCAAA,CAED,qCACC,qBAAA,CACA,yBAAA,CACA,iBAAA",sourcesContent:[".ListElement {\n\tborder-bottom: 1px solid #333;\n\tuser-select: none;\n\t&:hover {\n\t\tcursor: pointer;\n\t\tbackground-color: #000;\n\t}\n\t&.selected {\n\t\tbackground-color: #444;\n\t}\n}\n\n.ListSelect {\n\toverflow: auto;\n\t&::-webkit-scrollbar {\n\t\twidth: 5px;\n\t}\n\t&::-webkit-scrollbar-track {\n\t\t-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n\t\tbox-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n\t}\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: #666;\n\t\toutline: 1px solid slategrey;\n\t\tborder-radius: 3px;\n\t}\n}"],sourceRoot:""}]);const a=o},8327:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,".TooltipProvider{display:inline-block}.OverlayFloating .Tooltip{padding:5px;border-radius:5px;z-index:1;max-width:300px}","",{version:3,sources:["webpack://./../../@h4x/packages/haxt/source/Components/Tooltip.scss"],names:[],mappings:"AAAA,iBACC,oBAAA,CAIA,0BACC,WAAA,CACA,iBAAA,CACA,SAAA,CACA,eAAA",sourcesContent:[".TooltipProvider {\n\tdisplay: inline-block;\n}\n\n.OverlayFloating {\n\t.Tooltip {\n\t\tpadding: 5px;\n\t\tborder-radius: 5px;\n\t\tz-index: 1;\n\t\tmax-width: 300px;\n\t}\n}"],sourceRoot:""}]);const a=o},4001:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,"#overlay-container{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:10000;pointer-events:none}#overlay-inner-container{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:10000;pointer-events:none}.Overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:10000;pointer-events:auto;justify-content:center;align-items:center}.OverlayAlerts{position:fixed;display:block;top:0;left:0;right:0;z-index:10001;pointer-events:auto}.OverlayFloating{position:fixed;display:block;top:0;left:0;right:0;z-index:10002;pointer-events:auto}","",{version:3,sources:["webpack://./../../@h4x/packages/haxt/source/TSX/Overlay.scss"],names:[],mappings:"AAAA,mBACC,cAAA,CACA,UAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,aAAA,CACA,mBAAA,CAGD,yBACC,cAAA,CACA,UAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,aAAA,CACA,mBAAA,CAGD,SACC,cAAA,CACA,YAAA,CACA,UAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,+BAAA,CACA,aAAA,CACA,mBAAA,CAEA,sBAAA,CACA,kBAAA,CAGD,eACC,cAAA,CACA,aAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,aAAA,CACA,mBAAA,CAGD,iBACC,cAAA,CACA,aAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,aAAA,CACA,mBAAA",sourcesContent:["#overlay-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tz-index: 10000;\n\tpointer-events: none;\n}\n\n#overlay-inner-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tz-index: 10000;\n\tpointer-events: none;\n}\n\n.Overlay {\n\tposition: fixed;\n\tdisplay: none;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tbackground-color: rgba(0, 0, 0, 0.5);\n\tz-index: 10000;\n\tpointer-events: auto;\n\t/* cursor: pointer; */\n\tjustify-content: center;\n\talign-items: center;\n}\n\n.OverlayAlerts {\n\tposition: fixed;\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tz-index: 10001;\n\tpointer-events: auto;\n}\n\n.OverlayFloating {\n\tposition: fixed;\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tz-index: 10002;\n\tpointer-events: auto;\n}"],sourceRoot:""}]);const a=o},2389:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,".FormulatorWebsite{flex:1;display:flex}","",{version:3,sources:["webpack://./source/FormulatorWebsite.scss"],names:[],mappings:"AAAA,mBACC,MAAA,CACA,YAAA",sourcesContent:[".FormulatorWebsite {\n\tflex: 1;\n\tdisplay: flex;\n}"],sourceRoot:""}]);const a=o},9351:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var i=r(445),s=r.n(i),n=r(352),o=r.n(n)()(s());o.push([t.id,"body,html{font-family:helvetica,sans-serif;letter-spacing:normal;margin-top:1rem;margin:0;padding:0;height:100%;color:#aaa;background:#111521;user-select:none}a{color:#ffcc5d}#app{min-height:100vh;display:flex;width:100%}.App{min-height:100vh;display:flex;width:100%}table td{padding:3px 5px;color:#ddd}.center{text-align:center}.fill{width:100%}input,textarea,select{border:1px solid #111;font-size:15px;background:#252525;color:#fff;font-family:helvetica,sans-serif;-webkit-appearance:none;appearance:none;box-shadow:1px 1px 1px #3077be;margin:0 0 2px 0}input:focus,textarea:focus,select:focus{outline:none}textarea{height:55px;background:gradient(linear, left top, left bottom, color-stop(0, #222), color-stop(0.05, #333))}input[type=reset],input[type=submit],button{width:auto;color:#fff;background:#333;border:2px solid #888;text-shadow:0 0 2px #222;font-weight:bold;box-shadow:1px 1px 3px #000;border-radius:8px;margin-right:.5em;padding:5px}input[type=reset]:hover,input[type=submit]:hover,button:hover{cursor:pointer;border-color:#fff;background:#666}input[type=reset],input[type=submit],button{margin-right:0}input[type=reset]:disabled,input[type=submit]:disabled,button:disabled{color:#d99;border-color:#a88}input[type=reset]:disabled:hover,input[type=submit]:disabled:hover,button:disabled:hover{cursor:not-allowed;border-color:#a88;background:#333}input[type=reset]{color:red}input[type=checkbox],input[type=radio]{border:2px solid #1d4266;display:inline-block;font-size:15px;width:1em;height:1em;border-radius:.25em;vertical-align:text-top}input[type=checkbox]{margin:1px 2px}input[type=radio]{margin:1px 5px}input[type=radio]{border-radius:2em}input[type=checkbox]{border:2px solid #666;background:#252525}input[type=checkbox]:checked{background:radial-gradient(#11920c, #27ca27);border:2px solid #00ff40}input[type=radio]:checked{background:radial-gradient(#27ca27, #11920c);border:2px solid #00ff40}","",{version:3,sources:["webpack://./source/main.scss"],names:[],mappings:"AAAA,UAEC,gCAAA,CACA,qBAAA,CACA,eAAA,CACA,QAAA,CACA,SAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CACA,gBAAA,CAGD,EACC,aAAA,CAGD,KACC,gBAAA,CACA,YAAA,CACA,UAAA,CAGD,KACC,gBAAA,CACA,YAAA,CACA,UAAA,CAIA,SACC,eAAA,CACA,UAAA,CAIF,QACC,iBAAA,CAGD,MACC,UAAA,CAGD,sBAGC,qBAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,gCAAA,CACA,uBAAA,CACA,eAAA,CACA,8BAAA,CACA,gBAAA,CAGD,wCAGC,YAAA,CAGD,SACC,WAAA,CACA,+FAAA,CAGD,4CAGC,UAAA,CACA,UAAA,CACA,eAAA,CACA,qBAAA,CACA,wBAAA,CACA,gBAAA,CACA,2BAAA,CACA,iBAAA,CACA,iBAAA,CACA,WAAA,CACA,8DACC,cAAA,CACA,iBAAA,CACA,eAAA,CAIF,4CAGC,cAAA,CAGD,uEAGC,UAAA,CACA,iBAAA,CACA,yFACC,kBAAA,CACA,iBAAA,CACA,eAAA,CAIF,kBACC,SAAA,CAGD,uCAEC,wBAAA,CACA,oBAAA,CACA,cAAA,CACA,SAAA,CACA,UAAA,CACA,mBAAA,CACA,uBAAA,CAGD,qBACC,cAAA,CAGD,kBACC,cAAA,CAGD,kBACC,iBAAA,CAGD,qBACC,qBAAA,CACA,kBAAA,CAGD,6BACC,4CAAA,CACA,wBAAA,CAGD,0BACC,4CAAA,CACA,wBAAA",sourcesContent:["body,\nhtml {\n\tfont-family: helvetica, sans-serif;\n\tletter-spacing: normal;\n\tmargin-top: 1rem;\n\tmargin: 0;\n\tpadding: 0;\n\theight: 100%;\n\tcolor: #AAA;\n\tbackground: #111521;\n\tuser-select: none;\n}\n\na {\n\tcolor: #ffcc5d;\n}\n\n#app {\n\tmin-height: 100vh;\n\tdisplay: flex;\n\twidth: 100%;\n}\n\n.App {\n\tmin-height: 100vh;\n\tdisplay: flex;\n\twidth: 100%;\n}\n\ntable {\n\ttd {\n\t\tpadding: 3px 5px;\n\t\tcolor: #DDD;\n\t}\n}\n\n.center {\n\ttext-align: center;\n}\n\n.fill {\n\twidth: 100%;\n}\n\ninput,\ntextarea,\nselect {\n\tborder: 1px solid #111;\n\tfont-size: 15px;\n\tbackground: #252525;\n\tcolor: #fff;\n\tfont-family: helvetica, sans-serif;\n\t-webkit-appearance: none;\n\tappearance: none;\n\tbox-shadow: 1px 1px 1px #3077be;\n\tmargin: 0 0 2px 0;\n}\n\ninput:focus,\ntextarea:focus,\nselect:focus {\n\toutline: none;\n}\n\ntextarea {\n\theight: 55px;\n\tbackground: gradient(linear, left top, left bottom, color-stop(0, #222), color-stop(0.05, #333));\n}\n\ninput[type=reset],\ninput[type=submit],\nbutton {\n\twidth: auto;\n\tcolor: #fff;\n\tbackground: #333;\n\tborder: 2px solid #888;\n\ttext-shadow: 0 0 2px #222;\n\tfont-weight: bold;\n\tbox-shadow: 1px 1px 3px #000;\n\tborder-radius: 8px;\n\tmargin-right: 0.5em;\n\tpadding: 5px;\n\t&:hover {\n\t\tcursor: pointer;\n\t\tborder-color: #FFF;\n\t\tbackground: #666;\n\t}\n}\n\ninput[type=reset],\ninput[type=submit],\nbutton {\n\tmargin-right: 0;\n}\n\ninput[type=reset]:disabled,\ninput[type=submit]:disabled,\nbutton:disabled {\n\tcolor: #d99;\n\tborder-color: #a88;\n\t&:hover {\n\t\tcursor: not-allowed;\n\t\tborder-color: #a88;\n\t\tbackground: #333;\n\t}\n}\n\ninput[type=reset] {\n\tcolor: #F00;\n}\n\ninput[type=checkbox],\ninput[type=radio] {\n\tborder: 2px solid #1d4266;\n\tdisplay: inline-block;\n\tfont-size: 15px;\n\twidth: 1em;\n\theight: 1em;\n\tborder-radius: 0.25em;\n\tvertical-align: text-top;\n}\n\ninput[type=checkbox] {\n\tmargin: 1px 2px;\n}\n\ninput[type=radio] {\n\tmargin: 1px 5px;\n}\n\ninput[type=radio] {\n\tborder-radius: 2em;\n}\n\ninput[type=checkbox] {\n\tborder: 2px solid #666;\n\tbackground: #252525;\n}\n\ninput[type=checkbox]:checked {\n\tbackground: radial-gradient( #11920c, #27ca27);\n\tborder: 2px solid #00ff40;\n}\n\ninput[type=radio]:checked {\n\tbackground: radial-gradient( #27ca27, #11920c);\n\tborder: 2px solid #00ff40;\n}"],sourceRoot:""}]);const a=o},352:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,i){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(i)for(var n=0;n{"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r{"use strict";var e=[];function r(t){for(var r=-1,i=0;i{"use strict";var e={};t.exports=function(t,r){var i=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}},7182:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},6850:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},8236:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var i="";r.supports&&(i+="@supports (".concat(r.supports,") {")),r.media&&(i+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(i+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),i+=r.css,s&&(i+="}"),r.media&&(i+="}"),r.supports&&(i+="}");var n=r.sourceMap;n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},9213:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6979:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(6718),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},4843:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(5131),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},6271:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(2287),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},2930:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(8327),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},8110:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(4001),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},2106:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(2389),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},6287:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var i=r(5701),s=r.n(i),n=r(8236),o=r.n(n),a=r(6080),h=r.n(a),l=r(6850),u=r.n(l),f=r(7182),c=r.n(f),d=r(9213),p=r.n(d),y=r(9351),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=h().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=c(),s()(y.Z,b);const w=y.Z&&y.Z.locals?y.Z.locals:void 0},2656:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncQueue=void 0;class r{constructor(t){this.callback=t,this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}resolve(t){}reject(t){}execute(t){return this.callback().then((e=>{t.onItemFinished(this),this.resolve(e)}),(e=>{t.onItemError(this,e),this.reject(e)}))}}e.AsyncQueue=class{constructor(t){this.queue=[],this.slots=1,this.running=0,this.scheduled=!1,this.manualStart=!1,this.finishing=!1,this.finished=!1,this.stopOnError=!1,this.waitOnError=!1,this.crashed=!1,this.lastItemCallback=()=>{},this._lastItemCallback=()=>{},this.errorItemCallback=()=>{},this._lastItemError=()=>{},void 0!==t&&(void 0!==t.slots&&(this.slots=0|t.slots),!0===t.stopOnError&&(this.stopOnError=!0),!0===t.waitOnError&&(this.waitOnError=!0)),this.active=!this.manualStart}add(t){if(this.finished)throw new Error("Queue already finished!");let e=new r(t);return this.queue.push(e),this.trySchedule(),e.promise}onItemFinished(t){this.slots++,this.running--,!0===this.crashed?this.waitOnError&&0===this.running&&this.finishing&&(this._lastItemCallback(),this.finished=!0):this.queue.length>0?this.trySchedule():0===this.running&&(this.lastItemCallback(),this.finishing&&(this._lastItemCallback(),this.finished=!0))}onItemError(t,e){if(this.slots++,this.running--,this.stopOnError)this.queue=[],this.waitOnError?(this.active=!1,!1===this.crashed&&(this._lastItemCallback=()=>{this.errorItemCallback(e),this._lastItemError(e)},this.crashed=!0),0===this.running&&this._lastItemCallback()):(this.errorItemCallback(e),this.queue=[],this.running=0,this.crashed=!0,this.active=!1,this.finishing&&!this.waitOnError&&(this._lastItemError(e),this.finished=!0));else{if(!0===this.crashed)return;this.errorItemCallback(e),this.queue.length>0?this.trySchedule():0===this.running&&(this.lastItemCallback(),this.finishing&&this.waitOnError&&this._lastItemError(e)),this.finishing&&!this.waitOnError&&(this._lastItemError(e),this.finished=!0)}}trySchedule(){!0===this.active&&!1===this.scheduled&&this.queue.length>0&&this.slots>0&&(this.scheduled=!0,process.nextTick((()=>{this.run(),this.scheduled=!1})))}run(){for(;this.queue.length>0&&this.slots>0;){let t=this.queue.shift();void 0!==t&&(this.slots--,this.running++,t.execute(this))}}finish(){return this.finishing=!0,0===this.running&&0===this.queue.length?(this.finished=!0,Promise.resolve()):new Promise(((t,e)=>{this._lastItemCallback=t,this._lastItemError=e}))}}},1051:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractBuffer=e.InternalBuffer=e.StringMode=e.internalDoubleArray=e.internalFloatArray=e.internalBytes=e.internalBuffer=void 0;const i=r(8492);var s;e.internalBuffer=new ArrayBuffer(8),e.internalBytes=new Uint8Array(e.internalBuffer),e.internalFloatArray=new Float32Array(e.internalBuffer),e.internalDoubleArray=new Float64Array(e.internalBuffer),function(t){t[t.Fixed8=0]="Fixed8",t[t.Fixed16=1]="Fixed16",t[t.Fixed24=2]="Fixed24",t[t.Fixed32=3]="Fixed32",t[t.Dynamic=4]="Dynamic"}(s=e.StringMode||(e.StringMode={})),e.InternalBuffer=class{constructor(t){this._readPos=0,this._writePos=0,this._buffer=new ArrayBuffer(t),this.buffer=new Uint8Array(this._buffer),this.bufferS=new Int8Array(this._buffer),this._limit=this.buffer.byteLength}toBuffer(){return this.buffer.slice(0,this._writePos)}},e.AbstractBuffer=class{static isFloat32(t){return e.internalFloatArray[0]=+t,t===e.internalFloatArray[0]}writeUByte(t){this.writeUInt8(t)}readUByte(){return this.readUInt8()}writeByte(t){this.writeInt8(t)}readByte(){return this.readInt8()}readString(){const t=this.readUInt32();let e=this.readBuffer(t);return this.stringFromBuffer(e)}writeString(t){let e=this.bufferFromString(t);this.writeUInt32(e.byteLength),this.writeBuffer(e)}readVarInt(){let t=0,e=0;for(;t<=0;){let r=this.readInt8();t=r<0?(r<=128;)this.writeInt8(-(127&t)),t>>>=7}readStringMode(t){if(t===s.Fixed8){const t=this.readUInt8();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.Fixed16){const t=this.readUInt16();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.Fixed24){const t=this.readUInt24();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.Fixed32){const t=this.readUInt32();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.Dynamic){let t=0,e=0;for(;t<=0;){let r=this.readInt8();t=r<0?(r<=128;)this.writeInt8(-(127&r)),r>>>=7;this.writeInt8(r),this.writeBuffer(t)}}}bufferFromString(t){return void 0!==r.g.TextEncoder?(new TextEncoder).encode(t):i.BinaryUtils.stringToUint8Array(t)}stringFromBuffer(t){return void 0!==r.g.TextDecoder?new TextDecoder("utf-8").decode(t):i.BinaryUtils.uint8ToStringArray(t)}}},9306:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BufferError=void 0;class r extends Error{constructor(t){super(t),this.error=t,Object.setPrototypeOf(this,new.target.prototype)}}e.BufferError=r},7949:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicBuffer=void 0;const i=r(9306),s=r(1051);class n extends s.AbstractBuffer{constructor(t,e=65536){if(super(),this.chunkSize=e,this.readBufferIndex=0,e<8)throw new i.BufferError("Chunk size can't be smaller than 8!");this.buffers=t,this.allocateNewBuffer(),this.rBuffer=this.wBuffer}static mergeBuffers(...t){let e=[];for(const r of t)e.push(...r.getInternalBuffers());return new n(e,8)}getInternalBuffers(){return this.buffers}static allocate(t=65536){return new n([],t)}restart(){this.buffers=[],this.allocateNewBuffer(),this.rBuffer=this.wBuffer,this.readBufferIndex=0}allocateNewBuffer(){this.wBuffer=new s.InternalBuffer(this.chunkSize),this.buffers.push(this.wBuffer)}nextReadBuffer(){if(this.rBuffer=this.buffers[++this.readBufferIndex],void 0===this.rBuffer)throw new i.BufferError("Read out of bounds")}writeBool(t){this.wBuffer._limit>8,this.wBuffer.buffer[this.wBuffer._writePos+1]=t,this.wBuffer._writePos+=2}readInt16(){this.rBuffer._writePos>8,this.wBuffer.buffer[this.wBuffer._writePos+1]=t,this.wBuffer._writePos+=2}readUInt16(){this.rBuffer._writePos>16,this.wBuffer.buffer[this.wBuffer._writePos+1]=t>>8,this.wBuffer.buffer[this.wBuffer._writePos+2]=t,this.wBuffer._writePos+=3}readInt24(){this.rBuffer._writePos>>=0,this.wBuffer.buffer[this.wBuffer._writePos+0]=t>>16,this.wBuffer.buffer[this.wBuffer._writePos+1]=t>>8,this.wBuffer.buffer[this.wBuffer._writePos+2]=t,this.wBuffer._writePos+=3}readUInt24(){this.rBuffer._writePos>>0}writeInt32(t){this.wBuffer._limit>24,this.wBuffer.buffer[this.wBuffer._writePos+1]=t>>16,this.wBuffer.buffer[this.wBuffer._writePos+2]=t>>8,this.wBuffer.buffer[this.wBuffer._writePos+3]=t,this.wBuffer._writePos+=4}readInt32(){this.rBuffer._writePos>>=0,this.wBuffer.buffer[this.wBuffer._writePos+0]=t>>24,this.wBuffer.buffer[this.wBuffer._writePos+1]=t>>16,this.wBuffer.buffer[this.wBuffer._writePos+2]=t>>8,this.wBuffer.buffer[this.wBuffer._writePos+3]=t,this.wBuffer._writePos+=4}readUInt32(){this.rBuffer._writePos>>0}writeFloat32(t){this.wBuffer._limit{Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleBuffer=void 0;const i=r(9306),s=r(1051),n=r(8492);class o extends Uint8Array{constructor(t,e,r){super(t,e,r),this.offset=e,this.bufferS=new Int8Array(t,e,r),this._readPos=0,this._writePos=0,this._limit=this.byteLength}static fromBuffer(t){if(!(t instanceof Uint8Array))throw new i.BufferError("Couldn't create SimpleBuffer(fromBuffer), invalid constructor argument "+typeof t+", expected Uint8Array!");return new o(t.buffer,t.byteOffset,t.byteLength)}static fromArrayBuffer(t){if(!(t instanceof ArrayBuffer))throw new i.BufferError("Couldn't create SimpleBuffer(fromArrayBuffer), invalid constructor argument "+typeof t+", expected ArrayBuffer!");return new o(t,0,t.byteLength)}static allocate(t){return t|=0,new o(new ArrayBuffer(t),0,t)}subBuffer(t,e){return new o(this,this.offset+t,e)}set writePos(t){if(t>this._limit)throw new i.BufferError("[SimpleBuffer::writePos] Can't set writePos above buffer's capacity!");if(t<0)throw new i.BufferError("[SimpleBuffer::writePos] Can't set writePos below 0!");this._writePos=t}get writePos(){return this._writePos}set readPos(t){if(t>this._limit)throw new i.BufferError("[SimpleBuffer::readPos] Can't set readPos above buffer's capacity!");if(t<0)throw new i.BufferError("[SimpleBuffer::readPos] Can't set readPos below 0!");this._readPos=t}get readPos(){return this._readPos}set limit(t){if(t>this.buffer.byteLength)throw new i.BufferError("[SimpleBuffer::limit] Can't set limit above buffer's capacity!");if(t<0)throw new i.BufferError("[SimpleBuffer::limit] Can't set limit below 0!");this._limit=t}get limit(){return this._limit}resetLimit(){this.limit=this.buffer.byteLength}restart(){this._readPos=0,this._writePos=0}writeBool(t){if(this._limit>8,this[this._writePos+1]=t,this._writePos+=2}readInt16(){if(this._limit>8,this[this._writePos+1]=t,this._writePos+=2}readUInt16(){if(this._limit>16,this[this._writePos+1]=t>>8,this[this._writePos+2]=t,this._writePos+=3}readInt24(){if(this._limit>>=0,this[this._writePos+0]=t>>16,this[this._writePos+1]=t>>8,this[this._writePos+2]=t,this._writePos+=3}readUInt24(){if(this._limit>>0}writeInt32(t){if(this._limit>24,this[this._writePos+1]=t>>16,this[this._writePos+2]=t>>8,this[this._writePos+3]=t,this._writePos+=4}readInt32(){if(this._limit>>=0,this[this._writePos+0]=t>>24,this[this._writePos+1]=t>>16,this[this._writePos+2]=t>>8,this[this._writePos+3]=t,this._writePos+=4}readUInt32(){if(this._limit>>0}writeFloat32(t){if(this._limit>24,this[t+1]=e>>16,this[t+2]=e>>8,this[t+3]=e}writeBuffer(t){this.set(t,this._writePos),this._writePos+=t.byteLength}readBuffer(t){let e=this.buffer.slice(this._readPos,t);return this._readPos+=e.byteLength,new Uint8Array(e)}toBuffer(){return this.buffer.slice(0,this.writePos)}toUint8Array(){return new Uint8Array(this.toBuffer())}writeUByte(t){this.writeUInt8(t)}readUByte(){return this.readUInt8()}writeByte(t){this.writeInt8(t)}readByte(){return this.readInt8()}readString(){const t=this.readUInt32();let e=this.readBuffer(t);return this.stringFromBuffer(e)}writeString(t){let e=this.bufferFromString(t);this.writeUInt32(e.byteLength),this.writeBuffer(e)}readVarInt(){let t=0,e=0;for(;t<=0;){let r=this.readInt8();t=r<0?(r<=128;)this.writeInt8(-(127&t)),t>>>=7;this.writeInt8(127&t)}readStringMode(t){if(t===s.StringMode.Fixed8){const t=this.readUInt8();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.StringMode.Fixed16){const t=this.readUInt16();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.StringMode.Fixed24){const t=this.readUInt24();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.StringMode.Fixed32){const t=this.readUInt32();let e=this.readBuffer(t);return this.stringFromBuffer(e)}if(t===s.StringMode.Dynamic){let t=0,e=0;for(;t<=0;){let r=this.readInt8();t=r<0?(r<=128;)this.writeInt8(-(127&r)),r>>>=7;this.writeInt8(r),this.writeBuffer(t)}}}bufferFromString(t){return void 0!==r.g.TextEncoder?(new TextEncoder).encode(t):n.BinaryUtils.stringToUint8Array(t)}stringFromBuffer(t){return void 0!==r.g.TextDecoder?new TextDecoder("utf-8").decode(t):n.BinaryUtils.uint8ToStringArray(t)}}e.SimpleBuffer=o},4703:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuffer=void 0;const i=r(9306),s=r(1051);class n extends s.AbstractBuffer{constructor(t,e,r){if(super(),this.offset=e,!(t instanceof ArrayBuffer))throw new i.BufferError("Couldn't create WrappedBuffer, invalid constructor argument "+typeof t+", expected ArrayBuffer!");e|=0,r|=0,this._buffer=t,this.buffer=new Uint8Array(t,e,r),this.bufferS=new Int8Array(t,e,r),this._readPos=0,this._writePos=0,this._limit=this.buffer.byteLength}getInternalBuffers(){return[this]}static fromBuffer(t){if(!(t instanceof Uint8Array))throw new i.BufferError("Couldn't create WrappedBuffer(fromBuffer), invalid constructor argument "+typeof t+", expected Uint8Array!");return new n(t.buffer,t.byteOffset,t.byteLength)}static fromArrayBuffer(t){if(!(t instanceof ArrayBuffer))throw new i.BufferError("Couldn't create WrappedBuffer(fromArrayBuffer), invalid constructor argument "+typeof t+", expected ArrayBuffer!");return new n(t,0,t.byteLength)}static allocate(t){return t|=0,new n(new ArrayBuffer(t),0,t)}subBuffer(t,e){return new n(this._buffer,this.offset+t,e)}set writePos(t){if(t>this._limit)throw new i.BufferError("[WrappedBuffer::writePos] Can't set writePos above buffer's capacity!");if(t<0)throw new i.BufferError("[WrappedBuffer::writePos] Can't set writePos below 0!");this._writePos=t}get writePos(){return this._writePos}set readPos(t){if(t>this._limit)throw new i.BufferError("[WrappedBuffer::readPos] Can't set readPos above buffer's capacity!");if(t<0)throw new i.BufferError("[WrappedBuffer::readPos] Can't set readPos below 0!");this._readPos=t}get readPos(){return this._readPos}set limit(t){if(t>this.buffer.byteLength)throw new i.BufferError("[WrappedBuffer::limit] Can't set limit above buffer's capacity!");if(t<0)throw new i.BufferError("[WrappedBuffer::limit] Can't set limit below 0!");this._limit=t}get limit(){return this._limit}resetLimit(){this.limit=this.buffer.byteLength}restart(){this._readPos=0,this._writePos=0}writeBool(t){if(this._limit>8,this.buffer[this._writePos+1]=t,this._writePos+=2}readInt16(){if(this._limit>8,this.buffer[this._writePos+1]=t,this._writePos+=2}readUInt16(){if(this._limit>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+2]=t,this._writePos+=3}readInt24(){if(this._limit>>=0,this.buffer[this._writePos+0]=t>>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+2]=t,this._writePos+=3}readUInt24(){if(this._limit>>0}writeInt32(t){if(this._limit>24,this.buffer[this._writePos+1]=t>>16,this.buffer[this._writePos+2]=t>>8,this.buffer[this._writePos+3]=t,this._writePos+=4}readInt32(){if(this._limit>>=0,this.buffer[this._writePos+0]=t>>24,this.buffer[this._writePos+1]=t>>16,this.buffer[this._writePos+2]=t>>8,this.buffer[this._writePos+3]=t,this._writePos+=4}readUInt32(){if(this._limit>>0}writeFloat32(t){if(this._limit>24,this.buffer[t+1]=e>>16,this.buffer[t+2]=e>>8,this.buffer[t+3]=e}writeBuffer(t){this.buffer.set(t,this._writePos),this._writePos+=t.byteLength}readBuffer(t){let e=this._readPos,r=this.buffer.slice(e,e+t);return this._readPos+=r.byteLength,r}toBuffer(){return this.buffer.slice(0,this.writePos)}writeInt16LE(t){if(this._limit>8,this.buffer[this._writePos+0]=t,this._writePos+=2}readInt16LE(){if(this._limit>8,this.buffer[this._writePos+0]=t,this._writePos+=2}readUInt16LE(){if(this._limit>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+0]=t,this._writePos+=3}readInt24LE(){if(this._limit>>=0,this.buffer[this._writePos+2]=t>>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+0]=t,this._writePos+=3}readUInt24LE(){if(this._limit>>0}writeInt32LE(t){if(this._limit>24,this.buffer[this._writePos+2]=t>>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+0]=t,this._writePos+=4}readInt32LE(){if(this._limit>>=0,this.buffer[this._writePos+3]=t>>24,this.buffer[this._writePos+2]=t>>16,this.buffer[this._writePos+1]=t>>8,this.buffer[this._writePos+0]=t,this._writePos+=4}readUInt32LE(){if(this._limit>>0}writeFloat32LE(t){if(this._limit{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterClassVariable=e.RegisterClass=e.GetClassMeta=e.ClassMeta=e.ClassVariable=void 0;class r{constructor(t){this.data=new Map,this.name=t}register(t){this.data.forEach((t=>{t&&"function"==typeof t.register&&t.register(this)}))}static createType(t){return Symbol.for("ClassVariable::"+t)}getData(t){return this.data.get(t)}attachData(t,e,r){if(void 0===this.data.get(t)||r)return this.data.set(t,e),e;throw new Error("[ClassVariable::attachData] Couldn't attach data, data already exists!")}}e.ClassVariable=r;class i{constructor(t,e){if(this.registered=!1,this.registerCallbacks=[],this.finalizeCallbacks=[],this.variables=new Map,!t)throw new Error("[ClassMeta::constructor] Something went wrong, trying to create a class with no prototype!");this.$clazz=t,this.$prototype=e,this.parent=Object.getPrototypeOf(e).constructor.$ClassMeta}register(t){if(this.registered)throw new Error("[ClassMeta::register] Class already registered!");this.registered=!0,this.singleton=t,this.callRegister(this),i.registerDecorators.forEach((t=>{t(this)})),this.callFinalize(this),i.finalizeDecorators.forEach((t=>{t(this)})),this.forEachVariable((t=>{t.register(this)}))}callRegister(t){void 0!==this.parent&&this.parent.callRegister(t),this.registerCallbacks.forEach((t=>{t(this)}))}callFinalize(t){void 0!==this.parent&&this.parent.callFinalize(t),this.finalizeCallbacks.forEach((t=>{t(this)}))}isRegistered(){return this.registered}attachSingleton(t){if(!1===this.singleton)throw new Error("[ClassMeta::attachSingleton] This class wasn't registered as singleton class!");this.instance=t}getSingleton(){if(!1===this.singleton)throw new Error("[ClassMeta::attachSingleton] This class wasn't registered as singleton class!");return this.instance}createVariable(t){let e=this.variables.get(t);return void 0===e&&(e=new r(t),this.variables.set(t,e)),e}getVariable(t){let e=this.variables.get(t);return void 0!==e?e:void 0!==this.parent?this.parent.getVariable(t):void 0}forEachVariable(t){void 0!==this.parent&&this.parent.forEachVariable(t),this.variables.forEach(t)}registerCallback(t,e){if("Register"===t)this.registerCallbacks.push(e);else{if("Finalize"!==t)throw new Error("[ClassMeta::RegisterCallback] Invalid callback type!");this.finalizeCallbacks.push(e)}}static registerDecoratorCallback(t,e){if("Register"===t)i.registerDecorators.push(e);else{if("Finalize"!==t)throw new Error("[ClassMeta::RegisterCallback] Invalid callback type!");i.finalizeDecorators.push(e)}}}function s(t,e){if(!t||!t.constructor)throw new Error("[GetClassMeta] Something went wrong, invalid target!");if(t.constructor.hasOwnProperty("$ClassMeta"))return t.constructor.$ClassMeta;{if(!e)return;const r=new i(t.constructor,t);return t.constructor.$ClassMeta=r,r}}e.ClassMeta=i,i.registerDecorators=[],i.finalizeDecorators=[],e.GetClassMeta=s,e.RegisterClass=function(t,e){let r=s(t.prototype,!0);return r.register(e),r},e.RegisterClassVariable=function(t,e){return s(t.prototype,!0).createVariable(e)}},1117:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{h(i.next(t))}catch(t){n(t)}}function a(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}h((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceClass=e.Service=e.Services=void 0;const s=r(1422),n=r(381),o=r(2060);e.Services={},e.Service=function(t){return function(r){if(t=void 0!==t?t:r.name,e.Services[t])throw new Error("Couldn't register "+r.name+" with name "+t+" as Service! Another service with that name is already registered!");if(r.singleton=!0,r.instance=void 0,e.Services[t]=r,!r.createService)throw new Error("Service doesn't have CreateService function on "+r.name+" with name "+t+"!");let i=new n.BasicEvent;r.onServiceCreated=i;let s=(0,o.RegisterClass)(r,!0);i.addCallback((t=>{s.attachSingleton(t)}))}};class a{constructor(){this.onStartedEvent=new n.BasicEvent,this.onStoppedEvent=new n.BasicEvent,this.active=!1,this.__starting=!1,this.__stopping=!1}static createService(){const t=new this;let e=Object.getPrototypeOf(t).constructor;if(!e.hasOwnProperty("singleton"))throw new Error("Can't attach instance of service! Service not registered correctly!");for(;e.hasOwnProperty("singleton");){if(e.hasOwnProperty("instance")&&void 0!==e.instance)throw new Error("Can't attach instance of "+Object.getPrototypeOf(t).constructor.name+" service! "+e.name+" already attached!");e=Object.getPrototypeOf(e)}for(e=Object.getPrototypeOf(t).constructor;e.hasOwnProperty("singleton");)e.instance=t,e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t).constructor.onServiceCreated.execute(t),t}static get valid(){return!!this.instance&&this.instance.active}static getInstance(){if(this.instance&&this.instance.active)return this.instance}setActive(t){this.active=t}start(){return i(this,void 0,void 0,(function*(){if(!0===this.__starting||!0===this.__stopping)return!1;let t;this.__starting=!0,console.log("Starting service "+Object.getPrototypeOf(this).constructor.name);try{t=yield this.onStart()}catch(t){console.log("Failed to start service "+Object.getPrototypeOf(this).constructor.name+": force stopping",t);try{yield this.onStop()}catch(t){}return this.__starting=!1,this.__stopping=!1,this.setActive(!1),!1}return this.setActive(!0),this.onStartedEvent.execute(),this.__starting=!1,console.log("Started service "+Object.getPrototypeOf(this).constructor.name),t}))}stop(){return i(this,void 0,void 0,(function*(){if(!0===this.__starting||!0===this.__stopping)return!1;let t;this.__stopping=!0,console.log("Stopping service "+Object.getPrototypeOf(this).constructor.name),this.setActive(!1);try{t=yield this.onStop()}catch(t){return console.log("Error stopping service "+Object.getPrototypeOf(this).constructor.name,t),this.__stopping=!1,!1}return this.onStoppedEvent.execute(),this.__stopping=!1,console.log("Stopped service "+Object.getPrototypeOf(this).constructor.name),t}))}onStart(){return i(this,void 0,void 0,(function*(){return!0}))}onStop(){return i(this,void 0,void 0,(function*(){return!0}))}restart(){return i(this,void 0,void 0,(function*(){if(!0===this.__starting||!0===this.__stopping)return!1;if(this.active&&!(yield this.stop()))return!1;if(this.active)throw new Error("Service still active after stopping!");if(yield s.Utils.timeout(1),!(yield this.start()))return!1;if(!this.active)throw new Error("Service still not active after starting!");return!0}))}}e.ServiceClass=a,a.dependencies=[]},2180:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DataProvider=e.Class=e.VARIABLE=e.DataProviderVariable=void 0;const i=r(2060);class s{register(t){this.name=t.name}}e.DataProviderVariable=s,e.VARIABLE=i.ClassVariable.createType("DataProviderVariable"),e.Class=function(){return function(t){(0,i.RegisterClass)(t,!0)}},e.DataProvider=class{static variable(){return function(t,r){(0,i.RegisterClassVariable)(t.constructor,r).attachData(e.VARIABLE,new s)}}}},8378:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;class r extends Error{constructor(t,e=0){super(t),this.code=e,this.error=t,Object.setPrototypeOf(this,new.target.prototype)}}e.ErrorResponse=r},3727:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InternalError=void 0;class r extends Error{constructor(t,e=0){super(t),this.code=e,this.error=t,Object.setPrototypeOf(this,new.target.prototype)}}e.InternalError=r},6006:function(t,e,r){var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){void 0===i&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}),s=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.EncryptionUtils=e.StringMode=e.InternalBuffer=e.AbstractBuffer=void 0,s(r(1117),e),s(r(2060),e),s(r(2180),e),s(r(5244),e),s(r(1120),e),s(r(573),e),s(r(8492),e),s(r(8862),e),s(r(2233),e),s(r(8378),e),s(r(3727),e),s(r(381),e),s(r(701),e),s(r(8188),e),s(r(2022),e),s(r(327),e),s(r(8929),e),s(r(9518),e),s(r(4366),e),s(r(1422),e),s(r(709),e),s(r(9787),e),s(r(3750),e),s(r(8488),e);var n=r(1051);Object.defineProperty(e,"AbstractBuffer",{enumerable:!0,get:function(){return n.AbstractBuffer}}),Object.defineProperty(e,"InternalBuffer",{enumerable:!0,get:function(){return n.InternalBuffer}}),Object.defineProperty(e,"StringMode",{enumerable:!0,get:function(){return n.StringMode}}),s(r(4703),e),s(r(7949),e),s(r(6692),e),s(r(9306),e);var o=r(9440);Object.defineProperty(e,"EncryptionUtils",{enumerable:!0,get:function(){return o.InternalEncryptionUtils}}),s(r(2656),e)},709:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Mat4=void 0;const i=r(8488);class s{constructor(t){void 0!==t?t instanceof Float32Array?this.values=t:this.values=new Float32Array(t):this.values=new Float32Array(s.IdentityArray.buffer.slice(0)),this._buffer=this.values.buffer}get raw(){return this.values}get buffer(){return this._buffer}at(t){return this.values[t]}set(t){for(let e=0;e<16;e++)this.values[e]=t[e];return this}reset(){return this.values.set(s.IdentityArray,0),this}copy(t){t||(t=new s);for(let e=0;e<16;e++)t.values[e]=this.values[e];return t}all(){let t=[];for(let e=0;e<16;e++)t[e]=this.values[e];return t}row(t){return[this.values[4*t+0],this.values[4*t+1],this.values[4*t+2],this.values[4*t+3]]}col(t){return[this.values[t],this.values[t+4],this.values[t+8],this.values[t+12]]}equals(t,e=1e-6){for(let r=0;r<16;r++)if(Math.abs(this.values[r]-t.at(r))>e)return!1;return!0}determinant(){let t=this.values[0],e=this.values[1],r=this.values[2],i=this.values[3],s=this.values[4],n=this.values[5],o=this.values[6],a=this.values[7],h=this.values[8],l=this.values[9],u=this.values[10],f=this.values[11],c=this.values[12],d=this.values[13],p=this.values[14],y=this.values[15];return(t*n-e*s)*(u*y-f*p)-(t*o-r*s)*(l*y-f*d)+(t*a-i*s)*(l*p-u*d)+(e*o-r*n)*(h*y-f*c)-(e*a-i*n)*(h*p-u*c)+(r*a-i*o)*(h*d-l*c)}transpose(){let t=this.values[1],e=this.values[2],r=this.values[3],i=this.values[6],s=this.values[7],n=this.values[11];return this.values[1]=this.values[4],this.values[2]=this.values[8],this.values[3]=this.values[12],this.values[4]=t,this.values[6]=this.values[9],this.values[7]=this.values[13],this.values[8]=e,this.values[9]=i,this.values[11]=this.values[14],this.values[12]=r,this.values[13]=s,this.values[14]=n,this}inverse(){let t=this.values[0],e=this.values[1],r=this.values[2],i=this.values[3],s=this.values[4],n=this.values[5],o=this.values[6],a=this.values[7],h=this.values[8],l=this.values[9],u=this.values[10],f=this.values[11],c=this.values[12],d=this.values[13],p=this.values[14],y=this.values[15],b=t*n-e*s,w=t*o-r*s,g=t*a-i*s,m=e*o-r*n,v=e*a-i*n,A=r*a-i*o,B=h*d-l*c,C=h*p-u*c,_=h*y-f*c,x=l*p-u*d,P=l*y-f*d,I=u*y-f*p,S=b*I-w*P+g*x+m*_-v*C+A*B;return S?(S=1/S,this.values[0]=(n*I-o*P+a*x)*S,this.values[1]=(-e*I+r*P-i*x)*S,this.values[2]=(d*A-p*v+y*m)*S,this.values[3]=(-l*A+u*v-f*m)*S,this.values[4]=(-s*I+o*_-a*C)*S,this.values[5]=(t*I-r*_+i*C)*S,this.values[6]=(-c*A+p*g-y*w)*S,this.values[7]=(h*A-u*g+f*w)*S,this.values[8]=(s*P-n*_+a*B)*S,this.values[9]=(-t*P+e*_-i*B)*S,this.values[10]=(c*v-d*g+y*b)*S,this.values[11]=(-h*v+l*g-f*b)*S,this.values[12]=(-s*x+n*C-o*B)*S,this.values[13]=(t*x-e*C+r*B)*S,this.values[14]=(-c*m+d*w-p*b)*S,this.values[15]=(h*m-l*w+u*b)*S,this):null}multiply(t){let e=this.values[0],r=this.values[1],i=this.values[2],s=this.values[3],n=this.values[4],o=this.values[5],a=this.values[6],h=this.values[7],l=this.values[8],u=this.values[9],f=this.values[10],c=this.values[11],d=this.values[12],p=this.values[13],y=this.values[14],b=this.values[15],w=t.at(0),g=t.at(1),m=t.at(2),v=t.at(3);return this.values[0]=w*e+g*n+m*l+v*d,this.values[1]=w*r+g*o+m*u+v*p,this.values[2]=w*i+g*a+m*f+v*y,this.values[3]=w*s+g*h+m*c+v*b,w=t.at(4),g=t.at(5),m=t.at(6),v=t.at(7),this.values[4]=w*e+g*n+m*l+v*d,this.values[5]=w*r+g*o+m*u+v*p,this.values[6]=w*i+g*a+m*f+v*y,this.values[7]=w*s+g*h+m*c+v*b,w=t.at(8),g=t.at(9),m=t.at(10),v=t.at(11),this.values[8]=w*e+g*n+m*l+v*d,this.values[9]=w*r+g*o+m*u+v*p,this.values[10]=w*i+g*a+m*f+v*y,this.values[11]=w*s+g*h+m*c+v*b,w=t.at(12),g=t.at(13),m=t.at(14),v=t.at(15),this.values[12]=w*e+g*n+m*l+v*d,this.values[13]=w*r+g*o+m*u+v*p,this.values[14]=w*i+g*a+m*f+v*y,this.values[15]=w*s+g*h+m*c+v*b,this}multiplyVec3(t){let e=t.x,r=t.y,s=t.z;return new i.Vec3(this.values[0]*e+this.values[4]*r+this.values[8]*s+this.values[12],this.values[1]*e+this.values[5]*r+this.values[9]*s+this.values[13],this.values[2]*e+this.values[6]*r+this.values[10]*s+this.values[14])}translate(t){let e=t.x,r=t.y,i=t.z;return this.values[12]+=this.values[0]*e+this.values[4]*r+this.values[8]*i,this.values[13]+=this.values[1]*e+this.values[5]*r+this.values[9]*i,this.values[14]+=this.values[2]*e+this.values[6]*r+this.values[10]*i,this.values[15]+=this.values[3]*e+this.values[7]*r+this.values[11]*i,this}scale(t){let e=t.x,r=t.y,i=t.z;return this.values[0]*=e,this.values[1]*=e,this.values[2]*=e,this.values[3]*=e,this.values[4]*=r,this.values[5]*=r,this.values[6]*=r,this.values[7]*=r,this.values[8]*=i,this.values[9]*=i,this.values[10]*=i,this.values[11]*=i,this}rotate(t,e){let r=e.x,i=e.y,s=e.z,n=Math.sqrt(r*r+i*i+s*s);if(!n)return null;1!==n&&(n=1/n,r*=n,i*=n,s*=n);let o=Math.sin(t),a=Math.cos(t),h=1-a,l=this.values[0],u=this.values[1],f=this.values[2],c=this.values[3],d=this.values[4],p=this.values[5],y=this.values[6],b=this.values[7],w=this.values[8],g=this.values[9],m=this.values[10],v=this.values[11],A=r*r*h+a,B=i*r*h+s*o,C=s*r*h-i*o,_=r*i*h-s*o,x=i*i*h+a,P=s*i*h+r*o,I=r*s*h+i*o,S=i*s*h-r*o,E=s*s*h+a;return this.values[0]=l*A+d*B+w*C,this.values[1]=u*A+p*B+g*C,this.values[2]=f*A+y*B+m*C,this.values[3]=c*A+b*B+v*C,this.values[4]=l*_+d*x+w*P,this.values[5]=u*_+p*x+g*P,this.values[6]=f*_+y*x+m*P,this.values[7]=c*_+b*x+v*P,this.values[8]=l*I+d*S+w*E,this.values[9]=u*I+p*S+g*E,this.values[10]=f*I+y*S+m*E,this.values[11]=c*I+b*S+v*E,this}static frustum(t,e,r,i,n,o){let a=e-t,h=i-r,l=o-n;return new s([2*n/a,0,0,0,0,2*n/h,0,0,(e+t)/a,(i+r)/h,-(o+n)/l,-1,0,0,-o*n*2/l,0])}static perspective(t,e,r,i){let n=r*Math.tan(t*Math.PI/360),o=n*e;return s.frustum(-o,o,-n,n,r,i)}static orthographic(t,e,r,i,n,o){let a=e-t,h=i-r,l=o-n;return new s([2/a,0,0,0,0,2/h,0,0,0,0,-2/l,0,-(t+e)/a,-(i+r)/h,-(o+n)/l,1])}static lookAt(t,e,r=i.Vec3.up){if(t.equals(e))return new s;let n=i.Vec3.difference(t,e).normalize(),o=i.Vec3.cross(r,n).normalize(),a=i.Vec3.cross(n,o).normalize();return new s([o.x,a.x,n.x,0,o.y,a.y,n.y,0,o.z,a.z,n.z,0,-i.Vec3.dot(o,t),-i.Vec3.dot(a,t),-i.Vec3.dot(n,t),1])}static product(t,e,r){let i=t.at(0),n=t.at(1),o=t.at(2),a=t.at(3),h=t.at(4),l=t.at(5),u=t.at(6),f=t.at(7),c=t.at(8),d=t.at(9),p=t.at(10),y=t.at(11),b=t.at(12),w=t.at(13),g=t.at(14),m=t.at(15),v=e.at(0),A=e.at(1),B=e.at(2),C=e.at(3),_=e.at(4),x=e.at(5),P=e.at(6),I=e.at(7),S=e.at(8),E=e.at(9),O=e.at(10),k=e.at(11),M=e.at(12),U=e.at(13),j=e.at(14),F=e.at(15);return r?(r.set([v*i+A*h+B*c+C*b,v*n+A*l+B*d+C*w,v*o+A*u+B*p+C*g,v*a+A*f+B*y+C*m,_*i+x*h+P*c+I*b,_*n+x*l+P*d+I*w,_*o+x*u+P*p+I*g,_*a+x*f+P*y+I*m,S*i+E*h+O*c+k*b,S*n+E*l+O*d+k*w,S*o+E*u+O*p+k*g,S*a+E*f+O*y+k*m,M*i+U*h+j*c+F*b,M*n+U*l+j*d+F*w,M*o+U*u+j*p+F*g,M*a+U*f+j*y+F*m]),r):new s([v*i+A*h+B*c+C*b,v*n+A*l+B*d+C*w,v*o+A*u+B*p+C*g,v*a+A*f+B*y+C*m,_*i+x*h+P*c+I*b,_*n+x*l+P*d+I*w,_*o+x*u+P*p+I*g,_*a+x*f+P*y+I*m,S*i+E*h+O*c+k*b,S*n+E*l+O*d+k*w,S*o+E*u+O*p+k*g,S*a+E*f+O*y+k*m,M*i+U*h+j*c+F*b,M*n+U*l+j*d+F*w,M*o+U*u+j*p+F*g,M*a+U*f+j*y+F*m])}}e.Mat4=s,s.IdentityArray=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},9787:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Quat=void 0;const i=r(8488),s=r(709);class n{constructor(t=0,e=0,r=0,i=1){this.x=t,this.y=e,this.z=r,this.w=i}toString(){return`Quat<${this.x},${this.y},${this.z},${this.w}>`}set(t,e,r,i){return this.x=t,this.y=e,this.z=r,this.w=i,this}reset(){return this.x=0,this.y=0,this.z=0,this.w=1,this}copy(t){return void 0===t?t=new n(this.x,this.y,this.z,this.w):(t.x=this.x,t.y=this.y,t.z=this.z,t.w=this.w),t}roll(){let t=this.x,e=this.y,r=this.z,i=this.w;return Math.atan2(2*(t*e+i*r),i*i+t*t-e*e-r*r)}pitch(){let t=this.x,e=this.y,r=this.z,i=this.w;return Math.atan2(2*(e*r+i*t),i*i-t*t-e*e+r*r)}yaw(){return Math.asin(2*(this.x*this.z-this.w*this.y))}equals(t,e=1e-6){return!(Math.abs(this.x-t.x)>e||Math.abs(this.y-t.y)>e||Math.abs(this.z-t.z)>e||Math.abs(this.w-t.w)>e)}calculateW(){let t=this.x,e=this.y,r=this.z;return this.w=-Math.sqrt(Math.abs(1-t*t-e*e-r*r)),this}static dot(t,e){return t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w}inverse(){let t=n.dot(this,this);if(!t)return this.reset(),this;let e=t?1/t:0;return this.x*=-e,this.y*=-e,this.z*=-e,this.w*=e,this}conjugate(){return this.x*=-1,this.y*=-1,this.z*=-1,this}length(){let t=this.x,e=this.y,r=this.z,i=this.w;return Math.sqrt(t*t+e*e+r*r+i*i)}normalize(t){t||(t=this);let e=this.x,r=this.y,i=this.z,s=this.w,n=Math.sqrt(e*e+r*r+i*i+s*s);return n?(n=1/n,t.x=e*n,t.y=r*n,t.z=i*n,t.w=s*n,t):(t.x=0,t.y=0,t.z=0,t.w=0,t)}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}multiply(t){let e=this.x,r=this.y,i=this.z,s=this.w,n=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*n+r*a-i*o,this.y=r*h+s*o+i*n-e*a,this.z=i*h+s*a+e*o-r*n,this.w=s*h-e*n-r*o-i*a,this}multiplyVec3(t,e){e||(e=new i.Vec3);let r=t.x,s=t.y,n=t.z,o=this.x,a=this.y,h=this.z,l=this.w,u=l*r+a*n-h*s,f=l*s+h*r-o*n,c=l*n+o*s-a*r,d=-o*r-a*s-h*n;return e.x=u*l+d*-o+f*-h-c*-a,e.y=f*l+d*-a+c*-o-u*-h,e.z=c*l+d*-h+u*-a-f*-o,e}toMat4(t){t||(t=new s.Mat4);let e=this.x,r=this.y,i=this.z,n=this.w,o=e+e,a=r+r,h=i+i,l=e*o,u=e*a,f=e*h,c=r*a,d=r*h,p=i*h,y=n*o,b=n*a,w=n*h;return t.set([1-(c+p),u+w,f-b,0,u-w,1-(l+p),d+y,0,f+b,d-y,1-(l+c),0,0,0,0,1]),t}static sum(t,e,r){return r||(r=new n),r.x=t.x+e.x,r.y=t.y+e.y,r.z=t.z+e.z,r.w=t.w+e.w,r}static product(t,e,r){r||(r=new n);let i=t.x,s=t.y,o=t.z,a=t.w,h=e.x,l=e.y,u=e.z,f=e.w;return r.x=i*f+a*h+s*u-o*l,r.y=s*f+a*l+o*h-i*u,r.z=o*f+a*u+i*l-s*h,r.w=a*f-i*h-s*l-o*u,r}static cross(t,e,r){r||(r=new n);let i=t.x,s=t.y,o=t.z,a=t.w,h=e.x,l=e.y,u=e.z,f=e.w;return r.x=a*u+o*f+i*l-s*h,r.y=a*f-i*h-s*l-o*u,r.z=a*h+i*f+s*u-o*l,r.w=a*l+s*f+o*h-i*u,r}static shortMix(t,e,r,i){if(i||(i=new n),r<=0)return t.copy(i),i;if(r>=1)return e.copy(i),i;let s,o,a=n.dot(t,e),h=e.copy();if(a<0&&(h.inverse(),a=-a),a>.9999)s=1-r,o=0+r;else{let t=Math.sqrt(1-a*a),e=Math.atan2(t,a),i=1/t;s=Math.sin((1-r)*e)*i,o=Math.sin((0+r)*e)*i}return i.x=s*t.x+o*h.x,i.y=s*t.y+o*h.y,i.z=s*t.z+o*h.z,i.w=s*t.w+o*h.w,i}static mix(t,e,r,i){i||(i=new n);let s=t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w;if(Math.abs(s)>=1)return t.copy(i),i;let o=Math.acos(s),a=Math.sqrt(1-s*s);if(Math.abs(a)<.001)return i.x=.5*t.x+.5*e.x,i.y=.5*t.y+.5*e.y,i.z=.5*t.z+.5*e.z,i.w=.5*t.w+.5*e.w,i;let h=Math.sin((1-r)*o)/a,l=Math.sin(r*o)/a;return i.x=t.x*h+e.x*l,i.y=t.y*h+e.y*l,i.z=t.z*h+e.z*l,i.w=t.w*h+e.w*l,i}static fromAxis(t,e,r){r||(r=new n),e*=.5;let i=Math.sin(e*n.degToRad);return r.x=t.x*i,r.y=t.y*i,r.z=t.z*i,r.w=Math.cos(e*n.degToRad),r}static fromRotationXYZ(t,e,r,i){i||(i=new n),t*=n.degToRad,e*=n.degToRad,r*=n.degToRad;let s=Math.sin(.5*t),o=Math.cos(.5*t),a=Math.sin(.5*e),h=Math.cos(.5*e),l=Math.sin(.5*r),u=Math.cos(.5*r),f=h*u,c=a*l,d=a*u,p=h*l;return i.w=o*f-s*c,i.x=s*f+o*c,i.y=o*d-s*p,i.z=o*p+s*d,i}static fromRotationZYX(t,e,r,i){i||(i=new n),r*=n.degToRad,e*=n.degToRad,t*=n.degToRad;let s=Math.sin(.5*r),o=Math.cos(.5*r),a=Math.sin(.5*e),h=Math.cos(.5*e),l=Math.sin(.5*t),u=Math.cos(.5*t),f=h*u,c=a*l,d=a*u,p=h*l;return i.w=o*f+s*c,i.x=s*f-o*c,i.y=o*d+s*p,i.z=o*p-s*d,i}static fromRotationYXZ(t,e,r,i){i||(i=new n),e*=n.degToRad,t*=n.degToRad,r*=n.degToRad;let s=Math.sin(.5*e),o=Math.cos(.5*e),a=Math.sin(.5*t),h=Math.cos(.5*t),l=Math.sin(.5*r),u=Math.cos(.5*r),f=h*s,c=a*o,d=a*s,p=h*o;return i.x=f*u+c*l,i.y=c*u-f*l,i.z=p*l-d*u,i.w=p*u+d*l,i}}e.Quat=n,n.degToRad=Math.PI/180,n.radToDeg=180/Math.PI},3750:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Vec2=void 0;const i=r(8488);class s{constructor(t=0,e=0){this.x=t,this.y=e}static get zero(){return new s(0,0)}toString(){return`Vec2<${this.x.toFixed(5)},${this.y.toFixed(5)}>`}set(t,e){return this.x=t,this.y=e,this}toXY(){return{x:this.x,y:this.y}}toUV(t){return void 0!==t?{u:parseFloat(this.x.toFixed(t)),v:parseFloat(this.y.toFixed(t))}:{u:this.x,v:this.y}}reset(){return this.x=0,this.y=0,this}copy(t){return t?(t.x=this.x,t.y=this.y,t):new s(this.x,this.y)}negate(t){return t||(t=this),t.x=-this.x,t.y=-this.y,t}equals(t,e=1e-6){return!(Math.abs(this.x-t.x)>e||Math.abs(this.y-t.y)>e)}length(){return Math.sqrt(this.squaredLength())}squaredLength(){let{x:t,y:e}=this;return t*t+e*e}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addXY(t,e){return this.x+=t,this.y+=e,this}subtract(t){return this.x-=t.x,this.y-=t.y,this}subtractScalar(t){return this.x-=t,this.y-=t,this}subtractXY(t,e){return this.x-=t,this.y-=e,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}multiplyXY(t,e){return this.x*=t,this.y*=e,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.x/=t,this.y/=t,this}divideXY(t,e){return this.x/=t,this.y/=e,this}scale(t,e){return e||(e=this),e.x*=t,e.y*=t,e}normalize(t){t||(t=this);let e=this.length();return 1===e?this:0===e?(t.x=0,t.y=0,t):(e=1/e,t.x*=e,t.y*=e,t)}static cross(t,e,r){return r||(r=new i.Vec3),r.x=0,r.y=0,r.z=t.x*e.y-t.y*e.x,r}static dot(t,e){return t.x*e.x+t.y*e.y}static distance(t,e){return Math.sqrt(this.squaredDistance(t,e))}static squaredDistance(t,e){let r=e.x-t.x,i=e.y-t.y;return r*r+i*i}static direction(t,e,r){r||(r=new s);let i=t.x-e.x,n=t.y-e.y,o=Math.sqrt(i*i+n*n);return 0===o?(r.x=0,r.y=0,r):(o=1/o,r.x=i*o,r.y=n*o,r)}static mix(t,e,r,i){i||(i=new s);let n=t.x,o=t.y,a=e.x,h=e.y;return i.x=n+r*(a-n),i.y=o+r*(h-o),i}static sum(t,e,r){return r||(r=new s),r.x=t.x+e.x,r.y=t.y+e.y,r}static difference(t,e,r){return r||(r=new s),r.x=t.x-e.x,r.y=t.y-e.y,r}static product(t,e,r){return r||(r=new s),r.x=t.x*e.x,r.y=t.y*e.y,r}static quotient(t,e,r){return r||(r=new s),r.x=t.x/e.x,r.y=t.y/e.y,r}}e.Vec2=s},8488:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Vec3=void 0;const i=r(9787);class s{constructor(t=0,e=0,r=0){this.x=t,this.y=e,this.z=r}static get zero(){return new s(0,0,0)}static get up(){return new s(0,1,0)}static get right(){return new s(1,0,0)}static get forward(){return new s(0,0,1)}toString(){return`Vec3<${this.x.toFixed(5)},${this.y.toFixed(5)},${this.z.toFixed(5)}>`}set(t,e,r){return this.x=t,this.y=e,this.z=r,this}toXYZ(){return{x:this.x,y:this.y,z:this.z}}reset(){return this.x=0,this.y=0,this.z=0,this}copy(t){return t?(t.x=this.x,t.y=this.y,t.z=this.z,t):new s(this.x,this.y,this.z)}negate(t){return t||(t=this),t.x=-this.x,t.y=-this.y,t.z=-this.z,t}equals(t,e=1e-6){return!(Math.abs(this.x-t.x)>e||Math.abs(this.y-t.y)>e||Math.abs(this.z-t.z)>e)}length(){return Math.sqrt(this.squaredLength())}squaredLength(){const t=this.x,e=this.y,r=this.z;return t*t+e*e+r*r}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addXYZ(t,e,r){return this.x+=t,this.y+=e,this.z+=r,this}subtract(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subtractScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subtractXYZ(t,e,r){return this.x-=t,this.y-=e,this.z-=r,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyXYZ(t,e,r){return this.x*=t,this.y*=e,this.z*=r,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.x/=t,this.y/=t,this.z/=t,this}divideXYZ(t,e,r){return this.x/=t,this.y/=e,this.z/=r,this}static normalize(t,e){let r=t.length();return 1===r?t.copy(e):0===r?(e.x=0,e.y=0,e.z=0,e):(r=1/r,e.x*=r,e.y*=r,e.z*=r,e)}normalize(){let t=this.length();return 1===t?this:0===t?(this.x=0,this.y=0,this.z=0,this):(t=1/t,this.x*=t,this.y*=t,this.z*=t,this)}multiplyByQuat(t,e){return e||(e=this),t.multiplyVec3(this,e)}static cross(t,e,r){r||(r=new s);const i=t.x,n=t.y,o=t.z,a=e.x,h=e.y,l=e.z;return r.x=n*l-o*h,r.y=o*a-i*l,r.z=i*h-n*a,r}static dot(t,e){const r=t.x,i=t.y,s=t.z;return r*e.x+i*e.y+s*e.z}static distance(t,e){return Math.sqrt(this.squaredDistance(t,e))}static squaredDistance(t,e){let r=e.x-t.x,i=e.y-t.y,s=e.z-t.z;return r*r+i*i+s*s}static direction(t,e,r){r||(r=new s);const i=t.x-e.x,n=t.y-e.y,o=t.z-e.z;let a=Math.sqrt(i*i+n*n+o*o);return 0===a?(r.x=0,r.y=0,r.z=0,r):(a=1/a,r.x=i*a,r.y=n*a,r.z=o*a,r)}static mix(t,e,r,i){return i||(i=new s),i.x=t.x+r*(e.x-t.x),i.y=t.y+r*(e.y-t.y),i.z=t.z+r*(e.z-t.z),i}static sum(t,e,r){return r||(r=new s),r.x=t.x+e.x,r.y=t.y+e.y,r.z=t.z+e.z,r}static difference(t,e,r){return r||(r=new s),r.x=t.x-e.x,r.y=t.y-e.y,r.z=t.z-e.z,r}static product(t,e,r){return r||(r=new s),r.x=t.x*e.x,r.y=t.y*e.y,r.z=t.z*e.z,r}static quotient(t,e,r){return r||(r=new s),r.x=t.x/e.x,r.y=t.y/e.y,r.z=t.z/e.z,r}toQuat(t){t||(t=new i.Quat);let e=Math.cos(.5*this.x),r=Math.sin(.5*this.x),s=Math.cos(.5*this.y),n=Math.sin(.5*this.y),o=Math.cos(.5*this.z),a=Math.sin(.5*this.z);return t.x=r*s*o-e*n*a,t.y=e*n*o+r*s*a,t.z=e*s*a-r*n*o,t.w=e*s*o+r*n*a,t}static unproject(t,e,r,i){let n=r.copy().multiply(e).inverse();if(null===n)return null;let o=2*(t.x-i[0])/i[2]-1,a=2*(t.y-i[1])/i[3]-1,h=2*t.z-1,l=n.at(0)*o+n.at(4)*a+n.at(8)*h+1*n.at(12),u=n.at(1)*o+n.at(5)*a+n.at(9)*h+1*n.at(13),f=n.at(2)*o+n.at(6)*a+n.at(10)*h+1*n.at(14),c=n.at(3)*o+n.at(7)*a+n.at(11)*h+1*n.at(15);return 0===c?null:new s(l/c,u/c,f/c)}}e.Vec3=s},5244:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Base64=void 0;const i=r(8492);class s{constructor(t){if(64!==t.length)throw new Error;let e=[];for(let r=0;r{r[t]=e})),this.chars=e,this.rev=r}encodeString(t){return this.encode(i.BinaryUtils.stringToUint8Array(t))}encode(t){let e=this.chars,r="",i=t.length,s=Math.floor(t.length/3);for(let i=0;i>>0)%64],n/=64}let n=3*s,o=i-n;if(0!==o){let i=0;for(let e=0;e>>0)%64],s/=64}return r}decodeString(t){return i.BinaryUtils.uint8ToStringArray(this.decode(t))}decode(t){let e=this.rev,r=t.length;"="===t[r-1]&&(r-=1),"="===t[r-1]&&(r-=1),"="===t[r-1]&&(r-=1);let i=Math.floor(r/4),s=4*i,n=r-s,o=new Uint8Array(3*i+(n>1?n-1:0)),a=0;for(let r=0;r>>0)%256,s/=256}if(0!==n){let r=0;for(let i=0;i>=2),2===n&&(r>>=4);for(let t=0;t>>0)%256,i/=256}return o}packObject(t){return this.encodeString(JSON.stringify(t))}unpackObject(t){return JSON.parse(this.decodeString(t))}}e.Base64=s,s.default=new s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),s.web=new s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")},1120:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Base85=void 0;const i=r(8492);class s{constructor(t){if(85!==t.length)throw new Error;let e=[];for(let r=0;r{r[t]=e})),this.chars=e,this.rev=r}encodeString(t){return this.encode(i.BinaryUtils.stringToUint8Array(t))}encode(t){let e=this.chars,r="",i=t.length,s=Math.floor(t.length/4);for(let i=0;i>>0)%85],n/=85}let n=4*s,o=i-n;if(0!==o){let i=0;for(let e=0;e>>0)%85],s/=85}return r}decodeString(t){return i.BinaryUtils.uint8ToStringArray(this.decode(t))}decode(t){let e=this.rev,r=t.length,i=Math.floor(t.length/5),s=5*i,n=r-s,o=new Uint8Array(4*i+(n>1?n-1:0)),a=0;for(let r=0;r>>0)%256,s/=256}if(0!==n){let r=0;for(let i=0;i>>0)%256,i/=256}return o}}e.Base85=s,s.default=new s("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&_;()[]{}@%$#")},573:(t,e)=>{function r(){let t=process.hrtime();return 1e3*t[0]+t[1]/1e6}Object.defineProperty(e,"__esModule",{value:!0}),e.Benchmark=void 0;class i{static benchmark(t,e){const i=r();return t(e),r()-i}static benchmarkFull(t,e,r,s=1,n=5){const o={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];o[r]={code:s.code.trim(),results:[]},i.benchmark(s.func,e)}for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryUtils=void 0,e.BinaryUtils=class{static stringToUint8Array(t){let e=0;for(let r=0,i=t.length;r=57344?3:4}const r=new Uint8Array(e);let i=0;for(let e=0,s=t.length;e>6,r[i++]=128|63&s):s<55296||s>=57344?(r[i++]=224|s>>12,r[i++]=128|s>>6&63,r[i++]=128|63&s):(e++,s=65536+((1023&s)<<10|1023&t.charCodeAt(e)),r[i++]=240|s>>18,r[i++]=128|s>>12&63,r[i++]=128|s>>6&63,r[i++]=128|63&s)}return r}static uint8ToStringArray(t){let e="";const r=t.length;let i=0;for(;i191)e+=String.fromCharCode((31&r)<<6|63&t[i++]);else if(r<240&&r>223)e+=String.fromCharCode((15&r)<<12|(63&t[i++])<<6|63&t[i++]);else{const s=((7&r)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536;e+=String.fromCharCode(s>>10|55296,1023&s|56320)}}return e}}},8862:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Color=void 0;class r{constructor(t,e,r,i){this.r=0|t,this.g=0|e,this.b=0|r,this.a=0|i}copy(){return new r(this.r,this.g,this.b,this.a)}static fromHSL(t,e,i,s){let n,o,a;if(0===e)n=o=a=i;else{const r=(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),s=i<.5?i*(1+e):i+e-i*e,h=2*i-s;n=r(h,s,t+1/3),o=r(h,s,t),a=r(h,s,t-1/3)}return new r(255*n|0,255*o|0,255*a|0,s)}mix(t,e){return new r(this.r*e+t.r*(1-e)|0,this.g*e+t.g*(1-e)|0,this.b*e+t.b*(1-e)|0,this.a*e+t.a*(1-e)|0)}toHTML(){return`rgba(${this.r}, ${this.g}, ${this.b}, ${(this.a/255).toFixed(4)})`}}e.Color=r},2233:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorUtils=void 0,e.ColorUtils=class{static hslToHex(t,e,r){let i,s,n;if(0===e)i=s=n=r;else{const o=(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),a=r<.5?r*(1+e):r+e-r*e,h=2*r-a;i=o(h,a,t+1/3),s=o(h,a,t),n=o(h,a,t-1/3)}const o="0123456789ABCDEF".split("");function a(t){return o[t/16|0]+o[t%16|0]}return`#${a(255*i|0)}${a(255*s|0)}${a(255*n|0)}`}}},9440:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{h(i.next(t))}catch(t){n(t)}}function a(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}h((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.InternalEncryptionUtils=void 0;const s=r(8492);let n=new(r(1120).Base85)("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&_;()[]{}@%$#");e.InternalEncryptionUtils=class{static sha256(t){return i(this,void 0,void 0,(function*(){try{return yield crypto.subtle.digest("SHA-256",s.BinaryUtils.stringToUint8Array(t))}catch(t){throw new Error("Failed to sha256!")}}))}static aesGcmEncrypt(t,e){return i(this,void 0,void 0,(function*(){"string"==typeof t&&(t=Buffer.from(t));try{const r="string"==typeof e?yield this.sha256(e):e,i=crypto.getRandomValues(new Uint8Array(12));if(!i)throw new Error("Failed to created IV!");const s={name:"AES-GCM",iv:i},n=yield crypto.subtle.importKey("raw",r,s.name,!1,["encrypt"]),o=yield crypto.subtle.encrypt(s,n,t);return Buffer.concat([Buffer.from(i.buffer),Buffer.from(o)])}catch(t){throw new Error("Failed to encrypt!")}}))}static aesGcmDecrypt(t,e){return i(this,void 0,void 0,(function*(){try{const r="string"==typeof e?yield this.sha256(e):e,i=t.slice(0,12),n=t.slice(12,-16),o={name:"AES-GCM",iv:new Uint8Array(i)},a=yield crypto.subtle.importKey("raw",r,o.name,!1,["decrypt"]),h=new Uint8Array(yield crypto.subtle.decrypt(o,a,n));return s.BinaryUtils.uint8ToStringArray(h)}catch(t){throw new Error("Failed to decrypt!")}}))}static aesGcmDecryptBuffer(t,e){return i(this,void 0,void 0,(function*(){try{const r="string"==typeof e?yield this.sha256(e):e,i=t.slice(0,12),s=t.slice(12,-16),n={name:"AES-GCM",iv:new Uint8Array(i)},o=yield crypto.subtle.importKey("raw",r,n.name,!1,["decrypt"]);return Buffer.from(yield crypto.subtle.decrypt(n,o,s))}catch(t){throw new Error("Failed to decrypt!")}}))}static aesGcmEncryptBase85(t,e){return i(this,void 0,void 0,(function*(){"string"==typeof t&&(t=Buffer.from(t));try{const r="string"==typeof e?yield this.sha256(e):e,i=crypto.getRandomValues(new Uint8Array(12));if(!i)throw new Error("Failed to created IV!");const s={name:"AES-GCM",iv:i},o=yield crypto.subtle.importKey("raw",r,s.name,!1,["encrypt"]),a=yield crypto.subtle.encrypt(s,o,t);return n.encode(i)+"|"+n.encode(new Uint8Array(a))}catch(t){throw new Error("Failed to encrypt!")}}))}static aesGcmDecryptBase85(t,e){return i(this,void 0,void 0,(function*(){try{const r="string"==typeof e?yield this.sha256(e):e,[i,o]=t.split("|").map((t=>n.decode(t))),a={name:"AES-GCM",iv:new Uint8Array(i)},h=yield crypto.subtle.importKey("raw",r,a.name,!1,["decrypt"]),l=new Uint8Array(yield crypto.subtle.decrypt(a,h,o));return s.BinaryUtils.uint8ToStringArray(l)}catch(t){throw new Error("Failed to decrypt!")}}))}static aesGcmDecryptBufferBase85(t,e){return i(this,void 0,void 0,(function*(){try{const r="string"==typeof e?yield this.sha256(e):e,[i,s]=t.split("|").map((t=>n.decode(t))),o={name:"AES-GCM",iv:new Uint8Array(i)},a=yield crypto.subtle.importKey("raw",r,o.name,!1,["decrypt"]);return Buffer.from(yield crypto.subtle.decrypt(o,a,s))}catch(t){throw new Error("Failed to decrypt!")}}))}}},381:function(t,e){var r=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{h(i.next(t))}catch(t){n(t)}}function a(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}h((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.PromiseEvent=e.BasicEvent=void 0;class i{constructor(t,e,r){this.event=t,this.func=e,this.target=r,this.valid=!0}remove(){!0===this.valid&&(this.event.removeCallbackRef(this),this.valid=!1,this.event=void 0,this.func=void 0,this.target=void 0)}}class s{constructor(){this.callbacks=[],this.executing=!1}addCallback(t,e){if(!t)throw new Error("Callback can't be null!");if("object"!=typeof t.prototype&&"bound"===t.name.substr(0,5))throw new Error("Don't use .bind() on functions! ("+t.name+")");const r=new i(this,t,e);return this.callbacks.push(r),r}clearCallbacks(){this.callbacks=[]}get count(){return this.callbacks.length}removeCallback(t,e){const r=this.executing?Array.from(this.callbacks):this.callbacks;for(let i=r.length-1;i>=0;i--){const s=r[i];s.func===t&&s.target===e&&r.splice(i,1)}this.callbacks=r}removeCallbackRef(t){const e=this.executing?Array.from(this.callbacks):this.callbacks;for(let r=e.length-1;r>=0;r--)e[r]===t&&e.splice(r,1);this.callbacks=e}hasCallback(t,e){for(let r=this.callbacks.length-1;r>=0;r--){const i=this.callbacks[r];if(i.func===t&&i.target===e)return!0}return!1}execute(...t){this.executing=!0;const e=this.callbacks,r=e.length;for(let i=0;i=0;i--){const s=r[i];s.func===t&&s.target===e&&r.splice(i,1)}this.callbacks=r}removeCallbackRef(t){const e=this.executing?Array.from(this.callbacks):this.callbacks;for(let r=e.length-1;r>=0;r--)e[r]===t&&e.splice(r,1);this.callbacks=e}hasCallback(t,e){for(let r=this.callbacks.length-1;r>=0;r--){const i=this.callbacks[r];if(i.func===t&&i.target===e)return!0}return!1}execute(...t){return r(this,void 0,void 0,(function*(){this.executing=!0;const e=this.callbacks,r=e.length;for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.HaxCompressor=void 0;class r{static compressNumber(t,e){if(t<0||t>Number.MAX_SAFE_INTEGER||t!==Math.floor(t))return":"+t;t=Math.floor(t);let i="",s=0,n=0;for(;n<9;){let o=Math.floor(n>0?t/Math.pow(r.charsLength,n):t)%r.charsLength;if(i=r.chars.charAt(o)+i,s+=o*Math.pow(r.charsLength,n),n++,(void 0===e||n>=e)&&s>=t)break}return i}static decompressNumber(t){if(t.startsWith(":"))return+t.substring(1);let e=0;for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.HaxEncryptor3=void 0;const i=r(2022);class s{constructor(t,e,r){this.encA=new Uint8Array(65536),this.decA=new Uint8Array(65536),this.encB=new Uint8Array(65536),this.decB=new Uint8Array(65536),this.encC=new Uint8Array(65536),this.decC=new Uint8Array(65536),this.randomize(this.encA,this.decA,s.stringHash(t)),this.randomize(this.encB,this.decB,s.stringHash(e)),this.randomize(this.encC,this.decC,s.stringHash(r)),this.keyA=this.stringHashArray(t,47),this.keyB=this.stringHashArray(e,61),this.keyC=this.stringHashArray(r,83),this.keyHash=s.calculateHash(t,e,r)}static calculateHash(t,e,r){let i=s.stringHash(t+e+r);return i=s.stringHash("Special0CaloriesSalt"+i),i=s.stringHash("EmptyCalories"+i),i=s.stringHash("ImpossibleSalt"+i),i}randomize(t,e,r){const s=new i.HaxRNG(0|r),n=new i.HaxRNG(r+s.safeUInt()+666|0),o=new i.HaxRNG(r+s.safeUInt()+1337|0);for(let e=0;e<256;e++){for(let r=0;r<256;r++)t[256*e+r]=r;for(let r=0;r<256;r++){const i=s.nextUByte(),n=t[256*e+r];t[256*e+r]=t[256*e+i],t[256*e+i]=n}for(let r=0;r<256;r++){const i=n.nextUByte(),s=t[256*e+i];t[256*e+i]=t[256*e+r],t[256*e+r]=s}for(let r=0;r<1024;r++){const r=o.nextUByte(),i=o.nextUByte(),s=t[256*e+r];t[256*e+r]=t[256*e+i],t[256*e+i]=s}for(let r=0;r<256;r++){const r=s.nextUByte(),i=n.nextUByte(),o=t[256*e+r];t[256*e+r]=t[256*e+i],t[256*e+i]=o}}for(let r=0;r<256;r++)for(let i=0;i<256;i++)e[256*r+t[256*r+i]]=i}stringHashArray(t,e){const r=(t=t+"$HaxEncryptor$"+t+"$HaxEncryptor$"+t).length,i=new Uint8Array(e);let s=0;for(let n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.HaxRNG=void 0;const i=r(701),s=2147483648,n=1103515245,o=12345,a=1/s;e.HaxRNG=class{constructor(t){(t>>>=0)<0&&(t=2345679),this.state=t%s,this.nextInt()}nextUInt(){return this.state=(n*this.state+o)%s}safeUInt(){return 31*((this.state=(n*this.state+o)%s)+31*(this.state=(n*this.state+o)%s))+(this.state=(n*this.state+o)%s)>>>0}nextInt(){return 31*(this.state=(n*this.state+o)%s)+(this.state=(n*this.state+o)%s)|0}boolean(t=.5){return(this.state=(n*this.state+o)%s)*a>>8&255}nextUShort(){return(this.state=(n*this.state+o)%s)>>>8&65535}nextHChar(){return i.HaxCompressor.chars[this.nextUInt()%i.HaxCompressor.charsLength]}rangeInt(t,e){return t|=0,e|=0,this.nextFloat()*(e-t)+t|0}rangeFloat(t,e){return t=+t,e=+e,+(this.nextFloat()*(e-t)+t)}pickArraySafe(t){if(t.length<=0)throw new Error("... it wasn't safe...");return t[this.rangeInt(0,t.length)]}pickArray(t){if(!(t.length<=0))return t[this.rangeInt(0,t.length)]}}},327:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImprovedPerlin=void 0;class r{static noise3(t,e,i){let s=255&r.floor(t),n=255&r.floor(e),o=255&r.floor(i);t-=r.floor(t),e-=r.floor(e),i-=r.floor(i);let a=r.fade(t),h=r.fade(e),l=r.fade(i),u=r.p[s]+n,f=r.p[u]+o,c=r.p[u+1]+o,d=r.p[s+1]+n,p=r.p[d]+o,y=r.p[d+1]+o;return r.lerp(l,r.lerp(h,r.lerp(a,r.grad3(r.p[f],t,e,i),r.grad3(r.p[p],t-1,e,i)),r.lerp(a,r.grad3(r.p[c],t,e-1,i),r.grad3(r.p[y],t-1,e-1,i))),r.lerp(h,r.lerp(a,r.grad3(r.p[f+1],t,e,i-1),r.grad3(r.p[p+1],t-1,e,i-1)),r.lerp(a,r.grad3(r.p[c+1],t,e-1,i-1),r.grad3(r.p[y+1],t-1,e-1,i-1))))}static noise2(t,e){let i=255&r.floor(t),s=255&r.floor(e);t-=r.floor(t),e-=r.floor(e);let n=r.fade(t),o=r.fade(e),a=r.p[i]+s,h=r.p[a],l=r.p[a+1],u=r.p[i+1]+s,f=r.p[u],c=r.p[u+1];return r.lerp(o,r.lerp(n,r.grad2(r.p[h],t,e),r.grad2(r.p[f],t-1,e)),r.lerp(n,r.grad2(r.p[l],t,e-1),r.grad2(r.p[c],t-1,e-1)))}static fade(t){return t*t*t*(t*(6*t-15)+10)}static lerp(t,e,r){return e+t*(r-e)}static grad3(t,e,r,i){let s=15&t,n=s<8?e:r,o=s<4?r:12===s||14===s?e:i;return(0==(1&s)?n:-n)+(0==(2&s)?o:-o)}static grad2(t,e,r){let i=11&t,s=i<8?e:r,n=i<4?r:12===i||14===i?e:0;return(0==(1&i)?s:-s)+(0==(2&i)?n:-n)}static floor(t){return t>0?0|t:(0|t)-1}}e.ImprovedPerlin=r,r.p=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180]},8929:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtils=void 0,e.StringUtils=class{static splitChar(t,e,r){let i=0,s=0;const n=[];for(r=void 0!==r?r:Number.POSITIVE_INFINITY;t.length>s&&r>1;)t[s]===e&&(n.push(t.substring(i,s)),i=s+1,r--),s++;return ii;){const n=e[t[i]];void 0!==n&&(s.push(t.substring(r,i)),s.push(n),r=i+1),i++}return r=0;)++i,s+=n;return i}}},9518:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TextUtils=void 0;class r{static toStringMapping(t){const e={};return t.forEach((t=>{e[t]=!0})),e}static getLetterData(t){let e=!!r.lowerLetters[t],i=!!r.upperLetters[t];return{isLowerLetter:e,isUpperLetter:i,isLetter:e||i}}static cleanWord(t){let e=0,i=0;const s=[];for(;t.length>i;)r.getLetterData(t[i]).isLetter||(s.push(t.substring(e,i)),e=i+1),i++;return es;){let o=t[s],a=r.getLetterData(o);" "===o&&(e.push(t.substring(i,s)),i=s+1),s++,n=a}is;){let o=t[s],a=r.getLetterData(o);" "!==o&&a.isLetter?a.isUpperLetter&&n.isLowerLetter&&(e.push(t.substring(i,s)),i=s):(e.push(t.substring(i,s)),i=s+1),s++,n=a}is;){let o=t[s],a=r.getLetterData(o);" "!==o&&a.isLetter?s>1&&a.isLowerLetter&&n.isUpperLetter&&(e.push(t.substring(i,s-1)),i=s-1):(e.push(t.substring(i,s)),i=s+1),s++,n=a}is;){let o=t[s],a=r.getLetterData(o);" "!==o&&a.isLetter?s>1&&n.isUpperLetter&&a.isLowerLetter&&(e.push(t.substring(i,s-1)),i=s-1):(e.push(t.substring(i,s)),i=s+1),s++,n=a}is;){let o=t[s],a=r.getLetterData(o);" "!==o&&a.isLetter?s>0&&n.isUpperLetter!==a.isUpperLetter&&(e.push(t.substring(i,s)),i=s):(e.push(t.substring(i,s)),i=s+1),s++,n=a}i{if((t=t.toLowerCase()).length<=1)return;-1===i.indexOf(t)&&i.push(t);let e=r.cleanWord(t);e!==t&&-1===i.indexOf(e)&&i.push(e)})),i}}e.TextUtils=r,r.lowerLetters=r.toStringMapping("abcdefghijklmnopqrstuvwxyz".split("")),r.upperLetters=r.toStringMapping("ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""))},4366:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Time=void 0;class r{static getReadableTime(t){const e=1e3,r=60*e,i=60*r,s=24*i,n=[{year:365*s},{month:30*s},{day:s},{hour:i},{minute:r},{second:e}].map(((e,r,i)=>{const s=Object.keys(e)[0],n=t/e[s]|0;return t-=e[s]*n,n>0?n+" "+s+(1===n?"":"s"):""})).filter((t=>t));return n.length>1?[...n.slice(0,-1),"and",n.slice(-1)].join(" "):n[0]}static getTimeBreakdown(t){const e=1e3,r=60*e,i=60*r,s=24*i;let n={};return[{years:365*s},{months:30*s},{days:s},{hours:i},{minutes:r},{seconds:e}].forEach(((e,r,i)=>{const s=Object.keys(e)[0],o=t/e[s]|0;t-=e[s]*o,n[s]=o>0?o:0})),n}static getTimeBreakdownHMS(t){const e=1e3,r=60*e;let i={};return[{hours:60*r},{minutes:r},{seconds:e}].forEach(((e,r,s)=>{const n=Object.keys(e)[0],o=t/e[n]|0;t-=e[n]*o,i[n]=o>0?o:0})),i}static calculateDifference(t,e){return this.getReadableTime(e.getTime()-t.getTime())}static getTimeMDY(t){let e;return e=t?new Date(t):new Date,e.getUTCMonth()+1+"/"+e.getUTCDate()+"/"+e.getUTCFullYear()}static getTimestamp(t){let e;return e=t?new Date(t):new Date,e.getFullYear()+"-"+("0"+(e.getMonth()+1)).substr(-2)+"-"+("0"+e.getDate()).substr(-2)+"_"+("0"+e.getHours()).substr(-2)+"-"+("0"+e.getMinutes()).substr(-2)+"-"+("0"+e.getSeconds()).substr(-2)}static calculateMilliseconds(t,e,r){let i=t*this.HOUR_MS;return void 0!==e&&(i+=e*this.MINUTE_MS),void 0!==r&&(i+=r*this.SECOND_MS),i}static asParts(t,e=!1){let i="number"==typeof t?new Date(t):t,s=(!0===e?i.getUTCMonth():i.getMonth())+1,n=!0===e?i.getUTCDate():i.getDate(),o=!0===e?i.getUTCFullYear():i.getFullYear(),a=!0===e?i.getUTCHours():i.getHours(),h=!0===e?i.getUTCMinutes():i.getMinutes(),l=!0===e?i.getUTCSeconds():i.getSeconds(),u=!0===e?i.getUTCMilliseconds():i.getMilliseconds();return{d:n,day:n,dd:("0"+n).substr(-2),m:s,month:s,mm:("0"+s).substr(-2),yyyy:o,year:o,h:a,hours:a,hh:("0"+a).substr(-2),min:h,minutes:h,mmin:("0"+h).substr(-2),s:l,seconds:l,ss:("0"+l).substr(-2),ms:u,milliseconds:u,msms:("00"+u).substr(-3),monthName:r.MonthNames[s-1]}}}e.Time=r,r.HOUR_MS=36e5,r.MINUTE_MS=6e4,r.SECOND_MS=1e3,r.MonthNames=["January","February","March","April","May","June","July","August","September","October","November","December"]},1422:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{h(i.next(t))}catch(t){n(t)}}function a(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}h((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;const s=r(701),n=r(2022);class o{static randomInt(t,e){return Math.floor(Math.random()*(e-t+1)+t)}static rangeInt(t,e){return t|=0,e|=0,Math.random()*(e-t)+t|0}static rangeFloat(t,e){return t=+t,e=+e,+(Math.random()*(e-t)+t)}static pickArray(t){if(!(t.length<=0))return t[o.rangeInt(0,t.length)]}static minMax(t,e=0,r=1){if(e>=r)throw new Error("[minMax] min >= max");return t>r?r:t=r)throw new Error("[remapRange] sourceMin >= sourceMax");return t>r&&(t=r),t>>1;t[s]>>1;for(;s>i;)r(e,t[n])<0?s=n:i=n+1,n=i+s>>>1;return n}static sortedInsertComparator(t,e,r){let i=o.sortedIndexComparator(t,e,r);t.splice(i,0,e)}static timeout(t){return i(this,void 0,void 0,(function*(){const e=Date.now();return new Promise((r=>{setTimeout(((t,i)=>{r(Date.now()-e)}),t)}))}))}static immediate(t){return i(this,void 0,void 0,(function*(){return new Promise((e=>{setImmediate((()=>e(t)))}))}))}static nextTick(t){return i(this,void 0,void 0,(function*(){return new Promise((e=>{void 0!==process?process.nextTick((()=>e(t))):setImmediate((()=>e(t)))}))}))}static strReplaceMulti(t,e){let r="",i=0;for(;i0?o.hidIndex/Math.pow(t.length,r):o.hidIndex)%t.length);o.hidIndex++;for(let i=0;i<6;i++)e+=t.charAt(Math.floor(i>0?r/Math.pow(t.length,i):r)%t.length);return e}static generateHUUID(){const t=Date.now()/1e3|0;let e=s.HaxCompressor.compressNumber(t,6);e+=s.HaxCompressor.compressNumber(o.huuidIndex,3);for(let t=0;t<4;t++)e+=s.HaxCompressor.chars.charAt(Math.floor(Math.random()*s.HaxCompressor.charsLength));for(let t=0;t<3;t++)e+=o.huuidRNG.nextHChar();return o.huuidIndex++,e}static generateHUUID24(){const t=Date.now()/1e3|0;let e=s.HaxCompressor.compressNumber(t,8);e+=s.HaxCompressor.compressNumber(o.huuidIndex,3);for(let t=0;t<6;t++)e+=s.HaxCompressor.chars.charAt(Math.floor(Math.random()*s.HaxCompressor.charsLength));for(let t=0;t<7;t++)e+=o.huuidRNG.nextHChar();return o.huuidIndex++,e}static equals(t,e,r){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.BasicComponent=void 0;const i=r(8170),s=r(6006);class n{constructor(t){this.time=t}register(t){this.name=t.name}}const o=s.ClassVariable.createType("IntervalVariable");class a{constructor(){}register(t){this.name=t.name}}const h=s.ClassVariable.createType("InitializeVariable"),l=Symbol.for("$Meta");class u extends i.Component{constructor(){super(),this.attachedEventReferences=[],this.onDestroy=new s.BasicEvent,this.setupClass()}setupClass(){this[l]=(0,s.GetClassMeta)(this,!0),!1===this[l].isRegistered()&&this[l].register(!1)}proxy(t){return this.$(t)}static var(){return(t,e)=>{let r=Symbol.for("var__"+e);Object.defineProperty(t,e,{get:function(){return this[r]},set:function(t){this[r]=t,this.$(e).onUpdate.execute(t)},enumerable:!0})}}$(t){const e=Symbol.for("^"+t);let r=this[e];return void 0===r&&(r={get:()=>this[t],set:e=>{this[t]=e},onUpdate:new s.BasicEvent,onChange:new s.BasicEvent},this[e]=r),r}static bind(){return(t,e)=>{if(t instanceof u==0)throw new Error("Failed to bind, class needs to be a subclass of BasicComponent!");let r=Object.getOwnPropertyDescriptor(t,e);if(!r||"function"!=typeof r.value)throw new Error(`Bind can only be used on function! ${e} is not a function!`);return{configurable:!0,get(){const t=(...t)=>r.value.apply(this,t);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}}}}static interval(t){return function(e,r){if(e instanceof u==0)throw new Error("Failed to attach interval, class needs to be a subclass of BasicComponent!");(0,s.RegisterClassVariable)(e.constructor,r).attachData(o,new n(t))}}static initialize(){return function(t,e){if(t instanceof u==0)throw new Error("Failed to attach initialize, class needs to be a subclass of BasicComponent!");(0,s.RegisterClassVariable)(t.constructor,e).attachData(h,new a)}}__init(){this[l].forEachVariable(((t,e)=>{let r=t.getData(o);if(void 0!==r){let t=window.setInterval((()=>{this[e]()}),r.time);this.onDestroy.addCallback((()=>{void 0!==t&&clearInterval(t)}))}void 0!==t.getData(h)&&this[e]()}))}__destroy(){this.onDestroy.execute();for(const t of this.attachedEventReferences)t.remove()}ref(t){return this.attachedEventReferences.push(t),t}static normalizeClass(t){if(Array.isArray(t)){let e={};for(const r of t)e[r]=!0;return e}if("object"==typeof t)return t;if("string"==typeof t){let e={};for(const r of t.split(" "))e[r]=!0;return e}}}e.BasicComponent=u},6998:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CEUtils=e.Type=void 0;const i=r(8170),s=r(2009),n=r(4916),o=r(8634),a=r(4095),h=r(2591),l=r(1716),u=r(9423);var f,c;!function(t){t.Unknown="unknown",t.Boolean="boolean",t.Number="number",t.String="string",t.Object="object",t.Array="array",t.Map="map"}(f=e.Type||(e.Type={})),(c=e.CEUtils||(e.CEUtils={})).getNew=function t(e){if(e.type===f.Object){let r={};for(const i in e.properties)if(e.properties.hasOwnProperty(i)){const s=e.properties[i];r[i]=t(s)}return r}if(e.type===f.Map)return{};if(e.type===f.Array)return[];if(e.type===f.Boolean){if(void 0!==e.default)return e.default;if(!0===e.optional)return;return!1}if(e.type===f.Number){if(void 0!==e.default)return e.default;if(!0===e.optional)return;return void 0!==e.min?e.min:0}if(e.type===f.String){if(void 0!==e.default)return e.default;if(!0===e.optional)return;return void 0!==e.options&&e.options.length>0?e.options[0]:""}throw new Error("Invalid schema type")},c.renderInput=function(t,e,r,s){if(void 0===e)throw new Error("Missing data");if(void 0===t.type)throw new Error("Missing schema type");if(t.type===f.Object)return(0,i.h)(n.ObjectContainer,{schema:t,data:e[r],onUpdate:s});if(t.type===f.Map)return(0,i.h)(o.MapContainer,{schema:t,data:e[r],onUpdate:s});if(t.type===f.Array)return(0,i.h)(a.ArrayContainer,{schema:t,data:e[r],onUpdate:s});if(t.type===f.Boolean)return(0,i.h)(h.BooleanContainer,{schema:t,data:e,key:r,onUpdate:s});if(t.type===f.Number)return(0,i.h)(l.NumberContainer,{schema:t,data:e,key:r,onUpdate:s});if(t.type===f.String)return(0,i.h)(u.TextContainer,{schema:t,data:e,key:r,onUpdate:s});throw new Error("Invalid schema type")},c.parseInfo=function(t){let e=[];return t.info.length>0&&e.push((0,i.h)(s.TooltipProvider,{renderTooltip:()=>(0,i.h)("div",{class:"TooltipContent"},t.info.map((t=>(0,i.h)("div",null,t))))},(0,i.h)("i",{class:"fas fa-info-circle",style:{"margin-left":5,color:"#88B"}}))),t.warnings.length>0&&e.push((0,i.h)(s.TooltipProvider,{renderTooltip:()=>(0,i.h)("div",{class:"TooltipContent"},t.warnings.map((t=>(0,i.h)("div",null,t))))},(0,i.h)("i",{class:"fas fa-exclamation-triangle",style:{"margin-left":5,color:"orange"}}))),t.errors.length>0&&e.push((0,i.h)(s.TooltipProvider,{renderTooltip:()=>(0,i.h)("div",{class:"TooltipContent"},t.errors.map((t=>(0,i.h)("div",null,t))))},(0,i.h)("i",{class:"far fa-times-circle",style:{"margin-left":5,color:"red"}}))),e}},5792:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Validator=e.ValidatorType=void 0,(r=e.ValidatorType||(e.ValidatorType={}))[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info";class i{static boolean(t,e,r,s){let n={errors:[],warnings:[],info:[]};return i.required(n,t,e),n}static text(t,e,r,s){let n={errors:[],warnings:[],info:[]};return i.required(n,t,e),n}static number(t,e,r,s){let n={errors:[],warnings:[],info:[]};return i.required(n,t,e),i.numberRange(n,t,e),n}static numberRange(t,e,r){void 0!==e.min&&re.max&&t.errors.push("The maximum value is "+e.max)}static required(t,e,r){!0!==e.optional&&void 0===r&&t.warnings.push("This property must have a value!")}}e.Validator=i},5159:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigEditor=void 0;const n=r(8170),o=r(4492),a=r(6006);r(6979);const h=r(6998),l=r(4739),u=r(7045),f={type:h.Type.Object,properties:{object:{type:h.Type.Object,properties:{enabled:{type:h.Type.Boolean},id:{type:h.Type.Number,min:1,max:10},name:{type:h.Type.String},description:{type:h.Type.String,multiline:!0}}},map:{type:h.Type.Map,elements:{type:h.Type.Object,properties:{enabled:{type:h.Type.Boolean},id:{type:h.Type.Number,min:1,max:10},name:{type:h.Type.String},description:{type:h.Type.String,multiline:!0}}}},array:{type:h.Type.Array,elements:{type:h.Type.Object,properties:{enabled:{type:h.Type.Boolean,default:!0},id:{type:h.Type.Number,min:1,max:10},name:{type:h.Type.String,default:"Default value"},description:{type:h.Type.String,multiline:!0,optional:!0}}}},stringsArray:{type:h.Type.Array,elements:{type:h.Type.String,options:["A","B","C","D","E","F"]}},stringsMap:{type:h.Type.Map,elements:{type:h.Type.String}}}};class c extends o.BasicComponent{constructor(){super(...arguments),this.onUpdate=new a.BasicEvent,this.data={object:{enabled:!0},map:{a:{name:"a"},b:{id:1},c:{name:"c"}},array:[{name:"0"},{id:1},{name:"2"}],stringsArray:["A","","C"],stringsMap:{a:"A",b:"1",c:"C"}}}initLink(){this.json=JSON.stringify(this.data,null,"\t"),this.onUpdate.addCallback((()=>{this.json=JSON.stringify(this.data,null,"\t")}))}render(){return(0,n.h)("div",{class:"JSONEditor"},(0,n.h)("div",{class:"RootContainer",style:{flex:"1 0 0",margin:10,overflow:"auto"}},(0,n.h)(l.RootContainer,{name:"Config",schema:f,data:this.data,onUpdate:this.onUpdate,style:{margin:"3px 0"}})),(0,n.h)("div",{class:"JSONContainer"},(0,n.h)(u.InputTextBox,{$:this.$("json"),style:{flex:"1 0 0",margin:10}})))}}i([o.BasicComponent.var(),s("design:type",String)],c.prototype,"json",void 0),i([o.BasicComponent.initialize(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],c.prototype,"initLink",null),e.ConfigEditor=c},4095:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayContainer=void 0;const n=r(8170),o=r(4492),a=r(6998);class h extends o.BasicComponent{constructor(){super(...arguments),this.opened=!0}willReceiveProps(){this.update(),this.initSchema()}initSchema(){let t=this.props.properties;this.isBasic=!1,(t.type===a.Type.Boolean||t.type===a.Type.Number||t.type===a.Type.String&&!0!==t.multiline)&&(this.isBasic=!0)}delete(){this.props.data.splice(+this.props.key,1),this.props.onDeleted(),this.props.onUpdate.execute()}toggle(){this.opened=!this.opened,this.update()}render(){let{properties:t,data:e,key:r,onUpdate:i}=this.props;return this.isBasic?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{style:{"margin-right":13}}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44","margin-right":5},onClick:this.delete}),a.CEUtils.renderInput(t,e,r,i)):this.opened?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-down",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44"},onClick:this.delete}),a.CEUtils.renderInput(t,e,r,i)):(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-right",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44"},onClick:this.delete}))}}i([o.BasicComponent.initialize(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],h.prototype,"initSchema",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],h.prototype,"delete",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],h.prototype,"toggle",null);class l extends o.BasicComponent{willReceiveProps(){this.update()}addNew(){this.props.data.push(a.CEUtils.getNew(this.props.schema.elements)),this.update(),this.props.onUpdate.execute()}onDeleted(){this.update()}render(){let{schema:t,data:e,onUpdate:r}=this.props,i=[],s=t.elements;for(const t in e)if(e.hasOwnProperty(t)){let o=+t;i.push((0,n.h)(h,{properties:s,data:e,key:o,onUpdate:r,onDeleted:this.onDeleted}))}return(0,n.h)("div",{style:{"padding-left":10,"margin-left":15}},i,(0,n.h)("div",null,(0,n.h)("i",{class:"fas fa-plus-circle",style:{color:"#4C4"},onClick:this.addNew})))}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"addNew",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"onDeleted",null),e.ArrayContainer=l},2591:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanContainer=void 0;const n=r(8170),o=r(4492),a=r(6006),h=r(5792),l=r(6998);class u extends o.BasicComponent{init(){this.validate()}willReceiveProps(){this.update()}get(){return this.props.data[this.props.key]}set(t){this.props.data[this.props.key]=t}onInput(t){let e=!0===t.target.checked;this.set(e),this.props.onUpdate.execute(e),this.validate()}validate(){let t=this.validatorData;this.validatorData=h.Validator.boolean(this.props.schema,this.get(),this.props.data,this.props.key),!1===a.Utils.equals(t,this.validatorData)&&(console.log("validate..."),this.update())}render(){let t=l.CEUtils.parseInfo(this.validatorData);return(0,n.h)("div",{style:{display:"inline-block"}},(0,n.h)("input",{class:"InputContainer BooleanContainer",type:"checkbox",checked:this.get(),onInput:this.onInput}),t)}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],u.prototype,"onInput",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"validate",null),e.BooleanContainer=u},8634:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.MapContainer=void 0;const n=r(8170),o=r(4492),a=r(6006),h=r(6998),l=r(7045);class u extends o.BasicComponent{constructor(){super(...arguments),this.opened=!0}willReceiveProps(){this.update(),this.initSchema()}initSchema(){let t=this.props.properties;this.isBasic=!1,(t.type===h.Type.Boolean||t.type===h.Type.Number||t.type===h.Type.String&&!0!==t.multiline)&&(this.isBasic=!0)}delete(){this.props.data[this.props.key]=void 0,this.props.onDeleted(),this.props.onUpdate.execute()}toggle(){this.opened=!this.opened,this.update()}render(){let{properties:t,data:e,key:r,onUpdate:i}=this.props;return this.isBasic?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{style:{"margin-right":13}}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44","margin-right":5},onClick:this.delete}),h.CEUtils.renderInput(t,e,r,i)):this.opened?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-down",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44"},onClick:this.delete}),h.CEUtils.renderInput(t,e,r,i)):(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-right",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),(0,n.h)("i",{class:"far fa-trash-alt",style:{color:"#C44"},onClick:this.delete}))}}i([o.BasicComponent.initialize(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"initSchema",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"delete",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"toggle",null);class f extends o.BasicComponent{constructor(){super(...arguments),this.newName=""}willReceiveProps(){this.update()}addNew(){if(this.newName.length<=0)throw new a.ErrorResponse("New element needs to have a name!");if(void 0!==this.props.data[this.newName])throw new a.ErrorResponse("New element needs to have a unique name!");this.props.data[this.newName]=h.CEUtils.getNew(this.props.schema.elements),this.newName="",this.update(),this.props.onUpdate.execute()}onDeleted(){this.update()}render(){let{schema:t,data:e,onUpdate:r}=this.props,i=[],s=t.elements;for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&i.push((0,n.h)(u,{properties:s,data:e,key:t,onUpdate:r,onDeleted:this.onDeleted}));return(0,n.h)("div",{style:{"padding-left":10,"margin-left":15}},i,(0,n.h)("div",null,(0,n.h)(l.InputText,{$:this.$("newName")}),(0,n.h)("i",{class:"fas fa-plus-circle",style:{color:"#4C4"},onClick:this.addNew})))}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],f.prototype,"addNew",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],f.prototype,"onDeleted",null),e.MapContainer=f},1716:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.NumberContainer=void 0;const n=r(8170),o=r(4492),a=r(6006),h=r(6998),l=r(5792);class u extends o.BasicComponent{init(){this.validate()}willReceiveProps(){this.update()}get(){return this.props.data[this.props.key]}set(t){this.props.data[this.props.key]=t}onInput(t){let e=t.target.value;e=e.length<=0?void 0:+e,this.set(e),this.props.onUpdate.execute(e),this.validate()}validate(){let t=this.validatorData;this.validatorData=l.Validator.number(this.props.schema,this.get(),this.props.data,this.props.key),!1===a.Utils.equals(t,this.validatorData)&&(console.log("validate..."),this.update())}render(){let t=h.CEUtils.parseInfo(this.validatorData);return(0,n.h)("div",{style:{display:"inline-block"}},(0,n.h)("input",{class:"InputContainer NumberContainer",type:"number",value:this.get(),onInput:this.onInput,onBlur:this.validate}),t)}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],u.prototype,"onInput",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"validate",null),e.NumberContainer=u},4916:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectContainer=void 0;const n=r(8170),o=r(4492),a=r(6998);class h extends o.BasicComponent{constructor(){super(...arguments),this.opened=!0}willReceiveProps(){this.update(),this.initSchema()}initSchema(){let t=this.props.properties;this.isBasic=!1,(t.type===a.Type.Boolean||t.type===a.Type.Number||t.type===a.Type.String&&!0!==t.multiline)&&(this.isBasic=!0)}toggle(){this.opened=!this.opened,this.update()}render(){let{properties:t,data:e,key:r,onUpdate:i}=this.props;return this.isBasic?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{style:{"margin-right":13}}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),a.CEUtils.renderInput(t,e,r,i)):this.opened?(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-down",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r),a.CEUtils.renderInput(t,e,r,i)):(0,n.h)("div",{style:{margin:"3px 0"}},(0,n.h)("i",{class:"fas fa-caret-right",style:{"vertical-align":"top",width:10,"text-align":"center","margin-right":3},onClick:this.toggle}),(0,n.h)("span",{style:{"min-width":150,display:"inline-block","vertical-align":"top"}},r))}}i([o.BasicComponent.initialize(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],h.prototype,"initSchema",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],h.prototype,"toggle",null);class l extends o.BasicComponent{willReceiveProps(){this.update()}render(){let{schema:t,data:e,onUpdate:r}=this.props,i=[],s=t.properties;for(const t in s)s.hasOwnProperty(t)&&i.push((0,n.h)(h,{properties:s[t],data:e,key:t,onUpdate:r}));return(0,n.h)("div",{style:{"padding-left":10,"margin-left":15}},i)}}e.ObjectContainer=l},4739:function(t,e,r){var i=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextContainer=void 0;const n=r(8170),o=r(4492),a=r(6006),h=r(5792),l=r(6998);class u extends o.BasicComponent{init(){this.validate()}willReceiveProps(){this.update()}get(){return this.props.data[this.props.key]}set(t){this.props.data[this.props.key]=t}onInput(t){let e=t.target.value;e.length<=0&&(e=void 0),this.set(e),this.props.onUpdate.execute(e),this.validate()}validate(){let t=this.validatorData;this.validatorData=h.Validator.text(this.props.schema,this.get(),this.props.data,this.props.key),!1===a.Utils.equals(t,this.validatorData)&&(console.log("validate..."),this.update())}render(){let t,e=l.CEUtils.parseInfo(this.validatorData);if(void 0!==this.props.schema.options){let e=this.props.schema.options,r=this.get(),i=e.map((t=>(0,n.h)("option",{value:t,selected:t===r},t)));t=(0,n.h)("select",{class:"InputContainer TextContainer Options",value:r,onInput:this.onInput},i)}else t=!0===this.props.schema.multiline?(0,n.h)("textarea",{class:"InputContainer TextContainer Multiline",value:this.get(),onInput:this.onInput}):(0,n.h)("input",{class:"InputContainer TextContainer",type:"text",value:this.get(),onInput:this.onInput});return(0,n.h)("div",{style:{display:"inline-block"}},t,e)}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],u.prototype,"onInput",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],u.prototype,"validate",null),e.TextContainer=u},7045:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s(0,o.h)("option",{value:t,selected:t===a},t)));else{h=[];for(const t in r)if(r.hasOwnProperty(t)){const e=r[t];h.push((0,o.h)("option",{value:t,selected:t===a},e))}}return(0,o.h)("select",Object.assign({},s,{onInput:this.onInput,onChange:this.onChange}),h)}}i([a.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],p.prototype,"onInput",null),i([a.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],p.prototype,"onChange",null),e.InputSelect=p;class y extends a.BasicComponent{onChange(t){let e=null!=t.target.files?t.target.files[0]:void 0;this.props.onFile(e)}render(){let t=this.props,{ref:e}=t,r=n(t,["ref"]);return(0,o.h)("input",Object.assign({type:"file"},r,{onChange:this.onChange}))}}i([a.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],y.prototype,"onChange",null),e.InputFile=y;class b extends a.BasicComponent{onChange(t){let e=null!=t.target.files?Array.from(t.target.files):void 0;this.props.onFiles(e)}render(){let t=this.props,{ref:e}=t,r=n(t,["ref"]);return(0,o.h)("input",Object.assign({type:"file"},r,{onChange:this.onChange,multiple:!0}))}}i([a.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],b.prototype,"onChange",null),e.InputFiles=b},6730:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JSONView=void 0;const i=r(8170),s=r(4492);function n(t,e=0,r=[]){let s=typeof t;if(null===t)r.push((0,i.h)("span",{class:"null"},"null"));else if(void 0===t)r.push((0,i.h)("span",{class:"undefined"},"undefined"));else if("number"===s)r.push((0,i.h)("span",{class:"number"},+t));else if("string"===s)r.push((0,i.h)("span",{class:"string"},'"',t,'"'));else if("boolean"===s)r.push((0,i.h)("span",{class:""+t},""+t));else if(t.constructor===Object){r.push("{\n"),e+=1;let s=!0;for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];r.push(s?"\t".repeat(e):",\n"+"\t".repeat(e)),r.push('"'),r.push((0,i.h)("span",{class:"key"},o)),r.push('": '),n(a,e,r),s=!1}e-=1,r.push("\n"+"\t".repeat(e)+"}")}else if(t.constructor===Array){if(r.push("[\n"),e+=1,t.every((t=>"number"==typeof t)))for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.ListContainer=void 0;const i=r(6006);e.ListContainer=class{constructor(...t){this.internal=[],this.onChanged=new i.BasicEvent,this.onRemove=new i.BasicEvent,this.internal=[...t]}get size(){return this.internal.length}set(t){this.internal=t,this.onChanged.execute()}get(t){return this.internal[t]}add(t){let e=this.internal.push(t);return this.onChanged.execute(),e}remove(t){let e=this.internal.splice(t,1)[0];return this.onChanged.execute(),this.onRemove.execute(e,t),this.internal.length}removeValue(t){let e=this.internal.indexOf(t);return-1===e?this.internal.length:this.remove(e)}each(t){this.internal.forEach(t)}map(t){return this.internal.map(t)}}},6743:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ListSelect=e.SelectContainer=void 0;const n=r(8170),o=r(6006),a=r(4),h=r(4492);r(6271);class l extends h.BasicComponent{constructor(){super(...arguments),this.selected=!1}init(){this.options=this.props.options;{let t=this.options.index;this.selected=t===this.props.index}this.options.onSelected.addCallback(this.checkSelected,this)}willReceiveProps(t){this.props.name!==t.name&&this.update(),this.options!==t.options&&(this.options.onSelected.removeCallback(this.checkSelected,this),t.options.onSelected.addCallback(this.checkSelected,this))}checkSelected(){let t=this.options.index===this.props.index;this.selected!==t&&(this.selected=t,this.update())}select(){this.options.onSelected.execute(this.props.index)}render(){let t=void 0!==this.props?this.props.labelClass:void 0,e={ListElement:!0};return"string"==typeof t?e=Object.assign(Object.assign({},e),{[t]:!0}):void 0!==t&&(e=Object.assign(Object.assign({},e),t)),!0===this.selected&&(e.selected=!0),(0,n.h)("div",{key:this.props.name,class:e,onClick:this.select},this.props.name)}}i([h.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"select",null);class u extends a.ListContainer{constructor(...t){super(...t),this.onSelected=new o.BasicEvent,this.currentIndex=-1,this.onSelected.addCallback((t=>{this.currentIndex=t})),this.onRemove.addCallback(((t,e)=>{e===this.currentIndex?this.prev():e{t[e]=this.get(r)})),!0}update(t){this.currentIndex!==t&&(this.currentIndex=t,this.onSelected.execute(t))}prev(){this.currentIndex-1>=0&&(this.currentIndex--,this.onSelected.execute(this.currentIndex))}next(){this.currentIndex+1"string"==typeof t?(0,n.h)(l,{options:this.options,name:t,index:e}):(0,n.h)(l,{options:this.options,name:t.label,index:e,labelClass:t.labelClass}))))}}e.ListSelect=f},2009:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipProvider=e.Tooltip=void 0;const n=r(8170),o=r(4492),a=r(475);r(2930);class h extends o.BasicComponent{render(){return(0,n.h)("div",Object.assign({class:"Tooltip"},this.props),this.children)}}e.Tooltip=h;class l extends o.BasicComponent{willReceiveProps(){this.update()}onMouseEnter(){let t=this[n.$base].node.getClientRects();this.tooltip=a.Overlay.addFloating((0,n.h)(h,{style:{top:t[0].top,left:t[0].right+5,position:"fixed"}},this.props.renderTooltip()))}onMouseLeave(){this.tooltip&&a.Overlay.removeFloating(this.tooltip.instance)}render(){return(0,n.h)("div",Object.assign({class:"TooltipProvider",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},this.props),this.children)}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"onMouseEnter",null),i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"onMouseLeave",null),e.TooltipProvider=l},475:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Overlay=void 0;const i=r(4492),s=r(8170);r(8110);class n extends i.BasicComponent{constructor(){super(),this.visible=!1,this.queue=[],this.alerts=[],this.floating=[]}static create(t){this.instance&&console.error("Overlay already exists, overriding..."),(0,s.render)((0,s.h)(n,{ref:t=>{this.instance=t,console.log("ref",t)}}),t)}static add(t){let e=n.createInstance(t);return this.instance.queue.push(e),this.instance.update(),e}static remove(t){n.removeInstance(this.instance.queue,t),this.instance.update()}static addAlert(t){let e=n.createInstance(t);return this.instance.alerts.push(e),this.instance.update(),e}static removeAlert(t){n.removeInstance(this.instance.alerts,t),this.instance.update()}static addFloating(t){let e=n.createInstance(t);return this.instance.floating.push(e),this.instance.update(),e}static removeFloating(t){n.removeInstance(this.instance.floating,t),this.instance.update()}postUpdate(){this.queue.length>0?document.getElementsByTagName("body")[0].style.setProperty("overflow","hidden"):document.getElementsByTagName("body")[0].style.setProperty("overflow",null)}render(){let t=this.queue.length;if(t>0){let e=this.queue[t-1].vnode;return e.props.key=e.key,(0,s.h)("div",{id:"overlay-inner-container"},(0,s.h)("div",{class:"Overlay",key:"Overlay",style:{display:"flex"}},e),(0,s.h)("div",{class:"OverlayAlerts",key:"OverlayAlerts"},this.alerts.map((t=>t.vnode))),(0,s.h)("div",{class:"OverlayFloating",key:"OverlayFloating"},this.floating.map((t=>t.vnode))))}return(0,s.h)("div",{id:"overlay-inner-container"},(0,s.h)("div",{class:"Overlay",key:"Overlay",style:{display:"none"}}),(0,s.h)("div",{class:"OverlayAlerts",key:"OverlayAlerts"},this.alerts.map((t=>t.vnode))),(0,s.h)("div",{class:"OverlayFloating",key:"OverlayFloating"},this.floating.map((t=>t.vnode))))}static createInstance(t){void 0===this.instance&&console.error("Overlay not found...");let e={vnode:t,instance:void 0};return void 0===t.props&&(t.props={}),t.props.ref=t=>{e.instance=t},t.key="key_"+n.uniqueID++,t.props.persistent=!0,e}static removeInstance(t,e){void 0===this.instance&&console.error("Overlay not found...");const r=t.findIndex((t=>t.instance===e));let i;-1!==r&&(console.log("removing",r),i=t.splice(r,1)[0]),i&&(i.vnode.key=void 0,i.vnode.props.persistent=void 0,void 0!==i.instance&&(i.instance.__persistent=void 0,i.instance[Symbol.for("$TSX_internal_Destroy")]()))}}e.Overlay=n,n.uniqueID=1},8170:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Component=e.TSX=e.$base=e.render=e.renderClass=e.h=e.VNode=e.options=void 0;const i=r(6006);function s(...t){!0===e.options.verbose&&console.warn(`[H4X-TSX-DEBUG] %c${t.shift()}`,"color: #00D; font-weight: 800;",...t)}function n(...t){console.warn(`[H4X-TSX-ERROR] %c${t.shift()}`,"color: #D00; font-weight: 800;",...t)}e.options={};class o{}function a(t,e,...r){let i=[];h("function"!=typeof t,r,i);let s=new o;return s.type=t,s.children=i,null!==e&&(s.props=e,s.key=e.key),s}function h(t,e,r,i=!1){for(let s=0;s0))return;n("[VDOM] Raw nodes shouldn't have children defined in VDOM!")}for(const t of this.children)t.isActive=!1;let r=[];for(const e of t.children){let t;if(e instanceof o&&void 0!==e.key){if(t=this.mappedChildren.get(e.key),void 0!==t&&!1===t.isCompatible(e)){n(`[VNode] Incompatible component with key ${JSON.stringify(e.key)}, got ${t.typeName}, expected ${e.type.name}!`);let r=this.children.indexOf(t);r>-1&&(this.children.splice(r,1),this.node.removeChild(t.node)),t.destroy(),t=void 0,this.mappedChildren.delete(e.key)}}else{let r=0;for(;rt.node));!1===i.Utils.equals(t,e)&&n("[VDOM] Update failed, child nodes don't match!")}}setText(t){throw new Error("Can't set text on non VDomText!")}}const d={class:(t,e,r)=>{if(Array.isArray(r))r.length>0?t.setAttribute("class",r.join(" ")):t.removeAttribute("class");else if("object"==typeof r){let e=[];for(const t in r)r.hasOwnProperty(t)&&!0===r[t]&&e.push(t);e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}else"string"==typeof r?r.length>0?t.setAttribute("class",r):t.removeAttribute("class"):null==r?t.removeAttribute("class"):s("Got invalid attribute for style, of type "+typeof r+", and value "+r)},ref:(t,e,r)=>{e!==r&&(e&&e(null),r&&r(t))},style:(t,e,r)=>{let i=t.style;if(i instanceof CSSStyleDeclaration&&(r&&"string"!=typeof r?"string"==typeof e&&(i.cssText=""):i.cssText=r||"",r&&"object"==typeof r)){if("string"!=typeof e)for(let t in e)t in r||(i[t]="");for(let t in r)r.hasOwnProperty(t)&&(i[t]="flex"===t?r[t]:"number"==typeof r[t]?r[t]+"px":r[t])}},dangerouslySetInnerHTML:(t,e,r)=>{r&&(t.innerHTML=r.__html||"")},children:()=>{},innerHTML:()=>{}};d.className=d.class;class p extends c{constructor(){super(...arguments),this.props={},this.listeners={}}destroy(){for(const t of this.children)t.destroy();this.applyAttributes(void 0),this.node=void 0,this.props=void 0}get typeName(){return"VDomElement->"+this.nodeName}applyAttributes(t){let e=this.node;if(t){for(let r in this.props)null==t[r]&&null!=this.props[r]&&this.applyAttribute(e,r,this.props[r],void 0);for(let r in t)if(t.hasOwnProperty(r)){let i=this.props[r];"value"!==r&&"checked"!==r||(i=e[r]),t[r]!==i&&this.applyAttribute(e,r,i,t[r])}}else{for(let t in this.props)this.props.hasOwnProperty(t)&&this.applyAttribute(e,t,this.props[t],void 0);t={}}this.props=t}get eventHandler(){let t=this;const e=function(e){t.listeners[e.type](e,this)};return Object.defineProperty(this,"eventHandler",{value:e,configurable:!0,writable:!0}),e}applyAttribute(t,e,r,i){let s=d[e];if(void 0!==s)return s(t,r,i);if(e.startsWith("on"))e=e.toLowerCase().substring(2),i?r||t.addEventListener(e,this.eventHandler,!1):t.removeEventListener(e,this.eventHandler,!1),this.listeners[e]=i;else if(e.startsWith("capture"))e=e.toLowerCase().substring(7),i?r||t.addEventListener(e,this.eventHandler,!0):t.removeEventListener(e,this.eventHandler,!0),this.listeners[e]=i;else if("http://www.w3.org/2000/svg"!==t.namespaceURI&&"list"!==e&&"type"!==e&&e in t){try{t[e]=null==i?"":i}catch(t){}null!=i&&!1!==i||t.removeAttribute(e)}else null==i||!1===i?t.removeAttribute(e):"function"!=typeof i&&"object"!=typeof i&&t.setAttribute(e,i)}update(t){if(t instanceof o==0)throw new Error("Invalid node type!");if("string"!=typeof t.type)throw new Error("Invalid node type!");this.applyAttributes(t.props),this.updateChildren(t)}isCompatible(t){return t instanceof o&&"string"==typeof t.type&&t.type.toLowerCase()===this.nodeName}setText(t){throw new Error("Can't set text, invalid dom type!")}}class y extends c{constructor(t){super(),this.currentText="",this.currentText=t,this.init(document.createTextNode(t),void 0)}destroy(){this.node=void 0}get typeName(){return"VDomText"}setText(t){this.currentText!==t&&(this.currentText=t,this.node.nodeValue=t)}update(t){if("string"==typeof t)this.setText(""+t);else{if("number"!=typeof t)throw new Error("Invalid node type!");this.setText(""+t)}}isCompatible(t){return"string"==typeof t||"number"==typeof t}}class b extends f{constructor(t,r,i){if(super(),this.isPersistent=!1,void 0===t.prototype||void 0===t.prototype.render)throw new Error("Component need to have a render function!");let s=new t;if(!(t.prototype instanceof _))throw new Error("Components must extend the Component class!");this.instance=s,s[e.$base]=this,s[m](r,i),this.vdom=u(s.render()),void 0!==r&&(r.key&&(this.key=r.key),r.persistent&&(this.isPersistent=!0),r.ref&&r.ref(s))}get node(){return this.vdom.node}destroy(){this.vdom.destroy(),this.onDetached(),this.instance[B](),this.instance[e.$base]=void 0}onAttached(){this.instance[v]()}onDetached(){this.instance[A]()}get typeName(){return"VDomComponent->"+this.instance.constructor.name}componentUpdate(t){if(this.vdom.isCompatible(t))s("Compatible",this,t),this.vdom.update(t);else{s("Incompatible",this,t);let e=this.node;this.vdom=u(t),e.parentNode.replaceChild(this.node,e)}}update(t){if(s("VComponent update"),t instanceof o==0)throw new Error("Invalid node type!");if("string"==typeof t.type)throw new Error("Invalid node type!");{let e=this.instance;if(void 0===e)throw new Error("Missing component instance!");e[w](t.props,t.children)}}isCompatible(t){return t instanceof o&&"function"==typeof t.type&&this.instance.constructor===t.type}}e.$base=Symbol.for("$TSX_base");const w=Symbol.for("$TSX_internal_UpdateProps"),g=Symbol.for("$TSX_internal_Update"),m=Symbol.for("$TSX_internal_Init"),v=Symbol.for("$TSX_internal_Attached"),A=Symbol.for("$TSX_internal_Detached"),B=Symbol.for("$TSX_internal_Destroy");let C=new Set;!function(t){let e;function r(t){void 0!==e&&clearInterval(e),e=setInterval((()=>{let t=C;C=new Set,t.forEach((t=>{t[g]()}))}),1e3/t)}t.configureInterval=r,r(20)}(e.TSX||(e.TSX={}));class _{constructor(){this.UUID=Math.random().toFixed(16).substring(2),this.updateScheduled=!1,this.internalUpdating=!1,this.internalDestroyed=!1,s("created "+this.constructor.name)}[m](t,e){void 0===t&&(t={}),this.props=t,this.children=e,this.__init&&this.__init(),this.init()}init(){}[B](){this.internalDestroyed=!0,this.__destroy&&this.__destroy(),this.destroy()}destroy(){}onAttached(){}onDetached(){}[v](){this.onAttached(),s("Attached "+this.UUID)}[A](){this.onDetached(),s("Detached "+this.UUID)}[g](){void 0===this[e.$base]||(this.preUpdate(),this[e.$base].componentUpdate(this.render()),this.postUpdate())}update(){void 0===this[e.$base]&&(this.internalDestroyed?n("Component dom is undefined when trying to schedule an update, the component was been already destroyed!"):n("Component dom is undefined when trying to schedule an update!")),this.internalUpdating?this.updateScheduled=!0:C.add(this)}preUpdate(){}postUpdate(){}receivedProps(t,e){s("receivedProps "+this.constructor.name),this.willReceiveProps(t,e),this.props=t,this.children=e}willReceiveProps(t,e){}[w](t,e){void 0===t&&(t={}),s("internalUpdateProps "+this.constructor.name),this.internalUpdating=!0,this.receivedProps(t,e),this.internalUpdating=!1,this.updateScheduled&&(this[g](),this.updateScheduled=!1)}}e.Component=_,_.Children=Symbol.for("$TSX_Children")},7262:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),r(8170)},6429:function(t,e,r){var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){void 0===i&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}),s=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),s(r(8170),e),s(r(475),e),s(r(7262),e),s(r(4492),e),s(r(7045),e),s(r(6730),e),s(r(2009),e),s(r(4),e),s(r(6743),e),s(r(4095),e),s(r(2591),e),s(r(8634),e),s(r(1716),e),s(r(4916),e),s(r(4739),e),s(r(9423),e),s(r(5159),e),s(r(6998),e),s(r(5792),e)},5873:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptUtils=void 0,function(t){function e(t){return t.replace(/([\/\\]+)/g,"/")}function r(t){return(t=e(t)).endsWith(".js")||t.endsWith(".ts")||t.endsWith(".tsx")?t:t+".js"}t.normalizePath=e,t.normalizeName=r,t.normalizeFilename=function(t){return 0===(t=r(t)).indexOf("./")?t=t.substring(2):0===t.indexOf("/")&&(t=t.substring(1)),t}}(e.ScriptUtils||(e.ScriptUtils={}))},5014:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FormulatorWebsite=void 0,r(2106);const i=r(6429),s=r(5873);class n extends i.BasicComponent{render(){return h("div",{class:"FormulatorWebsite"},"FormulatorWebsite",h("div",null,s.ScriptUtils.normalizeName("aaa")))}}e.FormulatorWebsite=n},1921:function(t,e,r){var i=this&&this.__decorate||function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{h(i.next(t))}catch(t){n(t)}}function a(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}h((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),r(8758);const o=r(6429),a=r(6006);o.options.debug=!0;const h=r(6429);r.g.h=h.h,o.Overlay.create(document.getElementById("overlay-container"));class l extends o.BasicComponent{onClose(){o.Overlay.removeAlert(this)}render(){return(0,o.h)("div",{style:{margin:"10px 20px",padding:10,color:"#CCC","background-color":"#25384e",border:"2px solid #95384e","box-shadow":"0px 2px 8px 1px #F00","border-radius":10,"padding-right":25,position:"relative"}},(0,o.h)("i",{class:"far fa-times-circle",style:{position:"absolute",top:5,right:5},onClick:this.onClose}),(0,o.h)("span",{style:{color:"#F00","font-weight":"bold"}},"Error! "),this.children)}}i([o.BasicComponent.bind(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],l.prototype,"onClose",null),window.onerror=(t,e,r,i,s)=>s instanceof a.ErrorResponse&&(o.Overlay.addAlert((0,o.h)(l,null,s.message)),console.warn(s),!0),window.addEventListener("unhandledrejection",(t=>{let e=t.reason;return e instanceof a.ErrorResponse&&(o.Overlay.addAlert((0,o.h)(l,null,e.message)),console.warn(e),t.preventDefault(),!0)})),r(6287);const u=r(5014);(()=>{n(this,void 0,void 0,(function*(){(0,o.render)((0,o.h)(u.FormulatorWebsite,null),document.getElementById("app"))}))})()},8758:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),Set.prototype.map=function(t){return Array.from(this,t)},Set.prototype.find=function(t){let e=0;for(const r of this)if(t(r,e++))return r},Map.prototype.map=function(t){return Array.from(this,(([e,r])=>t(r,e)))},Object.prototype.map=function(t){return Object.entries(this).map((([e,r])=>t(r,e)))},Object.prototype.mapKey=function(t){return Object.keys(this).map((e=>t(e)))}}},e={};function r(i){var s=e[i];if(void 0!==s)return s.exports;var n=e[i]={id:i,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(1921)})(); //# sourceMappingURL=app.bundle.js.map