UNPKG

survey-jquery

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