analytics/dist/html-CGDDOCMI.js
2023-07-25 07:58:48 +00:00

53 lines
62 KiB
JavaScript

(()=>{var Hn=Object.create;var tt=Object.defineProperty;var Fn=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var Bn=Object.getPrototypeOf,zn=Object.prototype.hasOwnProperty;var nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vn=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Mn(t))!zn.call(e,r)&&r!==n&&tt(e,r,{get:()=>t[r],enumerable:!(i=Fn(t,r))||i.enumerable});return e};var it=(e,t,n)=>(n=e!=null?Hn(Bn(e)):{},Vn(t||!e||!e.__esModule?tt(n,"default",{value:e,enumerable:!0}):n,e));var yt=nt((Rs,gt)=>{var mt="Expected a function",ht=NaN,Xn="[object Symbol]",Zn=/^\s+|\s+$/g,ei=/^[-+]0x[0-9a-f]+$/i,ti=/^0b[01]+$/i,ni=/^0o[0-7]+$/i,ii=parseInt,ri=typeof global=="object"&&global&&global.Object===Object&&global,si=typeof self=="object"&&self&&self.Object===Object&&self,oi=ri||si||Function("return this")(),ai=Object.prototype,ci=ai.toString,li=Math.max,ui=Math.min,Oe=function(){return oi.Date.now()};function di(e,t,n){var i,r,s,o,a,u,l=0,f=!1,y=!1,g=!0;if(typeof e!="function")throw new TypeError(mt);t=pt(t)||0,me(n)&&(f=!!n.leading,y="maxWait"in n,s=y?li(pt(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g);function L(b){var C=i,D=r;return i=r=void 0,l=b,o=e.apply(D,C),o}function S(b){return l=b,a=setTimeout(p,t),f?L(b):o}function T(b){var C=b-u,D=b-l,V=t-C;return y?ui(V,s-D):V}function m(b){var C=b-u,D=b-l;return u===void 0||C>=t||C<0||y&&D>=s}function p(){var b=Oe();if(m(b))return _(b);a=setTimeout(p,T(b))}function _(b){return a=void 0,g&&i?L(b):(i=r=void 0,o)}function w(){a!==void 0&&clearTimeout(a),l=0,i=u=r=a=void 0}function N(){return a===void 0?o:_(Oe())}function Q(){var b=Oe(),C=m(b);if(i=arguments,r=this,u=b,C){if(a===void 0)return S(u);if(y)return a=setTimeout(p,t),L(u)}return a===void 0&&(a=setTimeout(p,t)),o}return Q.cancel=w,Q.flush=N,Q}function fi(e,t,n){var i=!0,r=!0;if(typeof e!="function")throw new TypeError(mt);return me(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),di(e,t,{leading:i,maxWait:t,trailing:r})}function me(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function hi(e){return!!e&&typeof e=="object"}function pi(e){return typeof e=="symbol"||hi(e)&&ci.call(e)==Xn}function pt(e){if(typeof e=="number")return e;if(pi(e))return ht;if(me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Zn,"");var n=ti.test(e);return n||ni.test(e)?ii(e.slice(2),n?2:8):ei.test(e)?ht:+e}gt.exports=fi});var $t=nt((Vt,jt)=>{(function(){var e=function(t){var n=new e.Builder;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),n.searchPipeline.add(e.stemmer),t.call(n,n),n.build()};e.version="2.3.9";e.utils={},e.utils.warn=function(t){return function(n){t.console&&console.warn&&console.warn(n)}}(this),e.utils.asString=function(t){return t==null?"":t.toString()},e.utils.clone=function(t){if(t==null)return t;for(var n=Object.create(null),i=Object.keys(t),r=0;r<i.length;r++){var s=i[r],o=t[s];if(Array.isArray(o)){n[s]=o.slice();continue}if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){n[s]=o;continue}throw new TypeError("clone is not deep and does not support nested objects")}return n},e.FieldRef=function(t,n,i){this.docRef=t,this.fieldName=n,this._stringValue=i},e.FieldRef.joiner="/",e.FieldRef.fromString=function(t){var n=t.indexOf(e.FieldRef.joiner);if(n===-1)throw"malformed field ref string";var i=t.slice(0,n),r=t.slice(n+1);return new e.FieldRef(r,i,t)},e.FieldRef.prototype.toString=function(){return this._stringValue==null&&(this._stringValue=this.fieldName+e.FieldRef.joiner+this.docRef),this._stringValue};e.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var n=0;n<this.length;n++)this.elements[t[n]]=!0}else this.length=0},e.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},e.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},e.Set.prototype.contains=function(t){return!!this.elements[t]},e.Set.prototype.intersect=function(t){var n,i,r,s=[];if(t===e.Set.complete)return this;if(t===e.Set.empty)return t;this.length<t.length?(n=this,i=t):(n=t,i=this),r=Object.keys(n.elements);for(var o=0;o<r.length;o++){var a=r[o];a in i.elements&&s.push(a)}return new e.Set(s)},e.Set.prototype.union=function(t){return t===e.Set.complete?e.Set.complete:t===e.Set.empty?this:new e.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},e.idf=function(t,n){var i=0;for(var r in t)r!="_index"&&(i+=Object.keys(t[r]).length);var s=(n-i+.5)/(i+.5);return Math.log(1+Math.abs(s))},e.Token=function(t,n){this.str=t||"",this.metadata=n||{}},e.Token.prototype.toString=function(){return this.str},e.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},e.Token.prototype.clone=function(t){return t=t||function(n){return n},new e.Token(t(this.str,this.metadata),this.metadata)};e.tokenizer=function(t,n){if(t==null||t==null)return[];if(Array.isArray(t))return t.map(function(y){return new e.Token(e.utils.asString(y).toLowerCase(),e.utils.clone(n))});for(var i=t.toString().toLowerCase(),r=i.length,s=[],o=0,a=0;o<=r;o++){var u=i.charAt(o),l=o-a;if(u.match(e.tokenizer.separator)||o==r){if(l>0){var f=e.utils.clone(n)||{};f.position=[a,l],f.index=s.length,s.push(new e.Token(i.slice(a,o),f))}a=o+1}}return s},e.tokenizer.separator=/[\s\-]+/;e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions=Object.create(null),e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){var n=t.label&&t.label in this.registeredFunctions;n||e.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.
`,t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(i){var r=e.Pipeline.registeredFunctions[i];if(r)n.add(r);else throw new Error("Cannot load unregistered function: "+i)}),n},e.Pipeline.prototype.add=function(){var t=Array.prototype.slice.call(arguments);t.forEach(function(n){e.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(t);if(i==-1)throw new Error("Cannot find existingFn");i=i+1,this._stack.splice(i,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(t);if(i==-1)throw new Error("Cannot find existingFn");this._stack.splice(i,0,n)},e.Pipeline.prototype.remove=function(t){var n=this._stack.indexOf(t);n!=-1&&this._stack.splice(n,1)},e.Pipeline.prototype.run=function(t){for(var n=this._stack.length,i=0;i<n;i++){for(var r=this._stack[i],s=[],o=0;o<t.length;o++){var a=r(t[o],o,t);if(!(a==null||a===""))if(Array.isArray(a))for(var u=0;u<a.length;u++)s.push(a[u]);else s.push(a)}t=s}return t},e.Pipeline.prototype.runString=function(t,n){var i=new e.Token(t,n);return this.run([i]).map(function(r){return r.toString()})},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})};e.Vector=function(t){this._magnitude=0,this.elements=t||[]},e.Vector.prototype.positionForIndex=function(t){if(this.elements.length==0)return 0;for(var n=0,i=this.elements.length/2,r=i-n,s=Math.floor(r/2),o=this.elements[s*2];r>1&&(o<t&&(n=s),o>t&&(i=s),o!=t);)r=i-n,s=n+Math.floor(r/2),o=this.elements[s*2];if(o==t||o>t)return s*2;if(o<t)return(s+1)*2},e.Vector.prototype.insert=function(t,n){this.upsert(t,n,function(){throw"duplicate index"})},e.Vector.prototype.upsert=function(t,n,i){this._magnitude=0;var r=this.positionForIndex(t);this.elements[r]==t?this.elements[r+1]=i(this.elements[r+1],n):this.elements.splice(r,0,t,n)},e.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,n=this.elements.length,i=1;i<n;i+=2){var r=this.elements[i];t+=r*r}return this._magnitude=Math.sqrt(t)},e.Vector.prototype.dot=function(t){for(var n=0,i=this.elements,r=t.elements,s=i.length,o=r.length,a=0,u=0,l=0,f=0;l<s&&f<o;)a=i[l],u=r[f],a<u?l+=2:a>u?f+=2:a==u&&(n+=i[l+1]*r[f+1],l+=2,f+=2);return n},e.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},e.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),n=1,i=0;n<this.elements.length;n+=2,i++)t[i]=this.elements[n];return t},e.Vector.prototype.toJSON=function(){return this.elements};e.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},i="[^aeiou]",r="[aeiouy]",s=i+"[^aeiouy]*",o=r+"[aeiou]*",a="^("+s+")?"+o+s,u="^("+s+")?"+o+s+"("+o+")?$",l="^("+s+")?"+o+s+o+s,f="^("+s+")?"+r,y=new RegExp(a),g=new RegExp(l),L=new RegExp(u),S=new RegExp(f),T=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,p=/^(.+?)eed$/,_=/^(.+?)(ed|ing)$/,w=/.$/,N=/(at|bl|iz)$/,Q=new RegExp("([^aeiouylsz])\\1$"),b=new RegExp("^"+s+r+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,D=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,V=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,ie=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,le=/^(.+?)(s|t)(ion)$/,j=/^(.+?)e$/,ue=/ll$/,de=new RegExp("^"+s+r+"[^aeiouwxy]$"),re=function(d){var v,$,R,h,x,U,Y;if(d.length<3)return d;if(R=d.substr(0,1),R=="y"&&(d=R.toUpperCase()+d.substr(1)),h=T,x=m,h.test(d)?d=d.replace(h,"$1$2"):x.test(d)&&(d=d.replace(x,"$1$2")),h=p,x=_,h.test(d)){var E=h.exec(d);h=y,h.test(E[1])&&(h=w,d=d.replace(h,""))}else if(x.test(d)){var E=x.exec(d);v=E[1],x=S,x.test(v)&&(d=v,x=N,U=Q,Y=b,x.test(d)?d=d+"e":U.test(d)?(h=w,d=d.replace(h,"")):Y.test(d)&&(d=d+"e"))}if(h=C,h.test(d)){var E=h.exec(d);v=E[1],d=v+"i"}if(h=D,h.test(d)){var E=h.exec(d);v=E[1],$=E[2],h=y,h.test(v)&&(d=v+t[$])}if(h=V,h.test(d)){var E=h.exec(d);v=E[1],$=E[2],h=y,h.test(v)&&(d=v+n[$])}if(h=ie,x=le,h.test(d)){var E=h.exec(d);v=E[1],h=g,h.test(v)&&(d=v)}else if(x.test(d)){var E=x.exec(d);v=E[1]+E[2],x=g,x.test(v)&&(d=v)}if(h=j,h.test(d)){var E=h.exec(d);v=E[1],h=g,x=L,U=de,(h.test(v)||x.test(v)&&!U.test(v))&&(d=v)}return h=ue,x=g,h.test(d)&&x.test(d)&&(h=w,d=d.replace(h,"")),R=="y"&&(d=R.toLowerCase()+d.substr(1)),d};return function(K){return K.update(re)}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer");e.generateStopWordFilter=function(t){var n=t.reduce(function(i,r){return i[r]=r,i},{});return function(i){if(i&&n[i.toString()]!==i.toString())return i}},e.stopWordFilter=e.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter");e.trimmer=function(t){return t.update(function(n){return n.replace(/^\W+/,"").replace(/\W+$/,"")})},e.Pipeline.registerFunction(e.trimmer,"trimmer");e.TokenSet=function(){this.final=!1,this.edges={},this.id=e.TokenSet._nextId,e.TokenSet._nextId+=1},e.TokenSet._nextId=1,e.TokenSet.fromArray=function(t){for(var n=new e.TokenSet.Builder,i=0,r=t.length;i<r;i++)n.insert(t[i]);return n.finish(),n.root},e.TokenSet.fromClause=function(t){return"editDistance"in t?e.TokenSet.fromFuzzyString(t.term,t.editDistance):e.TokenSet.fromString(t.term)},e.TokenSet.fromFuzzyString=function(t,n){for(var i=new e.TokenSet,r=[{node:i,editsRemaining:n,str:t}];r.length;){var s=r.pop();if(s.str.length>0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new e.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),r.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new e.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),r.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&r.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new e.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),r.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var f=s.str.charAt(0),y=s.str.charAt(1),g;y in s.node.edges?g=s.node.edges[y]:(g=new e.TokenSet,s.node.edges[y]=g),s.str.length==1&&(g.final=!0),r.push({node:g,editsRemaining:s.editsRemaining-1,str:f+s.str.slice(2)})}}}return i},e.TokenSet.fromString=function(t){for(var n=new e.TokenSet,i=n,r=0,s=t.length;r<s;r++){var o=t[r],a=r==s-1;if(o=="*")n.edges[o]=n,n.final=a;else{var u=new e.TokenSet;u.final=a,n.edges[o]=u,n=u}}return i},e.TokenSet.prototype.toArray=function(){for(var t=[],n=[{prefix:"",node:this}];n.length;){var i=n.pop(),r=Object.keys(i.node.edges),s=r.length;i.node.final&&(i.prefix.charAt(0),t.push(i.prefix));for(var o=0;o<s;o++){var a=r[o];n.push({prefix:i.prefix.concat(a),node:i.node.edges[a]})}}return t},e.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",n=Object.keys(this.edges).sort(),i=n.length,r=0;r<i;r++){var s=n[r],o=this.edges[s];t=t+s+o.id}return t},e.TokenSet.prototype.intersect=function(t){for(var n=new e.TokenSet,i=void 0,r=[{qNode:t,output:n,node:this}];r.length;){i=r.pop();for(var s=Object.keys(i.qNode.edges),o=s.length,a=Object.keys(i.node.edges),u=a.length,l=0;l<o;l++)for(var f=s[l],y=0;y<u;y++){var g=a[y];if(g==f||f=="*"){var L=i.node.edges[g],S=i.qNode.edges[f],T=L.final&&S.final,m=void 0;g in i.output.edges?(m=i.output.edges[g],m.final=m.final||T):(m=new e.TokenSet,m.final=T,i.output.edges[g]=m),r.push({qNode:S,output:m,node:L})}}}return n},e.TokenSet.Builder=function(){this.previousWord="",this.root=new e.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},e.TokenSet.Builder.prototype.insert=function(t){var n,i=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<t.length&&r<this.previousWord.length&&t[r]==this.previousWord[r];r++)i++;this.minimize(i),this.uncheckedNodes.length==0?n=this.root:n=this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var r=i;r<t.length;r++){var s=new e.TokenSet,o=t[r];n.edges[o]=s,this.uncheckedNodes.push({parent:n,char:o,child:s}),n=s}n.final=!0,this.previousWord=t},e.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},e.TokenSet.Builder.prototype.minimize=function(t){for(var n=this.uncheckedNodes.length-1;n>=t;n--){var i=this.uncheckedNodes[n],r=i.child.toString();r in this.minimizedNodes?i.parent.edges[i.char]=this.minimizedNodes[r]:(i.child._str=r,this.minimizedNodes[r]=i.child),this.uncheckedNodes.pop()}};e.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},e.Index.prototype.search=function(t){return this.query(function(n){var i=new e.QueryParser(t,n);i.parse()})},e.Index.prototype.query=function(t){for(var n=new e.Query(this.fields),i=Object.create(null),r=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u<this.fields.length;u++)r[this.fields[u]]=new e.Vector;t.call(n,n);for(var u=0;u<n.clauses.length;u++){var l=n.clauses[u],f=null,y=e.Set.empty;l.usePipeline?f=this.pipeline.runString(l.term,{fields:l.fields}):f=[l.term];for(var g=0;g<f.length;g++){var L=f[g];l.term=L;var S=e.TokenSet.fromClause(l),T=this.tokenSet.intersect(S).toArray();if(T.length===0&&l.presence===e.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){var p=l.fields[m];o[p]=e.Set.empty}break}for(var _=0;_<T.length;_++)for(var w=T[_],N=this.invertedIndex[w],Q=N._index,m=0;m<l.fields.length;m++){var p=l.fields[m],b=N[p],C=Object.keys(b),D=w+"/"+p,V=new e.Set(C);if(l.presence==e.Query.presence.REQUIRED&&(y=y.union(V),o[p]===void 0&&(o[p]=e.Set.complete)),l.presence==e.Query.presence.PROHIBITED){a[p]===void 0&&(a[p]=e.Set.empty),a[p]=a[p].union(V);continue}if(r[p].upsert(Q,l.boost,function(Qn,Dn){return Qn+Dn}),!s[D]){for(var ie=0;ie<C.length;ie++){var le=C[ie],j=new e.FieldRef(le,p),ue=b[le],de;(de=i[j])===void 0?i[j]=new e.MatchData(w,p,ue):de.add(w,p,ue)}s[D]=!0}}}if(l.presence===e.Query.presence.REQUIRED)for(var m=0;m<l.fields.length;m++){var p=l.fields[m];o[p]=o[p].intersect(y)}}for(var re=e.Set.complete,K=e.Set.empty,u=0;u<this.fields.length;u++){var p=this.fields[u];o[p]&&(re=re.intersect(o[p])),a[p]&&(K=K.union(a[p]))}var d=Object.keys(i),v=[],$=Object.create(null);if(n.isNegated()){d=Object.keys(this.fieldVectors);for(var u=0;u<d.length;u++){var j=d[u],R=e.FieldRef.fromString(j);i[j]=new e.MatchData}}for(var u=0;u<d.length;u++){var R=e.FieldRef.fromString(d[u]),h=R.docRef;if(!!re.contains(h)&&!K.contains(h)){var x=this.fieldVectors[R],U=r[R.fieldName].similarity(x),Y;if((Y=$[h])!==void 0)Y.score+=U,Y.matchData.combine(i[R]);else{var E={ref:h,score:U,matchData:i[R]};$[h]=E,v.push(E)}}}return v.sort(function(Rn,Nn){return Nn.score-Rn.score})},e.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map(function(i){return[i,this.invertedIndex[i]]},this),n=Object.keys(this.fieldVectors).map(function(i){return[i,this.fieldVectors[i].toJSON()]},this);return{version:e.version,fields:this.fields,fieldVectors:n,invertedIndex:t,pipeline:this.pipeline.toJSON()}},e.Index.load=function(t){var n={},i={},r=t.fieldVectors,s=Object.create(null),o=t.invertedIndex,a=new e.TokenSet.Builder,u=e.Pipeline.load(t.pipeline);t.version!=e.version&&e.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+e.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<r.length;l++){var f=r[l],y=f[0],g=f[1];i[y]=new e.Vector(g)}for(var l=0;l<o.length;l++){var f=o[l],L=f[0],S=f[1];a.insert(L),s[L]=S}return a.finish(),n.fields=t.fields,n.fieldVectors=i,n.invertedIndex=s,n.tokenSet=a.root,n.pipeline=u,new e.Index(n)};e.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=e.tokenizer,this.pipeline=new e.Pipeline,this.searchPipeline=new e.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},e.Builder.prototype.ref=function(t){this._ref=t},e.Builder.prototype.field=function(t,n){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=n||{}},e.Builder.prototype.b=function(t){t<0?this._b=0:t>1?this._b=1:this._b=t},e.Builder.prototype.k1=function(t){this._k1=t},e.Builder.prototype.add=function(t,n){var i=t[this._ref],r=Object.keys(this._fields);this._documents[i]=n||{},this.documentCount+=1;for(var s=0;s<r.length;s++){var o=r[s],a=this._fields[o].extractor,u=a?a(t):t[o],l=this.tokenizer(u,{fields:[o]}),f=this.pipeline.run(l),y=new e.FieldRef(i,o),g=Object.create(null);this.fieldTermFrequencies[y]=g,this.fieldLengths[y]=0,this.fieldLengths[y]+=f.length;for(var L=0;L<f.length;L++){var S=f[L];if(g[S]==null&&(g[S]=0),g[S]+=1,this.invertedIndex[S]==null){var T=Object.create(null);T._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)T[r[m]]=Object.create(null);this.invertedIndex[S]=T}this.invertedIndex[S][o][i]==null&&(this.invertedIndex[S][o][i]=Object.create(null));for(var p=0;p<this.metadataWhitelist.length;p++){var _=this.metadataWhitelist[p],w=S.metadata[_];this.invertedIndex[S][o][i][_]==null&&(this.invertedIndex[S][o][i][_]=[]),this.invertedIndex[S][o][i][_].push(w)}}}},e.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),n=t.length,i={},r={},s=0;s<n;s++){var o=e.FieldRef.fromString(t[s]),a=o.fieldName;r[a]||(r[a]=0),r[a]+=1,i[a]||(i[a]=0),i[a]+=this.fieldLengths[o]}for(var u=Object.keys(this._fields),s=0;s<u.length;s++){var l=u[s];i[l]=i[l]/r[l]}this.averageFieldLength=i},e.Builder.prototype.createFieldVectors=function(){for(var t={},n=Object.keys(this.fieldTermFrequencies),i=n.length,r=Object.create(null),s=0;s<i;s++){for(var o=e.FieldRef.fromString(n[s]),a=o.fieldName,u=this.fieldLengths[o],l=new e.Vector,f=this.fieldTermFrequencies[o],y=Object.keys(f),g=y.length,L=this._fields[a].boost||1,S=this._documents[o.docRef].boost||1,T=0;T<g;T++){var m=y[T],p=f[m],_=this.invertedIndex[m]._index,w,N,Q;r[m]===void 0?(w=e.idf(this.invertedIndex[m],this.documentCount),r[m]=w):w=r[m],N=w*((this._k1+1)*p)/(this._k1*(1-this._b+this._b*(u/this.averageFieldLength[a]))+p),N*=L,N*=S,Q=Math.round(N*1e3)/1e3,l.insert(_,Q)}t[o]=l}this.fieldVectors=t},e.Builder.prototype.createTokenSet=function(){this.tokenSet=e.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},e.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new e.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},e.Builder.prototype.use=function(t){var n=Array.prototype.slice.call(arguments,1);n.unshift(this),t.apply(this,n)},e.MatchData=function(t,n,i){for(var r=Object.create(null),s=Object.keys(i||{}),o=0;o<s.length;o++){var a=s[o];r[a]=i[a].slice()}this.metadata=Object.create(null),t!==void 0&&(this.metadata[t]=Object.create(null),this.metadata[t][n]=r)},e.MatchData.prototype.combine=function(t){for(var n=Object.keys(t.metadata),i=0;i<n.length;i++){var r=n[i],s=Object.keys(t.metadata[r]);this.metadata[r]==null&&(this.metadata[r]=Object.create(null));for(var o=0;o<s.length;o++){var a=s[o],u=Object.keys(t.metadata[r][a]);this.metadata[r][a]==null&&(this.metadata[r][a]=Object.create(null));for(var l=0;l<u.length;l++){var f=u[l];this.metadata[r][a][f]==null?this.metadata[r][a][f]=t.metadata[r][a][f]:this.metadata[r][a][f]=this.metadata[r][a][f].concat(t.metadata[r][a][f])}}}},e.MatchData.prototype.add=function(t,n,i){if(!(t in this.metadata)){this.metadata[t]=Object.create(null),this.metadata[t][n]=i;return}if(!(n in this.metadata[t])){this.metadata[t][n]=i;return}for(var r=Object.keys(i),s=0;s<r.length;s++){var o=r[s];o in this.metadata[t][n]?this.metadata[t][n][o]=this.metadata[t][n][o].concat(i[o]):this.metadata[t][n][o]=i[o]}},e.Query=function(t){this.clauses=[],this.allFields=t},e.Query.wildcard=new String("*"),e.Query.wildcard.NONE=0,e.Query.wildcard.LEADING=1,e.Query.wildcard.TRAILING=2,e.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},e.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=e.Query.wildcard.NONE),t.wildcard&e.Query.wildcard.LEADING&&t.term.charAt(0)!=e.Query.wildcard&&(t.term="*"+t.term),t.wildcard&e.Query.wildcard.TRAILING&&t.term.slice(-1)!=e.Query.wildcard&&(t.term=""+t.term+"*"),"presence"in t||(t.presence=e.Query.presence.OPTIONAL),this.clauses.push(t),this},e.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=e.Query.presence.PROHIBITED)return!1;return!0},e.Query.prototype.term=function(t,n){if(Array.isArray(t))return t.forEach(function(r){this.term(r,e.utils.clone(n))},this),this;var i=n||{};return i.term=t.toString(),this.clause(i),this},e.QueryParseError=function(t,n,i){this.name="QueryParseError",this.message=t,this.start=n,this.end=i},e.QueryParseError.prototype=new Error,e.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},e.QueryLexer.prototype.run=function(){for(var t=e.QueryLexer.lexText;t;)t=t(this)},e.QueryLexer.prototype.sliceString=function(){for(var t=[],n=this.start,i=this.pos,r=0;r<this.escapeCharPositions.length;r++)i=this.escapeCharPositions[r],t.push(this.str.slice(n,i)),n=i+1;return t.push(this.str.slice(n,this.pos)),this.escapeCharPositions.length=0,t.join("")},e.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},e.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},e.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){var t,n;do t=this.next(),n=t.charCodeAt(0);while(n>47&&n<58);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos<this.length},e.QueryLexer.EOS="EOS",e.QueryLexer.FIELD="FIELD",e.QueryLexer.TERM="TERM",e.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",e.QueryLexer.BOOST="BOOST",e.QueryLexer.PRESENCE="PRESENCE",e.QueryLexer.lexField=function(t){return t.backup(),t.emit(e.QueryLexer.FIELD),t.ignore(),e.QueryLexer.lexText},e.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(e.QueryLexer.TERM)),t.ignore(),t.more())return e.QueryLexer.lexText},e.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.EDIT_DISTANCE),e.QueryLexer.lexText},e.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.BOOST),e.QueryLexer.lexText},e.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(e.QueryLexer.TERM)},e.QueryLexer.termSeparator=e.tokenizer.separator,e.QueryLexer.lexText=function(t){for(;;){var n=t.next();if(n==e.QueryLexer.EOS)return e.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){t.escapeCharacter();continue}if(n==":")return e.QueryLexer.lexField;if(n=="~")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexEditDistance;if(n=="^")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexBoost;if(n=="+"&&t.width()===1||n=="-"&&t.width()===1)return t.emit(e.QueryLexer.PRESENCE),e.QueryLexer.lexText;if(n.match(e.QueryLexer.termSeparator))return e.QueryLexer.lexTerm}},e.QueryParser=function(t,n){this.lexer=new e.QueryLexer(t),this.query=n,this.currentClause={},this.lexemeIdx=0},e.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=e.QueryParser.parseClause;t;)t=t(this);return this.query},e.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},e.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},e.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},e.QueryParser.parseClause=function(t){var n=t.peekLexeme();if(n!=null)switch(n.type){case e.QueryLexer.PRESENCE:return e.QueryParser.parsePresence;case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var i="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(i+=" with value '"+n.str+"'"),new e.QueryParseError(i,n.start,n.end)}},e.QueryParser.parsePresence=function(t){var n=t.consumeLexeme();if(n!=null){switch(n.str){case"-":t.currentClause.presence=e.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=e.Query.presence.REQUIRED;break;default:var i="unrecognised presence operator'"+n.str+"'";throw new e.QueryParseError(i,n.start,n.end)}var r=t.peekLexeme();if(r==null){var i="expecting term or field, found nothing";throw new e.QueryParseError(i,n.start,n.end)}switch(r.type){case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var i="expecting term or field, found '"+r.type+"'";throw new e.QueryParseError(i,r.start,r.end)}}},e.QueryParser.parseField=function(t){var n=t.consumeLexeme();if(n!=null){if(t.query.allFields.indexOf(n.str)==-1){var i=t.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),r="unrecognised field '"+n.str+"', possible fields: "+i;throw new e.QueryParseError(r,n.start,n.end)}t.currentClause.fields=[n.str];var s=t.peekLexeme();if(s==null){var r="expecting term, found nothing";throw new e.QueryParseError(r,n.start,n.end)}switch(s.type){case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var r="expecting term, found '"+s.type+"'";throw new e.QueryParseError(r,s.start,s.end)}}},e.QueryParser.parseTerm=function(t){var n=t.consumeLexeme();if(n!=null){t.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(t.currentClause.usePipeline=!1);var i=t.peekLexeme();if(i==null){t.nextClause();return}switch(i.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+i.type+"'";throw new e.QueryParseError(r,i.start,i.end)}}},e.QueryParser.parseEditDistance=function(t){var n=t.consumeLexeme();if(n!=null){var i=parseInt(n.str,10);if(isNaN(i)){var r="edit distance must be numeric";throw new e.QueryParseError(r,n.start,n.end)}t.currentClause.editDistance=i;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(r,s.start,s.end)}}},e.QueryParser.parseBoost=function(t){var n=t.consumeLexeme();if(n!=null){var i=parseInt(n.str,10);if(isNaN(i)){var r="boost must be numeric";throw new e.QueryParseError(r,n.start,n.end)}t.currentClause.boost=i;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(r,s.start,s.end)}}},function(t,n){typeof define=="function"&&define.amd?define(n):typeof Vt=="object"?jt.exports=n():t.lunr=n()}(this,function(){return e})})()});Handlebars.registerHelper("groupChanged",function(e,t,n){let i=t||"";if(e.group!==i)return delete e.nestedContext,e.group=i,n.fn(this)});Handlebars.registerHelper("nestingChanged",function(e,t,n){if(t.nested_context&&t.nested_context!==e.nestedContext){if(e.nestedContext=t.nested_context,e.lastModuleSeenInGroup!==t.nested_context)return n.fn(this)}else e.lastModuleSeenInGroup=t.title});Handlebars.registerHelper("showSections",function(e,t){if(e.sections.length>0)return t.fn(this)});Handlebars.registerHelper("showSummary",function(e,t){if(e.nodeGroups)return t.fn(this)});Handlebars.registerHelper("isArray",function(e,t){return Array.isArray(e)?t.fn(this):t.inverse(this)});Handlebars.registerHelper("isNonEmptyArray",function(e,t){return Array.isArray(e)&&e.length>0?t.fn(this):t.inverse(this)});Handlebars.registerHelper("isEmptyArray",function(e,t){return Array.isArray(e)&&e.length===0?t.fn(this):t.inverse(this)});Handlebars.registerHelper("isLocal",function(e,t){let n=window.location.pathname.split("/").pop();return e+".html"===n?t.fn(this):t.inverse(this)});var c=document.querySelector.bind(document),k=document.querySelectorAll.bind(document);function rt(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function fe(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function se(){return document.body.dataset.type}function st(e,t){if(!!e){for(let n of e){let i=n.nodeGroups&&n.nodeGroups.find(r=>r.nodes.some(s=>s.anchor===t));if(i)return i.key}return null}}function he(){return window.location.hash.replace(/^#/,"")}function ot(e){return new URLSearchParams(window.location.search).get(e)}function at(e){return fetch(e).then(t=>t.ok).catch(()=>!1)}function ct(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}function J(e){return!e||e.trim()===""}function lt(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=null,e(...r)},t)}}function pe(){return document.head.querySelector("meta[name=project][content]").content}var ut="ex_doc:settings",jn={tooltips:!0,theme:null,livebookUrl:null},Ie=class{constructor(){this._subscribers=[],this._settings=jn,this._loadSettings()}get(){return this._settings}update(t){let n=this._settings;this._settings={...this._settings,...t},this._subscribers.forEach(i=>i(this._settings,n)),this._storeSettings()}getAndSubscribe(t){this._subscribers.push(t),t(this._settings)}_loadSettings(){try{let t=localStorage.getItem(ut);if(t){let n=JSON.parse(t);this._settings={...this._settings,...n}}this._loadSettingsLegacy()}catch(t){console.error(`Failed to load settings: ${t}`)}}_storeSettings(){try{this._storeSettingsLegacy(),localStorage.setItem(ut,JSON.stringify(this._settings))}catch(t){console.error(`Failed to persist settings: ${t}`)}}_loadSettingsLegacy(){localStorage.getItem("tooltipsDisabled")!==null&&(this._settings={...this._settings,tooltips:!1}),localStorage.getItem("night-mode")==="true"&&(this._settings={...this._settings,nightMode:!0}),this._settings.nightMode===!0&&(this._settings={...this._settings,theme:"dark"})}_storeSettingsLegacy(){this._settings.tooltips?localStorage.removeItem("tooltipsDisabled"):localStorage.setItem("tooltipsDisabled","true"),this._settings.nightMode!==null?localStorage.setItem("night-mode",this._settings.nightMode===!0?"true":"false"):localStorage.removeItem("night-mode"),this._settings.theme!==null?(localStorage.setItem("night-mode",this._settings.theme==="dark"?"true":"false"),this._settings.nightMode=this._settings.theme==="dark"):(delete this._settings.nightMode,localStorage.removeItem("night-mode"))}},I=new Ie;var $n=".content",dt=".content-inner",Un=".livebook-badge";function ft(){qn(),Gn(),Kn(),Wn()}function qn(){c($n).querySelectorAll("a").forEach(e=>{e.querySelector("code, img")&&e.classList.add("no-underline")})}function Wn(){["warning","info","error","neutral","tip"].forEach(t=>{k(`blockquote h3.${t}, blockquote h4.${t}`).forEach(n=>{n.closest("blockquote").classList.add(t)})})}function Gn(){c(dt).setAttribute("tabindex",-1),c(dt).focus()}function Kn(){let t=window.location.pathname.replace(/\.html$/,".livemd"),n=new URL(t,window.location.href).toString();I.getAndSubscribe(i=>{let r=i.livebookUrl?Jn(i.livebookUrl,n):Yn(n);for(let s of k(Un))s.href=r})}function Yn(e){return`https://livebook.dev/run?url=${encodeURIComponent(e)}`}function Jn(e,t){return`${e}/import?url=${encodeURIComponent(t)}`}var vt=it(yt());var mi=768,St=300,gi=".sidebar-toggle",yi=".content",H={CLOSED:"closed",OPEN:"open",NO_PREF:"no_pref"},F={opened:"sidebar-opened",opening:"sidebar-opening",closed:"sidebar-closed",closing:"sidebar-closing"},vi=Object.values(F),P={togglingTimeout:null,lastWindowWidth:window.innerWidth,sidebarPreference:H.NO_PREF};function bt(){xt(),Si()}function xt(){if(sessionStorage.getItem("sidebar_state")==="closed")return X(F.closed);X(Et()?F.closed:F.opened)}function Et(){return window.matchMedia(`screen and (max-width: ${mi}px)`).matches}function X(...e){document.body.classList.remove(...vi),document.body.classList.add(...e)}function Si(){c(gi).addEventListener("click",e=>{Ce(),Ei()}),c(yi).addEventListener("click",e=>{xi()}),window.addEventListener("resize",(0,vt.default)(e=>{bi()},100))}function Ce(){return Pe()?Lt():Ae()}function Pe(){return document.body.classList.contains(F.opened)||document.body.classList.contains(F.opening)}function Ae(){return Tt(),X(F.opening),sessionStorage.setItem("sidebar_state","opened"),new Promise((e,t)=>{P.togglingTimeout=setTimeout(()=>{X(F.opened),e()},St)})}function Lt(){return Tt(),X(F.closing),sessionStorage.setItem("sidebar_state","closed"),new Promise((e,t)=>{P.togglingTimeout=setTimeout(()=>{X(F.closed),e()},St)})}function Tt(){P.togglingTimeout&&(clearTimeout(P.togglingTimeout),P.togglingTimeout=null)}function bi(){P.lastWindowWidth!==window.innerWidth&&(P.lastWindowWidth=window.innerWidth,(P.sidebarPreference===H.OPEN||P.sidebarPreference===H.NO_PREF)&&xt())}function xi(){Et()&&Pe()&&Lt()}function Ei(){switch(P.sidebarPreference){case H.OPEN:P.sidebarPreference=H.CLOSED;break;case H.CLOSED:P.sidebarPreference=H.OPEN;break;case H.NO_PREF:Pe()?P.sidebarPreference=H.OPEN:P.sidebarPreference=H.CLOSED}}function Z(){return window.sidebarNodes||{}}function wt(){return window.versionNodes||[]}var Re={search:"search",extras:"extras",modules:"modules",tasks:"tasks"},kt=[Re.extras,Re.modules,Re.tasks],ge="#full-list";function _t(){It(Z(),se()),Ct(),Ot(),Ti()}function It(e,t){let n=e[t]||[],i=c(ge),r=Handlebars.templates["sidebar-items"]({nodes:n,group:""});i.innerHTML=r,Li(t),i.querySelectorAll("ul").forEach(s=>{if(s.innerHTML.trim()===""){let o=s.previousElementSibling;o.classList.contains("expand")&&o.classList.remove("expand"),s.remove()}}),i.querySelectorAll("li a").forEach(s=>{s.addEventListener("click",o=>{let a=o.target,u=a.closest("li"),l=i.querySelector(".current-section");if(a.matches(".icon-expand")){o.preventDefault(),u.classList.toggle("open");return}l&&l.classList.remove("current-section"),s.matches(".expand")&&s.pathname===window.location.pathname&&u.classList.add("open")})})}function Li(e){kt.forEach(t=>{let n=c(`#${t}-list-link`);n&&n.parentElement.classList.toggle("selected",t===e)})}function Ot(){let e=c(ge),t=e.querySelector("li.current-page");t&&(t.scrollIntoView(),e.scrollTop-=40)}function Ct(){let e=he()||"content",n=Z()[se()]||[],i=st(n,e),r=c(ge),s=r.querySelector(`li.current-page a.expand[href$="#${i}"]`);s&&s.closest("li").classList.add("open");let o=r.querySelector(`li.current-page a[href$="#${e}"]`);if(o){let a=o.closest("ul");a.classList.contains("deflist")&&a.closest("li").classList.add("current-section"),o.closest("li").classList.add("current-hash")}}function Ti(){kt.forEach(e=>{let t=c(`#${e}-list-link`);t&&t.addEventListener("click",n=>{n.preventDefault(),It(Z(),e),Ot()})}),window.addEventListener("hashchange",e=>{let n=c(ge).querySelector("li.current-page li.current-hash");n&&n.classList.remove("current-hash"),Ct()})}var M={module:"module",moduleChild:"module-child",mixTask:"mix-task",extra:"extra",section:"section"};function At(e,t=5){if(J(e))return[];let n=Z(),i=[...Ne(n.modules,e,M.module),...wi(n.modules,e,M.moduleChild),...Ne(n.tasks,e,M.mixTask),...Ne(n.extras,e,M.extra),...Qe(n.modules,e,M.section),...Qe(n.tasks,e,M.section),...Qe(n.extras,e,M.section)].filter(r=>r!==null);return Ai(i).slice(0,t)}function Ne(e,t,n){return e.map(i=>_i(i,t,n))}function wi(e,t,n){return e.filter(i=>i.nodeGroups).flatMap(i=>i.nodeGroups.flatMap(({key:r,nodes:s})=>{let o=Pi(r);return s.map(a=>Ii(a,i.id,t,n,o)||Ci(a,i.id,t,n,o))}))}function Qe(e,t,n){return e.flatMap(i=>ki(i).map(r=>Oi(i,r,t,n)))}function ki(e){return(e.sections||[]).concat(e.headers||[])}function _i(e,t,n){return De(e.title,t)?{link:`${e.id}.html`,title:be(e.title,t),label:null,description:null,matchQuality:ve(e.title,t),deprecated:e.deprecated,category:n}:null}function Ii(e,t,n,i,r){return De(e.id,n)?{link:`${t}.html#${e.anchor}`,title:be(e.id,n),label:r,description:t,matchQuality:ve(e.id,n),deprecated:e.deprecated,category:i}:null}function Oi(e,t,n,i){return Rt(t.id,n)?{link:`${e.id}.html#${t.anchor}`,title:be(t.id,n),label:null,description:e.title,matchQuality:ve(t.id,n),category:i}:null}function Ci(e,t,n,i,r){let s=`${t}.${e.id}`;if(!De(s,n))return null;let o=n.replace(/\./g," ");return Rt(e.id,o)?{link:`${t}.html#${e.anchor}`,title:be(e.id,o),label:r,description:t,matchQuality:ve(s,n),deprecated:e.deprecated,category:i}:null}function Pi(e){switch(e){case"callbacks":return"callback";case"types":return"type";default:return null}}function Ai(e){return e.slice().sort((t,n)=>t.matchQuality!==n.matchQuality?n.matchQuality-t.matchQuality:Pt(t.category)-Pt(n.category))}function Pt(e){switch(e){case M.module:return 1;case M.moduleChild:return 2;case M.mixTask:return 3;default:return 4}}function Rt(e,t){return Se(t).some(i=>Nt(e,i))}function De(e,t){return Se(t).every(i=>Nt(e,i))}function Nt(e,t){return e.toLowerCase().includes(t.toLowerCase())}function ve(e,t){let n=Se(t),r=n.map(o=>o.length).reduce((o,a)=>o+a,0)/e.length,s=Ri(e,n[0])?1:0;return r+s}function Ri(e,t){return e.toLowerCase().startsWith(t.toLowerCase())}function Se(e){return e.trim().split(/\s+/)}function be(e,t){let n=Se(t).sort((i,r)=>r.length-i.length);return ye(e,n)}function ye(e,t){if(t.length===0)return e;let[n,...i]=t,r=e.match(new RegExp(`(.*)(${rt(n)})(.*)`,"i"));if(r){let[,s,o,a]=r;return ye(s,t)+"<em>"+fe(o)+"</em>"+ye(a,t)}else return ye(e,i)}var ee=".autocomplete",xe=".autocomplete-suggestion",B={autocompleteSuggestions:[],selectedIdx:-1};function Ni(){c(ee).classList.add("shown")}function He(){c(ee).classList.remove("shown")}function Qt(){return c(ee).classList.contains("shown")}function Fe(e){B.autocompleteSuggestions=At(e),B.selectedIdx=-1,J(e)?He():(Qi({term:e,suggestions:B.autocompleteSuggestions}),Ee(0),Ni())}function Qi({term:e,suggestions:t}){let n=Handlebars.templates["autocomplete-suggestions"]({suggestions:t,term:e}),i=c(ee);i.innerHTML=n}function Dt(){return B.selectedIdx===-1?null:B.autocompleteSuggestions[B.selectedIdx]}function Ee(e){B.selectedIdx=Di(e);let t=c(`${xe}.selected`),n=c(`${xe}[data-index="${B.selectedIdx}"]`);t&&t.classList.remove("selected"),n&&n.classList.add("selected")}function Di(e){let t=B.autocompleteSuggestions.length+1;return(B.selectedIdx+e+1+t)%t-1}var oe="form.sidebar-search input",Hi="form.sidebar-search .search-close-button";function Ht(){Fi()}function Ft(e){let t=c(oe);t.value=e}function Mt(){c(oe).focus()}function Fi(){let e=c(oe);e.addEventListener("keydown",t=>{t.key==="Escape"?(Le(),e.blur()):t.key==="Enter"?Mi(t):t.key==="ArrowUp"?(Ee(-1),t.preventDefault()):t.key==="ArrowDown"&&(Ee(1),t.preventDefault())}),e.addEventListener("input",t=>{Fe(t.target.value)}),e.addEventListener("focus",t=>{document.body.classList.add("search-focused"),Fe(t.target.value)}),e.addEventListener("blur",t=>{let n=t.relatedTarget;if(n){if(n.matches(xe))return setTimeout(()=>{Qt()&&e.focus()},1e3),null;n.matches(Hi)&&Le()}Me()}),c(ee).addEventListener("click",t=>{t.shiftKey||t.ctrlKey?e.focus():(Le(),Me())})}function Mi(e){let t=c(oe),n=e.shiftKey||e.ctrlKey,i=Dt();e.preventDefault();let r=n?"_blank":"_self",s=document.createElement("a");s.setAttribute("target",r),i?s.setAttribute("href",i.link):s.setAttribute("href",`search.html?q=${encodeURIComponent(t.value)}`),s.click(),n||(Le(),Me())}function Le(){let e=c(oe);e.value=""}function Me(){document.body.classList.remove("search-focused"),He()}var Bt=".sidebar-projectVersion",Bi=".sidebar-projectVersionsDropdown";function zt(){let e=wt();if(e.length>0){let n=c(Bt).textContent.trim(),i=Vi(e,n);zi({nodes:i})}}function zi({nodes:e}){let t=c(Bt),n=Handlebars.templates["versions-dropdown"]({nodes:e});t.innerHTML=n,c(Bi).addEventListener("change",$i)}function Vi(e,t){return ji(e,t).map(i=>({...i,isCurrentVersion:i.version===t}))}function ji(e,t){return e.some(i=>i.version===t)?e:[{version:t,url:"#"},...e]}function $i(e){let t=e.target.value,n=window.location.pathname.split("/").pop()+window.location.hash,i=`${t}/${n}`;at(i).then(r=>{r?window.location.href=i:window.location.href=t})}var O=it($t());var Te=80,Ui="#search";function qt(){if(window.location.pathname.endsWith("/search.html")){let e=ot("q");qi(e)}}async function qi(e){if(J(e))Be({value:e});else{Ft(e);let t=await Wi();try{let n=rr(t.search(e));Be({value:e,results:n})}catch(n){Be({value:e,errorMessage:n.message})}}}function Be({value:e,results:t,errorMessage:n}){let i=c(Ui),r=Handlebars.templates["search-results"]({value:e,results:t,errorMessage:n});i.innerHTML=r}async function Wi(){O.default.QueryLexer.termSeparator=/\s+/,O.default.Pipeline.registerFunction(ze,"elixirTokenSplitter"),O.default.Pipeline.registerFunction(Ve,"elixirTrimmer"),O.default.Pipeline.registerFunction(je,"hyphenSearch");let e=await Gi();if(e)return e;let t=er();return Ki(t),t}async function Gi(){try{let e=sessionStorage.getItem(Wt());if(e){let t=await Ji(e);return O.default.Index.load(t)}else return null}catch(e){return console.error("Failed to load index: ",e),null}}async function Ki(e){try{let t=await Yi(e);sessionStorage.setItem(Wt(),t)}catch(t){console.error("Failed to save index: ",t)}}async function Yi(e){let t=new Blob([JSON.stringify(e)],{type:"application/json"}).stream().pipeThrough(new window.CompressionStream("gzip")),i=await(await new Response(t).blob()).arrayBuffer();return Xi(i)}async function Ji(e){let t=new Blob([Zi(e)],{type:"application/json"}).stream().pipeThrough(new window.DecompressionStream("gzip")),n=await new Response(t).text();return JSON.parse(n)}function Xi(e){let t="",n=new Uint8Array(e),i=n.byteLength;for(let r=0;r<i;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)}function Zi(e){let t=window.atob(e),n=t.length,i=new Uint8Array(new ArrayBuffer(n));for(let r=0;r<n;r++)i[r]=t.charCodeAt(r);return i}function Wt(){return`idv2:${pe()}`}function er(){return(0,O.default)(function(){this.tokenizer.separator=/\s+/,this.ref("ref"),this.field("title",{boost:3}),this.field("doc"),this.metadataWhitelist=["position"],this.pipeline.remove(O.default.stopWordFilter),this.use(ir),this.use(tr),this.pipeline.remove(O.default.trimmer),this.use(nr),searchData.items.forEach(e=>{this.add(e)})})}function tr(e){e.pipeline.before(O.default.stemmer,ze),e.searchPipeline.before(O.default.stemmer,ze)}function ze(e){let t=e.toString().split(/\.|\/|_/).map(n=>e.clone().update(()=>n));return t.length>1?[...t,e]:t}function nr(e){e.pipeline.after(O.default.stemmer,Ve),e.searchPipeline.after(O.default.stemmer,Ve)}function Ve(e){return e.update(function(t){return t.replace(/^@?\W+/,"").replace(/\W+$/,"")})}function je(e){if(e.toString().indexOf("-")<0)return e;let n=[];return n.push(e.clone(function(i){return i.replace("-","")})),n.push(e),n}function ir(e){e.pipeline.before(O.default.stemmer,je),e.searchPipeline.before(O.default.stemmer,je)}function rr(e){return e.filter(t=>Ut(t.ref)).map(t=>{let n=Ut(t.ref),i=t.matchData.metadata;return{...n,metadata:i,excerpts:sr(n,i)}})}function Ut(e){return searchData.items.find(t=>t.ref===e)||null}function sr(e,t){let{doc:n}=e,r=Object.keys(t).filter(s=>"doc"in t[s]).map(s=>t[s].doc.position.map(([o,a])=>or(n,o,a))).reduce((s,o)=>s.concat(o),[]);return r.length===0?[n.slice(0,Te*2)+(Te*2<n.length?"...":"")]:r.slice(0,1)}function or(e,t,n){let i=Math.max(t-Te,0),r=Math.min(t+n+Te,e.length);return[i>0?"...":"",e.slice(i,t),"<em>"+fe(e.slice(t,t+n))+"</em>",e.slice(t+n,r),r<e.length?"...":""].join("")}var we=null,q=null;function Gt(){q=document.getElementById("toast"),q.addEventListener("click",e=>{clearTimeout(we),e.target.classList.remove("show")})}function $e(e){q&&(clearTimeout(we),q.innerText=e,q.classList.add("show"),we=setTimeout(()=>{q.classList.remove("show"),we=setTimeout(function(){q.innerText=""},1e3)},5e3))}var Kt="dark",Ue=["system","dark","light"];function Yt(){I.getAndSubscribe(e=>{document.body.classList.toggle(Kt,Xt(e))}),cr()}function Jt(){let t=I.get().theme||"system",n=Ue[Ue.indexOf(t)+1]||Ue[0];I.update({theme:n}),$e(`Set theme to "${n}"`)}function Xt(e){return e.theme==="dark"||ar()&&(e.theme==null||e.theme==="system")}function ar(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function cr(){window.matchMedia("(prefers-color-scheme: dark)").addListener(e=>{let t=I.get(),n=Xt(t);(t.theme==null||t.theme==="system")&&(document.body.classList.toggle(Kt,n),$e(`Browser changed theme to "${n?"dark":"light"}"`))})}var lr="hll";function en(){ur()}function ur(){k("[data-group-id]").forEach(t=>{let n=t.getAttribute("data-group-id");t.addEventListener("mouseenter",i=>{Zt(n,!0)}),t.addEventListener("mouseleave",i=>{Zt(n,!1)})})}function Zt(e,t){k(`[data-group-id="${e}"]`).forEach(i=>{i.classList.toggle(lr,t)})}var te="#modal",dr="#modal .modal-close",fr="#modal .modal-title",hr="#modal .modal-body",tn='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',z={prevFocus:null,lastFocus:null,ignoreFocusChanges:!1};function nn(){pr()}function pr(){let e=Handlebars.templates["modal-layout"]();document.body.insertAdjacentHTML("beforeend",e),c(te).addEventListener("keydown",t=>{t.key==="Escape"&&ae()}),c(dr).addEventListener("click",t=>{ae()})}function rn(e){if(z.ignoreFocusChanges)return;let t=c(te);if(t.contains(e.target))z.lastFocus=e.target;else{z.ignoreFocusChanges=!0;let n=mr(t);z.lastFocus===n?gr(t).focus():n.focus(),z.ignoreFocusChanges=!1,z.lastFocus=document.activeElement}}function mr(e){return e.querySelector(tn)}function gr(e){let t=e.querySelectorAll(tn);return t[t.length-1]}function ke({title:e,body:t}){z.prevFocus=document.activeElement,document.addEventListener("focus",rn,!0),c(fr).innerHTML=e,c(hr).innerHTML=t,c(te).classList.add("shown"),c(te).focus()}function ae(){c(te).classList.remove("shown"),document.addEventListener("focus",rn,!0),z.prevFocus&&z.prevFocus.focus(),z.prevFocus=null}function sn(){return c(te).classList.contains("shown")}var yr="https://hexdocs.pm/%%",vr="https://hex.pm/api/packages?search=name:%%*",Sr=".display-quick-switch",qe="#quick-switch-input",an="#quick-switch-results",br=".quick-switch-result",xr=300,Er=9,Lr=["elixir","eex","ex_unit","hex","iex","logger","mix"].map(e=>({name:e})),cn=2,A={autocompleteResults:[],selectedIdx:null};function ln(){Tr()}function Tr(){k(Sr).forEach(e=>{e.addEventListener("click",t=>{Ge()})})}function wr(e){if(e.key==="Enter"){let t=e.target.value;_r(t),e.preventDefault()}else e.key==="ArrowUp"?(on(-1),e.preventDefault()):e.key==="ArrowDown"&&(on(1),e.preventDefault())}function kr(e){let t=e.target.value;if(t.length<cn){let n=c(an);n.innerHTML=""}else Ir(t)}function Ge(){ke({title:"Search HexDocs package",body:Handlebars.templates["quick-switch-modal-body"]()}),c(qe).focus();let e=c(qe);e.addEventListener("keydown",wr),e.addEventListener("input",kr),A.autocompleteResults=[],A.selectedIdx=null}function _r(e){if(A.selectedIdx===null)We(e);else{let t=A.autocompleteResults[A.selectedIdx];We(t.name)}}function We(e){window.location=yr.replace("%%",e.toLowerCase())}var Ir=lt(Or,xr);function Or(e){let t=vr.replace("%%",e);fetch(t).then(n=>n.json()).then(n=>{Array.isArray(n)&&(A.autocompleteResults=Pr(e,n),A.selectedIdx=null,c(qe).value.length>=cn&&Cr({results:A.autocompleteResults}))})}function Cr({results:e}){let t=c(an),n=Handlebars.templates["quick-switch-results"]({results:e});t.innerHTML=n,k(br).forEach(i=>{i.addEventListener("click",r=>{let s=i.getAttribute("data-index"),o=A.autocompleteResults[s];We(o.name)})})}function Pr(e,t){return Lr.concat(t).filter(n=>n.name.toLowerCase().includes(e.toLowerCase())).filter(n=>n.releases===void 0||n.releases[0].has_docs===!0).slice(0,Er)}function on(e){A.selectedIdx=Ar(e);let t=c(".quick-switch-result.selected"),n=c(`.quick-switch-result[data-index="${A.selectedIdx}"]`);t&&t.classList.remove("selected"),n&&n.classList.add("selected")}function Ar(e){let t=A.autocompleteResults.length;if(A.selectedIdx===null){if(e>=0)return 0;if(e<0)return t-1}return(A.selectedIdx+e+t)%t}var Rr=".display-settings",Nr="#settings-modal-content",Ke="#modal-settings-tab",Ye="#modal-keyboard-shortcuts-tab",dn="#settings-content",fn="#keyboard-shortcuts-content",Qr=[{title:"Settings",id:"modal-settings-tab"},{title:"Keyboard shortcuts",id:"modal-keyboard-shortcuts-tab"}];function hn(){Dr()}function Dr(){k(Rr).forEach(e=>{e.addEventListener("click",t=>{Je()})})}function un(){c(Ye).classList.remove("active"),c(Ke).classList.add("active"),c(dn).classList.remove("hidden"),c(fn).classList.add("hidden")}function Hr(){c(Ye).classList.add("active"),c(Ke).classList.remove("active"),c(fn).classList.remove("hidden"),c(dn).classList.add("hidden")}function Je(){ke({title:Qr.map(({id:s,title:o})=>`<button id="${s}">${o}</button>`).join(""),body:Handlebars.templates["settings-modal-body"]({shortcuts:Xe})});let e=c(Nr),t=e.querySelector('[name="theme"]'),n=e.querySelector('[name="tooltips"]'),i=e.querySelector('[name="direct_livebook_url"]'),r=e.querySelector('[name="livebook_url"]');I.getAndSubscribe(s=>{t.value=s.theme||"system",n.checked=s.tooltips,s.livebookUrl===null?(i.checked=!1,r.classList.add("hidden"),r.tabIndex=-1):(i.checked=!0,r.classList.remove("hidden"),r.tabIndex=0,r.value=s.livebookUrl)}),t.addEventListener("change",s=>{I.update({theme:s.target.value})}),n.addEventListener("change",s=>{I.update({tooltips:s.target.checked})}),i.addEventListener("change",s=>{let o=s.target.checked?r.value:null;I.update({livebookUrl:o})}),r.addEventListener("input",s=>{I.update({livebookUrl:s.target.value})}),c(Ke).addEventListener("click",s=>{un()}),c(Ye).addEventListener("click",s=>{Hr()}),un()}var Fr="#settings-modal-content",Xe=[{key:"c",description:"Toggle sidebar",action:Ce},{key:"n",description:"Cycle themes",action:Jt},{key:"s",description:"Focus search bar",displayAs:"<kbd><kbd>/</kbd></kbd> or <kbd><kbd>s</kdb></kdb>",action:pn},{key:"/",action:pn},{key:"g",description:"Search HexDocs package",displayAs:"<kbd><kbd>g</kdb></kdb>",action:Ge},{key:"?",displayAs:"<kbd><kbd>?</kbd></kbd>",description:"Bring up this modal",action:Vr}],Ze={shortcutBeingPressed:null};function mn(){Mr()}function Mr(){document.addEventListener("keydown",Br),document.addEventListener("keyup",zr)}function Br(e){if(Ze.shortcutBeingPressed||e.target.matches("input, textarea")||e.ctrlKey||e.metaKey||e.altKey)return;let t=Xe.find(n=>n.key===e.key);!t||(Ze.shortcutBeingPressed=t,e.preventDefault(),t.action(e))}function zr(e){Ze.shortcutBeingPressed=null}function pn(e){ae(),Ae(),Mt()}function Vr(){jr()?ae():Je()}function jr(){return sn()&&c(Fr)}var W={plain:"plain",function:"function",module:"module"},$r=[{href:"typespecs.html#basic-types",hint:{kind:W.plain,description:"Basic type"}},{href:"typespecs.html#literals",hint:{kind:W.plain,description:"Literal"}},{href:"typespecs.html#built-in-types",hint:{kind:W.plain,description:"Built-in type"}}],_e={cancelHintFetching:null};function gn(e){if(vn(e))return!0;let t=/#.*\//;return e.includes("#")&&!t.test(e)?!1:e.includes(".html")}function yn(e){let t=vn(e);return t?Promise.resolve(t):Ur(e)}function vn(e){let t=$r.find(n=>e.includes(n.href));return t?t.hint:null}function Ur(e){let t=e.replace(".html",".html?hint=true");return new Promise((n,i)=>{let r=document.createElement("iframe");r.setAttribute("sandbox","allow-scripts allow-same-origin"),r.setAttribute("src",t),r.style.display="none";function s(a){let{href:u,hint:l}=a.data;t===u&&(o(),n(l))}_e.cancelHintFetching=()=>{o(),i(new Error("cancelled"))};function o(){r.remove(),window.removeEventListener("message",s),_e.cancelHintFetching=null}window.addEventListener("message",s),document.body.appendChild(r)})}function Sn(){_e.cancelHintFetching&&_e.cancelHintFetching()}function bn(e){let n=e.querySelector("h1").textContent,i=e.querySelector(".docstring > p"),r=i?i.innerHTML:"";return{kind:W.function,title:n.trim(),description:r.trim()}}function xn(e){let n=e.querySelector("h1 > span").textContent,i=e.querySelector("#moduledoc p"),r=i?i.innerHTML:"";return{kind:W.module,title:n.trim(),description:r.trim()}}var qr=".content a",et="#tooltip",Wr="#tooltip .tooltip-body",Ln="body .content-inner",Gr="#content",Tn="tooltip-shown",ce=10,Kr=ce*4,En={height:450,width:768},Yr=100,ne={currentLinkElement:null,hoverDelayTimeout:null};function wn(){Jr(),Xr()}function Jr(){let e=Handlebars.templates["tooltip-layout"]();c(Ln).insertAdjacentHTML("beforeend",e)}function Xr(){k(qr).forEach(e=>{!Zr(e)||(e.addEventListener("mouseenter",t=>{ts(e)}),e.addEventListener("mouseleave",t=>{ss(e)}))})}function Zr(e){return!(e.classList.contains("detail-link")||es(e.href)||!gn(e.href))}function es(e){let t=e.replace(Gr,"");return window.location.href.split("#")[0]===t}function ts(e){!ns()||(ne.currentLinkElement=e,ne.hoverDelayTimeout=setTimeout(()=>{yn(e.href).then(t=>{is(t),rs()}).catch(()=>{})},Yr))}function ns(){let e=window.innerWidth<En.width||window.innerHeight<En.height;return kn()&&!e}function is(e){let t=Handlebars.templates["tooltip-body"]({isPlain:e.kind===W.plain,hint:e});c(Wr).innerHTML=t,as()}function rs(){c(et).classList.add(Tn)}function ss(e){!kn()||(clearTimeout(ne.hoverDelayTimeout),Sn(),ne.currentLinkElement=null,os())}function os(){c(et).classList.remove(Tn)}function as(){if(!ne.currentLinkElement)return;let e=c(et),t=ne.currentLinkElement.getBoundingClientRect(),n=c(Ln).getBoundingClientRect(),i=e.getBoundingClientRect(),r=cs(t,n);if(t.left+i.width+ce<window.innerWidth)e.style.left=`${r.left}px`,e.style.right="auto";else{let s=Math.max(r.right-i.width,ce);e.style.left=`${s}px`,e.style.right="auto"}t.bottom+i.height+Kr<window.innerHeight?e.style.top=`${r.bottom+ce}px`:e.style.top=`${r.top-i.height-ce}px`}function cs(e,t){return{top:e.top-t.top,bottom:e.bottom-t.top,left:e.left-t.left,right:e.right-t.left,x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function kn(){return I.get().tooltips}var ls=".content-inner";function In(){if(us()){let e=fs();e&&ds(e)}}function us(){return new URLSearchParams(window.location.search).has("hint")&&window.self!==window.parent}function ds(e){let t=window.location.href,n={hint:e,href:t};window.parent.postMessage(n,"*")}function fs(){let e=ps(he()),t=c(ls);if(e){let n=bn(e);return _n(n)}else if(hs()){let n=xn(t);return _n(n)}return null}function _n(e){let t=pe();return{...e,version:t}}function hs(){return["modules","tasks"].includes(se())}function ps(e){if(!e)return null;let t=document.getElementById(e);return t?t.matches(".detail")?t:t.matches("span")?t.parentElement:null:null}var ms='<button class="copy-button" aria-label="copy"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg></button>';function On(){"clipboard"in navigator&&gs()}function gs(){Array.from(k("pre")).filter(e=>e.firstElementChild&&e.firstElementChild.tagName==="CODE").forEach(e=>e.insertAdjacentHTML("beforeend",ms)),Array.from(k(".copy-button")).forEach(e=>{let t;e.addEventListener("click",()=>{t&&clearTimeout(t);let n=Array.from(e.parentElement.querySelector("code").childNodes).filter(i=>!(i.tagName==="SPAN"&&i.classList.contains("unselectable"))).map(i=>i.textContent).join("");navigator.clipboard.writeText(n),e.classList.add("clicked"),t=setTimeout(()=>e.classList.remove("clicked"),3e3)})})}function Cn(){let t=/(Macintosh|iPhone|iPad|iPod)/.test(window.navigator.userAgent)?"apple-os":"non-apple-os";document.documentElement.classList.add(t)}var ys="content",vs="tabs-open",Ss="tabs-close",bs="H3",xs="tabset";function An(){Es().map(Ls).forEach(n=>ks(n))}function Es(){let e=document.createNodeIterator(document.getElementById(ys),NodeFilter.SHOW_COMMENT,{acceptNode(i){return i.nodeValue.trim()===vs?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),t=[],n;for(;n=e.nextNode();)t.push(n);return t}function Ls(e,t,n){let i=[],r=[],s={label:"",content:[]};for(;e=e.nextSibling;){if(Ts(e)){Pn(s,r,t);break}i.push(e),e.nodeName===bs?(Pn(s,r,t),s.label=e.innerText,s.content=[]):s.content.push(e.outerHTML)}let o=document.createElement("div");return o.className=xs,ws(i,o),o.innerHTML=Handlebars.templates.tabset({tabs:r}),o}function Ts(e){return e.nodeName==="#comment"&&e.nodeValue.trim()===Ss}function Pn(e,t,n){if(e.label===""&&!e.content.length)return!1;let i=e.label,r=e.content;t.push({label:i,content:r,setIndex:n})}function ws(e,t){if(!e||!e.length)return!1;e[0].parentNode.insertBefore(t,e[0]),e.forEach(n=>t.appendChild(n))}function ks(e){let t={tabs:e.querySelectorAll(':scope [role="tab"]'),panels:e.querySelectorAll(':scope [role="tabpanel"]'),activeIndex:0};t.tabs.forEach((n,i)=>{n.addEventListener("click",r=>{G(i,t)}),n.addEventListener("keydown",r=>{let s=t.tabs.length-1;r.code==="ArrowLeft"?(r.preventDefault(),t.activeIndex===0?G(s,t):G(t.activeIndex-1,t)):r.code==="ArrowRight"?(r.preventDefault(),t.activeIndex===s?G(0,t):G(t.activeIndex+1,t)):r.code==="Home"?(r.preventDefault(),G(0,t)):r.code==="End"&&(r.preventDefault(),G(s,t))})})}function G(e,t){t.tabs[t.activeIndex].setAttribute("aria-selected","false"),t.tabs[t.activeIndex].tabIndex=-1,t.tabs[e].setAttribute("aria-selected","true"),t.tabs[e].tabIndex=0,t.tabs[e].focus(),t.panels[t.activeIndex].setAttribute("hidden",""),t.panels[t.activeIndex].tabIndex=-1,t.panels[e].removeAttribute("hidden"),t.panels[e].tabIndex=0,t.activeIndex=e}ct(()=>{Yt(),bt(),_t(),Ht(),zt(),ft(),en(),nn(),mn(),ln(),Gt(),wn(),In(),qt(),On(),hn(),Cn(),An()});})();
/*!
* lunr.Builder
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Index
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Pipeline
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Set
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.TokenSet
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Vector
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.stemmer
* Copyright (C) 2020 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/
/*!
* lunr.stopWordFilter
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.tokenizer
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.trimmer
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.utils
* Copyright (C) 2020 Oliver Nightingale
*/
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
* Copyright (C) 2020 Oliver Nightingale
* @license MIT
*/