/*! * jQuery Textarea AutoSize plugin * Author: Javier Julio * Licensed under the MIT license */ !function(e){var t,n=this||(0,eval)("this"),a=n.document,i=n.navigator,r=n.jQuery,s=n.JSON;t=function(t,o){function u(e,t){return(null===e||typeof e in k)&&e===t}function c(t,n){var a;return function(){a||(a=D.a.setTimeout(function(){a=e,t()},n))}}function l(e,t){var n;return function(){clearTimeout(n),n=D.a.setTimeout(e,t)}}function d(e,t){t&&t!==T?"beforeChange"===t?this.Ob(e):this.Ja(e,t):this.Pb(e)}function h(e,t){null!==t&&t.k&&t.k()}function f(e,t){var n=this.Mc,a=n[E];a.T||(this.ob&&this.Oa[t]?(n.Sb(t,e,this.Oa[t]),this.Oa[t]=null,--this.ob):a.s[t]||n.Sb(t,e,a.t?{$:e}:n.yc(e)),e.Ha&&e.Hc())}function p(e,t,n,a){D.d[e]={init:function(e,i,r,s,o){var u,c;return D.m(function(){var r=i(),s=D.a.c(r),l=(s=!n!=!s,!c);(l||t||s!==u)&&(l&&D.xa.Ca()&&(c=D.a.wa(D.f.childNodes(e),!0)),s?(l||D.f.fa(e,D.a.wa(c)),D.hb(a?a(o,r):o,e)):D.f.za(e),u=s)},null,{i:e}),{controlsDescendantBindings:!0}}},D.h.va[e]=!1,D.f.aa[e]=!0}var m,g,v,y,b,w,_,D=void 0!==t?t:{};D.b=function(e,t){for(var n=e.split("."),a=D,i=0;iD.a.o(t,e[n])&&t.push(e[n]);return t},ib:function(e,t){for(var n=[],a=0,i=(e=e||[]).length;aa?n&&e.push(t):n||e.splice(a,1)},la:l,extend:o,$a:u,ab:l?u:o,D:t,Ea:function(e,t){if(!e)return e;var n,a={};for(n in e)e.hasOwnProperty(n)&&(a[n]=t(e[n],n,e));return a},rb:function(e){for(;e.firstChild;)D.removeNode(e.firstChild)},nc:function(e){for(var t=((e=D.a.W(e))[0]&&e[0].ownerDocument||a).createElement("div"),n=0,i=e.length;nm?e.setAttribute("selected",t):e.selected=t},cb:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},Rc:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(3===e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},qb:function(e){return D.a.Rc(e,e.ownerDocument.documentElement)},Tb:function(e){return!!D.a.Vb(e,D.a.qb)},A:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Zb:function(e){return D.onError?function(){try{return e.apply(this,arguments)}catch(e){throw D.onError&&D.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(D.a.Zb(e),t)},dc:function(e){setTimeout(function(){throw D.onError&&D.onError(e),e},0)},q:function(e,t,n){var a=D.a.Zb(n);if(n=m&&p[t],D.options.useOnlyNativeEvents||n||!r)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){a.call(e,t)},s="on"+t;e.attachEvent(s,i),D.a.G.qa(e,function(){e.detachEvent(s,i)})}else e.addEventListener(t,a,!1);else r(e).bind(t,a)},Fa:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if(i=!("input"!==D.a.A(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(i=e.type)&&"radio"!=i),D.options.useOnlyNativeEvents||!r||i)if("function"==typeof a.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(i=a.createEvent(f[t]||"HTMLEvents")).initEvent(t,!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(i)}else if(i&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else r(e).trigger(t)},c:function(e){return D.I(e)?e():e},Bb:function(e){return D.I(e)?e.p():e},fb:function(e,t,n){var a;t&&("object"==typeof e.classList?(a=e.classList[n?"add":"remove"],D.a.r(t.match(g),function(t){a.call(e.classList,t)})):"string"==typeof e.className.baseVal?c(e.className,"baseVal",t,n):c(e,"className",t,n))},bb:function(t,n){var a=D.a.c(n);null!==a&&a!==e||(a="");var i=D.f.firstChild(t);!i||3!=i.nodeType||D.f.nextSibling(i)?D.f.fa(t,[t.ownerDocument.createTextNode(a)]):i.data=a,D.a.Wc(t)},vc:function(e,t){if(e.name=t,7>=m)try{e.mergeAttributes(a.createElement(""),!1)}catch(e){}},Wc:function(e){9<=m&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},Sc:function(e){if(m){var t=e.style.width;e.style.width=0,e.style.width=t}},nd:function(e,t){e=D.a.c(e),t=D.a.c(t);for(var n=[],a=e;a<=t;a++)n.push(a);return n},W:function(e){for(var t=[],n=0,a=e.length;n",""],tbody:g,tfoot:g,tr:[2,"","
"],td:v=[3,"","
"],th:v,option:y=[1,""],optgroup:y},w=8>=D.a.C,D.a.na=function(e,t){var i;if(r){if(r.parseHTML)i=r.parseHTML(e,t)||[];else if((i=r.clean([e],t))&&i[0]){for(var s=i[0];s.parentNode&&11!==s.parentNode.nodeType;)s=s.parentNode;s.parentNode&&s.parentNode.removeChild(s)}}else{(i=t)||(i=a),s=i.parentWindow||i.defaultView||n;var o,u=D.a.cb(e).toLowerCase(),c=i.createElement("div");for(o=(u=u.match(/^<([a-z]+)[ >]/))&&b[u[1]]||m,u=o[0],o="ignored
"+o[1]+e+o[2]+"
","function"==typeof s.innerShiv?c.appendChild(s.innerShiv(o)):(w&&i.appendChild(c),c.innerHTML=o,w&&c.parentNode.removeChild(c));u--;)c=c.lastChild;i=D.a.W(c.lastChild.childNodes)}return i},D.a.Eb=function(t,n){if(D.a.rb(t),null!==(n=D.a.c(n))&&n!==e)if("string"!=typeof n&&(n=n.toString()),r)r(t).html(n);else for(var a=D.a.na(n,t.ownerDocument),i=0;it){if(5e3<=++n){c=o,D.a.dc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=o}try{e()}catch(e){D.a.dc(e)}}}function t(){e(),c=o=s.length=0}var i,r,s=[],o=0,u=1,c=0;return{scheduler:n.MutationObserver?(i=t,r=a.createElement("div"),new MutationObserver(i).observe(r,{attributes:!0}),function(){r.classList.toggle("foo")}):a&&"onreadystatechange"in a.createElement("script")?function(e){var t=a.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,a.documentElement.removeChild(t),t=null,e()},a.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},Za:function(e){return o||D.Z.scheduler(t),s[o++]=e,u++},cancel:function(e){(e-=u-o)>=c&&en[0]?u+n[0]:n[0]),u),u=1===c?u:Math.min(t+(n[1]||0),u),c=t+c-2,l=Math.max(u,c);for(var d=[],h=[],f=2;tt;t++)e=e();return e})},D.toJSON=function(e,t,n){return e=D.Ac(e),D.a.Gb(e,t,n)},n.prototype={save:function(e,t){var n=D.a.o(this.keys,e);0<=n?this.Lb[n]=t:(this.keys.push(e),this.Lb.push(t))},get:function(t){return 0<=(t=D.a.o(this.keys,t))?this.Lb[t]:e}}}(),D.b("toJS",D.Ac),D.b("toJSON",D.toJSON),D.j={u:function(t){switch(D.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?D.a.e.get(t,D.d.options.zb):7>=D.a.C?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?D.j.u(t.options[t.selectedIndex]):e;default:return t.value}},ja:function(t,n,a){switch(D.a.A(t)){case"option":switch(typeof n){case"string":D.a.e.set(t,D.d.options.zb,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n;break;default:D.a.e.set(t,D.d.options.zb,n),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof n?n:""}break;case"select":""!==n&&null!==n||(n=e);for(var i,r=-1,s=0,o=t.options.length;s=u){n.push(t&&o.length?{key:t,value:o.join("")}:{unknown:t||o.join("")}),t=u=0,o=[];continue}}else if(58===d){if(!u&&!t&&1===o.length){t=o.pop();continue}}else 47===d&&l&&1=D.a.C&&e.tagName===t))return t},D.g.Rb=function(e,t,a,i){if(1===t.nodeType){var r=D.g.getComponentNameForNode(t);if(r){if((e=e||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var s={name:r,params:function(e,t){if(a=e.getAttribute("params")){var a=n.parseBindingsString(a,t,e,{valueAccessors:!0,bindingParams:!0}),i=(a=D.a.Ea(a,function(t){return D.m(t,null,{i:e})}),D.a.Ea(a,function(t){var n=t.p();return t.ca()?D.m({read:function(){return D.a.c(t())},write:D.Da(n)&&function(e){t()(e)},i:e}):n}));return i.hasOwnProperty("$raw")||(i.$raw=a),i}return{$raw:{}}}(t,a)};e.component=i?function(){return s}:s}}return e};var e,t,n=new D.S;9>D.a.C&&(D.g.register=(t=D.g.register,function(e){return a.createElement(e),t.apply(this,arguments)}),a.createDocumentFragment=(e=a.createDocumentFragment,function(){var t,n=e(),a=D.g.Ec;for(t in a)a.hasOwnProperty(t)&&n.createElement(t);return n}))}(),$=0,D.d.component={init:function(e,t,n,a,i){function r(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),o=s=null}var s,o,u=D.a.W(D.f.childNodes(e));return D.a.G.qa(e,r),D.m(function(){var n,a,c=D.a.c(t());if("string"==typeof c?n=c:(n=D.a.c(c.name),a=D.a.c(c.params)),!n)throw Error("No component name specified");var l=o=++$;D.g.get(n,function(t){if(o===l){if(r(),!t)throw Error("Unknown component '"+n+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=D.a.wa(t),D.f.fa(n,e)}(n,t,e);var c=(h=e,f=u,p=a,(m=(d=t).createViewModel)?m.call(d,p,{element:h,templateNodes:f}):p);t=i.createChildContext(c,void 0,function(e){e.$component=c,e.$componentTemplateNodes=u}),s=c,D.hb(t,e)}var d,h,f,p,m})},null,{i:e}),{controlsDescendantBindings:!0}}},D.f.aa.component=!0;var F={class:"className",for:"htmlFor"};D.d.attr={update:function(t,n){var a=D.a.c(n())||{};D.a.D(a,function(n,a){var i=!1===(a=D.a.c(a))||null===a||a===e;i&&t.removeAttribute(n),8>=D.a.C&&n in F?(n=F[n],i?t.removeAttribute(n):t[n]=a):i||t.setAttribute(n,a.toString()),"name"===n&&D.a.vc(t,i?"":a.toString())})}},D.d.checked={after:["value","attr"],init:function(t,n,a){function i(){var e=t.checked,i=h?r():e;if(!D.xa.Va()&&(!o||e)){var s=D.l.w(n);if(c){var u=l?s.p():s;d!==i?(e&&(D.a.ra(u,i,!0),D.a.ra(u,d,!1)),d=i):D.a.ra(u,i,e),l&&D.Da(s)&&s(u)}else D.h.Ga(s,a,"checked",i,!0)}}var r=D.rc(function(){return a.has("checkedValue")?D.a.c(a.get("checkedValue")):a.has("value")?D.a.c(a.get("value")):t.value}),s="checkbox"==t.type,o="radio"==t.type;if(s||o){var u=n(),c=s&&D.a.c(u)instanceof Array,l=!(c&&u.push&&u.splice),d=c?r():e,h=o||c;o&&!t.name&&D.d.uniqueName.init(t,function(){return!0}),D.m(i,null,{i:t}),D.a.q(t,"click",i),D.m(function(){var e=D.a.c(n());t.checked=c?0<=D.a.o(e,r()):s?e:r()===e},null,{i:t}),u=e}}},D.h.ga.checked=!0,D.d.checkedValue={update:function(e,t){e.value=D.a.c(t())}},D.d.css={update:function(e,t){var n=D.a.c(t());null!==n&&"object"==typeof n?D.a.D(n,function(t,n){n=D.a.c(n),D.a.fb(e,t,n)}):(n=D.a.cb(String(n||"")),D.a.fb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,D.a.fb(e,n,!0))}},D.d.enable={update:function(e,t){var n=D.a.c(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},D.d.disable={update:function(e,t){D.d.enable.update(e,function(){return!D.a.c(t())})}},D.d.event={init:function(e,t,n,a,i){var r=t()||{};D.a.D(r,function(r){"string"==typeof r&&D.a.q(e,r,function(e){var s,o=t()[r];if(o){try{var u=D.a.W(arguments);a=i.$data,u.unshift(a),s=o.apply(a,u)}finally{!0!==s&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(r+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},D.d.foreach={mc:function(e){return function(){var t=e(),n=D.a.Bb(t);return n&&"number"!=typeof n.length?(D.a.c(t),{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:D.X.vb}):{foreach:t,templateEngine:D.X.vb}}},init:function(e,t){return D.d.template.init(e,D.d.foreach.mc(t))},update:function(e,t,n,a,i){return D.d.template.update(e,D.d.foreach.mc(t),n,a,i)}},D.h.va.foreach=!1,D.f.aa.foreach=!0,D.d.hasfocus={init:function(e,t,n){function a(a){e.__ko_hasfocusUpdating=!0;var i=e.ownerDocument;if("activeElement"in i){var r;try{r=i.activeElement}catch(e){r=i.body}a=r===e}i=t(),D.h.Ga(i,n,"hasfocus",a,!0),e.__ko_hasfocusLastValue=a,e.__ko_hasfocusUpdating=!1}var i=a.bind(null,!0),r=a.bind(null,!1);D.a.q(e,"focus",i),D.a.q(e,"focusin",i),D.a.q(e,"blur",r),D.a.q(e,"focusout",r)},update:function(e,t){var n=!!D.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),D.l.w(D.a.Fa,null,[e,n?"focusin":"focusout"]))}},D.h.ga.hasfocus=!0,D.d.hasFocus=D.d.hasfocus,D.h.ga.hasFocus=!0,D.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){D.a.Eb(e,t())}},p("if"),p("ifnot",!1,!0),p("with",!0,!1,function(e,t){return e.ac(t)});var L={};D.d.options={init:function(e){if("select"!==D.a.A(e))throw Error("options binding applies only to SELECT elements");for(;0D.a.C)var o=D.a.e.J(),u=D.a.e.J(),c=function(e){var t=this.activeElement;(t=t&&D.a.e.get(t,u))&&t(e)},l=function(e,t){var n=e.ownerDocument;D.a.e.get(n,o)||(D.a.e.set(n,o,!0),D.a.q(n,"selectionchange",c)),D.a.e.set(e,u,t)};D.d.textInput={init:function(t,n,i){function o(e,n){D.a.q(t,e,n)}function u(){d||(h=t.value,d=D.a.setTimeout(c,4))}function c(){clearTimeout(d),h=d=e;var a=t.value;f!==a&&(f=a,D.h.Ga(n(),i,"textInput",a))}var d,h,f=t.value,p=9==D.a.C?u:c;10>D.a.C?(o("propertychange",function(e){"value"===e.propertyName&&p(e)}),8==D.a.C&&(o("keyup",c),o("keydown",c)),8<=D.a.C&&(l(t,p),o("dragend",u))):(o("input",c),5>r&&"textarea"===D.a.A(t)?(o("keydown",u),o("paste",u),o("cut",u)):11>a?o("keydown",u):4>s&&(o("DOMAutoComplete",c),o("dragdrop",c),o("drop",c))),o("change",c),D.m(function a(){var i=D.a.c(n());null!==i&&i!==e||(i=""),h!==e&&i===h?D.a.setTimeout(a,4):t.value!==i&&(f=i,t.value=i)},null,{i:t})}},D.h.ga.textInput=!0,D.d.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),D.d.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++D.d.uniqueName.Nc;D.a.vc(e,n)}}},D.d.uniqueName.Nc=0,D.d.value={after:["options","foreach"],init:function(e,t,n){if("input"!=e.tagName.toLowerCase()||"checkbox"!=e.type&&"radio"!=e.type){var a=["change"],i=n.get("valueUpdate"),r=!1,s=null;i&&("string"==typeof i&&(i=[i]),D.a.ta(a,i),a=D.a.Wb(a));var o=function(){s=null,r=!1;var a=t(),i=D.j.u(e);D.h.Ga(a,n,"value",i)};!D.a.C||"input"!=e.tagName.toLowerCase()||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=D.a.o(a,"propertychange")||(D.a.q(e,"propertychange",function(){r=!0}),D.a.q(e,"focus",function(){r=!1}),D.a.q(e,"blur",function(){r&&o()})),D.a.r(a,function(t){var n=o;D.a.sd(t,"after")&&(n=function(){s=D.j.u(e),D.a.setTimeout(o,0)},t=t.substring(5)),D.a.q(e,t,n)});var u=function(){var a=D.a.c(t()),i=D.j.u(e);if(null!==s&&a===s)D.a.setTimeout(u,0);else if(a!==i)if("select"===D.a.A(e)){var r=n.get("valueAllowUnset");(i=function(){D.j.ja(e,a,r)})(),r||a===D.j.u(e)?D.a.setTimeout(i,0):D.l.w(D.a.Fa,null,[e,"change"])}else D.j.ja(e,a)};D.m(u,null,{i:e})}else D.La(e,{checkedValue:t})},update:function(){}},D.h.ga.value=!0,D.d.visible={update:function(e,t){var n=D.a.c(t()),a="none"!=e.style.display;n&&!a?e.style.display="":!n&&a&&(e.style.display="none")}},D.d.click={init:function(e,t,n,a,i){return D.d.event.init.call(this,e,function(){var e={};return e.click=t(),e},n,a,i)}},D.P=function(){},D.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},D.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},D.P.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||a).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new D.v.n(n)}if(1==e.nodeType||8==e.nodeType)return new D.v.sa(e);throw Error("Unknown template type: "+e)},D.P.prototype.renderTemplate=function(e,t,n,a){return e=this.makeTemplateSource(e,a),this.renderTemplateSource(e,t,n,a)},D.P.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},D.P.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},D.b("templateEngine",D.P),D.Ib=function(){function e(e,t,n,a){e=D.h.Ab(e);for(var i=D.h.va,r=0;r]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return D.Ib.jd(e,t)},n)},jd:function(a,i){return a.replace(t,function(t,n,a,r,s){return e(s,n,a,i)}).replace(n,function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",i)})},Jc:function(e,t){return D.N.yb(function(n,a){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&D.La(i,e,a)})}}}(),D.b("__tr_ambtns",D.Ib.Jc),function(){D.v={},D.v.n=function(e){if(this.n=e){var t=D.a.A(e);this.eb="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},D.v.n.prototype.text=function(){var e=1===this.eb?"text":2===this.eb?"value":"innerHTML";if(0==arguments.length)return this.n[e];var t=arguments[0];"innerHTML"===e?D.a.Eb(this.n,t):this.n[e]=t};var t=D.a.e.J()+"_";D.v.n.prototype.data=function(e){if(1===arguments.length)return D.a.e.get(this.n,t+e);D.a.e.set(this.n,t+e,arguments[1])};var n=D.a.e.J();D.v.n.prototype.nodes=function(){var t=this.n;if(0==arguments.length)return(D.a.e.get(t,n)||{}).mb||(3===this.eb?t.content:4===this.eb?t:e);D.a.e.set(t,n,{mb:arguments[0]})},D.v.sa=function(e){this.n=e},D.v.sa.prototype=new D.v.n,D.v.sa.prototype.text=function(){if(0==arguments.length){var t=D.a.e.get(this.n,n)||{};return t.Jb===e&&t.mb&&(t.Jb=t.mb.innerHTML),t.Jb}D.a.e.set(this.n,n,{Jb:arguments[0]})},D.b("templateSources",D.v),D.b("templateSources.domElement",D.v.n),D.b("templateSources.anonymousTemplate",D.v.sa)}(),function(){function t(e,t,n){var a;for(t=D.f.nextSibling(t);e&&(a=e)!==t;)n(a,e=D.f.nextSibling(a))}function n(e,n){if(e.length){var a=e[0],i=e[e.length-1],r=a.parentNode,s=D.S.instance,o=s.preprocessNode;if(o){if(t(a,i,function(e,t){var n=e.previousSibling,r=o.call(s,e);r&&(e===a&&(a=r[0]||t),e===i&&(i=r[r.length-1]||n))}),e.length=0,!a)return;a===i?e.push(a):(e.push(a,i),D.a.Ba(e,r))}t(a,i,function(e){1!==e.nodeType&&8!==e.nodeType||D.Ub(n,e)}),t(a,i,function(e){1!==e.nodeType&&8!==e.nodeType||D.N.Cc(e,[n])}),D.a.Ba(e,r)}}function a(e){return e.nodeType?e:0D.a.C||!e.nodes?null:e.nodes())?D.a.W(t.cloneNode(!0).childNodes):(e=e.text(),D.a.na(e,a))},D.X.vb=new D.X,D.Fb(D.X.vb),D.b("nativeTemplateEngine",D.X),function(){D.xb=function(){var e=this.ed=function(){if(!r||!r.tmpl)return 0;try{if(0<=r.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,i,s){if(s=s||a,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=r.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=r.extend({koBindingContext:n},i.templateOptions),(n=r.tmpl(o,t,n)).appendTo(s.createElement("div")),r.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){a.write("