define("text/text-inline-preview",["module"],function(e){"use strict";var t,i,n,r,o,a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],s=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,u=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,l="undefined"!=typeof location&&location.href,c=(l&&location.protocol&&location.protocol.replace(/\:/,""),l&&location.hostname,l&&location.port,{}),d=e.config&&e.config()||{};return t={version:"2.0.14",strip:function(e){if(e){e=e.replace(s,"");var t=e.match(u);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:d.createXhr||function(){var e,t,i;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;t<3;t+=1){i=a[t];try{e=new ActiveXObject(i)}catch(e){}if(e){a=[i];break}}return e},parseName:function(e){var t,i,n,r=!1,o=e.lastIndexOf("."),a=0===e.indexOf("./")||0===e.indexOf("../");return-1!==o&&(!a||o>1)?(t=e.substring(0,o),i=e.substring(o+1)):t=e,n=i||t,o=n.indexOf("!"),-1!==o&&(r="strip"===n.substring(o+1),n=n.substring(0,o),i?i=n:t=n),{moduleName:t,ext:i,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,i,n,r){var o,a,s,u=t.xdRegExp.exec(e);return!u||(o=u[2],a=u[3],a=a.split(":"),s=a[1],a=a[0],!(o&&o!==i||a&&a.toLowerCase()!==n.toLowerCase()||(s||a)&&s!==r))},finishLoad:function(e,i,n,r){n=i?t.strip(n):n,d.isBuild&&(c[e]=n),r(n)},load:function(e,i,n,r){if(r&&r.isBuild&&!r.inlineText)return void n();d.isBuild=r&&r.isBuild;var o=t.parseName(e),a=o.moduleName+(o.ext?"."+o.ext:""),s=i.toUrl(a);d.useXhr||t.useXhr;if(0===s.indexOf("empty:"))return void n();t.get(s,function(i){t.finishLoad(e,o.strip,i,n)},function(e){n.error&&n.error(e)})},write:function(e,i,n,r){if(c.hasOwnProperty(i)){var o=t.jsEscape(c[i]);n.asModule(e+"!"+i,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,i,n,r,o){var a=t.parseName(i),s=a.ext?"."+a.ext:"",u=a.moduleName+s,l=n.toUrl(a.moduleName+s)+".js";t.load(u,n,function(i){var n=function(e){return r(l,e)};n.asModule=function(e,t){return r.asModule(e,l,t)},t.write(e,u,n,o)},o)}},"node"===d.env||!d.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(i=require.nodeRequire("fs"),t.get=function(e,t,n){try{var r=i.readFileSync(e,"utf8");"\ufeff"===r[0]&&(r=r.substring(1)),t(r)}catch(e){n&&n(e)}}):"xhr"===d.env||!d.env&&t.createXhr()?t.get=function(e,i,n,r){var o,a=t.createXhr();if(a.open("GET",e,!0),r)for(o in r)r.hasOwnProperty(o)&&a.setRequestHeader(o.toLowerCase(),r[o]);d.onXhr&&d.onXhr(a,e),a.onreadystatechange=function(t){var r,o;4===a.readyState&&(r=a.status||0,r>399&&r<600?(o=new Error(e+" HTTP status: "+r),o.xhr=a,n&&n(o)):i(a.responseText),d.onXhrComplete&&d.onXhrComplete(a,e))},a.send(null)}:"rhino"===d.env||!d.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var i,n,r=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(r),"utf-8")),s="";try{for(i=new java.lang.StringBuffer,n=a.readLine(),n&&n.length()&&65279===n.charAt(0)&&(n=n.substring(1)),null!==n&&i.append(n);null!==(n=a.readLine());)i.append(o),i.append(n);s=String(i.toString())}finally{a.close()}t(s)}:("xpconnect"===d.env||!d.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(n=Components.classes,r=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),o="@mozilla.org/windows-registry-key;1"in n,t.get=function(e,t){var i,a,s,u={};o&&(e=e.replace(/\//g,"\\")),s=new FileUtils.File(e);try{i=n["@mozilla.org/network/file-input-stream;1"].createInstance(r.nsIFileInputStream),i.init(s,1,0,!1),a=n["@mozilla.org/intl/converter-input-stream;1"].createInstance(r.nsIConverterInputStream),a.init(i,"utf-8",i.available(),r.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),a.readString(i.available(),u),a.close(),i.close(),t(u.value)}catch(e){throw new Error((s&&s.path||"")+": "+e)}}),t}),define("text",["text/text-inline-preview"],function(e){return e}),define("moment",["require","exports"],function(e,t){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),function(){if(window&&window.dayjs)return window.dayjs.extend(window.dayjs_plugin_timezone),window.dayjs.extend(window.dayjs_plugin_utc),window.dayjs.extend(window.dayjs_plugin_advancedFormat),window.dayjs.extend(window.dayjs_plugin_duration),window.dayjs.extend(window.dayjs_plugin_localizedFormat),window.dayjs.extend(window.dayjs_plugin_customParseFormat),window.dayjs}()}),define("moment/moment-bypassing",[],function(){}),define("moment-timezone",["require","exports"],function(e,t){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),function(){if(window&&window.dayjs)return window.dayjs}()}),define("moment-timezone/moment-timezone-bypassing",[],function(){}),define("aurelia-templating",["exports","aurelia-logging","aurelia-metadata","aurelia-pal","aurelia-path","aurelia-loader","aurelia-dependency-injection","aurelia-binding","aurelia-task-queue"],function(e,t,i,n,r,o,a,s,u){"use strict";function l(e){return"-"+e.toLowerCase()}function c(e){return(e.charAt(0).toLowerCase()+e.slice(1)).replace(We,l)}function d(e){return!(e.auInterpolationTarget||/[^\t\n\r ]/.test(e.textContent))}function h(e){var t=function(e){i.metadata.define(i.metadata.resource,new $e,e)};return e?t(e):t}function p(e){throw new Error("BindingLanguage must implement "+e+"().")}function f(e,t,i,n){if(t){var r=e[t];if(r){if(r!==i)throw new Error("Attempted to register "+n+" when one with the same name already exists. Name: "+t+".")}else e[t]=i}}function v(e){if(void 0!==e.animatableElement)return e.animatableElement;for(var t=e.firstChild;t&&1!==t.nodeType;)t=t.nextSibling;return t&&1===t.nodeType?e.animatableElement=t.classList.contains("au-animate")?t:null:e.animatableElement=null}function m(e){if(e===n.DOM.Element)return this.element;if(e===mt){if(this.boundViewFactory)return this.boundViewFactory;var t=this.instruction.viewFactory,i=this.partReplacements;return i&&(t=i[t.part]||t),this.boundViewFactory=new mt(this,t,i),this.boundViewFactory}return e===pt?(void 0===this.viewSlot&&(this.viewSlot=new pt(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):e===Xe?this.elementEvents||(this.elementEvents=new Xe(this.element)):e===qe?this.compositionTransaction||(this.compositionTransaction=this.parent.get(e)):e===dt?this.viewResources:e===Ye?this.instruction:this.superGet(e)}function g(e,t,i,n,r,o){var a=e.createChild(),s=void 0,u=void 0;for(a.element=t,a.instruction=i,a.children=n,a.viewResources=o,a.partReplacements=r,s=i.providers,u=s.length;u--;)a._resolvers.set(s[u],vt);return a.superGet=a.get,a.get=m,a}function y(e){return this._element.hasAttribute(e)}function b(e){return this._element.getAttribute(e)}function w(e,t){this._element.setAttribute(e,t)}function C(e,t){var i=n.DOM.createComment("anchor");if(t){var r=e.firstChild;r&&"AU-CONTENT"===r.tagName&&(i.contentElement=r),i._element=e,i.hasAttribute=y,i.getAttribute=b,i.setAttribute=w}return n.DOM.replaceNode(i,e),i}function S(e,t,i,r,o,a,s,u,l){var c=i.behaviorInstructions,d=i.expressions,h=void 0,p=void 0,f=void 0,v=void 0,m=void 0;if(i.contentExpression)return o.push(i.contentExpression.createBinding(t.nextSibling)),t.nextSibling.auInterpolationTarget=!0,void t.parentNode.removeChild(t);if(i.shadowSlot){var y=n.DOM.createComment("slot"),b=void 0;return b=i.slotDestination?new ut(y,i.slotName,i.slotDestination,i.slotFallbackFactory):new lt(y,i.slotName,i.slotFallbackFactory),n.DOM.replaceNode(y,t),s[i.slotName]=b,void r.push(b)}if(c.length)for(i.anchorIsContainer||(t=C(t,i.elementInstruction)),e[i.injectorId]=h=g(e[i.parentInjectorId],t,i,a,u,l),p=0,f=c.length;p<f;++p)v=c[p],m=v.type.create(h,v,t,o),r.push(m);for(p=0,f=d.length;p<f;++p)o.push(d[p].createBinding(t))}function x(e,t){var i=e.split(";"),n=void 0,r=void 0,o=void 0,a=void 0,s=void 0;for(t=t||{},r=0;r<i.length;r++)o=i[r],n=o.indexOf(":"),a=o.substring(0,n).trim(),s=o.substring(n+1).trim(),t[a]=s;return t}function O(e){var t="";for(var i in e)t+=i+":"+e[i]+";";return t}function M(e,t,i,n,r,o){var a=i.behaviorInstructions,s=i.expressions,u=i.providers,l=i.values,c=void 0,d=void 0,h=void 0,p=void 0,f=void 0;for(c=u.length;c--;)e._resolvers.set(u[c],vt);for(var v in l)if(f=t.getAttribute(v)){if("class"===v)t.setAttribute("class",f+" "+l[v]);else if("style"===v){var m=x(l[v]);x(f,m),t.setAttribute("style",O(m))}}else t.setAttribute(v,l[v]);if(a.length)for(c=0,d=a.length;c<d;++c)h=a[c],p=h.type.create(e,h,t,r),p.contentView&&o.push(p.contentView),n.push(p);for(c=0,d=s.length;c<d;++c)r.push(s[c].createBinding(t))}function _(){return++yt}function E(){return(++bt).toString()}function V(e){var t=e.getAttribute("class"),i=E();return e.setAttribute("class",t?t+" au-target":"au-target"),e.setAttribute("au-target-id",i),i}function A(e,t,i,r,o){var a=n.DOM.createElement("au-shadow-slot");n.DOM.replaceNode(a,i);var s=V(a),u=Ye.shadowSlot(o);if(u.slotName=i.getAttribute("name")||ct.defaultSlotKey,u.slotDestination=i.getAttribute("slot"),i.innerHTML.trim()){for(var l=n.DOM.createDocumentFragment(),c=void 0;c=i.firstChild;)l.appendChild(c);u.slotFallbackFactory=e.compile(l,t)}return r[s]=u,a}function T(e,t){return t instanceof o.TemplateRegistryEntry?Promise.resolve(t):e.loadTemplate(t)}function N(e,t){var n=e.__observers__;if(void 0===n){var r=Object.getPrototypeOf(e).constructor,o=i.metadata.get(i.metadata.resource,r);o.isInitialized||o.initialize(a.Container.instance||new a.Container,e.constructor),n=o.observerLocator.getOrCreateObserversLookup(e),o._ensurePropertiesDefined(e,n)}return n[t]}function B(){return++Nt}function P(){return!0}function j(){}function R(e,t){return function(n,r,o){var a="string"==typeof r?n.constructor:n,s=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,a);"string"==typeof e&&(e={selector:e,name:r}),o&&(o.writable=!0,o.configurable=!0),e.all=t,s.addChildBinding(new Pt(e))}}function F(e){return R(e,!0)}function k(e){return R(e,!1)}function I(e,t,i){var n=e.get(t);n||(n=[],e.set(t,n)),n.push(i)}function L(e,t){for(var i=t.binders,n=i.length,r=new Map,o=0,a=e.length;o<a;++o){for(var s=e[o],u=s.addedNodes,l=s.removedNodes,c=0,d=l.length;c<d;++c){var h=l[c];if(1===h.nodeType)for(var p=0;p<n;++p){var f=i[p];f.onRemove(h)&&I(r,f,s)}}for(var v=0,m=u.length;v<m;++v){var g=u[v];if(1===g.nodeType)for(var y=0;y<n;++y){var b=i[y];b.onAdd(g)&&I(r,b,s)}}}r.forEach(function(e,t){null!==t.changeHandler&&t.viewModel[t.changeHandler](e)})}function z(e,t){return Array.isArray(t)?e.removeMany(t,!0):e.remove(t,!0)}function D(e){return e.skipActivation||"function"!=typeof e.viewModel.activate?Promise.resolve():e.viewModel.activate(e.model)||Promise.resolve()}function H(e,t){if(/[A-Z]/.test(e)){var i=c(e);return Ie.getLogger("templating").warn("'"+e+"' is not a valid "+t+" name and has been converted to '"+i+"'. Upper-case letters are not allowed because the DOM is not case-sensitive."),i}return e}function U(e){return function(t){i.metadata.define(i.metadata.resource,e,t)}}function q(e){return function(t){if(e instanceof Bt)i.metadata.define(i.metadata.resource,e,t);else{var n=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,t);Object.assign(n,e)}}}function W(e){return function(t){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,t).elementName=H(e,"custom element")}}function $(e,t,n){return function(r){var o=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,r);o.attributeName=H(e,"custom attribute"),o.attributeDefaultBindingMode=t,o.aliases=n}}function X(e){var t=function(e){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,e).liftsContent=!0};return e?t(e):t}function K(e,t,n){var r=function(t,n,r){var o=n?t.constructor:t,a=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,o),s=void 0;return n&&(e=e||{},e.name=n),s=new Tt(e),s.registerWith(o,a,r)};if(!e)return r;if(t){var o=e;return e=null,r(o,t,n)}return r}function G(e){var t=function(e){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,e).hasDynamicOptions=!0};return e?t(e):t}function Q(e){var t="function"!=typeof e&&e?e:Lt,n=function(e){var n=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,e);n.targetShadowDOM=!0,n.shadowDOMOptions=t};return"function"==typeof e?n(e):n}function Y(e){return function(t){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,t).processAttributes=function(t,i,n,r,o){try{e(t,i,n,r,o)}catch(e){Ie.getLogger("templating").error(e)}}}}function J(){return!1}function Z(e){return function(t){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,t).processContent=e?function(t,i,n,r){try{return e(t,i,n,r)}catch(e){return Ie.getLogger("templating").error(e),!1}}:J}}function ee(e){var t=function(e){i.metadata.getOrCreateOwn(i.metadata.resource,Bt,e).containerless=!0};return e?t(e):t}function te(e){return function(t){i.metadata.define(rt.viewStrategyMetadataKey,e,t)}}function ie(e){return te(new Ze(e))}function ne(e,t,i){return te(new nt(e,t,i))}function re(e,t){var n=void 0,r=void 0;"function"==typeof e?n=e:(r=e,n=void 0);var o=function(e){i.metadata.define(rt.viewStrategyMetadataKey,new tt(r,t),e)};return n?o(n):o}function oe(e){var t=function(e){i.metadata.define(i.metadata.resource,new It,e)};return e?t(e):t}function ae(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){i.metadata.define(Et.viewModelRequireMetadataKey,t,e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingEngine=e.ElementConfigResource=e.CompositionEngine=e.SwapStrategies=e.HtmlBehaviorResource=e.BindableProperty=e.BehaviorPropertyObserver=e.Controller=e.ViewEngine=e.ModuleAnalyzer=e.ResourceDescription=e.ResourceModule=e.ViewCompiler=e.ViewFactory=e.BoundViewFactory=e.ViewSlot=e.View=e.ViewResources=e.ShadowDOM=e.ShadowSlot=e.PassThroughSlot=e.SlotCustomAttribute=e.BindingLanguage=e.ViewLocator=e.InlineViewStrategy=e.TemplateRegistryViewStrategy=e.NoViewStrategy=e.ConventionalViewStrategy=e.RelativeViewStrategy=e.viewStrategy=e.TargetInstruction=e.BehaviorInstruction=e.ViewCompileInstruction=e.ResourceLoadContext=e.ElementEvents=e.ViewEngineHooksResource=e.CompositionTransaction=e.CompositionTransactionOwnershipToken=e.CompositionTransactionNotifier=e.Animator=e.animationEvent=void 0,e._hyphenate=c,e._isAllWhitespace=d,e.viewEngineHooks=h,e.children=F,e.child=k,e.resource=U,e.behavior=q,e.customElement=W,e.customAttribute=$,e.templateController=X,e.bindable=K,e.dynamicOptions=G,e.useShadowDOM=Q,e.processAttributes=Y,e.processContent=Z,e.containerless=ee,e.useViewStrategy=te,e.useView=ie,e.inlineView=ne,e.noView=re,e.elementConfig=oe,e.viewResources=ae;var se,ue,le,ce,de,he,pe,fe,ve,me,ge,ye,be,we,Ce,Se,xe,Oe,Me,_e,Ee,Ve,Ae,Te,Ne,Be,Pe,je,Re,Fe,ke,Ie=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(t),Le=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De=(e.animationEvent={enterBegin:"animation:enter:begin",enterActive:"animation:enter:active",enterDone:"animation:enter:done",enterTimeout:"animation:enter:timeout",leaveBegin:"animation:leave:begin",leaveActive:"animation:leave:active",leaveDone:"animation:leave:done",leaveTimeout:"animation:leave:timeout",staggerNext:"animation:stagger:next",removeClassBegin:"animation:remove-class:begin",removeClassActive:"animation:remove-class:active",removeClassDone:"animation:remove-class:done",removeClassTimeout:"animation:remove-class:timeout",addClassBegin:"animation:add-class:begin",addClassActive:"animation:add-class:active",addClassDone:"animation:add-class:done",addClassTimeout:"animation:add-class:timeout",animateBegin:"animation:animate:begin",animateActive:"animation:animate:active",animateDone:"animation:animate:done",animateTimeout:"animation:animate:timeout",sequenceBegin:"animation:sequence:begin",sequenceDone:"animation:sequence:done"},e.Animator=function(){function e(){}return e.prototype.enter=function(e){return Promise.resolve(!1)},e.prototype.leave=function(e){return Promise.resolve(!1)},e.prototype.removeClass=function(e,t){return e.classList.remove(t),Promise.resolve(!1)},e.prototype.addClass=function(e,t){return e.classList.add(t),Promise.resolve(!1)},e.prototype.animate=function(e,t){return Promise.resolve(!1)},e.prototype.runSequence=function(e){},e.prototype.registerEffect=function(e,t){},e.prototype.unregisterEffect=function(e){},e}()),He=e.CompositionTransactionNotifier=function(){function e(e){this.owner=e,this.owner._compositionCount++}return e.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},e}(),Ue=e.CompositionTransactionOwnershipToken=function(){function e(e){this.owner=e,this.owner._ownershipToken=this,this.thenable=this._createThenable()}return e.prototype.waitForCompositionComplete=function(){return this.owner._tryCompleteTransaction(),this.thenable},e.prototype.resolve=function(){this._resolveCallback()},e.prototype._createThenable=function(){var e=this;return new Promise(function(t,i){e._resolveCallback=t})},e}(),qe=e.CompositionTransaction=function(){function e(){this._ownershipToken=null,this._compositionCount=0}return e.prototype.tryCapture=function(){return null===this._ownershipToken?new Ue(this):null},e.prototype.enlist=function(){return new He(this)},e.prototype._tryCompleteTransaction=function(){if(this._compositionCount<=0&&(this._compositionCount=0,null!==this._ownershipToken)){var e=this._ownershipToken;this._ownershipToken=null,e.resolve()}},e}(),We=/([A-Z])/g,$e=e.ViewEngineHooksResource=function(){function e(){}return e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerViewEngineHooks(this.instance)},e.prototype.load=function(e,t){},e.convention=function(t){if(t.endsWith("ViewEngineHooks"))return new e},e}(),Xe=e.ElementEvents=function(){function e(e){this.element=e,this.subscriptions={}}return e.prototype._enqueueHandler=function(e){this.subscriptions[e.eventName]=this.subscriptions[e.eventName]||[],this.subscriptions[e.eventName].push(e)},e.prototype._dequeueHandler=function(e){var t=void 0,i=this.subscriptions[e.eventName];return i&&(t=i.indexOf(e))>-1&&i.splice(t,1),e},e.prototype.publish=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=n.DOM.createCustomEvent(e,{cancelable:r,bubbles:i,detail:t});this.element.dispatchEvent(o)},e.prototype.subscribe=function(e,t){var i=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&"function"==typeof t)return t.eventName=e,t.handler=t,t.bubbles=n,t.dispose=function(){i.element.removeEventListener(e,t,n),i._dequeueHandler(t)},this.element.addEventListener(e,t,n),this._enqueueHandler(t),t},e.prototype.subscribeOnce=function(e,t){var i=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&"function"==typeof t){var r=function(){var r=function e(i){t(i),e.dispose()};return{v:i.subscribe(e,r,n)}}();if("object"===(void 0===r?"undefined":ze(r)))return r.v}},e.prototype.dispose=function(e){if(e&&"string"==typeof e){var t=this.subscriptions[e];if(t)for(;t.length;){var i=t.pop();i&&i.dispose()}}else this.disposeAll()},e.prototype.disposeAll=function(){for(var e in this.subscriptions)this.dispose(e)},e}(),Ke=e.ResourceLoadContext=function(){function e(){this.dependencies={}}return e.prototype.addDependency=function(e){this.dependencies[e]=!0},e.prototype.hasDependency=function(e){return e in this.dependencies},e}(),Ge=e.ViewCompileInstruction=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.targetShadowDOM=e,this.compileSurrogate=t,this.associatedModuleId=null};Ge.normal=new Ge;var Qe=e.BehaviorInstruction=function(){function e(){this.initiatedByBehavior=!1,this.enhance=!1,this.partReplacements=null,this.viewFactory=null,this.originalAttrName=null,this.skipContentProcessing=!1,this.contentFactory=null,this.viewModel=null,this.anchorIsContainer=!1,this.host=null,this.attributes=null,this.type=null,this.attrName=null,this.inheritBindingContext=!1}return e.enhance=function(){var t=new e;return t.enhance=!0,t},e.unitTest=function(t,i){var n=new e;return n.type=t,n.attributes=i||{},n},e.element=function(t,i){var n=new e;return n.type=i,n.attributes={},n.anchorIsContainer=!(t.hasAttribute("containerless")||i.containerless),n.initiatedByBehavior=!0,n},e.attribute=function(t,i){var n=new e;return n.attrName=t,n.type=i||null,n.attributes={},n},e.dynamic=function(t,i,n){var r=new e;return r.host=t,r.viewModel=i,r.viewFactory=n,r.inheritBindingContext=!0,r},e}();Qe.normal=new Qe;var Ye=e.TargetInstruction=(ue=se=function(){function e(){this.injectorId=null,this.parentInjectorId=null,this.shadowSlot=!1,this.slotName=null,this.slotFallbackFactory=null,this.contentExpression=null,this.expressions=null,this.behaviorInstructions=null,this.providers=null,this.viewFactory=null,this.anchorIsContainer=!1,this.elementInstruction=null,this.lifting=!1,this.values=null}return e.shadowSlot=function(t){var i=new e;return i.parentInjectorId=t,i.shadowSlot=!0,i},e.contentExpression=function(t){var i=new e;return i.contentExpression=t,i},e.lifting=function(t,i){var n=new e;return n.parentInjectorId=t,n.expressions=e.noExpressions,n.behaviorInstructions=[i],n.viewFactory=i.viewFactory,n.providers=[i.type.target],n.lifting=!0,n},e.normal=function(t,i,n,r,o,a){var s=new e;return s.injectorId=t,s.parentInjectorId=i,s.providers=n,s.behaviorInstructions=r,s.expressions=o,s.anchorIsContainer=!a||a.anchorIsContainer,s.elementInstruction=a,s},e.surrogate=function(t,i,n,r){var o=new e;return o.expressions=n,o.behaviorInstructions=i,o.providers=t,o.values=r,o},e}(),se.noExpressions=Object.freeze([]),ue),Je=e.viewStrategy=i.protocol.create("aurelia:view-strategy",{validate:function(e){return"function"==typeof e.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise<ViewFactory>"},compose:function(e){"function"!=typeof e.makeRelativeTo&&(e.makeRelativeTo=n.PLATFORM.noop)}}),Ze=e.RelativeViewStrategy=(le=Je())(ce=function(){function e(e){this.path=e,this.absolutePath=null}return e.prototype.loadViewFactory=function(e,t,i,n){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=(0,r.relativeToFile)(this.path,this.moduleId)),t.associatedModuleId=this.moduleId,e.loadViewFactory(this.absolutePath||this.path,t,i,n)},e.prototype.makeRelativeTo=function(e){null===this.absolutePath&&(this.absolutePath=(0,r.relativeToFile)(this.path,e))},e}())||ce,et=e.ConventionalViewStrategy=(de=Je())(he=function(){function e(e,t){this.moduleId=t.moduleId,this.viewUrl=e.convertOriginToViewUrl(t)}return e.prototype.loadViewFactory=function(e,t,i,n){return t.associatedModuleId=this.moduleId,e.loadViewFactory(this.viewUrl,t,i,n)},e}())||he,tt=e.NoViewStrategy=(pe=Je())(fe=function(){function e(e,t){this.dependencies=e||null,this.dependencyBaseUrl=t||""}return e.prototype.loadViewFactory=function(e,t,i,n){var r=this.entry,a=this.dependencies;if(r&&r.factoryIsReady)return Promise.resolve(null);if(this.entry=r=new o.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),r.dependencies=[],r.templateIsLoaded=!0,null!==a)for(var s=0,u=a.length;s<u;++s){var l=a[s];"string"==typeof l||"function"==typeof l?r.addDependency(l):r.addDependency(l.from,l.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,i,n)},e}())||fe,it=e.TemplateRegistryViewStrategy=(ve=Je())(me=function(){function e(e,t){this.moduleId=e,this.entry=t}return e.prototype.loadViewFactory=function(e,t,i,n){var r=this.entry;return r.factoryIsReady?Promise.resolve(r.factory):(t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,i,n))},e}())||me,nt=e.InlineViewStrategy=(ge=Je())(ye=function(){function e(e,t,i){this.markup=e,this.dependencies=t||null,this.dependencyBaseUrl=i||""}return e.prototype.loadViewFactory=function(e,t,i,r){var a=this.entry,s=this.dependencies;if(a&&a.factoryIsReady)return Promise.resolve(a.factory);if(this.entry=a=new o.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),a.template=n.DOM.createTemplateFromMarkup(this.markup),null!==s)for(var u=0,l=s.length;u<l;++u){var c=s[u];"string"==typeof c||"function"==typeof c?a.addDependency(c):a.addDependency(c.from,c.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(a,t,i,r)},e}())||ye,rt=e.ViewLocator=(we=be=function(){function e(){}return e.prototype.getViewStrategy=function(t){if(!t)return null;if("object"===(void 0===t?"undefined":ze(t))&&"getViewStrategy"in t){var n=i.Origin.get(t.constructor);return t=t.getViewStrategy(),"string"==typeof t&&(t=new Ze(t)),Je.assert(t),n.moduleId&&t.makeRelativeTo(n.moduleId),t}if("string"==typeof t&&(t=new Ze(t)),Je.validate(t))return t;"function"!=typeof t&&(t=t.constructor);var r=i.Origin.get(t),o=i.metadata.get(e.viewStrategyMetadataKey,t);if(o)r.moduleId&&(o.moduleId=r.moduleId);else{if(!r.moduleId)throw new Error("Cannot determine default view strategy for object.",t);o=this.createFallbackViewStrategy(r)}return o},e.prototype.createFallbackViewStrategy=function(e){return new et(this,e)},e.prototype.convertOriginToViewUrl=function(e){var t=e.moduleId;return(t.endsWith(".js")||t.endsWith(".ts")?t.substring(0,t.length-3):t)+".html"},e}(),be.viewStrategyMetadataKey="aurelia:view-strategy",we),ot=e.BindingLanguage=function(){function e(){}return e.prototype.inspectAttribute=function(e,t,i,n){p("inspectAttribute")},e.prototype.createAttributeInstruction=function(e,t,i,n){p("createAttributeInstruction")},e.prototype.inspectTextContent=function(e,t){p("inspectTextContent")},e}(),at=Object.freeze([]),st=e.SlotCustomAttribute=(Ce=(0,a.inject)(n.DOM.Element))(Se=function(){function e(e){this.element=e,this.element.auSlotAttribute=this}return e.prototype.valueChanged=function(e,t){},e}())||Se,ut=e.PassThroughSlot=function(){function e(e,t,i,n){this.anchor=e,this.anchor.viewSlot=this,this.name=t,this.destinationName=i,this.fallbackFactory=n,this.destinationSlot=null,this.projections=0,this.contentView=null,new st(this.anchor).value=this.destinationName}return e.prototype.renderFallbackContent=function(e,t,i,n){if(null===this.contentView){this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext);var r=Object.create(null);r[this.destinationSlot.name]=this.destinationSlot,ct.distributeView(this.contentView,r,i,n,this.destinationSlot.name)}},e.prototype.passThroughTo=function(e){this.destinationSlot=e},e.prototype.addNode=function(t,i,n,r){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),i.viewSlot instanceof e)return void i.viewSlot.passThroughTo(this);this.projections++,this.destinationSlot.addNode(t,i,n,r)},e.prototype.removeView=function(e,t){this.projections--,this.destinationSlot.removeView(e,t),this.needsFallbackRendering&&this.renderFallbackContent(null,at,t)},e.prototype.removeAll=function(e){this.projections=0,this.destinationSlot.removeAll(e),this.needsFallbackRendering&&this.renderFallbackContent(null,at,e)},e.prototype.projectFrom=function(e,t){this.destinationSlot.projectFrom(e,t)},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},Le(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),lt=e.ShadowSlot=function(){function e(e,t,i){this.anchor=e,this.anchor.isContentProjectionSource=!0,this.anchor.viewSlot=this,this.name=t,this.fallbackFactory=i,this.contentView=null,this.projections=0,this.children=[],this.projectFromAnchors=null,this.destinationSlots=null}return e.prototype.addNode=function(e,t,i,n,r){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),t.viewSlot instanceof ut)return void t.viewSlot.passThroughTo(this);if(null!==this.destinationSlots)ct.distributeNodes(e,[t],this.destinationSlots,this,n);else{t.auOwnerView=e,t.auProjectionSource=i,t.auAssignedSlot=this;var o=this._findAnchor(e,t,i,n);o.parentNode.insertBefore(t,o),this.children.push(t),this.projections++}},e.prototype.removeView=function(e,t){if(null!==this.destinationSlots)ct.undistributeView(e,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ct.undistributeView(e,this.contentView.slots,t);else{var i=this.children.find(function(e){return e.auSlotProjectFrom===t});if(i){for(var n=i.auProjectionChildren,r=0,o=n.length;r<o;++r){var a=n[r];a.auOwnerView===e&&(n.splice(r,1),e.fragment.appendChild(a),r--,o--,this.projections--)}this.needsFallbackRendering&&this.renderFallbackContent(e,at,t)}}},e.prototype.removeAll=function(e){if(null!==this.destinationSlots)ct.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ct.undistributeAll(this.contentView.slots,e);else{var t=this.children.find(function(t){return t.auSlotProjectFrom===e});if(t){for(var i=t.auProjectionChildren,n=0,r=i.length;n<r;++n){var o=i[n];o.auOwnerView.fragment.appendChild(o),this.projections--}t.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,at,e)}}},e.prototype._findAnchor=function(e,t,i,n){if(i){var r=this.children.find(function(e){return e.auSlotProjectFrom===i});if(r){if(void 0!==n)for(var o=r.auProjectionChildren,a=-1,s=void 0,u=0,l=o.length;u<l;++u){var c=o[u];if(c.auOwnerView!==s&&(a++,s=c.auOwnerView,a>=n&&s!==e))return o.splice(u,0,t),c}return r.auProjectionChildren.push(t),r}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var i=n.DOM.createComment("anchor"),r=this.anchor.parentNode;i.auSlotProjectFrom=t,i.auOwnerView=e,i.auProjectionChildren=[],r.insertBefore(i,this.anchor),this.children.push(i),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(i)},e.prototype.renderFallbackContent=function(e,t,i,n){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var r=this.contentView.slots,o=this.projectFromAnchors;if(null!==o)for(var a in r)for(var s=r[a],u=0,l=o.length;u<l;++u){var c=o[u];s.projectFrom(c.auOwnerView,c.auSlotProjectFrom)}this.fallbackSlots=r,ct.distributeNodes(e,t,r,i,n)}},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){
this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},Le(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),ct=e.ShadowDOM=(Oe=xe=function(){function e(){}return e.getSlotName=function(t){return void 0===t.auSlotAttribute?e.defaultSlotKey:t.auSlotAttribute.value},e.distributeView=function(t,i,n,r,o){var a=void 0;if(null===t)a=at;else{var s=t.fragment.childNodes,u=s.length;a=new Array(u);for(var l=0;l<u;++l)a[l]=s[l]}e.distributeNodes(t,a,i,n,r,o)},e.undistributeView=function(e,t,i){for(var n in t)t[n].removeView(e,i)},e.undistributeAll=function(e,t){for(var i in e)e[i].removeAll(t)},e.distributeNodes=function(t,i,n,r,o,a){for(var s=0,u=i.length;s<u;++s){var l=i[s],c=l.nodeType;if(l.isContentProjectionSource){l.viewSlot.projectTo(n);for(var h in n)n[h].projectFrom(t,l.viewSlot);i.splice(s,1),u--,s--}else if(1===c||3===c||l.viewSlot instanceof ut)if(3===c&&d(l))i.splice(s,1),u--,s--;else{var p=n[a||e.getSlotName(l)];p&&(p.addNode(t,l,r,o),i.splice(s,1),u--,s--)}else i.splice(s,1),u--,s--}for(var f in n){var v=n[f];v.needsFallbackRendering&&v.renderFallbackContent(t,i,r,o)}},e}(),xe.defaultSlotKey="__au-default-slot-key__",Oe),dt=e.ViewResources=function(){function e(e,t){this.bindingLanguage=null,this.parent=e||null,this.hasParent=null!==this.parent,this.viewUrl=t||"",this.lookupFunctions={valueConverters:this.getValueConverter.bind(this),bindingBehaviors:this.getBindingBehavior.bind(this)},this.attributes=Object.create(null),this.elements=Object.create(null),this.valueConverters=Object.create(null),this.bindingBehaviors=Object.create(null),this.attributeMap=Object.create(null),this.values=Object.create(null),this.beforeCompile=this.afterCompile=this.beforeCreate=this.afterCreate=this.beforeBind=this.beforeUnbind=!1}return e.prototype._tryAddHook=function(e,t){if("function"==typeof e[t]){for(var i=e[t].bind(e),n=1,r=void 0;void 0!==this[r=t+n.toString()];)n++;this[t]=!0,this[r]=i}},e.prototype._invokeHook=function(e,t,i,n,r){if(this.hasParent&&this.parent._invokeHook(e,t,i,n,r),this[e]){this[e+"1"](t,i,n,r);var o=e+"2";if(this[o]&&(this[o](t,i,n,r),o=e+"3",this[o])){this[o](t,i,n,r);for(var a=4;void 0!==this[o=e+a.toString()];)this[o](t,i,n,r),a++}}},e.prototype.registerViewEngineHooks=function(e){this._tryAddHook(e,"beforeCompile"),this._tryAddHook(e,"afterCompile"),this._tryAddHook(e,"beforeCreate"),this._tryAddHook(e,"afterCreate"),this._tryAddHook(e,"beforeBind"),this._tryAddHook(e,"beforeUnbind")},e.prototype.getBindingLanguage=function(e){return this.bindingLanguage||(this.bindingLanguage=e)},e.prototype.patchInParent=function(e){var t=this.parent;this.parent=e||null,this.hasParent=null!==this.parent,null===e.parent&&(e.parent=t,e.hasParent=null!==t)},e.prototype.relativeToView=function(e){return(0,r.relativeToFile)(e,this.viewUrl)},e.prototype.registerElement=function(e,t){f(this.elements,e,t,"an Element")},e.prototype.getElement=function(e){return this.elements[e]||(this.hasParent?this.parent.getElement(e):null)},e.prototype.mapAttribute=function(e){return this.attributeMap[e]||(this.hasParent?this.parent.mapAttribute(e):null)},e.prototype.registerAttribute=function(e,t,i){this.attributeMap[e]=i,f(this.attributes,e,t,"an Attribute")},e.prototype.getAttribute=function(e){return this.attributes[e]||(this.hasParent?this.parent.getAttribute(e):null)},e.prototype.registerValueConverter=function(e,t){f(this.valueConverters,e,t,"a ValueConverter")},e.prototype.getValueConverter=function(e){return this.valueConverters[e]||(this.hasParent?this.parent.getValueConverter(e):null)},e.prototype.registerBindingBehavior=function(e,t){f(this.bindingBehaviors,e,t,"a BindingBehavior")},e.prototype.getBindingBehavior=function(e){return this.bindingBehaviors[e]||(this.hasParent?this.parent.getBindingBehavior(e):null)},e.prototype.registerValue=function(e,t){f(this.values,e,t,"a value")},e.prototype.getValue=function(e){return this.values[e]||(this.hasParent?this.parent.getValue(e):null)},e}(),ht=e.View=function(){function e(e,t,i,n,r,o,a){this.container=e,this.viewFactory=t,this.resources=t.resources,this.fragment=i,this.firstChild=i.firstChild,this.lastChild=i.lastChild,this.controllers=n,this.bindings=r,this.children=o,this.slots=a,this.hasSlots=!1,this.fromCache=!1,this.isBound=!1,this.isAttached=!1,this.bindingContext=null,this.overrideContext=null,this.controller=null,this.viewModelScope=null,this.animatableElement=void 0,this._isUserControlled=!1,this.contentView=null;for(var s in a){this.hasSlots=!0;break}}return e.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},e.prototype.created=function(){var e=void 0,t=void 0,i=this.controllers;for(e=0,t=i.length;e<t;++e)i[e].created(this)},e.prototype.bind=function(e,t,i){var n=void 0,r=void 0,o=void 0,a=void 0,u=void 0;if(!i||!this._isUserControlled){if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e,this.overrideContext=t||(0,s.createOverrideContext)(e),this.resources._invokeHook("beforeBind",this),r=this.bindings,a=0,u=r.length;a<u;++a)r[a].bind(this);for(null!==this.viewModelScope&&(e.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),n=this.controllers,a=0,u=n.length;a<u;++a)n[a].bind(this);for(o=this.children,a=0,u=o.length;a<u;++a)o[a].bind(e,t,!0);this.hasSlots&&ct.distributeView(this.contentView,this.slots)}},e.prototype.addBinding=function(e){this.bindings.push(e),this.isBound&&e.bind(this)},e.prototype.unbind=function(){var e=void 0,t=void 0,i=void 0,n=void 0,r=void 0;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),t=this.bindings,n=0,r=t.length;n<r;++n)t[n].unbind();for(e=this.controllers,n=0,r=e.length;n<r;++n)e[n].unbind();for(i=this.children,n=0,r=i.length;n<r;++n)i[n].unbind();this.bindingContext=null,this.overrideContext=null}},e.prototype.insertNodesBefore=function(e){e.parentNode.insertBefore(this.fragment,e)},e.prototype.appendNodesTo=function(e){e.appendChild(this.fragment)},e.prototype.removeNodes=function(){for(var e=this.fragment,t=this.firstChild,i=this.lastChild,n=void 0;t&&(n=t.nextSibling,e.appendChild(t),t!==i);)t=n},e.prototype.attached=function(){var e=void 0,t=void 0,i=void 0,n=void 0;if(!this.isAttached){for(this.isAttached=!0,null!==this.controller&&this.controller.attached(),e=this.controllers,i=0,n=e.length;i<n;++i)e[i].attached();for(t=this.children,i=0,n=t.length;i<n;++i)t[i].attached()}},e.prototype.detached=function(){var e=void 0,t=void 0,i=void 0,n=void 0;if(this.isAttached){for(this.isAttached=!1,null!==this.controller&&this.controller.detached(),e=this.controllers,i=0,n=e.length;i<n;++i)e[i].detached();for(t=this.children,i=0,n=t.length;i<n;++i)t[i].detached()}},e}(),pt=e.ViewSlot=function(){function e(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:De.instance;this.anchor=e,this.anchorIsContainer=t,this.bindingContext=null,this.overrideContext=null,this.animator=i,this.children=[],this.isBound=!1,this.isAttached=!1,this.contentSelectors=null,e.viewSlot=this,e.isContentProjectionSource=!1}return e.prototype.animateView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enter",i=v(e);if(null!==i)switch(t){case"enter":return this.animator.enter(i);case"leave":return this.animator.leave(i);default:throw new Error("Invalid animation direction: "+t)}},e.prototype.transformChildNodesIntoView=function(){var e=this.anchor;this.children.push({fragment:e,firstChild:e.firstChild,lastChild:e.lastChild,returnToCache:function(){},removeNodes:function(){for(var t=void 0;t=e.lastChild;)e.removeChild(t)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})},e.prototype.bind=function(e,t){var i=void 0,n=void 0,r=void 0;if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e=e||this.bindingContext,this.overrideContext=t=t||this.overrideContext,r=this.children,i=0,n=r.length;i<n;++i)r[i].bind(e,t,!0)},e.prototype.unbind=function(){if(this.isBound){var e=void 0,t=void 0,i=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,e=0,t=i.length;e<t;++e)i[e].unbind()}},e.prototype.add=function(e){if(this.anchorIsContainer?e.appendNodesTo(this.anchor):e.insertNodesBefore(this.anchor),this.children.push(e),this.isAttached)return e.attached(),this.animateView(e,"enter")},e.prototype.insert=function(e,t){var i=this.children,n=i.length;return 0===e&&0===n||e>=n?this.add(t):(t.insertNodesBefore(i[e].firstChild),i.splice(e,0,t),this.isAttached?(t.attached(),this.animateView(t,"enter")):void 0)},e.prototype.move=function(e,t){if(e!==t){var i=this.children,n=i[e];n.removeNodes(),n.insertNodesBefore(i[t].firstChild),i.splice(e,1),i.splice(t,0,n)}},e.prototype.remove=function(e,t,i){return this.removeAt(this.children.indexOf(e),t,i)},e.prototype.removeMany=function(e,t,i){var n=this,r=this.children,o=e.length,a=void 0,s=[];e.forEach(function(e){if(i)return void e.removeNodes();var t=n.animateView(e,"leave");t?s.push(t.then(function(){return e.removeNodes()})):e.removeNodes()});var u=function(){if(n.isAttached)for(a=0;a<o;++a)e[a].detached();if(t)for(a=0;a<o;++a)e[a].returnToCache();for(a=0;a<o;++a){var i=r.indexOf(e[a]);i>=0&&r.splice(i,1)}};return s.length>0?Promise.all(s).then(function(){return u()}):u()},e.prototype.removeAt=function(e,t,i){var n=this,r=this.children[e],o=function(){return e=n.children.indexOf(r),r.removeNodes(),n.children.splice(e,1),n.isAttached&&r.detached(),t&&r.returnToCache(),r};if(!i){var a=this.animateView(r,"leave");if(a)return a.then(function(){return o()})}return o()},e.prototype.removeAll=function(e,t){var i=this,n=this.children,r=n.length,o=void 0,a=[];n.forEach(function(e){if(t)return void e.removeNodes();var n=i.animateView(e,"leave");n?a.push(n.then(function(){return e.removeNodes()})):e.removeNodes()});var s=function(){if(i.isAttached)for(o=0;o<r;++o)n[o].detached();if(e)for(o=0;o<r;++o){var t=n[o];t&&t.returnToCache()}i.children=[]};return a.length>0?Promise.all(a).then(function(){return s()}):s()},e.prototype.attached=function(){var e=void 0,t=void 0,i=void 0,n=void 0;if(!this.isAttached)for(this.isAttached=!0,i=this.children,e=0,t=i.length;e<t;++e)n=i[e],n.attached(),this.animateView(n,"enter")},e.prototype.detached=function(){var e=void 0,t=void 0,i=void 0;if(this.isAttached)for(this.isAttached=!1,i=this.children,e=0,t=i.length;e<t;++e)i[e].detached()},e.prototype.projectTo=function(e){var t=this;this.projectToSlots=e,this.add=this._projectionAdd,this.insert=this._projectionInsert,this.move=this._projectionMove,this.remove=this._projectionRemove,this.removeAt=this._projectionRemoveAt,this.removeMany=this._projectionRemoveMany,this.removeAll=this._projectionRemoveAll,this.children.forEach(function(i){return ct.distributeView(i,e,t)})},e.prototype._projectionAdd=function(e){ct.distributeView(e,this.projectToSlots,this),this.children.push(e),this.isAttached&&e.attached()},e.prototype._projectionInsert=function(e,t){0===e&&!this.children.length||e>=this.children.length?this.add(t):(ct.distributeView(t,this.projectToSlots,this,e),this.children.splice(e,0,t),this.isAttached&&t.attached())},e.prototype._projectionMove=function(e,t){if(e!==t){var i=this.children,n=i[e];ct.undistributeView(n,this.projectToSlots,this),ct.distributeView(n,this.projectToSlots,this,t),i.splice(e,1),i.splice(t,0,n)}},e.prototype._projectionRemove=function(e,t){ct.undistributeView(e,this.projectToSlots,this),this.children.splice(this.children.indexOf(e),1),this.isAttached&&e.detached()},e.prototype._projectionRemoveAt=function(e,t){var i=this.children[e];ct.undistributeView(i,this.projectToSlots,this),this.children.splice(e,1),this.isAttached&&i.detached()},e.prototype._projectionRemoveMany=function(e,t){var i=this;e.forEach(function(e){return i.remove(e,t)})},e.prototype._projectionRemoveAll=function(e){ct.undistributeAll(this.projectToSlots,this);var t=this.children;if(this.isAttached)for(var i=0,n=t.length;i<n;++i)t[i].detached();this.children=[]},e}(),ft=(0,a.resolver)(Me=function(){function e(){}return e.prototype.get=function(e,t){var i=t.__providerId__;return i in e?e[i]:e[i]=e.invoke(t)},e}())||Me,vt=new ft,mt=e.BoundViewFactory=function(){function e(e,t,i){this.parentContainer=e,this.viewFactory=t,this.factoryCreateInstruction={partReplacements:i}}return e.prototype.create=function(){var e=this.viewFactory.create(this.parentContainer.createChild(),this.factoryCreateInstruction);return e._isUserControlled=!0,e},e.prototype.setCacheSize=function(e,t){this.viewFactory.setCacheSize(e,t)},e.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},e.prototype.returnViewToCache=function(e){this.viewFactory.returnViewToCache(e)},Le(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),gt=e.ViewFactory=function(){function e(e,t,i){this.isCaching=!1,this.template=e,this.instructions=t,this.resources=i,this.cacheSize=-1,this.cache=null}return e.prototype.setCacheSize=function(e,t){e&&("*"===e?e=Number.MAX_VALUE:"string"==typeof e&&(e=parseInt(e,10))),-1!==this.cacheSize&&t||(this.cacheSize=e),this.cacheSize>0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},e.prototype.getCachedView=function(){return null!==this.cache?this.cache.pop()||null:null},e.prototype.returnViewToCache=function(e){e.isAttached&&e.detached(),e.isBound&&e.unbind(),null!==this.cache&&this.cache.length<this.cacheSize&&(e.fromCache=!0,this.cache.push(e))},e.prototype.create=function(e,t,i){t=t||Qe.normal;var n=this.getCachedView();if(null!==n)return n;var r=t.enhance?this.template:this.template.cloneNode(!0),o=r.querySelectorAll(".au-target"),a=this.instructions,s=this.resources,u=[],l=[],c=[],d=Object.create(null),h={root:e},p=t.partReplacements,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0;for(this.resources._invokeHook("beforeCreate",this,e,r,t),i&&null!==this.surrogateInstruction&&M(e,i,this.surrogateInstruction,u,l,c),t.enhance&&r.hasAttribute("au-target-id")&&(g=r,y=a[g.getAttribute("au-target-id")],S(h,g,y,u,l,c,d,p,s)),f=0,v=o.length;f<v;++f)g=o[f],y=a[g.getAttribute("au-target-id")],S(h,g,y,u,l,c,d,p,s);return m=new ht(e,this,r,u,l,c,d),t.initiatedByBehavior||m.created(),this.resources._invokeHook("afterCreate",m),m},e}(),yt=0,bt=0,wt=e.ViewCompiler=(_e=(0,a.inject)(ot,dt))(Ee=function(){function e(e,t){this.bindingLanguage=e,this.resources=t}return e.prototype.compile=function(e,t,i){t=t||this.resources,i=i||Ge.normal,e="string"==typeof e?n.DOM.createTemplateFromMarkup(e):e;var r=void 0,o=void 0,a=void 0;e.content?(o=e.getAttribute("part"),a=e.getAttribute("view-cache"),r=n.DOM.adoptNode(e.content)):r=e,i.targetShadowDOM=i.targetShadowDOM&&n.FEATURE.shadowDOM,t._invokeHook("beforeCompile",r,t,i);var s={};this._compileNode(r,t,s,e,"root",!i.targetShadowDOM);var u=r.firstChild;if(u&&1===u.nodeType){var l=u.getAttribute("au-target-id");if(l){var c=s[l];(c.shadowSlot||c.lifting||c.elementInstruction&&!c.elementInstruction.anchorIsContainer)&&r.insertBefore(n.DOM.createComment("view"),u)}}var d=new gt(r,s,t);return d.surrogateInstruction=i.compileSurrogate?this._compileSurrogate(e,t):null,d.part=o,a&&d.setCacheSize(a),t._invokeHook("afterCompile",d),d},e.prototype._compileNode=function(e,t,i,r,o,a){switch(e.nodeType){case 1:return this._compileElement(e,t,i,r,o,a);case 3:var s=t.getBindingLanguage(this.bindingLanguage).inspectTextContent(t,e.wholeText);if(s){var u=n.DOM.createElement("au-marker"),l=V(u);for((e.parentNode||r).insertBefore(u,e),e.textContent=" ",i[l]=Ye.contentExpression(s);e.nextSibling&&3===e.nextSibling.nodeType;)(e.parentNode||r).removeChild(e.nextSibling)}else for(;e.nextSibling&&3===e.nextSibling.nodeType;)e=e.nextSibling;return e.nextSibling;case 11:for(var c=e.firstChild;c;)c=this._compileNode(c,t,i,e,o,a)}return e.nextSibling},e.prototype._compileSurrogate=function(e,t){var i=e.tagName.toLowerCase(),n=e.attributes,r=t.getBindingLanguage(this.bindingLanguage),o=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,v=[],m=void 0,g=[],y={},b=!1,w=[];for(u=0,l=n.length;u<l;++u){if(c=n[u],d=c.name,h=c.value,p=r.inspectAttribute(t,i,d,h),(f=t.getAttribute(p.attrName))&&(o=t.mapAttribute(p.attrName))&&(a=f.attributes[o])&&(p.defaultBindingMode=a.defaultBindingMode,p.command||p.expression||(p.command=a.hasOptions?"options":null),p.command&&"options"!==p.command&&f.primaryProperty)){var C=f.primaryProperty;d=p.attrName=C.name,p.defaultBindingMode=C.defaultBindingMode}if(s=r.createAttributeInstruction(t,e,p,void 0,f))if(s.alteredAttr&&(f=t.getAttribute(s.attrName)),s.discrete)v.push(s);else if(f){if(s.type=f,this._configureProperties(s,t),f.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");g.push(s)}else v.push(s.attributes[s.attrName]);else if(f){if(s=Qe.attribute(d,f),s.attributes[t.mapAttribute(d)]=h,f.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");g.push(s)}else"id"!==d&&"part"!==d&&"replace-part"!==d&&(b=!0,y[d]=h)}if(v.length||g.length||b){for(u=0,l=g.length;u<l;++u)s=g[u],s.type.compile(this,t,e,s),w.push(s.type.target);for(u=0,l=v.length;u<l;++u)m=v[u],void 0!==m.attrToRemove&&e.removeAttribute(m.attrToRemove);return Ye.surrogate(w,g,v,y)}return null},e.prototype._compileElement=function(e,t,i,n,r,o){var a=e.tagName.toLowerCase(),s=e.attributes,u=[],l=void 0,c=[],d=[],h=t.getBindingLanguage(this.bindingLanguage),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,w=void 0,C=void 0,S=void 0,x=void 0,O=void 0,M=void 0,E=void 0,T=void 0,N=void 0,B=void 0;if("slot"===a)return o&&(e=A(this,t,e,i,r)),e.nextSibling;if("template"===a){if(!("content"in e))throw new Error("You cannot place a template element within "+e.namespaceURI+" namespace");f=this.compile(e,t),f.part=e.getAttribute("part")}else(v=t.getElement(e.getAttribute("as-element")||a))&&(m=Qe.element(e,v),v.processAttributes(this,t,e,s,m),c.push(m));for(y=0,b=s.length;y<b;++y){if(w=s[y],x=C=w.name,S=w.value,M=h.inspectAttribute(t,a,C,S),o&&"slot"===M.attrName&&(M.attrName=C="au-slot"),v=t.getAttribute(M.attrName),g=null,v){if((T=t.mapAttribute(M.attrName))&&(E=v.attributes[T])&&(M.defaultBindingMode=E.defaultBindingMode,M.command||M.expression||(M.command=E.hasOptions?"options":null),M.command&&"options"!==M.command&&v.primaryProperty)){var P=v.primaryProperty;C=M.attrName=P.name,M.defaultBindingMode=P.defaultBindingMode}}else m&&(g=m.type.attributes[M.attrName])&&(M.defaultBindingMode=g.defaultBindingMode);if(O=g?h.createAttributeInstruction(t,e,M,m):h.createAttributeInstruction(t,e,M,void 0,v))if(O.alteredAttr&&(v=t.getAttribute(O.attrName)),O.discrete)u.push(O);else if(v){if(O.type=v,this._configureProperties(O,t),v.liftsContent){O.originalAttrName=x,p=O;break}c.push(O)}else g?m.attributes[M.attrName].targetProperty=g.name:u.push(O.attributes[O.attrName]);else if(v){if(O=Qe.attribute(C,v),O.attributes[t.mapAttribute(C)]=S,v.liftsContent){O.originalAttrName=x,p=O;break}c.push(O)}else g&&(m.attributes[C]=S)}if(p)p.viewFactory=f,e=p.type.compile(this,t,e,p,n),N=V(e),i[N]=Ye.lifting(r,p);else{var j=!1;if(u.length||c.length){for(B=!!c.length&&_(),y=0,b=c.length;y<b;++y)O=c[y],O.type.compile(this,t,e,O,n),d.push(O.type.target),j=j||O.skipContentProcessing;for(y=0,b=u.length;y<b;++y)l=u[y],void 0!==l.attrToRemove&&e.removeAttribute(l.attrToRemove);N=V(e),i[N]=Ye.normal(B,r,d,c,u,m)}if(j)return e.nextSibling;for(var R=e.firstChild;R;)R=this._compileNode(R,t,i,e,B||r,o)}return e.nextSibling},e.prototype._configureProperties=function(e,t){var i=e.type,n=e.attrName,r=e.attributes,o=void 0,a=void 0,s=void 0,u=t.mapAttribute(n);u&&n in r&&u!==n&&(r[u]=r[n],delete r[n]);for(a in r)null!==(s=r[a])&&"object"===(void 0===s?"undefined":ze(s))&&(o=i.attributes[a],s.targetProperty=void 0!==o?o.name:a)},e}())||Ee,Ct=e.ResourceModule=function(){function e(e){this.id=e,this.moduleInstance=null,this.mainResource=null,this.resources=null,this.viewStrategy=null,this.isInitialized=!1,this.onLoaded=null,this.loadContext=null}return e.prototype.initialize=function(e){var t=this.mainResource,i=this.resources,n=this.viewStrategy;if(!this.isInitialized){this.isInitialized=!0,void 0!==t&&(t.metadata.viewStrategy=n,t.initialize(e));for(var r=0,o=i.length;r<o;++r)t=i[r],t.metadata.viewStrategy=n,t.initialize(e)}},e.prototype.register=function(e,t){var i=this.mainResource,n=this.resources;void 0!==i&&(i.register(e,t),t=null);for(var r=0,o=n.length;r<o;++r)n[r].register(e,t),t=null},e.prototype.load=function(e,t){if(null!==this.onLoaded)return this.loadContext===t?Promise.resolve():this.onLoaded;var i=this.mainResource,n=this.resources,r=void 0;if(void 0!==i){r=new Array(n.length+1),r[0]=i.load(e,t);for(var o=0,a=n.length;o<a;++o)r[o+1]=n[o].load(e,t)}else{r=new Array(n.length);for(var s=0,u=n.length;s<u;++s)r[s]=n[s].load(e,t)}return this.loadContext=t,this.onLoaded=Promise.all(r),this.onLoaded},e}(),St=e.ResourceDescription=function(){function e(e,t,n){n||(n=i.metadata.get(i.metadata.resource,t))||(n=new Bt,n.elementName=c(e),i.metadata.define(i.metadata.resource,n,t)),n instanceof Bt?void 0===n.elementName?n.elementName=c(e):void 0===n.attributeName?n.attributeName=c(e):null===n.attributeName&&null===n.elementName&&Bt.convention(e,n):n.name||(n.name=c(e)),this.metadata=n,this.value=t}return e.prototype.initialize=function(e){this.metadata.initialize(e,this.value)},e.prototype.register=function(e,t){this.metadata.register(e,t)},e.prototype.load=function(e,t){return this.metadata.load(e,this.value,t)},e}(),xt=e.ModuleAnalyzer=function(){function e(){this.cache=Object.create(null)}return e.prototype.getAnalysis=function(e){return this.cache[e]},e.prototype.analyze=function(e,t,n){var r=void 0,a=void 0,u=void 0,l=void 0,d=void 0,h=void 0,p=[],f=void 0,v=void 0,m=void 0;if(m=this.cache[e])return m;m=new Ct(e),this.cache[e]=m,"function"==typeof t&&(t={default:t}),n&&(r=new St(n,t[n]));for(d in t)h=t[d],d!==n&&"function"==typeof h&&(l=i.metadata.get(i.metadata.resource,h),l?(null===l.attributeName&&null===l.elementName&&Bt.convention(d,l),null===l.attributeName&&null===l.elementName&&(l.elementName=c(d)),!r&&l instanceof Bt&&null!==l.elementName?r=new St(d,h,l):p.push(new St(d,h,l))):Je.decorates(h)?v=h:h instanceof o.TemplateRegistryEntry?v=new it(e,h):(f=Bt.convention(d))?(null===f.elementName||r?p.push(new St(d,h,f)):r=new St(d,h,f),i.metadata.define(i.metadata.resource,f,h)):(f=s.ValueConverterResource.convention(d)||s.BindingBehaviorResource.convention(d)||$e.convention(d))?(p.push(new St(d,h,f)),i.metadata.define(i.metadata.resource,f,h)):a||(a=h,u=d));return!r&&a&&(r=new St(u,a)),m.moduleInstance=t,m.mainResource=r,m.resources=p,m.viewStrategy=v,m},e}(),Ot=Ie.getLogger("templating"),Mt=function(){function e(e){var t=this;e.then(function(e){return t.viewFactory=e})}return e.prototype.create=function(e,t,i,n){return this.viewFactory.create(e,t,i,n)},e.prototype.setCacheSize=function(e,t){this.viewFactory.setCacheSize(e,t)},e.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},e.prototype.returnViewToCache=function(e){this.viewFactory.returnViewToCache(e)},Le(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),_t=null,Et=e.ViewEngine=(Ve=(0,a.inject)(o.Loader,a.Container,wt,xt,dt))((Ne=Te=function(){function e(e,t,n,r,o){this.loader=e,this.container=t,this.viewCompiler=n,this.moduleAnalyzer=r,this.appResources=o,this._pluginMap={},null===_t&&(_t=new Bt,_t.attributeName="au-slot",i.metadata.define(i.metadata.resource,_t,st)),_t.initialize(t,st),_t.register(o)}return e.prototype.addResourcePlugin=function(e,t){var i=e.replace(".","")+"-resource-plugin";this._pluginMap[e]=i,this.loader.addPlugin(i,t)},e.prototype.loadViewFactory=function(e,t,i,n){var r=this;return i=i||new Ke,T(this.loader,e).then(function(e){var o=e.address;return e.onReady?i.hasDependency(o)?null===e.template?e.onReady:Promise.resolve(new Mt(e.onReady)):(i.addDependency(o),e.onReady):(i.addDependency(o),e.onReady=r.loadTemplateResources(e,t,i,n).then(function(i){if(e.resources=i,null===e.template)return e.factory=null;var n=r.viewCompiler.compile(e.template,i,t);return e.factory=n}),e.onReady)})},e.prototype.loadTemplateResources=function(t,n,o,a){var s=new dt(this.appResources,t.address),u=t.dependencies,l=void 0,c=void 0;if(n=n||Ge.normal,0===u.length&&!n.associatedModuleId)return Promise.resolve(s);if(l=u.map(function(e){return e.src}),c=u.map(function(e){return e.name}),Ot.debug("importing resources for "+t.address,l),a){var d=i.metadata.get(e.viewModelRequireMetadataKey,a);if(d){for(var h=l.length,p=0,f=d.length;p<f;++p){var v=d[p],m="function"==typeof v?i.Origin.get(v).moduleId:(0,r.relativeToFile)(v.src||v,t.address);-1===l.indexOf(m)&&(l.push(m),c.push(v.as))}Ot.debug("importing ViewModel resources for "+n.associatedModuleId,l.slice(h))}}return this.importViewResources(l,c,s,n,o)},e.prototype.importViewModelResource=function(e,t){var n=this;return this.loader.loadModule(e).then(function(r){var o=i.Origin.get(r).moduleId,a=n.moduleAnalyzer.analyze(o,r,t);if(!a.mainResource)throw new Error('No view model found in module "'+e+'".');return a.initialize(n.container),a.mainResource})},e.prototype.importViewResources=function(e,t,n,r,o){var a=this;return o=o||new Ke,r=r||Ge.normal,e=e.map(function(e){return a._applyLoaderPlugin(e)}),this.loader.loadAllModules(e).then(function(e){var s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,h=void 0,p=a.container,f=a.moduleAnalyzer,v=new Array(e.length);for(s=0,u=e.length;s<u;++s)d=e[s],c=i.Origin.get(d).moduleId,l=f.analyze(c,d),l.initialize(p),l.register(n,t[s]),v[s]=l;for(r.associatedModuleId&&(h=f.getAnalysis(r.associatedModuleId))&&h.register(n),s=0,u=v.length;s<u;++s)v[s]=v[s].load(p,o);return Promise.all(v).then(function(){return n})})},e.prototype._applyLoaderPlugin=function(e){var t=e.lastIndexOf(".");if(-1!==t){var i=e.substring(t),n=this._pluginMap[i];return void 0===n?e:this.loader.applyPluginToUrl(e,n)}return e},e}(),Te.viewModelRequireMetadataKey="aurelia:view-model-require",Ae=Ne))||Ae,Vt=e.Controller=function(){function e(e,t,i,n){this.behavior=e,this.instruction=t,this.viewModel=i,this.isAttached=!1,this.view=null,this.isBound=!1,this.scope=null,this.container=n,this.elementEvents=n.elementEvents||null;var r=e.observerLocator.getOrCreateObserversLookup(i),o=e.handlesBind,a=t.attributes,s=this.boundProperties=[],u=e.properties,l=void 0,c=void 0;for(e._ensurePropertiesDefined(i,r),l=0,c=u.length;l<c;++l)u[l]._initialize(i,r,a,o,s)}return e.prototype.created=function(e){this.behavior.handlesCreated&&this.viewModel.created(e,this.view)},e.prototype.automate=function(e,t){this.view.bindingContext=this.viewModel,this.view.overrideContext=e||(0,s.createOverrideContext)(this.viewModel),this.view._isUserControlled=!0,this.behavior.handlesCreated&&this.viewModel.created(t||null,this.view),this.bind(this.view)},e.prototype.bind=function(e){var t=this.behavior.handlesBind,i=this.boundProperties,n=void 0,r=void 0,o=void 0,a=void 0,u=void 0;if(this.isBound){if(this.scope===e)return;this.unbind()}for(this.isBound=!0,this.scope=e,n=0,r=i.length;n<r;++n)o=i[n],a=o.observer,u=a.selfSubscriber,a.publishing=!1,t&&(a.selfSubscriber=null),o.binding.bind(e),a.call(),a.publishing=!0,a.selfSubscriber=u;var l=void 0;null!==this.view?(t&&(this.view.viewModelScope=e),this.viewModel===e.overrideContext.bindingContext?l=e.overrideContext:this.instruction.inheritBindingContext?l=(0,s.createOverrideContext)(this.viewModel,e.overrideContext):(l=(0,s.createOverrideContext)(this.viewModel),l.__parentOverrideContext=e.overrideContext),this.view.bind(this.viewModel,l)):t&&(l=e.overrideContext,void 0!==e.overrideContext.__parentOverrideContext&&this.viewModel.viewFactory&&this.viewModel.viewFactory.factoryCreateInstruction.partReplacements&&(l=Object.assign({},e.overrideContext),l.parentOverrideContext=e.overrideContext.__parentOverrideContext),this.viewModel.bind(e.bindingContext,l))},e.prototype.unbind=function(){if(this.isBound){var e=this.boundProperties,t=void 0,i=void 0;for(this.isBound=!1,this.scope=null,null!==this.view&&this.view.unbind(),this.behavior.handlesUnbind&&this.viewModel.unbind(),null!==this.elementEvents&&this.elementEvents.disposeAll(),t=0,i=e.length;t<i;++t)e[t].binding.unbind()}},e.prototype.attached=function(){this.isAttached||(this.isAttached=!0,this.behavior.handlesAttached&&this.viewModel.attached(),null!==this.view&&this.view.attached())},e.prototype.detached=function(){this.isAttached&&(this.isAttached=!1,null!==this.view&&this.view.detached(),this.behavior.handlesDetached&&this.viewModel.detached())},e}(),At=e.BehaviorPropertyObserver=(Be=(0,s.subscriberCollection)())(Pe=function(){function e(e,t,i,n,r){this.taskQueue=e,this.obj=t,this.propertyName=i,this.notqueued=!0,this.publishing=!1,this.selfSubscriber=n,this.currentValue=this.oldValue=r}return e.prototype.getValue=function(){return this.currentValue},e.prototype.setValue=function(e){var t=this.currentValue;t!==e&&(this.oldValue=t,this.currentValue=e,this.publishing&&this.notqueued&&(this.taskQueue.flushing?this.call():(this.notqueued=!1,this.taskQueue.queueMicroTask(this))))},e.prototype.call=function(){var e=this.oldValue,t=this.currentValue;this.notqueued=!0,t!==e&&(this.selfSubscriber&&this.selfSubscriber(t,e),this.callSubscribers(t,e),this.oldValue=t)},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e}())||Pe,Tt=e.BindableProperty=function(){function e(e){"string"==typeof e?this.name=e:Object.assign(this,e),this.attribute=this.attribute||c(this.name),null!==this.defaultBindingMode&&void 0!==this.defaultBindingMode||(this.defaultBindingMode=s.bindingMode.oneWay),this.changeHandler=this.changeHandler||null,this.owner=null,this.descriptor=null}return e.prototype.registerWith=function(e,t,i){if(t.properties.push(this),t.attributes[this.attribute]=this,this.owner=t,i)return this.descriptor=i,this._configureDescriptor(i)},e.prototype._configureDescriptor=function(e){var t=this.name;return e.configurable=!0,e.enumerable=!0,"initializer"in e&&(this.defaultValue=e.initializer,delete e.initializer,delete e.writable),"value"in e&&(this.defaultValue=e.value,delete e.value,delete e.writable),e.get=function(){return N(this,t).getValue()},e.set=function(e){N(this,t).setValue(e)},e.get.getObserver=function(e){return N(e,t)},e},e.prototype.defineOn=function(e,t){var i=this.name,n=void 0;null===this.changeHandler&&(n=i+"Changed")in e.prototype&&(this.changeHandler=n),null===this.descriptor&&Object.defineProperty(e.prototype,i,this._configureDescriptor(t,{}))},e.prototype.createObserver=function(e){var t=null,i=this.defaultValue,n=this.changeHandler,r=this.name,o=void 0;if(!this.hasOptions){if(n in e)t="propertyChanged"in e?function(t,i){e[n](t,i),e.propertyChanged(r,t,i)}:function(t,i){return e[n](t,i)};else if("propertyChanged"in e)t=function(t,i){return e.propertyChanged(r,t,i)};else if(null!==n)throw new Error("Change handler "+n+" was specified but not declared on the class.");return void 0!==i&&(o="function"==typeof i?i.call(e):i),new At(this.owner.taskQueue,e,this.name,t,o)}},e.prototype._initialize=function(e,t,i,n,r){var o=void 0,a=void 0,s=void 0,u=this.defaultValue;if(this.isDynamic)for(var l in i)this._createDynamicProperty(e,t,n,l,i[l],r);else this.hasOptions||(a=t[this.name],null!==i&&(o=a.selfSubscriber,s=i[this.attribute],n&&(a.selfSubscriber=null),"string"==typeof s?(e[this.name]=s,a.call()):s?r.push({observer:a,binding:s.createBinding(e)}):void 0!==u&&a.call(),a.selfSubscriber=o),a.publishing=!0)},
e.prototype._createDynamicProperty=function(e,t,i,n,r,o){var a=n+"Changed",s=null,u=void 0,l=void 0;a in e?s="propertyChanged"in e?function(t,i){e[a](t,i),e.propertyChanged(n,t,i)}:function(t,i){return e[a](t,i)}:"propertyChanged"in e&&(s=function(t,i){return e.propertyChanged(n,t,i)}),u=t[n]=new At(this.owner.taskQueue,e,n,s),Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:u.getValue.bind(u),set:u.setValue.bind(u)}),i&&(u.selfSubscriber=null),"string"==typeof r?(e[n]=r,u.call()):r&&(l={observer:u,binding:r.createBinding(e)},o.push(l)),u.publishing=!0,u.selfSubscriber=s},e}(),Nt=0,Bt=e.HtmlBehaviorResource=function(){function e(){this.elementName=null,this.attributeName=null,this.attributeDefaultBindingMode=void 0,this.liftsContent=!1,this.targetShadowDOM=!1,this.shadowDOMOptions=null,this.processAttributes=j,this.processContent=P,this.usesShadowDOM=!1,this.childBindings=null,this.hasDynamicOptions=!1,this.containerless=!1,this.properties=[],this.attributes={},this.isInitialized=!1,this.primaryProperty=null}return e.convention=function(t,i){var n=void 0;return t.endsWith("CustomAttribute")&&(n=i||new e,n.attributeName=c(t.substring(0,t.length-15))),t.endsWith("CustomElement")&&(n=i||new e,n.elementName=c(t.substring(0,t.length-13))),n},e.prototype.addChildBinding=function(e){null===this.childBindings&&(this.childBindings=[]),this.childBindings.push(e)},e.prototype.initialize=function(e,t){var i=t.prototype,r=this.properties,o=this.attributeName,a=this.attributeDefaultBindingMode,l=void 0,c=void 0,d=void 0;if(!this.isInitialized)if(this.isInitialized=!0,t.__providerId__=B(),this.observerLocator=e.get(s.ObserverLocator),this.taskQueue=e.get(u.TaskQueue),this.target=t,this.usesShadowDOM=this.targetShadowDOM&&n.FEATURE.shadowDOM,this.handlesCreated="created"in i,this.handlesBind="bind"in i,this.handlesUnbind="unbind"in i,this.handlesAttached="attached"in i,this.handlesDetached="detached"in i,this.htmlName=this.elementName||this.attributeName,null!==o)if(0===r.length&&new Tt({name:"value",changeHandler:"valueChanged"in i?"valueChanged":null,attribute:o,defaultBindingMode:a}).registerWith(t,this),d=r[0],1===r.length&&"value"===d.name)d.isDynamic=d.hasOptions=this.hasDynamicOptions,d.defineOn(t,this);else{for(l=0,c=r.length;l<c;++l)if(r[l].defineOn(t,this),r[l].primaryProperty){if(this.primaryProperty)throw new Error("Only one bindable property on a custom element can be defined as the default");this.primaryProperty=r[l]}d=new Tt({name:"value",changeHandler:"valueChanged"in i?"valueChanged":null,attribute:o,defaultBindingMode:a}),d.hasOptions=!0,d.registerWith(t,this)}else{for(l=0,c=r.length;l<c;++l)r[l].defineOn(t,this);this._copyInheritedProperties(e,t)}},e.prototype.register=function(e,t){var i=this;null!==this.attributeName&&(e.registerAttribute(t||this.attributeName,this,this.attributeName),Array.isArray(this.aliases)&&this.aliases.forEach(function(t){e.registerAttribute(t,i,i.attributeName)})),null!==this.elementName&&e.registerElement(t||this.elementName,this)},e.prototype.load=function(e,t,n,r,o){var a=this,s=void 0;return null!==this.elementName?(r=e.get(rt).getViewStrategy(r||this.viewStrategy||t),s=new Ge(this.targetShadowDOM,!0),r.moduleId||(r.moduleId=i.Origin.get(t).moduleId),r.loadViewFactory(e.get(Et),s,n,t).then(function(e){return o&&a.viewFactory||(a.viewFactory=e),e})):Promise.resolve(this)},e.prototype.compile=function(e,t,i,r,o){if(this.liftsContent){if(!r.viewFactory){var a=n.DOM.createElement("template"),s=n.DOM.createDocumentFragment(),u=i.getAttribute("view-cache"),l=i.getAttribute("part");i.removeAttribute(r.originalAttrName),n.DOM.replaceNode(a,i,o),s.appendChild(i),r.viewFactory=e.compile(s,t),l&&(r.viewFactory.part=l,i.removeAttribute("part")),u&&(r.viewFactory.setCacheSize(u),i.removeAttribute("view-cache")),i=a}}else if(null!==this.elementName){var c={};if(this.processContent(e,t,i,r)&&i.hasChildNodes()){for(var h=i.firstChild,p=this.usesShadowDOM?null:n.DOM.createElement("au-content"),f=void 0,v=void 0;h;)f=h.nextSibling,"TEMPLATE"===h.tagName&&(v=h.getAttribute("replace-part"))?(c[v]=e.compile(h,t),n.DOM.removeNode(h,o),r.partReplacements=c):null!==p&&(3===h.nodeType&&d(h)?n.DOM.removeNode(h,o):p.appendChild(h)),h=f;null!==p&&p.hasChildNodes()&&i.appendChild(p),r.skipContentProcessing=!1}else r.skipContentProcessing=!0}else this.processContent(e,t,i,r)||(r.skipContentProcessing=!0);return i},e.prototype.create=function(e,t,i,r){var o=void 0,a=null;t=t||Qe.normal,i=i||null,r=r||null,null!==this.elementName&&i&&(this.usesShadowDOM?(o=i.attachShadow(this.shadowDOMOptions),e.registerInstance(n.DOM.boundary,o)):(o=i,this.targetShadowDOM&&e.registerInstance(n.DOM.boundary,o))),null!==i&&(i.au=a=i.au||{});var s=t.viewModel||e.get(this.target),u=new Vt(this,t,s,e),l=this.childBindings,c=void 0;if(this.liftsContent)a.controller=u;else if(null!==this.elementName){if(c=t.viewFactory||this.viewFactory,e.viewModel=s,c&&(u.view=c.create(e,t,i)),null!==i){if(a.controller=u,u.view){if(!this.usesShadowDOM&&(1===i.childNodes.length||i.contentElement)){var d=i.childNodes[0]||i.contentElement;u.view.contentView={fragment:d},d.parentNode&&n.DOM.removeNode(d)}if(t.anchorIsContainer){if(null!==l)for(var h=0,p=l.length;h<p;++h)u.view.addBinding(l[h].create(i,s,u));u.view.appendNodesTo(o)}else u.view.insertNodesBefore(o)}else if(null!==l)for(var f=0,v=l.length;f<v;++f)r.push(l[f].create(i,s,u))}else if(u.view){if(u.view.controller=u,null!==l)for(var m=0,g=l.length;m<g;++m)u.view.addBinding(l[m].create(t.host,s,u))}else if(null!==l)for(var y=0,b=l.length;y<b;++y)r.push(l[y].create(t.host,s,u))}else if(null!==l)for(var w=0,C=l.length;w<C;++w)r.push(l[w].create(i,s,u));return null!==a&&(a[this.htmlName]=u),t.initiatedByBehavior&&c&&u.view.created(),u},e.prototype._ensurePropertiesDefined=function(e,t){var i=void 0,n=void 0,r=void 0,o=void 0;if(!("__propertiesDefined__"in t))for(t.__propertiesDefined__=!0,i=this.properties,n=0,r=i.length;n<r;++n)void 0!==(o=i[n].createObserver(e))&&(t[o.propertyName]=o)},e.prototype._copyInheritedProperties=function(e,t){for(var n=this,r=void 0,o=t;;){var a=Object.getPrototypeOf(t.prototype);if(!(t=a&&a.constructor))return;if(r=i.metadata.getOwn(i.metadata.resource,t))break}r.initialize(e,t);for(var s=0,u=r.properties.length;s<u;++s){(function(e,t){var i=r.properties[e];if(n.properties.some(function(e){return e.name===i.name}))return"continue";new Tt(i).registerWith(o,n)})(s)}},e}(),Pt=function(){function e(e){this.name=e.name,this.changeHandler=e.changeHandler||this.name+"Changed",this.selector=e.selector,this.all=e.all}return e.prototype.create=function(e,t,i){return new Rt(this.selector,e,this.name,t,i,this.changeHandler,this.all)},e}(),jt=[],Rt=function(){function e(e,t,i,n,r,o,a){this.selector=e,this.viewHost=t,this.property=i,this.viewModel=n,this.controller=r,this.changeHandler=o in n?o:null,this.usesShadowDOM=r.behavior.usesShadowDOM,this.all=a,!this.usesShadowDOM&&r.view&&r.view.contentView?this.contentView=r.view.contentView:this.contentView=null}return e.prototype.matches=function(e){if(e.matches(this.selector)){if(null===this.contentView)return!0;var t=this.contentView,i=e.auAssignedSlot;if(i&&i.projectFromAnchors){for(var n=i.projectFromAnchors,r=0,o=n.length;r<o;++r)if(n[r].auOwnerView===t)return!0;return!1}return e.auOwnerView===t}return!1},e.prototype.bind=function(e){var t=this.viewHost,i=this.viewModel,r=t.__childObserver__;if(!r){r=t.__childObserver__=n.DOM.createMutationObserver(L);var o={childList:!0,subtree:!this.usesShadowDOM};r.observe(t,o),r.binders=[]}if(r.binders.push(this),this.usesShadowDOM){var a=t.firstElementChild;if(this.all){var s=i[this.property];for(s?s.length=0:s=i[this.property]=[];a;)this.matches(a)&&s.push(a.au&&a.au.controller?a.au.controller.viewModel:a),a=a.nextElementSibling;null!==this.changeHandler&&this.viewModel[this.changeHandler](jt)}else for(;a;){if(this.matches(a)){var u=a.au&&a.au.controller?a.au.controller.viewModel:a;this.viewModel[this.property]=u,null!==this.changeHandler&&this.viewModel[this.changeHandler](u);break}a=a.nextElementSibling}}},e.prototype.onRemove=function(e){if(this.matches(e)){var t=e.au&&e.au.controller?e.au.controller.viewModel:e;if(this.all){var i=this.viewModel[this.property]||(this.viewModel[this.property]=[]),n=i.indexOf(t);return-1!==n&&i.splice(n,1),!0}return!1}return!1},e.prototype.onAdd=function(e){if(this.matches(e)){var t=e.au&&e.au.controller?e.au.controller.viewModel:e;if(this.all){for(var i=this.viewModel[this.property]||(this.viewModel[this.property]=[]),n=0,r=e.previousElementSibling;r;)this.matches(r)&&n++,r=r.previousElementSibling;return i.splice(n,0,t),!0}this.viewModel[this.property]=t,null!==this.changeHandler&&this.viewModel[this.changeHandler](t)}return!1},e.prototype.unbind=function(){this.viewHost.__childObserver__&&(this.viewHost.__childObserver__.disconnect(),this.viewHost.__childObserver__=null)},e}(),Ft=e.SwapStrategies={before:function(e,t,i){return void 0===t?i():i().then(function(){return z(e,t)})},with:function(e,t,i){return void 0===t?i():Promise.all([z(e,t),i()])},after:function(e,t,i){return Promise.resolve(e.removeAll(!0)).then(i)}},kt=e.CompositionEngine=(je=(0,a.inject)(Et,rt))(Re=function(){function e(e,t){this.viewEngine=e,this.viewLocator=t}return e.prototype._swap=function(e,t){var i=Ft[e.swapOrder]||Ft.after,n=e.viewSlot.children.slice();return i(e.viewSlot,n,function(){return Promise.resolve(e.viewSlot.add(t)).then(function(){e.currentController&&e.currentController.unbind()})}).then(function(){e.compositionTransactionNotifier&&e.compositionTransactionNotifier.done()})},e.prototype._createControllerAndSwap=function(e){var t=this;return this.createController(e).then(function(i){return i.automate(e.overrideContext,e.owningView),e.compositionTransactionOwnershipToken?e.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return t._swap(e,i.view)}).then(function(){return i}):t._swap(e,i.view).then(function(){return i})})},e.prototype.createController=function(e){var t=this,i=void 0,n=void 0,r=void 0,o=void 0;return this.ensureViewModel(e).then(D).then(function(){i=e.childContainer,n=e.viewModel,r=e.viewModelResource,o=r.metadata;var a=t.viewLocator.getViewStrategy(e.view||n);return e.viewResources&&a.makeRelativeTo(e.viewResources.viewUrl),o.load(i,r.value,null,a,!0)}).then(function(t){return o.create(i,Qe.dynamic(e.host,n,t))})},e.prototype.ensureViewModel=function(e){var t=e.childContainer=e.childContainer||e.container.createChild();if("string"==typeof e.viewModel)return e.viewModel=e.viewResources?e.viewResources.relativeToView(e.viewModel):e.viewModel,this.viewEngine.importViewModelResource(e.viewModel).then(function(i){return t.autoRegister(i.value),e.host&&t.registerInstance(n.DOM.Element,e.host),e.viewModel=t.viewModel=t.get(i.value),e.viewModelResource=i,e});var r=i.metadata.getOrCreateOwn(i.metadata.resource,Bt,e.viewModel.constructor);return r.elementName=r.elementName||"dynamic-element",r.initialize(e.container||t,e.viewModel.constructor),e.viewModelResource={metadata:r,value:e.viewModel.constructor},t.viewModel=e.viewModel,Promise.resolve(e)},e.prototype.compose=function(e){var t=this;e.childContainer=e.childContainer||e.container.createChild(),e.view=this.viewLocator.getViewStrategy(e.view);var i=e.childContainer.get(qe),n=i.tryCapture();return n?e.compositionTransactionOwnershipToken=n:e.compositionTransactionNotifier=i.enlist(),e.viewModel?this._createControllerAndSwap(e):e.view?(e.viewResources&&e.view.makeRelativeTo(e.viewResources.viewUrl),e.view.loadViewFactory(this.viewEngine,new Ge).then(function(i){var n=i.create(e.childContainer);return n.bind(e.bindingContext,e.overrideContext),e.compositionTransactionOwnershipToken?e.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return t._swap(e,n)}).then(function(){return n}):t._swap(e,n).then(function(){return n})})):e.viewSlot?(e.viewSlot.removeAll(),e.compositionTransactionNotifier&&e.compositionTransactionNotifier.done(),Promise.resolve(null)):Promise.resolve(null)},e}())||Re,It=e.ElementConfigResource=function(){function e(){}return e.prototype.initialize=function(e,t){},e.prototype.register=function(e,t){},e.prototype.load=function(e,t){var i=new t;e.get(s.EventManager).registerElementConfig(i)},e}(),Lt={mode:"open"};e.TemplatingEngine=(Fe=(0,a.inject)(a.Container,xt,wt,kt))(ke=function(){function e(e,t,i,n){this._container=e,this._moduleAnalyzer=t,this._viewCompiler=i,this._compositionEngine=n,e.registerInstance(De,De.instance=new De)}return e.prototype.configureAnimator=function(e){this._container.unregister(De),this._container.registerInstance(De,De.instance=e)},e.prototype.compose=function(e){return this._compositionEngine.compose(e)},e.prototype.enhance=function(e){e instanceof n.DOM.Element&&(e={element:e});var t={},i=e.resources||this._container.get(dt);this._viewCompiler._compileNode(e.element,i,t,e.element.parentNode,"root",!0);var r=new gt(e.element,t,i),o=e.container||this._container.createChild(),a=r.create(o,Qe.enhance());return a.bind(e.bindingContext||{},e.overrideContext),a.firstChild=a.lastChild=a.fragment,a.fragment=n.DOM.createDocumentFragment(),a.attached(),a},e}())||ke}),define("aurelia-framework",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-metadata","aurelia-templating","aurelia-loader","aurelia-task-queue","aurelia-path","aurelia-pal","aurelia-logging"],function(e,t,i,n,r,o,a,s,u,l){"use strict";function c(){u.DOM.addEventListener("submit",function(e){var t=e.target,i=t.action;"form"!==t.tagName.toLowerCase()||i||e.preventDefault()})}function d(e,t){var i=void 0;return function n(){return i=t.shift(),i?Promise.resolve(i(e)).then(n):Promise.resolve()}()}function h(e,t,i){function n(n){return t.loadModule(n).then(function(t){if("configure"in t)return Promise.resolve(t.configure(e,i.config||{})).then(function(){e.resourcesRelativeTo=null,g.debug("Configured plugin "+i.moduleId+".")});e.resourcesRelativeTo=null,g.debug("Loaded plugin "+i.moduleId+".")})}g.debug("Loading plugin "+i.moduleId+"."),e.resourcesRelativeTo=i.resourcesRelativeTo;var r=i.moduleId;return i.resourcesRelativeTo.length>1?t.normalize(i.moduleId,i.resourcesRelativeTo[1]).then(function(e){return n(e)}):n(r)}function p(e,t,i){function n(t){var i=t.moduleId,n=f(i);return o(i)&&(i=a(i)),e.loader.normalize(i,t.relativeTo).then(function(e){return{name:t.moduleId,importId:o(t.moduleId)?s(e,n):e}})}function o(e){var t=f(e);return!!t&&(""!==t&&(".js"!==t&&".ts"!==t))}function a(e){return e.replace(y,"")}function s(e,t){return a(e)+"."+t}var u=e.container.get(r.ViewEngine);return Promise.all(Object.keys(t).map(function(e){return n(t[e])})).then(function(e){var t=[],n=[];return e.forEach(function(e){t.push(void 0),n.push(e.importId)}),u.importViewResources(n,t,i)})}function f(e){var t=e.match(y);if(t&&t.length>0)return t[0].split(".")[1]}function v(e){if(e.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}Object.defineProperty(e,"__esModule",{value:!0}),e.LogManager=e.FrameworkConfiguration=e.Aurelia=void 0,Object.keys(t).forEach(function(i){"default"!==i&&"__esModule"!==i&&Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[i]}})}),Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}),Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(l),g=(e.Aurelia=function(){function e(i,n,a){this.loader=i||new u.PLATFORM.Loader,this.container=n||(new t.Container).makeGlobal(),this.resources=a||new r.ViewResources,this.use=new b(this),this.logger=m.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(e,this),this.use.instance(o.Loader,this.loader),this.use.instance(r.ViewResources,this.resources)}return e.prototype.start=function(){var e=this;return this._started?this._started:(this.logger.info("Aurelia Starting"),this._started=this.use.apply().then(function(){if(c(),!e.container.hasResolver(r.BindingLanguage)){var t="You must configure Aurelia with a BindingLanguage implementation.";throw e.logger.error(t),new Error(t)}e.logger.info("Aurelia Started");var i=u.DOM.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return u.DOM.dispatchEvent(i),e}))},e.prototype.enhance=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return this._configureHost(i||u.DOM.querySelectorAll("body")[0]),new Promise(function(i){var n=e.container.get(r.TemplatingEngine);e.root=n.enhance({container:e.container,element:e.host,resources:e.resources,bindingContext:t}),e.root.attached(),e._onAureliaComposed(),i(e)})},e.prototype.setRoot=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?null:arguments[0],i=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(i);var o=this.container.get(r.TemplatingEngine);return delete this.container.get(r.CompositionTransaction).initialComposition,t||(t=this.configModuleId?(0,s.relativeToFile)("./app",this.configModuleId):"app"),n.viewModel=t,n.container=n.childContainer=this.container,n.viewSlot=this.hostSlot,n.host=this.host,o.compose(n).then(function(t){return e.root=t,n.viewSlot.attached(),e._onAureliaComposed(),e})},e.prototype._configureHost=function(e){if(!this.hostConfigured){if(e=e||this.host,this.host=e&&"string"!=typeof e?e:u.DOM.getElementById(e||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new r.ViewSlot(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(u.DOM.boundary,this.host)}},e.prototype._onAureliaComposed=function(){var e=u.DOM.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout(function(){return u.DOM.dispatchEvent(e)},1)},e}(),m.getLogger("aurelia")),y=/\.[^/.]+$/,b=function(){function e(e){var t=this;this.aurelia=e,this.container=e.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.resourcesToLoad={},this.preTask(function(){return e.loader.normalize("aurelia-bootstrapper").then(function(e){return t.bootstrapperName=e})}),this.postTask(function(){return p(e,t.resourcesToLoad,e.resources)})}return e.prototype.instance=function(e,t){return this.container.registerInstance(e,t),this},e.prototype.singleton=function(e,t){return this.container.registerSingleton(e,t),this},e.prototype.transient=function(e,t){return this.container.registerTransient(e,t),this},e.prototype.preTask=function(e){return v(this),this.preTasks.push(e),this},e.prototype.postTask=function(e){return v(this),this.postTasks.push(e),this},e.prototype.feature=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=/\/index$/i.test(e),n=i||f(e)?e:e+"/index",r=i?e.substr(0,e.length-6):e;return this.plugin({moduleId:n,resourcesRelativeTo:[r,""],config:t})},e.prototype.globalResources=function(e){v(this);for(var t=Array.isArray(e)?e:arguments,i=void 0,n=this.resourcesRelativeTo||["",""],r=0,o=t.length;r<o;++r){if("string"!=typeof(i=t[r]))throw new Error("Invalid resource path ["+i+"]. Resources must be specified as relative module IDs.");var a=n[0],u=n[1],l=i;(i.startsWith("./")||i.startsWith("../"))&&""!==a&&(l=(0,s.join)(a,i)),this.resourcesToLoad[l]={moduleId:l,relativeTo:u}}return this},e.prototype.globalName=function(e,t){return v(this),this.resourcesToLoad[e]={moduleId:t,relativeTo:""},this},e.prototype.plugin=function(e,t){return v(this),"string"==typeof e?this.plugin({moduleId:e,resourcesRelativeTo:[e,""],config:t||{}}):(this.info.push(e),this)},e.prototype._addNormalizedPlugin=function(e,t){var i=this,n={moduleId:e,resourcesRelativeTo:[e,""],config:t||{}};return this.plugin(n),this.preTask(function(){var t=[e,i.bootstrapperName];return n.moduleId=e,n.resourcesRelativeTo=t,Promise.resolve()}),this},e.prototype.defaultBindingLanguage=function(){return this._addNormalizedPlugin("aurelia-templating-binding")},e.prototype.router=function(){return this._addNormalizedPlugin("aurelia-templating-router")},e.prototype.history=function(){return this._addNormalizedPlugin("aurelia-history-browser")},e.prototype.defaultResources=function(){return this._addNormalizedPlugin("aurelia-templating-resources")},e.prototype.eventAggregator=function(){return this._addNormalizedPlugin("aurelia-event-aggregator")},e.prototype.basicConfiguration=function(){return this.defaultBindingLanguage().defaultResources().eventAggregator()},e.prototype.standardConfiguration=function(){return this.basicConfiguration().history().router()},e.prototype.developmentLogging=function(){var e=this;return this.preTask(function(){return e.aurelia.loader.normalize("aurelia-logging-console",e.bootstrapperName).then(function(t){return e.aurelia.loader.loadModule(t).then(function(e){m.addAppender(new e.ConsoleAppender),m.setLevel(m.logLevel.debug)})})}),this},e.prototype.apply=function(){var e=this;return this.processed?Promise.resolve():d(this,this.preTasks).then(function(){var t=e.aurelia.loader,i=e.info,n=void 0;return function r(){return(n=i.shift())?h(e,t,n).then(r):(e.processed=!0,Promise.resolve())}().then(function(){return d(e,e.postTasks)})})},e}();e.FrameworkConfiguration=b;e.LogManager=m}),define("aurelia-templating-binding",["exports","aurelia-logging","aurelia-binding","aurelia-templating"],function(e,t,i,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if("style"===t)m.getLogger("templating-binding").info('Internet Explorer does not support interpolation in "style" attributes.  Use the style attribute\'s alias, "css" instead.');else if(e.parentElement&&"TEXTAREA"===e.parentElement.nodeName&&"textContent"===t)throw new Error('Interpolation binding cannot be used in the content of a textarea element.  Use <textarea value.bind="expression"></textarea> instead.')}function s(e){e.container.registerSingleton(n.BindingLanguage,x),e.container.registerAlias(n.BindingLanguage,x)}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingBindingLanguage=e.SyntaxInterpreter=e.ChildInterpolationBinding=e.InterpolationBinding=e.InterpolationBindingExpression=e.AttributeMap=void 0,e.configure=s;var u,l,c,d,h,p,f,v,m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(t),g=e.AttributeMap=(l=u=function(){function e(e){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=e,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("img","usemap","useMap"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return e.prototype.register=function(e,t,i){e=e.toLowerCase(),t=t.toLowerCase(),(this.elements[e]=this.elements[e]||Object.create(null))[t]=i},e.prototype.registerUniversal=function(e,t){e=e.toLowerCase(),this.allElements[e]=t},e.prototype.map=function(e,t){if(this.svg.isStandardSvgAttribute(e,t))return t;e=e.toLowerCase(),t=t.toLowerCase();var n=this.elements[e];return void 0!==n&&t in n?n[t]:t in this.allElements?this.allElements[t]:/(?:^data-)|(?:^aria-)|:/.test(t)?t:(0,i.camelCase)(t)},e}(),u.inject=[i.SVGAnalyzer],l),y=e.InterpolationBindingExpression=function(){function e(e,t,i,n,r,o){this.observerLocator=e,this.targetProperty=t,this.parts=i,this.mode=n,this.lookupFunctions=r,this.attribute=this.attrToRemove=o,this.discrete=!1}return e.prototype.createBinding=function(e){return 3===this.parts.length?new w(e,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new b(this.observerLocator,this.parts,e,this.targetProperty,this.mode,this.lookupFunctions)},e}(),b=e.InterpolationBinding=function(){function e(e,t,i,n,r,o){a(i,n),this.observerLocator=e,this.parts=t,this.target=i,this.targetProperty=n,this.targetAccessor=e.getAccessor(i,n),this.mode=r,this.lookupFunctions=o}return e.prototype.interpolate=function(){if(this.isBound){for(var e="",t=this.parts,i=0,n=t.length;i<n;i++)e+=i%2==0?t[i]:this["childBinding"+i].value;this.targetAccessor.setValue(e,this.target,this.targetProperty)}},e.prototype.updateOneTimeBindings=function(){for(var e=1,t=this.parts.length;e<t;e+=2){var n=this["childBinding"+e];n.mode===i.bindingMode.oneTime&&n.call()}},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.source=e;for(var t=this.parts,i=1,n=t.length;i<n;i+=2){var r=new w(this,this.observerLocator,t[i],this.mode,this.lookupFunctions);r.bind(e),this["childBinding"+i]=r}this.isBound=!0,this.interpolate()},e.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;for(var e=this.parts,t=1,i=e.length;t<i;t+=2){this["childBinding"+t].unbind()}}},e}(),w=e.ChildInterpolationBinding=(c=(0,i.connectable)())(d=function(){function e(e,t,i,n,r,o,s,u){e instanceof b?this.parent=e:(a(e,o),this.target=e,this.targetProperty=o,this.targetAccessor=t.getAccessor(e,o)),this.observerLocator=t,this.sourceExpression=i,this.mode=n,this.lookupFunctions=r,this.left=s,this.right=u}return e.prototype.updateTarget=function(e){(e=null===e||void 0===e?"":e.toString())!==this.value&&(this.value=e,this.parent?this.parent.interpolate():this.targetAccessor.setValue(this.left+e+this.right,this.target,this.targetProperty))},e.prototype.call=function(){this.isBound&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode!==i.bindingMode.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue),this.unobserve(!1)))},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e;var t=this.sourceExpression;t.bind&&t.bind(this,e,this.lookupFunctions),this.rawValue=t.evaluate(e,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode===i.bindingMode.oneWay&&(0,i.enqueueBindingConnect)(this)},e.prototype.unbind=function(){if(this.isBound){this.isBound=!1;var e=this.sourceExpression;e.unbind&&e.unbind(this,this.source),this.source=null,this.value=null,this.rawValue=null,this.unobserve(!0)}},e.prototype.connect=function(e){this.isBound&&(e&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue)),this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue))},e}())||d,C=e.SyntaxInterpreter=(p=h=function(){function e(e,t,i,n){this.parser=e,this.observerLocator=t,this.eventManager=i,this.attributeMap=n}return e.prototype.interpret=function(e,t,i,n,r){return i.command in this?this[i.command](e,t,i,n,r):this.handleUnknownCommand(e,t,i,n,r)},e.prototype.handleUnknownCommand=function(e,t,i,n,r){return m.getLogger("templating-binding").warn("Unknown binding command.",i),n},e.prototype.determineDefaultBindingMode=function(e,t,n){var r=e.tagName.toLowerCase();return"input"===r&&("value"===t||"files"===t)&&"checkbox"!==e.type&&"radio"!==e.type||"input"===r&&"checked"===t&&("checkbox"===e.type||"radio"===e.type)||("textarea"===r||"select"===r)&&"value"===t||("textcontent"===t||"innerhtml"===t)&&"true"===e.contentEditable||"scrolltop"===t||"scrollleft"===t?i.bindingMode.twoWay:n&&t in n.attributes&&n.attributes[t]&&n.attributes[t].defaultBindingMode>=i.bindingMode.oneTime?n.attributes[t].defaultBindingMode:i.bindingMode.oneWay},e.prototype.bind=function(e,t,r,o,a){var s=o||n.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),void 0===r.defaultBindingMode||null===r.defaultBindingMode?this.determineDefaultBindingMode(t,r.attrName,a):r.defaultBindingMode,e.lookupFunctions),s},e.prototype.trigger=function(e,t,n){return new i.ListenerExpression(this.eventManager,n.attrName,this.parser.parse(n.attrValue),i.delegationStrategy.none,!0,e.lookupFunctions)},e.prototype.capture=function(e,t,n){return new i.ListenerExpression(this.eventManager,n.attrName,this.parser.parse(n.attrValue),i.delegationStrategy.capturing,!0,e.lookupFunctions)},e.prototype.delegate=function(e,t,n){return new i.ListenerExpression(this.eventManager,n.attrName,this.parser.parse(n.attrValue),i.delegationStrategy.bubbling,!0,e.lookupFunctions)},e.prototype.call=function(e,t,r,o){var a=o||n.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new i.CallExpression(this.observerLocator,r.attrName,this.parser.parse(r.attrValue),e.lookupFunctions),a},e.prototype.options=function(e,t,i,r,o){var a=r||n.BehaviorInstruction.attribute(i.attrName),s=i.attrValue,u=this.language,l=null,c="",d=void 0,h=void 0,p=void 0,f=!1,v=!1,m=!1;for(h=0,p=s.length;h<p;++h){if(";"!==(d=s[h])||f)if(":"===d&&null===l)m=!0,l=c.trim(),c="";else{if("\\"===d){c+=d,v=!0;continue}c+=d,null!==l&&!1===v&&"'"===d&&(f=!f)}else m||(l=this._getPrimaryPropertyName(e,o)),i=u.inspectAttribute(e,"?",l,c.trim()),u.createAttributeInstruction(e,t,i,a,o),a.attributes[i.attrName]||(a.attributes[i.attrName]=i.attrValue),c="",l=null;v=!1}return m||(l=this._getPrimaryPropertyName(e,o)),null!==l&&(i=u.inspectAttribute(e,"?",l,c.trim()),u.createAttributeInstruction(e,t,i,a,o),a.attributes[i.attrName]||(a.attributes[i.attrName]=i.attrValue)),a},e.prototype._getPrimaryPropertyName=function(e,t){
var i=e.getAttribute(t.attributeName);return i&&i.primaryProperty?i.primaryProperty.name:null},e.prototype.for=function(e,t,r,o){var a=void 0,s=void 0,u=void 0,l=void 0,c=void 0;if(l=r.attrValue,c=l.match(/^ *[[].+[\]]/),a=c?l.split("of "):l.split(" of "),2!==a.length)throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');return u=o||n.BehaviorInstruction.attribute(r.attrName),c?(s=a[0].replace(/[[\]]/g,"").replace(/,/g," ").replace(/\s+/g," ").trim().split(" "),u.attributes.key=s[0],u.attributes.value=s[1]):u.attributes.local=a[0],u.attributes.items=new i.BindingExpression(this.observerLocator,"items",this.parser.parse(a[1]),i.bindingMode.oneWay,e.lookupFunctions),u},e.prototype["two-way"]=function(e,t,r,o){var a=o||n.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),i.bindingMode.twoWay,e.lookupFunctions),a},e.prototype["to-view"]=function(e,t,r,o){var a=o||n.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),i.bindingMode.toView,e.lookupFunctions),a},e.prototype["from-view"]=function(e,t,r,o){var a=o||n.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),i.bindingMode.fromView,e.lookupFunctions),a},e.prototype["one-time"]=function(e,t,r,o){var a=o||n.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),i.bindingMode.oneTime,e.lookupFunctions),a},e}(),h.inject=[i.Parser,i.ObserverLocator,i.EventManager,g],p);C.prototype["one-way"]=C.prototype["to-view"];var S={},x=e.TemplatingBindingLanguage=(v=f=function(e){function t(t,i,n,o){var a=r(this,e.call(this));return a.parser=t,a.observerLocator=i,a.syntaxInterpreter=n,a.emptyStringExpression=a.parser.parse("''"),n.language=a,a.attributeMap=o,a}return o(t,e),t.prototype.inspectAttribute=function(e,t,n,r){var o=n.split(".");if(S.defaultBindingMode=null,2===o.length)S.attrName=o[0].trim(),S.attrValue=r,S.command=o[1].trim(),"ref"===S.command?(S.expression=new i.NameExpression(this.parser.parse(r),S.attrName,e.lookupFunctions),S.command=null,S.attrName="ref"):S.expression=null;else if("ref"===n)S.attrName=n,S.attrValue=r,S.command=null,S.expression=new i.NameExpression(this.parser.parse(r),"element",e.lookupFunctions);else{S.attrName=n,S.attrValue=r,S.command=null;var a=this.parseInterpolation(e,r);S.expression=null===a?null:new y(this.observerLocator,this.attributeMap.map(t,n),a,i.bindingMode.oneWay,e.lookupFunctions,n)}return S},t.prototype.createAttributeInstruction=function(e,t,i,r,o){var a=void 0;if(i.expression){if("ref"===i.attrName)return i.expression;a=r||n.BehaviorInstruction.attribute(i.attrName),a.attributes[i.attrName]=i.expression}else i.command&&(a=this.syntaxInterpreter.interpret(e,t,i,r,o));return a},t.prototype.inspectTextContent=function(e,t){var n=this.parseInterpolation(e,t);return null===n?null:new y(this.observerLocator,"textContent",n,i.bindingMode.oneWay,e.lookupFunctions,"textContent")},t.prototype.parseInterpolation=function(e,t){for(var i=t.indexOf("${",0),n=t.length,r=void 0,o=0,a=0,s=null,u=void 0,l=void 0,c=0;i>=0&&i<n-2;){a=1,u=i,i+=2;do{r=t[i],i++,"'"!==r&&'"'!==r?"\\"!==r?null===s&&("{"===r?a++:"}"===r&&a--):i++:null===s?s=r:s===r&&(s=null)}while(a>0&&i<n);if(0!==a)break;l=l||[],"\\"===t[u-1]&&"\\"!==t[u-2]?(l[c]=t.substring(o,u-1)+t.substring(u,i),c++,l[c]=this.emptyStringExpression,c++):(l[c]=t.substring(o,u),c++,l[c]=this.parser.parse(t.substring(u+2,i-1)),c++),o=i,i=t.indexOf("${",i)}return 0===c?null:(l[c]=t.substr(o),l)},t}(n.BindingLanguage),f.inject=[i.Parser,i.ObserverLocator,C,g],v)}),define("aurelia-event-aggregator",["exports","aurelia-logging"],function(e,t){"use strict";function i(e,t,i){try{e(t,i)}catch(e){s.error(e)}}function n(e,t){try{e.handle(t)}catch(e){s.error(e)}}function r(e){var t=new l;return e.subscribeOnce=function(e,i){return t.subscribeOnce(e,i)},e.subscribe=function(e,i){return t.subscribe(e,i)},e.publish=function(e,i){t.publish(e,i)},t}function o(e){e.instance(l,r(e.aurelia))}Object.defineProperty(e,"__esModule",{value:!0}),e.EventAggregator=void 0,e.includeEventsIn=r,e.configure=o;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(t),s=a.getLogger("event-aggregator"),u=function(){function e(e,t){this.messageType=e,this.callback=t}return e.prototype.handle=function(e){e instanceof this.messageType&&this.callback.call(null,e)},e}(),l=e.EventAggregator=function(){function e(){this.eventLookup={},this.messageHandlers=[]}return e.prototype.publish=function(e,t){var r=void 0,o=void 0;if(!e)throw new Error("Event was invalid.");if("string"==typeof e){if(r=this.eventLookup[e])for(r=r.slice(),o=r.length;o--;)i(r[o],t,e)}else for(r=this.messageHandlers.slice(),o=r.length;o--;)n(r[o],e)},e.prototype.subscribe=function(e,t){var i=void 0,n=void 0;if(!e)throw new Error("Event channel/type was invalid.");return"string"==typeof e?(i=t,n=this.eventLookup[e]||(this.eventLookup[e]=[])):(i=new u(e,t),n=this.messageHandlers),n.push(i),{dispose:function(){var e=n.indexOf(i);-1!==e&&n.splice(e,1)}}},e.prototype.subscribeOnce=function(e,t){var i=this.subscribe(e,function(e,n){return i.dispose(),t(e,n)});return i},e}()}),define("aurelia-logging-console",["exports","aurelia-logging"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleAppender=void 0;e.ConsoleAppender=function(){function e(){}return e.prototype.debug=function(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=console).debug.apply(t,["DEBUG ["+e.id+"]"].concat(n))},e.prototype.info=function(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=console).info.apply(t,["INFO ["+e.id+"]"].concat(n))},e.prototype.warn=function(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=console).warn.apply(t,["WARN ["+e.id+"]"].concat(n))},e.prototype.error=function(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=console).error.apply(t,["ERROR ["+e.id+"]"].concat(n))},e}()}),define("aurelia-templating-resources/aurelia-templating-resources",["exports","aurelia-pal","./compose","./if","./else","./with","./repeat","./show","./hide","./sanitize-html","./replaceable","./focus","aurelia-templating","./css-resource","./html-sanitizer","./attr-binding-behavior","./binding-mode-behaviors","./throttle-binding-behavior","./debounce-binding-behavior","./self-binding-behavior","./signal-binding-behavior","./binding-signaler","./update-trigger-binding-behavior","./abstract-repeater","./repeat-strategy-locator","./html-resource-plugin","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy","./repeat-utilities","./analyze-view-factory","./aurelia-hide-style"],function(e,t,i,n,r,o,a,s,u,l,c,d,h,p,f,v,m,g,y,b,w,C,S,x,O,M,_,E,V,A,T,N,B,P){"use strict";function j(e){(0,P.injectAureliaHideStyleAtHead)(),e.globalResources(t.PLATFORM.moduleName("./compose"),t.PLATFORM.moduleName("./if"),t.PLATFORM.moduleName("./else"),t.PLATFORM.moduleName("./with"),t.PLATFORM.moduleName("./repeat"),t.PLATFORM.moduleName("./show"),t.PLATFORM.moduleName("./hide"),t.PLATFORM.moduleName("./replaceable"),t.PLATFORM.moduleName("./sanitize-html"),t.PLATFORM.moduleName("./focus"),t.PLATFORM.moduleName("./binding-mode-behaviors"),t.PLATFORM.moduleName("./self-binding-behavior"),t.PLATFORM.moduleName("./throttle-binding-behavior"),t.PLATFORM.moduleName("./debounce-binding-behavior"),t.PLATFORM.moduleName("./signal-binding-behavior"),t.PLATFORM.moduleName("./update-trigger-binding-behavior"),t.PLATFORM.moduleName("./attr-binding-behavior")),(0,M.configure)(e);var i=e.container.get(h.ViewEngine),n={fetch:function(e){var t;return t={},t[e]=(0,p._createCSSResource)(e),t}};[".css",".less",".sass",".scss",".styl"].forEach(function(e){return i.addResourcePlugin(e,n)})}Object.defineProperty(e,"__esModule",{value:!0}),e.viewsRequireLifecycle=e.unwrapExpression=e.updateOneTimeBinding=e.isOneTime=e.getItemsSourceExpression=e.updateOverrideContext=e.createFullOverrideContext=e.NumberRepeatStrategy=e.SetRepeatStrategy=e.MapRepeatStrategy=e.ArrayRepeatStrategy=e.NullRepeatStrategy=e.RepeatStrategyLocator=e.AbstractRepeater=e.UpdateTriggerBindingBehavior=e.BindingSignaler=e.SignalBindingBehavior=e.SelfBindingBehavior=e.DebounceBindingBehavior=e.ThrottleBindingBehavior=e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=e.AttrBindingBehavior=e.configure=e.Focus=e.Replaceable=e.SanitizeHTMLValueConverter=e.HTMLSanitizer=e.Hide=e.Show=e.Repeat=e.With=e.Else=e.If=e.Compose=void 0,e.Compose=i.Compose,e.If=n.If,e.Else=r.Else,e.With=o.With,e.Repeat=a.Repeat,e.Show=s.Show,e.Hide=u.Hide,e.HTMLSanitizer=f.HTMLSanitizer,e.SanitizeHTMLValueConverter=l.SanitizeHTMLValueConverter,e.Replaceable=c.Replaceable,e.Focus=d.Focus,e.configure=j,e.AttrBindingBehavior=v.AttrBindingBehavior,e.OneTimeBindingBehavior=m.OneTimeBindingBehavior,e.OneWayBindingBehavior=m.OneWayBindingBehavior,e.TwoWayBindingBehavior=m.TwoWayBindingBehavior,e.ThrottleBindingBehavior=g.ThrottleBindingBehavior,e.DebounceBindingBehavior=y.DebounceBindingBehavior,e.SelfBindingBehavior=b.SelfBindingBehavior,e.SignalBindingBehavior=w.SignalBindingBehavior,e.BindingSignaler=C.BindingSignaler,e.UpdateTriggerBindingBehavior=S.UpdateTriggerBindingBehavior,e.AbstractRepeater=x.AbstractRepeater,e.RepeatStrategyLocator=O.RepeatStrategyLocator,e.NullRepeatStrategy=_.NullRepeatStrategy,e.ArrayRepeatStrategy=E.ArrayRepeatStrategy,e.MapRepeatStrategy=V.MapRepeatStrategy,e.SetRepeatStrategy=A.SetRepeatStrategy,e.NumberRepeatStrategy=T.NumberRepeatStrategy,e.createFullOverrideContext=N.createFullOverrideContext,e.updateOverrideContext=N.updateOverrideContext,e.getItemsSourceExpression=N.getItemsSourceExpression,e.isOneTime=N.isOneTime,e.updateOneTimeBinding=N.updateOneTimeBinding,e.unwrapExpression=N.unwrapExpression,e.viewsRequireLifecycle=B.viewsRequireLifecycle}),define("aurelia-templating-resources",["aurelia-templating-resources/aurelia-templating-resources"],function(e){return e}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-logging","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(e,t,i,n,r,o){"use strict";function a(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function s(e,t,i,n,r){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce(function(i,n){return n(e,t,i)||i},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function u(e){for(var t in e)return!1;return!0}function l(e,t){if(e&&"function"==typeof e.activate)return Promise.resolve(e.activate(t))}function c(e,t){return Object.assign(t,{bindingContext:e.bindingContext,overrideContext:e.overrideContext,owningView:e.owningView,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentController:e.currentController,host:e.element,swapOrder:e.swapOrder})}function d(e){var t=e.changes;if(e.changes=Object.create(null),"view"in t||"viewModel"in t||!("model"in t)){var i={view:e.view,viewModel:e.currentViewModel||e.viewModel,model:e.model};i=Object.assign(i,t),i=c(e,i),e.pendingTask=e.compositionEngine.compose(i).then(function(t){e.currentController=t,e.currentViewModel=t?t.viewModel:null})}else if(e.pendingTask=l(e.currentViewModel,t.model),!e.pendingTask)return;e.pendingTask=e.pendingTask.catch(function(e){S.error(e)}).then(function(){e.pendingTask&&(e.pendingTask=null,u(e.changes)||d(e))})}function h(e){e.pendingTask||e.updateRequested||(e.updateRequested=!0,e.taskQueue.queueMicroTask(function(){e.updateRequested=!1,d(e)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=void 0;var p,f,v,m,g,y,b,w,C=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i),S=C.getLogger("templating-resources");e.Compose=(p=(0,r.customElement)("compose"),f=(0,t.inject)(o.DOM.Element,t.Container,r.CompositionEngine,r.ViewSlot,r.ViewResources,n.TaskQueue),p(v=(0,r.noView)(v=f((m=function(){function e(e,t,i,n,r,o){a(this,"model",g,this),a(this,"view",y,this),a(this,"viewModel",b,this),a(this,"swapOrder",w,this),this.element=e,this.container=t,this.compositionEngine=i,this.viewSlot=n,this.viewResources=r,this.taskQueue=o,this.currentController=null,this.currentViewModel=null,this.changes=Object.create(null)}return e.prototype.created=function(e){this.owningView=e},e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,this.changes.view=this.view,this.changes.viewModel=this.viewModel,this.changes.model=this.model,d(this)},e.prototype.unbind=function(){this.changes=Object.create(null),this.pendingTask=null,this.bindingContext=null,this.overrideContext=null;this.viewSlot.removeAll(!0,!0)},e.prototype.modelChanged=function(e,t){this.changes.model=e,h(this)},e.prototype.viewChanged=function(e,t){this.changes.view=e,h(this)},e.prototype.viewModelChanged=function(e,t){this.changes.viewModel=e,h(this)},e}(),g=s(m.prototype,"model",[r.bindable],{enumerable:!0,initializer:null}),y=s(m.prototype,"view",[r.bindable],{enumerable:!0,initializer:null}),b=s(m.prototype,"viewModel",[r.bindable],{enumerable:!0,initializer:null}),w=s(m.prototype,"swapOrder",[r.bindable],{enumerable:!0,initializer:null}),v=m))||v)||v)||v)}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection","./if-core"],function(e,t,i,n){"use strict";function r(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,i,n,r){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce(function(i,n){return n(e,t,i)||i},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var u,l,c,d,h,p,f;e.If=(u=(0,t.customAttribute)("if"),l=(0,i.inject)(t.BoundViewFactory,t.ViewSlot),c=(0,t.bindable)({primaryProperty:!0}),u(d=(0,t.templateController)(d=l((h=function(e){function t(){for(var t,i,n,a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return t=i=o(this,e.call.apply(e,[this].concat(s))),r(i,"condition",p,i),r(i,"swapOrder",f,i),n=t,o(i,n)}return a(t,e),t.prototype.bind=function(t,i){e.prototype.bind.call(this,t,i),this.condition?this._show():this._hide()},t.prototype.conditionChanged=function(e){this._update(e)},t.prototype._update=function(e){var t=this;if(!this.animating){var i=void 0;i=this.elseVm?e?this._swap(this.elseVm,this):this._swap(this,this.elseVm):e?this._show():this._hide(),i&&(this.animating=!0,i.then(function(){t.animating=!1,t.condition!==t.showing&&t._update(t.condition)}))}},t.prototype._swap=function(e,t){switch(this.swapOrder){case"before":return Promise.resolve(t._show()).then(function(){return e._hide()});case"with":return Promise.all([e._hide(),t._show()]);default:var i=e._hide();return i?i.then(function(){return t._show()}):t._show()}},t}(n.IfCore),p=s(h.prototype,"condition",[c],{enumerable:!0,initializer:null}),f=s(h.prototype,"swapOrder",[t.bindable],{enumerable:!0,initializer:null}),d=h))||d)||d)||d)}),define("aurelia-templating-resources/if-core",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.IfCore=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null,this.bindingContext=null,this.overrideContext=null,this.showing=!1}return e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t},e.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing?(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)):this.view.returnToCache(),this.view=null))},e.prototype._show=function(){return this.showing?void(this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext)):(null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),this.showing=!0,this.viewSlot.add(this.view))},e.prototype._hide=function(){var e=this;if(this.showing){this.showing=!1;var t=this.viewSlot.remove(this.view);if(t instanceof Promise)return t.then(function(){return e.view.unbind()});this.view.unbind()}},e}()}),define("aurelia-templating-resources/else",["exports","aurelia-templating","aurelia-dependency-injection","./if-core"],function(e,t,i,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0}),e.Else=void 0;var a,s,u;e.Else=(a=(0,t.customAttribute)("else"),s=(0,i.inject)(t.BoundViewFactory,t.ViewSlot),a(u=(0,t.templateController)(u=s(u=function(e){function t(t,i){var n=r(this,e.call(this,t,i));return n._registerInIf(),n}return o(t,e),t.prototype.bind=function(t,i){e.prototype.bind.call(this,t,i),this.ifVm.condition?this._hide():this._show()},t.prototype._registerInIf=function(){for(var e=this.viewSlot.anchor.previousSibling;e&&!e.au;)e=e.previousSibling;if(!e||!e.au.if)throw new Error("Can't find matching If for Else custom attribute.");this.ifVm=e.au.if.viewModel,this.ifVm.elseVm=this},t}(n.IfCore))||u)||u)||u)}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.With=void 0;var r,o,a;e.With=(r=(0,i.customAttribute)("with"),o=(0,t.inject)(i.BoundViewFactory,i.ViewSlot),r(a=(0,i.templateController)(a=o(a=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.parentOverrideContext=null,this.view=null}return e.prototype.bind=function(e,t){this.parentOverrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=(0,n.createOverrideContext)(e,this.parentOverrideContext);this.view?this.view.bind(e,t):(this.view=this.viewFactory.create(),this.view.bind(e,t),this.viewSlot.add(this.view))},e.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},e}())||a)||a)||a)}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(e,t,i,n,r,o,a,s){"use strict";function u(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function d(e,t,i,n,r){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce(function(i,n){return n(e,t,i)||i},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.Repeat=void 0;var h,p,f,v,m,g,y,b;e.Repeat=(h=(0,n.customAttribute)("repeat"),p=(0,t.inject)(n.BoundViewFactory,n.TargetInstruction,n.ViewSlot,n.ViewResources,i.ObserverLocator,r.RepeatStrategyLocator),h(f=(0,n.templateController)(f=p((v=function(e){function t(t,i,n,r,s,c){var d=l(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,a.viewsRequireLifecycle)(t)}));return u(d,"items",m,d),u(d,"local",g,d),u(d,"key",y,d),u(d,"value",b,d),d.viewFactory=t,d.instruction=i,d.viewSlot=n,d.lookupFunctions=r.lookupFunctions,d.observerLocator=s,d.key="key",d.value="value",d.strategyLocator=c,d.ignoreMutation=!1,d.sourceExpression=(0,o.getItemsSourceExpression)(d.instruction,"repeat.for"),d.isOneTime=(0,o.isOneTime)(d.sourceExpression),d.viewsRequireLifecycle=(0,a.viewsRequireLifecycle)(t),d}return c(t,e),t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},t.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0,!0),this._unsubscribeCollection()},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,e)}},t.prototype._getInnerCollection=function(){var e=(0,o.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype.handleCollectionMutated=function(e,t){this.collectionObserver&&this.strategy.instanceMutated(this,e,t)},t.prototype.handleInnerCollectionMutated=function(e,t){var i=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var n=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return i.ignoreMutation=!1}),n===this.items?this.itemsChanged():this.items=n}},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var e=this.viewFactory.viewFactory.instructions,t=Object.keys(e),i=0;i<t.length;i++){var n=e[t[i]].expressions;if(n)for(;i<n.length;i++)if("matcher"===n[0].targetProperty){var r=n[0];return n.splice(0,1),r}}},t.prototype.viewCount=function(){return this.viewSlot.children.length},t.prototype.views=function(){return this.viewSlot.children},t.prototype.view=function(e){return this.viewSlot.children[e]},t.prototype.matcher=function(){return this.matcherBinding?this.matcherBinding.sourceExpression.evaluate(this.scope,this.matcherBinding.lookupFunctions):null},t.prototype.addView=function(e,t){var i=this.viewFactory.create();i.bind(e,t),this.viewSlot.add(i)},t.prototype.insertView=function(e,t,i){var n=this.viewFactory.create();n.bind(t,i),this.viewSlot.insert(e,n)},t.prototype.moveView=function(e,t){this.viewSlot.move(e,t)},t.prototype.removeAllViews=function(e,t){return this.viewSlot.removeAll(e,t)},t.prototype.removeViews=function(e,t,i){return this.viewSlot.removeMany(e,t,i)},t.prototype.removeView=function(e,t,i){return this.viewSlot.removeAt(e,t,i)},t.prototype.updateBindings=function(e){for(var t=e.bindings.length;t--;)(0,o.updateOneTimeBinding)(e.bindings[t]);for(t=e.controllers.length;t--;)for(var i=e.controllers[t].boundProperties.length;i--;){var n=e.controllers[t].boundProperties[i].binding;(0,o.updateOneTimeBinding)(n)}},t}(s.AbstractRepeater),m=d(v.prototype,"items",[n.bindable],{enumerable:!0,initializer:null}),g=d(v.prototype,"local",[n.bindable],{enumerable:!0,initializer:null}),y=d(v.prototype,"key",[n.bindable],{enumerable:!0,initializer:null}),b=d(v.prototype,"value",[n.bindable],{enumerable:!0,initializer:null}),f=v))||f)||f)||f)}),define("aurelia-templating-resources/repeat-strategy-locator",["exports","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy"],function(e,t,i,n,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepeatStrategyLocator=void 0;e.RepeatStrategyLocator=function(){function e(){this.matchers=[],this.strategies=[],this.addStrategy(function(e){return null===e||void 0===e},new t.NullRepeatStrategy),this.addStrategy(function(e){return e instanceof Array},new i.ArrayRepeatStrategy),this.addStrategy(function(e){return e instanceof Map},new n.MapRepeatStrategy),this.addStrategy(function(e){return e instanceof Set},new r.SetRepeatStrategy),this.addStrategy(function(e){return"number"==typeof e},new o.NumberRepeatStrategy)}return e.prototype.addStrategy=function(e,t){this.matchers.push(e),this.strategies.push(t)},e.prototype.getStrategy=function(e){for(var t=this.matchers,i=0,n=t.length;i<n;++i)if(t[i](e))return this.strategies[i];return null},e}()}),define("aurelia-templating-resources/null-repeat-strategy",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.NullRepeatStrategy=function(){function e(){}return e.prototype.instanceChanged=function(e,t){e.removeAllViews(!0)},e.prototype.getCollectionObserver=function(e,t){},e}()}),define("aurelia-templating-resources/array-repeat-strategy",["exports","./repeat-utilities","aurelia-binding"],function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayRepeatStrategy=void 0;e.ArrayRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getArrayObserver(t)},e.prototype.instanceChanged=function(e,i){var n=this,r=i.length;if(!i||0===r)return void e.removeAllViews(!0,!e.viewsRequireLifecycle);var o=e.views(),a=o.length;if(0===a)return void this._standardProcessInstanceChanged(e,i);if(e.viewsRequireLifecycle){for(var s=o.slice(0),u=e.local,l=e.matcher(),c=[],d=[],h=0;h<a;h++){var p=s[h],f=p.bindingContext[u];-1===(0,t.indexOf)(i,f,l)?d.push(p):c.push(f)}var v=void 0,m=void 0;c.length>0?(m=e.removeViews(d,!0,!e.viewsRequireLifecycle),v=function(){for(var a=0;a<r;a++){var s=i[a],u=(0,t.indexOf)(c,s,l,a),d=void 0;if(-1===u){var h=(0,t.createFullOverrideContext)(e,i[a],a,r);e.insertView(a,h.bindingContext,h),c.splice(a,0,void 0)}else u===a?(d=o[u],c[u]=void 0):(d=o[u],e.moveView(u,a),c.splice(u,1),c.splice(a,0,void 0));d&&(0,t.updateOverrideContext)(d.overrideContext,a,r)}n._inPlaceProcessItems(e,i)}):(m=e.removeAllViews(!0,!e.viewsRequireLifecycle),v=function(){return n._standardProcessInstanceChanged(e,i)}),m instanceof Promise?m.then(v):v()}else this._inPlaceProcessItems(e,i)},e.prototype._standardProcessInstanceChanged=function(e,i){for(var n=0,r=i.length;n<r;n++){var o=(0,t.createFullOverrideContext)(e,i[n],n,r);e.addView(o.bindingContext,o)}},e.prototype._inPlaceProcessItems=function(e,i){for(var n=i.length,r=e.viewCount();r>n;)r--,e.removeView(r,!0,!e.viewsRequireLifecycle);for(var o=e.local,a=0;a<r;a++){var s=e.view(a),u=a===n-1,l=0!==a&&!u;s.bindingContext[o]===i[a]&&s.overrideContext.$middle===l&&s.overrideContext.$last===u||(s.bindingContext[o]=i[a],s.overrideContext.$middle=l,s.overrideContext.$last=u,e.updateBindings(s))}for(var c=r;c<n;c++){var d=(0,t.createFullOverrideContext)(e,i[c],c,n);e.addView(d.bindingContext,d)}},e.prototype.instanceMutated=function(e,t,n){var r=this;if(e.__queuedSplices){for(var o=0,a=n.length;o<a;++o){var s=n[o],u=s.index,l=s.removed,c=s.addedCount;(0,i.mergeSplice)(e.__queuedSplices,u,l,c)}return void(e.__array=t.slice(0))}var d=this._runSplices(e,t.slice(0),n);if(d instanceof Promise){var h=e.__queuedSplices=[],p=function t(){if(!h.length)return e.__queuedSplices=void 0,void(e.__array=void 0);var i=r._runSplices(e,e.__array,h)||Promise.resolve();h=e.__queuedSplices=[],i.then(t)};d.then(p)}},e.prototype._runSplices=function(e,i,n){for(var r=this,o=0,a=[],s=0,u=n.length;s<u;++s){for(var l=n[s],c=l.removed,d=0,h=c.length;d<h;++d){var p=e.removeView(l.index+o+a.length,!0);p instanceof Promise&&a.push(p)}o-=l.addedCount}if(a.length>0)return Promise.all(a).then(function(){var o=r._handleAddedSplices(e,i,n);(0,t.updateOverrideContexts)(e.views(),o)});var f=this._handleAddedSplices(e,i,n);(0,t.updateOverrideContexts)(e.views(),f)},e.prototype._handleAddedSplices=function(e,i,n){for(var r=void 0,o=void 0,a=i.length,s=0,u=n.length;s<u;++s){var l=n[s],c=r=l.index,d=l.index+l.addedCount;for((void 0===o||null===o||o>l.index)&&(o=r);c<d;++c){var h=(0,t.createFullOverrideContext)(e,i[c],c,a);e.insertView(c,h.bindingContext,h)}}return o},e}()}),define("aurelia-templating-resources/repeat-utilities",["exports","aurelia-binding"],function(e,t){"use strict";function i(e,t){var i=e.length;for(t>0&&(t-=1);t<i;++t)r(e[t].overrideContext,t,i)}function n(e,i,n,o,a){var s={},u=(0,t.createOverrideContext)(s,e.scope.overrideContext);return void 0!==a?(s[e.key]=a,s[e.value]=i):s[e.local]=i,r(u,n,o),u}function r(e,t,i){var n=0===t,r=t===i-1,o=t%2==0;e.$index=t,e.$first=n,e.$last=r,e.$middle=!(n||r),e.$odd=!o,e.$even=o}function o(e,t){return e.behaviorInstructions.filter(function(e){return e.originalAttrName===t})[0].attributes.items.sourceExpression}function a(e){for(var i=!1;e instanceof t.BindingBehavior;)e=e.expression;for(;e instanceof t.ValueConverter;)e=e.expression,i=!0;return i?e:null}function s(e){for(;e instanceof t.BindingBehavior;){if("oneTime"===e.name)return!0;e=e.expression}return!1}function u(e){e.call&&e.mode===c?e.call(t.sourceContext):e.updateOneTimeBindings&&e.updateOneTimeBindings()}function l(e,t,i,n){if(!i)return e.indexOf(t);for(var r=e.length,o=n||0;o<r;o++)if(i(e[o],t))return o;return-1}
Object.defineProperty(e,"__esModule",{value:!0}),e.updateOverrideContexts=i,e.createFullOverrideContext=n,e.updateOverrideContext=r,e.getItemsSourceExpression=o,e.unwrapExpression=a,e.isOneTime=s,e.updateOneTimeBinding=u,e.indexOf=l;var c=t.bindingMode.oneTime}),define("aurelia-templating-resources/map-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MapRepeatStrategy=void 0;e.MapRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getMapObserver(t)},e.prototype.instanceChanged=function(e,t){var i=this,n=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(n instanceof Promise)return void n.then(function(){return i._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,i){var n=0,r=void 0;i.forEach(function(o,a){r=(0,t.createFullOverrideContext)(e,o,n,i.size,a),e.addView(r.bindingContext,r),++n})},e.prototype.instanceMutated=function(e,i,n){var r=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=[],h=void 0;for(o=0,a=n.length;o<a;++o)switch(c=n[o],r=c.key,c.type){case"update":u=this._getViewIndexByKey(e,r),h=e.removeView(u,!0,!e.viewsRequireLifecycle),h instanceof Promise&&d.push(h),s=(0,t.createFullOverrideContext)(e,i.get(r),u,i.size,r),e.insertView(u,s.bindingContext,s);break;case"add":l=e.viewCount()<=i.size-1?e.viewCount():i.size-1,s=(0,t.createFullOverrideContext)(e,i.get(r),l,i.size,r),e.insertView(i.size-1,s.bindingContext,s);break;case"delete":if(void 0===c.oldValue)return;u=this._getViewIndexByKey(e,r),h=e.removeView(u,!0,!e.viewsRequireLifecycle),h instanceof Promise&&d.push(h);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}d.length>0?Promise.all(d).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var i=void 0,n=void 0,r=void 0;for(i=0,n=e.viewCount();i<n;++i)if(r=e.view(i),r.bindingContext[e.key]===t)return i},e}()}),define("aurelia-templating-resources/set-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetRepeatStrategy=void 0;e.SetRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getSetObserver(t)},e.prototype.instanceChanged=function(e,t){var i=this,n=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(n instanceof Promise)return void n.then(function(){return i._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,i){var n=0,r=void 0;i.forEach(function(o){r=(0,t.createFullOverrideContext)(e,o,n,i.size),e.addView(r.bindingContext,r),++n})},e.prototype.instanceMutated=function(e,i,n){var r=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=[],d=void 0;for(o=0,a=n.length;o<a;++o)switch(l=n[o],r=l.value,l.type){case"add":var h=Math.max(i.size-1,0);s=(0,t.createFullOverrideContext)(e,r,h,i.size),e.insertView(h,s.bindingContext,s);break;case"delete":u=this._getViewIndexByValue(e,r),d=e.removeView(u,!0,!e.viewsRequireLifecycle),d instanceof Promise&&c.push(d);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}c.length>0?Promise.all(c).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var i=void 0,n=void 0,r=void 0;for(i=0,n=e.viewCount();i<n;++i)if(r=e.view(i),r.bindingContext[e.local]===t)return i},e}()}),define("aurelia-templating-resources/number-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberRepeatStrategy=void 0;e.NumberRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(){return null},e.prototype.instanceChanged=function(e,t){var i=this,n=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(n instanceof Promise)return void n.then(function(){return i._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,i){var n=e.viewCount(),r=void 0,o=void 0,a=void 0,s=void 0;if(i=Math.floor(i),(s=n-i)>0)for(s>n&&(s=n),r=0,o=s;r<o;++r)e.removeView(n-(r+1),!0,!e.viewsRequireLifecycle);else{for(r=n,o=i;r<o;++r)a=(0,t.createFullOverrideContext)(e,r,r,o),e.addView(a.bindingContext,a);(0,t.updateOverrideContexts)(e.views(),0)}},e}()}),define("aurelia-templating-resources/analyze-view-factory",["exports"],function(e){"use strict";function t(e){var t=e.type,i=null!==t.elementName?t.elementName:t.attributeName;return-1===r.indexOf(i)&&(t.handlesAttached||t.handlesBind||t.handlesCreated||t.handlesDetached||t.handlesUnbind)||t.viewFactory&&n(t.viewFactory)||e.viewFactory&&n(e.viewFactory)}function i(e){var i=e.behaviorInstructions;if(i)for(var r=i.length;r--;)if(t(i[r]))return!0;return e.viewFactory&&n(e.viewFactory)}function n(e){if("_viewsRequireLifecycle"in e)return e._viewsRequireLifecycle;if(e._viewsRequireLifecycle=!1,e.viewFactory)return e._viewsRequireLifecycle=n(e.viewFactory),e._viewsRequireLifecycle;if(e.template.querySelector(".au-animate"))return e._viewsRequireLifecycle=!0,!0;for(var t in e.instructions)if(i(e.instructions[t]))return e._viewsRequireLifecycle=!0,!0;return e._viewsRequireLifecycle=!1,!1}Object.defineProperty(e,"__esModule",{value:!0}),e.viewsRequireLifecycle=n;var r=e.lifecycleOptionalBehaviors=["focus","if","repeat","show","with"]}),define("aurelia-templating-resources/abstract-repeater",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AbstractRepeater=function(){function e(e){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},e)}return e.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},e.prototype.views=function(){throw new Error("subclass must implement `views`")},e.prototype.view=function(e){throw new Error("subclass must implement `view`")},e.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},e.prototype.addView=function(e,t){throw new Error("subclass must implement `addView`")},e.prototype.insertView=function(e,t,i){throw new Error("subclass must implement `insertView`")},e.prototype.moveView=function(e,t){throw new Error("subclass must implement `moveView`")},e.prototype.removeAllViews=function(e,t){throw new Error("subclass must implement `removeAllViews`")},e.prototype.removeViews=function(e,t,i){throw new Error("subclass must implement `removeView`")},e.prototype.removeView=function(e,t,i){throw new Error("subclass must implement `removeView`")},e.prototype.updateBindings=function(e){throw new Error("subclass must implement `updateBindings`")},e}()}),define("aurelia-templating-resources/show",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(e,t,i,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Show=void 0;var o,a,s;e.Show=(o=(0,i.customAttribute)("show"),a=(0,t.inject)(n.DOM.Element,i.Animator,t.Optional.of(n.DOM.boundary,!0)),o(s=a(s=function(){function e(e,t,i){this.element=e,this.animator=t,this.domBoundary=i}return e.prototype.created=function(){(0,r.injectAureliaHideStyleAtBoundary)(this.domBoundary)},e.prototype.valueChanged=function(e){e?this.animator.removeClass(this.element,r.aureliaHideClassName):this.animator.addClass(this.element,r.aureliaHideClassName)},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||s)||s)}),define("aurelia-templating-resources/aurelia-hide-style",["exports","aurelia-pal"],function(e,t){"use strict";function i(){t.DOM.injectStyles(o)}function n(e){t.FEATURE.shadowDOM&&e&&!e.hasAureliaHideStyle&&(e.hasAureliaHideStyle=!0,t.DOM.injectStyles(o,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.aureliaHideClassName=void 0,e.injectAureliaHideStyleAtHead=i,e.injectAureliaHideStyleAtBoundary=n;var r=e.aureliaHideClassName="aurelia-hide",o="."+r+" { display:none !important; }"}),define("aurelia-templating-resources/hide",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(e,t,i,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hide=void 0;var o,a,s;e.Hide=(o=(0,i.customAttribute)("hide"),a=(0,t.inject)(n.DOM.Element,i.Animator,t.Optional.of(n.DOM.boundary,!0)),o(s=a(s=function(){function e(e,t,i){this.element=e,this.animator=t,this.domBoundary=i}return e.prototype.created=function(){(0,r.injectAureliaHideStyleAtBoundary)(this.domBoundary)},e.prototype.valueChanged=function(e){e?this.animator.addClass(this.element,r.aureliaHideClassName):this.animator.removeClass(this.element,r.aureliaHideClassName)},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||s)||s)}),define("aurelia-templating-resources/sanitize-html",["exports","aurelia-binding","aurelia-dependency-injection","./html-sanitizer"],function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SanitizeHTMLValueConverter=void 0;var r,o,a;e.SanitizeHTMLValueConverter=(r=(0,t.valueConverter)("sanitizeHTML"),o=(0,i.inject)(n.HTMLSanitizer),r(a=o(a=function(){function e(e){this.sanitizer=e}return e.prototype.toView=function(e){return null===e||void 0===e?null:this.sanitizer.sanitize(e)},e}())||a)||a)}),define("aurelia-templating-resources/html-sanitizer",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;e.HTMLSanitizer=function(){function e(){}return e.prototype.sanitize=function(e){return e.replace(t,"")},e}()}),define("aurelia-templating-resources/replaceable",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Replaceable=void 0;var n,r,o;e.Replaceable=(n=(0,i.customAttribute)("replaceable"),r=(0,t.inject)(i.BoundViewFactory,i.ViewSlot),n(o=(0,i.templateController)(o=r(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null}return e.prototype.bind=function(e,t){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(e,t)},e.prototype.unbind=function(){this.view.unbind()},e}())||o)||o)||o)}),define("aurelia-templating-resources/focus",["exports","aurelia-templating","aurelia-binding","aurelia-dependency-injection","aurelia-task-queue","aurelia-pal"],function(e,t,i,n,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;var a,s,u;e.Focus=(a=(0,t.customAttribute)("focus",i.bindingMode.twoWay),s=(0,n.inject)(o.DOM.Element,r.TaskQueue),a(u=s(u=function(){function e(e,t){this.element=e,this.taskQueue=t,this.isAttached=!1,this.needsApply=!1}return e.prototype.valueChanged=function(e){this.isAttached?this._apply():this.needsApply=!0},e.prototype._apply=function(){var e=this;this.value?this.taskQueue.queueMicroTask(function(){e.value&&e.element.focus()}):this.element.blur()},e.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this),this.element.addEventListener("blur",this)},e.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this),this.element.removeEventListener("blur",this)},e.prototype.handleEvent=function(e){"focus"===e.type?this.value=!0:o.DOM.activeElement!==this.element&&(this.value=!1)},e}())||u)||u)}),define("aurelia-templating-resources/css-resource",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(e,t,i,n,r,o){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){if("string"!=typeof t)throw new Error("Failed loading required CSS file: "+e);return t.replace(c,function(t,i){var n=i.charAt(0);return"'"!==n&&'"'!==n||(i=i.substr(1,i.length-2)),"url('"+(0,r.relativeToFile)(i,e)+"')"})}function l(e){var i;return(0,t.resource)(new d(e))(i=function(e){function t(){return a(this,e.apply(this,arguments))}return s(t,e),t}(h))||i}Object.defineProperty(e,"__esModule",{value:!0}),e._createCSSResource=l;var c=/url\((?!['"]data)([^)]+)\)/gi,d=function(){function e(e){this.address=e,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return e.prototype.initialize=function(e,t){this._scoped=new t(this)},e.prototype.register=function(e,t){"scoped"===t?e.registerViewEngineHooks(this._scoped):this._global=!0},e.prototype.load=function(e){var t=this;return e.get(i.Loader).loadText(this.address).catch(function(e){return null}).then(function(e){e=u(t.address,e),t._scoped.css=e,t._global&&(t._alreadyGloballyInjected=!0,o.DOM.injectStyles(e))})},e}(),h=function(){function e(e){this.owner=e,this.css=null}return e.prototype.beforeCompile=function(e,t,i){if(i.targetShadowDOM)o.DOM.injectStyles(this.css,e,!0);else if(o.FEATURE.scopedCSS){var n=o.DOM.injectStyles(this.css,e,!0);n.setAttribute("scoped","scoped")}else this._global&&!this.owner._alreadyGloballyInjected&&(o.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},e}()}),define("aurelia-templating-resources/attr-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttrBindingBehavior=void 0;e.AttrBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,i){e.targetObserver=new t.DataAttributeObserver(e.target,e.targetProperty)},e.prototype.unbind=function(e,t){},e}()}),define("aurelia-templating-resources/binding-mode-behaviors",["exports","aurelia-binding","aurelia-metadata"],function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=void 0;var n,r,o,a={bind:function(e,t,i){e.originalMode=e.mode,e.mode=this.mode},unbind:function(e,t){e.mode=e.originalMode,e.originalMode=null}};e.OneTimeBindingBehavior=(0,i.mixin)(a)(n=function(){this.mode=t.bindingMode.oneTime})||n,e.OneWayBindingBehavior=(0,i.mixin)(a)(r=function(){this.mode=t.bindingMode.oneWay})||r,e.TwoWayBindingBehavior=(0,i.mixin)(a)(o=function(){this.mode=t.bindingMode.twoWay})||o}),define("aurelia-templating-resources/throttle-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function i(e){var t=this,i=this.throttleState,n=+new Date-i.last;if(n>=i.delay)return clearTimeout(i.timeoutId),i.timeoutId=null,i.last=+new Date,void this.throttledMethod(e);i.newValue=e,null===i.timeoutId&&(i.timeoutId=setTimeout(function(){i.timeoutId=null,i.last=+new Date,t.throttledMethod(i.newValue)},i.delay-n))}Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottleBindingBehavior=void 0;e.ThrottleBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(o="updateSource"),e.throttledMethod=e[o],e.throttledMethod.originalName=o,e[o]=i,e.throttleState={delay:r,last:0,timeoutId:null}},e.prototype.unbind=function(e,t){e[e.throttledMethod.originalName]=e.throttledMethod,e.throttledMethod=null,clearTimeout(e.throttleState.timeoutId),e.throttleState=null},e}()}),define("aurelia-templating-resources/debounce-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function i(e){var t=this,i=this.debounceState;if(i.immediate)return i.immediate=!1,void this.debouncedMethod(e);clearTimeout(i.timeoutId),i.timeoutId=setTimeout(function(){return t.debouncedMethod(e)},i.delay)}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceBindingBehavior=void 0;e.DebounceBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(o="updateSource"),e.debouncedMethod=e[o],e.debouncedMethod.originalName=o,e[o]=i,e.debounceState={delay:r,timeoutId:null,immediate:"updateTarget"===o}},e.prototype.unbind=function(e,t){e[e.debouncedMethod.originalName]=e.debouncedMethod,e.debouncedMethod=null,clearTimeout(e.debounceState.timeoutId),e.debounceState=null},e}()}),define("aurelia-templating-resources/self-binding-behavior",["exports"],function(e){"use strict";function t(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function i(e){var i=t(e);this.target===i&&this.selfEventCallSource(e)}Object.defineProperty(e,"__esModule",{value:!0});e.SelfBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,t){if(!e.callSource||!e.targetEvent)throw new Error("Self binding behavior only supports event.");e.selfEventCallSource=e.callSource,e.callSource=i},e.prototype.unbind=function(e,t){e.callSource=e.selfEventCallSource,e.selfEventCallSource=null},e}()}),define("aurelia-templating-resources/signal-binding-behavior",["exports","./binding-signaler"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignalBindingBehavior=void 0;e.SignalBindingBehavior=function(){function e(e){this.signals=e.signals}return e.inject=function(){return[t.BindingSignaler]},e.prototype.bind=function(e,t){if(!e.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled.  Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var i=arguments[2];(this.signals[i]||(this.signals[i]=[])).push(e),e.signalName=i}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var n=Array.prototype.slice.call(arguments,2),r=n.length;r--;){var o=n[r];(this.signals[o]||(this.signals[o]=[])).push(e)}e.signalName=n}},e.prototype.unbind=function(e,t){var i=e.signalName;if(e.signalName=null,Array.isArray(i))for(var n=i,r=n.length;r--;){var o=n[r],a=this.signals[o];a.splice(a.indexOf(e),1)}else{var s=this.signals[i];s.splice(s.indexOf(e),1)}},e}()}),define("aurelia-templating-resources/binding-signaler",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingSignaler=void 0;e.BindingSignaler=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var i=this.signals[e];if(i)for(var n=i.length;n--;)i[n].call(t.sourceContext)},e}()}),define("aurelia-templating-resources/update-trigger-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateTriggerBindingBehavior=void 0;var i,n,r="The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements.";e.UpdateTriggerBindingBehavior=(n=i=function(){function e(e){this.eventManager=e}return e.prototype.bind=function(e,i){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];if(0===o.length)throw new Error("The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">");if(e.mode!==t.bindingMode.twoWay)throw new Error(r);var s=e.observerLocator.getObserver(e.target,e.targetProperty);if(!s.handler)throw new Error(r);e.targetObserver=s,s.originalHandler=e.targetObserver.handler;var u=this.eventManager.createElementHandler(o);s.handler=u},e.prototype.unbind=function(e,t){e.targetObserver.handler=e.targetObserver.originalHandler,e.targetObserver.originalHandler=null},e}(),i.inject=[t.EventManager],n)}),define("aurelia-templating-resources/html-resource-plugin",["exports","aurelia-templating","./dynamic-element"],function(e,t,i){"use strict";function n(e){return/([^\/^\?]+)\.html/i.exec(e)[1].toLowerCase()}function r(e){var r=e.container.get(t.ViewEngine),o=e.aurelia.loader;r.addResourcePlugin(".html",{fetch:function(e){return o.loadTemplate(e).then(function(t){var r,o=t.template.getAttribute("bindable"),a=n(e);return o?(o=o.split(",").map(function(e){return e.trim()}),t.template.removeAttribute("bindable")):o=[],r={},r[a]=(0,i._createDynamicElement)(a,e,o),r})}})}Object.defineProperty(e,"__esModule",{value:!0}),e.getElementName=n,e.configure=r}),define("aurelia-templating-resources/dynamic-element",["exports","aurelia-templating"],function(e,t){"use strict";function i(e,i,n){for(var r,o,a,s=(r=(0,t.customElement)(e),o=(0,t.useView)(i),r(a=o(a=function(){function e(){}return e.prototype.bind=function(e){this.$parent=e},e}())||a)||a),u=0,l=n.length;u<l;++u)(0,t.bindable)(n[u])(s);return s}Object.defineProperty(e,"__esModule",{value:!0}),e._createDynamicElement=i}),function(e,t,i){"use strict";var n=function(e,t,i){i=r.extend({},r.options,i);var o,a,s=r.runValidations(e,t,i);for(o in s)for(a in s[o])if(r.isPromise(s[o][a]))throw new Error("Use validate.async if you want support for promises");return n.processValidationResults(s,i)},r=n;r.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(var i in t)e[i]=t[i]}),e},r.extend(n,{version:{major:0,minor:11,patch:1,metadata:null,toString:function(){var e=r.format("%{major}.%{minor}.%{patch}",r.version);return r.isEmpty(r.version.metadata)||(e+="+"+r.version.metadata),e}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,i){var n,o,a,s,u,l,c,d=[];(r.isDomElement(e)||r.isJqueryElement(e))&&(e=r.collectFormValues(e));for(n in t){a=r.getDeepObjectValue(e,n),s=r.result(t[n],a,e,n,i,t);for(o in s){if(!(u=r.validators[o]))throw c=r.format("Unknown validator %{name}",{name:o}),new Error(c);l=s[o],l=r.result(l,a,e,n,i,t),l&&d.push({attribute:n,value:a,validator:o,globalOptions:i,attributes:e,options:l,error:u.call(u,a,l,n,e,i)})}}return d},processValidationResults:function(e,t){e=r.pruneEmptyErrors(e,t),e=r.expandMultipleErrors(e,t),e=r.convertErrorMessages(e,t);var i=t.format||"grouped";if("function"!=typeof r.formatters[i])throw new Error(r.format("Unknown format %{format}",t));return e=r.formatters[i](e),r.isEmpty(e)?void 0:e},async:function(e,t,i){i=r.extend({},r.async.options,i);var n=i.wrapErrors||function(e){return e};!1!==i.cleanAttributes&&(e=r.cleanAttributes(e,t));var o=r.runValidations(e,t,i);return new r.Promise(function(a,s){r.waitForResults(o).then(function(){var u=r.processValidationResults(o,i);u?s(new n(u,i,e,t)):a(e)},function(e){s(e)})})},single:function(e,t,i){return i=r.extend({},r.single.options,i,{format:"flat",fullMessages:!1}),r({single:e},{single:t},i)},waitForResults:function(e){return e.reduce(function(e,t){return r.isPromise(t.error)?e.then(function(){return t.error.then(function(e){t.error=e||null})}):e},new r.Promise(function(e){e()}))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return r.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!==e&&void 0!==e},isPromise:function(e){return!!e&&r.isFunction(e.then)},isJqueryElement:function(e){return e&&r.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!e.querySelectorAll||!e.querySelector)&&(!(!r.isObject(document)||e!==document)||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!r.isDefined(e))return!0;if(r.isFunction(e))return!1;if(r.isString(e))return r.EMPTY_STRING_REGEXP.test(e);if(r.isArray(e))return 0===e.length;if(r.isDate(e))return!1;if(r.isObject(e)){for(t in e)return!1;return!0}return!1},format:r.extend(function(e,t){return r.isString(e)?e.replace(r.format.FORMAT_REGEXP,function(e,i,n){return"%"===i?"%{"+n+"}":String(t[n])}):e},{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){return r.isNumber(e)?100*e%1==0?""+e:parseFloat(Math.round(100*e)/100).toFixed(2):r.isArray(e)?e.map(function(e){return r.prettify(e)}).join(", "):r.isObject(e)?e.toString():(e=""+e,e.replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,function(e,t,i){return t+" "+i.toLowerCase()}).toLowerCase())},stringifyValue:function(e){return r.prettify(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"==={}.toString.call(e)},isHash:function(e){return r.isObject(e)&&!r.isArray(e)&&!r.isFunction(e)},contains:function(e,t){return!!r.isDefined(e)&&(r.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return r.isArray(e)?e.filter(function(e,t,i){return i.indexOf(e)==t}):e},forEachKeyInKeypath:function(e,t,i){if(r.isString(t)){var n,o="",a=!1;for(n=0;n<t.length;++n)switch(t[n]){case".":a?(a=!1,o+="."):(e=i(e,o,!1),o="");break;case"\\":a?(a=!1,o+="\\"):a=!0;break;default:a=!1,o+=t[n]}return i(e,o,!0)}},getDeepObjectValue:function(e,t){if(r.isObject(e))return r.forEachKeyInKeypath(e,t,function(e,t){if(r.isObject(e))return e[t]})},collectFormValues:function(e,t){var i,n,o,a,s,u,l={};if(r.isJqueryElement(e)&&(e=e[0]),!e)return l;for(t=t||{},a=e.querySelectorAll("input[name], textarea[name]"),i=0;i<a.length;++i)o=a.item(i),r.isDefined(o.getAttribute("data-ignored"))||(u=r.sanitizeFormValue(o.value,t),"number"===o.type?u=u?+u:null:"checkbox"===o.type?o.attributes.value?o.checked||(u=l[o.name]||null):u=o.checked:"radio"===o.type&&(o.checked||(u=l[o.name]||null)),l[o.name]=u);for(a=e.querySelectorAll("select[name]"),i=0;i<a.length;++i){if(o=a.item(i),o.multiple){u=[];for(n in o.options)s=o.options[n],s.selected&&u.push(r.sanitizeFormValue(s.value,t))}else u=r.sanitizeFormValue(o.options[o.selectedIndex].value,t);l[o.name]=u}return l},sanitizeFormValue:function(e,t){return t.trim&&r.isString(e)&&(e=e.trim()),!1!==t.nullify&&""===e?null:e},capitalize:function(e){return r.isString(e)?e[0].toUpperCase()+e.slice(1):e},pruneEmptyErrors:function(e){return e.filter(function(e){return!r.isEmpty(e.error)})},expandMultipleErrors:function(e){var t=[];return e.forEach(function(e){r.isArray(e.error)?e.error.forEach(function(i){t.push(r.extend({},e,{error:i}))}):t.push(e)}),t},convertErrorMessages:function(e,t){t=t||{};var i=[];return e.forEach(function(e){var n=r.result(e.error,e.value,e.attribute,e.options,e.attributes,e.globalOptions);if(!r.isString(n))return void i.push(e);"^"===n[0]?n=n.slice(1):!1!==t.fullMessages&&(n=r.capitalize(r.prettify(e.attribute))+" "+n),n=n.replace(/\\\^/g,"^"),n=r.format(n,{value:r.stringifyValue(e.value)}),i.push(r.extend({},e,{error:n}))}),i},groupErrorsByAttribute:function(e){var t={};return e.forEach(function(e){var i=t[e.attribute];i?i.push(e):t[e.attribute]=[e]}),t},flattenErrorsToArray:function(e){return e.map(function(e){return e.error}).filter(function(e,t,i){return i.indexOf(e)===t})},cleanAttributes:function(e,t){function i(e,t,i){return r.isObject(e[t])?e[t]:e[t]=!!i||{}}function n(e,t){if(!r.isObject(e))return e;var i,o,a=r.extend({},e);for(o in e)i=t[o],r.isObject(i)?a[o]=n(a[o],i):i||delete a[o];return a}return r.isObject(t)&&r.isObject(e)?(t=function(e){var t,n={};for(t in e)e[t]&&r.forEachKeyInKeypath(n,t,i);return n}(t),n(e,t)):{}},exposeModule:function(e,t,i,n,r){i?(n&&n.exports&&(i=n.exports=e),i.validate=e):(t.validate=e,e.isFunction(r)&&r.amd&&r("validate.js/validate",[],function(){return e}))},warn:function(e){"undefined"!=typeof console&&console.warn&&console.warn("[validate.js] "+e)},error:function(e){"undefined"!=typeof console&&console.error&&console.error("[validate.js] "+e)}}),n.validators={presence:function(e,t){if(t=r.extend({},this.options,t),t.allowEmpty?!r.isDefined(e):r.isEmpty(e))return t.message||this.message||"can't be blank"},length:function(e,t,i){if(r.isDefined(e)){t=r.extend({},this.options,t);var n,o=t.is,a=t.maximum,s=t.minimum,u=t.tokenizer||function(e){return e},l=[];e=u(e);var c=e.length;return r.isNumber(c)?(r.isNumber(o)&&c!==o&&(n=t.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",l.push(r.format(n,{count:o}))),r.isNumber(s)&&c<s&&(n=t.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",l.push(r.format(n,{count:s}))),r.isNumber(a)&&c>a&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",l.push(r.format(n,{count:a}))),l.length>0?t.message||l:void 0):(r.error(r.format("Attribute %{attr} has a non numeric value for `length`",{attr:i})),t.message||this.notValid||"has an incorrect length")}},numericality:function(e,t){if(r.isDefined(e)){t=r.extend({},this.options,t);var i,n,o=[],a={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return e<t},lessThanOrEqualTo:function(e,t){return e<=t},divisibleBy:function(e,t){return e%t==0}};if(r.isString(e)&&t.strict){var s="^(0|[1-9]\\d*)";if(t.onlyInteger||(s+="(\\.\\d+)?"),s+="$",!new RegExp(s).test(e))return t.message||t.notValid||this.notValid||this.message||"must be a valid number"}if(!0!==t.noStrings&&r.isString(e)&&!r.isEmpty(e)&&(e=+e),!r.isNumber(e))return t.message||t.notValid||this.notValid||this.message||"is not a number";if(t.onlyInteger&&!r.isInteger(e))return t.message||t.notInteger||this.notInteger||this.message||"must be an integer";for(i in a)if(n=t[i],r.isNumber(n)&&!a[i](e,n)){var u="not"+r.capitalize(i),l=t[u]||this[u]||this.message||"must be %{type} %{count}";o.push(r.format(l,{count:n,type:r.prettify(i)}))}return t.odd&&e%2!=1&&o.push(t.notOdd||this.notOdd||this.message||"must be odd"),t.even&&e%2!=0&&o.push(t.notEven||this.notEven||this.message||"must be even"),o.length?t.message||o:void 0}},datetime:r.extend(function(e,t){if(!r.isFunction(this.parse)||!r.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(r.isDefined(e)){t=r.extend({},this.options,t);var i,n=[],o=t.earliest?this.parse(t.earliest,t):NaN,a=t.latest?this.parse(t.latest,t):NaN;return e=this.parse(e,t),isNaN(e)||t.dateOnly&&e%864e5!=0?(i=t.notValid||t.message||this.notValid||"must be a valid date",r.format(i,{value:arguments[0]})):(!isNaN(o)&&e<o&&(i=t.tooEarly||t.message||this.tooEarly||"must be no earlier than %{date}",i=r.format(i,{value:this.format(e,t),date:this.format(o,t)}),n.push(i)),!isNaN(a)&&e>a&&(i=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",i=r.format(i,{date:this.format(a,t),value:this.format(e,t)}),n.push(i)),n.length?r.unique(n):void 0)}},{parse:null,format:null}),date:function(e,t){return t=r.extend({},t,{dateOnly:!0}),r.validators.datetime.call(r.validators.datetime,e,t)},format:function(e,t){(r.isString(t)||t instanceof RegExp)&&(t={pattern:t}),t=r.extend({},this.options,t);var i,n=t.message||this.message||"is invalid",o=t.pattern;if(r.isDefined(e))return r.isString(e)?(r.isString(o)&&(o=new RegExp(t.pattern,t.flags)),i=o.exec(e),i&&i[0].length==e.length?void 0:n):n},inclusion:function(e,t){if(r.isDefined(e)&&(r.isArray(t)&&(t={within:t}),t=r.extend({},this.options,t),!r.contains(t.within,e))){var i=t.message||this.message||"^%{value} is not included in the list";return r.format(i,{value:e})}},exclusion:function(e,t){if(r.isDefined(e)&&(r.isArray(t)&&(t={within:t}),t=r.extend({},this.options,t),r.contains(t.within,e))){var i=t.message||this.message||"^%{value} is restricted";return r.format(i,{value:e})}},email:r.extend(function(e,t){t=r.extend({},this.options,t)
;var i=t.message||this.message||"is not a valid email";if(r.isDefined(e))return r.isString(e)&&this.PATTERN.exec(e)?void 0:i},{PATTERN:/^[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/i}),equality:function(e,t,i,n){if(r.isDefined(e)){r.isString(t)&&(t={attribute:t}),t=r.extend({},this.options,t);var o=t.message||this.message||"is not equal to %{attribute}";if(r.isEmpty(t.attribute)||!r.isString(t.attribute))throw new Error("The attribute must be a non empty string");var a=r.getDeepObjectValue(n,t.attribute);return(t.comparator||function(e,t){return e===t})(e,a,t,i,n)?void 0:r.format(o,{attribute:r.prettify(t.attribute)})}},url:function(e,t){if(r.isDefined(e)){t=r.extend({},this.options,t);var i=t.message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","http"],o=t.allowLocal||this.allowLocal||!1;if(!r.isString(e))return i;var a="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",s="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";o?s+="?":a+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",a+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+s+")(?::\\d{2,5})?(?:[/?#]\\S*)?$";return new RegExp(a,"i").exec(e)?void 0:i}}},n.formatters={detailed:function(e){return e},flat:r.flattenErrorsToArray,grouped:function(e){var t;e=r.groupErrorsByAttribute(e);for(t in e)e[t]=r.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;e=r.groupErrorsByAttribute(e);for(t in e)e[t]=e[t].map(function(e){return e.validator}).sort();return e}},n.exposeModule(n,this,e,t,i)}.call(this,"undefined"!=typeof exports?exports:null,"undefined"!=typeof module?module:null,"undefined"!=typeof define?define:null),define("validate.js",["validate.js/validate"],function(e){return e}),function(e){"function"==typeof define&&define.amd?define("nouislider",[],e):"object"==typeof exports?module.exports=e():window.noUiSlider=e()}(function(){"use strict";function e(e,t){var i=document.createElement("div");return l(i,t),e.appendChild(i),i}function t(e){return e.filter(function(e){return!this[e]&&(this[e]=!0)},{})}function i(e,t){return Math.round(e/t)*t}function n(e,t){var i=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=h();return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),t?i.top+o.y-r.clientTop:i.left+o.x-r.clientLeft}function r(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function o(e,t,i){i>0&&(l(e,t),setTimeout(function(){c(e,t)},i))}function a(e){return Math.max(Math.min(e,100),0)}function s(e){return Array.isArray(e)?e:[e]}function u(e){e=String(e);var t=e.split(".");return t.length>1?t[1].length:0}function l(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function d(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function h(){var e=void 0!==window.pageXOffset,t="CSS1Compat"===(document.compatMode||"");return{x:e?window.pageXOffset:t?document.documentElement.scrollLeft:document.body.scrollLeft,y:e?window.pageYOffset:t?document.documentElement.scrollTop:document.body.scrollTop}}function p(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function f(e,t){return 100/(t-e)}function v(e,t){return 100*t/(e[1]-e[0])}function m(e,t){return v(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}function g(e,t){return t*(e[1]-e[0])/100+e[0]}function y(e,t){for(var i=1;e>=t[i];)i+=1;return i}function b(e,t,i){if(i>=e.slice(-1)[0])return 100;var n,r,o,a,s=y(i,e);return n=e[s-1],r=e[s],o=t[s-1],a=t[s],o+m([n,r],i)/f(o,a)}function w(e,t,i){if(i>=100)return e.slice(-1)[0];var n,r,o,a,s=y(i,t);return n=e[s-1],r=e[s],o=t[s-1],a=t[s],g([n,r],(i-o)*f(o,a))}function C(e,t,n,r){if(100===r)return r;var o,a,s=y(r,e);return n?(o=e[s-1],a=e[s],r-o>(a-o)/2?a:o):t[s-1]?e[s-1]+i(r-e[s-1],t[s-1]):r}function S(e,t,i){var n;if("number"==typeof t&&(t=[t]),"[object Array]"!==Object.prototype.toString.call(t))throw new Error("noUiSlider ("+$+"): 'range' contains invalid value.");if(n="min"===e?0:"max"===e?100:parseFloat(e),!r(n)||!r(t[0]))throw new Error("noUiSlider ("+$+"): 'range' value isn't numeric.");i.xPct.push(n),i.xVal.push(t[0]),n?i.xSteps.push(!isNaN(t[1])&&t[1]):isNaN(t[1])||(i.xSteps[0]=t[1]),i.xHighestCompleteStep.push(0)}function x(e,t,i){if(!t)return!0;i.xSteps[e]=v([i.xVal[e],i.xVal[e+1]],t)/f(i.xPct[e],i.xPct[e+1]);var n=(i.xVal[e+1]-i.xVal[e])/i.xNumSteps[e],r=Math.ceil(Number(n.toFixed(3))-1),o=i.xVal[e]+i.xNumSteps[e]*r;i.xHighestCompleteStep[e]=o}function O(e,t,i,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t,this.direction=i;var r,o=[];for(r in e)e.hasOwnProperty(r)&&o.push([e[r],r]);for(o.length&&"object"==typeof o[0][0]?o.sort(function(e,t){return e[0][0]-t[0][0]}):o.sort(function(e,t){return e[0]-t[0]}),r=0;r<o.length;r++)S(o[r][1],o[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)x(r,this.xNumSteps[r],this)}function M(e,t){if(!r(t))throw new Error("noUiSlider ("+$+"): 'step' is not numeric.");e.singleStep=t}function _(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider ("+$+"): 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider ("+$+"): Missing 'min' or 'max' in 'range'.");if(t.min===t.max)throw new Error("noUiSlider ("+$+"): 'range' 'min' and 'max' cannot be equal.");e.spectrum=new O(t,e.snap,e.dir,e.singleStep)}function E(e,t){if(t=s(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider ("+$+"): 'start' option is incorrect.");e.handles=t.length,e.start=t}function V(e,t){if(e.snap=t,"boolean"!=typeof t)throw new Error("noUiSlider ("+$+"): 'snap' option must be a boolean.")}function A(e,t){if(e.animate=t,"boolean"!=typeof t)throw new Error("noUiSlider ("+$+"): 'animate' option must be a boolean.")}function T(e,t){if(e.animationDuration=t,"number"!=typeof t)throw new Error("noUiSlider ("+$+"): 'animationDuration' option must be a number.")}function N(e,t){var i,n=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(i=1;i<e.handles;i++)n.push(t);n.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider ("+$+"): 'connect' option doesn't match handle count.");n=t}e.connect=n}function B(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider ("+$+"): 'orientation' option is invalid.")}}function P(e,t){if(!r(t))throw new Error("noUiSlider ("+$+"): 'margin' option must be numeric.");if(0!==t&&(e.margin=e.spectrum.getMargin(t),!e.margin))throw new Error("noUiSlider ("+$+"): 'margin' option is only supported on linear sliders.")}function j(e,t){if(!r(t))throw new Error("noUiSlider ("+$+"): 'limit' option must be numeric.");if(e.limit=e.spectrum.getMargin(t),!e.limit||e.handles<2)throw new Error("noUiSlider ("+$+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function R(e,t){if(!r(t))throw new Error("noUiSlider ("+$+"): 'padding' option must be numeric.");if(0!==t){if(e.padding=e.spectrum.getMargin(t),!e.padding)throw new Error("noUiSlider ("+$+"): 'padding' option is only supported on linear sliders.");if(e.padding<0)throw new Error("noUiSlider ("+$+"): 'padding' option must be a positive number.");if(e.padding>=50)throw new Error("noUiSlider ("+$+"): 'padding' option must be less than half the range.")}}function F(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider ("+$+"): 'direction' option was not recognized.")}}function k(e,t){if("string"!=typeof t)throw new Error("noUiSlider ("+$+"): 'behaviour' must be a string containing options.");var i=t.indexOf("tap")>=0,n=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider ("+$+"): 'fixed' behaviour must be used with 2 handles");P(e,e.start[1]-e.start[0])}e.events={tap:i||o,drag:n,fixed:r,snap:o,hover:a}}function I(e,t){if(!1!==t)if(!0===t){e.tooltips=[];for(var i=0;i<e.handles;i++)e.tooltips.push(!0)}else{if(e.tooltips=s(t),e.tooltips.length!==e.handles)throw new Error("noUiSlider ("+$+"): must pass a formatter for all handles.");e.tooltips.forEach(function(e){if("boolean"!=typeof e&&("object"!=typeof e||"function"!=typeof e.to))throw new Error("noUiSlider ("+$+"): 'tooltips' must be passed a formatter or 'false'.")})}}function L(e,t){if(e.format=t,"function"==typeof t.to&&"function"==typeof t.from)return!0;throw new Error("noUiSlider ("+$+"): 'format' requires 'to' and 'from' methods.")}function z(e,t){if(void 0!==t&&"string"!=typeof t&&!1!==t)throw new Error("noUiSlider ("+$+"): 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function D(e,t){if(void 0!==t&&"object"!=typeof t)throw new Error("noUiSlider ("+$+"): 'cssClasses' must be an object.");if("string"==typeof e.cssPrefix){e.cssClasses={};for(var i in t)t.hasOwnProperty(i)&&(e.cssClasses[i]=e.cssPrefix+t[i])}else e.cssClasses=t}function H(e,t){if(!0!==t&&!1!==t)throw new Error("noUiSlider ("+$+"): 'useRequestAnimationFrame' option should be true (default) or false.");e.useRequestAnimationFrame=t}function U(e){var t={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,format:X},i={step:{r:!1,t:M},start:{r:!0,t:E},connect:{r:!0,t:N},direction:{r:!0,t:F},snap:{r:!1,t:V},animate:{r:!1,t:A},animationDuration:{r:!1,t:T},range:{r:!0,t:_},orientation:{r:!1,t:B},margin:{r:!1,t:P},limit:{r:!1,t:j},padding:{r:!1,t:R},behaviour:{r:!0,t:k},format:{r:!1,t:L},tooltips:{r:!1,t:I},cssPrefix:{r:!1,t:z},cssClasses:{r:!1,t:D},useRequestAnimationFrame:{r:!1,t:H}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};Object.keys(i).forEach(function(r){if(void 0===e[r]&&void 0===n[r]){if(i[r].r)throw new Error("noUiSlider ("+$+"): '"+r+"' is required.");return!0}i[r].t(t,void 0===e[r]?n[r]:e[r])}),t.pips=e.pips;var r=[["left","top"],["right","bottom"]];return t.style=r[t.dir][t.ort],t.styleOposite=r[t.dir?0:1][t.ort],t}function q(i,r,u){function f(t,i){var n=e(t,r.cssClasses.origin),o=e(n,r.cssClasses.handle);return o.setAttribute("data-handle",i),0===i?l(o,r.cssClasses.handleLower):i===r.handles-1&&l(o,r.cssClasses.handleUpper),n}function v(t,i){return!!i&&e(t,r.cssClasses.connect)}function m(t,i){return!!r.tooltips[i]&&e(t.firstChild,r.cssClasses.tooltip)}function g(e,t,i){if("range"===e||"steps"===e)return ae.xVal;if("count"===e){if(!t)throw new Error("noUiSlider ("+$+"): 'values' required for mode 'count'.");var n,r=100/(t-1),o=0;for(t=[];(n=o++*r)<=100;)t.push(n);e="positions"}return"positions"===e?t.map(function(e){return ae.fromStepping(i?ae.getStep(e):e)}):"values"===e?i?t.map(function(e){return ae.fromStepping(ae.getStep(ae.toStepping(e)))}):t:void 0}function y(e,i,n){function r(e,t){return(e+t).toFixed(7)/1}var o={},a=ae.xVal[0],s=ae.xVal[ae.xVal.length-1],u=!1,l=!1,c=0;return n=t(n.slice().sort(function(e,t){return e-t})),n[0]!==a&&(n.unshift(a),u=!0),n[n.length-1]!==s&&(n.push(s),l=!0),n.forEach(function(t,a){var s,d,h,p,f,v,m,g,y,b,w=t,C=n[a+1];if("steps"===i&&(s=ae.xNumSteps[a]),s||(s=C-w),!1!==w&&void 0!==C)for(s=Math.max(s,1e-7),d=w;d<=C;d=r(d,s)){for(p=ae.toStepping(d),f=p-c,g=f/e,y=Math.round(g),b=f/y,h=1;h<=y;h+=1)v=c+h*b,o[v.toFixed(5)]=["x",0];m=n.indexOf(d)>-1?1:"steps"===i?2:0,!a&&u&&(m=0),d===C&&l||(o[p.toFixed(5)]=[d,m]),c=p}}),o}function b(e,t,i){function n(e,t){var i=t===r.cssClasses.value,n=i?h:p,o=i?c:d;return t+" "+n[r.ort]+" "+o[e]}function o(e,t,i){return'class="'+n(i[1],t)+'" style="'+r.style+": "+e+'%"'}function a(e,n){n[1]=n[1]&&t?t(n[0],n[1]):n[1],u+="<div "+o(e,r.cssClasses.marker,n)+"></div>",n[1]&&(u+="<div "+o(e,r.cssClasses.value,n)+">"+i.to(n[0])+"</div>")}var s=document.createElement("div"),u="",c=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],d=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],h=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],p=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];return l(s,r.cssClasses.pips),l(s,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(e).forEach(function(t){a(t,e[t])}),s.innerHTML=u,s}function w(e){var t=e.mode,i=e.density||1,n=e.filter||!1,r=e.values||!1,o=e.stepped||!1,a=g(t,r,o),s=y(i,t,a),u=e.format||{to:Math.round};return ie.appendChild(b(s,n,u))}function C(){var e=Y.getBoundingClientRect(),t="offset"+["Width","Height"][r.ort];return 0===r.ort?e.width||Y[t]:e.height||Y[t]}function S(e,t,i,n){var o=function(t){return!ie.hasAttribute("disabled")&&(!d(ie,r.cssClasses.tap)&&(!!(t=x(t,n.pageOffset))&&(!(e===te.start&&void 0!==t.buttons&&t.buttons>1)&&((!n.hover||!t.buttons)&&(t.calcPoint=t.points[r.ort],void i(t,n))))))},a=[];return e.split(" ").forEach(function(e){t.addEventListener(e,o,!1),a.push([e,o])}),a}function x(e,t){e.preventDefault();var i,n,r=0===e.type.indexOf("touch"),o=0===e.type.indexOf("mouse"),a=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(a=!0),r){if(e.touches.length>1)return!1;i=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY}return t=t||h(),(o||a)&&(i=e.clientX+t.x,n=e.clientY+t.y),e.pageOffset=t,e.points=[i,n],e.cursor=o||a,e}function O(e){var t=e-n(Y,r.ort),i=100*t/C();return r.dir?100-i:i}function M(e){var t=100,i=!1;return J.forEach(function(n,r){if(!n.hasAttribute("disabled")){var o=Math.abs(ne[r]-e);o<t&&(i=r,t=o)}}),i}function _(e,t,i,n){var r=i.slice(),o=[!e,e],a=[e,!e];n=n.slice(),e&&n.reverse(),n.length>1?n.forEach(function(e,i){var n=j(r,e,r[e]+t,o[i],a[i]);!1===n?t=0:(t=n-r[e],r[e]=n)}):o=a=[!0];var s=!1;n.forEach(function(e,n){s=I(e,i[e]+t,o[n],a[n])||s}),s&&n.forEach(function(e){E("update",e),E("slide",e)})}function E(e,t,i){Object.keys(ue).forEach(function(n){var o=n.split(".")[0];e===o&&ue[n].forEach(function(e){e.call(ee,se.map(r.format.to),t,se.slice(),i||!1,ne.slice())})})}function V(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&T(e,t)}function A(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return T(e,t);var i=(r.dir?-1:1)*(e.calcPoint-t.startCalcPoint);_(i>0,100*i/t.baseSize,t.locations,t.handleNumbers)}function T(e,t){oe&&(c(oe,r.cssClasses.active),oe=!1),e.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener)),document.documentElement.noUiListeners.forEach(function(e){document.documentElement.removeEventListener(e[0],e[1])}),c(ie,r.cssClasses.drag),k(),t.handleNumbers.forEach(function(e){E("set",e),E("change",e),E("end",e)})}function N(e,t){if(1===t.handleNumbers.length){var i=J[t.handleNumbers[0]];if(i.hasAttribute("disabled"))return!1;oe=i.children[0],l(oe,r.cssClasses.active)}e.preventDefault(),e.stopPropagation();var n=S(te.move,document.documentElement,A,{startCalcPoint:e.calcPoint,baseSize:C(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:ne.slice()}),o=S(te.end,document.documentElement,T,{handleNumbers:t.handleNumbers}),a=S("mouseout",document.documentElement,V,{handleNumbers:t.handleNumbers});if(document.documentElement.noUiListeners=n.concat(o,a),e.cursor){document.body.style.cursor=getComputedStyle(e.target).cursor,J.length>1&&l(ie,r.cssClasses.drag);var s=function(){return!1};document.body.noUiListener=s,document.body.addEventListener("selectstart",s,!1)}t.handleNumbers.forEach(function(e){E("start",e)})}function B(e){e.stopPropagation();var t=O(e.calcPoint),i=M(t);if(!1===i)return!1;r.events.snap||o(ie,r.cssClasses.tap,r.animationDuration),I(i,t,!0,!0),k(),E("slide",i,!0),E("set",i,!0),E("change",i,!0),E("update",i,!0),r.events.snap&&N(e,{handleNumbers:[i]})}function P(e){var t=O(e.calcPoint),i=ae.getStep(t),n=ae.fromStepping(i);Object.keys(ue).forEach(function(e){"hover"===e.split(".")[0]&&ue[e].forEach(function(e){e.call(ee,n)})})}function j(e,t,i,n,o){return J.length>1&&(n&&t>0&&(i=Math.max(i,e[t-1]+r.margin)),o&&t<J.length-1&&(i=Math.min(i,e[t+1]-r.margin))),J.length>1&&r.limit&&(n&&t>0&&(i=Math.min(i,e[t-1]+r.limit)),o&&t<J.length-1&&(i=Math.max(i,e[t+1]-r.limit))),r.padding&&(0===t&&(i=Math.max(i,r.padding)),t===J.length-1&&(i=Math.min(i,100-r.padding))),i=ae.getStep(i),(i=a(i))!==e[t]&&i}function R(e){return e+"%"}function F(e,t){ne[e]=t,se[e]=ae.fromStepping(t);var i=function(){J[e].style[r.style]=R(t),L(e),L(e+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(i):i()}function k(){re.forEach(function(e){var t=ne[e]>50?-1:1,i=3+(J.length+t*e);J[e].childNodes[0].style.zIndex=i})}function I(e,t,i,n){return!1!==(t=j(ne,e,t,i,n))&&(F(e,t),!0)}function L(e){if(Z[e]){var t=0,i=100;0!==e&&(t=ne[e-1]),e!==Z.length-1&&(i=ne[e]),Z[e].style[r.style]=R(t),Z[e].style[r.styleOposite]=R(100-i)}}function z(e,t){null!==e&&!1!==e&&("number"==typeof e&&(e=String(e)),!1===(e=r.format.from(e))||isNaN(e)||I(t,ae.toStepping(e),!1,!1))}function D(e,t){var i=s(e),n=void 0===ne[0];t=void 0===t||!!t,i.forEach(z),r.animate&&!n&&o(ie,r.cssClasses.tap,r.animationDuration),re.forEach(function(e){I(e,ne[e],!0,!1)}),k(),re.forEach(function(e){E("update",e),null!==i[e]&&t&&E("set",e)})}function H(e){D(r.start,e)}function q(){var e=se.map(r.format.to);return 1===e.length?e[0]:e}function W(){for(var e in r.cssClasses)r.cssClasses.hasOwnProperty(e)&&c(ie,r.cssClasses[e]);for(;ie.firstChild;)ie.removeChild(ie.firstChild);delete ie.noUiSlider}function X(){return ne.map(function(e,t){var i=ae.getNearbySteps(e),n=se[t],r=i.thisStep.step,o=null;!1!==r&&n+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-n),o=n>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&n-i.stepBefore.highestStep,100===e?r=null:0===e&&(o=null);var a=ae.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,r]})}function K(e,t){ue[e]=ue[e]||[],ue[e].push(t),"update"===e.split(".")[0]&&J.forEach(function(e,t){E("update",t)})}function G(e){var t=e&&e.split(".")[0],i=t&&e.substring(t.length);Object.keys(ue).forEach(function(e){var n=e.split(".")[0],r=e.substring(n.length);t&&t!==n||i&&i!==r||delete ue[e]})}function Q(e,t){var i=q(),n=["margin","limit","padding","range","animate","snap","step","format"];n.forEach(function(t){void 0!==e[t]&&(u[t]=e[t])});var o=U(u);n.forEach(function(t){void 0!==e[t]&&(r[t]=o[t])}),o.spectrum.direction=ae.direction,ae=o.spectrum,r.margin=o.margin,r.limit=o.limit,r.padding=o.padding,ne=[],D(e.start||i,t)}var Y,J,Z,ee,te=p(),ie=i,ne=[],re=[],oe=!1,ae=r.spectrum,se=[],ue={};if(ie.noUiSlider)throw new Error("noUiSlider ("+$+"): Slider was already initialized.");return function(t){l(t,r.cssClasses.target),0===r.dir?l(t,r.cssClasses.ltr):l(t,r.cssClasses.rtl),0===r.ort?l(t,r.cssClasses.horizontal):l(t,r.cssClasses.vertical),Y=e(t,r.cssClasses.base)}(ie),function(e,t){J=[],Z=[],Z.push(v(t,e[0]));for(var i=0;i<r.handles;i++)J.push(f(t,i)),re[i]=i,Z.push(v(t,e[i+1]))}(r.connect,Y),ee={destroy:W,steps:X,on:K,off:G,get:q,set:D,reset:H,__moveHandles:function(e,t,i){_(e,t,ne,i)},options:u,updateOptions:Q,target:ie,pips:w},function(e){e.fixed||J.forEach(function(e,t){S(te.start,e.children[0],N,{handleNumbers:[t]})}),e.tap&&S(te.start,Y,B,{}),e.hover&&S(te.move,Y,P,{hover:!0}),e.drag&&Z.forEach(function(t,i){if(!1!==t&&0!==i&&i!==Z.length-1){var n=J[i-1],o=J[i],a=[t];l(t,r.cssClasses.draggable),e.fixed&&(a.push(n.children[0]),a.push(o.children[0])),a.forEach(function(e){S(te.start,e,N,{handles:[n,o],handleNumbers:[i-1,i]})})}})}(r.events),D(r.start),r.pips&&w(r.pips),r.tooltips&&function(){var e=J.map(m);K("update",function(t,i,n){if(e[i]){var o=t[i];!0!==r.tooltips[i]&&(o=r.tooltips[i].to(n[i])),e[i].innerHTML=o}})}(),ee}function W(e,t){if(!e.nodeName)throw new Error("noUiSlider ("+$+"): create requires a single element.");var i=U(t,e),n=q(e,i,t);return e.noUiSlider=n,n}var $="9.2.0";O.prototype.getMargin=function(e){var t=this.xNumSteps[0];if(t&&e/t%1!=0)throw new Error("noUiSlider ("+$+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&v(this.xVal,e)},O.prototype.toStepping=function(e){return e=b(this.xVal,this.xPct,e)},O.prototype.fromStepping=function(e){return w(this.xVal,this.xPct,e)},O.prototype.getStep=function(e){return e=C(this.xPct,this.xSteps,this.snap,e)},O.prototype.getNearbySteps=function(e){var t=y(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},O.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(u);return Math.max.apply(null,e)},O.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var X={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};return{version:$,create:W}});