mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
30 lines
84 KiB
JavaScript
30 lines
84 KiB
JavaScript
(()=>{var ta=Object.create;var wt=Object.defineProperty;var ra=Object.getOwnPropertyDescriptor;var oa=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,na=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Qr=(e,t,o)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,j=(e,t)=>{for(var o in t||(t={}))cr.call(t,o)&&Qr(e,o,t[o]);if(Et)for(var o of Et(t))qr.call(t,o)&&Qr(e,o,t[o]);return e};var ia=e=>wt(e,"__esModule",{value:!0});var Kr=(e,t)=>{var o={};for(var r in e)cr.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&Et)for(var r of Et(e))t.indexOf(r)<0&&qr.call(e,r)&&(o[r]=e[r]);return o};var Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aa=(e,t,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of oa(t))!cr.call(e,r)&&r!=="default"&&wt(e,r,{get:()=>t[r],enumerable:!(o=ra(t,r))||o.enumerable});return e},Be=e=>aa(ia(wt(e!=null?ta(na(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Yr=Tt((lr,Br)=>{(function(e,t){typeof lr=="object"&&typeof Br!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(lr,function(){"use strict";function e(o){var r=!0,n=!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 Ue=E.type,Me=E.tagName;return!!(Me==="INPUT"&&a[Ue]&&!E.readOnly||Me==="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 p(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(o.activeElement)&&c(o.activeElement),r=!0)}function u(E){r=!1}function h(E){!s(E.target)||(r||l(E.target))&&c(E.target)}function b(E){!s(E.target)||(E.target.classList.contains("focus-visible")||E.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),p(E.target))}function d(E){document.visibilityState==="hidden"&&(n&&(r=!0),V())}function V(){document.addEventListener("mousemove",$),document.addEventListener("mousedown",$),document.addEventListener("mouseup",$),document.addEventListener("pointermove",$),document.addEventListener("pointerdown",$),document.addEventListener("pointerup",$),document.addEventListener("touchmove",$),document.addEventListener("touchstart",$),document.addEventListener("touchend",$)}function B(){document.removeEventListener("mousemove",$),document.removeEventListener("mousedown",$),document.removeEventListener("mouseup",$),document.removeEventListener("pointermove",$),document.removeEventListener("pointerdown",$),document.removeEventListener("pointerup",$),document.removeEventListener("touchmove",$),document.removeEventListener("touchstart",$),document.removeEventListener("touchend",$)}function $(E){E.target.nodeName&&E.target.nodeName.toLowerCase()==="html"||(r=!1,B())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",d,!0),V(),o.addEventListener("focus",h,!0),o.addEventListener("blur",b,!0),o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host?o.host.setAttribute("data-js-focus-visible",""):o.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(o){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var vo=Tt((fs,Mt)=>{/*! *****************************************************************************
|
|
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 Jr,Gr,Xr,Zr,eo,to,ro,oo,no,Ot,pr,io,ao,so,Ye,co,lo,po,uo,fo,mo,ho,bo,_t;(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(r){e(o(t,o(r)))}):typeof Mt=="object"&&typeof Mt.exports=="object"?e(o(t,o(Mt.exports))):e(o(t));function o(r,n){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=n?n(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])};Jr=function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Gr=Object.assign||function(r){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},Xr=function(r,n){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&n.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(i[a[s]]=r[a[s]]);return i},Zr=function(r,n,i,a){var s=arguments.length,l=s<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,n,i,a);else for(var p=r.length-1;p>=0;p--)(c=r[p])&&(l=(s<3?c(l):s>3?c(n,i,l):c(n,i))||l);return s>3&&l&&Object.defineProperty(n,i,l),l},eo=function(r,n){return function(i,a){n(i,a,r)}},to=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},ro=function(r,n,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 p(h){try{u(a.next(h))}catch(b){c(b)}}function m(h){try{u(a.throw(h))}catch(b){c(b)}}function u(h){h.done?l(h.value):s(h.value).then(p,m)}u((a=a.apply(r,n||[])).next())})},oo=function(r,n){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:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function p(u){return function(h){return m([u,h])}}function m(u){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(l=u[0]&2?s.return:u[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,u[1])).done)return l;switch(s=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,s=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){i.label=u[1];break}if(u[0]===6&&i.label<l[1]){i.label=l[1],l=u;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(u);break}l[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(r,i)}catch(h){u=[6,h],s=0}finally{a=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},no=function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&_t(n,r,i)},_t=Object.create?function(r,n,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,a){a===void 0&&(a=i),r[a]=n[i]},Ot=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},pr=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),s,l=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(p){c={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return l},io=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(pr(arguments[n]));return r},ao=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var a=Array(r),s=0,n=0;n<i;n++)for(var l=arguments[n],c=0,p=l.length;c<p;c++,s++)a[s]=l[c];return a},so=function(r,n){for(var i=0,a=n.length,s=r.length;i<a;i++,s++)r[s]=n[i];return r},Ye=function(r){return this instanceof Ye?(this.v=r,this):new Ye(r)},co=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,n||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(d){a[d]&&(s[d]=function(V){return new Promise(function(B,$){l.push([d,V,B,$])>1||p(d,V)})})}function p(d,V){try{m(a[d](V))}catch(B){b(l[0][3],B)}}function m(d){d.value instanceof Ye?Promise.resolve(d.value.v).then(u,h):b(l[0][2],d)}function u(d){p("next",d)}function h(d){p("throw",d)}function b(d,V){d(V),l.shift(),l.length&&p(l[0][0],l[0][1])}},lo=function(r){var n,i;return n={},a("next"),a("throw",function(s){throw s}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(s,l){n[s]=r[s]?function(c){return(i=!i)?{value:Ye(r[s](c)),done:s==="return"}:l?l(c):c}:l}},po=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Ot=="function"?Ot(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=r[l]&&function(c){return new Promise(function(p,m){c=r[l](c),s(p,m,c.done,c.value)})}}function s(l,c,p,m){Promise.resolve(m).then(function(u){l({value:u,done:p})},c)}},uo=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r};var o=Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n};fo=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&_t(n,r,i);return o(n,r),n},mo=function(r){return r&&r.__esModule?r:{default:r}},ho=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},bo=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",Jr),e("__assign",Gr),e("__rest",Xr),e("__decorate",Zr),e("__param",eo),e("__metadata",to),e("__awaiter",ro),e("__generator",oo),e("__exportStar",no),e("__createBinding",_t),e("__values",Ot),e("__read",pr),e("__spread",io),e("__spreadArrays",ao),e("__spreadArray",so),e("__await",Ye),e("__asyncGenerator",co),e("__asyncDelegator",lo),e("__asyncValues",po),e("__makeTemplateObject",uo),e("__importStar",fo),e("__importDefault",mo),e("__classPrivateFieldGet",ho),e("__classPrivateFieldSet",bo)})});var Fr=Tt((gt,jr)=>{/*!
|
|
* clipboard.js v2.0.8
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/(function(t,o){typeof gt=="object"&&typeof jr=="object"?jr.exports=o():typeof define=="function"&&define.amd?define([],o):typeof gt=="object"?gt.ClipboardJS=o():t.ClipboardJS=o()})(gt,function(){return function(){var e={134:function(r,n,i){"use strict";i.d(n,{default:function(){return Zi}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),p=i(817),m=i.n(p);function u(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(v){return typeof v}:u=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},u(_)}function h(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function b(_,x){for(var v=0;v<x.length;v++){var k=x[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function d(_,x,v){return x&&b(_.prototype,x),v&&b(_,v),_}var V=function(){function _(x){h(this,_),this.resolveOptions(x),this.initSelection()}return d(_,[{key:"resolveOptions",value:function(){var v=arguments.length>0&&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 k=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(k,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var v=this,k=this.createFakeElement();this.fakeHandlerCallback=function(){return v.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(k),this.selectedText=m()(k),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(k){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&&u(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}}]),_}(),B=V;function $(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(v){return typeof v}:$=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},$(_)}function E(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function Ue(_,x){for(var v=0;v<x.length;v++){var k=x[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function Me(_,x,v){return x&&Ue(_.prototype,x),v&&Ue(_,v),_}function Ke(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&ar(_,x)}function ar(_,x){return ar=Object.setPrototypeOf||function(k,W){return k.__proto__=W,k},ar(_,x)}function Bi(_){var x=Gi();return function(){var k=St(_),W;if(x){var te=St(this).constructor;W=Reflect.construct(k,arguments,te)}else W=k.apply(this,arguments);return Yi(this,W)}}function Yi(_,x){return x&&($(x)==="object"||typeof x=="function")?x:Ji(_)}function Ji(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function Gi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(_){return!1}}function St(_){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},St(_)}function sr(_,x){var v="data-clipboard-".concat(_);if(!!x.hasAttribute(v))return x.getAttribute(v)}var Xi=function(_){Ke(v,_);var x=Bi(v);function v(k,W){var te;return E(this,v),te=x.call(this),te.resolveOptions(W),te.listenClick(k),te}return Me(v,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=$(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var te=this;this.listener=c()(W,"click",function(ct){return te.onClick(ct)})}},{key:"onClick",value:function(W){var te=W.delegateTarget||W.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new B({action:this.action(te),target:this.target(te),text:this.text(te),container:this.container,trigger:te,emitter:this})}},{key:"defaultAction",value:function(W){return sr("action",W)}},{key:"defaultTarget",value:function(W){var te=sr("target",W);if(te)return document.querySelector(te)}},{key:"defaultText",value:function(W){return sr("text",W)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],te=typeof W=="string"?[W]:W,ct=!!document.queryCommandSupported;return te.forEach(function(ea){ct=ct&&!!document.queryCommandSupported(ea)}),ct}}]),v}(s()),Zi=Xi},828:function(r){var n=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!==n;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}r.exports=a},438:function(r,n,i){var a=i(828);function s(p,m,u,h,b){var d=c.apply(this,arguments);return p.addEventListener(u,d,b),{destroy:function(){p.removeEventListener(u,d,b)}}}function l(p,m,u,h,b){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(d){return s(d,m,u,h,b)}))}function c(p,m,u,h){return function(b){b.delegateTarget=a(b.target,m),b.delegateTarget&&h.call(p,b)}}r.exports=l},879:function(r,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.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||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(r,n,i){var a=i(879),s=i(438);function l(u,h,b){if(!u&&!h&&!b)throw new Error("Missing required arguments");if(!a.string(h))throw new TypeError("Second argument must be a String");if(!a.fn(b))throw new TypeError("Third argument must be a Function");if(a.node(u))return c(u,h,b);if(a.nodeList(u))return p(u,h,b);if(a.string(u))return m(u,h,b);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(u,h,b){return u.addEventListener(h,b),{destroy:function(){u.removeEventListener(h,b)}}}function p(u,h,b){return Array.prototype.forEach.call(u,function(d){d.addEventListener(h,b)}),{destroy:function(){Array.prototype.forEach.call(u,function(d){d.removeEventListener(h,b)})}}}function m(u,h,b){return s(document.body,u,h,b)}r.exports=l},817:function(r){function n(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}r.exports=n},279:function(r){function n(){}n.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<c;l++)s[l].fn.apply(s[l].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),l=s[i],c=[];if(l&&a)for(var p=0,m=l.length;p<m;p++)l[p].fn!==a&&l[p].fn._!==a&&c.push(l[p]);return c.length?s[i]=c:delete s[i],this}},r.exports=n,r.exports.TinyEmitter=n}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return function(){o.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(n,{a:n}),n}}(),function(){o.d=function(r,n){for(var i in n)o.o(n,i)&&!o.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}}(),function(){o.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)}}(),o(134)}().default})});var Wr=Tt((Sy,yi)=>{/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/"use strict";var Ja=/["'&<>]/;yi.exports=Ga;function Ga(e){var t=""+e,o=Ja.exec(t);if(!o)return t;var r,n="",i=0,a=0;for(i=o.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=r}return a!==i?n+t.substring(a,i):n}});var xT=Be(Yr());var xo=Be(vo()),{__extends:X,__assign:ms,__rest:ds,__decorate:hs,__param:bs,__metadata:vs,__awaiter:go,__generator:Lt,__exportStar:xs,__createBinding:gs,__values:ue,__read:H,__spread:ys,__spreadArrays:Ss,__spreadArray:I,__await:At,__asyncGenerator:yo,__asyncDelegator:ws,__asyncValues:So,__makeTemplateObject:Es,__importStar:Ts,__importDefault:Os,__classPrivateFieldGet:_s,__classPrivateFieldSet:Ms}=xo.default;function S(e){return typeof e=="function"}function kt(e){var t=function(r){Error.call(r),r.stack=new Error().stack},o=e(t);return o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o}var Ct=kt(function(e){return function(o){e(this),this.message=o?o.length+` errors occurred during unsubscription:
|
|
`+o.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=o}});function Le(e,t){if(e){var o=e.indexOf(t);0<=o&&e.splice(o,1)}}var we=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,o,r,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=ue(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(t)throw t.error}}else a.remove(this);var p=this.initialTeardown;if(S(p))try{p()}catch(d){i=d instanceof Ct?d.errors:[d]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var u=ue(m),h=u.next();!h.done;h=u.next()){var b=h.value;try{wo(b)}catch(d){i=i!=null?i:[],d instanceof Ct?i=I(I([],H(i)),H(d.errors)):i.push(d)}}}catch(d){r={error:d}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new Ct(i)}},e.prototype.add=function(t){var o;if(t&&t!==this)if(this.closed)wo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(o=this._teardowns)!==null&&o!==void 0?o:[]).push(t)}},e.prototype._hasParent=function(t){var o=this._parentage;return o===t||Array.isArray(o)&&o.includes(t)},e.prototype._addParent=function(t){var o=this._parentage;this._parentage=Array.isArray(o)?(o.push(t),o):o?[o,t]:t},e.prototype._removeParent=function(t){var o=this._parentage;o===t?this._parentage=null:Array.isArray(o)&&Le(o,t)},e.prototype.remove=function(t){var o=this._teardowns;o&&Le(o,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var ur=we.EMPTY;function Ht(e){return e instanceof we||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function wo(e){S(e)?e():e.unsubscribe()}var ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Je.delegate;return((o==null?void 0:o.setTimeout)||setTimeout).apply(void 0,I([],H(e)))},clearTimeout:function(e){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function jt(e){Je.setTimeout(function(){var t=ge.onUnhandledError;if(t)t(e);else throw e})}function ie(){}var Eo=function(){return fr("C",void 0,void 0)}();function To(e){return fr("E",void 0,e)}function Oo(e){return fr("N",e,void 0)}function fr(e,t,o){return{kind:e,value:t,error:o}}var Ve=null;function Ge(e){if(ge.useDeprecatedSynchronousErrorHandling){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var o=Ve,r=o.errorThrown,n=o.error;if(Ve=null,r)throw n}}else e()}function _o(e){ge.useDeprecatedSynchronousErrorHandling&&Ve&&(Ve.errorThrown=!0,Ve.error=e)}var lt=function(e){X(t,e);function t(o){var r=e.call(this)||this;return r.isStopped=!1,o?(r.destination=o,Ht(o)&&o.add(r)):r.destination=sa,r}return t.create=function(o,r,n){return new pt(o,r,n)},t.prototype.next=function(o){this.isStopped?dr(Oo(o),this):this._next(o)},t.prototype.error=function(o){this.isStopped?dr(To(o),this):(this.isStopped=!0,this._error(o))},t.prototype.complete=function(){this.isStopped?dr(Eo,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(o){this.destination.next(o)},t.prototype._error=function(o){try{this.destination.error(o)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(we);var pt=function(e){X(t,e);function t(o,r,n){var i=e.call(this)||this,a;if(S(o))a=o;else if(o){a=o.next,r=o.error,n=o.complete;var s;i&&ge.useDeprecatedNextContext?(s=Object.create(o),s.unsubscribe=function(){return i.unsubscribe()}):s=o,a=a==null?void 0:a.bind(s),r=r==null?void 0:r.bind(s),n=n==null?void 0:n.bind(s)}return i.destination={next:a?mr(a,i):ie,error:mr(r!=null?r:Mo,i),complete:n?mr(n,i):ie},i}return t}(lt);function mr(e,t){return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];try{e.apply(void 0,I([],H(o)))}catch(n){ge.useDeprecatedSynchronousErrorHandling?_o(n):jt(n)}}}function Mo(e){throw e}function dr(e,t){var o=ge.onStoppedNotification;o&&Je.setTimeout(function(){return o(e,t)})}var sa={closed:!0,next:ie,error:Mo,complete:ie};var Xe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function fe(e){return e}function Lo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return hr(e)}function hr(e){return e.length===0?fe:e.length===1?e[0]:function(o){return e.reduce(function(r,n){return n(r)},o)}}var C=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var o=new e;return o.source=this,o.operator=t,o},e.prototype.subscribe=function(t,o,r){var n=this,i=la(t)?t:new pt(t,o,r);return Ge(function(){var a=n,s=a.operator,l=a.source;i.add(s?s.call(i,l):l?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(o){t.error(o)}},e.prototype.forEach=function(t,o){var r=this;return o=Ao(o),new o(function(n,i){var a;a=r.subscribe(function(s){try{t(s)}catch(l){i(l),a==null||a.unsubscribe()}},i,n)})},e.prototype._subscribe=function(t){var o;return(o=this.source)===null||o===void 0?void 0:o.subscribe(t)},e.prototype[Xe]=function(){return this},e.prototype.pipe=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return hr(t)(this)},e.prototype.toPromise=function(t){var o=this;return t=Ao(t),new t(function(r,n){var i;o.subscribe(function(a){return i=a},function(a){return n(a)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Ao(e){var t;return(t=e!=null?e:ge.Promise)!==null&&t!==void 0?t:Promise}function ca(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function la(e){return e&&e instanceof lt||ca(e)&&Ht(e)}function pa(e){return S(e==null?void 0:e.lift)}function g(e){return function(t){if(pa(t))return t.lift(function(o){try{return e(o,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var y=function(e){X(t,e);function t(o,r,n,i,a){var s=e.call(this,o)||this;return s.onFinalize=a,s._next=r?function(l){try{r(l)}catch(c){o.error(c)}}:e.prototype._next,s._error=i?function(l){try{i(l)}catch(c){o.error(c)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(l){o.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var o,r=this.closed;e.prototype.unsubscribe.call(this),!r&&((o=this.onFinalize)===null||o===void 0||o.call(this))},t}(lt);var Ze={schedule:function(e){var t=requestAnimationFrame,o=cancelAnimationFrame,r=Ze.delegate;r&&(t=r.requestAnimationFrame,o=r.cancelAnimationFrame);var n=t(function(i){o=void 0,e(i)});return new we(function(){return o==null?void 0:o(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Ze.delegate;return((o==null?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,I([],H(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Ze.delegate;return((o==null?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,I([],H(e)))},delegate:void 0};var ko=kt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var T=function(e){X(t,e);function t(){var o=e.call(this)||this;return o.closed=!1,o.observers=[],o.isStopped=!1,o.hasError=!1,o.thrownError=null,o}return t.prototype.lift=function(o){var r=new Co(this,this);return r.operator=o,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ko},t.prototype.next=function(o){var r=this;Ge(function(){var n,i;if(r._throwIfClosed(),!r.isStopped){var a=r.observers.slice();try{for(var s=ue(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.next(o)}}catch(p){n={error:p}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(o){var r=this;Ge(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=o;for(var n=r.observers;n.length;)n.shift().error(o)}})},t.prototype.complete=function(){var o=this;Ge(function(){if(o._throwIfClosed(),!o.isStopped){o.isStopped=!0;for(var r=o.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var o;return((o=this.observers)===null||o===void 0?void 0:o.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(o){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,o)},t.prototype._subscribe=function(o){return this._throwIfClosed(),this._checkFinalizedStatuses(o),this._innerSubscribe(o)},t.prototype._innerSubscribe=function(o){var r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?ur:(a.push(o),new we(function(){return Le(a,o)}))},t.prototype._checkFinalizedStatuses=function(o){var r=this,n=r.hasError,i=r.thrownError,a=r.isStopped;n?o.error(i):a&&o.complete()},t.prototype.asObservable=function(){var o=new C;return o.source=this,o},t.create=function(o,r){return new Co(o,r)},t}(C);var Co=function(e){X(t,e);function t(o,r){var n=e.call(this)||this;return n.destination=o,n.source=r,n}return t.prototype.next=function(o){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,o)},t.prototype.error=function(o){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,o)},t.prototype.complete=function(){var o,r;(r=(o=this.destination)===null||o===void 0?void 0:o.complete)===null||r===void 0||r.call(o)},t.prototype._subscribe=function(o){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(o))!==null&&n!==void 0?n:ur},t}(T);var ut={now:function(){return(ut.delegate||Date).now()},delegate:void 0};var ft=function(e){X(t,e);function t(o,r,n){o===void 0&&(o=1/0),r===void 0&&(r=1/0),n===void 0&&(n=ut);var i=e.call(this)||this;return i._bufferSize=o,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,o),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(o){var r=this,n=r.isStopped,i=r._buffer,a=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;n||(i.push(o),!a&&i.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,o)},t.prototype._subscribe=function(o){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(o),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),l=0;l<s.length&&!o.closed;l+=i?1:2)o.next(s[l]);return this._checkFinalizedStatuses(o),r},t.prototype._trimBuffer=function(){var o=this,r=o._bufferSize,n=o._timestampProvider,i=o._buffer,a=o._infiniteTimeWindow,s=(a?1:2)*r;if(r<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var l=n.now(),c=0,p=1;p<i.length&&i[p]<=l;p+=2)c=p;c&&i.splice(0,c+1)}},t}(T);var Ho=function(e){X(t,e);function t(o,r){return e.call(this)||this}return t.prototype.schedule=function(o,r){return r===void 0&&(r=0),this},t}(we);var mt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=mt.delegate;return((o==null?void 0:o.setInterval)||setInterval).apply(void 0,I([],H(e)))},clearInterval:function(e){var t=mt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Ft=function(e){X(t,e);function t(o,r){var n=e.call(this,o,r)||this;return n.scheduler=o,n.work=r,n.pending=!1,n}return t.prototype.schedule=function(o,r){if(r===void 0&&(r=0),this.closed)return this;this.state=o;var n=this.id,i=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(i,n,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(i,this.id,r),this},t.prototype.requestAsyncId=function(o,r,n){return n===void 0&&(n=0),mt.setInterval(o.flush.bind(o,this),n)},t.prototype.recycleAsyncId=function(o,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;mt.clearInterval(r)},t.prototype.execute=function(o,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(o,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(o,r){var n=!1,i;try{this.work(o)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var o=this,r=o.id,n=o.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Le(i,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Ho);var br=function(){function e(t,o){o===void 0&&(o=e.now),this.schedulerActionCtor=t,this.now=o}return e.prototype.schedule=function(t,o,r){return o===void 0&&(o=0),new this.schedulerActionCtor(this,t).schedule(r,o)},e.now=ut.now,e}();var Rt=function(e){X(t,e);function t(o,r){r===void 0&&(r=br.now);var n=e.call(this,o,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return t.prototype.flush=function(o){var r=this.actions;if(this._active){r.push(o);return}var n;this._active=!0;do if(n=o.execute(o.state,o.delay))break;while(o=r.shift());if(this._active=!1,n){for(;o=r.shift();)o.unsubscribe();throw n}},t}(br);var Ce=new Rt(Ft),vr=Ce;var jo=function(e){X(t,e);function t(o,r){var n=e.call(this,o,r)||this;return n.scheduler=o,n.work=r,n}return t.prototype.requestAsyncId=function(o,r,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,o,r,n):(o.actions.push(this),o._scheduled||(o._scheduled=Ze.requestAnimationFrame(function(){return o.flush(void 0)})))},t.prototype.recycleAsyncId=function(o,r,n){if(n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,o,r,n);o.actions.length===0&&(Ze.cancelAnimationFrame(r),o._scheduled=void 0)},t}(Ft);var Fo=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(o){this._active=!0,this._scheduled=void 0;var r=this.actions,n,i=-1;o=o||r.shift();var a=r.length;do if(n=o.execute(o.state,o.delay))break;while(++i<a&&(o=r.shift()));if(this._active=!1,n){for(;++i<a&&(o=r.shift());)o.unsubscribe();throw n}},t}(Rt);var Z=new Fo(jo);var me=new C(function(e){return e.complete()});function It(e){return e&&S(e.schedule)}function xr(e){return e[e.length-1]}function He(e){return S(xr(e))?e.pop():void 0}function xe(e){return It(xr(e))?e.pop():void 0}function Pt(e,t){return typeof xr(e)=="number"?e.pop():t}var et=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function $t(e){return S(e==null?void 0:e.then)}function Wt(e){return S(e[Xe])}function Ut(e){return Symbol.asyncIterator&&S(e==null?void 0:e[Symbol.asyncIterator])}function Vt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ua(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Dt=ua();function Nt(e){return S(e==null?void 0:e[Dt])}function zt(e){return yo(this,arguments,function(){var o,r,n,i;return Lt(this,function(a){switch(a.label){case 0:o=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,At(o.read())];case 3:return r=a.sent(),n=r.value,i=r.done,i?[4,At(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,At(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return o.releaseLock(),[7];case 10:return[2]}})})}function qt(e){return S(e==null?void 0:e.getReader)}function U(e){if(e instanceof C)return e;if(e!=null){if(Wt(e))return fa(e);if(et(e))return ma(e);if($t(e))return da(e);if(Ut(e))return Ro(e);if(Nt(e))return ha(e);if(qt(e))return ba(e)}throw Vt(e)}function fa(e){return new C(function(t){var o=e[Xe]();if(S(o.subscribe))return o.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ma(e){return new C(function(t){for(var o=0;o<e.length&&!t.closed;o++)t.next(e[o]);t.complete()})}function da(e){return new C(function(t){e.then(function(o){t.closed||(t.next(o),t.complete())},function(o){return t.error(o)}).then(null,jt)})}function ha(e){return new C(function(t){var o,r;try{for(var n=ue(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}t.complete()})}function Ro(e){return new C(function(t){va(e,t).catch(function(o){return t.error(o)})})}function ba(e){return Ro(zt(e))}function va(e,t){var o,r,n,i;return go(this,void 0,void 0,function(){var a,s;return Lt(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),o=So(e),l.label=1;case 1:return[4,o.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),n={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(i=o.return)?[4,i.call(o)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function le(e,t,o,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var i=t.schedule(function(){o(),n?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!n)return i}function q(e,t){return t===void 0&&(t=0),g(function(o,r){o.subscribe(new y(r,function(n){return le(r,e,function(){return r.next(n)},t)},function(){return le(r,e,function(){return r.complete()},t)},function(n){return le(r,e,function(){return r.error(n)},t)}))})}function Qt(e,t){return t===void 0&&(t=0),g(function(o,r){r.add(e.schedule(function(){return o.subscribe(r)},t))})}function Io(e,t){return U(e).pipe(Qt(t),q(t))}function Po(e,t){return U(e).pipe(Qt(t),q(t))}function $o(e,t){return new C(function(o){var r=0;return t.schedule(function(){r===e.length?o.complete():(o.next(e[r++]),o.closed||this.schedule())})})}function Wo(e,t){return new C(function(o){var r;return le(o,t,function(){r=e[Dt](),le(o,t,function(){var n,i,a;try{n=r.next(),i=n.value,a=n.done}catch(s){o.error(s);return}a?o.complete():o.next(i)},0,!0)}),function(){return S(r==null?void 0:r.return)&&r.return()}})}function Kt(e,t){if(!e)throw new Error("Iterable cannot be null");return new C(function(o){le(o,t,function(){var r=e[Symbol.asyncIterator]();le(o,t,function(){r.next().then(function(n){n.done?o.complete():o.next(n.value)})},0,!0)})})}function Uo(e,t){return Kt(zt(e),t)}function Vo(e,t){if(e!=null){if(Wt(e))return Io(e,t);if(et(e))return $o(e,t);if($t(e))return Po(e,t);if(Ut(e))return Kt(e,t);if(Nt(e))return Wo(e,t);if(qt(e))return Uo(e,t)}throw Vt(e)}function re(e,t){return t?Vo(e,t):U(e)}function F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=xe(e);return re(e,o)}function Do(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return g(function(o,r){var n=0;o.subscribe(new y(r,function(i){r.next(e.call(t,i,n++))}))})}var xa=Array.isArray;function ga(e,t){return xa(t)?e.apply(void 0,I([],H(t))):e(t)}function je(e){return f(function(t){return ga(e,t)})}var ya=Array.isArray,Sa=Object.getPrototypeOf,wa=Object.prototype,Ea=Object.keys;function No(e){if(e.length===1){var t=e[0];if(ya(t))return{args:t,keys:null};if(Ta(t)){var o=Ea(t);return{args:o.map(function(r){return t[r]}),keys:o}}}return{args:e,keys:null}}function Ta(e){return e&&typeof e=="object"&&Sa(e)===wa}function zo(e,t){return e.reduce(function(o,r,n){return o[r]=t[n],o},{})}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=xe(e),r=He(e),n=No(e),i=n.args,a=n.keys;if(i.length===0)return re([],o);var s=new C(gr(i,o,a?function(l){return zo(a,l)}:fe));return r?s.pipe(je(r)):s}function gr(e,t,o){return o===void 0&&(o=fe),function(r){qo(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,l=function(p){qo(t,function(){var m=re(e[p],t),u=!1;m.subscribe(new y(r,function(h){i[p]=h,u||(u=!0,s--),s||r.next(o(i.slice()))},function(){--a||r.complete()}))},r)},c=0;c<n;c++)l(c)},r)}}function qo(e,t,o){e?le(o,e,t):t()}function Qo(e,t,o,r,n,i,a,s){var l=[],c=0,p=0,m=!1,u=function(){m&&!l.length&&!c&&t.complete()},h=function(d){return c<r?b(d):l.push(d)},b=function(d){i&&t.next(d),c++;var V=!1;U(o(d,p++)).subscribe(new y(t,function(B){n==null||n(B),i?h(B):t.next(B)},function(){V=!0},void 0,function(){if(V)try{c--;for(var B=function(){var $=l.shift();a?le(t,a,function(){return b($)}):b($)};l.length&&c<r;)B();u()}catch($){t.error($)}}))};return e.subscribe(new y(t,h,function(){m=!0,u()})),function(){s==null||s()}}function ae(e,t,o){return o===void 0&&(o=1/0),S(t)?ae(function(r,n){return f(function(i,a){return t(r,i,n,a)})(U(e(r,n)))},o):(typeof t=="number"&&(o=t),g(function(r,n){return Qo(r,n,e,o)}))}function tt(e){return e===void 0&&(e=1/0),ae(fe,e)}function Ko(){return tt(1)}function dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ko()(re(e,xe(e)))}function ye(e){return new C(function(t){U(e()).subscribe(t)})}var Oa=["addListener","removeListener"],_a=["addEventListener","removeEventListener"],Ma=["on","off"];function w(e,t,o,r){if(S(o)&&(r=o,o=void 0),r)return w(e,t,o).pipe(je(r));var n=H(ka(e)?_a.map(function(s){return function(l){return e[s](t,l,o)}}):La(e)?Oa.map(Bo(e,t)):Aa(e)?Ma.map(Bo(e,t)):[],2),i=n[0],a=n[1];if(!i&&et(e))return ae(function(s){return w(s,t,o)})(U(e));if(!i)throw new TypeError("Invalid event target");return new C(function(s){var l=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return s.next(1<c.length?c:c[0])};return i(l),function(){return a(l)}})}function Bo(e,t){return function(o){return function(r){return e[o](t,r)}}}function La(e){return S(e.addListener)&&S(e.removeListener)}function Aa(e){return S(e.on)&&S(e.off)}function ka(e){return S(e.addEventListener)&&S(e.removeEventListener)}function Bt(e,t,o){return o?Bt(e,t).pipe(je(o)):new C(function(r){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r.next(a.length===1?a[0]:a)},i=e(n);return S(t)?function(){return t(n,i)}:void 0})}function Yo(e,t,o){e===void 0&&(e=0),o===void 0&&(o=vr);var r=-1;return t!=null&&(It(t)?o=t:r=t),new C(function(n){var i=Do(e)?+e-o.now():e;i<0&&(i=0);var a=0;return o.schedule(function(){n.closed||(n.next(a++),0<=r?this.schedule(void 0,r):n.complete())},i)})}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=xe(e),r=Pt(e,1/0),n=e;return n.length?n.length===1?U(n[0]):tt(r)(re(n,o)):me}var Y=new C(ie);var Ca=Array.isArray;function rt(e){return e.length===1&&Ca(e[0])?e[0]:e}function O(e,t){return g(function(o,r){var n=0;o.subscribe(new y(r,function(i){return e.call(t,i,n++)&&r.next(i)}))})}function ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=He(e),r=rt(e);return r.length?new C(function(n){var i=r.map(function(){return[]}),a=r.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(c){U(r[c]).subscribe(new y(n,function(p){if(i[c].push(p),i.every(function(u){return u.length})){var m=i.map(function(u){return u.shift()});n.next(o?o.apply(void 0,I([],H(m))):m),i.some(function(u,h){return!u.length&&a[h]})&&n.complete()}},function(){a[c]=!0,!i[c].length&&n.complete()}))},l=0;!n.closed&&l<r.length;l++)s(l);return function(){i=a=null}}):me}function Se(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(o,r){var n=[],i=0;o.subscribe(new y(r,function(a){var s,l,c,p,m=null;i++%t==0&&n.push([]);try{for(var u=ue(n),h=u.next();!h.done;h=u.next()){var b=h.value;b.push(a),e<=b.length&&(m=m!=null?m:[],m.push(b))}}catch(B){s={error:B}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(s)throw s.error}}if(m)try{for(var d=ue(m),V=d.next();!V.done;V=d.next()){var b=V.value;Le(n,b),r.next(b)}}catch(B){c={error:B}}finally{try{V&&!V.done&&(p=d.return)&&p.call(d)}finally{if(c)throw c.error}}},function(){var a,s;try{for(var l=ue(n),c=l.next();!c.done;c=l.next()){var p=c.value;r.next(p)}}catch(m){a={error:m}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}r.complete()},void 0,function(){n=null}))})}function Fe(e){return g(function(t,o){var r=null,n=!1,i;r=t.subscribe(new y(o,void 0,void 0,function(a){i=U(e(a,Fe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(o)):n=!0})),n&&(r.unsubscribe(),r=null,i.subscribe(o))})}function Jo(e,t,o,r,n){return function(i,a){var s=o,l=t,c=0;i.subscribe(new y(a,function(p){var m=c++;l=s?e(l,p,m):(s=!0,p),r&&a.next(l)},n&&function(){s&&a.next(l),a.complete()}))}}function yr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=He(e);return o?Lo(yr.apply(void 0,I([],H(e))),je(o)):g(function(r,n){gr(I([r],H(rt(e))))(n)})}function Re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yr.apply(void 0,I([],H(e)))}function Sr(e,t){return S(t)?ae(e,t,1):ae(e,1)}function wr(e,t){return t===void 0&&(t=Ce),g(function(o,r){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,r.next(c)}};function l(){var c=a+e,p=t.now();if(p<c){n=this.schedule(void 0,c-p),r.add(n);return}s()}o.subscribe(new y(r,function(c){i=c,a=t.now(),n||(n=t.schedule(l,e),r.add(n))},function(){s(),r.complete()},void 0,function(){i=n=null}))})}function De(e){return g(function(t,o){var r=!1;t.subscribe(new y(o,function(n){r=!0,o.next(n)},function(){r||o.next(e),o.complete()}))})}function pe(e){return e<=0?function(){return me}:g(function(t,o){var r=0;t.subscribe(new y(o,function(n){++r<=e&&(o.next(n),e<=r&&o.complete())}))})}function Go(){return g(function(e,t){e.subscribe(new y(t,ie))})}function oe(e){return f(function(){return e})}function Er(e,t){return t?function(o){return dt(t.pipe(pe(1),Go()),o.pipe(Er(e)))}:ae(function(o,r){return e(o,r).pipe(pe(1),oe(o))})}function Ae(e,t){t===void 0&&(t=Ce);var o=Yo(e,t);return Er(function(){return o})}function Q(e,t){return t===void 0&&(t=fe),e=e!=null?e:Ha,g(function(o,r){var n,i=!0;o.subscribe(new y(r,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,r.next(a))}))})}function Ha(e,t){return e===t}function z(e,t){return Q(function(o,r){return t?t(o[e],r[e]):o[e]===r[e]})}function P(e){return g(function(t,o){try{t.subscribe(o)}finally{o.add(e)}})}function Tr(e){return e<=0?function(){return me}:g(function(t,o){var r=[];t.subscribe(new y(o,function(n){r.push(n),e<r.length&&r.shift()},function(){var n,i;try{for(var a=ue(r),s=a.next();!s.done;s=a.next()){var l=s.value;o.next(l)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}o.complete()},void 0,function(){r=null}))})}function Xo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=xe(e),r=Pt(e,1/0);return e=rt(e),g(function(n,i){tt(r)(re(I([n],H(e)),o)).subscribe(i)})}function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xo.apply(void 0,I([],H(e)))}function ot(e){return g(function(t,o){var r=!1,n=null;t.subscribe(new y(o,function(a){r=!0,n=a}));var i=function(){if(r){r=!1;var a=n;n=null,o.next(a)}};e.subscribe(new y(o,i,ie))})}function Or(e,t){return g(Jo(e,t,arguments.length>=2,!0))}function de(e){e===void 0&&(e={});var t=e.connector,o=t===void 0?function(){return new T}:t,r=e.resetOnError,n=r===void 0?!0:r,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var p=null,m=null,u=null,h=0,b=!1,d=!1,V=function(){m==null||m.unsubscribe(),m=null},B=function(){V(),p=u=null,b=d=!1},$=function(){var E=p;B(),E==null||E.unsubscribe()};return g(function(E,Ue){h++,!d&&!b&&V();var Me=u=u!=null?u:o();Ue.add(function(){h--,h===0&&!d&&!b&&(m=_r($,l))}),Me.subscribe(Ue),p||(p=new pt({next:function(Ke){return Me.next(Ke)},error:function(Ke){d=!0,V(),m=_r(B,n,Ke),Me.error(Ke)},complete:function(){b=!0,V(),m=_r(B,a),Me.complete()}}),re(E).subscribe(p))})(c)}}function _r(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return t===!0?(e(),null):t===!1?null:t.apply(void 0,I([],H(o))).pipe(pe(1)).subscribe(function(){return e()})}function J(e,t,o){var r,n,i,a=!1;return e&&typeof e=="object"?(i=(r=e.bufferSize)!==null&&r!==void 0?r:1/0,t=(n=e.windowTime)!==null&&n!==void 0?n:1/0,a=!!e.refCount,o=e.scheduler):i=e!=null?e:1/0,de({connector:function(){return new ft(i,t,o)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Yt(e){return O(function(t,o){return e<=o})}function bt(e){return g(function(t,o){var r=!1,n=new y(o,function(){n==null||n.unsubscribe(),r=!0},ie);U(e).subscribe(n),t.subscribe(new y(o,function(i){return r&&o.next(i)}))})}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=xe(e);return g(function(r,n){(o?dt(e,r,o):dt(e,r)).subscribe(n)})}function M(e,t){return g(function(o,r){var n=null,i=0,a=!1,s=function(){return a&&!n&&r.complete()};o.subscribe(new y(r,function(l){n==null||n.unsubscribe();var c=0,p=i++;U(e(l,p)).subscribe(n=new y(r,function(m){return r.next(t?t(l,m,p,c++):m)},function(){n=null,s()}))},function(){a=!0,s()}))})}function Mr(e,t){return S(t)?M(function(){return e},t):M(function(){return e})}function Lr(e){return g(function(t,o){U(e).subscribe(new y(o,function(){return o.complete()},ie)),!o.closed&&t.subscribe(o)})}function vt(e,t){return t===void 0&&(t=!1),g(function(o,r){var n=0;o.subscribe(new y(r,function(i){var a=e(i,n++);(a||t)&&r.next(i),!a&&r.complete()}))})}function L(e,t,o){var r=S(e)||t||o?{next:e,error:t,complete:o}:e;return r?g(function(n,i){var a;(a=r.subscribe)===null||a===void 0||a.call(r);var s=!0;n.subscribe(new y(i,function(l){var c;(c=r.next)===null||c===void 0||c.call(r,l),i.next(l)},function(){var l;s=!1,(l=r.complete)===null||l===void 0||l.call(r),i.complete()},function(l){var c;s=!1,(c=r.error)===null||c===void 0||c.call(r,l),i.error(l)},function(){var l,c;s&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):fe}var ja={leading:!0,trailing:!1};function Ar(e,t){var o=t===void 0?ja:t,r=o.leading,n=o.trailing;return g(function(i,a){var s=!1,l=null,c=null,p=!1,m=function(){c==null||c.unsubscribe(),c=null,n&&(b(),p&&a.complete())},u=function(){c=null,p&&a.complete()},h=function(d){return c=U(e(d)).subscribe(new y(a,m,u))},b=function(){if(s){s=!1;var d=l;l=null,a.next(d),!p&&h(d)}};i.subscribe(new y(a,function(d){s=!0,l=d,!(c&&!c.closed)&&(r?b():h(d))},function(){p=!0,!(n&&s&&c&&!c.closed)&&a.complete()}))})}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=He(e);return g(function(r,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),l=!1,c=function(m){U(e[m]).subscribe(new y(n,function(u){a[m]=u,!l&&!s[m]&&(s[m]=!0,(l=s.every(fe))&&(s=null))},ie))},p=0;p<i;p++)c(p);r.subscribe(new y(n,function(m){if(l){var u=I([m],H(a));n.next(o?o.apply(void 0,I([],H(u))):u)}}))})}function Zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(o,r){ht.apply(void 0,I([o],H(e))).subscribe(r)})}function kr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zo.apply(void 0,I([],H(e)))}function en(){let e=new ft;return w(document,"DOMContentLoaded").pipe(oe(document)).subscribe(e),e}function ce(e,t=document){return t.querySelector(e)||void 0}function ee(e,t=document){let o=ce(e,t);if(typeof o=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return o}function ze(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function N(e,t=document){return Array.from(t.querySelectorAll(e))}function qe(e,...t){e.replaceWith(...t)}function Ee(e,t=!0){t?e.focus():e.blur()}function tn(e){return R(w(e,"focus"),w(e,"blur")).pipe(f(({type:t})=>t==="focus"),D(e===ze()))}var rn=new T,Fa=ye(()=>F(new ResizeObserver(e=>{for(let t of e)rn.next(t)}))).pipe(M(e=>Y.pipe(D(e)).pipe(P(()=>e.disconnect()))),J(1));function Ie(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Jt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Pe(e){return Fa.pipe(L(t=>t.observe(e)),M(t=>rn.pipe(O(({target:o})=>o===e),P(()=>t.unobserve(e)),f(()=>Ie(e)))),D(Ie(e)))}function on(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ra(e){return R(w(e,"scroll"),w(window,"resize")).pipe(f(()=>on(e)),D(on(e)))}function nn(e,t=16){return Ra(e).pipe(f(({y:o})=>{let r=Ie(e),n=Jt(e);return o>=n.height-r.height-t}),Q())}function an(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var Gt={drawer:ee("[data-md-toggle=drawer]"),search:ee("[data-md-toggle=search]")};function sn(e){return Gt[e].checked}function $e(e,t){Gt[e].checked!==t&&Gt[e].click()}function Xt(e){let t=Gt[e];return w(t,"change").pipe(f(()=>t.checked),D(t.checked))}function Ia(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 cn(){return w(window,"keydown").pipe(O(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:sn("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),O(({mode:e,type:t})=>{if(e==="global"){let o=ze();if(typeof o!="undefined")return!Ia(o,t)}return!0}),de())}function Te(){return new URL(location.href)}function ln(e){location.href=e.href}function pn(){return new T}function un(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 o of t)un(e,o)}function A(e,t,...o){let r=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="boolean"?r.setAttribute(n,t[n]):t[n]&&r.setAttribute(n,"");for(let n of o)un(r,n);return r}function fn(e,t){let o=t;if(e.length>o){for(;e[o]!==" "&&--o>0;);return`${e.substring(0,o)}...`}return e}function Zt(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function mn(){return location.hash.substring(1)}function dn(e){let t=A("a",{href:e});t.addEventListener("click",o=>o.stopPropagation()),t.click()}function Pa(){return w(window,"hashchange").pipe(f(mn),D(mn()),O(e=>e.length>0),J(1))}function hn(){return Pa().pipe(f(e=>ce(`[id="${e}"]`)),O(e=>typeof e!="undefined"))}function xt(e){let t=matchMedia(e);return Bt(o=>t.addListener(()=>o(t.matches))).pipe(D(t.matches))}function bn(){return R(w(window,"beforeprint").pipe(oe(!0)),w(window,"afterprint").pipe(oe(!1)))}function Cr(e,t){return e.pipe(M(o=>o?t():Y))}function er(e,t={credentials:"same-origin"}){return re(fetch(`${e}`,t)).pipe(O(o=>o.status===200),Fe(()=>me))}function Oe(e,t){return er(e,t).pipe(M(o=>o.json()),J(1))}function vn(e,t){let o=new DOMParser;return er(e,t).pipe(M(r=>r.text()),f(r=>o.parseFromString(r,"text/xml")),J(1))}function xn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Hr({x:e,y:t}){window.scrollTo(e||0,t||0)}function gn(){return R(w(window,"scroll",{passive:!0}),w(window,"resize",{passive:!0})).pipe(f(xn),D(xn()))}function yn(){return{width:innerWidth,height:innerHeight}}function Sn(){return w(window,"resize",{passive:!0}).pipe(f(yn),D(yn()))}function wn(){return K([gn(),Sn()]).pipe(f(([e,t])=>({offset:e,size:t})),J(1))}function tr(e,{viewport$:t,header$:o}){let r=t.pipe(z("size")),n=K([r,o]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return K([o,t,n]).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 En(e,{tx$:t}){let o=w(e,"message").pipe(f(({data:r})=>r));return t.pipe(Ar(()=>o,{leading:!0,trailing:!0}),L(r=>e.postMessage(r)),Mr(o),de())}var $a=ee("#__config"),nt=JSON.parse($a.textContent);nt.base=`${new URL(nt.base,Te())}`;function be(){return nt}function se(e){return nt.features.includes(e)}function G(e,t){return typeof t!="undefined"?nt.translations[e].replace("#",t.toString()):nt.translations[e]}function _e(e,t=document){return ee(`[data-md-component=${e}]`,t)}function ne(e,t=document){return N(`[data-md-component=${e}]`,t)}var ii=Be(Fr());function rr(e,t=0){e.setAttribute("tabindex",t.toString())}function yt(e){e.removeAttribute("tabindex")}function Tn(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function On(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function _n(e,t){e.setAttribute("data-md-state",t)}function Mn(e){e.removeAttribute("data-md-state")}function Ln(e,t){e.classList.toggle("md-nav__link--active",t)}function An(e){e.classList.remove("md-nav__link--active")}function kn(e,t){e.firstElementChild.innerHTML=t}function Cn(e,t){e.setAttribute("data-md-state",t)}function Hn(e){e.removeAttribute("data-md-state")}function jn(e,t){e.setAttribute("data-md-state",t)}function Fn(e){e.removeAttribute("data-md-state")}function Rn(e,t){e.setAttribute("data-md-state",t)}function In(e){e.removeAttribute("data-md-state")}function Pn(e,t){e.placeholder=t}function $n(e){e.placeholder=G("search.placeholder")}function Wn(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",Zt(t))}}function Un(e){e.textContent=G("search.result.placeholder")}function Vn(e,t){e.appendChild(t)}function Dn(e){e.innerHTML=""}function Nn(e,t){e.style.top=`${t}px`}function zn(e){e.style.top=""}function qn(e,t){let o=e.firstElementChild;o.style.height=`${t-2*o.offsetTop}px`}function Qn(e){let t=e.firstElementChild;t.style.height=""}function Kn(e,t){e.lastElementChild.appendChild(t)}function Bn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Yn(e,t){e.setAttribute("data-md-state",t)}function Rr(e){e.removeAttribute("data-md-state")}function Jn(e,t){e.setAttribute("data-md-state",t)}function Ir(e){e.removeAttribute("data-md-state")}function Gn(e,t){e.style.top=`${t}px`}function Xn(e){e.style.top=""}function Zn(e){return A("button",{class:"md-clipboard md-icon",title:G("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function ei(e,t){return A("aside",{class:"md-annotation","data-index":e,tabIndex:0},A("div",{class:"md-tooltip"},A("div",{class:"md-tooltip__inner md-typeset"},Array.from(t))),A("span",{class:"md-annotation__index"},e))}var Qe;(function(o){o[o.TEASER=1]="TEASER",o[o.PARENT=2]="PARENT"})(Qe||(Qe={}));function Pr(e,t){let o=t&2,r=t&1,n=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 se("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",...o?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},o>0&&A("div",{class:"md-search-result__icon md-icon"}),A("h1",{class:"md-search-result__title"},e.title),r>0&&e.text.length>0&&A("p",{class:"md-search-result__teaser"},fn(e.text,320)),r>0&&n.length>0&&A("p",{class:"md-search-result__terms"},G("search.result.term.missing"),": ",n)))}function ti(e){let t=e[0].score,o=[...e],r=o.findIndex(c=>!c.location.includes("#")),[n]=o.splice(r,1),i=o.findIndex(c=>c.score<t);i===-1&&(i=o.length);let a=o.slice(0,i),s=o.slice(i),l=[Pr(n,2|+(!r&&i===0)),...a.map(c=>Pr(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=>Pr(c,1)))]:[]];return A("li",{class:"md-search-result__item"},l)}function ri(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,o])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof o=="number"?Zt(o):o)))}function oi(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function Wa(e){let t=be(),o=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:o.toString(),class:"md-version__link"},e.title))}function ni(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(Wa)))}var Ua=0;function Va(e,{viewport$:t,print$:o}){let r=F(e).pipe(M(a=>{let s=a.closest("[data-tabs]");return s instanceof HTMLElement?R(...N(":scope > input",s).map(l=>w(l,"change"))):Y})),n=[],i=e.closest(".highlighttable")||e.closest(".highlight");if(i){let a=i.nextElementSibling;if(a instanceof HTMLOListElement&&(i.classList.contains("annotate")||se("content.code.annotate"))){let s=Array.from(a.children);a.remove();for(let l of N(".c, .c1, .cm",e)){let c,p=l.firstChild;do if(c=/\((\d+)\)/.exec(p.textContent),c&&c.index){let m=p.splitText(c.index);p=m.splitText(c[0].length);let[,u=-1]=c,h=s[+u-1];if(typeof h!="undefined"){let b=ei(+u,h.childNodes);m.replaceWith(b),n.push(b)}}while(c)}o.subscribe(l=>{if(l){i.insertAdjacentElement("afterend",a);for(let c of n){let p=parseInt(c.getAttribute("data-index"),10),m=ce(":scope .md-typeset",c);s[p-1].append(...Array.from(m.childNodes))}}else{a.remove();for(let c of n){let p=parseInt(c.getAttribute("data-index"),10),m=s[p-1].childNodes;ee(":scope .md-typeset",c).append(...Array.from(m))}}})}}return t.pipe(z("size"),Ne(r),f(()=>{let a=Ie(e),s=Jt(e);return j({scroll:s.width>a.width},n.length&&{annotations:n})}),z("scroll"))}function ai(e,t){let o=new T;if(o.pipe(he(xt("(hover)"))).subscribe(([{scroll:r},n])=>{r&&n?rr(e):yt(e)}),o.pipe(pe(1),vt(({annotations:r})=>!!(r==null?void 0:r.length)),f(({annotations:r})=>r.map(n=>ee(".md-tooltip",n))),Re(viewport$.pipe(z("size")))).subscribe(([r,{size:n}])=>{for(let i of r){let{x:a,width:s}=i.getBoundingClientRect();a+s>n.width?i.classList.add("md-tooltip--end"):i.classList.remove("md-tooltip--end")}}),ii.default.isSupported()){let r=e.closest("pre");r.id=`__code_${++Ua}`,r.insertBefore(Zn(r.id),e)}return Va(e,t).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}function Da(e,{target$:t,print$:o}){let r=!1;return R(t.pipe(f(n=>n.closest("details:not([open])")),O(n=>e===n),oe({action:"open",scroll:!0})),o.pipe(O(n=>n||!r),L(()=>r=e.open),f(n=>({action:n?"open":"close"}))))}function si(e,t){let o=new T;return o.subscribe(({action:r,scroll:n})=>{r==="open"?e.setAttribute("open",""):e.removeAttribute("open"),n&&e.scrollIntoView()}),Da(e,t).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}var ci=A("table");function li(e){return qe(e,ci),qe(ci,oi(e)),F({ref:e})}function Na(e){return e.classList.contains("tabbed-alternate")?R(...N(":scope > input",e).map(t=>w(t,"change").pipe(oe(t.id)))).pipe(f(t=>({active:ee(`label[for=${t}]`)}))):Y}function pi(e){let t=new T;return t.subscribe(({active:o})=>{let r=o.parentElement;(o.offsetLeft+o.offsetWidth>r.scrollLeft+r.offsetWidth||o.offsetLeft<r.scrollLeft)&&r.scrollTo({behavior:"smooth",left:o.offsetLeft})}),Na(e).pipe(L(o=>t.next(o)),P(()=>t.complete()),f(o=>j({ref:e},o)))}function ui(e,{target$:t,viewport$:o,print$:r}){return R(...N("pre > code",e).map(n=>ai(n,{viewport$:o,print$:r})),...N("table:not([class])",e).map(n=>li(n)),...N("details",e).map(n=>si(n,{target$:t,print$:r})),...N("[data-tabs]",e).map(n=>pi(n)))}function za(e,{alert$:t}){return t.pipe(M(o=>R(F(!0),F(!1).pipe(Ae(2e3))).pipe(f(r=>({message:o,open:r})))))}function fi(e,t){let o=new T;return o.pipe(q(Z)).subscribe(({message:r,open:n})=>{kn(e,r),n?Cn(e,"open"):Hn(e)}),za(e,t).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}function qa({viewport$:e}){if(!se("header.autohide"))return F(!1);let t=e.pipe(f(({offset:{y:n}})=>n),Se(2,1),f(([n,i])=>[n<i,i]),z(0)),o=K([e,t]).pipe(O(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),f(([,[n]])=>n),Q()),r=Xt("search");return K([e,r]).pipe(f(([{offset:n},i])=>n.y>400&&!i),Q(),M(n=>n?o:F(!1)),D(!1))}function mi(e,t){return ye(()=>{let o=getComputedStyle(e);return F(o.position==="sticky"||o.position==="-webkit-sticky")}).pipe(Re(Pe(e),qa(t)),f(([o,{height:r},n])=>({height:o?r:0,sticky:o,hidden:n})),Q((o,r)=>o.sticky===r.sticky&&o.height===r.height&&o.hidden===r.hidden),J(1))}function di(e,{header$:t,main$:o}){let r=new T;return r.pipe(z("active"),Re(t),q(Z)).subscribe(([{active:n},{hidden:i}])=>{n?jn(e,i?"hidden":"shadow"):Fn(e)}),o.subscribe(n=>r.next(n)),t.pipe(f(n=>j({ref:e},n)))}function Qa(e,{viewport$:t,header$:o}){return tr(e,{header$:o,viewport$:t}).pipe(f(({offset:{y:r}})=>{let{height:n}=Ie(e);return{active:r>=n}}),z("active"))}function hi(e,t){let o=new T;o.pipe(q(Z)).subscribe(({active:n})=>{n?Rn(e,"active"):In(e)});let r=ce("article h1");return typeof r=="undefined"?Y:Qa(r,t).pipe(L(n=>o.next(n)),P(()=>o.complete()),f(n=>j({ref:e},n)))}function bi(e,{viewport$:t,header$:o}){let r=o.pipe(f(({height:i})=>i),Q()),n=r.pipe(M(()=>Pe(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),z("bottom"))));return K([r,n,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})),Q((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ka(e){let t=__md_get("__palette")||{index:e.findIndex(r=>matchMedia(r.getAttribute("data-md-color-media")).matches)},o=F(...e).pipe(ae(r=>w(r,"change").pipe(oe(r))),D(e[Math.max(0,t.index)]),f(r=>({index:e.indexOf(r),color:{scheme:r.getAttribute("data-md-color-scheme"),primary:r.getAttribute("data-md-color-primary"),accent:r.getAttribute("data-md-color-accent")}})),J(1));return o.subscribe(r=>{__md_set("__palette",r)}),o}function vi(e){let t=new T;t.subscribe(r=>{for(let[n,i]of Object.entries(r.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${n}`,i);for(let n=0;n<o.length;n++){let i=o[n].nextElementSibling;i instanceof HTMLElement&&(i.hidden=r.index!==n)}});let o=N("input",e);return Ka(o).pipe(L(r=>t.next(r)),P(()=>t.complete()),f(r=>j({ref:e},r)))}var $r=Be(Fr());function Ba(e){let t=N(".md-annotation",e);for(let r of t)r.hidden=!0;let o=e.innerText;for(let r of t)r.hidden=!1;return o}function xi({alert$:e}){$r.default.isSupported()&&new C(t=>{new $r.default("[data-clipboard-target], [data-clipboard-text]",{text:o=>o.getAttribute("data-clipboard-text")||Ba(ee(o.getAttribute("data-clipboard-target")))}).on("success",o=>t.next(o))}).subscribe(()=>e.next(G("clipboard.copied")))}function Ya(e){if(e.length<2)return e;let[t,o]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),r=0;if(t===o)r=t.length;else for(;t.charCodeAt(r)===o.charCodeAt(r);)r++;let n=be();return e.map(i=>i.replace(t.slice(0,r),n.base))}function gi({document$:e,location$:t,viewport$:o}){let r=be();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",w(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let n=ce("link[rel=icon]");typeof n!="undefined"&&(n.href=n.href);let i=vn(new URL("sitemap.xml",r.base)).pipe(f(c=>Ya(N("loc",c).map(p=>p.textContent))),M(c=>w(document.body,"click").pipe(O(p=>!p.metaKey&&!p.ctrlKey),M(p=>{if(p.target instanceof Element){let m=p.target.closest("a");if(m&&!m.target){let u=new URL(m.href);if(u.search="",u.hash="",u.pathname!==location.pathname&&c.includes(u.toString()))return p.preventDefault(),F({url:new URL(m.href)})}}return Y}))),de()),a=w(window,"popstate").pipe(O(c=>c.state!==null),f(c=>({url:new URL(location.href),offset:c.state})),de());R(i,a).pipe(Q((c,p)=>c.url.href===p.url.href),f(({url:c})=>c)).subscribe(t);let s=t.pipe(z("pathname"),M(c=>er(c.href).pipe(Fe(()=>(ln(c),Y)))),de());i.pipe(ot(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(Yt(1)).subscribe(c=>{for(let p 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]",...se("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let m=ce(p),u=ce(p,c);typeof m!="undefined"&&typeof u!="undefined"&&qe(m,u)}}),e.pipe(Yt(1),f(()=>_e("container")),M(c=>F(...N("script",c))),Sr(c=>{let p=A("script");if(c.src){for(let m of c.getAttributeNames())p.setAttribute(m,c.getAttribute(m));return qe(c,p),new C(m=>{p.onload=()=>m.complete()})}else return p.textContent=c.textContent,qe(c,p),me})).subscribe(),R(i,a).pipe(ot(e)).subscribe(({url:c,offset:p})=>{c.hash&&!p?dn(c.hash):Hr(p||{y:0})}),o.pipe(bt(i),wr(250),z("offset")).subscribe(({offset:c})=>{history.replaceState(c,"")}),R(i,a).pipe(Se(2,1),O(([c,p])=>c.url.pathname===p.url.pathname),f(([,c])=>c)).subscribe(({offset:c})=>{Hr(c||{y:0})})}var Xa=Be(Wr());var Si=Be(Wr());function Ur(e,t){let o=new RegExp(e.separator,"img"),r=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(o,"|")})`,"img");return a=>(t?(0,Si.default)(a):a).replace(i,r).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function wi(e){return e.split(/"([^"]+)"/g).map((t,o)=>o&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var ke;(function(n){n[n.SETUP=0]="SETUP",n[n.READY=1]="READY",n[n.QUERY=2]="QUERY",n[n.RESULT=3]="RESULT"})(ke||(ke={}));function it(e){return e.type===1}function Ei(e){return e.type===2}function at(e){return e.type===3}function Za({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 r={pipeline:G("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:se("search.suggest")};return{config:e,docs:t,options:r}}function Ti(e,t){let o=be(),r=new Worker(e),n=new T,i=En(r,{tx$:n}).pipe(f(a=>{if(at(a))for(let s of a.data.items)for(let l of s)l.location=`${new URL(l.location,o.base)}`;return a}),de());return re(t).pipe(f(a=>({type:ke.SETUP,data:Za(a)}))).subscribe(n.next.bind(n)),{tx$:n,rx$:i}}function Oi(){let e=be(),t=Oe(new URL("../versions.json",e.base)),o=t.pipe(f(r=>{let[,n]=e.base.match(/([^/]+)\/?$/);return r.find(({version:i,aliases:a})=>i===n||a.includes(n))||r[0]}));K([t,o]).subscribe(([r,n])=>{var a;if(ee(".md-header__topic").appendChild(ni(r,n)),__md_get("__outdated",sessionStorage)===null){let s=((a=e.version)==null?void 0:a.default)||"latest",l=!n.aliases.includes(s);if(__md_set("__outdated",l,sessionStorage),l)for(let c of ne("outdated"))c.hidden=!1}})}function es(e,{rx$:t}){let o=(__search==null?void 0:__search.transform)||wi,{searchParams:r}=Te();r.has("q")&&$e("search",!0);let n=t.pipe(O(it),pe(1),f(()=>r.get("q")||""));n.subscribe(s=>{s&&(e.value=s)});let i=tn(e),a=R(w(e,"keyup"),w(e,"focus").pipe(Ae(1)),n).pipe(f(()=>o(e.value)),D(""),Q());return K([a,i]).pipe(f(([s,l])=>({value:s,focus:l})),J(1))}function _i(e,{tx$:t,rx$:o}){let r=new T;return r.pipe(z("value"),f(({value:n})=>({type:ke.QUERY,data:n}))).subscribe(t.next.bind(t)),r.pipe(z("focus")).subscribe(({focus:n})=>{n?($e("search",n),Pn(e,"")):$n(e)}),w(e.form,"reset").pipe(Lr(r.pipe(Tr(1)))).subscribe(()=>Ee(e)),es(e,{tx$:t,rx$:o}).pipe(L(n=>r.next(n)),P(()=>r.complete()),f(n=>j({ref:e},n)))}function Mi(e,{rx$:t},{query$:o}){let r=new T,n=nn(e.parentElement).pipe(O(Boolean)),i=ee(":scope > :first-child",e),a=ee(":scope > :last-child",e),s=t.pipe(O(it),pe(1));return r.pipe(q(Z),he(o),bt(s)).subscribe(([{items:c},{value:p}])=>{p?Wn(i,c.length):Un(i)}),r.pipe(q(Z),L(()=>Dn(a)),M(({items:c})=>R(F(...c.slice(0,10)),F(...c.slice(10)).pipe(Se(4),kr(n),M(([p])=>F(...p)))))).subscribe(c=>{Vn(a,ti(c))}),t.pipe(O(at),f(({data:c})=>c)).pipe(L(c=>r.next(c)),P(()=>r.complete()),f(c=>j({ref:e},c)))}function ts(e,{query$:t}){return t.pipe(f(({value:o})=>{let r=Te();return r.hash="",r.searchParams.delete("h"),r.searchParams.set("q",o),{url:r}}))}function Li(e,t){let o=new T;return o.subscribe(({url:r})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${r}`}),w(e,"click").subscribe(r=>r.preventDefault()),ts(e,t).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}function Ai(e,{rx$:t},{keyboard$:o}){let r=new T,n=_e("search-query"),i=R(w(n,"keydown"),w(n,"focus")).pipe(q(Ce),f(()=>n.value),Q());return r.pipe(Re(i),f(([{suggestions:s},l])=>{let c=l.split(/([\s-]+)/);if((s==null?void 0:s.length)&&c[c.length-1]){let p=s[s.length-1];p.startsWith(c[c.length-1])&&(c[c.length-1]=p)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),o.pipe(O(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(O(at),f(({data:s})=>s)).pipe(L(s=>r.next(s)),P(()=>r.complete()),f(()=>({ref:e})))}function ki(e,{index$:t,keyboard$:o}){let r=be();try{let n=(__search==null?void 0:__search.worker)||r.search,i=Ti(n,t),a=_e("search-query",e),s=_e("search-result",e),{tx$:l,rx$:c}=i;l.pipe(O(Ei),ot(c.pipe(O(it))),pe(1)).subscribe(l.next.bind(l)),o.pipe(O(({mode:u})=>u==="search")).subscribe(u=>{let h=ze();switch(u.type){case"Enter":if(h===a){let b=new Map;for(let d of N(":first-child [href]",s)){let V=d.firstElementChild;b.set(d,parseFloat(V.getAttribute("data-md-score")))}if(b.size){let[[d]]=[...b].sort(([,V],[,B])=>B-V);d.click()}u.claim()}break;case"Escape":case"Tab":$e("search",!1),Ee(a,!1);break;case"ArrowUp":case"ArrowDown":if(typeof h=="undefined")Ee(a);else{let b=[a,...N(":not(details) > [href], summary, details[open] [href]",s)],d=Math.max(0,(Math.max(0,b.indexOf(h))+b.length+(u.type==="ArrowUp"?-1:1))%b.length);Ee(b[d])}u.claim();break;default:a!==ze()&&Ee(a)}}),o.pipe(O(({mode:u})=>u==="global")).subscribe(u=>{switch(u.type){case"f":case"s":case"/":Ee(a),an(a),u.claim();break}});let p=_i(a,i),m=Mi(s,i,{query$:p});return R(p,m).pipe(Ne(...ne("search-share",e).map(u=>Li(u,{query$:p})),...ne("search-suggest",e).map(u=>Ai(u,i,{keyboard$:o}))))}catch(n){return e.hidden=!0,Y}}function Ci(e,{index$:t,location$:o}){return K([t,o.pipe(D(Te()),O(r=>r.searchParams.has("h")))]).pipe(f(([r,n])=>Ur(r.config,!0)(n.searchParams.get("h"))),f(r=>{var a;let n=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=r(l);c.length>l.length&&n.set(s,c)}for(let[s,l]of n){let{childNodes:c}=A("span",null,l);s.replaceWith(...Array.from(c))}return{ref:e,nodes:n}}))}function rs(e,{viewport$:t,main$:o}){let r=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return K([o,t]).pipe(f(([{offset:n,height:i},{offset:{y:a}}])=>(i=i+Math.min(r,Math.max(0,a-n))-r,{height:i,locked:a>=n+r})),Q((n,i)=>n.height===i.height&&n.locked===i.locked))}function Vr(e,r){var n=r,{header$:t}=n,o=Kr(n,["header$"]);let i=new T;return i.pipe(q(Z),he(t)).subscribe({next([{height:a},{height:s}]){qn(e,a),Nn(e,s)},complete(){zn(e),Qn(e)}}),rs(e,o).pipe(L(a=>i.next(a)),P(()=>i.complete()),f(a=>j({ref:e},a)))}function Hi(e,t){if(typeof t!="undefined"){let o=`https://api.github.com/repos/${e}/${t}`;return ht(Oe(`${o}/releases/latest`).pipe(f(r=>({version:r.tag_name})),De({})),Oe(o).pipe(f(r=>({stars:r.stargazers_count,forks:r.forks_count})),De({}))).pipe(f(([r,n])=>j(j({},r),n)))}else{let o=`https://api.github.com/users/${e}`;return Oe(o).pipe(f(r=>({repositories:r.public_repos})),De({}))}}function ji(e,t){let o=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Oe(o).pipe(f(({star_count:r,forks_count:n})=>({stars:r,forks:n})),De({}))}function Fi(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,o,r]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Hi(o,r);case"gitlab":let[,n,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return ji(n,i);default:return Y}}var os;function ns(e){return os||(os=ye(()=>{let t=__md_get("__source",sessionStorage);return t?F(t):Fi(e.href).pipe(L(o=>__md_set("__source",o,sessionStorage)))}).pipe(Fe(()=>Y),O(t=>Object.keys(t).length>0),f(t=>({facts:t})),J(1)))}function Ri(e){let t=new T;return t.subscribe(({facts:o})=>{Kn(e,ri(o)),Bn(e,"done")}),ns(e).pipe(L(o=>t.next(o)),P(()=>t.complete()),f(o=>j({ref:e},o)))}function is(e,{viewport$:t,header$:o}){return Pe(document.body).pipe(M(()=>tr(e,{header$:o,viewport$:t})),f(({offset:{y:r}})=>({hidden:r>=10})),z("hidden"))}function Ii(e,t){let o=new T;return o.pipe(q(Z)).subscribe({next({hidden:r}){r?Yn(e,"hidden"):Rr(e)},complete(){Rr(e)}}),(se("navigation.tabs.sticky")?F({hidden:!1}):is(e,t)).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}function as(e,{viewport$:t,header$:o}){let r=new Map,n=N("[href^=\\#]",e);for(let s of n){let l=decodeURIComponent(s.hash.substring(1)),c=ce(`[id="${l}"]`);typeof c!="undefined"&&r.set(s,c)}let i=o.pipe(f(s=>24+s.height));return Pe(document.body).pipe(z("height"),M(s=>ye(()=>{let l=[];return F([...r].reduce((c,[p,m])=>{for(;l.length&&r.get(l[l.length-1]).tagName>=m.tagName;)l.pop();let u=m.offsetTop;for(;!u&&m.parentElement;)m=m.parentElement,u=m.offsetTop;return c.set([...l=[...l,p]].reverse(),u)},new Map))}).pipe(f(l=>new Map([...l].sort(([,c],[,p])=>c-p))),M(l=>K([t,i]).pipe(Or(([c,p],[{offset:{y:m},size:u},h])=>{let b=m+u.height>=Math.floor(s.height);for(;p.length;){let[,d]=p[0];if(d-h<m||b)c=[...c,p.shift()];else break}for(;c.length;){let[,d]=c[c.length-1];if(d-h>=m&&!b)p=[c.pop(),...p];else break}return[c,p]},[[],[...l]]),Q((c,p)=>c[0]===p[0]&&c[1]===p[1])))))).pipe(f(([s,l])=>({prev:s.map(([c])=>c),next:l.map(([c])=>c)})),D({prev:[],next:[]}),Se(2,1),f(([s,l])=>s.prev.length<l.prev.length?{prev:l.prev.slice(Math.max(0,s.prev.length-1),l.prev.length),next:[]}:{prev:l.prev.slice(-1),next:l.next.slice(0,l.next.length-s.next.length)}))}function Pi(e,t){let o=new T;return o.pipe(q(Z)).subscribe(({prev:r,next:n})=>{for(let[i]of n)An(i),Mn(i);for(let[i,[a]]of r.entries())Ln(a,i===r.length-1),_n(a,"blur");if(se("navigation.tracking")){let i=Te(),a=r[r.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}`)}}),as(e,t).pipe(L(r=>o.next(r)),P(()=>o.complete()),f(r=>j({ref:e},r)))}function ss(e,{viewport$:t,main$:o}){let r=t.pipe(f(({offset:{y:i}})=>i),Se(2,1),f(([i,a])=>i>a&&a),Q()),n=o.pipe(z("active"));return K([n,r]).pipe(f(([{active:i},a])=>({hidden:!(i&&a)})),Q((i,a)=>i.hidden===a.hidden))}function $i(e,{viewport$:t,header$:o,main$:r}){let n=new T;return n.pipe(q(Z),he(o.pipe(z("height")))).subscribe({next([{hidden:i},{height:a}]){Gn(e,a+16),i?(Jn(e,"hidden"),Ee(e,!1),rr(e,-1)):(Ir(e),yt(e))},complete(){Xn(e),Ir(e),yt(e)}}),ss(e,{viewport$:t,header$:o,main$:r}).pipe(L(i=>n.next(i)),P(()=>n.complete()),f(i=>j({ref:e},i)))}function Wi({document$:e,tablet$:t}){e.pipe(M(()=>F(...N("[data-md-state=indeterminate]"))),L(o=>{o.indeterminate=!0,o.checked=!1}),ae(o=>w(o,"change").pipe(vt(()=>o.hasAttribute("data-md-state")),oe(o))),he(t)).subscribe(([o,r])=>{o.removeAttribute("data-md-state"),r&&(o.checked=!1)})}function cs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ui({document$:e}){e.pipe(M(()=>F(...N("[data-md-scrollfix]"))),L(t=>t.removeAttribute("data-md-scrollfix")),O(cs),ae(t=>w(t,"touchstart").pipe(oe(t)))).subscribe(t=>{let o=t.scrollTop;o===0?t.scrollTop=1:o+t.offsetHeight===t.scrollHeight&&(t.scrollTop=o-1)})}function Vi({viewport$:e,tablet$:t}){K([Xt("search"),t]).pipe(f(([o,r])=>o&&!r),M(o=>F(o).pipe(Ae(o?400:100),q(Z))),he(e)).subscribe(([o,{offset:{y:r}}])=>{o?Tn(document.body,r):On(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var st=en(),or=pn(),Dr=hn(),Nr=cn(),ve=wn(),nr=xt("(min-width: 960px)"),Di=xt("(min-width: 1220px)"),Ni=bn(),zi=be(),qi=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||Oe(new URL("search/search_index.json",zi.base)):Y,zr=new T;xi({alert$:zr});se("navigation.instant")&&gi({document$:st,location$:or,viewport$:ve});var Ki;((Ki=zi.version)==null?void 0:Ki.provider)==="mike"&&Oi();R(or,Dr).pipe(Ae(125)).subscribe(()=>{$e("drawer",!1),$e("search",!1)});Nr.pipe(O(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ce("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let o=ce("[href][rel=next]");typeof o!="undefined"&&o.click();break}});Wi({document$:st,tablet$:nr});Ui({document$:st});Vi({viewport$:ve,tablet$:nr});var We=mi(_e("header"),{viewport$:ve}),ir=st.pipe(f(()=>_e("main")),M(e=>bi(e,{viewport$:ve,header$:We})),J(1)),ls=R(...ne("dialog").map(e=>fi(e,{alert$:zr})),...ne("header").map(e=>di(e,{viewport$:ve,header$:We,main$:ir})),...ne("palette").map(e=>vi(e)),...ne("search").map(e=>ki(e,{index$:qi,keyboard$:Nr})),...ne("source").map(e=>Ri(e))),ps=ye(()=>R(...ne("content").map(e=>ui(e,{target$:Dr,viewport$:ve,print$:Ni})),...ne("content").map(e=>se("search.highlight")?Ci(e,{index$:qi,location$:or}):Y),...ne("header-title").map(e=>hi(e,{viewport$:ve,header$:We})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Cr(Di,()=>Vr(e,{viewport$:ve,header$:We,main$:ir})):Cr(nr,()=>Vr(e,{viewport$:ve,header$:We,main$:ir}))),...ne("tabs").map(e=>Ii(e,{viewport$:ve,header$:We})),...ne("toc").map(e=>Pi(e,{viewport$:ve,header$:We})),...ne("top").map(e=>$i(e,{viewport$:ve,header$:We,main$:ir})))),Qi=st.pipe(M(()=>ps),Ne(ls),J(1));Qi.subscribe();window.document$=st;window.location$=or;window.target$=Dr;window.keyboard$=Nr;window.viewport$=ve;window.tablet$=nr;window.screen$=Di;window.print$=Ni;window.alert$=zr;window.component$=Qi;})();
|
|
//# sourceMappingURL=bundle.6273739e.min.js.map
|
|
|