diff --git a/vendors/knockout/build/output/knockout-latest.debug.js b/vendors/knockout/build/output/knockout-latest.debug.js index 8bca9cd8f..cadd0d605 100644 --- a/vendors/knockout/build/output/knockout-latest.debug.js +++ b/vendors/knockout/build/output/knockout-latest.debug.js @@ -2132,16 +2132,12 @@ ko.expressionRewriting = (() => { } function applyBindingsToDescendantsInternal(bindingContext, elementOrVirtualElement) { - var nextInQueue = ko.virtualElements.firstChild(elementOrVirtualElement); + var currentChild, nextInQueue = ko.virtualElements.firstChild(elementOrVirtualElement); - if (nextInQueue) { - var currentChild; - - while (currentChild = nextInQueue) { - // Keep a record of the next child *before* applying bindings, in case the binding removes the current child from its position - nextInQueue = ko.virtualElements.nextSibling(currentChild); - applyBindingsToNodeAndDescendantsInternal(bindingContext, currentChild); - } + while (currentChild = nextInQueue) { + // Keep a record of the next child *before* applying bindings, in case the binding removes the current child from its position + nextInQueue = ko.virtualElements.nextSibling(currentChild); + applyBindingsToNodeAndDescendantsInternal(bindingContext, currentChild); } ko.bindingEvent.notify(elementOrVirtualElement, ko.bindingEvent.childrenComplete); } @@ -2259,9 +2255,9 @@ ko.expressionRewriting = (() => { // Use of allBindings as a function is deprecated and removed // The following is the 3.x allBindings API var allBindings = { - 'get': key => bindings[key] && getValueAccessor(key)(), - 'has': key => key in bindings - }; + 'get': key => bindings[key] && getValueAccessor(key)(), + 'has': key => key in bindings + }; if (ko.bindingEvent.childrenComplete in bindings) { ko.bindingEvent.subscribe(node, ko.bindingEvent.childrenComplete, () => { @@ -2348,11 +2344,6 @@ ko.expressionRewriting = (() => { ko.applyBindingAccessorsToNode = (node, bindings, viewModelOrBindingContext) => applyBindingsToNodeInternal(node, bindings, getBindingContext(viewModelOrBindingContext)); - ko.applyBindingsToNode = (node, bindings, viewModelOrBindingContext) => { - var context = getBindingContext(viewModelOrBindingContext); - return ko.applyBindingAccessorsToNode(node, makeBindingAccessors(bindings, context, node), context); - }; - ko.applyBindingsToDescendants = (viewModelOrBindingContext, rootNode) => { if (rootNode.nodeType === 1 || rootNode.nodeType === 8) applyBindingsToDescendantsInternal(getBindingContext(viewModelOrBindingContext), rootNode); diff --git a/vendors/knockout/build/output/knockout-latest.js b/vendors/knockout/build/output/knockout-latest.js index 6fb41775d..1e110e1cb 100644 --- a/vendors/knockout/build/output/knockout-latest.js +++ b/vendors/knockout/build/output/knockout-latest.js @@ -4,78 +4,78 @@ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ -(B=>{function F(a,c){return null===a||da[typeof a]?a===c:!1}function E(a,c){var e;return()=>{e||(e=b.a.setTimeout(()=>{e=0;a()},c))}}function J(a,c){var e;return()=>{clearTimeout(e);e=b.a.setTimeout(a,c)}}function S(a,c){null!==c&&c.m&&c.m()}function V(a,c){var e=this.dc,g=e[C];g.aa||(this.Ta&&this.za[c]?(e.tb(c,a,this.za[c]),this.za[c]=null,--this.Ta):g.u[c]||e.tb(c,a,g.v?{U:a}:e.Ub(a)),a.ka&&a.Zb())}var T=B.document,W={},b="undefined"!==typeof W?W:{};b.o=(a,c)=>{a=a.split(".");for(var e=b,g=0;g< -a.length-1;g++)e=e[a[g]];e[a[a.length-1]]=c};b.$=(a,c,e)=>{a[c]=e};b.o("version","3.5.1-sm");b.a={extend:(a,c)=>{c&&Object.entries(c).forEach(e=>a[e[0]]=e[1]);return a},O:(a,c)=>a&&Object.entries(a).forEach(e=>c(e[0],e[1])),Ob:(a,c,e)=>{if(!a)return a;var g={};Object.entries(a).forEach(k=>g[k[0]]=c.call(e,k[1],k[0],a));return g},Xa:a=>[...a.childNodes].forEach(c=>b.removeNode(c)),Mb:a=>{var c=[...a],e=(c[0]&&c[0].ownerDocument||T).createElement("div");a.forEach(g=>e.append(b.fa(g)));return e},ya:(a, -c)=>Array.prototype.map.call(a,c?e=>b.fa(e.cloneNode(!0)):e=>e.cloneNode(!0)),ua:(a,c)=>{b.a.Xa(a);c&&a.append(...c)},Aa:(a,c)=>{if(a.length){for(c=8===c.nodeType&&c.parentNode||c;a.length&&a[0].parentNode!==c;)a.splice(0,1);for(;1null==a?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,""),Ac:(a,c)=>{a=a||"";return c.length> -a.length?!1:a.substring(0,c.length)===c},hc:(a,c)=>c.contains(1!==a.nodeType?a.parentNode:a),Wa:a=>b.a.hc(a,a.ownerDocument.documentElement),zb:a=>b.onError?function(){try{return a.apply(this,arguments)}catch(c){throw b.onError&&b.onError(c),c;}}:a,setTimeout:(a,c)=>setTimeout(b.a.zb(a),c),Db:a=>setTimeout(()=>{b.onError&&b.onError(a);throw a;},0),I:(a,c,e)=>a.addEventListener(c,b.a.zb(e),!1),Wb:(a,c)=>{if(!a||!a.nodeType)throw Error("element must be a DOM node when calling triggerEvent");a.dispatchEvent(new Event(c))}, -g:a=>b.L(a)?a():a,gb:(a,c)=>a.textContent=b.a.g(c)||""};b.o("utils",b.a);b.o("unwrap",b.a.g);(()=>{let a=0,c="__ko__"+Date.now(),e=new WeakMap;b.a.f={get:(g,k)=>(e.get(g)||{})[k],set:(g,k,t)=>{if(e.has(g))e.get(g)[k]=t;else{let d={};d[k]=t;e.set(g,d)}return t},Za:function(g,k,t){return this.get(g,k)||this.set(g,k,t)},clear:g=>e.delete(g),W:()=>a++ +c}})();b.a.K=(()=>{var a=b.a.f.W(),c={1:1,8:1,9:1},e={1:1,9:1};const g=(d,f)=>{var h=b.a.f.get(d,a);f&&!h&&(h=new Set,b.a.f.set(d,a,h));return h},k=d=> -{var f=g(d);f&&(new Set(f)).forEach(h=>h(d));b.a.f.clear(d);e[d.nodeType]&&t(d.childNodes,!0)},t=(d,f)=>{for(var h=[],n,q=0;q{if("function"!=typeof f)throw Error("Callback must be a function");g(d,1).add(f)},fb:(d,f)=>{var h=g(d);h&&(h.delete(f),h.size||b.a.f.set(d,a,null))},fa:d=>{b.i.F(()=>{c[d.nodeType]&&(k(d),e[d.nodeType]&&t(d.getElementsByTagName("*")))});return d},removeNode:d=> -{b.fa(d);d.parentNode&&d.parentNode.removeChild(d)}}})();b.fa=b.a.K.fa;b.removeNode=b.a.K.removeNode;b.o("utils.domNodeDisposal",b.a.K);b.o("utils.domNodeDisposal.addDisposeCallback",b.a.K.na);b.Vb=(()=>{function a(){if(e)for(var d=e,f=0,h;kd){if(5E3<=++f){k=e;b.a.Db(Error("'Too much recursion' after processing "+f+" task groups."));break}d=e}try{h()}catch(n){b.a.Db(n)}}k=e=c.length=0}var c=[],e=0,g=1,k=0,t=(d=>{var f=T.createElement("div");(new MutationObserver(d)).observe(f, -{attributes:!0});return()=>f.classList.toggle("foo")})(a);return{Rb:d=>{e||t(a);c[e++]=d;return g++},cancel:d=>{d-=g-e;d>=k&&da.Ha(e=>J(e,c)),rateLimit:(a,c)=>{if("number"==typeof c)var e=c;else{e=c.timeout;var g=c.method}var k="function"==typeof g?g:E;a.Ha(t=>k(t,e,c))},notify:(a,c)=>{a.equalityComparer="always"==c?null:F}};var da={undefined:1,"boolean":1,number:1,string:1};b.o("extenders",b.Ya);class ea{constructor(a,c,e){this.U=a;this.mb=c;this.pa=e; -this.Na=!1;this.C=this.X=null;b.$(this,"dispose",this.m);b.$(this,"disposeWhenNodeIsRemoved",this.j)}m(){this.Na||(this.C&&b.a.K.fb(this.X,this.C),this.Na=!0,this.pa(),this.U=this.mb=this.pa=this.X=this.C=null)}j(a){this.X=a;b.a.K.na(a,this.C=this.m.bind(this))}}b.S=function(){Object.setPrototypeOf(this,P);P.Ea(this)};var P={Ea:a=>{a.T=new Map;a.T.set("change",new Set);a.sb=1},subscribe:function(a,c,e){var g=this;e=e||"change";var k=new ea(g,c?a.bind(c):a,()=>{g.T.get(e).delete(k);g.wa&&g.wa(e)}); -g.oa&&g.oa(e);g.T.has(e)||g.T.set(e,new Set);g.T.get(e).add(k);return k},notifySubscribers:function(a,c){c=c||"change";"change"===c&&this.Ka();if(this.sa(c)){c="change"===c&&this.Xb||new Set(this.T.get(c));try{b.i.wb(),c.forEach(e=>{e.Na||e.mb(a)})}finally{b.i.end()}}},Ca:function(){return this.sb},mc:function(a){return this.Ca()!==a},Ka:function(){++this.sb},Ha:function(a){var c=this,e=b.L(c),g,k,t,d,f;c.va||(c.va=c.notifySubscribers,c.notifySubscribers=function(n,q){q&&"change"!==q?"beforeChange"=== -q?this.pb(n):this.va(n,q):this.qb(n)});var h=a(()=>{c.ka=!1;e&&d===c&&(d=c.nb?c.nb():c());var n=k||f&&c.Ga(t,d);f=k=g=!1;n&&c.va(t=d)});c.qb=(n,q)=>{q&&c.ka||(f=!q);c.Xb=new Set(c.T.get("change"));c.ka=g=!0;d=n;h()};c.pb=n=>{g||(t=n,c.va(n,"beforeChange"))};c.rb=()=>{f=!0};c.Zb=()=>{c.Ga(t,c.H(!0))&&(k=!0)}},sa:function(a){return(this.T.get(a)||[]).size},Ga:function(a,c){return!this.equalityComparer||!this.equalityComparer(a,c)},toString:()=>"[object Object]",extend:function(a){var c=this;a&&b.a.O(a, -(e,g)=>{e=b.Ya[e];"function"==typeof e&&(c=e(c,g)||c)});return c}};b.$(P,"init",P.Ea);b.$(P,"subscribe",P.subscribe);b.$(P,"extend",P.extend);Object.setPrototypeOf(P,Function.prototype);b.S.fn=P;b.pc=a=>null!=a&&"function"==typeof a.subscribe&&"function"==typeof a.notifySubscribers;(()=>{var a=[],c,e=0;b.i={wb:g=>{a.push(c);c=g},end:()=>c=a.pop(),Qb:g=>{if(c){if(!b.pc(g))throw Error("Only subscribable things can act as dependencies");c.ac.call(c.bc,g,g.Yb||(g.Yb=++e))}},F:(g,k,t)=>{try{return a.push(c), -c=void 0,g.apply(k,t||[])}finally{c=a.pop()}},Ba:()=>c&&c.l.Ba(),ab:()=>c&&c.ab,l:()=>c&&c.l}})();const O=Symbol("_latestValue");b.ca=a=>{function c(){if(0null==c[O]?void 0:c[O].length});b.S.fn.Ea(c);Object.setPrototypeOf(c,Q);return c};var Q={toJSON:function(){let a=this[O];return a&&a.toJSON?a.toJSON():a},equalityComparer:F,H:function(){return this[O]}, -La:function(){this.notifySubscribers(this[O],"spectate");this.notifySubscribers(this[O])},kb:function(){this.notifySubscribers(this[O],"beforeChange")}};Object.setPrototypeOf(Q,b.S.fn);var R=b.ca.C="__ko_proto__";Q[R]=b.ca;b.L=a=>{if((a="function"==typeof a&&a[R])&&a!==Q[R]&&a!==b.l.fn[R])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!a};b.rc=a=>"function"==typeof a&&(a[R]===Q[R]||a[R]===b.l.fn[R]&&a.nc);b.o("observable",b.ca);b.o("isObservable", -b.L);b.o("observable.fn",Q);b.$(Q,"valueHasMutated",Q.La);b.ia=a=>{a=a||[];if("object"!=typeof a||!("length"in a))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");a=b.ca(a);Object.setPrototypeOf(a,b.ia.fn);return a.extend({trackArrayChanges:!0})};b.ia.fn={remove:function(a){for(var c=this.H(),e=!1,g="function"!=typeof a||b.L(a)?d=>d===a:a,k=c.length;k--;){var t=c[k];if(g(t)){if(c[k]!==t)throw Error("Array modified during remove; cannot remove item"); -e||this.kb();e=!0;c.splice(k,1)}}e&&this.La()}};Object.setPrototypeOf(b.ia.fn,b.ca.fn);Object.getOwnPropertyNames(Array.prototype).forEach(a=>{"function"===typeof Array.prototype[a]&&"constructor"!=a&&("copyWithin fill pop push reverse shift sort splice unshift".split(" ").includes(a)?b.ia.fn[a]=function(...c){var e=this.H();this.kb();this.yb(e,a,c);c=e[a](...c);this.La();return c===e?this:c}:b.ia.fn[a]=function(...c){return this()[a](...c)})});b.Jb=a=>b.L(a)&&"function"==typeof a.remove&&"function"== -typeof a.push;b.o("observableArray",b.ia);b.o("isObservableArray",b.Jb);b.Ya.trackArrayChanges=(a,c)=>{function e(){function p(){if(f){var u=[].concat(a.H()||[]);if(a.sa("arrayChange")){if(!k||1++f,null,"spectate"),h=[].concat(a.H()||[]),k=null,t=a.subscribe(p))}a.Ra={};c&&"object"==typeof c&&b.a.extend(a.Ra,c);a.Ra.sparse=!0;if(!a.yb){var g=!1,k=null,t,d,f=0,h,n=a.oa,q=a.wa; -a.oa=p=>{n&&n.call(a,p);"arrayChange"===p&&e()};a.wa=p=>{q&&q.call(a,p);"arrayChange"!==p||a.sa("arrayChange")||(t&&t.m(),d&&d.m(),d=t=null,g=!1,h=void 0)};a.yb=(p,u,x)=>{function l(G,z,M){return m[m.length]={status:G,value:z,index:M}}if(g&&!f){var m=[],r=p.length,v=x.length,y=0;switch(u){case "push":y=r;case "unshift":for(u=0;ux[0]?r+x[0]:x[0]),r);r=1===v?r:Math.min(u+ -(x[1]||0),r);v=u+v-2;y=Math.max(r,v);for(var w=[],A=[],I=2;u{function e(){if(0{e.m()});return e};var U={equalityComparer:F,Ba:function(){return this[C].J},kc:function(){var a=[];b.a.O(this[C].u,(c,e)=>a[e.la]=e.U);return a},$a:function(a){if(!this[C].J)return!1;var c=this.kc();return c.includes(a)||!!c.find(e=>e.$a&&e.$a(a))},tb:function(a,c,e){if(this[C].eb&&c===this)throw Error("A 'pure' computed must not be called recursively");this[C].u[a]=e;e.la=this[C].J++;e.ma=c.Ca()},ta:function(){var a,c=this[C].u;for(a in c)if(Object.prototype.hasOwnProperty.call(c, -a)){var e=c[a];if(this.ja&&e.U.ka||e.U.mc(e.ma))return!0}},Dc:function(){this.ja&&!this[C].Fa&&this.ja(!1)},ha:function(){var a=this[C];return a.V||0a.R(!0),c)):a.ja?a.ja(!0):a.R(!0)},R:function(a){var c=this[C],e=c.qa,g=!1;if(!c.Fa&&!c.aa){if(c.j&&!b.a.Wa(c.j)||e&&e()){if(!c.ib){this.m(); -return}}else c.ib=!1;c.Fa=!0;try{g=this.ic(a)}finally{c.Fa=!1}return g}},ic:function(a){var c=this[C],e=c.eb?void 0:!c.J;var g={dc:this,za:c.u,Ta:c.J};b.i.wb({bc:g,ac:V,l:this,ab:e});c.u={};c.J=0;a:{try{var k=c.Pb();break a}finally{b.i.end(),g.Ta&&!c.v&&b.a.O(g.za,S),c.ba=c.V=!1}k=void 0}c.J?g=this.Ga(c.M,k):(this.m(),g=!0);g&&(c.v?this.Ka():this.notifySubscribers(c.M,"beforeChange"),c.M=k,this.notifySubscribers(c.M,"spectate"),!c.v&&a&&this.notifySubscribers(c.M),this.rb&&this.rb());e&&this.notifySubscribers(c.M, -"awake");return g},H:function(a){var c=this[C];(c.V&&(a||!c.J)||c.v&&this.ta())&&this.R();return c.M},Ha:function(a){b.S.fn.Ha.call(this,a);this.nb=function(){this[C].v||(this[C].ba?this.R():this[C].V=!1);return this[C].M};this.ja=function(c){this.pb(this[C].M);this[C].V=!0;c&&(this[C].ba=!0);this.qb(this,!c)}},m:function(){var a=this[C];!a.v&&a.u&&b.a.O(a.u,(c,e)=>e.m&&e.m());a.j&&a.Va&&b.a.K.fb(a.j,a.Va);a.u=void 0;a.J=0;a.aa=!0;a.ba=!1;a.V=!1;a.v=!1;a.j=void 0;a.qa=void 0;a.Pb=void 0}},fa={oa:function(a){var c= -this,e=c[C];if(!e.aa&&e.v&&"change"==a){e.v=!1;if(e.ba||c.ta())e.u=null,e.J=0,c.R()&&c.Ka();else{var g=[];b.a.O(e.u,(k,t)=>g[t.la]=k);g.forEach((k,t)=>{var d=e.u[k],f=c.Ub(d.U);f.la=t;f.ma=d.ma;e.u[k]=f});c.ta()&&c.R()&&c.Ka()}e.aa||c.notifySubscribers(e.M,"awake")}},wa:function(a){var c=this[C];c.aa||"change"!=a||this.sa("change")||(b.a.O(c.u,(e,g)=>{g.m&&(c.u[e]={U:g.U,la:g.la,ma:g.ma},g.m())}),c.v=!0,this.notifySubscribers(void 0,"asleep"))},Ca:function(){var a=this[C];a.v&&(a.ba||this.ta())&& -this.R();return b.S.fn.Ca.call(this)}},ha={oa:function(a){"change"!=a&&"beforeChange"!=a||this.H()}};Object.setPrototypeOf(U,b.S.fn);U[b.ca.C]=b.l;b.o("computed",b.l);b.o("computed.fn",U);b.$(U,"dispose",U.m);b.wc=a=>{if("function"===typeof a)return b.l(a,{pure:!0});a=b.a.extend({},a);a.pure=!0;return b.l(a)};(()=>{b.A={P:a=>{switch(a.nodeName){case "OPTION":return!0===a.__ko__hasDomDataOptionValue__?b.a.f.get(a,b.b.options.cb):a.value;case "SELECT":return 0<=a.selectedIndex?b.A.P(a.options[a.selectedIndex]): -void 0;default:return a.value}},Ma:(a,c,e)=>{switch(a.nodeName){case "OPTION":"string"===typeof c?(b.a.f.set(a,b.b.options.cb,void 0),delete a.__ko__hasDomDataOptionValue__,a.value=c):(b.a.f.set(a,b.b.options.cb,c),a.__ko__hasDomDataOptionValue__=!0,a.value="number"===typeof c?c:"");break;case "SELECT":for(var g=-1,k=""===c||null==c,t=0,d=a.options.length,f;t{function a(f){f=b.a.Tb(f);123===f.charCodeAt(0)&&(f=f.slice(1,-1));f+="\n,";var h=[],n=f.match(g),q=[],p=0;if(1=p){h.push(m&&q.length?{key:m,value:q.join("")}:{unknown:m||q.join("")});var m=p=0;q=[];continue}}else if(58===l){if(!p&&!m&&1===q.length){m=q.pop();continue}}else if(47===l&&1n(l.key||l.unknown,l.value)); -p.length&&n("_ko_property_writers","{"+p.join(",")+" }");return q.join(",")},sc:(f,h)=>-1n.key==h),lb:(f,h,n,q,p)=>{if(f&&b.L(f))!b.rc(f)||p&&f.H()===q||f(q);else if((f=h.get("_ko_property_writers"))&&f[n])f[n](q)}}})();(()=>{function a(d){return 8==d.nodeType&&g.test(d.nodeValue)}function c(d){return 8==d.nodeType&&k.test(d.nodeValue)}function e(d,f){for(var h=d,n=1,q=[];h=h.nextSibling;){if(c(h)&&(b.a.f.set(h,t,!0),!--n))return q;q.push(h);a(h)&&++n}if(!f)throw Error("Cannot find closing comment tag to match: "+ -d.nodeValue);return null}var g=/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=/^\s*\/ko\s*$/,t="__ko_matchedEndComment__";b.h={da:{},childNodes:d=>a(d)?e(d):d.childNodes,ra:d=>{a(d)?(d=e(d))&&[...d].forEach(f=>b.removeNode(f)):b.a.Xa(d)},ua:(d,f)=>{a(d)?(b.h.ra(d),d.after(...f)):b.a.ua(d,f)},prepend:(d,f)=>{a(d)?d.nextSibling.before(f):d.prepend(f)},Ib:(d,f,h)=>{h?h.after(f):b.h.prepend(d,f)},firstChild:d=>{if(a(d))return d=d.nextSibling,!d||c(d)?null:d;let f=d.firstChild;if(f&&c(f))throw Error("Found invalid end comment, as the first child of "+ -d);return f},nextSibling:d=>{if(a(d)){var f=e(d,void 0);d=f?(f.length?f[f.length-1]:d).nextSibling:null}if((f=d.nextSibling)&&c(f)){if(c(f)&&!b.a.f.get(f,t))throw Error("Found end comment without a matching opening comment, as child of "+d);return null}return f},lc:a,Bc:d=>(d=d.nodeValue.match(g))?d[1]:null}})();(()=>{const a=new Map;b.xb=new class{tc(c){switch(c.nodeType){case 1:return null!=c.getAttribute("data-bind");case 8:return b.h.lc(c);default:return!1}}jc(c,e){a:{switch(c.nodeType){case 1:var g= -c.getAttribute("data-bind");break a;case 8:g=b.h.Bc(c);break a}g=null}if(g)try{let t={valueAccessors:!0},d=a.get(g);if(!d){var k="with($context){with($data||{}){return{"+b.G.vc(g,t)+"}}}";d=new Function("$context","$element",k);a.set(g,d)}return d(e,c)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+g+"\nMessage: "+t.message,t;}return null}}})();(()=>{function a(l){var m=(l=b.a.f.get(l,u))&&l.D;m&&(l.D=null,m.Nb())}function c(l){return b.a.Ob(b.i.F(l),(m,r)=>()=>l()[r])}function e(l, -m,r){return"function"===typeof l?c(l.bind(null,m,r)):b.a.Ob(l,v=>()=>v)}function g(l,m){var r=b.h.firstChild(m);if(r)for(var v;v=r;)r=b.h.nextSibling(v),k(l,v);b.c.notify(m,b.c.B)}function k(l,m){var r=l;if(1===m.nodeType||b.xb.tc(m))r=d(m,null,l).bindingContextForDescendants;r&&m.matches&&!m.matches("SCRIPT,TEXTAREA,TEMPLATE")&&g(r,m)}function t(l){var m=[],r={},v=[];b.a.O(l,function A(w){if(!r[w]){var I=b.b[w];I&&(I.after&&(v.push(w),I.after.forEach(G=>{if(l[G]){if(v.includes(G))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+ -v.join(", "));A(G)}}),v.length--),m.push({key:w,Hb:I}));r[w]=!0}});return m}function d(l,m,r){var v=b.a.f.Za(l,u,{}),y=v.$b;if(!m){if(y)throw Error("You cannot apply bindings multiple times to the same element.");v.$b=!0}y||(v.context=r);v.bb||(v.bb={});if(m&&"function"!==typeof m)var w=m;else{var A=b.l(()=>{if(w=m?m(r,l):b.xb.jc(l,r)){if(r[h])r[h]();if(r[q])r[q]()}return w},{j:l});w&&A.ha()||(A=null)}var I=r,G;if(w){var z=A?D=>()=>A()[D]():D=>w[D],M={get:D=>w[D]&&z(D)(),has:D=>D in w};b.c.B in w&& -b.c.subscribe(l,b.c.B,()=>{var D=w[b.c.B]();if(D){var H=b.h.childNodes(l);H.length&&D(H,b.Cb(H[0]))}});b.c.Z in w&&(I=b.c.hb(l,r),b.c.subscribe(l,b.c.Z,()=>{var D=w[b.c.Z]();D&&b.h.firstChild(l)&&D(l)}));t(w).forEach(D=>{var H=D.Hb.init,L=D.Hb.update,K=D.key;if(8===l.nodeType&&!b.h.da[K])throw Error("The binding '"+K+"' cannot be used with virtual elements");try{"function"==typeof H&&b.i.F(()=>{var N=H(l,z(K),M,I.$data,I);if(N&&N.controlsDescendantBindings){if(void 0!==G)throw Error("Multiple bindings ("+ -G+" and "+K+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");G=K}}),"function"==typeof L&&b.l(()=>L(l,z(K),M,I.$data,I),{j:l})}catch(N){throw N.message='Unable to process binding "'+K+": "+w[K]+'"\nMessage: '+N.message,N;}})}v=void 0===G;return{shouldBindDescendants:v,bindingContextForDescendants:v&&I}}function f(l,m){return l&&l instanceof b.Y?l:new b.Y(l,void 0,void 0,m)}var h=Symbol("_subscribable"),n=Symbol("_ancestorBindingInfo"), -q=Symbol("_dataDependency");b.b={};var p={};b.Y=class{constructor(l,m,r,v,y){function w(){var H=z?G():G,L=b.a.g(H);m?(b.a.extend(A,m),n in m&&(A[n]=m[n])):(A.$parents=[],A.$root=L,A.ko=b);A[h]=D;I?L=A.$data:(A.$rawData=H,A.$data=L);r&&(A[r]=L);v&&v(A,m,L);if(m&&m[h]&&!b.i.l().$a(m[h]))m[h]();M&&(A[q]=M);return A.$data}var A=this,I=l===p,G=I?void 0:l,z="function"==typeof G&&!b.L(G),M=y&&y.dataDependency;if(y&&y.exportDependencies)w();else{var D=b.wc(w);D.H();D.ha()?D.equalityComparer=null:A[h]=void 0}}["createChildContext"](l, -m,r,v){!v&&m&&"object"==typeof m&&(v=m,m=v.as,r=v.extend);if(m&&v&&v.noChildContext){var y="function"==typeof l&&!b.L(l);return new b.Y(p,this,null,w=>{r&&r(w);w[m]=y?l():l},v)}return new b.Y(l,this,m,(w,A)=>{w.$parentContext=A;w.$parent=A.$data;w.$parents=(A.$parents||[]).slice(0);w.$parents.unshift(w.$parent);r&&r(w)},v)}["extend"](l,m){return new b.Y(p,this,null,r=>b.a.extend(r,"function"==typeof l?l(r):l),m)}};var u=b.a.f.W();class x{constructor(l,m,r){this.C=l;this.pa=m;this.xa=new Set;this.B= -!1;m.D||b.a.K.na(l,a);r&&r.D&&(r.D.xa.add(l),this.X=r)}Nb(){this.X&&this.X.D&&this.X.D.fc(this.C)}fc(l){this.xa.delete(l);!this.xa.size&&this.B&&this.Bb()}Bb(){this.B=!0;this.pa.D&&!this.xa.size&&(this.pa.D=null,b.a.K.fb(this.C,a),b.c.notify(this.C,b.c.Z),this.Nb())}}b.c={B:"childrenComplete",Z:"descendantsComplete",subscribe:(l,m,r,v,y)=>{var w=b.a.f.Za(l,u,{});w.ga||(w.ga=new b.S);y&&y.notifyImmediately&&w.bb[m]&&b.i.F(r,v,[l]);return w.ga.subscribe(r,v,m)},notify:(l,m)=>{var r=b.a.f.get(l,u);if(r&& -(r.bb[m]=!0,r.ga&&r.ga.notifySubscribers(l,m),m==b.c.B))if(r.D)r.D.Bb();else if(void 0===r.D&&r.ga&&r.ga.sa(b.c.Z))throw Error("descendantsComplete event not supported for bindings on this node");},hb:(l,m)=>{var r=b.a.f.Za(l,u,{});r.D||(r.D=new x(l,r,m[n]));return m[n]==r?m:m.extend(v=>{v[n]=r})}};b.zc=l=>(l=b.a.f.get(l,u))&&l.context;b.Pa=(l,m,r)=>d(l,m,f(r));b.Cc=(l,m,r)=>{r=f(r);return b.Pa(l,e(m,r,l),r)};b.vb=(l,m)=>{1!==m.nodeType&&8!==m.nodeType||g(f(l),m)};b.ub=function(l,m,r){if(2>arguments.length){if(m= -T.body,!m)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!m||1!==m.nodeType&&8!==m.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");k(f(l,r),m)};b.Cb=l=>(l=l&&[1,8].includes(l.nodeType)&&b.zc(l))?l.$data:void 0;b.o("bindingHandlers",b.b);b.o("applyBindings",b.ub);b.o("applyBindingAccessorsToNode",b.Pa);b.o("dataFor",b.Cb)})();(()=>{function a(d,f){return Object.prototype.hasOwnProperty.call(d, -f)?d[f]:void 0}function c(d,f){var h=a(k,d);if(h)h.subscribe(f);else{h=k[d]=new b.S;h.subscribe(f);e(d,(q,p)=>{p=!(!p||!p.synchronous);t[d]={definition:q,qc:p};delete k[d];n||p?h.notifySubscribers(q):b.Vb.Rb(()=>h.notifySubscribers(q))});var n=!0}}function e(d,f){g("getConfig",[d],h=>{h?g("loadComponent",[d,h],n=>f(n,h)):f(null,null)})}function g(d,f,h,n){n||(n=b.s.loaders.slice(0));var q=n.shift();if(q){var p=q[d];if(p){var u=!1;if(void 0!==p.apply(q,f.concat(function(x){u?h(null):null!==x?h(x): -g(d,f,h,n)}))&&(u=!0,!q.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else g(d,f,h,n)}else h(null)}var k={},t={};b.s={get:(d,f)=>{var h=a(t,d);h?h.qc?b.i.F(()=>f(h.definition)):b.Vb.Rb(()=>f(h.definition)):c(d,f)},cc:d=>delete t[d],ob:g};b.s.loaders=[];b.o("components",b.s)})();(()=>{function a(d,f,h,n){var q={},p=2;f=h.template;h=h.viewModel;f?b.s.ob("loadTemplate",[d,f],u=>{q.template=u;0===--p&&n(q)}): -0===--p&&n(q);h?b.s.ob("loadViewModel",[d,h],u=>{q[t]=u;0===--p&&n(q)}):0===--p&&n(q)}function c(d,f,h){if("function"===typeof f)h(q=>new f(q));else if("function"===typeof f[t])h(f[t]);else if("instance"in f){var n=f.instance;h(()=>n)}else"viewModel"in f?c(d,f.viewModel,h):d("Unknown viewModel value: "+f)}function e(d){if(d.matches("TEMPLATE")&&d.content instanceof DocumentFragment)return b.a.ya(d.content.childNodes);throw"Template Source Element not a