1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 09:20:52 +01:00
mkdocs-material/material/overrides/assets/javascripts/bundle.711bd5c6.min.js
2021-02-22 21:01:04 +01:00

20 lines
43 KiB
JavaScript

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