!function(t){function e(e){for(var n,r,c=e[0],a=e[1],o=0,s=[];ot[e]=n)}var E;function T(t){let e;switch(t){case E.ArrowDown:e="fas fa-arrow-down";break;case E.Eye:e="far fa-eye";break;case E.File:e="fas fa-file";break;case E.GitHub:e="fab fa-github";break;case E.LevelDown:e="fas fa-level-down-alt";break;case E.LevelUp:e="fas fa-level-up-alt";break;case E.LongArrowRight:e="fas fa-long-arrow-alt-right";break;case E.NewFile:e="fas fa-file-medical";break;case E.Play:e="fas fa-play";break;case E.Plus:e="fas fa-plus";break;case E.Redo:e="fas fa-redo";break;case E.Remove:e="fas fa-trash-alt";break;case E.Save:e="fas fa-save";break;case E.Stop:e="fas fa-stop";break;case E.SquareArrowRight:e="far fa-caret-square-right";break;case E.TriangleDown:e="fas fa-caret-down";break;case E.TriangleUp:e="fas fa-caret-up";break;case E.Undo:e="fas fa-undo"}return y(y({className:e}))}function R(t,e){const n=y(),r=e&&e.size;return n.style.display="inline-block",n.style.width=`${r}px`,n.style.height=`${r}px`,n.style.backgroundImage=`url(/assets/images/sectionids/${i.e[t]}.png)`,n.style.backgroundSize=`${r}px`,n.title=i.e[t],n}function P(t,e,n,r){return t.addEventListener(e,n,r),{dispose(){t.removeEventListener(e,n)}}}function O(t,e,n,r){return t.addEventListener(e,n,r),{dispose(){t.removeEventListener(e,n)}}}function I(t,e,n,r){const i=new a.a,s=e.observe_list(e=>{var a;e.type===c.a.ListChange?function(e){for(let n=0;n{const c=n(t,e.index+r);return Array.isArray(c)?(i.insert(e.index+r,c[1]),c[0]):c});if(e.index>=t.childElementCount)t.append(...r);else for(let n=0;n"),e.join("")}!function(t){t[t.ArrowDown=0]="ArrowDown",t[t.Eye=1]="Eye",t[t.File=2]="File",t[t.GitHub=3]="GitHub",t[t.LevelDown=4]="LevelDown",t[t.LevelUp=5]="LevelUp",t[t.LongArrowRight=6]="LongArrowRight",t[t.NewFile=7]="NewFile",t[t.Play=8]="Play",t[t.Plus=9]="Plus",t[t.Redo=10]="Redo",t[t.Remove=11]="Remove",t[t.Save=12]="Save",t[t.SquareArrowRight=13]="SquareArrowRight",t[t.Stop=14]="Stop",t[t.TriangleDown=15]="TriangleDown",t[t.TriangleUp=16]="TriangleUp",t[t.Undo=17]="Undo"}(E||(E={}))},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(66))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(1);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3),i=n(111),c=n(12),a=n(68),o=n(115),s=n(152),l=i("wks"),h=r.Symbol,u=s?h:h&&h.withoutSetter||a;t.exports=function(t){return c(l,t)||(o&&c(h,t)?l[t]=h[t]:l[t]=u("Symbol."+t)),l[t]}},function(t,e,n){var r=n(35),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r,i=n(133),c=n(6),a=n(3),o=n(4),s=n(12),l=n(78),h=n(21),u=n(19),f=n(10).f,d=n(39),v=n(58),p=n(7),m=n(68),g=a.Int8Array,z=g&&g.prototype,y=a.Uint8ClampedArray,M=y&&y.prototype,b=g&&d(g),x=z&&d(z),_=Object.prototype,w=_.isPrototypeOf,L=p("toStringTag"),C=m("TYPED_ARRAY_TAG"),S=i&&!!v&&"Opera"!==l(a.opera),H=!1,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A=function(t){return o(t)&&s(V,l(t))};for(r in V)a[r]||(S=!1);if((!S||"function"!=typeof b||b===Function.prototype)&&(b=function(){throw TypeError("Incorrect invocation")},S))for(r in V)a[r]&&v(a[r],b);if((!S||!x||x===_)&&(x=b.prototype,S))for(r in V)a[r]&&v(a[r].prototype,x);if(S&&d(M)!==x&&v(M,x),c&&!s(x,L))for(r in H=!0,f(x,L,{get:function(){return o(this)?this[C]:void 0}}),V)a[r]&&h(a[r],C,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:S,TYPED_ARRAY_TAG:H&&C,aTypedArray:function(t){if(A(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(v){if(w.call(b,t))return t}else for(var e in V)if(s(V,r)){var n=a[e];if(n&&(t===n||w.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(c){if(n)for(var r in V){var i=a[r];i&&s(i.prototype,t)&&delete i.prototype[t]}x[t]&&!n||u(x,t,n?e:S&&z[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(c){if(v){if(n)for(r in V)(i=a[r])&&s(i,t)&&delete i[t];if(b[t]&&!n)return;try{return u(b,t,n?e:S&&g[t]||e)}catch(t){}}for(r in V)!(i=a[r])||i[t]&&!n||u(i,t,e)}},isView:function(t){var e=l(t);return"DataView"===e||s(V,e)},isTypedArray:A,TypedArray:b,TypedArrayPrototype:x}},function(t,e,n){var r=n(6),i=n(147),c=n(5),a=n(37),o=Object.defineProperty;e.f=r?o:function(t,e,n){if(c(t),e=a(e,!0),c(n),i)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(20);t.exports=function(t){return Object(r(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r;function i(t){return null!=t&&t.is_list_property}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),function(t){t[t.ListChange=0]="ListChange",t[t.ValueChange=1]="ValueChange"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return M})),n.d(e,"e",(function(){return b})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return _})),n.d(e,"b",(function(){return w}));var r=n(23);const i=r.a.get("core/observable/SimpleEmitter");class c{constructor(){this.observers=[]}emit(t){for(const e of this.observers)try{e(t)}catch(t){i.error("Observer threw error.",t)}}observe(t){return this.observers.includes(t)||this.observers.push(t),{dispose:()=>{const e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)}}}}var a=n(105),o=n(52),s=n(17),l=n(13),h=n(81);const u=r.a.get("core/observable/property/list/AbstractListProperty");class f extends h.a{constructor(t){super(),this.compute_length=t,this.length=0}get val(){return this.get_val()}get_val(){return this.length=this.compute_length()}update(){const t=this.length,e=this.compute_length();t!==e&&(this.length=e,this.emit())}}class d extends h.a{constructor(t){super(),this.is_list_property=!0,this.value_observers=[],this.list_observers=[],this._length=new f(()=>this.compute_length()),this.length=this._length,this.extract_observables=t}get(t){return this.val[t]}observe_list(t,e){return 0===this.value_observers.length&&this.extract_observables&&this.replace_element_observers(0,1/0,this.val),this.list_observers.includes(t)||this.list_observers.push(t),e&&e.call_now&&this.call_list_observer(t,{type:l.a.ListChange,index:0,removed:[],inserted:this.val.slice()}),{dispose:()=>{const e=this.list_observers.indexOf(t);if(-1!==e&&this.list_observers.splice(e,1),0===this.list_observers.length){for(const{disposables:t}of this.value_observers)for(const e of t)e.dispose();this.value_observers.splice(0,1/0)}}}}[Symbol.iterator](){return this.val[Symbol.iterator]()}finalize_update(t){this.list_observers.length&&this.extract_observables&&t.type===l.a.ListChange&&this.replace_element_observers(t.index,t.removed.length,t.inserted),this._length.update();for(const e of this.list_observers)this.call_list_observer(e,t);this.emit()}call_list_observer(t,e){try{t(e)}catch(t){u.error("Observer threw error.",t)}}replace_element_observers(t,e,n){let r=t;const i=this.value_observers.splice(t,e,...n.map(t=>{const e={index:r,disposables:this.extract_observables(t).map(n=>n.observe(()=>{this.finalize_update({type:l.a.ValueChange,updated:[t],index:e.index})}))};return r++,e}));for(const{disposables:t}of i)for(const e of t)e.dispose();for(;r{n.dispose(),this.dispose_dependency_disposables()}}}observe_list(t,e){const n=super.observe_list(t,e);return this.init_dependency_disposables(),{dispose:()=>{n.dispose(),this.dispose_dependency_disposables()}}}should_recompute(){return 0===this.dependency_disposer.length}compute_length(){return this.should_recompute()&&(this.values=this.compute_values()),this.values.length}recompute_and_emit(){const t=this.values.slice();this.values=this.compute_values(),this.finalize_update({type:l.a.ListChange,index:0,removed:t,inserted:this.values.slice()})}init_dependency_disposables(){0===this.dependency_disposer.length&&(this.values=this.compute_values(),this.dependency_disposer.add_all(...this.dependencies.map(t=>t.observe(()=>{this.recompute_and_emit()}))))}dispose_dependency_disposables(){0===this.observers.length&&0===this.list_observers.length&&this.dependency_disposer.dispose_all()}}class m extends p{constructor(t,e){super(t),this.compute_values=e}filtered(t){return Object(s.a)(t)?new m([this,t],()=>this.val.filter(t.val)):new m([this],()=>this.val.filter(t))}}class g extends d{constructor(t,...e){super(t),this.values=e||[]}get val(){return this.get_val()}set val(t){this.set_val(t)}get_val(){return this.values}set_val(t){const e=this.values.splice(0,this.values.length,...t);return this.finalize_update({type:l.a.ListChange,index:0,removed:e,inserted:t.slice()}),e}filtered(t){return Object(s.a)(t)?new m([this,t],()=>this.val.filter(t.val)):new m([this],()=>this.val.filter(t))}bind_to(t){return Object(l.b)(t)?(this.set_val(t.val),t.observe_list(t=>{t.type===l.a.ListChange&&this.splice(t.index,t.removed.length,...t.inserted)})):(Object(s.a)(t)&&this.set_val(t.val),t.observe(({value:t})=>this.set_val(t)))}update(t){this.splice(0,this.values.length,...t(this.values))}set(t,e){const n=[this.values[t]];this.values[t]=e,this.finalize_update({type:l.a.ListChange,index:t,removed:n,inserted:[e]})}push(...t){const e=this.values.length;return this.values.push(...t),this.finalize_update({type:l.a.ListChange,index:e,removed:[],inserted:t.slice()}),this.length.val}remove(...t){for(const e of t){const t=this.values.indexOf(e);t>-1&&(this.values.splice(t,1),this.finalize_update({type:l.a.ListChange,index:t,removed:[e],inserted:[]}))}}clear(){const t=this.values.splice(0,this.values.length);this.finalize_update({type:l.a.ListChange,index:0,removed:t,inserted:[]})}splice(t,e,...n){let r;return r=null==e?this.values.splice(t):this.values.splice(t,e,...n),this.finalize_update({type:l.a.ListChange,index:t,removed:r,inserted:n.slice()}),r}sort(t){const e=this.values.slice();this.values.sort(t),this.finalize_update({type:l.a.ListChange,index:0,removed:e,inserted:this.values.slice()})}compute_length(){return this.values.length}}var z=n(53);class y extends p{constructor(t,e){super(t),this.compute=e}get_val(){return this.should_recompute()||!this.computed_property?super.get_val():this.computed_property.val}observe(t,e){const n=super.observe(t,e);return{dispose:()=>{var t;n.dispose(),0===this.observers.length&&(null===(t=this.computed_disposable)||void 0===t||t.dispose(),this.computed_disposable=void 0,this.computed_property=void 0)}}}observe_list(t,e){const n=super.observe_list(t,e);return{dispose:()=>{n.dispose()}}}map(t){return new o.a([this],()=>t(this.val))}flat_map(t){return new z.a([this],()=>t(this.val))}filtered(t){return Object(s.a)(t)?new m([this,t],()=>this.val.filter(t.val)):new m([this],()=>this.val.filter(t))}compute_values(){var t;return null===(t=this.computed_disposable)||void 0===t||t.dispose(),this.computed_property=this.compute(),this.computed_disposable=this.computed_property.observe_list(t=>{t.type===l.a.ListChange&&this.values.splice(t.index,t.removed.length,...t.inserted),this.finalize_update(t)}),this.computed_property.val.slice()}}function M(){return new c}function b(t){return new a.a(t)}function x(t,...e){return new g(t,...e)}function _(t,...e){return new o.a(e,()=>t(...e.map(t=>t.val)))}function w(t,...e){return new y(e,()=>t(...e.map(t=>t.val)))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(23),i=n(40);const c=r.a.get("core/observable/Disposer");class a{constructor(...t){this._disposed=!1,this.disposables=t}get length(){return this.disposables.length}get disposed(){return this._disposed}add(t){return this.disposed?t.dispose():this.disposables.push(t),t}insert(t,e){return this._disposed?e.dispose():this.disposables.splice(t,0,e),e}add_all(...t){if(this._disposed)for(const e of t)e.dispose();else this.disposables.push(...t);return this}remove(t){Object(i.b)(this.disposables,t),t.dispose()}dispose_all(){this.dispose_at(0,this.disposables.length)}dispose(){this.dispose_all(),this._disposed=!0}dispose_at(t,e=1){for(const n of this.disposables.splice(t,e))try{n.dispose()}catch(t){c.warn("Error while disposing.",t)}}}},function(t,e,n){var r=n(49),i=n(67),c=n(11),a=n(8),o=n(74),s=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,h=4==t,u=6==t,f=5==t||u;return function(d,v,p,m){for(var g,z,y=c(d),M=i(y),b=r(v,p,3),x=a(M.length),_=0,w=m||o,L=e?w(d,x):n?w(d,0):void 0;x>_;_++)if((f||_ in M)&&(z=b(g=M[_],_,y),t))if(e)L[_]=z;else if(z)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:s.call(L,g)}else if(h)return!1;return u?-1:l||h?h:L}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){"use strict";function r(t){return null!=t&&t.is_property}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(6),i=n(85),c=n(47),a=n(28),o=n(37),s=n(12),l=n(147),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=a(t),e=o(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return c(!i.f.call(t,e),t[e])}},function(t,e,n){var r=n(3),i=n(21),c=n(12),a=n(109),o=n(110),s=n(22),l=s.get,h=s.enforce,u=String(String).split("String");(t.exports=function(t,e,n,o){var s=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||i(n,"name",e),h(n).source=u.join("string"==typeof e?e:"")),t!==r?(s?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n)):l?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||o(this)}))},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(6),i=n(10),c=n(47);t.exports=r?function(t,e,n){return i.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r,i,c,a=n(149),o=n(3),s=n(4),l=n(21),h=n(12),u=n(86),f=n(69),d=o.WeakMap;if(a){var v=new d,p=v.get,m=v.has,g=v.set;r=function(t,e){return g.call(v,t,e),e},i=function(t){return p.call(v,t)||{}},c=function(t){return m.call(v,t)}}else{var z=u("state");f[z]=!0,r=function(t,e){return l(t,z,e),e},i=function(t){return h(t,z)?t[z]:{}},c=function(t){return h(t,z)}}t.exports={set:r,get:i,has:c,enforce:function(t){return c(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(27);function i(t){return`${c(t.getHours(),2)}:${c(t.getMinutes(),2)}:${c(t.getSeconds(),2)}.${c(t.getMilliseconds(),3)}`}function c(t,e){return t.toString().padStart(e,"0")}class a{constructor(t){this.name=t,this.trace=(t,e)=>{this.log(r.b.Trace,t,e)},this.debug=(t,e)=>{this.log(r.b.Debug,t,e)},this.info=(t,e)=>{this.log(r.b.Info,t,e)},this.warn=(t,e)=>{this.log(r.b.Warning,t,e)},this.error=(t,e)=>{this.log(r.b.Error,t,e)}}get severity(){var t;return null!==(t=this._severity)&&void 0!==t?t:o.default_severity}set severity(t){this._severity=t}get handler(){var t;return null!==(t=this._handler)&&void 0!==t?t:o.default_handler}set handler(t){this._handler=t}log(t,e,n){t>=this.severity&&this.handler({time:new Date,message:e,severity:t,logger:this,cause:n},this.name)}}class o{static get(t){let e=this.loggers.get(t);return e||(e=new a(t),this.loggers.set(t,e)),e}static with_default_handler(t,e){const n=this.default_handler;let r=!1;try{this.default_handler=t;const i=e();return i instanceof Promise?(r=!0,i.finally(()=>this.default_handler=n)):i}finally{r||(this.default_handler=n)}}}o.loggers=new Map,o.default_severity=Object(r.c)(("Info","Info")),o.default_handler=function({time:t,message:e,severity:n,logger:c,cause:a}){const o=`${i(t)} [${r.b[n]}] ${c.name} - ${e}`;let s;switch(n){case r.b.Trace:s=console.trace;break;case r.b.Debug:s=console.debug;break;case r.b.Info:s=console.info;break;case r.b.Warning:s=console.warn;break;case r.b.Error:s=console.error;break;default:s=console.log}null==a?s.call(console,o):s.call(console,o,a)}},function(t,e,n){var r=n(70),i=n(12),c=n(155),a=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:c.f(t)})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(6),i=n(1),c=n(12),a=Object.defineProperty,o={},s=function(t){throw t};t.exports=function(t,e){if(c(o,t))return o[t];e||(e={});var n=[][t],l=!!c(e,"ACCESSORS")&&e.ACCESSORS,h=c(e,0)?e[0]:s,u=c(e,1)?e[1]:void 0;return o[t]=!!n&&!i((function(){if(l&&!r)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,h,u)}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o}));var r,i=n(64),c=n(40);!function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Info=2]="Info",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Off=5]="Off"}(r||(r={}));const a=Object(i.a)(r);function o(t){const e=r[t.slice(0,1).toUpperCase()+t.slice(1).toLowerCase()];return Object(c.d)(null!=e,()=>`"${t}" is not a valid severity.`),e}},function(t,e,n){var r=n(67),i=n(20);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(20),i=/"/g;t.exports=function(t,e,n,c){var a=String(r(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(c).replace(i,""")+'"'),o+">"+a+""}},function(t,e,n){var r=n(1);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(64);const i=1/512,c=.1;var a;!function(t){t.Ephinea="Ephinea"}(a||(a={}));Object(r.a)(a);var o;!function(t){t[t.Viridia=0]="Viridia",t[t.Greenill=1]="Greenill",t[t.Skyly=2]="Skyly",t[t.Bluefull=3]="Bluefull",t[t.Purplenum=4]="Purplenum",t[t.Pinkal=5]="Pinkal",t[t.Redria=6]="Redria",t[t.Oran=7]="Oran",t[t.Yellowboze=8]="Yellowboze",t[t.Whitill=9]="Whitill"}(o||(o={}));const s=Object(r.a)(o);var l;!function(t){t[t.Normal=0]="Normal",t[t.Hard=1]="Hard",t[t.VHard=2]="VHard",t[t.Ultimate=3]="Ultimate"}(l||(l={}));const h=Object(r.a)(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(105);class i extends r.a{constructor(t,e,n){super(e),this.widget=t,this.set_value=n}set_val(t,e){this.set_value.call(this.widget,t),super.set_val(t,Object.assign({silent:!0},e))}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(70),i=n(3),c=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?c(r[t])||c(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return u}));var r,i=n(14),c=n(31),a=n(59),o=n(2),s=n(40);!function(t){t[t.Viewer=0]="Viewer",t[t.QuestEditor=1]="QuestEditor",t[t.HuntOptimizer=2]="HuntOptimizer"}(r||(r={}));const l=new Map([[r.Viewer,"viewer"],[r.QuestEditor,"quest_editor"],[r.HuntOptimizer,"hunt_optimizer"]]),h=new Map([...l.entries()].map(([t,e])=>[e,t]));class u extends a.a{constructor(){var t;super(),this._tool=Object(i.e)(r.Viewer),this._path=Object(i.e)(""),this.parameters=new Map,this._server=Object(i.e)(c.g.Ephinea),this.global_keydown_handlers=new Map,this.features=new Set,this.tool=this._tool,this.path=this._path,this.server=this._server,this.dispatch_global_keydown=t=>{const e=[];t.ctrlKey&&e.push("Ctrl"),t.shiftKey&&e.push("Shift"),t.altKey&&e.push("Alt"),e.push(t.key.toUpperCase());const n=e.join("-"),r=this.global_keydown_handlers.get(this.handler_key(this.tool.val,n));r&&(t.preventDefault(),r(t))};const e=window.location.hash.slice(1),[n,a]=e.split("?"),s=n.indexOf("/",1),l=null!==(t=function(t){return h.get(t)}(-1===s?n.slice(1):n.slice(1,s)))&&void 0!==t?t:r.Viewer,u=-1===s?"":n.slice(s);if(a){const t=new Map;for(const[e,n]of a.split("&").map(t=>t.split("=",2)))if("features"===e)for(const t of n.split(","))this.features.add(t);else t.set(e,n);this.parameters.set(n,t)}this.disposables(Object(o.g)(window,"keydown",this.dispatch_global_keydown)),this.set_tool(l,u)}get full_path(){return`/${f(this.tool.val)}${this.path.val}`}set_tool(t,e=""){this._path.val=e,this._tool.val=t,this.update_location()}set_path_prefix(t){this.path.val.startsWith(t)||(this._path.val=t,this.update_location())}get_parameter(t,e,n){return Object(s.h)(this.parameters,`/${f(t)}${e}`,()=>new Map).get(n)}bind_parameter(t,e,n,r){Object(s.d)("features"!==n,"features can't be bound because it is a global parameter.");const i=Object(s.h)(this.parameters,this.full_path,()=>new Map);return r.observe(({value:r})=>{this.tool.val===t&&this.path.val===e&&(void 0===r?i.delete(n):i.set(n,r),this.update_location())})}update_location(){const t=[],e=this.parameters.get(this.full_path);if(e)for(const[n,r]of e.entries())t.push([n,r]);this.features.size&&t.push(["features",[...this.features].join(",")]);const n=0===t.length?"":"?"+t.map(t=>t.join("=")).join("&");window.location.hash=`#${this.full_path}${n}`}on_global_keydown(t,e,n){const r=this.handler_key(t,e);return this.global_keydown_handlers.set(r,n),{dispose:()=>{this.global_keydown_handlers.delete(r)}}}feature_active(t){return this.features.has(t)}handler_key(t,e){return`${r[t]} -> ${e}`}}function f(t){const e=l.get(t);if(e)return e;throw new Error(`To string not implemented for ${r[t]}.`)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=!1},function(t,e,n){var r=n(12),i=n(11),c=n(86),a=n(119),o=c("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){"use strict";function r(t,e,n=((t,e)=>t===e)){const r=t.length;if(r!==e.length)return!1;for(let i=0;i1?t.slice(0,e):t}function s(t){const e=t.lastIndexOf(".");return e>1?t.slice(e+1):t}function l(t,e){if(!t){let t="Assertion Error";throw e&&(t+=": "+(e instanceof Function?e():e)),new Error(t)}}function h(t,e){l(null!=t,()=>`${e} should not be null or undefined (was ${t}).`)}function u(t,e){l(Number.isFinite(t),()=>`${e} should be a finite number (was ${t}).`)}function f(t,e){l(Number.isInteger(t),()=>`${e} should be an integer (was ${t}).`)}function d(t,e){l(Number.isInteger(t)&&t>=0,()=>`${e} should be a non-negative integer (was ${t}).`)}function v(t,e){l(Array.isArray(t),()=>`${e} should be an array (was ${t}).`)}function p(t,e=8){return t.toString(16).padStart(e,"0")}n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"f",(function(){return h})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"j",(function(){return v})),n.d(e,"i",(function(){return p}))},function(t,e,n){var r=n(10).f,i=n(12),c=n(7)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(15),i=n(32);const c=n(23).a.get("core/gui/Widget");class a{constructor(t={}){this.disposer=new r.a,this._active=!1,this._visible=new i.a(this,!0,this.set_visible),this._enabled=new i.a(this,!0,this.set_enabled),this._tooltip=new i.a(this,"",this.set_tooltip),this.construction_finalized=!1,this.visible=this._visible,this.enabled=this._enabled,this.tooltip=this._tooltip,this.options=t,setTimeout(()=>{this.construction_finalized||c.error(`finalize_construction is never called for ${Object.getPrototypeOf(this).constructor.name}.`)},0)}get id(){return this.element.id}set id(t){this.element.id=t}get active(){return this._active}get disposed(){return this.disposer.disposed}activate(){this._active=!0;for(const t of this.children)t.activate()}deactivate(){this._active=!1;for(const t of this.children)t.deactivate()}focus(){this.element.focus()}dispose(){this.element.remove(),this.disposer.dispose()}finalize_construction(){Object.getPrototypeOf(this)===this.constructor.prototype&&(this.options.id&&(this.element.id=this.options.id),this.options.class&&this.element.classList.add(this.options.class),"boolean"==typeof this.options.visible?this.visible.val=this.options.visible:this.options.visible&&this.visible.bind_to(this.options.visible),"boolean"==typeof this.options.enabled?this.enabled.val=this.options.enabled:this.options.enabled&&this.enabled.bind_to(this.options.enabled),"string"==typeof this.options.tooltip?this.tooltip.val=this.options.tooltip:this.options.tooltip&&this.tooltip.bind_to(this.options.tooltip),this.construction_finalized=!0)}set_visible(t){this.element.hidden=!t}set_enabled(t){t?this.element.classList.remove("disabled"):this.element.classList.add("disabled")}set_tooltip(t){this.element.title=t}disposable(t){return this.disposer.add(t)}disposables(...t){this.disposer.add_all(...t)}remove_disposable(t){this.disposer.remove(t)}}},function(t,e,n){var r,i=n(5),c=n(116),a=n(113),o=n(69),s=n(153),l=n(108),h=n(86),u=h("IE_PROTO"),f=function(){},d=function(t){return"