8===c.nodeType&&c.parentNode||c;a.length&&a[0].parentNode!==c;)a.splice(0,1);for(;1<a.length&&a[a.length-1].parentNode!==c;)--a.length;if(1<a.length){c=a[0];vard=a[a.length-1];for(a.length=0;c!==d;)a.push(c),c=c.nextSibling;a.push(d)}}returna},Pb:a=>null==a?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,""),Wa:a=>a.ownerDocument.documentElement.contains(1!==a.nodeType?a.parentNode:a),Sb:(a,c)=>{if(!a||!a.nodeType)throwError("element must be a DOM node when calling triggerEvent");
a,h));returnh},k=e=>{varf=g(e);f&&(newSet(f)).forEach(h=>h(e));b.a.c.clear(e);d[e.nodeType]&&t(e.childNodes,!0)},t=(e,f)=>{for(varh=[],r,p=0;p<e.length;p++)if(!f||8===e[p].nodeType)if(k(h[h.length]=r=e[p]),e[p]!==r)for(;p--&&!h.includes(e[p]););};return{ma:(e,f)=>{if("function"!=typeoff)throwError("Callback must be a function");g(e,1).add(f)},fb:(e,f)=>{varh=g(e);h&&(h.delete(f),h.size||b.a.c.set(e,a,null))},ca:e=>{b.l.N(()=>{c[e.nodeType]&&(k(e),d[e.nodeType]&&t(e.getElementsByTagName("*")))});
returne},removeNode:e=>{b.ca(e);e.parentNode&&e.parentNode.removeChild(e)}}})();b.ca=b.a.I.ca;b.removeNode=b.a.I.removeNode;b.m("utils.domNodeDisposal",b.a.I);b.m("utils.domNodeDisposal.addDisposeCallback",b.a.I.ma);b.Rb=(()=>{functiona(){if(g)for(varf=g,h=0,r;t<g;)if(r=d[t++]){if(t>f){if(5E3<=++h){t=g;setTimeout(()=>{throwError(`'Too much recursion' after processing ${h} task groups.`);},0);break}f=g}try{r()}catch(p){setTimeout(()=>{throwp;},0)}}}functionc(){a();t=g=d.length=0}vard=[],g=0,
b.fa(H,"init",H.Ea);b.fa(H,"subscribe",H.subscribe);b.fa(H,"extend",H.extend);Object.setPrototypeOf(H,Function.prototype);b.R.fn=H;b.ic=a=>null!=a&&"function"==typeofa.subscribe&&"function"==typeofa.s;(()=>{vara=[],c,d=0;b.l={wb:g=>{a.push(c);c=g},end:()=>c=a.pop(),Mb:g=>{if(c){if(!b.ic(g))throwError("Only subscribable things can act as dependencies");c.Xb.call(c.Yb,g,g.Ub||(g.Ub=++d))}},N:(g,k,t)=>{try{returna.push(c),c=void0,g.apply(k,t||[])}finally{c=a.pop()}},Ba:()=>c&&c.j.Ba(),ab:()=>c&&
"beforeChange")}};Object.setPrototypeOf(J,b.R.fn);varK=b.Z.C="__ko_proto__";J[K]=b.Z;b.O=a=>{if((a="function"==typeofa&&a[K])&&a!==J[K]&&a!==b.j.fn[K])throwError("Invalid object that looks like an observable; possibly from another Knockout instance");return!!a};b.jc=a=>"function"==typeofa&&(a[K]===J[K]||a[K]===b.j.fn[K]&&a.fc);b.m("observable",b.Z);b.m("isObservable",b.O);b.m("observable.fn",J);b.fa(J,"valueHasMutated",J.La);b.ha=a=>{a=a||[];if("object"!=typeofa||!("length"ina))throwError("The argument passed when initializing an observable array must be an array, or null, or undefined.");
a=b.Z(a);Object.setPrototypeOf(a,b.ha.fn);returna.extend({trackArrayChanges:!0})};b.ha.fn={remove:function(a){for(varc=this.G(),d=!1,g="function"!=typeofa||b.O(a)?e=>e===a:a,k=c.length;k--;){vart=c[k];if(g(t)){if(c[k]!==t)throwError("Array modified during remove; cannot remove item");d||this.kb();d=!0;c.splice(k,1)}}d&&this.La()}};Object.setPrototypeOf(b.ha.fn,b.Z.fn);Object.getOwnPropertyNames(Array.prototype).forEach(a=>{"function"===typeofArray.prototype[a]&&"constructor"!=a&&("copyWithin fill pop push reverse shift sort splice unshift".split(" ").includes(a)?
w;case"unshift":for(q=0;q<v;q++)m("added",n[q],y+q);break;case"pop":y=w-1;case"shift":w&&m("deleted",q[y],y);break;case"splice":y=Math.min(Math.max(0,0>n[0]?w+n[0]:n[0]),w);w=1===v?w:Math.min(y+(n[1]||0),w);v=y+v-2;l=Math.max(w,v);varx=[],B=[];for(letE=y,C=2;E<l;++E,++C)E<w&&B.push(m("deleted",q[E],E)),E<v&&x.push(m("added",n[C],E));b.a.Eb(B,x);break;default:return}k=u}}}};varA=Symbol("_state");b.j=(a,c)=>{functiond(){if(0<arguments.length){if("function"!==typeofg)throwError("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.");
g(...arguments);returnthis}k.X||b.l.Mb(d);(k.U||k.v&&d.ta())&&d.P();returnk.J}"object"===typeofa?c=a:(c=c||{},a&&(c.read=a));if("function"!=typeofc.read)throwError("Pass a function that returns the value of the ko.computed");varg=c.write,k={J:void0,Y:!0,U:!0,Fa:!1,ib:!1,X:!1,eb:!1,v:!1,Lb:c.read,i:c.disposeWhenNodeIsRemoved||c.i||null,pa:c.disposeWhen||c.pa,Va:null,u:{},H:0,Db:null};d[A]=k;d.fc="function"===typeofg;b.R.fn.Ea(d);Object.setPrototypeOf(d,M);c.pure?(k.eb=!0,k.v=!0,b.a.extend(d,
aa)):c.deferEvaluation&&b.a.extend(d,ba);k.i&&(k.ib=!0,k.i.nodeType||(k.i=null));k.v||c.deferEvaluation||d.P();k.i&&d.ga()&&b.a.I.ma(k.i,k.Va=()=>{d.o()});returnd};varM={ra:O,Ba:function(){returnthis[A].H},cc:function(){vara=[];b.a.L(this[A].u,(c,d)=>a[d.ka]=d.T);returna},$a:function(a){if(!this[A].H)return!1;varc=this.cc();returnc.includes(a)||!!c.find(d=>d.$a&&d.$a(a))},sb:function(a,c,d){if(this[A].eb&&c===this)throwError("A 'pure' computed must not be called recursively");this[A].u[a]=
else47===m&&l&&1<n.length?(m=r[l-1].match(k))&&!t[m[0]]&&(f=f.slice(f.indexOf(n)+1),r=f.match(g),l=-1,n="/"):40===m||123===m||91===m?++q:41===m||125===m||93===m?--q:u||p.length||34!==m&&39!==m||(n=n.slice(1,-1));p.push(n)}if(0<q)throwError("Unbalanced parentheses, braces, or brackets");}returnh}varc=["true","false","null","undefined"],d=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,g=/"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`|\/\*(?:[^*]|\*+[^*/])*\*+\/|\/\/.*\n|\/(?:\\.|[^/])+\/w*|[^\s:,/][^,"'`{}()/:[\]]*[^\s,"'`{}()/:[\]]|[^\s]/g,
r(m.key||m.unknown,m.value));q.length&&r("_ko_property_writers","{"+q.join(",")+" }");returnp.join(",")},kc:(f,h)=>-1<f.findIndex(r=>r.key==h),lb:(f,h,r,p,q)=>{if(f&&b.O(f))!b.jc(f)||q&&f.G()===p||f(p);elseif((f=h.get("_ko_property_writers"))&&f[r])f[r](p)}}})();(()=>{functiona(e){return8==e.nodeType&&g.test(e.nodeValue)}functionc(e){return8==e.nodeType&&k.test(e.nodeValue)}functiond(e,f){for(varh=e,r=1,p=[];h=h.nextSibling;){if(c(h)&&(b.a.c.set(h,t,!0),!--r))returnp;p.push(h);a(h)&&++r}if(!f)throwError("Cannot find closing comment tag to match: "+
e.nodeValue);returnnull}varg=/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=/^\s*\/ko\s*$/,t="__ko_matchedEndComment__";b.h={$:{},childNodes:e=>a(e)?d(e):e.childNodes,qa:e=>{a(e)?(e=d(e))&&[...e].forEach(f=>b.removeNode(f)):b.a.Xa(e)},ua:(e,f)=>{a(e)?(b.h.qa(e),e.after(...f)):b.a.ua(e,f)},prepend:(e,f)=>{a(e)?e.nextSibling.before(f):e.prepend(f)},Gb:(e,f,h)=>{h?h.after(f):b.h.prepend(e,f)},firstChild:e=>{if(a(e))returne=e.nextSibling,!e||c(e)?null:e;letf=e.firstChild;if(f&&c(f))throwError("Found invalid end comment, as the first child of "+
e);returnf},nextSibling:e=>{if(a(e)){varf=d(e,void0);e=f?(f.length?f[f.length-1]:e).nextSibling:null}if((f=e.nextSibling)&&c(f)){if(c(f)&&!b.a.c.get(f,t))throwError("Found end comment without a matching opening comment, as child of "+e);returnnull}returnf},dc:a,sc:e=>(e=e.nodeValue.match(g))?e[1]:null}})();(()=>{consta=newMap;b.xb=newclass{lc(c){switch(c.nodeType){case1:returnnull!=c.getAttribute("data-bind");case8:returnb.h.dc(c);default:return!1}}bc(c,d){a:{switch(c.nodeType){case1:varg=
c.getAttribute("data-bind");breaka;case8:g=b.h.sc(c);breaka}g=null}if(g)try{lett={valueAccessors:!0},e=a.get(g);if(!e){vark="with($context){with($data||{}){return{"+b.F.nc(g,t)+"}}}";e=newFunction("$context","$element",k);a.set(g,e)}returne(d,c)}catch(t){throwt.message="Unable to parse bindings.\nBindings value: "+g+"\nMessage: "+t.message,t;}returnnull}}})();(()=>{functiona(l){varn=(l=b.a.c.get(l,p))&&l.D;n&&(l.D=null,n.Kb())}functionc(l,n){for(varm,u=b.h.firstChild(n);m=u;)u=b.h.nextSibling(m),
d(l,m);b.g.notify(n,b.g.B)}functiond(l,n){varm=l;if(1===n.nodeType||b.xb.lc(n))m=k(n,null,l).bindingContextForDescendants;m&&n.matches&&!n.matches("SCRIPT,TEXTAREA,TEMPLATE")&&c(m,n)}functiong(l){varn=[],m={},u=[];b.a.L(l,functiony(v){if(!m[v]){varx=b.b[v];x&&(x.after&&(u.push(v),x.after.forEach(B=>{if(l[B]){if(u.includes(B))throwError("Cannot combine the following bindings, because they have a cyclic dependency: "+u.join(", "));y(B)}}),u.length--),n.push({key:v,Fb:x}));m[v]=!0}});returnn}
functionk(l,n,m){varu=b.a.c.Za(l,p,{}),w=u.Wb;if(!n){if(w)throwError("You cannot apply bindings multiple times to the same element.");u.Wb=!0}w||(u.context=m);u.bb||(u.bb={});if(n&&"function"!==typeofn)varv=n;else{vary=b.j(()=>{if(v=n?n(m,l):b.xb.bc(l,m)){if(m[e])m[e]();if(m[h])m[h]()}returnv},{i:l});v&&y.ga()||(y=null)}varx=m,B;if(v){varE=y?z=>()=>y()[z]():z=>v[z],C={get:z=>v[z]&&E(z)(),has:z=>zinv};b.g.Binv&&b.g.subscribe(l,b.g.B,()=>{varz=v[b.g.B]();if(z){varD=b.h.childNodes(l);
D.length&&z(D,b.Bb(D[0]))}});b.g.dainv&&(x=b.g.hb(l,m),b.g.subscribe(l,b.g.da,()=>{varz=v[b.g.da]();z&&b.h.firstChild(l)&&z(l)}));g(v).forEach(z=>{varD=z.Fb.init,F=z.Fb.update,I=z.key;if(8===l.nodeType&&!b.h.$[I])throwError("The binding '"+I+"' cannot be used with virtual elements");try{"function"==typeofD&&b.l.N(()=>{varN=D(l,E(I),C,x.$data,x);if(N&&N.controlsDescendantBindings){if(void0!==B)throwError("Multiple bindings ("+B+" and "+I+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");
B=I}}),"function"==typeofF&&b.j(()=>F(l,E(I),C,x.$data,x),{i:l})}catch(N){throwN.message='Unable to process binding "'+I+": "+v[I]+'"\nMessage: '+N.message,N;}})}u=void0===B;return{shouldBindDescendants:u,bindingContextForDescendants:u&&x}}functiont(l,n){returnl&&linstanceofb.ba?l:newb.ba(l,void0,void0,n)}vare=Symbol("_subscribable"),f=Symbol("_ancestorBindingInfo"),h=Symbol("_dataDependency");b.b={};varr={};b.ba=class{constructor(l,n,m,u,w){functionv(){varD=E?B():B,F=b.a.f(D);n?(b.a.extend(y,
b.g.da),this.Kb())}}b.g={B:"childrenComplete",da:"descendantsComplete",subscribe:(l,n,m,u,w)=>{varv=b.a.c.Za(l,p,{});v.ea||(v.ea=newb.R);w&&w.notifyImmediately&&v.bb[n]&&b.l.N(m,u,[l]);returnv.ea.subscribe(m,u,n)},notify:(l,n)=>{varm=b.a.c.get(l,p);if(m&&(m.bb[n]=!0,m.ea&&m.ea.s(l,n),n==b.g.B))if(m.D)m.D.Ab();elseif(void0===m.D&&m.ea&&m.ea.sa(b.g.da))throwError("descendantsComplete event not supported for bindings on this node");},hb:(l,n)=>{varm=b.a.c.Za(l,p,{});m.D||(m.D=newq(l,m,n[f]));
returnn[f]==m?n:n.extend(u=>{u[f]=m})}};b.rc=l=>(l=b.a.c.get(l,p))&&l.context;b.tb=(l,n,m)=>k(l,n,t(m));b.vb=(l,n)=>{1!==n.nodeType&&8!==n.nodeType||c(t(l),n)};b.ub=function(l,n,m){if(2>arguments.length){if(n=L.body,!n)throwError("ko.applyBindings: could not find document.body; has the document been loaded?");}elseif(!n||1!==n.nodeType&&8!==n.nodeType)throwError("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(t(l,m),n)};b.Bb=l=>(l=l&&[1,
8].includes(l.nodeType)&&b.rc(l))?l.$data:void0;b.m("bindingHandlers",b.b);b.m("applyBindings",b.ub);b.m("applyBindingAccessorsToNode",b.tb);b.m("dataFor",b.Bb)})();(()=>{functiona(f,h){varr={},p=t[f]||{},q=p.template;p=p.viewModel;if(q){q.element||c(f,"Unknown template value: "+q);q=q.element;varl=L.getElementById(q);l||c(f,"Cannot find element with ID "+q);l.matches("TEMPLATE")||c(f,"Template Source Element not a <template>");r.template=b.a.ya(l.content.childNodes)}p&&("function"!==typeofp[e]&&
c(f,"Unknown viewModel value: "+p),r[e]=p[e]);r.template&&r[e]?h(r):h(null)}functionc(f,h){throwError(`Component '${f}': ${h}`);}functiond(f,h){varr=!1;a(f,p=>{(r=null!=p)&&h(p)});r||h(null)}varg=Object.create(null),k=Object.create(null);b.Ra={get:(f,h)=>{varr=k[f];if(r)b.Rb.Nb(()=>h(r.definition));else{varp=g[f];if(p)p.subscribe(h);else{p=g[f]=newb.R;p.subscribe(h);d(f,l=>{k[f]={definition:l};deleteg[f];q?p.s(l):b.Rb.Nb(()=>p.s(l))});varq=!0}}},tc:f=>deletek[f],register:(f,h)=>{if(!h)throwError("Invalid configuration for "+
f);if(t[f])throwError("Component "+f+" is already registered");t[f]=h}};vart=Object.create(null),e="createViewModel";b.m("components",b.Ra);b.m("components.register",b.Ra.register)})();(()=>{vara=0;b.b.component={init:(c,d,g,k,t)=>{vare,f,h,r=()=>{varq=e&&e.dispose;"function"===typeofq&&q.call(e);h&&h.o();f=e=h=null},p=[...b.h.childNodes(c)];b.h.qa(c);b.a.I.ma(c,r);b.j(()=>{varq=b.a.f(d());if("string"!==typeofq){varl=b.a.f(q.params);q=b.a.f(q.name)}if(!q)throwError("No component name specified");
varn=b.g.hb(c,t),m=f=++a;b.Ra.get(q,u=>{if(f===m){r();if(!u)throwError("Unknown component '"+q+"'");varw=u.template;if(!w)throwError("Component '"+q+"' has no template");b.h.ua(c,b.a.ya(w));e=u.createViewModel(l,{element:c,templateNodes:p});b.vb(n.createChildContext(e,{extend:v=>{v.$component=e;v.$componentTemplateNodes=p}}),c)}})},{i:c});return{controlsDescendantBindings:!0}}};b.h.$.component=!0})();b.b.attr={update:(a,c)=>{c=b.a.f(c())||{};b.a.L(c,function(d,g){g=b.a.f(g);vark=d.indexOf(":");
exportDependencies:!0});varq=e.has(b.g.da);b.j(()=>{varl=b.a.f(t()),n=!g!==!l,m=!r;q&&(h=b.g.hb(k,h));if(n){p.dataDependency=b.l.j();varu=d?h.createChildContext("function"==typeofl?l:t,p):b.l.Ba()?h.extend(null,p):h}m&&b.l.Ba()&&(r=b.a.ya(b.h.childNodes(k),!0));n?(m||b.h.ua(k,b.a.ya(r)),b.vb(u,k)):(b.h.qa(k),b.g.notify(k,b.g.B))},{i:k});return{controlsDescendantBindings:!0}}};b.F.Pa[c]=!1;b.h.$[c]=!0}a("if");a("ifnot",!1,!0);a("with",!0)})();varS={};b.b.options={init:a=>{if(!a.matches("SELECT"))throwError("options binding applies only to SELECT elements");
b.a.c.V();b.b.style={update:(a,c)=>{c=b.a.f(c()||{});b.a.L(c,(d,g)=>{g=b.a.f(g);if(null==g||!1===g)g="";if(/^--/.test(d))a.style.setProperty(d,g);else{d=d.replace(/-(\w)/g,(t,e)=>e.toUpperCase());vark=a.style[d];a.style[d]=g;g===k||a.style[d]!=k||isNaN(g)||(a.style[d]=g+"px")}})}};b.b.submit={init:(a,c,d,g,k)=>{if("function"!=typeofc())throwError("The value for a submit binding must be a function");a.addEventListener("submit",t=>{vare=c();try{varf=e.call(k.$data,a)}finally{!0!==f&&(t.preventDefault?
b.a.c.set(k,a,g[0])}}classdextendsc{constructor(g){super(g);g&&(this.C=g.matches("TEMPLATE")&&g.content?g.content.nodeType:1)}}b.Ja={Ua:d,Oa:c}})();(()=>{functiona(e,f){if(e.length){varh=e[0],r=h.parentNode;g(h,e[e.length-1],p=>{1!==p.nodeType&&8!==p.nodeType||b.ub(f,p)});b.a.Aa(e,r)}}functionc(e,f,h,r){varp=(e&&(e.nodeType?e:0<e.length?e[0]:null)||h||{}).ownerDocument;if("string"==typeofh){p=p||L;p=p.getElementById(h);if(!p)throwError("Cannot find template with ID "+h);h=newb.Ja.Ua(p)}elseif([1,
8].includes(h.nodeType))h=newb.Ja.Oa(h);elsethrowError("Unknown template type: "+h);h=(h=h.Ia?h.Ia():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeofh.length||0<h.length&&"number"!=typeofh[0].nodeType)throwError("Template engine must return an array of DOM nodes");p=!1;switch(f){case"replaceChildren":b.h.ua(e,h);p=!0;break;case"ignoreTargetNode":break;default:throwError("Unknown renderMode: "+f);}p&&(a(h,r),"replaceChildren"==f&&b.g.notify(e,b.g.B));returnh}functiond(e,f,
elseif("nodes"inf){f=f.nodes||[];if(b.O(f))throwError('The "nodes" option must be a plain, non-observable array.');leth=f[0]&&f[0].parentNode;h&&b.a.c.get(h,t)||(h=b.a.Jb(f),b.a.c.set(h,t,!0));(newb.Ja.Oa(e)).Ia(h)}elseif(f=b.h.childNodes(e),0<f.length)f=b.a.Jb(f),(newb.Ja.Oa(e)).Ia(f);elsethrowError("Anonymous template defined, but no template content was provided");return{controlsDescendantBindings:!0}},update:(e,f,h,r,p)=>{varq=f();f=b.a.f(q);h=!0;r=null;"string"==typeoff?f={}:(q="name"in
f?f.name:e,"if"inf&&(h=b.a.f(f["if"])),h&&"ifnot"inf&&(h=!b.a.f(f.ifnot)),h&&!q&&(h=!1));"foreach"inf?r=b.qc(q,h&&f.foreach||[],f,e,p):h?(h=p,"data"inf&&(h=p.createChildContext(f.data,{as:f.as,exportDependencies:!0})),r=b.pc(q,h,f,e)):b.h.qa(e);p=r;(f=b.a.c.get(e,k))&&"function"==typeoff.o&&f.o();b.a.c.set(e,k,!p||p.ga&&!p.ga()?void0:p)}};b.F.Pa.template=e=>{e=b.F.mc(e);return1==e.length&&e[0].unknown||b.F.kc(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"};