From 8767178a846d0f074653f96d4c0c49fa91431aec Mon Sep 17 00:00:00 2001 From: Jonathan Newman Date: Thu, 11 May 2017 11:23:36 -0500 Subject: [PATCH] pushed build, bumped version [skip ci] --- dist/footwork.css | 27 --------------------------- dist/footwork.js | 6 +++--- dist/footwork.min.js | 6 +++--- package.json | 2 +- 4 files changed, 7 insertions(+), 34 deletions(-) diff --git a/dist/footwork.css b/dist/footwork.css index 2d34d570..be37d6ad 100644 --- a/dist/footwork.css +++ b/dist/footwork.css @@ -3,7 +3,6 @@ .animateIn > .fadeIn { opacity: 1; - -webkit-transition: opacity 0.5s ease; -moz-transition: opacity 0.5s ease; transition: opacity 0.5s ease; } @@ -19,7 +18,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -37,7 +35,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -55,7 +52,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -73,7 +69,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -91,7 +86,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -109,7 +103,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -127,7 +120,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -145,7 +137,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -263,7 +254,6 @@ -webkit-transform: perspective(400px); -moz-transform: perspective(400px); transform: perspective(400px); - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -283,7 +273,6 @@ -webkit-transform: perspective(400px); -moz-transform: perspective(400px); transform: perspective(400px); - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -302,7 +291,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -328,7 +316,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -354,7 +341,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -380,7 +366,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -406,7 +391,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -432,7 +416,6 @@ -ms-transform: none; transform: none; opacity: 1; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -451,7 +434,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -469,7 +451,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -487,7 +468,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -505,7 +485,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -523,7 +502,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -541,7 +519,6 @@ -moz-transform: none; -ms-transform: none; transform: none; - -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease; transition: opacity 0.5s ease, -webkit-transform 0.5s ease; -moz-transition: opacity 0.5s ease, transform 0.5s ease, -moz-transform 0.5s ease; transition: opacity 0.5s ease, transform 0.5s ease; @@ -557,7 +534,6 @@ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform 0.5s ease; transition: -webkit-transform 0.5s ease; -moz-transition: transform 0.5s ease, -moz-transform 0.5s ease; transition: transform 0.5s ease; @@ -573,7 +549,6 @@ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform 0.5s ease; transition: -webkit-transform 0.5s ease; -moz-transition: transform 0.5s ease, -moz-transform 0.5s ease; transition: transform 0.5s ease; @@ -589,7 +564,6 @@ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform 0.5s ease; transition: -webkit-transform 0.5s ease; -moz-transition: transform 0.5s ease, -moz-transform 0.5s ease; transition: transform 0.5s ease; @@ -605,7 +579,6 @@ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform 0.5s ease; transition: -webkit-transform 0.5s ease; -moz-transition: transform 0.5s ease, -moz-transform 0.5s ease; transition: transform 0.5s ease; diff --git a/dist/footwork.js b/dist/footwork.js index 8681ed53..d8f89ff7 100644 --- a/dist/footwork.js +++ b/dist/footwork.js @@ -1,7 +1,7 @@ /** * footwork - A solid footing for web applications. * Author: Jonathan Newman (http://staticty.pe) - * Version: v2.0.2 + * Version: v2.0.3 * Url: http://footworkjs.com * License: MIT */ @@ -11,7 +11,7 @@ var fw = require('knockout/build/output/knockout-latest'); var _ = require('footwork-lodash'); fw.version = { - footwork: '2.0.2', + footwork: '2.0.3', knockout: fw.version, lodash: _.VERSION }; @@ -8658,7 +8658,7 @@ fw.bindingHandlers.route = { var routeState = routeHandlerDescription.state(); var configParams = router[privateDataSymbol].configParams; - hashOnly = !!routeState.match(startingHashRegex); + hashOnly = routeState && !!routeState.match(startingHashRegex); if (element.tagName.toLowerCase() === 'a') { element.href = configParams.baseRoute + routeState; diff --git a/dist/footwork.min.js b/dist/footwork.min.js index 43e5e143..5644657a 100644 --- a/dist/footwork.min.js +++ b/dist/footwork.min.js @@ -1,13 +1,13 @@ /** * footwork - A solid footing for web applications. * Author: Jonathan Newman (http://staticty.pe) - * Version: v2.0.2 + * Version: v2.0.3 * Url: http://footworkjs.com * License: MIT */ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.fw=t()}}(function(){var t;return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a-1}function l(t,e,n){for(var r=-1,o=t?t.length:0;++rn)return!1;var r=e.length-1;return n==r?e.pop():Gi.call(e,n,1),--this.size,!0}function z(t){var e=this.__data__,n=le(e,t);return 0>n?to:e[n][1]}function V(t){return le(this.__data__,t)>-1}function H(t,e){var n=this.__data__,r=le(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this}function J(t){var e=-1,n=t?t.length:0;for(this.clear();++e0&&n(u)?e>1?be(u,e-1,n,r,o):d(o,u):r||(o[o.length]=u)}return o}function ve(t,e){return t&&xa(t,e,Ir)}function me(t,e){e=In(e,t)?[e]:We(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[er(e[n++])];return n&&n==r?t:to}function ye(t,e,n){var r=e(t);return Pa(t)?r:d(r,n(t))}function ke(t){return Bi.call(t)}function we(t,e){return null!=t&&e in Object(t)}function xe(t,e,n){for(var r=n?l:c,o=t[0].length,i=t.length,a=i,u=Array(i),s=1/0,d=[];a--;){var p=t[a];a&&e&&(p=f(p,w(e))),s=na(p.length,s),u[a]=!n&&(e||o>=120&&p.length>=120)?new Z(a&&p):to}p=t[0];var h=-1,g=u[0];t:for(;++he&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++ro)&&(l[n[o]]=t[o]);for(;c--;)l[u++]=t[o++];return l}function rn(t,e,n,r){for(var o=-1,i=t.length,a=-1,u=n.length,s=-1,c=e.length,l=ea(i-u,0),f=Array(l+c),d=!r;++oo)&&(f[p+n[a]]=t[o++]);return f}function on(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:to,a=o>2?n[2]:to;for(i=t.length>3&&"function"==typeof i?(o--,i):to,a&&Bn(n[0],n[1],a)&&(i=3>o?to:i,o=1),e=Object(e);++ra&&u[0]!==c&&u[a-1]!==c?[]:D(u,c);if(a-=l.length,n>a)return vn(t,e,gn,r.placeholder,to,u,l,to,to,n-a);var f=this&&this!==_i&&this instanceof r?o:t;return i(f,this,u)}var o=dn(t);return r}function hn(t){return function(e,n,r){var o=Object(e);if(!yr(e)){var i=Nn(n,3);e=Ir(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:to}}function gn(t,e,n,r,o,i,a,u,s,c){function l(){for(var v=arguments.length,m=Array(v),y=v;y--;)m[y]=arguments[y];if(h)var k=En(l),w=S(m,k);if(r&&(m=nn(m,r,o,h)),i&&(m=rn(m,i,a,h)),v-=w,h&&c>v){var x=D(m,k);return vn(t,e,gn,l.placeholder,n,m,x,u,s,c-v)}var _=d?n:this,C=p?_[t]:t;return v=m.length,u?m=Zn(m,u):g&&v>1&&m.reverse(),f&&v>s&&(m.length=s),this&&this!==_i&&this instanceof l&&(C=b||dn(C)),C.apply(_,m)}var f=e&go,d=e&uo,p=e&so,h=e&(lo|fo),g=e&vo,b=p?to:dn(t);return l}function bn(t,e,n,r){function o(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Array(l+s),d=this&&this!==_i&&this instanceof o?u:t;++cu))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,d=o&mo?new Z:to;for(i.set(t,e),i.set(e,t);++l1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(si,"{\n/* [wrapped with "+e+"] */\n")}function $n(t){return Pa(t)||$a(t)||!!(Ki&&t&&t[Ki])}function Pn(t,e){return e=null==e?_o:e,!!e&&("number"==typeof t||vi.test(t))&&t>-1&&t%1==0&&e>t}function Bn(t,e,n){if(!Cr(n))return!1;var r=typeof e;return("number"==r?yr(n)&&Pn(e,n.length):"string"==r&&e in n)?mr(n[e],t):!1}function In(t,e){if(Pa(t))return!1;var n=typeof t;return"number"==n||"symbol"==n||"boolean"==n||null==t||jr(t)?!0:ri.test(t)||!ni.test(t)||null!=e&&t in Object(e)}function qn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Un(t){var e=Cn(t),n=j[e];if("function"!=typeof n||!(e in M.prototype))return!1;if(t===n)return!0;var r=Ca(n);return!!r&&t===r[0]}function zn(t){return!!Li&&Li in t}function Vn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Mi;return t===n}function Hn(t){return t===t&&!Cr(t)}function Jn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==to||t in Object(n))}}function Wn(t){var e=gr(t,function(t){return n.size===io&&n.clear(),t}),n=e.cache;return e}function Qn(t,e){var n=t[1],r=e[1],o=n|r,i=(uo|so|go)>o,a=r==go&&n==lo||r==go&&n==bo&&t[7].length<=e[8]||r==(go|bo)&&e[7].length<=e[8]&&n==lo;if(!i&&!a)return t;r&uo&&(t[2]=e[2],o|=n&uo?0:co);var u=e[3];if(u){var s=t[3];t[3]=s?nn(s,u,e[4]):u,t[4]=s?D(t[3],ao):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?rn(s,u,e[6]):u,t[6]=s?D(t[5],ao):e[6]),u=e[7],u&&(t[7]=u),r&go&&(t[8]=null==t[8]?e[8]:na(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function Gn(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}function Kn(t,e,n){return e=ea(e===to?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=ea(r.length-e,0),u=Array(a);++o0){if(++e>=ko)return arguments[0]}else e=0;return t.apply(to,arguments)}}function er(t){if("string"==typeof t||jr(t))return t;var e=t+"";return"0"==e&&1/t==-xo?"-0":e}function nr(t){if(null!=t){try{return Fi.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function rr(t,e){return a(No,function(n){var r="_."+n[0];e&n[1]&&!c(t,r)&&t.push(r)}),t.sort()}function or(t,e,n){var r=t?t.length:0;if(!r)return-1;var o=null==n?0:Rr(n);return 0>o&&(o=ea(r+o,0)),g(t,Nn(e,3),o)}function ir(t){var e=t?t.length:0;return e?be(t,1):[]}function ar(t,e,n){var r=t?t.length:0;if(!r)return-1;var o=null==n?0:Rr(n);return 0>o&&(o=ea(r+o,0)),b(t,e,o)}function ur(t){var e=t?t.length:0;return e?t[e-1]:to}function sr(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Nn(e,3);++rn&&(n=ea(o+n,0)),Or(t)?o>=n&&t.indexOf(e,n)>-1:!!o&&b(t,e,n)>-1}function pr(t,e){var n=Pa(t)?f:Re;return n(t,Nn(e,3))}function hr(t,e,n){var r=Pa(t)?p:y,o=arguments.length<3;return r(t,Nn(e,4),n,o,wa)}function gr(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(ro);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(gr.Cache||J),n}function br(t){if("function"!=typeof t)throw new TypeError(ro);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function vr(t){return pe(t,!1,!0)}function mr(t,e){return t===e||t!==t&&e!==e}function yr(t){return null!=t&&Sr(t.length)&&!_r(t)}function kr(t){return Er(t)&&yr(t)}function wr(t){return t===!0||t===!1||Er(t)&&Bi.call(t)==Oo}function xr(t,e){return Ce(t,e)}function _r(t){var e=Cr(t)?Bi.call(t):"";return e==Mo||e==Ro||e==Bo}function Sr(t){return"number"==typeof t&&t>-1&&t%1==0&&_o>=t}function Cr(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Er(t){return null!=t&&"object"==typeof t}function Nr(t){return null===t}function Dr(t){return"number"==typeof t||Er(t)&&Bi.call(t)==Fo}function Tr(t){if(!Er(t)||Bi.call(t)!=$o)return!1;var e=Ji(t);if(null===e)return!0;var n=$i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Fi.call(n)==Pi}function Or(t){return"string"==typeof t||!Pa(t)&&Er(t)&&Bi.call(t)==Uo}function jr(t){return"symbol"==typeof t||Er(t)&&Bi.call(t)==zo}function Ar(t){return t===to}function Mr(t){if(!t)return 0===t?t:0;if(t=Lr(t),t===xo||t===-xo){var e=0>t?-1:1;return e*So}return t===t?t:0}function Rr(t){var e=Mr(t),n=e%1;return e===e?n?e-n:e:0}function Lr(t){if("number"==typeof t)return t;if(jr(t))return Co;if(Cr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Cr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ui,"");var n=hi.test(t);return n||bi.test(t)?ki(t.slice(2),n?2:8):pi.test(t)?Co:+t}function Fr(t){return an(t,qr(t))}function $r(t){return null==t?"":He(t)}function Pr(t,e,n){var r=null==t?to:me(t,e);return r===to?n:r}function Br(t,e){return null!=t&&An(t,e,we)}function Ir(t){return yr(t)?ue(t):Ae(t)}function qr(t){return yr(t)?ue(t,!0):Me(t)}function Ur(t,e){return zr(t,br(Nn(e)))}function zr(t,e){return null==t?{}:Ie(t,Sn(t),Nn(e))}function Vr(t,e,n){e=In(e,t)?[e]:We(e);var r=-1,o=e.length;for(o||(t=to,o=1);++r-1}function l(t,e,n){for(var r=-1,o=t?t.length:0;++rn)return!1;var r=e.length-1;return n==r?e.pop():Gi.call(e,n,1),--this.size,!0}function z(t){var e=this.__data__,n=le(e,t);return 0>n?to:e[n][1]}function V(t){return le(this.__data__,t)>-1}function H(t,e){var n=this.__data__,r=le(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this}function J(t){var e=-1,n=t?t.length:0;for(this.clear();++e0&&n(u)?e>1?be(u,e-1,n,r,o):d(o,u):r||(o[o.length]=u)}return o}function ve(t,e){return t&&xa(t,e,Ir)}function me(t,e){e=In(e,t)?[e]:We(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[er(e[n++])];return n&&n==r?t:to}function ye(t,e,n){var r=e(t);return Pa(t)?r:d(r,n(t))}function ke(t){return Bi.call(t)}function we(t,e){return null!=t&&e in Object(t)}function xe(t,e,n){for(var r=n?l:c,o=t[0].length,i=t.length,a=i,u=Array(i),s=1/0,d=[];a--;){var p=t[a];a&&e&&(p=f(p,w(e))),s=na(p.length,s),u[a]=!n&&(e||o>=120&&p.length>=120)?new Z(a&&p):to}p=t[0];var h=-1,g=u[0];t:for(;++he&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++ro)&&(l[n[o]]=t[o]);for(;c--;)l[u++]=t[o++];return l}function rn(t,e,n,r){for(var o=-1,i=t.length,a=-1,u=n.length,s=-1,c=e.length,l=ea(i-u,0),f=Array(l+c),d=!r;++oo)&&(f[p+n[a]]=t[o++]);return f}function on(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:to,a=o>2?n[2]:to;for(i=t.length>3&&"function"==typeof i?(o--,i):to,a&&Bn(n[0],n[1],a)&&(i=3>o?to:i,o=1),e=Object(e);++ra&&u[0]!==c&&u[a-1]!==c?[]:D(u,c);if(a-=l.length,n>a)return vn(t,e,gn,r.placeholder,to,u,l,to,to,n-a);var f=this&&this!==_i&&this instanceof r?o:t;return i(f,this,u)}var o=dn(t);return r}function hn(t){return function(e,n,r){var o=Object(e);if(!yr(e)){var i=Nn(n,3);e=Ir(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:to}}function gn(t,e,n,r,o,i,a,u,s,c){function l(){for(var v=arguments.length,m=Array(v),y=v;y--;)m[y]=arguments[y];if(h)var k=En(l),w=S(m,k);if(r&&(m=nn(m,r,o,h)),i&&(m=rn(m,i,a,h)),v-=w,h&&c>v){var x=D(m,k);return vn(t,e,gn,l.placeholder,n,m,x,u,s,c-v)}var _=d?n:this,C=p?_[t]:t;return v=m.length,u?m=Zn(m,u):g&&v>1&&m.reverse(),f&&v>s&&(m.length=s),this&&this!==_i&&this instanceof l&&(C=b||dn(C)),C.apply(_,m)}var f=e&go,d=e&uo,p=e&so,h=e&(lo|fo),g=e&vo,b=p?to:dn(t);return l}function bn(t,e,n,r){function o(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Array(l+s),d=this&&this!==_i&&this instanceof o?u:t;++cu))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,d=o&mo?new Z:to;for(i.set(t,e),i.set(e,t);++l1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(si,"{\n/* [wrapped with "+e+"] */\n")}function $n(t){return Pa(t)||$a(t)||!!(Ki&&t&&t[Ki])}function Pn(t,e){return e=null==e?_o:e,!!e&&("number"==typeof t||vi.test(t))&&t>-1&&t%1==0&&e>t}function Bn(t,e,n){if(!Cr(n))return!1;var r=typeof e;return("number"==r?yr(n)&&Pn(e,n.length):"string"==r&&e in n)?mr(n[e],t):!1}function In(t,e){if(Pa(t))return!1;var n=typeof t;return"number"==n||"symbol"==n||"boolean"==n||null==t||jr(t)?!0:ri.test(t)||!ni.test(t)||null!=e&&t in Object(e)}function qn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Un(t){var e=Cn(t),n=j[e];if("function"!=typeof n||!(e in M.prototype))return!1;if(t===n)return!0;var r=Ca(n);return!!r&&t===r[0]}function zn(t){return!!Li&&Li in t}function Vn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Mi;return t===n}function Hn(t){return t===t&&!Cr(t)}function Jn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==to||t in Object(n))}}function Wn(t){var e=gr(t,function(t){return n.size===io&&n.clear(),t}),n=e.cache;return e}function Qn(t,e){var n=t[1],r=e[1],o=n|r,i=(uo|so|go)>o,a=r==go&&n==lo||r==go&&n==bo&&t[7].length<=e[8]||r==(go|bo)&&e[7].length<=e[8]&&n==lo;if(!i&&!a)return t;r&uo&&(t[2]=e[2],o|=n&uo?0:co);var u=e[3];if(u){var s=t[3];t[3]=s?nn(s,u,e[4]):u,t[4]=s?D(t[3],ao):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?rn(s,u,e[6]):u,t[6]=s?D(t[5],ao):e[6]),u=e[7],u&&(t[7]=u),r&go&&(t[8]=null==t[8]?e[8]:na(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function Gn(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}function Kn(t,e,n){return e=ea(e===to?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=ea(r.length-e,0),u=Array(a);++o0){if(++e>=ko)return arguments[0]}else e=0;return t.apply(to,arguments)}}function er(t){if("string"==typeof t||jr(t))return t;var e=t+"";return"0"==e&&1/t==-xo?"-0":e}function nr(t){if(null!=t){try{return Fi.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function rr(t,e){return a(No,function(n){var r="_."+n[0];e&n[1]&&!c(t,r)&&t.push(r)}),t.sort()}function or(t,e,n){var r=t?t.length:0;if(!r)return-1;var o=null==n?0:Rr(n);return 0>o&&(o=ea(r+o,0)),g(t,Nn(e,3),o)}function ir(t){var e=t?t.length:0;return e?be(t,1):[]}function ar(t,e,n){var r=t?t.length:0;if(!r)return-1;var o=null==n?0:Rr(n);return 0>o&&(o=ea(r+o,0)),b(t,e,o)}function ur(t){var e=t?t.length:0;return e?t[e-1]:to}function sr(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Nn(e,3);++rn&&(n=ea(o+n,0)),Or(t)?o>=n&&t.indexOf(e,n)>-1:!!o&&b(t,e,n)>-1}function pr(t,e){var n=Pa(t)?f:Re;return n(t,Nn(e,3))}function hr(t,e,n){var r=Pa(t)?p:y,o=arguments.length<3;return r(t,Nn(e,4),n,o,wa)}function gr(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(ro);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(gr.Cache||J),n}function br(t){if("function"!=typeof t)throw new TypeError(ro);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function vr(t){return pe(t,!1,!0)}function mr(t,e){return t===e||t!==t&&e!==e}function yr(t){return null!=t&&Sr(t.length)&&!_r(t)}function kr(t){return Er(t)&&yr(t)}function wr(t){return t===!0||t===!1||Er(t)&&Bi.call(t)==Oo}function xr(t,e){return Ce(t,e)}function _r(t){var e=Cr(t)?Bi.call(t):"";return e==Mo||e==Ro||e==Bo}function Sr(t){return"number"==typeof t&&t>-1&&t%1==0&&_o>=t}function Cr(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Er(t){return null!=t&&"object"==typeof t}function Nr(t){return null===t}function Dr(t){return"number"==typeof t||Er(t)&&Bi.call(t)==Fo}function Tr(t){if(!Er(t)||Bi.call(t)!=$o)return!1;var e=Ji(t);if(null===e)return!0;var n=$i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Fi.call(n)==Pi}function Or(t){return"string"==typeof t||!Pa(t)&&Er(t)&&Bi.call(t)==Uo}function jr(t){return"symbol"==typeof t||Er(t)&&Bi.call(t)==zo}function Ar(t){return t===to}function Mr(t){if(!t)return 0===t?t:0;if(t=Lr(t),t===xo||t===-xo){var e=0>t?-1:1;return e*So}return t===t?t:0}function Rr(t){var e=Mr(t),n=e%1;return e===e?n?e-n:e:0}function Lr(t){if("number"==typeof t)return t;if(jr(t))return Co;if(Cr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Cr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ui,"");var n=hi.test(t);return n||bi.test(t)?ki(t.slice(2),n?2:8):pi.test(t)?Co:+t}function Fr(t){return an(t,qr(t))}function $r(t){return null==t?"":He(t)}function Pr(t,e,n){var r=null==t?to:me(t,e);return r===to?n:r}function Br(t,e){return null!=t&&An(t,e,we)}function Ir(t){return yr(t)?ue(t):Ae(t)}function qr(t){return yr(t)?ue(t,!0):Me(t)}function Ur(t,e){return zr(t,br(Nn(e)))}function zr(t,e){return null==t?{}:Ie(t,Sn(t),Nn(e))}function Vr(t,e,n){e=In(e,t)?[e]:We(e);var r=-1,o=e.length;for(o||(t=to,o=1);++rn;n++)p[e[n]]=t});var h={propertychange:!0},b=i&&function(){for(var t=3,n=i.createElement("div"),r=n.getElementsByTagName("i");n.innerHTML="",r[0];);return t>4?t:e}(),v=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(t,e){for(var n=0,r=t.length;r>n;n++)e(t[n],n)},o:function(t,e){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},Vb:function(t,e,n){for(var r=0,o=t.length;o>r;r++)if(e.call(n,t[r],r))return t[r];return null},Na:function(t,e){var n=g.a.o(t,e);n>0?t.splice(n,1):0===n&&t.shift()},Wb:function(t){t=t||[];for(var e=[],n=0,r=t.length;r>n;n++)0>g.a.o(e,t[n])&&e.push(t[n]);return e},ib:function(t,e){t=t||[];for(var n=[],r=0,o=t.length;o>r;r++)n.push(e(t[r],r));return n},Ma:function(t,e){t=t||[];for(var n=[],r=0,o=t.length;o>r;r++)e(t[r],r)&&n.push(t[r]);return n},ta:function(t,e){if(e instanceof Array)t.push.apply(t,e);else for(var n=0,r=e.length;r>n;n++)t.push(e[n]);return t},ra:function(t,e,n){var r=g.a.o(g.a.Bb(t),e);0>r?n&&t.push(e):n||t.splice(r,1)},la:l,extend:n,$a:r,ab:l?r:n,D:t,Ea:function(t,e){if(!t)return t;var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=e(t[n],n,t));return r},rb:function(t){for(;t.firstChild;)g.removeNode(t.firstChild)},nc:function(t){t=g.a.W(t);for(var e=(t[0]&&t[0].ownerDocument||i).createElement("div"),n=0,r=t.length;r>n;n++)e.appendChild(g.ba(t[n]));return e},wa:function(t,e){for(var n=0,r=t.length,o=[];r>n;n++){var i=t[n].cloneNode(!0);o.push(e?g.ba(i):i)}return o},fa:function(t,e){if(g.a.rb(t),e)for(var n=0,r=e.length;r>n;n++)t.appendChild(e[n])},uc:function(t,e){var n=t.nodeType?[t]:t;if(0i;i++)o.insertBefore(e[i],r);for(i=0,a=n.length;a>i;i++)g.removeNode(n[i])}},Ba:function(t,e){if(t.length){for(e=8===e.nodeType&&e.parentNode||e;t.length&&t[0].parentNode!==e;)t.splice(0,1);for(;1b?t.setAttribute("selected",e):t.selected=e},cb:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(t,e){return t=t||"",e.length>t.length?!1:t.substring(0,e.length)===e},Rc:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(3===t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},qb:function(t){return g.a.Rc(t,t.ownerDocument.documentElement)},Tb:function(t){return!!g.a.Vb(t,g.a.qb)},A:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},Zb:function(t){return g.onError?function(){try{return t.apply(this,arguments)}catch(e){throw g.onError&&g.onError(e),e}}:t},setTimeout:function(t,e){return setTimeout(g.a.Zb(t),e)},dc:function(t){setTimeout(function(){throw g.onError&&g.onError(t),t},0)},q:function(t,e,n){var r=g.a.Zb(n);if(n=b&&h[e],g.options.useOnlyNativeEvents||n||!u)if(n||"function"!=typeof t.addEventListener){if("undefined"==typeof t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var o=function(e){r.call(t,e)},i="on"+e;t.attachEvent(i,o),g.a.G.qa(t,function(){t.detachEvent(i,o)})}else t.addEventListener(e,r,!1);else u(t).bind(e,r)},Fa:function(t,e){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if("input"===g.a.A(t)&&t.type&&"click"==e.toLowerCase()?(n=t.type,n="checkbox"==n||"radio"==n):n=!1,g.options.useOnlyNativeEvents||!u||n)if("function"==typeof i.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");n=i.createEvent(p[e]||"HTMLEvents"),n.initEvent(e,!0,!0,o,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(n)}else if(n&&t.click)t.click();else{if("undefined"==typeof t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+e)}else u(t).trigger(e)},c:function(t){return g.I(t)?t():t},Bb:function(t){return g.I(t)?t.p():t},fb:function(t,e,n){var r;e&&("object"==typeof t.classList?(r=t.classList[n?"add":"remove"],g.a.r(e.match(v),function(e){r.call(t.classList,e)})):"string"==typeof t.className.baseVal?c(t.className,"baseVal",e,n):c(t,"className",e,n))},bb:function(t,n){var r=g.a.c(n);(null===r||r===e)&&(r="");var o=g.f.firstChild(t);!o||3!=o.nodeType||g.f.nextSibling(o)?g.f.fa(t,[t.ownerDocument.createTextNode(r)]):o.data=r,g.a.Wc(t)},vc:function(t,e){if(t.name=e,7>=b)try{t.mergeAttributes(i.createElement(""),!1)}catch(n){}},Wc:function(t){b>=9&&(t=1==t.nodeType?t:t.parentNode,t.style&&(t.style.zoom=t.style.zoom))},Sc:function(t){if(b){var e=t.style.width;t.style.width=0,t.style.width=e}},nd:function(t,e){t=g.a.c(t),e=g.a.c(e);for(var n=[],r=t;e>=r;r++)n.push(r);return n},W:function(t){for(var e=[],n=0,r=t.length;r>n;n++)e.push(t[n]);return e},bc:function(t){return f?Symbol(t):t},xd:6===b,yd:7===b,C:b,ic:function(t,e){for(var n=g.a.W(t.getElementsByTagName("input")).concat(g.a.W(t.getElementsByTagName("textarea"))),r="string"==typeof e?function(t){return t.name===e}:function(t){return e.test(t.name)},o=[],i=n.length-1;i>=0;i--)r(n[i])&&o.push(n[i]);return o},kd:function(t){return"string"==typeof t&&(t=g.a.cb(t))?s&&s.parse?s.parse(t):new Function("return "+t)():null},Gb:function(t,e,n){if(!s||!s.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return s.stringify(g.a.c(t),e,n)},ld:function(e,n,r){r=r||{};var o=r.params||{},a=r.includeFields||this.gc,u=e;if("object"==typeof e&&"form"===g.a.A(e))for(var u=e.action,s=a.length-1;s>=0;s--)for(var c=g.a.ic(e,a[s]),l=c.length-1;l>=0;l--)o[c[l].name]=c[l].value;n=g.a.c(n);var f=i.createElement("form");f.style.display="none",f.action=u,f.method="post";for(var d in n)e=i.createElement("input"),e.type="hidden",e.name=d,e.value=g.a.Gb(g.a.c(n[d])),f.appendChild(e);t(o,function(t,e){var n=i.createElement("input");n.type="hidden",n.name=t,n.value=e,f.appendChild(n)}),i.body.appendChild(f),r.submitter?r.submitter(f):f.submit(),setTimeout(function(){f.parentNode.removeChild(f)},0)}}}(),g.b("utils",g.a),g.b("utils.arrayForEach",g.a.r),g.b("utils.arrayFirst",g.a.Vb),g.b("utils.arrayFilter",g.a.Ma),g.b("utils.arrayGetDistinctValues",g.a.Wb),g.b("utils.arrayIndexOf",g.a.o),g.b("utils.arrayMap",g.a.ib),g.b("utils.arrayPushAll",g.a.ta),g.b("utils.arrayRemoveItem",g.a.Na),g.b("utils.extend",g.a.extend),g.b("utils.fieldsIncludedWithJsonPost",g.a.gc),g.b("utils.getFormFields",g.a.ic),g.b("utils.peekObservable",g.a.Bb),g.b("utils.postJson",g.a.ld),g.b("utils.parseJson",g.a.kd),g.b("utils.registerEventHandler",g.a.q),g.b("utils.stringifyJson",g.a.Gb),g.b("utils.range",g.a.nd),g.b("utils.toggleDomNodeCssClass",g.a.fb),g.b("utils.triggerEvent",g.a.Fa),g.b("utils.unwrapObservable",g.a.c),g.b("utils.objectForEach",g.a.D),g.b("utils.addOrRemoveItem",g.a.ra),g.b("utils.setTextContent",g.a.bb),g.b("unwrap",g.a.c),Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if(1===arguments.length)return function(){return e.apply(t,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),e.apply(t,r)}}),g.a.e=new function(){function t(t,i){var a=t[r];if(!a||"null"===a||!o[a]){if(!i)return e;a=t[r]="ko"+n++,o[a]={}}return o[a]}var n=0,r="__ko__"+(new Date).getTime(),o={};return{get:function(n,r){var o=t(n,!1);return o===e?e:o[r]},set:function(n,r,o){(o!==e||t(n,!1)!==e)&&(t(n,!0)[r]=o)},clear:function(t){var e=t[r];return e?(delete o[e],t[r]=null,!0):!1},J:function(){return n++ +r}}},g.b("utils.domData",g.a.e),g.b("utils.domData.clear",g.a.e.clear),g.a.G=new function(){function t(t,n){var o=g.a.e.get(t,r);return o===e&&n&&(o=[],g.a.e.set(t,r,o)),o}function n(e){var r=t(e,!1);if(r)for(var r=r.slice(0),o=0;or;r++)n(e[r])}return t},removeNode:function(t){g.ba(t),t.parentNode&&t.parentNode.removeChild(t)},cleanExternalData:function(t){u&&"function"==typeof u.cleanData&&u.cleanData([t])}}},g.ba=g.a.G.ba,g.removeNode=g.a.G.removeNode,g.b("cleanNode",g.ba),g.b("removeNode",g.removeNode),g.b("utils.domNodeDisposal",g.a.G),g.b("utils.domNodeDisposal.addDisposeCallback",g.a.G.qa),g.b("utils.domNodeDisposal.removeDisposeCallback",g.a.G.tc),function(){var t=[0,"",""],n=[1,"","
"],r=[3,"","
"],a=[1,""],s={thead:n,tbody:n,tfoot:n,tr:[2,"","
"],td:r,th:r,option:a,optgroup:a},c=8>=g.a.C;g.a.na=function(e,n){var r;if(u){if(u.parseHTML)r=u.parseHTML(e,n)||[];else if((r=u.clean([e],n))&&r[0]){for(var a=r[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(r=n)||(r=i);var l,a=r.parentWindow||r.defaultView||o,f=g.a.cb(e).toLowerCase(),d=r.createElement("div");for(l=(f=f.match(/^<([a-z]+)[ >]/))&&s[f[1]]||t,f=l[0],l="ignored
"+l[1]+e+l[2]+"
","function"==typeof a.innerShiv?d.appendChild(a.innerShiv(l)):(c&&r.appendChild(d),d.innerHTML=l,c&&d.parentNode.removeChild(d));f--;)d=d.lastChild;r=g.a.W(d.lastChild.childNodes)}return r},g.a.Eb=function(t,n){if(g.a.rb(t),n=g.a.c(n),null!==n&&n!==e)if("string"!=typeof n&&(n=n.toString()),u)u(t).html(n);else for(var r=g.a.na(n,t.ownerDocument),o=0;or;r++)t(o[r],n)}var n={};return{yb:function(t){if("function"!=typeof t)throw Error("You can only pass a function to ko.memoization.memoize()");var e=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return n[e]=t,""},Bc:function(t,r){var o=n[t];if(o===e)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return o.apply(null,r||[]),!0}finally{delete n[t]}},Cc:function(e,n){var r=[];t(e,r);for(var o=0,i=r.length;i>o;o++){var a=r[o].Qc,u=[a];n&&g.a.ta(u,n),g.N.Bc(r[o].hd,u),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},pc:function(t){return(t=t.match(/^\[ko_memo\:(.*?)\]$/))?t[1]:null}}}(),g.b("memoization",g.N),g.b("memoization.memoize",g.N.yb),g.b("memoization.unmemoize",g.N.Bc),g.b("memoization.parseMemoText",g.N.pc),g.b("memoization.unmemoizeDomNodeAndDescendants",g.N.Cc),g.Z=function(){function t(){if(r)for(var t,e=r,o=0;r>u;)if(t=n[u++]){if(u>e){if(5e3<=++o){u=r,g.a.dc(Error("'Too much recursion' after processing "+o+" task groups."));break}e=r}try{t()}catch(i){g.a.dc(i)}}}function e(){t(),u=r=n.length=0}var n=[],r=0,a=1,u=0;return{scheduler:o.MutationObserver?function(t){var e=i.createElement("div");return new MutationObserver(t).observe(e,{attributes:!0}),function(){e.classList.toggle("foo")}}(e):i&&"onreadystatechange"in i.createElement("script")?function(t){var e=i.createElement("script");e.onreadystatechange=function(){e.onreadystatechange=null,i.documentElement.removeChild(e),e=null,t()},i.documentElement.appendChild(e)}:function(t){setTimeout(t,0)},Za:function(t){return r||g.Z.scheduler(e),n[r++]=t,a++},cancel:function(t){t-=a-r,t>=u&&r>t&&(n[t]=null)},resetForTesting:function(){var t=r-u;return u=r=n.length=0,t},rd:t}}(),g.b("tasks",g.Z),g.b("tasks.schedule",g.Z.Za),g.b("tasks.runEarly",g.Z.rd),g.Aa={throttle:function(t,e){t.throttleEvaluation=e;var n=null;return g.B({read:t,write:function(r){clearTimeout(n),n=g.a.setTimeout(function(){t(r)},e)}})},rateLimit:function(t,e){var n,r,o;"number"==typeof e?n=e:(n=e.timeout,r=e.method),t.gb=!1,o="notifyWhenChangesStop"==r?l:c,t.Wa(function(t){return o(t,n)})},deferred:function(t,n){if(!0!==n)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.gb||(t.gb=!0,t.Wa(function(n){var r,o=!1;return function(){if(!o){g.Z.cancel(r),r=g.Z.Za(n);try{o=!0,t.notifySubscribers(e,"dirty")}finally{o=!1}}}}))},notify:function(t,e){t.equalityComparer="always"==e?null:r}};var b={undefined:1,"boolean":1,number:1,string:1};g.b("extenders",g.Aa),g.zc=function(t,e,n){this.$=t,this.jb=e,this.Pc=n,this.T=!1,g.H(this,"dispose",this.k)},g.zc.prototype.k=function(){this.T=!0,this.Pc()},g.K=function(){g.a.ab(this,m),m.ub(this)};var v="change",m={ub:function(t){t.F={change:[]},t.Qb=1},Y:function(t,e,n){var r=this;n=n||v;var o=new g.zc(r,e?t.bind(e):t,function(){g.a.Na(r.F[n],o),r.Ka&&r.Ka(n)});return r.ua&&r.ua(n),r.F[n]||(r.F[n]=[]),r.F[n].push(o),o},notifySubscribers:function(t,e){if(e=e||v,e===v&&this.Kb(),this.Ra(e)){var n=e===v&&this.Fc||this.F[e].slice(0);try{g.l.Xb();for(var r,o=0;r=n[o];++o)r.T||r.jb(t)}finally{g.l.end()}}},Pa:function(){return this.Qb},Zc:function(t){return this.Pa()!==t},Kb:function(){++this.Qb},Wa:function(t){var e,n,r,o,i=this,a=g.I(i);i.Ja||(i.Ja=i.notifySubscribers,i.notifySubscribers=f);var u=t(function(){i.Ha=!1,a&&o===i&&(o=i.Mb?i.Mb():i());var t=n||i.Ua(r,o);n=e=!1,t&&i.Ja(r=o)});i.Pb=function(t){i.Fc=i.F[v].slice(0),i.Ha=e=!0,o=t,u()},i.Ob=function(t){e||(r=t,i.Ja(t,"beforeChange"))},i.Hc=function(){i.Ua(r,i.p(!0))&&(n=!0)}},Ra:function(t){return this.F[t]&&this.F[t].length},Xc:function(t){if(t)return this.F[t]&&this.F[t].length||0;var e=0;return g.a.D(this.F,function(t,n){"dirty"!==t&&(e+=n.length)}),e},Ua:function(t,e){return!this.equalityComparer||!this.equalityComparer(t,e)},extend:function(t){var e=this;return t&&g.a.D(t,function(t,n){var r=g.Aa[t];"function"==typeof r&&(e=r(e,n)||e)}),e}};g.H(m,"subscribe",m.Y),g.H(m,"extend",m.extend),g.H(m,"getSubscriptionsCount",m.Xc),g.a.la&&g.a.$a(m,Function.prototype),g.K.fn=m,g.lc=function(t){return null!=t&&"function"==typeof t.Y&&"function"==typeof t.notifySubscribers},g.b("subscribable",g.K),g.b("isSubscribable",g.lc),g.xa=g.l=function(){function t(t){r.push(n),n=t}function e(){n=r.pop()}var n,r=[],o=0;return{Xb:t,end:e,sc:function(t){if(n){if(!g.lc(t))throw Error("Only subscribable things can act as dependencies");n.jb.call(n.Lc,t,t.Gc||(t.Gc=++o))}},w:function(n,r,o){try{return t(),n.apply(r,o||[])}finally{e()}},Ca:function(){return n?n.m.Ca():void 0},Va:function(){return n?n.Va:void 0}}}(),g.b("computedContext",g.xa),g.b("computedContext.getDependenciesCount",g.xa.Ca),g.b("computedContext.isInitial",g.xa.Va),g.b("ignoreDependencies",g.wd=g.l.w);var y=g.a.bc("_latestValue");g.O=function(t){function e(){return 0=0;r--)n(e[r])&&(e[r]._destroy=!0);this.ha()},destroyAll:function(t){return t===e?this.destroy(function(){return!0}):t?this.destroy(function(e){return 0<=g.a.o(t,e)}):[]},indexOf:function(t){var e=this();return g.a.o(e,t)},replace:function(t,e){var n=this.indexOf(t);n>=0&&(this.ia(),this.p()[n]=e,this.ha())}},g.a.la&&g.a.$a(g.ma.fn,g.O.fn),g.a.r("pop push reverse shift sort splice unshift".split(" "),function(t){g.ma.fn[t]=function(){var e=this.p();this.ia(),this.Yb(e,t,arguments);var n=e[t].apply(e,arguments);return this.ha(),n===e?this:n}}),g.a.r(["slice"],function(t){g.ma.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),g.b("observableArray",g.ma),g.Aa.trackArrayChanges=function(t,n){function r(){if(!a){a=!0,i=t.notifySubscribers,t.notifySubscribers=function(t,e){return e&&e!==v||++s,i.apply(this,arguments)};var e=[].concat(t.p()||[]);u=null,o=t.Y(function(n){if(n=[].concat(n||[]),t.Ra("arrayChange")){var r;(!u||s>1)&&(u=g.a.lb(e,n,t.kb)),r=u}e=n,u=null,s=0,r&&r.length&&t.notifySubscribers(r,"arrayChange")})}}if(t.kb={},n&&"object"==typeof n&&g.a.extend(t.kb,n),t.kb.sparse=!0,!t.Yb){var o,i,a=!1,u=null,s=0,c=t.ua,l=t.Ka;t.ua=function(e){c&&c.call(t,e),"arrayChange"===e&&r()},t.Ka=function(n){l&&l.call(t,n),"arrayChange"!==n||t.Ra("arrayChange")||(i&&(t.notifySubscribers=i,i=e),o.k(),a=!1)},t.Yb=function(t,e,n){function r(t,e,n){return o[o.length]={status:t,value:e,index:n}}if(a&&!s){var o=[],i=t.length,c=n.length,l=0;switch(e){case"push":l=i;case"unshift":for(e=0;c>e;e++)r("added",n[e],l+e);break;case"pop":l=i-1;case"shift":i&&r("deleted",t[l],l);break;case"splice":e=Math.min(Math.max(0,0>n[0]?i+n[0]:n[0]),i);for(var i=1===c?i:Math.min(e+(n[1]||0),i),c=e+c-2,l=Math.max(i,c),f=[],d=[],p=2;l>e;++e,++p)i>e&&d.push(r("deleted",t[e],e)),c>e&&f.push(r("added",n[p],e));g.a.hc(d,f);break;default:return}u=o}}}};var x=g.a.bc("_state");g.m=g.B=function(t,n,r){function o(){if(0=0?(clearTimeout(this[x].fc),this[x].fc=g.a.setTimeout(function(){t.U(!0)},e)):t.oa?t.oa(!0):t.U(!0)},U:function(t){var e=this[x],n=e.ya,r=!1;if(!e.Ta&&!e.T){if(e.i&&!g.a.qb(e.i)||n&&n()){if(!e.Hb)return this.k(),void 0}else e.Hb=!1;e.Ta=!0;try{r=this.Vc(t)}finally{e.Ta=!1}return e.L||this.k(),r}},Vc:function(t){var n=this[x],r=!1,o=n.Ya?e:!n.L,i={Mc:this,Oa:n.s,ob:n.L};return g.l.Xb({Lc:i,jb:p,m:this,Va:o}),n.s={},n.L=0,i=this.Uc(n,i),this.Ua(n.M,i)&&(n.t||this.notifySubscribers(n.M,"beforeChange"),n.M=i,n.t?this.Kb():t&&this.notifySubscribers(n.M),r=!0),o&&this.notifySubscribers(n.M,"awake"),r},Uc:function(t,e){try{var n=t.od;return t.sb?n.call(t.sb):n()}finally{g.l.end(),e.ob&&!t.t&&g.a.D(e.Oa,d),t.da=t.V=!1}},p:function(t){var e=this[x];return(e.V&&(t||!e.L)||e.t&&this.Sa())&&this.U(),e.M},Wa:function(t){g.K.fn.Wa.call(this,t),this.Mb=function(){return this[x].da?this.U():this[x].V=!1,this[x].M},this.oa=function(t){this.Ob(this[x].M),this[x].V=!0,t&&(this[x].da=!0),this.Pb(this)}},k:function(){var t=this[x];!t.t&&t.s&&g.a.D(t.s,function(t,e){e.k&&e.k()}),t.i&&t.pb&&g.a.G.tc(t.i,t.pb),t.s=null,t.L=0,t.T=!0,t.da=!1,t.V=!1,t.t=!1,t.i=null}},S={ua:function(t){var e=this,n=e[x];if(!n.T&&n.t&&"change"==t){if(n.t=!1,n.da||e.Sa())n.s=null,n.L=0,e.U()&&e.Kb();else{var r=[];g.a.D(n.s,function(t,e){r[e.Ia]=t}),g.a.r(r,function(t,r){var o=n.s[t],i=e.yc(o.$);i.Ia=r,i.pa=o.pa,n.s[t]=i})}n.T||e.notifySubscribers(n.M,"awake")}},Ka:function(t){var n=this[x];n.T||"change"!=t||this.Ra("change")||(g.a.D(n.s,function(t,e){e.k&&(n.s[t]={$:e.$,Ia:e.Ia,pa:e.pa},e.k())}),n.t=!0,this.notifySubscribers(e,"asleep"))},Pa:function(){var t=this[x];return t.t&&(t.da||this.Sa())&&this.U(),g.K.fn.Pa.call(this)}},C={ua:function(t){"change"!=t&&"beforeChange"!=t||this.p()}};g.a.la&&g.a.$a(_,g.K.fn);var E=g.O.md;g.m[E]=g.O,_[E]=g.m,g.bd=function(t){return g.Qa(t,g.m)},g.cd=function(t){return g.Qa(t,g.m)&&t[x]&&t[x].Ya},g.b("computed",g.m),g.b("dependentObservable",g.m),g.b("isComputed",g.bd),g.b("isPureComputed",g.cd),g.b("computed.fn",_),g.H(_,"peek",_.p),g.H(_,"dispose",_.k),g.H(_,"isActive",_.ca),g.H(_,"getDependenciesCount",_.Ca),g.rc=function(t,e){return"function"==typeof t?g.m(t,e,{pure:!0}):(t=g.a.extend({},t),t.pure=!0,g.m(t,e))},g.b("pureComputed",g.rc),function(){function t(o,i,a){if(a=a||new r,o=i(o),"object"!=typeof o||null===o||o===e||o instanceof RegExp||o instanceof Date||o instanceof String||o instanceof Number||o instanceof Boolean)return o;var u=o instanceof Array?[]:{};return a.save(o,u),n(o,function(n){var r=i(o[n]);switch(typeof r){case"boolean":case"number":case"string":case"function":u[n]=r;break;case"object":case"undefined":var s=a.get(r);u[n]=s!==e?s:t(r,i,a)}}),u}function n(t,e){if(t instanceof Array){for(var n=0;ne;e++)t=t();return t})},g.toJSON=function(t,e,n){return t=g.Ac(t),g.a.Gb(t,e,n)},r.prototype={save:function(t,e){var n=g.a.o(this.keys,t);n>=0?this.Lb[n]=e:(this.keys.push(t),this.Lb.push(e))},get:function(t){return t=g.a.o(this.keys,t),t>=0?this.Lb[t]:e}}}(),g.b("toJS",g.Ac),g.b("toJSON",g.toJSON),function(){g.j={u:function(t){switch(g.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?g.a.e.get(t,g.d.options.zb):7>=g.a.C?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?g.j.u(t.options[t.selectedIndex]):e;default:return t.value}},ja:function(t,n,r){switch(g.a.A(t)){case"option":switch(typeof n){case"string":g.a.e.set(t,g.d.options.zb,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n;break;default:g.a.e.set(t,g.d.options.zb,n),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof n?n:""}break;case"select":(""===n||null===n)&&(n=e);for(var o,i=-1,a=0,u=t.options.length;u>a;++a)if(o=g.j.u(t.options[a]),o==n||""==o&&n===e){i=a;break}(r||i>=0||n===e&&1=s){n.push(e&&u.length?{key:e,value:u.join("")}:{unknown:e||u.join("")}),e=s=0,u=[];continue}}else if(58===f){if(!s&&!e&&1===u.length){e=u.pop();continue}}else 47===f&&l&&1"===i.createComment("test").text,a=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,u=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0};g.f={aa:{},childNodes:function(e){return t(e)?n(e):e.childNodes},za:function(e){if(t(e)){e=g.f.childNodes(e);for(var n=0,r=e.length;r>n;n++)g.removeNode(e[n])}else g.a.rb(e)},fa:function(e,n){if(t(e)){g.f.za(e);for(var r=e.nextSibling,o=0,i=n.length;i>o;o++)r.parentNode.insertBefore(n[o],r)}else g.a.fa(e,n)},qc:function(e,n){t(e)?e.parentNode.insertBefore(n,e.nextSibling):e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)},kc:function(e,n,r){r?t(e)?e.parentNode.insertBefore(n,r.nextSibling):r.nextSibling?e.insertBefore(n,r.nextSibling):e.appendChild(n):g.f.qc(e,n)},firstChild:function(n){return t(n)?!n.nextSibling||e(n.nextSibling)?null:n.nextSibling:n.firstChild},nextSibling:function(n){return t(n)&&(n=r(n)),n.nextSibling&&e(n.nextSibling)?null:n.nextSibling},Yc:t,vd:function(t){return(t=(o?t.text:t.nodeValue).match(a))?t[1]:null},oc:function(n){if(s[g.a.A(n)]){var o=n.firstChild;if(o)do if(1===o.nodeType){var i;i=o.firstChild;var a=null;if(i)do if(a)a.push(i);else if(t(i)){var u=r(i,!0);u?i=u:a=[i]}else e(i)&&(a=[i]);while(i=i.nextSibling);if(i=a)for(a=o.nextSibling,u=0;u=g.a.C&&t.tagName===e)?e:void 0},g.g.Rb=function(e,n,r,o){if(1===n.nodeType){var i=g.g.getComponentNameForNode(n);if(i){if(e=e||{},e.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:i,params:t(n,r)};e.component=o?function(){return a}:a}}return e};var e=new g.S;9>g.a.C&&(g.g.register=function(t){return function(e){return i.createElement(e),t.apply(this,arguments)}}(g.g.register),i.createDocumentFragment=function(t){return function(){var e,n=t(),r=g.g.Ec;for(e in r)r.hasOwnProperty(e)&&n.createElement(e);return n}}(i.createDocumentFragment))}(),function(t){function e(t,e,n){if(e=e.template,!e)throw Error("Component '"+t+"' has no template");t=g.a.wa(e),g.f.fa(n,t)}function n(t,e,n,r){var o=t.createViewModel;return o?o.call(t,r,{element:e,templateNodes:n}):r}var r=0;g.d.component={init:function(o,i,a,u,s){function c(){var t=l&&l.dispose;"function"==typeof t&&t.call(l),f=l=null}var l,f,d=g.a.W(g.f.childNodes(o));return g.a.G.qa(o,c),g.m(function(){var a,u,p=g.a.c(i());if("string"==typeof p?a=p:(a=g.a.c(p.name),u=g.a.c(p.params)),!a)throw Error("No component name specified");var h=f=++r;g.g.get(a,function(r){if(f===h){if(c(),!r)throw Error("Unknown component '"+a+"'");e(a,r,o);var i=n(r,o,d,u);r=s.createChildContext(i,t,function(t){t.$component=i,t.$componentTemplateNodes=d}),l=i,g.hb(r,o)}})},null,{i:o}),{controlsDescendantBindings:!0}}},g.f.aa.component=!0}();var N={"class":"className","for":"htmlFor"};g.d.attr={update:function(t,n){var r=g.a.c(n())||{};g.a.D(r,function(n,r){r=g.a.c(r);var o=!1===r||null===r||r===e;o&&t.removeAttribute(n),8>=g.a.C&&n in N?(n=N[n],o?t.removeAttribute(n):t[n]=r):o||t.setAttribute(n,r.toString()),"name"===n&&g.a.vc(t,o?"":r.toString())})}},function(){g.d.checked={after:["value","attr"],init:function(t,n,r){function o(){var e=t.checked,o=p?a():e;if(!g.xa.Va()&&(!s||e)){var i=g.l.w(n);if(l){var u=f?i.p():i;d!==o?(e&&(g.a.ra(u,o,!0),g.a.ra(u,d,!1)),d=o):g.a.ra(u,o,e),f&&g.Da(i)&&i(u)}else g.h.Ga(i,r,"checked",o,!0)}}function i(){var e=g.a.c(n());t.checked=l?0<=g.a.o(e,a()):u?e:a()===e}var a=g.rc(function(){return r.has("checkedValue")?g.a.c(r.get("checkedValue")):r.has("value")?g.a.c(r.get("value")):t.value}),u="checkbox"==t.type,s="radio"==t.type;if(u||s){var c=n(),l=u&&g.a.c(c)instanceof Array,f=!(l&&c.push&&c.splice),d=l?a():e,p=s||l;s&&!t.name&&g.d.uniqueName.init(t,function(){return!0}),g.m(o,null,{i:t}),g.a.q(t,"click",o),g.m(i,null,{i:t}),c=e}}},g.h.ga.checked=!0,g.d.checkedValue={update:function(t,e){t.value=g.a.c(e())}}}(),g.d.css={update:function(t,e){var n=g.a.c(e());null!==n&&"object"==typeof n?g.a.D(n,function(e,n){n=g.a.c(n),g.a.fb(t,e,n)}):(n=g.a.cb(String(n||"")),g.a.fb(t,t.__ko__cssValue,!1),t.__ko__cssValue=n,g.a.fb(t,n,!0))}},g.d.enable={update:function(t,e){var n=g.a.c(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},g.d.disable={update:function(t,e){g.d.enable.update(t,function(){return!g.a.c(e())})}},g.d.event={init:function(t,e,n,r,o){var i=e()||{};g.a.D(i,function(i){"string"==typeof i&&g.a.q(t,i,function(t){var a,u=e()[i];if(u){try{var s=g.a.W(arguments);r=o.$data,s.unshift(r),a=u.apply(r,s)}finally{!0!==a&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===n.get(i+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}})})}},g.d.foreach={mc:function(t){return function(){var e=t(),n=g.a.Bb(e);return n&&"number"!=typeof n.length?(g.a.c(e),{foreach:n.data,as:n.as,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:g.X.vb}):{foreach:e,templateEngine:g.X.vb}}},init:function(t,e){return g.d.template.init(t,g.d.foreach.mc(e))},update:function(t,e,n,r,o){return g.d.template.update(t,g.d.foreach.mc(e),n,r,o)}},g.h.va.foreach=!1,g.f.aa.foreach=!0,g.d.hasfocus={init:function(t,e,n){function r(r){t.__ko_hasfocusUpdating=!0;var o=t.ownerDocument;if("activeElement"in o){var i;try{i=o.activeElement}catch(a){i=o.body}r=i===t}o=e(),g.h.Ga(o,n,"hasfocus",r,!0),t.__ko_hasfocusLastValue=r,t.__ko_hasfocusUpdating=!1}var o=r.bind(null,!0),i=r.bind(null,!1);g.a.q(t,"focus",o),g.a.q(t,"focusin",o),g.a.q(t,"blur",i),g.a.q(t,"focusout",i)},update:function(t,e){var n=!!g.a.c(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),!n&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),g.l.w(g.a.Fa,null,[t,n?"focusin":"focusout"]))}},g.h.ga.hasfocus=!0,g.d.hasFocus=g.d.hasfocus,g.h.ga.hasFocus=!0,g.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){g.a.Eb(t,e())}},h("if"),h("ifnot",!1,!0),h("with",!0,!1,function(t,e){return t.ac(e)});var D={};g.d.options={init:function(t){if("select"!==g.a.A(t))throw Error("options binding applies only to SELECT elements");for(;0g.a.C)var u=g.a.e.J(),s=g.a.e.J(),c=function(t){var e=this.activeElement;(e=e&&g.a.e.get(e,s))&&e(t)},l=function(t,e){var n=t.ownerDocument;g.a.e.get(n,u)||(g.a.e.set(n,u,!0),g.a.q(n,"selectionchange",c)),g.a.e.set(t,s,e)};g.d.textInput={init:function(t,r,o){function u(e,n){g.a.q(t,e,n)}function s(){var n=g.a.c(r());(null===n||n===e)&&(n=""),p!==e&&n===p?g.a.setTimeout(s,4):t.value!==n&&(h=n,t.value=n)}function c(){d||(p=t.value,d=g.a.setTimeout(f,4))}function f(){clearTimeout(d),p=d=e;var n=t.value;h!==n&&(h=n,g.h.Ga(r(),o,"textInput",n))}var d,p,h=t.value,b=9==g.a.C?c:f;10>g.a.C?(u("propertychange",function(t){"value"===t.propertyName&&b(t)}),8==g.a.C&&(u("keyup",f),u("keydown",f)),8<=g.a.C&&(l(t,b),u("dragend",c))):(u("input",f),5>i&&"textarea"===g.a.A(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>n?u("keydown",c):4>a&&(u("DOMAutoComplete",f),u("dragdrop",f),u("drop",f))),u("change",f),g.m(s,null,{i:t})}},g.h.ga.textInput=!0,g.d.textinput={preprocess:function(t,e,n){n("textInput",t)}}}(),g.d.uniqueName={init:function(t,e){if(e()){var n="ko_unique_"+ ++g.d.uniqueName.Nc;g.a.vc(t,n)}}},g.d.uniqueName.Nc=0,g.d.value={after:["options","foreach"],init:function(t,e,n){if("input"!=t.tagName.toLowerCase()||"checkbox"!=t.type&&"radio"!=t.type){var r=["change"],o=n.get("valueUpdate"),i=!1,a=null;o&&("string"==typeof o&&(o=[o]),g.a.ta(r,o),r=g.a.Wb(r));var u=function(){a=null,i=!1;var r=e(),o=g.j.u(t);g.h.Ga(r,n,"value",o)};!g.a.C||"input"!=t.tagName.toLowerCase()||"text"!=t.type||"off"==t.autocomplete||t.form&&"off"==t.form.autocomplete||-1!=g.a.o(r,"propertychange")||(g.a.q(t,"propertychange",function(){i=!0}),g.a.q(t,"focus",function(){i=!1}),g.a.q(t,"blur",function(){i&&u()})),g.a.r(r,function(e){var n=u;g.a.sd(e,"after")&&(n=function(){a=g.j.u(t),g.a.setTimeout(u,0)},e=e.substring(5)),g.a.q(t,e,n)});var s=function(){var r=g.a.c(e()),o=g.j.u(t);if(null!==a&&r===a)g.a.setTimeout(s,0);else if(r!==o)if("select"===g.a.A(t)){var i=n.get("valueAllowUnset"),o=function(){g.j.ja(t,r,i)};o(),i||r===g.j.u(t)?g.a.setTimeout(o,0):g.l.w(g.a.Fa,null,[t,"change"])}else g.j.ja(t,r)};g.m(s,null,{i:t})}else g.La(t,{checkedValue:e})},update:function(){}},g.h.ga.value=!0,g.d.visible={update:function(t,e){var n=g.a.c(e()),r="none"!=t.style.display;n&&!r?t.style.display="":!n&&r&&(t.style.display="none")}},function(t){g.d[t]={init:function(e,n,r,o,i){return g.d.event.init.call(this,e,function(){var e={};return e[t]=n(),e},r,o,i)}}}("click"),g.P=function(){},g.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},g.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},g.P.prototype.makeTemplateSource=function(t,e){if("string"==typeof t){e=e||i;var n=e.getElementById(t);if(!n)throw Error("Cannot find template with ID "+t);return new g.v.n(n)}if(1==t.nodeType||8==t.nodeType)return new g.v.sa(t);throw Error("Unknown template type: "+t)},g.P.prototype.renderTemplate=function(t,e,n,r){return t=this.makeTemplateSource(t,r),this.renderTemplateSource(t,e,n,r)},g.P.prototype.isTemplateRewritten=function(t,e){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(t,e).data("isRewritten")},g.P.prototype.rewriteTemplate=function(t,e,n){t=this.makeTemplateSource(t,n),e=e(t.text()),t.text(e),t.data("isRewritten",!0)},g.b("templateEngine",g.P),g.Ib=function(){function t(t,e,n,r){t=g.h.Ab(t);for(var o=g.h.va,i=0;i]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(t,e,n){e.isTemplateRewritten(t,n)||e.rewriteTemplate(t,function(t){return g.Ib.jd(t,e)},n)},jd:function(r,o){return r.replace(e,function(e,n,r,i,a){return t(a,n,r,o)}).replace(n,function(e,n){return t(n,"","#comment",o)})},Jc:function(t,e){return g.N.yb(function(n,r){var o=n.nextSibling;o&&o.nodeName.toLowerCase()===e&&g.La(o,t,r)})}}}(),g.b("__tr_ambtns",g.Ib.Jc),function(){g.v={},g.v.n=function(t){if(this.n=t){var e=g.a.A(t);this.eb="script"===e?1:"textarea"===e?2:"template"==e&&t.content&&11===t.content.nodeType?3:4}},g.v.n.prototype.text=function(){var t=1===this.eb?"text":2===this.eb?"value":"innerHTML";if(0==arguments.length)return this.n[t];var e=arguments[0];"innerHTML"===t?g.a.Eb(this.n,e):this.n[t]=e};var t=g.a.e.J()+"_";g.v.n.prototype.data=function(e){return 1===arguments.length?g.a.e.get(this.n,t+e):(g.a.e.set(this.n,t+e,arguments[1]),void 0)};var n=g.a.e.J();g.v.n.prototype.nodes=function(){var t=this.n;return 0==arguments.length?(g.a.e.get(t,n)||{}).mb||(3===this.eb?t.content:4===this.eb?t:e):(g.a.e.set(t,n,{mb:arguments[0]}),void 0)},g.v.sa=function(t){this.n=t},g.v.sa.prototype=new g.v.n,g.v.sa.prototype.text=function(){if(0==arguments.length){var t=g.a.e.get(this.n,n)||{};return t.Jb===e&&t.mb&&(t.Jb=t.mb.innerHTML),t.Jb}g.a.e.set(this.n,n,{Jb:arguments[0]})},g.b("templateSources",g.v),g.b("templateSources.domElement",g.v.n),g.b("templateSources.anonymousTemplate",g.v.sa)}(),function(){function t(t,e,n){var r;for(e=g.f.nextSibling(e);t&&(r=t)!==e;)t=g.f.nextSibling(r),n(r,t)}function n(e,n){if(e.length){var r=e[0],o=e[e.length-1],i=r.parentNode,a=g.S.instance,u=a.preprocessNode;if(u){if(t(r,o,function(t,e){var n=t.previousSibling,i=u.call(a,t);i&&(t===r&&(r=i[0]||e),t===o&&(o=i[i.length-1]||n))}),e.length=0,!r)return;r===o?e.push(r):(e.push(r,o),g.a.Ba(e,i))}t(r,o,function(t){1!==t.nodeType&&8!==t.nodeType||g.Ub(n,t)}),t(r,o,function(t){1!==t.nodeType&&8!==t.nodeType||g.N.Cc(t,[n])}),g.a.Ba(e,i)}}function r(t){return t.nodeType?t:0r)&&(a=t[o]);++o){for(i=0;u=e[i];++i)if(a.value===u.value){a.moved=u.index,u.moved=a.index,e.splice(i,1),r=i=0;break}r+=i}}},g.a.lb=function(){function t(t,e,n,r,o){var i,a,u,s,c,l=Math.min,f=Math.max,d=[],p=t.length,h=e.length,b=h-p||1,v=p+h+1;for(i=0;p>=i;i++)for(s=u,d.push(u=[]),c=l(h,i+b),a=f(0,i-1);c>=a;a++)u[a]=a?i?t[i-1]===e[a-1]?s[a-1]:l(s[a]||v,u[a-1]||v)+1:a+1:i+1;for(l=[],f=[],b=[],i=p,a=h;i||a;)h=d[i][a]-1,a&&h===d[i][a-1]?f.push(l[l.length]={status:n,value:e[--a],index:a}):i&&h===d[i-1][a]?b.push(l[l.length]={status:r,value:t[--i],index:i}):(--a,--i,o.sparse||l.push({status:"retained",value:e[a]}));return g.a.hc(b,f,!o.dontLimitMoves&&10*p),l.reverse()}return function(e,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},e=e||[],n=n||[],e.lengthn;n++)e[n]&&g.a.r(e[n].ea,function(r){t(r,n,e[n].ka)})}i=i||[],u=u||{};var f=g.a.e.get(o,n)===e,d=g.a.e.get(o,n)||[],p=g.a.ib(d,function(t){return t.ka}),h=g.a.lb(p,i,u.dontLimitMoves),b=[],v=0,m=0,y=[],k=[];i=[];for(var w,x,_,S=[],p=[],C=0;x=h[C];C++)switch(_=x.moved,x.status){case"deleted":_===e&&(w=d[v],w.B&&(w.B.k(),w.B=e),g.a.Ba(w.ea,o).length&&(u.beforeRemove&&(b.push(w),k.push(w),w.ka===r?w=null:i[C]=w),w&&y.push.apply(y,w.ea))),v++;break;case"retained":c(C,v++);break;case"added":_!==e?c(C,_):(w={ka:x.value,tb:g.O(m++)},b.push(w),k.push(w),f||(p[C]=w))}g.a.e.set(o,n,b),l(u.beforeMove,S),g.a.r(y,u.beforeRemove?g.ba:g.removeNode);for(var E,C=0,f=g.f.firstChild(o);w=k[C];C++){for(w.ea||g.a.extend(w,t(o,a,w.ka,s,w.tb)),v=0;h=w.ea[v];f=h.nextSibling,E=h,v++)h!==f&&g.f.kc(o,h,E);!w.ad&&s&&(s(w.ka,w.ea,w.tb),w.ad=!0)}for(l(u.beforeRemove,i),C=0;Cg.a.C?0:t.nodes)?t.nodes():null)?g.a.W(e.cloneNode(!0).childNodes):(t=t.text(),g.a.na(t,r))},g.X.vb=new g.X,g.Fb(g.X.vb),g.b("nativeTemplateEngine",g.X),function(){g.xb=function(){var t=this.ed=function(){if(!u||!u.tmpl)return 0;try{if(0<=u.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(e,n,r,o){if(o=o||i,r=r||{},2>t)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var a=e.data("precompiled");return a||(a=e.text()||"",a=u.template(null,"{{ko_with $item.koBindingContext}}"+a+"{{/ko_with}}"),e.data("precompiled",a)),e=[n.$data],n=u.extend({koBindingContext:n},r.templateOptions),n=u.tmpl(a,e,n),n.appendTo(o.createElement("div")),u.fragments={},n},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){i.write("")},t>0&&(u.tmpl.tag.ko_code={open:"__.push($1 || '');"},u.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},g.xb.prototype=new g.P;var t=new g.xb;0"},close:""};(function(){if("undefined"!=typeof navigator){var t=navigator.userAgent.toLowerCase(),e=-1!=t.indexOf("msie")?parseInt(t.split("msie")[1]):n+1;n>=e&&(r.open={prefix:"<"+r.oldExploderTagName+' class="'+r.oldExploderClassName+'" data-bind="',postfix:'">'},r.close="")}})(),e.exports=r},{}],7:[function(t){function e(){r.viewModel.boot(this,{namespace:m})}function n(t,n,i,a){function u(){a(),r.isObservable(d)&&o.isFunction(d.remove)&&d.remove(p)}function s(t){if(o.isUndefined(t))return u(),Promise.resolve();if(b(t)||o.isArray(t)&&o.every([].concat(t),b))return new Promise(function(e){var n=o.map([].concat(t),k);o.each(n,function(t){t.then(function(){o.every(n,v)&&(e(),u())})})});throw Error("Can only pass promises to resolve callback")}function f(){n[m].wasResolved||(n[m].wasResolved=!0,n[m].configParams.afterResolve.call(n,s))}var d,p=t[y],h=c(i.$parentContext);h&&(d=h[m].loadingChildren),l(n)||(n=new e,r.utils.domNodeDisposal.addDisposeCallback(t,function(){n.dispose()})),setTimeout(function(){var t=n[m].loadingChildren;0===t().length?f():n.disposeWithInstance(t.subscribe(function(t){0===t.length&&f()}))},0)}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("./animation-sequencing"),a=i.addToAndFetchQueue,u=i.runAnimationSequenceQueue,s=t("../entities/entity-tools"),c=s.nearestEntity,l=s.isEntity,f=t("../entities/router/router-config"),d=f.outletLoadedDisplay,p=f.outletLoadingDisplay,h=t("../misc/util"),g=h.hasClass,b=h.isPromise,v=h.promiseIsFulfilled,m=h.getSymbol("footwork"),y=h.getSymbol("loadingTracker"),k=t("../misc/ajax").makePromiseQueryable;r.virtualElements.allowedBindings.$lifecycle=!0,r.bindingHandlers.$lifecycle={init:function(t,e,n,o,i){if(t=t.parentNode,g(t,d)){var a=c(i,r.isOutlet),u=t[h.getSymbol("loadingTracker")];a&&-1===a[m].loadingChildren.indexOf(u)&&(a[m].loadingChildren.push(u),r.utils.domNodeDisposal.addDisposeCallback(t,function(){a[m].loadingChildren.remove(u)}))}r.isRouter(o)&&o[m].configParams.activate&&o.activated(!0),r.isViewModel(o)&&(o[m].element=t,r.utils.domNodeDisposal.addDisposeCallback(t,function(){o.dispose()}))},update:function(t,e,i,s,f){if(t=t.parentNode,g(t,d)){var h=f.$parent.display.peek();if(!g(t,p)&&o.isFunction(h.getOnCompleteCallback)){var b=h.getOnCompleteCallback(t);b()}}l(s)&&!s[m].afterRenderWasTriggered&&(s[m].afterRenderWasTriggered=!0,s[m].configParams.afterRender.call(s,t)),n(t,s,f,function(){if(document.body.contains(t)&&!g(t,p)&&!g(t,d)){var e=a(t,s),n=c(f,r.isOutlet);r.animationClass.animateIn&&(n?n[m].addResolvedCallbackOrExecute(function(){u(e)}):u(e))}})}}},{"../entities/entity-tools":26,"../entities/router/router-config":35,"../misc/ajax":42,"../misc/util":43,"./animation-sequencing":4,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],8:[function(t,e){var n;e.exports={set:function(t){n=t},get:function(){return n}}},{}],9:[function(t){var e=t("knockout/build/output/knockout-latest"); -e.start=function(t){t=t||window.document.body,e.applyBindings({},t)}},{"knockout/build/output/knockout-latest":3}],10:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").getSymbol("isBroadcastable");e.isBroadcastable=function(t){return n.isObject(t)&&!!t[r]},e.subscribable.fn.broadcast=function(t,o,i){var a,u=this,s=[],c=!1;if(e.isViewModel(o))a=o.$namespace;else if(e.isNamespace(o))a=o;else{if(!n.isString(o))throw Error("Invalid namespace provided for broadcastAs() observable.");a=e.namespace(o),c=!0}i&&s.push(a.subscribe("__change."+t,function(t){u(t)})),u.broadcast=function(){return a.publish(t,u()),this},s.push(a.subscribe("__refresh."+t,function(){a.publish(t,u())})),s.push(u.subscribe(function(e){a.publish(t,e)}));var l=u.dispose||n.noop;return u.dispose=function(){n.invokeMap(s,"dispose"),c&&a.dispose(),l.call(u)},u[r]=!0,u.broadcast()}},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],11:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=(t("../misc/util").alwaysPassPredicate,t("../misc/util").getSymbol("isReceivable"));e.isReceivable=function(t){return n.isObject(t)&&!!t[r]},e.subscribable.fn.receive=function(t,o){var i,a=this,u=[],s=!1;if(n.isString(o))i=e.namespace(o),s=!0;else{if(!e.isNamespace(o))throw Error("Invalid namespace provided for receiveFrom() observable.");i=o}var c=e.computed({read:a,write:function(e){i.publish("__change."+t,e)}});c.refresh=function(){return i.publish("__refresh."+t),this},u.push(i.subscribe(t,function(t){a(t)}));var l=a.dispose||n.noop,f=c.dispose;return c.dispose=function(){n.invokeMap(u,"dispose"),s&&i.dispose(),f.call(c),l.call(a)},c[r]=!0,c.refresh()}},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],12:[function(t,e){function n(t,e,r){return r=r||n,s.isObject(t)&&s.isObject(e)?s.every(s.reduce(t,function(t,n,o){var i=!1,a=e[o];return a&&(i=s.isRegExp(n)?!s.isNull(a.match(n)):r(n,a)),t.push(i),t},[])):t===e}function r(){return u.sync.apply(this,arguments)}function o(){return this()}function i(t,e){return s.reduce(this(),function(r,o){return n(t,o,e)&&r.push(o),r},[])}function a(t){var e=this,n=e[f].configParams;t=s.extend({parse:!0},d(t)||u.isCollection(t)||p(t)?{}:t);var r={requestRunning:e.isReading,requestLull:n.requestLull,entity:e,createRequest:function(){var r=e.sync("read",e,t);return c.handleJsonResponse(r).then(function(t){var r=n.parse(t);s.isArray(r)&&e(r)}),r}};return c.makeOrGetRequest("fetch",r)}var u=t("knockout/build/output/knockout-latest"),s=t("footwork-lodash"),c=t("../misc/ajax"),l=t("../misc/util"),f=l.getSymbol("footwork"),d=l.isNode,p=l.isEvent;e.exports={sync:r,toJSON:o,fetch:a,where:i}},{"../misc/ajax":42,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],13:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").getSymbol("footwork"),o=t("../misc/util").getSymbol;e.isCollection=function(t){return n.isObject(t)&&!!t[o("isCollection")]};var i={url:null,parse:n.identity,fetchOptions:{}};e.collection=function(a){var u={},s=[];n.isArray(a)?s=a:n.isObject(a)&&(u=a,s=u.data||[]),u=n.extend({},i,u);var c=e.observableArray();return n.extend(c,t("./collection-methods"),{isReading:e.observable(!1)}),c[o("isCollection")]=!0,c[r]={configParams:u},c.requestInProgress=e.pureComputed(function(){return c.isReading()}),s&&c(s),c}},{"../misc/util":43,"./collection-methods":12,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],14:[function(t){function e(t,e,c,l,f){var d=(t.tagName||"").toLowerCase(),p=t[i("loadingTracker")]={tagName:d,moduleName:t.getAttribute("module")||t.getAttribute("data-module")};if("outlet"!==d){var h=o(f);h&&(h[u].loadingChildren.push(p),n.utils.domNodeDisposal.addDisposeCallback(t,function(){h[u].loadingChildren.remove(p)}))}return a.getDescriptor(d)&&(r(p),n.components.clearCachedDefinition(d)),s(t,e,c,l,f)}var n=t("knockout/build/output/knockout-latest"),r=(t("footwork-lodash"),t("../binding/loading-tracker").set),o=t("../entities/entity-tools").nearestEntity,i=t("../misc/util").getSymbol,a=t("../entities/entity-descriptors"),u=i("footwork"),s=n.bindingHandlers.component.init;n.bindingHandlers.component.init=e},{"../binding/loading-tracker":8,"../entities/entity-descriptors":24,"../entities/entity-tools":26,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],15:[function(t){function e(t){for(var e=0,n=t.length,r=[];n>e;e++){var o=t[e].cloneNode(!0);r.push(o)}return r}function n(t){switch(t.tagName.toLowerCase()){case"script":return o.utils.parseHtmlFragment(t.text);case"textarea":return o.utils.parseHtmlFragment(t.value);case"template":if(c(t.content))return e(t.content.childNodes)}return e(t.childNodes)}function r(t){var e=i.isString(t)?t:"",n=o.utils.parseHtmlFragment(u.open.prefix+"$lifecycle"+u.open.postfix+e+u.close);return e.length?n:[].concat(n[0],t,n[1])}var o=t("knockout/build/output/knockout-latest"),i=t("footwork-lodash"),a=t("../entities/entity-descriptors"),u=t("../binding/binding-element"),s=t("../misc/util"),c=s.isDocumentFragment,l=s.isDomElement,f=s.makeArray;o.components.loaders.unshift(o.components.componentLifecycleLoader={loadTemplate:function(t,e,o){if(a.getDescriptor(t))o(null);else if("string"==typeof e)o(r(e));else if(e instanceof Array)o(r(e));else if(c(e))o(r(f(e.childNodes)));else{if(!e.element)throw Error("Unhandled config type: "+typeof e+".");var i=e.element;if(l(i))o(r(n(i)));else if("string"==typeof i){var u=document.getElementById(i);u?o(r(n(u))):errorCallback("Cannot find element with ID "+i)}else errorCallback("Unknown element type: "+i)}}})},{"../binding/binding-element":6,"../entities/entity-descriptors":24,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],16:[function(t){{var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util"),o=r.isPath;r.getSymbol("footwork")}e.components.loaders.push(e.components.locationLoader={getConfig:function(t,r){var i,a=null;if(n.isFunction(window.require)&&(i=e.components.getLocation(t))){var u=i.folderOffset||"";if(""!==u&&(u=t+"/"),n.isString(i.combined)){var s=i.combined;o(s)&&(s=s+u+e.components.getFileName(t,"combined")),a={require:window.require.toUrl(s)}}else{var c;if(n.isString(i.viewModel)){var l=i.viewModel;o(l)&&(l=l+u+e.components.getFileName(t,"viewModel")),c={require:window.require.toUrl(l)}}else c=n.noop;var f=i.template;o(f)&&(f=f+u+e.components.getFileName(t,"template")),f="text!"+window.require.toUrl(f),a={viewModel:c,template:{require:f}}}}r(a)}})},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],17:[function(t){function e(t){return r.isObject(t)&&r.isUndefined(t.viewModel)&&r.isUndefined(t.combined)?{viewModel:t.dataModel||t.router,template:t.template}:t}var n=t("knockout/build/output/knockout-latest"),r=t("footwork-lodash"),o=/^\/|\/$/g;t("./component-binding-init"),t("./component-resource-loader"),t("./component-lifecycle-loader"),n.components.registeredLocations={},n.components.fileExtensions={combined:".js",viewModel:".js",template:".html"},n.components.getFileName=function(t,e){var o=n.components.fileExtensions,i="";return i=r.isFunction(o[e])?o[e](t):o[e]||"",t+"."+(i.replace(/^\./,"")||"")},n.components.registerLocation=function(t,o,i){r.isArray(t)&&r.each(t,function(t){n.components.registerLocation(t,o,i)}),r.isString(o)?o={viewModel:o,template:o,folderOffset:i}:r.isObject(o)&&(o.folderOffset=i),n.components.registeredLocations[t]=r.extend({},e(o))},n.components.getRegisteredLocation=function(t){return r.reduce(n.components.registeredLocations,function(e,n,i){return e||(r.isNull(i.match(o))||r.isNull(t.match(i.replace(o,"")))?t===i&&(e=n):e=n),e},void 0)},n.components.locationIsRegistered=function(t){return!!n.components.getRegisteredLocation(t)},n.components.getLocation=function(t){return r.isUndefined(t)?n.components.registeredLocations:r.omitBy(n.components.getRegisteredLocation(t),r.isNull)};var i=t("../entities/entity-descriptors");n.components.getComponentNameForNode=function(t){var e=r.isString(t.tagName)&&t.tagName.toLowerCase();return n.components.isRegistered(e)||n.components.locationIsRegistered(e)||i.getDescriptor(e)?e:null}},{"../entities/entity-descriptors":24,"./component-binding-init":14,"./component-lifecycle-loader":15,"./component-resource-loader":16,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],18:[function(t,e){function n(t,e,r){if(i.isString(e))return n(t,e.split("."),r);var o=e.shift();return e.length?(i.isUndefined(t[o])&&(t[o]={}),n(t[o],e,r)):t[o]=r,t}function r(t,e){var n=e;if(!i.isUndefined(e)){if(i.isString(e))return r(t,e.split("."));if(n=e.shift(),e.length)return r((t||{})[n],e)}return i.isString(n)?i.result(t||{},n):t}function o(t){return i.reduce(t[a].mappings,function(t,e){return t||e.isDirty()},!1)}var i=t("footwork-lodash"),a=t("../../misc/util").getSymbol("footwork");e.exports={insertValueIntoObject:n,getNestedReference:r,evalDirtyState:o}},{"../../misc/util":43,"footwork-lodash":2}],19:[function(t,e){function n(e,n){if(!e)throw Error("Must supply the instance to boot()");var c=a.getDescriptor("dataModel");u(e,n,c);var l=!o.isUndefined(e[c.isEntityDuckTag]);if(l)throw Error("Cannot bootstrap a "+c.entityName+" more than once.");var f=e[i];return e[c.isEntityDuckTag]=!0,o.extend(f,{idAttributeObservable:o.noop,mappings:{},configParams:o.extend(f.configParams,c.resource.defaultConfig,n||{})}),o.extend(e,t("./dataModel-methods"),{isCreating:r.observable(!1),isReading:r.observable(!1),isUpdating:r.observable(!1),isDeleting:r.observable(!1),isNew:r.observable(!0),isDirty:r.observable(!1)}),o.extend(e,{isSaving:r.computed(function(){return e.isCreating()||e.isUpdating()}),requestInProgress:r.computed(function(){return e.isCreating()||e.isReading()||e.isUpdating()||e.isDeleting()})}),e.$removeMap=function(t){f.mappings[t]&&(f.mappings[t].dispose(),delete f.mappings[t],e.isDirty(s(e)))},e}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("../entity-descriptors"),u=t("../viewModel/viewModel-bootstrap"),s=t("./data-tools").evalDirtyState;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../viewModel/viewModel-bootstrap":39,"./data-tools":18,"./dataModel-methods":20,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],20:[function(t,e){function n(t){var e=this,n=e[g].configParams;t=b(t)||d.isDataModel(t)||v(t)?{}:t;var r={requestRunning:e.isReading,requestLull:n.requestLull,entity:e,createRequest:function(){if(e.isNew())return Promise.reject("Must have ID provided to a dataModel in order to fetch its data");var r=e.sync("read",e,t);return m.handleJsonResponse(r).then(function(t){e.set(n.parse.call(e,t,"read"))}),r}};return m.makeOrGetRequest("fetch",r)}function r(t){var e=this,n=e[g].configParams;t=p.extend({writeResponse:!0},b(t)||d.isDataModel(t)||v(t)?{}:t);var r=e.isNew()?"create":"update",o={requestRunning:"create"===r?e.isCreating:e.isUpdating,requestLull:n.requestLull,entity:e,createRequest:function(){var o=e.sync(r,e,t);return m.handleJsonResponse(o).then(function(o){var i=n.parse.call(e,o,r);t.writeResponse&&p.isObject(i)&&e.set(i),p.each(e[g].mappings,function(t){t.isDirty(!1)})}),o}};return m.makeOrGetRequest("save",o)}function o(t){var e=this,n=e[g].configParams;t=b(t)||d.isDataModel(t)||v(t)?{}:t;var r={requestRunning:e.isDeleting,requestLull:n.requestLull,entity:e,createRequest:function(){if(e.isNew())return!1;var n=e.sync("delete",e,t);return m.handleJsonResponse(n).then(function(){e[g].idAttributeObservable(void 0)}),n}};return m.makeOrGetRequest("destroy",r)}function i(t,e){{var n=this;n[g].configParams}e=e||1===arguments.length;var r=!1;return p.each(this[g].mappings,function(n,o){var i=w(t,o);p.isUndefined(i)||(d.isWriteableObservable(n)&&n(i),r=!0,e&&n.isDirty(!1))}),r&&e&&n.isDirty(x(n)),this}function a(t,e){var n=this;if(p.isArray(t))return p.reduce(t,function(t,e){return p.merge(t,n.get(e,!0))},{});if(!p.isUndefined(t)&&!p.isString(t))throw Error(n.$namespace.getName()+": Invalid referenceField ["+typeof t+"] provided to dataModel.get().");var r=p.reduce(this[g].mappings,function(e,n,r){return(p.isUndefined(t)||0===r.indexOf(t)&&(r.length===t.length||"."===r.substr(t.length,1)))&&k(e,r,n()),e},{});return e?r:w(r,t)}function u(){return this.get()}function s(t){if(!p.isUndefined(t))var e=new RegExp("^"+t+"$|^"+t+"..*");return p.each(this[g].mappings,function(n,r){(p.isUndefined(t)||r.match(e))&&n.isDirty(!1)}),this}function c(){return d.sync.apply(this,arguments)}function l(t){return!!this[g].mappings[t]}function f(){return p.reduce(this[g].mappings,function(t,e,n){return t[n]=e.isDirty(),t},{})}var d=t("knockout/build/output/knockout-latest"),p=t("footwork-lodash"),h=t("../../misc/util"),g=h.getSymbol("footwork"),b=h.isNode,v=h.isEvent,m=t("../../misc/ajax"),y=t("./data-tools"),k=y.insertValueIntoObject,w=y.getNestedReference,x=y.evalDirtyState;e.exports={fetch:n,save:r,destroy:o,set:i,get:a,toJSON:u,clean:s,sync:c,hasMappedField:l,dirtyMap:f}},{"../../misc/ajax":42,"../../misc/util":43,"./data-tools":18,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],21:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol,a="dataModel";e[a]={boot:t("./dataModel-bootstrap"),fileExtensions:".js",defaultConfig:{idAttribute:"id",url:null,parse:n.identity,fetchOptions:{},requestLull:0}};var u={entityName:a,resource:e[a],isEntityDuckTag:i("is"+o(a)),isEntity:function(t){return n.isObject(t)&&t[u.isEntityDuckTag]},registeredLocations:{},registered:{},referenceNamespace:i(a)};t("./map"),t("../resource-tools")(u),t("../entity-descriptors").push(u),e["is"+o(a)]=u.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../resource-tools":32,"./dataModel-bootstrap":19,"./map":22,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],22:[function(t){function e(t){return t[i].configParams.idAttribute}function n(t,n){var u=this;if(!r.isDataModel(n))throw Error("No dataModel context supplied for map observable");t===e(n)&&(n[i].idAttributeObservable=u,n.isNew(!u()),n[i].idAttributeSubscription&&n[i].idAttributeSubscription.dispose(),n[i].idAttributeSubscription=u.subscribe(function(t){n.isNew(!t)})),u.isDirty=r.observable(!1);var s=u.subscribe(function(e){n.$namespace.publish("_.change",{param:t,value:e}),u.isDirty(!0)}),c=u.isDirty.subscribe(function(){n.isDirty(a(n))}),l=u.dispose||o.noop;return u.dispose=function(){n[i].idAttributeSubscription&&n[i].idAttributeSubscription.dispose(),s.dispose(),c.dispose(),l.call(u)},n[i].mappings[t]=u,u}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("./data-tools").evalDirtyState;r.subscribable.fn.map=n},{"../../misc/util":43,"./data-tools":18,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],23:[function(t){t("./entity-loader"),t("./viewModel/viewModel"),t("./dataModel/dataModel"),t("./router/router"),t("./outlet/outlet")},{"./dataModel/dataModel":21,"./entity-loader":25,"./outlet/outlet":31,"./router/router":38,"./viewModel/viewModel":41}],24:[function(t,e){var n=t("footwork-lodash");e.exports=n.extend([],{getDescriptor:function(t){return t=t.toLowerCase(),n.reduce(this,function(e,n){return n.entityName.toLowerCase()===t?n:e},null)}})},{"footwork-lodash":2}],25:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").isPath,o=t("../binding/binding-element"),i=t("../binding/loading-tracker").get;e.components.loaders.unshift(e.components.entityLoader={getConfig:function(e,a){var u;if("outlet"!==e&&(u=t("./entity-descriptors").getDescriptor(e))){var s=i().moduleName,c=u.resource.getResourceOrLocation(s);if(n.isString(c)&&(r(c)&&(c+=u.resource.getFileName(s)),c={require:window.require.toUrl(c)}),n.isUndefined(c))throw Error("The '"+s+"' "+u.entityName+" module must be registered before it can be used.");a({viewModel:c,template:o.open.prefix+"$lifecycle, template: { nodes: $componentTemplateNodes, data: $data }"+o.open.postfix+o.close})}else a(null)}})},{"../binding/binding-element":6,"../binding/loading-tracker":8,"../misc/util":43,"./entity-descriptors":24,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],26:[function(t,e){function n(t){return i.reduce(i.map(a,"isEntity"),function(e,n){return e||n(t)},!1)}function r(t,e){return i.reduce(e,function(e,n){return e||n(t)},!1)}function o(t,e){e=e||n;var a=[].concat(e),u=null;return i.isObject(t)&&(r(t.$data,a)?u=t.$data:i.isObject(t.$parentContext)&&(u=o(t.$parentContext,e))),u}{var i=(t("knockout/build/output/knockout-latest"),t("footwork-lodash")),a=t("./entity-descriptors");t("../misc/util").capitalizeFirstLetter}e.exports={isEntity:n,nearestEntity:o}},{"../misc/util":43,"./entity-descriptors":24,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],27:[function(t){var e=t("knockout/build/output/knockout-latest"),n=(t("footwork-lodash"),t("../../misc/util").getSymbol("footwork")),r=t("../router/router-tools").nearestParentRouter;e.virtualElements.allowedBindings.$outlet=!0,e.bindingHandlers.$outlet={init:function(t,o,i,a,u){var s=r(u);if(!e.isRouter(s))throw Error('Outlet "'+c+'" declared but no parent router was found.');t=t.parentNode;var c=t.getAttribute("name")||t.getAttribute("data-name");a[n].originalDisplay="$outlet-"+c,e.components.register(a[n].originalDisplay,{template:o()}),s[n].registerOutlet(c,a),e.utils.domNodeDisposal.addDisposeCallback(t,function(){e.components.unregister(a[n].originalDisplay),s[n].unregisterOutlet(c)}),a.display=s.outlet(c)}}},{"../../misc/util":43,"../router/router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],28:[function(t,e){function n(t,e){function n(){var e=t.display().transition;e?(clearTimeout(b),b=setTimeout(function(){m(!0)},e)):m(!0)}function c(){t.loadingClass(p()),t.displayStyle(l),t.loadingStyle(f),t.displayClass(d()),k.length&&(o.each(k,function(t){t()}),k=[]),v.outletOnComplete()}var h=i.getDescriptor("outlet");a(t,e,h);var g=!o.isUndefined(t[h.isEntityDuckTag]);if(!g){var b,v=t[u],m=r.observable(!0),y=r.observable(!1);t[h.isEntityDuckTag]=!0,o.extend(v,{addResolvedCallbackOrExecute:function(t){v.outletIsChanging()?k.push(t):t()},outletIsChanging:r.observable()});var k=[];o.extend(t,{loading:r.observable(s)}),o.extend(t,{loadingStyle:r.observable(),displayStyle:r.observable(),loadingClass:r.observable(),displayClass:r.observable(),showLoading:function(){var e=p();t.loadingClass(e),t.displayClass(e),t.displayStyle(f),t.loadingStyle(l),m(!1),y(!1),n(),setTimeout(function(){t.loadingClass(d())},0)},showDisplay:function(){y(!0)}}),t.disposeWithInstance(r.computed(function(){m()&&y()&&c()}),v.outletIsChanging.subscribe(function(e){e?t.showLoading():setTimeout(function(){v.loadingChildren().length?(v.loadingChildrenWatch&&o.isFunction(v.loadingChildrenWatch.dispose)&&v.loadingChildrenWatch.dispose(),v.loadingChildrenWatch=v.loadingChildren.subscribe(function(e){e.length||t.showDisplay()})):t.showDisplay()},20)}))}return t}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../entity-descriptors"),a=t("../viewModel/viewModel-bootstrap"),u=t("../../misc/util").getSymbol("footwork"),s=t("../router/router-config").noComponentSelected,c=t("./outlet-tools"),l=c.visibleCSS,f=c.hiddenCSS,d=c.addAnimation,p=c.removeAnimation;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../router/router-config":35,"../viewModel/viewModel-bootstrap":39,"./outlet-tools":30,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],29:[function(t){var e=t("knockout/build/output/knockout-latest"),n=(t("footwork-lodash"),t("../../binding/binding-element")),r=t("../router/router-config"),o=t("./outlet-bootstrap"),i=t("./outlet-tools"),a=i.stringifyCSS,u=i.visibleCSS,s=i.hiddenCSS,c=0;e.components.loaders.unshift(e.components.outletLoader={getConfig:function(t,e){"outlet"===t?e({viewModel:function(){o(this,{namespace:"$outlet"+c++})},template:n.open.prefix+"$lifecycle, $outlet: $componentTemplateNodes"+n.open.postfix+'
'+n.close,synchronous:!0}):e(null)}})},{"../../binding/binding-element":6,"../router/router-config":35,"./outlet-bootstrap":28,"./outlet-tools":30,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],30:[function(t,e){function n(){var t={};return t[o.animationClass.animateIn]=!0,t}function r(){var t={};return t[o.animationClass.animateIn]=!1,t}var o=t("knockout/build/output/knockout-latest"),i=t("footwork-lodash"),a={height:"",overflow:""},u={height:"0px",overflow:"hidden"};e.exports={addAnimation:n,removeAnimation:r,visibleCSS:a,hiddenCSS:u,stringifyCSS:function(t){return i.reduce(t,function(t,e,n){return t&&(t+="; "),t+=n+": "+e},"")}}},{"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],31:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol;t("./outlet-loader"),t("./outlet-binding");var a="outlet",u={entityName:a,resource:e[a]={},isEntityDuckTag:i("is"+o(a)),isEntity:function(t){return n.isObject(t)&&t[u.isEntityDuckTag]},referenceNamespace:i(a)};t("../entity-descriptors").push(u),e.components.register(t("../router/router-config").noComponentSelected,{template:" ",synchronus:!0}),e["is"+o(a)]=u.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../router/router-config":35,"./outlet-binding":27,"./outlet-loader":29,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],32:[function(t,e){function n(t,e){return!d.isUndefined(t.registered[e])}function r(t,e){return t.registered[e]}function o(t,e,n){t.registered[e]=n}function i(t,e){return e+"."+t.resource.fileExtensions.replace(/^\./,"")||""}function a(t,e,n){d.isArray(e)&&d.each(e,function(e){a(t,e,n)}),t.registeredLocations[e]=n}function u(t,e){return d.reduce(t.registeredLocations,function(t,n,r){return t||(d.isNull(r.match(p))||d.isNull(e.match(r.replace(p,"")))?e===r&&(t=n):t=n),t},void 0)}function s(t,e){var n=d.reduce(f.namespace(t.referenceNamespace).request("ref",e,!0),function(t,e){if(!d.isUndefined(e)){var n=f.isNamespace(e.$namespace)?e.$namespace.getName():null;d.isNull(n)||(d.isUndefined(t[n])?t[n]=e:(d.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)))}return t},{});return d.isString(e)?n[e]:n}function c(t,e){var n=t.resource,r=null;return r=n.isRegistered(e)?n.getRegistered(e):n.getLocation(e)}function l(t){var e={getFileName:d.partial(i,t),register:d.partial(o,t),isRegistered:d.partial(n,t),getRegistered:d.partial(r,t),registerLocation:d.partial(a,t),getLocation:d.partial(u,t),getResourceOrLocation:d.partial(c,t),get:d.partial(s,t)};return d.extend(t.resource,e),t}var f=t("knockout/build/output/knockout-latest"),d=t("footwork-lodash"),p=/^\/|\/$/g;e.exports=l},{"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],33:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.resultBound,i=r.removeClass,a=r.addClass,u=r.getSymbol("footwork"),s=t("./router-tools"),c=s.nearestParentRouter,l=s.stripQueryStringAndFragment,f=/^#/;e.bindingHandlers.route={init:function(t,r,s,d,p){function h(e){var n=l(b.currentState()),r=o(w,"activeClass",b);r&&(e===n?a(t,r):i(t,r))}function g(){var r=w.state(),i=b[u].configParams;k=!!r.match(f),"a"===t.tagName.toLowerCase()&&(t.href=i.baseRoute+r),n.isObject(y)&&n.isFunction(y.dispose)&&y.dispose(),y=b.currentRoute.subscribe(n.partial(h,r)),m===!1&&(m=!0,h(r),e.utils.registerEventHandler(t,o(w,"on",b),function(t){var r=w.state(),i=w.handler.call(d,t,r);return i&&(n.isString(i)&&(r=i),n.isString(r)&&!e.utils.isFullURL(r)&&b[o(w,"history",b)+"State"](r)),!0}))}var b=c(p),v=r(),m=!1,y=null,k=null,w={on:"click",state:function(){return t.getAttribute("href")},activeClass:e.router.activeClass,history:"push",handler:function(t,n){return k||e.utils.isFullURL(n)||2===t.which?!1:(t.preventDefault(),!0)}};n.isFunction(v)||n.isString(v)?w.state=v:n.isObject(v)&&n.extend(w,v);var x=w.state;n.isFunction(x)||(w.state=function(){return x}),e.isObservable(w.state)&&b.disposeWithInstance(w.state.subscribe(g)),g(),e.utils.domNodeDisposal.addDisposeCallback(t,function(){n.isObject(y)&&y.dispose()})}}},{"../../misc/util":43,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],34:[function(t,e){function n(e,n){if(!e)throw Error("Must supply the instance to boot()");var s=a.getDescriptor("router");u(e,n,s);var d=!o.isUndefined(e[s.isEntityDuckTag]);if(d)throw Error("Cannot bootstrap a "+s.entityName+" more than once.");var p=e[i];e[s.isEntityDuckTag]=!0;var h;return o.extend(p,{registerOutlet:o.partial(c,e),unregisterOutlet:o.partial(l,e),outlets:{},configParams:o.extend(p.configParams,s.resource.defaultConfig,n||{})}),o.extend(e,t("./router-methods"),{currentState:r.observable(),currentRoute:r.observable(),activated:r.observable(!1),routes:r.observableArray(p.configParams.routes),outlets:r.observable({})}),e.disposeWithInstance(e.activated.subscribe(function(t){if(t){var n=e.currentState();n?e.currentRoute(e.getRouteForState(n)):e.currentState(f()),r.router.disableHistory||function(t){window[t[0]](t[1]+"popstate",p.historyPopstateHandler=function(t){e.currentState(t.state)},!1)}(window.addEventListener?["addEventListener",""]:["attachEvent","on"])}else p.historyPopstateHandler&&function(t){window[t[0]](t[1]+"popstate",p.historyPopstateHandler)}(window.removeEventListener?["removeEventListener",""]:["detachEvent","on"])}),e.currentState.subscribe(function(t){e.currentRoute(e.getRouteForState(t))}),e.currentRoute.subscribe(function(t){if(t&&e.activated()&&!o.isEqual(h,t)){h=t;var n=e.currentState(),i=(t.route,t.params);if(p.scrollToFragment=o.noop,o.isString(n)&&-1!==n.indexOf("#")){var a=n.split("#")[1];p.scrollToFragment=function(){var t=document.getElementById(a);t&&o.isFunction(t.scrollIntoView)&&t.scrollIntoView()}}t.title&&(window.document.title=t.title),p.alterStateMethod&&!r.router.disableHistory&&(p.alterStateMethod.call(history,n,null,t.url?p.configParams.baseRoute+t.url:null),p.alterStateMethod=null),o.isFunction(t.controller)&&t.controller.call(e,i)}})),e}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("../entity-descriptors"),u=t("../viewModel/viewModel-bootstrap"),s=t("./router-tools"),c=s.registerOutlet,l=s.unregisterOutlet,f=s.getLocation;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../viewModel/viewModel-bootstrap":39,"./router-methods":36,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],35:[function(t,e){e.exports={noComponentSelected:"_noComponentSelected",outletLoadingDisplay:"fw-loading-display",outletLoadedDisplay:"fw-loaded-display"}},{}],36:[function(t,e){var n=t("footwork-lodash"),r=t("knockout/build/output/knockout-latest"),o=(t("../entity-tools").isEntity,t("./router-tools")),i=o.getNamedRoute,a=o.getMatchedRoute,u=t("../../misc/util"),s=u.propertyDispose,c=u.getSymbol("footwork"),l=u.resultBound,f=t("../viewModel/viewModel-methods").dispose,d=t("../../binding/animation-sequencing").clearSequenceQueue,p=t("./router-config").noComponentSelected;e.exports={outlet:function(t,e){n.isObject(e)||(e={display:arguments.length>1?e||p:void 0}),e=n.extend({display:p,params:{}},e);var o=this,i=o[c].outlets,a=i[t]||{},u=a.routeObservable,s=a.outletViewModel,f=o[c].configParams.outlet||{},h=n.noop;r.isObservable(u)||(u=r.observable({name:p,params:{},getOnCompleteCallback:function(){return n.noop}}),i[t]={outletViewModel:a.outletViewModel||null,routeObservable:u}),e.display&&(u().transition=e.transition||l(f,"transition",o,[t,e.display])||0),s&&(arguments.length>1?s.loading(e.loading||l(f,"loading",o,[t,e.display])||s[c].originalDisplay):s.loading(s[c].originalDisplay));var g=!1;if(!n.isUndefined(e.display)){var b=u();b.name!==e.display&&(b.name=e.display,g=!0),n.isEqual(b.params,e.params)||(b.params=e.params,g=!0),g&&(d(),s&&(s[c].loadingChildren().length&&s[c].loadingChildren.removeAll(),s[c].outletIsChanging(!0)),b.getOnCompleteCallback=function(r){var a=r.parentNode;return a.setAttribute("data-rendered",b.name),function(){var r=i[t].outletViewModel;r[c].outletOnComplete=function(){o[c].scrollToFragment(),[f.onComplete,e.onComplete,h].forEach(function(t){(t||n.noop).call(o,a)})},r[c].outletIsChanging(!1)}},u.valueHasMutated())}var v=u;return arguments.length>1&&(v=new Promise(function(t){h=t})),v},getRouteForState:function(t){var e;return e=n.isObject(t)?i(this,t):a(this,t),!e&&(e=n.find(this.routes(),{unknown:!0}))&&(e={controller:e.controller,title:e.title,url:n.isString(t)?t:null}),e},replaceState:function(t){return this.activated()&&(this[c].alterStateMethod=history.replaceState,this.currentState(t)),this},pushState:function(t){return this.activated()&&(this[c].alterStateMethod=history.pushState,this.currentState(t)),this},dispose:function(){return this[c].isDisposed?void 0:(f.call(this),this.activated(!1),n.each(this[c],s),this)}}},{"../../binding/animation-sequencing":4,"../../misc/util":43,"../entity-tools":26,"../viewModel/viewModel-methods":40,"./router-config":35,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],37:[function(t,e){function n(t){return t=t.replace(x,"\\$&").replace(y,"(?:$1)?").replace(k,function(t,e){return e?t:"([^/]+)"}).replace(w,"(.*?)"),new RegExp("^"+t+("/"!==t?"(\\/.*)*$":"$"))}function r(t){return h(t.$parentContext,d.isRouter)}function o(t,e,n){var r=t[m].outlets[e]=t[m].outlets[e]||{};r.outletViewModel=n;var o=t.outlets();o[e]=n,t.outlets.notifySubscribers()}function i(t,e){delete t[m].outlets[e];var n=t.outlets();delete n[e],t.outlets.notifySubscribers()}function a(t,e){var n=t[m].configParams.baseRoute;return n&&e&&0===e.indexOf(n)&&(e=e.substr(n.length)),e}function u(t){return t&&(t=t.split("?")[0].split("#")[0]),t}function s(t,e,r){var o=p.map(e.match(k),function(t){return t.replace(":","")}),i=r.match(n(e));return p.reduce(o,function(t,e,n){return t[e]=i[n+1],t},{})}function c(t,e){return p.reduce(t.routes(),function(n,r){return r.name===e.name&&(r.predicate||v).call(t,e)&&t[m].configParams.predicate.call(t,e)&&(n={routeConfig:r,params:e.params,title:b(r,"title",t,[e]),controller:r.controller}),n},null)}function l(t,e){var r=a(t,u(e));return p.reduce(t.routes(),function(o,i){var a=i.path;return(p.isString(a)||p.isArray(a))&&p.each([].concat(a),function(a){p.isString(a)&&p.isString(r)&&r.match(n(a))&&(i.predicate||v).call(t,r)&&t[m].configParams.predicate.call(t,r)&&(o={routeConfig:i,url:e,params:s(i,a,r),title:b(i,"title",t,[e]),controller:i.controller})}),o},null)}function f(){var t=window.history.location||window.location;return t.pathname+t.search+t.hash}var d=t("knockout/build/output/knockout-latest"),p=t("footwork-lodash"),h=t("../entity-tools").nearestEntity,g=t("../../misc/util"),b=(g.getSymbol,g.resultBound),v=g.alwaysPassPredicate,m=g.getSymbol("footwork"),y=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,w=/\*\w*/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;e.exports={nearestParentRouter:r,registerOutlet:o,unregisterOutlet:i,getNamedRoute:c,getMatchedRoute:l,getLocation:f,stripQueryStringAndFragment:u}},{"../../misc/util":43,"../entity-tools":26,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],38:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol,a=r.alwaysPassPredicate,u="router";t("./route-binding"),e[u]={boot:t("./router-bootstrap"),activeClass:"active",disableHistory:!1,fileExtensions:".js",defaultConfig:{onDispose:n.noop,baseRoute:"",activate:!0,predicate:a}}; +e.start=function(t){t=t||window.document.body,e.applyBindings({},t)}},{"knockout/build/output/knockout-latest":3}],10:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").getSymbol("isBroadcastable");e.isBroadcastable=function(t){return n.isObject(t)&&!!t[r]},e.subscribable.fn.broadcast=function(t,o,i){var a,u=this,s=[],c=!1;if(e.isViewModel(o))a=o.$namespace;else if(e.isNamespace(o))a=o;else{if(!n.isString(o))throw Error("Invalid namespace provided for broadcastAs() observable.");a=e.namespace(o),c=!0}i&&s.push(a.subscribe("__change."+t,function(t){u(t)})),u.broadcast=function(){return a.publish(t,u()),this},s.push(a.subscribe("__refresh."+t,function(){a.publish(t,u())})),s.push(u.subscribe(function(e){a.publish(t,e)}));var l=u.dispose||n.noop;return u.dispose=function(){n.invokeMap(s,"dispose"),c&&a.dispose(),l.call(u)},u[r]=!0,u.broadcast()}},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],11:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=(t("../misc/util").alwaysPassPredicate,t("../misc/util").getSymbol("isReceivable"));e.isReceivable=function(t){return n.isObject(t)&&!!t[r]},e.subscribable.fn.receive=function(t,o){var i,a=this,u=[],s=!1;if(n.isString(o))i=e.namespace(o),s=!0;else{if(!e.isNamespace(o))throw Error("Invalid namespace provided for receiveFrom() observable.");i=o}var c=e.computed({read:a,write:function(e){i.publish("__change."+t,e)}});c.refresh=function(){return i.publish("__refresh."+t),this},u.push(i.subscribe(t,function(t){a(t)}));var l=a.dispose||n.noop,f=c.dispose;return c.dispose=function(){n.invokeMap(u,"dispose"),s&&i.dispose(),f.call(c),l.call(a)},c[r]=!0,c.refresh()}},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],12:[function(t,e){function n(t,e,r){return r=r||n,s.isObject(t)&&s.isObject(e)?s.every(s.reduce(t,function(t,n,o){var i=!1,a=e[o];return a&&(i=s.isRegExp(n)?!s.isNull(a.match(n)):r(n,a)),t.push(i),t},[])):t===e}function r(){return u.sync.apply(this,arguments)}function o(){return this()}function i(t,e){return s.reduce(this(),function(r,o){return n(t,o,e)&&r.push(o),r},[])}function a(t){var e=this,n=e[f].configParams;t=s.extend({parse:!0},d(t)||u.isCollection(t)||p(t)?{}:t);var r={requestRunning:e.isReading,requestLull:n.requestLull,entity:e,createRequest:function(){var r=e.sync("read",e,t);return c.handleJsonResponse(r).then(function(t){var r=n.parse(t);s.isArray(r)&&e(r)}),r}};return c.makeOrGetRequest("fetch",r)}var u=t("knockout/build/output/knockout-latest"),s=t("footwork-lodash"),c=t("../misc/ajax"),l=t("../misc/util"),f=l.getSymbol("footwork"),d=l.isNode,p=l.isEvent;e.exports={sync:r,toJSON:o,fetch:a,where:i}},{"../misc/ajax":42,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],13:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").getSymbol("footwork"),o=t("../misc/util").getSymbol;e.isCollection=function(t){return n.isObject(t)&&!!t[o("isCollection")]};var i={url:null,parse:n.identity,fetchOptions:{}};e.collection=function(a){var u={},s=[];n.isArray(a)?s=a:n.isObject(a)&&(u=a,s=u.data||[]),u=n.extend({},i,u);var c=e.observableArray();return n.extend(c,t("./collection-methods"),{isReading:e.observable(!1)}),c[o("isCollection")]=!0,c[r]={configParams:u},c.requestInProgress=e.pureComputed(function(){return c.isReading()}),s&&c(s),c}},{"../misc/util":43,"./collection-methods":12,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],14:[function(t){function e(t,e,c,l,f){var d=(t.tagName||"").toLowerCase(),p=t[i("loadingTracker")]={tagName:d,moduleName:t.getAttribute("module")||t.getAttribute("data-module")};if("outlet"!==d){var h=o(f);h&&(h[u].loadingChildren.push(p),n.utils.domNodeDisposal.addDisposeCallback(t,function(){h[u].loadingChildren.remove(p)}))}return a.getDescriptor(d)&&(r(p),n.components.clearCachedDefinition(d)),s(t,e,c,l,f)}var n=t("knockout/build/output/knockout-latest"),r=(t("footwork-lodash"),t("../binding/loading-tracker").set),o=t("../entities/entity-tools").nearestEntity,i=t("../misc/util").getSymbol,a=t("../entities/entity-descriptors"),u=i("footwork"),s=n.bindingHandlers.component.init;n.bindingHandlers.component.init=e},{"../binding/loading-tracker":8,"../entities/entity-descriptors":24,"../entities/entity-tools":26,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],15:[function(t){function e(t){for(var e=0,n=t.length,r=[];n>e;e++){var o=t[e].cloneNode(!0);r.push(o)}return r}function n(t){switch(t.tagName.toLowerCase()){case"script":return o.utils.parseHtmlFragment(t.text);case"textarea":return o.utils.parseHtmlFragment(t.value);case"template":if(c(t.content))return e(t.content.childNodes)}return e(t.childNodes)}function r(t){var e=i.isString(t)?t:"",n=o.utils.parseHtmlFragment(u.open.prefix+"$lifecycle"+u.open.postfix+e+u.close);return e.length?n:[].concat(n[0],t,n[1])}var o=t("knockout/build/output/knockout-latest"),i=t("footwork-lodash"),a=t("../entities/entity-descriptors"),u=t("../binding/binding-element"),s=t("../misc/util"),c=s.isDocumentFragment,l=s.isDomElement,f=s.makeArray;o.components.loaders.unshift(o.components.componentLifecycleLoader={loadTemplate:function(t,e,o){if(a.getDescriptor(t))o(null);else if("string"==typeof e)o(r(e));else if(e instanceof Array)o(r(e));else if(c(e))o(r(f(e.childNodes)));else{if(!e.element)throw Error("Unhandled config type: "+typeof e+".");var i=e.element;if(l(i))o(r(n(i)));else if("string"==typeof i){var u=document.getElementById(i);u?o(r(n(u))):errorCallback("Cannot find element with ID "+i)}else errorCallback("Unknown element type: "+i)}}})},{"../binding/binding-element":6,"../entities/entity-descriptors":24,"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],16:[function(t){{var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util"),o=r.isPath;r.getSymbol("footwork")}e.components.loaders.push(e.components.locationLoader={getConfig:function(t,r){var i,a=null;if(n.isFunction(window.require)&&(i=e.components.getLocation(t))){var u=i.folderOffset||"";if(""!==u&&(u=t+"/"),n.isString(i.combined)){var s=i.combined;o(s)&&(s=s+u+e.components.getFileName(t,"combined")),a={require:window.require.toUrl(s)}}else{var c;if(n.isString(i.viewModel)){var l=i.viewModel;o(l)&&(l=l+u+e.components.getFileName(t,"viewModel")),c={require:window.require.toUrl(l)}}else c=n.noop;var f=i.template;o(f)&&(f=f+u+e.components.getFileName(t,"template")),f="text!"+window.require.toUrl(f),a={viewModel:c,template:{require:f}}}}r(a)}})},{"../misc/util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],17:[function(t){function e(t){return r.isObject(t)&&r.isUndefined(t.viewModel)&&r.isUndefined(t.combined)?{viewModel:t.dataModel||t.router,template:t.template}:t}var n=t("knockout/build/output/knockout-latest"),r=t("footwork-lodash"),o=/^\/|\/$/g;t("./component-binding-init"),t("./component-resource-loader"),t("./component-lifecycle-loader"),n.components.registeredLocations={},n.components.fileExtensions={combined:".js",viewModel:".js",template:".html"},n.components.getFileName=function(t,e){var o=n.components.fileExtensions,i="";return i=r.isFunction(o[e])?o[e](t):o[e]||"",t+"."+(i.replace(/^\./,"")||"")},n.components.registerLocation=function(t,o,i){r.isArray(t)&&r.each(t,function(t){n.components.registerLocation(t,o,i)}),r.isString(o)?o={viewModel:o,template:o,folderOffset:i}:r.isObject(o)&&(o.folderOffset=i),n.components.registeredLocations[t]=r.extend({},e(o))},n.components.getRegisteredLocation=function(t){return r.reduce(n.components.registeredLocations,function(e,n,i){return e||(r.isNull(i.match(o))||r.isNull(t.match(i.replace(o,"")))?t===i&&(e=n):e=n),e},void 0)},n.components.locationIsRegistered=function(t){return!!n.components.getRegisteredLocation(t)},n.components.getLocation=function(t){return r.isUndefined(t)?n.components.registeredLocations:r.omitBy(n.components.getRegisteredLocation(t),r.isNull)};var i=t("../entities/entity-descriptors");n.components.getComponentNameForNode=function(t){var e=r.isString(t.tagName)&&t.tagName.toLowerCase();return n.components.isRegistered(e)||n.components.locationIsRegistered(e)||i.getDescriptor(e)?e:null}},{"../entities/entity-descriptors":24,"./component-binding-init":14,"./component-lifecycle-loader":15,"./component-resource-loader":16,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],18:[function(t,e){function n(t,e,r){if(i.isString(e))return n(t,e.split("."),r);var o=e.shift();return e.length?(i.isUndefined(t[o])&&(t[o]={}),n(t[o],e,r)):t[o]=r,t}function r(t,e){var n=e;if(!i.isUndefined(e)){if(i.isString(e))return r(t,e.split("."));if(n=e.shift(),e.length)return r((t||{})[n],e)}return i.isString(n)?i.result(t||{},n):t}function o(t){return i.reduce(t[a].mappings,function(t,e){return t||e.isDirty()},!1)}var i=t("footwork-lodash"),a=t("../../misc/util").getSymbol("footwork");e.exports={insertValueIntoObject:n,getNestedReference:r,evalDirtyState:o}},{"../../misc/util":43,"footwork-lodash":2}],19:[function(t,e){function n(e,n){if(!e)throw Error("Must supply the instance to boot()");var c=a.getDescriptor("dataModel");u(e,n,c);var l=!o.isUndefined(e[c.isEntityDuckTag]);if(l)throw Error("Cannot bootstrap a "+c.entityName+" more than once.");var f=e[i];return e[c.isEntityDuckTag]=!0,o.extend(f,{idAttributeObservable:o.noop,mappings:{},configParams:o.extend(f.configParams,c.resource.defaultConfig,n||{})}),o.extend(e,t("./dataModel-methods"),{isCreating:r.observable(!1),isReading:r.observable(!1),isUpdating:r.observable(!1),isDeleting:r.observable(!1),isNew:r.observable(!0),isDirty:r.observable(!1)}),o.extend(e,{isSaving:r.computed(function(){return e.isCreating()||e.isUpdating()}),requestInProgress:r.computed(function(){return e.isCreating()||e.isReading()||e.isUpdating()||e.isDeleting()})}),e.$removeMap=function(t){f.mappings[t]&&(f.mappings[t].dispose(),delete f.mappings[t],e.isDirty(s(e)))},e}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("../entity-descriptors"),u=t("../viewModel/viewModel-bootstrap"),s=t("./data-tools").evalDirtyState;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../viewModel/viewModel-bootstrap":39,"./data-tools":18,"./dataModel-methods":20,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],20:[function(t,e){function n(t){var e=this,n=e[g].configParams;t=b(t)||d.isDataModel(t)||v(t)?{}:t;var r={requestRunning:e.isReading,requestLull:n.requestLull,entity:e,createRequest:function(){if(e.isNew())return Promise.reject("Must have ID provided to a dataModel in order to fetch its data");var r=e.sync("read",e,t);return m.handleJsonResponse(r).then(function(t){e.set(n.parse.call(e,t,"read"))}),r}};return m.makeOrGetRequest("fetch",r)}function r(t){var e=this,n=e[g].configParams;t=p.extend({writeResponse:!0},b(t)||d.isDataModel(t)||v(t)?{}:t);var r=e.isNew()?"create":"update",o={requestRunning:"create"===r?e.isCreating:e.isUpdating,requestLull:n.requestLull,entity:e,createRequest:function(){var o=e.sync(r,e,t);return m.handleJsonResponse(o).then(function(o){var i=n.parse.call(e,o,r);t.writeResponse&&p.isObject(i)&&e.set(i),p.each(e[g].mappings,function(t){t.isDirty(!1)})}),o}};return m.makeOrGetRequest("save",o)}function o(t){var e=this,n=e[g].configParams;t=b(t)||d.isDataModel(t)||v(t)?{}:t;var r={requestRunning:e.isDeleting,requestLull:n.requestLull,entity:e,createRequest:function(){if(e.isNew())return!1;var n=e.sync("delete",e,t);return m.handleJsonResponse(n).then(function(){e[g].idAttributeObservable(void 0)}),n}};return m.makeOrGetRequest("destroy",r)}function i(t,e){{var n=this;n[g].configParams}e=e||1===arguments.length;var r=!1;return p.each(this[g].mappings,function(n,o){var i=w(t,o);p.isUndefined(i)||(d.isWriteableObservable(n)&&n(i),r=!0,e&&n.isDirty(!1))}),r&&e&&n.isDirty(x(n)),this}function a(t,e){var n=this;if(p.isArray(t))return p.reduce(t,function(t,e){return p.merge(t,n.get(e,!0))},{});if(!p.isUndefined(t)&&!p.isString(t))throw Error(n.$namespace.getName()+": Invalid referenceField ["+typeof t+"] provided to dataModel.get().");var r=p.reduce(this[g].mappings,function(e,n,r){return(p.isUndefined(t)||0===r.indexOf(t)&&(r.length===t.length||"."===r.substr(t.length,1)))&&k(e,r,n()),e},{});return e?r:w(r,t)}function u(){return this.get()}function s(t){if(!p.isUndefined(t))var e=new RegExp("^"+t+"$|^"+t+"..*");return p.each(this[g].mappings,function(n,r){(p.isUndefined(t)||r.match(e))&&n.isDirty(!1)}),this}function c(){return d.sync.apply(this,arguments)}function l(t){return!!this[g].mappings[t]}function f(){return p.reduce(this[g].mappings,function(t,e,n){return t[n]=e.isDirty(),t},{})}var d=t("knockout/build/output/knockout-latest"),p=t("footwork-lodash"),h=t("../../misc/util"),g=h.getSymbol("footwork"),b=h.isNode,v=h.isEvent,m=t("../../misc/ajax"),y=t("./data-tools"),k=y.insertValueIntoObject,w=y.getNestedReference,x=y.evalDirtyState;e.exports={fetch:n,save:r,destroy:o,set:i,get:a,toJSON:u,clean:s,sync:c,hasMappedField:l,dirtyMap:f}},{"../../misc/ajax":42,"../../misc/util":43,"./data-tools":18,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],21:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol,a="dataModel";e[a]={boot:t("./dataModel-bootstrap"),fileExtensions:".js",defaultConfig:{idAttribute:"id",url:null,parse:n.identity,fetchOptions:{},requestLull:0}};var u={entityName:a,resource:e[a],isEntityDuckTag:i("is"+o(a)),isEntity:function(t){return n.isObject(t)&&t[u.isEntityDuckTag]},registeredLocations:{},registered:{},referenceNamespace:i(a)};t("./map"),t("../resource-tools")(u),t("../entity-descriptors").push(u),e["is"+o(a)]=u.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../resource-tools":32,"./dataModel-bootstrap":19,"./map":22,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],22:[function(t){function e(t){return t[i].configParams.idAttribute}function n(t,n){var u=this;if(!r.isDataModel(n))throw Error("No dataModel context supplied for map observable");t===e(n)&&(n[i].idAttributeObservable=u,n.isNew(!u()),n[i].idAttributeSubscription&&n[i].idAttributeSubscription.dispose(),n[i].idAttributeSubscription=u.subscribe(function(t){n.isNew(!t)})),u.isDirty=r.observable(!1);var s=u.subscribe(function(e){n.$namespace.publish("_.change",{param:t,value:e}),u.isDirty(!0)}),c=u.isDirty.subscribe(function(){n.isDirty(a(n))}),l=u.dispose||o.noop;return u.dispose=function(){n[i].idAttributeSubscription&&n[i].idAttributeSubscription.dispose(),s.dispose(),c.dispose(),l.call(u)},n[i].mappings[t]=u,u}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("./data-tools").evalDirtyState;r.subscribable.fn.map=n},{"../../misc/util":43,"./data-tools":18,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],23:[function(t){t("./entity-loader"),t("./viewModel/viewModel"),t("./dataModel/dataModel"),t("./router/router"),t("./outlet/outlet")},{"./dataModel/dataModel":21,"./entity-loader":25,"./outlet/outlet":31,"./router/router":38,"./viewModel/viewModel":41}],24:[function(t,e){var n=t("footwork-lodash");e.exports=n.extend([],{getDescriptor:function(t){return t=t.toLowerCase(),n.reduce(this,function(e,n){return n.entityName.toLowerCase()===t?n:e},null)}})},{"footwork-lodash":2}],25:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../misc/util").isPath,o=t("../binding/binding-element"),i=t("../binding/loading-tracker").get;e.components.loaders.unshift(e.components.entityLoader={getConfig:function(e,a){var u;if("outlet"!==e&&(u=t("./entity-descriptors").getDescriptor(e))){var s=i().moduleName,c=u.resource.getResourceOrLocation(s);if(n.isString(c)&&(r(c)&&(c+=u.resource.getFileName(s)),c={require:window.require.toUrl(c)}),n.isUndefined(c))throw Error("The '"+s+"' "+u.entityName+" module must be registered before it can be used.");a({viewModel:c,template:o.open.prefix+"$lifecycle, template: { nodes: $componentTemplateNodes, data: $data }"+o.open.postfix+o.close})}else a(null)}})},{"../binding/binding-element":6,"../binding/loading-tracker":8,"../misc/util":43,"./entity-descriptors":24,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],26:[function(t,e){function n(t){return i.reduce(i.map(a,"isEntity"),function(e,n){return e||n(t)},!1)}function r(t,e){return i.reduce(e,function(e,n){return e||n(t)},!1)}function o(t,e){e=e||n;var a=[].concat(e),u=null;return i.isObject(t)&&(r(t.$data,a)?u=t.$data:i.isObject(t.$parentContext)&&(u=o(t.$parentContext,e))),u}{var i=(t("knockout/build/output/knockout-latest"),t("footwork-lodash")),a=t("./entity-descriptors");t("../misc/util").capitalizeFirstLetter}e.exports={isEntity:n,nearestEntity:o}},{"../misc/util":43,"./entity-descriptors":24,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],27:[function(t){var e=t("knockout/build/output/knockout-latest"),n=(t("footwork-lodash"),t("../../misc/util").getSymbol("footwork")),r=t("../router/router-tools").nearestParentRouter;e.virtualElements.allowedBindings.$outlet=!0,e.bindingHandlers.$outlet={init:function(t,o,i,a,u){var s=r(u);if(!e.isRouter(s))throw Error('Outlet "'+c+'" declared but no parent router was found.');t=t.parentNode;var c=t.getAttribute("name")||t.getAttribute("data-name");a[n].originalDisplay="$outlet-"+c,e.components.register(a[n].originalDisplay,{template:o()}),s[n].registerOutlet(c,a),e.utils.domNodeDisposal.addDisposeCallback(t,function(){e.components.unregister(a[n].originalDisplay),s[n].unregisterOutlet(c)}),a.display=s.outlet(c)}}},{"../../misc/util":43,"../router/router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],28:[function(t,e){function n(t,e){function n(){var e=t.display().transition;e?(clearTimeout(b),b=setTimeout(function(){m(!0)},e)):m(!0)}function c(){t.loadingClass(p()),t.displayStyle(l),t.loadingStyle(f),t.displayClass(d()),k.length&&(o.each(k,function(t){t()}),k=[]),v.outletOnComplete()}var h=i.getDescriptor("outlet");a(t,e,h);var g=!o.isUndefined(t[h.isEntityDuckTag]);if(!g){var b,v=t[u],m=r.observable(!0),y=r.observable(!1);t[h.isEntityDuckTag]=!0,o.extend(v,{addResolvedCallbackOrExecute:function(t){v.outletIsChanging()?k.push(t):t()},outletIsChanging:r.observable()});var k=[];o.extend(t,{loading:r.observable(s)}),o.extend(t,{loadingStyle:r.observable(),displayStyle:r.observable(),loadingClass:r.observable(),displayClass:r.observable(),showLoading:function(){var e=p();t.loadingClass(e),t.displayClass(e),t.displayStyle(f),t.loadingStyle(l),m(!1),y(!1),n(),setTimeout(function(){t.loadingClass(d())},0)},showDisplay:function(){y(!0)}}),t.disposeWithInstance(r.computed(function(){m()&&y()&&c()}),v.outletIsChanging.subscribe(function(e){e?t.showLoading():setTimeout(function(){v.loadingChildren().length?(v.loadingChildrenWatch&&o.isFunction(v.loadingChildrenWatch.dispose)&&v.loadingChildrenWatch.dispose(),v.loadingChildrenWatch=v.loadingChildren.subscribe(function(e){e.length||t.showDisplay()})):t.showDisplay()},20)}))}return t}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../entity-descriptors"),a=t("../viewModel/viewModel-bootstrap"),u=t("../../misc/util").getSymbol("footwork"),s=t("../router/router-config").noComponentSelected,c=t("./outlet-tools"),l=c.visibleCSS,f=c.hiddenCSS,d=c.addAnimation,p=c.removeAnimation;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../router/router-config":35,"../viewModel/viewModel-bootstrap":39,"./outlet-tools":30,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],29:[function(t){var e=t("knockout/build/output/knockout-latest"),n=(t("footwork-lodash"),t("../../binding/binding-element")),r=t("../router/router-config"),o=t("./outlet-bootstrap"),i=t("./outlet-tools"),a=i.stringifyCSS,u=i.visibleCSS,s=i.hiddenCSS,c=0;e.components.loaders.unshift(e.components.outletLoader={getConfig:function(t,e){"outlet"===t?e({viewModel:function(){o(this,{namespace:"$outlet"+c++})},template:n.open.prefix+"$lifecycle, $outlet: $componentTemplateNodes"+n.open.postfix+'
'+n.close,synchronous:!0}):e(null)}})},{"../../binding/binding-element":6,"../router/router-config":35,"./outlet-bootstrap":28,"./outlet-tools":30,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],30:[function(t,e){function n(){var t={};return t[o.animationClass.animateIn]=!0,t}function r(){var t={};return t[o.animationClass.animateIn]=!1,t}var o=t("knockout/build/output/knockout-latest"),i=t("footwork-lodash"),a={height:"",overflow:""},u={height:"0px",overflow:"hidden"};e.exports={addAnimation:n,removeAnimation:r,visibleCSS:a,hiddenCSS:u,stringifyCSS:function(t){return i.reduce(t,function(t,e,n){return t&&(t+="; "),t+=n+": "+e},"")}}},{"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],31:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol;t("./outlet-loader"),t("./outlet-binding");var a="outlet",u={entityName:a,resource:e[a]={},isEntityDuckTag:i("is"+o(a)),isEntity:function(t){return n.isObject(t)&&t[u.isEntityDuckTag]},referenceNamespace:i(a)};t("../entity-descriptors").push(u),e.components.register(t("../router/router-config").noComponentSelected,{template:" ",synchronus:!0}),e["is"+o(a)]=u.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../router/router-config":35,"./outlet-binding":27,"./outlet-loader":29,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],32:[function(t,e){function n(t,e){return!d.isUndefined(t.registered[e])}function r(t,e){return t.registered[e]}function o(t,e,n){t.registered[e]=n}function i(t,e){return e+"."+t.resource.fileExtensions.replace(/^\./,"")||""}function a(t,e,n){d.isArray(e)&&d.each(e,function(e){a(t,e,n)}),t.registeredLocations[e]=n}function u(t,e){return d.reduce(t.registeredLocations,function(t,n,r){return t||(d.isNull(r.match(p))||d.isNull(e.match(r.replace(p,"")))?e===r&&(t=n):t=n),t},void 0)}function s(t,e){var n=d.reduce(f.namespace(t.referenceNamespace).request("ref",e,!0),function(t,e){if(!d.isUndefined(e)){var n=f.isNamespace(e.$namespace)?e.$namespace.getName():null;d.isNull(n)||(d.isUndefined(t[n])?t[n]=e:(d.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)))}return t},{});return d.isString(e)?n[e]:n}function c(t,e){var n=t.resource,r=null;return r=n.isRegistered(e)?n.getRegistered(e):n.getLocation(e)}function l(t){var e={getFileName:d.partial(i,t),register:d.partial(o,t),isRegistered:d.partial(n,t),getRegistered:d.partial(r,t),registerLocation:d.partial(a,t),getLocation:d.partial(u,t),getResourceOrLocation:d.partial(c,t),get:d.partial(s,t)};return d.extend(t.resource,e),t}var f=t("knockout/build/output/knockout-latest"),d=t("footwork-lodash"),p=/^\/|\/$/g;e.exports=l},{"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],33:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.resultBound,i=r.removeClass,a=r.addClass,u=r.getSymbol("footwork"),s=t("./router-tools"),c=s.nearestParentRouter,l=s.stripQueryStringAndFragment,f=/^#/;e.bindingHandlers.route={init:function(t,r,s,d,p){function h(e){var n=l(b.currentState()),r=o(w,"activeClass",b);r&&(e===n?a(t,r):i(t,r))}function g(){var r=w.state(),i=b[u].configParams;k=r&&!!r.match(f),"a"===t.tagName.toLowerCase()&&(t.href=i.baseRoute+r),n.isObject(y)&&n.isFunction(y.dispose)&&y.dispose(),y=b.currentRoute.subscribe(n.partial(h,r)),m===!1&&(m=!0,h(r),e.utils.registerEventHandler(t,o(w,"on",b),function(t){var r=w.state(),i=w.handler.call(d,t,r);return i&&(n.isString(i)&&(r=i),n.isString(r)&&!e.utils.isFullURL(r)&&b[o(w,"history",b)+"State"](r)),!0}))}var b=c(p),v=r(),m=!1,y=null,k=null,w={on:"click",state:function(){return t.getAttribute("href")},activeClass:e.router.activeClass,history:"push",handler:function(t,n){return k||e.utils.isFullURL(n)||2===t.which?!1:(t.preventDefault(),!0)}};n.isFunction(v)||n.isString(v)?w.state=v:n.isObject(v)&&n.extend(w,v);var x=w.state;n.isFunction(x)||(w.state=function(){return x}),e.isObservable(w.state)&&b.disposeWithInstance(w.state.subscribe(g)),g(),e.utils.domNodeDisposal.addDisposeCallback(t,function(){n.isObject(y)&&y.dispose()})}}},{"../../misc/util":43,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],34:[function(t,e){function n(e,n){if(!e)throw Error("Must supply the instance to boot()");var s=a.getDescriptor("router");u(e,n,s);var d=!o.isUndefined(e[s.isEntityDuckTag]);if(d)throw Error("Cannot bootstrap a "+s.entityName+" more than once.");var p=e[i];e[s.isEntityDuckTag]=!0;var h;return o.extend(p,{registerOutlet:o.partial(c,e),unregisterOutlet:o.partial(l,e),outlets:{},configParams:o.extend(p.configParams,s.resource.defaultConfig,n||{})}),o.extend(e,t("./router-methods"),{currentState:r.observable(),currentRoute:r.observable(),activated:r.observable(!1),routes:r.observableArray(p.configParams.routes),outlets:r.observable({})}),e.disposeWithInstance(e.activated.subscribe(function(t){if(t){var n=e.currentState();n?e.currentRoute(e.getRouteForState(n)):e.currentState(f()),r.router.disableHistory||function(t){window[t[0]](t[1]+"popstate",p.historyPopstateHandler=function(t){e.currentState(t.state)},!1)}(window.addEventListener?["addEventListener",""]:["attachEvent","on"])}else p.historyPopstateHandler&&function(t){window[t[0]](t[1]+"popstate",p.historyPopstateHandler)}(window.removeEventListener?["removeEventListener",""]:["detachEvent","on"])}),e.currentState.subscribe(function(t){e.currentRoute(e.getRouteForState(t))}),e.currentRoute.subscribe(function(t){if(t&&e.activated()&&!o.isEqual(h,t)){h=t;var n=e.currentState(),i=(t.route,t.params);if(p.scrollToFragment=o.noop,o.isString(n)&&-1!==n.indexOf("#")){var a=n.split("#")[1];p.scrollToFragment=function(){var t=document.getElementById(a);t&&o.isFunction(t.scrollIntoView)&&t.scrollIntoView()}}t.title&&(window.document.title=t.title),p.alterStateMethod&&!r.router.disableHistory&&(p.alterStateMethod.call(history,n,null,t.url?p.configParams.baseRoute+t.url:null),p.alterStateMethod=null),o.isFunction(t.controller)&&t.controller.call(e,i)}})),e}var r=t("knockout/build/output/knockout-latest"),o=t("footwork-lodash"),i=t("../../misc/util").getSymbol("footwork"),a=t("../entity-descriptors"),u=t("../viewModel/viewModel-bootstrap"),s=t("./router-tools"),c=s.registerOutlet,l=s.unregisterOutlet,f=s.getLocation;e.exports=n},{"../../misc/util":43,"../entity-descriptors":24,"../viewModel/viewModel-bootstrap":39,"./router-methods":36,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],35:[function(t,e){e.exports={noComponentSelected:"_noComponentSelected",outletLoadingDisplay:"fw-loading-display",outletLoadedDisplay:"fw-loaded-display"}},{}],36:[function(t,e){var n=t("footwork-lodash"),r=t("knockout/build/output/knockout-latest"),o=(t("../entity-tools").isEntity,t("./router-tools")),i=o.getNamedRoute,a=o.getMatchedRoute,u=t("../../misc/util"),s=u.propertyDispose,c=u.getSymbol("footwork"),l=u.resultBound,f=t("../viewModel/viewModel-methods").dispose,d=t("../../binding/animation-sequencing").clearSequenceQueue,p=t("./router-config").noComponentSelected;e.exports={outlet:function(t,e){n.isObject(e)||(e={display:arguments.length>1?e||p:void 0}),e=n.extend({display:p,params:{}},e);var o=this,i=o[c].outlets,a=i[t]||{},u=a.routeObservable,s=a.outletViewModel,f=o[c].configParams.outlet||{},h=n.noop;r.isObservable(u)||(u=r.observable({name:p,params:{},getOnCompleteCallback:function(){return n.noop}}),i[t]={outletViewModel:a.outletViewModel||null,routeObservable:u}),e.display&&(u().transition=e.transition||l(f,"transition",o,[t,e.display])||0),s&&(arguments.length>1?s.loading(e.loading||l(f,"loading",o,[t,e.display])||s[c].originalDisplay):s.loading(s[c].originalDisplay));var g=!1;if(!n.isUndefined(e.display)){var b=u();b.name!==e.display&&(b.name=e.display,g=!0),n.isEqual(b.params,e.params)||(b.params=e.params,g=!0),g&&(d(),s&&(s[c].loadingChildren().length&&s[c].loadingChildren.removeAll(),s[c].outletIsChanging(!0)),b.getOnCompleteCallback=function(r){var a=r.parentNode;return a.setAttribute("data-rendered",b.name),function(){var r=i[t].outletViewModel;r[c].outletOnComplete=function(){o[c].scrollToFragment(),[f.onComplete,e.onComplete,h].forEach(function(t){(t||n.noop).call(o,a)})},r[c].outletIsChanging(!1)}},u.valueHasMutated())}var v=u;return arguments.length>1&&(v=new Promise(function(t){h=t})),v},getRouteForState:function(t){var e;return e=n.isObject(t)?i(this,t):a(this,t),!e&&(e=n.find(this.routes(),{unknown:!0}))&&(e={controller:e.controller,title:e.title,url:n.isString(t)?t:null}),e},replaceState:function(t){return this.activated()&&(this[c].alterStateMethod=history.replaceState,this.currentState(t)),this},pushState:function(t){return this.activated()&&(this[c].alterStateMethod=history.pushState,this.currentState(t)),this},dispose:function(){return this[c].isDisposed?void 0:(f.call(this),this.activated(!1),n.each(this[c],s),this)}}},{"../../binding/animation-sequencing":4,"../../misc/util":43,"../entity-tools":26,"../viewModel/viewModel-methods":40,"./router-config":35,"./router-tools":37,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],37:[function(t,e){function n(t){return t=t.replace(x,"\\$&").replace(y,"(?:$1)?").replace(k,function(t,e){return e?t:"([^/]+)"}).replace(w,"(.*?)"),new RegExp("^"+t+("/"!==t?"(\\/.*)*$":"$"))}function r(t){return h(t.$parentContext,d.isRouter)}function o(t,e,n){var r=t[m].outlets[e]=t[m].outlets[e]||{};r.outletViewModel=n;var o=t.outlets();o[e]=n,t.outlets.notifySubscribers()}function i(t,e){delete t[m].outlets[e];var n=t.outlets();delete n[e],t.outlets.notifySubscribers()}function a(t,e){var n=t[m].configParams.baseRoute;return n&&e&&0===e.indexOf(n)&&(e=e.substr(n.length)),e}function u(t){return t&&(t=t.split("?")[0].split("#")[0]),t}function s(t,e,r){var o=p.map(e.match(k),function(t){return t.replace(":","")}),i=r.match(n(e));return p.reduce(o,function(t,e,n){return t[e]=i[n+1],t},{})}function c(t,e){return p.reduce(t.routes(),function(n,r){return r.name===e.name&&(r.predicate||v).call(t,e)&&t[m].configParams.predicate.call(t,e)&&(n={routeConfig:r,params:e.params,title:b(r,"title",t,[e]),controller:r.controller}),n},null)}function l(t,e){var r=a(t,u(e));return p.reduce(t.routes(),function(o,i){var a=i.path;return(p.isString(a)||p.isArray(a))&&p.each([].concat(a),function(a){p.isString(a)&&p.isString(r)&&r.match(n(a))&&(i.predicate||v).call(t,r)&&t[m].configParams.predicate.call(t,r)&&(o={routeConfig:i,url:e,params:s(i,a,r),title:b(i,"title",t,[e]),controller:i.controller})}),o},null)}function f(){var t=window.history.location||window.location;return t.pathname+t.search+t.hash}var d=t("knockout/build/output/knockout-latest"),p=t("footwork-lodash"),h=t("../entity-tools").nearestEntity,g=t("../../misc/util"),b=(g.getSymbol,g.resultBound),v=g.alwaysPassPredicate,m=g.getSymbol("footwork"),y=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,w=/\*\w*/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;e.exports={nearestParentRouter:r,registerOutlet:o,unregisterOutlet:i,getNamedRoute:c,getMatchedRoute:l,getLocation:f,stripQueryStringAndFragment:u}},{"../../misc/util":43,"../entity-tools":26,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],38:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol,a=r.alwaysPassPredicate,u="router";t("./route-binding"),e[u]={boot:t("./router-bootstrap"),activeClass:"active",disableHistory:!1,fileExtensions:".js",defaultConfig:{onDispose:n.noop,baseRoute:"",activate:!0,predicate:a}}; var s={entityName:u,resource:e[u],isEntityDuckTag:i("is"+o(u)),isEntity:function(t){return n.isObject(t)&&t[s.isEntityDuckTag]},registeredLocations:{},registered:{},referenceNamespace:i(u)};t("../resource-tools")(s),t("../entity-descriptors").push(s),e["is"+o(u)]=s.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../resource-tools":32,"./route-binding":33,"./router-bootstrap":34,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],39:[function(t,e){function n(t){return c[t]=c[t]||0,c[t]++}function r(e,r,c){if(!e)throw Error("Must supply the instance to boot()");var l=a.getDescriptor("viewModel");c=c||l;var f=!i.isUndefined(e[l.isEntityDuckTag]);return f||(e[l.isEntityDuckTag]=!0,r=i.extend({},l.resource.defaultConfig,{namespace:(r||{}).namespace?null:n(c.entityName)},r),e[u]={configParams:r,disposableItems:[],loadingChildren:o.observableArray()},i.extend(e,t("./viewModel-methods"),{$namespace:o.namespace(s(r,"namespace",e))}),r.namespace!==u&&e.disposeWithInstance(o.namespace(c.referenceNamespace).requestHandler("ref",function(t){return i.isString(t)||i.isArray(t)?i.isArray(t)&&-1!==i.indexOf(t,r.namespace)?e:i.isString(t)&&t===r.namespace?e:void 0:e}))),e}var o=t("knockout/build/output/knockout-latest"),i=t("footwork-lodash"),a=t("../entity-descriptors"),u=t("../../misc/util").getSymbol("footwork"),s=t("../../misc/util").resultBound,c={};e.exports=r},{"../../misc/util":43,"../entity-descriptors":24,"./viewModel-methods":40,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],40:[function(t,e){var n=t("footwork-lodash"),r=t("../../misc/util"),o=r.getSymbol("footwork"),i=r.propertyDispose;e.exports={dispose:function(){var t=this;if(!t[o].isDisposed){t[o].isDisposed=!0;var e=t[o].configParams;e.onDispose!==n.noop&&e.onDispose.call(t,t[o].element),n.each(t,i),n.each(t[o].disposableItems,i)}return t},disposeWithInstance:function(t){var e=this;arguments.length>1&&(t=Array.prototype.slice.call(arguments)),n.isArray(t)?n.each(t,function(t){e.disposeWithInstance(t)}):t&&e[o].disposableItems.push(t)}}},{"../../misc/util":43,"footwork-lodash":2}],41:[function(t){var e=t("knockout/build/output/knockout-latest"),n=t("footwork-lodash"),r=t("../../misc/util"),o=r.capitalizeFirstLetter,i=r.getSymbol,a="viewModel";e[a]={boot:t("./viewModel-bootstrap"),fileExtensions:".js",defaultConfig:{namespace:void 0,afterRender:n.noop,afterResolve:function(t){t()},sequence:!1,onDispose:n.noop}};var u={entityName:a,resource:e[a],isEntityDuckTag:i("is"+o(a)),isEntity:function(t){return n.isObject(t)&&t[u.isEntityDuckTag]},registeredLocations:{},registered:{},referenceNamespace:i(a)};t("../resource-tools")(u),t("../entity-descriptors").push(u),e["is"+o(a)]=u.isEntity},{"../../misc/util":43,"../entity-descriptors":24,"../resource-tools":32,"./viewModel-bootstrap":39,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],42:[function(t,e){function n(t,e){var n=e.requestRunning,r=e.requestLull,i=e.entity,s=e.createRequest();l(s)||(s=Promise.resolve(s)),s=o(s),n(!0);var c=a.observable(!1),f=a.observable(!1),d=a.computed(function(){c()&&f()&&(n(!1),d.dispose())});return r=u.isFunction(r)?r.call(i,t):r,r?setTimeout(function(){c(!0)},r):c(!0),s.then(function(){f(!0)}),s}function r(t,e,n){if(!a.isDataModel(e)&&!a.isCollection(e))throw Error("Must supply a dataModel or collection to sync");e[f][t]&&(e[f][t].replaced=!0);var r=e[f].configParams,i=c(r,"url",e);if(u.isObject(i)&&!u.isFunction(i))i=c(i,t,e,[n]);else if((u.isString(i)||u.isFunction(i))&&(i=u.isFunction(i)?i.call(e,t,n):i,a.isDataModel(e)&&u.includes(["read","update","delete"],t)&&i)){var s=i.split("?"),l=s.shift(),g=s.length?"?"+s.join("?"):"";i=l.replace(h,"")+"/:"+r.idAttribute+g}var b;if(u.isString(i)&&-1!==i.indexOf(" ")?(i=i.split(" "),b=i[0],i=i[1]):b=d[t],!u.isString(b))throw Error("Invalid method resolved for "+t+" sync operation");if(!u.isString(i))throw Error("A url must be specified for "+t+" sync operation");if(a.isDataModel(e)){var v=i.match(p);v&&u.each(v,function(t){i=i.replace(t,e.get(t.substr(1)))})}return n=u.extend({method:b.toUpperCase(),body:null,headers:{}},c(a.options,"fetchOptions",e,[t,e,n])||{},c(r,"fetchOptions",e,[t,e,n])||{},n||{}),u.isNull(n.body)&&u.includes(["create","update"],t)&&(n.headers["content-type"]="application/json",n.body=JSON.stringify(n.attrs||e.get())),e[f][t]=o(fetch(i,n)),e[f][t]}function o(t){if(t.isFulfilled)return t;var e=!1,n=!1,r=t.then(function(t){return e=!0,t},function(t){throw n=!0,t});return r.isFulfilled=function(){return e||n},r}function i(t){return t.then(function(e){if(e.ok&&!t.replaced){var n;try{n=e.clone().json()}catch(r){}return n}})}var a=t("knockout/build/output/knockout-latest"),u=t("footwork-lodash"),s=t("./util"),c=s.resultBound,l=(s.promiseIsFulfilled,s.isPromise),f=s.getSymbol("footwork"),d={create:"POST",update:"PUT","delete":"DELETE",read:"GET"},p=/(:[\w\.]+)/g,h=/\/$/;a.options.fetchOptions={},a.sync=r,e.exports={makeOrGetRequest:n,handleJsonResponse:i,makePromiseQueryable:o}},{"./util":43,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],43:[function(t,e){function n(){return!0}function r(t,e,n,r){return t=t||{},r=r||[],n=n||t,w.isFunction(t[e])?t[e].apply(n,r):t[e]}function o(t){return w.isObject(t)&&w.isFunction(t.then)}function i(t){return!o(t)||t.isFulfilled()}function a(t){return w.isObject(t)&&w.isString(t.className)}function u(t,e){return t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t,e){a(t)&&!u(t,e)&&(t.className+=(t.className.length&&w.isNull(t.className.match(/ $/))?" ":"")+e)}function c(t,e){if(a(t)&&u(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)","g");t.className=t.className.replace(n," ")}}function l(t){return w.isString(t)&&x.test(t)}function f(t){t&&w.isFunction(t.dispose)&&t.dispose()}function d(t){return window.DocumentFragment?t instanceof DocumentFragment:t&&11===t.nodeType}function p(t){return window.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType}function h(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(t){return"function"==typeof Symbol&&"function"==typeof Symbol["for"]?Symbol["for"](t):"__"+t}function b(t){return t&&t[_]}function v(t){for(var e=0,n=t.length,r=[];n>e;e++)r.push(t[e]);return r}function m(t){var e=w.isObject(t);return e?t instanceof Node:e&&"number"===w.isNumber(t.nodeType)&&w.isString(t.nodeName)}function y(t){return t&&(t instanceof Event||w.isFunction(t.preventDefault))}var k=t("knockout/build/output/knockout-latest"),w=t("footwork-lodash"),x=/\/$/,_=g("footwork");k.utils.getPrivateData=b;var S=/(^[a-z]+:\/\/|^\/\/)/i;k.utils.isFullURL=function(t){return w.isString(t)&&S.test(t)},e.exports={alwaysPassPredicate:n,resultBound:r,isPromise:o,promiseIsFulfilled:i,addClass:s,hasClass:u,isNode:m,isEvent:y,removeClass:c,isPath:l,propertyDispose:f,isDocumentFragment:d,isDomElement:p,capitalizeFirstLetter:h,getPrivateData:b,getSymbol:g,makeArray:v}},{"footwork-lodash":2,"knockout/build/output/knockout-latest":3}],44:[function(t,e){function n(t,e){return this[l].postbox.notifySubscribers(e,t),this}function r(t,e,n){arguments.length>2&&(e=c.bind(e,n));var r=this[l].postbox.subscribe(e,null,t);return this[l].subscriptions.push(r),r}function o(t){return t&&c.isFunction(t.dispose)&&t.dispose(),this}function i(t,e,n){var r=void 0,o=this[l].postbox.subscribe(function(t){c.isUndefined(r)?r=n?[t]:t:n&&r.push(t)},null,"req."+t+".resp");return this[l].postbox.notifySubscribers(e,"req."+t),o.dispose(),r}function a(t,e,n){var r=this;c.isUndefined(n)||(e=c.bind(e,n));var o=r[l].postbox.subscribe(function(n){r[l].postbox.notifySubscribers(e(n),"req."+t+".resp")},null,"req."+t);return r[l].subscriptions.push(o),o}function u(){return c.invokeMap(this[l].subscriptions,"dispose"),this}function s(){return this[l].namespaceName}var c=t("footwork-lodash"),l=t("../misc/util").getSymbol("footwork");e.exports={publish:n,subscribe:r,unsubscribe:o,request:i,requestHandler:a,dispose:u,getName:s}},{"../misc/util":43,"footwork-lodash":2}],45:[function(t){function e(t){return this instanceof e?(this[o]={namespaceName:t||"__footwork",postbox:i[t]=i[t]||new n.subscribable,subscriptions:[]},void 0):new e(t)}var n=t("knockout/build/output/knockout-latest"),r=t("footwork-lodash"),o=t("../misc/util").getSymbol("footwork"),i={};r.extend(e.prototype,t("./namespace-methods")),n.namespace=e,n.isNamespace=function(t){return t instanceof n.namespace}},{"../misc/util":43,"./namespace-methods":44,"footwork-lodash":2,"knockout/build/output/knockout-latest":3}]},{},[1])(1)}); \ No newline at end of file diff --git a/package.json b/package.json index 68372194..c9d6369e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/jonbnewman" } ], - "version": "2.0.2", + "version": "2.0.3", "homepage": "http://footworkjs.com", "license": "MIT", "files": [