`),r.querySelectorAll("tr").get(0).childNodes.detach()):(r.html(e),r.childNodes.detach())}}get(e){return e{e.parentNode&&e.parentNode.removeChild(e)}))}querySelectorAll(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)}closest(e){return-1!=e.indexOf("/shadow/")?this._closestDeep(e):this._closest(e)}byId(e,t){let n=[];return t&&(n=n.concat(...new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e))))),n=n.concat(this.querySelectorAll(`[id="${e}"]`)),new A(...n)}byIdDeep(e,t){let n=[];t&&(n=n.concat(new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e)))));let r=this.querySelectorAllDeep(`[id="${e}"]`);return r.length&&n.push(r),new A(...n)}byTagName(e,t,n){var r;let s=[];return t&&(s=new a.Es2019Array(...null!==(r=null==this?void 0:this.rootNode)&&void 0!==r?r:[]).filter((t=>(null==t?void 0:t.tagName)==e)).reduce(((e,t)=>e.concat([t])),s)),n?s.push(this.querySelectorAllDeep(e)):s.push(this.querySelectorAll(e)),new A(...s)}attr(e,t=null){return new f(this,e,t)}style(e,t=null){return new p(this,e,t)}hasClass(e){let t=!1;return this.eachElem((n=>{if(t=n.classList.contains(e),t)return!1})),t}addClass(e){return this.eachElem((t=>t.classList.add(e))),this}removeClass(e){return this.eachElem((t=>t.classList.remove(e))),this}isMultipartCandidate(e=!1){const t="input[type='file']";return this.matchesSelector(t)||(e?this.querySelectorAllDeep(t):this.querySelectorAll(t)).first().isPresent()}html(e){return s.Optional.fromNullable(e).isAbsent()?this.isPresent()?s.Optional.fromNullable(this.innerHTML):s.Optional.absent:(this.innerHTML=e,this)}dispatchEvent(e){return this.eachElem((t=>t.dispatchEvent(e))),this}set innerHTML(e){this.eachElem((t=>t.innerHTML=e))}get innerHTML(){let e=[];return this.eachElem((t=>e.push(t.innerHTML))),e.join("")}set innerHtml(e){this.innerHTML=e}get innerHtml(){return this.innerHTML}filterSelector(e){let t=[];return this.eachElem((n=>{this._mozMatchesSelector(n,e)&&t.push(n)})),new A(...t)}matchesSelector(e){return this.asArray.some((t=>this._mozMatchesSelector(t.getAsElem(0).value,e)))}getIf(...e){let t=this.childNodes;for(let n=0;ne){return this.rootNode.length>1&&e(this.rootNode[0],0),this}lastElem(e=e=>e){return this.rootNode.length>1&&e(this.rootNode[this.rootNode.length-1],0),this}each(e){return new a.Es2019Array(...this.rootNode).forEach(((t,n)=>{if(null!=t)return e(A.byId(t),n)})),this}replace(e){return this.each((t=>{let n=t.getAsElem(0).value,r=n.parentElement,s=n.nextElementSibling,l=n.previousElementSibling;null!=s?new A(s).insertBefore(e):l?new A(l).insertAfter(e):new A(r).append(e),t.delete()})),e}first(e=e=>e){return this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this}last(e=e=>e){if(this.rootNode.length>=1){let t=this.get(this.rootNode.length-1);return e(t,0),t}return this}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),new A(...t)}globalEval(e,t){var n,r,s;const l=null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:null===(s=document.documentElement.getElementsByTagName("head"))||void 0===s?void 0:s[0],o=document.createElement("script");t&&(void 0!==(null==o?void 0:o.nonce)?o.nonce=t:o.setAttribute("nonce",t)),o.type="text/javascript",o.innerHTML=e;let i=l.appendChild(o);return l.removeChild(i),this}globalEvalSticky(e,t){let n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");return this.applyNonce(t,r),r.type="text/javascript",r.innerHTML=e,n.appendChild(r),this}detach(){return this.eachElem((e=>{e.parentNode.removeChild(e)})),this}appendTo(e){return o.Lang.isString(e)?(this.appendTo(A.querySelectorAll(e)),this):(this.eachElem((t=>{e.getAsElem(0).orElseLazy((()=>({appendChild:()=>{}}))).value.appendChild(t)})),this)}loadScriptEval(e,t=0,n){return this._loadScriptEval(!1,e,t,n),this}loadScriptEvalSticky(e,t=0,n){return this._loadScriptEval(!0,e,t,n),this}insertAfter(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{s?(r.insertBefore(e,s),n=s):r.appendChild(e)}))}}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}insertBefore(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{r.insertBefore(e,n)}))}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}orElse(...e){return this.isPresent()?this:new A(...e)}orElseLazy(e){return this.isPresent()?this:new A(e())}allParents(e){let t=this.parent(),n=[];for(;t.isPresent();)t.matchesSelector(e)&&n.push(t),t=t.parent();return new A(...n)}firstParent(e){let t=this.parent();for(;t.isPresent();){if(t.matchesSelector(e))return t;t=t.parent()}return A.absent}parentsWhileMatch(e){const t=[];let n=this.parent().filter((t=>t.matchesSelector(e)));for(;n.isPresent();)t.push(n),n=n.parent().filter((t=>t.matchesSelector(e)));return new A(...t)}parent(){let e=[];return this.eachElem((t=>{let n=t.parentNode||t.host||t.shadowRoot;n&&-1==e.indexOf(n)&&e.push(n)})),new A(...e)}copyAttrs(e){return e.eachElem((e=>{let t=h(e.attributes);for(let e of t){let t=e.value,n=e.name;switch(n){case"id":this.id.value=t;break;case"disabled":this.resolveAttributeHolder("disabled").disabled=t;break;case"checked":this.resolveAttributeHolder("checked").checked=t;break;case"nonce":break;default:this.attr(n).value=t}}})),e.nonce.isPresent((()=>{this.nonce.value=e.nonce.value})),this}outerHTML(e,t,n,r=!1){var s;if(this.isAbsent())return;let l=null===(s=null===document||void 0===document?void 0:document.activeElement)||void 0===s?void 0:s.id,o=l?A.getCaretPosition(document.activeElement):null,i=A.fromMarkup(e),a=[],u=this.getAsElem(0).value,c=i.get(0),d=u.parentNode,h=c.getAsElem(0).value;if(d.replaceChild(h,u),a.push(new A(h)),this.isAbsent())return this;let E=[];i.length>1&&(E=E.concat(...i.values.slice(1)),a.push(A.byId(h).insertAfter(new A(...E)))),t&&this.runScripts(),n&&this.runCss();let v=A.byId(l);return l&&v.isPresent()&&null!=o&&void 0!==o&&v.eachElem((e=>A.setCaretPosition(e,o))),i}runScripts(e=!1,t=T){const n=t=>{if(t.length){let n=[];new a.Es2019Array(...t).forEach((t=>{t.nonce?(n.length&&(this.globalEval(n.join("\n")),n.length=0),e?this.globalEvalSticky(t.evalText,t.nonce):this.globalEval(t.evalText,t.nonce)):n.push(t.evalText)})),n.length&&(e?this.globalEvalSticky(n.join("\n")):this.globalEval(n.join("\n")),n.length=0),t=[]}return t};let r=[],s=["","script","text/javascript","text/ecmascript","ecmascript"],l=l=>{var o,i,a,c;let h=l.tagName,E=(null!==(o=null==l?void 0:l.type)&&void 0!==o?o:"").toLowerCase();if(h&&d(h,"script")&&-1!=s.indexOf(E)){let s=l.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0){let o=null!==(i=null==l?void 0:l.nonce)&&void 0!==i?i:l.getAttribute("nonce").value;t(s)&&(r=n(r),e?o?this.loadScriptEvalSticky(s,0,o):this.loadScriptEvalSticky(s,0):o?this.loadScriptEval(s,0,o):this.loadScriptEval(s,0))}else{let e=u(l.text||l.innerText||l.innerHTML),t=!0;for(;t;)t=!1,"\x3c!--"==e.substring(0,4)&&(e=e.substring(4),t=!0),"//\x3c!--"==e.substring(0,4)&&(e=e.substring(6),t=!0),"//[...e.values])).sort(((e,t)=>t.compareDocumentPosition(e)-3)).forEach((e=>l(e))),n(r)}catch(e){console&&console.error&&console.error(e.message||e.description)}finally{l=null}return this}runCss(){return new A(this.filterSelector("link, style"),this.querySelectorAll("link, style")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>e.compareDocumentPosition(t)-3)).forEach((e=>(e=>{const t=A.byId(e),n=t.tagName.orElse("").value;let r=A.fromMarkup(`<${n.toLowerCase()} />`);r=r.copyAttrs(t),r.innerHTML=e.innerHTML,t.replace(r)})(e))),this}click(){return this.fireEvent("click"),this}addEventListener(e,t,n){return this.eachElem((r=>r.addEventListener(e,t,n))),this}removeEventListener(e,t,n){return this.eachElem((r=>r.removeEventListener(e,t,n))),this}fireEvent(e,t={}){let n={bubbles:!0,cancelable:!0};n=(0,E.simpleShallowMerge)(n,t),this.eachElem((t=>{let r;if(t.ownerDocument)r=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);r=t}if(t.dispatchEvent){let r=Event;switch(e){case"click":case"mousedown":case"mouseup":case"mousemove":r=this.global().MouseEvent;break;case"keyup":case"keydown":case"keypress":r=this.global().KeyboardEvent;break;case"focus":case"change":case"blur":case"select":break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}let s=new r(e,n);s.synthetic=!0,t.dispatchEvent(s)}else if(t.fireEvent){let s=r.createEventObject();s.synthetic=!0,Object.keys(n).forEach((e=>s[e]=n[e])),t.fireEvent("on"+e,s)}}))}textContent(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({textContent:""}))).value.textContent||"")).reduce(((t,n)=>[t,e,n].join("")),"")}innerText(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({innerText:""}))).value.innerText||"")).reduce(((t,n)=>[t,n].join(e)),"")}encodeFormElement(e={}){if(this.name.isAbsent())return;let t=(0,E.simpleShallowMerge)(e);return this.each((e=>{var n,r;if(e.name.isAbsent())return;let s=e.name.value,l=e.tagName.orElse("__none__").value.toLowerCase(),o=e.type.orElse("__none__").value.toLowerCase();if(o=o.toLowerCase(),("input"==l||"textarea"==l||"select"==l)&&null!=s&&""!=s&&!e.disabled){if("select"==l){let n=e.getAsElem(0).value;if(n.selectedIndex>=0){let e=n.options.length;for(let r=0;re.childNodes.asArray)).filter((e=>{var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce(((e,t)=>{var n,r,s;return e.push(null!==(s=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==s?s:""),e}),[]).join("")}subNodes(e,t){return s.Optional.fromNullable(t).isAbsent()&&(t=this.length),new A(...this.rootNode.slice(e,Math.min(t,this.length)))}limits(e){return this._limits=e,this}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,new A(this.values[this.pos])):null}lookAhead(e=1){return this.values.length-1{let r;if(!(null==n?void 0:n.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");r=A.byId(n.attachShadow(e)),t.push(r)})),new A(...t)}waitUntilDom(e,t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return r(this,void 0,void 0,(function*(){return function(e,t,n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return new Promise(((r,s)=>{let l=null;const o=new Error("Mutation observer timeout");function i(e,t){let r=null;return t(e)?e:(r=n.childList?t(e)?e:e.childNodes.filter((e=>t(e))).first().value.value:n.subtree?t(e)?e:e.querySelectorAll(" * ").filter((e=>t(e))).first().value.value:t(e)?e:null,r)}let a=e;if(a=i(a,t))r(new A(a));else if("undefined"!=typeof MutationObserver){const i=setTimeout((()=>(l.disconnect(),s(o))),n.timeout),a=n=>{const s=new A(n.map((e=>e.target))).filter((e=>t(e))).first();s.isPresent()&&(clearTimeout(i),l.disconnect(),r(new A(s||e)))};l=new MutationObserver(a);let u=Object.assign({},n);delete u.timeout,e.eachElem((e=>{l.observe(e,u)}))}else{let l=setInterval((()=>{let n=i(e,t);n&&(a&&(clearTimeout(a),clearInterval(l),l=null),r(new A(n||e)))}),n.interval),a=setTimeout((()=>{l&&(clearInterval(l),s(o))}),n.timeout)}}))}(this,e,t)}))}get shadowElements(){let e=(this.querySelectorAll("*").filter((e=>e.hasShadow)).allElems()||[]).map((e=>e.shadowRoot));return new A(...e)}get shadowRoot(){let e=[];for(let t=0;t({done:!this.hasNext(),value:this.next()})}}concat(e,t=!0){let n=this.asArray;const r=new A(...n.concat(e.asArray));if(!t)return r;let s={};return new A(...r.asArray.filter((e=>{const t=!(null==s?void 0:s[e.value.value.outerHTML]);return s[e.value.value.outerHTML]=!0,t})))}append(e){return this.each((t=>e.appendTo(t))),this}prependTo(e){return e.eachElem((e=>{e.prepend(...this.allElems())})),this}prepend(e){return this.eachElem((t=>{t.prepend(...e.allElems())})),this}_querySelectorAll(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t=0&&n.item(r)!==e;);return r>-1};return r.call(e,t)}_loadScriptEval(e,t,n=0,r){let s=this.createSourceNode(t,r),l=this.createSourceNode(null,r),o=`nonce_${Date.now()}_${Math.random()}`;l.innerHTML=`document.head["${o}"] = true`;let i=document.head;if(i.appendChild(l),i.removeChild(l),i[o]){try{n?setTimeout((()=>{i.appendChild(s),e||i.removeChild(s)}),n):(i.appendChild(s),e||i.removeChild(s))}finally{delete i[o]}return this}}resolveAttributeHolder(e="value"){let t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t}createSourceNode(e,t){let n=document.createElement("script");return n.type="text/javascript",t&&(void 0!==(null==n?void 0:n.nonce)?n.nonce=t:n.setAttribute("nonce",t)),e&&(n.src=e),n}applyNonce(e,t){e&&(void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e))}}t.DomQuery=A,A.absent=new A,A.global=i._global$,t.DomQueryCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return new A(...this.data)}},t.DQ=A,t.DQ$=A.querySelectorAll},86:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Es2019Array=t._Es2019Array=void 0;class n extends Array{constructor(...e){super(...e),e._another?this._another=e._another:this._another=e,this.flatMap=e=>this._flatMap(e),this.flat=(e=1)=>this._flat(e)}map(e,t){return new r(...Array.prototype.map.call(this._another,e,t))}concat(...e){return new r(...Array.prototype.concat.call(this._another,...e))}reverse(){return new r(...Array.prototype.reverse.call(this._another))}slice(e,t){return new r(...Array.prototype.slice.call(this._another,e,t))}splice(e,t){return new r(...Array.prototype.splice.call(this._another,e,t))}filter(e,t){return new r(...Array.prototype.filter.call(this._another,e,t))}reduce(e,t){return Array.prototype.reduce.call(this._another,e,t)}_flat(e=1){return this._flatResolve(this._another,e)}_flatResolve(e,n=1){if(0==n)return e;let r=[];return e.forEach((e=>{e=Array.isArray(e)?e:[e];let t=this._flatResolve(e,n-1);r=r.concat(t)})),new t.Es2019Array(...r)}_flatMap(e){let t=this.map((t=>e(t)));return this._flatResolve(t)}}function r(...e){let t=new n(...e);return new Proxy(t,{get:(e,t,n)=>"symbol"==typeof t?e._another[t]:isNaN(parseInt(t))?e[t]:e._another[t],set:(e,t,n)=>(e[t]=n,e._another[t]=n,!0)})}t._Es2019Array=r,t.Es2019Array=Array.prototype.flatMap?function(...e){return(null==e?void 0:e.flatMap)?e:r(...e)}:r},228:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._global$=void 0,t._global$=function(){var e;let t="undefined"!=typeof globalThis&&globalThis.window?globalThis.window:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==n.g&&(null===n.g||void 0===n.g?void 0:n.g.window)?n.g.window:void 0!==n.g?n.g:null;return null!==(e=null==t?void 0:t.window)&&void 0!==e?e:t}},519:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;const r=n(204),s=n(86);var l;!function(e){function t(e){let t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;for(;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n=/\./gi){let r=[];return e.split(n).forEach((e=>{r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t=0,n=[]){return"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:new s.Es2019Array(...n.concat(Array.prototype.slice.call(e,t)))},e.equalsIgnoreCase=function(e,t){let n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);return Object.assign?(t.forEach((e=>Object.assign(n,e))),n):(t.filter((e=>null!=e)).forEach((e=>{let t=e;Object.keys(t).filter((e=>Object.prototype.hasOwnProperty.call(t,e))).forEach((e=>n[e]=t[e]))})),n)}}(l||(t.Lang=l={}))},204:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueEmbedder=t.Optional=t.Monad=void 0;const r=n(86);class s{constructor(e){this._value=e}get value(){return this._value}map(e){e||(e=e=>e);let t=e(this.value);return new s(t)}flatMap(e){let t=this.map(e);for(;(null==t?void 0:t.value)instanceof s;)t=t.value;return t}}t.Monad=s;class l extends s{constructor(e){super(e)}get value(){return this._value instanceof s?this._value.flatMap().value:this._value}static fromNullable(e){return new l(e)}isAbsent(){return void 0===this.value||null==this.value}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=()=>{}){return this.isPresent.call(this,e),this}orElse(e){return this.isPresent()?this:null==e?l.absent:this.flatMap((()=>e))}orElseLazy(e){return this.isPresent()?this:this.flatMap(e)}flatMap(e){let t=super.flatMap(e);return t instanceof l?t.flatMap():l.fromNullable(t.value)}getIf(...e){e=this.preprocessKeys(...e);let t=this;for(let n=0;n=0){if(t=this.getClass().fromNullable(t.value instanceof Array?t.value.length=0){if(t.getIfPresent(r).isAbsent())return t;if(t=t.getIfPresent(r).value instanceof Array?this.getClass().fromNullable(t.getIfPresent(r).value[s]):this.getClass().absent,t.isAbsent())return t}else{if(t=t.getIfPresent(r),t.isAbsent())return t;s>-1&&(t=this.getClass().fromNullable(t.value[s]))}}return t}match(e){return!this.isAbsent()&&e(this.value)}get(e=l.absent){return this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()}toJson(){return JSON.stringify(this.value)}getClass(){return l}arrayIndex(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t=0?e.substring(0,t):e}getIfPresent(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()}resolve(e){if(this.isAbsent())return l.absent;try{return l.fromNullable(e(this.value))}catch(e){return l.absent}}preprocessKeys(...e){return new r.Es2019Array(...e).flatMap((e=>new r.Es2019Array(...e.split(/]\s*\[/gi)).map((e=>(-1==(e=e.replace(/^\s+|\s+$/g,"")).indexOf("[")&&-1!=e.indexOf("]")&&(e="["+e),-1==e.indexOf("]")&&-1!=e.indexOf("[")&&(e+="]"),e)))))}}t.Optional=l,l.absent=l.fromNullable(null);class o extends l{constructor(e,t="value"){super(e),this.key=t}get value(){return this._value?this._value[this.key]:null}set value(e){this._value&&(this._value[this.key]=e)}orElse(e){let t={};return t[this.key]=e,this.isPresent()?this:new o(t,this.key)}orElseLazy(e){if(this.isPresent())return this;{let t={};return t[this.key]=e(),new o(t,this.key)}}getClass(){return o}static fromNullable(e,t="value"){return new o(e,t)}}t.ValueEmbedder=o,o.absent=o.fromNullable(null)},785:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCollector=t.QueryFormStringCollector=t.QueryFormDataCollector=t.FormDataCollector=t.ConfigCollector=t.AssocArrayCollector=t.Run=t.ArrayAssocArrayCollector=t.InverseArrayCollector=t.ShimArrayCollector=t.MappedStreamDataSource=t.FilteredStreamDatasource=t.ArrayStreamDataSource=t.SequenceDataSource=t.MultiStreamDatasource=t.calculateSkips=t.ITERATION_STATUS=void 0;const r=n(86),s=n(517);var l;function o(e){let t=1;for(;e.lookAhead(t)!=l.EO_STRM;)t++;return--t}!function(e){e.EO_STRM="__EO_STRM__",e.BEF_STRM="___BEF_STRM__"}(l||(t.ITERATION_STATUS=l={})),t.calculateSkips=o,t.MultiStreamDatasource=class{constructor(e,...t){this.first=e,this.selectedPos=0,this.strms=[e].concat(...t),this.activeStrm=this.strms[this.selectedPos]}current(){return this.activeStrm.current()}hasNext(){return!!this.activeStrm.hasNext()||!(this.selectedPos>=this.strms.length)&&-1!=this.findNextStrm()}findNextStrm(){let e=!1,t=this.selectedPos;for(;!e&&tthis.total-1?l.EO_STRM:this.value+e}reset(){this.value=this.start-1}current(){return this.start-1?l.BEF_STRM:this.value}},t.ArrayStreamDataSource=class{constructor(...e){this.dataPos=-1,this.value=e}lookAhead(e=1){return this.dataPos+e>this.value.length-1?l.EO_STRM:this.value[this.dataPos+e]}hasNext(){return this.value.length-1>this.dataPos}next(){var e;return this.dataPos++,null!==(e=null==this?void 0:this.value[this.dataPos])&&void 0!==e?e:l.EO_STRM}reset(){this.dataPos=-1}current(){return this.value[Math.max(0,this.dataPos)]}},t.FilteredStreamDatasource=class{constructor(e,t){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.filterFunc=e,this.inputDataSource=t}hasNext(){let e,t=1,n=!1;for(;!n&&(e=this.inputDataSource.lookAhead(t))!=l.EO_STRM;)this.filterFunc(e)?(this._filterIdx[this._unfilteredPos+t]=!0,n=!0):t++;return n}next(){var e,t;let n=l.EO_STRM;for(;this.inputDataSource.hasNext();){this._unfilteredPos++;let r=this.inputDataSource.next();if(r!=l.EO_STRM&&(null!==(t=null===(e=this._filterIdx)||void 0===e?void 0:e[this._unfilteredPos])&&void 0!==t&&t||this.filterFunc(r))){this._filterIdx[this._unfilteredPos]=!0,n=r;break}}return this._current=n,n}lookAhead(e=1){var t;let n;for(let r=1;e>0&&(n=this.inputDataSource.lookAhead(r))!=l.EO_STRM;r++)((null===(t=this._filterIdx)||void 0===t?void 0:t[this._unfilteredPos+r])||this.filterFunc(n))&&(e--,this._filterIdx[this._unfilteredPos+r]=!0);return n}current(){return this._current}reset(){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.inputDataSource.reset()}},t.MappedStreamDataSource=class{constructor(e,t){this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.inputDataSource.hasNext()}next(){return this.mapFunc(this.inputDataSource.next())}reset(){this.inputDataSource.reset()}current(){return this.mapFunc(this.inputDataSource.current())}lookAhead(e=1){const t=this.inputDataSource.lookAhead(e);return t==l.EO_STRM?t:this.mapFunc(t)}},t.ShimArrayCollector=class{constructor(){this.data=new r.Es2019Array(...[])}collect(e){this.data.push(e)}get finalValue(){return this.data}},t.InverseArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.unshift(e)}get finalValue(){return this.data}},t.ArrayAssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n,r,s;let l=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:e;this.finalValue[l]=null!==(r=null===(n=this.finalValue)||void 0===n?void 0:n[l])&&void 0!==r?r:[],this.finalValue[l].push(null===(s=null==e?void 0:e[1])||void 0===s||s)}},t.Run=class{collect(e){}get finalValue(){return null}},t.AssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n;this.finalValue[null!==(t=e[0])&&void 0!==t?t:e]=null===(n=e[1])||void 0===n||n}},t.ConfigCollector=class{constructor(){this.finalValue=new s.Config({})}collect(e){this.finalValue.append(e.key).value=e.value}},t.FormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){this.finalValue.append(e.key,e.value)}},t.QueryFormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)}},t.QueryFormStringCollector=class{constructor(){this.formData=[]}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])}get finalValue(){return new r.Es2019Array(...this.formData).map((e=>e.join("="))).reduce(((e,t)=>[e,t].join("&")))}},t.ArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return this.data}}},100:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XQ=t.XMLQuery=void 0;const r=n(519),s=n(331);var l=r.Lang.isString;const o=n(228);class i extends s.DomQuery{constructor(e,t="text/xml"){var n;l(e)?super(null==(n=e)?null:r.Lang.saveResolveLazy((()=>new((0,o._global$)().DOMParser)),(()=>(()=>{let e=new ActiveXObject("Microsoft.XMLDOM");return e.async=!1,{parseFromString:(t,n)=>e.loadXML(t)}})())).value.parseFromString(n,t)):super(e)}isXMLParserError(){return this.querySelectorAll("parsererror").isPresent()}toString(){let e=[];return this.eachElem((t=>{var n,r,s,l;let i=null!==(l=null===(s=null===(r=null===(n=(0,o._global$)())||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===s?void 0:s.serializeToString(t))&&void 0!==l?l:null==t?void 0:t.xml;i&&e.push(i)})),e.join("")}parserErrorText(e){return this.querySelectorAll("parsererror").textContent(e)}static parseXML(e){return new i(e)}static parseHTML(e){return new i(e,"text/html")}static fromString(e,t="text/xml"){return new i(e,t)}}t.XMLQuery=i,t.XQ=i},257:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t._Es2019Array=t.Es2019Array=t.Assoc=t.CONFIG_VALUE=t.CONFIG_ANY=t.Config=t.shallowMerge=t.simpleShallowMerge=t.append=t.assignIf=t.assign=t.XQ=t.XMLQuery=t.ValueEmbedder=t.Optional=t.Monad=t.Lang=t.DQ$=t.DQ=t.DomQueryCollector=t.ElementAttribute=t.DomQuery=void 0;var o=n(331);Object.defineProperty(t,"DomQuery",{enumerable:!0,get:function(){return o.DomQuery}}),Object.defineProperty(t,"ElementAttribute",{enumerable:!0,get:function(){return o.ElementAttribute}}),Object.defineProperty(t,"DomQueryCollector",{enumerable:!0,get:function(){return o.DomQueryCollector}}),Object.defineProperty(t,"DQ",{enumerable:!0,get:function(){return o.DQ}}),Object.defineProperty(t,"DQ$",{enumerable:!0,get:function(){return o.DQ$}});var i=n(519);Object.defineProperty(t,"Lang",{enumerable:!0,get:function(){return i.Lang}});var a=n(204);Object.defineProperty(t,"Monad",{enumerable:!0,get:function(){return a.Monad}}),Object.defineProperty(t,"Optional",{enumerable:!0,get:function(){return a.Optional}}),Object.defineProperty(t,"ValueEmbedder",{enumerable:!0,get:function(){return a.ValueEmbedder}});var u=n(100);Object.defineProperty(t,"XMLQuery",{enumerable:!0,get:function(){return u.XMLQuery}}),Object.defineProperty(t,"XQ",{enumerable:!0,get:function(){return u.XQ}});var c=n(771);Object.defineProperty(t,"assign",{enumerable:!0,get:function(){return c.assign}}),Object.defineProperty(t,"assignIf",{enumerable:!0,get:function(){return c.assignIf}}),Object.defineProperty(t,"append",{enumerable:!0,get:function(){return c.append}}),Object.defineProperty(t,"simpleShallowMerge",{enumerable:!0,get:function(){return c.simpleShallowMerge}}),Object.defineProperty(t,"shallowMerge",{enumerable:!0,get:function(){return c.shallowMerge}});var d=n(517);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return d.Config}});var h=n(517);Object.defineProperty(t,"CONFIG_ANY",{enumerable:!0,get:function(){return h.CONFIG_ANY}});var E=n(517);Object.defineProperty(t,"CONFIG_VALUE",{enumerable:!0,get:function(){return E.CONFIG_VALUE}}),t.Assoc=l(n(771));var v=n(86);Object.defineProperty(t,"Es2019Array",{enumerable:!0,get:function(){return v.Es2019Array}}),Object.defineProperty(t,"_Es2019Array",{enumerable:!0,get:function(){return v._Es2019Array}})},973:(e,t,n)=>{t.$A=t.J_=void 0;const r=n(644),s=n(54),l=n(19),o=n(351);var i,a;!function(e){let t,n,l;e.specversion=4e5,e.implversion=0,e.separatorchar=function(){const e="#{facesContext.namingContainerSeparatorChar}";return e.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)?r.Implementation.getSeparatorChar():e}(),e.contextpath="#{facesContext.externalContext.requestContextPath}",e.getProjectStage=function(){return r.Implementation.getProjectStage()},e.getViewState=function(e){return r.Implementation.getViewState(e)},e.getClientWindow=function(e){return r.Implementation.getClientWindow(e)},function(e){e.request=function(e,t,n){r.Implementation.request(e,t,n)},e.response=function(e,t){r.Implementation.response(e,t)},e.addOnError=function(e){r.Implementation.addOnError(e)},e.addOnEvent=function(e){r.Implementation.addOnEvent(e)}}(t=e.ajax||(e.ajax={})),function(e){e.chain=function(e,t,...n){return r.Implementation.chain(e,t,...n)}}(n=e.util||(e.util={})),function(e){e.init=function(e,t,n,r,l,o,i,a,u){s.PushImpl.init(e,t,n,r,l,o,i,a,u)},e.open=function(e){s.PushImpl.open(e)},e.close=function(e){s.PushImpl.close(e)}}(l=e.push||(e.push={}))}(i||(t.J_=i={})),function(e){e.ab=function(e,t,n,r,s,l={}){var i,a;n&&(l[o.CTX_OPTIONS_PARAMS]=null!==(i=null==l?void 0:l[o.CTX_OPTIONS_PARAMS])&&void 0!==i?i:{},l[o.CTX_OPTIONS_PARAMS][(0,o.$nsp)(o.P_BEHAVIOR_EVENT)]=n),r&&(l[o.CTX_OPTIONS_EXECUTE]=r),s&&(l[o.CTX_PARAM_RENDER]=s),(null!==(a=null===window||void 0===window?void 0:window.faces)&&void 0!==a?a:window.jsf).ajax.request(e,t,l)};const t=[];let n=null;e.onDomReady=function(e){"complete"!==document.readyState?(t.push(e),n||(n=()=>{window.removeEventListener("DOMContentLoaded",n),n=null;try{t.forEach((e=>e()))}finally{t.length=0}},window.addEventListener("DOMContentLoaded",n))):(n&&n(),e())},e.oam=l.oam}(a||(t.$A=a={}))},644:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Implementation=void 0;const r=n(121),s=n(229),l=n(257),o=n(22),i=n(780),a=n(234),u=n(471),c=n(351),d=n(7),h=n(680),E=n(666);var v,_,f;!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(v||(v={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.resetValues="resetValues",e.windowId="windowId",e.params="params"}(_||(_={})),function(e){var t=l.Lang.trim,n=u.ExtLang.getMessage,f=u.ExtLang.getGlobalConfig,p=o.Assertions.assert,T=u.ExtLang.ofAssoc,A=u.ExtLang.collectAssoc;let m=null,R=null,g=[],S=[];function y(){const e=i.ExtDomQuery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in v?e:v.Production}function O(e,t=function(e){}){t(e),S.forEach((t=>{t(e)})),f("defaultErrorOutput",console?console.error:alert)(e)}function P(e,t){const n=(0,d.resolveViewRootId)(t);n&&(e.assign(c.NAMED_VIEWROOT).value=!0,e.assign(c.NAMING_CONTAINER_ID).value=n)}function M(e,n,r,s,o,i=""){const a=(0,c.$faces)().separatorchar;let u=r?t(r).split(/\s+/gi):[],d=[],h={};const E=e=>{const t=i.length?i+a:c.EMPTY_STR;let n=s.id.value;const r=n.substring(0,n.lastIndexOf(a)),o=r.length?r+a:c.EMPTY_STR,u=0===e.indexOf(a);let d;return u||i.length&&0==e.indexOf(t)?d=[t,e=0==(e=u?e.substring(1):e).indexOf(t)?e.substring(t.length):e].join(c.EMPTY_STR):(0==n.indexOf(t)&&(n=n.substring(t.length)),d=0==e.indexOf(n)?[t,e].join(c.EMPTY_STR):[o,e].join(c.EMPTY_STR)),l.DQ.byId(d).isPresent()?d:e};for(let t=0;t{let l=function(e,n,r){if("string"!=typeof r)return!1!==r.call(e,n);{let s=t(r);return 0==s.indexOf("function ")&&(s=`return ${s} (event)`),!1!==new Function("event",s).call(e,n)}}(e,n,r);return!1===l&&(s=!1),s})),s},e.request=function(t,n,r){var s,a,u,h,E,v,f,p,m,R,g,S,y,O,I,N,C,w,b,D,L,x,X,V,k,F,j,U,H;const{options:Q,elem:G,elementId:q,windowId:W,isResetValues:$}=(0,d.resolveDefaults)(n,r,t),Y=new i.ExtConfig({}),B=new i.ExtConfig({});o.Assertions.assertRequestIntegrity(Q,G);const z=(0,d.resolveForm)(G,n),J=(0,d.resolveViewId)(z),K=z.id.value,Z=(0,d.resolveDelay)(Q),ee=(0,d.resolveTimeout)(Q);var te;Y.assignIf(!!W,c.P_WINDOW_ID).value=W,Y.assign(c.CTX_PARAM_REQ_PASS_THR).value=(te=Q.value,T(te).filter((e=>!(e[0]in _))).reduce(A,{}));const ne=(re=Q.getIf(c.CTX_OPTIONS_PARAMS).orElse({}).value,Array.isArray(re)?re.reduce(A,{}):re);var re;let se=Y.getIf(c.CTX_PARAM_REQ_PASS_THR);var le,oe,ie,ae;se.$nspEnabled=!1,se.shallowMerge(new l.Config(ne),!0),se.$nspEnabled=!0,Y.assignIf(!!n,c.CTX_PARAM_REQ_PASS_THR,c.P_EVT).value=null==n?void 0:n.type,Y.assign(c.SOURCE).value=q,Y.assign(c.VIEW_ID).value=J,Y.assign(c.ON_EVENT).value=null===(s=Q.value)||void 0===s?void 0:s.onevent,Y.assign(c.ON_ERROR).value=null===(a=Q.value)||void 0===a?void 0:a.onerror,Y.assign(c.MYFACES).value=null===(u=Q.value)||void 0===u?void 0:u.myfaces,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX_SOURCE).value=q,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX).value=!0,Y.assignIf($,c.CTX_PARAM_REQ_PASS_THR,c.P_RESET_VALUES).value=!0,B.assign(c.CTX_PARAM_SRC_FRM_ID).value=K,B.assign(c.CTX_PARAM_UPLOAD_PREINIT).value=null===(v=null===(E=null===(h=Q.value)||void 0===h?void 0:h.myfaces)||void 0===E?void 0:E.upload)||void 0===v?void 0:v.preinit,B.assign(c.CTX_PARAM_UPLOAD_LOADSTART).value=null===(m=null===(p=null===(f=Q.value)||void 0===f?void 0:f.myfaces)||void 0===p?void 0:p.upload)||void 0===m?void 0:m.loadstart,B.assign(c.CTX_PARAM_UPLOAD_ON_PROGRESS).value=null===(S=null===(g=null===(R=Q.value)||void 0===R?void 0:R.myfaces)||void 0===g?void 0:g.upload)||void 0===S?void 0:S.progress,B.assign(c.CTX_PARAM_UPLOAD_LOADEND).value=null===(I=null===(O=null===(y=Q.value)||void 0===y?void 0:y.myfaces)||void 0===O?void 0:O.upload)||void 0===I?void 0:I.loadend,B.assign(c.CTX_PARAM_UPLOAD_LOAD).value=null===(w=null===(C=null===(N=Q.value)||void 0===N?void 0:N.myfaces)||void 0===C?void 0:C.upload)||void 0===w?void 0:w.load,B.assign(c.CTX_PARAM_UPLOAD_ERROR).value=null===(L=null===(D=null===(b=Q.value)||void 0===b?void 0:b.myfaces)||void 0===D?void 0:D.upload)||void 0===L?void 0:L.error,B.assign(c.CTX_PARAM_UPLOAD_ABORT).value=null===(V=null===(X=null===(x=Q.value)||void 0===x?void 0:x.myfaces)||void 0===X?void 0:X.upload)||void 0===V?void 0:V.abort,B.assign(c.CTX_PARAM_UPLOAD_TIMEOUT).value=null===(j=null===(F=null===(k=Q.value)||void 0===k?void 0:k.myfaces)||void 0===F?void 0:F.upload)||void 0===j?void 0:j.timeout,Y.assign(c.CTX_PARAM_REQ_PASS_THR,K).value=K,B.assign(c.CTX_PARAM_SRC_CTL_ID).value=q,B.assign(c.CTX_PARAM_PPS).value=null!==(H=null===(U=function(e){var t;return null===(t=T(e).filter((e=>"myfaces"==e[0])).reduce(A,{}))||void 0===t?void 0:t[c.MYFACES]}(Q.value))||void 0===U?void 0:U[c.MYFACES_OPTION_PPS])&&void 0!==H&&H,function(e,t){let n=(0,c.$faces)().getClientWindow(e.getAsElem(0).value);n&&(t.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_CLIENT_WINDOW).value=n)}(z,Y),oe=Y,ie=z,ae=q,(le=Q).getIf(c.CTX_OPTIONS_EXECUTE).isPresent()?(le.assign(c.CTX_OPTIONS_EXECUTE).value=[le.getIf(c.CTX_OPTIONS_EXECUTE).value,c.IDENT_THIS].join(" "),M(oe.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_EXECUTE,le.getIf(c.CTX_OPTIONS_EXECUTE).value,ie,ae,oe.getIf(c.VIEW_ID).value)):oe.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).value=ae,function(e,t,n,r){e.getIf(c.CTX_PARAM_RENDER).isPresent()&&M(t.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_RENDER,e.getIf(c.CTX_PARAM_RENDER).value,n,r,t.getIf(c.VIEW_ID).value)}(Q,Y,z,q),P(B,z),e.queueHandler.addRequestToQueue(G,z,Y,B,Z,ee)},e.response=function(e,t){r.Response.processResponse(e,t)},e.addOnError=function(e){S.push(e)},e.addOnEvent=function(e){g.push(e)},e.sendEvent=function(e,t=function(e){}){t(e),g.forEach((t=>t(e)))},e.stdErrorHandler=function(t,n,r,s=!1){try{O(a.ErrorData.fromClient(r))}finally{s&&e.requestQueue.clear()}},e.sendError=O,e.getClientWindow=function(e){const t="___mf_id_altered__",n="___init____";let r=e?l.DQ.byId(e):(0,l.DQ$)("form"),s=r.filterSelector(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`).orElseLazy((()=>r.querySelectorAll(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`))).asArray.map((e=>e.val)).reduce(((e,r)=>e==n?r:e==t||e!=r?t:r),n);return p(t!=s,"Multiple different windowIds found in document"),s!=n?s:(function(){const e=window.location.href,t=new RegExp("[\\?&]jfwid=([^\\;]*)").exec(e);return null!=t?l.Optional.fromNullable(t[1]):l.Optional.fromNullable(null)}()||i.ExtDomQuery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null)).value},e.getViewState=function(e){let t=l.DQ.byId(e,!0);if(!t.isTag(c.HTML_TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));const r=new l.Config({});P(r,l.DQ.byId(e));let s=t.deepElements.encodeFormElement();return(0,h.encodeFormData)(new i.ExtConfig(s),(0,d.resoveNamingContainerMapper)(r))},e.queueHandler={addRequestToQueue:function(t,n,r,l,o=0,i=0){e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new E.XhrQueueController,e.requestQueue.enqueue(new s.XhrRequest(r,l,i),o)}}}(f||(t.Implementation=f={}))},54:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PushImpl=void 0;const r=n(351),s=n(257);var l;!function(e){const t=s.DQ.global().location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(r,l,i,a,u,c,d,h,E){var v,_,f;if(d=o(d),!s.DQ.global().WebSocket)return void d(-1,i);let p=l.substr(l.indexOf("?")+1);e.components[r]||(e.components[r]={channelToken:p,onopen:o(a),onmessage:o(u),onerror:o(c),onclose:d,behaviors:h,autoconnect:E},e.clientIdsByTokens[p]||(e.clientIdsByTokens[p]=[]),e.clientIdsByTokens[p].push(r),e.sockets[p]||(e.sockets[p]=new n(p,function(e){if(e.indexOf("://")<0){let n=s.DQ.global().location.hostname+":"+s.DQ.global().location.port;return t+n+e}return e}(l),i))),E&&(null!==(_=null===(v=s.DQ.global())||void 0===v?void 0:v.faces)&&void 0!==_?_:null===(f=s.DQ.global())||void 0===f?void 0:f.jsf).push.open(r)},e.open=function(t){var n;l(null===(n=e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){l(e.components[t].channelToken).close()};class n{constructor(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}open(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())}onopen(t){var n,r;if(!this.reconnectAttempts){let t=e.clientIdsByTokens[this.channelToken];for(let s=t.length-1;s>=0;s--){let l=t[s];null===(r=null===(n=e.components[l])||void 0===n?void 0:n.onopen)||void 0===r||r.call(n,this.channel)}}this.reconnectAttempts=0}onerror(t){var n,r,s;let l=JSON.parse(null!==(n=null==t?void 0:t.data)&&void 0!==n?n:null);for(let n=e.clientIdsByTokens[this.channelToken].length-1;n>=0;n--){let o=e.clientIdsByTokens[this.channelToken][n];if(document.getElementById(o))try{null===(s=null===(r=e.components[o])||void 0===r?void 0:r.onerror)||void 0===s||s.call(r,l,this.channel,t)}catch(e){}else e.clientIdsByTokens[this.channelToken].splice(n,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()}onmmessage(t){var n,r,s;let l=JSON.parse(t.data);for(let o=e.clientIdsByTokens[this.channelToken].length-1;o>=0;o--){let i=e.clientIdsByTokens[this.channelToken][o];if(document.getElementById(i)){try{null===(r=null===(n=e.components[i])||void 0===n?void 0:n.onmessage)||void 0===r||r.call(n,l,this.channel,t)}catch(e){}let o=null===(s=null===e.components||void 0===e.components?void 0:e.components[i])||void 0===s?void 0:s.behaviors,a=null==o?void 0:o[l];if(a&&a.length)for(let e=0;e=r.MAX_RECONNECT_ATTEMPTS){let r=e.clientIdsByTokens[this.channelToken];for(let l=r.length-1;l>=0;l--){let o=r[l];null===(s=null===(n=null===e.components||void 0===e.components?void 0:e.components[o])||void 0===n?void 0:n.onclose)||void 0===s||s.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}}else setTimeout(this.open,r.RECONNECT_INTERVAL*this.reconnectAttempts++)}close(){if(this.socket){let e=this.socket;this.socket=null,e.close()}}bindCallbacks(){this.socket.onopen=e=>this.onopen(e),this.socket.onmessage=e=>this.onmmessage(e),this.socket.onclose=e=>this.onclose(e),this.socket.onerror=e=>this.onerror(e)}}function l(t){let n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function o(e=()=>{}){return"function"!=typeof e&&(e=s.DQ.global()[e]),e}}(l||(t.PushImpl=l={}))},351:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CTX_OPTIONS_PARAMS=t.TIMEOUT_EVENT=t.CLIENT_ERROR=t.SERVER_ERROR=t.MALFORMEDXML=t.EMPTY_RESPONSE=t.HTTP_ERROR=t.RESPONSE_XML=t.RESPONSE_TEXT=t.ERROR_MESSAGE=t.ERROR_NAME=t.STATUS=t.SOURCE=t.SUCCESS=t.COMPLETE=t.BEGIN=t.ON_EVENT=t.ON_ERROR=t.EVENT=t.ERROR=t.WINDOW_ID=t.CTX_PARAM_RENDER=t.P_BEHAVIOR_EVENT=t.P_WINDOW_ID=t.P_RESET_VALUES=t.P_EVT=t.P_RENDER_OVERRIDE=t.P_RENDER=t.P_EXECUTE=t.P_AJAX=t.IDENT_FORM=t.IDENT_THIS=t.IDENT_NONE=t.IDENT_ALL=t.HTML_CLIENT_WINDOW=t.HTML_VIEWSTATE=t.EMPTY_MAP=t.EMPTY_STR=t.EMPTY_FUNC=t.P_RESOURCE=t.P_VIEWBODY=t.P_VIEWHEAD=t.P_VIEWROOT=t.P_CLIENT_WINDOW=t.P_VIEWSTATE=t.VIEW_ID=t.NAMING_CONTAINER_ID=t.P_AJAX_SOURCE=t.NAMED_VIEWROOT=t.XML_ATTR_NAMED_VIEWROOT=void 0,t.XML_TAG_CHANGES=t.XML_TAG_PARTIAL_RESP=t.ATTR_ID=t.ATTR_VALUE=t.ATTR_NAME=t.ATTR_URL=t.MYFACES_OPTION_PPS=t.ERR_NO_PARTIAL_RESPONSE=t.PHASE_PROCESS_RESPONSE=t.SEL_RESPONSE_XML=t.SEL_CLIENT_WINDOW_ELEM=t.SEL_VIEWSTATE_ELEM=t.HTML_TAG_STYLE=t.HTML_TAG_SCRIPT=t.HTML_TAG_LINK=t.HTML_TAG_BODY=t.HTML_TAG_FORM=t.HTML_TAG_HEAD=t.STD_ACCEPT=t.NO_TIMEOUT=t.MULTIPART=t.URL_ENCODED=t.STATE_EVT_COMPLETE=t.STATE_EVT_TIMEOUT=t.STATE_EVT_BEGIN=t.REQ_TYPE_POST=t.REQ_TYPE_GET=t.ENCODED_URL=t.VAL_AJAX=t.REQ_ACCEPT=t.HEAD_FACES_REQ=t.CONTENT_TYPE=t.CTX_PARAM_PPS=t.CTX_PARAM_REQ_PASS_THR=t.CTX_PARAM_SRC_CTL_ID=t.CTX_PARAM_UPLOAD_TIMEOUT=t.CTX_PARAM_UPLOAD_ABORT=t.CTX_PARAM_UPLOAD_ERROR=t.CTX_PARAM_UPLOAD_LOAD=t.CTX_PARAM_UPLOAD_LOADEND=t.CTX_PARAM_UPLOAD_LOADSTART=t.CTX_PARAM_UPLOAD_PREINIT=t.CTX_PARAM_UPLOAD_ON_PROGRESS=t.CTX_PARAM_SRC_FRM_ID=t.CTX_PARAM_MF_INTERNAL=t.CTX_OPTIONS_EXECUTE=t.CTX_OPTIONS_RESET=t.CTX_OPTIONS_TIMEOUT=t.DELAY_NONE=t.CTX_OPTIONS_DELAY=void 0,t.$nsp=t.$faces=t.UNKNOWN=t.MAX_RECONNECT_ATTEMPTS=t.RECONNECT_INTERVAL=t.APPLIED_CLIENT_WINDOW=t.APPLIED_VST=t.REASON_EXPIRED=t.MF_NONE=t.MYFACES=t.DEFERRED_HEAD_INSERTS=t.UPDATE_ELEMS=t.UPDATE_FORMS=t.XML_TAG_ATTR=t.XML_TAG_AFTER=t.XML_TAG_BEFORE=t.XML_TAG_REDIRECT=t.XML_TAG_EXTENSION=t.XML_TAG_ATTRIBUTES=t.XML_TAG_ERROR=t.XML_TAG_EVAL=t.XML_TAG_INSERT=t.XML_TAG_DELETE=t.XML_TAG_UPDATE=void 0,t.XML_ATTR_NAMED_VIEWROOT="namedViewRoot",t.NAMED_VIEWROOT="namedViewRoot",t.P_AJAX_SOURCE="jakarta.faces.source",t.NAMING_CONTAINER_ID="myfaces.NamingContainerId",t.VIEW_ID="myfaces.viewId",t.P_VIEWSTATE="jakarta.faces.ViewState",t.P_CLIENT_WINDOW="jakarta.faces.ClientWindow",t.P_VIEWROOT="jakarta.faces.ViewRoot",t.P_VIEWHEAD="jakarta.faces.ViewHead",t.P_VIEWBODY="jakarta.faces.ViewBody",t.P_RESOURCE="jakarta.faces.Resource",t.EMPTY_FUNC=Object.freeze((()=>{})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=[""].join(t.EMPTY_STR),t.HTML_CLIENT_WINDOW=[""].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="jakarta.faces.partial.ajax",t.P_EXECUTE="jakarta.faces.partial.execute",t.P_RENDER="jakarta.faces.partial.render",t.P_RENDER_OVERRIDE="_myfaces.rendeOverride",t.P_EVT="jakarta.faces.partial.event",t.P_RESET_VALUES="jakarta.faces.partial.resetValues",t.P_WINDOW_ID="jakarta.faces.windowId",t.P_BEHAVIOR_EVENT="jakarta.faces.behavior.event",t.CTX_PARAM_RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTP_ERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_OPTIONS_PARAMS="params",t.CTX_OPTIONS_DELAY="delay",t.DELAY_NONE="none",t.CTX_OPTIONS_TIMEOUT="timeout",t.CTX_OPTIONS_RESET="resetValues",t.CTX_OPTIONS_EXECUTE="execute",t.CTX_PARAM_MF_INTERNAL="myfaces.internal",t.CTX_PARAM_SRC_FRM_ID="myfaces.source.formId",t.CTX_PARAM_UPLOAD_ON_PROGRESS="myfaces.upload.progress",t.CTX_PARAM_UPLOAD_PREINIT="myfaces.upload.preinit",t.CTX_PARAM_UPLOAD_LOADSTART="myfaces.upload.loadstart",t.CTX_PARAM_UPLOAD_LOADEND="myfaces.upload.loadend",t.CTX_PARAM_UPLOAD_LOAD="myfaces.upload.load",t.CTX_PARAM_UPLOAD_ERROR="myfaces.upload.error",t.CTX_PARAM_UPLOAD_ABORT="myfaces.upload.abort",t.CTX_PARAM_UPLOAD_TIMEOUT="myfaces.upload.timeout",t.CTX_PARAM_SRC_CTL_ID="myfaces.source.controlId",t.CTX_PARAM_REQ_PASS_THR="myfaces.request.passThrough",t.CTX_PARAM_PPS="myfaces.request.pps",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="jakarta.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.HTML_TAG_HEAD="HEAD",t.HTML_TAG_FORM="FORM",t.HTML_TAG_BODY="BODY",t.HTML_TAG_LINK="LINK",t.HTML_TAG_SCRIPT="SCRIPT",t.HTML_TAG_STYLE="STYLE",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_CLIENT_WINDOW_ELEM="[name='"+t.P_CLIENT_WINDOW+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.MYFACES_OPTION_PPS="pps",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.XML_TAG_PARTIAL_RESP="partial-response",t.XML_TAG_CHANGES="changes",t.XML_TAG_UPDATE="update",t.XML_TAG_DELETE="delete",t.XML_TAG_INSERT="insert",t.XML_TAG_EVAL="eval",t.XML_TAG_ERROR="error",t.XML_TAG_ATTRIBUTES="attributes",t.XML_TAG_EXTENSION="extension",t.XML_TAG_REDIRECT="redirect",t.XML_TAG_BEFORE="before",t.XML_TAG_AFTER="after",t.XML_TAG_ATTR="attribute",t.UPDATE_FORMS="myfaces.updateForms",t.UPDATE_ELEMS="myfaces.updateElems",t.DEFERRED_HEAD_INSERTS="myfaces.headElems",t.MYFACES="myfaces",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="myfaces.appliedViewState",t.APPLIED_CLIENT_WINDOW="myfaces.appliedClientWindow",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25,t.UNKNOWN="UNKNOWN",t.$faces=function(){var e;return null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:null===window||void 0===window?void 0:window.jsf},t.$nsp=function(e){return e&&(null==e?void 0:e.replace)?(null===window||void 0===window?void 0:window.faces)?e.replace(/javax\.faces/gi,"jakarta.faces"):e.replace(/jakarta\.faces/gi,"javax.faces"):e}},315:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateHolder=void 0;const r=n(351);t.StateHolder=class{constructor(e,t){this.id=e,this.value=t;let n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}get hasNameSpace(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:r.EMPTY_STR).length}}},207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0,t.Messages=class{constructor(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="faces.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}}},22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;const r=n(257),s=n(351),l=n(471);var o;!function(e){function t(t,n=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){if(!t)throw e.raiseError(new Error,n,r,l)}function n(t,n,l=s.EMPTY_STR,o=s.EMPTY_STR,i="Type Assertion Error"){if(t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,l,o,i)}function o(e,t=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){n(e,"function",t,r,l)}e.assertRequestIntegrity=function(e,n){o(e.getIf(s.ON_ERROR).value),o(e.getIf(s.ON_EVENT).value),t(n.isPresent(),l.ExtLang.getMessage("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"faces.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(s.ATTR_URL).isAbsent())throw e.raiseError(new Error,l.ExtLang.getMessage("ERR_RED_URL",null,"processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),s.EMPTY_RESPONSE,s.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(s.EMPTY_STR),s.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(s.XML_TAG_PARTIAL_RESP).isPresent(),s.ERR_NO_PARTIAL_RESPONSE,s.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){let i=null!=r?r:s.MALFORMEDXML,a=null!=o?o:s.MALFORMEDXML,u=null!=t?t:s.EMPTY_STR;return l.ExtLang.makeException(e,i,a,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),u)},e.assert=t,e.assertType=n,e.assertFunction=o,e.assertDelay=function(e){if(!(e>=0))throw new Error("Invalid delay value: "+e)}}(o||(t.Assertions=o={}))},726:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRunnable=void 0,t.AsyncRunnable=class{constructor(){this.catchFunctions=[],this.thenFunctions=[]}resolve(e){this.thenFunctions.reduce(((e,t)=>t(e)),e)}reject(e){this.catchFunctions.reduce(((e,t)=>t(e)),e)}catch(e){return this.catchFunctions.push(e),this}finally(e){return this.catchFunctions.push(e),this.thenFunctions.push(e),this}then(e){return this.thenFunctions.push(e),this}}},780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtConfig=t.ExtDQ=t.ExtDomQuery=void 0;const r=n(257),s=n(351),l=e=>e&&!(-1==(null==e?void 0:e.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi))&&-1==(null==e?void 0:e.search(/\/javax\.faces\.resource.*\/jsf\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi))),o="src";class i extends r.DQ{static get windowId(){return new i(document.body).windowId}static get nonce(){return new i(document.body).nonce}get windowId(){const e=function(){let e=window.location.href,t=new RegExp("[\\?&]windowId=([^\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){let t=this.querySelectorAll("form input[name='"+s.P_WINDOW_ID+"']");if(t.length>1)throw Error("Multiple different windowIds found in document");return r.Optional.fromNullable(t.isPresent()?t.getAsElem(0).value.value:e())}return r.Optional.fromNullable(e())}get nonce(){var e;let t=new a(window.myfaces).getIf("config","cspMeta","nonce");if(t.value)return r.ValueEmbedder.fromNullable(t);let n=new r.DQ(document.currentScript).nonce;if(n.isPresent())return r.ValueEmbedder.fromNullable(n);let s=r.Optional.fromNullable(null===(e=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>e.nonce.isPresent()&&null!=e.attr(o))).filter((e=>l(e.attr(o).value))))||void 0===e?void 0:e[0]);return(null==s?void 0:s.value)?new r.DomQuery(s.value).nonce:r.ValueEmbedder.absent}static searchJsfJsFor(e){return new i(document).searchJsfJsFor(e)}searchJsfJsFor(e){var t;return r.Optional.fromNullable(null===(t=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>l(e.attr(o).value))).map((t=>t.attr(o).value.match(e))).filter((e=>null!=e&&e.length>1)).map((e=>decodeURIComponent(e[1]))))||void 0===t?void 0:t[0])}globalEval(e,t){return new i(super.globalEval(e,null!=t?t:this.nonce.value))}globalEvalSticky(e,t){return new i(super.globalEvalSticky(e,null!=t?t:this.nonce.value))}runScripts(e=!1,t){return super.runScripts(e,(e=>{var n,r;return(null===(n=null==t?void 0:t(e))||void 0===n||n)&&!l(e)&&!(-1!=(r=e).search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi)||-1!=r.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi))}))}runHeadInserts(e=!0){let t=i.byId(document.head),n=[];this.filter((function(n){if(!e)return!0;const r=n.tagName.value;if(!r)return!0;let s=n.attr("href").orElseLazy((()=>n.attr("src").value)).orElseLazy((()=>n.attr("rel").value));return!s.isPresent()||!t.querySelectorAll(`${r}[href='${s.value}']`).length&&!t.querySelectorAll(`${r}[src='${s.value}']`).length&&!t.querySelectorAll(`${r}[rel='${s.value}']`).length})).each((e=>{"SCRIPT"!=e.tagName.value?(new i(...n).runScripts(!0),n=[],t.append(e)):n.push(e)})),new i(...n).runScripts(!0)}static byId(e,t=!1){var n,l,o;const a=r.DomQuery.byId(e,t);if("development"==(0,s.$faces)().getProjectStage().toLowerCase()&&(null===window||void 0===window?void 0:window.console)&&a.isAbsent()&&e){let t=null!==(o=null!==(l=null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==o?o:e.toString();console.error("Element "+t+"not found")}return new i(a)}filter(e){return new i(super.filter(e))}}t.ExtDomQuery=i,t.ExtDQ=i;class a extends r.Config{constructor(e){super(e),this.$nspEnabled=!0}assignIf(e,...t){const n=this.remap(t);return super.assignIf(e,...n)}assign(...e){const t=this.remap(e);return super.assign(...t)}append(...e){return super.append(...e)}appendIf(e,...t){const n=this.remap(t);return super.appendIf(e,...n)}getIf(...e){const t=this.remap(e);return super.getIf(...t)}get(e){return super.get((0,s.$nsp)(e))}delete(e){return super.delete((0,s.$nsp)(e))}static fromNullable(e){return new a(e)}getClass(){return a}shallowCopy$(){const e=super.shallowCopy$();return new a(e)}get deepCopy(){return new a(super.deepCopy$())}remap(e){return this.$nspEnabled?new r.Es2019Array(...e).map((e=>(0,s.$nsp)(e))):e}}t.ExtConfig=a},680:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFormInputsAsArr=t.fixEmptyParameters=t.resolveFiles=t.decodeEncodedValues=t.encodeFormData=void 0;const r=n(257),s=n(780),l=n(351);function o(e){return e.split(/&/gi).filter((e=>!!(e||"").replace(/\s+/g,""))).map((e=>{let t=decodeURIComponent(e),n=t.indexOf("=");return-1==n?[t]:[t.substring(0,n),t.substring(n+1)]}))}function i(e){return e.querySelectorAllDeep("input[type='file']").asArray.map((e=>[e.name.value||e.id.value,e.filesFromElem(0)])).flatMap((([e,t])=>[...t].map((t=>[e,t]))))}t.encodeFormData=function(e,t=(e,t)=>[e,t],n=l.EMPTY_STR){if(e.isAbsent())return n;const o=e.value;return new r.Es2019Array(...Object.keys(o)).filter((e=>o.hasOwnProperty(e))).flatMap((e=>o[e].map((n=>t(e,n))))).filter((([,e])=>!(e instanceof s.ExtDomQuery.global().File))).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&")},t.decodeEncodedValues=o,t.resolveFiles=i,t.fixEmptyParameters=function(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e},t.getFormInputsAsArr=function(e){const t=function(e){return o((0,l.$faces)().getViewState(e.getAsElem(0).value))}(e),n=i(e);return t.concat(n)}},248:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenInputBuilder=void 0;const r=n(257),s=n(351);t.HiddenInputBuilder=class{constructor(e){this.selector=e,this.namedViewRoot=!1;const t=-1!=e.indexOf((0,s.$nsp)(s.P_VIEWSTATE));this.name=t?s.P_VIEWSTATE:s.P_CLIENT_WINDOW,this.template=t?s.HTML_VIEWSTATE:s.HTML_CLIENT_WINDOW}withNamingContainerId(e){return this.namingContainerId=e,this}withParent(e){return this.parent=e,this}withNamedViewRoot(e){return this.namedViewRoot=e,this}build(){var e,t,n;const l=(0,s.$faces)().separatorchar;let o=(0,r.DQ$)(`[name*='${(0,s.$nsp)(this.name)}']`).asArray.map((e=>{let t=e.id.orElse("0").value;return t=t.substring(t.lastIndexOf(l)+1),parseInt(t)})).filter((e=>!isNaN(e))).reduce(((e,t)=>Math.max(e,t)),0);o++;const i=r.DQ.fromMarkup((0,s.$nsp)(this.template));return i.id.value=((null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,(0,s.$nsp)(this.name),o]:[(0,s.$nsp)(this.name),o]).join(l),this.namedViewRoot?i.name.value=(null===(t=this.namingContainerId)||void 0===t?void 0:t.length)?[this.namingContainerId,(0,s.$nsp)(this.name)].join(l):(0,s.$nsp)(this.name):i.name.value=(0,s.$nsp)(this.name),null===(n=null==this?void 0:this.parent)||void 0===n||n.append(i),i}}},471:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtLang=void 0;const r=n(257),s=n(207),l=n(351),o=n(7),i=n(257);var a;!function(e){let t;function n(e,n,...r){var o,i;t=null!=t?t:new s.Messages;let a=null!==(i=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==i?i:e;return r.forEach(((e,t)=>{a=a.replace(new RegExp(["\\{",t,"\\}"].join(l.EMPTY_STR),"g"),e)})),a}function a(e,t,n,r,s,o){var i;return new Error(null!==(i=o+(null!=r?r:"impl/util/Lang/")+s)&&void 0!==i?i:l.EMPTY_STR+arguments.caller.toString())}e.getLanguage=function(){var e,t;let n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language;return n=n.split("-")[0],n},e.failSaveResolve=function(e,t=null){return r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t=null){r.Lang.saveResolve(e,t)},e.getMessage=n,e.keyValToStr=function(e,t,n="\n"){return[e,t].join(n)},e.makeException=a,e.getGlobalConfig=function(e,t){var n,r,s;return null!==(s=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==s?s:t},e.getForm=function(e,t){let s=new r.DQ(e),i=t?new r.DQ((0,o.getEventTarget)(t)):r.DomQuery.absent;if(s.isTag(l.HTML_TAG_FORM))return s;if(s.attr(l.HTML_TAG_FORM).isPresent()){let e=s.attr(l.HTML_TAG_FORM).value,t=r.DQ.byId(e,!0);if(t.isPresent())return t}let u=s.firstParent(l.HTML_TAG_FORM).orElseLazy((()=>s.byTagName(l.HTML_TAG_FORM,!0))).orElseLazy((()=>i.firstParent(l.HTML_TAG_FORM))).orElseLazy((()=>i.byTagName(l.HTML_TAG_FORM))).first();return u=u.orElseLazy((()=>r.DQ.byTagName(l.HTML_TAG_FORM))),function(e){if(e.isAbsent()||e.length>1)throw a(new Error,null,null,"Impl","getForm",n("ERR_FORM"))}(u),u},e.getLocalOrGlobalConfig=function(e,t,n){var r,s,l,o,i,a,u;return null!==(u=null!==(o=null===(l=null===(s=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===s?void 0:s.config)||void 0===l?void 0:l[t])&&void 0!==o?o:null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.config)||void 0===a?void 0:a[t])&&void 0!==u?u:n},e.ofAssoc=function(e){return new i.Es2019Array(...Object.keys(e)).map((t=>[t,e[t]]))},e.collectAssoc=function(e,t){return e[t[0]]=t[1],e};let u={};e.debounce=function(e,t,n){function r(){clearTimeout(u[e]),delete u[e]}(null==u?void 0:u[e])&&r(),n>0?u[e]=setTimeout((()=>{try{t()}finally{r()}}),n):t()}}(a||(t.ExtLang=a={}))},666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrQueueController=void 0;var r=n(471).ExtLang.debounce;t.XhrQueueController=class{constructor(){this.queue=[],this.taskRunning=!1}enqueue(e,t=0){r("xhrQueue",(()=>{const t=this.enrichRunnable(e);this.taskRunning?this.queue.push(t):(this.signalTaskRunning(),t.start())}),t)}next(){this.updateTaskRunning();const e=this.queue.shift();null==e||e.start()}clear(){this.queue.length=0,this.updateTaskRunning()}get isEmpty(){return!this.queue.length}enrichRunnable(e){return e.then((()=>this.next())).catch((()=>this.clear()))}signalTaskRunning(){this.taskRunning=!0}updateTaskRunning(){this.taskRunning=!this.isEmpty}}},234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=t.ErrorType=void 0;const r=n(351),s=n(257),l=n(560);var o,i=n(471).ExtLang.getMessage;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientErrror",e.TIMEOUT="timeout"}(o||(t.ErrorType=o={}));class a extends l.EventData{constructor(e,t,n,l=null,i=null,a=-1,u=null,c=o.CLIENT_ERROR){super(),this.type="error",this.source=s.DQ.byId(e).value.orElse(e).value,this.type=r.ERROR,this.errorName=t,this.errorMessage=n,this.responseCode=`${a}`,this.responseText=l,this.responseXML=i,this.status=u,this.description=`Status: ${this.status}\nResponse Code: ${this.responseCode}\nError Message: ${this.errorMessage}`,this.typeDetails=c,c==o.SERVER_ERROR&&(this.serverErrorName=this.errorName,this.serverErrorMessage=this.errorMessage)}static fromClient(e){var t,n,s,l;return new a(null!==(t=null==e?void 0:e.source)&&void 0!==t?t:"client",null!==(n=null==e?void 0:e.name)&&void 0!==n?n:r.EMPTY_STR,null!==(s=null==e?void 0:e.message)&&void 0!==s?s:r.EMPTY_STR,null!==(l=null==e?void 0:e.stack)&&void 0!==l?l:r.EMPTY_STR)}static fromHttpConnection(e,t,n,s,l,i,u=r.EMPTY_STR){return new a(e,t,n,s,l,i,u,o.HTTP_ERROR)}static fromGeneric(e,t,n=o.SERVER_ERROR){let s=this.getMsg,l=s(e,r.SOURCE),i=s(e,r.ERROR_NAME),u=s(e,r.ERROR_MESSAGE),c=s(e,r.STATUS),d=s(e,r.RESPONSE_TEXT),h=e.getIf(r.RESPONSE_XML).value;return new a(l,i,u,d,h,t,c,n)}static getMsg(e,t){return i(e.getIf(t).orElse(r.EMPTY_STR).value)}static fromServerError(e){return this.fromGeneric(e,-1)}}t.ErrorData=a},560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventData=void 0;const r=n(257),s=n(351);class l{static createFromRequest(e,t,n){var o;let i=new l;i.type=s.EVENT,i.status=n;let a=t.getIf(s.SOURCE).orElseLazy((()=>t.getIf(s.P_AJAX_SOURCE).value)).orElseLazy((()=>t.getIf(s.CTX_PARAM_REQ_PASS_THR,s.P_AJAX_SOURCE).value)).value;return a&&(i.source=r.DQ.byId(a,!0).first().value.value),n!==s.BEGIN&&(i.responseCode=null===(o=null==e?void 0:e.status)||void 0===o?void 0:o.toString(),i.responseText=null==e?void 0:e.responseText,i.responseXML=null==e?void 0:e.responseXML),i}}t.EventData=l},7:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDefaults=t.getEventTarget=t.resolveWindowId=t.resolveDelay=t.resolveTimeout=t.resoveNamingContainerMapper=t.resolveViewRootId=t.resolveViewId=t.resolveForm=t.resolveFinalUrl=t.resolveTargetUrl=t.resolveHandlerFunc=void 0;const r=n(257),s=n(351),l=n(471),o=n(780),i=n(22);function a(e){return void 0===e.elements[s.ENCODED_URL]?e.action:e.elements[s.ENCODED_URL].value}function u(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:o.ExtDomQuery.windowId.value}t.resolveHandlerFunc=function(e,t,n){return(t=t||new r.Config({})).getIf(n).orElseLazy((()=>e.getIf(n).value)).orElse(s.EMPTY_FUNC).value},t.resolveTargetUrl=a,t.resolveFinalUrl=function(e,t,n=s.REQ_TYPE_POST){return a(e.getAsElem(0).value)+(n==s.REQ_TYPE_GET?"?"+t.toString():s.EMPTY_STR)},t.resolveForm=function(e,t){return l.ExtLang.getForm(e.getAsElem(0).value,t)},t.resolveViewId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).id.orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0],l=-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:"";return 0===e.id.value.indexOf(l)?l:""},t.resolveViewRootId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).attr("name").orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0];return-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:""},t.resoveNamingContainerMapper=function(e){if(!e.getIf(s.NAMED_VIEWROOT).isPresent())return(e,t)=>[e,t];const t=e.getIf(s.NAMING_CONTAINER_ID).value+(0,s.$faces)().separatorchar;return(e,n)=>0==e.indexOf(t)?[e,n]:[t+e,n]},t.resolveTimeout=function(e){var t;let n=l.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(s.CTX_OPTIONS_TIMEOUT).value)&&void 0!==t?t:n(e.value,s.CTX_OPTIONS_TIMEOUT,0)},t.resolveDelay=function(e){let t=e.getIf(s.CTX_OPTIONS_DELAY).orElse(0).value;return t=s.DELAY_NONE===t?0:t,i.Assertions.assertDelay(t),t},t.resolveWindowId=u,t.getEventTarget=function(e){var t,n;let r=e,s=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;for(;s&&1!=s.nodeType;)s=s.parentNode;return s},t.resolveDefaults=function(e,t,n=null){var s;const l=r.DQ.byId(n||e.target,!0),i=new o.ExtConfig(t).deepCopy;return{options:i,elem:l,elementId:l.id.value,windowId:u(i),isResetValues:!0===(null===(s=i.value)||void 0===s?void 0:s.resetValues)}}},413:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSourceForm=t.resolveSourceElement=t.resolveContexts=t.resolveResponseXML=void 0;const r=n(257),s=n(22),l=n(257),o=n(351),i=n(780);t.resolveResponseXML=function(e){let t=new r.XMLQuery((0,o.$nsp)(e.getIf(o.SEL_RESPONSE_XML).value));return s.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){let t=i.ExtConfig.fromNullable(e),n=t.getIf(o.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=i.ExtConfig.fromNullable({})),n.assign(o.DEFERRED_HEAD_INSERTS).value=[],n.assign(o.UPDATE_FORMS).value=[],n.assign(o.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){let n=function(e,t){return t.getIf(o.CTX_PARAM_SRC_CTL_ID).orElseLazy((()=>e.getIf(o.SOURCE,"id").value))}(e,t);return l.DQ.byId(n.value,!0)},t.resolveSourceForm=function(e,t){let n=e.getIf(o.CTX_PARAM_SRC_FRM_ID),r=new l.DQ(n.isPresent()?document.forms[n.value]:null);return r=r.orElseLazy((()=>t.firstParent(o.HTML_TAG_FORM))).orElseLazy((()=>t.querySelectorAll(o.HTML_TAG_FORM))).orElseLazy((()=>l.DQ.querySelectorAll(o.HTML_TAG_FORM))),r}},121:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const r=n(257),s=n(797),l=n(351),o=n(413),i=n(780);var a;!function(e){e.processResponse=function(e,n){let a=i.ExtConfig.fromNullable(e),{externalContext:u,internalContext:c}=(0,o.resolveContexts)(n),d=(0,o.resolveResponseXML)(a),h=new s.ResponseProcessor(a,u,c);c.assign(l.RESPONSE_XML).value=d,d.querySelectorAll(l.XML_TAG_PARTIAL_RESP).each((e=>function(e,n,s){var o;let i=null===(o=null==e?void 0:e.id)||void 0===o?void 0:o.value;s.assignIf(!!i,l.NAMING_CONTAINER_ID).value=i,n.updateNamedViewRootState();const a=[l.XML_TAG_ERROR,l.XML_TAG_REDIRECT,l.XML_TAG_CHANGES].join(",");e.querySelectorAll(a).each((e=>{switch(e.tagName.value){case l.XML_TAG_ERROR:n.error(e);break;case l.XML_TAG_REDIRECT:n.redirect(e);break;case l.XML_TAG_CHANGES:!function(e,n){const s=[l.XML_TAG_UPDATE,l.XML_TAG_EVAL,l.XML_TAG_INSERT,l.XML_TAG_DELETE,l.XML_TAG_ATTRIBUTES,l.XML_TAG_EXTENSION].join(", ");e.querySelectorAll(s).each((e=>{switch(e.tagName.value){case l.XML_TAG_UPDATE:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){let n=e.cDATAAsString;switch(e.id.value){case(0,l.$nsp)(l.P_VIEWROOT):t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseProcessor=void 0;const r=n(257),s=n(644),l=n(22),o=n(234),i=n(315),a=n(560),u=n(351),c=n(780),d=n(248);var h=r.Lang.trim,E=n(471).ExtLang.ofAssoc;class v{constructor(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}replaceHead(e){const t=e.querySelectorAll(u.HTML_TAG_HEAD);if(!t.isPresent())return;const n=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_HEAD);n.childNodes.delete(),this.addToHead(t),n.copyAttrs(t)}addToHead(e){const t=new c.ExtDomQuery(e),n=[u.HTML_TAG_SCRIPT];t.filter((e=>-1==n.indexOf(e.tagName.orElse("").value))).runHeadInserts(!0);const s="HEAD"===e.tagName.value?e.childNodes:e,l=new r.DomQuery(...s.asArray.filter((e=>-1!=n.indexOf(e.tagName.orElse("").value))));this.addToHeadDeferred(l)}addToHeadDeferred(e){this.internalContext.assign(u.DEFERRED_HEAD_INSERTS).value.push(e)}replaceBody(e){const t=e.querySelectorAll(u.HTML_TAG_BODY);if(!t.isPresent())return;const n=t.innerHTML,r=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_BODY),s=r.querySelectorAll(u.HTML_TAG_FORM);r.html(n).copyAttrs(t),this.externalContext.assign((0,u.$nsp)(u.P_RENDER_OVERRIDE)).value="@all",this.storeForPostProcessing(s,r)}eval(e){c.ExtDomQuery.globalEval(e.cDATAAsString)}error(e){const t=new c.ExtConfig({});t.assign(u.SOURCE).value=this.externalContext.getIf(u.P_AJAX_SOURCE).get(0).value,t.assign(u.ERROR_NAME).value=e.querySelectorAll(u.ERROR_NAME).textContent(u.EMPTY_STR),t.assign(u.ERROR_MESSAGE).value=e.querySelectorAll(u.ERROR_MESSAGE).cDATAAsString;const n=this.internalContext.get(u.RESPONSE_XML).isPresent();t.assignIf(n,u.RESPONSE_XML).value=this.internalContext.getIf(u.RESPONSE_XML).value.get(0).value;const r=o.ErrorData.fromServerError(t);this.triggerOnError(r),s.Implementation.sendError(r)}redirect(e){l.Assertions.assertUrlExists(e);const t=h(e.attr(u.ATTR_URL).value);t!=u.EMPTY_STR&&(window.location.href=t)}update(e,t){const n=c.ExtDomQuery.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.firstParent(u.HTML_TAG_FORM).orElseLazy((()=>n.byTagName(u.HTML_TAG_FORM,!0)));r&&this.storeForPostProcessing(r,n)}delete(e){r.DQ.byId(e.id.value,!0).delete()}attributes(e){const t=r.DQ.byId(e.id.value,!0);e.byTagName(u.XML_TAG_ATTR).each((e=>{t.attr(e.attr(u.ATTR_NAME).value).value=e.attr(u.ATTR_VALUE).value}))}replaceViewRoot(e){this.replaceHead(e),this.replaceBody(e)}insert(e){const t=e.attr(u.XML_TAG_BEFORE),n=e.attr(u.XML_TAG_AFTER),s=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s)),n.isPresent()&&(r.DQ.byId(n.value,!0).insertAfter(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s))}insertWithSubTags(e){const t=e.querySelectorAll(u.XML_TAG_BEFORE),n=e.querySelectorAll(u.XML_TAG_AFTER);t.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))})),n.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertAfter(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))}))}processViewState(e){if(v.isViewStateNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_VST,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}return!1}processClientWindow(e){if(v.isClientWindowNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_CLIENT_WINDOW,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}}globalEval(){new c.ExtDomQuery(...this.internalContext.getIf(u.DEFERRED_HEAD_INSERTS).value).runHeadInserts(!0);let e=new c.ExtDomQuery(...this.internalContext.getIf(u.UPDATE_ELEMS).value);e.runCss(),e.runScripts()}fixViewStates(){E(this.internalContext.getIf(u.APPLIED_VST).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendViewStateToForms(r,n,e.value,t.orElse("").value)}))}fixClientWindow(){E(this.internalContext.getIf(u.APPLIED_CLIENT_WINDOW).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendClientWindowToForms(r,n,e.value,t.orElse("").value)}))}updateNamedViewRootState(){let e=this.internalContext.getIf(u.NAMING_CONTAINER_ID),t=this.internalContext.getIf(u.NAMED_VIEWROOT);if(e.isPresent()&&(t.isAbsent()||!t.value)){const t=(0,u.$faces)().separatorchar;this.internalContext.assign(u.NAMED_VIEWROOT).value=!!document.getElementById(e.value)||(0,r.DQ$)(`input[name*='${(0,u.$nsp)(u.P_VIEWSTATE)}']`).filter((n=>0==n.attr("name").value.indexOf(e.value+t))).length>0}}done(){const e=a.EventData.createFromRequest(this.request.value,this.externalContext,u.SUCCESS),t=this.externalContext.getIf(u.ON_EVENT).orElseLazy((()=>this.internalContext.getIf(u.ON_EVENT).value)).orElse(u.EMPTY_FUNC).value;s.Implementation.sendEvent(e,t)}appendViewStateToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_VIEWSTATE_ELEM),t,n,r)}appendClientWindowToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_CLIENT_WINDOW_ELEM),t,n,r)}assignState(e,t,n,r,s){e.each((e=>{e.querySelectorAll(t).orElseLazy((()=>(e=>new d.HiddenInputBuilder(t).withNamingContainerId(s).withParent(e).withNamedViewRoot(n).build())(e))).val=r}))}storeForPostProcessing(e,t){this.storeForUpdate(e),this.storeForEval(t)}storeForUpdate(e){this.internalContext.assign(u.UPDATE_FORMS).value.push(e)}storeForEval(e){this.internalContext.assign(u.UPDATE_ELEMS).value.push(e)}static isViewStateNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_VIEWSTATE)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_VIEWSTATE)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_VIEWSTATE),i].join(u.EMPTY_STR))))}static isClientWindowNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_CLIENT_WINDOW)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_CLIENT_WINDOW)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_CLIENT_WINDOW),i].join(u.EMPTY_STR))))}triggerOnError(e){this.externalContext.getIf(u.ON_ERROR).orElseLazy((()=>this.internalContext.getIf(u.ON_ERROR).value)).orElse(u.EMPTY_FUNC).value(e)}isInExecuteOrRender(e){const t=this.externalContext.getIf((0,u.$nsp)(u.P_EXECUTE)).orElse("@none").value.split(/\s+/gi),n=this.externalContext.getIf(u.P_RENDER_OVERRIDE).orElseLazy((()=>this.externalContext.getIf((0,u.$nsp)(u.P_RENDER)).value)).orElse(u.IDENT_NONE).value.split(/\s+/gi);return[...t.concat(...n)].filter((t=>{if(-1!=[u.IDENT_ALL,u.IDENT_NONE].indexOf(t))return!0;const n=this.getNameOrIdSelector(t);return e.matchesSelector(n)||e.querySelectorAll(n).isPresent()||e.firstParent(n).isPresent()})).length>0}getContainerForms(e){return e.isPresent()?(0,r.DQ$)(this.getNameOrIdSelector(e.value)).orElseLazy((()=>r.DQ.byTagName(u.HTML_TAG_BODY))).byTagName(u.HTML_TAG_FORM,!0):r.DQ.byTagName(u.HTML_TAG_FORM)}getNameOrIdSelector(e){return`[id='${e}'], [name='${e}']`}}t.ResponseProcessor=v},944:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrFormData=void 0;const r=n(257),s=n(351),l=n(680);var o=n(471).ExtLang.ofAssoc;const i=n(257),a=(e,t)=>[e,t];class u extends r.Config{constructor(e,t=a,n,r){super({}),this.dataSource=e,this.paramsMapper=t,this.partialIds=r,this.isMultipartRequest=!1,this.resolveRequestType(this.dataSource,n),this.encodeSubmittableFields(this.dataSource,this.partialIds),this.applyViewState(this.dataSource)}toFormData(){return o(this.value).flatMap((([e,t])=>Array.isArray(t)?new i.Es2019Array(...t).map((t=>({key:e,value:t}))):[{key:e,value:t}])).map((({key:e,value:t})=>({key:e=this.remapKeyForNamingContainer(e),value:t}))).reduce(((e,{key:t,value:n})=>(e.append(t,n),e)),new FormData)}toString(e=s.EMPTY_STR){return(0,l.encodeFormData)(this,this.paramsMapper,e)}resolveRequestType(e,t){t&&-1==t.indexOf(s.IDENT_NONE)&&(this.isMultipartRequest=e.isMultipartCandidate(!0))}applyViewState(e){if(this.getIf((0,s.$nsp)(s.P_VIEWSTATE)).isPresent())return;let t=e.querySelectorAllDeep(`[name*='${(0,s.$nsp)(s.P_VIEWSTATE)}'`),n=t.inputValue;this.appendIf(n.isPresent(),this.remapKeyForNamingContainer(t.name.value)).value=n.value}encodeSubmittableFields(e,t=[]){const n=t.map((e=>this.remapKeyForNamingContainer(e)));(0,l.getFormInputsAsArr)(e).map(l.fixEmptyParameters).map((([e,t])=>this.paramsMapper(e,t))).filter((([e,t])=>!n.length||0==e.indexOf("@")||-1!=n.indexOf(e))).forEach((([e,t])=>this.append(e).value=t))}remapKeyForNamingContainer(e){return this.paramsMapper(e,"")[0]}}t.XhrFormData=u},229:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequest=void 0;const r=n(726),s=n(257),l=n(644),o=n(944),i=n(234),a=n(560),u=n(471),c=n(351),d=n(7);var h=u.ExtLang.failSaveExecute;const E=n(780);class v extends r.AsyncRunnable{constructor(e,t,n=c.NO_TIMEOUT,r=c.REQ_TYPE_POST,s=c.URL_ENCODED){super(),this.requestContext=e,this.internalContext=t,this.timeout=n,this.ajaxType=r,this.contentType=s,this.stopProgress=!1,this.xhrObject=new XMLHttpRequest,this.registerXhrCallbacks((e=>this.resolve(e)),(e=>this.reject(e)))}start(){let e=h,t=this.xhrObject,n=s.DQ.byId(this.internalContext.getIf(c.CTX_PARAM_SRC_FRM_ID).value),r=()=>this.requestContext.getIf(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).get(c.IDENT_NONE).value.split(/\s+/gi);try{const s=r(),l=!0===this.internalContext.getIf(c.CTX_PARAM_PPS).value?s:[],i=new o.XhrFormData(n,(0,d.resoveNamingContainerMapper)(this.internalContext),s,l);this.contentType=i.isMultipartRequest?"undefined":this.contentType,this.requestContext.$nspEnabled=!1;const a=this.requestContext,u=a.getIf(c.CTX_PARAM_REQ_PASS_THR);u.$nspEnabled=!1;try{i.shallowMerge(u,!0,!0)}finally{this.requestContext.$nspEnabled=!0,u.$nspEnabled=!0}this.appendIssuingItem(i),this.responseContext=u.deepCopy;const h=this.responseContext;h.assign(c.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,h.assign(c.ON_EVENT).value=a.getIf(c.ON_EVENT).value,h.assign(c.ON_ERROR).value=a.getIf(c.ON_ERROR).value,t.open(this.ajaxType,(0,d.resolveFinalUrl)(n,i,this.ajaxType),!0),this.timeout&&(t.timeout=this.timeout),"undefined"!=this.contentType&&e((()=>t.setRequestHeader(c.CONTENT_TYPE,`${this.contentType}; charset=utf-8`))),e((()=>t.setRequestHeader(c.HEAD_FACES_REQ,c.VAL_AJAX))),e((()=>t.setRequestHeader(c.REQ_ACCEPT,c.STD_ACCEPT))),this.sendEvent(c.BEGIN),this.sendRequest(i)}catch(e){throw this.handleErrorAndClearQueue(e),e}return this}cancel(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}}registerXhrCallbacks(e,t){var n,r;const s=this.xhrObject;s.onabort=()=>{this.onAbort(e,t)},s.ontimeout=()=>{this.onTimeout(e,t)},s.onload=()=>{this.onResponseReceived(e)},s.onloadend=()=>{this.onResponseProcessed(this.xhrObject,e)},(null==s?void 0:s.upload)&&(null===(r=(n=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_PREINIT)).value)||void 0===r||r.call(n,s.upload),s.upload.addEventListener("progress",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ON_PROGRESS)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("load",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOAD)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadstart",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADSTART)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadend",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADEND)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("abort",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ABORT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("timeout",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_TIMEOUT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("error",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ERROR)).value)||void 0===n||n.call(t,s.upload,e)}))),s.onerror=e=>{if(this.isCancelledResponse(this.xhrObject))return this.stopProgress=!0,void t();this.stopProgress||this.handleError(e)}}isCancelledResponse(e){return 0===(null==e?void 0:e.status)&&4===(null==e?void 0:e.readyState)&&""===(null==e?void 0:e.responseText)&&null===(null==e?void 0:e.responseXML)}onAbort(e,t){this.handleHttpError(t)}onTimeout(e,t){this.sendEvent(c.STATE_EVT_TIMEOUT),this.handleHttpError(e)}onResponseReceived(e){var t;this.sendEvent(c.COMPLETE),this.processRequestErrors(e)||(0,c.$faces)().ajax.response(this.xhrObject,null!==(t=this.responseContext.value)&&void 0!==t?t:{})}processRequestErrors(e){var t,n,r;const l=new s.XMLQuery(null===(t=this.xhrObject)||void 0===t?void 0:t.responseXML),o=null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.status)&&void 0!==r?r:-1;if(l.isXMLParserError()){const t="Invalid Response",n="The response xml is invalid";return this.handleGenericResponseError(t,n,c.MALFORMEDXML,e),!0}if(l.isAbsent()){const t="Empty Response",n="The response has provided no data";return this.handleGenericResponseError(t,n,c.EMPTY_RESPONSE,e),!0}return(o>=300||o<200)&&(this.handleHttpError(e),!0)}handleGenericResponseError(e,t,n,r){var s,l,o,a;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,e,t,null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseText)&&void 0!==l?l:"",null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.responseXML)&&void 0!==a?a:null,this.xhrObject.status,n);this.finalizeError(u,r)}handleHttpError(e,t="Generic HTTP Serror"){var n,r,s,l,o,a;this.stopProgress=!0;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,c.HTTP_ERROR,t,null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseXML)&&void 0!==l?l:null,null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.status)&&void 0!==a?a:-1,c.HTTP_ERROR);this.finalizeError(u,e)}finalizeError(e,t){try{this.handleError(e,!0)}finally{t(e),this.stopProgress=!0}}onResponseProcessed(e,t){this.stopProgress||t(e)}sendRequest(e){const t=this.ajaxType!=c.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)}sendEvent(e){var t;const n=a.EventData.createFromRequest(this.xhrObject,this.requestContext,e);try{let e=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_EVENT);l.Implementation.sendEvent(n,e)}catch(e){throw e.source=null!==(t=null==e?void 0:e.source)&&void 0!==t?t:this.requestContext.getIf(c.SOURCE).value,this.handleErrorAndClearQueue(e),e}}handleErrorAndClearQueue(e,t=!1){this.handleError(e,t),this.reject(e)}handleError(e,t=!1){var n;const r=t?i.ErrorData.fromHttpConnection(e.source,e.type,null!==(n=e.message)&&void 0!==n?n:c.EMPTY_STR,e.responseText,e.responseXML,e.responseCode,e.status):i.ErrorData.fromClient(e),s=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_ERROR);l.Implementation.sendError(r,s)}appendIssuingItem(e){var t,n;const r=this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,l=null!==(n=null===(t=e.getIf((0,c.$nsp)(c.P_BEHAVIOR_EVENT)).value)||void 0===t?void 0:t[0])&&void 0!==n?n:null,o=!!l&&"click"!=l;if(r&&e.getIf(r).isAbsent()&&!o){const t=s.DQ.byId(r),n=t.inputValue,l=new E.ExtConfig({}),o=t.type.orElse("").value.toLowerCase();if(!(o!=v.TYPE_CHECKBOX&&o!=v.TYPE_RADIO||t.checked))return;o==v.TYPE_CHECKBOX||o==v.TYPE_RADIO?l.assign(r).value=n.orElse(!0).value:n.isPresent()&&(l.assign(r).value=n.value),e.shallowMerge(l,!0,!0)}}}t.XhrRequest=v,v.TYPE_CHECKBOX="checkbox",v.TYPE_RADIO="radio"},19:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.oam=void 0;const r=n(257),s=n(471);var l;!function(e){var t=s.ExtLang.ofAssoc;e.setHiddenInput=function(e,t,n){r.DQ.byId(document.forms[e]).each((e=>{const s=e.querySelectorAll(`input[type='hidden'][name='${t}']`);if(s.isPresent())s.inputValue.value=n;else{const s=r.DQ.fromMarkup(``);s.inputValue.value=n,s.appendTo(e)}}))},e.clearHiddenInput=function(e,t){var n,s,l;let o=null===(l=null===(s=null===(n=document.forms)||void 0===n?void 0:n[e])||void 0===s?void 0:s.elements)||void 0===l?void 0:l[t];o&&r.DQ.byId(o).delete()},e.submitForm=function(e,n=null,s=null,l={}){var o,i,a,u,c,d;l=l||{};let h="clearFormHiddenParams_"+e.replace(/-/g,"$:").replace(/:/g,"_");null===(o=null===window||void 0===window?void 0:window[h])||void 0===o||o.call(window,e),(null===(u=null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.core)||void 0===a?void 0:a.config)||void 0===u?void 0:u.autoScroll)&&(null===window||void 0===window?void 0:window.getScrolling)&&myfaces.oam.setHiddenInput(e,"autoScroll",null===window||void 0===window?void 0:window.getScrolling());let E=Array.isArray(l)?[...l]:t(l);return E.forEach((([t,n])=>myfaces.oam.setHiddenInput(e,t,n))),myfaces.oam.setHiddenInput(e,`${e}:_idcl`,null!=n?n:""),r.DQ.byId(null!==(d=null===(c=document.forms)||void 0===c?void 0:c[e])&&void 0!==d?d:document.getElementById(e)).each((t=>{var n;const r=t.getAsElem(0).value,l=t.getAsElem(0).value.getAttribute("target");"null"!=s&&s&&t.getAsElem(0).value.setAttribute("target",s);const o=null===(n=null==r?void 0:r.onsubmit)||void 0===n?void 0:n.call(r,null);try{(o||void 0===o)&&r.submit()}catch(e){null===window||void 0===window||window.console.error(e)}finally{null==l||"null"==l?t.getAsElem(0).value.removeAttribute("target"):t.getAsElem(0).value.setAttribute("target",l),E.forEach((([t,n])=>{myfaces.oam.clearHiddenInput(e,t)})),myfaces.oam.clearHiddenInput(e,`${e}:_idcl`)}})),!1}}(l||(t.oam=l={}))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};(()=>{var e,t,s,l=r;if(Object.defineProperty(l,"__esModule",{value:!0}),l.myfaces=l.faces=void 0,!window.faces){const t=n(973).J_;window.faces=null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:t}if(!(null===(t=null===window||void 0===window?void 0:window.myfaces)||void 0===t?void 0:t.ab)){const e=n(973).$A;window.myfaces=null!==(s=null===window||void 0===window?void 0:window.myfaces)&&void 0!==s?s:{},Object.keys(e).forEach((t=>{var n,r;return window.myfaces[t]=null!==(r=null===(n=window.myfaces)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}))}l.faces=window.faces,l.myfaces=window.myfaces})();var s=window;for(var l in r)s[l]=r[l];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
//# sourceMappingURL=faces.js.map
\ No newline at end of file
diff --git a/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map b/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map
index f72d29d57b..a059d4fc89 100644
--- a/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map
+++ b/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map
@@ -1 +1 @@
-{"version":3,"file":"faces.js","mappings":";yNAuBA,cAKA,MAAMA,EACF,WAAAC,CAAoBC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ACR,GAAsB,iBAAXwK,OAAqB,OAAOA,MACxC,CACA,CAPuB,gCC8BxB,8EAAIA,OAAOyF,MAAO,CAEd,MAAMA,EAAQ,UACdzF,OAAc,MAAiB,QAAb,EAAM,OAANA,aAAM,IAANA,YAAM,EAANA,OAAQyF,aAAK,QAAIA,EAEvC,KAAmB,QAAf,EAAM,OAANzF,aAAM,IAANA,YAAM,EAANA,OAAQ0F,eAAO,eAAEoC,IAAI,CACrB,MAAMpC,EAAU,UAGf1F,OAAwB,QAAmB,QAAf,EAAM,OAANA,aAAM,IAANA,YAAM,EAANA,OAAQ0F,eAAO,QAAI,CAAC,EACjD/hB,OAAOD,KAAKgiB,GAAS9hB,SAAQrC,IAAM,QAAC,OAAAye,OAAO0F,QAAQnkB,GAA4B,QAArB,EAAc,QAAd,EAAAye,OAAO0F,eAAO,eAAGnkB,UAAI,QAAImkB,EAAQnkB,EAAI,IAExF,EAAAkkB,MAAQzF,OAAOyF,MACf,EAAAC,QAAU1F,OAAO0F","sources":["webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/AssocArray.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Config.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/DomQuery.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Es2019Array.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Global.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Lang.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Monad.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/SourcesCollectors.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/XmlQuery.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/index_core.ts","webpack://jsf.js_next_gen/./src/main/typescript/api/_api.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/AjaxImpl.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/PushImpl.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/core/Const.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/core/ImplTypes.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/i18n/Messages.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/Assertions.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/AsyncRunnable.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/ExtDomQuery.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/FileUtils.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/HiddenInputBuilder.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/Lang.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/XhrQueueController.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ErrorData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/EventData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/RequestDataResolver.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ResonseDataResolver.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/Response.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ResponseProcessor.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/XhrFormData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/XhrRequest.ts","webpack://jsf.js_next_gen/./src/main/typescript/myfaces/OamSubmit.ts","webpack://jsf.js_next_gen/webpack/bootstrap","webpack://jsf.js_next_gen/webpack/runtime/global","webpack://jsf.js_next_gen/./src/main/typescript/api/faces.ts"],"sourcesContent":["/*!\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * various helpers to deal with associative\n * arrays. If someone feels uncomfortable using\n * The config system, this is similar!\n */\nimport {IValueHolder} from \"./Monad\";\nimport {Es2019Array} from \"./Es2019Array\";\n\n/**\n * A nop as assign functionality (aka ignore assign)\n */\nclass IgnoreAssign implements IValueHolder {\n constructor(private parent: any) {}\n\n set value(value: any | Array) {\n }\n get value(): any | Array {\n return this.parent;\n }\n};\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function assign(target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if (accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n const lastPathItem = buildPath(target, ...accessPath);\n let assigner: IValueHolder = new (class {\n set value(value: T | Array) {\n lastPathItem.target[lastPathItem.key] = value;\n }\n\n get value(): T | Array {\n return lastPathItem.target[lastPathItem.key];\n }\n })();\n return assigner;\n}\n\n\nexport function append(target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if (accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n const lastPathItem = buildPath(target, ...accessPath);\n let appender: IValueHolder = new (class {\n set value(value: T | Array) {\n if(!Array.isArray(value)) {\n value = [value];\n }\n if(!lastPathItem.target[lastPathItem.key]) {\n lastPathItem.target[lastPathItem.key] = value\n } else {\n if(!Array.isArray(lastPathItem.target[lastPathItem.key])) {\n lastPathItem.target[lastPathItem.key] = [lastPathItem.target[lastPathItem.key]];\n }\n lastPathItem.target[lastPathItem.key].push(...value);\n }\n }\n })();\n return appender;\n}\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function assignIf(condition: boolean, target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if ((!condition) || accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n return assign(target, ...accessPath);\n}\n\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function appendIf(condition: boolean, target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if ((!condition) || accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n return append(target, ...accessPath);\n}\n\nexport function resolve(target, ...accessPath: string[]): T | null {\n let ret = null;\n accessPath = flattenAccessPath(accessPath);\n let currPtr = target;\n for(let cnt = 0; cnt < accessPath.length; cnt++) {\n let accessKeyIndex: number | string = accessPath[cnt];\n accessKeyIndex = arrayIndex(accessKeyIndex) != -1 ? arrayIndex(accessKeyIndex) : accessKeyIndex;\n currPtr = currPtr?.[accessKeyIndex];\n if('undefined' == typeof currPtr) {\n return null;\n }\n ret = currPtr;\n }\n return currPtr;\n}\n\n\nfunction keyVal(key: string): string {\n let start = key.indexOf(\"[\");\n\n if (start >= 0) {\n return key.substring(0, start);\n } else {\n return key;\n }\n}\n\nfunction arrayIndex(key: string): number {\n let start = key.indexOf(\"[\");\n let end = key.indexOf(\"]\");\n if (start >= 0 && end > 0 && start < end) {\n return parseInt(key.substring(start + 1, end));\n } else {\n return -1;\n }\n}\n\nfunction isArrayPos(currKey: string, arrPos: number): boolean {\n return currKey === \"\" && arrPos >= 0;\n}\n\nfunction isNoArray(arrPos: number): boolean {\n return arrPos == -1;\n}\n\nfunction alloc(arr: Array, length: number, defaultVal = {}) {\n let toAdd = [];\n toAdd.length = length;\n toAdd[length - 1] = defaultVal;\n arr.push(...toAdd);\n}\n\n\nfunction flattenAccessPath(accessPath: string[]) {\n return new Es2019Array(...accessPath).flatMap(path => path.split(\"[\"))\n .map(path => path.indexOf(\"]\") != -1 ? \"[\" + path : path)\n .filter(path => path != \"\");\n}\n\n/**\n * builds up a path, only done if no data is present!\n * @param target\n * @param accessPath\n * @returns the last assignable entry\n */\nexport function buildPath(target, ...accessPath: string[]) {\n accessPath = flattenAccessPath(accessPath);\n //we now have a pattern of having the array accessors always in separate items\n let parentPtr = target;\n let parKeyArrPos = null;\n let currKey = null;\n let arrPos = -1;\n\n for (let cnt = 0; cnt < accessPath.length; cnt++) {\n currKey = keyVal(accessPath[cnt]);\n arrPos = arrayIndex(accessPath[cnt]);\n //it now is either key or arrPos\n if (arrPos != -1) {\n //case root(array)[5] -> root must be array and allocate 5 elements\n //case root.item[5] root.item must be array and of 5 elements\n if(!Array.isArray(parentPtr)) {\n throw Error(\"Associative array referenced as index array in path reference\");\n }\n\n //we need to look ahead for proper allocation\n //not end reached\n let nextArrPos = -1;\n if(cnt < accessPath.length - 1) {\n nextArrPos = arrayIndex(accessPath[cnt + 1])\n }\n let dataPresent = 'undefined' != typeof parentPtr?.[arrPos];\n //no data present check here is needed, because alloc only reserves if not present\n alloc(parentPtr, arrPos + 1, nextArrPos != -1 ?[]: {});\n parKeyArrPos = arrPos;\n //we now go to the reserved element\n if(cnt == accessPath.length - 1) {\n parentPtr[arrPos] = (dataPresent) ? parentPtr[arrPos] : null;\n } else {\n parentPtr = parentPtr[arrPos];\n }\n } else {\n if(Array.isArray(parentPtr)) {\n throw Error(\"Index array referenced as associative array in path reference\");\n }\n //again look ahead whether the next value is an array or assoc array\n let nextArrPos = -1;\n if(cnt < accessPath.length - 1) {\n nextArrPos = arrayIndex(accessPath[cnt + 1])\n }\n parKeyArrPos = currKey;\n let dataPresent = 'undefined' != typeof parentPtr?.[currKey];\n if(cnt == accessPath.length - 1) {\n if(!dataPresent) {\n parentPtr[currKey] = null;\n }\n } else {\n if(!dataPresent) {\n parentPtr[currKey] = nextArrPos == -1 ? {} : [];\n }\n parentPtr = parentPtr[currKey];\n }\n }\n }\n\n return {target: parentPtr, key: parKeyArrPos};\n\n}\n\nexport function deepCopy(fromAssoc: {[key: string]: any}): {[key: string]: any} {\n return JSON.parse(JSON.stringify(fromAssoc));\n}\n\n/**\n * simple left to right merge\n *\n * @param assocArrays\n */\nexport function simpleShallowMerge(...assocArrays) {\n return shallowMerge(true, false, ...assocArrays);\n}\n\nfunction _appendWithOverwrite(withAppend: boolean, target: { [p: string]: any }, key, arr, toAssign) {\n if (!withAppend) {\n target[key] = arr[key];\n } else {\n //overwrite means in this case, no double entries!\n //we do not a deep compare for now a single value compare suffices\n if ('undefined' == typeof target?.[key]) {\n target[key] = toAssign\n } else if (!Array.isArray(target[key])) {\n\n let oldVal = target[key];\n let newVals = [];\n //TODO maybe deep deep compare here, but on the other hand it is\n //shallow\n toAssign.forEach(item => {\n if (oldVal != item) {\n newVals.push(item);\n }\n });\n target[key] = new Es2019Array(...[]);\n target[key].push(oldVal);\n target[key].push(...newVals);\n } else {\n let oldVal = target[key];\n let newVals = [];\n //TODO deep compare here\n toAssign.forEach(item => {\n if (oldVal.indexOf(item) == -1) {\n newVals.push(item);\n }\n });\n\n target[key].push(...newVals);\n }\n }\n}\n\nfunction _appendWithoutOverwrite(withAppend: boolean, target: { [p: string]: any }, key, arr, toAssign) {\n if (!withAppend) {\n return;\n } else {\n //overwrite means in this case, no double entries!\n //we do not a deep compare for now a single value compare suffices\n if ('undefined' == typeof target?.[key]) {\n target[key] = toAssign\n } else if (!Array.isArray(target[key])) {\n let oldVal = target[key];\n target[key] = new Es2019Array(...[]);\n target[key].push(oldVal);\n target[key].push(...toAssign);\n } else {\n target[key].push(...toAssign);\n }\n }\n}\n\n/**\n * Shallow merge as in config, but on raw associative arrays\n *\n * @param overwrite overwrite existing keys, if they exist with their subtrees\n * @param withAppend if a key exist append the values or drop them\n * Combination overwrite withappend filters doubles out of merged arrays\n * @param assocArrays array of assoc arres reduced right to left\n */\nexport function shallowMerge(overwrite = true, withAppend = false, ...assocArrays) {\n let target: {[key: string]: any} = {};\n new Es2019Array(...assocArrays).map(arr => {\n return {arr, keys: Object.keys(arr)};\n }).forEach(({arr, keys}) => {\n keys.forEach(key => {\n let toAssign = arr[key];\n if(!Array.isArray(toAssign) && withAppend) {\n toAssign = new Es2019Array(...[toAssign]);\n }\n if(overwrite || !target?.[key]) {\n _appendWithOverwrite(withAppend, target, key, arr, toAssign);\n } else if(!overwrite && target?.[key]) {\n _appendWithoutOverwrite(withAppend, target, key, arr, toAssign);\n }\n\n\n\n })\n });\n return target;\n}\n\n//TODO test this, slightly altered from https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934\n//he overlooked some optimizations and a shortcut at typeof!\nexport function deepEqual(obj1, obj2) {\n if(obj1 == obj2) {\n return false;\n }\n if(typeof obj1 != typeof obj2) {\n return false;\n }\n if(Array.isArray(obj1) && Array.isArray(obj2)) {\n if(obj1.length != obj2.length) {\n return;\n }\n //arrays must be equal, order as well, there is no way around it\n //this is the major limitation we have\n return obj1.every((item, cnt) => deepEqual(item, obj2[cnt]));\n }\n //string number and other primitives are filtered out here\n if(\"object\" == typeof obj1 && \"object\" == typeof obj2) {\n let keys1 = Object.keys(obj1);\n let keys2 = Object.keys(obj2);\n if(keys1.length != keys2.length) {\n return false;\n }\n return keys1.every(key => keys2.indexOf(key) != -1) &&\n keys1.every(key => deepEqual(obj1[key], obj2[key]));\n }\n return false;\n //done here no match found\n}\n\n","import {Es2019Array} from \"./Es2019Array\";\nimport {IValueHolder, Optional, ValueEmbedder} from \"./Monad\";\nimport {Lang} from \"./Lang\";\nimport objAssign = Lang.objAssign;\nimport {append, appendIf, assign, assignIf, resolve, shallowMerge} from \"./AssocArray\";\n\n/**\n * specialized value embedder\n * for our Configuration\n */\nclass ConfigEntry extends ValueEmbedder {\n\n /*default value for absent*/\n static absent = ConfigEntry.fromNullable(null);\n\n /**\n * arrayed value positions\n */\n arrPos: number;\n\n constructor(rootElem: any, key: any, arrPos?: number) {\n super(rootElem, key);\n\n this.arrPos = arrPos ?? -1;\n }\n\n get value() {\n if (this.key == \"\" && this.arrPos >= 0) {\n return this._value[this.arrPos];\n } else if (this.key && this.arrPos >= 0) {\n return this._value[this.key][this.arrPos];\n }\n return this._value[this.key];\n }\n\n set value(val: T) {\n if (this.key == \"\" && this.arrPos >= 0) {\n this._value[this.arrPos] = val;\n return;\n } else if (this.key && this.arrPos >= 0) {\n this._value[this.key][this.arrPos] = val;\n return;\n }\n this._value[this.key] = val;\n }\n}\n\nexport const CONFIG_VALUE = \"__END_POINT__\";\nexport const CONFIG_ANY = \"__ANY_POINT__\";\nexport type ConfigDef = { [key: string]: any };\n\n/**\n * Config, basically an optional wrapper for a json structure\n * (not Side - effect free, since we can alter the internal config state\n * without generating a new config), not sure if we should make it side - effect free\n * since this would swallow a lot of performance and ram\n */\nexport class Config extends Optional {\n constructor(root: any, private configDef ?: ConfigDef) {\n super(root);\n }\n\n /**\n * shallow copy getter, copies only the first level, references the deeper nodes\n * in a shared manner\n */\n get shallowCopy(): Config {\n return this.shallowCopy$();\n }\n\n protected shallowCopy$(): Config {\n let ret = new Config({});\n ret.shallowMerge(this.value);\n return ret;\n }\n\n /**\n * deep copy, copies all config nodes\n */\n get deepCopy(): Config {\n return this.deepCopy$();\n }\n\n protected deepCopy$(): Config {\n return new Config(objAssign({}, this.value));\n }\n\n /**\n * creates a config from an initial value or null\n * @param value\n */\n static fromNullable(value?: T | null): Config {\n return new Config(value);\n }\n\n /**\n * simple merge for the root configs\n */\n shallowMerge(other: Config, overwrite = true, withAppend = false) {\n //shallow merge must be mutable so we have to remap\n let newThis = shallowMerge(overwrite, withAppend, this.value, other.value);\n if (Array.isArray(this._value)) {\n this._value.length = 0;\n this._value.push(...(newThis as any));\n } else {\n Object.getOwnPropertyNames(this._value).forEach(key => delete this._value[key]);\n Object.getOwnPropertyNames(newThis).forEach(key => this._value[key] = newThis[key]);\n }\n }\n\n /**\n * assigns a single value as array, or appends it\n * to an existing value mapping a single value to array\n *\n *\n * usage myConfig.append(\"foobaz\").value = \"newValue\"\n * myConfig.append(\"foobaz\").value = \"newValue2\"\n *\n * resulting in myConfig.foobaz == [\"newValue, newValue2\"]\n *\n * @param {string[]} accessPath\n */\n append(...accessPath: string[]): IValueHolder {\n return append(this._value, ...accessPath);\n }\n\n /**\n * appends to an existing entry (or extends into an array and appends)\n * if the condition is met\n * @param {boolean} condition\n * @param {string[]} accessPath\n */\n appendIf(condition: boolean, ...accessPath: string[]): IValueHolder {\n return appendIf(condition, this._value, ...accessPath);\n }\n\n /**\n * assigns a new value on the given access path\n * @param accessPath\n */\n assign(...accessPath): IValueHolder {\n return assign(this.value, ...accessPath);\n }\n\n\n /**\n * assign a value if the condition is set to true, otherwise skip it\n *\n * @param condition the condition, the access accessPath into the config\n * @param accessPath\n */\n assignIf(condition: boolean, ...accessPath: Array): IValueHolder {\n return assignIf(condition, this._value, ...accessPath);\n }\n\n /**\n * get if the access path is present (get is reserved as getter with a default, on the current path)\n * TODO will be renamed to something more meaningful and deprecated, the name is ambiguous\n * @param accessPath the access path\n */\n getIf(...accessPath: Array): Config {\n this.assertAccessPath(...accessPath);\n return this.getClass().fromNullable(resolve(this.value, ...accessPath));\n }\n\n\n /**\n * gets the current node and if none is present returns a config with a default value\n * @param defaultVal\n */\n get(defaultVal: any): Config {\n return this.getClass().fromNullable(super.get(defaultVal).value);\n }\n\n //empties the current config entry\n delete(key: string): Config {\n if (key in this.value) {\n delete this.value[key];\n }\n return this;\n }\n\n /**\n * converts the entire config into a json object\n */\n toJson(): any {\n return JSON.stringify(this.value);\n }\n\n\n protected getClass(): any {\n return Config;\n }\n\n private setVal(val: any) {\n this._value = val;\n }\n\n\n /**\n * asserts the access path for a semi typed access\n * @param accessPath\n * @private\n */\n private assertAccessPath(...accessPath: Array) {\n accessPath = this.preprocessKeys(...accessPath);\n if (!this.configDef) {\n //untyped\n return;\n }\n\n const ERR_ACCESS_PATH = \"Access Path to config invalid\";\n let currAccessPos: any = Optional.fromNullable(Object.keys(this.configDef).map(key => {\n let ret = {};\n ret[key] = this.configDef[key];\n return ret;\n }));\n\n for (let cnt = 0; cnt < accessPath.length; cnt++) {\n let currKey = this.keyVal(accessPath[cnt]);\n let arrPos: any = this.arrayIndex(accessPath[cnt]);\n\n //key index\n if (this.isArray(arrPos)) {\n if (currKey != \"\") {\n currAccessPos = Array.isArray(currAccessPos.value) ?\n Optional.fromNullable(new Es2019Array(...currAccessPos.value)\n .find(item => {\n return !!(item?.[currKey] ?? false)\n })?.[currKey]?.[arrPos]) :\n Optional.fromNullable(currAccessPos.value?.[currKey]?.[arrPos] ?? null);\n\n } else {\n currAccessPos = (Array.isArray(currAccessPos.value)) ?\n Optional.fromNullable(currAccessPos.value?.[arrPos]) : Optional.absent;\n }\n //we noe store either the current array or the filtered look ahead to go further\n } else {\n //we now have an array and go further with a singular key\n currAccessPos = (Array.isArray(currAccessPos.value)) ? Optional.fromNullable(new Es2019Array(...currAccessPos.value)\n .find(item => {\n return !!(item?.[currKey] ?? false);\n })?.[currKey]) :\n Optional.fromNullable(currAccessPos.value?.[currKey] ?? null);\n }\n if (!currAccessPos.isPresent()) {\n throw Error(ERR_ACCESS_PATH)\n }\n if (currAccessPos.value == CONFIG_ANY) {\n return;\n }\n }\n }\n\n private isNoArray(arrPos: number) {\n return arrPos == -1;\n }\n\n private isArray(arrPos: number) {\n return !this.isNoArray(arrPos);\n }\n\n}","/*!\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http:// www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {IValueHolder, Optional, ValueEmbedder} from \"./Monad\";\nimport {XMLQuery} from \"./XmlQuery\";\n\nimport {ICollector, IStreamDataSource, ITERATION_STATUS} from \"./SourcesCollectors\";\nimport {Lang} from \"./Lang\";\nimport {_global$} from \"./Global\";\nimport {Es2019Array} from \"./Es2019Array\";\nimport trim = Lang.trim;\n\nimport isString = Lang.isString;\nimport eqi = Lang.equalsIgnoreCase;\nimport objToArray = Lang.objToArray;\nimport {append, assign, simpleShallowMerge} from \"./AssocArray\";\nimport {IDomQuery} from \"./IDomQuery\";\n\ndeclare var ownerDocument: any;\n\n/**\n * in order to poss custom parameters we need to extend the mutation observer init\n */\nexport interface WAIT_OPTS extends MutationObserverInit {\n timeout?: number;\n /**\n * interval on non legacy browsers\n */\n interval?: number;\n}\n\n\nclass NonceValueEmbedder extends ValueEmbedder {\n\n constructor(private rootElems: HTMLElement[]) {\n super(rootElems?.[0], \"nonce\");\n }\n\n isAbsent(): boolean {\n const value = this.value;\n return 'undefined' == typeof value || '' == value;\n }\n\n get value(): string {\n return (this?.rootElems?.[0] as HTMLElement)?.nonce ?? (this?.rootElems?.[0] as HTMLElement)?.getAttribute(\"nonce\")\n }\n\n\n set value(newVal: string) {\n if (!this?.rootElems?.length) {\n return;\n }\n\n this.rootElems.forEach((rootElem: HTMLElement) => {\n if(\"undefined\" != typeof rootElem?.nonce) {\n rootElem.nonce = newVal\n } else {\n rootElem.setAttribute(\"nonce\", newVal);\n }\n });\n\n }\n}\n\n/**\n *\n * // - submit checkboxes and radio inputs only if checked\n if ((tagName != \"select\" && elemType != \"button\"\n && elemType != \"reset\" && elemType != \"submit\" && elemType != \"image\")\n && ((elemType != \"checkbox\" && elemType != \"radio\"\n */\n\nenum ALLOWED_SUBMITTABLE_ELEMENTS {\n SELECT = \"select\",\n BUTTON = \"button\",\n SUBMIT = \"submit\",\n RESET = \"reset\",\n IMAGE = \"image\",\n RADIO = \"radio\",\n CHECKBOX = \"checkbox\"\n\n}\n\n/**\n * helper to fix a common problem that a system has to wait, until a certain condition is reached.\n * Depending on the browser this uses either the Mutation Observer or a semi compatible interval as fallback.\n * @param root the root DomQuery element to start from\n * @param condition the condition lambda to be fulfilled\n * @param options options for the search\n */\nfunction waitUntilDom(root: DomQuery, condition: (element: DomQuery) => boolean, options: WAIT_OPTS = {\n attributes: true,\n childList: true,\n subtree: true,\n timeout: 500,\n interval: 100\n}): Promise {\n return new Promise((success, error) => {\n let observer: MutationObserver = null;\n const MUT_ERROR = new Error(\"Mutation observer timeout\");\n\n // we do the same but for now ignore the options on the dom query\n // we cannot use absent here, because the condition might search for an absent element\n function findElement(root: DomQuery, condition: (element: DomQuery) => boolean): DomQuery | null {\n let found = null;\n if (!!condition(root)) {\n return root;\n }\n if (options.childList) {\n found = (condition(root)) ? root : root.childNodes.filter(item => condition(item)).first().value.value;\n } else if (options.subtree) {\n found = (condition(root)) ? root : root.querySelectorAll(\" * \").filter(item => condition(item)).first().value.value;\n } else {\n found = (condition(root)) ? root : null;\n }\n return found;\n }\n\n let foundElement = root;\n if (!!(foundElement = findElement(foundElement, condition))) {\n success(new DomQuery(foundElement));\n return;\n }\n\n if ('undefined' != typeof MutationObserver) {\n const mutTimeout = setTimeout(() => {\n observer.disconnect();\n return error(MUT_ERROR);\n }, options.timeout);\n\n const callback: MutationCallback = (mutationList: MutationRecord[]) => {\n const found = new DomQuery(mutationList.map((mut) => mut.target)).filter(item => condition(item)).first();\n if (found.isPresent()) {\n clearTimeout(mutTimeout);\n observer.disconnect();\n success(new DomQuery(found || root));\n }\n }\n observer = new MutationObserver(callback);\n\n // browsers might ignore it, but we cannot break the api in the case\n // hence no timeout is passed\n let observableOpts = {...options};\n delete observableOpts.timeout;\n root.eachElem(item => {\n observer.observe(item, observableOpts)\n })\n } else { // fallback for legacy browsers without mutation observer\n\n let interval = setInterval(() => {\n let found = findElement(root, condition);\n if (!!found) {\n if (timeout) {\n clearTimeout(timeout);\n clearInterval(interval);\n interval = null;\n }\n success(new DomQuery(found || root));\n }\n }, options.interval);\n let timeout = setTimeout(() => {\n if (interval) {\n clearInterval(interval);\n error(MUT_ERROR);\n }\n }, options.timeout)\n\n }\n });\n}\n\nexport class ElementAttribute extends ValueEmbedder {\n\n constructor(private element: DomQuery, private name: string, private defaultVal: string = null) {\n super(element, name);\n }\n\n get value(): string {\n let val: Element[] = this.element.get(0).orElse(...[]).values;\n if (!val.length) {\n return this.defaultVal;\n }\n return val[0].getAttribute(this.name);\n }\n\n set value(value: string) {\n let val: Element[] = this.element.get(0).orElse(...[]).values;\n for (let cnt = 0; cnt < val.length; cnt++) {\n val[cnt].setAttribute(this.name, value);\n }\n val[0].setAttribute(this.name, value);\n }\n\n protected getClass(): any {\n return ElementAttribute;\n }\n\n static fromNullable(value?: any, valueKey: string = \"value\"): ElementAttribute {\n return new ElementAttribute(value, valueKey);\n }\n\n}\n\nexport class Style extends ValueEmbedder {\n\n constructor(private element: DomQuery, private name: string, private defaultVal: string = null) {\n super(element, name);\n }\n\n get value(): string {\n let val: Element[] = this.element.values;\n if (!val.length) {\n return this.defaultVal;\n }\n return (val[0] as HTMLElement).style[this.name];\n }\n\n set value(value: string) {\n let val: HTMLElement[] = this.element.values as HTMLElement[];\n for (let cnt = 0; cnt < val.length; cnt++) {\n val[cnt].style[this.name] = value;\n }\n }\n\n protected getClass(): any {\n return ElementAttribute;\n }\n\n static fromNullable(value?: any, valueKey: string = \"value\"): ElementAttribute {\n return new ElementAttribute(value, valueKey);\n }\n\n}\n\n/**\n * small helper for the specialized jsf case\n * @constructor\n */\nconst DEFAULT_WHITELIST = () => {\n return true;\n};\n\n\n\n/**\n * Monadic DomNode representation, ala jquery\n * This is a thin wrapper over querySelectorAll\n * to get slim monadic support\n * to reduce implementation code on the users side.\n * This is vital for frameworks which want to rely on\n * plain dom but still do not want to lose\n * the reduced code footprint of querying dom trees and traversing\n * by using functional patterns.\n *\n * Also, a few convenience methods are added to reduce\n * the code footprint of standard dom processing\n * operations like eval\n *\n * in most older systems\n * Note parts of this code still stem from the Dom.js I have written 10 years\n * ago, those parts look a bit ancient and will be replaced over time.\n *\n */\nexport class DomQuery implements IDomQuery, IStreamDataSource, Iterable {\n\n static absent = new DomQuery();\n\n /**\n * reference to the environmental global object\n */\n static global = _global$;\n\n private rootNode: Array = [];\n\n pos = -1;\n\n constructor(...rootNode: Array | string>) {\n\n if (Optional.fromNullable(rootNode).isAbsent() || !rootNode.length) {\n return;\n } else {\n // we need to flatten out the arrays\n\n for (let cnt = 0; cnt < rootNode.length; cnt++) {\n if (!rootNode[cnt]) {\n // we skip possible null entries which can happen in\n // certain corner conditions due to the constructor re-wrapping single elements into arrays.\n } else if (isString(rootNode[cnt])) {\n let foundElement = DomQuery.querySelectorAll(rootNode[cnt]);\n if (!foundElement.isAbsent()) {\n rootNode.push(...foundElement.values)\n }\n } else if (rootNode[cnt] instanceof DomQuery) {\n this.rootNode.push(...(rootNode[cnt]).values);\n } else {\n this.rootNode.push(rootNode[cnt]);\n }\n }\n }\n }\n\n\n /**\n * returns the first element\n */\n get value(): Optional {\n return this.getAsElem(0);\n }\n\n get values(): Element[] {\n return this.allElems();\n }\n\n get global(): any {\n return _global$;\n }\n\n get stream(): any {\n throw Error(\"Not implemented, include Stream.ts for this to work\")\n }\n\n get lazyStream(): any {\n throw Error(\"Not implemented, include Stream.ts for this to work\")\n }\n\n /**\n * returns the id of the first element\n */\n get id(): ValueEmbedder {\n return new ElementAttribute(this.get(0), \"id\");\n }\n\n /**\n * length of the entire query set\n */\n get length(): number {\n return this.rootNode.length\n }\n\n /**\n * convenience method for tagName\n */\n get tagName(): Optional {\n return >this.getAsElem(0).getIf(\"tagName\");\n }\n\n /**\n * convenience method for nodeName\n */\n get nodeName(): Optional {\n return >this.getAsElem(0).getIf(\"nodeName\");\n }\n\n isTag(tagName: string): boolean {\n return !this.isAbsent()\n && (this.nodeName.orElse(\"__none___\")\n .value.toLowerCase() == tagName.toLowerCase()\n || this.tagName.orElse(\"__none___\")\n .value.toLowerCase() == tagName.toLowerCase()\n )\n }\n\n /**\n * convenience property for type\n *\n * returns null in case of no type existing otherwise\n * the type of the first element\n */\n get type(): Optional {\n return this.getAsElem(0).getIf(\"type\");\n }\n\n /**\n * convenience property for name\n *\n * returns null in case of no type existing otherwise\n * the name of the first element\n */\n get name(): ValueEmbedder {\n return new ValueEmbedder(this.getAsElem(0).value, \"name\");\n }\n\n /**\n * convenience property for value\n *\n * returns null in case of no type existing otherwise\n * the value of the first element\n */\n get inputValue(): ValueEmbedder {\n if (this.getAsElem(0).getIf(\"value\").isPresent()) {\n return new ValueEmbedder(this.getAsElem(0).value);\n } else {\n return ValueEmbedder.absent;\n }\n }\n\n get val(): string | boolean {\n return this.inputValue.value;\n }\n\n set val(value: string | boolean) {\n this.inputValue.value = value;\n }\n\n get nodeId(): string {\n return this.id.value;\n }\n\n set nodeId(value: string) {\n this.id.value = value;\n }\n\n get checked(): boolean {\n return new Es2019Array(...this.values).every(el => !!(el).checked);\n }\n\n set checked(newChecked: boolean) {\n this.eachElem(el => (el).checked = newChecked);\n }\n\n get elements(): DomQuery {\n // a simple querySelectorAll should suffice\n return this.querySelectorAll(\"input, checkbox, select, textarea, fieldset\");\n }\n\n get deepElements(): DomQuery {\n let elemStr = \"input, select, textarea, checkbox, fieldset\";\n return this.querySelectorAllDeep(elemStr);\n }\n\n /**\n * a deep search which treats the single isolated shadow dom areas\n * separately and runs the query on each shadow dom\n * @param queryStr\n */\n querySelectorAllDeep(queryStr: string): DomQuery {\n let found: Array = [];\n let queryRes = this.querySelectorAll(queryStr);\n if (queryRes.length) {\n found.push(queryRes);\n }\n let shadowRoots = this.querySelectorAll(\"*\").shadowRoot;\n if (shadowRoots.length) {\n let shadowRes = shadowRoots.querySelectorAllDeep(queryStr);\n if (shadowRes.length) {\n found.push(shadowRes);\n }\n }\n return new DomQuery(...found);\n }\n\n\n /**\n * disabled flag\n */\n get disabled(): boolean {\n return this.attr(\"disabled\").isPresent();\n }\n\n set disabled(disabled: boolean) {\n // this.attr(\"disabled\").value = disabled + \"\";\n if (!disabled) {\n this.removeAttribute(\"disabled\");\n } else {\n this.attr(\"disabled\").value = \"disabled\";\n }\n\n }\n\n removeAttribute(name: string) {\n this.eachElem(item => item.removeAttribute(name));\n }\n\n get childNodes(): DomQuery {\n let childNodeArr: Array = [];\n this.eachElem((item: Element) => {\n childNodeArr = childNodeArr.concat(objToArray(item.childNodes));\n });\n return new DomQuery(...childNodeArr);\n }\n\n\n get asArray(): DomQuery[] {\n // filter not supported by IE11\n let items = new Es2019Array(...this.rootNode).filter(item => {\n return item != null\n }).map(item => {\n return DomQuery.byId(item)\n });\n return items as DomQuery[];\n }\n\n get offsetWidth(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetWidth)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetHeight(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetHeight)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetLeft(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetLeft)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetTop(): number {\n return new Es2019Array(this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as any).offsetTop)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get asNodeArray(): Array {\n return new Es2019Array(...this.rootNode.filter(item => item != null));\n }\n\n get nonce(): ValueEmbedder {\n return new NonceValueEmbedder(this.rootNode as HTMLElement[]);\n }\n\n static querySelectorAllDeep(selector: string) {\n return new DomQuery(document).querySelectorAllDeep(selector);\n }\n\n /**\n * easy query selector all producer\n *\n * @param selector the selector\n * @returns a results dom query object\n */\n static querySelectorAll(selector: string): DomQuery {\n if (selector.indexOf(\"/shadow/\") != -1) {\n return new DomQuery(document)._querySelectorAllDeep(selector);\n } else {\n return new DomQuery(document)._querySelectorAll(selector);\n }\n }\n\n /**\n * byId producer\n *\n * @param selector id\n * @param deep true if you want to go into shadow areas\n * @return a DomQuery containing the found elements\n */\n static byId(selector: string | DomQuery | Element, deep = false): DomQuery {\n if (isString(selector)) {\n return (!deep) ? new DomQuery(document).byId(selector) : new DomQuery(document).byIdDeep(selector);\n } else {\n return new DomQuery(selector);\n }\n }\n\n /**\n * byTagName producer\n *\n * @param selector name\n * @return a DomQuery containing the found elements\n */\n static byTagName(selector: string | DomQuery | Element): DomQuery {\n if (isString(selector)) {\n return new DomQuery(document).byTagName(selector);\n } else {\n return new DomQuery(selector);\n }\n }\n\n static globalEval(code: string, nonce?: string): DomQuery {\n return new DomQuery(document).globalEval(code, nonce);\n }\n\n static globalEvalSticky(code: string, nonce?: string): DomQuery {\n return new DomQuery(document).globalEvalSticky(code, nonce);\n }\n\n /**\n * builds the ie nodes properly in a placeholder\n * and bypasses a non script insert bug that way\n * @param markup the markup code to be executed from\n */\n static fromMarkup(markup: string): DomQuery {\n\n // https:// developer.mozilla.org/de/docs/Web/API/DOMParser license creative commons\n const doc = document.implementation.createHTMLDocument(\"\");\n markup = trim(markup);\n let lowerMarkup = markup.toLowerCase();\n if (lowerMarkup.search(/\"].join(\"\");\n let tag2 = [\"<\", tagName, \" \"].join(\"\");\n return (str.indexOf(tag1) == 0) || (str.indexOf(tag2) == 0);\n };\n\n let dummyPlaceHolder = new DomQuery(document.createElement(\"div\"));\n\n // table needs special treatment due to the browsers auto creation\n if (startsWithTag(lowerMarkup, \"thead\") || startsWithTag(lowerMarkup, \"tbody\")) {\n dummyPlaceHolder.html(`
${markup}
`);\n return dummyPlaceHolder.querySelectorAll(\"table\").get(0).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"tfoot\")) {\n dummyPlaceHolder.html(`
`);\n return dummyPlaceHolder.querySelectorAll(\"table\").get(2).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"tr\")) {\n dummyPlaceHolder.html(`
${markup}
`);\n return dummyPlaceHolder.querySelectorAll(\"tbody\").get(0).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"td\")) {\n dummyPlaceHolder.html(`