-
Notifications
You must be signed in to change notification settings - Fork 3
/
aurelia-bundle.min.js
3 lines (2 loc) · 283 KB
/
aurelia-bundle.min.js
1
2
3
/*! core 2014-07-15 */
define("aurelia-path",["exports"],function(e){function t(e){var t,n;for(t=0;t<e.length;++t){n=e[t];if(n===".")e.splice(t,1),t-=1;else if(n===".."){if(t===0||t==1&&e[2]===".."||e[t-1]==="..")continue;t>0&&(e.splice(t-1,2),t-=2)}}}function n(e,n){var r,i,s=n&&n.split("/");return e=e.trim(),e=e.split("/"),e[0].charAt(0)==="."&&s&&(i=s.slice(0,s.length-1),e=i.concat(e)),t(e),e.join("/")}function r(e,t){var n,r,i,s,o,u;if(!e)return t;if(!t)return e;u=e.indexOf("//")===0?"//":e.indexOf("/")===0?"/":"",n=e.split("/"),r=t.split("/"),i=[];for(s=0,o=n.length;s<o;++s)if(n[s]=="..")i.pop();else{if(n[s]=="."||n[s]=="")continue;i.push(n[s])}for(s=0,o=r.length;s<o;++s)if(r[s]=="..")i.pop();else{if(r[s]=="."||r[s]=="")continue;i.push(r[s])}return u+i.join("/").replace(/\:\//g,"://")}function u(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?o[toString.call(e)]||"object":typeof e}function a(e,t){var n,r=[],s=function(t,n){n=typeof n=="function"?n():n==null?"":n,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)};for(n in e)f(n,e[n],t,s);return r.join("&").replace(i,"+")}function f(e,t,n,r){var i;if(Array.isArray(t))t.forEach(function(t,i){n||s.test(e)?r(e,t):f(e+"["+(typeof t=="object"?i:"")+"]",t,n,r)});else if(!n&&u(t)==="object")for(i in t)f(e+"["+i+"]",t[i],n,r);else r(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.relativeToFile=n,e.join=r,e.buildQueryString=a;var i=/%20/g,s=/\[\]$/,o={};"Boolean Number String Function Array Date RegExp Object Error".split(" ").forEach(function(e,t){o["[object "+e+"]"]=e.toLowerCase()})}),define("aurelia-loader/template-registry-entry",["exports","aurelia-path"],function(e,t){var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});var i=function o(e,t){r(this,o),this.src=e,this.name=t};e.TemplateDependency=i;var s=function(){function e(t){r(this,e),this.id=t,this.template=null,this.dependencies=null,this.resources=null,this.factory=null}return n(e,[{key:"templateIsLoaded",get:function(){return this.template!==null}},{key:"isReady",get:function(){return this.factory!==null}},{key:"setTemplate",value:function(n){var r=this.id,s,o,u,a,f;this.template=n,s=n.content.querySelectorAll("require"),this.dependencies=new Array(s.length);if(s.length===0)return;for(o=0,u=s.length;o<u;++o){a=s[o],f=a.getAttribute("from");if(!f)throw new Error("<require> element in "+this.id+' has no "from" attribute.');this.dependencies[o]=new i(t.relativeToFile(f,r),a.getAttribute("as")),a.parentNode&&a.parentNode.removeChild(a)}}},{key:"setResources",value:function(t){this.resources=t}},{key:"setFactory",value:function(t){this.factory=t}}]),e}();e.TemplateRegistryEntry=s}),!function(e){function st(e,t,r,i){var s,u,f,l,c,d,g,y,S,x;if((t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!i){if(s=Z.exec(e))if(f=s[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return r;if(u.id===f)return r.push(u),r}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&b(t,u)&&u.id===f)return r.push(u),r}else{if(s[2])return P.apply(r,t.getElementsByTagName(e)),r;if((f=s[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(f)),r}if(n.qsa&&(!m||!m.test(e))){if(y=g=w,S=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){d=o(e),(g=t.getAttribute("id"))?y=g.replace(tt,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",c=d.length;while(c--)d[c]=y+mt(d[c]);S=et.test(e)&&dt(t.parentNode)||t,x=d.join(",")}if(x)try{return P.apply(r,S.querySelectorAll(x)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return a(e.replace(z,"$1"),t,r,i)}function ot(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function ut(e){return e[w]=!0,e}function at(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ft(e,t){var n=e.split("|"),i=e.length;while(i--)r.attrHandle[n[i]]=t}function lt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ut(function(t){return t=+t,ut(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function dt(e){return e&&typeof e.getElementsByTagName!==L&&e}function vt(){}function mt(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function gt(e,t,n){var r=t.dir,i=n&&"parentNode"===r,s=x++;return t.first?function(t,n,s){while(t=t[r])if(1===t.nodeType||i)return e(t,n,s)}:function(t,n,o){var u,a,f=[S,s];if(o){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,o))return!0}else while(t=t[r])if(1===t.nodeType||i){if(a=t[w]||(t[w]={}),(u=a[r])&&u[0]===S&&u[1]===s)return f[2]=u[2];if(a[r]=f,f[2]=e(t,n,o))return!0}}}function yt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function bt(e,t,n){for(var r=0,i=t.length;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r,i){for(var s,o=[],u=0,a=e.length,f=null!=t;a>u;u++)(s=e[u])&&(!n||n(s,r,i))&&(o.push(s),f&&t.push(u));return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),ut(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||bt(t||"*",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:wt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?B.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):P.apply(o,g)})}function St(e){for(var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=gt(function(e){return e===t},u,!0),c=gt(function(e){return B.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];s>a;a++)if(n=r.relative[e[a].type])h=[gt(yt(h),n)];else{if(n=r.filter[e[a].type].apply(null,e[a].matches),n[w]){for(i=++a;s>i;i++)if(r.relative[e[i].type])break;return Et(a>1&&yt(h),a>1&&mt(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(z,"$1"),n,i>a&&St(e.slice(a,i)),s>i&&St(e=e.slice(i)),s>i&&mt(e))}h.push(n)}return yt(h)}function xt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,h,d,v=0,m="0",g=s&&[],y=[],b=f,w=s||i&&r.find.TAG("*",l),E=S+=null==b?1:Math.random()||.1,x=w.length;for(l&&(f=o!==p&&o);m!==x&&null!=(c=w[m]);m++){if(i&&c){h=0;while(d=e[h++])if(d(c,o,u)){a.push(c);break}l&&(S=E)}n&&((c=!d&&c)&&v--,s&&g.push(c))}if(v+=m,n&&m!==v){h=0;while(d=t[h++])d(g,y,o,u);if(s){if(v>0)while(m--)g[m]||y[m]||(y[m]=_.call(a));y=wt(y)}P.apply(a,y),l&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(a)}return l&&(S=E,f=b),g};return n?ut(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+ -(new Date),E=e.document,S=0,x=0,T=ot(),N=ot(),C=ot(),k=function(e,t){return e===t&&(c=!0),0},L="undefined",A=1<<31,O={}.hasOwnProperty,M=[],_=M.pop,D=M.push,P=M.push,H=M.slice,B=M.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q=I.replace("w","w#"),R="\\["+F+"*("+I+")"+F+"*(?:([*^$|!~]?=)"+F+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+q+")|)|)"+F+"*\\]",U=":("+I+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+R.replace(3,8)+")*)|.*)\\)|)",z=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),W=new RegExp("^"+F+"*,"+F+"*"),X=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),V=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),$=new RegExp(U),J=new RegExp("^"+q+"$"),K={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,tt=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{P.apply(M=H.call(E.childNodes),E.childNodes),M[E.childNodes.length].nodeType}catch(it){P={apply:M.length?function(e,t){D.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=st.support={},s=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},h=st.setDocument=function(e){var t,i=e?e.ownerDocument||e:E,o=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,d=i.documentElement,v=!s(i),o&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",function(){h()},!1):o.attachEvent&&o.attachEvent("onunload",function(){h()})),n.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=at(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Y.test(i.getElementsByClassName)&&at(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=at(function(e){return d.appendChild(e).id=w,!i.getElementsByName||!i.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==L&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==L&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==L?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==L&&v?t.getElementsByClassName(e):void 0},g=[],m=[],(n.qsa=Y.test(i.querySelectorAll))&&(at(function(e){e.innerHTML="<select class=''><option selected=''></option></select>",e.querySelectorAll("[class^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+j+")"),e.querySelectorAll(":checked").length||m.push(":checked")}),at(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Y.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&at(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Y.test(d.compareDocumentPosition),b=t||Y.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&1===r.nodeType&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===E&&b(E,e)?-1:t===i||t.ownerDocument===E&&b(E,t)?1:l?B.call(l,e)-B.call(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,s=e.parentNode,o=t.parentNode,u=[e],a=[t];if(!s||!o)return e===i?-1:t===i?1:s?-1:o?1:l?B.call(l,e)-B.call(l,t):0;if(s===o)return lt(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(u[r]===a[r])r++;return r?lt(u[r],a[r]):u[r]===E?-1:a[r]===E?1:0},i):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(V,"='$1']"),!(!n.matchesSelector||!v||g&&g.test(t)||m&&m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},st.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==s?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},st.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,r=[],i=0,s=0;if(c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k),c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=st.getText=function(e){var t,n="",r=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===s||4===s)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},r=st.selectors={cacheLength:50,createPseudo:ut,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return K.CHILD.test(e[0])?null:(e[3]&&void 0!==e[4]?e[2]=e[4]:n&&$.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==L&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){l=m[w]||(m[w]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(1===c.nodeType&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[w]||(t[w]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++h&&(y&&((c[w]||(c[w]={}))[e]=[S,h]),c===t))break;return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ut(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=B.call(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ut(function(e){var t=[],n=[],r=u(e.replace(z,"$1"));return r[w]?ut(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:ut(function(e){return function(t){return st(e,t).length>0}}),contains:ut(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ut(function(e){return J.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,o=st.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){(!n||(i=W.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(s=[])),n=!1,(i=X.exec(u))&&(n=i.shift(),s.push({value:n,type:i[0].replace(z," ")}),u=u.slice(n.length));for(o in r.filter)!(i=K[o].exec(u))||f[o]&&!(i=f[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?st.error(e):N(e,a).slice(0)},u=st.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r)),s.selector=e}return s},a=st.select=function(e,t,i,s){var a,f,l,c,h,p="function"==typeof e&&e,d=!s&&o(e=p.selector||e);if(i=i||[],1===d.length){if(f=d[0]=d[0].slice(0),f.length>2&&"ID"===(l=f[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=K.needsContext.test(e)?0:f.length;while(a--){if(l=f[a],r.relative[c=l.type])break;if((h=r.find[c])&&(s=h(l.matches[0].replace(nt,rt),et.test(f[0].type)&&dt(t.parentNode)||t))){if(f.splice(a,1),e=s.length&&mt(f),!e)return P.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,et.test(e)&&dt(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!c,h(),n.sortDetached=at(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),at(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ft("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&at(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ft("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),at(function(e){return null==e.getAttribute("disabled")})||ft(j,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),"function"==typeof define&&define.amd?define("core-js/core.src",[],function(){return st}):"undefined"!=typeof module&&module.exports?module.exports=st:e.Sizzle=st}(window),function(scope){Function.prototype.bind||(Function.prototype.bind=function(e){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e||window,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),Function.prototype.inherits=function(e){this.prototype=new e({__inheriting__:!0})},Function.prototype.augment=Function.prototype.mixin=Function.prototype.partial=function(e){if(typeof e=="function")for(var t in e.prototype)this.prototype[t]=e.prototype[t];if(typeof e=="object")for(var t in e)this.prototype[t]=e[t]},scope.core||(scope.core={});if(typeof navigator!="undefined"){var N=navigator.appName,ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident)\/?\s*(\.?\d+(\.\d+)*)/i);M&&(tem=ua.match(/version\/([\.\d]+)/i))!=null&&(M[2]=tem[1]),M=M?[M[1],M[2]]:[N,navigator.appVersion,"-?"];var br={mobile:!1,ios:!1,iphone:!1,ipad:!1,android:!1,webos:!1,mac:!1,windows:!1,other:!0,name:M[0].toLowerCase()=="trident"?"msie":M[0].toLowerCase(),version:M[1].split(".")[0],touch:"ontouchstart"in window,full_version:M[1]};function ver(e,t,n,r){var i=e.exec(ua);return i===null||typeof i!="object"||typeof i.length!="number"?!0:typeof i.length=="number"&&i.length>=t+1?n&&r?i[t].replace(n,r):i[t]:!0}/mobile/i.test(ua)&&(br.mobile=!0),/like Mac OS X/.test(ua)&&(br.ios=ver(/CPU( iPhone)? OS ([0-9\._]+) like Mac OS X/,2,/_/g,"."),br.iphone=/iPhone/.test(ua),br.ipad=/iPad/.test(ua)),/Android/.test(ua)&&(br.android=ver(/Android ([0-9\.]+)[\);]/,1)),/webOS\//.test(ua)&&(br.webos=ver(/webOS\/([0-9\.]+)[\);]/,1)),/(Intel|PPC) Mac OS X/.test(ua)&&(br.mac=ver(/(Intel|PPC) Mac OS X ?([0-9\._]*)[\)\;]/,2,/_/g,".")),/Windows NT/.test(ua)&&(br.windows=ver(/Windows NT ([0-9\._]+)[\);]/,1));for(var key in br)key!=="Other"&&key!=="Mobile"&&br[key]!==!1&&(br.other=!1);scope.core.browser=br,scope.core.browser[M[0].toLowerCase()=="trident"?"msie":M[0].toLowerCase()]={version:M[1].split(".")[0]}}scope.core.GUID=function(){var e=[],t="0123456789abcdef";for(var n=0;n<36;n++)e[n]=t.substr(Math.floor(Math.random()*16),1);e[14]="4",e[19]=t.substr(e[19]&3|8,1),e[8]=e[13]=e[18]=e[23]="-";var r=e.join("");return r},scope.core.rect=function(e){var t={};e instanceof Array&&(t=e[0].getBoundingClientRect()),t=e.getBoundingClientRect();if(typeof t.width=="undefined"){var n=t;t={top:n.top,left:n.left,right:n.right,bottom:n.bottom},t.width=t.right-t.left,t.height=t.bottom+t.top}else typeof t.right=="undefined"&&(t={top:n.top,left:n.left,width:n.width,height:n.height},t.right=t.left+t.width,t.bottom=t.top+t.height);return t},scope.core.registerNamespace=function(e,t){var n=e.split("."),r=n.shift();scope[r]||(scope[r]={});var i=scope[r];while(n.length>1){var s=n.shift();i[s]||(i[s]={}),i=i[s]}if(!n.length)scope[r]=t;else{var o=n.shift();o&&(i[o]=t||{})}},scope.core._import=function(e){var t=e.split("."),n=scope;while(t.length){var r=t.shift();if(!n[r])return null;n=n[r]}return n},scope.core.dependency=function(e,t){scope[e]||console.warn(t)},scope.JSON||(scope.JSON={}),function(){function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)r=rep[n],typeof r=="string"&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),scope==window&&!window.addEventListener&&function(e,t,n,r,i,s,o){e[r]=t[r]=n[r]=function(e,t){var n=this;o.unshift([n,e,t,function(e){e.currentTarget=n,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},e.target=e.srcElement||n,t.call(n,e)}]),this.attachEvent("on"+e,o[0][3])},e[i]=t[i]=n[i]=function(e,t){for(var n=0,r;r=o[n];++n)if(r[0]==this&&r[1]==e&&r[2]==t)return this.detachEvent("on"+e,o.splice(n,1)[0][3])},e[s]=t[s]=n[s]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[])}(typeof process!="undefined"&&process.arch!==undefined?GLOBAL:window),"console"in window||(console={log:function(){},warn:function(){},trace:function(){}}),function(){function e(e){if(e&&e.__inheriting__)return;e&&e.el&&(this.el=e.el),this.proxyHandlers={},this.construct(e||{});var t=this;setTimeout(function(){t.delayedConstruct&&t.delayedConstruct(e||{})},0)}e.prototype._=e.prototype.getProxyHandler=function(e){return this.proxyHandlers[e]||(typeof this[e]=="function"?this.proxyHandlers[e]=this[e].bind(this):console.warn("Warning: attempt to create non existing method as proxy "+e)),this.proxyHandlers[e]},e.prototype.clearProxyHandler=function(e){var t=this.proxyHandlers[e];return t===null&&console.warn("Warning: attempt to clear a non-existing proxy - "+e),this.proxyHandlers[e]=null,delete this.proxyHandlers[e],t},e.prototype.construct=function(e){},e.prototype.delayedConstruct=function(e){},e.prototype.dispose=function(e){if(e&&this.el)try{this.el.parentNode.removeChild(this.el)}catch(t){}this.el=null;for(var n in this.proxyHandlers)this.proxyHandlers[n]=null,delete this.proxyHandlers[n]},e.prototype.find=function(e){return Sizzle(e,this.el)},e.prototype.findAll=function(e){return Sizzle(e)},core.registerNamespace("core.Core",e)}(),typeof module!="undefined"&&module.exports&&(module.exports=core),function(){function n(t){if(t&&t.__inheriting__)return;e.call(this,t)}var e=core.Core,t=e.prototype;n.inherits(e);var r=n.prototype;r.construct=function(e){t.construct.call(this,e),this.events={}},r.dispose=function(){t.dispose.call(this),this.removeAll(),this.events=null};var i=function(e,t){var n=e.length;for(var r=0;r<n;r++)if(e[r].scope===t)return e[r];return t.__core__signal__id__=core.GUID(),-1},s=function(e,t,n,r){var s=null,o=i.call(this,this.events[e+(r?"_once":"")],t);o===-1&&t.dispose?(s=t.dispose,t.dispose=function(){var e=Array.prototype.shift.call(arguments),n=Array.prototype.shift.call(arguments);return n.removeScope(this,t),n=null,e=null,s.apply(this,arguments)}.bind(t,n,this),this.events[e+(r?"_once":"")].push({method:n,scope:t,dispose_orig:s})):o!==-1?o.method!=n&&this.events[e+(r?"_once":"")].push({method:n,scope:o.scope,dispose_orig:o.dispose_orig}):this.events[e+(r?"_once":"")].push({method:n,scope:t,dispose_orig:null})};r.on=function(e,t,n){this.events[e]||(this.events[e]=[]),s.call(this,e,n,t)},r.once=function(e,t,n){this.events[e+"_once"]||(this.events[e+"_once"]=[]),s.call(this,e,n,t,!0)};var o=function(e,t,n){if(this.events[e]){var r=this.events[e].length;while(r--)if(this.events[e][r].scope===t&&this.events[e][r].method===n){var i=this.events[e].splice(r,1).pop();i.scope.dispose&&i.dispose_orig&&(i.scope.dispose=i.dispose_orig),delete i.scope.__core__signal__id__,i.scope=null,i.dispose_orig=null,delete i.dispose_orig,i=null}this.events[e].length===0&&delete this.events[e]}};r.off=function(e,t,n){o.call(this,e,n,t),o.call(this,e+"_once",n,t)},r.removeScope=function(e){for(var t in this.events){var n=this.events[t].length;while(n--)if(this.events[t][n].scope===e){var r=this.events[t].splice(n,1).pop();r.scope.dispose&&r.dispose_orig&&(r.scope.dispose=r.dispose_orig),delete r.scope.__core__signal__id__,r=null}this.events[t].length===0&&delete this.events[t]}},r.removeAll=function(){for(var e in this.events){var t=this.events[e].length;while(this.events[e].length){var n=this.events[e].shift();n.scope.dispose&&n.dispose_orig&&(n.scope.dispose=n.dispose_orig),delete n.__core__signal__id__,n=null}this.events[e].length===0&&delete this.events[e]}this.events={}},r.trigger=function(e,t){var n=t||{};n.type||(n.type=e);if(this.events&&this.events[e]){var r=this.events[e],i=r.length;for(var s=0;s<i;s++){var o=r[s];o.method.call(o.scope,n),o=null}}if(this.events&&this.events[e+"_once"]){var u=this.events[e+"_once"];while(u.length){var o=u.shift();o.method.call(o.scope,n),o=null}u.length||delete this.events[e+"_once"]}n=null},core.registerNamespace("core.events.EventDispatcher",n)}(),function(){function r(e){if(e&&e.__inheriting__)return;t.call(this,e)}var e=null,t=core.events.EventDispatcher,n=t.prototype;r.inherits(t);var i=r.prototype;i.construct=function(e){n.construct.call(this,e)},i.dispose=function(){n.dispose.call(this)};var s={init:function(){return e==null&&(e=new r),e}};s.instance=s.init,core.registerNamespace("core.events.EventBroadcaster",s)}(),function(){function i(e){if(e&&e.__inheriting__)return;t.call(this,e)}var e=null,t=core.Core,n=t.prototype,r=function(e){for(e=0;e<4;e++)try{return e?new ActiveXObject([,"Msxml2","Msxml3","Microsoft"][e]+".XMLHTTP"):new XMLHttpRequest}catch(t){}};i.inherits(t);var s=i.prototype;s.construct=function(e){n.construct.call(this,e),this.settingsCache={}},s.dispose=function(){e=null,this.settingsCache=null,delete this.settingsCache,n.dispose.call(this)};var o=function(e,t){if(t==="json")try{return JSON.parse(e)}catch(n){return null}return t==="html"?e.trim():e},u=function(e){for(var t in this.settingsCache)e[t]||(e[t]=this.settingsCache[t]);return e};s.setConfig=function(e){this.settingsCache=e},s.request=function(e){if(e==undefined)throw new Error("XHR:Invalid parameters");e=u.call(this,e);var t=r(),n=e.method||"get";e.location=e.url||e.location;var i=e.async=typeof e.async!="undefined"?e.async:!0;t.queryString=e.data||null,t.open(n,e.location+(e.nocache?"?cache="+(new Date).getTime():""),i);try{t.setRequestHeader("X-Requested-With","XMLHttpRequest")}catch(s){throw new Error("XHR: "+s)}var a=e.dataType||e.format||"plain";n.toLowerCase()==="post"&&t.setRequestHeader("Content-Type",e.contentType||"application/x-www-form-urlencoded");var f=function(){if(t.readyState===4)(t.status===0||t.status===200)&&e.callback(o.call(this,t.responseText,a)),t=null,e=null;else switch(t.readyState){case 1:try{e.requestSetup()}catch(n){}break;case 2:try{e.requestSent()}catch(n){}break;case 3:try{e.requestInProcess()}catch(n){}}};i&&(t.onreadystatechange=f,i||f());try{t.send(e.data||null)}catch(s){e.error(s),e=null,t=null}};var a={init:function(){return e==null&&(e=new i),e}};a.instance=a.init,core.registerNamespace("core.net.XHR",a)}(),function(e){function r(e){if(e&&e.__inheriting__)return;t.call(this,e)}function i(e,t){var n=!1,r=!0,i=e.document,s=i.documentElement,o=i.addEventListener?"addEventListener":"attachEvent",u=i.addEventListener?"removeEventListener":"detachEvent",a=i.addEventListener?"":"on",f=function(r){if(r.type=="readystatechange"&&i.readyState!="complete")return;(r.type=="load"?e:i)[u](a+r.type,f,!1),!n&&(n=!0)&&t.call(e,r.type||r)},l=function(){try{s.doScroll("left")}catch(e){setTimeout(l,50);return}f("poll")};if(i.readyState=="complete")t.call(e,"lazy");else{if(i.createEventObject&&s.doScroll){try{r=!e.frameElement}catch(c){}r&&l()}i[o](a+"DOMContentLoaded",f,!1),i[o](a+"readystatechange",f,!1),e[o](a+"load",f,!1)}}var t=core._import("core.Core"),n=t.prototype;r.inherits(t);var s=r.prototype;s.construct=function(e){n.construct.call(this,e),typeof document!="undefined"&&i(window,this.getProxyHandler("onDocumentReady"))},s.dispose=function(e){n.dispose.call(this,e)};var o=function(){var e=document.body;if(e.hasAttribute("core-app")||e.hasAttribute("data-root")){var t=typeof process!="undefined"&&process.arch!==undefined?GLOBAL:window,n=Function.apply(t,["return "+(e.hasAttribute("core-app")?e.getAttribute("core-app"):e.getAttribute("data-root"))])(),r=e.getAttribute("data-params")?JSON.parse(e.getAttribute("data-params")):{};r.el=e,window.__coreapp__=new n(r)}else doc=null};s.onDocumentReady=function(e){e&&o.call(this)},setTimeout(function(){var e=new r},1)}(typeof process!="undefined"&&process.arch!==undefined?GLOBAL:window),function(e){function r(e){if(e&&e.__inheriting__)return;e&&e.parent&&(this.parent=e.parent),t.call(this,e)}function s(t){var n=function(t){var r=-1,i,s,o=t.length-1;while(r++<o){var u=t[r];if(u.nodeType==1){var a=u.getAttribute("core-module"),f=u.getAttribute("core-id"),l=u.getAttribute("core-params");if(a&&f&&!this[f])i=Function.apply(e,["return "+a])(),s=l?JSON.parse(l):{},s.el=u,s.parent=this,this[f]=new i(s);else if(a&&!f)i=Function.apply(e,["return "+a])(),s=l?JSON.parse(l):{},s.parent=this,s.el=u,new i(s);else if(a&&f&&this[f]){i=Function.apply(e,["return "+a])(),s=l?JSON.parse(l):{},s.el=u,s.parent=this;var c=new i(s);try{this[f].push(c)}catch(h){this[f]=[this[f]],this[f].push(c)}}else u.hasChildNodes()&&n.call(this,u.childNodes)}}};n.call(this,t.childNodes)}var t=core.events.EventDispatcher,n=t.prototype;r.inherits(t);var i=r.prototype;i.delayedConstruct=function(e){s.call(this,this.el),this.initialized(e)},i.dispose=function(e){n.dispose.call(this,e)},core.registerNamespace("core.wirings.Module",r)}(typeof process!="undefined"&&process.arch!==undefined?GLOBAL:window),function(e){var t=0,n=["webkit","moz"];for(var r=0;r<n.length&&!e.requestAnimationFrame;++r)e.requestAnimationFrame=e[n[r]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[n[r]+"CancelAnimationFrame"]||e[n[r]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(n,r){var i=(new Date).getTime(),s=Math.max(0,16-(i-t)),o=e.setTimeout(function(){n(i+s)},s);return t=i+s,o}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){clearTimeout(e)})}(typeof process!="undefined"&&process.arch!==undefined?GLOBAL:window),function(){Math.randomFloat||(Math.randomFloat=function(e,t){return Math.random()*(t-e)+e}),Math.randomInt||(Math.randomInt=function(e,t){return Math.min(t,Math.floor(Math.random()*(1+t-e))+e)}),Math.aspectScaleHeight=function(e,t,n){return{height:n,width:n/t*e}},Math.aspectScaleWidth=function(e,t,n){return{height:n/t*oh,width:n}}}(),function(){typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}(),define("core-js",["core-js/core.src"],function(e){return e}),define("aurelia-loader/loader",["exports","core-js","./template-registry-entry"],function(e,t,n){function a(e,t,n){document.head.appendChild(e),window.Polymer&&Polymer.whenReady?Polymer.whenReady(n):t.addEventListener("load",n)}var r=function(e){return e&&e.__esModule?e["default"]:e},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(t),u="content"in document.createElement("template"),f=function(){function e(){i(this,e),this.templateRegistry={}}return s(e,[{key:"loadModule",value:function(t){throw new Error("Loaders must implement loadModule(id).")}},{key:"loadAllModules",value:function(t){throw new Error("Loader must implement loadAllModules(ids).")}},{key:"loadTemplate",value:function(t){throw new Error("Loader must implement loadTemplate(url).")}},{key:"getOrCreateTemplateRegistryEntry",value:function(t){var r=this.templateRegistry[t];return r===undefined&&(this.templateRegistry[t]=r=new n.TemplateRegistryEntry(t)),r}},{key:"importDocument",value:function(t){return new Promise(function(e,n){var r=document.createDocumentFragment(),i=document.createElement("link");i.rel="import",i.href=t,r.appendChild(i),a(r,i,function(){return e(i["import"])})})}},{key:"importTemplate",value:function(t){var n=this;return this.importDocument(t).then(function(e){return n.findTemplate(e,t)})}},{key:"findTemplate",value:function(t,n){u||HTMLTemplateElement.bootstrap(t);var r=t.getElementsByTagName("template")[0];if(!r)throw new Error("There was no template element found in '"+n+"'.");return r}}]),e}();e.Loader=f}),define("aurelia-loader/index",["exports","./template-registry-entry","./loader"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TemplateRegistryEntry",{enumerable:!0,get:function(){return t.TemplateRegistryEntry}}),Object.defineProperty(e,"TemplateDependency",{enumerable:!0,get:function(){return t.TemplateDependency}}),Object.defineProperty(e,"Loader",{enumerable:!0,get:function(){return n.Loader}})}),define("aurelia-loader",["aurelia-loader/index"],function(e){return e}),define("aurelia-metadata/origin",["exports","core-js"],function(e,t){function u(e){return e instanceof a?e:new a(e)}var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=n(t),o=new Map,a=function(){function e(t,n){r(this,e),this.moduleId=t,this.moduleMember=n}return i(e,null,[{key:"get",value:function(t){var n=o.get(t);return n!==undefined?n:(typeof t.origin=="function"?o.set(t,n=u(t.origin())):t.origin!==undefined&&o.set(t,n=u(t.origin)),n)}},{key:"set",value:function(n,r){e.get(n)===undefined&&o.set(n,r)}}]),e}();e.Origin=a}),define("aurelia-metadata/resource-type",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e)}return n(e,[{key:"load",value:function(t,n){return Promise.resolve(this)}},{key:"register",value:function(t,n){throw new Error('All descendents of "ResourceType" must implement the "register" method.')}}]),e}();e.ResourceType=r}),define("aurelia-metadata/metadata",["exports","core-js"],function(e,t){var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=n(t),o=new Map,u,a=function(){function e(t){r(this,e),this._owner=t,this._first=null,this._second=null,this._third=null,this._rest=null}return i(e,[{key:"first",value:function(t,n){var r,i,s,o;if(this._first instanceof t)return this._first;if(this._second instanceof t)return this._second;if(this._third instanceof t)return this._third;o=this._rest;if(o!==null)for(i=0,s=o.length;i<s;++i){r=o[i];if(r instanceof t)return r}return n&&this._owner!==undefined?f.on(Object.getPrototypeOf(this._owner)).first(t,n):null}},{key:"has",value:function(t,n){return this.first(t,n)!==null}},{key:"all",value:function(t,n){var r,i,s,o,u=[];this._first instanceof t&&u.push(this._first),this._second instanceof t&&u.push(this._second),this._third instanceof t&&u.push(this._third),o=this._rest;if(o!==null)for(i=0,s=o.length;i<s;++i)r=o[i],r instanceof t&&u.push(r);return n&&this._owner!==undefined&&(u=u.concat(f.on(Object.getPrototypeOf(this._owner)).all(t,n))),u}},{key:"firstOrAdd",value:function(t,n){var r=this.first(t,n);return r===null&&(r=new t,this.add(r)),r}},{key:"add",value:function(t){if(this._first===null){this._first=t;return}if(this._second===null){this._second=t;return}if(this._third===null){this._third=t;return}return this._rest===null&&(this._rest=[]),this._rest.push(t),this}}]),e}();e.MetadataStore=a;var f={none:Object.freeze(new a),on:function(t){var n;if(!t)return this.none;n=o.get(t);if(n!==undefined&&n._owner===t)return n;n=new a(t),o.set(t,n);if(t.hasOwnProperty("decorators")){var r;typeof t.decorators=="function"?r=t.decorators():r=t.decorators;if(typeof r._decorate!="function")throw new Error("The return value of your decorator's method was not valid.");r._decorate(t)}else u!==undefined&&u(t,n);return n},configure:{locator:function(t){if(u===undefined){u=t;return}var n=u;u=function(e,r){n(e,r),t(e,r)}}}};e.Metadata=f}),define("aurelia-metadata/decorator-applicator",["exports","./metadata"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(){n(this,e),this._first=null,this._second=null,this._third=null,this._rest=null}return r(e,[{key:"decorator",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return this._first===null?(this._first=e,this):this._second===null?(this._second=e,this):this._third===null?(this._third=e,this):(this._rest===null&&(this._rest=[]),this._rest.push(e),this)})},{key:"_decorate",value:function(t){var n,r,i;this._first!==null&&this._first(t),this._second!==null&&this._second(t),this._third!==null&&this._third(t),i=this._rest;if(i!==null)for(n=0,r=i.length;n<r;++n)i[n](t)}}]),e}();e.DecoratorApplicator=i}),define("aurelia-metadata/decorators",["exports","./decorator-applicator"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n={configure:{parameterizedDecorator:function(r,i){n[r]=function(){var e=new t.DecoratorApplicator;return e[r].apply(e,arguments)},t.DecoratorApplicator.prototype[r]=function(){var e=i.apply(null,arguments);return this.decorator(e)}},simpleDecorator:function(r,i){n[r]=function(){return(new t.DecoratorApplicator).decorator(i)},t.DecoratorApplicator.prototype[r]=function(){return this.decorator(i)}}}};e.Decorators=n}),define("aurelia-metadata/index",["exports","./origin","./resource-type","./metadata","./decorators"],function(e,t,n,r,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Origin",{enumerable:!0,get:function(){return t.Origin}}),Object.defineProperty(e,"ResourceType",{enumerable:!0,get:function(){return n.ResourceType}}),Object.defineProperty(e,"Metadata",{enumerable:!0,get:function(){return r.Metadata}}),Object.defineProperty(e,"Decorators",{enumerable:!0,get:function(){return i.Decorators}})}),define("aurelia-metadata",["aurelia-metadata/index"],function(e){return e}),define("aurelia-loader-default",["exports","aurelia-metadata","aurelia-loader"],function(e,t,n){function a(e,n){var r=e,i,s;r.__useDefault&&(r=r["default"]),t.Origin.set(r,new t.Origin(n,"default"));for(i in r)s=r[i],typeof s=="function"&&t.Origin.set(s,new t.Origin(n,i));return e}var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function l(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:l(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},o=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});if(!window.System||!window.System["import"]){var u=window.System=window.System||{};u.polyfilled=!0,u.map={},u["import"]=function(e){return new Promise(function(t,n){require([e],t,n)})},u.normalize=function(e){return Promise.resolve(e)}}var f=function(e){function t(){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.moduleRegistry={};var e=this;System.polyfilled?define("view",[],{load:function(n,r,i,s){var o=e.getOrCreateTemplateRegistryEntry(n),u;if(o.templateIsLoaded){i(o);return}u=r.toUrl(n),e.importTemplate(u).then(function(e){o.setTemplate(e),i(o)})}}):System.set("view",System.newModule({fetch:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(t,n){var r=t.name.substring(0,t.name.indexOf("!")),i=t.metadata.templateRegistryEntry=e.getOrCreateTemplateRegistryEntry(r);return i.templateIsLoaded?"":e.importTemplate(t.address).then(function(e){return i.setTemplate(e),""})}),instantiate:function(t){return t.metadata.templateRegistryEntry}}))}return o(t,e),i(t,[{key:"loadModule",value:function(t){var n=this;return System.normalize(t).then(function(e){var t=n.moduleRegistry[e];return t?t:System["import"](e).then(function(t){return n.moduleRegistry[e]=t,a(t,e)})})}},{key:"loadAllModules",value:function(t){var n=[],r=!0,i=!1,s=undefined;try{for(var o=t[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0){var a=u.value;n.push(this.loadModule(a))}}catch(f){i=!0,s=f}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}return Promise.all(n)}},{key:"loadTemplate",value:function(t){return System.polyfilled?System["import"]("view!"+t):System["import"](t+"!view")}}]),t}(n.Loader);e.DefaultLoader=f,window.AureliaLoader=f}),define("aurelia-task-queue",["exports"],function(e){function s(e){var t=1,n=new r(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}function o(e){return function(){function i(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(i,0),r=setInterval(i,50)}}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=window.MutationObserver||window.WebKitMutationObserver,i=typeof setImmediate=="function",u=function(){function e(){var n=this;t(this,e),this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],typeof r=="function"?this.requestFlushMicroTaskQueue=s(function(){return n.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=o(function(){return n.flushMicroTaskQueue()}),this.requestFlushTaskQueue=o(function(){return n.flushTaskQueue()})}return n(e,[{key:"queueMicroTask",value:function(t){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.microTaskQueue.push(t)}},{key:"queueTask",value:function(t){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.taskQueue.push(t)}},{key:"flushTaskQueue",value:function(){var t=this.taskQueue,n=0,r;this.taskQueue=[];while(n<t.length){r=t[n];try{r.call()}catch(i){this.onError(i,r)}n++}}},{key:"flushMicroTaskQueue",value:function(){var t=this.microTaskQueue,n=this.microTaskQueueCapacity,r=0,i;while(r<t.length){i=t[r];try{i.call()}catch(s){this.onError(s,i)}r++;if(r>n){for(var o=0;o<r;o++)t[o]=t[o+r];t.length-=r,r=0}}t.length=0}},{key:"onError",value:function(t,n){"onError"in n?n.onError(t):i?setImmediate(function(){throw t}):setTimeout(function(){throw t},0)}}]),e}();e.TaskQueue=u}),define("aurelia-logging",["exports"],function(e){function r(e,t,n){if(t){if(t.innerError&&n)return t;t.stack&&(e+="\n------------------------------------------------\ninner error: "+t.stack)}var r=new Error(e);return t&&(r.innerError=t),r}function l(e,t,n){var r=u.length,i;n=a.call(n),n.unshift(e);while(r--)i=u[r],i[t].apply(i,n)}function c(){if(o<4)return;l(this,"debug",arguments)}function h(){if(o<3)return;l(this,"info",arguments)}function p(){if(o<2)return;l(this,"warn",arguments)}function d(){if(o<1)return;l(this,"error",arguments)}function v(e){e.debug=c,e.info=h,e.warn=p,e.error=d}function m(e){var t=new w(e,f);return u.length&&v(t),t}function g(e){return s[e]||(s[e]=m(e))}function y(e){u.push(e);if(u.length===1)for(var t in s)v(s[t])}function b(e){o=e}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AggregateError=r,e.getLogger=g,e.addAppender=y,e.setLevel=b;var i={none:0,error:1,warn:2,info:3,debug:4};e.levels=i;var s={},o=i.none,u=[],a=Array.prototype.slice,f={},w=function(){function e(n,r){t(this,e);if(r!==f)throw new Error('You cannot instantiate "Logger". Use the "getLogger" API instead.');this.id=n}return n(e,[{key:"debug",value:function(){}},{key:"info",value:function(){}},{key:"warn",value:function(){}},{key:"error",value:function(){}}]),e}();e.Logger=w}),define("aurelia-logging-console",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),function(e){e.console=e.console||{};var t=e.console,n,r,i={},s=function(){},o="memory".split(","),u="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");while(n=o.pop())t[n]||(t[n]=i);while(r=u.pop())t[r]||(t[r]=s)}(typeof window=="undefined"?undefined:window);var r=function(){function e(){t(this,e)}return n(e,[{key:"debug",value:function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];console.debug.apply(console,["DEBUG ["+t.id+"] "+n].concat(i))}},{key:"info",value:function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];console.info.apply(console,["INFO ["+t.id+"] "+n].concat(i))}},{key:"warn",value:function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];console.warn.apply(console,["WARN ["+t.id+"] "+n].concat(i))}},{key:"error",value:function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];console.error.apply(console,["ERROR ["+t.id+"] "+n].concat(i))}}]),e}();e.ConsoleAppender=r}),define("aurelia-history",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e)}return n(e,[{key:"activate",value:function(){throw new Error("History must implement activate().")}},{key:"deactivate",value:function(){throw new Error("History must implement deactivate().")}},{key:"navigate",value:function(){throw new Error("History must implement navigate().")}},{key:"navigateBack",value:function(){throw new Error("History must implement navigateBack().")}}]),e}();e.History=r}),define("aurelia-history-browser",["exports","core-js","aurelia-history"],function(e,t,n){function p(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}function v(e){e.withSingleton(n.History,d)}var r=function(e){return e&&e.__esModule?e["default"]:e},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function m(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:m(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},u=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0}),e.install=v;var a=r(t),f=/^[#\/]|\s+$/g,l=/^\/+|\/+$/g,c=/msie [\w.]+/,h=/\/$/,d=function(e){function t(){i(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.interval=50,this.active=!1,this.previousFragment="",this._checkUrlCallback=this.checkUrl.bind(this),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)}return u(t,e),s(t,[{key:"getHash",value:function(t){var n=(t||this).location.href.match(/#(.*)$/);return n?n[1]:""}},{key:"getFragment",value:function(t,n){var r;return t||(this._hasPushState||!this._wantsHashChange||n?(t=this.location.pathname+this.location.search,r=this.root.replace(h,""),t.indexOf(r)||(t=t.substr(r.length))):t=this.getHash()),t.replace(f,"")}},{key:"activate",value:function(t){if(this.active)throw new Error("History has already been activated.");this.active=!0,this.options=Object.assign({},{root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment();this.root=("/"+this.root+"/").replace(l,"/"),this._hasPushState?window.onpopstate=this._checkUrlCallback:this._wantsHashChange&&"onhashchange"in window?window.addEventListener("hashchange",this._checkUrlCallback):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this._checkUrlCallback,this.interval)),this.fragment=n;var r=this.location,i=r.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!i)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&i&&r.hash&&(this.fragment=this.getHash().replace(f,""),this.history.replaceState({},document.title,this.root+this.fragment+r.search))}if(!this.options.silent)return this.loadUrl()}},{key:"deactivate",value:function(){window.onpopstate=null,window.removeEventListener("hashchange",this._checkUrlCallback),clearInterval(this._checkUrlInterval),this.active=!1}},{key:"checkUrl",value:function(){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe)));if(t===this.fragment)return!1;this.iframe&&this.navigate(t,!1),this.loadUrl()}},{key:"loadUrl",value:function(t){var n=this.fragment=this.getFragment(t);return this.options.routeHandler?this.options.routeHandler(n):!1}},{key:"navigate",value:function(t,n){if(t&&t.indexOf("://")!=-1)return window.location.href=t,!0;if(!this.active)return!1;n===undefined?n={trigger:!0}:typeof n=="boolean"&&(n={trigger:n}),t=this.getFragment(t||"");if(this.fragment===t)return;this.fragment=t;var r=this.root+t;t===""&&r!=="/"&&(r=r.slice(0,-1));if(this._hasPushState)this.history[n.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);p(this.location,t,n.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(n.replace||this.iframe.document.open().close(),p(this.iframe.location,t,n.replace))}if(n.trigger)return this.loadUrl(t);this.previousFragment=t}},{key:"navigateBack",value:function(){this.history.back()}}]),t}(n.History);e.BrowserHistory=d}),define("aurelia-event-aggregator",["exports"],function(e){function s(e){var t=new i;return e.subscribe=function(e,n){return t.subscribe(e,n)},e.publish=function(e,n){t.publish(e,n)},t}function o(e){e.withInstance(i,s(e))}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.includeEventsIn=s,e.install=o;var r=function(){function e(n,r){t(this,e),this.messageType=n,this.callback=r}return n(e,[{key:"handle",value:function(t){t instanceof this.messageType&&this.callback.call(null,t)}}]),e}(),i=function(){function e(){t(this,e),this.eventLookup={},this.messageHandlers=[]}return n(e,[{key:"publish",value:function(t,n){var r,i;if(typeof t=="string"){r=this.eventLookup[t];if(r){r=r.slice(),i=r.length;while(i--)r[i](n,t)}}else{r=this.messageHandlers.slice(),i=r.length;while(i--)r[i].handle(t)}}},{key:"subscribe",value:function(t,n){var i,s;return typeof t=="string"?(i=this.eventLookup[t]||(this.eventLookup[t]=[]),i.push(n),function(){i.splice(i.indexOf(n),1)}):(s=new r(t,n),i=this.messageHandlers,i.push(s),function(){i.splice(i.indexOf(s),1)})}},{key:"subscribeOnce",value:function(t,n){var r=this.subscribe(t,function(e,t){return r(),n(e,t)});return r}}]),e}();e.EventAggregator=i}),define("aurelia-dependency-injection/metadata",["exports","core-js"],function(e,t){var n=function(e){return e&&e.__esModule?e["default"]:e},r=function b(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:b(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},i=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=n(t),a=function(){function e(){s(this,e)}return o(e,[{key:"register",value:function(t,n,r){throw new Error("A custom Registration must implement register(container, key, fn).")}}]),e}();e.Registration=a;var f=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.key=e}return i(t,e),o(t,[{key:"register",value:function(t,n,r){t.registerTransient(this.key||n,r)}}]),t}(a);e.TransientRegistration=f;var l=function(e){function t(e){var n=arguments[1]===undefined?!1:arguments[1];s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),typeof e=="boolean"?this.registerInChild=e:(this.key=e,this.registerInChild=n)}return i(t,e),o(t,[{key:"register",value:function(t,n,r){var i=this.registerInChild?t:t.root;i.registerSingleton(this.key||n,r)}}]),t}(a);e.SingletonRegistration=l;var c=function(){function e(){s(this,e)}return o(e,[{key:"get",value:function(t){throw new Error("A custom Resolver must implement get(container) and return the resolved instance(s).")}}]),e}();e.Resolver=c;var h=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.key=e}return i(t,e),o(t,[{key:"get",value:function(t){var n=this;return function(){return t.get(n.key)}}}],[{key:"of",value:function(n){return new t(n)}}]),t}(c);e.Lazy=h;var p=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.key=e}return i(t,e),o(t,[{key:"get",value:function(t){return t.getAll(this.key)}}],[{key:"of",value:function(n){return new t(n)}}]),t}(c);e.All=p;var d=function(e){function t(e){var n=arguments[1]===undefined?!1:arguments[1];s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.key=e,this.checkParent=n}return i(t,e),o(t,[{key:"get",value:function(t){return t.hasHandler(this.key,this.checkParent)?t.get(this.key):null}}],[{key:"of",value:function(n){var r=arguments[1]===undefined?!1:arguments[1];return new t(n,r)}}]),t}(c);e.Optional=d;var v=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.key=e}return i(t,e),o(t,[{key:"get",value:function(t){return t.parent?t.parent.get(this.key):null}}],[{key:"of",value:function(n){return new t(n)}}]),t}(c);e.Parent=v;var m=function(){function e(){s(this,e)}return o(e,[{key:"invoke",value:function(t,n){throw new Error("A custom Activator must implement invoke(fn, args).")}}]),e}();e.InstanceActivator=m;var g=function(e){function t(){s(this,t),e!=null&&e.apply(this,arguments)}return i(t,e),o(t,[{key:"invoke",value:function(t,n){return Reflect.construct(t,n)}}]),t}(m);e.ClassActivator=g;var y=function(e){function t(){s(this,t),e!=null&&e.apply(this,arguments)}return i(t,e),o(t,[{key:"invoke",value:function(t,n){return t.apply(undefined,n)}}]),t}(m);e.FactoryActivator=y}),define("aurelia-dependency-injection/container",["exports","core-js","aurelia-metadata","aurelia-logging","./metadata"],function(e,t,n,r,i){function c(){}var s=function(e){return e&&e.__esModule?e["default"]:e},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var a=s(t),f=Object.freeze([]),l=new i.ClassActivator;c.name||Object.defineProperty(Function.prototype,"name",{get:function(){var t=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:t}),t}});var h=function(){function e(t){o(this,e),this.constructionInfo=t||new Map,this.entries=new Map,this.root=this}return u(e,[{key:"addParameterInfoLocator",value:function(t){if(this.locateParameterInfoElsewhere===undefined){this.locateParameterInfoElsewhere=t;return}var n=this.locateParameterInfoElsewhere;this.locateParameterInfoElsewhere=function(e){return n(e)||t(e)}}},{key:"registerInstance",value:function(t,n){this.registerHandler(t,function(e){return n})}},{key:"registerTransient",value:function(t,n){n=n||t,this.registerHandler(t,function(e){return e.invoke(n)})}},{key:"registerSingleton",value:function(t,n){var r=null;n=n||t,this.registerHandler(t,function(e){return r||(r=e.invoke(n))})}},{key:"autoRegister",value:function(t,r){var s;if(t===null||t===undefined)throw new Error("fn cannot be null or undefined.");s=n.Metadata.on(t).first(i.Registration,!0),s?s.register(this,r||t,t):this.registerSingleton(r||t,t)}},{key:"autoRegisterAll",value:function(t){var n=t.length;while(n--)this.autoRegister(t[n])}},{key:"registerHandler",value:function(t,n){this.getOrCreateEntry(t).push(n)}},{key:"unregister",value:function(t){this.entries["delete"](t)}},{key:"get",value:function(n){var r;if(n===null||n===undefined)throw new Error("key cannot be null or undefined.");return n instanceof i.Resolver?n.get(this):n===e?this:(r=this.entries.get(n),r!==undefined?r[0](this):this.parent?this.parent.get(n):(this.autoRegister(n),r=this.entries.get(n),r[0](this)))}},{key:"getAll",value:function(t){var n=this,r;if(t===null||t===undefined)throw new Error("key cannot be null or undefined.");return r=this.entries.get(t),r!==undefined?r.map(function(e){return e(n)}):this.parent?this.parent.getAll(t):[]}},{key:"hasHandler",value:function(t){var n=arguments[1]===undefined?!1:arguments[1];if(t===null||t===undefined)throw new Error("key cannot be null or undefined.");return this.entries.has(t)||n&&this.parent&&this.parent.hasHandler(t,n)}},{key:"createChild",value:function(){var n=new e(this.constructionInfo);return n.parent=this,n.root=this.root,n.locateParameterInfoElsewhere=this.locateParameterInfoElsewhere,n}},{key:"invoke",value:function(t){try{var n=this.getOrCreateConstructionInfo(t),i=n.keys,s=new Array(i.length),o,u;for(o=0,u=i.length;o<u;++o)s[o]=this.get(i[o]);return n.activator.invoke(t,s)}catch(a){throw r.AggregateError("Error instantiating "+t.name+".",a,!0)}}},{key:"getOrCreateEntry",value:function(t){var n;if(t===null||t===undefined)throw new Error("key cannot be null or undefined.");return n=this.entries.get(t),n===undefined&&(n=[],this.entries.set(t,n)),n}},{key:"getOrCreateConstructionInfo",value:function(t){var n=this.constructionInfo.get(t);return n===undefined&&(n=this.createConstructionInfo(t),this.constructionInfo.set(t,n)),n}},{key:"createConstructionInfo",value:function(t){var r={activator:n.Metadata.on(t).first(i.InstanceActivator)||l};return t.inject!==undefined?(typeof t.inject=="function"?r.keys=t.inject():r.keys=t.inject,r):(this.locateParameterInfoElsewhere!==undefined?r.keys=this.locateParameterInfoElsewhere(t)||f:r.keys=f,r)}}]),e}();e.Container=h}),define("aurelia-dependency-injection/index",["exports","aurelia-metadata","./metadata","./container"],function(e,t,n,r){function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){e.inject=t}}function s(e){return function(r){t.Metadata.on(r).add(new n.TransientRegistration(e))}}function o(e){var r=arguments[1]===undefined?!1:arguments[1];return function(i){t.Metadata.on(i).add(new n.SingletonRegistration(e,r))}}function u(e){t.Metadata.on(e).add(new n.FactoryActivator)}Object.defineProperty(e,"__esModule",{value:!0}),e.inject=i,e.transient=s,e.singleton=o,e.factory=u,Object.defineProperty(e,"Registration",{enumerable:!0,get:function(){return n.Registration}}),Object.defineProperty(e,"TransientRegistration",{enumerable:!0,get:function(){return n.TransientRegistration}}),Object.defineProperty(e,"SingletonRegistration",{enumerable:!0,get:function(){return n.SingletonRegistration}}),Object.defineProperty(e,"Resolver",{enumerable:!0,get:function(){return n.Resolver}}),Object.defineProperty(e,"Lazy",{enumerable:!0,get:function(){return n.Lazy}}),Object.defineProperty(e,"All",{enumerable:!0,get:function(){return n.All}}),Object.defineProperty(e,"Optional",{enumerable:!0,get:function(){return n.Optional}}),Object.defineProperty(e,"Parent",{enumerable:!0,get:function(){return n.Parent}}),Object.defineProperty(e,"InstanceActivator",{enumerable:!0,get:function(){return n.InstanceActivator}}),Object.defineProperty(e,"FactoryActivator",{enumerable:!0,get:function(){return n.FactoryActivator}}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return r.Container}}),t.Decorators.configure.parameterizedDecorator("inject",i),t.Decorators.configure.parameterizedDecorator("transient",s),t.Decorators.configure.parameterizedDecorator("singleton",o),t.Decorators.configure.parameterizedDecorator("factory",u)}),define("aurelia-dependency-injection",["aurelia-dependency-injection/index"],function(e){return e}),define("aurelia-framework/plugins",["exports","core-js","aurelia-logging","aurelia-metadata"],function(e,t,n,r){function f(e,t,n){return a.debug("Loading plugin "+n.moduleId+"."),e.currentPluginId=n.moduleId,t.loadModule(n.moduleId).then(function(t){if("install"in t){var r=t.install(e,n.config||{});if(r)return r.then(function(){e.currentPluginId=null,a.debug("Installed plugin "+n.moduleId+".")});a.debug("Installed plugin "+n.moduleId+".")}else a.debug("Loaded plugin "+n.moduleId+".");e.currentPluginId=null})}var i=function(e){return e&&e.__esModule?e["default"]:e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=i(t),a=n.getLogger("aurelia"),l=function(){function e(t){s(this,e),this.aurelia=t,this.info=[],this.processed=!1}return o(e,[{key:"plugin",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var n={moduleId:e,config:t||{}};return this.processed?f(this.aurelia,this.aurelia.loader,n):this.info.push(n),this})},{key:"es5",value:function(){return Function.prototype.computed=function(e){for(var t in e)e.hasOwnProperty(t)&&Object.defineProperty(this.prototype,t,{get:e[t],enumerable:!0})},this}},{key:"_process",value:function(){var t=this,n=this.aurelia,r=n.loader,i=this.info,s;if(this.processed)return;var o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return(s=i.shift())?f(n,r,s).then(o):(t.processed=!0,Promise.resolve())});return o()}}]),e}();e.Plugins=l}),define("aurelia-binding/value-converter",["exports","core-js","aurelia-metadata"],function(e,t,n){function f(e){return e.charAt(0).toLowerCase()+e.slice(1)}var r=function(e){return e&&e.__esModule?e["default"]:e},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function c(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:c(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},u=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(t),l=function(e){function t(e){i(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.name=e}return u(t,e),s(t,[{key:"analyze",value:function(t,n){this.instance=t.get(n)}},{key:"register",value:function(t,n){t.registerValueConverter(n||this.name,this.instance)}},{key:"load",value:function(t,n){return Promise.resolve(this)}}],[{key:"convention",value:function(n){if(n.endsWith("ValueConverter"))return new t(f(n.substring(0,n.length-14)))}}]),t}(n.ResourceType);e.ValueConverterResource=l}),define("aurelia-binding/event-manager",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e),this.delegatedEvents={}}return n(e,[{key:"ensureDelegatedEvent",value:function(t){if(this.delegatedEvents[t])return;this.delegatedEvents[t]=!0,document.addEventListener(t,this.handleDelegatedEvent.bind(this),!1)}},{key:"handleCallbackResult",value:function(t){}},{key:"handleDelegatedEvent",value:function(t){t=t||window.event;var n=t.target||t.srcElement,r;while(n&&!r)n.delegatedEvents&&(r=n.delegatedEvents[t.type]),r||(n=n.parentNode);r&&this.handleCallbackResult(r(t))}},{key:"createDirectEventCallback",value:function(t){var n=this;return function(e){n.handleCallbackResult(t(e))}}},{key:"subscribeToDelegatedEvent",value:function(t,n,r){var i=t.delegatedEvents||(t.delegatedEvents={});return this.ensureDelegatedEvent(n),i[n]=r,function(){i[n]=null}}},{key:"subscribeToDirectEvent",value:function(t,n,r){var i=this.createDirectEventCallback(r);return t.addEventListener(n,i,!1),function(){t.removeEventListener(n,i)}}},{key:"subscribe",value:function(t,n,r,i){return i?this.subscribeToDirectEvent(t,n,r):this.subscribeToDelegatedEvent(t,n,r)}}]),e}(),i=function(){function e(){t(this,e),this.elementHandlerLookup={},this.eventStrategyLookup={},this.registerElementConfig({tagName:"input",properties:{value:["change","input"],checked:["change","input"]}}),this.registerElementConfig({tagName:"textarea",properties:{value:["change","input"]}}),this.registerElementConfig({tagName:"select",properties:{value:["change"]}}),this.defaultEventStrategy=new r}return n(e,[{key:"registerElementConfig",value:function(t){var n=t.tagName.toLowerCase(),r=t.properties,i;this.elementHandlerLookup[n]={};for(i in r)r.hasOwnProperty(i)&&this.registerElementPropertyConfig(n,i,r[i])}},{key:"registerElementPropertyConfig",value:function(t,n,r){this.elementHandlerLookup[t][n]={subscribe:function(t,n){return r.forEach(function(e){t.addEventListener(e,n,!1)}),function(){r.forEach(function(e){t.removeEventListener(e,n)})}}}}},{key:"registerElementHandler",value:function(t,n){this.elementHandlerLookup[t.toLowerCase()]=n}},{key:"registerEventStrategy",value:function(t,n){this.eventStrategyLookup[t]=n}},{key:"getElementHandler",value:function(t,n){var r,i=this.elementHandlerLookup;if(t.tagName){r=t.tagName.toLowerCase();if(i[r]&&i[r][n])return i[r][n];if(n==="textContent"||n==="innerHTML")return i.input.value}return null}},{key:"addEventListener",value:function(t,n,r,i){return(this.eventStrategyLookup[n]||this.defaultEventStrategy).subscribe(t,n,r,i)}}]),e}();e.EventManager=i}),define("aurelia-binding/array-change-records",["exports"],function(e){function t(e){return+e===e>>>0}function n(e){return+e}function r(e,t,n){return{index:e,removed:t,addedCount:n}}function a(){}function l(e,t,n,r,i,s){return f.calcSplices(e,t,n,r,i,s)}function c(e,t,n,r){return t<n||r<e?-1:t==n||r==e?0:e<n?t<r?t-n:r-n:r<t?r-e:t-e}function h(e,t,n,i){var s=r(t,n,i),o=!1,u=0;for(var a=0;a<e.length;a++){var f=e[a];f.index+=u;if(o)continue;var l=c(s.index,s.index+s.removed.length,f.index,f.index+f.addedCount);if(l>=0){e.splice(a,1),a--,u-=f.addedCount-f.removed.length,s.addedCount+=f.addedCount-l;var h=s.removed.length+f.removed.length-l;if(!s.addedCount&&!h)o=!0;else{var n=f.removed;if(s.index<f.index){var p=s.removed.slice(0,f.index-s.index);Array.prototype.push.apply(p,n),n=p}if(s.index+s.removed.length>f.index+f.addedCount){var d=s.removed.slice(f.index+f.addedCount-s.index);Array.prototype.push.apply(n,d)}s.removed=n,f.index<s.index&&(s.index=f.index)}}else if(s.index<f.index){o=!0,e.splice(a,0,s),a++;var v=s.addedCount-s.removed.length;f.index+=v,u+=v}}o||e.push(s)}function p(e,r){var i=[];for(var s=0;s<r.length;s++){var o=r[s];switch(o.type){case"splice":h(i,o.index,o.removed.slice(),o.addedCount);break;case"add":case"update":case"delete":if(!t(o.name))continue;var u=n(o.name);if(u<0)continue;h(i,u,[o.oldValue],o.type==="delete"?0:1);break;default:console.error("Unexpected record type: "+JSON.stringify(o))}}return i}function d(e,t){var n=[];return p(e,t).forEach(function(t){if(t.addedCount==1&&t.removed.length==1){t.removed[0]!==e[t.index]&&n.push(t);return}n=n.concat(l(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length))}),n}Object.defineProperty(e,"__esModule",{value:!0}),e.calcSplices=l,e.projectArraySplices=d;var i=0,s=1,o=2,u=3;a.prototype={calcEditDistances:function(t,n,r,i,s,o){var u=o-s+1,a=r-n+1,f=new Array(u),l,c,h,p;for(l=0;l<u;++l)f[l]=new Array(a),f[l][0]=l;for(c=0;c<a;++c)f[0][c]=c;for(l=1;l<u;++l)for(c=1;c<a;++c)this.equals(t[n+c-1],i[s+l-1])?f[l][c]=f[l-1][c-1]:(h=f[l-1][c]+1,p=f[l][c-1]+1,f[l][c]=h<p?h:p);return f},spliceOperationsFromEditDistances:function(t){var n=t.length-1,r=t[0].length-1,a=t[n][r],f=[];while(n>0||r>0){if(n==0){f.push(o),r--;continue}if(r==0){f.push(u),n--;continue}var l=t[n-1][r-1],c=t[n-1][r],h=t[n][r-1],p;c<h?p=c<l?c:l:p=h<l?h:l,p==l?(l==a?f.push(i):(f.push(s),a=l),n--,r--):p==c?(f.push(u),n--,a=c):(f.push(o),r--,a=h)}return f.reverse(),f},calcSplices:function(t,n,a,f,l,c){var h=0,p=0,d=Math.min(a-n,c-l);n==0&&l==0&&(h=this.sharedPrefix(t,f,d)),a==t.length&&c==f.length&&(p=this.sharedSuffix(t,f,d-h)),n+=h,l+=h,a-=p,c-=p;if(a-n==0&&c-l==0)return[];if(n==a){var v=r(n,[],0);while(l<c)v.removed.push(f[l++]);return[v]}if(l==c)return[r(n,[],a-n)];var m=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,n,a,f,l,c)),v=undefined,g=[],y=n,b=l;for(var w=0;w<m.length;++w)switch(m[w]){case i:v&&(g.push(v),v=undefined),y++,b++;break;case s:v||(v=r(y,[],0)),v.addedCount++,y++,v.removed.push(f[b]),b++;break;case o:v||(v=r(y,[],0)),v.addedCount++,y++;break;case u:v||(v=r(y,[],0)),v.removed.push(f[b]),b++}return v&&g.push(v),g},sharedPrefix:function(t,n,r){for(var i=0;i<r;++i)if(!this.equals(t[i],n[i]))return i;return r},sharedSuffix:function(t,n,r){var i=t.length,s=n.length,o=0;while(o<r&&this.equals(t[--i],n[--s]))o++;return o},calculateSplices:function(t,n){return this.calcSplices(t,0,t.length,n,0,n.length)},equals:function(t,n){return t===n}};var f=new a}),define("aurelia-binding/map-change-records",["exports"],function(e){function t(e,t,n,r){return{type:e,object:t,key:n,oldValue:r}}function n(e){var n=[],r=!0,i=!1,s=undefined;try{for(var o=e.keys()[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0){var a=u.value;n.push(t("added",e,a))}}catch(f){i=!0,s=f}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.getChangeRecords=n}),define("aurelia-binding/collection-observation",["exports","./array-change-records","./map-change-records"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function e(t,n){r(this,e),this.taskQueue=t,this.queued=!1,this.callbacks=[],this.changeRecords=[],this.oldCollection=null,this.collection=n,this.lengthPropertyName=n instanceof Map?"size":"length"}return i(e,[{key:"subscribe",value:function(t){var n=this.callbacks;return n.push(t),function(){n.splice(n.indexOf(t),1)}}},{key:"addChangeRecord",value:function(t){if(this.callbacks.length===0)return;this.changeRecords.push(t),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},{key:"reset",value:function(t){if(!this.callbacks.length)return;this.oldCollection=t,this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},{key:"getObserver",value:function(t){if(t==this.lengthPropertyName)return this.lengthObserver||(this.lengthObserver=new o(this.collection,this.lengthPropertyName));throw new Error("You cannot observe the "+t+" property of an array.")}},{key:"call",value:function(){var r=this.callbacks,i=r.length,s=this.changeRecords,o=this.oldCollection,u;this.queued=!1,this.changeRecords=[],this.oldCollection=null;if(i){o?this.collection instanceof Map?u=n.getChangeRecords(o):u=t.calcSplices(this.collection,0,this.collection.length,o,0,o.length):this.collection instanceof Map?u=s:u=t.projectArraySplices(this.collection,s);while(i--)r[i](u)}this.lengthObserver&&this.lengthObserver(this.array.length)}}]),e}();e.ModifyCollectionObserver=s;var o=function(){function e(t){r(this,e),this.collection=t,this.callbacks=[],this.lengthPropertyName=t instanceof Map?"size":"length",this.currentValue=t[this.lengthPropertyName]}return i(e,[{key:"getValue",value:function(){return this.collection[this.lengthPropertyName]}},{key:"setValue",value:function(t){this.collection[this.lengthPropertyName]=t}},{key:"subscribe",value:function(t){var n=this.callbacks;return n.push(t),function(){n.splice(n.indexOf(t),1)}}},{key:"call",value:function(t){var n=this.callbacks,r=n.length,i=this.currentValue;while(r--)n[r](t,i);this.currentValue=t}}]),e}();e.CollectionLengthObserver=o}),define("aurelia-binding/array-observation",["exports","./array-change-records","./collection-observation"],function(e,t,n){function f(e,t){return a?new c(t):l.create(e,t)}var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function h(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:h(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},o=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0}),e.getArrayObserver=f;var u=Array.prototype,a=function(){function n(e){t=e}if(typeof Array.observe!="function")return!1;var t=[],r=[];return Array.observe(r,n),r.push(1,2),r.length=0,Object.deliverChangeRecords(n),t.length!==2?!1:t[0].type!="splice"||t[1].type!="splice"?!1:(Array.unobserve(r,n),!0)}(),l=function(e){function t(e,n){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n)}return o(t,e),i(t,null,[{key:"create",value:function(n,r){var i=new t(n,r);return r.pop=function(){var e=u.pop.apply(r,arguments);return i.addChangeRecord({type:"delete",object:r,name:r.length,oldValue:e}),e},r.push=function(){var e=u.push.apply(r,arguments);return i.addChangeRecord({type:"splice",object:r,index:r.length-arguments.length,removed:[],addedCount:arguments.length}),e},r.reverse=function(){var e=r.slice(),t=u.reverse.apply(r,arguments);return i.reset(e),t},r.shift=function(){var e=u.shift.apply(r,arguments);return i.addChangeRecord({type:"delete",object:r,name:0,oldValue:e}),e},r.sort=function(){var e=r.slice(),t=u.sort.apply(r,arguments);return i.reset(e),t},r.splice=function(){var e=u.splice.apply(r,arguments);return i.addChangeRecord({type:"splice",object:r,index:arguments[0],removed:e,addedCount:arguments.length>2?arguments.length-2:0}),e},r.unshift=function(){var e=u.unshift.apply(r,arguments);return i.addChangeRecord({type:"splice",object:r,index:0,removed:[],addedCount:arguments.length}),e},i}}]),t}(n.ModifyCollectionObserver),c=function(){function e(t){r(this,e),this.array=t,this.callbacks=[],this.observing=!1}return i(e,[{key:"subscribe",value:function(t){var n=this,r=this.callbacks;return r.push(t),this.observing||(this.observing=!0,Array.observe(this.array,function(e){return n.handleChanges(e)})),function(){r.splice(r.indexOf(t),1)}}},{key:"getObserver",value:function(t){if(t=="length")return this.lengthObserver||(this.lengthObserver=new n.CollectionLengthObserver(this.array));throw new Error("You cannot observe the "+t+" property of an array.")}},{key:"handleChanges",value:function(n){var r=this.callbacks,i=r.length,s;if(!i)return;s=t.projectArraySplices(this.array,n);while(i--)r[i](s);this.lengthObserver&&this.lengthObserver.call(this.array.length)}}]),e}()}),define("aurelia-binding/map-observation",["exports","core-js","./map-change-records","./collection-observation"],function(e,t,n,r){function c(e,t){return h.create(e,t)}var i=function(e){return e&&e.__esModule?e["default"]:e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function p(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:p(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},a=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0}),e.getMapObserver=c;var f=i(t),l=Map.prototype,h=function(e){function t(e,n){s(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n)}return a(t,e),o(t,null,[{key:"create",value:function(n,r){var i=new t(n,r);return r.set=function(){var e=r.get(arguments[0]),t=e?"update":"add",n=l.set.apply(r,arguments);return i.addChangeRecord({type:t,object:r,key:arguments[0],oldValue:e}),n},r["delete"]=function(){var e=r.get(arguments[0]),t=l["delete"].apply(r,arguments);return i.addChangeRecord({type:"delete",object:r,key:arguments[0],oldValue:e}),t},r.clear=function(){var e=l.clear.apply(r,arguments);return i.addChangeRecord({type:"clear",object:r}),e},i}}]),t}(r.ModifyCollectionObserver)}),define("aurelia-binding/dirty-checking",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e),this.tracked=[],this.checkDelay=120}return n(e,[{key:"addProperty",value:function(t){var n=this.tracked;n.push(t),n.length===1&&this.scheduleDirtyCheck()}},{key:"removeProperty",value:function(t){var n=this.tracked;n.splice(n.indexOf(t),1)}},{key:"scheduleDirtyCheck",value:function(){var t=this;setTimeout(function(){return t.check()},this.checkDelay)}},{key:"check",value:function(){var t=this.tracked,n=t.length;while(n--){var r=t[n];r.isDirty()&&r.call()}t.length&&this.scheduleDirtyCheck()}}]),e}();e.DirtyChecker=r;var i=function(){function e(n,r,i){t(this,e),this.dirtyChecker=n,this.obj=r,this.propertyName=i,this.callbacks=[],this.isSVG=r instanceof SVGElement}return n(e,[{key:"getValue",value:function(){return this.obj[this.propertyName]}},{key:"setValue",value:function(t){this.isSVG?this.obj.setAttributeNS(null,this.propertyName,t):this.obj[this.propertyName]=t}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.getValue();while(n--)t[n](i,r);this.oldValue=i}},{key:"isDirty",value:function(){return this.oldValue!==this.getValue()}},{key:"beginTracking",value:function(){this.tracking=!0,this.oldValue=this.newValue=this.getValue(),this.dirtyChecker.addProperty(this)}},{key:"endTracking",value:function(){this.tracking=!1,this.dirtyChecker.removeProperty(this)}},{key:"subscribe",value:function(t){var n=this.callbacks,r=this;return n.push(t),this.tracking||this.beginTracking(),function(){n.splice(n.indexOf(t),1),n.length===0&&r.endTracking()}}}]),e}();e.DirtyCheckProperty=i}),define("aurelia-binding/property-observation",["exports","core-js"],function(e,t){var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=n(t),o=function(){function e(t,n,i){r(this,e),this.taskQueue=t,this.obj=n,this.propertyName=i,this.callbacks=[],this.queued=!1,this.observing=!1}return i(e,[{key:"getValue",value:function(){return this.obj[this.propertyName]}},{key:"setValue",value:function(t){this.obj[this.propertyName]=t}},{key:"getterValue",value:function(){return this.currentValue}},{key:"setterValue",value:function(t){var n=this.currentValue;n!=t&&(this.queued||(this.oldValue=n,this.queued=!0,this.taskQueue.queueMicroTask(this)),this.currentValue=t)}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.currentValue;this.queued=!1;while(n--)t[n](i,r)}},{key:"subscribe",value:function(t){var n=this.callbacks;return n.push(t),this.observing||this.convertProperty(),function(){n.splice(n.indexOf(t),1)}}},{key:"convertProperty",value:function(){this.observing=!0,this.currentValue=this.obj[this.propertyName],this.setValue=this.setterValue,this.getValue=this.getterValue;try{Object.defineProperty(this.obj,this.propertyName,{configurable:!0,enumerable:!0,get:this.getValue.bind(this),set:this.setValue.bind(this)})}catch(t){}}}]),e}();e.SetterObserver=o;var u=function(){function e(t,n){r(this,e),this.obj=t,this.observers={},this.observerLocator=n}return i(e,[{key:"subscribe",value:function(t,n){var r=this,i=t.callbacks;i.push(n);if(!this.observing){this.observing=!0;try{Object.observe(this.obj,function(e){return r.handleChanges(e)},["update","add"])}catch(s){}}return function(){i.splice(i.indexOf(n),1)}}},{key:"getObserver",value:function(t,n){var r=this.observers[t];return r||(n?r=this.observers[t]=new a(this,this.obj,t):r=this.observers[t]=new f(this,this.obj,t)),r}},{key:"handleChanges",value:function(t){var n={},r=this.observers,i=t.length;while(i--){var s=t[i],o=s.name;if(!(o in n)){var u=r[o];n[o]=!0,u&&u.trigger(s.object[o],s.oldValue)}}}}]),e}();e.OoObjectObserver=u;var a=function(){function e(t,n,i){r(this,e),this.owner=t,this.obj=n,this.propertyName=i,this.callbacks=[]}return i(e,[{key:"getValue",value:function(){return this.obj[this.propertyName]}},{key:"setValue",value:function(t){this.obj[this.propertyName]=t}},{key:"trigger",value:function(t,n){var r=this.callbacks,i=r.length;while(i--)r[i](t,n)}},{key:"subscribe",value:function(t){return this.owner.subscribe(this,t)}}]),e}();e.OoPropertyObserver=a;var f=function(){function e(t,n,i){r(this,e),this.owner=t,this.obj=n,this.propertyName=i,this.callbackMap=new Map,this.callbacks=[]}return i(e,[{key:"getValue",value:function(){return this.actual?this.actual.getValue():this.obj[this.propertyName]}},{key:"setValue",value:function(t){if(this.actual){this.actual.setValue(t);return}this.obj[this.propertyName]=t,this.trigger(t,undefined)}},{key:"trigger",value:function(t,n){var r;this.subscription&&this.subscription(),this.getObserver();var i=!0,s=!1,o=undefined;try{for(var u=this.callbackMap.keys()[Symbol.iterator](),a;!(i=(a=u.next()).done);i=!0)r=a.value,r(t,n)}catch(f){s=!0,o=f}finally{try{!i&&u["return"]&&u["return"]()}finally{if(s)throw o}}}},{key:"getObserver",value:function(){var t,n;if(!Object.getOwnPropertyDescriptor(this.obj,this.propertyName))return;n=this.owner.observerLocator,delete this.owner.observers[this.propertyName],delete n.getObserversLookup(this.obj,n)[this.propertyName],this.actual=n.getObserver(this.obj,this.propertyName);var r=!0,i=!1,s=undefined;try{for(var o=this.callbackMap.keys()[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0)t=u.value,this.callbackMap.set(t,this.actual.subscribe(t))}catch(a){i=!0,s=a}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}}},{key:"subscribe",value:function(t){var n=this;return this.actual||this.getObserver(),this.actual?this.actual.subscribe(t):(this.subscription||(this.subscription=this.owner.subscribe(this)),this.callbackMap.set(t,null),function(){var e=n.callbackMap.get(t);e&&e(),n.callbackMap["delete"](t)})}}]),e}();e.UndefinedPropertyObserver=f}),define("aurelia-binding/element-observation",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i){t(this,e),this.element=n,this.propertyName=r,this.attributeName=i}return n(e,[{key:"getValue",value:function(){return this.element.getAttributeNS("http://www.w3.org/1999/xlink",this.attributeName)}},{key:"setValue",value:function(t){return this.element.setAttributeNS("http://www.w3.org/1999/xlink",this.attributeName,t)}},{key:"subscribe",value:function(t){throw new Error("Observation of an Element's \""+this.propertyName+'" property is not supported.')}}]),e}();e.XLinkAttributeObserver=r;var i=function(){function e(n,r){t(this,e),this.element=n,this.propertyName=r}return n(e,[{key:"getValue",value:function(){return this.element.getAttribute(this.propertyName)}},{key:"setValue",value:function(t){return this.element.setAttribute(this.propertyName,t)}},{key:"subscribe",value:function(t){throw new Error("Observation of an Element's \""+this.propertyName+'" property is not supported.')}}]),e}();e.DataAttributeObserver=i;var s=function(){function e(n,r){t(this,e),this.element=n,this.propertyName=r}return n(e,[{key:"getValue",value:function(){return this.element.style.cssText}},{key:"setValue",value:function(t){t instanceof Object&&(t=this.flattenCss(t)),this.element.style.cssText=t}},{key:"subscribe",value:function(t){throw new Error("Observation of an Element's \""+this.propertyName+'" property is not supported.')}},{key:"flattenCss",value:function(t){var n="";for(var r in t)t.hasOwnProperty(r)&&(n+=r+": "+t[r]+"; ");return n}}]),e}();e.StyleObserver=s;var o=function(){function e(n,r,i){t(this,e),this.element=n,this.propertyName=r,this.handler=i,this.callbacks=[]}return n(e,[{key:"getValue",value:function(){return this.element[this.propertyName]}},{key:"setValue",value:function(t){this.element[this.propertyName]=t,this.call()}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.getValue();while(n--)t[n](i,r);this.oldValue=i}},{key:"subscribe",value:function(t){var n=this;return this.disposeHandler||(this.oldValue=this.getValue(),this.disposeHandler=this.handler.subscribe(this.element,this.call.bind(this))),this.callbacks.push(t),this.unsubscribe.bind(this,t)}},{key:"unsubscribe",value:function(t){var n=this.callbacks;n.splice(n.indexOf(t),1),n.length===0&&(this.disposeHandler(),this.disposeHandler=null)}}]),e}();e.ValueAttributeObserver=o;var u=function(){function e(n,r,i){t(this,e),this.element=n,this.handler=r,this.observerLocator=i}return n(e,[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){var n=this;if(t!==null&&t!==undefined&&this.element.multiple&&!Array.isArray(t))throw new Error("Only null or Array instances can be bound to a multi-select.");if(this.value===t)return;this.arraySubscription&&(this.arraySubscription(),this.arraySubscription=null),Array.isArray(t)&&(this.arraySubscription=this.observerLocator.getArrayObserver(t).subscribe(this.synchronizeOptions.bind(this))),this.value=t,this.synchronizeOptions(),this.element.options.length>0&&!this.initialSync&&(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask({call:function(){return n.synchronizeOptions()}}))}},{key:"synchronizeOptions",value:function(){var t=this.value,n,r,i,s,o,u;t===null||t===undefined?o=!0:Array.isArray(t)&&(u=!0),r=this.element.options,n=r.length;while(n--){i=r.item(n);if(o){i.selected=!1;continue}s=i.hasOwnProperty("model")?i.model:i.value;if(u){i.selected=t.indexOf(s)!==-1;continue}i.selected=t===s}}},{key:"synchronizeValue",value:function(){var t=this.element.options,n,r,i,s=0,o=[];for(r=0,i=t.length;r<i;r++){n=t.item(r);if(!n.selected)continue;o[s]=n.hasOwnProperty("model")?n.model:n.value,s++}this.element.multiple||(s===0?o=null:o=o[0]),this.oldValue=this.value,this.value=o,this.call()}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.value;while(n--)t[n](i,r)}},{key:"subscribe",value:function(t){return this.callbacks||(this.callbacks=[],this.disposeHandler=this.handler.subscribe(this.element,this.synchronizeValue.bind(this,!1))),this.callbacks.push(t),this.unsubscribe.bind(this,t)}},{key:"unsubscribe",value:function(t){var n=this.callbacks;n.splice(n.indexOf(t),1),n.length===0&&(this.disposeHandler(),this.disposeHandler=null,this.callbacks=null)}},{key:"bind",value:function(){this.domObserver=new MutationObserver(this.synchronizeOptions.bind(this)),this.domObserver.observe(this.element,{childList:!0,subtree:!0})}},{key:"unbind",value:function(){this.domObserver.disconnect(),this.domObserver=null,this.arraySubscription&&(this.arraySubscription(),this.arraySubscription=null)}}]),e}();e.SelectValueObserver=u;var a=function(){function e(n,r,i){t(this,e),this.element=n,this.handler=r,this.observerLocator=i}return n(e,[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){var n=this;if(this.value===t)return;this.arraySubscription&&(this.arraySubscription(),this.arraySubscription=null),this.element.type==="checkbox"&&Array.isArray(t)&&(this.arraySubscription=this.observerLocator.getArrayObserver(t).subscribe(this.synchronizeElement.bind(this))),this.value=t,this.synchronizeElement(),!this.element.hasOwnProperty("model")&&!this.initialSync&&(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask({call:function(){return n.synchronizeElement()}}))}},{key:"synchronizeElement",value:function(){var t=this.value,n=this.element,r=n.hasOwnProperty("model")?n.model:n.value,i=n.type==="radio";n.checked=i&&t===r||!i&&t===!0||!i&&Array.isArray(t)&&t.indexOf(r)!==-1}},{key:"synchronizeValue",value:function(){var t=this.value,n=this.element,r=n.hasOwnProperty("model")?n.model:n.value,i;if(n.type==="checkbox"){if(Array.isArray(t)){i=t.indexOf(r),n.checked&&i===-1?t.push(r):!n.checked&&i!==-1&&t.splice(i,1);return}t=n.checked}else{if(!n.checked)return;t=r}this.oldValue=this.value,this.value=t,this.call()}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.value;while(n--)t[n](i,r)}},{key:"subscribe",value:function(t){return this.callbacks||(this.callbacks=[],this.disposeHandler=this.handler.subscribe(this.element,this.synchronizeValue.bind(this,!1))),this.callbacks.push(t),this.unsubscribe.bind(this,t)}},{key:"unsubscribe",value:function(t){var n=this.callbacks;n.splice(n.indexOf(t),1),n.length===0&&(this.disposeHandler(),this.disposeHandler=null,this.callbacks=null)}},{key:"unbind",value:function(){this.arraySubscription&&(this.arraySubscription(),this.arraySubscription=null)}}]),e}();e.CheckedObserver=a}),define("aurelia-binding/computed-observation",["exports"],function(e){function i(e){return e&&e.get&&!e.set&&e.get.dependencies&&e.get.dependencies.length}function s(e,t,n){var r=Object.getOwnPropertyDescriptor(e.prototype,t);if(r.set)throw new Error("The property cannot have a setter function.");r.get.dependencies=n}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.hasDeclaredDependencies=i,e.declarePropertyDependencies=s;var r=function(){function e(n,r,i,s){t(this,e),this.obj=n,this.propertyName=r,this.descriptor=i,this.observerLocator=s,this.callbacks=[]}return n(e,[{key:"getValue",value:function(){return this.obj[this.propertyName]}},{key:"setValue",value:function(t){throw new Error("Computed properties cannot be assigned.")}},{key:"trigger",value:function(t,n){var r=this.callbacks,i=r.length;while(i--)r[i](t,n)}},{key:"evaluate",value:function(){var t=this.getValue();if(this.oldValue===t)return;this.trigger(t,this.oldValue),this.oldValue=t}},{key:"subscribe",value:function(t){var n=this,r,i,s;this.callbacks.push(t);if(this.oldValue===undefined){this.oldValue=this.getValue(),this.subscriptions=[],r=this.descriptor.get.dependencies;for(i=0,s=r.length;i<s;i++)this.subscriptions.push(this.observerLocator.getObserver(this.obj,r[i]).subscribe(function(){return n.evaluate()}))}return function(){n.callbacks.splice(n.callbacks.indexOf(t),1);if(n.callbacks.length>0)return;while(n.subscriptions.length)n.subscriptions.pop()();n.oldValue=undefined}}}]),e}();e.ComputedPropertyObserver=r}),define("aurelia-binding/observer-locator",["exports","aurelia-task-queue","./array-observation","./map-observation","./event-manager","./dirty-checking","./property-observation","./element-observation","aurelia-dependency-injection","./computed-observation"],function(e,t,n,r,i,s,o,u,a,f){function p(e){var t={};try{Object.defineProperty(e,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:t})}catch(n){}return t}function d(e,t){var n=new o.OoObjectObserver(e,t);try{Object.defineProperty(e,"__observer__",{enumerable:!1,configurable:!1,writable:!1,value:n})}catch(r){}return n}var l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),typeof Object.getPropertyDescriptor!="function"&&(Object.getPropertyDescriptor=function(e,t){var n=Object.getOwnPropertyDescriptor(e,t),r=Object.getPrototypeOf(e);while(typeof n=="undefined"&&r!==null)n=Object.getOwnPropertyDescriptor(r,t),r=Object.getPrototypeOf(r);return n});var h=function(){function n(e){t=e}if(typeof Object.observe!="function")return!1;var t=[],r={};return Object.observe(r,n),r.id=1,r.id=2,delete r.id,Object.deliverChangeRecords(n),t.length!==3?!1:t[0].type!="add"||t[1].type!="update"||t[2].type!="delete"?!1:(Object.unobserve(r,n),!0)}(),v=function(){function e(t,n,r,i){l(this,e),this.taskQueue=t,this.eventManager=n,this.dirtyChecker=r,this.observationAdapters=i}return c(e,[{key:"getObserversLookup",value:function(t){return t.__observers__||p(t)}},{key:"getObserver",value:function(t,n){var r=this.getObserversLookup(t);return n in r?r[n]:r[n]=this.createPropertyObserver(t,n)}},{key:"getObservationAdapter",value:function(t,n,r){var i,s,o;for(i=0,s=this.observationAdapters.length;i<s;i++){o=this.observationAdapters[i];if(o.handlesProperty(t,n,r))return o}return null}},{key:"createPropertyObserver",value:function(t,n){var r,i,a,l,c;if(t instanceof Element){a=this.eventManager.getElementHandler(t,n);if(n==="value"&&t.tagName.toLowerCase()==="select")return new u.SelectValueObserver(t,a,this);if(n==="checked"&&t.tagName.toLowerCase()==="input")return new u.CheckedObserver(t,a,this);if(a)return new u.ValueAttributeObserver(t,n,a);c=/^xlink:(.+)$/.exec(n);if(c)return new u.XLinkAttributeObserver(t,n,c[1]);if(/^\w+:|^data-|^aria-/.test(n)||t instanceof SVGElement)return new u.DataAttributeObserver(t,n);if(n==="style"||n==="css")return new u.StyleObserver(t,n)}return i=Object.getPropertyDescriptor(t,n),f.hasDeclaredDependencies(i)?new f.ComputedPropertyObserver(t,n,i,this):i&&(i.get||i.set)?(l=this.getObservationAdapter(t,n,i),l?l.getObserver(t,n,i):new s.DirtyCheckProperty(this.dirtyChecker,t,n)):h?(r=t.__observer__||d(t,this),r.getObserver(n,i)):t instanceof Array?(r=this.getArrayObserver(t),r.getObserver(n)):t instanceof Map?(r=this.getMapObserver(t),r.getObserver(n)):new o.SetterObserver(this.taskQueue,t,n)}},{key:"getArrayObserver",value:function(e){function t(t){return e.apply(this,arguments)}return n.getArrayObserver.toString=function(){return e.toString()},n.getArrayObserver}(function(e){return"__array_observer__"in e?e.__array_observer__:e.__array_observer__=n.getArrayObserver(this.taskQueue,e)})},{key:"getMapObserver",value:function(e){function t(t){return e.apply(this,arguments)}return r.getMapObserver.toString=function(){return e.toString()},r.getMapObserver}(function(e){return"__map_observer__"in e?e.__map_observer__:e.__map_observer__=r.getMapObserver(this.taskQueue,e)})}],[{key:"inject",value:function(){return[t.TaskQueue,i.EventManager,s.DirtyChecker,a.All.of(m)]}}]),e}();e.ObserverLocator=v;var m=function(){function e(){l(this,e)}return c(e,[{key:"handlesProperty",value:function(t,n,r){throw new Error("BindingAdapters must implement handlesProperty(object, propertyName).")}},{key:"getObserver",value:function(t,n,r){throw new Error("BindingAdapters must implement createObserver(object, propertyName).")}}]),e}();e.ObjectObservationAdapter=m}),define("aurelia-binding/binding-modes",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=1;e.ONE_WAY=t;var n=2;e.TWO_WAY=n;var r=3;e.ONE_TIME=r}),define("aurelia-binding/lexer",["exports"],function(e){function rt(e){return e>=a&&e<=p||e===nt}function it(e){return W<=e&&e<=Y||B<=e&&e<=F||e===z||e===m}function st(e){return W<=e&&e<=Y||B<=e&&e<=F||P<=e&&e<=H||e===z||e===m}function ot(e){return P<=e&&e<=H}function ut(e){return e===X||e===j}function at(e){return e===N||e===x}function ft(e){switch(e){case $:return f;case V:return c;case J:return h;case K:return a;case G:return l;default:return e}}function lt(e,t){if(!e)throw t||"Assertion failed"}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r){t(this,e),this.index=n,this.text=r}return n(e,[{key:"withOp",value:function(t){return this.opKey=t,this}},{key:"withGetterSetter",value:function(t){return this.key=t,this}},{key:"withValue",value:function(t){return this.value=t,this}},{key:"toString",value:function r(){return"Token("+this.text+")"}}]),e}();e.Token=r;var i=function(){function e(){t(this,e)}return n(e,[{key:"lex",value:function(t){var n=new s(t),r=[],i=n.scanToken();while(i)r.push(i),i=n.scanToken();return r}}]),e}();e.Lexer=i;var s=function(){function e(n){t(this,e),this.input=n,this.length=n.length,this.peek=0,this.index=-1,this.advance()}return n(e,[{key:"scanToken",value:function(){while(this.peek<=p){if(++this.index>=this.length)return this.peek=u,null;this.peek=this.input.charCodeAt(this.index)}if(it(this.peek))return this.scanIdentifier();if(ot(this.peek))return this.scanNumber(this.index);var t=this.index;switch(this.peek){case C:return this.advance(),ot(this.peek)?this.scanNumber(t):new r(t,".");case w:case E:case Z:case tt:case I:case R:case T:case L:case A:return this.scanCharacter(t,String.fromCharCode(this.peek));case b:case v:return this.scanString();case x:case N:case S:case k:case g:case U:case D:return this.scanOperator(t,String.fromCharCode(this.peek));case O:case _:case d:case M:return this.scanComplexOperator(t,M,String.fromCharCode(this.peek),"=");case y:return this.scanComplexOperator(t,y,"&","&");case et:return this.scanComplexOperator(t,et,"|","|");case nt:while(rt(this.peek))this.advance();return this.scanToken()}var n=String.fromCharCode(this.peek);return this.error("Unexpected character ["+n+"]"),null}},{key:"scanCharacter",value:function(t,n){return lt(this.peek===n.charCodeAt(0)),this.advance(),new r(t,n)}},{key:"scanOperator",value:function(t,n){return lt(this.peek===n.charCodeAt(0)),lt(o.indexOf(n)!==-1),this.advance(),(new r(t,n)).withOp(n)}},{key:"scanComplexOperator",value:function(t,n,i,s){lt(this.peek===i.charCodeAt(0)),this.advance();var u=i;return this.peek===n&&(this.advance(),u+=s),this.peek===n&&(this.advance(),u+=s),lt(o.indexOf(u)!=-1),(new r(t,u)).withOp(u)}},{key:"scanIdentifier",value:function(){lt(it(this.peek));var t=this.index;this.advance();while(st(this.peek))this.advance();var n=this.input.substring(t,this.index),i=new r(t,n);return o.indexOf(n)!==-1?i.withOp(n):i.withGetterSetter(n),i}},{key:"scanNumber",value:function(t){lt(ot(this.peek));var n=this.index===t;this.advance();for(;;){if(!ot(this.peek))if(this.peek===C)n=!1;else{if(!ut(this.peek))break;this.advance(),at(this.peek)&&this.advance(),ot(this.peek)||this.error("Invalid exponent",-1),n=!1}this.advance()}var i=this.input.substring(t,this.index),s=n?parseInt(i):parseFloat(i);return(new r(t,i)).withValue(s)}},{key:"scanString",value:function(){lt(this.peek===b||this.peek===v);var t=this.index,n=this.peek;this.advance();var i,s=this.index;while(this.peek!==n)if(this.peek===q){i===null&&(i=[]),i.push(this.input.substring(s,this.index)),this.advance();var o;if(this.peek===Q){var a=this.input.substring(this.index+1,this.index+5);/[A-Z0-9]{4}/.test(a)||this.error("Invalid unicode escape [\\u"+a+"]"),o=parseInt(a,16);for(var f=0;f<5;++f)this.advance()}else o=decodeURIComponent(this.peek),this.advance();i.push(String.fromCharCode(o)),s=this.index}else this.peek===u?this.error("Unterminated quote"):this.advance();var l=this.input.substring(s,this.index);this.advance();var c=this.input.substring(t,this.index),o=l;return i!=null&&(i.push(l),o=i.join("")),(new r(t,c)).withValue(o)}},{key:"advance",value:function(){++this.index>=this.length?this.peek=u:this.peek=this.input.charCodeAt(this.index)}},{key:"error",value:function(t){var n=arguments[1]===undefined?0:arguments[1],r=this.index+n;throw new Error("Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")}}]),e}();e.Scanner=s;var o=["undefined","null","true","false","+","-","*","/","%","^","=","==","===","!=","!==","<",">","<=",">=","&&","||","&","|","!","?"],u=0,a=9,f=10,l=11,c=12,h=13,p=32,d=33,v=34,m=36,g=37,y=38,b=39,w=40,E=41,S=42,x=43,T=44,N=45,C=46,k=47,L=58,A=59,O=60,M=61,_=62,D=63,P=48,H=57,B=65,j=69,F=90,I=91,q=92,R=93,U=94,z=95,W=97,X=101,V=102,$=110,J=114,K=116,Q=117,G=118,Y=122,Z=123,et=124,tt=125,nt=160}),define("aurelia-binding/path-observer",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i){var s=this;t(this,e),this.leftObserver=n,this.disposeLeft=n.subscribe(function(e){var t=s.updateRight(r(e));s.notify(t)}),this.updateRight(r(i))}return n(e,[{key:"updateRight",value:function(t){var n=this;return this.rightObserver=t,this.disposeRight&&this.disposeRight(),t?(this.disposeRight=t.subscribe(function(e){return n.notify(e)}),t.getValue()):null}},{key:"subscribe",value:function(t){var n=this;return n.callback=t,function(){n.callback=null}}},{key:"notify",value:function(t){var n=this.callback;n&&n(t)}},{key:"dispose",value:function(){this.disposeLeft&&this.disposeLeft(),this.disposeRight&&this.disposeRight()}}]),e}();e.PathObserver=r}),define("aurelia-binding/composite-observer",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r){var i=this;t(this,e),this.subscriptions=new Array(n.length),this.evaluate=r;for(var s=0,o=n.length;s<o;s++)this.subscriptions[s]=n[s].subscribe(function(e){i.notify(i.evaluate())})}return n(e,[{key:"subscribe",value:function(t){var n=this;return n.callback=t,function(){n.callback=null}}},{key:"notify",value:function(t){var n=this.callback;n&&n(t)}},{key:"dispose",value:function(){var t=this.subscriptions,n=t.length;while(n--)t[n]()}}]),e}();e.CompositeObserver=r}),define("aurelia-binding/ast",["exports","./path-observer","./composite-observer"],function(e,t,n){function C(e,t,n){var r=t.length,i,s;for(i=N.length;i<=r;++i)N.push([]);var o=N[r];for(s=0;s<r;++s)o[s]=t[s].evaluate(e,n);return o}function k(e,t){return e!=null&&t!=null?typeof e=="string"&&typeof t!="string"?e+t.toString():typeof e!="string"&&typeof t=="string"?e.toString()+t:e+t:e!=null?e:t!=null?t:0}function L(e,t){var n=e[t];if(typeof n=="function")return n;throw n===null?new Error("Undefined function "+t):new Error(""+t+" is not a function")}function A(e,t){if(Array.isArray(e))return e[parseInt(t)];if(e)return e[t];if(e===null)throw new Error("Accessing null object");return e[t]}function O(e,t,n){if(Array.isArray(e)){var r=parseInt(t);e.length<=r&&(e.length=r+1),e[r]=n}else e[t]=n;return n}var r=function M(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:M(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},i=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function e(){s(this,e),this.isChain=!1,this.isAssignable=!1}return o(e,[{key:"evaluate",value:function(){throw new Error("Cannot evaluate "+this)}},{key:"assign",value:function(){throw new Error("Cannot assign to "+this)}},{key:"toString",value:function t(){return T.unparse(this)}}]),e}();e.Expression=u;var a=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.expressions=e,this.isChain=!0}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r,i=this.expressions,s=i.length,o,u;for(o=0;o<s;++o)u=i[o].evaluate(t,n),u!==null&&(r=u);return r}},{key:"accept",value:function(t){t.visitChain(this)}}]),t}(u);e.Chain=a;var f=function(e){function t(e,n,i,o){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.expression=e,this.name=n,this.args=i,this.allArgs=o}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r=n(this.name);if(!r)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"toView"in r?r.toView.apply(r,C(t,this.allArgs,n)):this.allArgs[0].evaluate(t,n)}},{key:"assign",value:function(t,n,r){var i=r(this.name);if(!i)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"fromView"in i&&(n=i.fromView.apply(i,[n].concat(C(t,this.args,r)))),this.allArgs[0].assign(t,n,r)}},{key:"accept",value:function(t){t.visitValueConverter(this)}},{key:"connect",value:function(t,r){var i=this,s,o=[],u,a,f,l;for(u=0,a=this.allArgs.length;u<a;++u)f=this.allArgs[u],l=f.connect(t,r),l.observer&&o.push(l.observer);return o.length&&(s=new n.CompositeObserver(o,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:s}}}]),t}(u);e.ValueConverter=f;var l=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.target=e,this.value=n}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return this.target.assign(t,this.value.evaluate(t,n))}},{key:"accept",value:function(t){t.visitAssign(this)}},{key:"connect",value:function(t,n){return{value:this.evaluate(n,t.valueConverterLookupFunction)}}}]),t}(u);e.Assign=l;var c=function(e){function t(e,n,i){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.condition=e,this.yes=n,this.no=i}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return this.condition.evaluate(t)?this.yes.evaluate(t):this.no.evaluate(t)}},{key:"accept",value:function(t){t.visitConditional(this)}},{key:"connect",value:function(t,r){var i=this,s=this.condition.connect(t,r),o=this.yes.connect(t,r),u=this.no.connect(t,r),a=[],f;return s.observer&&a.push(s.observer),o.observer&&a.push(o.observer),u.observer&&a.push(u.observer),a.length&&(f=new n.CompositeObserver(a,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:s.value?o.value:u.value,observer:f}}}]),t}(u);e.Conditional=c;var h=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.name=e,this.isAssignable=!0}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return t[this.name]}},{key:"assign",value:function(t,n){return t[this.name]=n}},{key:"accept",value:function(t){t.visitAccessScope(this)}},{key:"connect",value:function(t,n){var r=t.getObserver(n,this.name);return{value:r.getValue(),observer:r}}}]),t}(u);e.AccessScope=h;var p=function(e){function n(e,t){s(this,n),r(Object.getPrototypeOf(n.prototype),"constructor",this).call(this),this.object=e,this.name=t,this.isAssignable=!0}return i(n,e),o(n,[{key:"evaluate",value:function(t,n){var r=this.object.evaluate(t,n);return r===null||r===undefined?r:r[this.name]}},{key:"assign",value:function(t,n){var r=this.object.evaluate(t);if(r===null||r===undefined)r={},this.object.assign(t,r);return r[this.name]=n}},{key:"accept",value:function(t){t.visitAccessMember(this)}},{key:"connect",value:function(n,r){var i=this,s=this.object.connect(n,r),o=s.value,u=s.observer,a;return u?a=new t.PathObserver(u,function(e){return e==null||e==undefined?e:n.getObserver(e,i.name)},o):a=n.getObserver(o,this.name),{value:o==null?null:o[this.name],observer:a}}}]),n}(u);e.AccessMember=p;var d=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.object=e,this.key=n,this.isAssignable=!0}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r=this.object.evaluate(t,n),i=this.key.evaluate(t,n);return A(r,i)}},{key:"assign",value:function(t,n){var r=this.object.evaluate(t),i=this.key.evaluate(t);return O(r,i,n)}},{key:"accept",value:function(t){t.visitAccessKeyed(this)}},{key:"connect",value:function(t,r){var i=this,s=this.object.connect(t,r),o=this.key.connect(t,r),u=[],a;return s.observer&&u.push(s.observer),o.observer&&u.push(o.observer),u.length&&(a=new n.CompositeObserver(u,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:a}}}]),t}(u);e.AccessKeyed=d;var v=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.name=e,this.args=n}return i(t,e),o(t,[{key:"evaluate",value:function(t,n,r){return r=r||C(t,this.args,n),L(t,this.name).apply(t,r)}},{key:"accept",value:function(t){t.visitCallScope(this)}},{key:"connect",value:function(t,r){var i=this,s,o=[],u,a,f,l;for(u=0,a=this.args.length;u<a;++u)f=this.args[u],l=f.connect(t,r),l.observer&&o.push(l.observer);return o.length&&(s=new n.CompositeObserver(o,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:s}}}]),t}(u);e.CallScope=v;var m=function(e){function t(e,n,i){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.object=e,this.name=n,this.args=i}return i(t,e),o(t,[{key:"evaluate",value:function(t,n,r){var i=this.object.evaluate(t,n);return r=r||C(t,this.args,n),L(i,this.name).apply(i,r)}},{key:"accept",value:function(t){t.visitCallMember(this)}},{key:"connect",value:function(t,r){var i=this,s,o=this.object.connect(t,r),u=[],a,f,l,c;o.observer&&u.push(o.observer);for(a=0,f=this.args.length;a<f;++a)l=this.args[a],c=l.connect(t,r),c.observer&&u.push(c.observer);return u.length&&(s=new n.CompositeObserver(u,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:s}}}]),t}(u);e.CallMember=m;var g=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.func=e,this.args=n}return i(t,e),o(t,[{key:"evaluate",value:function(t,n,r){var i=this.func.evaluate(t,n);if(typeof i!="function")throw new Error(""+this.func+" is not a function");return i.apply(null,r||C(t,this.args,n))}},{key:"accept",value:function(t){t.visitCallFunction(this)}},{key:"connect",value:function(t,r){var i=this,s,o=this.func.connect(t,r),u=[],a,f,l,c;o.observer&&u.push(o.observer);for(a=0,f=this.args.length;a<f;++a)l=this.args[a],c=l.connect(t,r),c.observer&&u.push(c.observer);return u.length&&(s=new n.CompositeObserver(u,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:s}}}]),t}(u);e.CallFunction=g;var y=function(e){function t(e,n,i){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.operation=e,this.left=n,this.right=i}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r=this.left.evaluate(t);switch(this.operation){case"&&":return!!r&&!!this.right.evaluate(t);case"||":return!!r||!!this.right.evaluate(t)}var i=this.right.evaluate(t);switch(this.operation){case"==":return r==i;case"===":return r===i;case"!=":return r!=i;case"!==":return r!==i}if(r===null||i===null){switch(this.operation){case"+":if(r!=null)return r;if(i!=null)return i;return 0;case"-":if(r!=null)return r;if(i!=null)return 0-i;return 0}return null}switch(this.operation){case"+":return k(r,i);case"-":return r-i;case"*":return r*i;case"/":return r/i;case"%":return r%i;case"<":return r<i;case">":return r>i;case"<=":return r<=i;case">=":return r>=i;case"^":return r^i;case"&":return r&i}throw new Error("Internal error ["+this.operation+"] not handled")}},{key:"accept",value:function(t){t.visitBinary(this)}},{key:"connect",value:function(t,r){var i=this,s=this.left.connect(t,r),o=this.right.connect(t,r),u=[],a;return s.observer&&u.push(s.observer),o.observer&&u.push(o.observer),u.length&&(a=new n.CompositeObserver(u,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:this.evaluate(r,t.valueConverterLookupFunction),observer:a}}}]),t}(u);e.Binary=y;var b=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.operation=e,this.expression=n}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return!this.expression.evaluate(t)}},{key:"accept",value:function(t){t.visitPrefix(this)}},{key:"connect",value:function(t,r){var i=this,s=this.expression.connect(t,r),o;return s.observer&&(o=new n.CompositeObserver([s.observer],function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:!s.value,observer:o}}}]),t}(u);e.PrefixNot=b;var w=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.value=e}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return this.value}},{key:"accept",value:function(t){t.visitLiteralPrimitive(this)}},{key:"connect",value:function(t,n){return{value:this.value}}}]),t}(u);e.LiteralPrimitive=w;var E=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.value=e}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){return this.value}},{key:"accept",value:function(t){t.visitLiteralString(this)}},{key:"connect",value:function(t,n){return{value:this.value}}}]),t}(u);e.LiteralString=E;var S=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.elements=e}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r=this.elements,i=r.length,s=[],o;for(o=0;o<i;++o)s[o]=r[o].evaluate(t,n);return s}},{key:"accept",value:function(t){t.visitLiteralArray(this)}},{key:"connect",value:function(t,r){var i=this,s,o=[],u=[],a,f,l,c;for(a=0,f=this.elements.length;a<f;++a)l=this.elements[a],c=l.connect(t,r),c.observer&&o.push(c.observer),u[a]=c.value;return o.length&&(s=new n.CompositeObserver(o,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:u,observer:s}}}]),t}(u);e.LiteralArray=S;var x=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.keys=e,this.values=n}return i(t,e),o(t,[{key:"evaluate",value:function(t,n){var r={},i=this.keys,s=this.values,o=i.length,u;for(u=0;u<o;++u)r[i[u]]=s[u].evaluate(t,n);return r}},{key:"accept",value:function(t){t.visitLiteralObject(this)}},{key:"connect",value:function(t,r){var i=this,s,o=[],u={},a=this.keys,f=this.values,l=a.length,c,h;for(c=0;c<l;++c)h=f[c].connect(t,r),h.observer&&o.push(h.observer),u[a[c]]=h.value;return o.length&&(s=new n.CompositeObserver(o,function(){return i.evaluate(r,t.valueConverterLookupFunction)})),{value:u,observer:s}}}]),t}(u);e.LiteralObject=x;var T=function(){function e(t){s(this,e),this.buffer=t}return o(e,[{key:"write",value:function(t){this.buffer.push(t)}},{key:"writeArgs",value:function(t){var n,r;this.write("(");for(n=0,r=t.length;n<r;++n)n!==0&&this.write(","),t[n].accept(this);this.write(")")}},{key:"visitChain",value:function(t){var n=t.expressions,r=n.length,i;for(i=0;i<r;++i)i!==0&&this.write(";"),n[i].accept(this)}},{key:"visitValueConverter",value:function(t){var n=t.args,r=n.length,i;this.write("("),t.expression.accept(this),this.write("|"+t.name);for(i=0;i<r;++i)this.write(" :"),n[i].accept(this);this.write(")")}},{key:"visitAssign",value:function(t){t.target.accept(this),this.write("="),t.value.accept(this)}},{key:"visitConditional",value:function(t){t.condition.accept(this),this.write("?"),t.yes.accept(this),this.write(":"),t.no.accept(this)}},{key:"visitAccessScope",value:function(t){this.write(t.name)}},{key:"visitAccessMember",value:function(t){t.object.accept(this),this.write("."+t.name)}},{key:"visitAccessKeyed",value:function(t){t.object.accept(this),this.write("["),t.key.accept(this),this.write("]")}},{key:"visitCallScope",value:function(t){this.write(t.name),this.writeArgs(t.args)}},{key:"visitCallFunction",value:function(t){t.func.accept(this),this.writeArgs(t.args)}},{key:"visitCallMember",value:function(t){t.object.accept(this),this.write("."+t.name),this.writeArgs(t.args)}},{key:"visitPrefix",value:function(t){this.write("("+t.operation),t.expression.accept(this),this.write(")")}},{key:"visitBinary",value:function(t){this.write("("),t.left.accept(this),this.write(t.operation),t.right.accept(this),this.write(")")}},{key:"visitLiteralPrimitive",value:function(t){this.write(""+t.value)}},{key:"visitLiteralArray",value:function(t){var n=t.elements,r=n.length,i;this.write("[");for(i=0;i<r;++i)i!==0&&this.write(","),n[i].accept(this);this.write("]")}},{key:"visitLiteralObject",value:function(t){var n=t.keys,r=t.values,i=n.length,s;this.write("{");for(s=0;s<i;++s)s!==0&&this.write(","),this.write("'"+n[s]+"':"),r[s].accept(this);this.write("}")}},{key:"visitLiteralString",value:function(t){var n=t.value.replace(/'/g,"'");this.write("'"+n+"'")}}],[{key:"unparse",value:function(n){var r=[],i=new e(r);return n.accept(i),r.join("")}}]),e}();e.Unparser=T;var N=[[],[0],[0,0],[0,0,0],[0,0,0,0],[0,0,0,0,0]]}),define("aurelia-binding/parser",["exports","./lexer","./ast"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=new t.Token(-1,null),o=function(){function e(){r(this,e),this.cache={},this.lexer=new t.Lexer}return i(e,[{key:"parse",value:function(t){return t=t||"",this.cache[t]||(this.cache[t]=(new u(this.lexer,t)).parseChain())}}]),e}();e.Parser=o;var u=function(){function e(t,n){r(this,e),this.index=0,this.input=n,this.tokens=t.lex(n)}return i(e,[{key:"peek",get:function(){return this.index<this.tokens.length?this.tokens[this.index]:s}},{key:"parseChain",value:function(){var t=!1,r=[];while(this.optional(";"))t=!0;while(this.index<this.tokens.length){(this.peek.text===")"||this.peek.text==="}"||this.peek.text==="]")&&this.error("Unconsumed token "+this.peek.text);var i=this.parseValueConverter();r.push(i);while(this.optional(";"))t=!0;t&&i instanceof n.ValueConverter&&this.error("cannot have a value converter in a chain")}return r.length===1?r[0]:new n.Chain(r)}},{key:"parseValueConverter",value:function(){var t=this.parseExpression();while(this.optional("|")){var r=this.peek.text,i=[];this.advance();while(this.optional(":"))i.push(this.parseExpression());t=new n.ValueConverter(t,r,i,[t].concat(i))}return t}},{key:"parseExpression",value:function(){var t=this.peek.index,r=this.parseConditional();while(this.peek.text==="="){if(!r.isAssignable){var i=this.index<this.tokens.length?this.peek.index:this.input.length,s=this.input.substring(t,i);this.error("Expression "+s+" is not assignable")}this.expect("="),r=new n.Assign(r,this.parseConditional())}return r}},{key:"parseConditional",value:function(){var t=this.peek.index,r=this.parseLogicalOr();if(this.optional("?")){var i=this.parseExpression();if(!this.optional(":")){var s=this.index<this.tokens.length?this.peek.index:this.input.length,o=this.input.substring(t,s);this.error("Conditional expression "+o+" requires all 3 expressions")}var u=this.parseExpression();r=new n.Conditional(r,i,u)}return r}},{key:"parseLogicalOr",value:function(){var t=this.parseLogicalAnd();while(this.optional("||"))t=new n.Binary("||",t,this.parseLogicalAnd());return t}},{key:"parseLogicalAnd",value:function(){var t=this.parseEquality();while(this.optional("&&"))t=new n.Binary("&&",t,this.parseEquality());return t}},{key:"parseEquality",value:function(){var t=this.parseRelational();for(;;)if(this.optional("=="))t=new n.Binary("==",t,this.parseRelational());else if(this.optional("!="))t=new n.Binary("!=",t,this.parseRelational());else if(this.optional("==="))t=new n.Binary("===",t,this.parseRelational());else{if(!this.optional("!=="))return t;t=new n.Binary("!==",t,this.parseRelational())}}},{key:"parseRelational",value:function(){var t=this.parseAdditive();for(;;)if(this.optional("<"))t=new n.Binary("<",t,this.parseAdditive());else if(this.optional(">"))t=new n.Binary(">",t,this.parseAdditive());else if(this.optional("<="))t=new n.Binary("<=",t,this.parseAdditive());else{if(!this.optional(">="))return t;t=new n.Binary(">=",t,this.parseAdditive())}}},{key:"parseAdditive",value:function(){var t=this.parseMultiplicative();for(;;)if(this.optional("+"))t=new n.Binary("+",t,this.parseMultiplicative());else{if(!this.optional("-"))return t;t=new n.Binary("-",t,this.parseMultiplicative())}}},{key:"parseMultiplicative",value:function(){var t=this.parsePrefix();for(;;)if(this.optional("*"))t=new n.Binary("*",t,this.parsePrefix());else if(this.optional("%"))t=new n.Binary("%",t,this.parsePrefix());else{if(!this.optional("/"))return t;t=new n.Binary("/",t,this.parsePrefix())}}},{key:"parsePrefix",value:function(){return this.optional("+")?this.parsePrefix():this.optional("-")?new n.Binary("-",new n.LiteralPrimitive(0),this.parsePrefix()):this.optional("!")?new n.PrefixNot("!",this.parsePrefix()):this.parseAccessOrCallMember()}},{key:"parseAccessOrCallMember",value:function(){var t=this.parsePrimary();for(;;)if(this.optional(".")){var r=this.peek.text;this.advance();if(this.optional("(")){var i=this.parseExpressionList(")");this.expect(")"),t=new n.CallMember(t,r,i)}else t=new n.AccessMember(t,r)}else if(this.optional("[")){var s=this.parseExpression();this.expect("]"),t=new n.AccessKeyed(t,s)}else{if(!this.optional("("))return t;var i=this.parseExpressionList(")");this.expect(")"),t=new n.CallFunction(t,i)}}},{key:"parsePrimary",value:function(){if(this.optional("(")){var t=this.parseExpression();return this.expect(")"),t}if(this.optional("null")||this.optional("undefined"))return new n.LiteralPrimitive(null);if(this.optional("true"))return new n.LiteralPrimitive(!0);if(this.optional("false"))return new n.LiteralPrimitive(!1);if(this.optional("[")){var r=this.parseExpressionList("]");return this.expect("]"),new n.LiteralArray(r)}if(this.peek.text=="{")return this.parseObject();if(this.peek.key!=null)return this.parseAccessOrCallScope();if(this.peek.value!=null){var i=this.peek.value;return this.advance(),isNaN(i)?new n.LiteralString(i):new n.LiteralPrimitive(i)}if(this.index>=this.tokens.length)throw new Error("Unexpected end of expression: "+this.input);this.error("Unexpected token "+this.peek.text)}},{key:"parseAccessOrCallScope",value:function(){var t=this.peek.key;this.advance();if(!this.optional("("))return new n.AccessScope(t);var r=this.parseExpressionList(")");return this.expect(")"),new n.CallScope(t,r)}},{key:"parseObject",value:function(){var t=[],r=[];this.expect("{");if(this.peek.text!=="}")do{var i=this.peek.value;t.push(typeof i=="string"?i:this.peek.text),this.advance(),this.expect(":"),r.push(this.parseExpression())}while(this.optional(","));return this.expect("}"),new n.LiteralObject(t,r)}},{key:"parseExpressionList",value:function(t){var n=[];if(this.peek.text!=t)do n.push(this.parseExpression());while(this.optional(","));return n}},{key:"optional",value:function(t){return this.peek.text===t?(this.advance(),!0):!1}},{key:"expect",value:function(t){this.peek.text===t?this.advance():this.error("Missing expected "+t)}},{key:"advance",value:function(){this.index++}},{key:"error",value:function(t){var n=this.index<this.tokens.length?"at column "+(this.tokens[this.index].index+1)+" in":"at the end of the expression";throw new Error("Parser Error: "+t+" "+n+" ["+this.input+"]")}}]),e}();e.ParserImplementation=u}),define("aurelia-binding/binding-expression",["exports","./binding-modes"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(t,r,i,s,o,u){n(this,e),this.observerLocator=t,this.targetProperty=r,this.sourceExpression=i,this.mode=s,this.valueConverterLookupFunction=o,this.attribute=u,this.discrete=!1}return r(e,[{key:"createBinding",value:function(t){return new s(this.observerLocator,this.sourceExpression,t,this.targetProperty,this.mode,this.valueConverterLookupFunction)}}]),e}();e.BindingExpression=i;var s=function(){function e(t,r,i,s,o,u){n(this,e),this.observerLocator=t,this.sourceExpression=r,this.targetProperty=t.getObserver(i,s),this.mode=o,this.valueConverterLookupFunction=u}return r(e,[{key:"getObserver",value:function(t,n){return this.observerLocator.getObserver(t,n)}},{key:"bind",value:function(n){var r=this,i=this.targetProperty,s;"bind"in i&&i.bind();if(this.mode==t.ONE_WAY||this.mode==t.TWO_WAY){if(this._disposeObserver){if(this.source===n)return;this.unbind()}s=this.sourceExpression.connect(this,n),s.observer&&(this._disposeObserver=s.observer.subscribe(function(e){var t=i.getValue();e!==t&&i.setValue(e)})),s.value!==undefined&&i.setValue(s.value),this.mode==t.TWO_WAY&&(this._disposeListener=i.subscribe(function(e){r.sourceExpression.assign(n,e,r.valueConverterLookupFunction)})),this.source=n}else{var o=this.sourceExpression.evaluate(n,this.valueConverterLookupFunction);o!==undefined&&i.setValue(o)}}},{key:"unbind",value:function(){"unbind"in this.targetProperty&&this.targetProperty.unbind(),this._disposeObserver&&(this._disposeObserver(),this._disposeObserver=null),this._disposeListener&&(this._disposeListener(),this._disposeListener=null)}}]),e}()}),define("aurelia-binding/listener-expression",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i,s,o){t(this,e),this.eventManager=n,this.targetEvent=r,this.sourceExpression=i,this.delegate=s,this.discrete=!0,this.preventDefault=o}return n(e,[{key:"createBinding",value:function(t){return new i(this.eventManager,this.targetEvent,this.delegate,this.sourceExpression,t,this.preventDefault)}}]),e}();e.ListenerExpression=r;var i=function(){function e(n,r,i,s,o,u){t(this,e),this.eventManager=n,this.targetEvent=r,this.delegate=i,this.sourceExpression=s,this.target=o,this.preventDefault=u}return n(e,[{key:"bind",value:function(t){var n=this;if(this._disposeListener){if(this.source===t)return;this.unbind()}this.source=t,this._disposeListener=this.eventManager.addEventListener(this.target,this.targetEvent,function(e){var r=t.$event;t.$event=e;var i=n.sourceExpression.evaluate(t);return t.$event=r,i!==!0&&n.preventDefault&&e.preventDefault(),i},this.delegate)}},{key:"unbind",value:function(){this._disposeListener&&(this._disposeListener(),this._disposeListener=null)}}]),e}()}),define("aurelia-binding/name-expression",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r){t(this,e),this.property=n,this.discrete=!0,this.mode=(r||"view-model").toLowerCase()}return n(e,[{key:"createBinding",value:function(t){return new i(this.property,t,this.mode)}}]),e}();e.NameExpression=r;var i=function(){function e(n,r,i){t(this,e),this.property=n;switch(i){case"element":this.target=r;break;case"view-model":this.target=r.primaryBehavior?r.primaryBehavior.executionContext:r;break;default:throw new Error("Name expressions do not support mode: "+i)}}return n(e,[{key:"bind",value:function(t){if(this.source){if(this.source===t)return;this.unbind()}this.source=t,t[this.property]=this.target}},{key:"unbind",value:function(){this.source[this.property]=null}}]),e}()}),define("aurelia-binding/call-expression",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i,s){t(this,e),this.observerLocator=n,this.targetProperty=r,this.sourceExpression=i,this.valueConverterLookupFunction=s}return n(e,[{key:"createBinding",value:function(t){return new i(this.observerLocator,this.sourceExpression,t,this.targetProperty,this.valueConverterLookupFunction)}}]),e}();e.CallExpression=r;var i=function(){function e(n,r,i,s,o){t(this,e),this.sourceExpression=r,this.target=i,this.targetProperty=n.getObserver(i,s),this.valueConverterLookupFunction=o}return n(e,[{key:"bind",value:function(t){var n=this;if(this.source===t)return;this.source&&this.unbind(),this.source=t,this.targetProperty.setValue(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.sourceExpression.evaluate(t,n.valueConverterLookupFunction,r)})}},{key:"unbind",value:function(){this.targetProperty.setValue(null)}}]),e}()}),define("aurelia-binding/index",["exports","aurelia-metadata","./value-converter","./event-manager","./observer-locator","./array-change-records","./binding-modes","./parser","./binding-expression","./listener-expression","./name-expression","./call-expression","./dirty-checking","./map-change-records","./computed-observation"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){function g(e){return function(r){return t.Metadata.on(r).add(new n.ValueConverterResource(e)),r}}function y(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){if(r.set)throw new Error('The computed property "'+n+'" cannot have a setter function.');return r.get.dependencies=t,r}}var v=function(e){return e&&e.__esModule?e:{"default":e}},m=function(e,t){var n=Object.getOwnPropertyNames(t);for(var r=0;r<n.length;r++){var i=n[r],s=Object.getOwnPropertyDescriptor(t,i);s&&s.configurable&&e[i]===undefined&&Object.defineProperty(e,i,s)}return e};Object.defineProperty(e,"__esModule",{value:!0}),e.valueConverter=g,e.computedFrom=y,Object.defineProperty(e,"EventManager",{enumerable:!0,get:function(){return r.EventManager}}),Object.defineProperty(e,"ObserverLocator",{enumerable:!0,get:function(){return i.ObserverLocator}}),Object.defineProperty(e,"ObjectObservationAdapter",{enumerable:!0,get:function(){return i.ObjectObservationAdapter}}),Object.defineProperty(e,"ValueConverterResource",{enumerable:!0,get:function(){return n.ValueConverterResource}}),Object.defineProperty(e,"calcSplices",{enumerable:!0,get:function(){return s.calcSplices}}),m(e,v(o)),Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return u.Parser}}),Object.defineProperty(e,"BindingExpression",{enumerable:!0,get:function(){return a.BindingExpression}}),Object.defineProperty(e,"ListenerExpression",{enumerable:!0,get:function(){return f.ListenerExpression}}),Object.defineProperty(e,"NameExpression",{enumerable:!0,get:function(){return l.NameExpression}}),Object.defineProperty(e,"CallExpression",{enumerable:!0,get:function(){return c.CallExpression}}),Object.defineProperty(e,"DirtyChecker",{enumerable:!0,get:function(){return h.DirtyChecker}}),Object.defineProperty(e,"getChangeRecords",{enumerable:!0,get:function(){return p.getChangeRecords}}),Object.defineProperty(e,"ComputedPropertyObserver",{enumerable:!0,get:function(){return d.ComputedPropertyObserver}}),Object.defineProperty(e,"declarePropertyDependencies",{enumerable:!0,get:function(){return d.declarePropertyDependencies}}),t.Decorators.configure.parameterizedDecorator("valueConverter",g)}),define("aurelia-binding",["aurelia-binding/index"],function(e){return e}),define("aurelia-templating/view-strategy",["exports","aurelia-metadata","aurelia-path"],function(e,t,n){var r=function h(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:h(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},i=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function e(){s(this,e)}return o(e,[{key:"makeRelativeTo",value:function(t){}},{key:"loadViewFactory",value:function(t,n){throw new Error("A ViewStrategy must implement loadViewFactory(viewEngine, options).")}}],[{key:"normalize",value:function(n){typeof n=="string"&&(n=new UseView(n));if(!n||n instanceof e)return n;throw new Error("The view must be a string or an instance of ViewStrategy.")}},{key:"getDefault",value:function(r){var i,s;typeof r!="function"&&(r=r.constructor),s=t.Origin.get(r),i=t.Metadata.on(r).first(e);if(!i){if(!s)throw new Error("Cannot determinte default view strategy for object.",r);i=new f(s.moduleId)}else s&&(i.moduleId=s.moduleId);return i}}]),e}();e.ViewStrategy=u;var a=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.path=e}return i(t,e),o(t,[{key:"loadViewFactory",value:function(t,r){return!this.absolutePath&&this.moduleId&&(this.absolutePath=n.relativeToFile(this.path,this.moduleId)),t.loadViewFactory(this.absolutePath||this.path,r,this.moduleId)}},{key:"makeRelativeTo",value:function(t){this.absolutePath=n.relativeToFile(this.path,t)}}]),t}(u);e.UseViewStrategy=a;var f=function(e){function t(e){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.moduleId=e,this.viewUrl=t.convertModuleIdToViewUrl(e)}return i(t,e),o(t,[{key:"loadViewFactory",value:function(t,n){return t.loadViewFactory(this.viewUrl,n,this.moduleId)}}],[{key:"convertModuleIdToViewUrl",value:function(t){return t+".html"}}]),t}(u);e.ConventionalViewStrategy=f;var l=function(e){function t(){s(this,t),e!=null&&e.apply(this,arguments)}return i(t,e),o(t,[{key:"loadViewFactory",value:function(){return Promise.resolve(null)}}]),t}(u);e.NoViewStrategy=l;var c=function(e){function t(e,n){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.moduleId=e,this.registryEntry=n}return i(t,e),o(t,[{key:"loadViewFactory",value:function(t,n){return this.registryEntry.isReady?Promise.resolve(this.registryEntry.factory):t.loadViewFactory(this.registryEntry,n,this.moduleId)}}]),t}(u);e.TemplateRegistryViewStrategy=c}),define("aurelia-templating/resource-registry",["exports","aurelia-path"],function(e,t){function o(e,t,n,r){if(!t)return;var i=e[t];if(i){if(i!=n)throw new Error("Attempted to register "+r+" when one with the same name already exists. Name: "+t+".");return}e[t]=n}var n=function f(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:f(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},r=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function e(){i(this,e),this.attributes={},this.elements={},this.valueConverters={},this.attributeMap={},this.baseResourceUrl=""}return s(e,[{key:"registerElement",value:function(t,n){o(this.elements,t,n,"an Element")}},{key:"getElement",value:function(t){return this.elements[t]}},{key:"registerAttribute",value:function(t,n,r){this.attributeMap[t]=r,o(this.attributes,t,n,"an Attribute")}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"registerValueConverter",value:function(t,n){o(this.valueConverters,t,n,"a ValueConverter")}},{key:"getValueConverter",value:function(t){return this.valueConverters[t]}}]),e}();e.ResourceRegistry=u;var a=function(e){function o(e,t){i(this,o),n(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.parent=e,this.viewUrl=t,this.valueConverterLookupFunction=this.getValueConverter.bind(this)}return r(o,e),s(o,[{key:"relativeToView",value:function(n){return t.relativeToFile(n,this.viewUrl)}},{key:"getElement",value:function(t){return this.elements[t]||this.parent.getElement(t)}},{key:"mapAttribute",value:function(t){return this.attributeMap[t]||this.parent.attributeMap[t]}},{key:"getAttribute",value:function(t){return this.attributes[t]||this.parent.getAttribute(t)}},{key:"getValueConverter",value:function(t){return this.valueConverters[t]||this.parent.getValueConverter(t)}}]),o}(u);e.ViewResources=a}),define("aurelia-templating/view",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i,s,o,u){t(this,e),this.fragment=n,this.behaviors=r,this.bindings=i,this.children=s,this.systemControlled=o,this.contentSelectors=u,this.firstChild=n.firstChild,this.lastChild=n.lastChild,this.isBound=!1,this.isAttached=!1}return n(e,[{key:"created",value:function(t){var n,r,i=this.behaviors;for(n=0,r=i.length;n<r;++n)i[n].created(t)}},{key:"bind",value:function(t,n){var r,i,s,o,u,a;n&&!this.systemControlled?r=this.executionContext||t:r=t||this.executionContext;if(this.isBound){if(this.executionContext===r)return;this.unbind()}this.isBound=!0,this.executionContext=r,this.owner&&this.owner.bind(r),s=this.bindings;for(u=0,a=s.length;u<a;++u)s[u].bind(r);i=this.behaviors;for(u=0,a=i.length;u<a;++u)i[u].bind(r);o=this.children;for(u=0,a=o.length;u<a;++u)o[u].bind(r,!0)}},{key:"addBinding",value:function(t){this.bindings.push(t),this.isBound&&t.bind(this.executionContext)}},{key:"unbind",value:function(){var t,n,r,i,s;if(this.isBound){this.isBound=!1,this.owner&&this.owner.unbind(),n=this.bindings;for(i=0,s=n.length;i<s;++i)n[i].unbind();t=this.behaviors;for(i=0,s=t.length;i<s;++i)t[i].unbind();r=this.children;for(i=0,s=r.length;i<s;++i)r[i].unbind()}}},{key:"insertNodesBefore",value:function(t){var n=t.parentNode;n.insertBefore(this.fragment,t)}},{key:"appendNodesTo",value:function(t){t.appendChild(this.fragment)}},{key:"removeNodes",value:function(){var t=this.firstChild,n=this.lastChild,r=this.fragment,i,s=t,o=!0,u=[];while(o)s===n&&(o=!1),i=s.nextSibling,this.fragment.appendChild(s),s=i}},{key:"attached",value:function(){var t,n,r,i;if(this.isAttached)return;this.isAttached=!0,this.owner&&this.owner.attached(),t=this.behaviors;for(r=0,i=t.length;r<i;++r)t[r].attached();n=this.children;for(r=0,i=n.length;r<i;++r)n[r].attached()}},{key:"detached",value:function(){var t,n,r,i;if(this.isAttached){this.isAttached=!1,this.owner&&this.owner.detached(),t=this.behaviors;for(r=0,i=t.length;r<i;++r)t[r].detached();n=this.children;for(r=0,i=n.length;r<i;++r)n[r].detached()}}}]),e}();e.View=r}),define("aurelia-templating/content-selector",["exports","core-js"],function(e,t){function a(e,t){var n;while(!n&&t>=0)n=e[t][0],t--;return n||anchor}var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=n(t);if(Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}var u=[],f=function(){function e(t,n){r(this,e),this.anchor=t,this.selector=n,this.all=!this.selector,this.groups=[]}return i(e,[{key:"copyForViewSlot",value:function(){return new e(this.anchor,this.selector)}},{key:"matches",value:function(t){return this.all||t.nodeType===1&&t.matches(this.selector)}},{key:"add",value:function(t){var n=this.anchor,r=n.parentNode,i,s;for(i=0,s=t.length;i<s;++i)r.insertBefore(t[i],n);this.groups.push(t)}},{key:"insert",value:function(t,n){if(n.length){var r=a(this.groups,t)||this.anchor,i=r.parentNode,s,o;for(s=0,o=n.length;s<o;++s)i.insertBefore(n[s],r)}this.groups.splice(t,0,n)}},{key:"removeAt",value:function(t,n){var r=this.groups[t],i,s;for(i=0,s=r.length;i<s;++i)n.appendChild(r[i]);this.groups.splice(t,1)}}],[{key:"applySelectors",value:function(t,n,r){var i=t.fragment.firstChild,s=new Map,o,a,f,l;while(i){o=i.nextSibling;if(i.viewSlot){var c=n.map(function(e){return e.copyForViewSlot()});i.viewSlot.installContentSelectors(c)}else for(a=0,f=n.length;a<f;a++){l=n[a];if(l.matches(i)){var h=s.get(l);h||(h=[],s.set(l,h)),h.push(i);break}}i=o}for(a=0,f=n.length;a<f;++a)l=n[a],r(l,s.get(l)||u)}}]),e}();e.ContentSelector=f}),define("aurelia-templating/animator",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e)}return n(e,[{key:"move",value:function(){return Promise.resolve(!1)}},{key:"enter",value:function(t){return Promise.resolve(!1)}},{key:"leave",value:function(t){return Promise.resolve(!1)}},{key:"removeClass",value:function(t,n){return Promise.resolve(!1)}},{key:"addClass",value:function(t,n){return Promise.resolve(!1)}}],[{key:"configureDefault",value:function(n,r){n.registerInstance(e,e.instance=r||new e)}}]),e}();e.Animator=r}),define("aurelia-templating/view-slot",["exports","./content-selector","./animator"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function e(t,i,s){var o=arguments[3]===undefined?n.Animator.instance:arguments[3];r(this,e),this.anchor=t,this.viewAddMethod=i?"appendNodesTo":"insertNodesBefore",this.executionContext=s,this.animator=o,this.children=[],this.isBound=!1,this.isAttached=!1,t.viewSlot=this}return i(e,[{key:"transformChildNodesIntoView",value:function(){var t=this.anchor;this.children.push({fragment:t,firstChild:t.firstChild,lastChild:t.lastChild,removeNodes:function(){var n;while(n=t.lastChild)t.removeChild(n)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})}},{key:"bind",value:function(t){var n,r,i;if(this.isBound){if(this.executionContext===t)return;this.unbind()}this.isBound=!0,this.executionContext=t=t||this.executionContext,i=this.children;for(n=0,r=i.length;n<r;++n)i[n].bind(t,!0)}},{key:"unbind",value:function(){var t,n,r=this.children;this.isBound=!1;for(t=0,n=r.length;t<n;++t)r[t].unbind()}},{key:"add",value:function(t){t[this.viewAddMethod](this.anchor),this.children.push(t);if(this.isAttached){t.attached();var n=t.firstChild?t.firstChild.nextElementSibling:null;t.firstChild&&t.firstChild.nodeType===8&&n&&n.nodeType===1&&n.classList.contains("au-animate")&&this.animator.enter(n)}}},{key:"insert",value:function(t,n){t===0&&!this.children.length||t>=this.children.length?this.add(n):(n.insertNodesBefore(this.children[t].firstChild),this.children.splice(t,0,n),this.isAttached&&n.attached())}},{key:"remove",value:function(t){t.removeNodes(),this.children.splice(this.children.indexOf(t),1),this.isAttached&&t.detached()}},{key:"removeAt",value:function(t){var n=this,r=this.children[t],i=function(){return r.removeNodes(),n.children.splice(t,1),n.isAttached&&r.detached(),r},s=r.firstChild&&r.firstChild.nextElementSibling?r.firstChild.nextElementSibling:null;return r.firstChild&&r.firstChild.nodeType===8&&s&&s.nodeType===1&&s.classList.contains("au-animate")?this.animator.leave(s).then(function(){return i()}):i()}},{key:"removeAll",value:function(){var t=this,n=this.children,r=n.length,i,s=[];n.forEach(function(e){var n=e.firstChild?e.firstChild.nextElementSibling:null;e.firstChild&&e.firstChild.nodeType===8&&n&&n.nodeType===1&&n.classList.contains("au-animate")?s.push(t.animator.leave(n).then(function(){e.removeNodes()})):e.removeNodes()});var o=function(){if(t.isAttached)for(i=0;i<r;++i)n[i].detached();t.children=[]};if(s.length>0)return Promise.all(s).then(function(){o()});o()}},{key:"swap",value:function(t){var n=this,r=this.removeAll();r!==undefined?r.then(function(){n.add(t)}):this.add(t)}},{key:"attached",value:function(){var t,n,r,i;if(this.isAttached)return;this.isAttached=!0,r=this.children;for(t=0,n=r.length;t<n;++t){i=r[t],i.attached();var s=i.firstChild?i.firstChild.nextElementSibling:null;i.firstChild&&i.firstChild.nodeType===8&&s&&s.nodeType===1&&s.classList.contains("au-animate")&&this.animator.enter(s)}}},{key:"detached",value:function(){var t,n,r;if(this.isAttached){this.isAttached=!1,r=this.children;for(t=0,n=r.length;t<n;++t)r[t].detached()}}},{key:"installContentSelectors",value:function(t){this.contentSelectors=t,this.add=this.contentSelectorAdd,this.insert=this.contentSelectorInsert,this.remove=this.contentSelectorRemove,this.removeAt=this.contentSelectorRemoveAt,this.removeAll=this.contentSelectorRemoveAll}},{key:"contentSelectorAdd",value:function(n){t.ContentSelector.applySelectors(n,this.contentSelectors,function(e,t){return e.add(t)}),this.children.push(n),this.isAttached&&n.attached()}},{key:"contentSelectorInsert",value:function(n,r){n===0&&!this.children.length||n>=this.children.length?this.add(r):(t.ContentSelector.applySelectors(r,this.contentSelectors,function(e,t){return e.insert(n,t)}),this.children.splice(n,0,r),this.isAttached&&r.attached())}},{key:"contentSelectorRemove",value:function(t){var n=this.children.indexOf(t),r=this.contentSelectors,i,s;for(i=0,s=r.length;i<s;++i)r[i].removeAt(n,t.fragment);this.children.splice(n,1),this.isAttached&&t.detached()}},{key:"contentSelectorRemoveAt",value:function(t){var n=this.children[t],r=this.contentSelectors,i,s;for(i=0,s=r.length;i<s;++i)r[i].removeAt(t,n.fragment);return this.children.splice(t,1),this.isAttached&&n.detached(),n}},{key:"contentSelectorRemoveAll",value:function(){var t=this.children,n=this.contentSelectors,r=t.length,i=n.length,s,o,u;for(s=0;s<r;++s){u=t[s];for(o=0;o<i;++o)n[o].removeAt(s,u.fragment)}if(this.isAttached)for(s=0;s<r;++s)t[s].detached();this.children=[]}}]),e}();e.ViewSlot=s}),define("aurelia-templating/view-factory",["exports","aurelia-dependency-injection","./view","./view-slot","./content-selector","./resource-registry"],function(e,t,n,r,i,s){function a(e){return e===Element?this.element:e===c?this.boundViewFactory||(this.boundViewFactory=new c(this,this.instruction.viewFactory,this.executionContext)):e===r.ViewSlot?(this.viewSlot===undefined&&(this.viewSlot=new r.ViewSlot(this.element,this.instruction.anchorIsContainer,this.executionContext),this.children.push(this.viewSlot)),this.viewSlot):e===s.ViewResources?this.viewResources:this.superGet(e)}function f(e,t,n,r,i,s){var o=e.createChild(),u,f;o.element=t,o.instruction=n,o.executionContext=r,o.children=i,o.viewResources=s,u=n.providers,f=u.length;while(f--)o.registerSingleton(u[f]);return o.superGet=o.get,o.get=a,o}function l(e,t,n,r,s,o,u,a,l){var c=r.behaviorInstructions,h=r.expressions,p,d,v,m,g;if(r.contentExpression){o.push(r.contentExpression.createBinding(n.nextSibling)),n.parentNode.removeChild(n);return}if(r.contentSelector){a.push(new i.ContentSelector(n,r.selector));return}if(c.length){e[r.injectorId]=p=f(e[r.parentInjectorId],n,r,t,u,l);for(d=0,v=c.length;d<v;++d)m=c[d],g=m.type.create(p,m,n,o),g.contentView&&u.push(g.contentView),s.push(g)}for(d=0,v=h.length;d<v;++d)o.push(h[d].createBinding(n))}var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function e(t,n,r){o(this,e),this.parentContainer=t,this.viewFactory=n,this.executionContext=r,this.factoryOptions={behaviorInstance:!1}}return u(e,[{key:"create",value:function(t){var n=this.parentContainer.createChild(),r=t||this.executionContext;return this.factoryOptions.systemControlled=!t,this.viewFactory.create(n,r,this.factoryOptions)}}]),e}();e.BoundViewFactory=c;var h={systemControlled:!1,suppressBind:!1},p=function(){function e(t,n,r){o(this,e),this.template=t,this.instructions=n,this.resources=r}return u(e,[{key:"create",value:function(t,r){var i=arguments[2]===undefined?h:arguments[2],s=this.template.cloneNode(!0),o=s.querySelectorAll(".au-target"),u=this.instructions,a=this.resources,f=[],c=[],p=[],d=[],v={root:t},m,g,y;for(m=0,g=o.length;m<g;++m)l(v,r,o[m],u[m],f,c,p,d,a);return y=new n.View(s,f,c,p,i.systemControlled,d),y.created(r),i.suppressBind||y.bind(r),y}}]),e}();e.ViewFactory=p}),define("aurelia-templating/binding-language",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){t(this,e)}return n(e,[{key:"inspectAttribute",value:function(t,n,r){throw new Error("A BindingLanguage must implement inspectAttribute(...)")}},{key:"createAttributeInstruction",value:function(t,n,r,i){throw new Error("A BindingLanguage must implement createAttributeInstruction(...)")}},{key:"parseText",value:function(t,n){throw new Error("A BindingLanguage must implement parseText(...)")}}]),e}();e.BindingLanguage=r}),define("aurelia-templating/view-compiler",["exports","./resource-registry","./view-factory","./binding-language"],function(e,t,n,r){function f(){return++o}function l(e,t){var n=e.type,r=e.attrName,i=e.attributes,s,o,u,a=t.mapAttribute(r);a&&r in i&&a!==r&&(i[a]=i[r],delete i[r]);for(o in i)u=i[o],typeof u!="string"&&(s=n.attributes[o],s!==undefined?u.targetProperty=s.name:u.targetProperty=o)}function c(e){var t=e.getAttribute("class");e.setAttribute("class",t?t+=" au-target":"au-target")}var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=0,u={targetShadowDOM:!1},a=!!HTMLElement.prototype.createShadowRoot,h=function(){function e(t){i(this,e),this.bindingLanguage=t}return s(e,[{key:"compile",value:function(t,r){var i=arguments[2]===undefined?u:arguments[2],s=[],o=i.targetShadowDOM,f;return o=o&&a,i.beforeCompile&&i.beforeCompile(t),t.content?f=document.adoptNode(t.content,!0):f=t,this.compileNode(f,r,s,t,"root",!o),f.insertBefore(document.createComment("<view>"),f.firstChild),f.appendChild(document.createComment("</view>")),new n.ViewFactory(f,s,r)}},{key:"compileNode",value:function(t,n,r,i,s,o){switch(t.nodeType){case 1:return this.compileElement(t,n,r,i,s,o);case 3:var u=this.bindingLanguage.parseText(n,t.textContent);if(u){var a=document.createElement("au-marker");a.className="au-target",(t.parentNode||i).insertBefore(a,t),t.textContent=" ",r.push({contentExpression:u})}return t.nextSibling;case 11:var f=t.firstChild;while(f)f=this.compileNode(f,n,r,t,s,o)}return t.nextSibling}},{key:"compileElement",value:function(t,n,r,i,s,o){var u=t.tagName.toLowerCase(),a=t.attributes,h=[],p=[],d=[],v=this.bindingLanguage,m,g,y,b,w,E,S,x,T,N,C,k,L,A;if(u==="content")return o&&(r.push({parentInjectorId:s,contentSelector:!0,selector:t.getAttribute("select"),suppressBind:!0}),c(t)),t.nextSibling;u==="template"?g=this.compile(t,n):(y=n.getElement(u),y&&(b={type:y,attributes:{}},p.push(b)));for(E=0,S=a.length;E<S;++E){x=a[E],T=x.name,N=x.value,k=v.inspectAttribute(n,T,N),y=n.getAttribute(k.attrName),w=null,y?(A=n.mapAttribute(k.attrName),A&&(L=y.attributes[A],L&&(k.defaultBindingMode=L.defaultBindingMode,!k.command&&!k.expression&&(k.command=L.hasOptions?"options":null)))):b&&(w=b.type.attributes[k.attrName],w&&(k.defaultBindingMode=w.defaultBindingMode,!k.command&&!k.expression&&(k.command=w.hasOptions?"options":null))),w?C=v.createAttributeInstruction(n,t,k,b):C=v.createAttributeInstruction(n,t,k);if(C){C.alteredAttr&&(y=n.getAttribute(C.attrName));if(C.discrete)h.push(C);else if(y){C.type=y,l(C,n);if(y.liftsContent){C.originalAttrName=T,m=C;break}p.push(C)}else w?b.attributes[k.attrName].targetProperty=w.name:h.push(C.attributes[C.attrName])}else if(y){C={attrName:T,type:y,attributes:{}},C.attributes[n.mapAttribute(T)]=N;if(y.liftsContent){C.originalAttrName=T,m=C;break}p.push(C)}else w&&(b.attributes[T]=N)}if(m)m.viewFactory=g,t=m.type.compile(this,n,t,m,i),c(t),r.push({anchorIsContainer:!1,parentInjectorId:s,expressions:[],behaviorInstructions:[m],viewFactory:m.viewFactory,providers:[m.type.target]});else{for(E=0,S=p.length;E<S;++E)C=p[E],C.type.compile(this,n,t,C,i),d.push(C.type.target);var O=p.length?f():!1;if(h.length||p.length)c(t),r.push({anchorIsContainer:!0,injectorId:O,parentInjectorId:s,expressions:h,behaviorInstructions:p,providers:d});if(b&&b.type.skipContentProcessing)return t.nextSibling;var M=t.firstChild;while(M)M=this.compileNode(M,n,r,t,O||s,o)}return t.nextSibling}}],[{key:"inject",value:function(){return[r.BindingLanguage]}}]),e}();e.ViewCompiler=h}),define("aurelia-templating/util",["exports"],function(e){function n(e){return"-"+e.toLowerCase()}function r(e){return(e.charAt(0).toLowerCase()+e.slice(1)).replace(t,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.hyphenate=r;var t=/([A-Z])/g}),define("aurelia-templating/module-analyzer",["exports","aurelia-metadata","aurelia-loader","aurelia-binding","./html-behavior","./view-strategy","./util"],function(e,t,n,r,i,s,o){var u=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function e(t){u(this,e),this.id=t,this.moduleInstance=null,this.mainResource=null,this.resources=null,this.viewStrategy=null,this.isAnalyzed=!1}return a(e,[{key:"analyze",value:function(t){var n=this.mainResource,r=this.resources,i=this.viewStrategy,s,o,u;if(this.isAnalyzed)return;this.isAnalyzed=!0,n&&(u=n.metadata,u.viewStrategy=i,"analyze"in u&&!u.isAnalyzed&&(u.isAnalyzed=!0,u.analyze(t,n.value)));for(s=0,o=r.length;s<o;++s)n=r[s],u=n.metadata,u.viewStrategy=i,"analyze"in u&&!u.isAnalyzed&&(u.isAnalyzed=!0,u.analyze(t,n.value))}},{key:"register",value:function(t,n){var r,i,s=this.resources;this.mainResource&&(this.mainResource.metadata.register(t,n),n=null);for(r=0,i=s.length;r<i;++r)s[r].metadata.register(t,n),n=null}},{key:"load",value:function(t){var n=this.mainResource,r=this.resources,i,s,o,u;if(this.isLoaded)return Promise.resolve();this.isLoaded=!0,u=[],n&&(o=n.metadata,"load"in o&&!o.isLoaded&&(o.isLoaded=!0,u.push(o.load(t,n.value))));for(i=0,s=r.length;i<s;++i)n=r[i],o=n.metadata,"load"in o&&!o.isLoaded&&(o.isLoaded=!0,u.push(o.load(t,n.value)));return Promise.all(u)}}]),e}(),l=function h(e,n,r,s){u(this,h),s||(r||(r=t.Metadata.on(n)),s=r.first(t.ResourceType),s||(s=new i.HtmlBehaviorResource,s.elementName=o.hyphenate(e),r.add(s))),s instanceof i.HtmlBehaviorResource?s.elementName===undefined?s.elementName=o.hyphenate(e):s.attributeName===undefined?s.attributeName=o.hyphenate(e):s.attributeName===null&&s.elementName===null&&i.HtmlBehaviorResource.convention(e,s):s.name||(s.name=o.hyphenate(e)),this.metadata=s,this.value=n},c=function(){function e(){u(this,e),this.cache={}}return a(e,[{key:"getAnalysis",value:function(t){return this.cache[t]}},{key:"analyze",value:function(u,a,c){var h,p,d,v,m,g,y,b,w=[],E,S,x;x=this.cache[u];if(x)return x;x=new f(u),this.cache[u]=x,typeof a=="function"&&(a={"default":a}),c&&(h=new l(c,a[c]));for(g in a){b=a[g];if(g===c||typeof b!="function")continue;y=t.Metadata.on(b),m=y.first(t.ResourceType),m?(m.attributeName===null&&m.elementName===null&&i.HtmlBehaviorResource.convention(g,m),m.attributeName===null&&m.elementName===null&&(m.elementName=o.hyphenate(g)),!h&&m instanceof i.HtmlBehaviorResource&&m.elementName!==null?h=new l(g,b,y,m):w.push(new l(g,b,y,m))):b instanceof s.ViewStrategy?S=b:b instanceof n.TemplateRegistryEntry?S=new s.TemplateRegistryViewStrategy(u,b):(E=i.HtmlBehaviorResource.convention(g))?(E.elementName!==null&&!h?h=new l(g,b,y,E):w.push(new l(g,b,y,E)),y.add(E)):(E=r.ValueConverterResource.convention(g))?(w.push(new l(g,b,y,E)),y.add(E)):p||(p=b,d=g,v=y)}return!h&&p&&(h=new l(d,p,v)),x.moduleInstance=a,x.mainResource=h,x.resources=w,x.viewStrategy=S,x}}]),e}();e.ModuleAnalyzer=c}),define("aurelia-templating/view-engine",["exports","core-js","aurelia-logging","aurelia-metadata","aurelia-loader","aurelia-dependency-injection","./view-compiler","./resource-registry","./module-analyzer"],function(e,t,n,r,i,s,o,u,a){function d(e,t){return t instanceof i.TemplateRegistryEntry?Promise.resolve(t):e.loadTemplate(t)}var f=function(e){return e&&e.__esModule?e["default"]:e},l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var h=f(t),p=n.getLogger("templating"),v=function(){function e(t,n,r,i,s){l(this,e),this.loader=t,this.container=n,this.viewCompiler=r,this.moduleAnalyzer=i,this.appResources=s}return c(e,[{key:"loadViewFactory",value:function(t,n,r){var i=this;return d(this.loader,t).then(function(e){return e.isReady?e.factory:i.loadTemplateResources(e,r).then(function(t){if(e.isReady)return e.factory;e.setResources(t);var r=i.viewCompiler.compile(e.template,t,n);return e.setFactory(r),r})})}},{key:"loadTemplateResources",value:function(t,n){var r=new u.ViewResources(this.appResources,t.id),i=t.dependencies,s,o;return i.length===0&&!n?Promise.resolve(r):(s=i.map(function(e){return e.src}),o=i.map(function(e){return e.name}),p.debug("importing resources for "+t.id,s),this.importViewResources(s,o,r,n))}},{key:"importViewModelResource",value:function(t,n){var i=this;return this.loader.loadModule(t).then(function(e){var s=r.Origin.get(e).moduleId,o=i.moduleAnalyzer.analyze(s,e,n);if(!o.mainResource)throw new Error('No view model found in module "'+t+'".');return o.analyze(i.container),o.mainResource})}},{key:"importViewResources",value:function(t,n,i,s){var o=this;return this.loader.loadAllModules(t).then(function(e){var t,u,a,f,l,c,h=o.container,p=o.moduleAnalyzer,d=new Array(e.length);for(t=0,u=e.length;t<u;++t)l=e[t],f=r.Origin.get(l).moduleId,a=p.analyze(f,l),a.analyze(h),a.register(i,n[t]),d[t]=a;s&&(c=p.getAnalysis(s),c&&c.register(i));for(t=0,u=d.length;t<u;++t)d[t]=d[t].load(h);return Promise.all(d).then(function(){return i})})}}],[{key:"inject",value:function(){return[i.Loader,s.Container,o.ViewCompiler,a.ModuleAnalyzer,u.ResourceRegistry]}}]),e}();e.ViewEngine=v}),define("aurelia-templating/bindable-property",["exports","core-js","./util","aurelia-binding"],function(e,t,n,r){function a(e,t,n){var r=t.__observers__;return r===undefined&&(r=e.observerLocator.getObserversLookup(t),e.ensurePropertiesDefined(t,r)),r[n]}var i=function(e){return e&&e.__esModule?e["default"]:e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=i(t),f=function(){function e(t){s(this,e),typeof t=="string"?this.name=t:Object.assign(this,t),this.attribute=this.attribute||n.hyphenate(this.name),this.defaultBindingMode=this.defaultBindingMode||r.ONE_WAY,this.owner=null}return o(e,[{key:"registerWith",value:function(t,n){n.properties.push(this),n.attributes[this.attribute]=this,this.owner=n}},{key:"defineOn",value:function(t,n){var r=this.name,i;this.changeHandler===undefined&&(i=r+"Changed",i in t.prototype&&(this.changeHandler=i)),Object.defineProperty(t.prototype,r,{configurable:!0,enumerable:!0,get:function(){return a(n,this,r).getValue()},set:function(t){a(n,this,r).setValue(t)}})}},{key:"createObserver",value:function(t){var n=this,r=null;if(this.hasOptions)return;return this.changeHandler!==undefined&&(r=function(e,r){return t[n.changeHandler](e,r)}),new l(this.owner.taskQueue,t,this.name,r)}},{key:"initialize",value:function(t,n,r,i,s){var o,u,a;if(this.isDynamic)for(var f in r)this.createDynamicProperty(t,n,i,f,r[f],s);else this.hasOptions||(u=n[this.name],r!==undefined&&(o=u.selfSubscriber,a=r[this.attribute],i&&(u.selfSubscriber=null),typeof a=="string"?(t[this.name]=a,u.call()):a?s.push({observer:u,binding:a.createBinding(t)}):this.defaultValue&&(t[this.name]=this.defaultValue,u.call()),u.selfSubscriber=o),u.publishing=!0)}},{key:"createDynamicProperty",value:function(t,n,r,i,s,o){var u=i+"Changed",a=null,f,c;u in t?a=function(e,n){return t[u](e,n)}:"dynamicPropertyChanged"in t&&(a=function(e,n){return t.dynamicPropertyChanged(i,e,n)}),f=n[i]=new l(this.owner.taskQueue,t,i,a),Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get:f.getValue.bind(f),set:f.setValue.bind(f)}),r&&(f.selfSubscriber=null),typeof s=="string"?(t[i]=s,f.call()):s&&(c={observer:f,binding:s.createBinding(t)},o.push(c)),f.publishing=!0,f.selfSubscriber=a}}]),e}();e.BindableProperty=f;var l=function(){function e(t,n,r,i){s(this,e),this.taskQueue=t,this.obj=n,this.propertyName=r,this.callbacks=[],this.notqueued=!0,this.publishing=!1,this.selfSubscriber=i}return o(e,[{key:"getValue",value:function(){return this.currentValue}},{key:"setValue",value:function(t){var n=this.currentValue;n!=t&&(this.publishing&&this.notqueued&&(this.notqueued=!1,this.taskQueue.queueMicroTask(this)),this.oldValue=n,this.currentValue=t)}},{key:"call",value:function(){var t=this.callbacks,n=t.length,r=this.oldValue,i=this.currentValue;this.notqueued=!0;if(i!=r){this.selfSubscriber!==null&&this.selfSubscriber(i,r);while(n--)t[n](i,r);this.oldValue=i}}},{key:"subscribe",value:function(t){var n=this.callbacks;return n.push(t),function(){n.splice(n.indexOf(t),1)}}}]),e}()}),define("aurelia-templating/behavior-instance",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i){t(this,e),this.behavior=n,this.executionContext=r,this.isAttached=!1;var s=n.observerLocator.getObserversLookup(r),o=n.handlesBind,u=i.attributes,a=this.boundProperties=[],f=n.properties,l,c;n.ensurePropertiesDefined(r,s);for(l=0,c=f.length;l<c;++l)f[l].initialize(r,s,u,o,a)}return n(e,[{key:"created",value:function(t){this.behavior.handlesCreated&&this.executionContext.created(t)}},{key:"bind",value:function(t){var n=this.behavior.handlesBind,r=this.boundProperties,i,s,o,u,a;for(i=0,s=r.length;i<s;++i)o=r[i],u=o.observer,a=u.selfSubscriber,u.publishing=!1,n&&(u.selfSubscriber=null),o.binding.bind(t),u.call(),u.publishing=!0,u.selfSubscriber=a;n&&this.executionContext.bind(t),this.view&&this.view.bind(this.executionContext)}},{key:"unbind",value:function(){var t=this.boundProperties,n,r;this.view&&this.view.unbind(),this.behavior.handlesUnbind&&this.executionContext.unbind();for(n=0,r=t.length;n<r;++n)t[n].binding.unbind()}},{key:"attached",value:function(){if(this.isAttached)return;this.isAttached=!0,this.behavior.handlesAttached&&this.executionContext.attached(),this.view&&this.view.attached()}},{key:"detached",value:function(){this.isAttached&&(this.isAttached=!1,this.view&&this.view.detached(),this.behavior.handlesDetached&&this.executionContext.detached())}}]),e}();e.BehaviorInstance=r}),define("aurelia-templating/html-behavior",["exports","aurelia-metadata","aurelia-binding","aurelia-task-queue","./view-strategy","./view-engine","./content-selector","./util","./bindable-property","./behavior-instance"],function(e,t,n,r,i,s,o,u,a,f){var l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function y(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:y(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},p=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var d={suppressBind:!1},v={suppressBind:!0},m=!!HTMLElement.prototype.createShadowRoot,g=function(e){function g(){l(this,g),h(Object.getPrototypeOf(g.prototype),"constructor",this).call(this),this.elementName=null,this.attributeName=null,this.liftsContent=!1,this.targetShadowDOM=!1,this.skipContentProcessing=!1,this.usesShadowDOM=!1,this.childExpression=null,this.hasDynamicOptions=!1,this.properties=[],this.attributes={}}return p(g,e),c(g,[{key:"analyze",value:function(t,i){var s=i.prototype,o=this.properties,u=this.attributeName,f,l,c;this.observerLocator=t.get(n.ObserverLocator),this.taskQueue=t.get(r.TaskQueue),this.target=i,this.usesShadowDOM=this.targetShadowDOM&&m,this.handlesCreated="created"in s,this.handlesBind="bind"in s,this.handlesUnbind="unbind"in s,this.handlesAttached="attached"in s,this.handlesDetached="detached"in s,this.apiName=(this.elementName||this.attributeName).replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});if(u!==null){o.length===0&&(new a.BindableProperty({name:"value",changeHandler:"valueChanged"in s?"valueChanged":null,attribute:u})).registerWith(i,this);if(o.length===1)c=o[0],c.isDynamic=c.hasOptions=this.hasDynamicOptions,c.defineOn(i,this);else{for(f=0,l=o.length;f<l;++f)o[f].defineOn(i,this);c=new a.BindableProperty({name:"value",changeHandler:"valueChanged"in s?"valueChanged":null,attribute:u}),c.hasOptions=!0,c.registerWith(i,this)}}else for(f=0,l=o.length;f<l;++f)o[f].defineOn(i,this)}},{key:"load",value:function(n,r,o,u){var a=this,f;return this.elementName!==null?(o=o||this.viewStrategy||i.ViewStrategy.getDefault(r),f={targetShadowDOM:this.targetShadowDOM,beforeCompile:r.beforeCompile},o.moduleId||(o.moduleId=t.Origin.get(r).moduleId),o.loadViewFactory(n.get(s.ViewEngine),f).then(function(e){return u||(a.viewFactory=e),e})):Promise.resolve(this)}},{key:"register",value:function(t,n){this.attributeName!==null&&t.registerAttribute(n||this.attributeName,this,this.attributeName),this.elementName!==null&&t.registerElement(n||this.elementName,this)}},{key:"compile",value:function(t,n,r,i,s){if(this.liftsContent){if(!i.viewFactory){var o=document.createElement("template"),u=document.createDocumentFragment();r.removeAttribute(i.originalAttrName),r.parentNode?r.parentNode.replaceChild(o,r):window.ShadowDOMPolyfill?ShadowDOMPolyfill.unwrap(s).replaceChild(ShadowDOMPolyfill.unwrap(o),ShadowDOMPolyfill.unwrap(r)):s.replaceChild(o,r),u.appendChild(r),i.viewFactory=t.compile(u,n),r=o}}else if(this.elementName!==null&&!this.usesShadowDOM&&!this.skipContentProcessing&&r.hasChildNodes()){var u=document.createDocumentFragment(),a=r.firstChild,f;while(a)f=a.nextSibling,u.appendChild(a),a=f;i.contentFactory=t.compile(u,n)}return i.suppressBind=!0,r}},{key:"create",value:function(t,n,r,i){var s=arguments[1]===undefined?d:arguments[1],u=arguments[2]===undefined?null:arguments[2],a=s.executionContext||t.get(this.target),l=new f.BehaviorInstance(this,a,s),c,h;if(this.liftsContent)u.primaryBehavior=l;else if(this.elementName!==null){c=s.viewFactory||this.viewFactory,c&&(l.view=c.create(t,l.executionContext,s));if(u){u.primaryBehavior=l;if(l.view){if(this.usesShadowDOM)h=u.createShadowRoot();else{h=u;if(s.contentFactory){var p=s.contentFactory.create(t,null,v);o.ContentSelector.applySelectors(p,l.view.contentSelectors,function(e,t){return e.add(t)}),l.contentView=p}}this.childExpression&&l.view.addBinding(this.childExpression.createBinding(h,l.executionContext)),l.view.appendNodesTo(h)}}else l.view&&(l.view.owner=l)}else this.childExpression&&i.push(this.childExpression.createBinding(u,l.executionContext));return u&&!(this.apiName in u)&&(u[this.apiName]=l.executionContext),l}},{key:"ensurePropertiesDefined",value:function(t,n){var r,i,s,o;if("__propertiesDefined__"in n)return;n.__propertiesDefined__=!0,r=this.properties;for(i=0,s=r.length;i<s;++i)o=r[i].createObserver(t),o!==undefined&&(n[o.propertyName]=o)}}],[{key:"convention",value:function(t,n){var r;return t.endsWith("CustomAttribute")&&(r=n||new g,r.attributeName=u.hyphenate(t.substring(0,t.length-15))),t.endsWith("CustomElement")&&(r=n||new g,r.elementName=u.hyphenate(t.substring(0,t.length-13))),r}}]),g}(t.ResourceType);e.HtmlBehaviorResource=g}),define("aurelia-templating/children",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=[],i=function(){function e(n,r,i){t(this,e),this.selector=i,this.changeHandler=r,this.property=n}return n(e,[{key:"createBinding",value:function(t,n){return new s(this.selector,t,this.property,n,this.changeHandler)}}]),e}();e.ChildObserver=i;var s=function(){function e(n,r,i,s,o){t(this,e),this.selector=n,this.target=r,this.property=i,this.behavior=s,this.changeHandler=o,this.observer=new MutationObserver(this.onChange.bind(this))}return n(e,[{key:"bind",value:function(t){var n,i,s,o,u,a=this.behavior;this.observer.observe(this.target,{childList:!0,subtree:!0}),n=a[this.property],n?n.length=0:n=a[this.property]=[],i=this.target.querySelectorAll(this.selector);for(s=0,o=i.length;s<o;++s)u=i[s],n.push(u.primaryBehavior?u.primaryBehavior.executionContext:u);this.changeHandler&&this.behavior[this.changeHandler](r)}},{key:"unbind",value:function(){this.observer.disconnect()}},{key:"onChange",value:function(t){var n=this.behavior[this.property],r=this.selector;t.forEach(function(e){var t=e.addedNodes,i=e.removedNodes,s=e.previousSibling,o,u,a,f,l;for(o=0,u=i.length;o<u;++o)l=i[o],l.nodeType===1&&l.matches(r)&&(a=l.primaryBehavior?l.primaryBehavior.executionContext:l,f=n.indexOf(a),f!=-1&&n.splice(f,1));for(o=0,u=t.length;o<u;++o){l=t[o];if(l.nodeType===1&&l.matches(r)){a=l.primaryBehavior?l.primaryBehavior.executionContext:l,f=0;while(s)s.nodeType===1&&s.matches(r)&&f++,s=s.previousSibling;n.splice(f,0,a)}}}),this.changeHandler&&this.behavior[this.changeHandler](t)}}]),e}();e.ChildObserverBinder=s}),define("aurelia-templating/element-config",["exports","aurelia-metadata","aurelia-binding"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var o=function(e){function t(){r(this,t),e!=null&&e.apply(this,arguments)}return s(t,e),i(t,[{key:"load",value:function(t,r){var i=new r,s=t.get(n.EventManager);return s.registerElementConfig(i),Promise.resolve(this)}},{key:"register",value:function(){}}]),t}(t.ResourceType);e.ElementConfigResource=o}),define("aurelia-templating/composition-engine",["exports","aurelia-metadata","./view-strategy","./view-engine","./html-behavior"],function(e,t,n,r,i){var s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function e(t){s(this,e),this.viewEngine=t}return o(e,[{key:"activate",value:function(t){return t.skipActivation||typeof t.viewModel.activate!="function"?Promise.resolve():t.viewModel.activate(t.model)||Promise.resolve()}},{key:"createBehaviorAndSwap",value:function(t){return this.createBehavior(t).then(function(e){return e.view.bind(e.executionContext),t.viewSlot.swap(e.view),t.currentBehavior&&t.currentBehavior.unbind(),e})}},{key:"createBehavior",value:function(r){var s=r.childContainer,o=r.viewModelResource,u=r.viewModel,a;return this.activate(r).then(function(){var e,f,l;return"getViewStrategy"in u&&!r.view&&(f=!0,r.view=n.ViewStrategy.normalize(u.getViewStrategy())),r.view&&(f?(l=t.Origin.get(u.constructor),l&&r.view.makeRelativeTo(l.moduleId)):r.viewResources&&r.view.makeRelativeTo(r.viewResources.viewUrl)),o?(a=o.metadata,e=a.load(s,o.value,r.view,!0)):(a=new i.HtmlBehaviorResource,a.elementName="dynamic-element",e=a.load(s,u.constructor,r.view,!0)),e.then(function(e){return a.create(s,{executionContext:u,viewFactory:e,suppressBind:!0})})})}},{key:"createViewModel",value:function(t){var n=t.childContainer||t.container.createChild();return t.viewModel=t.viewResources?t.viewResources.relativeToView(t.viewModel):t.viewModel,this.viewEngine.importViewModelResource(t.viewModel).then(function(e){return n.autoRegister(e.value),t.viewModel=n.viewModel=n.get(e.value),t.viewModelResource=e,t})}},{key:"compose",value:function(t){var r=this;t.childContainer=t.childContainer||t.container.createChild(),t.view=n.ViewStrategy.normalize(t.view);if(t.viewModel)return typeof t.viewModel=="string"?this.createViewModel(t).then(function(e){return r.createBehaviorAndSwap(e)}):this.createBehaviorAndSwap(t);if(t.view)return t.viewResources&&t.view.makeRelativeTo(t.viewResources.viewUrl),t.view.loadViewFactory(this.viewEngine).then(function(e){var n=e.create(t.childContainer,t.executionContext);return t.viewSlot.swap(n),n});if(t.viewSlot)return t.viewSlot.removeAll(),Promise.resolve(null)}}],[{key:"inject",value:function(){return[r.ViewEngine]}}]),e}();e.CompositionEngine=u}),define("aurelia-templating/decorators",["exports","core-js","aurelia-metadata","./bindable-property","./children","./element-config","./view-strategy","./html-behavior"],function(e,t,n,r,i,s,o,u){function l(e){return function(t){var r=n.Metadata.on(t);if(e instanceof u.HtmlBehaviorResource)r.add(e);else{var i=r.firstOrAdd(u.HtmlBehaviorResource);Object.assign(i,e)}}}function c(e){return function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.elementName=e}}function h(e){return function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.attributeName=e}}function p(e){var t=function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.liftsContent=!0};return e?t(e):t}function d(e,t,i){var s=function(i,s,o){var a=n.Metadata.on(i).firstOrAdd(u.HtmlBehaviorResource),f;s&&(e=e||{},e.name=s),f=new r.BindableProperty(e),f.registerWith(i,a)};if(!e)return s;if(t){var o=e.constructor;return e=null,s(o,t,i)}return s}function v(e){var t=function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.hasDynamicOptions=!0};return e?t(e):t}function m(e,t,r){return function(s){var o=n.Metadata.on(s).firstOrAdd(u.HtmlBehaviorResource);o.childExpression=new i.ChildObserver(e,t,r)}}function g(e){var t=function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.useShadowDOM=!0};return e?t(e):t}function y(e){var t=function(t){var r=n.Metadata.on(t).firstOrAdd(u.HtmlBehaviorResource);r.skipContentProcessing=!0};return e?t(e):t}function b(e){return function(t){n.Metadata.on(t).add(new o.UseViewStrategy(e))}}function w(e){var t=function(t){n.Metadata.on(t).add(new o.NoViewStrategy)};return e?t(e):t}function E(e){var t=function(t){n.Metadata.on(t).add(new s.ElementConfigResource)};return e?t(e):t}var a=function(e){return e&&e.__esModule?e["default"]:e};Object.defineProperty(e,"__esModule",{value:!0}),e.behavior=l,e.customElement=c,e.customAttribute=h,e.templateController=p,e.bindable=d,e.dynamicOptions=v,e.syncChildren=m,e.useShadowDOM=g,e.skipContentProcessing=y,e.useView=b,e.noView=w,e.elementConfig=E;var f=a(t);n.Decorators.configure.parameterizedDecorator("behavior",l),n.Decorators.configure.parameterizedDecorator("customElement",c),n.Decorators.configure.parameterizedDecorator("customAttribute",h),n.Decorators.configure.simpleDecorator("templateController",p),n.Decorators.configure.parameterizedDecorator("bindable",d),n.Decorators.configure.simpleDecorator("dynamicOptions",v),n.Decorators.configure.parameterizedDecorator("syncChildren",m),n.Decorators.configure.simpleDecorator("useShadowDOM",g),n.Decorators.configure.simpleDecorator("skipContentProcessing",y),n.Decorators.configure.parameterizedDecorator("useView",b),n.Decorators.configure.simpleDecorator("noView",w),n.Decorators.configure.simpleDecorator("elementConfig",E)}),define("aurelia-templating/index",["exports","./html-behavior","./bindable-property","./resource-registry","./children","./element-config","./view-strategy","./view-compiler","./view-engine","./view-factory","./view-slot","./binding-language","./composition-engine","./animator","./decorators"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){var v=function(e){return e&&e.__esModule?e:{"default":e}},m=function(e,t){var n=Object.getOwnPropertyNames(t);for(var r=0;r<n.length;r++){var i=n[r],s=Object.getOwnPropertyDescriptor(t,i);s&&s.configurable&&e[i]===undefined&&Object.defineProperty(e,i,s)}return e};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HtmlBehaviorResource",{enumerable:!0,get:function(){return t.HtmlBehaviorResource}}),Object.defineProperty(e,"BindableProperty",{enumerable:!0,get:function(){return n.BindableProperty}}),Object.defineProperty(e,"ResourceRegistry",{enumerable:!0,get:function(){return r.ResourceRegistry}}),Object.defineProperty(e,"ViewResources",{enumerable:!0,get:function(){return r.ViewResources}}),Object.defineProperty(e,"ChildObserver",{enumerable:!0,get:function(){return i.ChildObserver}}),Object.defineProperty(e,"ElementConfigResource",{enumerable:!0,get:function(){return s.ElementConfigResource}}),Object.defineProperty(e,"ViewStrategy",{enumerable:!0,get:function(){return o.ViewStrategy}}),Object.defineProperty(e,"UseViewStrategy",{enumerable:!0,get:function(){return o.UseViewStrategy}}),Object.defineProperty(e,"ConventionalViewStrategy",{enumerable:!0,get:function(){return o.ConventionalViewStrategy}}),Object.defineProperty(e,"NoViewStrategy",{enumerable:!0,get:function(){return o.NoViewStrategy}}),Object.defineProperty(e,"ViewCompiler",{enumerable:!0,get:function(){return u.ViewCompiler}}),Object.defineProperty(e,"ViewEngine",{enumerable:!0,get:function(){return a.ViewEngine}}),Object.defineProperty(e,"ViewFactory",{enumerable:!0,get:function(){return f.ViewFactory}}),Object.defineProperty(e,"BoundViewFactory",{enumerable:!0,get:function(){return f.BoundViewFactory}}),Object.defineProperty(e,"ViewSlot",{enumerable:!0,get:function(){return l.ViewSlot}}),Object.defineProperty(e,"BindingLanguage",{enumerable:!0,get:function(){return c.BindingLanguage}}),Object.defineProperty(e,"CompositionEngine",{enumerable:!0,get:function(){return h.CompositionEngine}}),Object.defineProperty(e,"Animator",{enumerable:!0,get:function(){return p.Animator}}),m(e,v(d))}),define("aurelia-templating",["aurelia-templating/index"],function(e){return e}),define("aurelia-framework/aurelia",["exports","core-js","aurelia-logging","aurelia-dependency-injection","aurelia-loader","aurelia-path","./plugins","aurelia-templating"],function(e,t,n,r,i,s,o,u){function v(){document.body.addEventListener("submit",function(e){var t=e.target,n=t.action;t.tagName.toLowerCase()==="form"&&!n&&e.preventDefault()})}function m(e,t,n){var r=e.get(u.ViewEngine),i=Object.keys(t),s=new Array(i.length),o,a;for(o=0,a=i.length;o<a;++o)s[o]=t[i[o]];return r.importViewResources(i,s,n)}var a=function(e){return e&&e.__esModule?e["default"]:e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var c=a(t),h=n.getLogger("aurelia"),p=Array.prototype.slice;if(!window.CustomEvent||typeof window.CustomEvent!="function"){var d=function(t,n){var n=n||{bubbles:!1,cancelable:!1,detail:undefined},r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};d.prototype=window.Event.prototype,window.CustomEvent=d}var g=function(){function e(t,n,s){f(this,e),this.loader=t||new window.AureliaLoader,this.container=n||new r.Container,this.resources=s||new u.ResourceRegistry,this.use=new o.Plugins(this),this.resourcesToLoad={},this.withInstance(e,this),this.withInstance(i.Loader,this.loader),this.withInstance(u.ResourceRegistry,this.resources)}return l(e,[{key:"withInstance",value:function(t,n){return this.container.registerInstance(t,n),this}},{key:"withSingleton",value:function(t,n){return this.container.registerSingleton(t,n),this}},{key:"globalizeResources",value:function(t){var n=Array.isArray(t)?t:arguments,r,i,o=this.currentPluginId||"",u,a=o.startsWith("./");for(r=0,i=n.length;r<i;++r)u=a?s.relativeToFile(n[r],o):s.join(o,n[r]),this.resourcesToLoad[u]=this.resourcesToLoad[u];return this}},{key:"renameGlobalResource",value:function(t,n){return this.resourcesToLoad[t]=n,this}},{key:"start",value:function(){var t=this;return this.started?Promise.resolve(this):(this.started=!0,h.info("Aurelia Starting"),v(),this.use._process().then(function(){if(!t.container.hasHandler(u.BindingLanguage)){var e="You must configure Aurelia with a BindingLanguage implementation.";throw h.error(e),new Error(e)}return t.container.hasHandler(u.Animator)||u.Animator.configureDefault(t.container),m(t.container,t.resourcesToLoad,t.resources).then(function(){h.info("Aurelia Started");var e=new window.CustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return document.dispatchEvent(e),t})}))}},{key:"setRoot",value:function(){var t=this,n=arguments[0]===undefined?"app":arguments[0],r=arguments[1]===undefined?null:arguments[1],i,s={};return!r||typeof r=="string"?this.host=document.getElementById(r||"applicationHost")||document.body:this.host=r,this.host.aurelia=this,this.container.registerInstance(Element,this.host),i=this.container.get(u.CompositionEngine),s.viewModel=n,s.container=s.childContainer=this.container,s.viewSlot=new u.ViewSlot(this.host,!0),s.viewSlot.transformChildNodesIntoView(),i.compose(s).then(function(e){t.root=e,s.viewSlot.attached();var n=new window.CustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});return setTimeout(function(){return document.dispatchEvent(n)},1),t})}}]),e}();e.Aurelia=g}),define("aurelia-framework/index",["exports","aurelia-logging","./aurelia","aurelia-dependency-injection","aurelia-binding","aurelia-metadata","aurelia-templating","aurelia-loader","aurelia-task-queue"],function(e,t,n,r,i,s,o,u,a){var f=function(e){return e&&e.__esModule?e:{"default":e}},l=function(e,t){var n=Object.getOwnPropertyNames(t);for(var r=0;r<n.length;r++){var i=n[r],s=Object.getOwnPropertyDescriptor(t,i);s&&s.configurable&&e[i]===undefined&&Object.defineProperty(e,i,s)}return e};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Aurelia",{enumerable:!0,get:function(){return n.Aurelia}}),l(e,f(r)),l(e,f(i)),l(e,f(s)),l(e,f(o)),l(e,f(u)),l(e,f(a));var c=t;e.LogManager=c}),define("aurelia-framework",["aurelia-framework/index"],function(e){return e}),define("aurelia-route-recognizer/dsl",["exports","core-js"],function(e,t){function a(e,t,n){return function(r,i){var s=e+r;if(!i)return new o(e+r,t,n);i(a(s,t,n))}}function f(e,t,n){var r=0;for(var i=0,s=e.length;i<s;i++)r+=e[i].path.length;t=t.substr(r);var o={path:t,handler:n};e.push(o)}function l(e,t,n,r){var i=t.routes;for(var s in i)if(i.hasOwnProperty(s)){var o=e.slice();f(o,s,i[s]),t.children[s]?l(o,t.children[s],n,r):n.call(r,o)}}function c(e,t){var n=new u;e(a("",n,this.delegate)),l([],n,function(e){t?t(this,e):this.add(e)},this)}var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.map=c;var s=n(t),o=function(){function e(t,n,i){r(this,e),this.path=t,this.matcher=n,this.delegate=i}return i(e,[{key:"to",value:function(t,n){var r=this.delegate;r&&r.willAddRoute&&(t=r.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t);if(n){if(n.length===0)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,n,this.delegate)}return this}}]),e}(),u=function(){function e(t){r(this,e),this.routes={},this.children={},this.target=t}return i(e,[{key:"add",value:function(t,n){this.routes[t]=n}},{key:"addChild",value:function(n,r,i,s){var o=new e(r);this.children[n]=o;var u=a(n,o,s);s&&s.contextEntered&&s.contextEntered(r,u),i(u)}}]),e}()}),define("aurelia-route-recognizer/index",["exports","core-js","./dsl"],function(e,t,n){function p(e,t,n){e.charAt(0)==="/"&&(e=e.substr(1));var r=[],i=!0,s=!1,o=undefined;try{for(var u=e.split("/")[Symbol.iterator](),a;!(i=(a=u.next()).done);i=!0){var p=a.value,d=undefined;(d=p.match(/^:([^\/]+)$/))?(r.push(new l(d[1])),t.push(d[1]),n.dynamics++):(d=p.match(/^\*([^\/]+)$/))?(r.push(new c(d[1])),t.push(d[1]),n.stars++):p===""?r.push(new h):(r.push(new f(p)),n.statics++)}}catch(v){s=!0,o=v}finally{try{!i&&u["return"]&&u["return"]()}finally{if(s)throw o}}return r}function v(e){return e.sort(function(e,t){if(e.types.stars!==t.types.stars)return e.types.stars-t.types.stars;if(e.types.stars){if(e.types.statics!==t.types.statics)return t.types.statics-e.types.statics;if(e.types.dynamics!==t.types.dynamics)return t.types.dynamics-e.types.dynamics}return e.types.dynamics!==t.types.dynamics?e.types.dynamics-t.types.dynamics:e.types.statics!==t.types.statics?t.types.statics-e.types.statics:0})}function m(e,t){var n=[];for(var r=0,i=e.length;r<i;r++){var s=e[r];n=n.concat(s.match(t))}return n}function y(e,t,n){var r=e.handlers,i=e.regex,s=t.match(i),o=1,u=new g(n);for(var a=0,f=r.length;a<f;a++){var l=r[a],c=l.names,h={};for(var p=0,d=c.length;p<d;p++)h[c[p]]=s[o++];u.push({handler:l.handler,params:h,isDynamic:!!c.length})}return u}function b(e,t){return t.eachChar(function(t){e=e.put(t)}),e}var r=function(e){return e&&e.__esModule?e["default"]:e},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(t),u=["/",".","*","+","?","|","(",")","[","]","{","}","\\"],a=new RegExp("(\\"+u.join("|\\")+")","g"),f=function(){function e(t){i(this,e),this.string=t}return s(e,[{key:"eachChar",value:function(t){var n=!0,r=!1,i=undefined;try{for(var s=this.string[Symbol.iterator](),o;!(n=(o=s.next()).done);n=!0){var u=o.value;t({validChars:u})}}catch(a){r=!0,i=a}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw i}}}},{key:"regex",value:function(){return this.string.replace(a,"\\$1")}},{key:"generate",value:function(){return this.string}}]),e}(),l=function(){function e(t){i(this,e),this.name=t}return s(e,[{key:"eachChar",value:function(t){t({invalidChars:"/",repeat:!0})}},{key:"regex",value:function(){return"([^/]+)"}},{key:"generate",value:function(t,n){return n[this.name]=!0,t[this.name]}}]),e}(),c=function(){function e(t){i(this,e),this.name=t}return s(e,[{key:"eachChar",value:function(t){t({invalidChars:"",repeat:!0})}},{key:"regex",value:function(){return"(.+)"}},{key:"generate",value:function(t,n){return n[this.name]=!0,t[this.name]}}]),e}(),h=function(){function e(){i(this,e)}return s(e,[{key:"eachChar",value:function(){}},{key:"regex",value:function(){return""}},{key:"generate",value:function(){return""}}]),e}(),d=function(){function e(t){i(this,e),this.charSpec=t,this.nextStates=[]}return s(e,[{key:"get",value:function(t){var n=!0,r=!1,i=undefined;try{for(var s=this.nextStates[Symbol.iterator](),o;!(n=(o=s.next()).done);n=!0){var u=o.value,a=u.charSpec.validChars===t.validChars&&u.charSpec.invalidChars===t.invalidChars;if(a)return u}}catch(f){r=!0,i=f}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw i}}}},{key:"put",value:function(n){var r=this.get(n);return r?r:(r=new e(n),this.nextStates.push(r),n.repeat&&r.nextStates.push(r),r)}},{key:"match",value:function(t){var n=this.nextStates,r=[],i,s,o;for(var u=0,a=n.length;u<a;u++)i=n[u],s=i.charSpec,typeof (o=s.validChars)!="undefined"?o.indexOf(t)!==-1&&r.push(i):typeof (o=s.invalidChars)!="undefined"&&o.indexOf(t)===-1&&r.push(i);return r}}]),e}(),g=function E(e){i(this,E),this.splice=Array.prototype.splice,this.slice=Array.prototype.slice,this.push=Array.prototype.push,this.length=0,this.queryParams=e||{}},w=function(){function e(){i(this,e),this.map=n.map,this.rootState=new d,this.names={}}return s(e,[{key:"add",value:function(t){if(Array.isArray(t)){var n=!0,r=!1,i=undefined;try{for(var s=t[Symbol.iterator](),o;!(n=(o=s.next()).done);n=!0){var u=o.value;this.add(u)}}catch(a){r=!0,i=a}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw i}}return}var f=this.rootState,l="^",c={statics:0,dynamics:0,stars:0},d=[],v=t.handler.name,m=!0,g=p(t.path,d,c),y=!0,w=!1,E=undefined;try{for(var S=g[Symbol.iterator](),x;!(y=(x=S.next()).done);y=!0){var T=x.value;if(T instanceof h)continue;m=!1,f=f.put({validChars:"/"}),l+="/",f=b(f,T),l+=T.regex()}}catch(a){w=!0,E=a}finally{try{!y&&S["return"]&&S["return"]()}finally{if(w)throw E}}m&&(f=f.put({validChars:"/"}),l+="/");var N=[{handler:t.handler,names:d}];return v&&(this.names[v]={segments:g,handlers:N}),f.handlers=N,f.regex=new RegExp(l+"$"),f.types=c,f}},{key:"handlersFor",value:function(t){var n=this.names[t],r=[];if(!n)throw new Error("There is no route named "+t);for(var i=0,s=n.handlers.length;i<s;i++)r.push(n.handlers[i]);return r}},{key:"hasRoute",value:function(t){return!!this.names[t]}},{key:"generate",value:function(t,n){n=Object.assign({},n);var r=this.names[t],i={},s="";if(!r)throw new Error("There is no route named "+t);var o=r.segments;for(var u=0,a=o.length;u<a;u++){var f=o[u];if(f instanceof h)continue;s+="/";var l=f.generate(n,i);if(l===null||l===undefined)throw new Error("A value is required for route parameter '"+f.name+"' in route '"+t+"'.");s+=l}s.charAt(0)!=="/"&&(s="/"+s);for(var c in i)delete n[c];return s+=this.generateQueryString(n),s}},{key:"generateQueryString",value:function(t){var n=[],r=[],i=encodeURIComponent;for(var s in t)t.hasOwnProperty(s)&&r.push(s);r.sort();for(var o=0,u=r.length;o<u;o++){s=r[o];var a=t[s];if(a===null||a===undefined)continue;if(Array.isArray(a)){var f=""+i(s)+"[]";for(var l=0,c=a.length;l<c;l++)n.push(""+f+"="+i(a[l]))}else n.push(""+i(s)+"="+i(a))}return n.length===0?"":"?"+n.join("&")}},{key:"parseQueryString",value:function(t){var n={};if(!t||typeof t!="string")return n;t.charAt(0)==="?"&&(t=t.substr(1));var r=t.split("&");for(var i=0;i<r.length;i++){var s=r[i].split("="),o=decodeURIComponent(s[0]),u=o.length,a=!1,f;if(!o)continue;s.length===1?f=!0:(u>2&&o.slice(u-2)==="[]"&&(a=!0,o=o.slice(0,u-2),n[o]||(n[o]=[])),f=s[1]?decodeURIComponent(s[1]):""),a?n[o].push(f):n[o]=f}return n}},{key:"recognize",value:function(t){var n=[this.rootState],r,i,s,o,u={},a=!1;o=t.indexOf("?");if(o!==-1){var f=t.substr(o+1,t.length);t=t.substr(0,o),u=this.parseQueryString(f)}t=decodeURI(t),t.charAt(0)!=="/"&&(t="/"+t),r=t.length,r>1&&t.charAt(r-1)==="/"&&(t=t.substr(0,r-1),a=!0);for(i=0,s=t.length;i<s;i++){n=m(n,t.charAt(i));if(!n.length)break}var l=[];for(i=0,s=n.length;i<s;i++)n[i].handlers&&l.push(n[i]);n=v(l);var c=l[0];if(c&&c.handlers)return a&&c.regex.source.slice(-5)==="(.+)$"&&(t+="/"),y(c,t,u)}}]),e}();e.RouteRecognizer=w}),define("aurelia-route-recognizer",["aurelia-route-recognizer/index"],function(e){return e}),define("aurelia-router/navigation-commands",["exports","core-js"],function(e,t){function o(e){return e&&typeof e.navigate=="function"}var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.isNavigationCommand=o;var s=n(t),u=function(){function e(t,n){r(this,e),this.url=t,this.options=Object.assign({trigger:!0,replace:!0},n||{}),this.shouldContinueProcessing=!1}return i(e,[{key:"setRouter",value:function(t){this.router=t}},{key:"navigate",value:function(t){var n=this.options.useAppRouter?t:this.router||t;n.navigate(this.url,this.options)}}]),e}();e.Redirect=u}),define("aurelia-router/navigation-plan",["exports","./navigation-commands"],function(e,t){function a(e,t){var r=e.prevInstruction,i=e.nextInstruction,f={},c;if(r){var h=l(r,i),p=[];for(c in r.viewPortInstructions){var d=r.viewPortInstructions[c],v=i.config.viewPorts[c],m=f[c]={name:c,config:v,prevComponent:d.component,prevModuleId:d.moduleId};if(d.moduleId!=v.moduleId)m.strategy=u;else if("determineActivationStrategy"in d.component.executionContext){var g;m.strategy=(g=d.component.executionContext).determineActivationStrategy.apply(g,n(i.lifecycleArgs))}else h||t?m.strategy=o:m.strategy=s;if(m.strategy!==u&&d.childRouter){var y=i.getWildcardPath(),b=d.childRouter.createNavigationInstruction(y,i).then(function(e){return m.childNavigationContext=d.childRouter.createNavigationContext(e),a(m.childNavigationContext,m.strategy==o).then(function(e){m.childNavigationContext.plan=e})});p.push(b)}}return Promise.all(p).then(function(){return f})}for(c in i.config.viewPorts)f[c]={name:c,strategy:u,config:i.config.viewPorts[c]};return Promise.resolve(f)}function l(e,t){var n=e.params,r=t.params,i=t.config.hasChildRouter?t.getWildCardName():null;for(var s in r){if(s==i)continue;if(n[s]!=r[s])return!0}return!1}var n=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.buildNavigationPlan=a;var s="no-change";e.NO_CHANGE=s;var o="invoke-lifecycle";e.INVOKE_LIFECYCLE=o;var u="replace";e.REPLACE=u;var f=function(){function e(){r(this,e)}return i(e,[{key:"run",value:function(n,r){return n.nextInstruction.config.redirect?r.cancel(new t.Redirect(n.nextInstruction.config.redirect)):a(n).then(function(e){return n.plan=e,r()})["catch"](r.cancel)}}]),e}();e.BuildNavigationPlanStep=f}),define("aurelia-router/navigation-context",["exports","./navigation-plan"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(t,r){n(this,e),this.router=t,this.nextInstruction=r,this.currentInstruction=t.currentInstruction,this.prevInstruction=t.currentInstruction}return r(e,[{key:"getAllContexts",value:function(){var t=arguments[0]===undefined?[]:arguments[0];t.push(this);if(this.plan)for(var n in this.plan)this.plan[n].childNavigationContext&&this.plan[n].childNavigationContext.getAllContexts(t);return t}},{key:"nextInstructions",get:function(){return this.getAllContexts().map(function(e){return e.nextInstruction}).filter(function(e){return e})}},{key:"currentInstructions",get:function(){return this.getAllContexts().map(function(e){return e.currentInstruction}).filter(function(e){return e})}},{key:"prevInstructions",get:function(){return this.getAllContexts().map(function(e){return e.prevInstruction}).filter(function(e){return e})}},{key:"commitChanges",value:function(n){var r=this.nextInstruction,i=this.prevInstruction,s=r.viewPortInstructions,o=this.router,u=[],a=[];o.currentInstruction=r,i&&(i.config.navModel.isActive=!1),r.config.navModel.isActive=!0,o.refreshBaseUrl(),o.refreshNavigation();for(var f in s){var l=s[f],c=o.viewPorts[f];if(!c)throw new Error("There was no router-view found in the view for "+l.moduleId+".");l.strategy===t.REPLACE?(n&&a.push({viewPort:c,viewPortInstruction:l}),u.push(c.process(l,n).then(function(e){if("childNavigationContext"in l)return l.childNavigationContext.commitChanges()}))):"childNavigationContext"in l&&u.push(l.childNavigationContext.commitChanges(n))}return Promise.all(u).then(function(){a.forEach(function(e){return e.viewPort.swap(e.viewPortInstruction)})})}},{key:"buildTitle",value:function(){var t=arguments[0]===undefined?" | ":arguments[0],n=this.nextInstruction,r=n.config.navModel.title||"",i=n.viewPortInstructions,s=[];for(var o in i){var u=i[o];if("childNavigationContext"in u){var a=u.childNavigationContext.buildTitle(t);a&&s.push(a)}}return s.length&&(r=s.join(t)+(r?t:"")+r),this.router.title&&(r+=(r?t:"")+this.router.title),r}}]),e}();e.NavigationContext=i;var s=function(){function e(){n(this,e)}return r(e,[{key:"run",value:function(t,n){return t.commitChanges(!0).then(function(){var e=t.buildTitle();return e&&(document.title=e),n()})}}]),e}();e.CommitChangesStep=s}),define("aurelia-router/navigation-instruction",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(n,r,i,s,o,u){t(this,e),this.fragment=n,this.queryString=r,this.params=i||{},this.queryParams=s,this.config=o,this.lifecycleArgs=[i,s,o,this],this.viewPortInstructions={},u&&(this.params.$parent=u.params)}return n(e,[{key:"addViewPortInstruction",value:function(t,n,r,i){return this.viewPortInstructions[t]={name:t,strategy:n,moduleId:r,component:i,childRouter:i.executionContext.router,lifecycleArgs:this.lifecycleArgs.slice()}}},{key:"getWildCardName",value:function(){var t=this.config.route.lastIndexOf("*");return this.config.route.substr(t+1)}},{key:"getWildcardPath",value:function(){var t=this.getWildCardName(),n=this.params[t];return this.queryString&&(n+="?"+this.queryString),n}},{key:"getBaseUrl",value:function(){if(!this.params)return this.fragment;var t=this.getWildCardName(),n=this.params[t];return n?this.fragment.substr(0,this.fragment.lastIndexOf(n)):this.fragment}}]),e}();e.NavigationInstruction=r}),define("aurelia-router/route-filters",["exports","aurelia-dependency-injection"],function(e,t){function o(e){function t(t){return new u(e,t)}return t.inject=function(){return[s]},t}var n=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createRouteFilterStep=o;var s=function(){function e(t){r(this,e),this.container=t,this.filters={},this.filterCache={}}return i(e,[{key:"addStep",value:function(t,n){var r=arguments[2]===undefined?-1:arguments[2],i=this.filters[t];i||(i=this.filters[t]=[]),r===-1&&(r=i.length),i.splice(r,0,n),this.filterCache={}}},{key:"getFilterSteps",value:function(t){if(this.filterCache[t])return this.filterCache[t];var r=[],i=this.filters[t];if(!i)return r;for(var s=0,o=i.length;s<o;s++)typeof i[s]=="string"?r.push.apply(r,n(this.getFilterSteps(i[s]))):r.push(this.container.get(i[s]));return this.filterCache[t]=r}}],[{key:"inject",value:function(){return[t.Container]}}]),e}();e.RouteFilterContainer=s;var u=function(){function e(t,n){r(this,e),this.name=t,this.routeFilterContainer=n,this.isMultiStep=!0}return i(e,[{key:"getSteps",value:function(){return this.routeFilterContainer.getFilterSteps(this.name)}}]),e}()}),define("aurelia-router/router-configuration",["exports","./route-filters"],function(e,t){function s(e,t,n){var r=e[t];return r||r===""?r:n(e)}function o(e){var t=e.indexOf(":"),n=t>0?t-1:e.length;return e.substr(0,n)}var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(){n(this,e),this.instructions=[],this.options={},this.pipelineSteps=[]}return r(e,[{key:"addPipelineStep",value:function(t,n){this.pipelineSteps.push({name:t,step:n})}},{key:"map",value:function(t,n){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.map(t[r]);return this}return typeof t=="string"?(n?typeof n=="string"&&(n={moduleId:n}):n={},n.route=t):n=t,this.mapRoute(n)}},{key:"mapRoute",value:function(t){var n=this;return this.instructions.push(function(e){if(Array.isArray(t.route)){var r={},i,s,o;for(i=0,s=t.route.length;i<s;++i)o=Object.assign({},t),o.route=t.route[i],n.configureRoute(e,o,r)}else n.configureRoute(e,Object.assign({},t))}),this}},{key:"mapUnknownRoutes",value:function(t){return this.unknownRouteConfig=t,this}},{key:"exportToRouter",value:function(n){var r=this.instructions,i=this.pipelineSteps,s,o,u;for(s=0,o=r.length;s<o;++s)r[s](n);this.title&&(n.title=this.title),this.unknownRouteConfig&&n.handleUnknownRoutes(this.unknownRouteConfig),n.options=this.options;if(i.length){if(!n.isRoot)throw new Error("Pipeline steps can only be added to the root router");u=n.container.get(t.RouteFilterContainer);for(s=0,o=i.length;s<o;++s){var a=i[s],f=a.name,l=a.step;u.addStep(f,l)}}}},{key:"configureRoute",value:function(t,n,r){this.ensureDefaultsForRouteConfig(n),t.addRoute(n,r)}},{key:"ensureDefaultsForRouteConfig",value:function(t){t.name=s(t,"name",this.deriveName),t.route=s(t,"route",this.deriveRoute),t.title=s(t,"title",this.deriveTitle),t.moduleId=s(t,"moduleId",this.deriveModuleId)}},{key:"deriveName",value:function(t){return t.title||(t.route?o(t.route):t.moduleId)}},{key:"deriveRoute",value:function(t){return t.moduleId||t.name}},{key:"deriveTitle",value:function(t){var n=t.name;return n?n.substr(0,1).toUpperCase()+n.substr(1):null}},{key:"deriveModuleId",value:function(t){return o(t.route)}}]),e}();e.RouterConfiguration=i}),define("aurelia-router/util",["exports"],function(e){function t(e,t,n){if(e&&typeof e.then=="function"){var r=e.then(t);return typeof r["catch"]=="function"?r["catch"](n):typeof r.fail=="function"?r.fail(n):r}try{return t(e)}catch(i){return n(i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.processPotential=t}),define("aurelia-router/router",["exports","core-js","aurelia-route-recognizer","aurelia-path","./navigation-context","./navigation-instruction","./router-configuration","./util"],function(e,t,n,r,i,s,o,u){function p(e){var t=typeof e=="object"&&e.moduleId&&e.route!==null&&e.route!==undefined;if(!t)throw new Error("Invalid route config.")}var a=function(e){return e&&e.__esModule?e["default"]:e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var c=a(t),h=function(){function e(t,n){f(this,e),this.container=t,this.history=n,this.viewPorts={},this.reset(),this.baseUrl="",this.isConfigured=!1}return l(e,[{key:"isRoot",get:function(){return!1}},{key:"registerViewPort",value:function(t,n){n=n||"default",this.viewPorts[n]=t}},{key:"refreshBaseUrl",value:function(){if(this.parent){var t=this.parent.currentInstruction.getBaseUrl();this.baseUrl=this.parent.baseUrl+t}}},{key:"refreshNavigation",value:function(){var t=this.navigation;for(var n=0,r=t.length;n<r;n++){var i=t[n];this.history._hasPushState?i.href="/"+this.baseUrl:this.baseUrl[0]=="/"?i.href="#"+this.baseUrl:i.href="#/"+this.baseUrl,i.href[i.href.length-1]!="/"&&(i.href+="/"),i.href+=i.relativeHref}}},{key:"configure",value:function(t){this.isConfigured=!0;if(typeof t=="function"){var n=new o.RouterConfiguration;t(n),n.exportToRouter(this)}else t.exportToRouter(this);return this}},{key:"navigate",value:function(t,n){return!this.isConfigured&&this.parent?this.parent.navigate(t,n):(t=r.join(this.baseUrl,t),t===""&&(t="/"),this.history.navigate(t,n))}},{key:"navigateBack",value:function(){this.history.navigateBack()}},{key:"createChild",value:function(n){var r=new e(n||this.container.createChild(),this.history);return r.parent=this,r}},{key:"createNavigationInstruction",value:function(){var t=arguments[0]===undefined?"":arguments[0],n=arguments[1]===undefined?null:arguments[1],r=this.recognizer.recognize(t),i,o,u;if(!r||!r.length)r=this.childRecognizer.recognize(t);i=t,o=i.indexOf("?"),o!=-1&&(i=t.substr(0,o),u=t.substr(o+1)),(!r||!r.length)&&this.catchAllHandler&&(r=[{config:{navModel:{}},handler:this.catchAllHandler,params:{path:i}}]);if(r&&r.length){var a=r[0],i=t,o=i.indexOf("?"),u;o!=-1&&(i=t.substr(0,o),u=t.substr(o+1));var f=new s.NavigationInstruction(i,u,a.params,a.queryParams||r.queryParams,a.config||a.handler,n);return typeof a.handler=="function"?a.handler(f).then(function(e){return"viewPorts"in e.config||(e.config.viewPorts={"default":{moduleId:e.config.moduleId}}),e}):Promise.resolve(f)}return Promise.reject(new Error("Route Not Found: "+t))}},{key:"createNavigationContext",value:function(t){return new i.NavigationContext(this,t)}},{key:"generate",value:function(t,n,r){r=r||{};if((!this.isConfigured||!this.recognizer.hasRoute(t))&&this.parent)return this.parent.generate(t,n,r);var i="",s=this.recognizer.generate(t,n);return r.absolute&&(i=(this.history.root||"")+this.baseUrl),i+s}},{key:"addRoute",value:function(t){var n=arguments[1]===undefined?{}:arguments[1];p(t),"viewPorts"in t||(t.viewPorts={"default":{moduleId:t.moduleId,view:t.view}}),n.title=n.title||t.title,n.settings=t.settings||(t.settings={}),this.routes.push(t);var r=this.recognizer.add({path:t.route,handler:t});if(t.route){var i,s=t.settings;delete t.settings,i=JSON.parse(JSON.stringify(t)),t.settings=s,i.route+="/*childRoute",i.hasChildRouter=!0,this.childRecognizer.add({path:i.route,handler:i}),i.navModel=n,i.settings=t.settings}t.navModel=n;if((t.nav||"order"in n)&&this.navigation.indexOf(n)===-1){n.order=n.order||t.nav,n.href=n.href||t.href,n.isActive=!1,n.config=t;if(!t.href){if(r.types.dynamics||r.types.stars)throw new Error("Invalid route config: dynamic routes must specify an href to be included in the navigation model.");n.relativeHref=t.route,n.href=""}typeof n.order!="number"&&(n.order=++this.fallbackOrder),this.navigation.push(n),this.navigation=this.navigation.sort(function(e,t){return e.order-t.order})}}},{key:"hasRoute",value:function(t){return!!(this.recognizer.hasRoute(t)||this.parent&&this.parent.hasRoute(t))}},{key:"hasOwnRoute",value:function(t){return this.recognizer.hasRoute(t)}},{key:"handleUnknownRoutes",value:function(t){var n=function(n){return new Promise(function(e,r){function i(t){t=t||n,t.config.route=t.params.path,e(t)}t?typeof t=="string"?(n.config.moduleId=t,i(n)):typeof t=="function"?u.processPotential(t(n),i,r):(n.config=t,i(n)):(n.config.moduleId=n.fragment,i(n))})};this.catchAllHandler=n}},{key:"reset",value:function(){this.fallbackOrder=100,this.recognizer=new n.RouteRecognizer,this.childRecognizer=new n.RouteRecognizer,this.routes=[],this.isNavigating=!1,this.navigation=[],this.isConfigured=!1}}]),e}();e.Router=h}),define("aurelia-router/pipeline",["exports","core-js"],function(e,t){function o(e,t){return{status:t.status,context:e,output:t.output,completed:t.status==u}}var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=n(t),u="completed";e.COMPLETED=u;var a="cancelled";e.CANCELLED=a;var f="rejected";e.REJECTED=f;var l="running";e.RUNNING=l;var c=function(){function e(){r(this,e),this.steps=[]}return i(e,[{key:"withStep",value:function(t){var n,r,i,s;if(typeof t=="function")n=t;else{if(t.isMultiStep){r=t.getSteps();for(i=0,s=r.length;i<s;i++)this.withStep(r[i]);return this}n=t.run.bind(t)}return this.steps.push(n),this}},{key:"run",value:function(t){var n=-1,r=this.steps,i,s;return i=function(){n++;if(!(n<r.length))return i.complete();s=r[n];try{return s(t,i)}catch(e){return i.reject(e)}},i.complete=function(e){return i.status=u,i.output=e,Promise.resolve(o(t,i))},i.cancel=function(e){return i.status=a,i.output=e,Promise.resolve(o(t,i))},i.reject=function(e){return i.status=f,i.output=e,Promise.reject(o(t,i))},i.status=l,i()}}]),e}();e.Pipeline=c}),define("aurelia-router/route-loading",["exports","./navigation-plan"],function(e,t){function u(e,t,n){var r=a(n),i=r.map(function(n){return f(e,t,n.navigationContext,n.viewPortPlan)});return Promise.all(i)}function a(e,n){var r=e.plan,i=e.nextInstruction;n=n||[];for(var s in r){var o=r[s];if(o.strategy==t.REPLACE)n.push({viewPortPlan:o,navigationContext:e}),o.childNavigationContext&&a(o.childNavigationContext,n);else{var u=i.addViewPortInstruction(s,o.strategy,o.prevModuleId,o.prevComponent);o.childNavigationContext&&(u.childNavigationContext=o.childNavigationContext,a(o.childNavigationContext,n))}}return n}function f(e,n,r,i){var s=i.config.moduleId,o=r.nextInstruction;return e.push(r.router),l(n,r,i.config).then(function(r){var a=o.addViewPortInstruction(i.name,i.strategy,s,r),f=r.executionContext;if(f.router&&f.router.isConfigured&&e.indexOf(f.router)===-1){var l=o.getWildcardPath();return f.router.createNavigationInstruction(l,o).then(function(r){return i.childNavigationContext=f.router.createNavigationContext(r),t.buildNavigationPlan(i.childNavigationContext).then(function(t){return i.childNavigationContext.plan=t,a.childNavigationContext=i.childNavigationContext,u(e,n,i.childNavigationContext)})})}})}function l(e,t,r){var i=t.router,s=t.nextInstruction.lifecycleArgs;return e.loadRoute(i,r).then(function(e){if("configureRouter"in e.executionContext){var t,o=(t=e.executionContext).configureRouter.apply(t,n(s))||Promise.resolve();return o.then(function(){return e})}return e.router=i,e.config=r,e})}var n=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.loadNewRoute=u;var s=function(){function e(){r(this,e)}return i(e,[{key:"loadRoute",value:function(t,n){throw Error('Route loaders must implment "loadRoute(router, config)".')}}]),e}();e.RouteLoader=s;var o=function(){function e(t){r(this,e),this.routeLoader=t}return i(e,[{key:"run",value:function(t,n){return u([],this.routeLoader,t).then(n)["catch"](n.cancel)}}],[{key:"inject",value:function(){return[s]}}]),e}();e.LoadRouteStep=o}),define("aurelia-router/activation",["exports","./navigation-plan","./navigation-commands","./util"],function(e,t,n,r){function h(e,t,n,i){function u(e){return i||g(e)?a():n.cancel(e)}function a(){if(!(o--))return n();try{var e=s[o],i=e[t]();return r.processPotential(i,u,n.cancel)}catch(a){return n.cancel(a)}}var s=p(e,t),o=s.length;return a()}function p(e,n,r){r=r||[];for(var i in e){var s=e[i],o=s.prevComponent;if((s.strategy==t.INVOKE_LIFECYCLE||s.strategy==t.REPLACE)&&o){var u=o.executionContext;n in u&&r.push(u)}s.childNavigationContext?p(s.childNavigationContext.plan,n,r):o&&d(o,n,r)}return r}function d(e,t,n){var r=e.executionContext;if(r.router&&r.router.currentInstruction){var i=r.router.currentInstruction.viewPortInstructions;for(var s in i){var o=i[s],u=o.component,a=u.executionContext;t in a&&n.push(a),d(u,t,n)}}}function v(e,t,n,s){function f(e,t){return s||g(e,t)?l():n.cancel(e)}function l(){a++;if(!(a<u))return n();try{var e,s=o[a],l=(e=s.controller)[t].apply(e,i(s.lifecycleArgs));return r.processPotential(l,function(e){return f(e,s.router)},n.cancel)}catch(c){return n.cancel(c)}}var o=m(e,t),u=o.length,a=-1;return l()}function m(e,n,r,i){var s=e.plan,o=e.nextInstruction;return r=r||[],Object.keys(s).filter(function(e){var u=s[e],a=o.viewPortInstructions[e],f=a.component.executionContext;(u.strategy===t.INVOKE_LIFECYCLE||u.strategy===t.REPLACE)&&n in f&&r.push({controller:f,lifecycleArgs:a.lifecycleArgs,router:i}),u.childNavigationContext&&m(u.childNavigationContext,n,r,f.router||i)}),r}function g(e,t){return e instanceof Error?!1:n.isNavigationCommand(e)?(typeof e.setRouter=="function"&&e.setRouter(t),!!e.shouldContinueProcessing):typeof e=="string"?u.indexOf(e.toLowerCase())!==-1:typeof e=="undefined"?!0:e}var i=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=["yes","ok","true"];e.affirmations=u;var a=function(){function e(){s(this,e)}return o(e,[{key:"run",value:function(t,n){return h(t.plan,"canDeactivate",n)}}]),e}();e.CanDeactivatePreviousStep=a;var f=function(){function e(){s(this,e)}return o(e,[{key:"run",value:function(t,n){return v(t,"canActivate",n)}}]),e}();e.CanActivateNextStep=f;var l=function(){function e(){s(this,e)}return o(e,[{key:"run",value:function(t,n){return h(t.plan,"deactivate",n,!0)}}]),e}();e.DeactivatePreviousStep=l;var c=function(){function e(){s(this,e)}return o(e,[{key:"run",value:function(t,n){return v(t,"activate",n,!0)}}]),e}();e.ActivateNextStep=c}),define("aurelia-router/pipeline-provider",["exports","aurelia-dependency-injection","./pipeline","./navigation-plan","./route-loading","./navigation-context","./activation","./route-filters"],function(e,t,n,r,i,s,o,u){var a=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function e(t){a(this,e),this.container=t,this.steps=[r.BuildNavigationPlanStep,o.CanDeactivatePreviousStep,i.LoadRouteStep,u.createRouteFilterStep("authorize"),u.createRouteFilterStep("modelbind"),o.CanActivateNextStep,o.DeactivatePreviousStep,o.ActivateNextStep,u.createRouteFilterStep("precommit"),s.CommitChangesStep]}return f(e,[{key:"createPipeline",value:function(t){var r=this,i=new n.Pipeline;return this.steps.forEach(function(e){return i.withStep(r.container.get(e))}),i}}],[{key:"inject",value:function(){return[t.Container]}}]),e}();e.PipelineProvider=l}),define("aurelia-router/app-router",["exports","core-js","aurelia-dependency-injection","aurelia-history","./router","./pipeline-provider","./navigation-commands","aurelia-event-aggregator"],function(e,t,n,r,i,s,o,u){function v(e){while(e){if(e.tagName==="A")return e;e=e.parentNode}}function m(e){if(!this.isActive)return;var t=v(e.target);if(!t)return;if(this.history._hasPushState&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&g(t)){var n=t.getAttribute("href");n!==null&&n.charAt(0)!=="#"&&!/^[a-z]+:/i.test(n)&&(e.preventDefault(),this.history.navigate(n))}}function g(e){var t=e.getAttribute("target");return!t||t===window.name||t==="_self"||t==="top"&&window===window.top}var a=function(e){return e&&e.__esModule?e["default"]:e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function y(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:y(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},h=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var p=a(t),d=function(e){function t(e,n,r,i){f(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this.pipelineProvider=r,document.addEventListener("click",m.bind(this),!0),this.events=i}return h(t,e),l(t,[{key:"isRoot",get:function(){return!0}},{key:"loadUrl",value:function(t){var n=this;return this.createNavigationInstruction(t).then(function(e){return n.queueInstruction(e)})["catch"](function(e){console.error(e),n.history.previousFragment&&n.navigate(n.history.previousFragment,!1)})}},{key:"queueInstruction",value:function(t){var n=this;return new Promise(function(e){t.resolve=e,n.queue.unshift(t),n.dequeueInstruction()})}},{key:"dequeueInstruction",value:function(){var t=this;if(this.isNavigating)return;var n=this.queue.shift();this.queue=[];if(!n)return;this.isNavigating=!0,this.events.publish("router:navigation:processing",n);var r=this.createNavigationContext(n),i=this.pipelineProvider.createPipeline(r);i.run(r).then(function(e){t.isNavigating=!1;if(!(e&&"completed"in e&&"output"in e))throw new Error("Expected router pipeline to return a navigation result, but got ["+JSON.stringify(e)+"] instead.");e.completed&&(t.history.previousFragment=n.fragment),e.output instanceof Error&&(console.error(e.output),t.events.publish("router:navigation:error",{instruction:n,result:e})),o.isNavigationCommand(e.output)?e.output.navigate(t):e.completed||(t.navigate(t.history.previousFragment||"",!1),t.events.publish("router:navigation:cancelled",n)),n.resolve(e),t.dequeueInstruction()}).then(function(e){return t.events.publish("router:navigation:complete",n)})["catch"](function(e){console.error(e)})}},{key:"registerViewPort",value:function(n,r){var i=this;c(Object.getPrototypeOf(t.prototype),"registerViewPort",this).call(this,n,r);if(!this.isActive){if("configureRouter"in this.container.viewModel){var s=this.container.viewModel.configureRouter()||Promise.resolve();return s.then(function(){return i.activate()})}this.activate()}else this.dequeueInstruction()}},{key:"activate",value:function(t){if(this.isActive)return;this.isActive=!0,this.options=Object.assign({routeHandler:this.loadUrl.bind(this)},this.options,t),this.history.activate(this.options),this.dequeueInstruction()}},{key:"deactivate",value:function(){this.isActive=!1,this.history.deactivate()}},{key:"reset",value:function(){c(Object.getPrototypeOf(t.prototype),"reset",this).call(this),this.queue=[],this.options=null}}],[{key:"inject",value:function(){return[n.Container,r.History,s.PipelineProvider,u.EventAggregator]}}]),t}(i.Router);e.AppRouter=d}),define("aurelia-router/index",["exports","./router","./app-router","./pipeline-provider","./navigation-commands","./route-loading","./router-configuration","./navigation-plan","./route-filters"],function(e,t,n,r,i,s,o,u,a){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Router",{enumerable:!0,get:function(){return t.Router}}),Object.defineProperty(e,"AppRouter",{enumerable:!0,get:function(){return n.AppRouter}}),Object.defineProperty(e,"PipelineProvider",{enumerable:!0,get:function(){return r.PipelineProvider}}),Object.defineProperty(e,"Redirect",{enumerable:!0,get:function(){return i.Redirect}}),Object.defineProperty(e,"RouteLoader",{enumerable:!0,get:function(){return s.RouteLoader}}),Object.defineProperty(e,"RouterConfiguration",{enumerable:!0,get:function(){return o.RouterConfiguration}}),Object.defineProperty(e,"NO_CHANGE",{enumerable:!0,get:function(){return u.NO_CHANGE}}),Object.defineProperty(e,"INVOKE_LIFECYCLE",{enumerable:!0,get:function(){return u.INVOKE_LIFECYCLE}}),Object.defineProperty(e,"REPLACE",{enumerable:!0,get:function(){return u.REPLACE}}),Object.defineProperty(e,"RouteFilterContainer",{enumerable:!0,get:function(){return a.RouteFilterContainer}}),Object.defineProperty(e,"createRouteFilterStep",{enumerable:!0,get:function(){return a.createRouteFilterStep}})}),define("aurelia-router",["aurelia-router/index"],function(e){return e}),define("aurelia-templating-binding/syntax-interpreter",["exports","aurelia-binding"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(t,r,i){n(this,e),this.parser=t,this.observerLocator=r,this.eventManager=i}return r(e,[{key:"interpret",value:function(t,n,r,i){return r.command in this?this[r.command](t,n,r,i):this.handleUnknownCommand(t,n,r,i)}},{key:"handleUnknownCommand",value:function(t,n,r,i){var s=r.attrName,o=r.command,u=this.options(t,n,r,i);return u.alteredAttr=!0,u.attrName="global-behavior",u.attributes.aureliaAttrName=s,u.attributes.aureliaCommand=o,u}},{key:"determineDefaultBindingMode",value:function(n,r){var i=n.tagName.toLowerCase();return i==="input"?r==="value"||r==="checked"?t.TWO_WAY:t.ONE_WAY:i=="textarea"||i=="select"?r=="value"?t.TWO_WAY:t.ONE_WAY:r==="textcontent"||r==="innerhtml"?n.contentEditable==="true"?t.TWO_WAY:t.ONE_WAY:t.ONE_WAY}},{key:"bind",value:function(n,r,i,s){var o=s||{attrName:i.attrName,attributes:{}};return o.attributes[i.attrName]=new t.BindingExpression(this.observerLocator,this.attributeMap[i.attrName]||i.attrName,this.parser.parse(i.attrValue),i.defaultBindingMode||this.determineDefaultBindingMode(r,i.attrName),n.valueConverterLookupFunction),o}},{key:"trigger",value:function(n,r,i){return new t.ListenerExpression(this.eventManager,i.attrName,this.parser.parse(i.attrValue),!1,!0)}},{key:"delegate",value:function(n,r,i){return new t.ListenerExpression(this.eventManager,i.attrName,this.parser.parse(i.attrValue),!0,!0)}},{key:"call",value:function(n,r,i,s){var o=s||{attrName:i.attrName,attributes:{}};return o.attributes[i.attrName]=new t.CallExpression(this.observerLocator,i.attrName,this.parser.parse(i.attrValue),n.valueConverterLookupFunction),o}},{key:"options",value:function(t,n,r,i){var s=i||{attrName:r.attrName,attributes:{}},o=r.attrValue,u=this.language,a=null,f="",l,c,h;for(c=0,h=o.length;c<h;++c)l=o[c],l===";"?(r=u.inspectAttribute(t,a,f.trim()),u.createAttributeInstruction(t,n,r,s),s.attributes[r.attrName]||(s.attributes[r.attrName]=r.attrValue),f="",a=null):l===":"&&a===null?(a=f.trim(),f=""):f+=l;return a!==null&&(r=u.inspectAttribute(t,a,f.trim()),u.createAttributeInstruction(t,n,r,s),s.attributes[r.attrName]||(s.attributes[r.attrName]=r.attrValue)),s}}],[{key:"inject",value:function(){return[t.Parser,t.ObserverLocator,t.EventManager]}}]),e}();e.SyntaxInterpreter=i,i.prototype["for"]=function(e,n,r,i){var s=r.attrValue.split(" of ");if(s.length!==2)throw new Error('Incorrect syntax for "for". The form is: "$local of $items".');var o=i||{attrName:r.attrName,attributes:{}};if(s[0].match(/[[].+[,]\s.+[\]]/)){var u=s[0];s[0]=u.substr(1,u.indexOf(",")-1),s.splice(1,0,u.substring(u.indexOf(", ")+2,u.length-1)),o.attributes.key=s[0],o.attributes.value=s[1]}else o.attributes.local=s[0];return o.attributes.items=new t.BindingExpression(this.observerLocator,"items",this.parser.parse(s[s.length-1]),t.ONE_WAY,e.valueConverterLookupFunction),o},i.prototype["two-way"]=function(e,n,r,i){var s=i||{attrName:r.attrName,attributes:{}};return s.attributes[r.attrName]=new t.BindingExpression(this.observerLocator,r.attrName,this.parser.parse(r.attrValue),t.TWO_WAY,e.valueConverterLookupFunction),s},i.prototype["one-way"]=function(e,n,r,i){var s=i||{attrName:r.attrName,attributes:{}};return s.attributes[r.attrName]=new t.BindingExpression(this.observerLocator,this.attributeMap[r.attrName]||r.attrName,this.parser.parse(r.attrValue),t.ONE_WAY,e.valueConverterLookupFunction),s},i.prototype["one-time"]=function(e,n,r,i){var s=i||{attrName:r.attrName,attributes:{}};return s.attributes[r.attrName]=new t.BindingExpression(this.observerLocator,this.attributeMap[r.attrName]||r.attrName,this.parser.parse(r.attrValue),t.ONE_TIME,e.valueConverterLookupFunction),s},i.prototype["view-model"]=function(e,n,r){return new t.NameExpression(r.attrValue,"view-model")}}),define("aurelia-templating-binding/binding-language",["exports","aurelia-templating","aurelia-binding","./syntax-interpreter","aurelia-logging"],function(e,t,n,r,i){var s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function d(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:d(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},a=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var f={},l=i.getLogger("templating-binding"),c=function(e){function t(e,n,r){s(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.parser=e,this.observerLocator=n,this.syntaxInterpreter=r,this.emptyStringExpression=this.parser.parse("''"),r.language=this,this.attributeMap=r.attributeMap={"class":"className","for":"htmlFor",tabindex:"tabIndex",textcontent:"textContent",innerhtml:"innerHTML",maxlength:"maxLength",minlength:"minLength",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget"}}return a(t,e),o(t,[{key:"inspectAttribute",value:function(t,r,i){var s=r.split(".");return f.defaultBindingMode=null,s.length==2?(f.attrName=s[0].trim(),f.attrValue=i,f.command=s[1].trim(),f.expression=null):r=="ref"?(f.attrName=r,f.attrValue=i,f.command=null,f.expression=new n.NameExpression(i,"element")):(f.attrName=r,f.attrValue=i,f.command=null,f.expression=this.parseContent(t,r,i)),f}},{key:"createAttributeInstruction",value:function(t,n,r,i){var s;if(r.expression){if(r.attrName==="ref")return r.expression;s=i||{attrName:r.attrName,attributes:{}},s.attributes[r.attrName]=r.expression}else r.command&&(s=this.syntaxInterpreter.interpret(t,n,r,i));return s}},{key:"parseText",value:function(t,n){return this.parseContent(t,"textContent",n)}},{key:"parseContent",value:function(t,r,i){var s=i.indexOf("${",0),o=i.length,u,a=0,f=0,l=null,c,p,d=0;while(s>=0&&s<o-2){f=1,c=s,s+=2;do{u=i[s],s++;switch(u){case"'":case'"':l===null?l=u:l===u&&(l=null);continue;case"\\":s++;continue}if(l!==null)continue;u==="{"?f++:u==="}"&&f--}while(f>0&&s<o);if(f!==0)break;p=p||[],i[c-1]==="\\"&&i[c-2]!=="\\"?(p[d]=i.substring(a,c-1)+i.substring(c,s),d++,p[d]=this.emptyStringExpression,d++):(p[d]=i.substring(a,c),d++,p[d]=this.parser.parse(i.substring(c+2,s-1)),d++),a=s,s=i.indexOf("${",s)}return d===0?null:(p[d]=i.substr(a),new h(this.observerLocator,this.attributeMap[r]||r,p,n.ONE_WAY,t.valueConverterLookupFunction,r))}}],[{key:"inject",value:function(){return[n.Parser,n.ObserverLocator,r.SyntaxInterpreter]}}]),t}(t.BindingLanguage);e.TemplatingBindingLanguage=c;var h=function(){function e(t,n,r,i,o,u){s(this,e),this.observerLocator=t,this.targetProperty=n,this.parts=r,this.mode=i,this.valueConverterLookupFunction=o,this.attribute=u,this.discrete=!1}return o(e,[{key:"createBinding",value:function(t){return new p(this.observerLocator,this.parts,t,this.targetProperty,this.mode,this.valueConverterLookupFunction)}}]),e}();e.InterpolationBindingExpression=h;var p=function(){function e(t,n,r,i,o,u){s(this,e);if(i==="style")l.info('Internet Explorer does not support interpolation in "style" attributes. Use the style attribute\'s alias, "css" instead.');else if(r.parentElement&&r.parentElement.nodeName==="TEXTAREA"&&i==="textContent")throw new Error('Interpolation binding cannot be used in the content of a textarea element. Use <textarea value.bind="expression"></textarea> instead.');this.observerLocator=t,this.parts=n,this.targetProperty=t.getObserver(r,i),this.mode=o,this.valueConverterLookupFunction=u,this.toDispose=[]}return o(e,[{key:"getObserver",value:function(t,n){return this.observerLocator.getObserver(t,n)}},{key:"bind",value:function(t){this.source=t,this.mode==n.ONE_WAY?(this.unbind(),this.connect(),this.setValue()):this.setValue()}},{key:"setValue",value:function(){var t=this.interpolate();this.targetProperty.setValue(t)}},{key:"connect",value:function(){var t=this,n,r=this.parts,i=this.source,s=this.toDispose=[],o,u;for(o=0,u=r.length;o<u;++o)o%2!==0&&(n=r[o].connect(this,i),n.observer&&s.push(n.observer.subscribe(function(e){t.setValue()})))}},{key:"interpolate",value:function(){var t="",n=this.parts,r=this.source,i=this.valueConverterLookupFunction,s,o,u;for(s=0,o=n.length;s<o;++s)s%2===0?t+=n[s]:(u=n[s].evaluate(r,i),t+=typeof u!="undefined"&&u!==null?u.toString():"");return t}},{key:"unbind",value:function(){var t,n,r=this.toDispose;if(r)for(t=0,n=r.length;t<n;++t)r[t]();this.toDispose=null}}]),e}()}),define("aurelia-templating-binding/index",["exports","aurelia-templating","./binding-language","./syntax-interpreter"],function(e,t,n,r){function i(e){var r,i=function(t){return r||(r=t.invoke(n.TemplatingBindingLanguage))};e.container.hasHandler(n.TemplatingBindingLanguage)?r=e.container.get(n.TemplatingBindingLanguage):e.container.registerHandler(n.TemplatingBindingLanguage,i),e.container.registerHandler(t.BindingLanguage,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingBindingLanguage=n.TemplatingBindingLanguage,e.SyntaxInterpreter=r.SyntaxInterpreter,e.install=i}),define("aurelia-templating-binding",["aurelia-templating-binding/index"],function(e){return e}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){function o(e,t){e.compositionEngine.compose(Object.assign(t,{executionContext:e.executionContext,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentBehavior:e.currentBehavior})).then(function(t){e.currentBehavior=t,e.currentViewModel=t?t.executionContext:null})}var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,n,i,s){r(this,t),this.container=e,this.compositionEngine=n,this.viewSlot=i,this.viewResources=s}return i(t,[{key:"bind",value:function(t){this.executionContext=t,o(this,{view:this.view,viewModel:this.viewModel,model:this.model})}},{key:"modelChanged",value:function(t,n){var r=this.currentViewModel;r&&typeof r.activate=="function"&&r.activate(t)}},{key:"viewChanged",value:function(t,n){o(this,{view:t,viewModel:this.currentViewModel||this.viewModel,model:this.model})}},{key:"viewModelChanged",value:function(t,n){o(this,{viewModel:t,view:this.view,model:this.model})}}]),e.Compose=t=customElement("compose")(t)||t,e.Compose=t=bindable("model")(t)||t,e.Compose=t=bindable("view")(t)||t,e.Compose=t=bindable("viewModel")(t)||t,e.Compose=t=noView(t)||t,e.Compose=t=inject(Container,CompositionEngine,ViewSlot,ViewResources)(t)||t,t}();e.Compose=s}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,n){r(this,t),this.viewFactory=e,this.viewSlot=n,this.showing=!1}return i(t,[{key:"valueChanged",value:function(t){if(!t){this.view&&(this.viewSlot.remove(this.view),this.view.unbind()),this.showing=!1;return}this.view||(this.view=this.viewFactory.create()),this.showing||(this.showing=!0,this.view.bound||this.view.bind(),this.viewSlot.add(this.view))}}]),e.If=t=customAttribute("if")(t)||t,e.If=t=templateController(t)||t,e.If=t=inject(BoundViewFactory,ViewSlot)(t)||t,t}();e.If=s}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,n){r(this,t),this.viewFactory=e,this.viewSlot=n}return i(t,[{key:"valueChanged",value:function(t){this.view?this.view.bind(t):(this.view=this.viewFactory.create(t),this.viewSlot.add(this.view))}}]),e.With=t=customAttribute("with")(t)||t,e.With=t=templateController(t)||t,e.With=t=inject(BoundViewFactory,ViewSlot)(t)||t,t}();e.With=s}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating"],function(e,t,n,r){var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(e,n,r){i(this,t),this.viewFactory=e,this.viewSlot=n,this.observerLocator=r,this.local="item",this.key="key",this.value="value"}return s(t,[{key:"bind",value:function(t){var r=this,i=this.items,s;this.executionContext=t;if(!i){this.oldItems&&this.viewSlot.removeAll();return}if(this.oldItems===i)if(i instanceof Map){var o=n.getChangeRecords(i);s=this.observerLocator.getMapObserver(i),this.handleMapChangeRecords(i,o),this.disposeSubscription=s.subscribe(function(e){r.handleMapChangeRecords(i,e)})}else{var u=n.calcSplices(i,0,i.length,this.lastBoundItems,0,this.lastBoundItems.length);s=this.observerLocator.getArrayObserver(i),this.handleSplices(i,u),this.lastBoundItems=this.oldItems=null,this.disposeSubscription=s.subscribe(function(e){r.handleSplices(i,e)})}else this.processItems()}},{key:"unbind",value:function(){this.oldItems=this.items,this.items instanceof Array&&(this.lastBoundItems=this.items.slice(0)),this.disposeSubscription&&(this.disposeSubscription(),this.disposeSubscription=null)}},{key:"itemsChanged",value:function(){this.processItems()}},{key:"processItems",value:function(){var t=this.items,n=this.viewSlot;this.disposeSubscription&&(this.disposeSubscription(),n.removeAll());if(!t)return;t instanceof Map?this.processMapEntries(t):this.processArrayItems(t)}},{key:"processArrayItems",value:function(t){var n=this,r=this.viewFactory,i=this.viewSlot,s,o,u,a,f;f=this.observerLocator.getArrayObserver(t);for(s=0,o=t.length;s<o;++s)u=this.createFullExecutionContext(t[s],s,o),a=r.create(u),i.add(a);this.disposeSubscription=f.subscribe(function(e){n.handleSplices(t,e)})}},{key:"processMapEntries",value:function(t){var n=this,r=this.viewFactory,i=this.viewSlot,s=0,o,u,a;a=this.observerLocator.getMapObserver(t),t.forEach(function(e,a){o=n.createFullExecutionKvpContext(a,e,s,t.size),u=r.create(o),i.add(u),++s}),this.disposeSubscription=a.subscribe(function(e){n.handleMapChangeRecords(t,e)})}},{key:"createBaseExecutionContext",value:function(t){var n={};return n[this.local]=t,n.$parent=this.executionContext,n}},{key:"createBaseExecutionKvpContext",value:function(t,n){var r={};return r[this.key]=t,r[this.value]=n,r.$parent=this.executionContext,r}},{key:"createFullExecutionContext",value:function(t,n,r){var i=this.createBaseExecutionContext(t);return this.updateExecutionContext(i,n,r)}},{key:"createFullExecutionKvpContext",value:function(t,n,r,i){var s=this.createBaseExecutionKvpContext(t,n);return this.updateExecutionContext(s,r,i)}},{key:"updateExecutionContext",value:function(t,n,r){var i=n===0,s=n===r-1,o=n%2===0;return t.$index=n,t.$first=i,t.$last=s,t.$middle=!i&&!s,t.$odd=!o,t.$even=o,t}},{key:"handleSplices",value:function(t,n){var r=this.viewSlot,i=n[0].index,s,o,u,a,f,l,c,h,p,d,v,m,g,y;for(o=0,u=n.length;o<u;++o){c=n[o],h=c.index,d=c.addedCount,p=c.index+c.addedCount,v=c.removed,i>c.index&&(i=c.index);for(a=0,f=v.length;a<f;++a)d>0?(s=r.children[c.index+a],s.executionContext[this.local]=t[h+a],--d):s=r.removeAt(h+c.addedCount);h+=v.length;for(;0<d;++h)m=t[h],l=this.createBaseExecutionContext(m),s=this.viewFactory.create(l),r.insert(h,s),--d}g=this.viewSlot.children,y=g.length,i>0&&(i-=1);for(;i<y;++i)this.updateExecutionContext(g[i].executionContext,i,y)}},{key:"handleMapChangeRecords",value:function(t,n){var r=this.viewSlot,i,s,o,u,a,f,l,c,h;for(s=0,o=n.length;s<o;++s){h=n[s],i=h.key;switch(h.type){case"update":c=this.getViewIndexByKey(i),r.removeAt(c),l=this.createBaseExecutionKvpContext(i,t.get(i)),u=this.viewFactory.create(l),r.insert(c,u);break;case"add":l=this.createBaseExecutionKvpContext(i,t.get(i)),u=this.viewFactory.create(l),r.insert(t.size,u);break;case"delete":if(!h.oldValue)return;c=this.getViewIndexByKey(i),r.removeAt(c);break;case"clear":r.removeAll()}}a=r.children,f=a.length;for(s=0;s<f;s++)this.updateExecutionContext(a[s].executionContext,s,f)}},{key:"getViewIndexByKey",value:function(t){var n=this.viewSlot,r,i,s;for(r=0,i=n.children.length;r<i;++r){s=n.children[r];if(s.bindings[0].source[this.key]===t)return r}}}]),e.Repeat=t=customAttribute("repeat")(t)||t,e.Repeat=t=bindable("items")(t)||t,e.Repeat=t=bindable("local")(t)||t,e.Repeat=t=bindable("key")(t)||t,e.Repeat=t=templateController(t)||t,e.Repeat=t=inject(BoundViewFactory,ViewSlot,ObserverLocator)(t)||t,t}();e.Repeat=o}),define("aurelia-templating-resources/show",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){function s(e){var t=document.createElement("style");t.innerHTML=e,t.type="text/css",document.head.appendChild(t)}var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0}),s(".aurelia-hide { display:none !important; }");var o=function(){function t(e){r(this,t),this.element=e}return i(t,[{key:"valueChanged",value:function(t){t?this.element.classList.remove("aurelia-hide"):this.element.classList.add("aurelia-hide")}}]),e.Show=t=customAttribute("show")(t)||t,e.Show=t=inject(Element)(t)||t,t}();e.Show=o}),define("aurelia-templating-resources/global-behavior",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-logging"],function(e,t,n,r){var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(e){i(this,t),this.element=e}return s(t,[{key:"bind",value:function(){var n=t.handlers[this.aureliaAttrName];if(!n)throw new Error("Conventional binding handler not found for "+this.aureliaAttrName+".");try{this.handler=n.bind(this,this.element,this.aureliaCommand)||n}catch(i){throw r.AggregateError("Conventional binding handler failed.",i)}}},{key:"attached",value:function(){this.handler&&"attached"in this.handler&&this.handler.attached(this,this.element)}},{key:"detached",value:function(){this.handler&&"detached"in this.handler&&this.handler.detached(this,this.element)}},{key:"unbind",value:function(){this.handler&&"unbind"in this.handler&&this.handler.unbind(this,this.element),this.handler=null}}]),e.GlobalBehavior=t=customAttribute("global-behavior")(t)||t,e.GlobalBehavior=t=dynamicOptions(t)||t,e.GlobalBehavior=t=inject(Element)(t)||t,t}();e.GlobalBehavior=o,o.createSettingsFromBehavior=function(e){var t={};for(var n in e){if(n==="aureliaAttrName"||n==="aureliaCommand"||!e.hasOwnProperty(n))continue;t[n]=e[n]}return t},o.jQueryPlugins={},o.handlers={jquery:{bind:function(t,n,i){var s=o.createSettingsFromBehavior(t),u=o.jQueryPlugins[i]||i,a=window.jQuery(n);if(!a[u]){r.getLogger("templating-resources").warn("Could not find the jQuery plugin "+u+", possibly due to case mismatch. Trying to enumerate jQuery methods in lowercase. Add the correctly cased plugin name to the GlobalBehavior to avoid this performance hit.");for(var f in a)f.toLowerCase()===u&&(u=f)}t.plugin=a[u](s)},unbind:function(t,n){typeof t.plugin.destroy=="function"&&(t.plugin.destroy(),t.plugin=null)}}}}),define("aurelia-templating-resources/sanitize-html",["exports","aurelia-binding"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,s=function(){function t(){n(this,t),this.sanitizer=t.defaultSanitizer}return r(t,[{key:"toView",value:function(t){return t===null?null:this.sanitizer(t)}}],[{key:"defaultSanitizer",value:function(t){return t.replace(i,"")}}]),e.SanitizeHtmlValueConverter=t=valueConverter("sanitizeHtml")(t)||t,t}();e.SanitizeHtmlValueConverter=s}),define("aurelia-templating-resources/index",["exports","./compose","./if","./with","./repeat","./show","./global-behavior","./sanitize-html"],function(e,t,n,r,i,s,o,u){function a(e){e.globalizeResources("./compose","./if","./with","./repeat","./show","./global-behavior","./sanitize-html")}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=t.Compose,e.If=n.If,e.With=r.With,e.Repeat=i.Repeat,e.Show=s.Show,e.SanitizeHtmlValueConverter=u.SanitizeHtmlValueConverter,e.GlobalBehavior=o.GlobalBehavior,e.install=a}),define("aurelia-templating-resources",["aurelia-templating-resources/index"],function(e){return e}),define("aurelia-templating-router/route-loader",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-router","aurelia-path","aurelia-metadata"],function(e,t,n,r,i,s){var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function c(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var i=Object.getPrototypeOf(e);return i===null?undefined:c(i,t,n)}if("value"in r)return r.value;var s=r.get;return s===undefined?undefined:s.call(n)},f=function(e,t){if(typeof t!="function"&&t!==null)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&&(e.__proto__=t)};Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function n(e){o(this,n),a(Object.getPrototypeOf(n.prototype),"constructor",this).call(this),this.compositionEngine=e}return f(n,t),u(n,[{key:"loadRoute",value:function(t,n){var o=t.container.createChild(),u={viewModel:i.relativeToFile(n.moduleId,s.Origin.get(t.container.viewModel.constructor).moduleId),childContainer:o,view:n.view||n.viewStrategy},a;return o.registerHandler(r.Router,function(e){return a||(a=t.createChild(o))}),this.compositionEngine.createViewModel(u).then(function(e){return e.executionContext=e.viewModel,e.router=t,e})}}]),e.TemplatingRouteLoader=n=inject(CompositionEngine)(n)||n,n}(r.RouteLoader);e.TemplatingRouteLoader=l}),define("aurelia-templating-router/router-view",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-router","aurelia-metadata"],function(e,t,n,r,i){var s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(e,n,r,i){s(this,t),this.element=e,this.container=n,this.viewSlot=r,this.router=i,i.registerViewPort(this,e.getAttribute("name"))}return o(t,[{key:"process",value:function(t,r){var s=this,o=t.component,u=o.view,a=o.childContainer,f=o.executionContext,l=o.viewModelResource,c=l.metadata;return!u&&"getViewStrategy"in f&&(u=f.getViewStrategy()),u&&(u=n.ViewStrategy.normalize(u),u.makeRelativeTo(i.Origin.get(o.router.container.viewModel.constructor).moduleId)),c.load(a,l.value,u,!0).then(function(e){t.behavior=c.create(a,{executionContext:f,viewFactory:e,suppressBind:!0});if(r)return;s.swap(t)})}},{key:"swap",value:function(t){t.behavior.view.bind(t.behavior.executionContext),this.viewSlot.swap(t.behavior.view),this.view&&this.view.unbind(),this.view=t.behavior.view}}]),e.RouterView=t=customElement("router-view")(t)||t,e.RouterView=t=noView(t)||t,e.RouterView=t=inject(Element,Container,ViewSlot,Router)(t)||t,t}();e.RouterView=u}),define("aurelia-templating-router/index",["exports","aurelia-router","./route-loader","./router-view"],function(e,t,n,r){function i(e){e.withSingleton(t.RouteLoader,n.TemplatingRouteLoader).withSingleton(t.Router,t.AppRouter).globalizeResources("./router-view")}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingRouteLoader=n.TemplatingRouteLoader,e.RouterView=r.RouterView,e.install=i}),define("aurelia-templating-router",["aurelia-templating-router/index"],function(e){return e}),define("aurelia-http-client/headers",["exports"],function(e){var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function e(){var n=arguments[0]===undefined?{}:arguments[0];t(this,e),this.headers=n}return n(e,[{key:"add",value:function(t,n){this.headers[t]=n}},{key:"get",value:function(t){return this.headers[t]}},{key:"clear",value:function(){this.headers={}}},{key:"configureXHR",value:function(t){var n=this.headers,r;for(r in n)t.setRequestHeader(r,n[r])}}],[{key:"parse",value:function(n){var r=new e;if(!n)return r;var i=n.split("\r\n");for(var s=0;s<i.length;s++){var o=i[s],u=o.indexOf(": ");if(u>0){var a=o.substring(0,u),f=o.substring(u+2);r.add(a,f)}}return r}}]),e}();e.Headers=r}),define("aurelia-http-client/http-response-message",["exports","./headers"],function(e,t){var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(r,i,o,u){n(this,e),this.requestMessage=r,this.statusCode=i.status,this.response=i.response,this.isSuccess=i.status>=200&&i.status<400,this.statusText=i.statusText,this.reviver=u,this.mimeType=null;if(i.getAllResponseHeaders)try{this.headers=t.Headers.parse(i.getAllResponseHeaders())}catch(a){i.requestHeaders&&(this.headers={headers:i.requestHeaders})}else this.headers=new t.Headers;var f;this.headers&&this.headers.headers&&(f=this.headers.headers["Content-Type"]),f&&(this.mimeType=o=f.split(";")[0].trim(),s.hasOwnProperty(this.mimeType)&&(o=s[this.mimeType])),this.responseType=o}return r(e,[{key:"content",get:function(){try{return this._content!==undefined?this._content:this.response===undefined||this.response===null?this._content=this.response:this.responseType==="json"?this._content=JSON.parse(this.response,this.reviver):this.reviver?this._content=this.reviver(this.response):this._content=this.response}catch(e){if(this.isSuccess)throw e;return this._content=null}}}]),e}();e.HttpResponseMessage=i;var s={"text/html":"html","text/javascript":"js","application/javascript":"js","text/json":"json","application/json":"json","application/rss+xml":"rss","application/atom+xml":"atom","application/xhtml+xml":"xhtml","text/markdown":"md","text/xml":"xml","text/mathml":"mml","application/xml":"xml","text/yml":"yml","text/csv":"csv","text/css":"css","text/less":"less","text/stylus":"styl","text/scss":"scss","text/sass":"sass","text/plain":"txt"};e.mimeTypes=s}),define("aurelia-http-client/request-message-processor",["exports","core-js","./http-response-message","aurelia-path"],function(e,t,n,r){function a(e){var t=r.join(e.baseUri,e.uri),n;e.params&&(n=r.buildQueryString(e.params),t=n?""+t+"?"+n:t),e.fullUri=t}var i=function(e){return e&&e.__esModule?e["default"]:e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var u=i(t),f=function(){function e(t,n){s(this,e),this.XHRType=t,this.transformers=n}return o(e,[{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"process",value:function(t,r){var i=this;return new Promise(function(e,s){var o=i.xhr=new i.XHRType,u=i.transformers,f,l;a(r),o.open(r.method,r.fullUri,!0);for(f=0,l=u.length;f<l;++f)u[f](t,i,r,o);o.onload=function(t){var i=new n.HttpResponseMessage(r,o,r.responseType,r.reviver);i.isSuccess?e(i):s(i)},o.ontimeout=function(e){s(new n.HttpResponseMessage(r,{response:e,status:o.status,statusText:o.statusText},"timeout"))},o.onerror=function(e){s(new n.HttpResponseMessage(r,{response:e,status:o.status,statusText:o.statusText},"error"))},o.onabort=function(e){s(new n.HttpResponseMessage(r,{response:e,status:o.status,statusText:o.statusText},"abort"))},o.send(r.content)})}}]),e}();e.RequestMessageProcessor=f}),define("aurelia-http-client/transformers",["exports"],function(e){function t(e,t,n,r){n.timeout!==undefined&&(r.timeout=n.timeout)}function n(e,t,n,r){n.callbackParameterName!==undefined&&(r.callbackParameterName=n.callbackParameterName)}function r(e,t,n,r){n.withCredentials!==undefined&&(r.withCredentials=n.withCredentials)}function i(e,t,n,r){n.progressCallback&&(r.upload.onprogress=n.progressCallback)}function s(e,t,n,r){var i=n.responseType;i==="json"&&(i="text"),r.responseType=i}function o(e,t,n,r){n.headers.configureXHR(r)}function u(e,t,n,r){if(window.FormData&&n.content instanceof FormData)return;if(window.Blob&&n.content instanceof Blob)return;if(window.ArrayBufferView&&n.content instanceof ArrayBufferView)return;if(n.content instanceof Document)return;if(typeof n.content=="string")return;if(n.content===null||n.content===undefined)return;n.content=JSON.stringify(n.content,n.replacer)}Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutTransformer=t,e.callbackParameterNameTransformer=n,e.credentialsTransformer=r,e.progressTransformer=i,e.responseTypeTransformer=s,e.headerTransformer=o,e.contentTransformer=u}),define("aurelia-http-client/http-request-message",["exports","./headers","./request-message-processor","./transformers"],function(e,t,n,r){function o(){return new n.RequestMessageProcessor(XMLHttpRequest,[r.timeoutTransformer,r.credentialsTransformer,r.progressTransformer,r.responseTypeTransformer,r.headerTransformer,r.contentTransformer])}var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0}),e.createHttpRequestMessageProcessor=o;var s=function u(e,n,r,s){i(this,u),this.method=e,this.uri=n,this.content=r,this.headers=s||new t.Headers,this.responseType="json"};e.HttpRequestMessage=s}),define("aurelia-http-client/jsonp-request-message",["exports","./headers","./request-message-processor","./transformers"],function(e,t,n,r){function a(){return new n.RequestMessageProcessor(u,[r.timeoutTransformer,r.callbackParameterNameTransformer])}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONPRequestMessageProcessor=a;var o=function f(e,n){s(this,f),this.method="JSONP",this.uri=e,this.content=undefined,this.headers=new t.Headers,this.responseType="jsonp",this.callbackParameterName=n};e.JSONPRequestMessage=o;var u=function(){function e(){s(this,e)}return i(e,[{key:"open",value:function(t,n){this.method=t,this.uri=n,this.callbackName="jsonp_callback_"+Math.round(1e5*Math.random())}},{key:"send",value:function(){var t=this,n=this.uri+(this.uri.indexOf("?")>=0?"&":"?")+this.callbackParameterName+"="+this.callbackName;window[this.callbackName]=function(e){delete window[t.callbackName],document.body.removeChild(r),t.status===undefined&&(t.status=200,t.statusText="OK",t.response=e,t.onload(t))};var r=document.createElement("script");r.src=n,document.body.appendChild(r),this.timeout!==undefined&&setTimeout(function(){t.status===undefined&&(t.status=0,t.ontimeout(new Error("timeout")))},this.timeout)}},{key:"abort",value:function(){this.status===undefined&&(this.status=0,this.onabort(new Error("abort")))}},{key:"setRequestHeader",value:function(){}}]),e}()}),define("aurelia-http-client/request-builder",["exports","aurelia-path","./http-request-message","./jsonp-request-message"],function(e,t,n,r){var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function e(t){i(this,e),this.client=t,this.transformers=t.requestTransformers.slice(0),this.useJsonp=!1}return s(e,[{key:"send",value:function(){var t=this.useJsonp?new r.JSONPRequestMessage:new n.HttpRequestMessage;return this.client.send(t,this.transformers)}}],[{key:"addHelper",value:function(n,r){e.prototype[n]=function(){return this.transformers.push(r.apply(this,arguments)),this}}}]),e}();e.RequestBuilder=o,o.addHelper("asDelete",function(){return function(e,t,n){n.method="DELETE"}}),o.addHelper("asGet",function(){return function(e,t,n){n.method="GET"}}),o.addHelper("asHead",function(){return function(e,t,n){n.method="HEAD"}}),o.addHelper("asOptions",function(){return function(e,t,n){n.method="OPTIONS"}}),o.addHelper("asPatch",function(){return function(e,t,n){n.method="PATCH"}}),o.addHelper("asPost",function(){return function(e,t,n){n.method="POST"}}),o.addHelper("asPut",function(){return function(e,t,n){n.method="PUT"}}),o.addHelper("asJsonp",function(e){return this.useJsonp=!0,function(t,n,r){r.callbackParameterName=e}}),o.addHelper("withUri",function(e){return function(t,n,r){r.uri=e}}),o.addHelper("withContent",function(e){return function(t,n,r){r.content=e}}),o.addHelper("withBaseUri",function(e){return function(t,n,r){r.baseUri=e}}),o.addHelper("withParams",function(e){return function(t,n,r){r.params=e}}),o.addHelper("withResponseType",function(e){return function(t,n,r){r.responseType=e}}),o.addHelper("withTimeout",function(e){return function(t,n,r){r.timeout=e}}),o.addHelper("withHeader",function(e,t){return function(n,r,i){i.headers.add(e,t)}}),o.addHelper("withCredentials",function(e){return function(t,n,r){r.withCredentials=e}}),o.addHelper("withReviver",function(e){return function(t,n,r){r.reviver=e}}),o.addHelper("withReplacer",function(e){return function(t,n,r){r.replacer=e}}),o.addHelper("withProgressCallback",function(e){return function(t,n,r){r.progressCallback=e}}),o.addHelper("withCallbackParameterName",function(e){return function(t,n,r){r.callbackParameterName=e}})}),define("aurelia-http-client/http-client",["exports","core-js","./headers","./request-builder","./http-request-message","./jsonp-request-message"],function(e,t,n,r,i,s){function l(e,t){e.pendingRequests.push(t),e.isRequesting=!0}function c(e,t){var n=e.pendingRequests.indexOf(t);e.pendingRequests.splice(n,1),e.isRequesting=e.pendingRequests.length>0;if(!e.isRequesting){var r=new window.CustomEvent("aurelia-http-client-requests-drained",{bubbles:!0,cancelable:!0});setTimeout(function(){return document.dispatchEvent(r)},1)}}var o=function(e){return e&&e.__esModule?e["default"]:e},u=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(e,"__esModule",{value:!0});var f=o(t),h=function(){function e(){u(this,e),this.requestTransformers=[],this.requestProcessorFactories=new Map,this.requestProcessorFactories.set(i.HttpRequestMessage,i.createHttpRequestMessageProcessor),this.requestProcessorFactories.set(s.JSONPRequestMessage,s.createJSONPRequestMessageProcessor),this.pendingRequests=[],this.isRequesting=!1}return a(e,[{key:"configure",value:function(t){var n=new r.RequestBuilder(this);return t(n),this.requestTransformers=n.transformers,this}},{key:"createRequest",value:function(t){var n=new r.RequestBuilder(this);return t&&n.withUri(t),n}},{key:"send",value:function(t,n){var r=this,i=this.requestProcessorFactories.get(t.constructor),s,o,u,a;if(!i)throw new Error("No request message processor factory for "+t.constructor+".");s=i(),l(this,s),n=n||this.requestTransformers;for(u=0,a=n.length;u<a;++u)n[u](this,s,t);return o=s.process(this,t).then(function(e){return c(r,s),e})["catch"](function(e){throw c(r,s),e}),o.abort=o.cancel=function(){s.abort()},o}},{key:"delete",value:function(t){return this.createRequest(t).asDelete().send()}},{key:"get",value:function(t){return this.createRequest(t).asGet().send()}},{key:"head",value:function(t){return this.createRequest(t).asHead().send()}},{key:"jsonp",value:function(t){var n=arguments[1]===undefined?"jsoncallback":arguments[1];return this.createRequest(t).asJsonp(n).send()}},{key:"options",value:function(t){return this.createRequest(t).asOptions().send()}},{key:"put",value:function(t,n){return this.createRequest(t).asPut().withContent(n).send()}},{key:"patch",value:function(t,n){return this.createRequest(t).asPatch().withContent(n).send()}},{key:"post",value:function(t,n){return this.createRequest(t).asPost().withContent(n).send()}}]),e}();e.HttpClient=h}),define("aurelia-http-client/index",["exports","./http-client","./http-request-message","./http-response-message","./jsonp-request-message","./headers","./request-builder"],function(e,t,n,r,i,s,o){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HttpClient",{enumerable:!0,get:function(){return t.HttpClient}}),Object.defineProperty(e,"HttpRequestMessage",{enumerable:!0,get:function(){return n.HttpRequestMessage}}),Object.defineProperty(e,"HttpResponseMessage",{enumerable:!0,get:function(){return r.HttpResponseMessage}}),Object.defineProperty(e,"mimeTypes",{enumerable:!0,get:function(){return r.mimeTypes}}),Object.defineProperty(e,"JSONPRequestMessage",{enumerable:!0,get:function(){return i.JSONPRequestMessage}}),Object.defineProperty(e,"Headers",{enumerable:!0,get:function(){return s.Headers}}),Object.defineProperty(e,"RequestBuilder",{enumerable:!0,get:function(){return o.RequestBuilder}})}),define("aurelia-http-client",["aurelia-http-client/index"],function(e){return e}),define("aurelia-bootstrapper",["exports","core-js","aurelia-framework","aurelia-logging-console"],function(e,t,n,r){function f(e){return new Promise(function(t,n){a?t(e()):u.push(function(){try{t(e())}catch(r){n(r)}})})}function l(e){return f(function(){var t=new window.AureliaLoader,r=new n.Aurelia(t);return v(r).then(function(){return e(r)})})}function c(e){return new Promise(function(t,n){function r(){e.document.removeEventListener("DOMContentLoaded",r,!1),e.removeEventListener("load",r,!1),t(e.document)}e.document.readyState==="complete"?t(e.document):(e.document.addEventListener("DOMContentLoaded",r,!1),e.addEventListener("load",r,!1))})}function h(){return window.AureliaLoader?Promise.resolve():System.normalize("aurelia-bootstrapper").then(function(e){return System.normalize("aurelia-loader-default",e).then(function(e){return System["import"](e)})})}function p(){return System.normalize("aurelia-bootstrapper").then(function(e){return System.normalize("aurelia-framework",e).then(function(t){return System.map["aurelia-framework"]=t,System.normalize("aurelia-loader",t).then(function(n){var r=[];return System.polyfilled||(o.debug("loading core-js"),r.push(System.normalize("core-js",n).then(function(e){return System["import"](e)}))),r.push(System.normalize("aurelia-depedency-injection",t).then(function(e){System.map["aurelia-depedency-injection"]=e})),r.push(System.normalize("aurelia-router",e).then(function(e){System.map["aurelia-router"]=e})),r.push(System.normalize("aurelia-logging-console",e).then(function(e){System.map["aurelia-logging-console"]=e})),"import"in document.createElement("link")||(o.debug("loading the HTMLImports polyfill"),r.push(System.normalize("webcomponentsjs/HTMLImports.min",n).then(function(e){return System["import"](e)}))),"content"in document.createElement("template")||(o.debug("loading the HTMLTemplateElement polyfill"),r.push(System.normalize("aurelia-html-template-element",n).then(function(e){return System["import"](e)}))),Promise.all(r)})})})}function v(e){return System.normalize("aurelia-bootstrapper").then(function(t){var i=[];return i.push(System.normalize("aurelia-templating-binding",t).then(function(t){e.use.defaultBindingLanguage=function(){return e.use.plugin(t),this}})),i.push(System.normalize("aurelia-history-browser",t).then(function(n){return System.normalize("aurelia-templating-router",t).then(function(t){e.use.router=function(){return e.use.plugin(n),e.use.plugin(t),this}})})),i.push(System.normalize("aurelia-templating-resources",t).then(function(t){System.map["aurelia-templating-resources"]=t,e.use.defaultResources=function(){return e.use.plugin(t),this}})),i.push(System.normalize("aurelia-event-aggregator",t).then(function(t){System.map["aurelia-event-aggregator"]=t,e.use.eventAggregator=function(){return e.use.plugin(t),this}})),e.use.standardConfiguration=function(){return e.use.defaultBindingLanguage().defaultResources().router().eventAggregator(),this},e.use.developmentLogging=function(){return d||(d=!0,n.LogManager.addAppender(new r.ConsoleAppender),n.LogManager.setLevel(n.LogManager.levels.debug)),this},Promise.all(i)})}function m(){return window.location.protocol!=="http"&&window.location.protocol!=="https"}function g(e){var t=e.getAttribute("aurelia-app"),r,i;return t?(i=new window.AureliaLoader,i.loadModule(t).then(function(e){return r=new n.Aurelia(i),v(r).then(function(){return e.configure(r)})})["catch"](function(e){setTimeout(function(){throw e},0)})):(r=new n.Aurelia,v(r).then(function(){return m()&&r.use.developmentLogging(),r.use.standardConfiguration(),e.hasAttribute("es5")&&r.use.es5(),r.start().then(function(t){return t.setRoot(undefined,e)})})["catch"](function(e){setTimeout(function(){throw e},0)}))}function y(){return c(window).then(function(e){var t=e.querySelectorAll("[aurelia-app]");return h().then(function(){return p().then(function(){var e,n;for(e=0,n=t.length;e<n;++e)g(t[e]);a=!0;for(e=0,n=u.length;e<n;++e)u[e]();u=[]})})})}var i=function(e){return e&&e.__esModule?e["default"]:e};Object.defineProperty(e,"__esModule",{value:!0}),e.bootstrap=l;var s=i(t),o=n.LogManager.getLogger("bootstrapper"),u=[],a=!1,d=!1;y()}),function(e){function r(e){return e.tagName=="template"&&e.namespaceURI=="http://www.w3.org/2000/svg"}function i(e){return e.tagName=="TEMPLATE"&&e.namespaceURI=="http://www.w3.org/1999/xhtml"}function s(e){return e.isTemplate_===undefined&&(e.isTemplate_=e.tagName=="TEMPLATE"),e.isTemplate_}function o(e){var t=e.ownerDocument.createElement("template");e.parentNode.insertBefore(t,e);var n=e.attributes,r=n.length;while(r-->0){var i=n[r];t.setAttribute(i.name,i.value),e.removeAttribute(i.name)}return e.parentNode.removeChild(e),t}function u(e,n){var r=e.querySelectorAll("template");s(e)&&n(e),t(r,n)}function a(e){function t(e){HTMLTemplateElement.decorate(e)||a(e.content)}u(e,t)}function f(e){var t=e.ownerDocument;if(!t.defaultView)return t;var n=t.templateContentsOwner_;if(!n){n=t.implementation.createHTMLDocument("");while(n.lastChild)n.removeChild(n.lastChild);t.templateContentsOwner_=n}return n}function l(e,t,n){var r=e.content;if(n){r.appendChild(t);return}var i;while(i=t.firstChild)r.appendChild(i)}function h(e,t){Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}function p(e){c?e.__proto__=HTMLTemplateElement.prototype:h(e,HTMLTemplateElement.prototype)}var t=Array.prototype.forEach.call.bind(Array.prototype.forEach),n=typeof HTMLTemplateElement!="undefined";n||(e.HTMLTemplateElement=function(){throw TypeError("Illegal constructor")});var c="__proto__"in{};HTMLTemplateElement.decorate=function(e,t){if(e.templateIsDecorated_)return!1;var s=e;s.templateIsDecorated_=!0;var u=i(s)&&n,c=u,h=!u,d=!1;u||r(s)&&(s=o(e),s.templateIsDecorated_=!0,u=n);if(!u){p(s);var v=f(s);s.content_=v.createDocumentFragment()}return t?s.instanceRef_=t:h?l(s,e,d):c&&a(s.content),!0};var d=e.HTMLUnknownElement||HTMLElement,v={get:function(){return this.content_},enumerable:!0,configurable:!0};n||(HTMLTemplateElement.prototype=Object.create(d.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"content",v)),HTMLTemplateElement.bootstrap=a}(window),define("aurelia-html-template-element",function(){}),require(["aurelia-path","aurelia-loader","aurelia-loader-default","aurelia-task-queue","aurelia-logging","aurelia-logging-console","aurelia-history","aurelia-history-browser","aurelia-event-aggregator","aurelia-framework","aurelia-metadata","aurelia-binding","aurelia-templating","aurelia-dependency-injection","aurelia-router","aurelia-templating-binding","aurelia-templating-resources","aurelia-templating-router","aurelia-route-recognizer","aurelia-http-client","aurelia-bootstrapper","aurelia-html-template-element","core-js"]),define("aurelia-bundle-manifest",function(){});