PageSourceSearch

https://connect.artba.org/client-apps/main/dist/js/scripts-fingerp…596ec0f51dfb1a7fd26f2c21f/knockout-3.5.3.js

js artba.org collected 2026-09-24 18:02:41 UTC 68,380 bytes, 7 lines download raw bytes

vendor: 15,500 bytes, lines 1-6
1/*!
2 * Knockout JavaScript library v3.5.3
3 * (c) The Knockout.js team - http://knockoutjs.com/
4 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5 */
6!function(e){var t=this||(0,eval)("this"),n=t.document,a=t.navigator,r=t.jQuery,i=t.JSON;r||"undefined"==typeof jQuery||(r=jQuery),function(e){"function"==typeof define&&define.amd?define(["exports","require"],e):"object"==typeof exports&&"object"==typeof module?e(module.exports||exports):e(t.ko={})}((function(o,u){function c(e,t){return(null===e||typeof e in C)&&e===t}function s(t,n){var a;return function(){a||(a=x.a.setTimeout((function(){a=e,t()}),n))}}function l(e,t){var n;return function(){clearTimeout(n),n=x.a.setTimeout(e,t)}}function f(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.ib(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function p(e,t){var n=this.qd,a=n[S];a.ta||(this.Rb&&this.ob[t]?(n.uc(t,e,this.ob[t]),this.ob[t]=null,--this.Rb):a.I[t]||n.uc(t,e,a.K?{da:e}:n.$c(e)),e.La&&e.gd())}var h,b,v,g,m,y,w,x=void 0!==o?o:{};if(x.b=function(e,t){for(var n=e.split("."),a=x,r=0;r<n.length-1;r++)a=a[n[r]];a[n[n.length-1]]=t},x.L=function(e,t,n){e[t]=n},x.version="3.5.3",x.b("version",x.version),x.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},"undefined"!=typeof trustedTypes)try{h=trustedTypes.createPolicy("knockout",{createHTML:function(e){return e},createScript:function(e){return e}})}catch(e){}x.a=function(){function o(e,t){for(var n in e)l.call(e,n)&&t(n,e[n])}function u(e,t){if(t)for(var n in t)l.call(t,n)&&(e[n]=t[n]);return e}function c(e,t){return e.__proto__=t,e}function s(e,t,n,a){var r=e[t].match(y)||[];x.a.D(n.match(y),(function(e){x.a.Pa(r,e,a)})),e[t]=r.join(" ")}var l=Object.prototype.hasOwnProperty,f={__proto__:[]}instanceof Array,d="function"==typeof Symbol,p={},b={};p[a&&/Firefox\/2/i.test(a.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],p.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),o(p,(function(e,t){if(t.length)for(var n=0,a=t.length;n<a;n++)b[t[n]]=e}));var v,g={propertychange:!0};h||(v=n&&function(){for(var t=3,a=n.createElement("div"),r=a.getElementsByTagName("i");a.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",r[0];);return 4<t?t:e}());var m,y=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var a=0,r=e.length;a<r;a++)t.call(n,e[a],a,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},Mb:function(t,n,a){for(var r=0,i=t.length;r<i;r++)if(n.call(a,t[r],r,t))return t[r];return e},Ra:function(e,t){var n=x.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&x.a.D(e,(function(e){0>x.a.A(t,e)&&t.push(e)})),t},Nb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)a.push(t.call(n,e[r],r));return a},lb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r)&&a.push(e[r]);return a},Ob:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,a=t.length;n<a;n++)e.push(t[n]);return e},Pa:function(e,t,n){var a=x.a.A(x.a.bc(e),t);0>a?n&&e.push(t):n||e.splice(a,1)},Ca:f,extend:u,setPrototypeOf:c,Bb:f?c:u,P:o,Ia:function(e,t,n){if(!e)return e;var a,r={};for(a in e)l.call(e,a)&&(r[a]=t.call(n,e[a],a,e));return r},Ub:function(e){for(;e.firstChild;)x.removeNode(e.firstChild)},Zb:function(e){for(var t=((e=x.a.la(e))[0]&&e[0].ownerDocument||n).createElement("div"),a=0,r=e.length;a<r;a++)t.appendChild(x.pa(e[a]));return t},Da:function(e,t){for(var n=0,a=e.length,r=[];n<a;n++){var i=e[n].cloneNode(!0);r.push(t?x.pa(i):i)}return r},xa:function(e,t){if(x.a.Ub(e),t)for(var n=0,a=t.length;n<a;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var a=n[0],r=a.parentNode,i=0,o=t.length;i<o;i++)r.insertBefore(t[i],a);for(i=0,o=n.length;i<o;i++)x.removeNode(n[i])}},Wa:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],a=e[e.length-1];for(e.length=0;n!==a;)e.push(n),n=n.nextSibling;e.push(a)}}return e},Zc:function(e,t){7>v?e.setAttribute("selected",t):e.selected=t},Eb:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Tb:function(e){return x.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!x.a.Mb(e,x.a.Tb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return x.onError?function(){try{return e.apply(this,arguments)}catch(e){throw x.onError&&x.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(x.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw x.onError&&x.onError(e),e}),0)},B:function(e,t,n){var a=x.a.Ac(n);if(n=g[t],x.options.useOnlyNativeEvents||n||!r)if(n||"function"!=typeof e.addEventListener){if(void 0!==e.attachEvent){var i=function(t){a.call(e,t)},o="on"+t;e.attachEvent(o,i),x.a.J.oa(e,(function(){e.detachEvent(o,i)}))}}else e.addEventListener(t,a,!1),x.a.J.oa(e,(function(){e.removeEventListener(t,a)}));else m||(m="function"==typeof r(e).on?"on":"bind"),r(e)[m](t,a)},Gb:function(e,a){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if(i=!("input"!==x.a.R(e)||!e.type||"click"!=a.toLowerCase())&&("checkbox"==(i=e.type)||"radio"==i),x.options.useOnlyNativeEvents||!r||i)if("function"==typeof n.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(i=n.createEvent(b[a]||"HTMLEvents")).initEvent(a,!0,!0,t,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"+a)}else r(e).trigger(a)},f:function(e){return x.O(e)?e():e},bc:function(e){return x.O(e)?e.v():e},Fb:function(e,t,n){var a;t&&("object"==typeof e.classList?(a=e.classList[n?"add":"remove"],x.a.D(t.match(y),(function(t){a.call(e.classList,t)}))):"string"==typeof e.className.baseVal?s(e.className,"baseVal",t,n):s(e,"className",t,n))},Cb:function(t,n){var a=x.a.f(n);null!==a&&a!==e||(a="");var r=x.h.firstChild(t);!r||3!=r.nodeType||x.h.nextSibling(r)?x.h.xa(t,[t.ownerDocument.createTextNode(a)]):r.data=a,x.a.Ad(t)},Yc:function(e,t){if(e.name=t,7>=v)try{var a=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(n.createElement("<input name='"+a+"'/>"),!1)}catch(e){}},Ad:function(e){9<=v&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(v){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=x.a.f(e),t=x.a.f(t);for(var n=[],a=e;a<=t;a++)n.push(a);return n},la:function(e){for(var t=[],n=0,a=e.length;n<a;n++)t.push(e[n]);return t},Ea:function(e){return d?Symbol(e):e},Zd:6===v,$d:7===v,W:v,Lc:function(e,t){for(var n=x.a.la(e.getElementsByTagName("input")).concat(x.a.la(e.getElementsByTagName("textarea"))),a="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},r=[],i=n.length-1;0<=i;i--)a(n[i])&&r.push(n[i]);return r},Nd:function(e){return"string"==typeof e&&(e=x.a.Eb(e))?i&&i.parse?i.parse(e):new Function("return "+e)():null},hc:function(e,t,n){if(!i||!i.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 i.stringify(x.a.f(e),t,n)},Od:function(e,t,a){var r=(a=a||{}).params||{},i=a.includeFields||this.Jc,u=e;if("object"==typeof e&&"form"===x.a.R(e)){u=e.action;for(var c=i.length-1;0<=c;c--)for(var s=x.a.Lc(e,i[c]),l=s.length-1;0<=l;l--)r[s[l].name]=s[l].value}t=x.a.f(t);var f=n.createElement("form");for(var d in f.style.display="none",f.action=u,f.method="post",t)(e=n.createElement("input")).type="hidden",e.name=d,e.value=x.a.hc(x.a.f(t[d])),f.appendChild(e);o(r,(function(e,t){var a=n.createElement("input");a.type="hidden",a.name=e,a.value=t,f.appendChild(a)})),n.body.appendChild(f),a.submitter?a.submitter(f):f.submit(),setTimeout((function(){f.parentNode.removeChild(f)}),0)}}}(),x.b("utils",x.a),x.b("utils.arrayForEach",x.a.D),x.b("utils.arrayFirst",x.a.Mb),x.b("utils.arrayFilter",x.a.lb),x.b("utils.arrayGetDistinctValues",x.a.wc),x.b("utils.arrayIndexOf",x.a.A),x.b("utils.arrayMap",x.a.Nb),x.b("utils.arrayPushAll",x.a.Ob),x.b("utils.arrayRemoveItem",x.a.Ra),x.b("utils.cloneNodes",x.a.Da),x.b("utils.createSymbolOrString",x.a.Ea),x.b("utils.extend",x.a.extend),x.b("utils.fieldsIncludedWithJsonPost",x.a.Jc),x.b("utils.getFormFields",x.a.Lc),x.b("utils.objectMap",x.a.Ia),x.b("utils.peekObservable",x.a.bc),x.b("utils.postJson",x.a.Od),x.b("utils.parseJson",x.a.Nd),x.b("utils.registerEventHandler",x.a.B),x.b("utils.stringifyJson",x.a.hc),x.b("utils.range",x.a.Pd),x.b("utils.toggleDomNodeCssClass",x.a.Fb),x.b("utils.triggerEvent",x.a.Gb),x.b("utils.unwrapObservable",x.a.f),x.b("utils.objectForEach",x.a.P),x.b("utils.addOrRemoveItem",x.a.Pa),x.b("utils.setTextContent",x.a.Cb),x.b("unwrap",x.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var a=n.slice(0);return a.push.apply(a,arguments),t.apply(e,a)}}),x.a.g=new function(){var t,n,a=0,r="__ko__"+(new Date).getTime(),i={};return x.a.W?(t=function(t,n){var o=t[r];if(!o||"null"===o||!i[o]){if(!n)return e;o=t[r]="ko"+a++,i[o]={}}return i[o]},n=function(e){var t=e[r];return!!t&&(delete i[t],e[r]=null,!0)}):(t=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},n=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(e,n){var a=t(e,!1);return a&&a[n]},set:function(n,a,r){(n=t(n,r!==e))&&(n[a]=r)},Vb:function(e,n,a){return(e=t(e,!0))[n]||(e[n]=a)},clear:n,Z:function(){return a+++r}}},x.b("utils.domData",x.a.g),x.b("utils.domData.clear",x.a.g.clear),x.a.J=new function(){function t(t,n){var a=x.a.g.get(t,i);return a===e&&n&&(a=[],x.a.g.set(t,i,a)),a}function n(e){if(n=t(e,!1))for(var n=n.slice(0),r=0;r<n.length;r++)n[r](e);x.a.g.clear(e),x.a.J.cleanExternalData(e),u[e.nodeType]&&a(e.childNodes,!0)}function a(e,t){for(var a,r=[],i=0;i<e.length;i++)if((!t||8===e[i].nodeType)&&(n(r[r.length]=a=e[i]),e[i]!==a))for(;i--&&-1==x.a.A(r,e[i]););}var i=x.a.g.Z(),o={1:!0,8:!0,9:!0},u={1:!0,9:!0};return{oa:function(e,n){if("function"!=typeof n)throw Error("Callback must be a function");t(e,!0).push(n)},zb:function(n,a){var r=t(n,!1);r&&(x.a.Ra(r,a),0==r.length&&x.a.g.set(n,i,e))},pa:function(e){return x.u.G((function(){o[e.nodeType]&&(n(e),u[e.nodeType]&&a(e.getElementsByTagName("*")))})),e},removeNode:function(e){x.pa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){r&&"function"==typeof r.cleanData&&r.cleanData([e])}}},x.pa=x.a.J.pa,x.removeNode=x.a.J.removeNode,x.b("cleanNode",x.pa),x.b("removeNode",x.removeNode),x.b("utils.domNodeDisposal",x.a.J),x.b("utils.domNodeDisposal.addDisposeCallback",x.a.J.oa),x.b("utils.domNodeDisposal.removeDisposeCallback",x.a.J.zb),b=[0,"",""],y={thead:v=[1,"<table>","</table>"],tbody:v,tfoot:v,tr:[2,"<table><tbody>","</tbody></table>"],td:g=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:g,option:m=[1,"<select multiple='multiple'>","</select>"],optgroup:m},w=8>=x.a.W,x.a.wa=function(e,a){var i;if(r){if(r.parseHTML)i=r.parseHTML(e,a)||[];else if((i=r.clean([e],a))&&i[0]){for(var o=i[0];o.parentNode&&11!==o.parentNode.nodeType;)o=o.parentNode;o.parentNode&&o.parentNode.removeChild(o)}}else{(i=a)||(i=n),o=i.parentWindow||i.defaultView||t;var u,c=x.a.Eb(e).toLowerCase(),s=i.createElement("div");for(u=(c=c.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&y[c[1]]||b,c=u[0],u="ignored<div>"+u[1]+e+u[2]+"</div>","function"==typeof o.innerShiv?s.appendChild(o.innerShiv(u)):(w&&i.body.appendChild(s),s.innerHTML=h?h.createHTML(u):u,w&&s.parentNode.removeChild(s));c--;)s=s.lastChild;i=x.a.la(s.lastChild.childNodes)}return i},x.a.Md=function(e,t){var n=x.a.wa(e,t);return n.length&&n[0].parentElement||x.a.Zb(n)},x.a.fc=function(t,n){if(x.a.Ub(t),null!==(n=x.a.f(n))&&n!==e){if("string"!=typeof n){if("undefined"!=typeof trustedTypes&&trustedTypes.isHTML(n))return void(t.innerHTML=n);n=n.toString()}if(r)r(t).html(n);else for(var a=x.a.wa(n,t.ownerDocument),i=0;i<a.length;i++)t.appendChild(a[i])}},x.b("utils.parseHtmlFragment",x.a.wa),x.b("utils.setHtml",x.a.fc),x.aa=function(){function t(e,n){if(e)if(8==e.nodeType)null!=(a=x.aa.Uc(e.nodeValue))&&n.push({ud:e,Kd:a});else if(1==e.nodeType)for(var a=0,r=e.childNodes,i=r.length;a<i;a++)t(r[a],n)}var n={};return{Yb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return n[t]=e,"\x3c!--[ko_memo:"+t+"]--\x3e"},bd:function(t,a){var r=n[t];if(r===e)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return r.apply(null,a||[]),!0}finally{delete n[t]}},cd:function(e,n){var a=[];t(e,a);for(var r=0,i=a.length;r<i;r++){var o=a[r].ud,u=[o];n&&x.a.Ob(u,n),x.aa.bd(a[r].Kd,u),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),x.b("memoization",x.aa),x.b("memoization.memoize",x.aa.Yb),x.b("memoization.unmemoize",x.aa.bd),x.b("memoization.parseMemoText",x.aa.Uc),x.b("memoization.unmemoizeDomNodeAndDescendants",x.aa.cd),x.na=function(){function e(){if(o)for(var e,t=o,n=0;c<o;)if(e=i[c++]){if(c>t){if(5e3<=++n){c=o,x.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=o}try{e()}catch(e){x.a.Gc(e)}}}function a(){e(),c=o=i.length=0}var r,i=[],o=0,u=1,c=0;return r=t.MutationObserver?function(e){var t=n.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(a):n&&"onreadystatechange"in n.createElement("script")?function(e){var t=n.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,n.documentElement.removeChild(t),t=null,e()},n.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:r,Ab:function(e){return o||x.na.scheduler(a),i[o++]=e,u++},cancel:function(e){(e-=u-o)>=c&&e<o&&(i[e]=null)},resetForTesting:function(){var e=o-c;return c=o=i.length=0,e},Sd:e}}(),x.b("tasks",x.na),x.b("tasks.schedule",x.na.Ab),x.b("tasks.runEarly",x.na.Sd),x.Va={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return x.$({read:e,write:function(a){clearTimeout(n),n=x.a.setTimeout((function(){e(a)}),t)}})},rateLimit:function(e,t){var n,a,r;"number"==typeof t?n=t:(n=t.timeout,a=t.method),e.Ib=!1,r="function"==typeof a?a:"notifyWhenChangesStop"==a?l:s,e.ub((function(e){return r(e,n,t)}))},deferred:function(t,n){if(!0!==n)throw Error("The 'deferred' extender only accepts the value 'true', be
6cause it is not supported to turn deferral off once enabled.");t.Ib||(t.Ib=!0,t.ub((function(n){var a,r=!1;return function(){if(!r){x.na.cancel(a),a=x.na.Ab(n);try{r=!0,t.notifySubscribers(e,"dirty")}finally{r=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:c}};var C={undefined:1,boolean:1,number:1,string:1};x.b("extenders",x.Va),x.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Jb=!1,this.hb=this.Kb=null,x.L(this,"dispose",this.s),x.L(this,"disposeWhenNodeIsRemoved",this.l)},x.ic.prototype.s=function(){this.Jb||(this.hb&&x.a.J.zb(this.Kb,this.hb),this.Jb=!0,this.mc(),this.da=this.lc=this.mc=this.Kb=this.hb=null)},x.ic.prototype.l=function(e){this.Kb=e,x.a.J.oa(e,this.hb=this.s.bind(this))},x.T=function(){x.a.Bb(this,E),E.rb(this)};var E={rb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var a=this;n=n||"change";var r=new x.ic(a,t?e.bind(t):e,(function(){x.a.Ra(a.U[n],r),a.jb&&a.jb(n)}));return a.Sa&&a.Sa(n),a.U[n]||(a.U[n]=[]),a.U[n].push(r),r},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Hb(),this.Ya(t)){var n="change"===t&&this.ed||this.U[t].slice(0);try{x.u.xc();for(var a,r=0;a=n[r];++r)a.Jb||a.lc(e)}finally{x.u.end()}}},qb:function(){return this.sc},Dd:function(e){return this.qb()!==e},Hb:function(){++this.sc},ub:function(e){var t,n,a,r,i,o=this,u=x.O(o);o.ib||(o.ib=o.notifySubscribers,o.notifySubscribers=f);var c=e((function(){o.La=!1,u&&r===o&&(r=o.nc?o.nc():o());var e=n||i&&o.sb(a,r);i=n=t=!1,e&&o.ib(a=r)}));
vendor: 51,376 bytes, lines 6-7
6o.qc=function(e,n){n&&o.La||(i=!n),o.ed=o.U.change.slice(0),o.La=t=!0,r=e,c()},o.pc=function(e){t||(a=e,o.ib(e,"beforeChange"))},o.rc=function(){i=!0},o.gd=function(){o.sb(a,o.v(!0))&&(n=!0)}},Ya:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return x.a.P(this.U,(function(e,n){"dirty"!==e&&(t+=n.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&x.a.P(e,(function(e,n){var a=x.Va[e];"function"==typeof a&&(t=a(t,n)||t)})),t}};x.L(E,"init",E.rb),x.L(E,"subscribe",E.subscribe),x.L(E,"extend",E.extend),x.L(E,"getSubscriptionsCount",E.Bd),x.a.Ca&&x.a.setPrototypeOf(E,Function.prototype),x.T.fn=E,x.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},x.b("subscribable",x.T),x.b("isSubscribable",x.Qc),x.S=x.u=function(){function e(e){a.push(n),n=e}function t(){n=a.pop()}var n,a=[],r=0;return{xc:e,end:t,cc:function(e){if(n){if(!x.Qc(e))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,e,e.fd||(e.fd=++r))}},G:function(n,a,r){try{return e(),n.apply(a,r||[])}finally{t()}},ra:function(){if(n)return n.o.ra()},Xa:function(){if(n)return n.o.Xa()},$a:function(){if(n)return n.$a},o:function(){if(n)return n.o}}}(),x.b("computedContext",x.S),x.b("computedContext.getDependenciesCount",x.S.ra),x.b("computedContext.getDependencies",x.S.Xa),x.b("computedContext.isInitial",x.S.$a),x.b("computedContext.registerDependency",x.S.cc),x.b("ignoreDependencies",x.Yd=x.u.G);var T=x.a.Ea("_latestValue");x.va=function(e){function t(){return 0<arguments.length?(t.sb(t[T],arguments[0])&&(t.Aa(),t[T]=arguments[0],t.za()),this):(x.u.cc(t),t[T])}return t[T]=e,x.a.Ca||x.a.extend(t,x.T.fn),x.T.fn.rb(t),x.a.Bb(t,k),x.options.deferUpdates&&x.Va.deferred(t,!0),t};var k={equalityComparer:c,v:function(){return this[T]},za:function(){this.notifySubscribers(this[T],"spectate"),this.notifySubscribers(this[T])},Aa:function(){this.notifySubscribers(this[T],"beforeChange")}};x.a.Ca&&x.a.setPrototypeOf(k,x.T.fn);var N=x.va.Oa="__ko_proto__";k[N]=x.va,x.O=function(e){if((e="function"==typeof e&&e[N])&&e!==k[N]&&e!==x.o.fn[N])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},x.ab=function(e){return"function"==typeof e&&(e[N]===k[N]||e[N]===x.o.fn[N]&&e.Nc)},x.b("observable",x.va),x.b("isObservable",x.O),x.b("isWriteableObservable",x.ab),x.b("isWritableObservable",x.ab),x.b("observable.fn",k),x.L(k,"peek",k.v),x.L(k,"valueHasMutated",k.za),x.L(k,"valueWillMutate",k.Aa),x.Ja=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=x.va(e),x.a.Bb(e,x.Ja.fn),e.extend({trackArrayChanges:!0})},x.Ja.fn={remove:function(e){for(var t=this.v(),n=[],a="function"!=typeof e||x.O(e)?function(t){return t===e}:e,r=0;r<t.length;r++){var i=t[r];if(a(i)){if(0===n.length&&this.Aa(),t[r]!==i)throw Error("Array modified during remove; cannot remove item");n.push(i),t.splice(r,1),r--}}return n.length&&this.za(),n},removeAll:function(t){if(t===e){var n=this.v(),a=n.slice(0);return this.Aa(),n.splice(0,n.length),this.za(),a}return t?this.remove((function(e){return 0<=x.a.A(t,e)})):[]},destroy:function(e){var t=this.v(),n="function"!=typeof e||x.O(e)?function(t){return t===e}:e;this.Aa();for(var a=t.length-1;0<=a;a--){var r=t[a];n(r)&&(r._destroy=!0)}this.za()},destroyAll:function(t){return t===e?this.destroy((function(){return!0})):t?this.destroy((function(e){return 0<=x.a.A(t,e)})):[]},indexOf:function(e){var t=this();return x.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.Aa(),this.v()[n]=t,this.za())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},x.a.Ca&&x.a.setPrototypeOf(x.Ja.fn,x.va.fn),x.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){x.Ja.fn[e]=function(){var t=this.v();this.Aa(),this.zc(t,e,arguments);var n=t[e].apply(t,arguments);return this.za(),n===t?this:n}})),x.a.D(["slice"],(function(e){x.Ja.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),x.Pc=function(e){return x.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},x.b("observableArray",x.Ja),x.b("isObservableArray",x.Pc),x.Va.trackArrayChanges=function(t,n){function a(){function e(){if(s){var e,n=[].concat(t.v()||[]);t.Ya("arrayChange")&&((!c||1<s)&&(c=x.a.Qb(o,n,t.Pb)),e=c),o=n,c=null,s=0,e&&e.length&&t.notifySubscribers(e,"arrayChange")}}u?e():(u=!0,i=t.subscribe((function(){++s}),null,"spectate"),o=[].concat(t.v()||[]),c=null,r=t.subscribe(e))}if(t.Pb={},n&&"object"==typeof n&&x.a.extend(t.Pb,n),t.Pb.sparse=!0,!t.zc){var r,i,o,u=!1,c=null,s=0,l=t.Sa,f=t.jb;t.Sa=function(e){l&&l.call(t,e),"arrayChange"===e&&a()},t.jb=function(n){f&&f.call(t,n),"arrayChange"!==n||t.Ya("arrayChange")||(r&&r.s(),i&&i.s(),i=r=null,u=!1,o=e)},t.zc=function(e,t,n){function a(e,t,n){return r[r.length]={status:e,value:t,index:n}}if(u&&!s){var r=[],i=e.length,o=n.length,l=0;switch(t){case"push":l=i;case"unshift":for(t=0;t<o;t++)a("added",n[t],l+t);break;case"pop":l=i-1;case"shift":i&&a("deleted",e[l],l);break;case"splice":t=Math.min(Math.max(0,0>n[0]?i+n[0]:n[0]),i),i=1===o?i:Math.min(t+(n[1]||0),i),o=t+o-2,l=Math.max(i,o);for(var f=[],d=[],p=2;t<l;++t,++p)t<i&&d.push(a("deleted",e[t],t)),t<o&&f.push(a("added",n[p],t));x.a.Kc(d,f);break;default:return}c=r}}}};var S=x.a.Ea("_state");x.o=x.$=function(t,n,a){function r(){if(0<arguments.length){if("function"!=typeof i)throw Error("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.");return i.apply(o.pb,arguments),this}return o.ta||x.u.cc(r),(o.ka||o.K&&r.Za())&&r.ha(),o.X}if("object"==typeof t?a=t:(a=a||{},t&&(a.read=t)),"function"!=typeof a.read)throw Error("Pass a function that returns the value of the ko.computed");var i=a.write,o={X:e,ua:!0,ka:!0,sa:!1,jc:!1,ta:!1,xb:!1,K:!1,Wc:a.read,pb:n||a.owner,l:a.disposeWhenNodeIsRemoved||a.l||null,Ua:a.disposeWhen||a.Ua,Sb:null,I:{},V:0,Ic:null};return r[S]=o,r.Nc="function"==typeof i,x.a.Ca||x.a.extend(r,x.T.fn),x.T.fn.rb(r),x.a.Bb(r,D),a.pure?(o.xb=!0,o.K=!0,x.a.extend(r,_)):a.deferEvaluation&&x.a.extend(r,j),x.options.deferUpdates&&x.Va.deferred(r,!0),o.l&&(o.jc=!0,o.l.nodeType||(o.l=null)),o.K||a.deferEvaluation||r.ha(),o.l&&r.ja()&&x.a.J.oa(o.l,o.Sb=function(){r.s()}),r};var D={equalityComparer:c,ra:function(){return this[S].V},Xa:function(){var e=[];return x.a.P(this[S].I,(function(t,n){e[n.Ma]=n.da})),e},Wb:function(e){if(!this[S].V)return!1;var t=this.Xa();return-1!==x.a.A(t,e)||!!x.a.Mb(t,(function(t){return t.Wb&&t.Wb(e)}))},uc:function(e,t,n){if(this[S].xb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[S].I[e]=n,n.Ma=this[S].V++,n.Na=t.qb()},Za:function(){var e=this[S];if(e.sa)return!1;e.sa=!0;try{var t,n,a=e.I;for(t in a)if(Object.prototype.hasOwnProperty.call(a,t)&&(n=a[t],this.Ka&&n.da.La||n.da.Dd(n.Na)))return!0}finally{e.sa=!1}},Jd:function(){this.Ka&&!this[S].sa&&this.Ka(!1)},ja:function(){var e=this[S];return e.ka||0<e.V},Rd:function(){this.La?this[S].ka&&(this[S].ua=!0):this.Hc()},$c:function(e){if(e.Ib){var t=e.subscribe(this.Jd,this,"dirty"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[S].Ic),this[S].Ic=x.a.setTimeout((function(){e.ha(!0)}),t)):e.Ka?e.Ka(!0):e.ha(!0)},ha:function(e){var t=this[S],n=t.Ua,a=!1;if(!t.sa&&!t.ta){if(t.l&&!x.a.Tb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.sa=!0;try{a=this.zd(e)}finally{t.sa=!1}return a}},zd:function(t){var n=this[S],a=!1,r=n.xb?e:!n.V;a={qd:this,ob:n.I,Rb:n.V},x.u.xc({pd:a,od:p,o:this,$a:r}),n.I={},n.V=0;var i=this.yd(n,a);return n.V?a=this.sb(n.X,i):(this.s(),a=!0),a&&(n.K?this.Hb():this.notifySubscribers(n.X,"beforeChange"),n.X=i,this.notifySubscribers(n.X,"spectate"),!n.K&&t&&this.notifySubscribers(n.X),this.rc&&this.rc()),r&&this.notifySubscribers(n.X,"awake"),a},yd:function(e,t){try{var n=e.Wc;return e.pb?n.call(e.pb):n()}finally{x.u.end(),t.Rb&&!e.K&&x.a.P(t.ob,d),e.ua=e.ka=!1}},v:function(e){var t=this[S];return(t.ka&&(e||!t.V)||t.K&&this.Za())&&this.ha(),t.X},ub:function(e){x.T.fn.ub.call(this,e),this.nc=function(){return this[S].K||(this[S].ua?this.ha():this[S].ka=!1),this[S].X},this.Ka=function(e){this.pc(this[S].X),this[S].ka=!0,e&&(this[S].ua=!0),this.qc(this,!e)}},s:function(){var t=this[S];!t.K&&t.I&&x.a.P(t.I,(function(e,t){t.s&&t.s()})),t.l&&t.Sb&&x.a.J.zb(t.l,t.Sb),t.I=e,t.V=0,t.ta=!0,t.ua=!1,t.ka=!1,t.K=!1,t.l=e,t.Ua=e,t.Wc=e,this.Nc||(t.pb=e)}},_={Sa:function(e){var t=this,n=t[S];if(!n.ta&&n.K&&"change"==e){if(n.K=!1,n.ua||t.Za())n.I=null,n.V=0,t.ha()&&t.Hb();else{var a=[];x.a.P(n.I,(function(e,t){a[t.Ma]=e})),x.a.D(a,(function(e,a){var r=n.I[e],i=t.$c(r.da);i.Ma=a,i.Na=r.Na,n.I[e]=i})),t.Za()&&t.ha()&&t.Hb()}n.ta||t.notifySubscribers(n.X,"awake")}},jb:function(t){var n=this[S];n.ta||"change"!=t||this.Ya("change")||(x.a.P(n.I,(function(e,t){t.s&&(n.I[e]={da:t.da,Ma:t.Ma,Na:t.Na},t.s())})),n.K=!0,this.notifySubscribers(e,"asleep"))},qb:function(){var e=this[S];return e.K&&(e.ua||this.Za())&&this.ha(),x.T.fn.qb.call(this)}},j={Sa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};x.a.Ca&&x.a.setPrototypeOf(D,x.T.fn);var A=x.va.Oa;D[A]=x.o,x.Oc=function(e){return"function"==typeof e&&e[A]===D[A]},x.Fd=function(e){return x.Oc(e)&&e[S]&&e[S].xb},x.b("computed",x.o),x.b("dependentObservable",x.o),x.b("isComputed",x.Oc),x.b("isPureComputed",x.Fd),x.b("computed.fn",D),x.L(D,"peek",D.v),x.L(D,"dispose",D.s),x.L(D,"isActive",D.ja),x.L(D,"getDependenciesCount",D.ra),x.L(D,"getDependencies",D.Xa),x.yb=function(e,t){return"function"==typeof e?x.o(e,t,{pure:!0}):((e=x.a.extend({},e)).pure=!0,x.o(e,t))},x.b("pureComputed",x.yb),function(){function t(a,r,i){if(i=i||new n,"object"!=typeof(a=r(a))||null===a||a===e||a instanceof RegExp||a instanceof Date||a instanceof String||a instanceof Number||a instanceof Boolean)return a;var o=a instanceof Array?[]:{};return i.save(a,o),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(a,(function(n){var u=r(a[n]);switch(typeof u){case"boolean":case"number":case"string":case"bigint":case"symbol":case"function":o[n]=u;break;case"object":case"undefined":var c=i.get(u);o[n]=c!==e?c:t(u,r,i)}})),o}function n(){this.keys=[],this.values=[]}x.ad=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(e,(function(e){for(var t=0;x.O(e)&&10>t;t++)e=e();return e}))},x.toJSON=function(e,t,n){return e=x.ad(e),x.a.hc(e,t,n)},n.prototype={constructor:n,save:function(e,t){var n=x.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(t){return 0<=(t=x.a.A(this.keys,t))?this.values[t]:e}}}(),x.b("toJS",x.ad),x.b("toJSON",x.toJSON),x.Wd=function(e,t,n){function a(t){var a=x.yb(e,n).extend({ma:"always"}),r=a.subscribe((function(e){e&&(r.s(),t(e))}));return a.notifySubscribers(a.v()),r}return"function"!=typeof Promise||t?a(t.bind(n)):new Promise(a)},x.b("when",x.Wd),x.w={M:function(t){switch(x.a.R(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?x.a.g.get(t,x.c.options.$b):7>=x.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?x.w.M(t.options[t.selectedIndex]):e;default:return t.value}},fb:function(t,n,a){switch(x.a.R(t)){case"option":"string"==typeof n?(x.a.g.set(t,x.c.options.$b,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n):(x.a.g.set(t,x.c.options.$b,n),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=e);for(var r,i=-1,o=0,u=t.options.length;o<u;++o)if((r=x.w.M(t.options[o]))==n||""===r&&n===e){i=o;break}(a||0<=i||n===e&&1<t.size)&&(t.selectedIndex=i,6===x.a.W&&x.a.setTimeout((function(){t.selectedIndex=i}),0));break;default:null!==n&&n!==e||(n=""),t.value=n}}},x.b("selectExtensions",x.w),x.b("selectExtensions.readValue",x.w.M),x.b("selectExtensions.writeValue",x.w.fb),x.m=function(){function e(e){123===(e=x.a.Eb(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],o=(e+="\n,").match(a),u=[],c=0;if(1<o.length){for(var s,l=0;s=o[l];++l){var f=s.charCodeAt(0);if(44===f){if(0>=c){n.push(t&&u.length?{key:t,value:u.join("")}:{unknown:t||u.join("")}),t=c=0,u=[];continue}}else if(58===f){if(!c&&!t&&1===u.length){t=u.pop();continue}}else{if(47===f&&1<s.length&&(47===s.charCodeAt(1)||42===s.charCodeAt(1)))continue;47===f&&l&&1<s.length?(f=o[l-1].match(r))&&!i[f[0]]&&(o=(e=e.substr(e.indexOf(s)+1)).match(a),l=-1,s="/"):40===f||123===f||91===f?++c:41===f||125===f||93===f?--c:t||u.length||34!==f&&39!==f||(s=s.slice(1,-1))}u.push(s)}if(0<c)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,a=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),r=/[\])"'A-Za-z0-9_$]+$/,i={in:1,return:1,typeof:1},o={};return{Ta:[],ya:o,ac:e,wb:function(a,r){function i(e,a){var r;if(!l){var f=x.getBindingHandler(e);if(f&&f.preprocess&&!(a=f.preprocess(a,e,i)))return;(f=o[e])&&(r=a,0<=x.a.A(t,r)?r=!1:(f=r.match(n),r=null!==f&&(f[1]?"Object("+f[1]+")"+f[2]:r)),f=r),f&&c.push("'"+("string"==typeof o[e]?o[e]:e)+"':function(_z){"+r+"=_z}")}s&&(a="function(){return "+a+" }"),u.push("'"+e+"':"+a)}var u=[],c=[],s=(r=r||{}).valueAccessors,l=r.bindingParams,f="string"==typeof a?e(a):a;return x.a.D(f,(function(e){i(e.key||e.unknown,e.value)})),c.length&&i("_ko_property_writers","{"+c.join(",")+" }"),u.join(",")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},gb:function(e,t,n,a,r){e&&x.O(e)?!x.ab(e)||r&&e.v()===a||e(a):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](a)}}}(),x.b("expressionRewriting",x.m),x.b("expressionRewriting.bindingRewriteValidators",x.m.Ta),x.b("expressionRewriting.parseObjectLiteral",x.m.ac),x.b("expressionRewriting.preProcessBindings",x.m.wb),x.b("expressionRewriting._twoWayBindings",x.m.ya),x.b("jsonExpressionRewriting",x.m),x.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",x.m.wb),function(){function e(e){return 8==e.nodeType&&o.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&u.test(i?e.text:e.nodeValue)}function a(n,a){for(var r=n,i=1,o=[];r=r.nextSibling;){if(t(r)&&(x.a.g.set(r,s,!0),0==--i))return o;o.push(r),e(r)&&i++}if(!a)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var n=a(e,t);return n?0<n.length?n[n.length-1].nextSibling:e.nextSibling:null}var i=n&&"\x3c!--test--\x3e"===n.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,u=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,c={ul:!0,ol:!0},s="__ko_matchedEndComment__";x.h={ea:{},childNodes:function(t){return e(t)?a(t):t.childNodes},Fa:function(t){if(e(t))for(var n=0,a=(t=x.h.childNodes(t)).length;n<a;n++)x.removeNode(t[n]);else x.a.Ub(t)},xa:function(t,n){if(e(t)){x.h.Fa(t);for(var a=t.nextSibling,r=0,i=n.length;r<i;r++)a.parentNode.insertBefore(n[r],a)}else x.a.xa(t,n)},Vc:function(t,n){var a;e(t)?(a=t.nextSibling,t=t.parentNode):a=t.firstChild,a?n!==a&&t.insertBefore(n,a):t.appendChild(n)},Xb:function(t,n,a){a?(a=a.nextSibling,e(t)&&(t=t.parentNode),a?n!==a&&t.insertBefore(n,a):t.appendChild(n)):x.h.Vc(t,n)},firstChild:function(n){return e(n)?!n.nextSibling||t(n.nextSibling)?null:n.nextSibling:n.firstChild&&t(n.firstChild)?n.firstChild.nextSibling:n.firstChild},nextSibling:function(n){return e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)?(t(n=n.nextSibling)&&x.a.g.get(n,s),null):n.nextSibling},Cd:e,Vd:function(e){return(e=(i?e.text:e.nodeValue).match(o))?e[1]:null},Sc:function(n){if(c[x.a.R(n)]){var a=n.firstChild;if(a)do{if(1===a.nodeType){var i,o=null;if(i=a.firstChild)do{if(o)o.push(i);else if(e(i)){var u=r(i,!0);u?i=u:o=[i]}else t(i)&&(o=[i])}while(i=i.nextSibling);if(i=o)for(o=a.nextSibling,u=0;u<i.length;u++)o?n.insertBefore(i[u],o):n.appendChild(i[u])}}while(a=a.nextSibling)}}}}(),x.b("virtualElements",x.h),x.b("virtualElements.allowedBindings",x.h.ea),x.b("virtualElements.emptyNode",x.h.Fa),x.b("virtualElements.insertAfter",x.h.Xb),x.b("virtualElements.prepend",x.h.Vc),x.b("virtualElements.setDomNodeChildren",x.h.xa),function(){function e(e,t){var n="with($context){with($data||{}){return{"+x.m.wb(e,t)+"}}}";return h?(0,eval)(h.createScript("(function($context,$element){"+n+"})")):new Function("$context","$element",n)}x.ga=function(){this.nd={}},x.a.extend(x.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||x.j.getComponentNameForNode(e);case 8:return x.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return x.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return x.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return x.h.Vd(e);default:return null}},parseBindingsString:function(t,n,a,r){try{var i=this.nd,o=t+(r&&r.valueAccessors||"");return(i[o]||(i[o]=e(t,r)))(n,a)}catch(e){throw e.message="Unable to parse bindings.\nBindings value: "+t+"\nMessage: "+e.message,e}}}),x.ga.instance=new x.ga}(),x.b("bindingProvider",x.ga),function(){function a(e){var t=(e=x.a.g.get(e,w))&&e.N;t&&(e.N=null,t.Tc())}function i(e,t,n){this.node=e,this.yc=t,this.mb=[],this.H=!1,t.N||x.a.J.oa(e,a),n&&n.N&&(n.N.mb.push(e),this.Lb=n)}function o(e){return function(){return e}}function u(e){return e()}function c(e){return x.a.Ia(x.u.G(e),(function(t,n){return function(){return e()[n]}}))}function s(e,t,n){return"function"==typeof e?c(e.bind(null,t,n)):x.a.Ia(e,o)}function l(e,t){return c(this.getBindings.bind(this,e,t))}function f(e,t){var n=x.h.firstChild(t);if(n){var a,r=x.ga.instance,i=r.preprocessNode;if(i){for(;a=n;)n=x.h.nextSibling(a),i.call(r,a);n=x.h.firstChild(t)}for(;a=n;)n=x.h.nextSibling(a),d(e,a)}x.i.ma(t,x.i.H)}function d(e,t){var n=e,a=1===t.nodeType;a&&x.h.Sc(t),(a||x.ga.instance.nodeHasBindings(t))&&(n=p(t,null,e).bindingContextForDescendants),n&&!m[x.a.R(t)]&&f(n,t)}function p(t,n,a){var r,i=x.a.g.Vb(t,w,{}),o=i.hd;if(!n){if(o)throw Error("You cannot apply bindings multiple times to the same element.");i.hd=!0}if(o||(i.context=a),i.vb||(i.vb={}),n&&"function"!=typeof n)r=n;else{var c=x.ga.instance,s=c.getBindingAccessors||l,f=x.$((function(){return(r=n?n(a,t):s.call(c,t,a))&&(a[b]&&a[b](),a[g]&&a[g]()),r}),null,{l:t});r&&f.ja()||(f=null)}var d,p=a;if(r){var h=f?function(e){return function(){return u(f()[e])}}:function(e){return r[e]},v=function(){return x.a.Ia(f?f():r,u)};v.get=function(e){return r[e]&&u(h(e))},v.has=function(e){return e in r},x.i.H in r&&x.i.subscribe(t,x.i.H,(function(){var e=(0,r[x.i.H])();if(e){var n=x.h.childNodes(t);n.length&&e(n,x.Ec(n[0]))}})),x.i.qa in r&&(p=x.i.Db(t,a),x.i.subscribe(t,x.i.qa,(function(){var e=(0,r[x.i.qa])();e&&x.h.firstChild(t)&&e(t)}))),i=function(e){var t=[],n={},a=[];return x.a.P(e,(function r(i){if(!n[i]){var o=x.getBindingHandler(i);o&&(o.after&&(a.push(i),x.a.D(o.after,(function(t){if(e[t]){if(-1!==x.a.A(a,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+a.join(", "));r(t)}})),a.length--),t.push({key:i,Mc:o})),n[i]=!0}})),t}(r),x.a.D(i,(function(n){var a=n.Mc.init,i=n.Mc.update,o=n.key;if(8===t.nodeType&&!x.h.ea[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof a&&x.u.G((function(){var n=a(t,h(o),v,p.$data,p);if(n&&n.controlsDescendantBindings){if(d!==e)throw Error("Multiple bindings ("+d+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=o}})),"function"==typeof i&&x.$((function(){i(t,h(o),v,p.$data,p)}),null,{l:t})}catch(e){throw e.message='Unable to process binding "'+o+": "+r[o]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:i=d===e,bindingContextForDescendants:i&&p}}function h(t,n){return t&&t instanceof x.fa?t:new x.fa(t,e,e,n)}var b=x.a.Ea("_subscribable"),v=x.a.Ea("_ancestorBindingInfo"),g=x.a.Ea("_dataDependency");x.c={};var m={script:!0,textarea:!0,template:!0};x.getBindingHandler=function(e){return x.c[e]};var y={};x.fa=function(t,n,a,r,i){function o(){var e=f?l():l,t=x.a.f(e);return n?(x.a.extend(c,n),v in n&&(c[v]=n[v])):(c.$parents=[],c.$root=t,c.ko=x),c[b]=u,s?t=c.$data:(c.$rawData=e,c.$data=t),a&&(c[a]=t),r&&r(c,n,t),n&&n[b]&&!x.S.o().Wb(n[b])&&n[b](),d&&(c[g]=d),c.$data}var u,c=this,s=t===y,l=s?e:t,f="function"==typeof l&&!x.O(l),d=i&&i.dataDependency;i&&i.exportDependencies?o():((u=x.yb(o)).v(),u.ja()?u.equalityComparer=null:c[b]=e)},x.fa.prototype.createChildContext=function(e,t,n,a){if(!a&&t&&"object"==typeof t&&(t=(a=t).as,n=a.extend),t&&a&&a.noChildContext){var r="function"==typeof e&&!x.O(e);return new x.fa(y,this,null,(function(a){n&&n(a),a[t]=r?e():e}),a)}return new x.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)}),a)},x.fa.prototype.extend=function(e,t){return new x.fa(y,this,null,(function(t){x.a.extend(t,"function"==typeof e?e(t):e)}),t)};var w=x.a.g.Z();i.prototype.Tc=function(){this.Lb&&this.Lb.N&&this.Lb.N.sd(this.node)},i.prototype.sd=function(e){x.a.Ra(this.mb,e),!this.mb.length&&this.H&&this.Cc()},i.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.mb.length&&(this.yc.N=null,x.a.J.zb(this.node,a),x.i.ma(this.node,x.i.qa),this.Tc())},x.i={H:"childrenComplete",qa:"descendantsComplete",subscribe:function(e,t,n,a,r){var i=x.a.g.Vb(e,w,{});return i.Ga||(i.Ga=new x.T),r&&r.notifyImmediately&&i.vb&&i.vb[t]&&x.u.G(n,a,[e]),i.Ga.subscribe(n,a,t)},ma:function(t,n){var a=x.a.g.get(t,w);if(a&&(a.vb[n]=!0,a.Ga&&a.Ga.notifySubscribers(t,n),n==x.i.H))if(a.N)a.N.Cc();else if(a.N===e&&a.Ga&&a.Ga.Ya(x.i.qa))throw Error("descendantsComplete event not supported for bindings on this node")},Db:function(e,t){var n=x.a.g.Vb(e,w,{});return n.N||(n.N=new i(e,n,t[v])),t[v]==n?t:t.extend((function(e){e[v]=n}))}},x.Td=function(e){return(e=x.a.g.get(e,w))&&e.context},x.kb=function(e,t,n){return 1===e.nodeType&&x.h.Sc(e),p(e,t,h(n))},x.ld=function(e,t,n){return n=h(n),x.kb(e,s(t,n,e),n)},x.Qa=function(e,t){1!==t.nodeType&&8!==t.nodeType||f(h(e),t)},x.vc=function(e,a,i){if(!r&&t.jQuery&&(r=t.jQuery),2>arguments.length){if(!(a=n.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!a||1!==a.nodeType&&8!==a.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(h(e,i),a)},x.Dc=function(t){return!t||1!==t.nodeType&&8!==t.nodeType?e:x.Td(t)},x.Ec=function(t){return(t=x.Dc(t))?t.$data:e},x.b("bindingHandlers",x.c),x.b("bindingEvent",x.i),x.b("bindingEvent.subscribe",x.i.subscribe),x.b("bindingEvent.startPossiblyAsyncContentBinding",x.i.Db),x.b("applyBindings",x.vc),x.b("applyBindingsToDescendants",x.Qa),x.b("applyBindingAccessorsToNode",x.kb),x.b("applyBindingsToNode",x.ld),x.b("contextFor",x.Dc),x.b("dataFor",x.Ec)}(),function(e){function t(t,a){var o,u=Object.prototype.hasOwnProperty.call(r,t)?r[t]:e;u?u.subscribe(a):((u=r[t]=new x.T).subscribe(a),n(t,(function(e,n){var a=!(!n||!n.synchronous);i[t]={definition:e,Gd:a},delete r[t],o||a?u.notifySubscribers(e):x.na.Ab((function(){u.notifySubscribers(e)}))})),o=!0)}function n(e,t){a("getConfig",[e],(function(n){n?a("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function a(t,n,r,i){i||(i=x.j.loaders.slice(0));var o=i.shift();if(o){var u=o[t];if(u){var c=!1;if(u.apply(o,n.concat((function(e){c?r(null):null!==e?r(e):a(t,n,r,i)})))!==e&&(c=!0,!o.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else a(t,n,r,i)}else r(null)}var r={},i={};x.j={get:function(n,a){var r=Object.prototype.hasOwnProperty.call(i,n)?i[n]:e;r?r.Gd?x.u.G((function(){a(r.definition)})):x.na.Ab((function(){a(r.definition)})):t(n,a)},Bc:function(e){delete i[e]},oc:a},x.j.loaders=[],x.b("components",x.j),x.b("components.get",x.j.get),x.b("components.clearCachedDefinition",x.j.Bc)}(),function(){function e(e,t,n,a){function r(){0==--u&&a(i)}var i={},u=2,c=n.template;n=n.viewModel,c?o(t,c,(function(t){x.j.oc("loadTemplate",[e,t],(function(e){i.template=e,r()}))})):r(),n?o(t,n,(function(t){x.j.oc("loadViewModel",[e,t],(function(e){i[l]=e,r()}))})):r()}function a(e,t,n){if("function"==typeof t)n((function(e){return new t(e)}));else if("function"==typeof t[l])n(t[l]);else if("instance"in t){var r=t.instance;n((function(){return r}))}else"viewModel"in t?a(e,t.viewModel,n):e("Unknown viewModel value: "+t)}function r(e){switch(x.a.R(e)){case"script":return x.a.wa(e.text);case"textarea":return x.a.wa(e.value);case"template":if(i(e.content))return x.a.Da(e.content.childNodes)}return x.a.Da(e.childNodes)}function i(e){return t.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,n,a){"string"==typeof n.require?u||t.require?(u||t.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),a(e)})):e("Uses require, but no AMD loader is present"):a(n)}function c(e){return function(t){throw Error("Component '"+e+"': "+t)}}var s={};x.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(x.j.tb(e))throw Error("Component "+e+" is already registered");s[e]=t},x.j.tb=function(e){return Object.prototype.hasOwnProperty.call(s,e)},x.j.unregister=function(e){delete s[e],x.j.Bc(e)},x.j.Fc={getConfig:function(e,t){t(x.j.tb(e)?s[e]:null)},loadComponent:function(t,n,a){var r=c(t);o(r,n,(function(n){e(t,r,n,a)}))},loadTemplate:function(e,a,o){if(e=c(e),"string"==typeof a)o(x.a.wa(a));else if(a instanceof Array)o(a);else if(i(a))o(x.a.la(a.childNodes));else if(a.element)if(a=a.element,t.HTMLElement?a instanceof HTMLElement:a&&a.tagName&&1===a.nodeType)o(r(a));else if("string"==typeof a){var u=n.getElementById(a);u?o(r(u)):e("Cannot find element with ID "+a)}else e("Unknown element type: "+a);else e("Unknown template value: "+a)},loadViewModel:function(e,t,n){a(c(e),t,n)}};var l="createViewModel";x.b("components.register",x.j.register),x.b("components.isRegistered",x.j.tb),x.b("components.unregister",x.j.unregister),x.b("components.defaultLoader",x.j.Fc),x.j.loaders.push(x.j.Fc),x.j.dd=s}(),function(){function e(e,n){if(a=e.getAttribute("params")){var a=t.parseBindingsString(a,n,e,{valueAccessors:!0,bindingParams:!0}),r=(a=x.a.Ia(a,(function(t){return x.o(t,null,{l:e})})),x.a.Ia(a,(function(t){var n=t.v();return t.ja()?x.o({read:function(){return x.a.f(t())},write:x.ab(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=a),r}return{$raw:{}}}x.j.getComponentNameForNode=function(e){var t=x.a.R(e);if(x.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=x.a.W&&e.tagName===t))return t},x.j.tc=function(t,n,a,r){if(1===n.nodeType){var i=x.j.getComponentNameForNode(n);if(i){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var o={name:i,params:e(n,a)};t.component=r?function(){return o}:o}}return t};var t=new x.ga;9>x.a.W&&(x.j.register=function(e){return function(t){return e.apply(this,arguments)}}(x.j.register),n.createDocumentFragment=function(e){return function(){var t,n=e(),a=x.j.dd;for(t in a);return n}}(n.createDocumentFragment))}(),function(){var e=0;x.c.component={init:function(t,n,a,r,i){function o(){var e=u&&u.dispose;"function"==typeof e&&e.call(u),s&&s.s(),c=u=s=null}var u,c,s,l=x.a.la(x.h.childNodes(t));return x.h.Fa(t),x.a.J.oa(t,o),x.o((function(){var a,r,f=x.a.f(n());if("string"==typeof f?a=f:(a=x.a.f(f.name),r=x.a.f(f.params)),!a)throw Error("No component name specified");var d=x.i.Db(t,i),p=c=++e;x.j.get(a,(function(e){if(c===p){if(o(),!e)throw Error("Unknown component '"+a+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=x.a.Da(t),x.h.xa(n,e)}(a,e,t);var n=function(e,t,n){var a=e.createViewModel;return a?a.call(e,t,n):t}(e,r,{element:t,templateNodes:l});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=l}}),n&&n.koDescendantsComplete&&(s=x.i.subscribe(t,x.i.qa,n.koDescendantsComplete,n)),u=n,x.Qa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},x.h.ea.component=!0}();var O={class:"className",for:"htmlFor"};x.c.attr={update:function(t,n){var a=x.a.f(n())||{};x.a.P(a,(function(n,a){a=x.a.f(a);var r=n.indexOf(":"),i=(r="lookupNamespaceURI"in t&&0<r&&t.lookupNamespaceURI(n.substr(0,r)),!1===a||null===a||a===e);i?r?t.removeAttributeNS(r,n):t.removeAttribute(n):a=a.toString(),8>=x.a.W&&n in O?(n=O[n],i?t.removeAttribute(n):t[n]=a):i||(r?t.setAttributeNS(r,n,a):t.setAttribute(n,a)),"name"===n&&x.a.Yc(t,i?"":a)}))}},x.c.checked={after:["value","attr"],init:function(t,n,a){function r(){var r=t.checked,c=i();if(!x.S.$a()&&(r||!u&&!x.S.ra())){var f=x.u.G(n);if(s){var p=l?f.v():f,h=d;d=c,h!==c?r&&(x.a.Pa(p,c,!0),x.a.Pa(p,h,!1)):x.a.Pa(p,c,r),l&&x.ab(f)&&f(p)}else o&&(c===e?c=r:r||(c=e)),x.m.gb(f,a,"checked",c,!0)}}var i=x.yb((function(){return a.has("checkedValue")?x.a.f(a.get("checkedValue")):f?a.has("value")?x.a.f(a.get("value")):t.value:void 0})),o="checkbox"==t.type,u="radio"==t.type;if(o||u){var c=n(),s=o&&x.a.f(c)instanceof Array,l=!(s&&c.push&&c.splice),f=u||s,d=s?i():e;u&&!t.name&&x.c.uniqueName.init(t,(function(){return!0})),x.o(r,null,{l:t}),x.a.B(t,"click",r),x.o((function(){var a=x.a.f(n()),r=i();s?(t.checked=null!=a&&0<=x.a.A(a,r),d=r):t.checked=o&&r===e?!!a:i()===a}),null,{l:t}),c=e}}},x.m.ya.checked=!0,x.c.checkedValue={update:function(e,t){e.value=x.a.f(t())}},x.c.class={update:function(e,t){var n=x.a.Eb(x.a.f(t()));x.a.Fb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,x.a.Fb(e,n,!0)}},x.c.css={update:function(e,t){var n=x.a.f(t());null!==n&&"object"==typeof n?x.a.P(n,(function(t,n){n=x.a.f(n),x.a.Fb(e,t,n)})):x.c.class.update(e,t)}},x.c.enable={update:function(e,t){var n=x.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},x.c.disable={update:function(e,t){x.c.enable.update(e,(function(){return!x.a.f(t())}))}},x.c.event={init:function(e,t,n,a,r){var i=t()||{};x.a.P(i,(function(i){"string"==typeof i&&x.a.B(e,i,(function(e){var o,u=t()[i];if(u){try{var c=x.a.la(arguments);a=r.$data,c.unshift(a),o=u.apply(a,c)}finally{!0!==o&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},x.c.foreach={Rc:function(e){return function(){var t=e(),n=x.a.bc(t);return n&&"number"!=typeof n.length?(x.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:x.ba.Oa}):{foreach:t,templateEngine:x.ba.Oa}}},init:function(e,t){return x.c.template.init(e,x.c.foreach.Rc(t))},update:function(e,t,n,a,r){return x.c.template.update(e,x.c.foreach.Rc(t),n,a,r)}},x.m.Ta.foreach=!1,x.h.ea.foreach=!0,x.c.hasfocus={init:function(e,t,n){function a(a){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var i;try{i=r.activeElement}catch(e){i=r.body}a=i===e}r=t(),x.m.gb(r,n,"hasfocus",a,!0),e.__ko_hasfocusLastValue=a,e.__ko_hasfocusUpdating=!1}var r=a.bind(null,!0),i=a.bind(null,!1);x.a.B(e,"focus",r),x.a.B(e,"focusin",r),x.a.B(e,"blur",i),x.a.B(e,"focusout",i),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!x.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),x.u.G(x.a.Gb,null,[e,n?"focusin":"focusout"]))}},x.m.ya.hasfocus=!0,x.c.hasFocus=x.c.hasfocus,x.m.ya.hasFocus="hasfocus",x.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){x.a.fc(e,t())}},function(){function e(e,t,n){x.c[e]={init:function(e,a,r,i,o){var u,c,s,l,f,d={};if(t){i=r.get("as");var p=r.get("noChildContext");d={as:i,noChildContext:p,exportDependencies:f=!(i&&p)}}return l=(s="render"==r.get("completeOn"))||r.has(x.i.qa),x.o((function(){var r,i=x.a.f(a()),p=!n!=!i,h=!c;(f||p!==u)&&(l&&(o=x.i.Db(e,o)),p&&(t&&!f||(d.dataDependency=x.S.o()),r=t?o.createChildContext("function"==typeof i?i:a,d):x.S.ra()?o.extend(null,d):o),h&&x.S.ra()&&(c=x.a.Da(x.h.childNodes(e),!0)),p?(h||x.h.xa(e,x.a.Da(c)),x.Qa(r,e)):(x.h.Fa(e),s||x.i.ma(e,x.i.H)),u=p)}),null,{l:e}),{controlsDescendantBindings:!0}}},x.m.Ta[e]=!1,x.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),x.c.let={init:function(e,t,n,a,r){return t=r.extend(t),x.Qa(t,e),{controlsDescendantBindings:!0}}},x.h.ea.let=!0;var B={};x.c.options={init:function(e){if("select"!==x.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(t,n,a){function r(){return x.a.lb(t.options,(function(e){return e.selected}))}function i(e,t,n){var a=typeof t;return"function"==a?t(e):"string"==a?e[t]:n}function o(e,n){if(h&&l)x.i.ma(t,x.i.H);else if(p.length){var a=0<=x.a.A(p,x.w.M(n[0]));x.a.Zc(n[0],a),h&&!a&&x.u.G(x.a.Gb,null,[t,"change"])}}var u=t.multiple,c=0!=t.length&&u?t.scrollTop:null,s=x.a.f(n()),l=a.get("valueAllowUnset")&&a.has("value"),f=a.get("optionsIncludeDestroyed");n={};var d,p=[];l||(u?p=x.a.Nb(r(),x.w.M):0<=t.selectedIndex&&p.push(x.w.M(t.options[t.selectedIndex]))),s&&(void 0===s.length&&(s=[s]),d=x.a.lb(s,(function(t){return f||t===e||null===t||!x.a.f(t._destroy)})),a.has("optionsCaption")&&null!==(s=x.a.f(a.get("optionsCaption")))&&s!==e&&d.unshift(B));var h=!1;n.beforeRemove=function(e){t.removeChild(e)},s=o,a.has("optionsAfterRender")&&"function"==typeof a.get("optionsAfterRender")&&(s=function(t,n){o(0,n),x.u.G(a.get("optionsAfterRender"),null,[n[0],t!==B?t:e])}),x.a.ec(t,d,(function(n,r,o){return o.length&&(p=!l&&o[0].selected?[x.w.M(o[0])]:[],h=!0),r=t.ownerDocument.createElement("option"),n===B?(x.a.Cb(r,a.get("optionsCaption")),x.w.fb(r,e)):(o=i(n,a.get("optionsValue"),n),x.w.fb(r,x.a.f(o)),n=i(n,a.get("optionsText"),o),x.a.Cb(r,n)),[r]}),n,s),l||(u?p.length&&r().length<p.length:p.length&&0<=t.selectedIndex?x.w.M(t.options[t.selectedIndex])!==p[0]:p.length||0<=t.selectedIndex)&&x.u.G(x.a.Gb,null,[t,"change"]),(l||x.S.$a())&&x.i.ma(t,x.i.H),x.a.wd(t),c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}},x.c.options.$b=x.a.g.Z(),x.c.selectedOptions={init:function(e,t,n){function a(){var a=t(),r=[];x.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&r.push(x.w.M(e))})),x.m.gb(a,n,"selectedOptions",r)}function r(){var n=x.a.f(t()),a=e.scrollTop;n&&"number"==typeof n.length&&x.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=x.a.A(n,x.w.M(e));e.selected!=t&&x.a.Zc(e,t)})),e.scrollTop=a}if("select"!=x.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var i;x.i.subscribe(e,x.i.H,(function(){i?a():(x.a.B(e,"change",a),i=x.o(r,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},x.m.ya.selectedOptions=!0,x.c.style={update:function(t,n){var a=x.a.f(n()||{});x.a.P(a,(function(n,a){if(null!==(a=x.a.f(a))&&a!==e&&!1!==a||(a=""),r)r(t).css(n,a);else if(/^--/.test(n))t.style.setProperty(n,a);else{n=n.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var i=t.style[n];t.style[n]=a,a===i||t.style[n]!=i||isNaN(a)||(t.style[n]=a+"px")}}))}},x.c.submit={init:function(e,t,n,a,r){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");x.a.B(e,"submit",(function(n){var a,i=t();try{a=i.call(r.$data,e)}finally{!0!==a&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}}))}},x.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){x.a.Cb(e,t())}},x.h.ea.text=!0,function(){if(t&&t.navigator){var n,a,r,i,o,u=function(e){if(e)return parseFloat(e[1])},c=t.navigator.userAgent;(n=t.opera&&t.opera.version&&parseInt(t.opera.version()))||(o=u(c.match(/Edge\/([^ ]+)$/)))||u(c.match(/Chrome\/([^ ]+)/))||(a=u(c.match(/Version\/([^ ]+) Safari/)))||(r=u(c.match(/Firefox\/([^ ]+)/)))||(i=x.a.W||u(c.match(/MSIE ([^ ]+)/)))||(i=u(c.match(/rv:([^ )]+)/)))}if(8<=i&&10>i)var s=x.a.g.Z(),l=x.a.g.Z(),f=function(e){var t=this.activeElement;(t=t&&x.a.g.get(t,l))&&t(e)},d=function(e,t){var n=e.ownerDocument;x.a.g.get(n,s)||(x.a.g.set(n,s,!0),x.a.B(n,"selectionchange",f)),x.a.g.set(e,l,t)};x.c.textInput={init:function(t,u,c){function s(e,n){x.a.B(t,e,n)}function l(){p||(h=t.value,p=x.a.setTimeout(f,4))}function f(){clearTimeout(p),h=p=e;var n=t.value;b!==n&&(b=n,x.m.gb(u(),c,"textInput",n))}var p,h,b=t.value,v=9==x.a.W?l:f,g=!1;i&&s("keypress",f),11>i&&s("propertychange",(function(e){g||"value"!==e.propertyName||v(e)})),8==i&&(s("keyup",f),s("keydown",f)),d&&(d(t,v),s("dragend",l)),(!i||9<=i)&&s("input",v),5>a&&"textarea"===x.a.R(t)?(s("keydown",l),s("paste",l),s("cut",l)):11>n?s("keydown",l):4>r?(s("DOMAutoComplete",f),s("dragdrop",f),s("drop",f)):o&&"number"===t.type&&s("keydown",l),s("change",f),s("blur",f),x.o((function n(){var a=x.a.f(u());null!==a&&a!==e||(a=""),h!==e&&a===h?x.a.setTimeout(n,4):t.value!==a&&(g=!0,t.value=a,g=!1,b=t.value)}),null,{l:t})}},x.m.ya.textInput=!0,x.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),x.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++x.c.uniqueName.rd;x.a.Yc(e,n)}}},x.c.uniqueName.rd=0,x.c.using={init:function(e,t,n,a,r){var i;return n.has("as")&&(i={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=r.createChildContext(t,i),x.Qa(t,e),{controlsDescendantBindings:!0}}},x.h.ea.using=!0,x.c.value={init:function(t,n,a){var r=x.a.R(t),i="input"==r;if(!i||"checkbox"!=t.type&&"radio"!=t.type){var o=[],u=a.get("valueUpdate"),c=!1,s=null;u&&(o="string"==typeof u?[u]:x.a.wc(u),x.a.Ra(o,"change"));var l,f,d=function(){s=null,c=!1;var e=n(),r=x.w.M(t);x.m.gb(e,a,"value",r)};!x.a.W||!i||"text"!=t.type||"off"==t.autocomplete||t.form&&"off"==t.form.autocomplete||-1!=x.a.A(o,"propertychange")||(x.a.B(t,"propertychange",(function(){c=!0})),x.a.B(t,"focus",(function(){c=!1})),x.a.B(t,"blur",(function(){c&&d()}))),x.a.D(o,(function(e){var n=d;x.a.Ud(e,"after")&&(n=function(){s=x.w.M(t),x.a.setTimeout(d,0)},e=e.substring(5)),x.a.B(t,e,n)})),l=i&&"file"==t.type?function(){var a=x.a.f(n());null===a||a===e||""===a?t.value="":x.u.G(d)}:function(){var i=x.a.f(n()),o=x.w.M(t);null!==s&&i===s?x.a.setTimeout(l,0):i===o&&o!==e||("select"===r?(o=a.get("valueAllowUnset"),x.w.fb(t,i,o),o||i===x.w.M(t)||x.u.G(d)):x.w.fb(t,i))},"select"===r?(x.a.B(t,"change",(function(){f&&d()})),x.i.subscribe(t,x.i.H,(function(){f?a.get("valueAllowUnset")?l():d():f=x.o(l,null,{l:t})}),null,{notifyImmediately:!0})):(x.a.B(t,"change",d),x.o(l,null,{l:t}))}else x.kb(t,{checkedValue:n})},update:function(){}},x.m.ya.value=!0,x.c.visible={update:function(e,t){var n=x.a.f(t()),a="none"!=e.style.display;n&&!a?e.style.display="":!n&&a&&(e.style.display="none")}},x.c.hidden={update:function(e,t){x.c.visible.update(e,(function(){return!x.a.f(t())}))}},function(e){x.c[e]={init:function(t,n,a,r,i){return x.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),a,r,i)}}}("click"),x.ca=function(){},x.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},x.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},x.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var a=(t=t||n).getElementById(e);if(!a)throw Error("Cannot find template with ID "+e);return new x.C.F(a)}if(1==e.nodeType||8==e.nodeType)return new x.C.ia(e);throw Error("Unknown template type: "+e)},x.ca.prototype.renderTemplate=function(e,t,n,a){return e=this.makeTemplateSource(e,a),this.renderTemplateSource(e,t,n,a)},x.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},x.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},x.b("templateEngine",x.ca),x.kc=function(){function e(e,t,n,a){e=x.m.ac(e);for(var r=x.m.Ta,i=0;i<e.length;i++){var o=e[i].key;if(Object.prototype.hasOwnProperty.call(r,o)){var u=r[o];if("function"==typeof u){if(o=u(e[i].value))throw Error(o)}else if(!u)throw Error("This template engine does not support the '"+o+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+x.m.wb(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",a.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return x.kc.Ld(e,t)}),n)},Ld:function(a,r){return a.replace(t,(function(t,n,a,i,o){return e(o,n,a,r)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",r)}))},md:function(e,t){return x.aa.Yb((function(n,a){var r=n.nextSibling;r&&r.nodeName.toLowerCase()===t&&x.kb(r,e,a)}))}}}(),x.b("__tr_ambtns",x.kc.md),function(){x.C={},x.C.F=function(e){if(this.F=e){var t=x.a.R(e);this.cb="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},x.C.F.prototype.text=function(){var e=1===this.cb?"text":2===this.cb?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?x.a.fc(this.F,t):this.F[e]=t};var t=x.a.g.Z()+"_";x.C.F.prototype.data=function(e){if(1===arguments.length)return x.a.g.get(this.F,t+e);x.a.g.set(this.F,t+e,arguments[1])};var n=x.a.g.Z();x.C.F.prototype.nodes=function(){var t=this.F;if(0==arguments.length){var a=x.a.g.get(t,n)||{},r=a.nb||(3===this.cb?t.content:4===this.cb?t:e);if(!r||a.jd){var i=this.text();i&&i!==a.eb&&(r=x.a.Md(i,t.ownerDocument),x.a.g.set(t,n,{nb:r,eb:i,jd:!0}))}return r}a=arguments[0],this.cb!==e&&this.text(""),x.a.g.set(t,n,{nb:a})},x.C.ia=function(e){this.F=e},x.C.ia.prototype=new x.C.F,x.C.ia.prototype.constructor=x.C.ia,x.C.ia.prototype.text=function(){if(0==arguments.length){var t=x.a.g.get(this.F,n)||{};return t.eb===e&&t.nb&&(t.eb=t.nb.innerHTML),t.eb}x.a.g.set(this.F,n,{eb:arguments[0]})},x.b("templateSources",x.C),x.b("templateSources.domElement",x.C.F),x.b("templateSources.anonymousTemplate",x.C.ia)}(),function(){function t(e,t,n){var a;for(t=x.h.nextSibling(t);e&&(a=e)!==t;)n(a,e=x.h.nextSibling(a))}function n(e,n){if(e.length){var a=e[0],r=e[e.length-1],i=a.parentNode,o=x.ga.instance,u=o.preprocessNode;if(u){if(t(a,r,(function(e,t){var n=e.previousSibling,i=u.call(o,e);i&&(e===a&&(a=i[0]||t),e===r&&(r=i[i.length-1]||n))})),e.length=0,!a)return;a===r?e.push(a):(e.push(a,r),x.a.Wa(e,i))}t(a,r,(function(e){1!==e.nodeType&&8!==e.nodeType||x.vc(n,e)})),t(a,r,(function(e){1!==e.nodeType&&8!==e.nodeType||x.aa.cd(e,[n])})),x.a.Wa(e,i)}}function a(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,t,r,i,u){u=u||{};var c=(e&&a(e)||r||{}).ownerDocument,s=u.templateEngine||o;if(x.kc.xd(r,s,c),"number"!=typeof(r=s.renderTemplate(r,i,u,c)).length||0<r.length&&"number"!=typeof r[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,t){case"replaceChildren":x.h.xa(e,r),c=!0;break;case"replaceNode":x.a.Xc(e,r),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t)}return c&&(n(r,i),u.afterRender&&x.u.G(u.afterRender,null,[r,i[u.as||"$data"]]),"replaceChildren"==t&&x.i.ma(e,x.i.H)),r}function i(e,t,n){return x.O(e)?e():"function"==typeof e?e(t,n):e}var o;x.gc=function(t){if(t!=e&&!(t instanceof x.ca))throw Error("templateEngine must inherit from ko.templateEngine");o=t},x.dc=function(t,n,u,c,s){if(((u=u||{}).templateEngine||o)==e)throw Error("Set a template engine before calling renderTemplate");if(s=s||"replaceChildren",c){var l=a(c);return x.$((function(){var e=n&&n instanceof x.fa?n:new x.fa(n,null,null,null,{exportDependencies:!0}),o=i(t,e.$data,e);e=r(c,s,o,e,u),"replaceNode"==s&&(l=a(c=e))}),null,{Ua:function(){return!l||!x.a.Tb(l)},l:l&&"replaceNode"==s?l.parentNode:l})}return x.aa.Yb((function(e){x.dc(t,n,u,e,"replaceNode")}))},x.Qd=function(t,a,o,u,c){function s(e){if(v.push(e),!g){g=!0;try{for(;v.length;)try{l(a.v(),v[0])}finally{v.shift()}}finally{g=!1}}}function l(e,t){x.u.G(x.a.ec,null,[u,e,d,o,f,t]),x.i.ma(u,x.i.H)}function f(e,t){n(t,p),o.afterRender&&o.afterRender(t,e),p=null}function d(e,n){p=c.createChildContext(e,{as:h,noChildContext:o.noChildContext,extend:function(e){e.$index=n,h&&(e[h+"Index"]=n)}});var a=i(t,e,p);return r(u,"ignoreTargetNode",a,p,o)}var p,h=o.as,b=!1===o.includeDestroyed||x.options.foreachHidesDestroyed&&!o.includeDestroyed;if(b||o.beforeRemove||!x.Pc(a))return x.$((function(){var t=x.a.f(a)||[];void 0===t.length&&(t=[t]),b&&(t=x.a.lb(t,(function(t){return t===e||null===t||!x.a.f(t._destroy)}))),l(t)}),null,{l:u});var v=[],g=!1,m=a.subscribe(s,null,"arrayChange");return m.l(u),s(),m};var u=x.a.g.Z(),c=x.a.g.Z();x.c.template={init:function(e,t){var n=x.a.f(t());if("string"==typeof n||"name"in n)x.h.Fa(e);else if("nodes"in n){if(n=n.nodes||[],x.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var a=n[0]&&n[0].parentNode;a&&x.a.g.get(a,c)||(a=x.a.Zb(n),x.a.g.set(a,c,!0)),new x.C.ia(e).nodes(a)}else{if(!(0<(n=x.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");a=x.a.Zb(n),new x.C.ia(e).nodes(a)}return{controlsDescendantBindings:!0}},update:function(t,n,a,r,i){var o=n();a=!0,r=null,"string"==typeof(n=x.a.f(o))?n={}:(o="name"in n?n.name:t,"if"in n&&(a=x.a.f(n.if)),a&&"ifnot"in n&&(a=!x.a.f(n.ifnot))),a&&!o&&(a=!1);var c=x.a.g.get(t,u);c&&"function"==typeof c.s&&c.s(),"foreach"in n?r=x.Qd(o,a&&n.foreach||[],n,t,i):a?(a=i,"data"in n&&(a=i.createChildContext(n.data,{as:n.as,noChildContext:n.noChildContext,exportDependencies:!0})),r=x.dc(o,a,n,t)):x.h.Fa(t),x.a.g.set(t,u,!r||r.ja&&!r.ja()?e:r)}},x.m.Ta.template=function(e){return 1==(e=x.m.ac(e)).length&&e[0].unknown||x.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},x.h.ea.template=!0}(),x.b("setTemplateEngine",x.gc),x.b("renderTemplate",x.dc),x.a.Kc=function(e,t,n){var a,r,i,o,u;if(e.length&&t.length)for(a=r=0;(!n||a<n)&&(o=e[r]);++r){for(i=0;u=t[i];++i)if(o.value===u.value){o.moved=u.index,u.moved=o.index,t.splice(i,1),a=i=0;break}a+=i}},x.a.Qb=function(){function e(e,t,n,a,r){var i,o,u,c,s,l=Math.min,f=Math.max,d=[],p=e.length,h=t.length,b=h-p||1,v=p+h+1;for(i=0;i<=p;i++)for(c=u,d.push(u=[]),s=l(h,i+b),o=f(0,i-1);o<=s;o++)u[o]=o?i?e[i-1]===t[o-1]?c[o-1]:l(c[o]||v,u[o-1]||v)+1:o+1:i+1;for(l=[],f=[],b=[],i=p,o=h;i||o;)h=d[i][o]-1,o&&h===d[i][o-1]?f.push(l[l.length]={status:n,value:t[--o],index:o}):i&&h===d[i-1][o]?b.push(l[l.length]={status:a,value:e[--i],index:i}):(--o,--i,r.sparse||l.push({status:"retained",value:t[o]}));return x.a.Kc(b,f,!r.dontLimitMoves&&10*p),l.reverse()}return function(t,n,a){return a="boolean"==typeof a?{dontLimitMoves:a}:a||{},n=n||[],(t=t||[]).length<n.length?e(t,n,"added","deleted",a):e(n,t,"deleted","added",a)}}(),x.b("utils.compareArrays",x.a.Qb),function(){function t(t,n,a,r,i){var o=[],u=x.$((function(){var e=n(a,i,x.a.Wa(o,t))||[];0<o.length&&(x.a.Xc(o,e),r&&x.u.G(r,null,[a,e,i])),o.length=0,x.a.Ob(o,e)}),null,{l:t,Ua:function(){return!x.a.kd(o)}});return{Y:o,$:u.ja()?u:e}}var n=x.a.g.Z(),a=x.a.g.Z();x.a.ec=function(r,i,o,u,c,s){function l(e){p={Ba:e,Ha:x.va(C++)},y.push(p),m||(D[C-1]=p)}function f(e){p=g[e],C!==p.Ha.v()&&(N[p.Ha.v()]=p,S[C]=p),p.Ha(C++),x.a.Wa(p.Y,r),y.push(p)}function d(e,t){if(e)for(var n=0,a=t.length;n<a;n++)t[n]&&x.a.D(t[n].Y,(function(a){e(a,n,t[n].Ba)}))}void 0===(i=i||[]).length&&(i=[i]),u=u||{};var p,h,b,v,g=x.a.g.get(r,n),m=!g,y=[],w=0,C=0,E=[],T=[],k=[],N=[],S=[],D=[],_=0;if(m)x.a.D(i,l);else{if(!s||g&&g._countWaitingForRemove){var j=x.a.Nb(g,(function(e){return e.Ba}));s=x.a.Qb(j,i,{dontLimitMoves:u.dontLimitMoves,sparse:!0})}var A,O,B;for(j=0;A=s[j];j++)switch(O=A.moved,B=A.index,A.status){case"deleted":for(;w<B;)f(w++);O===e&&((p=g[w]).$&&(p.$.s(),p.$=e),x.a.Wa(p.Y,r).length&&(u.beforeRemove&&(y.push(p),_++,p.Ba===a?p=null:k[p.Ha.v()]=p),p&&E.push.apply(E,p.Y))),w++;break;case"added":for(;C<B;)f(w++);O!==e?(T.push(y.length),f(O)):l(A.value)}for(;C<i.length;)f(w++);y._countWaitingForRemove=_}x.a.g.set(r,n,y),d(u.beforeMove,N),x.a.D(E,u.beforeRemove?x.pa:x.removeNode);try{v=r.ownerDocument.activeElement}catch(e){}if(T.length)for(;(j=T.shift())!=e;){for(p=y[j],h=e;j;)if((b=y[--j].Y)&&b.length){h=b[b.length-1];break}for(i=0;w=p.Y[i];h=w,i++)x.h.Xb(r,w,h)}for(j=0;p=y[j];j++){for(p.Y||x.a.extend(p,t(r,o,p.Ba,c,p.Ha)),i=0;w=p.Y[i];h=w,i++)x.h.Xb(r,w,h);!p.Ed&&c&&(c(p.Ba,p.Y,p.Ha),p.Ed=!0,h=p.Y[p.Y.length-1])}for(v&&r.ownerDocument.activeElement!=v&&"function"==typeof v.focus&&v.focus(),d(u.beforeRemove,k),j=0;j<k.length;++j)k[j]&&(k[j].Ba=a);d(u.afterMove,S),d(u.afterAdd,D)}}(),x.b("utils.setDomNodeChildrenFromArrayMapping",x.a.ec),x.ba=function(){this.allowTemplateRewriting=!1},x.ba.prototype=new x.ca,x.ba.prototype.constructor=x.ba,x.ba.prototype.renderTemplateSource=function(e,t,n,a){return(t=9>x.a.W||!e.nodes?null:e.nodes())?x.a.la(t.cloneNode(!0).childNodes):(e=e.text(),x.a.wa(e,a))},x.ba.Oa=new x.ba,x.gc(x.ba.Oa),x.b("nativeTemplateEngine",x.ba),function(){x.bb=function(){var e=this.Hd=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,a,i,o){if(o=o||n,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 u=t.data("precompiled");return u||(u=t.text()||"",u=r.template(null,"{{ko_with $item.koBindingContext}}"+u+"{{/ko_with}}"),t.data("precompiled",u)),t=[a.$data],a=r.extend({koBindingContext:a},i.templateOptions),(a=r.tmpl(u,t,a)).appendTo(o.createElement("div")),r.fragments={},a},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){n.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(r.tmpl.tag.ko_code={open:"__.push($1 || '');"},r.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},x.bb.prototype=new x.ca,x.bb.prototype.constructor=x.bb;var e=new x.bb;0<e.Hd&&x.gc(e),x.b("jqueryTmplTemplateEngine",x.bb)}()}))}();
7//# sourceMappingURL=knockout-3.5.3.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.