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