mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
20 lines
43 KiB
JavaScript
20 lines
43 KiB
JavaScript
(()=>{var Yt=Object.create,sr=Object.defineProperty,Jt=Object.getPrototypeOf,Xt=Object.prototype.hasOwnProperty,Gt=Object.getOwnPropertyNames,Zt=Object.getOwnPropertyDescriptor;var Mr=Object.assign,Bt=e=>sr(e,"__esModule",{value:!0});var ve=(e,r)=>()=>(r||(r={exports:{}},e(r.exports,r)),r.exports);var en=(e,r,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Gt(r))!Xt.call(e,n)&&n!=="default"&&sr(e,n,{get:()=>r[n],enumerable:!(t=Zt(r,n))||t.enumerable});return e},Ir=e=>e&&e.__esModule?e:en(Bt(sr(e!=null?Yt(Jt(e)):{},"default",{value:e,enumerable:!0})),e);var He=ve(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 T,y,x,A;return y=E.preparedQuery,T=E.allowErrors,T||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 T,y,x,A,P,R,M;if(x=d.length,A=g.length,!x||A>x)return!1;for(T=-1,y=-1;++y<A;){for(P=g.charCodeAt(y),R=E.charCodeAt(y);++T<x&&(M=d.charCodeAt(T),!(M===P||M===R)););if(T===x)return!1}return!0},D.computeScore=r=function(d,g,E){var T,y,x,A,P,R,M,F,_,z,j,X,q,te,ae,G,le,ne,nr,he,Re,or,ir,ar;if(ae=E.query,G=E.query_lw,z=d.length,q=ae.length,T=u(d,g,ae,G),y=T.score,T.count===q)return v(q,z,y,T.pos);if(te=g.indexOf(G),te>-1)return m(d,g,ae,G,te,q,z);for(he=new Array(q),P=new Array(q),ar=S(q,z),j=Math.ceil(c*q)+5,X=j,M=!0,_=-1;++_<q;)he[_]=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,le=!0,M=!0,_=-1;++_<q;){if(Re=he[_],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(le&&--X<=0)return Math.max(ne,he[q-1])*ar;le=!1}nr=Re,A=P[_],P[_]=R,he[_]=ne}}return ne=he[q-1],ne*ar},D.isWordStart=l=function(d,g,E){var T,y;return d===0?!0:(T=g[d],y=g[d-1],i(y)||T!==E[d]&&y===E[d-1])},D.isWordEnd=a=function(d,g,E,T){var y,x;return d===T-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,T){return 2*d*(H*E+b(T))*S(d,g)},D.scorePattern=p=function(d,g,E,T,y){var x,A;return A=d,x=6,E===d&&(x+=2),T&&(x+=3),y&&(x+=1),d===g&&(T&&(E===g?A+=2:A+=1),y&&(x+=1)),E+A*(A+x)},D.scoreCharacter=f=function(d,g,E,T,y){var x;return x=b(d),E?x+H*((T>y?T:y)+10):x+H*y},D.scoreConsecutives=h=function(d,g,E,T,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&&T[++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,T,y,x,A){var P,R,M,F,_;for(_=l(y,d,g),_||(M=g.indexOf(T,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,T){this.score=g,this.pos=E,this.count=T}return d}(),t=new e(0,.1,0),D.scoreAcronyms=u=function(d,g,E,T){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=T[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,T){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>T)return!1;return!0}}).call(D)});var rr=ve(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,T;if(h===0)return 0;for(E=v.preparedQuery,T=v.useExtensionBonus,g=v.pathSeparator,w=u.length-1;u[w]===g;)w--;if(b=u.lastIndexOf(g,w),d=w-b,H=1,T&&(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 Ar=ve((Mt,It)=>{(function(){var e,r,t,n,o,i,a,l;l=rr(),t=l.countDir,o=l.getExtension,It.exports=e=function(){function c(s,u){var f,h,v;if(v=u!=null?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(Mt)});var Pt=ve((Lt,Ct)=>{(function(){var e,r,t,n,o;n=He(),r=rr(),e=Ar(),t=function(i){return i.candidate},o=function(i,a){return a.score-i.score},Ct.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(Lt)});var Ht=ve(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,T,y,x,A,P,R,M,F,_,z,j,X,q,te,ae,G,le;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,le=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;)T=0,H=0,X=te,z[x]===ae&&(G=n(y,u,f),T=g>0?g:c(u,f,_,z,y,x,G),H=X+l(y,x,G,w,T)),te=q[x],g=E[x],j>te?R=p:(j=te,R=S),H>j?(j=H,R=m):T=0,q[x]=j,E[x]=T,le[++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(le[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 _r=ve((Ft,Rt)=>{(function(){var e,r,t,n,o,i,a,l;t=Pt(),n=Ht(),l=He(),i=rr(),e=Ar(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",Rt.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(Ft)});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 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(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 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(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 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 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 O(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(O(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{Hr(m)}catch(p){i=i!=null?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)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)&&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&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Hr(e){O(e)?e():e.unsubscribe()}var Z={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,U(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=Z.onUnhandledError;if(r)r(e);else throw e})}function J(){}var Fr=function(){return fr("C",void 0,void 0)}();function Rr(e){return fr("E",void 0,e)}function kr(e){return fr("N",e,void 0)}function fr(e,r,t){return{kind:e,value:r,error:t}}var fe=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(kr(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}(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(O(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||jr,complete:o||J}}return i}return r}(fe);function jr(e){if(Z.useDeprecatedSynchronousErrorHandling)throw e;Ue(e)}function mr(e,r){var t=Z.onStoppedNotification;t&&be.setTimeout(function(){return t(e,r)})}var dr={closed:!0,next:J,error:jr,complete:J};var se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Q(e){return e}function zr(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=rn(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=Ur(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=Ur(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 Ur(e){var r;return(r=e!=null?e:Z.Promise)!==null&&r!==void 0?r:Promise}function tn(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function rn(e){return e&&e instanceof fe||tn(e)&&ze(e)}function nn(e){return O(e==null?void 0:e.lift)}function L(e){return function(r){if(nn(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}(fe);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 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=ye.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=ye.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,U(e))},delegate:void 0};var Wr=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 qr(this,this);return n.operator=t,n},r.prototype._throwIfClosed=function(){if(this.closed)throw new Wr},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 qr(t,n)},r}(I);var qr=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 Vr=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 Nr=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}(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=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),$r=vr;var Dr=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=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}(We);var Qr=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 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 Ve(e){return O(e==null?void 0:e.then)}function on(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Se=on();function Kr(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 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 O(n==null?void 0:n.return)&&n.return()}})}function Ne(e){return O(e[se])}function $e(e){return O(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 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&&O(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 Zr(e,r){if(e!=null){if(Ne(e))return Kr(e,r);if(we(e))return ge(e,r);if(Ve(e))return Yr(e,r);if(De(e))return Gr(e,r);if($e(e))return Xr(e,r)}throw Qe(e)}function pe(e,r){return r?Zr(e,r):V(e)}function V(e){if(e instanceof I)return e;if(e!=null){if(Ne(e))return an(e);if(we(e))return yr(e);if(Ve(e))return sn(e);if(De(e))return cn(e);if($e(e))return un(e)}throw Qe(e)}function an(e){return new I(function(r){var t=e[se]();if(O(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 sn(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 un(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 O(t==null?void 0:t.return)&&t.return()}})}function cn(e){return new I(function(r){ln(e,r).catch(function(t){return r.error(t)})})}function ln(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 ue(e,r){return r?ge(e,r):yr(e)}function Ke(e){return e&&O(e.schedule)}function xr(e){return e[e.length-1]}function Ee(e){return O(xr(e))?e.pop():void 0}function B(e){return Ke(xr(e))?e.pop():void 0}function Br(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?ge(e,t):ue(e)}function et(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 fn=Array.isArray;function pn(e,r){return fn(r)?e.apply(void 0,U(r)):e(r)}function Ye(e){return W(function(r){return pn(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 mn=Array.isArray,dn=Object.getPrototypeOf,hn=Object.prototype,vn=Object.keys;function rt(e){if(e.length===1){var r=e[0];if(mn(r))return{args:r,keys:null};if(bn(r)){var t=vn(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}function bn(e){return e&&typeof e=="object"&&dn(e)===hn}function Je(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=B(e),n=Ee(e),o=rt(e),i=o.args,a=o.keys;if(i.length===0)return pe([],t);var l=new I(yn(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 xn=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}(fe);function yn(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=pe(e[v],r);p.subscribe(new xn(n,function(b){a[v]=b,s&&(c[v]=!0,s=!c.every(Q)),s||u()},function(){return--l==0}))};tt(r,m,n)},h=0;h<i;h++)f(h)};tt(r,o,n)}}function tt(e,r,t){e?t.add(e.schedule(r)):r()}function nt(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 me(e,r,t){return t===void 0&&(t=Infinity),O(r)?me(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 nt(n,o,e,t)}))}function Xe(e){return e===void 0&&(e=Infinity),me(Q,e)}function ot(){return Xe(1)}function Le(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ot()(ue(e,B(e)))}function it(e){return new I(function(r){V(e()).subscribe(r)})}var gn=["addListener","removeListener"],wn=["addEventListener","removeEventListener"],Sn=["on","off"];function $(e,r,t,n){if(O(t)&&(n=t,t=void 0),n)return $(e,r,t).pipe(Ye(n));var o=cr(On(e)?wn.map(function(l){return function(c){return e[l](r,c,t)}}):En(e)?gn.map(at(e,r)):Tn(e)?Sn.map(at(e,r)):[],2),i=o[0],a=o[1];return!i&&we(e)?me(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 at(e,r){return function(t){return function(n){return e[t](r,n)}}}function En(e){return O(e.addListener)&&O(e.removeListener)}function Tn(e){return O(e.on)&&O(e.off)}function On(e){return O(e.addEventListener)&&O(e.removeEventListener)}function st(e,r,t){e===void 0&&(e=0),t===void 0&&(t=$r);var n=-1;return r!=null&&(Ke(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 An=Array.isArray;function Ge(e){return e.length===1&&An(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=Br(e,Infinity),o=Ge(e);return o.length?o.length===1?V(o[0]):Xe(n)(ue(o,t)):xe}var ut=new I(J);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 ct(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Ee(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}}):xe}function lt(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,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!=null?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 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 ft(){return L(function(e,r){e.subscribe(new C(r,J))})}function pt(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),ft()),t.pipe(Sr(e)))}:me(function(t,n){return e(t,n).pipe(wr(1),pt(t))})}function mt(e,r){r===void 0&&(r=vr);var t=st(e,r);return Sr(function(){return t})}function Oe(e,r){return e=e!=null?e:_n,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 _n(e,r){return e===r}function dt(e,r){return Oe(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 ht(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=pe(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!=null?e:Infinity,ht({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=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=O(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=Ee(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 Mn(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L(function(t,n){ct.apply(void 0,U([t],e)).subscribe(n)})}function vt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Mn.apply(void 0,U(e))}function bt(e,r=document){return r.querySelector(e)||void 0}function re(e,r=document){let t=bt(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 yt(e,r=document){return Array.from(r.querySelectorAll(e))}function xt(e){return K($(e,"focus"),$(e,"blur")).pipe(W(({type:r})=>r==="focus"),Ae(e===Er()))}var In=new ie,Pc=it(()=>Te(new ResizeObserver(e=>{for(let r of e)In.next(r)}))).pipe(ee(e=>ut.pipe(Ae(e)).pipe(Ze(()=>e.disconnect()))),Be(1));function gt(e){return{width:e.offsetWidth,height:e.offsetHeight}}function wt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function St(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ln(e){return K($(e,"scroll"),$(window,"resize")).pipe(W(()=>St(e)),Ae(St(e)))}function Et(e,r=16){return Ln(e).pipe(W(({y:t})=>{let n=gt(e),o=wt(e);return t>=o.height-n.height-r}),Oe())}var Kc={drawer:re("[data-md-toggle=drawer]"),search:re("[data-md-toggle=search]")};function Tt(){return new URL(location.href)}function Cn(e,r={credentials:"same-origin"}){return pe(fetch(e.toString(),r)).pipe(de(t=>t.status===200))}function Ot(e,r){return Cn(e,r).pipe(ee(t=>t.json()),Be(1))}function Tr(e,r=document){return re(`[data-mdx-component=${e}]`,r)}function At(e,r=document){return yt(`[data-mdx-component=${e}]`,r)}var Pn=re("#__config"),Pe=JSON.parse(Pn.textContent);Pe.base=new URL(Pe.base,Tt()).toString().replace(/\/$/,"");function Or(){return Pe}function ce(e,r){return typeof r!="undefined"?Pe.translations[e].replace("#",r.toString()):Pe.translations[e]}function _t(e){let r=xt(e),t=K($(e,"keyup"),$(e,"focus").pipe(mt(1))).pipe(W(()=>e.value),Oe());return r.pipe(de(n=>!n),Ce(t)).subscribe(([,n])=>{let o=document.location.pathname;n.length&&ga("send","pageview",`${o}?q=[icon]+${n}`)}),Je([t,r]).pipe(W(([n,o])=>({ref:e,value:n,focus:o})))}var $t=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 jt(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function zt(e,r){switch(r){case 0:e.textContent=ce("search.result.none");break;case 1:e.textContent=ce("search.result.one");break;default:e.textContent=ce("search.result.other",jt(r))}}function Ut(e){e.textContent=ce("search.result.placeholder")}function Wt(e,r){e.appendChild(r)}function qt(e){e.innerHTML=""}var Vt=Ir(_r());function Hn(e,r){return Vt.wrap(e.shortcode,r,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}function Nt(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:ce("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},_e("code",null,`:${Hn(e,r)}:`)))}function Fn(e,{index$:r,query$:t}){return Je([t.pipe(dt("value")),r.pipe(W(({icons:n,emojis:o})=>[...Object.keys(n.data),...Object.keys(o.data)]))]).pipe(W(([{value:n},o])=>$t.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 Dt(e,{index$:r,query$:t}){let n=new ie,o=Et(e).pipe(de(Boolean)),i=re(":scope > :first-child",e);n.pipe(gr(br),Ce(t)).subscribe(([{data:l},{value:c}])=>{c?zt(i,l.length):Ut(i)});let a=re(":scope > :last-child",e);return n.pipe(gr(br),er(()=>qt(a)),ee(({data:l})=>K(Te(...l.slice(0,10)),Te(...l.slice(10)).pipe(lt(10),vt(o),ee(([c])=>Te(...c))))),Ce(t)).subscribe(([l,{value:c}])=>{Wt(a,Nt(l,c))}),Fn(e,{query$:t,index$:r}).pipe(er(n),Ze(()=>n.complete()),W(l=>Mr({ref:e},l)))}function Qt(e){let r=Or(),t=Ot(`${r.base}/overrides/assets/javascripts/iconsearch_index.json`),n=Tr("iconsearch-query",e),o=Tr("iconsearch-result",e),i=_t(n);return K(i,Dt(o,{index$:t,query$:i}))}function Kt(){$(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)}})}Kt();document$.pipe(ee(()=>K(...At("iconsearch").map(e=>Qt(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.c978d37b.min.js.map
|
|
|