invidious.io/public/js/main.min.js

1 line
38 KiB
JavaScript

(()=>{var b=Object.create,a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,e=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,g=b=>a(b,"__esModule",{value:!0}),h=(b,a)=>function(){return a||(0,b[Object.keys(b)[0]])((a={exports:{}}).exports,a),a.exports},i=(e,b,g)=>{if(b&&typeof b=="object"||typeof b=="function")for(let h of d(b))!f.call(e,h)&&h!=="default"&&a(e,h,{get:()=>b[h],enumerable:!(g=c(b,h))||g.enumerable});return e},j=c=>i(g(a(c!=null?b(e(c)):{},"default",c&&c.__esModule&&"default"in c?{get:()=>c.default,enumerable:!0}:{value:c,enumerable:!0})),c),k=h({"node_modules/lazysizes/lazysizes.js"(b,a){(function(b,d){var c=d(b,b.document,Date);b.lazySizes=c,typeof a=="object"&&a.exports&&(a.exports=c)})(typeof window!="undefined"?window:{},function(d,b,j){"use strict";var f,a,h,E,i,c,g,e,A,s,x,F,q,C,k,l,u,v,o,w,n,z,m,p,D,y,B,t,r;return function(){var c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125},b;a=d.lazySizesConfig||d.lazysizesConfig||{};for(b in c)b in a||(a[b]=c[b])}(),!b||!b.getElementsByClassName?{init:function(){},cfg:a,noSupport:!0}:(h=b.documentElement,E=d.HTMLPictureElement,i="addEventListener",c="getAttribute",g=d[i].bind(d),e=d.setTimeout,A=d.requestAnimationFrame||e,s=d.requestIdleCallback,x=/^picture$/i,F=["load","error","lazyincluded","_lazyloaded"],q={},C=Array.prototype.forEach,k=function(b,a){return q[a]||(q[a]=new RegExp("(\\s|^)"+a+"(\\s|$)")),q[a].test(b[c]("class")||"")&&q[a]},l=function(a,b){k(a,b)||a.setAttribute("class",(a[c]("class")||"").trim()+" "+b)},u=function(a,d){var b;(b=k(a,d))&&a.setAttribute("class",(a[c]("class")||"").replace(b," "))},v=function(a,b,c){var d=c?i:"removeEventListener";c&&v(a,b),F.forEach(function(c){a[d](c,b)})},o=function(d,e,a,g,h){var c=b.createEvent("Event");return a||(a={}),a.instance=f,c.initEvent(e,!g,!h),c.detail=a,d.dispatchEvent(c),c},w=function(e,b){var f;!E&&(f=d.picturefill||a.pf)?(b&&b.src&&!e[c]("srcset")&&e.setAttribute("srcset",b.src),f({reevaluate:!0,elements:[e]})):b&&b.src&&(e.src=b.src)},n=function(a,b){return(getComputedStyle(a,null)||{})[b]},z=function(d,c,b){for(b=b||d.offsetWidth;b<a.minSize&&c&&!d._lazysizesWidth;)b=c.offsetWidth,c=c.parentNode;return b},m=function(){var d=[],i=[],f=d,g=function(){var b=f;for(f=d.length?i:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,h){a&&!h?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?e:A)(g)))},c,a;return h._lsFlush=g,h}(),p=function(a,b){return b?function(){m(a)}:function(){var b=this,c=arguments;m(function(){a.apply(b,c)})}},D=function(i){var f=0,h=a.throttleDelay,b=a.ricTimeout,g=function(){c=!1,f=j.now(),i()},d=s&&b>49?function(){s(g,{timeout:b}),b!==a.ricTimeout&&(b=a.ricTimeout)}:p(function(){e(g)},!0),c;return function(g){var a;if((g=g===!0)&&(b=33),c)return;c=!0,a=h-(j.now()-f),a<0&&(a=0),g||a<9?d():e(d,a)}},y=function(g){var b=99,d=function(){a=null,g()},f=function(){var a=j.now()-c;a<b?e(f,b-a):(s||d)(d)},c,a;return function(){c=j.now(),a||(a=e(f,b))}},B=function(){var Z=/^img$/i,ae=/^iframe$/i,ad="onscroll"in d&&!/(gle|ing)bot/.test(navigator.userAgent),ab=0,F=0,r=0,s=-1,S=function(a){r--,(!a||r<0||!a.target)&&(r=0)},T=function(a){return K==null&&(K=n(b.body,"visibility")=="hidden"),K||!(n(a.parentNode,"visibility")=="hidden"&&n(a,"visibility")=="hidden")},X=function(f,e){var a=f,d=T(f),c;for(G-=e,J+=e,H-=e,I+=e;d&&(a=a.offsetParent)&&a!=b.body&&a!=h;)d=(n(a,"opacity")||1)>0,d&&n(a,"overflow")!="visible"&&(c=a.getBoundingClientRect(),d=I>c.left&&H<c.right&&J>c.top-1&&G<c.bottom+1);return d},V=function(){var e=f.elements,d,i,k,o,g,m,l,q,j,p,n,t;if((E=a.loadMode)&&r<8&&(t=e.length)){for(d=0,s++;d<t;d++){if(!e[d]||e[d]._lazyRace)continue;if(!ad||f.prematureUnveil&&f.prematureUnveil(e[d])){B(e[d]);continue}if((!(l=e[d][c]("data-expand"))||!(g=l*1))&&(g=F),j||(j=!a.expand||a.expand<1?h.clientHeight>500&&h.clientWidth>500?500:370:a.expand,f._defEx=j,p=j*a.expFactor,n=a.hFac,K=null,F<p&&r<1&&s>2&&E>2&&!b.hidden?(F=p,s=0):E>1&&s>1&&r<6?F=j:F=ab),q!==g&&(R=innerWidth+g*n,Q=innerHeight+g,m=g*-1,q=g),i=e[d].getBoundingClientRect(),(J=i.bottom)>=m&&(G=i.top)<=Q&&(I=i.right)>=m*n&&(H=i.left)<=R&&(J||I||H||G)&&(a.loadHidden||T(e[d]))&&(z&&r<3&&!l&&(E<3||s<4)||X(e[d],g))){if(B(e[d]),o=!0,r>9)break}else!o&&z&&!k&&r<4&&s<4&&E>2&&(L[0]||a.preloadAfterLoad)&&(L[0]||!l&&(J||I||H||G||e[d][c](a.sizesAttr)!="auto"))&&(k=L[0]||e[d])}k&&!o&&B(k)}},q=D(V),U=function(c){var b=c.target;if(b._lazyCache){delete b._lazyCache;return}S(c),l(b,a.loadedClass),u(b,a.loadingClass),v(b,P),o(b,"lazyloaded")},Y=p(U),P=function(a){Y({target:a.target})},_=function(b,c){var d=b.getAttribute("data-load-mode")||a.iframeLoadMode;d==0?b.contentWindow.location.replace(c):d==1&&(b.src=c)},$=function(b){var e=b[c](a.srcsetAttr),d;(d=a.customMedia[b[c]("data-media")||b[c]("media")])&&b.setAttribute("media",d),e&&b.setAttribute("srcset",e)},aa=p(function(b,k,q,n,p){var d,g,h,f,i,j;(i=o(b,"lazybeforeunveil",k)).defaultPrevented||(n&&(q?l(b,a.autosizesClass):b.setAttribute("sizes",n)),g=b[c](a.srcsetAttr),d=b[c](a.srcAttr),p&&(h=b.parentNode,f=h&&x.test(h.nodeName||"")),j=k.firesLoad||"src"in b&&(g||d||f),i={target:b},l(b,a.loadingClass),j&&(clearTimeout(O),O=e(S,2500),v(b,P,!0)),f&&C.call(h.getElementsByTagName("source"),$),g?b.setAttribute("srcset",g):d&&!f&&(ae.test(b.nodeName)?_(b,d):b.src=d),p&&(g||f)&&w(b,{src:d})),b._lazyRace&&delete b._lazyRace,u(b,a.lazyClass),m(function(){var c=b.complete&&b.naturalWidth>1;(!j||c)&&(c&&l(b,a.fastLoadedClass),U(i),b._lazyCache=!0,e(function(){"_lazyCache"in b&&delete b._lazyCache},9)),b.loading=="lazy"&&r--},!0)}),B=function(b){var f,d,g,e;if(b._lazyRace)return;if(d=Z.test(b.nodeName),g=d&&(b[c](a.sizesAttr)||b[c]("sizes")),e=g=="auto",(e||!z)&&d&&(b[c]("src")||b.srcset)&&!b.complete&&!k(b,a.errorClass)&&k(b,a.lazyClass))return;f=o(b,"lazyunveilread").detail,e&&t.updateElem(b,!0,b.offsetWidth),b._lazyRace=!0,r++,aa(b,f,e,g,d)},ac=y(function(){a.loadMode=3,q()}),N=function(){a.loadMode==3&&(a.loadMode=2),ac()},M=function(){if(z)return;if(j.now()-W<999){e(M,999);return}z=!0,a.loadMode=3,q(),g("scroll",N,!0)},J,K,L,z,O,E,W,R,Q,G,H,I;return{_:function(){W=j.now(),f.elements=b.getElementsByClassName(a.lazyClass),L=b.getElementsByClassName(a.lazyClass+" "+a.preloadClass),g("scroll",q,!0),g("resize",q,!0),g("pageshow",function(d){if(d.persisted){var c=b.querySelectorAll("."+a.loadingClass);c.length&&c.forEach&&A(function(){c.forEach(function(a){a.complete&&B(a)})})}}),d.MutationObserver?new MutationObserver(q).observe(h,{childList:!0,subtree:!0,attributes:!0}):(h[i]("DOMNodeInserted",q,!0),h[i]("DOMAttrModified",q,!0),setInterval(q,999)),g("hashchange",q,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b[i](a,q,!0)}),/d$|^c/.test(b.readyState)?M():(g("load",M),b[i]("DOMContentLoaded",q),e(M,2e4)),f.elements.length?(V(),m._lsFlush()):q()},checkElems:q,unveil:B,_aLSL:N}}(),t=function(){var f=p(function(c,e,f,a){var d,b,g;if(c._lazysizesWidth=a,a+="px",c.setAttribute("sizes",a),x.test(e.nodeName||"")){d=e.getElementsByTagName("source");for(b=0,g=d.length;b<g;b++)d[b].setAttribute("sizes",a)}f.detail.dataAttr||w(c,f.detail)}),d=function(b,e,a){var d=b.parentNode,c;d&&(a=z(b,d,a),c=o(b,"lazybeforesizes",{width:a,dataAttr:!!e}),c.defaultPrevented||(a=c.detail.width,a&&a!==b._lazysizesWidth&&f(b,d,c,a)))},h=function(){var b=c.length,a;if(b)for(a=0;a<b;a++)d(c[a])},e=y(h),c;return{_:function(){c=b.getElementsByClassName(a.autosizesClass),g("resize",e)},checkElems:e,updateElem:d}}(),r=function(){!r.i&&b.getElementsByClassName&&(r.i=!0,t._(),B._())},e(function(){a.init&&r()}),f={cfg:a,autoSizer:t,loader:B,init:r,uP:w,aC:l,rC:u,hC:k,fire:o,gW:z,rAF:m},f)})}}),l=j(k())})(),(()=>{var q=Object.create,b=Object.defineProperty,p=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,i=a=>b(a,"__esModule",{value:!0}),h=(b,a)=>function(){return a||(0,b[Object.keys(b)[0]])((a={exports:{}}).exports,a),a.exports},g=(c,a,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let e of o(a))!m.call(c,e)&&e!=="default"&&b(c,e,{get:()=>a[e],enumerable:!(d=p(a,e))||d.enumerable});return c},j=a=>g(i(b(a!=null?q(n(a)):{},"default",a&&a.__esModule&&"default"in a?{get:()=>a.default,enumerable:!0}:{value:a,enumerable:!0})),a),k=h({"node_modules/clipboard/dist/clipboard.js"(a,b){(function(d,c){typeof a=="object"&&typeof b=="object"?b.exports=c():typeof define=="function"&&define.amd?define([],c):typeof a=="object"?a.ClipboardJS=c():d.ClipboardJS=c()})(a,function(){return function(){var c={134:function(C,B,a){"use strict";var m,k,j,i,h,e,n,o,p,r;a.d(B,{default:function(){return r}}),m=a(279),k=a.n(m),j=a(370),i=a.n(j),h=a(817),e=a.n(h);function d(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(a){return typeof a}:d=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},d(a)}function A(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function l(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}function z(a,b,c){return b&&l(a.prototype,b),c&&l(a,c),a}n=function(){function a(b){A(this,a),this.resolveOptions(b),this.initSelection()}return z(a,[{key:"resolveOptions",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=a.action,this.container=a.container,this.emitter=a.emitter,this.target=a.target,this.text=a.text,this.trigger=a.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var a=document.documentElement.getAttribute("dir")==="rtl",b;return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[a?"right":"left"]="-9999px",b=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(b,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var b=this,a=this.createFakeElement();this.fakeHandlerCallback=function(){return b.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(a),this.selectedText=e()(a),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=e()(this.target),this.copyText()}},{key:"copyText",value:function(){var a;try{a=document.execCommand(this.action)}catch(b){a=!1}this.handleResult(a)}},{key:"handleResult",value:function(a){this.emitter.emit(a?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=a,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(a){if(a!==void 0)if(a&&d(a)==="object"&&a.nodeType===1){if(this.action==="copy"&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=a}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),a}(),o=n;function b(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(a){return typeof a}:b=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function u(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function q(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}function s(a,b,c){return b&&q(a.prototype,b),c&&q(a,c),a}function t(b,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),a&&g(b,a)}function g(a,b){return g=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},g(a,b)}function v(a){var b=y();return function(){var e=c(a),d,f;return b?(f=c(this).constructor,d=Reflect.construct(e,arguments,f)):d=e.apply(this,arguments),w(this,d)}}function w(c,a){return a&&(b(a)==="object"||typeof a=="function")?a:x(c)}function x(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function y(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function c(a){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},c(a)}function f(c,a){var b="data-clipboard-".concat(c);if(!a.hasAttribute(b))return;return a.getAttribute(b)}p=function(c){t(a,c);var d=v(a);function a(c,e){var b;return u(this,a),b=d.call(this),b.resolveOptions(e),b.listenClick(c),b}return s(a,[{key:"resolveOptions",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof a.action=="function"?a.action:this.defaultAction,this.target=typeof a.target=="function"?a.target:this.defaultTarget,this.text=typeof a.text=="function"?a.text:this.defaultText,this.container=b(a.container)==="object"?a.container:document.body}},{key:"listenClick",value:function(a){var b=this;this.listener=i()(a,"click",function(a){return b.onClick(a)})}},{key:"onClick",value:function(b){var a=b.delegateTarget||b.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o({action:this.action(a),target:this.target(a),text:this.text(a),container:this.container,trigger:a,emitter:this})}},{key:"defaultAction",value:function(a){return f("action",a)}},{key:"defaultTarget",value:function(b){var a=f("target",b);if(a)return document.querySelector(a)}},{key:"defaultText",value:function(a){return f("text",a)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],c=typeof a=="string"?[a]:a,b=!!document.queryCommandSupported;return c.forEach(function(a){b=b&&!!document.queryCommandSupported(a)}),b}}]),a}(k()),r=p},828:function(b){var c=9,a;typeof Element!="undefined"&&!Element.prototype.matches&&(a=Element.prototype,a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector);function d(a,b){while(a&&a.nodeType!==c){if(typeof a.matches=="function"&&a.matches(b))return a;a=a.parentNode}}b.exports=d},438:function(b,g,c){var d=c(828);function a(a,e,b,g,c){var d=f.apply(this,arguments);return a.addEventListener(b,d,c),{destroy:function(){a.removeEventListener(b,d,c)}}}function e(b,d,c,e,f){return typeof b.addEventListener=="function"?a.apply(null,arguments):typeof c=="function"?a.bind(null,document).apply(null,arguments):(typeof b=="string"&&(b=document.querySelectorAll(b)),Array.prototype.map.call(b,function(b){return a(b,d,c,e,f)}))}function f(a,b,e,c){return function(e){e.delegateTarget=d(e.target,b),e.delegateTarget&&c.call(a,e)}}b.exports=e},879:function(b,a){a.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},a.nodeList=function(b){var c=Object.prototype.toString.call(b);return b!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in b&&(b.length===0||a.node(b[0]))},a.string=function(a){return typeof a=="string"||a instanceof String},a.fn=function(a){var b=Object.prototype.toString.call(a);return b==="[object Function]"}},370:function(c,i,b){var a=b(879),e=b(438);function f(b,c,e){if(!b&&!c&&!e)throw new Error("Missing required arguments");if(!a.string(c))throw new TypeError("Second argument must be a String");if(!a.fn(e))throw new TypeError("Third argument must be a Function");if(a.node(b))return g(b,c,e);if(a.nodeList(b))return d(b,c,e);if(a.string(b))return h(b,c,e);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function g(a,b,c){return a.addEventListener(b,c),{destroy:function(){a.removeEventListener(b,c)}}}function d(a,b,c){return Array.prototype.forEach.call(a,function(a){a.addEventListener(b,c)}),{destroy:function(){Array.prototype.forEach.call(a,function(a){a.removeEventListener(b,c)})}}}function h(a,b,c){return e(document.body,a,b,c)}c.exports=f},817:function(a){function b(a){var b,d,c,e;return a.nodeName==="SELECT"?(a.focus(),b=a.value):a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"?(d=a.hasAttribute("readonly"),d||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),d||a.removeAttribute("readonly"),b=a.value):(a.hasAttribute("contenteditable")&&a.focus(),c=window.getSelection(),e=document.createRange(),e.selectNodeContents(a),c.removeAllRanges(),c.addRange(e),b=c.toString()),b}a.exports=b},279:function(b){function a(){}a.prototype={on:function(a,c,d){var b=this.e||(this.e={});return(b[a]||(b[a]=[])).push({fn:c,ctx:d}),this},once:function(b,c,d){var e=this;function a(){e.off(b,a),c.apply(d,arguments)}return a._=c,this.on(b,a,d)},emit:function(c){var d=[].slice.call(arguments,1),b=((this.e||(this.e={}))[c]||[]).slice(),a=0,e=b.length;for(a;a<e;a++)b[a].fn.apply(b[a].ctx,d);return this},off:function(c,d){var e=this.e||(this.e={}),a=e[c],f=[],b,g;if(a&&d)for(b=0,g=a.length;b<g;b++)a[b].fn!==d&&a[b].fn._!==d&&f.push(a[b]);return f.length?e[c]=f:delete e[c],this}},b.exports=a,b.exports.TinyEmitter=a}},b={};function a(d){if(b[d])return b[d].exports;var e=b[d]={exports:{}};return c[d](e,e.exports,a),e.exports}return!function(){a.n=function(b){var c=b&&b.__esModule?function(){return b.default}:function(){return b};return a.d(c,{a:c}),c}}(),!function(){a.d=function(d,c){for(var b in c)a.o(c,b)&&!a.o(d,b)&&Object.defineProperty(d,b,{enumerable:!0,get:c[b]})}}(),!function(){a.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}}(),a(134)}().default})}}),l=j(k()),f=document.getElementsByTagName("pre"),c,e,a,d;for(a=0;a<f.length;++a)c=f[a],e=c.getElementsByClassName("language-mermaid")[0],e==null&&c.insertAdjacentHTML("afterbegin",'<button class="btn btn-copy"></button>');d=new l.default(".btn-copy",{target:function(a){return a.nextElementSibling}}),d.on("success",function(a){a.clearSelection()}),d.on("error",function(a){console.error("Action:",a.action),console.error("Trigger:",a.trigger)})})(),(()=>{var g=new Set,f=document.createElement("link"),t=f.relList&&f.relList.supports&&f.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,o="instantAllowQueryString"in document.body.dataset,n="instantAllowExternalLinks"in document.body.dataset,m="instantWhitelist"in document.body.dataset,i="instantMousedownShortcut"in document.body.dataset,j=1111,l=65,h=!1,k=!1,e=!1,a,d;if("instantIntensity"in document.body.dataset){const a=document.body.dataset.instantIntensity;if(a.substr(0,"mousedown".length)=="mousedown")h=!0,a=="mousedown-only"&&(k=!0);else if(a.substr(0,"viewport".length)=="viewport")navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||(a=="viewport"?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(e=!0):a=="viewport-all"&&(e=!0));else{const b=parseInt(a);isNaN(b)||(l=b)}}if(t){const a={capture:!0,passive:!0};if(k||document.addEventListener("touchstart",u,a),h?i||document.addEventListener("mousedown",q,a):document.addEventListener("mouseover",p,a),i&&document.addEventListener("mousedown",s,a),e){let a;window.requestIdleCallback?a=a=>{requestIdleCallback(a,{timeout:1500})}:a=a=>{a()},a(()=>{const a=new IntersectionObserver(b=>{b.forEach(b=>{if(b.isIntersecting){const d=b.target;a.unobserve(d),c(d.href)}})});document.querySelectorAll("a").forEach(c=>{b(c)&&a.observe(c)})})}}function u(e){d=performance.now();const a=e.target.closest("a");if(!b(a))return;c(a.href)}function p(f){if(performance.now()-d<j)return;const e=f.target.closest("a");if(!b(e))return;e.addEventListener("mouseout",r,{passive:!0}),a=setTimeout(()=>{c(e.href),a=void 0},l)}function q(d){const a=d.target.closest("a");if(!b(a))return;c(a.href)}function r(b){if(b.relatedTarget&&b.target.closest("a")==b.relatedTarget.closest("a"))return;a&&(clearTimeout(a),a=void 0)}function s(a){if(performance.now()-d<j)return;const b=a.target.closest("a");if(a.which>1||a.metaKey||a.ctrlKey)return;if(!b)return;b.addEventListener("click",function(a){if(a.detail==1337)return;a.preventDefault()},{capture:!0,passive:!1,once:!0});const c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});b.dispatchEvent(c)}function b(a){if(!a||!a.href)return;if(m&&!("instant"in a.dataset))return;if(!n&&a.origin!=location.origin&&!("instant"in a.dataset))return;if(!["http:","https:"].includes(a.protocol))return;if(a.protocol=="http:"&&location.protocol=="https:")return;if(!o&&a.search&&!("instant"in a.dataset))return;if(a.hash&&a.pathname+a.search==location.pathname+location.search)return;if("noInstant"in a.dataset)return;return!0}function c(a){if(g.has(a))return;const b=document.createElement("link");b.rel="prefetch",b.href=a,document.head.appendChild(b),g.add(a)}})(),function ad(e){'use strict';var b,N,G,U,A,R;try{module&&(e=module)}catch(a){}e._factory=ad;function r(a){return"undefined"==typeof a||a}function T(b){const c=Array(b);for(let d=0;d<b;d++)c[d]=a();return c}function a(){return Object.create(null)}function ai(a,b){return b.length-a.length}function d(a){return"string"==typeof a}function f(a){return"object"==typeof a}function w(a){return"function"==typeof a}function S(a,c){var b=ah;if(a&&(c&&(a=o(a,c)),this.H&&(a=o(a,this.H)),this.J&&1<a.length&&(a=o(a,this.J)),b||""===b)){if(a=a.split(b),this.filter){c=this.filter,b=a.length;const d=[];for(let e=0,g=0;e<b;e++){const f=a[e];f&&!c[f]&&(d[g++]=f)}a=d}return a}return a}const ah=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ae=/[\u0300-\u036f]/g;function Q(g,e){const f=Object.keys(g),h=f.length,a=[];let b="",d=0;for(let j=0,i,k;j<h;j++)i=f[j],(k=g[i])?(a[d++]=c(e?"(?!\\b)"+i+"(\\b|_)":i),a[d++]=k):b+=(b?"|":"")+i;return b&&(a[d++]=c(e?"(?!\\b)("+b+")(\\b|_)":"("+b+")"),a[d]=""),a}function o(a,b){for(let c=0,d=b.length;c<d&&(a=a.replace(b[c],b[c+1]),a);c+=2);return a}function c(a){return new RegExp(a,"g")}function W(a){let b="",c="";for(let d=0,f=a.length,e;d<f;d++)(e=a[d])!==c&&(b+=c=e);return b}N={encode:M,F:!1,G:""};function M(a){return S.call(this,(""+a).toLowerCase(),!1)}const J={},g={};function F(a){m(a,"add"),m(a,"append"),m(a,"search"),m(a,"update"),m(a,"remove")}function m(b,a){b[a+"Async"]=function(){const d=this,b=arguments;var c=b[b.length-1];let e;return w(c)&&(e=c,delete b[b.length-1]),c=new Promise(function(c){setTimeout(function(){d.async=!0;const e=d[a].apply(d,b);d.async=!1,c(e)})}),e?(c.then(e),this):c}}function E(i,j,e,b){const h=i.length;let d=[],c,g,f=0;b&&(b=[]);for(let k=h-1;0<=k;k--){const m=i[k],o=m.length,l=a();let n=!c;for(let a=0;a<o;a++){const i=m[a],p=i.length;if(p)for(let o=0,m,a;o<p;o++)if(a=i[o],c){{if(c[a]){if(!k)if(e)e--;else if(d[f++]=a,f===j)return d;(k||b)&&(l[a]=1),n=!0}if(b&&(g[a]=(m=g[a])?++m:m=1,m<h)){const c=b[m-2]||(b[m-2]=[]);c[c.length]=a}}}else l[a]=1}if(b)c||(g=l);else if(!n)return[];c=l}if(b)for(let a=b.length-1,g,h;0<=a;a--){g=b[a],h=g.length;for(let b=0,a;b<h;b++)if(a=g[b],!c[a]){if(e)e--;else if(d[f++]=a,f===j)return d;c[a]=1}}return d}function aj(c,d){const e=a(),f=a(),b=[];for(let a=0;a<c.length;a++)e[c[a]]=1;for(let a=0,c;a<d.length;a++){c=d[a];for(let d=0,a;d<c.length;d++)a=c[d],e[a]&&!f[a]&&(f[a]=1,b[b.length]=a)}return b}function t(b){this.l=!0!==b&&b,this.cache=a(),this.h=[]}function B(a,c,d){f(a)&&(a=a.query);let b=this.cache.get(a);return b||(b=this.search(a,c,d),this.cache.set(a,b)),b}t.prototype.set=function(b,c){if(!this.cache[b]){var a=this.h.length;a===this.l?delete this.cache[this.h[a-1]]:a++;for(--a;0<a;a--)this.h[a]=this.h[a-1];this.h[0]=b}this.cache[b]=c},t.prototype.get=function(a){const b=this.cache[a];if(this.l&&b&&(a=this.h.indexOf(a))){const b=this.h[a-1];this.h[a-1]=this.h[a],this.h[a]=b}return b};const ab={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function C(b,a,c,d,e,f){setTimeout(function(){const g=b(c,JSON.stringify(f));g&&g.then?g.then(function(){a.export(b,a,c,d,e+1)}):a.export(b,a,c,d,e+1)})}function h(b,f){var c,e;if(!(this instanceof h))return new h(b);b?(d(b)?b=ab[b]:(c=b.preset)&&(b=Object.assign({},c[c],b)),c=b.charset,e=b.lang,d(c)&&(-1===c.indexOf(":")&&(c+=":default"),c=g[c]),d(e)&&(e=J[e])):b={};let i,j,k=b.context||{};if(this.encode=b.encode||c&&c.encode||M,this.register=f||a(),this.D=i=b.resolution||9,this.G=f=c&&c.G||b.tokenize||"strict",this.depth="strict"===f&&k.depth,this.l=r(k.bidirectional),this.s=j=r(b.optimize),this.m=r(b.fastupdate),this.B=b.minlength||1,this.C=b.boost,this.map=j?T(i):a(),this.A=i=k.resolution||1,this.h=j?T(i):a(),this.F=c&&c.F||b.rtl,this.H=(f=b.matcher||e&&e.H)&&Q(f,!1),this.J=(f=b.stemmer||e&&e.J)&&Q(f,!0),c=f=b.filter||e&&e.filter){c=f,e=a();for(let a=0,b=c.length;a<b;a++)e[c[a]]=1;c=e}this.filter=c,this.cache=(f=b.cache)&&new t(f)}b=h.prototype,b.append=function(a,b){return this.add(a,b,!0)},b.add=function(g,i,j,f){var d,c,e,b,h;if(i&&(g||0===g)){if(!f&&!j&&this.register[g])return this.update(g,i);if(i=this.encode(i),f=i.length){const o=a(),k=a(),n=this.depth,m=this.D;for(let r=0;r<f;r++){let p=i[this.F?f-1-r:r];if(d=p.length,p&&d>=this.B&&(n||!k[p]))switch(c=q(m,f,r),e="",this.G){case"full":if(3<d){for(c=0;c<d;c++)for(b=d;b>c;b--)b-c>=this.B&&(h=q(m,f,r,d,c),e=p.substring(c,b),l(this,k,e,h,g,j));break}case"reverse":if(2<d){for(b=d-1;0<b;b--)e=p[b]+e,e.length>=this.B&&l(this,k,e,q(m,f,r,d,b),g,j);e=""}case"forward":if(1<d){for(b=0;b<d;b++)e+=p[b],e.length>=this.B&&l(this,k,e,c,g,j);break}default:if(this.C&&(c=Math.min(c/this.C(i,p,r)|0,m-1)),l(this,k,p,c,g,j),n&&1<f&&r<f-1)for(d=a(),e=this.A,c=p,b=Math.min(n+1,f-r),d[c]=1,h=1;h<b;h++)if((p=i[this.F?f-1-r-h:r+h])&&p.length>=this.B&&!d[p]){d[p]=1;const a=this.l&&p>c;l(this,o,a?c:p,q(e+(f/2>e?0:1),f,r,b-1,h-1),g,j,a?p:c)}}}this.m||(this.register[g]=1)}}return this};function q(a,c,b,d,e){return b&&1<a?c+(d||0)<=a?b+(e||0):(a-1)/(c+(d||0))*(b+(e||0))+1|0:0}function l(c,f,d,h,g,i,e){let b=e?c.h:c.map;(!f[d]||e&&!f[d][e])&&(c.s&&(b=b[h]),e?(f=f[d]||(f[d]=a()),f[e]=1,b=b[e]||(b[e]=a())):f[d]=1,b=b[d]||(b[d]=[]),c.s||(b=b[h]||(b[h]=[])),i&&-1!==b.indexOf(g)||(b[b.length]=g,c.m&&(c=c.register[g]||(c.register[g]=[]),c[c.length]=b)))}b.search=function(c,e,b){var i,j;b||(!e&&f(c)?(b=c,c=b.query):f(e)&&(b=e));let g=[],d,h,k=0;if(b&&(e=b.limit,k=b.offset||0,i=b.context,h=b.suggest),c&&(c=this.encode(c),d=c.length,1<d)){b=a(),j=[];for(let e=0,f=0,a;e<d;e++)if((a=c[e])&&a.length>=this.B&&!b[a])if(this.s||h||this.map[a])j[f++]=a,b[a]=1;else return g;c=j,d=c.length}if(!d)return g;e||(e=100),i=this.depth&&1<d&&!1!==i,b=0;let l;i?(l=c[0],b=1):1<d&&c.sort(ai);for(let a,f;b<d;b++){if(f=c[b],i?(a=D(this,g,h,e,k,2===d,f,l),h&&!1===a&&g.length||(l=f)):a=D(this,g,h,e,k,1===d,f),a)return a;if(h&&b===d-1){if(j=g.length,!j){if(i){i=0,b=-1;continue}return g}if(1===j)return H(g[0],e,k)}}return E(g,e,k,h)};function D(a,h,j,i,c,f,g,d){let e=[],b=d?a.h:a.map;if(a.s||(b=I(b,g,d,a.l)),b){let j=0;const k=Math.min(b.length,d?a.A:a.D);for(let l=0,n=0,h,m;l<k;l++)if(h=b[l])if(a.s&&(h=I(h,g,d,a.l)),c&&h&&f&&(m=h.length,m<=c?(c-=m,h=null):(h=h.slice(c),c=0)),h&&(e[j++]=h,f&&(n+=h.length,n>=i)))break;if(j){if(f)return H(e,i,0);h[h.length]=e;return}}return!j&&e}function H(a,c,b){return a=1===a.length?a[0]:[].concat.apply([],a),b||a.length>c?a.slice(b,b+c):a}function I(a,b,c,d){return c?(d=d&&b>c,a=(a=a[d?b:c])&&a[d?c:b]):a=a[b],a}b.contain=function(a){return!!this.register[a]},b.update=function(a,b){return this.remove(a).add(a,b)},b.remove=function(b,a){const c=this.register[b];if(c){if(this.m)for(let a=0,d;a<c.length;a++)d=c[a],d.splice(d.indexOf(b),1);else s(this.map,b,this.D,this.s),this.depth&&s(this.h,b,this.A,this.s);if(a||delete this.register[b],this.cache){a=this.cache;for(let c=0,e,d;c<a.h.length;c++)d=a.h[c],e=a.cache[d],-1!==e.indexOf(b)&&(a.h.splice(c--,1),delete a.cache[d])}}return this};function s(a,b,e,f,d){let c=0;if(a.constructor===Array){if(d)b=a.indexOf(b),-1!==b?1<a.length&&(a.splice(b,1),c++):c++;else{d=Math.min(a.length,e);for(let g=0,h;g<d;g++)(h=a[g])&&(c=s(h,b,e,f,d),f||c||delete a[g])}}else for(let g in a)(c=s(a[g],b,e,f,d))||delete a[g];return c}b.searchCache=B,b.export=function(h,f,e,g,d){let c,b;switch(d||(d=0)){case 0:if(c="reg",this.m){b=a();for(let a in this.register)b[a]=1}else b=this.register;break;case 1:c="cfg",b={doc:0,opt:this.s?1:0};break;case 2:c="map",b=this.map;break;case 3:c="ctx",b=this.h;break;default:return}return C(h,f||this,e?e+"."+c:c,g,d,b),!0},b.import=function(b,a){if(a)switch(d(a)&&(a=JSON.parse(a)),b){case"cfg":this.s=!!a.opt;break;case"reg":this.m=!1,this.register=a;break;case"map":this.map=a;break;case"ctx":this.h=a}},F(h.prototype);function aa(a){var c,b;a=a.data,c=e._index;const d=a.args;switch(b=a.task,b){case"init":b=a.options||{},a=a.factory,c=b.encode,b.cache=!1,c&&0===c.indexOf("function")&&(b.encode=Function("return "+c)()),a?(Function("return "+a)()(e),e._index=new e.FlexSearch.Index(b),delete e.FlexSearch):e._index=new h(b);break;default:a=a.id,c=c[b].apply(c,d),postMessage("search"===b?{id:a,msg:c}:{id:a})}}let L=0;function i(b){if(!(this instanceof i))return new i(b);var c;b?w(c=b.encode)&&(b.encode=c.toString()):b={},(c=(e||window)._factory)&&(c=c.toString());const f=e.exports,d=this;this.o=$(c,f,b.worker),this.h=a(),this.o&&(f?this.o.on("message",function(a){d.h[a.id](a.msg),delete d.h[a.id]}):this.o.onmessage=function(a){a=a.data,d.h[a.id](a.msg),delete d.h[a.id]},this.o.postMessage({task:"init",factory:c,options:b}))}k("add"),k("append"),k("search"),k("update"),k("remove");function k(a){i.prototype[a]=i.prototype[a+"Async"]=function(){const e=this,b=[].slice.call(arguments);var c=b[b.length-1];let d;return w(c)&&(d=c,b.splice(b.length-1,1)),c=new Promise(function(c){setTimeout(function(){e.h[++L]=c,e.o.postMessage({task:a,id:L,args:b})})}),d?(c.then(d),this):c}}function $(c,e,a){let b;try{b=e?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):c?new Worker(URL.createObjectURL(new Blob(["onmessage="+aa.toString()],{type:"text/javascript"}))):new Worker(d(a)?a:"worker/worker.js",{type:"module"})}catch(a){}return b}function j(b){if(!(this instanceof j))return new j(b);var e=b.document||b.doc||b,c;this.K=[],this.h=[],this.A=[],this.register=a(),this.key=(c=e.key||e.id)&&n(c,this.A)||"id",this.m=r(b.fastupdate),this.C=(c=e.store)&&!0!==c&&[],this.store=c&&a(),this.I=(c=e.tag)&&n(c,this.A),this.l=c&&a(),this.cache=(c=b.cache)&&new t(c),b.cache=!1,this.o=b.worker,this.async=!1,c=a();let g=e.index||e.field||e;d(g)&&(g=[g]);for(let j=0,a,e;j<g.length;j++)a=g[j],d(a)||(e=a,a=a.field),e=f(e)?Object.assign({},b,e):b,this.o&&(c[a]=new i(e),c[a].o||(this.o=!1)),this.o||(c[a]=new h(e,this.register)),this.K[j]=n(a,this.A),this.h[j]=a;if(this.C)for(b=e.store,d(b)&&(b=[b]),e=0;e<b.length;e++)this.C[e]=n(b[e],this.A);this.index=c}function n(a,d){const b=a.split(":");let c=0;for(let e=0;e<b.length;e++)a=b[e],0<=a.indexOf("[]")&&(a=a.substring(0,a.length-2))&&(d[c]=!0),a&&(b[c++]=a);return c<b.length&&(b.length=c),1<c?b:b[0]}function u(a,b){if(d(b))a=a[b];else for(let c=0;a&&c<b.length;c++)a=a[b[c]];return a}function v(c,d,e,f,b){if(c=c[b],f===e.length-1)d[b]=c;else if(c)if(c.constructor===Array)for(d=d[b]=Array(c.length),b=0;b<c.length;b++)v(c,d,e,f,b);else d=d[b]||(d[b]=a()),b=e[++f],v(c,d,e,f,b)}function y(a,b,g,d,e,f,c,h){if(a=a[c])if(d===b.length-1){if(a.constructor===Array){if(g[d]){for(b=0;b<a.length;b++)e.add(f,a[b],!0,!0);return}a=a.join(" ")}e.add(f,a,h,!0)}else if(a.constructor===Array)for(c=0;c<a.length;c++)y(a,b,g,d,e,f,c,h);else c=b[++d],y(a,b,g,d,e,f,c,h)}b=j.prototype,b.add=function(b,c,e){if(f(b)&&(c=b,b=u(c,this.key)),c&&(b||0===b)){if(!e&&this.register[b])return this.update(b,c);for(let f=0,a,g;f<this.h.length;f++)g=this.h[f],a=this.K[f],d(a)&&(a=[a]),y(c,a,this.A,0,this.index[g],b,a[0],e);if(this.I){let f=u(c,this.I),g=a();d(f)&&(f=[f]);for(let d=0,a,c;d<f.length;d++)if(a=f[d],!g[a]&&(g[a]=1,c=this.l[a]||(this.l[a]=[]),!e||-1===c.indexOf(b)))if(c[c.length]=b,this.m){const a=this.register[b]||(this.register[b]=[]);a[a.length]=c}}if(this.store&&(!e||!this.store[b])){let e;if(this.C){e=a();for(let b=0,a;b<this.C.length;b++)a=this.C[b],d(a)?e[a]=c[a]:v(c,e,a,0,a[0])}this.store[b]=e||c}}return this},b.append=function(a,b){return this.add(a,b,!0)},b.update=function(a,b){return this.remove(a).add(a,b)},b.remove=function(a){if(f(a)&&(a=u(a,this.key)),this.register[a]){for(var b=0;b<this.h.length&&(this.index[this.h[b]].remove(a,!this.o),!this.m);b++);if(this.I&&!this.m)for(let c in this.l){b=this.l[c];const d=b.indexOf(a);-1!==d&&(1<b.length?b.splice(d,1):delete this.l[c])}this.store&&delete this.store[a],delete this.register[a]}return this},b.search=function(i,c,a,p){a||(!c&&f(i)?(a=i,i=a.query):f(c)&&(a=c,c=0));let g=[],n=[],m,k,e,b,h,o,j=0;if(a)if(a.constructor===Array)e=a,a=null;else{if(e=(m=a.pluck)||a.index||a.field,b=a.tag,k=this.store&&a.enrich,h="and"===a.bool,c=a.limit||100,o=a.offset||0,b&&(d(b)&&(b=[b]),!i)){for(let a=0,d;a<b.length;a++)(d=Z.call(this,b[a],c,o,k))&&(g[g.length]=d,j++);return j?g:[]}d(e)&&(e=[e])}e||(e=this.h),h=h&&(1<e.length||b&&1<b.length);const l=!p&&(this.o||this.async)&&[];for(let m=0,f,k,q;m<e.length;m++){let r;if(k=e[m],d(k)||(r=k,k=k.field),l)l[m]=this.index[k].searchAsync(i,c,r||a);else{if(p?f=p[m]:f=this.index[k].search(i,c,r||a),q=f&&f.length,b&&q){const a=[];let d=0;h&&(a[0]=[f]);for(let e=0,f,c;e<b.length;e++)(f=b[e],q=(c=this.l[f])&&c.length)&&(d++,a[a.length]=h?[c]:c);d&&(f=h?E(a,c||100,o||0):aj(f,a),q=f.length)}if(q)n[j]=k,g[j++]=f;else if(h)return[]}}if(l){const b=this;return new Promise(function(d){Promise.all(l).then(function(e){d(b.search(i,c,a,e))})})}if(!j)return[];if(m&&(!k||!this.store))return g[0];for(let b=0,a;b<n.length;b++){if(a=g[b],a.length&&k&&(a=V.call(this,a)),m)return a;g[b]={field:n[b],result:a}}return g};function Z(d,e,b,f){let a=this.l[d],c=a&&a.length-b;if(c&&0<c)return(c>e||b)&&(a=a.slice(b,b+e)),f&&(a=V.call(this,a)),{tag:d,result:a}}function V(a){const b=Array(a.length);for(let c=0,d;c<a.length;c++)d=a[c],b[c]={id:d,doc:this.store[d]};return b}b.contain=function(a){return!!this.register[a]},b.get=function(a){return this.store[a]},b.set=function(a,b){return this.store[a]=b,this},b.searchCache=B,b.export=function(d,c,e,a,b){if(b||(b=0),a||(a=0),a<this.h.length){const e=this.h[a],f=this.index[e];c=this,setTimeout(function(){f.export(d,c,b?e.replace(":","-"):"",a,b++)||(a++,b=1,c.export(d,c,e,a,b))})}else{let c;switch(b){case 1:e="tag",c=this.l;break;case 2:e="store",c=this.store;break;default:return}C(d,this,e,a,b,c)}},b.import=function(b,a){if(a)switch(d(a)&&(a=JSON.parse(a)),b){case"tag":this.l=a;break;case"reg":this.m=!1,this.register=a;for(let b=0,c;b<this.h.length;b++)c=this.index[this.h[b]],c.register=a,c.m=!1;break;case"store":this.store=a;break;default:b=b.split(".");const c=b[0];b=b[1],c&&b&&this.index[c].import(b,a)}},F(j.prototype),G={encode:X,F:!1,G:""};const Y=[c("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",c("[\u00e8\u00e9\u00ea\u00eb]"),"e",c("[\u00ec\u00ed\u00ee\u00ef]"),"i",c("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",c("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",c("[\u00fd\u0177\u00ff]"),"y",c("\u00f1"),"n",c("[\u00e7c]"),"k",c("\u00df"),"s",c(" & ")," and "];function X(b){var a=b;return a.normalize&&(a=a.normalize("NFD").replace(ae,"")),S.call(this,a.toLowerCase(),!b.normalize&&Y)}U={encode:K,F:!1,G:"strict"};const _=/[^a-z0-9]+/,O={b:"p",v:"f",w:"f",z:"s",x:"s","\u00df":"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function K(a){a=X.call(this,a).join(" ");const b=[];if(a){const c=a.split(_),d=c.length;for(let f=0,e,g=0;f<d;f++)if((a=c[f])&&(!this.filter||!this.filter[a])){e=a[0];let c=O[e]||e,d=c;for(let f=1;f<a.length;f++){e=a[f];const b=O[e]||e;b&&b!==d&&(c+=b,d=b)}b[g++]=c}}return b}A={encode:P,F:!1,G:""};const ac=[c("ae"),"a",c("oe"),"o",c("sh"),"s",c("th"),"t",c("ph"),"f",c("pf"),"f",c("(?![aeo])h(?![aeo])"),"",c("(?!^[aeo])h(?!^[aeo])"),""];function P(a,b){return a&&(a=K.call(this,a).join(" "),2<a.length&&(a=o(a,ac)),b||(1<a.length&&(a=W(a)),a&&(a=a.split(" ")))),a}R={encode:ag,F:!1,G:""};const af=c("(?!\\b)[aeo]");function ag(a){return a&&(a=P.call(this,a,!0),1<a.length&&(a=a.replace(af,"")),1<a.length&&(a=W(a)),a&&(a=a.split(" "))),a}g["latin:default"]=N,g["latin:simple"]=G,g["latin:balance"]=U,g["latin:advanced"]=A,g["latin:extra"]=R;const p=e;let x;const z={Index:h,Document:j,Worker:i,registerCharset:function(a,b){g[a]=b},registerLanguage:function(a,b){J[a]=b}};(x=p.define)&&x.amd?x([],function(){return z}):p.exports?p.exports=z:p.FlexSearch=z}(this),(()=>{document.getElementById("mode").addEventListener("click",()=>{document.body.classList.toggle("dark"),localStorage.setItem("theme",document.body.classList.contains("dark")?"dark":"light")}),localStorage.getItem("theme")==="dark"&&document.body.classList.add("dark")})()