@alchemydocs/template
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -8,2 +8,2 @@ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var o,r,i;i=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://");for(var o=0;o<e.length;o++){var r=e[o];if("string"!=typeof r)throw new TypeError("Url must be a string. Received "+r);""!==r&&(o>0&&(r=r.replace(/^[\/]+/,"")),r=o<e.length-1?r.replace(/[\/]+$/,""):r.replace(/[\/]+$/,"/"),t.push(r))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i=a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=i():void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)},,function(e,t,n){"use strict";n.r(t),n.d(t,"buildUrl",function(){return r}),n.d(t,"getAbsolutePath",function(){return i}),n.d(t,"isAbsolutePath",function(){return a}),n.d(t,"isRelativePath",function(){return s}),n.d(t,"getDirectory",function(){return c}),n.d(t,"formList",function(){return l});const o=n(0),r=(e,t)=>{let n=t.replace(/\.md$/,".html");n=o(e,n);const r=document.querySelector('meta[property="docfx:basepath"]');if(r){const e=r.getAttribute("content");t=o(e,t)}return window.alchemyNavUrlTransformer&&(n=window.alchemyNavUrlTransformer(n)),n},i=e=>{var t=document.createElement("a");return t.setAttribute("href",e),`${t.protocol}//${t.host}${t.pathname}`},a=e=>/^(?:[a-z]+:)?\/\//i.test(e),s=e=>void 0!==e&&""!==e&&"/"!==e[0]&&!a(e),c=e=>{if(!e)return"";const t=e.lastIndexOf("/");return-1==t?"":t>-1?e.substr(0,t):void 0},l=(e,t)=>{let n=1;const o=(e,t)=>{if(!e||!e.items)return null;const r=e.items.length;if(0===r)return null;let i='<ul class="level'+n+" "+(t||"")+'">';n+=1;for(let n=0;n<r;n++){const r=e.items[n],a=r.name;let s=r.href;a&&(i+=s?'<li><a href="'+s+'">'+a+"</a>":"<li>"+a,i+=o(r,t)||"",i+="</li>")}return i+="</ul>"},r={items:e},i=[].concat(t).join(" ");return o(r,i)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){ | ||
*****************************************************/ | ||
e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=i}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim(),o=e.contentWindow.location.href;return o===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,i=null,a=function a(){if(!r){r=!0,clearTimeout(i);try{o.isIframeBlank(e)||(e.removeEventListener("load",a),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),i=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,function(){return!0},function(e){o++,n.waitForIframes(e.querySelector("html"),function(){--o||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var l=function(){--s<=0&&i(c)};s||l(),a.forEach(function(t){e.matches(t,r.exclude)?l():r.onIframeReady(t,function(e){n(t)&&(c++,o(e)),l()},l)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){var o=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(o&r){if(null===t)return!0;var i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_FOLLOWING;if(i&a)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode(),n=void 0;return n=null===t?e.nextNode():e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,i=!1;return o.forEach(function(e,t){e.val===n&&(r=t,i=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||i?!1===r||i||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)})})}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var i=this,a=this.createIterator(t,e,o),s=[],c=[],l=void 0,u=void 0;d=void 0,d=i.getIteratorNode(a),u=d.prevNode,l=d.node;)this.iframes&&this.forEachIframe(t,function(e){return i.checkIframeFilter(l,u,e,s)},function(t){i.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},o)}),c.push(l);var d;c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=this.getContexts(),a=i.length;a||r(),i.forEach(function(i){var s=function(){o.iterateThroughNodes(e,i,t,n,function(){--a<=0&&r()})};o.iframes?o.waitForIframes(i,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every(function(t){return!o.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),i=function(){function i(e){t(this,i),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(i,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),o+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,i="";switch(r.forEach(function(e){i+="|"+t.escapeStr(e)}),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,o),i=r.start,a=r.end,s=r.valid;s&&(e.start=i,e.length=a-i,n.push(e),o=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(n=parseInt(e.start,10),o=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,i=n.length,a=t-i,s=parseInt(e.start,10)-a;return(o=(s=s>i?i:s)+parseInt(e.length,10))>i&&(o=i,this.log("End range automatically set to the max value of "+i)),s<0||o-s<0||s>i||o>i?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:o})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t),a=document.createElement(o);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),i}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var i=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!o(a.node))return!1;var l=t-a.start,u=(n>a.end?a.end:n)-a.start,d=e.value.substr(0,a.start),h=e.value.substr(u+a.start);if(a.node=i.wrapRangeInTextNode(a.node,l,u),e.value=d+h,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,r(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[a];)if(n(r[a],t)){var s=r.index;if(0!==a)for(var c=1;c<a;c++)s+=r[c].length;t=i.wrapRangeInTextNode(t,s,s+r[a].length),o(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[a];){var c=s.index;if(0!==a)for(var l=1;l<a;l++)c+=s[l].length;var u=c+s[a].length;i.wrapRangeInMappedTextNode(t,c,u,function(e){return n(s[a],e)},function(t,n){e.lastIndex=n,o(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,o){var r=this;this.getTextNodes(function(i){var a=i.value.length;e.forEach(function(e,o){var s=r.checkWhitespaceRanges(e,a,i.value),c=s.start,l=s.end,u=s.valid;u&&r.wrapRangeInMappedTextNode(i,c,l,function(n){return t(n,e,i.value.substring(c,l),o)},function(t){n(t,e)})}),o()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,o)},function(e){o++,n.opt.each(e)},function(){0===o&&n.opt.noMatch(e),n.opt.done(o)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var o=0,r="wrapMatches",i=this.getSeparatedKeywords("string"==typeof e?[e]:e),a=i.keywords,s=i.length,c=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===s?this.opt.done(o):function e(t){var i=new RegExp(n.createRegExp(t),"gm"+c),l=0;n.log('Searching with expression "'+i+'"'),n[r](i,1,function(e,r){return n.opt.filter(r,t,o,l)},function(e){l++,o++,n.opt.each(e)},function(){0===l&&n.opt.noMatch(t),a[s-1]===t?n.opt.done(o):e(a[a.indexOf(t)+1])})}(a[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var o=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,o,r){return n.opt.filter(e,t,o,r)},function(e,t){o++,n.opt.each(e,t)},function(){n.opt.done(o)})):this.opt.done(o)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var o=r.matches(e,n),i=t.matchesExclude(e);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=o({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),i}();return function(e){var t=this,n=new i(e);return this.mark=function(e,o){return n.mark(e,o),t},this.markRegExp=function(e,o){return n.markRegExp(e,o),t},this.markRanges=function(e,o){return n.markRanges(e,o),t},this.unmark=function(e){return n.unmark(e),t},this}}()},function(e,t,n){n(6);const o=n(7),r=n(8),i=n(13);n(14),o().then(r).then(i),n(15),n(18),n(19),n(20),n(25),n(26)},function(e,t,n){},function(e,t,n){const o=n(0),{buildUrl:r,isRelativePath:i,getAbsolutePath:a,getDirectory:s}=n(2),c=document.getElementById("global-nav");e.exports=(()=>{let e=Promise.resolve();const t=document.querySelector('meta[property="docfx\\:navrel"]');if(t){const n=t.getAttribute("content");n&&(e=fetch(n).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<ul"),e.indexOf("</ul")+4);c.innerHTML=n;const l=t.lastIndexOf("/");let u="";l>-1&&(u=t.substr(0,l));const d=a(window.location.pathname),h=document.querySelectorAll("#global-nav a");[].forEach.call(h,e=>{let t=e.getAttribute("href");i(t)&&(t=r(u,t)),e.setAttribute("href",t);const n=document.querySelector('meta[property="docfx\\:tocrel"]');let c=n?n.getAttribute("content").replace(/\\/g,"/"):"";c=s(a(c)),window.alchemyNavUrlTransformer&&(c=window.alchemyNavUrlTransformer(c));let l=!1,h=e.getAttribute("name");h?(h=o(u,h),h=s(a(h)),window.alchemyNavUrlTransformer&&(h=window.alchemyNavUrlTransformer(h)),h===c&&(l=!0)):a(t)===d&&"dropdown"!==e.getAttribute("data-toggle")&&(l=!0),l&&e.classList.add("active")})})(e,n)))}let n=!1;const l=document.querySelector(".sidebar"),u=document.querySelector("#global-nav"),d=document.getElementById("btn-toggle-nav");let h=!1;const f=document.getElementById("search"),p=document.getElementById("btn-toggle-search"),m=document.getElementById("search-input"),g=document.getElementById("search-results");return d.addEventListener("click",()=>{n?(l&&(l.style.display="none"),u.style.display="none",document.getElementById("search-results").style.display="none"):(l&&(l.style.display="block"),u.style.display="flex",f&&(f.style.display="none",g.style.display="none",h=!1)),n=!n}),p.addEventListener("click",()=>{h?(f.style.display="none",g.style.display="none"):(f.style.display="flex",m.focus(),window.innerWidth<768&&(l&&(l.style.display="none"),u.style.display="none",n=!1)),h=!h}),e})},function(e,t,n){const o=n(9),r=e=>{if(!e.ok)throw e;return e.json()},i=()=>{};e.exports=(()=>{const e=document.querySelector('meta[property="docfx\\:tocrel"]').getAttribute("content").replace(/\\/g,"/");if(!e)return Promise.resolve();const t=e.replace("toc.html","_alchemyNav/toc.json"),n=e.replace("toc.html","_alchemyNav/toc-nested.json");return Promise.all([fetch(t).then(r).catch(i),fetch(n).then(r).catch(i)]).then(t=>o(t[0],t[1],e)).catch(()=>{})})},function(e,t,n){const o=n(0),{buildUrl:r}=n(2),i=n(10),a=n(12);e.exports=((e,t,n)=>{const s=document.querySelector("main article").dataset.uid,c=e.find(e=>e.uid===s);c.metadata&&c.metadata.defaultVersion&&window.location.replace(o(c.metadata.defaultVersion,"index.html"));const l=document.getElementById("sidetoc"),u=document.createElement("div");u.id="toc",u.classList.add("toc"),l.appendChild(u);let d="";n.lastIndexOf("/")>-1&&(d=n.substr(0,n.lastIndexOf("/")));const h=(e,t,n)=>{let o=t.querySelector(`.level${n}`);o||((o=document.createElement("ul")).classList.add("nav"),o.classList.add(`level${n}`));const i=document.createElement("li"),a=document.createElement("a");if(a.setAttribute("href",r(d,e.href)),a.setAttribute("title",e.name),a.textContent=e.name,a.dataset.uid=e.uid,e.items&&e.items.length){const e=document.createElement("span");e.classList.add("expand-stub"),a.appendChild(e)}i.appendChild(a),e.items&&e.items.forEach(e=>h(e,i,n+1));const s=e.uid.split(".");let l=!0;const u=c.uid.split(".");for(let e=0;e<=n;e++)l=l&&u[e]===s[e];if(l)i.classList.add("expanded"),a.classList.add("open");else if(e.version&&e.version!==c.version)return;c.uid===e.uid&&a.classList.add("active"),o.appendChild(i),t.appendChild(o)};t.forEach(e=>h(e,u,1)),i(c,e,d),a()})},function(e,t,n){const o=n(11);e.exports=((e,t,n)=>{if(e.version){const r=e.uid.replace(/\./g,"\\.").replace(e.version.replace(/\./g,"\\."),".+"),i=new RegExp(`^${r}$`),a=t.filter(e=>e.uid.match(i));if(a.length>0){const t=e.uid.slice(0,e.uid.indexOf(e.version)),n=document.querySelector(`#toc [data-uid="${t}index"]`);n&&n.parentNode.removeChild(n)}a.length>1&&o(a,e,n)}})},function(e,t,n){const{buildUrl:o}=n(2);e.exports=((e,t,n)=>{const r=document.createElement("select");r.classList.add("version-selector"),e.forEach(e=>{const n=document.createElement("option");n.setAttribute("value",e.version),n.textContent=e.version,e.version===t.version&&n.setAttribute("selected",!0),r.appendChild(n)}),r.addEventListener("change",t=>{let{href:r}=e.find(e=>e.version===t.target.value);r=o(n,r),window.location.href=r}),document.querySelector("main article h1").appendChild(r)})},function(e,t){e.exports=(()=>{const e=document.querySelectorAll(".toc .nav > li .expand-stub");[].forEach.call(e,e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.parentNode.classList.toggle("expanded")})})})},function(e,t,n){const{formList:o}=n(2),r=document.getElementById("breadcrumb");e.exports=(()=>{var e=[];const t=document.querySelectorAll("#global-nav a.active");[].forEach.call(t,t=>{e.push({name:t.textContent,href:t.getAttribute("href")})});const n=document.querySelectorAll("#toc a.open");[].forEach.call(n,t=>{e.push({name:t.innerHTML,href:t.href})});const i=o(e,"breadcrumb");r.innerHTML=i})},function(e,t){let n="/";const o=window.location.pathname,r=document.querySelector('meta[property="docfx:basepath"]');if(r&&(n=r.getAttribute("content"),o.endsWith("/")&&!n.endsWith("/")&&(n=`${n}/`)),o===n||o.replace(/\/index\.html$/,"")===n||"/index.html"===o&&"/"===n){document.querySelector(".page-content").style.margin=0;const e=document.querySelector(".homepage");e.style.position="static",e.style.height="initial",document.querySelector("footer").style.display="none";const t=document.getElementById("search");t.parentNode.removeChild(t),document.getElementById("btn-toggle-search").style.display="none";const n=document.querySelector(".sidebar");n.parentNode.removeChild(n);const o=document.querySelector(".sideaffix");o.parentNode.removeChild(o),document.querySelector(".page-content").style.padding=0,window.innerWidth>=768&&(document.querySelector(".navbar-right").style.borderLeft="none"),window.addEventListener("resize",()=>{window.innerWidth>=768?document.querySelector(".navbar-right").style.borderLeft="none":document.querySelector(".navbar-right").style.borderLeft="1px solid #e6ecf1"})}},function(t,n,o){const r=o(16),i=o(17),{formList:a}=o(2),s=e=>e?e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e;let c=!1;const l=document.querySelector(".sideaffix"),u=document.getElementById("sideaffix-toggle"),d=(()=>{const t=document.querySelectorAll(["h1","h2","h3","h4"].map(e=>`article ${e}`).join(", ")),n=[],o=()=>{const e=n.pop(),t=n[n.length-1],o=t.siblings[t.siblings.length-1];[].forEach.call(e.siblings,e=>{o.items.push(e)})};for([].forEach.call(t,t=>{if(!t.id)return;const r={name:s(t.textContent),href:"#"+t.id,items:[]};if(!n.length)return void n.push({type:t.tagName,siblings:[r]});const i=n[n.length-1];if(t.tagName===i.type)i.siblings.push(r);else if(t.tagName[1]>i.type[1])n.push({type:t.tagName,siblings:[r]});else{for(;t.tagName[1]<n[n.length-1].type[1];)o();t.tagName===n[n.length-1].type?n[n.length-1].siblings.push(r):n.push({type:e.tagName,siblings:[r]})}});n.length>1;)o();if(n.length>0){var r=n.pop().siblings;return 1===r.length?r[0].items:r}})();if(d&&d.length>0){let e="<h5>In This Article</h5>";e+=a(d,["nav","docs-sidenav"]),document.getElementById("affix").innerHTML=e;const t=document.querySelector("header.navbar"),n=()=>t.getBoundingClientRect().height+20;new r("#affix a",{nested:!0,offset:n}),new i('a[href*="#"]',{offset:n})}else u.style.display="none";u.addEventListener("click",()=>{l.style.display=c?"none":"block",c=!c})},function(e,t,n){(function(n){var o,r;/*! gumshoejs v5.1.1 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=function(e,t,n){if(n.settings.events){var o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t.dispatchEvent(o)}},o=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return t>=0?t:0},r=function(e){e&&e.sort(function(e,t){return o(e.content)<o(t.content)?-1:1})},i=function(t,n,o){var r=t.getBoundingClientRect(),i=function(e){return"function"==typeof e.offset?parseFloat(e.offset()):parseFloat(e.offset)}(n);return o?parseInt(r.bottom,10)<(e.innerHeight||document.documentElement.clientHeight):parseInt(r.top,10)<=i},a=function(){return e.innerHeight+e.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(e,t){var n=e[e.length-1];if(function(e,t){return!(!a()||!i(e.content,t,!0))}(n,t))return n;for(var o=e.length-1;o>=0;o--)if(i(e[o].content,t))return e[o]},c=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.remove(t.nestedClass),c(n,t))}},l=function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),c(o,t),n("gumshoeDeactivate",o,{link:e.nav,content:e.content,settings:t}))}},u=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.add(t.nestedClass),u(n,t))}};return function(o,i){var a,c,d,h,f,p={setup:function(){a=document.querySelectorAll(o),c=[],Array.prototype.forEach.call(a,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&c.push({nav:e,content:t})}),r(c)},detect:function(){var e=s(c,f);e?d&&e.content===d.content||(l(d,f),function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.add(t.navClass),e.content.classList.add(t.contentClass),u(o,t),n("gumshoeActivate",o,{link:e.nav,content:e.content,settings:t}))}}(e,f),d=e):d&&(l(d,f),d=null)}},m=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(p.detect)},g=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(function(){r(c),p.detect()})};return p.destroy=function(){d&&l(d,f),e.removeEventListener("scroll",m,!1),f.reflow&&e.removeEventListener("resize",g,!1),c=null,a=null,d=null,h=null,f=null},f=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e}(t,i||{}),p.setup(),p.detect(),e.addEventListener("scroll",m,!1),f.reflow&&e.addEventListener("resize",g,!1),p}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(3))},function(e,t,n){(function(n){var o,r;/*! smooth-scroll v16.0.3 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;0<=--t&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),i=window.setTimeout(function(){t(o+r)},r);return e=o+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,i="",a=n.charCodeAt(0);++r<o;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=1<=t&&t<=31||127==t||0===r&&48<=t&&t<=57||1===r&&48<=t&&t<=57&&45===a?"\\"+t.toString(16)+" ":128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+i},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t,n,o,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:r}});document.dispatchEvent(i)}};return function(a,s){var c,l,u,d,h={cancelScroll:function(e){cancelAnimationFrame(d),d=null,e||i("scrollCancel",c)},animateScroll:function(o,a,s){h.cancelScroll();var l=n(c||t,s||{}),f="[object Number]"===Object.prototype.toString.call(o),p=f||!o.tagName?null:o;if(f||p){var m=e.pageYOffset;l.header&&!u&&(u=document.querySelector(l.header));var g,v,y,w,b,E,x,S,k=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n}(u),_=f?o:function(t,n,o,i){var a=0;if(t.offsetParent)for(;a+=t.offsetTop,t=t.offsetParent;);return a=Math.max(a-n-o,0),i&&(a=Math.min(a,r()-e.innerHeight)),a}(p,k,parseInt("function"==typeof l.offset?l.offset(o,a):l.offset,10),l.clip),I=_-m,N=r(),C=0,T=(g=I,y=(v=l).speedAsDuration?v.speed:Math.abs(g/1e3*v.speed),v.durationMax&&y>v.durationMax?v.durationMax:v.durationMin&&y<v.durationMin?v.durationMin:parseInt(y,10)),A=function(t){var n,r,s;w||(w=t),C+=t-w,E=m+I*(r=b=1<(b=0===T?0:C/T)?1:b,"easeInQuad"===(n=l).easing&&(s=r*r),"easeOutQuad"===n.easing&&(s=r*(2-r)),"easeInOutQuad"===n.easing&&(s=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===n.easing&&(s=r*r*r),"easeOutCubic"===n.easing&&(s=--r*r*r+1),"easeInOutCubic"===n.easing&&(s=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===n.easing&&(s=r*r*r*r),"easeOutQuart"===n.easing&&(s=1- --r*r*r*r),"easeInOutQuart"===n.easing&&(s=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===n.easing&&(s=r*r*r*r*r),"easeOutQuint"===n.easing&&(s=1+--r*r*r*r*r),"easeInOutQuint"===n.easing&&(s=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),n.customEasing&&(s=n.customEasing(r)),s||r),e.scrollTo(0,Math.floor(E)),function(t,n){var r,s,c,u=e.pageYOffset;if(t==n||u==n||(m<n&&e.innerHeight+u)>=N)return h.cancelScroll(!0),s=n,c=f,0===(r=o)&&document.body.focus(),c||(r.focus(),document.activeElement!==r&&(r.setAttribute("tabindex","-1"),r.focus(),r.style.outline="none"),e.scrollTo(0,s)),i("scrollStop",l,o,a),!(d=w=null)}(E,_)||(d=e.requestAnimationFrame(A),w=t)};0===e.pageYOffset&&e.scrollTo(0,0),x=o,S=l,f||history.pushState&&S.updateURL&&history.pushState({smoothScroll:JSON.stringify(S),anchor:x.id},document.title,x===document.documentElement?"#top":"#"+x.id),i("scrollStart",l,o,a),h.cancelScroll(!0),e.requestAnimationFrame(A)}}},f=function(t){if(!("matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches)&&!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(l=t.target.closest(a))&&"a"===l.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&l.hostname===e.location.hostname&&l.pathname===e.location.pathname&&/#/.test(l.href)){var n,r=o(l.hash);if("#"===r){if(!c.topOnEmptyHash)return;n=document.documentElement}else n=document.querySelector(r);(n=n||"#top"!==r?n:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(n,l))}},p=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",f,!1),e.removeEventListener("popstate",p,!1),h.cancelScroll(),d=u=l=c=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,s||{}),u=c.header?document.querySelector(c.header):null,document.addEventListener("click",f,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",p,!1)}(),h}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(3))},function(e,t){const n=document.querySelector('meta[property="docfx:newtab"]');if(n){"true"===n.getAttribute("content")&&[].forEach.call(document.links,e=>{e.hostname!==window.location.hostname&&e.setAttribute("target","_blank")})}},function(e,t){const n=document.querySelectorAll(".NOTE");[].forEach.call(n,e=>e.classList.add("alert","alert-info"));const o=document.querySelectorAll(".TIP");[].forEach.call(o,e=>e.classList.add("alert","alert-success"));const r=document.querySelectorAll(".TIP h5");[].forEach.call(r,e=>e.textContent="Success");const i=document.querySelectorAll(".WARNING");[].forEach.call(i,e=>e.classList.add("alert","alert-warning"));const a=document.querySelectorAll(".IMPORTANT, .CAUTION");[].forEach.call(a,e=>e.classList.add("alert","alert-danger"))},function(e,t,n){const o=n(0),r=n(21),i=n(22),a=n(23),s=document.getElementById("search-results"),c=document.querySelector('meta[property="docfx\\:rel"]');if(c){let e=c.getAttribute("content");e=e||"/";const t=window.searchWorkerUrl||`${e}js/search-worker.js`;let n,l="/";const u=document.querySelector('meta[property="docfx:basepath"]');u&&(l=u.getAttribute("content"));const d=o(window.location.origin,l);try{const o=new Worker(t);o||window.worker?(o.postMessage({event:"init",settings:{baseUrl:d}}),o.onmessage=(t=>{switch(t.data.e){case"index-ready":window.postToSearch=((e,t=!1)=>{o.postMessage({event:"search",q:e,external:t})});break;case"query-ready":const{d:n,q:r}=t.data;t.data.external?window.handleSearchResults(r,n,e):a(r,n,e)}})):r();const c=document.querySelectorAll(".search-input");[].forEach.call(c,e=>{e.addEventListener("keydown",t=>{13===t.keyCode&&t.preventDefault(),27===t.keyCode&&(e.classList.remove("active"),s.style.display="none")}),e.addEventListener("keyup",t=>{(n=t.target.value).length>=3&&window.postToSearch&&(window.postToSearch(n),e.classList.add("active"))})}),i()}catch(e){console.error(e)}}},function(e,t){e.exports=(()=>{var e=lunr(function(){this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20})});lunr.tokenizer.seperator=/[\s\-\.]+/;var t={},n=new XMLHttpRequest,o=relHref+"index.json";o&&(n.open("GET",o),n.onload=function(){if(200==this.status)for(var n in t=JSON.parse(this.responseText))t.hasOwnProperty(n)&&e.add(t[n])},n.send()),$("body").bind("queryReady",function(){var n=e.search(query),o=[];n.forEach(function(e){var n=t[e.ref];o.push({href:n.href,title:n.title,keywords:n.keywords})}),handleSearchResults(o)})})},function(e,t,n){const o=new(n(4))(document.querySelector("article"));e.exports=(()=>{const{search:e}=window.location;if(e){const t=e.match(/\?q=(.+)/);t&&t[1].split("%20").forEach(e=>{""!==e&&o.mark(e,{exclude:["h1"]})})}})},function(e,t,n){const o=n(24),r=n(4),i=document.getElementById("search-results"),a=new r(i),s=new o({rows:[],scrollId:"search-scrollArea",contentId:"search-contentArea",no_data_text:"No results found"});e.exports=((e,t,n)=>{if(0===t.length)s.update(["<div></div>"]),s.clear();else{const o=t.map(t=>{var o=n+t.href+"?q="+e,r=t.title,i=((e,t)=>{const n=e.split(/\s+/g),o=t.indexOf(n[0]);return o>100?`...${t.slice(o-100,o+100)}...`:o<=100?`${t.slice(0,o+100)}...`:void 0})(e,t.keywords);const a=document.createElement("a");a.setAttribute("href",o),a.classList.add("sr-item");const s=document.createElement("div");s.classList.add("item-title"),s.textContent=r;const c=document.createElement("div");c.classList.add("item-brief"),c.textContent=i,a.appendChild(s),a.appendChild(c);const l=document.createElement("div");return l.appendChild(a),l.innerHTML});s.update(o),e.split(/\s+/).forEach(e=>{""!==e&&a.mark(e)})}i.style.display="flex"})},function(e,t,n){e.exports=function(){"use strict";var e=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i><![endif]--\x3e",n[0];);return e>4?e:document.documentMode}(),t=navigator.platform.toLowerCase().indexOf("mac")+1,n=function(e){if(!(this instanceof n))return new n(e);var a=this,s={rows_in_block:50,blocks_in_cluster:4,tag:null,show_no_data_row:!0,no_data_class:"clusterize-no-data",no_data_text:"No data",keep_parity:!0,callbacks:{}};a.options={};for(var c,l=["rows_in_block","blocks_in_cluster","show_no_data_row","no_data_class","no_data_text","keep_parity","tag","callbacks"],u=0;c=l[u];u++)a.options[c]=void 0!==e[c]&&null!=e[c]?e[c]:s[c];for(var d,h=["scroll","content"],u=0;d=h[u];u++)if(a[d+"_elem"]=e[d+"Id"]?document.getElementById(e[d+"Id"]):e[d+"Elem"],!a[d+"_elem"])throw new Error("Error! Could not find "+d+" element");a.content_elem.hasAttribute("tabindex")||a.content_elem.setAttribute("tabindex",0);var f=i(e.rows)?e.rows:a.fetchMarkup(),p={},m=a.scroll_elem.scrollTop;a.insertToDOM(f,p),a.scroll_elem.scrollTop=m;var g=!1,v=0,y=!1,w=function(){t&&(y||(a.content_elem.style.pointerEvents="none"),y=!0,clearTimeout(v),v=setTimeout(function(){a.content_elem.style.pointerEvents="auto",y=!1},50)),g!=(g=a.getClusterNum())&&a.insertToDOM(f,p),a.options.callbacks.scrollingProgress&&a.options.callbacks.scrollingProgress(a.getScrollProgress())},b=0,E=function(){clearTimeout(b),b=setTimeout(a.refresh,100)};o("scroll",a.scroll_elem,w),o("resize",window,E),a.destroy=function(e){r("scroll",a.scroll_elem,w),r("resize",window,E),a.html((e?a.generateEmptyRow():f).join(""))},a.refresh=function(e){(a.getRowsHeight(f)||e)&&a.update(f)},a.update=function(e){f=i(e)?e:[];var t=a.scroll_elem.scrollTop;f.length*a.options.item_height<t&&(a.scroll_elem.scrollTop=0,g=0),a.insertToDOM(f,p),a.scroll_elem.scrollTop=t},a.clear=function(){a.update([])},a.getRowsAmount=function(){return f.length},a.getScrollProgress=function(){return this.options.scroll_top/(f.length*this.options.item_height)*100||0};var x=function(e,t){var n=i(t)?t:[];n.length&&(f="append"==e?f.concat(n):n.concat(f),a.insertToDOM(f,p))};a.append=function(e){x("append",e)},a.prepend=function(e){x("prepend",e)}};function o(e,t,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function r(e,t,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e,t){return window.getComputedStyle?window.getComputedStyle(t)[e]:t.currentStyle[e]}return n.prototype={constructor:n,fetchMarkup:function(){for(var e=[],t=this.getChildNodes(this.content_elem);t.length;)e.push(t.shift().outerHTML);return e},exploreEnvironment:function(t,n){var o=this.options;o.content_tag=this.content_elem.tagName.toLowerCase(),t.length&&(e&&e<=9&&!o.tag&&(o.tag=t[0].match(/<([^>\s\/]*)/)[1].toLowerCase()),this.content_elem.children.length<=1&&(n.data=this.html(t[0]+t[0]+t[0])),o.tag||(o.tag=this.content_elem.children[0].tagName.toLowerCase()),this.getRowsHeight(t))},getRowsHeight:function(e){var t=this.options,n=t.item_height;if(t.cluster_height=0,e.length){var o=this.content_elem.children;if(o.length){var r=o[Math.floor(o.length/2)];if(t.item_height=r.offsetHeight,"tr"==t.tag&&"collapse"!=a("borderCollapse",this.content_elem)&&(t.item_height+=parseInt(a("borderSpacing",this.content_elem),10)||0),"tr"!=t.tag){var i=parseInt(a("marginTop",r),10)||0,s=parseInt(a("marginBottom",r),10)||0;t.item_height+=Math.max(i,s)}return t.block_height=t.item_height*t.rows_in_block,t.rows_in_cluster=t.blocks_in_cluster*t.rows_in_block,t.cluster_height=t.blocks_in_cluster*t.block_height,n!=t.item_height}}},getClusterNum:function(){return this.options.scroll_top=this.scroll_elem.scrollTop,Math.floor(this.options.scroll_top/(this.options.cluster_height-this.options.block_height))||0},generateEmptyRow:function(){var e=this.options;if(!e.tag||!e.show_no_data_row)return[];var t,n=document.createElement(e.tag),o=document.createTextNode(e.no_data_text);return n.className=e.no_data_class,"tr"==e.tag&&((t=document.createElement("td")).colSpan=100,t.appendChild(o)),n.appendChild(t||o),[n.outerHTML]},generate:function(e,t){var n=this.options,o=e.length;if(o<n.rows_in_block)return{top_offset:0,bottom_offset:0,rows_above:0,rows:o?e:this.generateEmptyRow()};var r=Math.max((n.rows_in_cluster-n.rows_in_block)*t,0),i=r+n.rows_in_cluster,a=Math.max(r*n.item_height,0),s=Math.max((o-i)*n.item_height,0),c=[],l=r;a<1&&l++;for(var u=r;u<i;u++)e[u]&&c.push(e[u]);return{top_offset:a,bottom_offset:s,rows_above:l,rows:c}},renderExtraTag:function(e,t){var n=document.createElement(this.options.tag);return n.className=["clusterize-extra-row","clusterize-"+e].join(" "),t&&(n.style.height=t+"px"),n.outerHTML},insertToDOM:function(e,t){this.options.cluster_height||this.exploreEnvironment(e,t);var n=this.generate(e,this.getClusterNum()),o=n.rows.join(""),r=this.checkChanges("data",o,t),i=this.checkChanges("top",n.top_offset,t),a=this.checkChanges("bottom",n.bottom_offset,t),s=this.options.callbacks,c=[];r||i?(n.top_offset&&(this.options.keep_parity&&c.push(this.renderExtraTag("keep-parity")),c.push(this.renderExtraTag("top-space",n.top_offset))),c.push(o),n.bottom_offset&&c.push(this.renderExtraTag("bottom-space",n.bottom_offset)),s.clusterWillChange&&s.clusterWillChange(),this.html(c.join("")),"ol"==this.options.content_tag&&this.content_elem.setAttribute("start",n.rows_above),this.content_elem.style["counter-increment"]="clusterize-counter "+(n.rows_above-1),s.clusterChanged&&s.clusterChanged()):a&&(this.content_elem.lastChild.style.height=n.bottom_offset+"px")},html:function(t){var n=this.content_elem;if(e&&e<=9&&"tr"==this.options.tag){var o,r=document.createElement("div");for(r.innerHTML="<table><tbody>"+t+"</tbody></table>";o=n.lastChild;)n.removeChild(o);for(var i=this.getChildNodes(r.firstChild.firstChild);i.length;)n.appendChild(i.shift())}else n.innerHTML=t},getChildNodes:function(e){for(var t=e.children,n=[],o=0,r=t.length;o<r;o++)n.push(t[o]);return n},checkChanges:function(e,t,n){var o=t!=n[e];return n[e]=t,o}},n}()},function(e,t){const n=document.getElementById("error-search-results");if(n){const{pathname:e}=window.location,t=e.replace(/\.html$/,"").split(/[\/-]/).join(" ");window.handleSearchResults=((e,t,o)=>{if(0===t.length){const e=document.createTextNode("No results found.");n.appendChild(e)}else t.forEach(t=>{const r=o+t.href+"?q="+e,i=document.createElement("a");i.setAttribute("href",r),i.textContent=t.title,n.appendChild(i)})});const o=()=>{window.postToSearch?window.postToSearch(t,!0):window.setTimeout(o,100)};o()}},function(e,t){const n=window.pluginConfig.statuspage;if(n){const e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.onload=(()=>{new StatusPage.page({page:n.pageId}).summary({success:e=>{if(window.statusPageSummary=e,-1===window.location.pathname.indexOf("/status")){const t=document.createElement("div");t.classList.add("status-widget"),t.classList.add(e.status.indicator);const o=document.createElement("a");o.setAttribute("href","/status"),o.innerHTML=n.title||"Platform Status",t.appendChild(o),document.querySelector("#global-nav").appendChild(t)}}})}),t.src="https://cdn.statuspage.io/se-v2.js",e.parentNode.insertBefore(t,e)}}]); | ||
e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=i}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim(),o=e.contentWindow.location.href;return o===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,i=null,a=function a(){if(!r){r=!0,clearTimeout(i);try{o.isIframeBlank(e)||(e.removeEventListener("load",a),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),i=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,function(){return!0},function(e){o++,n.waitForIframes(e.querySelector("html"),function(){--o||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var l=function(){--s<=0&&i(c)};s||l(),a.forEach(function(t){e.matches(t,r.exclude)?l():r.onIframeReady(t,function(e){n(t)&&(c++,o(e)),l()},l)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){var o=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(o&r){if(null===t)return!0;var i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_FOLLOWING;if(i&a)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode(),n=void 0;return n=null===t?e.nextNode():e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,i=!1;return o.forEach(function(e,t){e.val===n&&(r=t,i=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||i?!1===r||i||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)})})}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var i=this,a=this.createIterator(t,e,o),s=[],c=[],l=void 0,u=void 0;d=void 0,d=i.getIteratorNode(a),u=d.prevNode,l=d.node;)this.iframes&&this.forEachIframe(t,function(e){return i.checkIframeFilter(l,u,e,s)},function(t){i.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},o)}),c.push(l);var d;c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=this.getContexts(),a=i.length;a||r(),i.forEach(function(i){var s=function(){o.iterateThroughNodes(e,i,t,n,function(){--a<=0&&r()})};o.iframes?o.waitForIframes(i,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every(function(t){return!o.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),i=function(){function i(e){t(this,i),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(i,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),o+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,i="";switch(r.forEach(function(e){i+="|"+t.escapeStr(e)}),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,o),i=r.start,a=r.end,s=r.valid;s&&(e.start=i,e.length=a-i,n.push(e),o=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(n=parseInt(e.start,10),o=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,i=n.length,a=t-i,s=parseInt(e.start,10)-a;return(o=(s=s>i?i:s)+parseInt(e.length,10))>i&&(o=i,this.log("End range automatically set to the max value of "+i)),s<0||o-s<0||s>i||o>i?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:o})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t),a=document.createElement(o);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),i}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var i=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!o(a.node))return!1;var l=t-a.start,u=(n>a.end?a.end:n)-a.start,d=e.value.substr(0,a.start),h=e.value.substr(u+a.start);if(a.node=i.wrapRangeInTextNode(a.node,l,u),e.value=d+h,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,r(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[a];)if(n(r[a],t)){var s=r.index;if(0!==a)for(var c=1;c<a;c++)s+=r[c].length;t=i.wrapRangeInTextNode(t,s,s+r[a].length),o(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[a];){var c=s.index;if(0!==a)for(var l=1;l<a;l++)c+=s[l].length;var u=c+s[a].length;i.wrapRangeInMappedTextNode(t,c,u,function(e){return n(s[a],e)},function(t,n){e.lastIndex=n,o(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,o){var r=this;this.getTextNodes(function(i){var a=i.value.length;e.forEach(function(e,o){var s=r.checkWhitespaceRanges(e,a,i.value),c=s.start,l=s.end,u=s.valid;u&&r.wrapRangeInMappedTextNode(i,c,l,function(n){return t(n,e,i.value.substring(c,l),o)},function(t){n(t,e)})}),o()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,o)},function(e){o++,n.opt.each(e)},function(){0===o&&n.opt.noMatch(e),n.opt.done(o)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var o=0,r="wrapMatches",i=this.getSeparatedKeywords("string"==typeof e?[e]:e),a=i.keywords,s=i.length,c=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===s?this.opt.done(o):function e(t){var i=new RegExp(n.createRegExp(t),"gm"+c),l=0;n.log('Searching with expression "'+i+'"'),n[r](i,1,function(e,r){return n.opt.filter(r,t,o,l)},function(e){l++,o++,n.opt.each(e)},function(){0===l&&n.opt.noMatch(t),a[s-1]===t?n.opt.done(o):e(a[a.indexOf(t)+1])})}(a[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var o=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,o,r){return n.opt.filter(e,t,o,r)},function(e,t){o++,n.opt.each(e,t)},function(){n.opt.done(o)})):this.opt.done(o)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var o=r.matches(e,n),i=t.matchesExclude(e);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=o({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),i}();return function(e){var t=this,n=new i(e);return this.mark=function(e,o){return n.mark(e,o),t},this.markRegExp=function(e,o){return n.markRegExp(e,o),t},this.markRanges=function(e,o){return n.markRanges(e,o),t},this.unmark=function(e){return n.unmark(e),t},this}}()},function(e,t,n){n(6);const o=n(7),r=n(8),i=n(13);n(14),o().then(r).then(i),n(15),n(18),n(19),n(20),n(25),n(26)},function(e,t,n){},function(e,t,n){const o=n(0),{buildUrl:r,isRelativePath:i,getAbsolutePath:a,getDirectory:s}=n(2),c=document.getElementById("global-nav");e.exports=(()=>{let e=Promise.resolve();const t=document.querySelector('meta[property="docfx\\:navrel"]');if(t){const n=t.getAttribute("content");n&&(e=fetch(n).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<ul"),e.indexOf("</ul")+4);c.innerHTML=n;const l=t.lastIndexOf("/");let u="";l>-1&&(u=t.substr(0,l));const d=a(window.location.pathname),h=document.querySelectorAll("#global-nav a");[].forEach.call(h,e=>{let t=e.getAttribute("href");i(t)&&(t=r(u,t)),e.setAttribute("href",t);const n=document.querySelector('meta[property="docfx\\:tocrel"]');let c=n?n.getAttribute("content").replace(/\\/g,"/"):"";c=s(a(c)),window.alchemyNavUrlTransformer&&(c=window.alchemyNavUrlTransformer(c));let l=!1,h=e.getAttribute("name");h?(h=o(u,h),h=s(a(h)),window.alchemyNavUrlTransformer&&(h=window.alchemyNavUrlTransformer(h)),h===c&&(l=!0)):a(t)===d&&"dropdown"!==e.getAttribute("data-toggle")&&(l=!0),l&&e.classList.add("active")})})(e,n)))}let n=!1;const l=document.querySelector(".sidebar"),u=document.querySelector("#global-nav"),d=document.getElementById("btn-toggle-nav");let h=!1;const f=document.getElementById("search"),p=document.getElementById("btn-toggle-search"),m=document.getElementById("search-input"),g=document.getElementById("search-results");return d.addEventListener("click",()=>{n?(l&&(l.style.display="none"),u.style.display="none",document.getElementById("search-results").style.display="none"):(l&&(l.style.display="block"),u.style.display="flex",f&&(f.style.display="none",g.style.display="none",h=!1)),n=!n}),p.addEventListener("click",()=>{h?(f.style.display="none",g.style.display="none"):(f.style.display="flex",m.focus(),window.innerWidth<768&&(l&&(l.style.display="none"),u.style.display="none",n=!1)),h=!h}),e})},function(e,t,n){const o=n(9),r=e=>{if(!e.ok)throw e;return e.json()},i=()=>{};e.exports=(()=>{const e=document.querySelector('meta[property="docfx\\:tocrel"]').getAttribute("content").replace(/\\/g,"/");if(!e)return Promise.resolve();const t=e.replace("toc.html","_alchemyNav/toc.json"),n=e.replace("toc.html","_alchemyNav/toc-nested.json");return Promise.all([fetch(t).then(r).catch(i),fetch(n).then(r).catch(i)]).then(t=>o(t[0],t[1],e)).catch(()=>{})})},function(e,t,n){const o=n(0),{buildUrl:r}=n(2),i=n(10),a=n(12);e.exports=((e,t,n)=>{const s=document.querySelector("main article").dataset.uid,c=e.find(e=>e.uid===s);c.metadata&&c.metadata.defaultVersion&&window.location.replace(o(c.metadata.defaultVersion,"index.html"));const l=document.getElementById("sidetoc"),u=document.createElement("div");u.id="toc",u.classList.add("toc"),l.appendChild(u);let d="";n.lastIndexOf("/")>-1&&(d=n.substr(0,n.lastIndexOf("/")));const h=(e,t,n)=>{let o=t.querySelector(`.level${n}`);o||((o=document.createElement("ul")).classList.add("nav"),o.classList.add(`level${n}`));const i=document.createElement("li"),a=document.createElement("a");if(a.setAttribute("href",r(d,e.href)),a.setAttribute("title",e.name),a.textContent=e.name,a.dataset.uid=e.uid,e.items&&e.items.length){const e=document.createElement("span");e.classList.add("expand-stub"),a.appendChild(e)}i.appendChild(a),e.items&&e.items.forEach(e=>h(e,i,n+1));const s=e.uid.split(".");let l=!0;const u=c.uid.split(".");for(let e=0;e<=n;e++)l=l&&u[e]===s[e];if(l)i.classList.add("expanded"),a.classList.add("open");else if(e.version&&e.version!==c.version)return;c.uid===e.uid&&a.classList.add("active"),o.appendChild(i),t.appendChild(o)};t.forEach(e=>h(e,u,1)),i(c,e,d),a()})},function(e,t,n){const o=n(11);e.exports=((e,t,n)=>{if(e.version){const r=e.uid.replace(/\./g,"\\.").replace(e.version.replace(/\./g,"\\."),".+"),i=new RegExp(`^${r}$`),a=t.filter(e=>e.uid.match(i));if(a.length>0){const t=e.uid.slice(0,e.uid.indexOf(e.version)),n=document.querySelector(`#toc [data-uid="${t}index"]`);n&&n.parentNode.removeChild(n)}a.length>1&&o(a,e,n)}})},function(e,t,n){const{buildUrl:o}=n(2);e.exports=((e,t,n)=>{const r=document.createElement("select");r.classList.add("version-selector"),e.forEach(e=>{const n=document.createElement("option");n.setAttribute("value",e.version),n.textContent=e.version,e.version===t.version&&n.setAttribute("selected",!0),r.appendChild(n)}),r.addEventListener("change",t=>{let{href:r}=e.find(e=>e.version===t.target.value);r=o(n,r),window.location.href=r}),document.querySelector("main article h1").appendChild(r)})},function(e,t){e.exports=(()=>{const e=document.querySelectorAll(".toc .nav > li .expand-stub");[].forEach.call(e,e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.parentNode.classList.toggle("expanded")})})})},function(e,t,n){const{formList:o}=n(2),r=document.getElementById("breadcrumb");e.exports=(()=>{var e=[];const t=document.querySelectorAll("#global-nav a.active");[].forEach.call(t,t=>{e.push({name:t.textContent,href:t.getAttribute("href")})});const n=document.querySelectorAll("#toc a.open");[].forEach.call(n,t=>{e.push({name:t.innerHTML,href:t.href})});const i=o(e,"breadcrumb");r.innerHTML=i})},function(e,t){let n="/";const o=window.location.pathname,r=document.querySelector('meta[property="docfx:basepath"]');if(r&&(n=r.getAttribute("content"),o.endsWith("/")&&!n.endsWith("/")&&(n=`${n}/`)),o===n||o.replace(/\/index\.html$/,"")===n||"/index.html"===o&&"/"===n){const e=document.querySelectorAll("article > p");[].forEach.call(e,e=>{e.parentNode.removeChild(e)});const t=document.querySelector(".page-content");t.style.margin=0,t.style.maxWidth="initial",t.style.padding=0;const n=document.querySelector(".homepage");n.style.position="static",n.style.width="initial",n.style.height="initial",document.querySelector("footer").style.display="none";const o=document.getElementById("search");o.parentNode.removeChild(o),document.getElementById("btn-toggle-search").style.display="none";const r=document.querySelector(".sidebar");r.parentNode.removeChild(r);const i=document.querySelector(".sideaffix");i.parentNode.removeChild(i),window.innerWidth>=768&&(document.querySelector(".navbar-right").style.borderLeft="none"),window.addEventListener("resize",()=>{window.innerWidth>=768?document.querySelector(".navbar-right").style.borderLeft="none":document.querySelector(".navbar-right").style.borderLeft="1px solid #e6ecf1"})}},function(t,n,o){const r=o(16),i=o(17),{formList:a}=o(2),s=e=>e?e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e;let c=!1;const l=document.querySelector(".sideaffix"),u=document.getElementById("sideaffix-toggle"),d=(()=>{const t=document.querySelectorAll(["h1","h2","h3","h4"].map(e=>`article ${e}`).join(", ")),n=[],o=()=>{const e=n.pop(),t=n[n.length-1],o=t.siblings[t.siblings.length-1];[].forEach.call(e.siblings,e=>{o.items.push(e)})};for([].forEach.call(t,t=>{if(!t.id)return;const r={name:s(t.textContent),href:"#"+t.id,items:[]};if(!n.length)return void n.push({type:t.tagName,siblings:[r]});const i=n[n.length-1];if(t.tagName===i.type)i.siblings.push(r);else if(t.tagName[1]>i.type[1])n.push({type:t.tagName,siblings:[r]});else{for(;t.tagName[1]<n[n.length-1].type[1];)o();t.tagName===n[n.length-1].type?n[n.length-1].siblings.push(r):n.push({type:e.tagName,siblings:[r]})}});n.length>1;)o();if(n.length>0){var r=n.pop().siblings;return 1===r.length?r[0].items:r}})();if(d&&d.length>0){let e="<h5>In This Article</h5>";e+=a(d,["nav","docs-sidenav"]),document.getElementById("affix").innerHTML=e;const t=document.querySelector("header.navbar"),n=()=>t.getBoundingClientRect().height+20;new r("#affix a",{nested:!0,offset:n}),new i('a[href*="#"]',{offset:n})}else u.style.display="none";u.addEventListener("click",()=>{l.style.display=c?"none":"block",c=!c})},function(e,t,n){(function(n){var o,r;/*! gumshoejs v5.1.1 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=function(e,t,n){if(n.settings.events){var o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t.dispatchEvent(o)}},o=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return t>=0?t:0},r=function(e){e&&e.sort(function(e,t){return o(e.content)<o(t.content)?-1:1})},i=function(t,n,o){var r=t.getBoundingClientRect(),i=function(e){return"function"==typeof e.offset?parseFloat(e.offset()):parseFloat(e.offset)}(n);return o?parseInt(r.bottom,10)<(e.innerHeight||document.documentElement.clientHeight):parseInt(r.top,10)<=i},a=function(){return e.innerHeight+e.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(e,t){var n=e[e.length-1];if(function(e,t){return!(!a()||!i(e.content,t,!0))}(n,t))return n;for(var o=e.length-1;o>=0;o--)if(i(e[o].content,t))return e[o]},c=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.remove(t.nestedClass),c(n,t))}},l=function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),c(o,t),n("gumshoeDeactivate",o,{link:e.nav,content:e.content,settings:t}))}},u=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.add(t.nestedClass),u(n,t))}};return function(o,i){var a,c,d,h,f,p={setup:function(){a=document.querySelectorAll(o),c=[],Array.prototype.forEach.call(a,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&c.push({nav:e,content:t})}),r(c)},detect:function(){var e=s(c,f);e?d&&e.content===d.content||(l(d,f),function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.add(t.navClass),e.content.classList.add(t.contentClass),u(o,t),n("gumshoeActivate",o,{link:e.nav,content:e.content,settings:t}))}}(e,f),d=e):d&&(l(d,f),d=null)}},m=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(p.detect)},g=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(function(){r(c),p.detect()})};return p.destroy=function(){d&&l(d,f),e.removeEventListener("scroll",m,!1),f.reflow&&e.removeEventListener("resize",g,!1),c=null,a=null,d=null,h=null,f=null},f=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e}(t,i||{}),p.setup(),p.detect(),e.addEventListener("scroll",m,!1),f.reflow&&e.addEventListener("resize",g,!1),p}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(3))},function(e,t,n){(function(n){var o,r;/*! smooth-scroll v16.0.3 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;0<=--t&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),i=window.setTimeout(function(){t(o+r)},r);return e=o+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,i="",a=n.charCodeAt(0);++r<o;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=1<=t&&t<=31||127==t||0===r&&48<=t&&t<=57||1===r&&48<=t&&t<=57&&45===a?"\\"+t.toString(16)+" ":128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+i},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t,n,o,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:r}});document.dispatchEvent(i)}};return function(a,s){var c,l,u,d,h={cancelScroll:function(e){cancelAnimationFrame(d),d=null,e||i("scrollCancel",c)},animateScroll:function(o,a,s){h.cancelScroll();var l=n(c||t,s||{}),f="[object Number]"===Object.prototype.toString.call(o),p=f||!o.tagName?null:o;if(f||p){var m=e.pageYOffset;l.header&&!u&&(u=document.querySelector(l.header));var g,v,y,w,b,E,x,S,k=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n}(u),_=f?o:function(t,n,o,i){var a=0;if(t.offsetParent)for(;a+=t.offsetTop,t=t.offsetParent;);return a=Math.max(a-n-o,0),i&&(a=Math.min(a,r()-e.innerHeight)),a}(p,k,parseInt("function"==typeof l.offset?l.offset(o,a):l.offset,10),l.clip),I=_-m,N=r(),C=0,T=(g=I,y=(v=l).speedAsDuration?v.speed:Math.abs(g/1e3*v.speed),v.durationMax&&y>v.durationMax?v.durationMax:v.durationMin&&y<v.durationMin?v.durationMin:parseInt(y,10)),A=function(t){var n,r,s;w||(w=t),C+=t-w,E=m+I*(r=b=1<(b=0===T?0:C/T)?1:b,"easeInQuad"===(n=l).easing&&(s=r*r),"easeOutQuad"===n.easing&&(s=r*(2-r)),"easeInOutQuad"===n.easing&&(s=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===n.easing&&(s=r*r*r),"easeOutCubic"===n.easing&&(s=--r*r*r+1),"easeInOutCubic"===n.easing&&(s=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===n.easing&&(s=r*r*r*r),"easeOutQuart"===n.easing&&(s=1- --r*r*r*r),"easeInOutQuart"===n.easing&&(s=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===n.easing&&(s=r*r*r*r*r),"easeOutQuint"===n.easing&&(s=1+--r*r*r*r*r),"easeInOutQuint"===n.easing&&(s=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),n.customEasing&&(s=n.customEasing(r)),s||r),e.scrollTo(0,Math.floor(E)),function(t,n){var r,s,c,u=e.pageYOffset;if(t==n||u==n||(m<n&&e.innerHeight+u)>=N)return h.cancelScroll(!0),s=n,c=f,0===(r=o)&&document.body.focus(),c||(r.focus(),document.activeElement!==r&&(r.setAttribute("tabindex","-1"),r.focus(),r.style.outline="none"),e.scrollTo(0,s)),i("scrollStop",l,o,a),!(d=w=null)}(E,_)||(d=e.requestAnimationFrame(A),w=t)};0===e.pageYOffset&&e.scrollTo(0,0),x=o,S=l,f||history.pushState&&S.updateURL&&history.pushState({smoothScroll:JSON.stringify(S),anchor:x.id},document.title,x===document.documentElement?"#top":"#"+x.id),i("scrollStart",l,o,a),h.cancelScroll(!0),e.requestAnimationFrame(A)}}},f=function(t){if(!("matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches)&&!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(l=t.target.closest(a))&&"a"===l.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&l.hostname===e.location.hostname&&l.pathname===e.location.pathname&&/#/.test(l.href)){var n,r=o(l.hash);if("#"===r){if(!c.topOnEmptyHash)return;n=document.documentElement}else n=document.querySelector(r);(n=n||"#top"!==r?n:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(n,l))}},p=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",f,!1),e.removeEventListener("popstate",p,!1),h.cancelScroll(),d=u=l=c=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,s||{}),u=c.header?document.querySelector(c.header):null,document.addEventListener("click",f,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",p,!1)}(),h}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(3))},function(e,t){const n=document.querySelector('meta[property="docfx:newtab"]');if(n){"true"===n.getAttribute("content")&&[].forEach.call(document.links,e=>{e.hostname!==window.location.hostname&&e.setAttribute("target","_blank")})}},function(e,t){const n=document.querySelectorAll(".NOTE");[].forEach.call(n,e=>e.classList.add("alert","alert-info"));const o=document.querySelectorAll(".TIP");[].forEach.call(o,e=>e.classList.add("alert","alert-success"));const r=document.querySelectorAll(".TIP h5");[].forEach.call(r,e=>e.textContent="Success");const i=document.querySelectorAll(".WARNING");[].forEach.call(i,e=>e.classList.add("alert","alert-warning"));const a=document.querySelectorAll(".IMPORTANT, .CAUTION");[].forEach.call(a,e=>e.classList.add("alert","alert-danger"))},function(e,t,n){const o=n(0),r=n(21),i=n(22),a=n(23),s=document.getElementById("search-results"),c=document.querySelector('meta[property="docfx\\:rel"]');if(c){let e=c.getAttribute("content");e=e||"/";const t=window.searchWorkerUrl||`${e}js/search-worker.js`;let n,l="/";const u=document.querySelector('meta[property="docfx:basepath"]');u&&(l=u.getAttribute("content"));const d=o(window.location.origin,l);try{const o=new Worker(t);o||window.worker?(o.postMessage({event:"init",settings:{baseUrl:d}}),o.onmessage=(t=>{switch(t.data.e){case"index-ready":window.postToSearch=((e,t=!1)=>{o.postMessage({event:"search",q:e,external:t})});break;case"query-ready":const{d:n,q:r}=t.data;t.data.external?window.handleSearchResults(r,n,e):a(r,n,e)}})):r();const c=document.querySelectorAll(".search-input");[].forEach.call(c,e=>{e.addEventListener("keydown",t=>{13===t.keyCode&&t.preventDefault(),27===t.keyCode&&(e.classList.remove("active"),s.style.display="none")}),e.addEventListener("keyup",t=>{(n=t.target.value).length>=3&&window.postToSearch&&(window.postToSearch(n),e.classList.add("active"))})}),i()}catch(e){console.error(e)}}},function(e,t){e.exports=(()=>{var e=lunr(function(){this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20})});lunr.tokenizer.seperator=/[\s\-\.]+/;var t={},n=new XMLHttpRequest,o=relHref+"index.json";o&&(n.open("GET",o),n.onload=function(){if(200==this.status)for(var n in t=JSON.parse(this.responseText))t.hasOwnProperty(n)&&e.add(t[n])},n.send()),$("body").bind("queryReady",function(){var n=e.search(query),o=[];n.forEach(function(e){var n=t[e.ref];o.push({href:n.href,title:n.title,keywords:n.keywords})}),handleSearchResults(o)})})},function(e,t,n){const o=new(n(4))(document.querySelector("article"));e.exports=(()=>{const{search:e}=window.location;if(e){const t=e.match(/\?q=(.+)/);t&&t[1].split("%20").forEach(e=>{""!==e&&o.mark(e,{exclude:["h1"]})})}})},function(e,t,n){const o=n(24),r=n(4),i=document.getElementById("search-results"),a=new r(i),s=new o({rows:[],scrollId:"search-scrollArea",contentId:"search-contentArea",no_data_text:"No results found"});e.exports=((e,t,n)=>{if(0===t.length)s.update(["<div></div>"]),s.clear();else{const o=t.map(t=>{var o=n+t.href+"?q="+e,r=t.title,i=((e,t)=>{const n=e.split(/\s+/g),o=t.indexOf(n[0]);return o>100?`...${t.slice(o-100,o+100)}...`:o<=100?`${t.slice(0,o+100)}...`:void 0})(e,t.keywords);const a=document.createElement("a");a.setAttribute("href",o),a.classList.add("sr-item");const s=document.createElement("div");s.classList.add("item-title"),s.textContent=r;const c=document.createElement("div");c.classList.add("item-brief"),c.textContent=i,a.appendChild(s),a.appendChild(c);const l=document.createElement("div");return l.appendChild(a),l.innerHTML});s.update(o),e.split(/\s+/).forEach(e=>{""!==e&&a.mark(e)})}i.style.display="flex"})},function(e,t,n){e.exports=function(){"use strict";var e=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i><![endif]--\x3e",n[0];);return e>4?e:document.documentMode}(),t=navigator.platform.toLowerCase().indexOf("mac")+1,n=function(e){if(!(this instanceof n))return new n(e);var a=this,s={rows_in_block:50,blocks_in_cluster:4,tag:null,show_no_data_row:!0,no_data_class:"clusterize-no-data",no_data_text:"No data",keep_parity:!0,callbacks:{}};a.options={};for(var c,l=["rows_in_block","blocks_in_cluster","show_no_data_row","no_data_class","no_data_text","keep_parity","tag","callbacks"],u=0;c=l[u];u++)a.options[c]=void 0!==e[c]&&null!=e[c]?e[c]:s[c];for(var d,h=["scroll","content"],u=0;d=h[u];u++)if(a[d+"_elem"]=e[d+"Id"]?document.getElementById(e[d+"Id"]):e[d+"Elem"],!a[d+"_elem"])throw new Error("Error! Could not find "+d+" element");a.content_elem.hasAttribute("tabindex")||a.content_elem.setAttribute("tabindex",0);var f=i(e.rows)?e.rows:a.fetchMarkup(),p={},m=a.scroll_elem.scrollTop;a.insertToDOM(f,p),a.scroll_elem.scrollTop=m;var g=!1,v=0,y=!1,w=function(){t&&(y||(a.content_elem.style.pointerEvents="none"),y=!0,clearTimeout(v),v=setTimeout(function(){a.content_elem.style.pointerEvents="auto",y=!1},50)),g!=(g=a.getClusterNum())&&a.insertToDOM(f,p),a.options.callbacks.scrollingProgress&&a.options.callbacks.scrollingProgress(a.getScrollProgress())},b=0,E=function(){clearTimeout(b),b=setTimeout(a.refresh,100)};o("scroll",a.scroll_elem,w),o("resize",window,E),a.destroy=function(e){r("scroll",a.scroll_elem,w),r("resize",window,E),a.html((e?a.generateEmptyRow():f).join(""))},a.refresh=function(e){(a.getRowsHeight(f)||e)&&a.update(f)},a.update=function(e){f=i(e)?e:[];var t=a.scroll_elem.scrollTop;f.length*a.options.item_height<t&&(a.scroll_elem.scrollTop=0,g=0),a.insertToDOM(f,p),a.scroll_elem.scrollTop=t},a.clear=function(){a.update([])},a.getRowsAmount=function(){return f.length},a.getScrollProgress=function(){return this.options.scroll_top/(f.length*this.options.item_height)*100||0};var x=function(e,t){var n=i(t)?t:[];n.length&&(f="append"==e?f.concat(n):n.concat(f),a.insertToDOM(f,p))};a.append=function(e){x("append",e)},a.prepend=function(e){x("prepend",e)}};function o(e,t,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function r(e,t,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e,t){return window.getComputedStyle?window.getComputedStyle(t)[e]:t.currentStyle[e]}return n.prototype={constructor:n,fetchMarkup:function(){for(var e=[],t=this.getChildNodes(this.content_elem);t.length;)e.push(t.shift().outerHTML);return e},exploreEnvironment:function(t,n){var o=this.options;o.content_tag=this.content_elem.tagName.toLowerCase(),t.length&&(e&&e<=9&&!o.tag&&(o.tag=t[0].match(/<([^>\s\/]*)/)[1].toLowerCase()),this.content_elem.children.length<=1&&(n.data=this.html(t[0]+t[0]+t[0])),o.tag||(o.tag=this.content_elem.children[0].tagName.toLowerCase()),this.getRowsHeight(t))},getRowsHeight:function(e){var t=this.options,n=t.item_height;if(t.cluster_height=0,e.length){var o=this.content_elem.children;if(o.length){var r=o[Math.floor(o.length/2)];if(t.item_height=r.offsetHeight,"tr"==t.tag&&"collapse"!=a("borderCollapse",this.content_elem)&&(t.item_height+=parseInt(a("borderSpacing",this.content_elem),10)||0),"tr"!=t.tag){var i=parseInt(a("marginTop",r),10)||0,s=parseInt(a("marginBottom",r),10)||0;t.item_height+=Math.max(i,s)}return t.block_height=t.item_height*t.rows_in_block,t.rows_in_cluster=t.blocks_in_cluster*t.rows_in_block,t.cluster_height=t.blocks_in_cluster*t.block_height,n!=t.item_height}}},getClusterNum:function(){return this.options.scroll_top=this.scroll_elem.scrollTop,Math.floor(this.options.scroll_top/(this.options.cluster_height-this.options.block_height))||0},generateEmptyRow:function(){var e=this.options;if(!e.tag||!e.show_no_data_row)return[];var t,n=document.createElement(e.tag),o=document.createTextNode(e.no_data_text);return n.className=e.no_data_class,"tr"==e.tag&&((t=document.createElement("td")).colSpan=100,t.appendChild(o)),n.appendChild(t||o),[n.outerHTML]},generate:function(e,t){var n=this.options,o=e.length;if(o<n.rows_in_block)return{top_offset:0,bottom_offset:0,rows_above:0,rows:o?e:this.generateEmptyRow()};var r=Math.max((n.rows_in_cluster-n.rows_in_block)*t,0),i=r+n.rows_in_cluster,a=Math.max(r*n.item_height,0),s=Math.max((o-i)*n.item_height,0),c=[],l=r;a<1&&l++;for(var u=r;u<i;u++)e[u]&&c.push(e[u]);return{top_offset:a,bottom_offset:s,rows_above:l,rows:c}},renderExtraTag:function(e,t){var n=document.createElement(this.options.tag);return n.className=["clusterize-extra-row","clusterize-"+e].join(" "),t&&(n.style.height=t+"px"),n.outerHTML},insertToDOM:function(e,t){this.options.cluster_height||this.exploreEnvironment(e,t);var n=this.generate(e,this.getClusterNum()),o=n.rows.join(""),r=this.checkChanges("data",o,t),i=this.checkChanges("top",n.top_offset,t),a=this.checkChanges("bottom",n.bottom_offset,t),s=this.options.callbacks,c=[];r||i?(n.top_offset&&(this.options.keep_parity&&c.push(this.renderExtraTag("keep-parity")),c.push(this.renderExtraTag("top-space",n.top_offset))),c.push(o),n.bottom_offset&&c.push(this.renderExtraTag("bottom-space",n.bottom_offset)),s.clusterWillChange&&s.clusterWillChange(),this.html(c.join("")),"ol"==this.options.content_tag&&this.content_elem.setAttribute("start",n.rows_above),this.content_elem.style["counter-increment"]="clusterize-counter "+(n.rows_above-1),s.clusterChanged&&s.clusterChanged()):a&&(this.content_elem.lastChild.style.height=n.bottom_offset+"px")},html:function(t){var n=this.content_elem;if(e&&e<=9&&"tr"==this.options.tag){var o,r=document.createElement("div");for(r.innerHTML="<table><tbody>"+t+"</tbody></table>";o=n.lastChild;)n.removeChild(o);for(var i=this.getChildNodes(r.firstChild.firstChild);i.length;)n.appendChild(i.shift())}else n.innerHTML=t},getChildNodes:function(e){for(var t=e.children,n=[],o=0,r=t.length;o<r;o++)n.push(t[o]);return n},checkChanges:function(e,t,n){var o=t!=n[e];return n[e]=t,o}},n}()},function(e,t){const n=document.getElementById("error-search-results");if(n){const{pathname:e}=window.location,t=e.replace(/\.html$/,"").split(/[\/-]/).join(" ");window.handleSearchResults=((e,t,o)=>{if(0===t.length){const e=document.createTextNode("No results found.");n.appendChild(e)}else t.forEach(t=>{const r=o+t.href+"?q="+e,i=document.createElement("a");i.setAttribute("href",r),i.textContent=t.title,n.appendChild(i)})});const o=()=>{window.postToSearch?window.postToSearch(t,!0):window.setTimeout(o,100)};o()}},function(e,t){const n=window.pluginConfig.statuspage;if(n){const e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.onload=(()=>{new StatusPage.page({page:n.pageId}).summary({success:e=>{if(window.statusPageSummary=e,-1===window.location.pathname.indexOf("/status")){const t=document.createElement("div");t.classList.add("status-widget"),t.classList.add(e.status.indicator);const o=document.createElement("a");o.setAttribute("href","/status"),o.innerHTML=n.title||"Platform Status",t.appendChild(o),document.querySelector("#global-nav").appendChild(t)}}})}),t.src="https://cdn.statuspage.io/se-v2.js",e.parentNode.insertBefore(t,e)}}]); |
{ | ||
"name": "@alchemydocs/template", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Default template for Alchemy", | ||
@@ -5,0 +5,0 @@ "author": "Poq Commerce <dev@poqcommerce.com>", |
@@ -26,2 +26,3 @@ // Work out if we are on the homepage by comparing global metadata `_basePath` to current path. | ||
pageContent.style.maxWidth = 'initial'; | ||
pageContent.style.padding = 0; | ||
const homepage = document.querySelector('.homepage'); | ||
@@ -50,6 +51,2 @@ homepage.style.position = 'static'; | ||
// Remove padding from page-content on mobile | ||
const pageContent = document.querySelector('.page-content'); | ||
pageContent.style.padding = 0; | ||
// Remove border from Navbar Right because it's empty on large screens | ||
@@ -56,0 +53,0 @@ if (window.innerWidth >= 768) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248556
1730