/*! * Knockout JavaScript library v3.5.0-pre * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ (function() {(function(n){var y=this||(0,eval)("this"),t=y.document,M=y.navigator,v=y.jQuery,G=y.JSON;(function(n){"function"===typeof define&&define.amd?define(["exports","require"],n):"object"===typeof exports&&"object"===typeof module?n(module.exports||exports):n(y.ko={})})(function(N,O){function J(a,c){return null===a||typeof a in R?a===c:!1}function S(b,c){var d;return function(){d||(d=a.a.setTimeout(function(){d=n;b()},c))}}function T(b,c){var d;return function(){clearTimeout(d);d=a.a.setTimeout(b,c)}}function U(a, c){c&&"change"!==c?"beforeChange"===c?this.Ub(a):this.Ua(a,c):this.Vb(a)}function V(a,c){null!==c&&c.o&&c.o()}function W(a,c){var d=this.Wc,e=d[r];e.da||(this.Ab&&this.$a[c]?(d.Yb(c,a,this.$a[c]),this.$a[c]=null,--this.Ab):e.F[c]||d.Yb(c,a,e.G?{sa:a}:d.Ic(a)),a.tb&&a.Rc())}function K(b,c,d,e){a.f[b]={init:function(b,h,g,k,l){var m,p;a.u(function(){var k=h(),g=a.a.c(k),g=!d!==!g,z=!p;if(z||c||g!==m)z&&a.Ga.La()&&(p=a.a.Fa(a.g.childNodes(b),!0)),g?(z||a.g.na(b,a.a.Fa(p)),a.Ca(e?e(l,k):l,b)):a.g.Ia(b), m=g},null,{l:b});return{controlsDescendantBindings:!0}}};a.j.Ea[b]=!1;a.g.$[b]=!0}var a="undefined"!==typeof N?N:{};a.b=function(b,c){for(var d=b.split("."),e=a,f=0;fa.a.A(c,b[d])&&c.push(b[d]);return c},ub:function(a,b){a=a||[];for(var c=[],d=0,e=a.length;dl?d&&b.push(c):d||b.splice(l,1)},ua:h,extend:c,setPrototypeOf:d, nb:h?d:c,L:b,Oa:function(a,b){if(!a)return a;var c={},d;for(d in a)f.call(a,d)&&(c[d]=b(a[d],d,a));return c},Db:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},vc:function(b){b=a.a.fa(b);for(var c=(b[0]&&b[0].ownerDocument||t).createElement("div"),d=0,e=b.length;dp?a.setAttribute("selected", b):a.selected=b},pb:function(a){return null===a||a===n?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ad:function(a,b){a=a||"";return b.length>a.length?!1:a.substring(0,b.length)===b},ad:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(1!==a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16==(b.compareDocumentPosition(a)&16);for(;a&&a!=b;)a=a.parentNode;return!!a},Cb:function(b){return a.a.ad(b,b.ownerDocument.documentElement)}, Zb:function(b){return!!a.a.ac(b,a.a.Cb)},K:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},ec:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(c){throw a.onError&&a.onError(c),c;}}:b},setTimeout:function(b,c){return setTimeout(a.a.ec(b),c)},jc:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},C:function(b,c,d){var e=a.a.ec(d);d=m[c];if(a.options.useOnlyNativeEvents||d||!v)if(d||"function"!=typeof b.addEventListener)if("undefined"!=typeof b.attachEvent){var l= function(a){e.call(b,a)},f="on"+c;b.attachEvent(f,l);a.a.O.Aa(b,function(){b.detachEvent(f,l)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else b.addEventListener(c,e,!1);else q||(q="function"==typeof v(b).on?"on":"bind"),v(b)[q](c,e)},Qa:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var d;"input"===a.a.K(b)&&b.type&&"click"==c.toLowerCase()?(d=b.type,d="checkbox"==d||"radio"==d):d=!1;if(a.options.useOnlyNativeEvents|| !v||d)if("function"==typeof t.createEvent)if("function"==typeof b.dispatchEvent)d=t.createEvent(l[c]||"HTMLEvents"),d.initEvent(c,!0,!0,y,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&b.click)b.click();else if("undefined"!=typeof b.fireEvent)b.fireEvent("on"+c);else throw Error("Browser doesn't support triggering events");else v(b).trigger(c)},c:function(b){return a.J(b)?b():b},Cd:function(b){return a.J(b)?b:a.T(b)}, Pa:function(b){return a.J(b)?b.B():b},rb:function(b,c,d){var l;c&&("object"===typeof b.classList?(l=b.classList[d?"add":"remove"],a.a.D(c.match(u),function(a){l.call(b.classList,a)})):"string"===typeof b.className.baseVal?e(b.className,"baseVal",c,d):e(b,"className",c,d))},ob:function(b,c){var d=a.a.c(c);if(null===d||d===n)d="";var e=a.g.firstChild(b);!e||3!=e.nodeType||a.g.nextSibling(e)?a.g.na(b,[b.ownerDocument.createTextNode(d)]):e.data=d;a.a.fd(b)},Fc:function(a,b){a.name=b;if(7>=p)try{a.mergeAttributes(t.createElement(""),!1)}catch(c){}},fd:function(a){9<=p&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},bd:function(a){if(p){var b=a.style.width;a.style.width=0;a.style.width=b}},vd:function(b,c){b=a.a.c(b);c=a.a.c(c);for(var d=[],e=b;e<=c;e++)d.push(e);return d},fa:function(a){for(var b=[],c=0,d=a.length;c",""],d=[3,"","
"],e=[1,""],f={thead:c,tbody:c, tfoot:c,tr:[2,"","
"],td:d,th:d,option:e,optgroup:e},h=8>=a.a.ca;a.a.xa=function(c,d){var e;if(v)if(v.parseHTML)e=v.parseHTML(c,d)||[];else{if((e=v.clean([c],d))&&e[0]){for(var m=e[0];m.parentNode&&11!==m.parentNode.nodeType;)m=m.parentNode;m.parentNode&&m.parentNode.removeChild(m)}}else{(e=d)||(e=t);var m=e.parentWindow||e.defaultView||y,p=a.a.pb(c).toLowerCase(),u=e.createElement("div"),q;q=(p=p.match(/^<([a-z]+)[ >]/))&&f[p[1]]||b;p=q[0];q="ignored
"+q[1]+c+q[2]+ "
";"function"==typeof m.innerShiv?u.appendChild(m.innerShiv(q)):(h&&e.appendChild(u),u.innerHTML=q,h&&u.parentNode.removeChild(u));for(;p--;)u=u.lastChild;e=a.a.fa(u.lastChild.childNodes)}return e};a.a.Lb=function(b,c){a.a.Db(b);c=a.a.c(c);if(null!==c&&c!==n)if("string"!=typeof c&&(c=c.toString()),v)v(b).html(c);else for(var d=a.a.xa(c,b.ownerDocument),e=0;eb){if(5E3<=++c){g=f;a.a.jc(Error("'Too much recursion' after processing "+c+" task groups."));break}b=f}try{d()}catch(p){a.a.jc(p)}}}function c(){b();g=f=e.length=0}var d,e=[],f=0,h=1,g=0;y.MutationObserver?d=function(a){var b=t.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c):d=t&&"onreadystatechange"in t.createElement("script")?function(a){var b= t.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;t.documentElement.removeChild(b);b=null;a()};t.documentElement.appendChild(b)}:function(a){setTimeout(a,0)};return{scheduler:d,mb:function(b){f||a.ga.scheduler(c);e[f++]=b;return h++},cancel:function(a){a=a-(h-f);a>=g&&ad[0]?k+d[0]:d[0]),k);for(var k=1===h?k:Math.min(c+(d[1]||0),k),h=c+h-2,H=Math.max(k,h),n=[],r=[],w=2;cc;c++)b=b();return b})};a.toJSON=function(b,c,d){b=a.Kc(b);return a.a.Nb(b,c,d)};d.prototype={constructor:d,save:function(b,c){var d=a.a.A(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b), this.values.push(c))},get:function(b){b=a.a.A(this.keys,b);return 0<=b?this.values[b]:n}}})();a.b("toJS",a.Kc);a.b("toJSON",a.toJSON);(function(){a.m={H:function(b){switch(a.a.K(b)){case "option":return!0===b.__ko__hasDomDataOptionValue__?a.a.h.get(b,a.f.options.Hb):7>=a.a.ca?b.getAttributeNode("value")&&b.getAttributeNode("value").specified?b.value:b.text:b.value;case "select":return 0<=b.selectedIndex?a.m.H(b.options[b.selectedIndex]):n;default:return b.value}},ra:function(b,c,d){switch(a.a.K(b)){case "option":switch(typeof c){case "string":a.a.h.set(b, a.f.options.Hb,n);"__ko__hasDomDataOptionValue__"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.a.h.set(b,a.f.options.Hb,c),b.__ko__hasDomDataOptionValue__=!0,b.value="number"===typeof c?c:""}break;case "select":if(""===c||null===c)c=n;for(var e=-1,f=0,h=b.options.length,g;f=q){c.push(p&&g.length?{key:p,value:g.join("")}:{unknown:p||g.join("")});p=q=0;g=[];continue}}else if(58===x){if(!q&&!p&&1===g.length){p=g.pop();continue}}else if(47===x&&1=a.a.ca&&b.tagName===c))return c};a.i.Xb=function(c,e,f,h){if(1===e.nodeType){var g=a.i.getComponentNameForNode(e);if(g){c=c||{};if(c.component)throw Error('Cannot use the "component" binding on a custom element matching a component'); var k={name:g,params:b(e,f)};c.component=h?function(){return k}:k}}return c};var c=new a.ba;9>a.a.ca&&(a.i.register=function(a){return function(b){return a.apply(this,arguments)}}(a.i.register),t.createDocumentFragment=function(b){return function(){var c=b(),f=a.i.Oc,h;for(h in f);return c}}(t.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.a.Fa(c);a.g.na(d,b)}function d(a,b,c,d){var e=a.createViewModel;return e?e.call(a, d,{element:b,templateNodes:c}):d}var e=0;a.f.component={init:function(f,h,g,k,l){function m(){var a=p&&p.dispose;"function"===typeof a&&a.call(p);u=p=null}var p,u,q=a.a.fa(a.g.childNodes(f));a.a.O.Aa(f,m);a.u(function(){var g=a.a.c(h()),k,x;"string"===typeof g?k=g:(k=a.a.c(g.name),x=a.a.c(g.params));if(!k)throw Error("No component name specified");var n=u=++e;a.i.get(k,function(e){if(u===n){m();if(!e)throw Error("Unknown component '"+k+"'");c(k,e,f);var g=d(e,f,q,x);e=l.createChildContext(g,b,function(a){a.$component= g;a.$componentTemplateNodes=q});p=g;a.Ca(e,f)}})},null,{l:f});return{controlsDescendantBindings:!0}}};a.g.$.component=!0})();var Q={"class":"className","for":"htmlFor"};a.f.attr={update:function(b,c){var d=a.a.c(c())||{};a.a.L(d,function(c,d){d=a.a.c(d);var h=!1===d||null===d||d===n;h&&b.removeAttribute(c);8>=a.a.ca&&c in Q?(c=Q[c],h?b.removeAttribute(c):b[c]=d):h||b.setAttribute(c,d.toString());"name"===c&&a.a.Fc(b,h?"":d.toString())})}};(function(){a.f.checked={after:["value","attr"],init:function(b, c,d){function e(){var e=b.checked,f=z?h():e;if(!a.Ga.hb()&&(!l||e)){var k=a.s.I(c);if(p){var m=u?k.B():k;q!==f?(e&&(a.a.Ba(m,f,!0,g),a.a.Ba(m,q,!1,g)),q=f):a.a.Ba(m,f,e,g);u&&a.Ma(k)&&k(m)}else a.j.Ra(k,d,"checked",f,!0)}}function f(){var d=a.a.c(c());p?b.checked=0<=a.a.A(d,h(),g):k?b.checked=d:b.checked=h()===d}var h=a.zc(function(){return d.has("checkedValue")?a.a.c(d.get("checkedValue")):d.has("value")?a.a.c(d.get("value")):b.value}),g=d.has("checkedArrayContainsObservables")&&d.get("checkedArrayContainsObservables"), k="checkbox"==b.type,l="radio"==b.type;if(k||l){var m=c(),p=k&&a.a.c(m)instanceof Array,u=!(p&&m.push&&m.splice),q=p?h():n,z=l||p;l&&!b.name&&a.f.uniqueName.init(b,function(){return!0});a.u(e,null,{l:b});a.a.C(b,"click",e);a.u(f,null,{l:b});m=n}}};a.j.oa.checked=!0;a.f.checkedValue={update:function(b,c){b.value=a.a.c(c())}}})();a.f["class"]={update:function(b,c){var d=a.a.pb(a.a.c(c()));a.a.rb(b,b.__ko__cssValue,!1);b.__ko__cssValue=d;a.a.rb(b,d,!0)}};a.f.css={update:function(b,c){var d=a.a.c(c()); null!==d&&"object"==typeof d?a.a.L(d,function(c,d){d=a.a.c(d);a.a.rb(b,c,d)}):a.f["class"].update(b,c)}};a.f.enable={update:function(b,c){var d=a.a.c(c());d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.f.disable={update:function(b,c){a.f.enable.update(b,function(){return!a.a.c(c())})}};a.f.event={init:function(b,c,d,e,f){var h=c()||{};a.a.L(h,function(g){"string"==typeof g&&a.a.C(b,g,function(b){var h,m=c()[g];if(m){try{var p=a.a.fa(arguments);e=f.$data;p.unshift(e); h=m.apply(e,p)}finally{!0!==h&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(g+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.f.foreach={uc:function(b){return function(){var c=b(),d=a.a.Pa(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.X.za};a.a.c(c);return{foreach:d.data,as:d.as,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove, templateEngine:a.X.za}}},init:function(b,c){return a.f.template.init(b,a.f.foreach.uc(c))},update:function(b,c,d,e,f){return a.f.template.update(b,a.f.foreach.uc(c),d,e,f)}};a.j.Ea.foreach=!1;a.g.$.foreach=!0;a.f.hasfocus={init:function(b,c,d){function e(e){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if("activeElement"in f){var h;try{h=f.activeElement}catch(m){h=f.body}e=h===b}f=c();a.j.Ra(f,d,"hasfocus",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1}var f=e.bind(null,!0),h=e.bind(null, !1);a.a.C(b,"focus",f);a.a.C(b,"focusin",f);a.a.C(b,"blur",h);a.a.C(b,"focusout",h)},update:function(b,c){var d=!!a.a.c(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.s.I(a.a.Qa,null,[b,d?"focusin":"focusout"]))}};a.j.oa.hasfocus=!0;a.f.hasFocus=a.f.hasfocus;a.j.oa.hasFocus=!0;a.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Lb(b,c())}};K("if");K("ifnot",!1,!0); K("with",!0,!1,function(a,c){return a.gc(c)});a.f.let={init:function(b,c,d,e,f){c=f.extend(c);a.Ca(c,b);return{controlsDescendantBindings:!0}}};a.g.$.let=!0;var L={};a.f.options={init:function(b){if("select"!==a.a.K(b))throw Error("options binding applies only to SELECT elements");for(;0h)var g=a.a.h.S(),k=a.a.h.S(),l=function(b){var c=this.activeElement;(c=c&&a.a.h.get(c,k))&&c(b)},m=function(b,c){var d=b.ownerDocument;a.a.h.get(d,g)||(a.a.h.set(d, g,!0),a.a.C(d,"selectionchange",l));a.a.h.set(b,k,c)};a.f.textInput={init:function(b,c,g){function k(c,d){a.a.C(b,c,d)}function l(){var d=a.a.c(c());if(null===d||d===n)d="";y!==n&&d===y?a.a.setTimeout(l,4):b.value!==d&&(t=d,b.value=d)}function x(){v||(y=b.value,v=a.a.setTimeout(r,4))}function r(){clearTimeout(v);y=v=n;var d=b.value;t!==d&&(t=d,a.j.Ra(c(),g,"textInput",d))}var t=b.value,v,y,w=9==a.a.ca?x:r;h&&k("keypress",r);11>h&&k("propertychange",function(a){"value"===a.propertyName&&w(a)});8== h&&(k("keyup",r),k("keydown",r));m&&(m(b,w),k("dragend",x));(!h||9<=h)&&k("input",w);5>e&&"textarea"===a.a.K(b)?(k("keydown",x),k("paste",x),k("cut",x)):11>d?k("keydown",x):4>f&&(k("DOMAutoComplete",r),k("dragdrop",r),k("drop",r));k("change",r);k("blur",r);a.u(l,null,{l:b})}};a.j.oa.textInput=!0;a.f.textinput={preprocess:function(a,b,c){c("textInput",a)}}})();a.f.uniqueName={init:function(b,c){if(c()){var d="ko_unique_"+ ++a.f.uniqueName.Xc;a.a.Fc(b,d)}}};a.f.uniqueName.Xc=0;a.f.using={init:function(b, c,d,e,f){c=f.createChildContext(c);a.Ca(c,b);return{controlsDescendantBindings:!0}}};a.g.$.using=!0;a.f.value={after:["options","foreach"],init:function(b,c,d){var e=a.a.K(b),f="input"==e;if(!f||"checkbox"!=b.type&&"radio"!=b.type){var h=["change"],g=d.get("valueUpdate"),k=!1,l=null;g&&("string"==typeof g&&(g=[g]),a.a.Ya(h,g),h=a.a.bc(h));var m=function(){l=null;k=!1;var e=c(),f=a.m.H(b);a.j.Ra(e,d,"value",f)};!a.a.ca||!f||"text"!=b.type||"off"==b.autocomplete||b.form&&"off"==b.form.autocomplete|| -1!=a.a.A(h,"propertychange")||(a.a.C(b,"propertychange",function(){k=!0}),a.a.C(b,"focus",function(){k=!1}),a.a.C(b,"blur",function(){k&&m()}));a.a.D(h,function(c){var d=m;a.a.Ad(c,"after")&&(d=function(){l=a.m.H(b);a.a.setTimeout(m,0)},c=c.substring(5));a.a.C(b,c,d)});var p;p=f&&"file"==b.type?function(){var d=a.a.c(c());null===d||d===n||""===d?b.value="":m()}:function(){var f=a.a.c(c()),g=a.m.H(b);if(null!==l&&f===l)a.a.setTimeout(p,0);else if(f!==g)if("select"===e){var k=d.get("valueAllowUnset"), h=function(){a.m.ra(b,f,k)};a.Ha.Ec(function(){h();k||f===a.m.H(b)?a.a.setTimeout(h,0):a.s.I(a.a.Qa,null,[b,"change"])})}else a.m.ra(b,f)};a.u(p,null,{l:b})}else a.Wa(b,{checkedValue:c})},update:function(){}};a.j.oa.value=!0;a.f.visible={update:function(b,c){var d=a.a.c(c()),e="none"!=b.style.display;d&&!e?b.style.display="":!d&&e&&(b.style.display="none")}};(function(b){a.f[b]={init:function(c,d,e,f,h){return a.f.event.init.call(this,c,function(){var a={};a[b]=d();return a},e,f,h)}}})("click");a.Y= function(){};a.Y.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};a.Y.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};a.Y.prototype.makeTemplateSource=function(b,c){if("string"==typeof b){c=c||t;var d=c.getElementById(b);if(!d)throw Error("Cannot find template with ID "+b);return new a.w.v(d)}if(1==b.nodeType||8==b.nodeType)return new a.w.ha(b);throw Error("Unknown template type: "+b);};a.Y.prototype.renderTemplate= function(a,c,d,e){a=this.makeTemplateSource(a,e);return this.renderTemplateSource(a,c,d,e)};a.Y.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.Y.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.Y);a.Pb=function(){function b(b,c,d,g){b=a.j.Ib(b);for(var k=a.j.Ea,l=0;l]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi, d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{cd:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.Pb.rd(b,c)},d)},rd:function(a,f){return a.replace(c,function(a,c,d,e,m){return b(m,c,d,f)}).replace(d,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},Tc:function(b,c){return a.W.Gb(function(d,g){var k=d.nextSibling;k&&k.nodeName.toLowerCase()===c&&a.Wa(k,b,g)})}}}();a.b("__tr_ambtns",a.Pb.Tc);(function(){a.w={};a.w.v=function(b){if(this.v=b){var c= a.a.K(b);this.qb="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.w.v.prototype.text=function(){var b=1===this.qb?"text":2===this.qb?"value":"innerHTML";if(0==arguments.length)return this.v[b];var c=arguments[0];"innerHTML"===b?a.a.Lb(this.v,c):this.v[b]=c};var b=a.a.h.S()+"_";a.w.v.prototype.data=function(c){if(1===arguments.length)return a.a.h.get(this.v,b+c);a.a.h.set(this.v,b+c,arguments[1])};var c=a.a.h.S();a.w.v.prototype.nodes=function(){var b=this.v; if(0==arguments.length)return(a.a.h.get(b,c)||{}).yb||(3===this.qb?b.content:4===this.qb?b:n);a.a.h.set(b,c,{yb:arguments[0]})};a.w.ha=function(a){this.v=a};a.w.ha.prototype=new a.w.v;a.w.ha.prototype.constructor=a.w.ha;a.w.ha.prototype.text=function(){if(0==arguments.length){var b=a.a.h.get(this.v,c)||{};b.Qb===n&&b.yb&&(b.Qb=b.yb.innerHTML);return b.Qb}a.a.h.set(this.v,c,{Qb:arguments[0]})};a.b("templateSources",a.w);a.b("templateSources.domElement",a.w.v);a.b("templateSources.anonymousTemplate", a.w.ha)})();(function(){function b(b,c,d){var e;for(c=a.g.nextSibling(c);b&&(e=b)!==c;)b=a.g.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],g=e.parentNode,h=a.ba.instance,n=h.preprocessNode;if(n){b(e,f,function(a,b){var c=a.previousSibling,d=n.call(h,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;if(!e)return;e===f?c.push(e):(c.push(e,f),a.a.Ka(c,g))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.$b(d,b)});b(e,f,function(b){1!==b.nodeType&& 8!==b.nodeType||a.W.Mc(b,[d])});a.a.Ka(c,g)}}function d(a){return a.nodeType?a:0a.a.ca?0:b.nodes)?b.nodes():null)return a.a.fa(c.cloneNode(!0).childNodes);b=b.text();return a.a.xa(b,e)};a.X.za=new a.X;a.Mb(a.X.za);a.b("nativeTemplateEngine",a.X);(function(){a.Na=function(){var a=this.nd=function(){if(!v||!v.tmpl)return 0;try{if(0<=v.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(a){}return 1}();this.renderTemplateSource=function(b,e,f,h){h=h||t;f=f||{};if(2>a)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later."); var g=b.data("precompiled");g||(g=b.text()||"",g=v.template(null,"{{ko_with $item.koBindingContext}}"+g+"{{/ko_with}}"),b.data("precompiled",g));b=[e.$data];e=v.extend({koBindingContext:e},f.templateOptions);e=v.tmpl(g,b,e);e.appendTo(h.createElement("div"));v.fragments={};return e};this.createJavaScriptEvaluatorBlock=function(a){return"{{ko_code ((function() { return "+a+" })()) }}"};this.addTemplate=function(a,b){t.write("