@tko/build.knockout
Version:
Knockout makes it easier to create rich, responsive UIs with JavaScript
7 lines • 130 kB
JavaScript
// @tko/build.knockout 🥊 4.1.0 IIFE
"use strict";var ko=(()=>{var un=Object.defineProperty;var ns=Object.getOwnPropertyDescriptor;var is=Object.getOwnPropertyNames;var rs=Object.prototype.hasOwnProperty;var Vn=(n,e)=>(e=Symbol[n])?e:Symbol.for("Symbol."+n),Hn=n=>{throw TypeError(n)},Yi=Math.pow,os=(n,e,t)=>e in n?un(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ze=(n,e)=>{for(var t in e)un(n,t,{get:e[t],enumerable:!0})},ss=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of is(e))!rs.call(n,r)&&r!==t&&un(n,r,{get:()=>e[r],enumerable:!(i=ns(e,r))||i.enumerable});return n};var us=n=>ss(un({},"__esModule",{value:!0}),n);var d=(n,e,t)=>os(n,typeof e!="symbol"?e+"":e,t),Zi=(n,e,t)=>e.has(n)||Hn("Cannot "+t);var $n=(n,e,t)=>(Zi(n,e,"read from private field"),t?t.call(n):e.get(n)),er=(n,e,t)=>e.has(n)?Hn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),tr=(n,e,t,i)=>(Zi(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t);var Ge=(n,e,t)=>new Promise((i,r)=>{var o=a=>{try{u(t.next(a))}catch(l){r(l)}},s=a=>{try{u(t.throw(a))}catch(l){r(l)}},u=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,s);u((t=t.apply(n,e)).next())}),as=function(n,e){this[0]=n,this[1]=e};var Me=n=>{var e=n[Vn("asyncIterator")],t=!1,i,r={};return e==null?(e=n[Vn("iterator")](),i=o=>r[o]=s=>e[o](s)):(e=e.call(n),i=o=>r[o]=s=>{if(t){if(t=!1,o==="throw")throw s;return s}return t=!0,{done:!1,value:new as(new Promise(u=>{var a=e[o](s);a instanceof Object||Hn("Object expected"),u(a)}),1)}}),r[Vn("iterator")]=()=>r,i("next"),"throw"in e?i("throw"):r.throw=o=>{throw o},"return"in e&&i("return"),r};var $u={};ze($u,{default:()=>Hu});var{isArray:Ot}=Array;function L(n,e,t){arguments.length>2&&(e=e.bind(t));for(let i=0,r=n.length;i<r;++i)e(n[i],i,n)}function W(n,e){return(Ot(n)?n:[...n]).indexOf(e)}function an(n,e,t){return(Ot(n)?n:[...n]).find(e,t)}function Xe(n,e,t){return arguments.length>2&&(e=e.bind(t)),n===null?[]:Array.from(n,e)}function Ye(n,e){let t=W(n,e);t>0?n.splice(t,1):t===0&&n.shift()}function or(n){let e=new Set;return n===null?[]:(Ot(n)?n:[...n]).filter(t=>e.has(t)?!1:e.add(t))}function Pe(n,e,t){return arguments.length>2&&(e=e.bind(t)),n===null?[]:(Ot(n)?n:[...n]).filter(e)}function Ze(n,e){if(Ot(e))n.push.apply(n,e);else for(let t=0,i=e.length;t<i;t++)n.push(e[t]);return n}function et(n,e,t){let i=W(typeof n.peek=="function"?n.peek():n,e);i<0?t&&n.push(e):t||n.splice(i,1)}function ue(n){return Array.from(n)}function sr(n,e){let t=typeof n=="function"?n():n,i=typeof e=="function"?e():e,r=[];for(let o=t;o<=i;o++)r.push(o);return r}function jn(n,e,t){if(n.length&&e.length){let i,r,o,s,u;for(i=r=0;(!t||i<t)&&(s=n[r]);++r){for(o=0;u=e[o];++o)if(s.value===u.value){s.moved=u.index,u.moved=s.index,e.splice(o,1),i=o=0;break}i+=o}}}var nr="added",ir="deleted";function tt(n,e,t){return t=typeof t=="boolean"?{dontLimitMoves:t}:t||{},n=n||[],e=e||[],n.length<e.length?rr(n,e,nr,ir,t):rr(e,n,ir,nr,t)}function rr(n,e,t,i,r){let o=Math.min,s=Math.max,u=new Array,a,l=n.length,p,f=e.length,y=f-l||1,g=l+f+1,x,N,h,O;for(a=0;a<=l;a++)for(N=x,u.push(x=new Array),h=o(f,a+y),O=s(0,a-1),p=O;p<=h;p++)if(!p)x[p]=a+1;else if(!a)x[p]=p+1;else if(n[a-1]===e[p-1])x[p]=N[p-1];else{let k=N[p]||g,P=x[p-1]||g;x[p]=o(k,P)+1}let M=new Array,b,w=new Array,v=new Array;for(a=l,p=f;a||p;)b=u[a][p]-1,p&&b===u[a][p-1]?w.push(M[M.length]={status:t,value:e[--p],index:p}):a&&b===u[a-1][p]?v.push(M[M.length]={status:i,value:n[--a],index:a}):(--p,--a,r!=null&&r.sparse||M.push({status:"retained",value:e[p]}));return jn(v,w,!r.dontLimitMoves&&l*10),M.reverse()}var ln=class{constructor(){d(this,"bindingStringPreparsers",[]);d(this,"knockoutInstance",null);d(this,"deferUpdates",!1);d(this,"useOnlyNativeEvents",!0);d(this,"useTemplateTag",!0);d(this,"protoProperty","__ko_proto__");d(this,"defaultBindingAttribute","data-bind");d(this,"allowVirtualElements",!0);d(this,"bindingGlobals",Object.create(null));d(this,"bindingProviderInstance");d(this,"createChildContextWithAs",!1);d(this,"disableJQueryUsage",!1);d(this,"_jQuery");d(this,"Promise",globalThis.Promise);d(this,"taskScheduler",null);d(this,"debug",!1);d(this,"templateSizeLimit",4096);d(this,"allowScriptTagsInTemplates",!1);d(this,"_sanitizeWarningLogged",!1);d(this,"global",globalThis);d(this,"document",globalThis.document);d(this,"filters",{});d(this,"includeDestroyed",!1);d(this,"foreachHidesDestroyed",!1)}get jQuery(){var e;if(!this.disableJQueryUsage)return(e=this._jQuery)!=null?e:globalThis.jQuery}set jQuery(e){e?(this._jQuery=e,this.disableJQueryUsage=!1):(this.disableJQueryUsage=!0,this._jQuery=void 0)}sanitizeHtmlTemplate(e){return this._sanitizeWarningLogged||(console.warn("WARNING -- You don't have a HTML sanitizer configured. Please configure options.sanitizeHtmlTemplate to avoid XSS vulnerabilities."),this._sanitizeWarningLogged=!0),e}onError(e,t=!0){if(t)throw e;return e}set(e,t){this[e]=t}getBindingHandler(e){return null}cleanExternalData(e,t){}},ur=new ln;function kt(n,e){var i;let t=e.default;Object.defineProperty(ur,n,{get(){return t},set(r){var o;t=r,(o=e.set)==null||o.call(e,r)},enumerable:!0,configurable:!0}),(i=e.set)==null||i.call(e,t)}var c=ur;function Wn(n){return c.onError?(...e)=>{try{return n(...e)}catch(t){c.onError(t)}}:n}function Un(n){ae(function(){throw n},0)}function ae(n,e){return setTimeout(Wn(n),e)}function dn(n,e){let t;return function(...i){t||(t=ae(function(){t=void 0,n(...i)},e))}}function cn(n,e){let t;return function(...i){clearTimeout(t),t=ae(()=>n(...i),e)}}function ar(n){return Symbol(n)}function G(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function _t(n){return n===null?!1:typeof n=="object"||typeof n=="function"}function H(n,e){if(e)for(let t of Object.keys(e))G(e,t)&&(n[t]=e[t]);return n}function R(n,e){for(let t in n)G(n,t)&&e(t,n[t])}function fe(n,e,t){if(!n)return n;arguments.length>2&&(e=e.bind(t));let i={};for(let r in n)G(n,r)&&(i[r]=e(n[r],r,n));return i}function qn(n,e){return G(n,e)?n[e]:void 0}function Kn(n,e){if(e||(e=new Array),!n||typeof n!="object"||n.constructor!==Object||e.indexOf(n)!==-1)return n;e.push(n);let t={};for(let i in n)G(n,i)&&(t[i]=Kn(n[i],e));return t}function lr(n){let e=new Set;return JSON.stringify(n,(t,i)=>e.has(i)?"...":(typeof i=="object"&&e.add(i),i))}function Qn(n){return _t(n)&&typeof n.then=="function"}function dr(n){if(typeof n=="string"){let e=n.trim();if(e)return JSON.parse(e)}return null}var ls=/\S+/g;function nt(n,e,t){if(!e)return;let i=e.match(ls);if(!i)return;let r=t?"add":"remove";for(let o of i)n.classList[r](o)}function Jn(n,e){if(n===e)return!0;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(e.contains)return e.contains(n.nodeType!==Node.ELEMENT_NODE?n.parentNode:n);if(e.compareDocumentPosition)return(e.compareDocumentPosition(n)&16)==16;let t=n;for(;t&&t!=e;)t=t.parentNode;return!!t}function It(n){return Jn(n,n.ownerDocument.documentElement)}function cr(n){return!!an(n,It)}function V(n){return n&&n.tagName&&n.tagName.toLowerCase()}function pr(n){return window.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&n.nodeType===Node.ELEMENT_NODE}function zn(n){return window.DocumentFragment?n instanceof DocumentFragment:n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE}var Gn={},fr={};Gn.UIEvents=["keyup","keydown","keypress"];Gn.MouseEvents=["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave"];R(Gn,function(n,e){if(e.length)for(let t=0,i=e.length;t<i;t++)fr[e[t]]=n});function ds(n,e){if(V(n)!=="input"||!n.type||e.toLowerCase()!="click")return!1;let t=n.type;return t=="checkbox"||t=="radio"}function Q(n,e,t,i=!1){let r=Wn(t),o=!!i,s=c.jQuery;if(!c.useOnlyNativeEvents&&!o&&s)s(n).on(e,r);else if(typeof n.addEventListener=="function")n.addEventListener(e,r,i);else throw new Error("Browser doesn't support addEventListener")}function cs(n){return typeof n.click=="function"}function Re(n,e){if(!(n&&n.nodeType))throw new Error("element must be a DOM node when calling triggerEvent");let t=ds(n,e);if(!c.useOnlyNativeEvents&&c.jQuery&&!t){c.jQuery(n).trigger(e);return}if(typeof n.dispatchEvent!="function"){if(t&&cs(n)){n.click();return}throw new Error("The supplied element doesn't support dispatchEvent")}let i=fr[e]||"HTMLEvents",r=c.global,o;i==="MouseEvents"&&typeof MouseEvent=="function"?o=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:r,relatedTarget:n}):i==="UIEvents"&&typeof KeyboardEvent=="function"?o=new KeyboardEvent(e,{bubbles:!0,cancelable:!0,view:r}):o=new Event(e,{bubbles:!0,cancelable:!0}),n.dispatchEvent(o)}var A={};ze(A,{clear:()=>Zn,get:()=>Le,getOrSet:()=>hs,nextKey:()=>Mt,set:()=>Ce});var ps=new Date().getTime(),fs=`__ko__${ps}`,pn=Symbol("Knockout data");var ms=0;function Xn(n){return n!=="__proto__"&&n!=="constructor"&&n!=="prototype"}function Yn(n,e){let t=n[pn];return!t&&e&&(t=n[pn]={}),t}function Zn(n){return n[pn]?(delete n[pn],!0):!1}function Mt(){return ms+++fs}function Le(n,e){if(!Xn(e))throw new Error("Unsafe key for DOM data: "+e);let t=Yn(n,!1);return t&&t[e]}function Ce(n,e,t){if(!Xn(e))throw new Error("Unsafe key for DOM data: "+e);let i=Yn(n,t!==void 0);i&&(i[e]=t)}function hs(n,e,t){if(!Xn(e))throw new Error("Unsafe key for DOM data: "+e);let i=Yn(n,!0);return i[e]||(i[e]=t)}var ei=Mt(),gs={1:!0,8:!0,9:!0},mr={1:!0,9:!0};function ti(n,e){let t=Le(n,ei);return t===void 0&&e&&(t=new Array,Ce(n,ei,t)),t}function ys(n){Ce(n,ei,void 0)}function hr(n){let e=ti(n,!1);if(e){e=e.slice(0);for(let t=0;t<e.length;t++)e[t](n)}Zn(n);for(let t=0,i=it.length;t<i;++t)it[t](n);c.cleanExternalData&&c.cleanExternalData(n),mr[n.nodeType]&&gr(n.childNodes,!0)}function gr(n,e){let t=new Array,i;for(let r=0;r<n.length;r++)if((!e||n[r].nodeType===Node.COMMENT_NODE)&&(hr(t[t.length]=i=n[r]),n[r]!==i))for(;r--&&W(t,n[r])===-1;);}function xe(n,e){if(typeof e!="function")throw new Error("Callback must be a function");ti(n,!0).push(e)}function rt(n,e){let t=ti(n,!1);t&&(Ye(t,e),t.length===0&&ys(n))}function J(n){return gs[n.nodeType]&&(hr(n),mr[n.nodeType]&&n instanceof Element&&gr(n.getElementsByTagName("*"))),n}function me(n){n&&(J(n),n.parentNode&&n.parentNode.removeChild(n))}var it=new Array;function yr(n){it.push(n)}function br(n){let e=it.indexOf(n);e>=0&&it.splice(e,1)}function bs(n){let e=c.jQuery?c.jQuery.cleanData:null;e&&e([n])}it.push(bs);function Pt(n){let e=ue(n),i=(e[0]&&e[0].ownerDocument||document).createElement("div");for(let r=0,o=e.length;r<o;r++)i.appendChild(J(e[r]));return i}function Ae(n,e){let t=new Array;for(let i=0;i<n.length;i++){let r=n[i].cloneNode(!0);t.push(e?J(r):r)}return t}function Er(n,e){if(Rt(n),e)for(let t=0;t<e.length;t++)n.appendChild(e[t])}function fn(n,e){let t=Array.isArray(n)?n:[n];if(t.length>0){let i=t[0],r=i.parentNode;for(let o=0;o<e.length;o++)r==null||r.insertBefore(e[o],i);for(let o=0;o<t.length;o++)me(t[o])}}function Rt(n){for(;n.firstChild;)me(n.firstChild)}function Ve(n,e){if(n.length){for(e=e.nodeType===Node.COMMENT_NODE&&e.parentNode||e;n.length&&n[0].parentNode!==e;)n.splice(0,1);for(;n.length>1&&n[n.length-1].parentNode!==e;)n.length--;if(n.length>1){let t=n[0],i=n[n.length-1];for(n.length=0;t!==i;)n.push(t),t=t.nextSibling;n.push(i)}}return n}function mn(n,e){n.selected=e}var C={};ze(C,{allowedBindings:()=>As,childNodes:()=>vr,emptyNode:()=>hn,endCommentRegex:()=>Cr,firstChild:()=>yn,getVirtualChildren:()=>ii,hasBindingValue:()=>vs,insertAfter:()=>Ds,isEndComment:()=>Fe,isStartComment:()=>ne,lastChild:()=>Ts,nextSibling:()=>bn,normaliseVirtualElementDomStructure:()=>Ns,prepend:()=>Dr,previousSibling:()=>Bs,setDomNodeChildren:()=>gn,startCommentRegex:()=>ni,virtualNodeBindingValue:()=>Fs});var ni=/^\s*ko(?:\s+([\s\S]+))?\s*$/,Cr=/^\s*\/ko\s*$/,Es={ul:!0,ol:!0};function ne(n){return n.nodeType===Node.COMMENT_NODE&&ni.test(n.nodeValue)}function Fe(n){return n.nodeType===Node.COMMENT_NODE&&Cr.test(n.nodeValue)}function Cs(n){return Fe(n)&&!Le(n,xr)}var xr="__ko_matchedEndComment__";function ii(n,e){let t=n,i=1,r=new Array;for(;t=t.nextSibling;){if(Fe(t)&&(Ce(t,xr,!0),i--,i===0))return r;r.push(t),ne(t)&&i++}if(!e)throw new Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function Ar(n,e){let t=ii(n,e);return t?t.length>0?t[t.length-1].nextSibling:n.nextSibling:null}function xs(n){let e=n.firstChild,t=null;if(e)do if(t)t.push(e);else if(ne(e)){let i=Ar(e,!0);i?e=i:t=[e]}else Fe(e)&&(t=[e]);while(e=e.nextSibling);return t}var As=Object.create(null),vs=ne;function vr(n){return ne(n)?ii(n):n.childNodes}function hn(n){if(!ne(n))Rt(n);else{let e=vr(n);for(let t=0,i=e.length;t<i;t++)me(e[t])}}function gn(n,e){if(!ne(n))Er(n,e);else{hn(n);let t=n.nextSibling;if(t&&t.parentNode){let i=t.parentNode;for(let r=0,o=e.length;r<o;++r)i.insertBefore(e[r],t)}}}function Dr(n,e){var t;ne(n)?(t=n.parentNode)==null||t.insertBefore(e,n.nextSibling):n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)}function Ds(n,e,t){var i;t?ne(n)?(i=n.parentNode)==null||i.insertBefore(e,t.nextSibling):t.nextSibling?n.insertBefore(e,t.nextSibling):n.appendChild(e):Dr(n,e)}function yn(n){if(!ne(n)){if(n.firstChild&&Fe(n.firstChild))throw new Error("Found invalid end comment, as the first child of "+n.outerHTML);return n.firstChild}return!n.nextSibling||Fe(n.nextSibling)?null:n.nextSibling}function Ts(n){let e=yn(n);if(!e)return null;let t;do t=e;while(e=bn(e));return t}function bn(n){if(ne(n)&&(n=Ar(n)),n.nextSibling&&Fe(n.nextSibling)){if(Cs(n.nextSibling))throw Error("Found end comment without a matching opening comment, as next sibling of "+n.outerHTML);return null}else return n.nextSibling}function Bs(n){let e=0;do if(n.nodeType===Node.COMMENT_NODE)if(ne(n)){if(--e===0)return n}else Fe(n)&&e++;else if(e===0)return n;while(n=n.previousSibling)}function Fs(n){let e=n.nodeValue.match(ni);return e?e[1]:null}function Ns(n){if(!Es[V(n)])return;let e=n.firstChild;if(e)do if(e.nodeType===Node.ELEMENT_NODE){let t=xs(e);if(t){let i=e.nextSibling;for(let r=0;r<t.length;r++)i?n.insertBefore(t[r],i):n.appendChild(t[r])}}while(e=e.nextSibling)}var Tr=c.useTemplateTag&&c.document&&"content"in c.document.createElement("template");function ws(n,e){e||(e=document);let t=e.createElement("div");return t.innerHTML=n,ue(t.childNodes)}function Ss(n,e){e||(e=document);let t=e.createElement("template");return t.innerHTML=n,ue(t.content.childNodes)}function Os(n,e){let t=c.jQuery;return t?t.parseHTML(n,e)||[]:[]}function le(n,e){let t=Br(n);return Tr?Ss(t,e):c.jQuery?Os(t,e):ws(t,e)}var ks=/<script\b[^>]*>([\s\S]*?)<\/script[^>]*>/i;function Br(n){if(!n)return"";if(c.templateSizeLimit>0&&n.length>c.templateSizeLimit)throw new Error("Template is too long. Please configure the 'templateSizeLimit'");if(!c.allowScriptTagsInTemplates&&ks.test(n))throw new Error("Script-tag in template detected.");return c.sanitizeHtmlTemplate(n)}function Fr(n,e){let t=le(n,e);return t.length&&t[0].parentElement||Pt(t)}function ot(n,e){if(Rt(n),typeof e=="function"&&(e=e()),e!=null){typeof e!="string"&&(e=e.toString());let t=c.jQuery;if(t&&!Tr){let i=Br(e);t(n).html(i)}else{let i;if(n.ownerDocument?i=le(e,n.ownerDocument):i=le(e),n.nodeType===Node.COMMENT_NODE)e===null?hn(n):gn(n,i);else for(let r=0;r<i.length;r++)n.appendChild(i[r])}}}function He(n,e){let t=typeof e=="function"?e():e;t==null&&(t="");let i=yn(n);!i||i.nodeType!==Node.TEXT_NODE||bn(i)?gn(n,[n.ownerDocument.createTextNode(t)]):i.data=t}var En=Symbol("Knockout selectExtensions hasDomDataProperty"),_={optionValueDomDataKey:Mt(),readValue:function(n){switch(V(n)){case"option":return n[En]===!0?Le(n,_.optionValueDomDataKey):n.value;case"select":{let e=n;return e.selectedIndex>=0?_.readValue(e.options[e.selectedIndex]):void 0}default:return n.value}},writeValue:function(n,e,t){switch(V(n)){case"option":if(typeof e=="string")Ce(n,_.optionValueDomDataKey,void 0),En in n&&delete n[En],n.value=e;else{let i=n;Ce(n,_.optionValueDomDataKey,e),i[En]=!0,i.value=typeof e=="number"?e:""}break;case"select":{(e===""||e===null)&&(e=void 0);let i=-1,r=n;for(let o=0,s=r.options.length,u;o<s;++o){u=_.readValue(r.options[o]);let a=u===e,l=u===""&&e===void 0,p=typeof e=="number"&&Number(u)===e;if(a||l||p){i=o;break}}(t||i>=0||e===void 0&&r.size>1)&&(r.selectedIndex=i)}break;default:e==null&&(e=""),n.value=e;break}}};var $e={};ze($e,{memoize:()=>Is,parseMemoText:()=>Or,unmemoize:()=>Sr,unmemoizeDomNodeAndDescendants:()=>Ms});var ri={};function Nr(){return((1+Math.random())*4294967296|0).toString(16).substring(1)}function _s(){return Nr()+Nr()}function wr(n,e){if(n){if(n.nodeType===Node.COMMENT_NODE){let i=Or(n.nodeValue);i!=null&&e.push({domNode:n,memoId:i})}else if(n.nodeType===Node.ELEMENT_NODE)for(let t=0,i=n.childNodes,r=i.length;t<r;t++)wr(i[t],e)}}function Is(n){if(typeof n!="function")throw new Error("You can only pass a function to memoization.memoize()");let e=_s();return ri[e]=n,"<!--[ko_memo:"+e+"]-->"}function Sr(n,e){let t=ri[n];if(t===void 0)throw new Error("Couldn't find any memo with ID "+n+". Perhaps it's already been unmemoized.");try{return t.apply(null,e||[]),!0}finally{delete ri[n]}}function Ms(n,e){let t=new Array;wr(n,t);for(let i=0,r=t.length;i<r;i++){let o=t[i].domNode,s=[o];e&&Ze(s,e),Sr(t[i].memoId,s),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}}function Or(n){if(!n)return null;let e=n.match(/^\[ko_memo\:(.*?)\]$/);return e?e[1]:null}var ge={};ze(ge,{cancel:()=>Vs,resetForTesting:()=>Hs,runEarly:()=>Ir,schedule:()=>Ls});var Lt=new Array,ie=0,_r=1,Ne=0,he=c.global,kr;he&&typeof he.queueMicrotask=="function"?c.taskScheduler=n=>he.queueMicrotask(n):he!=null&&he.MutationObserver&&he.document&&!((kr=he.navigator)!=null&&kr.standalone)?c.taskScheduler=(function(){let n=null,e=!1,t=he.document.createElement("div");return new he.MutationObserver(function(){let i=n;n=null,i==null||i()}).observe(t,{attributes:!0}),function(i){n=i,e=!e,t.setAttribute("data-task-scheduler",e?"1":"0")}})():c.taskScheduler=n=>setTimeout(n,0);function Ir(){if(ie){let n=ie,e=0;for(let t;Ne<ie;)if(t=Lt[Ne++]){if(Ne>n){if(++e>=5e3){Ne=ie,Un(Error("'Too much recursion' after processing "+e+" task groups."));break}n=ie}try{t()}catch(i){Un(i)}}}}function Ps(){Ir(),Ne=ie=Lt.length=0}function Rs(){c.taskScheduler(Ps)}function Ls(n){return ie||Rs(),Lt[ie++]=n,_r++}function Vs(n){let e=n-(_r-ie);e>=Ne&&e<ie&&(Lt[e]=null)}function Hs(){let n=ie-Ne;return Ne=ie=Lt.length=0,n}var D={};ze(D,{begin:()=>Cn,end:()=>xn,getDependencies:()=>qs,getDependenciesCount:()=>Us,ignore:()=>Ws,ignoreDependencies:()=>Ws,isInitial:()=>Ks,registerDependency:()=>si});var oi=Symbol("Knockout Subscribable");function st(n){return n&&n[oi]||!1}var Mr=new Array,re,$s=0;function js(){return++$s}function Cn(n){Mr.push(re),re=n}function xn(){re=Mr.pop()}function si(n){if(re){if(!st(n))throw new Error("Only subscribable things can act as dependencies");re.callback.call(re.callbackTarget,n,n._id||(n._id=js()))}}function Ws(n,e,t){try{return Cn(),n.apply(e,t||[])}finally{xn()}}function Us(){if(re)return re.computed.getDependenciesCount()}function qs(){if(re)return re.computed.getDependencies()}function Ks(){if(re)return re.isInitial}function Vt(n){n._deferUpdates||(n._deferUpdates=!0,n.limit(function(e){let t,i=!1;return function(){if(!i){ge.cancel(t),t=ge.schedule(e);try{i=!0,n.notifySubscribers(void 0,"dirty")}finally{i=!1}}}}))}var Ht=class{constructor(e,t,i){d(this,"_disposeCallback");d(this,"_target");d(this,"_callback");d(this,"_isDisposed");d(this,"_domNodeDisposalCallback");d(this,"_node");this._target=e,this._callback=t.next,this._disposeCallback=i,this._isDisposed=!1,this._domNodeDisposalCallback=null}dispose(){this._domNodeDisposalCallback&&rt(this._node,this._domNodeDisposalCallback),this._isDisposed=!0,this._disposeCallback()}disposeWhenNodeIsRemoved(e){this._node=e,xe(e,this._domNodeDisposalCallback=this.dispose.bind(this))}unsubscribe(){this.dispose()}get closed(){return this._isDisposed}};var Qs={undefined:1,boolean:1,number:1,string:1};function ut(n,e){return n===null||typeof n in Qs?n===e:!1}function ui(n){let e=this;return n&&R(n,function(t,i){let r=ye[t];typeof r=="function"?e=r(e,i)||e:c.onError(new Error("Extender not found: "+t))}),e}function Js(n,e){n.equalityComparer=e=="always"?null:ut}function zs(n,e){if(e!==!0)throw new Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");Vt(n)}function Gs(n,e){let t,i,r;typeof e=="number"?t=e:(t=e.timeout,i=e.method),n._deferUpdates=!1,r=i==="notifyWhenChangesStop"?cn:dn,n.limit(function(o){return r(o,t)})}var ye={notify:Js,deferred:zs,rateLimit:Gs};var X=Symbol("Knockout latest value");Symbol.observable||(Symbol.observable=Symbol.for("@tko/Symbol.observable"));var U=function(){Object.setPrototypeOf(this,An),An.init(this)},ve="change",An={[oi]:!0,[Symbol.observable](){return this},init(n){n._subscriptions={change:[]},n._versionNumber=1},subscribe(n,e,t){let i=typeof n=="object"&&n.next;t=t||ve;let r=i?n:{next:e?n.bind(e):n},o=new Ht(this,r,()=>{Ye(this._subscriptions[t],o),this.afterSubscriptionRemove&&this.afterSubscriptionRemove(t)});return this.beforeSubscriptionAdd&&this.beforeSubscriptionAdd(t),this._subscriptions[t]||(this._subscriptions[t]=new Array),this._subscriptions[t].push(o),i&&X in this&&r.next(this[X]),o},notifySubscribers(n,e){if(e=e||ve,e===ve&&this.updateVersion(),this.hasSubscriptionsForEvent(e)){let t=e===ve&&this._changeSubscriptions||[...this._subscriptions[e]];try{Cn();for(let i=0,r;r=t[i];++i)r._isDisposed||r._callback(n)}finally{xn()}}},getVersion(){return this._versionNumber},hasChanged(n){return this.getVersion()!==n},updateVersion(){++this._versionNumber},hasSubscriptionsForEvent(n){return this._subscriptions[n]&&this._subscriptions[n].length},getSubscriptionsCount(n){if(n)return this._subscriptions[n]&&this._subscriptions[n].length||0;{let e=0;return R(this._subscriptions,function(t,i){t!=="dirty"&&(e+=i.length)}),e}},isDifferent(n,e){return!this.equalityComparer||!this.equalityComparer(n,e)},once(n){let e=this.subscribe(t=>{e.dispose(),n(t)})},when(n,e){let t=this.peek(),i=arguments.length>1,r=typeof n=="function"?n:o=>o===n;return r(t)?c.Promise.resolve(i?e:t):new c.Promise((o,s)=>{let u=this.subscribe(a=>{r(a)&&(u.dispose(),o(i?e:a))})})},yet(n,...e){let t=typeof n=="function"?n:r=>r===n,i=r=>!t(r);return this.when(i,...e)},next(){return new Promise(n=>this.once(n))},toString(){return"[object Object]"},extend:ui};Object.setPrototypeOf(An,Function.prototype);U.fn=An;function B(n){function e(){return arguments.length>0?(e.isDifferent(e[X],arguments[0])&&(e.valueWillMutate(),e[X]=arguments[0],e.valueHasMutated()),this):(si(e),e[X])}return Object.defineProperty(e,"length",{value:void 0}),e[X]=n,U.fn.init(e),Object.setPrototypeOf(e,B.fn),c.deferUpdates&&Vt(e),e}B.fn={equalityComparer:ut,peek(){return this[X]},valueHasMutated(){this.notifySubscribers(this[X],"spectate"),this.notifySubscribers(this[X])},valueWillMutate(){this.notifySubscribers(this[X],"beforeChange")},modify(n,e=!0){this(n(e?this.peek():this()))},isWriteable:!0};function Xs(n,e){!e||e===ve?this._limitChange(n):e==="beforeChange"?this._limitBeforeChange(n):this._origNotifySubscribers(n,e)}U.fn.limit=function(e){let t=this,i=S(t),r="beforeChange",o,s,u,a,l;t._origNotifySubscribers||(t._origNotifySubscribers=t.notifySubscribers,t.notifySubscribers=Xs);let p=e(function(){t._notificationIsPending=!1,i&&a===t&&(a=t._evalIfChanged?t._evalIfChanged():t());let f=s||l&&t.isDifferent(u,a);t._notifyNextChange=l=o=!1,f&&t._origNotifySubscribers(u=a)});Object.assign(t,{_limitChange(f,y){(!y||!t._notificationIsPending)&&(l=!y),t._changeSubscriptions=[...t._subscriptions[ve]],t._notificationIsPending=o=!0,a=f,p()},_limitBeforeChange(f){o||(u=f,t._origNotifySubscribers(f,r))},_notifyNextChangeIfValueIsDifferent(){t.isDifferent(u,t.peek(!0))&&(s=!0)},_recordUpdate(){l=!0}})};Object.setPrototypeOf(B.fn,U.fn);var Pr=B.protoProperty=c.protoProperty;B.fn[Pr]=B;B.observablePrototypes=new Set([B]);function S(n){let e=typeof n=="function"&&n[Pr];if(e&&!B.observablePrototypes.has(e))throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e}function m(n){return S(n)?n():n}function at(n){return S(n)?n.peek():n}function K(n){return S(n)&&n.isWriteable}var lt="arrayChange";function je(n,e){if(n.compareArrayOptions={},e&&typeof e=="object"&&H(n.compareArrayOptions,e),n.compareArrayOptions.sparse=!0,n.cacheDiffForKnownOperation)return;let t=!1,i=null,r,o=0,s,u=n.beforeSubscriptionAdd,a=n.afterSubscriptionRemove;n.beforeSubscriptionAdd=function(f){u&&u.call(n,f),f===lt&&l()},n.afterSubscriptionRemove=function(f){a&&a.call(n,f),f===lt&&!n.hasSubscriptionsForEvent(lt)&&(s&&(n.notifySubscribers=s,s=void 0),r&&r.dispose(),r=null,t=!1)};function l(){if(t)return;t=!0,s=n.notifySubscribers,n.notifySubscribers=function(y,g){return(!g||g===ve)&&++o,s.apply(this,arguments)};let f=new Array().concat(n.peek()===void 0?[]:n.peek());i=null,r=n.subscribe(function(y){let g;y=new Array().concat(y||[]),n.hasSubscriptionsForEvent(lt)&&(g=p(f,y)),f=y,i=null,o=0,g&&g.length&&n.notifySubscribers(g,lt)})}function p(f,y){return(!i||o>1)&&(i=je.compareArrays(f,y,n.compareArrayOptions)),i}n.cacheDiffForKnownOperation=function(f,y,g){if(!t||o)return;let x=new Array,N=f.length,h=g.length,O=0;function M(b,w,v){return x[x.length]={status:b,value:w,index:v}}switch(y){case"push":O=N;case"unshift":for(let b=0;b<h;b++)M("added",g[b],O+b);break;case"pop":O=N-1;case"shift":N&&M("deleted",f[O],O);break;case"splice":{let b=Math.min(Math.max(0,g[0]<0?N+g[0]:g[0]),N),w=h===1?N:Math.min(b+(g[1]||0),N),v=b+h-2,k=Math.max(w,v),P=new Array,j=new Array;for(let te=b,Xi=2;te<k;++te,++Xi)te<w&&j.push(M("deleted",f[te],te)),te<v&&P.push(M("added",g[Xi],te));jn(j,P)}break;default:return}i=x}}je.compareArrays=tt;ye.trackArrayChanges=je;function de(n){if(n=n||[],typeof n!="object"||!("length"in n))throw new Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");let e=Object.setPrototypeOf(B(n),de.fn);return je(e),Object.defineProperty(e,"length",{get:()=>{var t;return(t=e())==null?void 0:t.length}}),e}function $t(n){return S(n)&&typeof n.remove=="function"&&typeof n.push=="function"}de.fn={remove(n){let e=this.peek(),t=new Array,i=typeof n=="function"&&!S(n)?n:function(r){return r===n};for(let r=0;r<e.length;r++){let o=e[r];if(i(o)){if(t.length===0&&this.valueWillMutate(),e[r]!==o)throw Error("Array modified during remove; cannot remove item");t.push(o),e.splice(r,1),r--}}return t.length&&this.valueHasMutated(),t},removeAll(n){if(n===void 0){let e=this.peek(),t=e.slice(0);return this.valueWillMutate(),e.splice(0,e.length),this.valueHasMutated(),t}return n?this.remove(function(e){return W(n,e)>=0}):[]},destroy(n){let e=this.peek(),t=typeof n=="function"&&!S(n)?n:function(i){return i===n};this.valueWillMutate();for(let i=e.length-1;i>=0;i--){let r=e[i];t(r)&&(r._destroy=!0)}this.valueHasMutated()},destroyAll(n){return n===void 0?this.destroy(function(){return!0}):n?this.destroy(function(e){return W(n,e)>=0}):[]},indexOf(n){return W(this(),n)},replace(n,e){let t=this.indexOf(n);t>=0&&(this.valueWillMutate(),this.peek()[t]=e,this.valueHasMutated())},sorted(n){return[...this()].sort(n)},reversed(){return[...this()].reverse()},[Symbol.iterator]:function*(){yield*Me(this())}};Object.setPrototypeOf(de.fn,B.fn);L(["pop","push","reverse","shift","sort","splice","unshift"],function(n){de.fn[n]=function(){let e=this.peek();this.valueWillMutate(),this.cacheDiffForKnownOperation(e,n,arguments);let t=e[n].apply(e,arguments);return this.valueHasMutated(),t===e?this:t}});L(["slice"],function(n){de.fn[n]=function(){let e=this();return e[n].apply(e,arguments)}});de.trackArrayChanges=je;var Ys=10;function dt(n){if(arguments.length==0)throw new Error("When calling ko.toJS, pass the object you want to convert.");return Rr(n,function(e){for(let t=0;S(e)&&t<Ys;t++)e=e();return e})}function ai(n,e,t){let i=dt(n);return JSON.stringify(i,e,t)}function Rr(n,e,t=new Map){if(n=e(n),!(typeof n=="object"&&n!==null&&n!==void 0&&!(n instanceof RegExp)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof Number)&&!(n instanceof Boolean)))return n;let r=n instanceof Array?[]:{};return t.set(n,r),Zs(n,function(o){let s=e(n[o]);switch(typeof s){case"boolean":case"number":case"string":case"function":r[o]=s;break;case"object":case"undefined":{let u=t.get(s);r[o]=u!==void 0?u:Rr(s,e,t)}break}}),r}function Zs(n,e){if(n instanceof Array){for(let t=0;t<n.length;t++)e(t);typeof n.toJSON=="function"&&e("toJSON")}else for(let t in n)e(t)}function li(){}function eu(n,e){for(;typeof e=="function";)e=e();return e}function di(n,e){return n==e}di.precedence=8;function ci(n,e){return n!=e}ci.precedence=8;function pi(n,e){return n===e}pi.precedence=8;function fi(n,e){return n!==e}fi.precedence=8;var E={"@":eu,"#":(n,e)=>()=>m(e),"=>":li,"!":function(e,t){return!t},"!!":function(e,t){return!!t},"++":function(e,t){return++t},"--":function(e,t){return--t},"**":function(e,t){return Yi(e,t)},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return(e||0)-(t||0)},"&-":function(e,t){return-1*t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":di,"!=":ci,"===":pi,"!==":fi,"&":function(e,t){return e&t},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"??":function(e,t){return e!=null?e:t},".":function(e,t){return e==null?void 0:e[t]},"?.":function(e,t){return e==null?void 0:e[t]},"[":function(e,t){return e==null?void 0:e[t]},",":function(e,t){return t},call:function(e,t){return e.apply(null,t)}};E["@"].precedence=21;E["#"].precedence=21;E["."].precedence=17;E["["].precedence=17;E["?."].precedence=17;E["!"].precedence=14;E["!!"].precedence=14;E["++"].precedence=14;E["--"].precedence=14;E["&-"].precedence=14;E["**"].precedence=13;E["%"].precedence=12;E["*"].precedence=12;E["/"].precedence=12;E["+"].precedence=11;E["-"].precedence=11;E["<"].precedence=9;E["<="].precedence=9;E[">"].precedence=9;E[">="].precedence=9;E["=="].precedence=8;E["!="].precedence=8;E["==="].precedence=8;E["!=="].precedence=8;E["&"].precedence=7;E["^"].precedence=6;E["|"].precedence=5;E["&&"].precedence=4;E["||"].precedence=3;E["??"].precedence=3;E["&&"].earlyOut=n=>!n;E["||"].earlyOut=n=>n;E["??"].earlyOut=n=>n!=null;E["=>"].precedence=2;E[","].precedence=1;E.call.precedence=1;kt("strictEquality",{default:!1,set(n){E["=="]=n?pi:di,E["!="]=n?fi:ci}});var Lr=Symbol("Node - Is Expression Or Identifier"),T=class n{constructor(e,t,i){d(this,"lhs");d(this,"op");d(this,"rhs");this.lhs=e,this.op=t,this.rhs=i}static get operators(){return E}get_leaf_value(e,t,i,r){return typeof e=="function"?m(e()):typeof e!="object"||e===null?e:e[n.isExpressionOrIdentifierSymbol]?m(e.get_value(void 0,t,i,r)):e}get_value(e,t,i,r){if(this.op===li)return(...a)=>{let l=t;return this.lhs&&(l=this.lhs.extendContext(t,a)),this.get_leaf_value(this.rhs,l,i,this)};let o=this.get_leaf_value(this.lhs,t,i,this),s=this.op.earlyOut;if(s&&s(o))return o;let u=this.get_leaf_value(this.rhs,t,i,this);return this.op(o,u,t,i)}static get isExpressionOrIdentifierSymbol(){return Lr}get[Lr](){return!0}static value_of(e,t,i,r){return e&&e[n.isExpressionOrIdentifierSymbol]?e.get_value(e,t,i,r):e}static create_root(e,t=!1){let i=new Array,r=new Array;for(let o=0;o<e.length;o+=2){i.push(e[o]);let s=e[o+1],u=(s==null?void 0:s.precedence)||0;for(;r.length&&u<=r[r.length-1].precedence;){let a=i.pop(),l=i.pop();i.push(new n(l,r.pop(),a))}r.push(s)}if(i.length!==1)throw new Error(`unexpected nodes remain in shunting yard output stack: ${i}`);return i[0]}};E["?"]=function(e,t,i,r,o){return T.value_of(e?t.yes:t.no,i,r,o)};E["?"].precedence=4;var we=class{constructor(e){d(this,"nodes");d(this,"root");this.nodes=e,this.root=T.create_root(e)}get_value(e,t,i,r){return this.root||(this.root=T.create_root(this.nodes)),this.root.get_value(e,t,i,r)}};we.prototype[T.isExpressionOrIdentifierSymbol]=!0;var be=class{constructor(e,t){d(this,"parser");d(this,"args");this.parser=e,this.args=t}get_value(e,t,i,r){let o=new Array;for(let s=0,u=this.args.length;s<u;++s)o.push(T.value_of(this.args[s],t,i,r));return o}get[T.isExpressionOrIdentifierSymbol](){return!0}};var Vr=/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Hr=/[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;var q=class n{constructor(e,t,i){d(this,"token");d(this,"dereferences");d(this,"parser");this.token=t,this.dereferences=i,this.parser=e}dereference(e,t,i,r){let o,s=this.dereferences||[],u=t.$data||{},a,l,p;for(l=0,p=s.length;l<p;++l)if(o=T.value_of(s[l],t,i,r),typeof e=="function"&&s[l]instanceof be)e=e.apply(a||u,o),a=e;else{if(e==null)return e;a=e,e=T.value_of(e[o],t,i,r)}return typeof e=="function"&&p>0&&a!==e&&!G(a,o)?e.bind(a):e}get_value(e,t,i,r){let o=e&&!(e instanceof n)?T.value_of(e,t,i,r)[this.token]:t.lookup(this.token,i,r);return this.dereference(o,t,i,r)}assign(e,t,i){K(e[t])?e[t](i):S(e[t])||(e[t]=i)}set_value(e,t,i){let r=t.$data||{},o=this.dereferences||[],s=this.token,u,a,l;if(_t(r)&&s in r)l=r;else if(s in t)l=t;else if(s in i)l=i;else throw new Error("Identifier::set_value -- The property '"+s+"' does not exist on the $data, $context, or globals.");if(a=o.length,a===0){this.assign(l,s,e);return}for(l=l[s],u=0;u<a-1;++u)s=o[u],s instanceof be?l=l():l=l[T.value_of(s)];if(o[u]===!0)throw new Error("Cannot assign a value to a function.");o[u]&&this.assign(l,T.value_of(o[u]),e)}static is_valid_start_char(e){return Vr.test(e)}static is_valid_continue_char(e){return Hr.test(e)}get[T.isExpressionOrIdentifierSymbol](){return!0}};var ct,mi=class mi{constructor(e,t){er(this,ct);t instanceof we&&(t=t.root);try{tr(this,ct,mi.nodeTreeToNames(t))}catch(i){e.error(i)}}extendContext(e,t){if($n(this,ct)){let i={};return $n(this,ct).forEach((r,o)=>{i[r]=t[o]}),e.extend(i)}else return e}get[T.isExpressionOrIdentifierSymbol](){return!0}static nodeTreeToNames(e){let t=new Array;for(;e;)if(e instanceof q)t.push(e.token),e=null;else if(this.isCommaNode(e))t.push(e.rhs.token),e=e.lhs;else throw new Error(`only simple identifiers allowed in lambda parameter list but found ${JSON.stringify(e,null,2)}`);return t.reverse(),t}static isCommaNode(e){return e instanceof T&&e.op===E[","]&&e.rhs instanceof q}};ct=new WeakMap;var jt=mi;var pt=class{constructor(e,t){d(this,"yes");d(this,"no");Object.assign(this,{yes:e,no:t})}get_value(){return this}get[T.isExpressionOrIdentifierSymbol](){return!0}};var $r={"'":"'",'"':'"',"`":"`","\\":"\\","/":"/",$:"$",b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Se=class{constructor(){d(this,"ch");d(this,"at");d(this,"text");d(this,"currentContextGlobals")}white(){let e=this.ch;for(;e&&e<=" ";)e=this.next();return this.comment(e)}comment(e){if(e!=="/")return e;let t=this.at,i=this.lookahead();if(i==="/"){for(;e&&(e=this.next(),!(e===`
`||e==="\r")););e=this.next()}else if(i==="*"){for(;e;)if(e=this.next(),e==="*"&&this.lookahead()==="/"){this.next();break}return e||this.error("Unclosed comment, starting at character "+t),this.next(),this.white()}return e}next(e){return e&&e!==this.ch&&this.error("Expected '"+e+"' but got '"+this.ch+"'"),this.ch=this.text.charAt(this.at),this.at+=1,this.ch}lookahead(){return this.text[this.at]}error(e){throw e instanceof Error?e:this.createError(e)}createError(e){let[t,i]=e.name?[e.name,e.message]:[e,""],r=`
${t} ${i} of ${this.text}
`+Array(this.at).join(" ")+`_/ \u{1F525} \\_
`;return new Error(r)}name(){let e="",t;this.white();let i=this.ch;for((i==="'"||i==='"')&&(t=i,i=this.next());i;){if(t&&i===t)return this.white(),i=this.next(),i!==":"&&i!==","&&this.error("Object name: "+e+" missing closing "+t),e;if(i===":"||i<=" "||i===","||i==="|")return e;e+=i,i=this.next()}return e}number(){let e,t="",i=this.ch;for(i==="-"&&(t="-",i=this.next("-"));i>="0"&&i<="9";)t+=i,i=this.next();if(i===".")for(t+=".",i=this.next();i&&i>="0"&&i<="9";)t+=i,i=this.next();if(i==="e"||i==="E")for(t+=i,i=this.next(),(i==="-"||i==="+")&&(t+=i,i=this.next());i>="0"&&i<="9";)t+=i,i=this.next();if(e=+t,!isFinite(e))c.onError(new Error("Bad number: "+e+" in "+t));else return e}objectAddValue(e,t,i){i&&i[T.isExpressionOrIdentifierSymbol]?Object.defineProperty(e,t,{get:()=>T.value_of(i,...this.currentContextGlobals),enumerable:!0}):Array.isArray(i)?Object.defineProperty(e,t,{get:()=>i.map(r=>T.value_of(r,...this.currentContextGlobals)),enumerable:!0}):e[t]=i}object(){let e,t={},i=this.ch;if(i==="{"){if(this.next("{"),i=this.white(),i==="}")return i=this.next("}"),t;for(;i;){if(i==='"'||i==="'"||i==="`"?e=this.string():e=this.name(),G(t,e)&&this.error('Duplicate key "'+e+'"'),this.white()===":")i=this.next(":"),this.objectAddValue(t,e,this.singleValueExpression());else{let r=new q(this,e,[]);this.objectAddValue(t,e,r)}if(i=this.white(),i==="}")return i=this.next("}"),t;if(this.next(","),i=this.white(),i==="}")return i=this.next("}"),t}}throw this.createError("Bad object")}readString(e){let t="",i=[""],r=E["+"],o,s,u,a=e==="`",l=this.next();for(;l;){if(l===e)return l=this.next(),a&&i.push(r),i.push(t),i;if(l==="\\")if(l=this.next(),l==="u"){for(u=0,s=0;s<4&&(o=parseInt(l=this.next(),16),!!isFinite(o));s+=1)u=u*16+o;t+=String.fromCharCode(u)}else if(typeof $r[l]=="string")t+=$r[l];else break;else a&&l==="$"?(l=this.next(),l==="{"?(this.next("{"),i.push(r),i.push(t),i.push(r),i.push(this.expression()),t=""):t+="$"+l):t+=l;l=this.next()}throw this.createError("Bad string")}string(){var t,i;let e=this.ch;if(e==='"')return(t=this.readString('"'))==null?void 0:t.join("");if(e==="'")return(i=this.readString("'"))==null?void 0:i.join("");if(e==="`")return T.create_root(this.readString("`"));this.error("Bad string")}array(){let e=new Array,t=this.ch;if(t==="["){if(t=this.next("["),this.white(),t==="]")return t=this.next("]"),e;for(;t;){if(e.push(this.singleValueExpression()),t=this.white(),t==="]")return t=this.next("]"),e;this.next(","),t=this.white()}}throw this.createError("Bad array")}value(){this.white();let e=this.ch;switch(e){case"{":return this.object();case"[":return this.array();case'"':case"'":case"`":return this.string();case"-":return this.number();default:return e>="0"&&e<="9"?this.number():this.identifier()}}operator(e){let t="",i,r=this.white(),o=q.is_valid_start_char;for(;r&&!(o(r)||r<=" "||r===""||r==='"'||r==="'"||r==="{"||r==="("||r==="`"||r===")"||r<="9"&&r>="0"||!e.not_an_array&&r==="["||(t+=r,r=this.next(),r==="@"));)o=q.is_valid_continue_char;return t!==""&&(e.prefix&&t==="-"&&(t="&-"),i=E[t],i||this.error("Bad operator: '"+t+"'.")),i}filter(){let e=this.next(),t=new Array,i=function(s){return s},r=this.name();for(c.filters[r]||c.onError(new Error("Cannot find filter by the name of: "+r)),e=this.white();e;){if(e===":"&&(e=this.next(),t.push(this.singleValueExpression("|"))),e==="|"){i=this.filter();break}if(e===",")break;e=this.white()}function o(s,u,a,l,p){let f=[s];for(let y=0,g=t.length;y<g;++y)f.push(T.value_of(t[y],a,l,p));return i(c.filters[r].apply(a,f),u,a,l,p)}return o.precedence=1,o}expression(e=!1,t=!0){let i,r=new Array,o=this.white();for(;o&&(i=this.operator({prefix:!0}),i&&(r.push(void 0),r.push(i),o=this.white()),o==="("?(this.next(),r.push(this.expression()),this.next(")")):r.push(this.value()),o=this.white(),!(o===":"||o==="}"||o==="]"||o===")"||o===""||o==="`"||o==="|"&&e==="|"||o===","&&!t));){if(o==="|"&&this.lookahead()!=="|"&&e){r.push(this.filter()),r.push(void 0);break}if(i=this.operator({not_an_array:!0}),i===E["?"]){this.ternary(r);break}else i===E["."]||i===E["?."]?(r.push(i),r.push(this.member()),i=null):i===E["["]?(r.push(i),r.push(this.expression()),o=this.next("]"),i=null):i===E["=>"]?(r[r.length-1]=new jt(this,r[r.length-1]),r.push(i)):i&&r.push(i);if(o=this.white(),o==="]"||!i&&o==="(")break}if(r.length===0)return;let s=this.dereferences();if(r.length===1&&!s.length)return r[0];for(let u=0,a=s.length;u<a;++u){let l=s[u];l.constructor===be?r.push(E.call):r.push(E["."]),r.push(l)}return new we(r)}singleValueExpression(e=!1){return this.expression(e,!1)}ternary(e){let t=new pt;t.yes=this.singleValueExpression(),this.next(":"),t.no=this.singleValueExpression(),e.push(E["?"]),e.push(t)}funcArguments(){let e=new Array,t=this.next("(");for(;t;){if(t=this.white(),t===")")return this.next(")"),new be(this,e);e.push(this.singleValueExpression()),t=this.white(),t!==")"&&this.next(",")}throw this.createError("Bad arguments to function")}member(){let e="",t=this.white(),i=q.is_valid_start_char;for(;t&&i(t);)e+=t,t=this.next(),i=q.is_valid_continue_char;return e}dereference(){let e,t=this.white();for(;t;){if(t