(()=>{var ia=Object.create;var Et=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var sa=Object.getOwnPropertyNames,Ot=Object.getOwnPropertySymbols,ca=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var Br=(e,t,r)=>t in e?Et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))fr.call(t,r)&&Br(e,r,t[r]);if(Ot)for(var r of Ot(t))Kr.call(t,r)&&Br(e,r,t[r]);return e};var la=e=>Et(e,"__esModule",{value:!0});var Tt=(e,t)=>{var r={};for(var n in e)fr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ot)for(var n of Ot(e))t.indexOf(n)<0&&Kr.call(e,n)&&(r[n]=e[n]);return r};var _t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ua=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of sa(t))!fr.call(e,n)&&n!=="default"&&Et(e,n,{get:()=>t[n],enumerable:!(r=aa(t,n))||r.enumerable});return e},Qe=e=>ua(la(Et(e!=null?ia(ca(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Jr=_t((mr,Yr)=>{(function(e,t){typeof mr=="object"&&typeof Yr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(mr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(E){return!!(E&&E!==document&&E.nodeName!=="HTML"&&E.nodeName!=="BODY"&&"classList"in E&&"contains"in E.classList)}function l(E){var Ve=E.type,Le=E.tagName;return!!(Le==="INPUT"&&a[Ve]&&!E.readOnly||Le==="TEXTAREA"&&!E.readOnly||E.isContentEditable)}function c(E){E.classList.contains("focus-visible")||(E.classList.add("focus-visible"),E.setAttribute("data-focus-visible-added",""))}function u(E){!E.hasAttribute("data-focus-visible-added")||(E.classList.remove("focus-visible"),E.removeAttribute("data-focus-visible-added"))}function m(E){E.metaKey||E.altKey||E.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function p(E){n=!1}function b(E){!s(E.target)||(n||l(E.target))&&c(E.target)}function h(E){!s(E.target)||(E.target.classList.contains("focus-visible")||E.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(E.target))}function d(E){document.visibilityState==="hidden"&&(o&&(n=!0),W())}function W(){document.addEventListener("mousemove",F),document.addEventListener("mousedown",F),document.addEventListener("mouseup",F),document.addEventListener("pointermove",F),document.addEventListener("pointerdown",F),document.addEventListener("pointerup",F),document.addEventListener("touchmove",F),document.addEventListener("touchstart",F),document.addEventListener("touchend",F)}function Q(){document.removeEventListener("mousemove",F),document.removeEventListener("mousedown",F),document.removeEventListener("mouseup",F),document.removeEventListener("pointermove",F),document.removeEventListener("pointerdown",F),document.removeEventListener("pointerup",F),document.removeEventListener("touchmove",F),document.removeEventListener("touchstart",F),document.removeEventListener("touchend",F)}function F(E){E.target.nodeName&&E.target.nodeName.toLowerCase()==="html"||(n=!1,Q())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",d,!0),W(),r.addEventListener("focus",b,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var gn=_t((bs,At)=>{/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Gr,Xr,Zr,en,tn,rn,nn,on,an,Mt,dr,sn,cn,ln,Ke,un,pn,fn,mn,dn,hn,bn,vn,Lt;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof At=="object"&&typeof At.exports=="object"?e(r(t,r(At.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};Gr=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Xr=Object.assign||function(n){for(var o,i=1,a=arguments.length;i=0;u--)(c=n[u])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},tn=function(n,o){return function(i,a){o(i,a,n)}},rn=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},nn=function(n,o,i,a){function s(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function u(b){try{p(a.next(b))}catch(h){c(h)}}function m(b){try{p(a.throw(b))}catch(h){c(h)}}function p(b){b.done?l(b.value):s(b.value).then(u,m)}p((a=a.apply(n,o||[])).next())})},on=function(n,o){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(b){return m([p,b])}}function m(p){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(l=p[0]&2?s.return:p[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,p[1])).done)return l;switch(s=0,l&&(p=[p[0]&2,l.value]),p[0]){case 0:case 1:l=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,s=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!l||p[1]>l[0]&&p[1]=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},dr=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),s,l=[],c;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return l},sn=function(){for(var n=[],o=0;o1||u(d,W)})})}function u(d,W){try{m(a[d](W))}catch(Q){h(l[0][3],Q)}}function m(d){d.value instanceof Ke?Promise.resolve(d.value.v).then(p,b):h(l[0][2],d)}function p(d){u("next",d)}function b(d){u("throw",d)}function h(d,W){d(W),l.shift(),l.length&&u(l[0][0],l[0][1])}},pn=function(n){var o,i;return o={},a("next"),a("throw",function(s){throw s}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(s,l){o[s]=n[s]?function(c){return(i=!i)?{value:Ke(n[s](c)),done:s==="return"}:l?l(c):c}:l}},fn=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof Mt=="function"?Mt(n):n[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=n[l]&&function(c){return new Promise(function(u,m){c=n[l](c),s(u,m,c.done,c.value)})}}function s(l,c,u,m){Promise.resolve(m).then(function(p){l({value:p,done:u})},c)}},mn=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var r=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};dn=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&Lt(o,n,i);return r(o,n),o},hn=function(n){return n&&n.__esModule?n:{default:n}},bn=function(n,o){if(!o.has(n))throw new TypeError("attempted to get private field on non-instance");return o.get(n)},vn=function(n,o,i){if(!o.has(n))throw new TypeError("attempted to set private field on non-instance");return o.set(n,i),i},e("__extends",Gr),e("__assign",Xr),e("__rest",Zr),e("__decorate",en),e("__param",tn),e("__metadata",rn),e("__awaiter",nn),e("__generator",on),e("__exportStar",an),e("__createBinding",Lt),e("__values",Mt),e("__read",dr),e("__spread",sn),e("__spreadArrays",cn),e("__spreadArray",ln),e("__await",Ke),e("__asyncGenerator",un),e("__asyncDelegator",pn),e("__asyncValues",fn),e("__makeTemplateObject",mn),e("__importStar",dn),e("__importDefault",hn),e("__classPrivateFieldGet",bn),e("__classPrivateFieldSet",vn)})});var jr=_t((yt,Ir)=>{/*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(t,r){typeof yt=="object"&&typeof Ir=="object"?Ir.exports=r():typeof define=="function"&&define.amd?define([],r):typeof yt=="object"?yt.ClipboardJS=r():t.ClipboardJS=r()})(yt,function(){return function(){var e={134:function(n,o,i){"use strict";i.d(o,{default:function(){return na}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),u=i(817),m=i.n(u);function p(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(v){return typeof v}:p=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},p(_)}function b(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:{};this.action=v.action,this.container=v.container,this.emitter=v.emitter,this.target=v.target,this.text=v.text,this.trigger=v.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var v=document.documentElement.getAttribute("dir")==="rtl";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[v?"right":"left"]="-9999px";var C=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(C,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var v=this,C=this.createFakeElement();this.fakeHandlerCallback=function(){return v.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(C),this.selectedText=m()(C),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=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var v;try{v=document.execCommand(this.action)}catch(C){v=!1}this.handleResult(v)}},{key:"handleResult",value:function(v){this.emitter.emit(v?"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 v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=v,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(v){if(v!==void 0)if(v&&p(v)==="object"&&v.nodeType===1){if(this.action==="copy"&&v.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(v.hasAttribute("readonly")||v.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=v}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),_}(),Q=W;function F(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(v){return typeof v}:F=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},F(_)}function E(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function Ve(_,g){for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof U.action=="function"?U.action:this.defaultAction,this.target=typeof U.target=="function"?U.target:this.defaultTarget,this.text=typeof U.text=="function"?U.text:this.defaultText,this.container=F(U.container)==="object"?U.container:document.body}},{key:"listenClick",value:function(U){var te=this;this.listener=c()(U,"click",function(st){return te.onClick(st)})}},{key:"onClick",value:function(U){var te=U.delegateTarget||U.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new Q({action:this.action(te),target:this.target(te),text:this.text(te),container:this.container,trigger:te,emitter:this})}},{key:"defaultAction",value:function(U){return pr("action",U)}},{key:"defaultTarget",value:function(U){var te=pr("target",U);if(te)return document.querySelector(te)}},{key:"defaultText",value:function(U){return pr("text",U)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],te=typeof U=="string"?[U]:U,st=!!document.queryCommandSupported;return te.forEach(function(oa){st=st&&!!document.queryCommandSupported(oa)}),st}}]),v}(s()),na=ra},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,l){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}n.exports=a},438:function(n,o,i){var a=i(828);function s(u,m,p,b,h){var d=c.apply(this,arguments);return u.addEventListener(p,d,h),{destroy:function(){u.removeEventListener(p,d,h)}}}function l(u,m,p,b,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(d){return s(d,m,p,b,h)}))}function c(u,m,p,b){return function(h){h.delegateTarget=a(h.target,m),h.delegateTarget&&b.call(u,h)}}n.exports=l},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(n,o,i){var a=i(879),s=i(438);function l(p,b,h){if(!p&&!b&&!h)throw new Error("Missing required arguments");if(!a.string(b))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(p))return c(p,b,h);if(a.nodeList(p))return u(p,b,h);if(a.string(p))return m(p,b,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,b,h){return p.addEventListener(b,h),{destroy:function(){p.removeEventListener(b,h)}}}function u(p,b,h){return Array.prototype.forEach.call(p,function(d){d.addEventListener(b,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(d){d.removeEventListener(b,h)})}}}function m(p,b,h){return s(document.body,p,b,h)}n.exports=l},817:function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var l=window.getSelection(),c=document.createRange();c.selectNodeContents(i),l.removeAllRanges(),l.addRange(c),a=l.toString()}return a}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,a,s){var l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var l=this;function c(){l.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),l=0,c=s.length;for(l;l{/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */"use strict";var es=/["'&<>]/;Ei.exports=ts;function ts(e){var t=""+e,r=es.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=n.hasError,i=n.isStopped,a=n.observers;return o||i?hr:(a.push(r),new we(function(){return Ae(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new k;return r.source=this,r},t.create=function(r,n){return new Hn(r,n)},t}(k);var Hn=function(e){X(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:hr},t}(O);var ut={now:function(){return(ut.delegate||Date).now()},delegate:void 0};var pt=function(e){X(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=ut);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,l=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),l=0;l0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=Ge.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);r.actions.length===0&&(Ge.cancelAnimationFrame(n),r._scheduled=void 0)},t}(jt);var In=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0,this._scheduled=void 0;var n=this.actions,o,i=-1;r=r||n.shift();var a=n.length;do if(o=r.execute(r.state,r.delay))break;while(++i=2,!0))}function he(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new O}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var u=null,m=null,p=null,b=0,h=!1,d=!1,W=function(){m==null||m.unsubscribe(),m=null},Q=function(){W(),u=p=null,h=d=!1},F=function(){var E=u;Q(),E==null||E.unsubscribe()};return x(function(E,Ve){b++,!d&&!h&&W();var Le=p=p!=null?p:r();Ve.add(function(){b--,b===0&&!d&&!h&&(m=Ar(F,l))}),Le.subscribe(Ve),u||(u=new lt({next:function(qe){return Le.next(qe)},error:function(qe){d=!0,W(),m=Ar(Q,o,qe),Le.error(qe)},complete:function(){h=!0,W(),m=Ar(Q,a),Le.complete()}}),re(E).subscribe(u))})(c)}}function Ar(e,t){for(var r=[],n=2;ne.next(document)),e}function N(e,t=document){return Array.from(t.querySelectorAll(e))}function ce(e,t=document){let r=pe(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function pe(e,t=document){return t.querySelector(e)||void 0}function Ne(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function Ee(e,t=!0){t?e.focus():e.blur()}function ro(e){return I(S(e,"focus"),S(e,"blur")).pipe(f(({type:t})=>t==="focus"),V(e===Ne()))}function Xt(e){return{x:e.offsetLeft,y:e.offsetTop}}function no(e){return S(window,"resize").pipe(f(()=>Xt(e)),V(Xt(e)))}function oo(e){return{x:e.scrollLeft,y:e.scrollTop}}function Zt(e){return I(S(e,"scroll"),S(window,"resize")).pipe(f(()=>oo(e)),V(oo(e)))}function io(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var ao=new O,Pa=se(()=>H(new ResizeObserver(e=>{for(let t of e)ao.next(t)}))).pipe(M(e=>Y.pipe(V(e)).pipe(j(()=>e.disconnect()))),J(1));function Oe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function $e(e){return Pa.pipe(L(t=>t.observe(e)),M(t=>ao.pipe(T(({target:r})=>r===e),j(()=>t.unobserve(e)),f(()=>Oe(e)))),V(Oe(e)))}function xt(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Wa=new O,Ob=se(()=>H(new IntersectionObserver(e=>{for(let t of e)Wa.next(t)},{threshold:1}))).pipe(M(e=>Y.pipe(V(e)).pipe(j(()=>e.disconnect()))),J(1));function so(e,t=16){return Zt(e).pipe(f(({y:r})=>{let n=Oe(e),o=xt(e);return r>=o.height-n.height-t}),z())}var er={drawer:ce("[data-md-toggle=drawer]"),search:ce("[data-md-toggle=search]")};function co(e){return er[e].checked}function Pe(e,t){er[e].checked!==t&&er[e].click()}function tr(e){let t=er[e];return S(t,"change").pipe(f(()=>t.checked),V(t.checked))}function Va(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function lo(){return S(window,"keydown").pipe(T(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:co("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),T(({mode:e,type:t})=>{if(e==="global"){let r=Ne();if(typeof r!="undefined")return!Va(r,t)}return!0}),he())}function Te(){return new URL(location.href)}function uo(e){location.href=e.href}function po(){return new O}function fo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)fo(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="boolean"?n.setAttribute(o,t[o]):t[o]&&n.setAttribute(o,"");for(let o of r)fo(n,o);return n}function mo(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function rr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function ho(){return location.hash.substring(1)}function bo(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ua(){return S(window,"hashchange").pipe(f(ho),V(ho()),T(e=>e.length>0),J(1))}function vo(){return Ua().pipe(f(e=>pe(`[id="${e}"]`)),T(e=>typeof e!="undefined"))}function nr(e){let t=matchMedia(e);return Jt(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function go(){return I(S(window,"beforeprint").pipe(ee(!0)),S(window,"afterprint").pipe(ee(!1)))}function Fr(e,t){return e.pipe(M(r=>r?t():Y))}function or(e,t={credentials:"same-origin"}){return re(fetch(`${e}`,t)).pipe(T(r=>r.status===200),Ie(()=>de))}function _e(e,t){return or(e,t).pipe(M(r=>r.json()),J(1))}function xo(e,t){let r=new DOMParser;return or(e,t).pipe(M(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),J(1))}function yo(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Rr({x:e,y:t}){window.scrollTo(e||0,t||0)}function So(){return I(S(window,"scroll",{passive:!0}),S(window,"resize",{passive:!0})).pipe(f(yo),V(yo()))}function wo(){return{width:innerWidth,height:innerHeight}}function Eo(){return S(window,"resize",{passive:!0}).pipe(f(wo),V(wo()))}function Oo(){return B([So(),Eo()]).pipe(f(([e,t])=>({offset:e,size:t})),J(1))}function ir(e,{viewport$:t,header$:r}){let n=t.pipe(q("size")),o=B([n,r]).pipe(f(()=>Xt(e)));return B([r,t,o]).pipe(f(([{height:i},{offset:a,size:s},{x:l,y:c}])=>({offset:{x:a.x-l,y:a.y-c+i},size:s})))}function To(e,{tx$:t}){let r=S(e,"message").pipe(f(({data:n})=>n));return t.pipe(gt(()=>r,{leading:!0,trailing:!0}),L(n=>e.postMessage(n)),vt(r),he())}var Da=ce("#__config"),nt=JSON.parse(Da.textContent);nt.base=`${new URL(nt.base,Te())}`;function be(){return nt}function ae(e){return nt.features.includes(e)}function G(e,t){return typeof t!="undefined"?nt.translations[e].replace("#",t.toString()):nt.translations[e]}function Me(e,t=document){return ce(`[data-md-component=${e}]`,t)}function ne(e,t=document){return N(`[data-md-component=${e}]`,t)}var si=Qe(jr());function ar(e,t=0){e.setAttribute("tabindex",t.toString())}function St(e){e.removeAttribute("tabindex")}function _o(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function Mo(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function Lo(e,t){e.setAttribute("data-md-state",t)}function Ao(e){e.removeAttribute("data-md-state")}function Co(e,t){e.classList.toggle("md-nav__link--active",t)}function ko(e){e.classList.remove("md-nav__link--active")}function Ho(e,t){e.firstElementChild.innerHTML=t}function Fo(e,t){e.setAttribute("data-md-state",t)}function Ro(e){e.removeAttribute("data-md-state")}function Io(e,t){e.setAttribute("data-md-state",t)}function jo(e){e.removeAttribute("data-md-state")}function $o(e,t){e.setAttribute("data-md-state",t)}function Po(e){e.removeAttribute("data-md-state")}function Wo(e,t){e.placeholder=t}function Vo(e){e.placeholder=G("search.placeholder")}function Uo(e,t){switch(t){case 0:e.textContent=G("search.result.none");break;case 1:e.textContent=G("search.result.one");break;default:e.textContent=G("search.result.other",rr(t))}}function Do(e){e.textContent=G("search.result.placeholder")}function No(e,t){e.appendChild(t)}function zo(e){e.innerHTML=""}function qo(e,t){e.style.top=`${t}px`}function Qo(e){e.style.top=""}function Ko(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Bo(e){let t=e.firstElementChild;t.style.height=""}function Yo(e,t){e.lastElementChild.appendChild(t)}function Jo(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Go(e,t){e.setAttribute("data-md-state",t)}function $r(e){e.removeAttribute("data-md-state")}function Xo(e,t){e.setAttribute("data-md-state",t)}function Pr(e){e.removeAttribute("data-md-state")}function Zo(e,t){e.style.top=`${t}px`}function ei(e){e.style.top=""}function ti(e){return A("button",{class:"md-clipboard md-icon",title:G("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function ri(e,t){return A("aside",{class:"md-annotation","data-index":e,tabIndex:0},A("div",{class:"md-annotation__inner md-tooltip"},A("div",{class:"md-tooltip__inner md-typeset"},Array.from(t))),A("span",{class:"md-annotation__index"},e))}var ze;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(ze||(ze={}));function Wr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[A("del",null,a)," "]).flat().slice(0,-1),i=new URL(e.location);return ae("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[s])=>`${a} ${s}`.trim(),"")),A("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},A("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&A("div",{class:"md-search-result__icon md-icon"}),A("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&A("p",{class:"md-search-result__teaser"},mo(e.text,320)),n>0&&o.length>0&&A("p",{class:"md-search-result__terms"},G("search.result.term.missing"),": ",o)))}function ni(e){let t=e[0].score,r=[...e],n=r.findIndex(c=>!c.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(c=>c.scoreWr(c,1)),...s.length?[A("details",{class:"md-search-result__more"},A("summary",{tabIndex:-1},s.length>0&&s.length===1?G("search.result.more.one"):G("search.result.more.other",s.length)),s.map(c=>Wr(c,1)))]:[]];return A("li",{class:"md-search-result__item"},l)}function oi(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?rr(r):r)))}function ii(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function Na(e){let t=be(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:r.toString(),class:"md-version__link"},e.title))}function ai(e,t){return A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":G("select.version.title")},t.title),A("ul",{class:"md-version__list"},e.map(Na)))}var za=0;function ci(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return ci(t)}}function qa(e,{viewport$:t,print$:r}){let n=se(()=>{let c=e.closest("[data-tabs]");return c instanceof HTMLElement?I(...N(":scope > input",c).map(u=>S(u,"change"))):Y}),o=t.pipe(q("size"),je(n),f(()=>{let c=Oe(e);return xt(e).width>c.width}),z()),i=Zt(e),a=i.pipe(ht(125),ee(!1));I(a,i.pipe(gt(()=>a),ee(!0))).subscribe(c=>{c?console.log("scrolling..."):(console.log("scrolling done"),e.removeAttribute("data-md-state"))});let l=se(()=>{let c=[],u=e.closest(".highlighttable")||e.closest(".highlight");if(!(u instanceof HTMLElement))return Y;if(u instanceof HTMLElement){let m=ci(u);if(typeof m!="undefined"&&(u.classList.contains("annotate")||ae("content.code.annotate"))){let p=N(":scope > li",m);for(let b of N(".c, .c1, .cm",e)){let h,d=b.firstChild;do if(h=/\((\d+)\)/.exec(d.textContent),h&&h.index){let W=d.splitText(h.index);d=W.splitText(h[0].length);let[,Q=-1]=h,F=p[+Q-1];if(typeof F!="undefined"){let E=ri(+Q,F.childNodes);W.replaceWith(E),c.push(E)}}while(h)}}}for(let m of c){let p=Oe(m);i.pipe(ue(no(m)),f(([b,h])=>{m.style.setProperty("--md-tooltip-x",`${h.x-b.x}px`),m.style.setProperty("--md-tooltip-y",`${h.y-b.y}px`)})).subscribe()}return H(c)});return t.pipe(q("size"),je(n),vt(l),f(c=>{let u=Oe(e),m=xt(e);return $({scroll:m.width>u.width},c.length&&{annotations:c})}),q("scroll"))}function li(e,n){var o=n,{hover$:t}=o,r=Tt(o,["hover$"]);let i=new O;if(i.pipe(ue(t)).subscribe(([{scrollable:a},s])=>{a&&s?ar(e):St(e)}),si.default.isSupported()){let a=e.closest("pre");a.id=`__code_${++za}`,a.insertBefore(ti(a.id),e)}return qa(e,r).pipe(L(a=>i.next(a)),j(()=>i.complete()),f(a=>$({ref:e},a)))}function Qa(e,{target$:t,print$:r}){let n=!1;return I(t.pipe(f(o=>o.closest("details:not([open])")),T(o=>e===o),ee({action:"open",scroll:!0})),r.pipe(T(o=>o||!n),L(()=>n=e.open),f(o=>({action:o?"open":"close"}))))}function ui(e,t){let r=new O;return r.subscribe(({action:n,scroll:o})=>{n==="open"?e.setAttribute("open",""):e.removeAttribute("open"),o&&e.scrollIntoView()}),Qa(e,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>$({ref:e},n)))}var pi=A("table");function fi(e){return e.replaceWith(pi),pi.replaceWith(ii(e)),H({ref:e})}function Ka(e){return I(...N(":scope > input",e).map(t=>S(t,"change").pipe(ee(t.id)))).pipe(f(t=>({active:ce(`label[for=${t}]`)})))}function mi(e){let t=new O;return t.subscribe(({active:r})=>{let n=r.parentElement;(r.offsetLeft+r.offsetWidth>n.scrollLeft+n.offsetWidth||r.offsetLeftt.next(r)),j(()=>t.complete()),f(r=>$({ref:e},r)))}function di(e,{target$:t,viewport$:r,hover$:n,print$:o}){return I(...N("pre > code",e).map(i=>li(i,{viewport$:r,hover$:n,print$:o})),...N("table:not([class])",e).map(i=>fi(i)),...N("details",e).map(i=>ui(i,{target$:t,print$:o})),...N("[data-tabs]",e).map(i=>mi(i)))}function Ba(e,{alert$:t}){return t.pipe(M(r=>I(H(!0),H(!1).pipe(Ce(2e3))).pipe(f(n=>({message:r,open:n})))))}function hi(e,t){let r=new O;return r.pipe(K(Z)).subscribe(({message:n,open:o})=>{Ho(e,n),o?Fo(e,"open"):Ro(e)}),Ba(e,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>$({ref:e},n)))}function Ya({viewport$:e}){if(!ae("header.autohide"))return H(!1);let t=e.pipe(f(({offset:{y:o}})=>o),Se(2,1),f(([o,i])=>[oMath.abs(i-o.y)>100),f(([,[o]])=>o),z()),n=tr("search");return B([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),z(),M(o=>o?r:H(!1)),V(!1))}function bi(e,t){return se(()=>{let r=getComputedStyle(e);return H(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(tt($e(e),Ya(t)),f(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),z((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),J(1))}function vi(e,{header$:t,main$:r}){let n=new O;return n.pipe(q("active"),tt(t),K(Z)).subscribe(([{active:o},{hidden:i}])=>{o?Io(e,i?"hidden":"shadow"):jo(e)}),r.subscribe(o=>n.next(o)),t.pipe(f(o=>$({ref:e},o)))}function Ja(e,{viewport$:t,header$:r}){return ir(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:n}})=>{let{height:o}=Oe(e);return{active:n>=o}}),q("active"))}function gi(e,t){let r=new O;r.pipe(K(Z)).subscribe(({active:o})=>{o?$o(e,"active"):Po(e)});let n=pe("article h1");return typeof n=="undefined"?Y:Ja(n,t).pipe(L(o=>r.next(o)),j(()=>r.complete()),f(o=>$({ref:e},o)))}function xi(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),z()),o=n.pipe(M(()=>$e(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),q("bottom"))));return B([n,o,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:l},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-l,i)-Math.max(0,c+l-s)),{offset:a-i,height:c,active:a-i<=l})),z((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ga(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=H(...e).pipe(ie(n=>S(n,"change").pipe(ee(n))),V(e[Math.max(0,t.index)]),f(n=>({index:e.indexOf(n),color:{scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),J(1));return r.subscribe(n=>{__md_set("__palette",n)}),r}function yi(e){let t=new O;t.subscribe(n=>{for(let[o,i]of Object.entries(n.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;ot.next(n)),j(()=>t.complete()),f(n=>$({ref:e},n)))}var Vr=Qe(jr());function Xa(e){let t=N(".md-annotation",e);for(let n of t)n.hidden=!0;let r=e.innerText;for(let n of t)n.hidden=!1;return r}function Si({alert$:e}){Vr.default.isSupported()&&new k(t=>{new Vr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Xa(ce(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).subscribe(()=>e.next(G("clipboard.copied")))}function Za(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;let o=be();return e.map(i=>i.replace(t.slice(0,n),o.base))}function wi({document$:e,location$:t,viewport$:r}){let n=be();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",S(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=pe("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=xo(new URL("sitemap.xml",n.base)).pipe(f(c=>Za(N("loc",c).map(u=>u.textContent))),M(c=>S(document.body,"click").pipe(T(u=>!u.metaKey&&!u.ctrlKey),M(u=>{if(u.target instanceof Element){let m=u.target.closest("a");if(m&&!m.target){let p=new URL(m.href);if(p.search="",p.hash="",p.pathname!==location.pathname&&c.includes(p.toString()))return u.preventDefault(),H({url:new URL(m.href)})}}return Y}))),he()),a=S(window,"popstate").pipe(T(c=>c.state!==null),f(c=>({url:new URL(location.href),offset:c.state})),he());I(i,a).pipe(z((c,u)=>c.url.href===u.url.href),f(({url:c})=>c)).subscribe(t);let s=t.pipe(q("pathname"),M(c=>or(c.href).pipe(Ie(()=>(uo(c),Y)))),he());i.pipe(rt(s)).subscribe(({url:c})=>{history.pushState({},"",`${c}`)});let l=new DOMParser;s.pipe(M(c=>c.text()),f(c=>l.parseFromString(c,"text/html"))).subscribe(e),e.pipe(Gt(1)).subscribe(c=>{for(let u of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo]","[data-md-component=skip]",...ae("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let m=pe(u),p=pe(u,c);typeof m!="undefined"&&typeof p!="undefined"&&m.replaceWith(p)}}),e.pipe(Gt(1),f(()=>Me("container")),M(c=>H(...N("script",c))),Tr(c=>{let u=A("script");if(c.src){for(let m of c.getAttributeNames())u.setAttribute(m,c.getAttribute(m));return c.replaceWith(u),new k(m=>{u.onload=()=>m.complete()})}else return u.textContent=c.textContent,c.replaceWith(u),de})).subscribe(),I(i,a).pipe(rt(e)).subscribe(({url:c,offset:u})=>{c.hash&&!u?bo(c.hash):Rr(u||{y:0})}),r.pipe(bt(i),ht(250),q("offset")).subscribe(({offset:c})=>{history.replaceState(c,"")}),I(i,a).pipe(Se(2,1),T(([c,u])=>c.url.pathname===u.url.pathname),f(([,c])=>c)).subscribe(({offset:c})=>{Rr(c||{y:0})})}var rs=Qe(Ur());var Oi=Qe(Ur());function Dr(e,t){let r=new RegExp(e.separator,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(t?(0,Oi.default)(a):a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function Ti(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var ke;(function(o){o[o.SETUP=0]="SETUP",o[o.READY=1]="READY",o[o.QUERY=2]="QUERY",o[o.RESULT=3]="RESULT"})(ke||(ke={}));function ot(e){return e.type===1}function _i(e){return e.type===2}function it(e){return e.type===3}function ns({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[G("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=G("search.config.separator"));let n={pipeline:G("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:ae("search.suggest")};return{config:e,docs:t,options:n}}function Mi(e,t){let r=be(),n=new Worker(e),o=new O,i=To(n,{tx$:o}).pipe(f(a=>{if(it(a))for(let s of a.data.items)for(let l of s)l.location=`${new URL(l.location,r.base)}`;return a}),he());return re(t).pipe(f(a=>({type:ke.SETUP,data:ns(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function Li(){let e=be(),t=_e(new URL("../versions.json",e.base)),r=t.pipe(f(n=>{let[,o]=e.base.match(/([^/]+)\/?$/);return n.find(({version:i,aliases:a})=>i===o||a.includes(o))||n[0]}));B([t,r]).subscribe(([n,o])=>{var a;if(ce(".md-header__topic").appendChild(ai(n,o)),__md_get("__outdated",sessionStorage)===null){let s=((a=e.version)==null?void 0:a.default)||"latest",l=!o.aliases.includes(s);if(__md_set("__outdated",l,sessionStorage),l)for(let c of ne("outdated"))c.hidden=!1}})}function os(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||Ti,{searchParams:n}=Te();n.has("q")&&Pe("search",!0);let o=t.pipe(T(ot),xe(1),f(()=>n.get("q")||""));o.subscribe(s=>{s&&(e.value=s)});let i=ro(e),a=I(S(e,"keyup"),S(e,"focus").pipe(Ce(1)),o).pipe(f(()=>r(e.value)),V(""),z());return B([a,i]).pipe(f(([s,l])=>({value:s,focus:l})),J(1))}function Ai(e,{tx$:t,rx$:r}){let n=new O;return n.pipe(q("value"),f(({value:o})=>({type:ke.QUERY,data:o}))).subscribe(t.next.bind(t)),n.pipe(q("focus")).subscribe(({focus:o})=>{o?(Pe("search",o),Wo(e,"")):Vo(e)}),S(e.form,"reset").pipe(Cr(n.pipe(Mr(1)))).subscribe(()=>Ee(e)),os(e,{tx$:t,rx$:r}).pipe(L(o=>n.next(o)),j(()=>n.complete()),f(o=>$({ref:e},o)))}function Ci(e,{rx$:t},{query$:r}){let n=new O,o=so(e.parentElement).pipe(T(Boolean)),i=ce(":scope > :first-child",e),a=ce(":scope > :last-child",e),s=t.pipe(T(ot),xe(1));return n.pipe(K(Z),ue(r),bt(s)).subscribe(([{items:c},{value:u}])=>{u?Uo(i,c.length):Do(i)}),n.pipe(K(Z),L(()=>zo(a)),M(({items:c})=>I(H(...c.slice(0,10)),H(...c.slice(10)).pipe(Se(4),Hr(o),M(([u])=>H(...u)))))).subscribe(c=>{No(a,ni(c))}),t.pipe(T(it),f(({data:c})=>c)).pipe(L(c=>n.next(c)),j(()=>n.complete()),f(c=>$({ref:e},c)))}function is(e,{query$:t}){return t.pipe(f(({value:r})=>{let n=Te();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function ki(e,t){let r=new O;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),S(e,"click").subscribe(n=>n.preventDefault()),is(e,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>$({ref:e},n)))}function Hi(e,{rx$:t},{keyboard$:r}){let n=new O,o=Me("search-query"),i=I(S(o,"keydown"),S(o,"focus")).pipe(K(He),f(()=>o.value),z());return n.pipe(tt(i),f(([{suggestions:s},l])=>{let c=l.split(/([\s-]+)/);if((s==null?void 0:s.length)&&c[c.length-1]){let u=s[s.length-1];u.startsWith(c[c.length-1])&&(c[c.length-1]=u)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),r.pipe(T(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(T(it),f(({data:s})=>s)).pipe(L(s=>n.next(s)),j(()=>n.complete()),f(()=>({ref:e})))}function Fi(e,{index$:t,keyboard$:r}){let n=be();try{let o=(__search==null?void 0:__search.worker)||n.search,i=Mi(o,t),a=Me("search-query",e),s=Me("search-result",e),{tx$:l,rx$:c}=i;l.pipe(T(_i),rt(c.pipe(T(ot))),xe(1)).subscribe(l.next.bind(l)),r.pipe(T(({mode:p})=>p==="search")).subscribe(p=>{let b=Ne();switch(p.type){case"Enter":if(b===a){let h=new Map;for(let d of N(":first-child [href]",s)){let W=d.firstElementChild;h.set(d,parseFloat(W.getAttribute("data-md-score")))}if(h.size){let[[d]]=[...h].sort(([,W],[,Q])=>Q-W);d.click()}p.claim()}break;case"Escape":case"Tab":Pe("search",!1),Ee(a,!1);break;case"ArrowUp":case"ArrowDown":if(typeof b=="undefined")Ee(a);else{let h=[a,...N(":not(details) > [href], summary, details[open] [href]",s)],d=Math.max(0,(Math.max(0,h.indexOf(b))+h.length+(p.type==="ArrowUp"?-1:1))%h.length);Ee(h[d])}p.claim();break;default:a!==Ne()&&Ee(a)}}),r.pipe(T(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":Ee(a),io(a),p.claim();break}});let u=Ai(a,i),m=Ci(s,i,{query$:u});return I(u,m).pipe(je(...ne("search-share",e).map(p=>ki(p,{query$:u})),...ne("search-suggest",e).map(p=>Hi(p,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,Y}}function Ri(e,{index$:t,location$:r}){return B([t,r.pipe(V(Te()),T(n=>n.searchParams.has("h")))]).pipe(f(([n,o])=>Dr(n.config,!0)(o.searchParams.get("h"))),f(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)==null?void 0:a.offsetHeight){let l=s.textContent,c=n(l);c.length>l.length&&o.set(s,c)}for(let[s,l]of o){let{childNodes:c}=A("span",null,l);s.replaceWith(...Array.from(c))}return{ref:e,nodes:o}}))}function as(e,{viewport$:t,main$:r}){let n=e.parentElement,o=n.offsetTop-n.parentElement.offsetTop;return B([r,t]).pipe(f(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),z((i,a)=>i.height===a.height&&i.locked===a.locked))}function Nr(e,n){var o=n,{header$:t}=o,r=Tt(o,["header$"]);let i=new O;return i.pipe(K(Z),ue(t)).subscribe({next([{height:a},{height:s}]){Ko(e,a),qo(e,s)},complete(){Qo(e),Bo(e)}}),as(e,r).pipe(L(a=>i.next(a)),j(()=>i.complete()),f(a=>$({ref:e},a)))}function Ii(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return dt(_e(`${r}/releases/latest`).pipe(f(n=>({version:n.tag_name})),De({})),_e(r).pipe(f(n=>({stars:n.stargazers_count,forks:n.forks_count})),De({}))).pipe(f(([n,o])=>$($({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return _e(r).pipe(f(n=>({repositories:n.public_repos})),De({}))}}function ji(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return _e(r).pipe(f(({star_count:n,forks_count:o})=>({stars:n,forks:o})),De({}))}function $i(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Ii(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return ji(o,i);default:return Y}}var ss;function cs(e){return ss||(ss=se(()=>{let t=__md_get("__source",sessionStorage);return t?H(t):$i(e.href).pipe(L(r=>__md_set("__source",r,sessionStorage)))}).pipe(Ie(()=>Y),T(t=>Object.keys(t).length>0),f(t=>({facts:t})),J(1)))}function Pi(e){let t=new O;return t.subscribe(({facts:r})=>{Yo(e,oi(r)),Jo(e,"done")}),cs(e).pipe(L(r=>t.next(r)),j(()=>t.complete()),f(r=>$({ref:e},r)))}function ls(e,{viewport$:t,header$:r}){return $e(document.body).pipe(M(()=>ir(e,{header$:r,viewport$:t})),f(({offset:{y:n}})=>({hidden:n>=10})),q("hidden"))}function Wi(e,t){let r=new O;return r.pipe(K(Z)).subscribe({next({hidden:n}){n?Go(e,"hidden"):$r(e)},complete(){$r(e)}}),(ae("navigation.tabs.sticky")?H({hidden:!1}):ls(e,t)).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>$({ref:e},n)))}function us(e,{viewport$:t,header$:r}){let n=new Map,o=N("[href^=\\#]",e);for(let s of o){let l=decodeURIComponent(s.hash.substring(1)),c=pe(`[id="${l}"]`);typeof c!="undefined"&&n.set(s,c)}let i=r.pipe(f(s=>24+s.height));return $e(document.body).pipe(q("height"),M(s=>se(()=>{let l=[];return H([...n].reduce((c,[u,m])=>{for(;l.length&&n.get(l[l.length-1]).tagName>=m.tagName;)l.pop();let p=m.offsetTop;for(;!p&&m.parentElement;)m=m.parentElement,p=m.offsetTop;return c.set([...l=[...l,u]].reverse(),p)},new Map))}).pipe(f(l=>new Map([...l].sort(([,c],[,u])=>c-u))),M(l=>B([t,i]).pipe(Lr(([c,u],[{offset:{y:m},size:p},b])=>{let h=m+p.height>=Math.floor(s.height);for(;u.length;){let[,d]=u[0];if(d-b=m&&!h)u=[c.pop(),...u];else break}return[c,u]},[[],[...l]]),z((c,u)=>c[0]===u[0]&&c[1]===u[1])))))).pipe(f(([s,l])=>({prev:s.map(([c])=>c),next:l.map(([c])=>c)})),V({prev:[],next:[]}),Se(2,1),f(([s,l])=>s.prev.length{for(let[i]of o)ko(i),Ao(i);for(let[i,[a]]of n.entries())Co(a,i===n.length-1),Lo(a,"blur");if(ae("navigation.tracking")){let i=Te(),a=n[n.length-1];if(a&&a.length){let[s]=a,{hash:l}=new URL(s.href);i.hash!==l&&(i.hash=l,history.replaceState({},"",`${i}`))}else i.hash="",history.replaceState({},"",`${i}`)}}),us(e,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>$({ref:e},n)))}function ps(e,{viewport$:t,main$:r}){let n=t.pipe(f(({offset:{y:i}})=>i),Se(2,1),f(([i,a])=>i>a&&a),z()),o=r.pipe(q("active"));return B([o,n]).pipe(f(([{active:i},a])=>({hidden:!(i&&a)})),z((i,a)=>i.hidden===a.hidden))}function Ui(e,{viewport$:t,header$:r,main$:n}){let o=new O;return o.pipe(K(Z),ue(r.pipe(q("height")))).subscribe({next([{hidden:i},{height:a}]){Zo(e,a+16),i?(Xo(e,"hidden"),Ee(e,!1),ar(e,-1)):(Pr(e),St(e))},complete(){ei(e),Pr(e),St(e)}}),ps(e,{viewport$:t,header$:r,main$:n}).pipe(L(i=>o.next(i)),j(()=>o.complete()),f(i=>$({ref:e},i)))}function Di({document$:e,tablet$:t}){e.pipe(M(()=>H(...N("[data-md-state=indeterminate]"))),L(r=>{r.indeterminate=!0,r.checked=!1}),ie(r=>S(r,"change").pipe(kr(()=>r.hasAttribute("data-md-state")),ee(r))),ue(t)).subscribe(([r,n])=>{r.removeAttribute("data-md-state"),n&&(r.checked=!1)})}function fs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ni({document$:e}){e.pipe(M(()=>H(...N("[data-md-scrollfix]"))),L(t=>t.removeAttribute("data-md-scrollfix")),T(fs),ie(t=>S(t,"touchstart").pipe(ee(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function zi({viewport$:e,tablet$:t}){B([tr("search"),t]).pipe(f(([r,n])=>r&&!n),M(r=>H(r).pipe(Ce(r?400:100),K(Z))),ue(e)).subscribe(([r,{offset:{y:n}}])=>{r?_o(document.body,n):Mo(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var at=to(),sr=po(),zr=vo(),qr=lo(),ve=Oo(),cr=nr("(min-width: 960px)"),qi=nr("(min-width: 1220px)"),Qi=nr("(hover)"),Ki=go(),Bi=be(),Yi=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||_e(new URL("search/search_index.json",Bi.base)):Y,Qr=new O;Si({alert$:Qr});ae("navigation.instant")&&wi({document$:at,location$:sr,viewport$:ve});var Gi;((Gi=Bi.version)==null?void 0:Gi.provider)==="mike"&&Li();I(sr,zr).pipe(Ce(125)).subscribe(()=>{Pe("drawer",!1),Pe("search",!1)});qr.pipe(T(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=pe("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=pe("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Di({document$:at,tablet$:cr});Ni({document$:at});zi({viewport$:ve,tablet$:cr});var We=bi(Me("header"),{viewport$:ve}),lr=at.pipe(f(()=>Me("main")),M(e=>xi(e,{viewport$:ve,header$:We})),J(1)),ms=I(...ne("dialog").map(e=>hi(e,{alert$:Qr})),...ne("header").map(e=>vi(e,{viewport$:ve,header$:We,main$:lr})),...ne("palette").map(e=>yi(e)),...ne("search").map(e=>Fi(e,{index$:Yi,keyboard$:qr})),...ne("source").map(e=>Pi(e))),ds=se(()=>I(...ne("content").map(e=>di(e,{target$:zr,viewport$:ve,hover$:Qi,print$:Ki})),...ne("content").map(e=>ae("search.highlight")?Ri(e,{index$:Yi,location$:sr}):Y),...ne("header-title").map(e=>gi(e,{viewport$:ve,header$:We})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Fr(qi,()=>Nr(e,{viewport$:ve,header$:We,main$:lr})):Fr(cr,()=>Nr(e,{viewport$:ve,header$:We,main$:lr}))),...ne("tabs").map(e=>Wi(e,{viewport$:ve,header$:We})),...ne("toc").map(e=>Vi(e,{viewport$:ve,header$:We})),...ne("top").map(e=>Ui(e,{viewport$:ve,header$:We,main$:lr})))),Ji=at.pipe(M(()=>ds),je(ms),J(1));Ji.subscribe();window.document$=at;window.location$=sr;window.target$=zr;window.keyboard$=qr;window.viewport$=ve;window.tablet$=cr;window.screen$=qi;window.hover$=Qi;window.print$=Ki;window.alert$=Qr;window.component$=Ji;})(); //# sourceMappingURL=bundle.60d588a9.min.js.map