mkdocs-material/material/overrides/assets/javascripts/bundle.cf78cd63.min.js
2021-03-01 20:08:59 +01:00

20 lines
43 KiB
JavaScript

(()=>{var Jt=Object.create,sr=Object.defineProperty,Xt=Object.getPrototypeOf,Gt=Object.prototype.hasOwnProperty,Zt=Object.getOwnPropertyNames,Bt=Object.getOwnPropertyDescriptor;var Mr=Object.assign,en=e=>sr(e,"__esModule",{value:!0});var ve=(e,r)=>()=>(r||(r={exports:{}},e(r.exports,r)),r.exports);var rn=(e,r,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Zt(r))!Gt.call(e,n)&&n!=="default"&&sr(e,n,{get:()=>r[n],enumerable:!(t=Bt(r,n))||t.enumerable});return e},Ir=e=>e&&e.__esModule?e:rn(en(sr(e!=null?Jt(Xt(e)):{},"default",{value:e,enumerable:!0})),e);var Fe=ve(K=>{(function(){var e,r,t,n,o,i,a,l,c,u,s,f,d,v,h,m,b,w,S,R;R=150,u=20,S=150,c=.75,K.score=function(p,g,E){var O,y,x,A;return y=E.preparedQuery,O=E.allowErrors,O||o(p,y.core_lw,y.core_up)?(A=p.toLowerCase(),x=r(p,A,y),Math.ceil(x)):0},K.isMatch=o=function(p,g,E){var O,y,x,A,P,F,M;if(x=p.length,A=g.length,!x||A>x)return!1;for(O=-1,y=-1;++y<A;){for(P=g.charCodeAt(y),F=E.charCodeAt(y);++O<x&&(M=p.charCodeAt(O),!(M===P||M===F)););if(O===x)return!1}return!0},K.computeScore=r=function(p,g,E){var O,y,x,A,P,F,M,H,_,U,k,Z,V,ne,ue,B,fe,oe,or,he,je,ir,ar,ur;if(ue=E.query,B=E.query_lw,U=p.length,V=ue.length,O=s(p,g,ue,B),y=O.score,O.count===V)return v(V,U,y,O.pos);if(ne=g.indexOf(B),ne>-1)return h(p,g,ue,B,ne,V,U);for(he=new Array(V),P=new Array(V),ur=w(V,U),k=Math.ceil(c*V)+5,Z=k,M=!0,_=-1;++_<V;)he[_]=0,P[_]=0;for(H=-1;++H<U;){if(ir=g[H],!ir.charCodeAt(0)in E.charCodes){if(M){for(_=-1;++_<V;)P[_]=0;M=!1}continue}for(oe=0,or=0,A=0,fe=!0,M=!0,_=-1;++_<V;){if(je=he[_],je>oe&&(oe=je),F=0,B[_]===ir)if(ar=l(H,p,g),F=A>0?A:d(p,g,ue,B,H,_,ar),x=or+f(H,_,ar,y,F),x>oe)oe=x,Z=k;else{if(fe&&--Z<=0)return Math.max(oe,he[V-1])*ur;fe=!1}or=je,A=P[_],P[_]=F,he[_]=oe}}return oe=he[V-1],oe*ur},K.isWordStart=l=function(p,g,E){var O,y;return p===0?!0:(O=g[p],y=g[p-1],i(y)||O!==E[p]&&y===E[p-1])},K.isWordEnd=a=function(p,g,E,O){var y,x;return p===O-1?!0:(y=g[p],x=g[p+1],i(x)||y===E[p]&&x!==E[p+1])},i=function(p){return p===" "||p==="."||p==="-"||p==="_"||p==="/"||p==="\\"},b=function(p){var g;return p<u?(g=u-p,100+g*g):Math.max(100+u-p,0)},K.scoreSize=w=function(p,g){return S/(S+Math.abs(g-p))},v=function(p,g,E,O){return 2*p*(R*E+b(O))*w(p,g)},K.scorePattern=m=function(p,g,E,O,y){var x,A;return A=p,x=6,E===p&&(x+=2),O&&(x+=3),y&&(x+=1),p===g&&(O&&(E===g?A+=2:A+=1),y&&(x+=1)),E+A*(A+x)},K.scoreCharacter=f=function(p,g,E,O,y){var x;return x=b(p),E?x+R*((O>y?O:y)+10):x+R*y},K.scoreConsecutives=d=function(p,g,E,O,y,x,A){var P,F,M,H,_,U,k;for(F=p.length,H=E.length,M=F-y,_=H-x,P=M<_?M:_,U=0,k=0,E[x]===p[y]&&U++;++k<P&&O[++x]===g[++y];)E[x]===p[y]&&U++;return k<P&&y--,k===1?1+2*U:m(k,H,U,A,a(y,p,g,F))},K.scoreExactMatch=h=function(p,g,E,O,y,x,A){var P,F,M,H,_;for(_=l(y,p,g),_||(M=g.indexOf(O,y+1),M>-1&&(_=l(M,p,g),_&&(y=M))),F=-1,H=0;++F<x;)E[y+F]===p[F]&&H++;return P=a(y+x-1,p,g,A),v(x,A,m(x,x,H,_,P),y)},e=function(){function p(g,E,O){this.score=g,this.pos=E,this.count=O}return p}(),t=new e(0,.1,0),K.scoreAcronyms=s=function(p,g,E,O){var y,x,A,P,F,M,H,_,U,k,Z;if(F=p.length,M=E.length,!(F>1&&M>1))return t;for(y=0,k=0,Z=0,_=0,A=-1,P=-1;++P<M;){if(H=O[P],i(H))if(A=g.indexOf(H,A+1),A>-1){k++;continue}else break;for(;++A<F;)if(H===g[A]&&l(A,p,g)){E[P]===p[A]&&_++,Z+=A,y++;break}if(A===F)break}return y<2?t:(x=y===M?n(p,g,E,y):!1,U=m(y,M,_,!0,x),new e(U,Z/y,y+k))},n=function(p,g,E,O){var y,x,A,P;if(A=p.length,P=E.length,y=0,A>12*P)return!1;for(x=-1;++x<A;)if(l(x,p,g)&&++y>O)return!1;return!0}}).call(K)});var tr=ve(Re=>{(function(){var e,r,t,n,o,i,a,l,c,u;u=Fe(),i=u.isMatch,e=u.computeScore,l=u.scoreSize,c=20,t=2.5,Re.score=function(s,f,d){var v,h,m,b;return h=d.preparedQuery,v=d.allowErrors,v||i(s,h.core_lw,h.core_up)?(b=s.toLowerCase(),m=e(s,b,h),m=a(s,b,m,d),Math.ceil(m)):0},a=function(s,f,d,v){var h,m,b,w,S,R,p,g,E,O;if(d===0)return 0;for(E=v.preparedQuery,O=v.useExtensionBonus,g=v.pathSeparator,S=s.length-1;s[S]===g;)S--;if(b=s.lastIndexOf(g,S),p=S-b,R=1,O&&(R+=o(f,E.ext,b,S,2),d*=R),b===-1)return d;for(w=E.depth;b>-1&&w-- >0;)b=s.lastIndexOf(g,b-1);return m=b===-1?d:R*e(s.slice(b+1,S+1),f.slice(b+1,S+1),E),h=.5*c/(c+r(s,S+1,g)),h*m+(1-h)*d*l(0,t*p)},Re.countDir=r=function(s,f,d){var v,h;if(f<1)return 0;for(v=0,h=-1;++h<f&&s[h]===d;);for(;++h<f;)if(s[h]===d)for(v++;++h<f&&s[h]===d;);return v},Re.getExtension=n=function(s){var f;return f=s.lastIndexOf("."),f<0?"":s.substr(f+1)},o=function(s,f,d,v,h){var m,b,w,S;if(!f.length||(S=s.lastIndexOf(".",v),!(S>d)))return 0;for(w=f.length,m=v-S,m<w&&(w=m,m=f.length),S++,b=-1;++b<w&&s[S+b]===f[b];);return b===0&&h>0?.9*o(s,f,d,S-2,h-1):b/m}}).call(Re)});var Ar=ve((It,Lt)=>{(function(){var e,r,t,n,o,i,a,l;l=tr(),t=l.countDir,o=l.getExtension,Lt.exports=e=function(){function c(u,s){var f,d,v;if(v=s!=null?s:{},f=v.optCharRegEx,d=v.pathSeparator,!(u&&u.length))return null;this.query=u,this.query_lw=u.toLowerCase(),this.core=r(u,f),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=t(u,u.length,d),this.ext=o(this.query_lw),this.charCodes=n(this.query_lw)}return c}(),i=/[ _\-:\/\\]/g,r=function(c,u){return u==null&&(u=i),c.replace(u,"")},a=function(c){var u,s,f,d;for(s="",f=0,d=c.length;f<d;f++)u=c[f],s+=u.toUpperCase()[0];return s},n=function(c){var u,s,f;for(f=c.length,s=-1,u=[];++s<f;)u[c.charCodeAt(s)]=!0;return u}}).call(It)});var Ht=ve((Ct,Pt)=>{(function(){var e,r,t,n,o;n=Fe(),r=tr(),e=Ar(),t=function(i){return i.candidate},o=function(i,a){return a.score-i.score},Pt.exports=function(i,a,l){var c,u,s,f,d,v,h,m,b,w,S,R,p;for(m=[],s=l.key,d=l.maxResults,f=l.maxInners,S=l.usePathScoring,b=f!=null&&f>0?f:i.length+1,c=s!=null,h=S?r:n,R=0,p=i.length;R<p&&(u=i[R],w=c?u[s]:u,!(!!w&&(v=h.score(w,a,l),v>0&&(m.push({candidate:u,score:v}),!--b))));R++);return m.sort(o),i=m.map(t),d!=null&&(i=i.slice(0,d)),i}}).call(Ct)});var Ft=ve(nr=>{(function(){var e,r,t,n,o,i,a,l,c,u;u=Fe(),t=u.isMatch,n=u.isWordStart,c=u.scoreConsecutives,l=u.scoreCharacter,a=u.scoreAcronyms,nr.match=o=function(s,f,d){var v,h,m,b,w,S;return v=d.allowErrors,w=d.preparedQuery,b=d.pathSeparator,v||t(s,w.core_lw,w.core_up)?(S=s.toLowerCase(),m=r(s,S,w),m.length===0||s.indexOf(b)>-1&&(h=e(s,S,w,b),m=i(m,h)),m):[]},nr.wrap=function(s,f,d){var v,h,m,b,w,S,R,p,g;if(d.wrap!=null&&(g=d.wrap,S=g.tagClass,p=g.tagOpen,R=g.tagClose),S==null&&(S="highlight"),p==null&&(p='<strong class="'+S+'">'),R==null&&(R="</strong>"),s===f)return p+s+R;if(m=o(s,f,d),m.length===0)return s;for(b="",v=-1,w=0;++v<m.length;){for(h=m[v],h>w&&(b+=s.substring(w,h),w=h);++v<m.length;)if(m[v]===h+1)h++;else{v--;break}h++,h>w&&(b+=p,b+=s.substring(w,h),b+=R,w=h)}return w<=s.length-1&&(b+=s.substring(w)),b},e=function(s,f,d,v){var h,m,b;for(b=s.length-1;s[b]===v;)b--;if(h=s.lastIndexOf(v,b),h===-1)return[];for(m=d.depth;m-- >0;)if(h=s.lastIndexOf(v,h-1),h===-1)return[];return h++,b++,r(s.slice(h,b),f.slice(h,b),d,h)},i=function(s,f){var d,v,h,m,b,w,S;if(b=s.length,w=f.length,w===0)return s.slice();if(b===0)return f.slice();for(h=-1,m=0,v=f[m],S=[];++h<b;){for(d=s[h];v<=d&&++m<w;)v<d&&S.push(v),v=f[m];S.push(d)}for(;m<w;)S.push(f[m++]);return S},r=function(s,f,d,v){var h,m,b,w,S,R,p,g,E,O,y,x,A,P,F,M,H,_,U,k,Z,V,ne,ue,B,fe;for(v==null&&(v=0),_=d.query,U=d.query_lw,A=s.length,M=_.length,S=a(s,f,_,U).score,V=new Array(M),E=new Array(M),b=0,w=1,m=2,h=3,fe=new Array(A*M),H=-1,x=-1;++x<M;)V[x]=0,E[x]=0;for(y=-1;++y<A;)for(k=0,ne=0,g=0,ue=f[y],x=-1;++x<M;)O=0,R=0,Z=ne,U[x]===ue&&(B=n(y,s,f),O=g>0?g:c(s,f,_,U,y,x,B),R=Z+l(y,x,B,S,O)),ne=V[x],g=E[x],k>ne?F=m:(k=ne,F=w),R>k?(k=R,F=h):O=0,V[x]=k,E[x]=O,fe[++H]=k>0?F:b;for(y=A-1,x=M-1,H=y*M+x,p=!0,P=[];p&&y>=0&&x>=0;)switch(fe[H]){case w:y--,H-=M;break;case m:x--,H--;break;case h:P.push(y+v),x--,y--,H-=M+1;break;default:p=!1}return P.reverse(),P}}).call(nr)});var _r=ve((Rt,jt)=>{(function(){var e,r,t,n,o,i,a,l;t=Ht(),n=Ft(),l=Fe(),i=tr(),e=Ar(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",jt.exports={filter:function(c,u,s){return s==null&&(s={}),(u!=null?u.length:void 0)&&(c!=null?c.length:void 0)?(s=o(s,u),t(c,u,s)):[]},score:function(c,u,s){return s==null&&(s={}),(c!=null?c.length:void 0)&&(u!=null?u.length:void 0)?(s=o(s,u),s.usePathScoring?i.score(c,u,s):l.score(c,u,s)):0},match:function(c,u,s){var f,d,v;return s==null&&(s={}),c?u?c===u?function(){v=[];for(var h=0,m=c.length;0<=m?h<m:h>m;0<=m?h++:h--)v.push(h);return v}.apply(this):(s=o(s,u),n.match(c,u,s)):[]:[]},wrap:function(c,u,s){return s==null&&(s={}),c?u?(s=o(s,u),n.wrap(c,u,s)):[]:[]},prepareQuery:function(c,u){return u==null&&(u={}),u=o(u,c),u.preparedQuery}},o=function(c,u){return c.allowErrors==null&&(c.allowErrors=!1),c.usePathScoring==null&&(c.usePathScoring=!0),c.useExtensionBonus==null&&(c.useExtensionBonus=!1),c.pathSeparator==null&&(c.pathSeparator=r),c.optCharRegEx==null&&(c.optCharRegEx=null),c.wrap==null&&(c.wrap=null),c.preparedQuery==null&&(c.preparedQuery=a&&a.query===u?a:a=new e(u,c)),c}}).call(Rt)});var cr=function(e,r){return cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},cr(e,r)};function z(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");cr(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Lr(e,r,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(s){try{u(n.next(s))}catch(f){a(f)}}function c(s){try{u(n.throw(s))}catch(f){a(f)}}function u(s){s.done?i(s.value):o(s.value).then(l,c)}u((n=n.apply(e,r||[])).next())})}function Cr(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(s){return c([u,s])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,o=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(e,t)}catch(s){u=[6,s],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function J(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.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(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function j(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function W(e,r){for(var t=0,n=r.length,o=e.length;t<n;t++,o++)e[o]=r[t];return e}function Pr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof J=="function"?J(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(a){return new Promise(function(l,c){a=e[i](a),o(l,c,a.done,a.value)})}}function o(i,a,l,c){Promise.resolve(c).then(function(u){i({value:u,done:l})},a)}}function T(e){return typeof e=="function"}function ke(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ze=ke(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function ie(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var $=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))try{for(var l=J(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(m){r={error:m}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else a==null||a.remove(this);var s=this.initialTeardown;if(T(s))try{s()}catch(m){i=m instanceof ze?m.errors:[m]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var d=J(f),v=d.next();!v.done;v=d.next()){var h=v.value;try{Hr(h)}catch(m){i=i!=null?i:[],m instanceof ze?i=W(W([],j(i)),j(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new ze(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Hr(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=(t=this._teardowns)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ie(t,r)},e.prototype.remove=function(r){var t=this._teardowns;t&&ie(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var lr=$.EMPTY;function We(e){return e instanceof $||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function Hr(e){T(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var be={setTimeout:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=be.delegate;return((t==null?void 0:t.setTimeout)||setTimeout).apply(void 0,W([],j(e)))},clearTimeout:function(e){var r=be.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ue(e){be.setTimeout(function(){var r=X.onUnhandledError;if(r)r(e);else throw e})}function G(){}var Fr=function(){return fr("C",void 0,void 0)}();function Rr(e){return fr("E",void 0,e)}function jr(e){return fr("N",e,void 0)}function fr(e,r,t){return{kind:e,value:r,error:t}}var Me=function(e){z(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,We(t)&&t.add(n)):n.destination=tn,n}return r.create=function(t,n,o){return new pr(t,n,o)},r.prototype.next=function(t){this.isStopped?mr(jr(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?mr(Rr(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?mr(Fr,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r}($);var pr=function(e){z(r,e);function r(t,n,o){var i=e.call(this)||this,a;if(T(t))a=t;else if(t){a=t.next,n=t.error,o=t.complete;var l;i&&X.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()}):l=t,a=a==null?void 0:a.bind(l),n=n==null?void 0:n.bind(l),o=o==null?void 0:o.bind(l)}return i.destination={next:a?dr(a,i):G,error:dr(n||kr,i),complete:o?dr(o,i):G},i}return r}(Me);function dr(e,r){return X.useDeprecatedSynchronousErrorHandling?function(t){try{e(t)}catch(n){r.__syncError=n}}:e}function kr(e){if(X.useDeprecatedSynchronousErrorHandling)throw e;Ue(e)}function mr(e,r){var t=X.onStoppedNotification;t&&be.setTimeout(function(){return t(e,r)})}var tn={closed:!0,next:G,error:kr,complete:G};var se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function D(e){return e}function zr(e){return e.length===0?D:e.length===1?e[0]:function(t){return e.reduce(function(n,o){return o(n)},t)}}var I=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,n){var o=nn(r)?r:new pr(r,t,n),i=this,a=i.operator,l=i.source;if(o.add(a?a.call(o,l):l||X.useDeprecatedSynchronousErrorHandling?this._subscribe(o):this._trySubscribe(o)),X.useDeprecatedSynchronousErrorHandling)for(var c=o;c;){if(c.__syncError)throw c.__syncError;c=c.destination}return o},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var n=this;return t=Wr(t),new t(function(o,i){var a;a=n.subscribe(function(l){try{r(l)}catch(c){i(c),a==null||a.unsubscribe()}},i,o)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[se]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.length?zr(r)(this):this},e.prototype.toPromise=function(r){var t=this;return r=Wr(r),new r(function(n,o){var i;t.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(r){return new e(r)},e}();function Wr(e){var r;return(r=e!=null?e:X.Promise)!==null&&r!==void 0?r:Promise}function on(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function nn(e){return e&&e instanceof Me||on(e)&&We(e)}function an(e){return T(e==null?void 0:e.lift)}function L(e){return function(r){if(an(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var C=function(e){z(r,e);function r(t,n,o,i,a){var l=e.call(this,t)||this;return l.onFinalize=a,l._next=n?function(c){try{n(c)}catch(u){this.destination.error(u)}}:e.prototype._next,l._error=o?function(c){try{o(c)}catch(u){this.destination.error(u)}this.unsubscribe()}:e.prototype._error,l._complete=i?function(){try{i()}catch(c){this.destination.error(c)}this.unsubscribe()}:e.prototype._complete,l}return r.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))},r}(Me);var ye={schedule:function(e){var r=requestAnimationFrame,t=cancelAnimationFrame,n=ye.delegate;n&&(r=n.requestAnimationFrame,t=n.cancelAnimationFrame);var o=r(function(i){t=void 0,e(i)});return new $(function(){return t==null?void 0:t(o)})},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ye.delegate;return((t==null?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],j(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ye.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],j(e)))},delegate:void 0};var Ur=ke(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var ae=function(e){z(r,e);function r(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var n=new qr(this,this);return n.operator=t,n},r.prototype._throwIfClosed=function(){if(this.closed)throw new Ur},r.prototype.next=function(t){var n,o;if(this._throwIfClosed(),!this.isStopped){var i=this.observers.slice();try{for(var a=J(i),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(t)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}}},r.prototype.error=function(t){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;for(var n=this.observers;n.length;)n.shift().error(t)}},r.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,l=o.observers;return i||a?lr:(l.push(t),new $(function(){return ie(n.observers,t)}))},r.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},r.prototype.asObservable=function(){var t=new I;return t.source=this,t},r.create=function(t,n){return new qr(t,n)},r}(I);var qr=function(e){z(r,e);function r(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return r.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},r.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},r.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},r.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:lr},r}(ae);var Ie={now:function(){return(Ie.delegate||Date).now()},delegate:void 0};var Vr=function(e){z(r,e);function r(t,n,o){t===void 0&&(t=Infinity),n===void 0&&(n=Infinity),o===void 0&&(o=Ie);var i=e.call(this)||this;return i.bufferSize=t,i.windowTime=n,i.timestampProvider=o,i.buffer=[],i.infiniteTimeWindow=!0,i.infiniteTimeWindow=n===Infinity,i.bufferSize=Math.max(1,t),i.windowTime=Math.max(1,n),i}return r.prototype.next=function(t){var n=this,o=n.isStopped,i=n.buffer,a=n.infiniteTimeWindow,l=n.timestampProvider,c=n.windowTime;o||(i.push(t),!a&&i.push(l.now()+c)),this.trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this.trimBuffer();for(var n=this._innerSubscribe(t),o=this,i=o.infiniteTimeWindow,a=o.buffer,l=a.slice(),c=0;c<l.length&&!t.closed;c+=i?1:2)t.next(l[c]);return this._checkFinalizedStatuses(t),n},r.prototype.trimBuffer=function(){var t=this,n=t.bufferSize,o=t.timestampProvider,i=t.buffer,a=t.infiniteTimeWindow,l=(a?1:2)*n;if(n<Infinity&&l<i.length&&i.splice(0,i.length-l),!a){for(var c=o.now(),u=0,s=1;s<i.length&&i[s]<=c;s+=2)u=s;u&&i.splice(0,u+1)}},r}(ae);var Nr=function(e){z(r,e);function r(t,n){return e.call(this)||this}return r.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},r}($);var Le={setInterval:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Le.delegate;return((t==null?void 0:t.setInterval)||setInterval).apply(void 0,W([],j(e)))},clearInterval:function(e){var r=Le.delegate;return((r==null?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0};var qe=function(e){z(r,e);function r(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return r.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},r.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),Le.setInterval(t.flush.bind(t,this),o)},r.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;Le.clearInterval(n)},r.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(t,n){var o=!1,i;try{this.work(t)}catch(a){o=!0,i=!!a&&a||new Error(a)}if(o)return this.unsubscribe(),i},r.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ie(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(Nr);var hr=function(){function e(r,t){t===void 0&&(t=e.now),this.schedulerActionCtor=r,this.now=t}return e.prototype.schedule=function(r,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,r).schedule(n,t)},e.now=Ie.now,e}();var Ve=function(e){z(r,e);function r(t,n){n===void 0&&(n=hr.now);var o=e.call(this,t,n)||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var o;this.active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,o){for(;t=n.shift();)t.unsubscribe();throw o}},r}(hr);var vr=new Ve(qe),$r=vr;var Dr=function(e){z(r,e);function r(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o}return r.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,t,n,o):(t.actions.push(this),t.scheduled||(t.scheduled=ye.requestAnimationFrame(function(){return t.flush(void 0)})))},r.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,o);t.actions.length===0&&(ye.cancelAnimationFrame(n),t.scheduled=void 0)},r}(qe);var Qr=function(e){z(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,o,i=-1;t=t||n.shift();var a=n.length;do if(o=t.execute(t.state,t.delay))break;while(++i<a&&(t=n.shift()));if(this.active=!1,o){for(;++i<a&&(t=n.shift());)t.unsubscribe();throw o}},r}(Ve);var br=new Qr(Dr);var xe=new I(function(e){return e.complete()});function ge(e,r){return new I(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}var we=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ne(e){return T(e==null?void 0:e.then)}function un(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Se=un();function Kr(e,r){return new I(function(t){var n=new $;return n.add(r.schedule(function(){var o=e[se]();n.add(o.subscribe({next:function(i){n.add(r.schedule(function(){return t.next(i)}))},error:function(i){n.add(r.schedule(function(){return t.error(i)}))},complete:function(){n.add(r.schedule(function(){return t.complete()}))}}))})),n})}function Yr(e,r){return new I(function(t){return r.schedule(function(){return e.then(function(n){t.add(r.schedule(function(){t.next(n),t.add(r.schedule(function(){return t.complete()}))}))},function(n){t.add(r.schedule(function(){return t.error(n)}))})})})}function Jr(e,r,t,n){n===void 0&&(n=0);var o=r.schedule(function(){try{t.call(this)}catch(i){e.error(i)}},n);return e.add(o),o}function Xr(e,r){return new I(function(t){var n;return t.add(r.schedule(function(){n=e[Se](),Jr(t,r,function(){var o=n.next(),i=o.value,a=o.done;a?t.complete():(t.next(i),this.schedule())})})),function(){return T(n==null?void 0:n.return)&&n.return()}})}function $e(e){return T(e[se])}function De(e){return T(e==null?void 0:e[Se])}function Gr(e,r){if(!e)throw new Error("Iterable cannot be null");return new I(function(t){var n=new $;return n.add(r.schedule(function(){var o=e[Symbol.asyncIterator]();n.add(r.schedule(function(){var i=this;o.next().then(function(a){a.done?t.complete():(t.next(a.value),i.schedule())})}))})),n})}function Qe(e){return Symbol.asyncIterator&&T(e==null?void 0:e[Symbol.asyncIterator])}function Ke(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, Array, AsyncIterable, or Iterable.")}function Zr(e,r){if(e!=null){if($e(e))return Kr(e,r);if(we(e))return ge(e,r);if(Ne(e))return Yr(e,r);if(Qe(e))return Gr(e,r);if(De(e))return Xr(e,r)}throw Ke(e)}function pe(e,r){return r?Zr(e,r):N(e)}function N(e){if(e instanceof I)return e;if(e!=null){if($e(e))return sn(e);if(we(e))return yr(e);if(Ne(e))return cn(e);if(Qe(e))return fn(e);if(De(e))return ln(e)}throw Ke(e)}function sn(e){return new I(function(r){var t=e[se]();if(T(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function yr(e){return new I(function(r){for(var t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}function cn(e){return new I(function(r){e.then(function(t){r.closed||(r.next(t),r.complete())},function(t){return r.error(t)}).then(null,Ue)})}function ln(e){return new I(function(r){for(var t=e[Se]();!r.closed;){var n=t.next(),o=n.done,i=n.value;o?r.complete():r.next(i)}return function(){return T(t==null?void 0:t.return)&&t.return()}})}function fn(e){return new I(function(r){pn(e,r).catch(function(t){return r.error(t)})})}function pn(e,r){var t,n,o,i;return Lr(this,void 0,void 0,function(){var a,l;return Cr(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=Pr(e),c.label=1;case 1:return[4,t.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];a=n.value,r.next(a),c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),o={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function ce(e,r){return r?ge(e,r):yr(e)}function Ye(e){return e&&T(e.schedule)}function xr(e){return e[e.length-1]}function Ee(e){return T(xr(e))?e.pop():void 0}function ee(e){return Ye(xr(e))?e.pop():void 0}function Br(e,r){return typeof xr(e)=="number"?e.pop():r}function Oe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ee(e);return t?ge(e,t):ce(e)}function et(e){return e instanceof Date&&!isNaN(e)}function q(e,r){return L(function(t,n){var o=0;t.subscribe(new C(n,function(i){n.next(e.call(r,i,o++))}))})}var mn=Array.isArray;function dn(e,r){return mn(r)?e.apply(void 0,W([],j(r))):e(r)}function Je(e){return q(function(r){return dn(e,r)})}function gr(e,r){return r===void 0&&(r=0),L(function(t,n){t.subscribe(new C(n,function(o){return n.add(e.schedule(function(){return n.next(o)},r))},function(o){return n.add(e.schedule(function(){return n.error(o)},r))},function(){return n.add(e.schedule(function(){return n.complete()},r))}))})}var hn=Array.isArray,vn=Object.getPrototypeOf,bn=Object.prototype,yn=Object.keys;function rt(e){if(e.length===1){var r=e[0];if(hn(r))return{args:r,keys:null};if(xn(r)){var t=yn(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}function xn(e){return e&&typeof e=="object"&&vn(e)===bn}function tt(e,r){return e.reduce(function(t,n,o){return t[n]=r[o],t},{})}function Xe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ee(e),n=Ee(e),o=rt(e),i=o.args,a=o.keys;if(i.length===0)return pe([],t);var l=new I(gn(i,t,a?function(c){return tt(a,c)}:D));return n?l.pipe(Je(n)):l}function gn(e,r,t){return t===void 0&&(t=D),function(n){nt(r,function(){for(var o=e.length,i=new Array(o),a=o,l=o,c=function(s){nt(r,function(){var f=pe(e[s],r),d=!1;f.subscribe(new C(n,function(v){i[s]=v,d||(d=!0,l--),l||n.next(t(i.slice()))},void 0,function(){--a||n.complete()}))},n)},u=0;u<o;u++)c(u)},n)}}function nt(e,r,t){e?t.add(e.schedule(r)):r()}function ot(e,r,t,n,o,i,a,l){var c=[],u=0,s=0,f=!1,d=function(){f&&!c.length&&!u&&r.complete()},v=function(m){return u<n?h(m):c.push(m)},h=function(m){i&&r.next(m),u++;var b=!1;N(t(m,s++)).subscribe(new C(r,function(w){o==null||o(w),i?v(w):r.next(w)},void 0,function(){b=!0},function(){if(b)try{u--;for(var w=function(){var S=c.shift();a?r.add(a.schedule(function(){return h(S)})):h(S)};c.length&&u<n;)w();d()}catch(S){r.error(S)}}))};return e.subscribe(new C(r,v,void 0,function(){f=!0,d()})),function(){l==null||l()}}function me(e,r,t){return t===void 0&&(t=Infinity),T(r)?me(function(n,o){return q(function(i,a){return r(n,i,o,a)})(N(e(n,o)))},t):(typeof r=="number"&&(t=r),L(function(n,o){return ot(n,o,e,t)}))}function Ge(e){return e===void 0&&(e=Infinity),me(D,e)}function it(){return Ge(1)}function Ce(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return it()(ce(e,ee(e)))}function at(e){return new I(function(r){N(e()).subscribe(r)})}var wn=["addListener","removeListener"],Sn=["addEventListener","removeEventListener"],En=["on","off"];function Q(e,r,t,n){if(T(t)&&(n=t,t=void 0),n)return Q(e,r,t).pipe(Je(n));var o=j(An(e)?Sn.map(function(l){return function(c){return e[l](r,c,t)}}):On(e)?wn.map(ut(e,r)):Tn(e)?En.map(ut(e,r)):[],2),i=o[0],a=o[1];return!i&&we(e)?me(function(l){return Q(l,r,t)})(ce(e)):new I(function(l){if(!i)throw new TypeError("Invalid event target");var c=function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return l.next(1<u.length?u:u[0])};return i(c),function(){return a(c)}})}function ut(e,r){return function(t){return function(n){return e[t](r,n)}}}function On(e){return T(e.addListener)&&T(e.removeListener)}function Tn(e){return T(e.on)&&T(e.off)}function An(e){return T(e.addEventListener)&&T(e.removeEventListener)}function st(e,r,t){e===void 0&&(e=0),t===void 0&&(t=$r);var n=-1;return r!=null&&(Ye(r)?t=r:n=r),new I(function(o){var i=et(e)?+e-t.now():e;i<0&&(i=0);var a=0;return t.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}var _n=Array.isArray;function Ze(e){return e.length===1&&_n(e[0])?e[0]:e}function Y(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ee(e),n=Br(e,Infinity),o=Ze(e);return o.length?o.length===1?N(o[0]):Ge(n)(ce(o,t)):xe}var ct=new I(G);function de(e,r){return L(function(t,n){var o=0;t.subscribe(new C(n,function(i){return e.call(r,i,o++)&&n.next(i)}))})}function lt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Ee(e),n=Ze(e);return n.length?new I(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var l=function(u){N(n[u]).subscribe(new C(o,function(s){if(i[u].push(s),i.every(function(d){return d.length})){var f=i.map(function(d){return d.shift()});o.next(t?t.apply(void 0,W([],j(f))):f),i.some(function(d,v){return!d.length&&a[v]})&&o.complete()}},void 0,function(){a[u]=!0,!i[u].length&&o.complete()}))},c=0;!o.closed&&c<n.length;c++)l(c);return function(){i=a=null}}):xe}function ft(e,r){return r===void 0&&(r=null),r=r!=null?r:e,L(function(t,n){var o=[],i=0;t.subscribe(new C(n,function(a){var l,c,u,s,f=null;i++%r==0&&o.push([]);try{for(var d=J(o),v=d.next();!v.done;v=d.next()){var h=v.value;h.push(a),e<=h.length&&(f=f!=null?f:[],f.push(h))}}catch(w){l={error:w}}finally{try{v&&!v.done&&(c=d.return)&&c.call(d)}finally{if(l)throw l.error}}if(f)try{for(var m=J(f),b=m.next();!b.done;b=m.next()){var h=b.value;ie(o,h),n.next(h)}}catch(w){u={error:w}}finally{try{b&&!b.done&&(s=m.return)&&s.call(m)}finally{if(u)throw u.error}}},void 0,function(){var a,l;try{for(var c=J(o),u=c.next();!u.done;u=c.next()){var s=u.value;n.next(s)}}catch(f){a={error:f}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}n.complete()},function(){o=null}))})}function wr(e){return e<=0?function(){return xe}:L(function(r,t){var n=0;r.subscribe(new C(t,function(o){++n<=e&&(t.next(o),e<=n&&t.complete())}))})}function pt(){return L(function(e,r){e.subscribe(new C(r,G))})}function mt(e){return L(function(r,t){r.subscribe(new C(t,function(){return t.next(e)}))})}function Sr(e,r){return r?function(t){return Ce(r.pipe(wr(1),pt()),t.pipe(Sr(e)))}:me(function(t,n){return e(t,n).pipe(wr(1),mt(t))})}function dt(e,r){r===void 0&&(r=vr);var t=st(e,r);return Sr(function(){return t})}function Te(e,r){return r===void 0&&(r=D),e=e!=null?e:Mn,L(function(t,n){var o,i=!0;t.subscribe(new C(n,function(a){var l=r(a);(i||!e(o,l))&&(i=!1,o=l,n.next(a))}))})}function Mn(e,r){return e===r}function ht(e,r){return Te(function(t,n){return r?r(t[e],n[e]):t[e]===n[e]})}function Be(e){return L(function(r,t){r.subscribe(t),t.add(e)})}function vt(e){e=e||{};var r=e.connector,t=r===void 0?function(){return new ae}:r,n=e.resetOnComplete,o=n===void 0?!0:n,i=e.resetOnError,a=i===void 0?!0:i,l=e.resetOnRefCountZero,c=l===void 0?!0:l,u=null,s=null,f=0,d=!1,v=!1,h=function(){u=s=null,d=v=!1};return L(function(m,b){return f++,s=s!=null?s:t(),s.subscribe(b),u||(u=pe(m).subscribe({next:function(w){return s.next(w)},error:function(w){v=!0;var S=s;a&&h(),S.error(w)},complete:function(){d=!0;var w=s;o&&h(),w.complete()}})),function(){if(f--,c&&!f&&!v&&!d){var w=u;h(),w==null||w.unsubscribe()}}})}function er(e,r,t){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:Infinity,r=(o=e.windowTime)!==null&&o!==void 0?o:Infinity,a=!!e.refCount,t=e.scheduler):i=e!=null?e:Infinity,vt({connector:function(){return new Vr(i,r,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Ae(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ee(e);return L(function(n,o){(t?Ce(e,n,t):Ce(e,n)).subscribe(o)})}function re(e,r){return L(function(t,n){var o=null,i=0,a=!1,l=function(){return a&&!o&&n.complete()};t.subscribe(new C(n,function(c){o==null||o.unsubscribe();var u=0,s=i++;N(e(c,s)).subscribe(o=new C(n,function(f){return n.next(r?r(c,f,s,u++):f)},void 0,function(){o=null,l()}))},void 0,function(){a=!0,l()}))})}function rr(e,r,t){var n=T(e)||r||t?{next:e,error:r,complete:t}:e;return n?L(function(o,i){o.subscribe(new C(i,function(a){var l;(l=n.next)===null||l===void 0||l.call(n,a),i.next(a)},function(a){var l;(l=n.error)===null||l===void 0||l.call(n,a),i.error(a)},function(){var a;(a=n.complete)===null||a===void 0||a.call(n),i.complete()}))}):D}function Pe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Ee(e);return L(function(n,o){for(var i=e.length,a=new Array(i),l=e.map(function(){return!1}),c=!1,u=function(f){N(e[f]).subscribe(new C(o,function(d){a[f]=d,!c&&!l[f]&&(l[f]=!0,(c=l.every(D))&&(l=null))},void 0,G))},s=0;s<i;s++)u(s);n.subscribe(new C(o,function(f){if(c){var d=W([f],j(a));o.next(t?t.apply(void 0,W([],j(d))):d)}}))})}function In(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L(function(t,n){lt.apply(void 0,W([t],j(e))).subscribe(n)})}function bt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return In.apply(void 0,W([],j(e)))}function yt(e,r=document){return r.querySelector(e)||void 0}function te(e,r=document){let t=yt(e,r);if(typeof t=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return t}function Er(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function xt(e,r=document){return Array.from(r.querySelectorAll(e))}function gt(e){return Y(Q(e,"focus"),Q(e,"blur")).pipe(q(({type:r})=>r==="focus"),Ae(e===Er()))}var Ln=new ae,_c=at(()=>Oe(new ResizeObserver(e=>{for(let r of e)Ln.next(r)}))).pipe(re(e=>ct.pipe(Ae(e)).pipe(Be(()=>e.disconnect()))),er(1));function wt(e){return{width:e.offsetWidth,height:e.offsetHeight}}function St(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Et(e){return{x:e.scrollLeft,y:e.scrollTop}}function Cn(e){return Y(Q(e,"scroll"),Q(window,"resize")).pipe(q(()=>Et(e)),Ae(Et(e)))}function Ot(e,r=16){return Cn(e).pipe(q(({y:t})=>{let n=wt(e),o=St(e);return t>=o.height-n.height-r}),Te())}var Vc={drawer:te("[data-md-toggle=drawer]"),search:te("[data-md-toggle=search]")};function Tt(){return new URL(location.href)}function Pn(e,r={credentials:"same-origin"}){return pe(fetch(e.toString(),r)).pipe(de(t=>t.status===200))}function At(e,r){return Pn(e,r).pipe(re(t=>t.json()),er(1))}function Or(e,r=document){return te(`[data-mdx-component=${e}]`,r)}function _t(e,r=document){return xt(`[data-mdx-component=${e}]`,r)}var Hn=te("#__config"),He=JSON.parse(Hn.textContent);He.base=new URL(He.base,Tt()).toString().replace(/\/$/,"");function Tr(){return He}function le(e,r){return typeof r!="undefined"?He.translations[e].replace("#",r.toString()):He.translations[e]}function Mt(e){let r=gt(e),t=Y(Q(e,"keyup"),Q(e,"focus").pipe(dt(1))).pipe(q(()=>e.value),Te());return r.pipe(de(n=>!n),Pe(t)).subscribe(([,n])=>{let o=document.location.pathname;n.length&&ga("send","pageview",`${o}?q=[icon]+${n}`)}),Xe([t,r]).pipe(q(([n,o])=>({ref:e,value:n,focus:o})))}var Dt=Ir(_r());function kt(e,r){if(typeof r=="string"||typeof r=="number")e.innerHTML+=r.toString();else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let t of r)kt(e,t)}function _e(e,r,...t){let n=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="boolean"?n.setAttribute(o,r[o]):r[o]&&n.setAttribute(o,"");for(let o of t)kt(n,o);return n}function zt(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function Wt(e,r){switch(r){case 0:e.textContent=le("search.result.none");break;case 1:e.textContent=le("search.result.one");break;default:e.textContent=le("search.result.other",zt(r))}}function Ut(e){e.textContent=le("search.result.placeholder")}function qt(e,r){e.appendChild(r)}function Vt(e){e.innerHTML=""}var Nt=Ir(_r());function Fn(e,r){return Nt.wrap(e.shortcode,r,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}function $t(e,r){return _e("li",{class:"mdx-iconsearch-result__item"},_e("span",{class:"twemoji"},_e("img",{src:e.url})),_e("button",{class:"md-clipboard--inline",title:le("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},_e("code",null,`:${Fn(e,r)}:`)))}function Rn(e,{index$:r,query$:t}){return Xe([t.pipe(ht("value")),r.pipe(q(({icons:n,emojis:o})=>[...Object.keys(n.data),...Object.keys(o.data)]))]).pipe(q(([{value:n},o])=>Dt.filter(o,n)),re(n=>r.pipe(q(({icons:o,emojis:i})=>({data:n.map(a=>{let l=a in o.data?o:i;return{shortcode:a,url:[l.base,l.data[a]].join("")}})})))))}function Qt(e,{index$:r,query$:t}){let n=new ae,o=Ot(e).pipe(de(Boolean)),i=te(":scope > :first-child",e);n.pipe(gr(br),Pe(t)).subscribe(([{data:l},{value:c}])=>{c?Wt(i,l.length):Ut(i)});let a=te(":scope > :last-child",e);return n.pipe(gr(br),rr(()=>Vt(a)),re(({data:l})=>Y(Oe(...l.slice(0,10)),Oe(...l.slice(10)).pipe(ft(10),bt(o),re(([c])=>Oe(...c))))),Pe(t)).subscribe(([l,{value:c}])=>{qt(a,$t(l,c))}),Rn(e,{query$:t,index$:r}).pipe(rr(n),Be(()=>n.complete()),q(l=>Mr({ref:e},l)))}function Kt(e){let r=Tr(),t=At(`${r.base}/overrides/assets/javascripts/iconsearch_index.json`),n=Or("iconsearch-query",e),o=Or("iconsearch-result",e),i=Mt(n);return Y(i,Qt(o,{index$:t,query$:i}))}function Yt(){Q(document.body,"click").subscribe(e=>{if(e.target instanceof HTMLElement){let r=e.target.closest("a[href^=http]");r instanceof HTMLLinkElement&&ga("send","event","outbound","click",r.href)}})}Yt();document$.pipe(re(()=>Y(..._t("iconsearch").map(e=>Kt(e))))).subscribe();})();
/*! *****************************************************************************
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.
***************************************************************************** */
//# sourceMappingURL=bundle.cf78cd63.min.js.map