1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-22 11:23:40 +01:00
mkdocs-material/material/assets/javascripts/bundle.3020a18e.min.js
2022-12-12 10:42:43 +01:00

30 lines
108 KiB
JavaScript

"use strict";(()=>{var Pi=Object.create;var vr=Object.defineProperty;var $i=Object.getOwnPropertyDescriptor;var Ii=Object.getOwnPropertyNames,Rt=Object.getOwnPropertySymbols,Fi=Object.getPrototypeOf,gr=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var nn=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t)=>{for(var r in t||(t={}))gr.call(t,r)&&nn(e,r,t[r]);if(Rt)for(var r of Rt(t))on.call(t,r)&&nn(e,r,t[r]);return e};var an=(e,t)=>{var r={};for(var n in e)gr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Rt)for(var n of Rt(e))t.indexOf(n)<0&&on.call(e,n)&&(r[n]=e[n]);return r};var kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ji=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ii(t))!gr.call(e,o)&&o!==r&&vr(e,o,{get:()=>t[o],enumerable:!(n=$i(t,o))||n.enumerable});return e};var rt=(e,t,r)=>(r=e!=null?Pi(Fi(e)):{},ji(t||!e||!e.__esModule?vr(r,"default",{value:e,enumerable:!0}):r,e));var cn=kt((yr,sn)=>{(function(e,t){typeof yr=="object"&&typeof sn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(yr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={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 a(T){return!!(T&&T!==document&&T.nodeName!=="HTML"&&T.nodeName!=="BODY"&&"classList"in T&&"contains"in T.classList)}function f(T){var De=T.type,je=T.tagName;return!!(je==="INPUT"&&s[De]&&!T.readOnly||je==="TEXTAREA"&&!T.readOnly||T.isContentEditable)}function c(T){T.classList.contains("focus-visible")||(T.classList.add("focus-visible"),T.setAttribute("data-focus-visible-added",""))}function u(T){!T.hasAttribute("data-focus-visible-added")||(T.classList.remove("focus-visible"),T.removeAttribute("data-focus-visible-added"))}function p(T){T.metaKey||T.altKey||T.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(T){n=!1}function d(T){!a(T.target)||(n||f(T.target))&&c(T.target)}function h(T){!a(T.target)||(T.target.classList.contains("focus-visible")||T.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(T.target))}function b(T){document.visibilityState==="hidden"&&(o&&(n=!0),K())}function K(){document.addEventListener("mousemove",V),document.addEventListener("mousedown",V),document.addEventListener("mouseup",V),document.addEventListener("pointermove",V),document.addEventListener("pointerdown",V),document.addEventListener("pointerup",V),document.addEventListener("touchmove",V),document.addEventListener("touchstart",V),document.addEventListener("touchend",V)}function X(){document.removeEventListener("mousemove",V),document.removeEventListener("mousedown",V),document.removeEventListener("mouseup",V),document.removeEventListener("pointermove",V),document.removeEventListener("pointerdown",V),document.removeEventListener("pointerup",V),document.removeEventListener("touchmove",V),document.removeEventListener("touchstart",V),document.removeEventListener("touchend",V)}function V(T){T.target.nodeName&&T.target.nodeName.toLowerCase()==="html"||(n=!1,X())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",b,!0),K(),r.addEventListener("focus",d,!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 fn=kt(xr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(X,V){d.append(V,X)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;h<p.length;h++){var b=p[h];if(Object.prototype.toString.call(b)==="[object Array]"||b.length!==2)this.append(b[0],b[1]);else throw new TypeError("Expected [string, any] as entry at index "+h+" of URLSearchParams's input")}else for(var K in p)p.hasOwnProperty(K)&&this.append(K,p[K]);else throw new TypeError("Unsupported input's type for URLSearchParams")},u=c.prototype;u.append=function(p,m){p in this._entries?this._entries[p].push(String(m)):this._entries[p]=[String(m)]},u.delete=function(p){delete this._entries[p]},u.get=function(p){return p in this._entries?this._entries[p][0]:null},u.getAll=function(p){return p in this._entries?this._entries[p].slice(0):[]},u.has=function(p){return p in this._entries},u.set=function(p,m){this._entries[p]=[String(m)]},u.forEach=function(p,m){var d;for(var h in this._entries)if(this._entries.hasOwnProperty(h)){d=this._entries[h];for(var b=0;b<d.length;b++)p.call(m,d[b],h,this)}},u.keys=function(){var p=[];return this.forEach(function(m,d){p.push(d)}),n(p)},u.values=function(){var p=[];return this.forEach(function(m){p.push(m)}),n(p)},u.entries=function(){var p=[];return this.forEach(function(m,d){p.push([d,m])}),n(p)},r&&(u[Symbol.iterator]=u.entries),u.toString=function(){var p=[];return this.forEach(function(m,d){p.push(o(d)+"="+o(m))}),p.join("&")},e.URLSearchParams=c},a=function(){try{var c=e.URLSearchParams;return new c("?a=1").toString()==="a=1"&&typeof c.prototype.set=="function"&&typeof c.prototype.entries=="function"}catch(u){return!1}};a()||s();var f=e.URLSearchParams.prototype;typeof f.sort!="function"&&(f.sort=function(){var c=this,u=[];this.forEach(function(m,d){u.push([d,m]),c._entries||c.delete(d)}),u.sort(function(m,d){return m[0]<d[0]?-1:m[0]>d[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p<u.length;p++)this.append(u[p][0],u[p][1])}),typeof f._fromString!="function"&&Object.defineProperty(f,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(c){if(this._entries)this._entries={};else{var u=[];this.forEach(function(h,b){u.push(b)});for(var p=0;p<u.length;p++)this.delete(u[p])}c=c.replace(/^\?/,"");for(var m=c.split("&"),d,p=0;p<m.length;p++)d=m[p].split("="),this.append(i(d[0]),d.length>1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:xr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(T){throw new Error("URL unable to set base "+c+" due to "+T)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),b=!0,K=!0,X=this;["append","delete","set"].forEach(function(T){var De=h[T];h[T]=function(){De.apply(h,arguments),b&&(K=!1,X.search=h.toString(),K=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var V=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==V&&(V=this.search,K&&(b=!1,this.searchParams._fromString(this.search),b=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:xr)});var qr=kt((Lt,zr)=>{/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(t,r){typeof Lt=="object"&&typeof zr=="object"?zr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Lt=="object"?Lt.ClipboardJS=r():t.ClipboardJS=r()})(Lt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return Hi}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(F){try{return document.execCommand(F)}catch(_){return!1}}var d=function(_){var O=p()(_);return m("cut"),O},h=d;function b(F){var _=document.documentElement.getAttribute("dir")==="rtl",O=document.createElement("textarea");O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[_?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return O.style.top="".concat(k,"px"),O.setAttribute("readonly",""),O.value=F,O}var K=function(_,O){var k=b(_);O.container.appendChild(k);var $=p()(k);return m("copy"),k.remove(),$},X=function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},k="";return typeof _=="string"?k=K(_,O):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?k=K(_.value,O):(k=p()(_),m("copy")),k},V=X;function T(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(O){return typeof O}:T=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},T(F)}var De=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=_.action,k=O===void 0?"copy":O,$=_.container,z=_.target,_e=_.text;if(k!=="copy"&&k!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&T(z)==="object"&&z.nodeType===1){if(k==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(k==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(_e)return V(_e,{container:$});if(z)return k==="cut"?h(z):V(z,{container:$})},je=De;function Pe(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(O){return typeof O}:Pe=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Pe(F)}function Ti(F,_){if(!(F instanceof _))throw new TypeError("Cannot call a class as a function")}function rn(F,_){for(var O=0;O<_.length;O++){var k=_[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(F,k.key,k)}}function _i(F,_,O){return _&&rn(F.prototype,_),O&&rn(F,O),F}function Mi(F,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(_&&_.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),_&&hr(F,_)}function hr(F,_){return hr=Object.setPrototypeOf||function(k,$){return k.__proto__=$,k},hr(F,_)}function Li(F){var _=Ri();return function(){var k=At(F),$;if(_){var z=At(this).constructor;$=Reflect.construct(k,arguments,z)}else $=k.apply(this,arguments);return Ai(this,$)}}function Ai(F,_){return _&&(Pe(_)==="object"||typeof _=="function")?_:Ci(F)}function Ci(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function Ri(){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(F){return!1}}function At(F){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},At(F)}function br(F,_){var O="data-clipboard-".concat(F);if(!!_.hasAttribute(O))return _.getAttribute(O)}var ki=function(F){Mi(O,F);var _=Li(O);function O(k,$){var z;return Ti(this,O),z=_.call(this),z.resolveOptions($),z.listenClick(k),z}return _i(O,[{key:"resolveOptions",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof $.action=="function"?$.action:this.defaultAction,this.target=typeof $.target=="function"?$.target:this.defaultTarget,this.text=typeof $.text=="function"?$.text:this.defaultText,this.container=Pe($.container)==="object"?$.container:document.body}},{key:"listenClick",value:function($){var z=this;this.listener=c()($,"click",function(_e){return z.onClick(_e)})}},{key:"onClick",value:function($){var z=$.delegateTarget||$.currentTarget,_e=this.action(z)||"copy",Ct=je({action:_e,container:this.container,target:this.target(z),text:this.text(z)});this.emit(Ct?"success":"error",{action:_e,text:Ct,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function($){return br("action",$)}},{key:"defaultTarget",value:function($){var z=br("target",$);if(z)return document.querySelector(z)}},{key:"defaultText",value:function($){return br("text",$)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return V($,z)}},{key:"cut",value:function($){return h($)}},{key:"isSupported",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof $=="string"?[$]:$,_e=!!document.queryCommandSupported;return z.forEach(function(Ct){_e=_e&&!!document.queryCommandSupported(Ct)}),_e}}]),O}(a()),Hi=ki},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 s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var b=c.apply(this,arguments);return u.addEventListener(m,b,h),{destroy:function(){u.removeEventListener(m,b,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(b){return a(b,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[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 s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(b){b.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f<c;f++)a[f].fn.apply(a[f].ctx,s);return this},off:function(i,s){var a=this.e||(this.e={}),f=a[i],c=[];if(f&&s)for(var u=0,p=f.length;u<p;u++)f[u].fn!==s&&f[u].fn._!==s&&c.push(f[u]);return c.length?a[i]=c:delete a[i],this}},n.exports=o,n.exports.TinyEmitter=o}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return function(){r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o}}(),function(){r.d=function(n,o){for(var i in o)r.o(o,i)&&!r.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:o[i]})}}(),function(){r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}}(),r(686)}().default})});var Jr=kt((lE,Jo)=>{"use strict";/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var ts=/["'&<>]/;Jo.exports=rs;function rs(e){var t=""+e,r=ts.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==i&&(o+=t.substring(s,i)),s=i+1,o+=n}return s!==i?o+t.substring(s,i):o}});Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(r,n){return Array.isArray(n)?r.push.apply(r,e.call(n,t-1)):r.push(n),r},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var uT=rt(cn());self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise(function(r,n){var o=new XMLHttpRequest,i=[],s=[],a={},f=function(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return s},get:function(u){return a[u.toLowerCase()]},has:function(u){return u.toLowerCase()in a}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(u,p,m){i.push(p=p.toLowerCase()),s.push([p,m]),a[p]=a[p]?a[p]+","+m:m}),r(f())},o.onerror=n,o.withCredentials=t.credentials=="include",t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)})});var lT=rt(fn());/*! *****************************************************************************
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 Er=function(e,t){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Er(e,t)};function ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Er(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function un(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(n.next(u))}catch(p){s(p)}}function f(u){try{c(n.throw(u))}catch(p){s(p)}}function c(u){u.done?i(u.value):o(u.value).then(a,f)}c((n=n.apply(e,t||[])).next())})}function Ht(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return f([c,u])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function me(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function U(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function W(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Ye(e){return this instanceof Ye?(this.v=e,this):new Ye(e)}function pn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(m){n[m]&&(o[m]=function(d){return new Promise(function(h,b){i.push([m,d,h,b])>1||a(m,d)})})}function a(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof Ye?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function ln(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof me=="function"?me(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,f){s=e[i](s),o(a,f,s.done,s.value)})}}function o(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function L(e){return typeof e=="function"}function Pt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var $t=Pt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function Ue(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $e=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=me(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(b){t={error:b}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(L(u))try{u()}catch(b){i=b instanceof $t?b.errors:[b]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=me(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{mn(h)}catch(b){i=i!=null?i:[],b instanceof $t?i=W(W([],U(i)),U(b.errors)):i.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new $t(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)mn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ue(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ue(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var wr=$e.EMPTY;function It(e){return e instanceof $e||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function mn(e){L(e)?e():e.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=nt.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,W([e,t],U(r))):setTimeout.apply(void 0,W([e,t],U(r)))},clearTimeout:function(e){var t=nt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ft(e){nt.setTimeout(function(){var t=Me.onUnhandledError;if(t)t(e);else throw e})}function de(){}var dn=function(){return Sr("C",void 0,void 0)}();function hn(e){return Sr("E",void 0,e)}function bn(e){return Sr("N",e,void 0)}function Sr(e,t,r){return{kind:e,value:t,error:r}}var Be=null;function ot(e){if(Me.useDeprecatedSynchronousErrorHandling){var t=!Be;if(t&&(Be={errorThrown:!1,error:null}),e(),t){var r=Be,n=r.errorThrown,o=r.error;if(Be=null,n)throw o}}else e()}function vn(e){Me.useDeprecatedSynchronousErrorHandling&&Be&&(Be.errorThrown=!0,Be.error=e)}var yt=function(e){ne(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,It(r)&&r.add(n)):n.destination=Vi,n}return t.create=function(r,n,o){return new Ge(r,n,o)},t.prototype.next=function(r){this.isStopped?Tr(bn(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Tr(hn(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Tr(dn,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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($e);var Ui=Function.prototype.bind;function Or(e,t){return Ui.call(e,t)}var Wi=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){jt(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){jt(n)}else jt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){jt(r)}},e}(),Ge=function(e){ne(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(L(r)||!r)s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var a;i&&Me.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Or(r.next,a),error:r.error&&Or(r.error,a),complete:r.complete&&Or(r.complete,a)}):s=r}return i.destination=new Wi(s),i}return t}(yt);function jt(e){Me.useDeprecatedSynchronousErrorHandling?vn(e):Ft(e)}function Di(e){throw e}function Tr(e,t){var r=Me.onStoppedNotification;r&&nt.setTimeout(function(){return r(e,t)})}var Vi={closed:!0,next:de,error:Di,complete:de};var it=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ye(e){return e}function gn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _r(e)}function _r(e){return e.length===0?ye:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var j=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=zi(t)?t:new Ge(t,r,n);return ot(function(){var s=o,a=s.operator,f=s.source;i.add(a?a.call(i,f):f?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=yn(r),new r(function(o,i){var s=new Ge({next:function(a){try{t(a)}catch(f){i(f),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[it]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return _r(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=yn(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function yn(e){var t;return(t=e!=null?e:Me.Promise)!==null&&t!==void 0?t:Promise}function Ni(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}function zi(e){return e&&e instanceof yt||Ni(e)&&It(e)}function qi(e){return L(e==null?void 0:e.lift)}function g(e){return function(t){if(qi(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function y(e,t,r,n,o){return new Ki(e,t,r,n,o)}var Ki=function(e){ne(t,e);function t(r,n,o,i,s,a){var f=e.call(this,r)||this;return f.onFinalize=s,f.shouldUnsubscribe=a,f._next=n?function(c){try{n(c)}catch(u){r.error(u)}}:e.prototype._next,f._error=i?function(c){try{i(c)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,f._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,f}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(yt);var at={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=at.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new $e(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=at.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],U(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=at.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],U(e)))},delegate:void 0};var xn=Pt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var w=function(e){ne(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new En(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new xn},t.prototype.next=function(r){var n=this;ot(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=me(n.currentObservers),a=s.next();!a.done;a=s.next()){var f=a.value;f.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;ot(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;ot(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},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=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?wr:(this.currentObservers=null,a.push(r),new $e(function(){n.currentObservers=null,Ue(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new En(r,n)},t}(j);var En=function(e){ne(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:wr},t}(w);var xt={now:function(){return(xt.delegate||Date).now()},delegate:void 0};var Et=function(e){ne(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=xt);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,s=n._infiniteTimeWindow,a=n._timestampProvider,f=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+f)),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,s=o._buffer,a=s.slice(),f=0;f<a.length&&!r.closed;f+=i?1:2)r.next(a[f]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var f=o.now(),c=0,u=1;u<i.length&&i[u]<=f;u+=2)c=u;c&&i.splice(0,c+1)}},t}(w);var wn=function(e){ne(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}($e);var wt={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=wt.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,W([e,t],U(r))):setInterval.apply(void 0,W([e,t],U(r)))},clearInterval:function(e){var t=wt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Ut=function(e){ne(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),wt.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&wt.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ue(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(wn);var Mr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=xt.now,e}();var Wt=function(e){ne(t,e);function t(r,n){n===void 0&&(n=Mr.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(Mr);var fe=new Wt(Ut),Lr=fe;var Sn=function(e){ne(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=at.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(at.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Ut);var On=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Wt);var xe=new On(Sn);var R=new j(function(e){return e.complete()});function Dt(e){return e&&L(e.schedule)}function Ar(e){return e[e.length-1]}function Ve(e){return L(Ar(e))?e.pop():void 0}function we(e){return Dt(Ar(e))?e.pop():void 0}function Vt(e,t){return typeof Ar(e)=="number"?e.pop():t}var st=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return L(e==null?void 0:e.then)}function zt(e){return L(e[it])}function qt(e){return Symbol.asyncIterator&&L(e==null?void 0:e[Symbol.asyncIterator])}function Kt(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 Qi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qt=Qi();function Yt(e){return L(e==null?void 0:e[Qt])}function Bt(e){return pn(this,arguments,function(){var r,n,o,i;return Ht(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ye(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,Ye(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ye(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Gt(e){return L(e==null?void 0:e.getReader)}function D(e){if(e instanceof j)return e;if(e!=null){if(zt(e))return Yi(e);if(st(e))return Bi(e);if(Nt(e))return Gi(e);if(qt(e))return Tn(e);if(Yt(e))return Ji(e);if(Gt(e))return Xi(e)}throw Kt(e)}function Yi(e){return new j(function(t){var r=e[it]();if(L(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Bi(e){return new j(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Gi(e){return new j(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Ft)})}function Ji(e){return new j(function(t){var r,n;try{for(var o=me(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function Tn(e){return new j(function(t){Zi(e,t).catch(function(r){return t.error(r)})})}function Xi(e){return Tn(Bt(e))}function Zi(e,t){var r,n,o,i;return un(this,void 0,void 0,function(){var s,a;return Ht(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),r=ln(e),f.label=1;case 1:return[4,r.next()];case 2:if(n=f.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=f.sent(),o={error:a},[3,11];case 6:return f.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function ve(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Le(e,t){return t===void 0&&(t=0),g(function(r,n){r.subscribe(y(n,function(o){return ve(n,e,function(){return n.next(o)},t)},function(){return ve(n,e,function(){return n.complete()},t)},function(o){return ve(n,e,function(){return n.error(o)},t)}))})}function Je(e,t){return t===void 0&&(t=0),g(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function _n(e,t){return D(e).pipe(Je(t),Le(t))}function Mn(e,t){return D(e).pipe(Je(t),Le(t))}function Ln(e,t){return new j(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function An(e,t){return new j(function(r){var n;return ve(r,t,function(){n=e[Qt](),ve(r,t,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return L(n==null?void 0:n.return)&&n.return()}})}function Jt(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(function(r){ve(r,t,function(){var n=e[Symbol.asyncIterator]();ve(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Cn(e,t){return Jt(Bt(e),t)}function Rn(e,t){if(e!=null){if(zt(e))return _n(e,t);if(st(e))return Ln(e,t);if(Nt(e))return Mn(e,t);if(qt(e))return Jt(e,t);if(Yt(e))return An(e,t);if(Gt(e))return Cn(e,t)}throw Kt(e)}function ue(e,t){return t?Rn(e,t):D(e)}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=we(e);return ue(e,r)}function St(e,t){var r=L(e)?e:function(){return e},n=function(o){return o.error(r())};return new j(t?function(o){return t.schedule(n,0,o)}:n)}function kn(e){return e instanceof Date&&!isNaN(e)}function l(e,t){return g(function(r,n){var o=0;r.subscribe(y(n,function(i){n.next(e.call(t,i,o++))}))})}var ea=Array.isArray;function ta(e,t){return ea(t)?e.apply(void 0,W([],U(t))):e(t)}function Ne(e){return l(function(t){return ta(e,t)})}var ra=Array.isArray,na=Object.getPrototypeOf,oa=Object.prototype,ia=Object.keys;function Hn(e){if(e.length===1){var t=e[0];if(ra(t))return{args:t,keys:null};if(aa(t)){var r=ia(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function aa(e){return e&&typeof e=="object"&&na(e)===oa}function Pn(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=we(e),n=Ve(e),o=Hn(e),i=o.args,s=o.keys;if(i.length===0)return ue([],r);var a=new j(Cr(i,r,s?function(f){return Pn(s,f)}:ye));return n?a.pipe(Ne(n)):a}function Cr(e,t,r){return r===void 0&&(r=ye),function(n){$n(t,function(){for(var o=e.length,i=new Array(o),s=o,a=o,f=function(u){$n(t,function(){var p=ue(e[u],t),m=!1;p.subscribe(y(n,function(d){i[u]=d,m||(m=!0,a--),a||n.next(r(i.slice()))},function(){--s||n.complete()}))},n)},c=0;c<o;c++)f(c)},n)}}function $n(e,t,r){e?ve(r,e,t):t()}function In(e,t,r,n,o,i,s,a){var f=[],c=0,u=0,p=!1,m=function(){p&&!f.length&&!c&&t.complete()},d=function(b){return c<n?h(b):f.push(b)},h=function(b){i&&t.next(b),c++;var K=!1;D(r(b,u++)).subscribe(y(t,function(X){o==null||o(X),i?d(X):t.next(X)},function(){K=!0},void 0,function(){if(K)try{c--;for(var X=function(){var V=f.shift();s?ve(t,s,function(){return h(V)}):h(V)};f.length&&c<n;)X();m()}catch(V){t.error(V)}}))};return e.subscribe(y(t,d,function(){p=!0,m()})),function(){a==null||a()}}function se(e,t,r){return r===void 0&&(r=1/0),L(t)?se(function(n,o){return l(function(i,s){return t(n,i,o,s)})(D(e(n,o)))},r):(typeof t=="number"&&(r=t),g(function(n,o){return In(n,o,e,r)}))}function ct(e){return e===void 0&&(e=1/0),se(ye,e)}function Fn(){return ct(1)}function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fn()(ue(e,we(e)))}function P(e){return new j(function(t){D(e()).subscribe(t)})}var sa=["addListener","removeListener"],ca=["addEventListener","removeEventListener"],fa=["on","off"];function v(e,t,r,n){if(L(r)&&(n=r,r=void 0),n)return v(e,t,r).pipe(Ne(n));var o=U(la(e)?ca.map(function(a){return function(f){return e[a](t,f,r)}}):ua(e)?sa.map(jn(e,t)):pa(e)?fa.map(jn(e,t)):[],2),i=o[0],s=o[1];if(!i&&st(e))return se(function(a){return v(a,t,r)})(D(e));if(!i)throw new TypeError("Invalid event target");return new j(function(a){var f=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return a.next(1<c.length?c:c[0])};return i(f),function(){return s(f)}})}function jn(e,t){return function(r){return function(n){return e[r](t,n)}}}function ua(e){return L(e.addListener)&&L(e.removeListener)}function pa(e){return L(e.on)&&L(e.off)}function la(e){return L(e.addEventListener)&&L(e.removeEventListener)}function Xt(e,t,r){return r?Xt(e,t).pipe(Ne(r)):new j(function(n){var o=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return n.next(s.length===1?s[0]:s)},i=e(o);return L(t)?function(){return t(o,i)}:void 0})}function ze(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Lr);var n=-1;return t!=null&&(Dt(t)?r=t:n=t),new j(function(o){var i=kn(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=we(e),n=Vt(e,1/0),o=e;return o.length?o.length===1?D(o[0]):ct(n)(ue(o,r)):R}var Se=new j(de);var ma=Array.isArray;function ft(e){return e.length===1&&ma(e[0])?e[0]:e}function x(e,t){return g(function(r,n){var o=0;r.subscribe(y(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ve(e),n=ft(e);return n.length?new j(function(o){var i=n.map(function(){return[]}),s=n.map(function(){return!1});o.add(function(){i=s=null});for(var a=function(c){D(n[c]).subscribe(y(o,function(u){if(i[c].push(u),i.every(function(m){return m.length})){var p=i.map(function(m){return m.shift()});o.next(r?r.apply(void 0,W([],U(p))):p),i.some(function(m,d){return!m.length&&s[d]})&&o.complete()}},function(){s[c]=!0,!i[c].length&&o.complete()}))},f=0;!o.closed&&f<n.length;f++)a(f);return function(){i=s=null}}):R}function Un(e){return g(function(t,r){var n=!1,o=null,i=null,s=!1,a=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var c=o;o=null,r.next(c)}s&&r.complete()},f=function(){i=null,s&&r.complete()};t.subscribe(y(r,function(c){n=!0,o=c,i||D(e(c)).subscribe(i=y(r,a,f))},function(){s=!0,(!n||!i||i.closed)&&r.complete()}))})}function Ae(e,t){return t===void 0&&(t=fe),Un(function(){return ze(e,t)})}function Ce(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(r,n){var o=[],i=0;r.subscribe(y(n,function(s){var a,f,c,u,p=null;i++%t===0&&o.push([]);try{for(var m=me(o),d=m.next();!d.done;d=m.next()){var h=d.value;h.push(s),e<=h.length&&(p=p!=null?p:[],p.push(h))}}catch(X){a={error:X}}finally{try{d&&!d.done&&(f=m.return)&&f.call(m)}finally{if(a)throw a.error}}if(p)try{for(var b=me(p),K=b.next();!K.done;K=b.next()){var h=K.value;Ue(o,h),n.next(h)}}catch(X){c={error:X}}finally{try{K&&!K.done&&(u=b.return)&&u.call(b)}finally{if(c)throw c.error}}},function(){var s,a;try{for(var f=me(o),c=f.next();!c.done;c=f.next()){var u=c.value;n.next(u)}}catch(p){s={error:p}}finally{try{c&&!c.done&&(a=f.return)&&a.call(f)}finally{if(s)throw s.error}}n.complete()},void 0,function(){o=null}))})}function ce(e){return g(function(t,r){var n=null,o=!1,i;n=t.subscribe(y(r,void 0,void 0,function(s){i=D(e(s,ce(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Wn(e,t,r,n,o){return function(i,s){var a=r,f=t,c=0;i.subscribe(y(s,function(u){var p=c++;f=a?e(f,u,p):(a=!0,u),n&&s.next(f)},o&&function(){a&&s.next(f),s.complete()}))}}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ve(e);return r?gn(Rr.apply(void 0,W([],U(e))),Ne(r)):g(function(n,o){Cr(W([n],U(ft(e))))(o)})}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rr.apply(void 0,W([],U(e)))}function kr(e,t){return L(t)?se(e,t,1):se(e,1)}function Re(e,t){return t===void 0&&(t=fe),g(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function f(){var c=s+e,u=t.now();if(u<c){o=this.schedule(void 0,c-u),n.add(o);return}a()}r.subscribe(y(n,function(c){i=c,s=t.now(),o||(o=t.schedule(f,e),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function We(e){return g(function(t,r){var n=!1;t.subscribe(y(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function oe(e){return e<=0?function(){return R}:g(function(t,r){var n=0;t.subscribe(y(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function Dn(){return g(function(e,t){e.subscribe(y(t,de))})}function Vn(e){return l(function(){return e})}function Hr(e,t){return t?function(r){return Xe(t.pipe(oe(1),Dn()),r.pipe(Hr(e)))}:se(function(r,n){return e(r,n).pipe(oe(1),Vn(r))})}function ke(e,t){t===void 0&&(t=fe);var r=ze(e,t);return Hr(function(){return r})}function B(e,t){return t===void 0&&(t=ye),e=e!=null?e:da,g(function(r,n){var o,i=!0;r.subscribe(y(n,function(s){var a=t(s);(i||!e(o,a))&&(i=!1,o=a,n.next(s))}))})}function da(e,t){return e===t}function G(e,t){return B(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Xe(r,I.apply(void 0,W([],U(e))))}}function C(e){return g(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function he(e){return e<=0?function(){return R}:g(function(t,r){var n=[];t.subscribe(y(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var s=me(n),a=s.next();!a.done;a=s.next()){var f=a.value;r.next(f)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function Nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=we(e),n=Vt(e,1/0);return e=ft(e),g(function(o,i){ct(n)(ue(W([o],U(e)),r)).subscribe(i)})}function et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Nn.apply(void 0,W([],U(e)))}function Tt(e){var t,r=1/0,n;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,n=e.delay):r=e),r<=0?function(){return R}:g(function(o,i){var s=0,a,f=function(){if(a==null||a.unsubscribe(),a=null,n!=null){var u=typeof n=="number"?ze(n):D(n(s)),p=y(i,function(){p.unsubscribe(),c()});u.subscribe(p)}else c()},c=function(){var u=!1;a=o.subscribe(y(i,void 0,function(){++s<r?a?f():u=!0:i.complete()})),u&&f()};c()})}function ut(e){return g(function(t,r){var n=!1,o=null;t.subscribe(y(r,function(i){n=!0,o=i})),e.subscribe(y(r,function(){if(n){n=!1;var i=o;o=null,r.next(i)}},de))})}function $r(e,t){return g(Wn(e,t,arguments.length>=2,!0))}function ie(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new w}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,f=a===void 0?!0:a;return function(c){var u,p,m,d=0,h=!1,b=!1,K=function(){p==null||p.unsubscribe(),p=void 0},X=function(){K(),u=m=void 0,h=b=!1},V=function(){var T=u;X(),T==null||T.unsubscribe()};return g(function(T,De){d++,!b&&!h&&K();var je=m=m!=null?m:r();De.add(function(){d--,d===0&&!b&&!h&&(p=Ir(V,f))}),je.subscribe(De),!u&&d>0&&(u=new Ge({next:function(Pe){return je.next(Pe)},error:function(Pe){b=!0,K(),p=Ir(X,o,Pe),je.error(Pe)},complete:function(){h=!0,K(),p=Ir(X,s),je.complete()}}),D(T).subscribe(u))})(c)}}function Ir(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var o=new Ge({next:function(){o.unsubscribe(),e()}});return t.apply(void 0,W([],U(r))).subscribe(o)}}function J(e,t,r){var n,o,i,s,a=!1;return e&&typeof e=="object"?(n=e.bufferSize,s=n===void 0?1/0:n,o=e.windowTime,t=o===void 0?1/0:o,i=e.refCount,a=i===void 0?!1:i,r=e.scheduler):s=e!=null?e:1/0,ie({connector:function(){return new Et(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function He(e){return x(function(t,r){return e<=r})}function _t(e){return g(function(t,r){var n=!1,o=y(r,function(){o==null||o.unsubscribe(),n=!0},de);D(e).subscribe(o),t.subscribe(y(r,function(i){return n&&r.next(i)}))})}function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=we(e);return g(function(n,o){(r?Xe(e,n,r):Xe(e,n)).subscribe(o)})}function S(e,t){return g(function(r,n){var o=null,i=0,s=!1,a=function(){return s&&!o&&n.complete()};r.subscribe(y(n,function(f){o==null||o.unsubscribe();var c=0,u=i++;D(e(f,u)).subscribe(o=y(n,function(p){return n.next(t?t(f,p,u,c++):p)},function(){o=null,a()}))},function(){s=!0,a()}))})}function ee(e){return g(function(t,r){D(e).subscribe(y(r,function(){return r.complete()},de)),!r.closed&&t.subscribe(r)})}function Fr(e,t){return t===void 0&&(t=!1),g(function(r,n){var o=0;r.subscribe(y(n,function(i){var s=e(i,o++);(s||t)&&n.next(i),!s&&n.complete()}))})}function E(e,t,r){var n=L(e)||t||r?{next:e,error:t,complete:r}:e;return n?g(function(o,i){var s;(s=n.subscribe)===null||s===void 0||s.call(n);var a=!0;o.subscribe(y(i,function(f){var c;(c=n.next)===null||c===void 0||c.call(n,f),i.next(f)},function(){var f;a=!1,(f=n.complete)===null||f===void 0||f.call(n),i.complete()},function(f){var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,f),i.error(f)},function(){var f,c;a&&((f=n.unsubscribe)===null||f===void 0||f.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ye}var jr={leading:!0,trailing:!1};function Mt(e,t){return t===void 0&&(t=jr),g(function(r,n){var o=t.leading,i=t.trailing,s=!1,a=null,f=null,c=!1,u=function(){f==null||f.unsubscribe(),f=null,i&&(d(),c&&n.complete())},p=function(){f=null,c&&n.complete()},m=function(h){return f=D(e(h)).subscribe(y(n,u,p))},d=function(){if(s){s=!1;var h=a;a=null,n.next(h),!c&&m(h)}};r.subscribe(y(n,function(h){s=!0,a=h,!(f&&!f.closed)&&(o?d():m(h))},function(){c=!0,!(i&&s&&f&&!f.closed)&&n.complete()}))})}function Ur(e,t,r){t===void 0&&(t=fe),r===void 0&&(r=jr);var n=ze(e,t);return Mt(function(){return n},r)}function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ve(e);return g(function(n,o){for(var i=e.length,s=new Array(i),a=e.map(function(){return!1}),f=!1,c=function(p){D(e[p]).subscribe(y(o,function(m){s[p]=m,!f&&!a[p]&&(a[p]=!0,(f=a.every(ye))&&(a=null))},de))},u=0;u<i;u++)c(u);n.subscribe(y(o,function(p){if(f){var m=W([p],U(s));o.next(r?r.apply(void 0,W([],U(m))):m)}}))})}function zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(r,n){Ot.apply(void 0,W([r],U(e))).subscribe(n)})}function Wr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zn.apply(void 0,W([],U(e)))}function qn(){let e=new Et(1);return v(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function Q(e,t=document){return Array.from(t.querySelectorAll(e))}function q(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 Ie(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function Zt(e){return A(v(document.body,"focusin"),v(document.body,"focusout")).pipe(Re(1),l(()=>{let t=Ie();return typeof t!="undefined"?e.contains(t):!1}),N(e===Ie()),B())}function qe(e){return{x:e.offsetLeft,y:e.offsetTop}}function Kn(e){return A(v(window,"load"),v(window,"resize")).pipe(Ae(0,xe),l(()=>qe(e)),N(qe(e)))}function er(e){return{x:e.scrollLeft,y:e.scrollTop}}function pt(e){return A(v(e,"scroll"),v(window,"resize")).pipe(Ae(0,xe),l(()=>er(e)),N(er(e)))}var Yn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var s=i[o];r.call(n,s[1],s[0])}},t}()}(),Dr=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,tr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ha=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ba=2;function va(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&a()}function s(){ha(i)}function a(){var f=Date.now();if(r){if(f-o<ba)return;n=!0}else r=!0,n=!1,setTimeout(s,t);o=f}return a}var ga=20,ya=["top","right","bottom","left","width","height","size","weight"],xa=typeof MutationObserver!="undefined",Ea=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=va(this.refresh.bind(this),ga)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Dr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Dr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ya.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Bn=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},lt=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||tr},Gn=nr(0,0,0,0);function rr(e){return parseFloat(e)||0}function Qn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+rr(i)},0)}function wa(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],s=e["padding-"+i];r[i]=rr(s)}return r}function Sa(e){var t=e.getBBox();return nr(0,0,t.width,t.height)}function Oa(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Gn;var n=lt(e).getComputedStyle(e),o=wa(n),i=o.left+o.right,s=o.top+o.bottom,a=rr(n.width),f=rr(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+i)!==t&&(a-=Qn(n,"left","right")+i),Math.round(f+s)!==r&&(f-=Qn(n,"top","bottom")+s)),!_a(e)){var c=Math.round(a+i)-t,u=Math.round(f+s)-r;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(f-=u)}return nr(o.left,o.top,a,f)}var Ta=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof lt(e).SVGGraphicsElement}:function(e){return e instanceof lt(e).SVGElement&&typeof e.getBBox=="function"}}();function _a(e){return e===lt(e).document.documentElement}function Ma(e){return Dr?Ta(e)?Sa(e):Oa(e):Gn}function La(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return Bn(s,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),s}function nr(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Aa=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nr(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ma(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ca=function(){function e(t,r){var n=La(r);Bn(this,{target:t,contentRect:n})}return e}(),Ra=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Yn,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof lt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Aa(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof lt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;!r.has(t)||(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Ca(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jn=typeof WeakMap!="undefined"?new WeakMap:new Yn,Xn=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ea.getInstance(),n=new Ra(t,r,this);Jn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xn.prototype[e]=function(){var t;return(t=Jn.get(this))[e].apply(t,arguments)}});var ka=function(){return typeof tr.ResizeObserver!="undefined"?tr.ResizeObserver:Xn}(),Zn=ka;var eo=new w,Ha=P(()=>I(new Zn(e=>{for(let t of e)eo.next(t)}))).pipe(S(e=>A(Se,I(e)).pipe(C(()=>e.disconnect()))),J(1));function be(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return Ha.pipe(E(t=>t.observe(e)),S(t=>eo.pipe(x(({target:r})=>r===e),C(()=>t.unobserve(e)),l(()=>be(e)))),N(be(e)))}function mt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function or(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var to=new w,Pa=P(()=>I(new IntersectionObserver(e=>{for(let t of e)to.next(t)},{threshold:0}))).pipe(S(e=>A(Se,I(e)).pipe(C(()=>e.disconnect()))),J(1));function ir(e){return Pa.pipe(E(t=>t.observe(e)),S(t=>to.pipe(x(({target:r})=>r===e),C(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function ro(e,t=16){return pt(e).pipe(l(({y:r})=>{let n=be(e),o=mt(e);return r>=o.height-n.height-t}),B())}var ar={drawer:q("[data-md-toggle=drawer]"),search:q("[data-md-toggle=search]")};function no(e){return ar[e].checked}function Ke(e,t){ar[e].checked!==t&&ar[e].click()}function dt(e){let t=ar[e];return v(t,"change").pipe(l(()=>t.checked),N(t.checked))}function $a(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 oo(){return v(window,"keydown").pipe(x(e=>!(e.metaKey||e.ctrlKey)),l(e=>({mode:no("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),x(({mode:e,type:t})=>{if(e==="global"){let r=Ie();if(typeof r!="undefined")return!$a(r,t)}return!0}),ie())}function Oe(){return new URL(location.href)}function sr(e){location.href=e.href}function io(){return new w}function ao(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)ao(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)ao(n,o);return n}function so(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function cr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function co(){return location.hash.substring(1)}function fo(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ia(){return v(window,"hashchange").pipe(l(co),N(co()),x(e=>e.length>0),J(1))}function uo(){return Ia().pipe(l(e=>pe(`[id="${e}"]`)),x(e=>typeof e!="undefined"))}function Vr(e){let t=matchMedia(e);return Xt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function po(){let e=matchMedia("print");return A(v(window,"beforeprint").pipe(l(()=>!0)),v(window,"afterprint").pipe(l(()=>!1))).pipe(N(e.matches))}function Nr(e,t){return e.pipe(S(r=>r?t():R))}function fr(e,t={credentials:"same-origin"}){return ue(fetch(`${e}`,t)).pipe(ce(()=>R),S(r=>r.status!==200?St(()=>new Error(r.statusText)):I(r)))}function Fe(e,t){return fr(e,t).pipe(S(r=>r.json()),J(1))}function lo(e,t){let r=new DOMParser;return fr(e,t).pipe(S(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),J(1))}function mo(e){let t=M("script",{src:e});return P(()=>(document.head.appendChild(t),A(v(t,"load"),v(t,"error").pipe(S(()=>St(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),C(()=>document.head.removeChild(t)),oe(1))))}function ho(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bo(){return A(v(window,"scroll",{passive:!0}),v(window,"resize",{passive:!0})).pipe(l(ho),N(ho()))}function vo(){return{width:innerWidth,height:innerHeight}}function go(){return v(window,"resize",{passive:!0}).pipe(l(vo),N(vo()))}function yo(){return Y([bo(),go()]).pipe(l(([e,t])=>({offset:e,size:t})),J(1))}function ur(e,{viewport$:t,header$:r}){let n=t.pipe(G("size")),o=Y([n,r]).pipe(l(()=>qe(e)));return Y([r,t,o]).pipe(l(([{height:i},{offset:s,size:a},{x:f,y:c}])=>({offset:{x:s.x-f,y:s.y-c+i},size:a})))}function xo(e,{tx$:t}){let r=v(e,"message").pipe(l(({data:n})=>n));return t.pipe(Mt(()=>r,{leading:!0,trailing:!0}),E(n=>e.postMessage(n)),S(()=>r),ie())}var Fa=q("#__config"),ht=JSON.parse(Fa.textContent);ht.base=`${new URL(ht.base,Oe())}`;function le(){return ht}function Z(e){return ht.features.includes(e)}function re(e,t){return typeof t!="undefined"?ht.translations[e].replace("#",t.toString()):ht.translations[e]}function Te(e,t=document){return q(`[data-md-component=${e}]`,t)}function te(e,t=document){return Q(`[data-md-component=${e}]`,t)}function ja(e){let t=q(".md-typeset > :first-child",e);return v(t,"click",{once:!0}).pipe(l(()=>q(".md-typeset",e)),l(r=>({hash:__md_hash(r.innerHTML)})))}function Eo(e){return!Z("announce.dismiss")||!e.childElementCount?R:P(()=>{let t=new w;return t.pipe(N({hash:__md_get("__announce")})).subscribe(({hash:r})=>{var n;r&&r===((n=__md_get("__announce"))!=null?n:r)&&(e.hidden=!0,__md_set("__announce",r))}),ja(e).pipe(E(r=>t.next(r)),C(()=>t.complete()),l(r=>H({ref:e},r)))})}function Ua(e,{target$:t}){return t.pipe(l(r=>({hidden:r!==e})))}function wo(e,t){let r=new w;return r.subscribe(({hidden:n})=>{e.hidden=n}),Ua(e,t).pipe(E(n=>r.next(n)),C(()=>r.complete()),l(n=>H({ref:e},n)))}var Ho=rt(qr());function Kr(e){return M("div",{class:"md-tooltip",id:e},M("div",{class:"md-tooltip__inner md-typeset"}))}function So(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return M("aside",{class:"md-annotation",tabIndex:0},Kr(t),M("a",{href:r,class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}else return M("aside",{class:"md-annotation",tabIndex:0},Kr(t),M("span",{class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}function Oo(e){return M("button",{class:"md-clipboard md-icon",title:re("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Qr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).reduce((a,f)=>[...a,M("del",null,f)," "],[]).slice(0,-1),i=new URL(e.location);Z("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[f])=>`${a} ${f}`.trim(),""));let{tags:s}=le();return M("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},M("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&M("div",{class:"md-search-result__icon md-icon"}),M("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&M("p",{class:"md-search-result__teaser"},so(e.text,320)),e.tags&&M("div",{class:"md-typeset"},e.tags.map(a=>{let f=a.replace(/<[^>]+>/g,""),c=s?f in s?`md-tag-icon md-tag-icon--${s[f]}`:"md-tag-icon":"";return M("span",{class:`md-tag ${c}`},a)})),n>0&&o.length>0&&M("p",{class:"md-search-result__terms"},re("search.result.term.missing"),": ",...o)))}function To(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.score<t);i===-1&&(i=r.length);let s=r.slice(0,i),a=r.slice(i),f=[Qr(o,2|+(!n&&i===0)),...s.map(c=>Qr(c,1)),...a.length?[M("details",{class:"md-search-result__more"},M("summary",{tabIndex:-1},a.length>0&&a.length===1?re("search.result.more.one"):re("search.result.more.other",a.length)),...a.map(c=>Qr(c,1)))]:[]];return M("li",{class:"md-search-result__item"},f)}function _o(e){return M("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>M("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?cr(r):r)))}function Yr(e){let t=`tabbed-control tabbed-control--${e}`;return M("div",{class:t,hidden:!0},M("button",{class:"tabbed-button",tabIndex:-1}))}function Mo(e){return M("div",{class:"md-typeset__scrollwrap"},M("div",{class:"md-typeset__table"},e))}function Wa(e){let t=le(),r=new URL(`../${e.version}/`,t.base);return M("li",{class:"md-version__item"},M("a",{href:`${r}`,class:"md-version__link"},e.title))}function Lo(e,t){return M("div",{class:"md-version"},M("button",{class:"md-version__current","aria-label":re("select.version.title")},t.title),M("ul",{class:"md-version__list"},e.map(Wa)))}function Da(e,t){let r=P(()=>Y([Kn(e),pt(t)])).pipe(l(([{x:n,y:o},i])=>{let{width:s,height:a}=be(e);return{x:n-i.x+s/2,y:o-i.y+a/2}}));return Zt(e).pipe(S(n=>r.pipe(l(o=>({active:n,offset:o})),oe(+!n||1/0))))}function Ao(e,t,{target$:r}){let[n,o]=Array.from(e.children);return P(()=>{let i=new w,s=i.pipe(he(1));return i.subscribe({next({offset:a}){e.style.setProperty("--md-tooltip-x",`${a.x}px`),e.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),ir(e).pipe(ee(s)).subscribe(a=>{e.toggleAttribute("data-md-visible",a)}),A(i.pipe(x(({active:a})=>a)),i.pipe(Re(250),x(({active:a})=>!a))).subscribe({next({active:a}){a?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Ae(16,xe)).subscribe(({active:a})=>{n.classList.toggle("md-tooltip--active",a)}),i.pipe(Ur(125,xe),x(()=>!!e.offsetParent),l(()=>e.offsetParent.getBoundingClientRect()),l(({x:a})=>a)).subscribe({next(a){a?e.style.setProperty("--md-tooltip-0",`${-a}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),v(o,"click").pipe(ee(s),x(a=>!(a.metaKey||a.ctrlKey))).subscribe(a=>a.preventDefault()),v(o,"mousedown").pipe(ee(s),ae(i)).subscribe(([a,{active:f}])=>{var c;if(a.button!==0||a.metaKey||a.ctrlKey)a.preventDefault();else if(f){a.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(c=Ie())==null||c.blur()}}),r.pipe(ee(s),x(a=>a===n),ke(125)).subscribe(()=>e.focus()),Da(e,t).pipe(E(a=>i.next(a)),C(()=>i.complete()),l(a=>H({ref:e},a)))})}function Va(e){let t=[];for(let r of Q(".c, .c1, .cm",e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let s;for(;s=/(\(\d+\))(!)?/.exec(i.textContent);){let[,a,f]=s;if(typeof f=="undefined"){let c=i.splitText(s.index);i=c.splitText(a.length),t.push(c)}else{i.textContent=a,t.push(i);break}}}}return t}function Co(e,t){t.append(...Array.from(e.childNodes))}function Ro(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,s=new Map;for(let a of Va(t)){let[,f]=a.textContent.match(/\((\d+)\)/);pe(`li:nth-child(${f})`,e)&&(s.set(f,So(f,i)),a.replaceWith(s.get(f)))}return s.size===0?R:P(()=>{let a=new w,f=[];for(let[c,u]of s)f.push([q(".md-typeset",u),q(`li:nth-child(${c})`,e)]);return n.pipe(ee(a.pipe(he(1)))).subscribe(c=>{e.hidden=!c;for(let[u,p]of f)c?Co(u,p):Co(p,u)}),A(...[...s].map(([,c])=>Ao(c,t,{target$:r}))).pipe(C(()=>a.complete()),ie())})}var Na=0;function Po(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Po(t)}}function ko(e){return ge(e).pipe(l(({width:t})=>({scrollable:mt(e).width>t})),G("scrollable"))}function $o(e,t){let{matches:r}=matchMedia("(hover)"),n=P(()=>{let o=new w;if(o.subscribe(({scrollable:s})=>{s&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}),Ho.default.isSupported()){let s=e.closest("pre");s.id=`__code_${++Na}`,s.insertBefore(Oo(s.id),e)}let i=e.closest(".highlight");if(i instanceof HTMLElement){let s=Po(i);if(typeof s!="undefined"&&(i.classList.contains("annotate")||Z("content.code.annotate"))){let a=Ro(s,e,t);return ko(e).pipe(E(f=>o.next(f)),C(()=>o.complete()),l(f=>H({ref:e},f)),et(ge(i).pipe(l(({width:f,height:c})=>f&&c),B(),S(f=>f?a:R))))}}return ko(e).pipe(E(s=>o.next(s)),C(()=>o.complete()),l(s=>H({ref:e},s)))});return Z("content.lazy")?ir(e).pipe(x(o=>o),oe(1),S(()=>n)):n}var Io=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}defs #flowchart-circleEnd,defs #flowchart-circleStart,defs #flowchart-crossEnd,defs #flowchart-crossStart,defs #flowchart-pointEnd,defs #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}.actor,defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{stroke:var(--md-mermaid-node-fg-color)}text.actor>tspan{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-default-fg-color--lighter)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-edge-color)}.loopText>tspan,.messageText,.noteText>tspan{fill:var(--md-mermaid-edge-color);stroke:none;font-family:var(--md-mermaid-font-family)!important}.noteText>tspan{fill:#000}#arrowhead path{fill:var(--md-mermaid-edge-color);stroke:none}.loopLine{stroke:var(--md-mermaid-node-fg-color)}.labelBox,.loopLine{fill:var(--md-mermaid-node-bg-color)}.labelBox{stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-node-fg-color);font-family:var(--md-mermaid-font-family)}";var Br,qa=0;function Ka(){return typeof mermaid=="undefined"||mermaid instanceof Element?mo("https://unpkg.com/mermaid@9.1.7/dist/mermaid.min.js"):I(void 0)}function Fo(e){return e.classList.remove("mermaid"),Br||(Br=Ka().pipe(E(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Io,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),l(()=>{}),J(1))),Br.subscribe(()=>{e.classList.add("mermaid");let t=`__mermaid_${qa++}`,r=M("div",{class:"mermaid"}),n=e.textContent;mermaid.mermaidAPI.render(t,n,(o,i)=>{let s=r.attachShadow({mode:"closed"});s.innerHTML=o,e.replaceWith(r),i==null||i(s)})}),Br.pipe(l(()=>({ref:e})))}function Qa(e,{target$:t,print$:r}){let n=!0;return A(t.pipe(l(o=>o.closest("details:not([open])")),x(o=>e===o),l(()=>({action:"open",reveal:!0}))),r.pipe(x(o=>o||!n),E(()=>n=e.open),l(o=>({action:o?"open":"close"}))))}function jo(e,t){return P(()=>{let r=new w;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Qa(e,t).pipe(E(n=>r.next(n)),C(()=>r.complete()),l(n=>H({ref:e},n)))})}var Uo=M("table");function Wo(e){return e.replaceWith(Uo),Uo.replaceWith(Mo(e)),I({ref:e})}function Ya(e){let t=Q(":scope > input",e),r=t.find(n=>n.checked)||t[0];return A(...t.map(n=>v(n,"change").pipe(l(()=>q(`label[for="${n.id}"]`))))).pipe(N(q(`label[for="${r.id}"]`)),l(n=>({active:n})))}function Do(e,{viewport$:t}){let r=Yr("prev");e.append(r);let n=Yr("next");e.append(n);let o=q(".tabbed-labels",e);return P(()=>{let i=new w,s=i.pipe(he(1));return Y([i,ge(e)]).pipe(Ae(1,xe),ee(s)).subscribe({next([{active:a},f]){let c=qe(a),{width:u}=be(a);e.style.setProperty("--md-indicator-x",`${c.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let p=er(o);(c.x<p.x||c.x+u>p.x+f.width)&&o.scrollTo({left:Math.max(0,c.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Y([pt(o),ge(o)]).pipe(ee(s)).subscribe(([a,f])=>{let c=mt(o);r.hidden=a.x<16,n.hidden=a.x>c.width-f.width-16}),A(v(r,"click").pipe(l(()=>-1)),v(n,"click").pipe(l(()=>1))).pipe(ee(s)).subscribe(a=>{let{width:f}=be(o);o.scrollBy({left:f*a,behavior:"smooth"})}),Z("content.tabs.link")&&i.pipe(He(1),ae(t)).subscribe(([{active:a},{offset:f}])=>{let c=a.innerText.trim();if(a.hasAttribute("data-md-switching"))a.removeAttribute("data-md-switching");else{let u=e.offsetTop-f.y;for(let m of Q("[data-tabs]"))for(let d of Q(":scope > input",m)){let h=q(`label[for="${d.id}"]`);if(h!==a&&h.innerText.trim()===c){h.setAttribute("data-md-switching",""),d.click();break}}window.scrollTo({top:e.offsetTop-u});let p=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([c,...p])])}}),Ya(e).pipe(E(a=>i.next(a)),C(()=>i.complete()),l(a=>H({ref:e},a)))}).pipe(Je(fe))}function Vo(e,{viewport$:t,target$:r,print$:n}){return A(...Q("pre:not(.mermaid) > code",e).map(o=>$o(o,{target$:r,print$:n})),...Q("pre.mermaid",e).map(o=>Fo(o)),...Q("table:not([class])",e).map(o=>Wo(o)),...Q("details",e).map(o=>jo(o,{target$:r,print$:n})),...Q("[data-tabs]",e).map(o=>Do(o,{viewport$:t})))}function Ba(e,{alert$:t}){return t.pipe(S(r=>A(I(!0),I(!1).pipe(ke(2e3))).pipe(l(n=>({message:r,active:n})))))}function No(e,t){let r=q(".md-typeset",e);return P(()=>{let n=new w;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Ba(e,t).pipe(E(o=>n.next(o)),C(()=>n.complete()),l(o=>H({ref:e},o)))})}function Ga({viewport$:e}){if(!Z("header.autohide"))return I(!1);let t=e.pipe(l(({offset:{y:o}})=>o),Ce(2,1),l(([o,i])=>[o<i,i]),G(0)),r=Y([e,t]).pipe(x(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),l(([,[o]])=>o),B()),n=dt("search");return Y([e,n]).pipe(l(([{offset:o},i])=>o.y>400&&!i),B(),S(o=>o?r:I(!1)),N(!1))}function zo(e,t){return P(()=>Y([ge(e),Ga(t)])).pipe(l(([{height:r},n])=>({height:r,hidden:n})),B((r,n)=>r.height===n.height&&r.hidden===n.hidden),J(1))}function qo(e,{header$:t,main$:r}){return P(()=>{let n=new w,o=n.pipe(he(1));return n.pipe(G("active"),Ze(t)).subscribe(([{active:i},{hidden:s}])=>{e.classList.toggle("md-header--shadow",i&&!s),e.hidden=s}),r.subscribe(n),t.pipe(ee(o),l(i=>H({ref:e},i)))})}function Ja(e,{viewport$:t,header$:r}){return ur(e,{viewport$:t,header$:r}).pipe(l(({offset:{y:n}})=>{let{height:o}=be(e);return{active:n>=o}}),G("active"))}function Ko(e,t){return P(()=>{let r=new w;r.subscribe(({active:o})=>{e.classList.toggle("md-header__title--active",o)});let n=pe("article h1");return typeof n=="undefined"?R:Ja(n,t).pipe(E(o=>r.next(o)),C(()=>r.complete()),l(o=>H({ref:e},o)))})}function Qo(e,{viewport$:t,header$:r}){let n=r.pipe(l(({height:i})=>i),B()),o=n.pipe(S(()=>ge(e).pipe(l(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),G("bottom"))));return Y([n,o,t]).pipe(l(([i,{top:s,bottom:a},{offset:{y:f},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,s-f,i)-Math.max(0,c+f-a)),{offset:s-i,height:c,active:s-i<=f})),B((i,s)=>i.offset===s.offset&&i.height===s.height&&i.active===s.active))}function Xa(e){let t=__md_get("__palette")||{index:e.findIndex(r=>matchMedia(r.getAttribute("data-md-color-media")).matches)};return I(...e).pipe(se(r=>v(r,"change").pipe(l(()=>r))),N(e[Math.max(0,t.index)]),l(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))}function Yo(e){return P(()=>{let t=new w;t.subscribe(n=>{document.body.setAttribute("data-md-color-switching","");for(let[o,i]of Object.entries(n.color))document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;o<r.length;o++){let i=r[o].nextElementSibling;i instanceof HTMLElement&&(i.hidden=n.index!==o)}__md_set("__palette",n)}),t.pipe(Le(fe)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")});let r=Q("input",e);return Xa(r).pipe(E(n=>t.next(n)),C(()=>t.complete()),l(n=>H({ref:e},n)))})}var Gr=rt(qr());function Za(e){e.setAttribute("data-md-copying","");let t=e.innerText;return e.removeAttribute("data-md-copying"),t}function Bo({alert$:e}){Gr.default.isSupported()&&new j(t=>{new Gr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Za(q(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(E(t=>{t.trigger.focus()}),l(()=>re("clipboard.copied"))).subscribe(e)}function es(e){if(e.length<2)return[""];let[t,r]=[...e].sort((o,i)=>o.length-i.length).map(o=>o.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;return e.map(o=>o.replace(t.slice(0,n),""))}function pr(e){let t=__md_get("__sitemap",sessionStorage,e);if(t)return I(t);{let r=le();return lo(new URL("sitemap.xml",e||r.base)).pipe(l(n=>es(Q("loc",n).map(o=>o.textContent))),ce(()=>R),We([]),E(n=>__md_set("__sitemap",n,sessionStorage,e)))}}function Go({document$:e,location$:t,viewport$:r}){let n=le();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",v(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=pe("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=pr().pipe(l(c=>c.map(u=>`${new URL(u,n.base)}`)),S(c=>v(document.body,"click").pipe(x(u=>!u.metaKey&&!u.ctrlKey),S(u=>{if(u.target instanceof Element){let p=u.target.closest("a");if(p&&!p.target){let m=new URL(p.href);if(m.search="",m.hash="",m.pathname!==location.pathname&&c.includes(m.toString()))return u.preventDefault(),I({url:new URL(p.href)})}}return Se}))),ie()),s=v(window,"popstate").pipe(x(c=>c.state!==null),l(c=>({url:new URL(location.href),offset:c.state})),ie());A(i,s).pipe(B((c,u)=>c.url.href===u.url.href),l(({url:c})=>c)).subscribe(t);let a=t.pipe(G("pathname"),S(c=>fr(c.href).pipe(ce(()=>(sr(c),Se)))),ie());i.pipe(ut(a)).subscribe(({url:c})=>{history.pushState({},"",`${c}`)});let f=new DOMParser;a.pipe(S(c=>c.text()),l(c=>f.parseFromString(c,"text/html"))).subscribe(e),e.pipe(He(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=outdated]","[data-md-component=logo]","[data-md-component=skip]",...Z("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let p=pe(u),m=pe(u,c);typeof p!="undefined"&&typeof m!="undefined"&&p.replaceWith(m)}}),e.pipe(He(1),l(()=>Te("container")),S(c=>Q("script",c)),kr(c=>{let u=M("script");if(c.src){for(let p of c.getAttributeNames())u.setAttribute(p,c.getAttribute(p));return c.replaceWith(u),new j(p=>{u.onload=()=>p.complete()})}else return u.textContent=c.textContent,c.replaceWith(u),R})).subscribe(),A(i,s).pipe(ut(e)).subscribe(({url:c,offset:u})=>{c.hash&&!u?fo(c.hash):window.scrollTo(0,(u==null?void 0:u.y)||0)}),r.pipe(_t(i),Re(250),G("offset")).subscribe(({offset:c})=>{history.replaceState(c,"")}),A(i,s).pipe(Ce(2,1),x(([c,u])=>c.url.pathname===u.url.pathname),l(([,c])=>c)).subscribe(({offset:c})=>{window.scrollTo(0,(c==null?void 0:c.y)||0)})}var ns=rt(Jr());var Xo=rt(Jr());function Xr(e,t){let r=new RegExp(e.separator,"img"),n=(o,i,s)=>`${i}<mark data-md-highlight>${s}</mark>`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return s=>(t?(0,Xo.default)(s):s).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Zo(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}function bt(e){return e.type===1}function ei(e){return e.type===2}function vt(e){return e.type===3}function is({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[re("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=re("search.config.separator"));let n={pipeline:re("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:Z("search.suggest")};return{config:e,docs:t,options:n}}function ti(e,t){let r=le(),n=new Worker(e),o=new w,i=xo(n,{tx$:o}).pipe(l(s=>{if(vt(s))for(let a of s.data.items)for(let f of a)f.location=`${new URL(f.location,r.base)}`;return s}),ie());return ue(t).pipe(l(s=>({type:0,data:is(s)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function ri({document$:e}){let t=le(),r=Fe(new URL("../versions.json",t.base)).pipe(ce(()=>R)),n=r.pipe(l(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:s,aliases:a})=>s===i||a.includes(i))||o[0]}));r.pipe(l(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),S(o=>v(document.body,"click").pipe(x(i=>!i.metaKey&&!i.ctrlKey),ae(n),S(([i,s])=>{if(i.target instanceof Element){let a=i.target.closest("a");if(a&&!a.target&&o.has(a.href)){let f=a.href;return!i.target.closest(".md-version")&&o.get(f)===s?R:(i.preventDefault(),I(f))}}return R}),S(i=>{let{version:s}=o.get(i);return pr(new URL(i)).pipe(l(a=>{let c=Oe().href.replace(t.base,"");return a.includes(c.split("#")[0])?new URL(`../${s}/${c}`,t.base):new URL(i)}))})))).subscribe(o=>sr(o)),Y([r,n]).subscribe(([o,i])=>{q(".md-header__topic").appendChild(Lo(o,i))}),e.pipe(S(()=>n)).subscribe(o=>{var s;let i=__md_get("__outdated",sessionStorage);if(i===null){let a=((s=t.version)==null?void 0:s.default)||"latest";i=!o.aliases.includes(a),__md_set("__outdated",i,sessionStorage)}if(i)for(let a of te("outdated"))a.hidden=!1})}function as(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||Zo,{searchParams:n}=Oe();n.has("q")&&Ke("search",!0);let o=t.pipe(x(bt),oe(1),l(()=>n.get("q")||""));dt("search").pipe(x(a=>!a),oe(1)).subscribe(()=>{let a=new URL(location.href);a.searchParams.delete("q"),history.replaceState({},"",`${a}`)}),o.subscribe(a=>{a&&(e.value=a,e.focus())});let i=Zt(e),s=A(v(e,"keyup"),v(e,"focus").pipe(ke(1)),o).pipe(l(()=>r(e.value)),N(""),B());return Y([s,i]).pipe(l(([a,f])=>({value:a,focus:f})),J(1))}function ni(e,{tx$:t,rx$:r}){let n=new w,o=n.pipe(he(1));return n.pipe(G("value"),l(({value:i})=>({type:2,data:i}))).subscribe(t.next.bind(t)),n.pipe(G("focus")).subscribe(({focus:i})=>{i?(Ke("search",i),e.placeholder=""):e.placeholder=re("search.placeholder")}),v(e.form,"reset").pipe(ee(o)).subscribe(()=>e.focus()),as(e,{tx$:t,rx$:r}).pipe(E(i=>n.next(i)),C(()=>n.complete()),l(i=>H({ref:e},i)),ie())}function oi(e,{rx$:t},{query$:r}){let n=new w,o=ro(e.parentElement).pipe(x(Boolean)),i=q(":scope > :first-child",e),s=q(":scope > :last-child",e),a=t.pipe(x(bt),oe(1));return n.pipe(ae(r),_t(a)).subscribe(([{items:c},{value:u}])=>{if(u)switch(c.length){case 0:i.textContent=re("search.result.none");break;case 1:i.textContent=re("search.result.one");break;default:i.textContent=re("search.result.other",cr(c.length))}else i.textContent=re("search.result.placeholder")}),n.pipe(E(()=>s.innerHTML=""),S(({items:c})=>A(I(...c.slice(0,10)),I(...c.slice(10)).pipe(Ce(4),Wr(o),S(([u])=>u))))).subscribe(c=>s.appendChild(To(c))),t.pipe(x(vt),l(({data:c})=>c)).pipe(E(c=>n.next(c)),C(()=>n.complete()),l(c=>H({ref:e},c)))}function ss(e,{query$:t}){return t.pipe(l(({value:r})=>{let n=Oe();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function ii(e,t){let r=new w;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),v(e,"click").subscribe(n=>n.preventDefault()),ss(e,t).pipe(E(n=>r.next(n)),C(()=>r.complete()),l(n=>H({ref:e},n)))}function ai(e,{rx$:t},{keyboard$:r}){let n=new w,o=Te("search-query"),i=A(v(o,"keydown"),v(o,"focus")).pipe(Le(fe),l(()=>o.value),B());return n.pipe(Ze(i),l(([{suggestions:a},f])=>{let c=f.split(/([\s-]+)/);if((a==null?void 0:a.length)&&c[c.length-1]){let u=a[a.length-1];u.startsWith(c[c.length-1])&&(c[c.length-1]=u)}else c.length=0;return c})).subscribe(a=>e.innerHTML=a.join("").replace(/\s/g,"&nbsp;")),r.pipe(x(({mode:a})=>a==="search")).subscribe(a=>{switch(a.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(x(vt),l(({data:a})=>a)).pipe(E(a=>n.next(a)),C(()=>n.complete()),l(()=>({ref:e})))}function si(e,{index$:t,keyboard$:r}){let n=le();try{let o=(__search==null?void 0:__search.worker)||n.search,i=ti(o,t),s=Te("search-query",e),a=Te("search-result",e),{tx$:f,rx$:c}=i;f.pipe(x(ei),ut(c.pipe(x(bt))),oe(1)).subscribe(f.next.bind(f)),r.pipe(x(({mode:m})=>m==="search")).subscribe(m=>{let d=Ie();switch(m.type){case"Enter":if(d===s){let h=new Map;for(let b of Q(":first-child [href]",a)){let K=b.firstElementChild;h.set(b,parseFloat(K.getAttribute("data-md-score")))}if(h.size){let[[b]]=[...h].sort(([,K],[,X])=>X-K);b.click()}m.claim()}break;case"Escape":case"Tab":Ke("search",!1),s.blur();break;case"ArrowUp":case"ArrowDown":if(typeof d=="undefined")s.focus();else{let h=[s,...Q(":not(details) > [href], summary, details[open] [href]",a)],b=Math.max(0,(Math.max(0,h.indexOf(d))+h.length+(m.type==="ArrowUp"?-1:1))%h.length);h[b].focus()}m.claim();break;default:s!==Ie()&&s.focus()}}),r.pipe(x(({mode:m})=>m==="global")).subscribe(m=>{switch(m.type){case"f":case"s":case"/":s.focus(),s.select(),m.claim();break}});let u=ni(s,i),p=oi(a,i,{query$:u});return A(u,p).pipe(et(...te("search-share",e).map(m=>ii(m,{query$:u})),...te("search-suggest",e).map(m=>ai(m,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,Se}}function ci(e,{index$:t,location$:r}){return Y([t,r.pipe(N(Oe()),x(n=>!!n.searchParams.get("h")))]).pipe(l(([n,o])=>Xr(n.config,!0)(o.searchParams.get("h"))),l(n=>{var s;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let a=i.nextNode();a;a=i.nextNode())if((s=a.parentElement)!=null&&s.offsetHeight){let f=a.textContent,c=n(f);c.length>f.length&&o.set(a,c)}for(let[a,f]of o){let{childNodes:c}=M("span",null,f);a.replaceWith(...Array.from(c))}return{ref:e,nodes:o}}))}function cs(e,{viewport$:t,main$:r}){let n=e.parentElement,o=n.offsetTop-n.parentElement.offsetTop;return Y([r,t]).pipe(l(([{offset:i,height:s},{offset:{y:a}}])=>(s=s+Math.min(o,Math.max(0,a-i))-o,{height:s,locked:a>=i+o})),B((i,s)=>i.height===s.height&&i.locked===s.locked))}function Zr(e,n){var o=n,{header$:t}=o,r=an(o,["header$"]);let i=q(".md-sidebar__scrollwrap",e),{y:s}=qe(i);return P(()=>{let a=new w;return a.pipe(Ae(0,xe),ae(t)).subscribe({next([{height:f},{height:c}]){i.style.height=`${f-2*s}px`,e.style.top=`${c}px`},complete(){i.style.height="",e.style.top=""}}),a.pipe(Le(xe),oe(1)).subscribe(()=>{for(let f of Q(".md-nav__link--active[href]",e)){let c=or(f);if(typeof c!="undefined"){let u=f.offsetTop-c.offsetTop,{height:p}=be(c);c.scrollTo({top:u-p/2})}}}),cs(e,r).pipe(E(f=>a.next(f)),C(()=>a.complete()),l(f=>H({ref:e},f)))})}function fi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Ot(Fe(`${r}/releases/latest`).pipe(ce(()=>R),l(n=>({version:n.tag_name})),We({})),Fe(r).pipe(ce(()=>R),l(n=>({stars:n.stargazers_count,forks:n.forks_count})),We({}))).pipe(l(([n,o])=>H(H({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Fe(r).pipe(l(n=>({repositories:n.public_repos})),We({}))}}function ui(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Fe(r).pipe(ce(()=>R),l(({star_count:n,forks_count:o})=>({stars:n,forks:o})),We({}))}function pi(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return fi(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return ui(r,n)}return R}var fs;function us(e){return fs||(fs=P(()=>{let t=__md_get("__source",sessionStorage);if(t)return I(t);if(te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return R}return pi(e.href).pipe(E(n=>__md_set("__source",n,sessionStorage)))}).pipe(ce(()=>R),x(t=>Object.keys(t).length>0),l(t=>({facts:t})),J(1)))}function li(e){let t=q(":scope > :last-child",e);return P(()=>{let r=new w;return r.subscribe(({facts:n})=>{t.appendChild(_o(n)),t.classList.add("md-source__repository--active")}),us(e).pipe(E(n=>r.next(n)),C(()=>r.complete()),l(n=>H({ref:e},n)))})}function ps(e,{viewport$:t,header$:r}){return ge(document.body).pipe(S(()=>ur(e,{header$:r,viewport$:t})),l(({offset:{y:n}})=>({hidden:n>=10})),G("hidden"))}function mi(e,t){return P(()=>{let r=new w;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(Z("navigation.tabs.sticky")?I({hidden:!1}):ps(e,t)).pipe(E(n=>r.next(n)),C(()=>r.complete()),l(n=>H({ref:e},n)))})}function ls(e,{viewport$:t,header$:r}){let n=new Map,o=Q("[href^=\\#]",e);for(let a of o){let f=decodeURIComponent(a.hash.substring(1)),c=pe(`[id="${f}"]`);typeof c!="undefined"&&n.set(a,c)}let i=r.pipe(G("height"),l(({height:a})=>{let f=Te("main"),c=q(":scope > :first-child",f);return a+.8*(c.offsetTop-f.offsetTop)}),ie());return ge(document.body).pipe(G("height"),S(a=>P(()=>{let f=[];return I([...n].reduce((c,[u,p])=>{for(;f.length&&n.get(f[f.length-1]).tagName>=p.tagName;)f.pop();let m=p.offsetTop;for(;!m&&p.parentElement;)p=p.parentElement,m=p.offsetTop;return c.set([...f=[...f,u]].reverse(),m)},new Map))}).pipe(l(f=>new Map([...f].sort(([,c],[,u])=>c-u))),Ze(i),S(([f,c])=>t.pipe($r(([u,p],{offset:{y:m},size:d})=>{let h=m+d.height>=Math.floor(a.height);for(;p.length;){let[,b]=p[0];if(b-c<m||h)u=[...u,p.shift()];else break}for(;u.length;){let[,b]=u[u.length-1];if(b-c>=m&&!h)p=[u.pop(),...p];else break}return[u,p]},[[],[...f]]),B((u,p)=>u[0]===p[0]&&u[1]===p[1])))))).pipe(l(([a,f])=>({prev:a.map(([c])=>c),next:f.map(([c])=>c)})),N({prev:[],next:[]}),Ce(2,1),l(([a,f])=>a.prev.length<f.prev.length?{prev:f.prev.slice(Math.max(0,a.prev.length-1),f.prev.length),next:[]}:{prev:f.prev.slice(-1),next:f.next.slice(0,f.next.length-a.next.length)}))}function di(e,{viewport$:t,header$:r,target$:n}){return P(()=>{let o=new w,i=o.pipe(he(1));if(o.subscribe(({prev:s,next:a})=>{for(let[f]of a)f.classList.remove("md-nav__link--passed"),f.classList.remove("md-nav__link--active");for(let[f,[c]]of s.entries())c.classList.add("md-nav__link--passed"),c.classList.toggle("md-nav__link--active",f===s.length-1)}),Z("toc.follow")){let s=A(t.pipe(Re(1),l(()=>{})),t.pipe(Re(250),l(()=>"smooth")));o.pipe(x(({prev:a})=>a.length>0),ae(s)).subscribe(([{prev:a},f])=>{let[c]=a[a.length-1];if(c.offsetHeight){let u=or(c);if(typeof u!="undefined"){let p=c.offsetTop-u.offsetTop,{height:m}=be(u);u.scrollTo({top:p-m/2,behavior:f})}}})}return Z("navigation.tracking")&&t.pipe(ee(i),G("offset"),Re(250),He(1),ee(n.pipe(He(1))),Tt({delay:250}),ae(o)).subscribe(([,{prev:s}])=>{let a=Oe(),f=s[s.length-1];if(f&&f.length){let[c]=f,{hash:u}=new URL(c.href);a.hash!==u&&(a.hash=u,history.replaceState({},"",`${a}`))}else a.hash="",history.replaceState({},"",`${a}`)}),ls(e,{viewport$:t,header$:r}).pipe(E(s=>o.next(s)),C(()=>o.complete()),l(s=>H({ref:e},s)))})}function ms(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(l(({offset:{y:s}})=>s),Ce(2,1),l(([s,a])=>s>a&&a>0),B()),i=r.pipe(l(({active:s})=>s));return Y([i,o]).pipe(l(([s,a])=>!(s&&a)),B(),ee(n.pipe(He(1))),Pr(!0),Tt({delay:250}),l(s=>({hidden:s})))}function hi(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new w,s=i.pipe(he(1));return i.subscribe({next({hidden:a}){e.hidden=a,a?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(ee(s),G("height")).subscribe(({height:a})=>{e.style.top=`${a+16}px`}),ms(e,{viewport$:t,main$:n,target$:o}).pipe(E(a=>i.next(a)),C(()=>i.complete()),l(a=>H({ref:e},a)))}function bi({document$:e,tablet$:t}){e.pipe(S(()=>Q(".md-toggle--indeterminate, [data-md-state=indeterminate]")),E(r=>{r.indeterminate=!0,r.checked=!1}),se(r=>v(r,"change").pipe(Fr(()=>r.classList.contains("md-toggle--indeterminate")),l(()=>r))),ae(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function ds(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function vi({document$:e}){e.pipe(S(()=>Q("[data-md-scrollfix]")),E(t=>t.removeAttribute("data-md-scrollfix")),x(ds),se(t=>v(t,"touchstart").pipe(l(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function gi({viewport$:e,tablet$:t}){Y([dt("search"),t]).pipe(l(([r,n])=>r&&!n),S(r=>I(r).pipe(ke(r?400:100))),ae(e)).subscribe(([r,{offset:{y:n}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${n}px`;else{let o=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",o&&window.scrollTo(0,o)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var tt=qn(),mr=io(),gt=uo(),en=oo(),Ee=yo(),dr=Vr("(min-width: 960px)"),xi=Vr("(min-width: 1220px)"),Ei=po(),wi=le(),Si=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||Fe(new URL("search/search_index.json",wi.base)):Se,tn=new w;Bo({alert$:tn});Z("navigation.instant")&&Go({document$:tt,location$:mr,viewport$:Ee});var yi;((yi=wi.version)==null?void 0:yi.provider)==="mike"&&ri({document$:tt});A(mr,gt).pipe(ke(125)).subscribe(()=>{Ke("drawer",!1),Ke("search",!1)});en.pipe(x(({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}});bi({document$:tt,tablet$:dr});vi({document$:tt});gi({viewport$:Ee,tablet$:dr});var Qe=zo(Te("header"),{viewport$:Ee}),lr=tt.pipe(l(()=>Te("main")),S(e=>Qo(e,{viewport$:Ee,header$:Qe})),J(1)),hs=A(...te("consent").map(e=>wo(e,{target$:gt})),...te("dialog").map(e=>No(e,{alert$:tn})),...te("header").map(e=>qo(e,{viewport$:Ee,header$:Qe,main$:lr})),...te("palette").map(e=>Yo(e)),...te("search").map(e=>si(e,{index$:Si,keyboard$:en})),...te("source").map(e=>li(e))),bs=P(()=>A(...te("announce").map(e=>Eo(e)),...te("content").map(e=>Vo(e,{viewport$:Ee,target$:gt,print$:Ei})),...te("content").map(e=>Z("search.highlight")?ci(e,{index$:Si,location$:mr}):R),...te("header-title").map(e=>Ko(e,{viewport$:Ee,header$:Qe})),...te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Nr(xi,()=>Zr(e,{viewport$:Ee,header$:Qe,main$:lr})):Nr(dr,()=>Zr(e,{viewport$:Ee,header$:Qe,main$:lr}))),...te("tabs").map(e=>mi(e,{viewport$:Ee,header$:Qe})),...te("toc").map(e=>di(e,{viewport$:Ee,header$:Qe,target$:gt})),...te("top").map(e=>hi(e,{viewport$:Ee,header$:Qe,main$:lr,target$:gt})))),Oi=tt.pipe(S(()=>bs),et(hs),J(1));Oi.subscribe();window.document$=tt;window.location$=mr;window.target$=gt;window.keyboard$=en;window.viewport$=Ee;window.tablet$=dr;window.screen$=xi;window.print$=Ei;window.alert$=tn;window.component$=Oi;})();
//# sourceMappingURL=bundle.3020a18e.min.js.map