/* @license Copyright (C) Exontrol. All rights reserved. */ !function(){"use strict";function e(e,t){var n;return Array.from(e).some(function(e){return!!(n=t(e))}),n}function t(t){var n=[];return e(t,function(e){n.push(e)}),n}function n(e,t){c(V[null!=t?"Add":"Del"].call(V,f(!0),e,t))}function r(e){s(function(t){t.location.hash=e}),q()}function i(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function o(){return document.getElementById(K).innerHTML.trim()}function a(){return window.top}function s(e){var t=a();return e(window)||window!=t&&e(t)||null}function c(e){window.history.replaceState(null,null,e);var t,n,r=a();r!=window&&(t=new URL(e),(n=new URL(r.location.href)).search=t.search,n.hash=t.hash,r.history.replaceState(null,null,n.toString()))}function l(){return document.getElementById(J)||function(){var e=document.createElement("DIV");return e.id=J,e.className=J,document.body.appendChild(e),e}()}function u(e){($=$||{})[e]||($[e]={start:Date.now(),ref:0,l:setTimeout(function(){l().classList.add(ne)},256)}),$[e].ref++}function m(e){var t=$&&$[e];t&&!(t.ref=Math.max(0,t.ref-1))&&(Date.now()-t.start,clearTimeout(t.l),l().classList.remove(ne),$[e]=null)}function f(e){var t,n=window.location.href.replace(/#$/,""),r=new URL(n),i=r.searchParams.get(fe.S);return!e&&i&&(r.search=r.search.replace(new RegExp("([?&])"+fe.S+"=[^&#]*&?","i"),"$1").replace(/[?&]$/,""),(t=r.pathname.split("/"))[t.length-1]=i,r.pathname=t.join("/"),n=r.toString()),n}function d(e,t){function i(t){var i=function(e){return g((new DOMParser).parseFromString(e,"text/html"))}(t);i?function(t){u("do");var i,o;t&&(g().replaceWith(t),O(),(i=B(U.value)).ensh=e,D(i),formatSamples&&formatSamples(),o=c.pathname.split("/").pop(),n(fe.S,W!=o?o:null),r(c.hash),A());m("do")}(i):(sessionStorage.getItem(ve)||console.log("Cannot load '"+c.pathname.split("/").pop()+"' due to CORS restrictions. To bypass this:\n\n a) add '?D' to the page URL, such as '"+a.pathname.split("/").pop()+"?D'\r\n b) run '_doc.bat' in the component's folder"),sessionStorage.setItem(ve,"1"),F=!0,o())}function o(){s(function(t){t.location.href=e})}if(F||!DOMParser)o();else{var a=new URL(f()),c=new URL(e),l=c.pathname;if(t||l!=a.pathname){var d=Le.get(l);d?i(d):(u("do"),function(e,t){if(t)try{var n=new XMLHttpRequest;n.onreadystatechange=function(){this.readyState==(XMLHttpRequest.DONE||4)&&t(n.responseText)},n.open("GET",e),n.send(null)}catch(e){}}(function(e){return"127.0.0.1"==c.hostname?e.replace("2.JSDOC","extree"):e}(l),function(e){Le.set(l,e),i(e),m("do")}))}else r(c.hash)}}function h(){return"right"!=getComputedStyle(g()).float}function p(){return document.querySelector("nav")}function g(e){return e&&e.contentDocument&&(e=e.contentDocument),(e=e||document).getElementById(z)}function v(){return document.getElementById(me)}function E(e){var t,n,r,i=a().location.hash,o=0;i&&(n=document.getElementById(i.replace("#","")))&&(t=v(),(r=document.querySelector("#main h2"))&&(o+=r.getBoundingClientRect().height+4),e&&(o+=n.getBoundingClientRect().height+10),window.scrollBy({top:n.getBoundingClientRect().top-(h()?t&&t.getBoundingClientRect().height||0:o||0),behavior:"smooth"}))}function L(e){return e&&e.querySelector("."+Z)}function w(e){var t=[];if(e)for(var n=e.closest("UL");n;){for(;"UL"==n.previousElementSibling.tagName;)n=n.previousElementSibling;t.push(n.previousElementSibling),(n=n.closest("LI"))&&(n=n.parentElement)}return t}function y(e){w(e).forEach(function(e){e.classList.remove(te),e.parentElement.classList.remove(te);var t;(t=L(e))&&t.classList.add(Y)})}function S(e,n){e&&(y(e),function(e){n=n||0;var r=t(e.getElementsByTagName(oe));r.length>1&&(e=r[0]);var i,o=e.getBoundingClientRect(),a=function(e){for(;e&&!/(auto|scroll)/.test(getComputedStyle(e).overflow);)e=e.parentElement;return e}(e),s=a.getBoundingClientRect(),c=U.getBoundingClientRect().height+8+n,l=a.offsetHeight-a.clientHeight+4,u=0,m=0;o.width&&o.height&&((m=o.top-c)<0||e.classList.contains(de)?u=m:(m=o.bottom-(s.bottom-l))>0&&(u=m),u<0&&(i=w(e)[0])&&"sticky"==getComputedStyle(i).position&&(u-=i.getBoundingClientRect().height+4),u&&a.scrollBy({behavior:"smooth",top:~~u}))}(e))}function x(t){var n,r=v();if(r)return n=V.Split(t),t=n.l+n.h,e(r.getElementsByTagName(oe),function(e){return String(e.href)==t&&e})}function b(t){function n(t){return e(t.getElementsByTagName(oe),function(e){return e.href.endsWith("#"+i)&&e})}var r,i,o,a,s,c,l=v(),u=g();return u&&((a=(o=u.querySelector("header .name"))&&o.innerText)&&(i=(r=function(e,t){t=(t||se).trim().toUpperCase();var n,r;for(;e;){for(n=e;n;){if(n.tagName==t)return n;if(r=n.querySelector(t+":last-of-type"))return r;n=n.previousElementSibling}e=e.parentElement}}(t,se))&&r.id)&&(s=e(l.getElementsByClassName(de),function(e){return e.innerText==a&&e}))&&(c=i.startsWith(j)?s:n(s.parentElement)),c||(c=e(l.getElementsByClassName(ee),function(e){return n(e.parentElement.nextElementSibling)}))),c}function C(e){var t,n=x(e);n&&n.parentElement.classList.contains(te)&&(n.parentElement.classList.remove(te),(t=document.getElementById(n.innerText))&&(t.classList.remove(te),t.nextElementSibling.classList.remove(te)))}function T(e){if(M&&t(document.getElementsByClassName(ne)).forEach(function(e){e.classList.remove(ne)}),M=e){var n,r,i,s,l=M.href;a().document.title=function(){var t=I(e),n=o(),r=M.closest("UL").previousElementSibling,i=r&&r.classList.contains(de)&&r.innerText+"."||"";(i+=M.innerText+(t?" "+t:""))!=n&&(i+=" ("+n+")");return i+" | Exontrol Docs"}(),n=l.indexOf("#"),r=~n?l.substr(n):"",(s=document.getElementById(~n?l.substr(n+1):j+M.innerText))&&s&&s.classList.add(ne),(M=M.parentElement).classList.add(ne),(i=L(M))&&i.classList.add(Y),S(M),c(f(!0).replace(/(#.*)?$/,r))}}function B(t){var n=[];return(t=function(e){return e&&String(e).replace(/[^0-9a-z]/gi," ").trim()||""}(t))&&t.split(" ").forEach(function(e){(e=e.trim())&&n.push(e)}),n.sort(function(e,t){return t.length-e.length}),n=n.filter(function(e,t){e=e.toLocaleLowerCase();for(var r=0;rs&&a.appendChild(e.createTextNode(o.slice(s,n)));var i=e.createElement("span");i.className=ge+" F"+(r+1),i.textContent=t,a.appendChild(i),s=n+t.length}),s2)if(e.indexOf(t)<0){if(e=r(e).replace(/\.*$/,"")){var i=e.lastIndexOf(".");~i&&(e=e.substr(i+1)),e&&n.indexOf(e)<0&&t.indexOf(e)<0&&(e=e.replace(/s$/,""),t=e+" "+t)}}else t=r(t);return t.toLowerCase()}var n=o().toLowerCase(),r="/exhelper.jsp?config=/js&product=",i=t(document.getElementsByTagName("header"))[0],s="";if(a().location.protocol,r="https://exontrol.com"+r,i){var c=(s=i.innerText).indexOf("(");~c&&(s=s.substr(0,c)),s=s.trim().toLowerCase()}n&&(n==s&&(s=""),n=(n="ex"+n).replace("exirecur","exicalendar")),r+=n+"&F="+n,t(document.getElementsByClassName(_)).forEach(function(t){var i=t.innerText.trim(),o=i.toLowerCase();s!=o&&n!="ex"+o?(t.href=(r+" "+e(s,i)).trim(),t.innerText="live example"):t.classList.add(te)})}function A(){var t=g(),n=f().replace(/[#?].*$/,"");t&&e(t.querySelectorAll(oe),function(e){n.endsWith(e.getAttribute("href"))&&e.classList.add(he)})}function q(){T(x(f())),E()}var F,W,H,k,M,U,$,P,V=function(){function e(e){var t=String(e||"").indexOf("#"),n=~t?e.substr(0,t).trim():e,r=n.indexOf("?");return{a:e,u:n,h:~t?e.substr(t).trim():"",l:~r?n.substr(0,r).trim():n,p:~r?n.substr(r).trim():""}}function t(e){return new RegExp("[?&]"+e+"($|[&]|=[^&]*)","i")}return{Split:e,Add:function(n,r,i){var o=e(n),a=t(r=String(r||"").trim()),s=-1!=o.u.indexOf("?")?"&":"?",c=o.u.match(a);(i=String(i||"").trim())&&(i="="+i);return i=r+i,(c?o.u.substr(0,c.index+1)+i+o.u.substr(c.index+c[0].length):o.u+s+i)+o.h},Del:function(n,r){var i=e(n);"?"==(n=i.u.replace(t(String(r||"").trim()),"")).slice(-1)&&(n=n.slice(0,-1));n.indexOf("?")<0&&(n=n.replace(/&/,"?"));return n+i.h},Has:function(n,r){var i,o=e(n).u.match(t(r=String(r||"").trim()));o&&(o=o[0],i=o.indexOf("="),o=~i?o.substr(i+1):"");return o}}}(),X="26.02",j="class_",G="options",_="live-sample",z="main",J="loading",K="name",Y="expanded",Q="property",Z="glyph",ee="topic",te="hidden",ne="active",re="close",ie="px",oe="A",ae="H3",se="H4",ce="spec",le="F",ue="Filter",me="L",fe={S:"S",F:"F",D:"D"},de="subtopic",he="disabled",pe="jshelp-navtop",ge="FilterMatch",ve="byhref",Ee=500,Le=new Map;window.addEventListener("load",function(){function r(){var e;(U=document.getElementById(ue))&&((e=document.createElement("SPAN")).id=re,e.innerHTML="✖",e.onclick=function(){a(U.value="")},U.parentElement.appendChild(e),a(U.value=function(e,t){var n=V.Has(t||f(),e);null!=n&&(n=decodeURIComponent(n));return n}(fe.F)),U.oninput=function(e){clearTimeout(P),P=setTimeout(function(){a(e&&e.target.value||"")},Ee)})}function a(r){var i,o=B(r);!function(n){var r=v();r&&(n=n||B(U.value),t(r.getElementsByClassName(te)).forEach(function(e){e.classList.remove(te)}),n.terms.length&&(t(r.getElementsByTagName(oe)).forEach(function(e){if(n.match(R(e))?y(e):e.parentElement.classList.add(te),e.parentElement.classList.length&&!e.parentElement.classList.contains(te))for(var t=e;t&&t.id!=me;t=t.parentElement)t.parentElement.classList.remove(te)}),t(r.getElementsByTagName(ae)).forEach(function(t){e(t.nextElementSibling.children,function(e){return!e.classList.contains(te)})||t.classList.add(te)})))}(o),D(o),n(fe.F,r||null),U&&(i=U.parentElement.classList)[function(e){return e?"remove":"add"}(!r)].call(i,re),!o.terms.length&&S(M)}function s(){function e(e){var t,n,r,o=function(e){var t=e.target;t.classList.contains(Z)||(M&&M.contains(t)||(t=t.closest(ae)))&&(t=L(t));return t&&t.classList.contains(Z)&&t}(e);return o&&(i(e),o.classList.toggle(Y),e.ctrlKey&&(t=o.closest(".topic, .subtopic"))&&(n=t.className.replace(/\b(?!\w*topic\w*\b)\w+\b/g,"").replace(/\s+/g," ").trim())&&(r=o.classList.contains(Y),v().querySelectorAll("nav ."+n).forEach(function(e){L(e).classList.toggle(Y,r)}))),o}window.addEventListener("click",function(t){k=null,e(t)||function(e){var t,n=e.target;if(n.tagName==oe&&!n.getAttribute("target"))i(e),t=String(n.href),U&&U.value&&(t=V.Add(t,le,U.value)),f()!=t&&(k=n.closest("#"+me)?me:z,C(t),d(t))}(t)});var t=function(e){(!e.key||"Escape"==e.key)&&N(document,g(),g().querySelector("."+ge)?"":U.value,!0)};window.addEventListener("dblclick",t),window.addEventListener("keydown",t)}function c(){function e(e){return!h()&&e.target.id==me}function t(e){function t(e){i(e),function(e){r.style.width=Math.max(6,o.w+e)+ie,g().style.width="calc(100% - "+r.style.width+")"}(e.screenX-o.x)}function n(){window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}var o={x:e.screenX,w:parseInt(function(e){return window.getComputedStyle(e)}(r).width)};i(e),window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}var n=window,r=v();r&&(n.addEventListener("mousemove",function(t){r.style.cursor=e(t)?"col-resize":""}),n.addEventListener("mousedown",function(n){e(n)&&t(n)}),r.style.setProperty("--version",'"'+X+'"'),!F&&r.querySelectorAll("nav .topic, nav .subtopic").forEach(function(e){var t=document.createElement("span");t.className=Z+(e.classList.contains("classes")?" "+Y:""),e.insertBefore(t,e.firstChild)}))}var l=f();F=!(!sessionStorage.getItem(ve)&&(new RegExp("[?&]"+fe.D+"(?=&|$|=|#)","i").test(l)&&sessionStorage.setItem(ve,"1"),!sessionStorage.getItem(ve))),function(){var e,t,n,r,i=g(),a=/([^\/?#]+)(?=\.html[?#]?)/i;i&&(window.addEventListener("click",function(e){var t=e.target;g().contains(t)&&t.tagName!=oe&&(null==(t.closest("."+ce)||t.closest("."+se))&&(t=null,g().querySelectorAll(se+":not(."+te+")").forEach(function(n){e.clientY>n.getBoundingClientRect().top&&(t=n)})),t&&T(b(t)))}),t=f(!0),e=t.match(a),W=e&&e[1]+".html",t.match(/[?&]S=/)?n=f():i.innerText.trim()||(r=o())&&(n=f(!0).replace(a,r)),n&&d(n,!0),A())}(),c(),s(),O(),r(),C(l),T(x(l)),E(!0),function(){var e=localStorage.getItem(pe);null!=e&&(p().scrollTop=e,localStorage.removeItem(pe))}()}),window.addEventListener("beforeunload",function(){k==me&&localStorage.setItem(pe,p().scrollTop)}),window.addEventListener("hashchange",q)}();