|
|
|
@ -31,7 +31,7 @@ a.G=0;a.W=!0;a.X=!1;a.T=!1;a.u=!1;a.i=void 0;a.oa=void 0;a.Jb=void 0}},Z={ma:fun
|
|
|
|
|
"asleep"))},Aa:function(){var a=this[A];a.u&&(a.X||this.ra())&&this.O();return b.P.fn.Aa.call(this)}},aa={ma:function(a){"change"!=a&&"beforeChange"!=a||this.F()}};Object.setPrototypeOf(M,b.P.fn);M[b.Y.B]=b.j;b.o("computed",b.j);b.o("computed.fn",M);b.ea(M,"dispose",M.m);b.mc=a=>{if("function"===typeof a)return b.j(a,{pure:!0});a={...a,pure:!0};return b.j(a)};(()=>{b.v={L:a=>{switch(a.nodeName){case "OPTION":return!0===a.__ko__hasDomDataOptionValue__?b.a.c.get(a,b.b.options.ab):a.value;case "SELECT":return 0<=
|
|
|
|
|
a.selectedIndex?b.v.L(a.options[a.selectedIndex]):void 0;default:return a.value}},Ka:(a,c,d)=>{switch(a.nodeName){case "OPTION":"string"===typeof c?(b.a.c.set(a,b.b.options.ab,void 0),delete a.__ko__hasDomDataOptionValue__,a.value=c):(b.a.c.set(a,b.b.options.ab,c),a.__ko__hasDomDataOptionValue__=!0,a.value="number"===typeof c?c:"");break;case "SELECT":for(var g=-1,k=""===c||null==c,t=0,e=a.options.length,f;t<e;++t)if(f=b.v.L(a.options[t]),f==c||""===f&&k){g=t;break}if(d||0<=g||k&&1<a.size)a.selectedIndex=
|
|
|
|
|
g;break;default:a.value=null==c?"":c}}}})();b.D=(()=>{function a(f){f=b.a.Nb(f);123===f.charCodeAt(0)&&(f=f.slice(1,-1));f+="\n,";var h=[],r=f.match(g),p=[],q=0;if(1<r.length){for(var l=0,n;n=r[l++];){var m=n.charCodeAt(0);if(44===m){if(0>=q){h.push(u&&p.length?{key:u,value:p.join("")}:{unknown:u||p.join("")});var u=q=0;p=[];continue}}else if(58===m){if(!q&&!u&&1===p.length){u=p.pop();continue}}else if(47===m&&1<n.length&&(47===n.charCodeAt(1)||42===n.charCodeAt(1)))continue;else 47===m&&l&&1<n.length?
|
|
|
|
|
(m=r[l-1].match(k))&&!t[m[0]]&&(f=f.substr(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)throw Error("Unbalanced parentheses, braces, or brackets");}return h}var c=["true","false","null","undefined"],d=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,g=/"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`|\/\*(?:[^*]|\*+[^*/])*\*+\/|\/\/.*\n|\/(?:\\.|[^/])+\/w*|[^\s:,/][^,"'`{}()/:[\]]*[^\s,"'`{}()/:[\]]|[^\s]/g,
|
|
|
|
|
(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)throw Error("Unbalanced parentheses, braces, or brackets");}return h}var c=["true","false","null","undefined"],d=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,g=/"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`|\/\*(?:[^*]|\*+[^*/])*\*+\/|\/\/.*\n|\/(?:\\.|[^/])+\/w*|[^\s:,/][^,"'`{}()/:[\]]*[^\s,"'`{}()/:[\]]|[^\s]/g,
|
|
|
|
|
k=/[\])"'A-Za-z0-9_$]+$/,t={"in":1,"return":1,"typeof":1},e=new Set;return{Na:[],hb:e,kc:a,lc:function(f,h){function r(m,u){if(!n){var w=b.b[m];if(w&&w.preprocess&&!(u=w.preprocess(u,m,r)))return;if(w=e.has(m)){var v=u;c.includes(v)?v=!1:(w=v.match(d),v=null===w?!1:w[1]?"Object("+w[1]+")"+w[2]:v);w=v}w&&q.push("'"+m+"':function(_z){"+v+"=_z}")}l&&(u="function(){return "+u+" }");p.push("'"+m+"':"+u)}h=h||{};var p=[],q=[],l=h.valueAccessors,n=h.bindingParams;("string"===typeof f?a(f):f).forEach(m=>
|
|
|
|
|
r(m.key||m.unknown,m.value));q.length&&r("_ko_property_writers","{"+q.join(",")+" }");return p.join(",")},ic:(f,h)=>-1<f.findIndex(r=>r.key==h),jb:(f,h,r,p,q)=>{if(f&&b.N(f))!b.hc(f)||q&&f.F()===p||f(p);else if((f=h.get("_ko_property_writers"))&&f[r])f[r](p)}}})();(()=>{function a(e){return 8==e.nodeType&&g.test(e.nodeValue)}function c(e){return 8==e.nodeType&&k.test(e.nodeValue)}function d(e,f){for(var h=e,r=1,p=[];h=h.nextSibling;){if(c(h)&&(b.a.c.set(h,t,!0),!--r))return p;p.push(h);a(h)&&++r}if(!f)throw Error("Cannot find closing comment tag to match: "+
|
|
|
|
|
e.nodeValue);return null}var g=/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=/^\s*\/ko\s*$/,t="__ko_matchedEndComment__";b.h={Z:{},childNodes:e=>a(e)?d(e):e.childNodes,pa:e=>{a(e)?(e=d(e))&&[...e].forEach(f=>b.removeNode(f)):b.a.Va(e)},sa:(e,f)=>{a(e)?(b.h.pa(e),e.after(...f)):b.a.sa(e,f)},prepend:(e,f)=>{a(e)?e.nextSibling.before(f):e.prepend(f)},Eb:(e,f,h)=>{h?h.after(f):b.h.prepend(e,f)},firstChild:e=>{if(a(e))return e=e.nextSibling,!e||c(e)?null:e;let f=e.firstChild;if(f&&c(f))throw Error("Found invalid end comment, as the first child of "+
|
|
|
|
@ -49,7 +49,7 @@ d(t(l,m),n)};b.zb=l=>(l=l&&[1,8].includes(l.nodeType)&&b.pc(l))?l.$data:void 0;b
|
|
|
|
|
("function"!==typeof p[e]&&c(f,"Unknown viewModel value: "+p),r[e]=p[e]);r.template&&r[e]?h(r):h(null)}function c(f,h){throw Error(`Component '${f}': ${h}`);}function d(f,h){var r=!1;a(f,p=>{(r=null!=p)&&h(p)});r||h(null)}var g=Object.create(null),k=Object.create(null);b.Pa={get:(f,h)=>{var r=k[f];if(r)b.Pb.Lb(()=>h(r.definition));else{var p=g[f];if(p)p.subscribe(h);else{p=g[f]=new b.P;p.subscribe(h);d(f,l=>{k[f]={definition:l};delete g[f];q?p.notifySubscribers(l):b.Pb.Lb(()=>p.notifySubscribers(l))});
|
|
|
|
|
var q=!0}}},rc:f=>delete k[f],register:(f,h)=>{if(!h)throw Error("Invalid configuration for "+f);if(t[f])throw Error("Component "+f+" is already registered");t[f]=h}};var t=Object.create(null),e="createViewModel";b.o("components",b.Pa);b.o("components.register",b.Pa.register)})();(()=>{var a=0;b.b.component={init:(c,d,g,k,t)=>{var e,f,h,r=()=>{var q=e&&e.dispose;"function"===typeof q&&q.call(e);h&&h.m();f=e=h=null},p=[...b.h.childNodes(c)];b.h.pa(c);b.a.H.la(c,r);b.j(()=>{var q=b.a.f(d());if("string"!==
|
|
|
|
|
typeof q){var l=b.a.f(q.params);q=b.a.f(q.name)}if(!q)throw Error("No component name specified");var n=b.g.fb(c,t),m=f=++a;b.Pa.get(q,u=>{if(f===m){r();if(!u)throw Error("Unknown component '"+q+"'");var w=u.template;if(!w)throw Error("Component '"+q+"' has no template");b.h.sa(c,b.a.wa(w));e=u.createViewModel(l,{element:c,templateNodes:p});b.tb(n.createChildContext(e,{extend:v=>{v.$component=e;v.$componentTemplateNodes=p}}),c)}})},{i:c});return{controlsDescendantBindings:!0}}};b.h.Z.component=!0})();
|
|
|
|
|
b.b.attr={update:(a,c)=>{c=b.a.f(c())||{};b.a.K(c,function(d,g){g=b.a.f(g);var k=d.indexOf(":");k="lookupNamespaceURI"in a&&0<k&&a.lookupNamespaceURI(d.substr(0,k));var t=!1===g||null==g;t?k?a.removeAttributeNS(k,d):a.removeAttribute(d):g=g.toString();t||(k?a.setAttributeNS(k,d,g):a.setAttribute(d,g));"name"===d&&(a.name=t?"":g)})}};var Q=(a,c,d)=>{c&&c.split(/\s+/).forEach(g=>a.classList.toggle(g,d))};b.b.css={update:(a,c)=>{c=b.a.f(c());null!==c&&"object"==typeof c?b.a.K(c,(d,g)=>{g=b.a.f(g);Q(a,
|
|
|
|
|
b.b.attr={update:(a,c)=>{c=b.a.f(c())||{};b.a.K(c,function(d,g){g=b.a.f(g);var k=d.indexOf(":");k="lookupNamespaceURI"in a&&0<k&&a.lookupNamespaceURI(d.slice(0,k));var t=!1===g||null==g;t?k?a.removeAttributeNS(k,d):a.removeAttribute(d):g=g.toString();t||(k?a.setAttributeNS(k,d,g):a.setAttribute(d,g));"name"===d&&(a.name=t?"":g)})}};var Q=(a,c,d)=>{c&&c.split(/\s+/).forEach(g=>a.classList.toggle(g,d))};b.b.css={update:(a,c)=>{c=b.a.f(c());null!==c&&"object"==typeof c?b.a.K(c,(d,g)=>{g=b.a.f(g);Q(a,
|
|
|
|
|
d,!!g)}):(c=b.a.Nb(c),Q(a,a.__ko__cssValue,!1),a.__ko__cssValue=c,Q(a,c,!0))}};b.b.enable={update:(a,c)=>{(c=b.a.f(c()))&&a.disabled?a.removeAttribute("disabled"):c||a.disabled||(a.disabled=!0)}};b.b.disable={update:(a,c)=>b.b.enable.update(a,()=>!b.a.f(c()))};b.b.event={init:(a,c,d,g,k)=>{d=c()||{};b.a.K(d,t=>{"string"==typeof t&&a.addEventListener(t,function(e){var f=c()[t];if(f)try{g=k.$data;var h=f.apply(g,[g,...arguments])}finally{!0!==h&&e.preventDefault()}})})}};b.b.foreach={Gb:a=>()=>{var c=
|
|
|
|
|
a(),d=b.N(c)?c.F():c;if(!d||"number"==typeof d.length)return{foreach:c};b.a.f(c);return{foreach:d.data,as:d.as,beforeRemove:d.beforeRemove}},init:(a,c)=>b.b.template.init(a,b.b.foreach.Gb(c)),update:(a,c,d,g,k)=>b.b.template.update(a,b.b.foreach.Gb(c),d,g,k)};b.D.Na.foreach=!1;b.h.Z.foreach=!0;b.b.hasfocus={init:(a,c,d)=>{var g=t=>{a.__ko_hasfocusUpdating=!0;t=a.ownerDocument.activeElement===a;var e=c();b.D.jb(e,d,"hasfocus",t,!0);a.__ko_hasfocusLastValue=t;a.__ko_hasfocusUpdating=!1},k=g.bind(null,
|
|
|
|
|
!0);g=g.bind(null,!1);a.addEventListener("focus",k);a.addEventListener("focusin",k);a.addEventListener("blur",g);a.addEventListener("focusout",g);a.__ko_hasfocusLastValue=!1},update:(a,c)=>{c=!!b.a.f(c());a.__ko_hasfocusUpdating||a.__ko_hasfocusLastValue===c||(c?a.focus():a.blur())}};b.D.hb.add("hasfocus");b.b.html={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{b.a.Va(a);c=b.a.f(c());if(null!=c){const d=L.createElement("template");d.innerHTML="string"!=typeof c?c.toString():c;a.appendChild(d.content)}}};
|
|
|
|
@ -60,17 +60,17 @@ var e=a.multiple,f=0!=a.length&&e?a.scrollTop:null,h=b.a.f(c()),r=d.get("valueAl
|
|
|
|
|
0<=a.selectedIndex;n&&b.l.M(b.a.Qb,null,[a,"change"])}(r||b.l.Za())&&b.g.notify(a,b.g.A);f&&20<Math.abs(f-a.scrollTop)&&(a.scrollTop=f)}};b.b.options.ab=b.a.c.U();b.b.style={update:(a,c)=>{c=b.a.f(c()||{});b.a.K(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());var k=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"!=typeof c())throw Error("The value for a submit binding must be a function");
|
|
|
|
|
a.addEventListener("submit",t=>{var e=c();try{var f=e.call(k.$data,a)}finally{!0!==f&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}})}};b.b.text={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{8===a.nodeType&&(a.text||a.after(a.text=L.createTextNode("")),a=a.text);b.a.eb(a,c())}};b.h.Z.text=!0;b.b.textInput={init:(a,c,d)=>{var g=a.value,k,t,e=()=>{clearTimeout(k);t=k=void 0;var h=a.value;g!==h&&(g=h,b.D.jb(c(),d,"textInput",h))},f=()=>{var h=b.a.f(c());null==h&&(h="");void 0!==
|
|
|
|
|
t&&h===t?setTimeout(f,4):a.value!==h&&(a.value=h,g=a.value)};a.addEventListener("input",e);a.addEventListener("change",e);a.addEventListener("blur",e);b.j(f,{i:a})}};b.D.hb.add("textInput");b.b.textinput={preprocess:(a,c,d)=>d("textInput",a)};b.b.value={init:(a,c,d)=>{var g=a.matches("SELECT"),k=a.matches("INPUT");if(!k||"checkbox"!=a.type&&"radio"!=a.type){var t=new Set,e=d.get("valueUpdate"),f=null;e&&("string"==typeof e?t.add(e):e.forEach(q=>t.add(q)),t.delete("change"));var h=()=>{f=null;var q=
|
|
|
|
|
c(),l=b.v.L(a);b.D.jb(q,d,"value",l)};t.forEach(q=>{var l=h;(q||"").startsWith("after")&&(l=()=>{f=b.v.L(a);setTimeout(h,0)},q=q.substring(5));a.addEventListener(q,l)});var r=k&&"file"==a.type?()=>{var q=b.a.f(c());null==q||""===q?a.value="":b.l.M(h)}:()=>{var q=b.a.f(c()),l=b.v.L(a);if(null!==f&&q===f)setTimeout(r,0);else if(q!==l||void 0===l)g?(l=d.get("valueAllowUnset"),b.v.Ka(a,q,l),l||q===b.v.L(a)||b.l.M(h)):b.v.Ka(a,q)};if(g){var p;b.g.subscribe(a,b.g.A,()=>{p?d.get("valueAllowUnset")?r():h():
|
|
|
|
|
(a.addEventListener("change",h),p=b.j(r,{i:a}))},null,{notifyImmediately:!0})}else a.addEventListener("change",h),b.j(r,{i:a})}else b.rb(a,{checkedValue:c})},update:()=>{}};b.D.hb.add("value");b.b.visible={update:(a,c)=>{c=b.a.f(c());var d="none"!=a.style.display;c&&!d?a.style.display="":d&&!c&&(a.style.display="none")}};b.b.hidden={update:(a,c)=>a.hidden=!!b.a.f(c())};(function(a){b.b[a]={init:function(c,d,g,k,t){return b.b.event.init.call(this,c,()=>({[a]:d()}),g,k,t)}}})("click");(()=>{let a=b.a.c.U();
|
|
|
|
|
class c{constructor(g){this.Sa=g}Ga(...g){let k=this.Sa;if(!g.length)return b.a.c.get(k,a)||(11===this.B?k.content:1===this.B?k:void 0);b.a.c.set(k,a,g[0])}}class d extends c{constructor(g){super(g);g&&(this.B=g.matches("TEMPLATE")&&g.content?g.content.nodeType:1)}}b.Ha={Sa:d,Ma:c}})();(()=>{function a(e,f){if(e.length){var h=e[0],r=h.parentNode;g(h,e[e.length-1],p=>{1!==p.nodeType&&8!==p.nodeType||b.sb(f,p)});b.a.ya(e,r)}}function c(e,f,h,r){var p=(e&&(e.nodeType?e:0<e.length?e[0]:null)||h||{}).ownerDocument;
|
|
|
|
|
if("string"==typeof h){p=p||L;p=p.getElementById(h);if(!p)throw Error("Cannot find template with ID "+h);h=new b.Ha.Sa(p)}else if([1,8].includes(h.nodeType))h=new b.Ha.Ma(h);else throw Error("Unknown template type: "+h);h=(h=h.Ga?h.Ga():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeof h.length||0<h.length&&"number"!=typeof h[0].nodeType)throw Error("Template engine must return an array of DOM nodes");p=!1;switch(f){case "replaceChildren":b.h.sa(e,h);p=!0;break;case "ignoreTargetNode":break;
|
|
|
|
|
default:throw Error("Unknown renderMode: "+f);}p&&(a(h,r),"replaceChildren"==f&&b.g.notify(e,b.g.A));return h}function d(e,f,h){return b.N(e)?e():"function"===typeof e?e(f,h):e}var g=(e,f,h)=>{var r;for(f=b.h.nextSibling(f);e&&(r=e)!==f;)e=b.h.nextSibling(r),h(r,e)};b.nc=function(e,f,h,r){h=h||{};var p=p||"replaceChildren";if(r){var q=r.nodeType?r:0<r.length?r[0]:null;return b.j(()=>{var l=f&&f instanceof b.aa?f:new b.aa(f,null,null,null,{exportDependencies:!0}),n=d(e,l.$data,l);c(r,p,n,l,h)},{oa:()=>
|
|
|
|
|
!q||!b.a.Ua(q),i:q})}console.log("no targetNodeOrNodeArray")};b.oc=(e,f,h,r,p)=>{function q(v,y){b.l.M(b.a.Mb,null,[r,v,m,h,u,y]);b.g.notify(r,b.g.A)}var l,n=h.as,m=(v,y)=>{l=p.createChildContext(v,{as:n,extend:x=>{x.$index=y;n&&(x[n+"Index"]=y)}});v=d(e,v,l);return c(r,"ignoreTargetNode",v,l,h)},u=(v,y)=>{a(y,l);l=null};if(!h.beforeRemove&&b.Fb(f)){q(f.F());var w=f.subscribe(v=>{q(f(),v)},null,"arrayChange");w.i(r);return w}return b.j(()=>{var v=b.a.f(f)||[];"undefined"==typeof v.length&&(v=[v]);
|
|
|
|
|
q(v)},{i:r})};var k=b.a.c.U(),t=b.a.c.U();b.b.template={init:(e,f)=>{f=b.a.f(f());if("string"==typeof f||"name"in f)b.h.pa(e);else if("nodes"in f){f=f.nodes||[];if(b.N(f))throw Error('The "nodes" option must be a plain, non-observable array.');let h=f[0]&&f[0].parentNode;h&&b.a.c.get(h,t)||(h=b.a.Hb(f),b.a.c.set(h,t,!0));(new b.Ha.Ma(e)).Ga(h)}else if(f=b.h.childNodes(e),0<f.length)f=b.a.Hb(f),(new b.Ha.Ma(e)).Ga(f);else throw Error("Anonymous template defined, but no template content was provided");
|
|
|
|
|
return{controlsDescendantBindings:!0}},update:(e,f,h,r,p)=>{var q=f();f=b.a.f(q);h=!0;r=null;"string"==typeof f?f={}:(q="name"in f?f.name:e,"if"in f&&(h=b.a.f(f["if"])),h&&"ifnot"in f&&(h=!b.a.f(f.ifnot)),h&&!q&&(h=!1));"foreach"in f?r=b.oc(q,h&&f.foreach||[],f,e,p):h?(h=p,"data"in f&&(h=p.createChildContext(f.data,{as:f.as,exportDependencies:!0})),r=b.nc(q,h,f,e)):b.h.pa(e);p=r;(f=b.a.c.get(e,k))&&"function"==typeof f.m&&f.m();b.a.c.set(e,k,!p||p.fa&&!p.fa()?void 0:p)}};b.D.Na.template=e=>{e=b.D.kc(e);
|
|
|
|
|
return 1==e.length&&e[0].unknown||b.D.ic(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"};b.h.Z.template=!0})();b.a.Cb=(a,c,d)=>{if(a.length&&c.length){var g,k,t,e,f;for(g=k=0;(!d||g<d)&&(e=a[k]);++k){for(t=0;f=c[t];++t)if(e.value===f.value){e.moved=f.index;f.moved=e.index;c.splice(t,1);g=t=0;break}g+=t}}};b.a.xb=(()=>{function a(c,d,g,k,t){var e=Math.min,f=Math.max,h=[],r,p=c.length,q,l=d.length,n=l-p||1,m=p+l+1,u;for(r=0;r<=p;r++){var w=u;h.push(u=
|
|
|
|
|
[]);var v=e(l,r+n);for(q=f(0,r-1);q<=v;q++)u[q]=q?r?c[r-1]===d[q-1]?w[q-1]:e(w[q]||m,u[q-1]||m)+1:q+1:r+1}e=[];f=[];n=[];r=p;for(q=l;r||q;)l=h[r][q]-1,q&&l===h[r][q-1]?f.push(e[e.length]={status:g,value:d[--q],index:q}):r&&l===h[r-1][q]?n.push(e[e.length]={status:k,value:c[--r],index:r}):(--q,--r,t.sparse||e.push({status:"retained",value:d[q]}));b.a.Cb(n,f,!t.dontLimitMoves&&10*p);return e.reverse()}return function(c,d,g){g="boolean"===typeof g?{dontLimitMoves:g}:g||{};c=c||[];d=d||[];return c.length<
|
|
|
|
|
d.length?a(c,d,"added","deleted",g):a(d,c,"deleted","added",g)}})();(()=>{function a(g,k,t,e,f){var h=[],r=b.j(()=>{var p=k(t,f,b.a.ya(h,g))||[];if(0<h.length){var q=h.nodeType?[h]:h;if(0<q.length){var l=q[0],n=l.parentNode,m;var u=0;for(m=p.length;u<m;u++)n.insertBefore(p[u],l);u=0;for(m=q.length;u<m;u++)b.removeNode(q[u])}e&&b.l.M(e,null,[t,p,f])}h.length=0;h.push(...p)},{i:g,oa:()=>!!h.find(b.a.Ua)});return{J:h,Qa:r.fa()?r:void 0}}var c=b.a.c.U(),d=b.a.c.U();b.a.Mb=(g,k,t,e,f,h)=>{function r(C){x=
|
|
|
|
|
{$:C,Ba:b.Y(m++)};l.push(x)}function p(C){x=q[C];x.Ba(m++);b.a.ya(x.J,g);l.push(x)}k=k||[];"undefined"==typeof k.length&&(k=[k]);e=e||{};var q=b.a.c.get(g,c),l=[],n=0,m=0,u=[],w=[],v=[],y=0;if(q){if(!h||q&&q._countWaitingForRemove)h=Array.prototype.map.call(q,C=>C.$),h=b.a.xb(h,k,{dontLimitMoves:e.dontLimitMoves,sparse:!0});for(let C=0,z,D,F;z=h[C];C++)switch(D=z.moved,F=z.index,z.status){case "deleted":for(;n<F;)p(n++);if(void 0===D){var x=q[n];x.Qa&&(x.Qa.m(),x.Qa=void 0);b.a.ya(x.J,g).length&&
|
|
|
|
|
(e.beforeRemove&&(l.push(x),y++,x.$===d?x=null:v[x.Ba.F()]=x),x&&u.push.apply(u,x.J))}n++;break;case "added":for(;m<F;)p(n++);void 0!==D?(w.push(l.length),p(D)):r(z.value)}for(;m<k.length;)p(n++);l._countWaitingForRemove=y}else k.forEach(r);b.a.c.set(g,c,l);u.forEach(e.beforeRemove?b.ba:b.removeNode);var B,E;y=g.ownerDocument.activeElement;if(w.length)for(;void 0!=(k=w.shift());){x=l[k];for(B=void 0;k;)if((E=l[--k].J)&&E.length){B=E[E.length-1];break}for(n=0;u=x.J[n];B=u,n++)b.h.Eb(g,u,B)}for(k=0;x=
|
|
|
|
|
l[k];k++){x.J||b.a.extend(x,a(g,t,x.$,f,x.Ba));for(n=0;u=x.J[n];B=u,n++)b.h.Eb(g,u,B);!x.ec&&f&&(f(x.$,x.J,x.Ba),x.ec=!0,B=x.J[x.J.length-1])}y&&g.ownerDocument.activeElement!=y&&y.focus();(function(C,z){if(C)for(var D=0,F=z.length;D<F;D++)z[D]&&z[D].J.forEach(I=>C(I,D,z[D].$))})(e.beforeRemove,v);for(k=0;k<v.length;++k)v[k]&&(v[k].$=d)}})();S.ko=P})(this);
|
|
|
|
|
c(),l=b.v.L(a);b.D.jb(q,d,"value",l)};t.forEach(q=>{var l=h;(q||"").startsWith("after")&&(l=()=>{f=b.v.L(a);setTimeout(h,0)},q=q.slice(5));a.addEventListener(q,l)});var r=k&&"file"==a.type?()=>{var q=b.a.f(c());null==q||""===q?a.value="":b.l.M(h)}:()=>{var q=b.a.f(c()),l=b.v.L(a);if(null!==f&&q===f)setTimeout(r,0);else if(q!==l||void 0===l)g?(l=d.get("valueAllowUnset"),b.v.Ka(a,q,l),l||q===b.v.L(a)||b.l.M(h)):b.v.Ka(a,q)};if(g){var p;b.g.subscribe(a,b.g.A,()=>{p?d.get("valueAllowUnset")?r():h():(a.addEventListener("change",
|
|
|
|
|
h),p=b.j(r,{i:a}))},null,{notifyImmediately:!0})}else a.addEventListener("change",h),b.j(r,{i:a})}else b.rb(a,{checkedValue:c})},update:()=>{}};b.D.hb.add("value");b.b.visible={update:(a,c)=>{c=b.a.f(c());var d="none"!=a.style.display;c&&!d?a.style.display="":d&&!c&&(a.style.display="none")}};b.b.hidden={update:(a,c)=>a.hidden=!!b.a.f(c())};(function(a){b.b[a]={init:function(c,d,g,k,t){return b.b.event.init.call(this,c,()=>({[a]:d()}),g,k,t)}}})("click");(()=>{let a=b.a.c.U();class c{constructor(g){this.Sa=
|
|
|
|
|
g}Ga(...g){let k=this.Sa;if(!g.length)return b.a.c.get(k,a)||(11===this.B?k.content:1===this.B?k:void 0);b.a.c.set(k,a,g[0])}}class d extends c{constructor(g){super(g);g&&(this.B=g.matches("TEMPLATE")&&g.content?g.content.nodeType:1)}}b.Ha={Sa:d,Ma:c}})();(()=>{function a(e,f){if(e.length){var h=e[0],r=h.parentNode;g(h,e[e.length-1],p=>{1!==p.nodeType&&8!==p.nodeType||b.sb(f,p)});b.a.ya(e,r)}}function c(e,f,h,r){var p=(e&&(e.nodeType?e:0<e.length?e[0]:null)||h||{}).ownerDocument;if("string"==typeof h){p=
|
|
|
|
|
p||L;p=p.getElementById(h);if(!p)throw Error("Cannot find template with ID "+h);h=new b.Ha.Sa(p)}else if([1,8].includes(h.nodeType))h=new b.Ha.Ma(h);else throw Error("Unknown template type: "+h);h=(h=h.Ga?h.Ga():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeof h.length||0<h.length&&"number"!=typeof h[0].nodeType)throw Error("Template engine must return an array of DOM nodes");p=!1;switch(f){case "replaceChildren":b.h.sa(e,h);p=!0;break;case "ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+
|
|
|
|
|
f);}p&&(a(h,r),"replaceChildren"==f&&b.g.notify(e,b.g.A));return h}function d(e,f,h){return b.N(e)?e():"function"===typeof e?e(f,h):e}var g=(e,f,h)=>{var r;for(f=b.h.nextSibling(f);e&&(r=e)!==f;)e=b.h.nextSibling(r),h(r,e)};b.nc=function(e,f,h,r){h=h||{};var p=p||"replaceChildren";if(r){var q=r.nodeType?r:0<r.length?r[0]:null;return b.j(()=>{var l=f&&f instanceof b.aa?f:new b.aa(f,null,null,null,{exportDependencies:!0}),n=d(e,l.$data,l);c(r,p,n,l,h)},{oa:()=>!q||!b.a.Ua(q),i:q})}console.log("no targetNodeOrNodeArray")};
|
|
|
|
|
b.oc=(e,f,h,r,p)=>{function q(v,y){b.l.M(b.a.Mb,null,[r,v,m,h,u,y]);b.g.notify(r,b.g.A)}var l,n=h.as,m=(v,y)=>{l=p.createChildContext(v,{as:n,extend:x=>{x.$index=y;n&&(x[n+"Index"]=y)}});v=d(e,v,l);return c(r,"ignoreTargetNode",v,l,h)},u=(v,y)=>{a(y,l);l=null};if(!h.beforeRemove&&b.Fb(f)){q(f.F());var w=f.subscribe(v=>{q(f(),v)},null,"arrayChange");w.i(r);return w}return b.j(()=>{var v=b.a.f(f)||[];"undefined"==typeof v.length&&(v=[v]);q(v)},{i:r})};var k=b.a.c.U(),t=b.a.c.U();b.b.template={init:(e,
|
|
|
|
|
f)=>{f=b.a.f(f());if("string"==typeof f||"name"in f)b.h.pa(e);else if("nodes"in f){f=f.nodes||[];if(b.N(f))throw Error('The "nodes" option must be a plain, non-observable array.');let h=f[0]&&f[0].parentNode;h&&b.a.c.get(h,t)||(h=b.a.Hb(f),b.a.c.set(h,t,!0));(new b.Ha.Ma(e)).Ga(h)}else if(f=b.h.childNodes(e),0<f.length)f=b.a.Hb(f),(new b.Ha.Ma(e)).Ga(f);else throw Error("Anonymous template defined, but no template content was provided");return{controlsDescendantBindings:!0}},update:(e,f,h,r,p)=>{var q=
|
|
|
|
|
f();f=b.a.f(q);h=!0;r=null;"string"==typeof f?f={}:(q="name"in f?f.name:e,"if"in f&&(h=b.a.f(f["if"])),h&&"ifnot"in f&&(h=!b.a.f(f.ifnot)),h&&!q&&(h=!1));"foreach"in f?r=b.oc(q,h&&f.foreach||[],f,e,p):h?(h=p,"data"in f&&(h=p.createChildContext(f.data,{as:f.as,exportDependencies:!0})),r=b.nc(q,h,f,e)):b.h.pa(e);p=r;(f=b.a.c.get(e,k))&&"function"==typeof f.m&&f.m();b.a.c.set(e,k,!p||p.fa&&!p.fa()?void 0:p)}};b.D.Na.template=e=>{e=b.D.kc(e);return 1==e.length&&e[0].unknown||b.D.ic(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"};
|
|
|
|
|
b.h.Z.template=!0})();b.a.Cb=(a,c,d)=>{if(a.length&&c.length){var g,k,t,e,f;for(g=k=0;(!d||g<d)&&(e=a[k]);++k){for(t=0;f=c[t];++t)if(e.value===f.value){e.moved=f.index;f.moved=e.index;c.splice(t,1);g=t=0;break}g+=t}}};b.a.xb=(()=>{function a(c,d,g,k,t){var e=Math.min,f=Math.max,h=[],r,p=c.length,q,l=d.length,n=l-p||1,m=p+l+1,u;for(r=0;r<=p;r++){var w=u;h.push(u=[]);var v=e(l,r+n);for(q=f(0,r-1);q<=v;q++)u[q]=q?r?c[r-1]===d[q-1]?w[q-1]:e(w[q]||m,u[q-1]||m)+1:q+1:r+1}e=[];f=[];n=[];r=p;for(q=l;r||q;)l=
|
|
|
|
|
h[r][q]-1,q&&l===h[r][q-1]?f.push(e[e.length]={status:g,value:d[--q],index:q}):r&&l===h[r-1][q]?n.push(e[e.length]={status:k,value:c[--r],index:r}):(--q,--r,t.sparse||e.push({status:"retained",value:d[q]}));b.a.Cb(n,f,!t.dontLimitMoves&&10*p);return e.reverse()}return function(c,d,g){g="boolean"===typeof g?{dontLimitMoves:g}:g||{};c=c||[];d=d||[];return c.length<d.length?a(c,d,"added","deleted",g):a(d,c,"deleted","added",g)}})();(()=>{function a(g,k,t,e,f){var h=[],r=b.j(()=>{var p=k(t,f,b.a.ya(h,
|
|
|
|
|
g))||[];if(0<h.length){var q=h.nodeType?[h]:h;if(0<q.length){var l=q[0],n=l.parentNode,m;var u=0;for(m=p.length;u<m;u++)n.insertBefore(p[u],l);u=0;for(m=q.length;u<m;u++)b.removeNode(q[u])}e&&b.l.M(e,null,[t,p,f])}h.length=0;h.push(...p)},{i:g,oa:()=>!!h.find(b.a.Ua)});return{J:h,Qa:r.fa()?r:void 0}}var c=b.a.c.U(),d=b.a.c.U();b.a.Mb=(g,k,t,e,f,h)=>{function r(C){x={$:C,Ba:b.Y(m++)};l.push(x)}function p(C){x=q[C];x.Ba(m++);b.a.ya(x.J,g);l.push(x)}k=k||[];"undefined"==typeof k.length&&(k=[k]);e=e||
|
|
|
|
|
{};var q=b.a.c.get(g,c),l=[],n=0,m=0,u=[],w=[],v=[],y=0;if(q){if(!h||q&&q._countWaitingForRemove)h=Array.prototype.map.call(q,C=>C.$),h=b.a.xb(h,k,{dontLimitMoves:e.dontLimitMoves,sparse:!0});for(let C=0,z,D,F;z=h[C];C++)switch(D=z.moved,F=z.index,z.status){case "deleted":for(;n<F;)p(n++);if(void 0===D){var x=q[n];x.Qa&&(x.Qa.m(),x.Qa=void 0);b.a.ya(x.J,g).length&&(e.beforeRemove&&(l.push(x),y++,x.$===d?x=null:v[x.Ba.F()]=x),x&&u.push.apply(u,x.J))}n++;break;case "added":for(;m<F;)p(n++);void 0!==
|
|
|
|
|
D?(w.push(l.length),p(D)):r(z.value)}for(;m<k.length;)p(n++);l._countWaitingForRemove=y}else k.forEach(r);b.a.c.set(g,c,l);u.forEach(e.beforeRemove?b.ba:b.removeNode);var B,E;y=g.ownerDocument.activeElement;if(w.length)for(;void 0!=(k=w.shift());){x=l[k];for(B=void 0;k;)if((E=l[--k].J)&&E.length){B=E[E.length-1];break}for(n=0;u=x.J[n];B=u,n++)b.h.Eb(g,u,B)}for(k=0;x=l[k];k++){x.J||b.a.extend(x,a(g,t,x.$,f,x.Ba));for(n=0;u=x.J[n];B=u,n++)b.h.Eb(g,u,B);!x.ec&&f&&(f(x.$,x.J,x.Ba),x.ec=!0,B=x.J[x.J.length-
|
|
|
|
|
1])}y&&g.ownerDocument.activeElement!=y&&y.focus();(function(C,z){if(C)for(var D=0,F=z.length;D<F;D++)z[D]&&z[D].J.forEach(I=>C(I,D,z[D].$))})(e.beforeRemove,v);for(k=0;k<v.length;++k)v[k]&&(v[k].$=d)}})();S.ko=P})(this);
|
|
|
|
|