return!!a},va:function(b){returna.a.Gb(b,b.ownerDocument.documentElement)},Ra:function(b){return!!a.a.Ua(b,a.a.va)},v:function(a){returna&&a.tagName&&a.tagName.toLowerCase()},r:function(b,d,f){vare=h&&g[d];if(e||"undefined"==typeofu)if(e||"function"!=typeofb.addEventListener)if("undefined"!=typeofb.attachEvent){vars=function(a){f.call(b,a)},l="on"+d;b.attachEvent(l,s);a.a.C.ea(b,function(){b.detachEvent(l,s)})}elsethrowError("Browser doesn't support addEventListener or attachEvent");elseb.addEventListener(d,
f,!1);else{if(c(b,d)){varn=f;f=function(a,b){varf=this.checked;b&&(this.checked=!0!==b.Ab);n.call(this,a);this.checked=f}}u(b).bind(d,f)}},da:function(a,b){if(!a||!a.nodeType)throwError("element must be a DOM node when calling triggerEvent");if("undefined"!=typeofu){varf=[];c(a,b)&&f.push({Ab:a.checked});u(a).trigger(b,f)}elseif("function"==typeofw.createEvent)if("function"==typeofa.dispatchEvent)f=w.createEvent(e[b]||"HTMLEvents"),f.initEvent(b,!0,!0,y,0,0,0,0,0,!1,!1,!1,!1,0,a),a.dispatchEvent(f);
elsethrowError("The supplied element doesn't support dispatchEvent");elseif("undefined"!=typeofa.fireEvent)c(a,b)&&(a.checked=!0!==a.checked),a.fireEvent("on"+b);elsethrowError("Browser doesn't support triggering events");},c:function(b){returna.M(b)?b():b},Ha:function(b){returna.M(b)?b.t():b},ma:function(b,c,f){if(c){vard=/\S+/g,e=b.className.match(d)||[];a.a.n(c.match(d),function(b){a.a.V(e,b,f)});b.className=e.join("")}},Ma:function(b,c){varf=a.a.c(c);if(null===f||f===q)f="";vard=a.e.firstChild(b);
d;c++)b.push(a[c]);returnb},cc:6===h,dc:7===h,ja:h,ab:function(b,c){for(varf=a.a.Q(b.getElementsByTagName("input")).concat(a.a.Q(b.getElementsByTagName("textarea"))),d="string"==typeofc?function(a){returna.name===c}:function(a){returnc.test(a.name)},e=[],g=f.length-1;0<=g;g--)d(f[g])&&e.push(f[g]);returne},Wb:function(b){return"string"==typeofb&&(b=a.a.la(b))?B&&B.parse?B.parse(b):(newFunction("return "+b))():null},Na:function(b,c,f){if(!B||!B.stringify)throwError("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");
typeofc)throwError("Callback must be a function");b(a,!0).push(c)},mb:function(c,e){varg=b(c,!1);g&&(a.a.ia(g,e),0==g.length&&a.a.f.set(c,d,q))},L:function(b){if(e[b.nodeType]&&(c(b),g[b.nodeType])){vard=[];a.a.X(d,b.getElementsByTagName("*"));for(varm=0,f=d.length;m<f;m++)c(d[m])}returnb},removeNode:function(b){a.L(b);b.parentNode&&b.parentNode.removeChild(b)}}};a.L=a.a.C.L;a.removeNode=a.a.C.removeNode;a.b("cleanNode",a.L);a.b("removeNode",a.removeNode);a.b("utils.domNodeDisposal",a.a.C);
a.b("utils.parseHtmlFragment",a.a.Fa);a.b("utils.setHtml",a.a.Ka);a.u=function(){functionb(c,e){if(c)if(8==c.nodeType){varg=a.u.jb(c.nodeValue);null!=g&&e.push({Fb:c,Tb:g})}elseif(1==c.nodeType)for(varg=0,h=c.childNodes,k=h.length;g<k;g++)b(h[g],e)}varc={};return{Ca:function(a){if("function"!=typeofa)throwError("You can only pass a function to ko.memoization.memoize()");varb=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);
c[b]=a;return"\x3c!--[ko_memo:"+b+"]--\x3e"},ub:function(a,b){varg=c[a];if(g===q)throwError("Couldn't find any memo with ID "+a+". Perhaps it's already been unmemoized.");try{returng.apply(null,b||[]),!0}finally{deletec[a]}},vb:function(c,e){varg=[];b(c,g);for(varh=0,k=g.length;h<k;h++){varm=g[h].Fb,f=[m];e&&a.a.X(f,e);a.u.ub(g[h].Tb,f);m.nodeValue="";m.parentNode&&m.parentNode.removeChild(m)}},jb:function(a){return(a=a.match(/^\[ko_memo\:(.*?)\]$/))?a[1]:null}}}();a.b("memoization",a.u);a.b("memoization.memoize",
end:function(){b.pop()},lb:function(c){if(!a.fb(c))throwError("Only subscribable things can act as dependencies");if(0<b.length){vard=b[b.length-1];!d||0<=a.a.l(d.Za,c)||(d.Za.push(c),d.qa(c))}},p:function(a,d,e){try{returnb.push(null),a.apply(d,e||[])}finally{b.pop()}}}}();a.q=function(b){functionc(){if(0<arguments.length)returnc.equalityComparer&&c.equalityComparer(d,arguments[0])||(c.O(),d=arguments[0],c.N()),this;a.i.lb(c);returnd}vard=b;a.ca.call(c);c.t=function(){returnd};c.N=function(){c.notifySubscribers(d)};
a.gb);a.ba=function(b){b=b||[];if("object"!=typeofb||!("length"inb))throwError("The argument passed when initializing an observable array must be an array, or null, or undefined.");b=a.q(b);a.a.extend(b,a.ba.fn);returnb.extend({trackArrayChanges:!0})};a.ba.fn={remove:function(b){for(varc=this.t(),d=[],e="function"!=typeofb||a.M(b)?function(a){returna===b}:b,g=0;g<c.length;g++){varh=c[g];e(h)&&(0===d.length&&this.O(),d.push(h),c.splice(g,1),g--)}d.length&&this.N();returnd},removeAll:function(b){if(b===
p=!0;return}}elsel=!1;s=!0;try{varb=a.a.ha(z,function(a){returna.target});a.i.Wa(function(c){vard;0<=(d=a.a.l(b,c))?b[d]=q:z.push(c.T(g))});for(vard=c?n.call(c):n(),e=b.length-1;0<=e;e--)b[e]&&z.splice(e,1)[0].B();p=!0;k.equalityComparer&&k.equalityComparer(f,d)||(k.notifySubscribers(f,"beforeChange"),f=d,k.notifySubscribers(f))}finally{a.i.end(),s=!1}z.length||D()}}functionk(){if(0<arguments.length){if("function"===typeofr)r.apply(c,arguments);elsethrowError("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");
returnthis}p||h();a.i.lb(k);returnf}functionm(){return!p||0<z.length}varf,p=!1,s=!1,l=!1,n=b;n&&"object"==typeofn?(d=n,n=d.read):(d=d||{},n||(n=d.read));if("function"!=typeofn)throwError("Pass a function that returns the value of the ko.computed");varr=d.write,v=d.disposeWhenNodeIsRemoved||d.I||null,t=d.disposeWhen||d.ua,E=t,D=e,z=[],x=null;c||(c=d.owner);k.t=function(){p||h();returnf};k.Kb=function(){returnz.length};k.Nb="function"===typeofd.write;k.B=function(){D()};k.aa=m;a.ca.call(k);
[];this.Qa=[]}a.tb=function(c){if(0==arguments.length)throwError("When calling ko.toJS, pass the object you want to convert.");returnb(c,function(b){for(varc=0;a.M(b)&&10>c;c++)b=b();returnb})};a.toJSON=function(b,c,d){b=a.tb(b);returna.a.Na(b,c,d)};d.prototype={save:function(b,c){vard=a.a.l(this.keys,b);0<=d?this.Qa[d]=c:(this.keys.push(b),this.Qa.push(c))},get:function(b){b=a.a.l(this.keys,b);return0<=b?this.Qa[b]:q}}})();a.b("toJS",a.tb);a.b("toJSON",a.toJSON);(function(){a.k={o:function(b){switch(a.a.v(b)){case"option":return!0===
d){for(vare=a,k=1,n=[];e=e.nextSibling;){if(c(e)&&(k--,0===k))returnn;n.push(e);b(e)&&k++}if(!d)throwError("Cannot find closing comment tag to match: "+a.nodeValue);returnnull}functione(a,b){varc=d(a,b);returnc?0<c.length?c[c.length-1].nextSibling:a.nextSibling:null}varg=w&&"\x3c!--test--\x3e"===w.createComment("test").text,h=g?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=g?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,m={ul:!0,ol:!0};a.e={P:{},childNodes:function(a){returnb(a)?
(f.push(e),a.a.n(k.after,function(c){if(b[c]){if(-1!==a.a.l(f,c))throwError("Cannot combine the following bindings, because they have a cyclic dependency: "+f.join(", "));D(c)}}),f.pop()),c.push({key:e,bb:k}));d[e]=!0}});returnc}functionm(b,d,f,g){varh=a.a.f.get(b,s);if(!d){if(h)throwError("You cannot apply bindings multiple times to the same element.");a.a.f.set(b,s,!0)}!h&&g&&a.rb(b,f);varm;if(d&&"function"!==typeofd)m=d;else{varp=a.H.instance,l=p.getBindingAccessors||e;if(d||f.A){varA=
a.h(function(){(m=d?d(f,b):l.call(p,b,f))&&f.A&&f.A();returnm},null,{I:b});m&&A.aa()||(A=null)}elsem=a.i.p(l,p,[b,f])}varu;if(m){varw=A?function(a){returnfunction(){returnc(A()[a])}}:function(a){returnm[a]},y=function(){returna.a.Da(A?A():m,c)};y.get=function(a){returnm[a]&&c(w(a))};y.has=function(a){returnainm};g=k(m);a.a.n(g,function(c){vard=c.bb.init,e=c.bb.update,k=c.key;if(8===b.nodeType&&!a.e.P[k])throwError("The binding '"+k+"' cannot be used with virtual elements");try{"function"==
typeofd&&a.i.p(function(){vara=d(b,w(k),y,f.$data,f);if(a&&a.controlsDescendantBindings){if(u!==q)throwError("Multiple bindings ("+u+" and "+k+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");u=k}}),"function"==typeofe&&a.h(function(){e(b,w(k),y,f.$data,f)},null,{I:b})}catch(g){throwg.message='Unable to process binding "'+k+": "+m[k]+'"\nMessage: '+g.message,g;}})}return{shouldBindDescendants:u===q}}functionf(b){returnb&&
a.e.ib(b);returnm(b,c,f(d),!0)};a.xb=function(c,e,k){k=f(k);returna.pa(c,"function"===typeofe?d(e.bind(null,k,c)):a.a.Da(e,b),k)};a.Ta=function(a,b){1!==b.nodeType&&8!==b.nodeType||g(f(a),b,!0)};a.Sa=function(a,b){if(b&&1!==b.nodeType&&8!==b.nodeType)throwError("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");b=b||y.document.body;h(f(a),b,!0)};a.ta=function(b){switch(b.nodeType){case1:case8:varc=a.rb(b);if(c)returnc;if(b.parentNode)returna.ta(b.parentNode)}returnq};
null,[b,d?"focusin":"focusout"]))}};a.g.U.hasfocus=!0;a.d.hasFocus=a.d.hasfocus;a.g.U.hasFocus=!0;a.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Ka(b,c())}};varL=a.a.f.D();H("if");H("ifnot",!1,!0);H("with",!0,!1,function(a,c){returna.createChildContext(c)});a.d.options={init:function(b){if("select"!==a.a.v(b))throwError("options binding applies only to SELECT elements");for(;0<b.length;)b.remove(0);return{controlsDescendantBindings:!0}},update:function(b,
a.g.oa(e,d,"selectedOptions",g)})},update:function(b,c){if("select"!=a.a.v(b))throwError("values binding applies only to SELECT elements");vard=a.a.c(c());d&&"number"==typeofd.length&&a.a.n(b.getElementsByTagName("option"),function(b){varc=0<=a.a.l(d,a.k.o(b));a.a.qb(b,c)})}};a.g.U.selectedOptions=!0;a.d.style={update:function(b,c){vard=a.a.c(c()||{});a.a.K(d,function(c,d){d=a.a.c(d);b.style[c]=d||""})}};a.d.submit={init:function(b,c,d,e,g){if("function"!=typeofc())throwError("The value for a submit binding must be a function");
};a.w.prototype.createJavaScriptEvaluatorBlock=function(){throwError("Override createJavaScriptEvaluatorBlock");};a.w.prototype.makeTemplateSource=function(b,c){if("string"==typeofb){c=c||w;vard=c.getElementById(b);if(!d)throwError("Cannot find template with ID "+b);returnnewa.m.j(d)}if(1==b.nodeType||8==b.nodeType)returnnewa.m.W(b);throwError("Unknown template type: "+b);};a.w.prototype.renderTemplate=function(a,c,d,e){a=this.makeTemplateSource(a,e);returnthis.renderTemplateSource(a,c,
d)};a.w.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.w.prototype.rewriteTemplate=function(a,c,d){a=this.makeTemplateSource(a,d);c=c(a.text());a.text(c);a.data("isRewritten",!0)};a.b("templateEngine",a.w);a.Oa=function(){functionb(b,c,d,k){b=a.g.Ga(b);for(varm=a.g.Y,f=0;f<b.length;f++){varp=b[f].key;if(m.hasOwnProperty(p)){vars=m[p];if("function"===typeofs){if(p=s(b[f].value))throwError(p);}elseif(!s)throwError("This template engine does not support the '"+
p+"' binding within its templates");}}d="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+a.g.ka(b,{valueAccessors:!0})+" } })()},'"+d.toLowerCase()+"')";returnk.createJavaScriptEvaluatorBlock(d)+c}varc=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Ib:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){returna.Oa.Ub(b,c)},
d)},Ub:function(a,g){returna.replace(c,function(a,c,d,f,e){returnb(e,c,d,g)}).replace(d,function(a,c){returnb(c,"\x3c!-- ko --\x3e","#comment",g)})},yb:function(b,c){returna.u.Ca(function(d,k){varm=d.nextSibling;m&&m.nodeName.toLowerCase()===c&&a.pa(m,b,k)})}}}();a.b("__tr_ambtns",a.Oa.yb);(function(){a.m={};a.m.j=function(a){this.j=a};a.m.j.prototype.text=function(){varb=a.a.v(this.j),b="script"===b?"text":"textarea"===b?"value":"innerHTML";if(0==arguments.length)returnthis.j[b];varc=arguments[0];
0;if(!f)return;f===e?c.push(f):(c.push(f,e),a.a.$(c,g))}b(f,e,function(b){1!==b.nodeType&&8!==b.nodeType||a.Sa(d,b)});b(f,e,function(b){1!==b.nodeType&&8!==b.nodeType||a.u.vb(b,[d])});a.a.$(c,g)}}functiond(a){returna.nodeType?a:0<a.length?a[0]:null}functione(b,e,f,h,s){s=s||{};varl=b&&d(b),l=l&&l.ownerDocument,n=s.templateEngine||g;a.Oa.Ib(f,n,l);f=n.renderTemplate(f,h,s,l);if("number"!=typeoff.length||0<f.length&&"number"!=typeoff[0].nodeType)throwError("Template engine must return an array of DOM nodes");
l=!1;switch(e){case"replaceChildren":a.e.S(b,f);l=!0;break;case"replaceNode":a.a.nb(b,f);l=!0;break;case"ignoreTargetNode":break;default:throwError("Unknown renderMode: "+e);}l&&(c(f,h),s.afterRender&&a.i.p(s.afterRender,null,[f,h.$data]));returnf}varg;a.La=function(b){if(b!=q&&!(binstanceofa.w))throwError("templateEngine must inherit from ko.templateEngine");g=b};a.Ia=function(b,c,f,h,s){f=f||{};if((f.templateEngine||g)==q)throwError("Set a template engine before calling renderTemplate");
a.a.c(c());d={};e=!0;varl,n=null;"string"!=typeofc&&(d=c,c=a.a.c(d.name),"if"ind&&(e=a.a.c(d["if"])),e&&"ifnot"ind&&(e=!a.a.c(d.ifnot)),l=a.a.c(d.data));"foreach"ind?n=a.$b(c||b,e&&d.foreach||[],d,b,g):e?(g="data"ind?g.createChildContext(l,d.as):g,n=a.Ia(c||b,g,d,b)):a.e.Z(b);g=n;(l=a.a.f.get(b,h))&&"function"==typeofl.B&&l.B();a.a.f.set(b,h,g&&g.aa()?g:q)}};a.g.Y.template=function(b){b=a.g.Ga(b);return1==b.length&&b[0].unknown||a.g.Sb(b,"name")?null:"This template engine does not support anonymous templates nested within its templates"};
newa.J;a.La(a.J.Aa);a.b("nativeTemplateEngine",a.J);(function(){a.Ba=function(){vara=this.Rb=function(){if("undefined"==typeofu||!u.tmpl)return0;try{if(0<=u.tmpl.tag.tmpl.open.toString().indexOf("__"))return2}catch(a){}return1}();this.renderTemplateSource=function(b,e,g){g=g||{};if(2>a)throwError("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");varh=b.data("precompiled");h||(h=b.text()||"",h=u.template(null,"{{ko_with $item.koBindingContext}}"+h+