!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([,,function(e,t){(function(){var e,n,r,o,i,s,u,c,l,a,h,f,d,p,b,v;t.score=function(e,t,r){var o,s,u;return o=r.preparedQuery,r.allowErrors||i(e,o.core_lw,o.core_up)?(u=e.toLowerCase(),s=n(e,u,o),Math.ceil(s)):0},t.isMatch=i=function(e,t,n){var r,o,i,s,u,c,l;if(i=e.length,s=t.length,!i||s>i)return!1;for(r=-1,o=-1;++o-1)return d(e,t,E,A,S,_,y);for(I=new Array(_),u=new Array(_),L=v(_,y),x=g=Math.ceil(.75*_)+5,b=!0,w=-1;++w<_;)I[w]=0,u[w]=0;for(m=-1;++mC&&(C=k),p=0,A[w]===j)if(P=c(m,e,t),p=s>0?s:h(e,t,E,A,m,w,P),(i=O+a(m,w,P,o,p))>C)C=i,x=g;else{if(T&&--x<=0)return Math.max(C,I[_-1])*L;T=!1}O=k,s=u[w],u[w]=p,I[w]=C}return(C=I[_-1])*L},t.isWordStart=c=function(e,t,n){var r,o;return 0===e||(r=t[e],o=t[e-1],s(o)||r!==n[e]&&o===n[e-1])},t.isWordEnd=u=function(e,t,n,r){var o,i;return e===r-1||(o=t[e],i=t[e+1],s(i)||o===n[e]&&i!==n[e+1])},s=function(e){return" "===e||"."===e||"-"===e||"_"===e||"/"===e||"\\"===e},b=function(e){var t;return e<20?100+(t=20-e)*t:Math.max(120-e,0)},t.scoreSize=v=function(e,t){return 150/(150+Math.abs(t-e))},f=function(e,t,n,r){return 2*e*(150*n+b(r))*v(e,t)},t.scorePattern=p=function(e,t,n,r,o){var i,s;return s=e,i=6,n===e&&(i+=2),r&&(i+=3),o&&(i+=1),e===t&&(r&&(s+=n===t?2:1),o&&(i+=1)),n+s*(s+i)},t.scoreCharacter=a=function(e,t,n,r,o){var i;return i=b(e),n?i+150*((r>o?r:o)+10):i+150*o},t.scoreConsecutives=h=function(e,t,n,r,o,i,s){var c,l,a,h,f,d,b;for(c=(a=(l=e.length)-o)<(f=(h=n.length)-i)?a:f,d=0,b=0,n[i]===e[o]&&d++;++b-1&&(b=c(h,e,t))&&(o=h),a=-1,d=0;++a1&&b>1))return r;for(l=0,y=0,g=0,m=0,h=-1,f=-1;++f-1){y++;continue}break}for(;++h12*n.length)return!1;for(i=-1;++ir)return!1;return!0}}).call(this)},function(e,t,n){(function(t){(function(){var r,o,i,s,u,c,l,a;i=n(7),s=n(8),a=n(2),c=n(4),r=n(5),l=null,o="win32"===(null!=t?t.platform:void 0)?"\\":"/",e.exports={filter:function(e,t,n){return null==n&&(n={}),(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)?(n=u(n,t),i(e,t,n)):[]},score:function(e,t,n){return null==n&&(n={}),(null!=e?e.length:void 0)&&(null!=t?t.length:void 0)?(n=u(n,t)).usePathScoring?c.score(e,t,n):a.score(e,t,n):0},match:function(e,t,n){var r;return null==n&&(n={}),e&&t?e===t?function(){r=[];for(var t=0,n=e.length;0<=n?tn;0<=n?t++:t--)r.push(t);return r}.apply(this):(n=u(n,t),s.match(e,t,n)):[]},wrap:function(e,t,n){return null==n&&(n={}),e&&t?(n=u(n,t),s.wrap(e,t,n)):[]},prepareQuery:function(e,t){return null==t&&(t={}),(t=u(t,e)).preparedQuery}},u=function(e,t){return null==e.allowErrors&&(e.allowErrors=!1),null==e.usePathScoring&&(e.usePathScoring=!0),null==e.useExtensionBonus&&(e.useExtensionBonus=!1),null==e.pathSeparator&&(e.pathSeparator=o),null==e.optCharRegEx&&(e.optCharRegEx=null),null==e.wrap&&(e.wrap=null),null==e.preparedQuery&&(e.preparedQuery=l&&l.query===t?l:l=new r(t,e)),e}}).call(this)}).call(this,n(6))},function(e,t,n){(function(){var e,r,o,i,s,u,c;c=n(2),i=c.isMatch,e=c.computeScore,u=c.scoreSize,t.score=function(t,n,r){var o,u,c;return o=r.preparedQuery,r.allowErrors||i(t,o.core_lw,o.core_up)?(c=t.toLowerCase(),u=e(t,c,o),u=s(t,c,u,r),Math.ceil(u)):0},s=function(t,n,i,s){var c,l,a,h,f,d,p,b,v,m;if(0===i)return 0;for(v=s.preparedQuery,m=s.useExtensionBonus,b=s.pathSeparator,f=t.length-1;t[f]===b;)f--;if(p=f-(a=t.lastIndexOf(b,f)),d=1,m&&(i*=d+=o(n,v.ext,a,f,2)),-1===a)return i;for(h=v.depth;a>-1&&h-- >0;)a=t.lastIndexOf(b,a-1);return l=-1===a?i:d*e(t.slice(a+1,f+1),n.slice(a+1,f+1),v),(c=10/(20+r(t,f+1,b)))*l+(1-c)*i*u(0,2.5*p)},t.countDir=r=function(e,t,n){var r,o;if(t<1)return 0;for(r=0,o=-1;++on))return 0;for((s=r-l)<(c=t.length)&&(c=s,s=t.length),l++,u=-1;++u0?.9*o(e,t,n,l-2,i-1):u/s}}).call(this)},function(e,t,n){(function(){var t,r,o,i,s,u,c;c=n(4),r=c.countDir,i=c.getExtension,e.exports=function(e,n){var s,c,l;if(s=(l=null!=n?n:{}).optCharRegEx,c=l.pathSeparator,!e||!e.length)return null;this.query=e,this.query_lw=e.toLowerCase(),this.core=t(e,s),this.core_lw=this.core.toLowerCase(),this.core_up=u(this.core),this.depth=r(e,e.length,c),this.ext=i(this.query_lw),this.charCodes=o(this.query_lw)},s=/[ _\-:\/\\]/g,t=function(e,t){return null==t&&(t=s),e.replace(t,"")},u=function(e){var t,n,r;for(t="",n=0,r=e.length;n1)for(var n=1;n0?a:e.length+1,u=null!=l,d=m?t:o,w=0,y=e.length;w0)||(p.push({candidate:c,score:f}),--b));w++);return p.sort(i),e=p.map(r),null!=h&&(e=e.slice(0,h)),e}}).call(this)},function(e,t,n){(function(){var e,r,o,i,s,u,c,l,a,h;h=n(2),o=h.isMatch,i=h.isWordStart,a=h.scoreConsecutives,l=h.scoreCharacter,c=h.scoreAcronyms,t.match=s=function(t,n,i){var s,c,l,a,h,f;return s=i.allowErrors,h=i.preparedQuery,a=i.pathSeparator,s||o(t,h.core_lw,h.core_up)?(f=t.toLowerCase(),0===(l=r(t,f,h)).length||t.indexOf(a)>-1&&(c=e(t,f,h,a),l=u(l,c)),l):[]},t.wrap=function(e,t,n){var r,o,i,u,c,l,a,h,f;if(null!=n.wrap&&(l=(f=n.wrap).tagClass,h=f.tagOpen,a=f.tagClose),null==l&&(l="highlight"),null==h&&(h=''),null==a&&(a=""),e===t)return h+e+a;if(0===(i=s(e,0,n)).length)return e;for(u="",r=-1,c=0;++rc&&(u+=e.substring(c,o),c=o);++rc&&(u+=h,u+=e.substring(c,o),u+=a,c=o)}return c<=e.length-1&&(u+=e.substring(c)),u},e=function(e,t,n,o){var i,s,u;for(u=e.length-1;e[u]===o;)u--;if(-1===(i=e.lastIndexOf(o,u)))return[];for(s=n.depth;s-- >0;)if(-1===(i=e.lastIndexOf(o,i-1)))return[];return i++,u++,r(e.slice(i,u),t.slice(i,u),n,i)},u=function(e,t){var n,r,o,i,s,u,c;if(s=e.length,0===(u=t.length))return e.slice();if(0===s)return t.slice();for(o=-1,r=t[i=0],c=[];++o0?h:a(e,t,x,_,p,b,O),s=E+l(p,b,O,o,d)),T=A[b],h=f[b],S>T?w=2:(S=T,w=1),s>S?(S=s,w=3):d=0,A[b]=S,f[b]=d,I[++g]=S>0?w:0;for(g=(p=v-1)*y+(b=y-1),u=!0,m=[];u&&p>=0&&b>=0;)switch(I[g]){case 1:p--,g-=y;break;case 2:b--,g--;break;case 3:m.push(p+r),b--,p--,g-=y+1;break;default:u=!1}return m.reverse(),m}}).call(this)},,function(e,t,n){"use strict";function r(e){return"function"==typeof e}function o(e){return t=>{if(function(e){return r(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function i(e){const t=e(e=>{Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}n.r(t);const s=i(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function u(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class c{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(Array.isArray(t))for(const e of t)e.remove(this);else null==t||t.remove(this);const{initialTeardown:n}=this;if(r(n))try{n()}catch(t){e=t instanceof s?t.errors:[t]}const{_teardowns:o}=this;if(o){this._teardowns=null;for(const t of o)try{h(t)}catch(t){e=null!=e?e:[],t instanceof s?e=[...e,...t.errors]:e.push(t)}}if(e)throw new s(e)}}add(e){var t;if(e&&e!==this)if(this.closed)h(e);else{if(e instanceof c){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&u(t,e)}remove(e){const{_teardowns:t}=this;t&&u(t,e),e instanceof c&&e._removeParent(this)}}c.EMPTY=(()=>{const e=new c;return e.closed=!0,e})();const l=c.EMPTY;function a(e){return e instanceof c||e&&"closed"in e&&r(e.remove)&&r(e.add)&&r(e.unsubscribe)}function h(e){r(e)?e():e.unsubscribe()}const f={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},d={setTimeout(...e){const{delegate:t}=d;return((null==t?void 0:t.setTimeout)||setTimeout)(...e)},clearTimeout(e){const{delegate:t}=d;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function p(e){d.setTimeout(()=>{const{onUnhandledError:t}=f;if(!t)throw e;t(e)})}function b(){}const v=m("C",void 0,void 0);function m(e,t,n){return{kind:e,value:t,error:n}}class w extends c{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,a(e)&&e.add(this)):this.destination=_}static create(e,t,n){return new y(e,t,n)}next(e){this.isStopped?x(function(e){return m("N",e,void 0)}(e),this):this._next(e)}error(e){this.isStopped?x(m("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?x(v,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}}class y extends w{constructor(e,t,n){if(super(),this.destination=_,(e||t||n)&&e!==_){let o;if(r(e))o=e;else if(e){let r;({next:o,error:t,complete:n}=e),this&&f.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe()):r=e,o=null==o?void 0:o.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)}this.destination={next:o||b,error:t||g,complete:n||b}}}}function g(e){if(f.useDeprecatedSynchronousErrorHandling)throw e;p(e)}function x(e,t){const{onStoppedNotification:n}=f;n&&d.setTimeout(()=>n(e,t))}const _={closed:!0,next:b,error:g,complete:b};class S extends w{constructor(e,t,n,r,o){super(e),this.onUnsubscribe=o,this._next=t?function(e){try{t(e)}catch(e){this.destination.error(e)}}:super._next,this._error=n?function(e){try{n(e)}catch(e){this.destination.error(e)}this.unsubscribe()}:super._error,this._complete=r?function(){try{r()}catch(e){this.destination.error(e)}this.unsubscribe()}:super._complete}unsubscribe(){var e;!this.closed&&(null===(e=this.onUnsubscribe)||void 0===e||e.call(this)),super.unsubscribe()}}function E(e,t){return o((n,r)=>{let o=0;n.subscribe(new S(r,n=>{r.next(e.call(t,n,o++))}))})} /*! ***************************************************************************** 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. ***************************************************************************** */function A(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,u)}c((r=r.apply(e,t||[])).next())}))}Object.create;function T(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=T(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}Object.create;const O=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function I(e){return r(null==e?void 0:e.then)}const k="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",j="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(e){return e}function L(e){return 0===e.length?P:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}class q{constructor(e){e&&(this._subscribe=e)}lift(e){const t=new q;return t.source=this,t.operator=e,t}subscribe(e,t,n){const o=(i=e)&&i instanceof w||function(e){return e&&r(e.next)&&r(e.error)&&r(e.complete)}(i)&&a(i)?e:new y(e,t,n);var i;const{operator:s,source:u}=this;return o.add(s?s.call(o,u):u||f.useDeprecatedSynchronousErrorHandling?this._subscribe(o):this._trySubscribe(o)),o}_trySubscribe(e){try{return this._subscribe(e)}catch(t){if(f.useDeprecatedSynchronousErrorHandling)throw t;e.error(t)}}forEach(e,t){return new(t=M(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(e){n(e),null==r||r.unsubscribe()}},n,t)})}_subscribe(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)}[j](){return this}pipe(...e){return e.length?L(e)(this):this}toPromise(e){return new(e=M(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}function M(e){var t;return null!==(t=null!=e?e:f.Promise)&&void 0!==t?t:Promise}function $(e,t){return new q(n=>{let r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))})}function F(e){return r(e[j])}function z(e){return r(null==e?void 0:e[k])}function H(e){return Symbol.asyncIterator&&r(null==e?void 0:e[Symbol.asyncIterator])}function D(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, AsyncIterable, or Iterable.`)}function R(e,t){if(null!=e){if(F(e))return function(e,t){return new q(n=>{const r=new c;return r.add(t.schedule(()=>{const o=e[j]();r.add(o.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(O(e))return $(e,t);if(I(e))return function(e,t){return new q(n=>t.schedule(()=>e.then(e=>{n.add(t.schedule(()=>{n.next(e),n.add(t.schedule(()=>n.complete()))}))},e=>{n.add(t.schedule(()=>n.error(e)))})))}(e,t);if(H(e))return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(n=>{const r=new c;return r.add(t.schedule(()=>{const o=e[Symbol.asyncIterator]();r.add(t.schedule((function(){o.next().then(e=>{e.done?n.complete():(n.next(e.value),this.schedule())})})))})),r})}(e,t);if(z(e))return function(e,t){return new q(n=>{let o;return n.add(t.schedule(()=>{o=e[k](),function(e,t,n,r=0){const o=t.schedule((function(){try{n.call(this)}catch(t){e.error(t)}}),r);e.add(o)}(n,t,(function(){const{value:e,done:t}=o.next();t?n.complete():(n.next(e),this.schedule())}))})),()=>r(null==o?void 0:o.return)&&o.return()})}(e,t)}throw D(e)}function U(e,t){return t?R(e,t):W(e)}function W(e){if(e instanceof q)return e;if(null!=e){if(F(e))return i=e,new q(e=>{const t=i[j]();if(r(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(O(e))return N(e);if(I(e))return o=e,new q(e=>{o.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,p)});if(H(e))return n=e,new q(e=>{(function(e,t){var n,r,o,i;return A(this,void 0,void 0,(function*(){try{for(n=C(e);!(r=yield n.next()).done;){const e=r.value;t.next(e)}}catch(e){o={error:e}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()}))})(n,e).catch(t=>e.error(t))});if(z(e))return t=e,new q(e=>{const n=t[k]();for(;!e.closed;){const{done:t,value:r}=n.next();t?e.complete():e.next(r)}return()=>r(null==n?void 0:n.return)&&n.return()})}var t,n,o,i;throw D(e)}function N(e){return new q(t=>{for(let n=0;nE((e,o)=>t(n,e,r,o))(W(e(n,r))),n):("number"==typeof t&&(n=t),o((t,r)=>function(e,t,n,r,o,i,s,u){let c=[],l=0,a=0,h=!1;const f=()=>{!h||c.length||l||t.complete()},d=e=>l{i&&t.next(e),l++,W(n(e,a++)).subscribe(new S(t,e=>{null==o||o(e),i?d(e):t.next(e)},void 0,()=>{for(l--;c.length&&lp(e))):p(e)}f()}))};return e.subscribe(new S(t,d,void 0,()=>{h=!0,f()})),()=>{c=null,null==u||u()}}(t,r,e,n)))}q.create=e=>new q(e);function B(e=1/0){return Q(P,e)}function Y(e,t){return t?$(e,t):N(e)}const{isArray:Z}=Array;function J(e){return 1===e.length&&Z(e[0])?e[0]:e}const G=new q(e=>e.complete());function K(e){return e&&r(e.schedule)}function V(e){return e[e.length-1]}function X(e){return r(V(e))?e.pop():void 0}function ee(e){return K(V(e))?e.pop():void 0}function te(...e){const t=ee(e),n=function(e,t){return"number"==typeof V(e)?e.pop():t}(e,1/0),r=J(e);return r.length?1===r.length?W(r[0]):B(n)(Y(r,t)):G}function ne(e,t){return o((n,r)=>{let o=null,i=0,s=!1;const u=()=>s&&!o&&r.complete();n.subscribe(new S(r,n=>{null==o||o.unsubscribe();let s=0;const c=i++;W(e(n,c)).subscribe(o=new S(r,e=>r.next(t?t(n,e,c,s++):e),void 0,()=>{o=null,u()}))},void 0,()=>{s=!0,u()}))})}const re=i(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});class oe extends q{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const t=new ie(this,this);return t.operator=e,t}_throwIfClosed(){if(this.closed)throw new re}next(e){if(this._throwIfClosed(),!this.isStopped){const t=this.observers.slice();for(const n of t)n.next(e)}}error(e){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:t}=this;for(;t.length;)t.shift().error(e)}}complete(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:t,isStopped:n,observers:r}=this;return t||n?l:(r.push(e),new c(()=>u(this.observers,e)))}_checkFinalizedStatuses(e){const{hasError:t,thrownError:n,isStopped:r}=this;t?e.error(n):r&&e.complete()}asObservable(){const e=new q;return e.source=this,e}}oe.create=(e,t)=>new ie(e,t);class ie extends oe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:l}}const se={now:()=>(se.delegate||Date).now(),delegate:void 0};class ue extends oe{constructor(e=1/0,t=1/0,n=se){super(),this.bufferSize=e,this.windowTime=t,this.timestampProvider=n,this.buffer=[],this.infiniteTimeWindow=!0,this.infiniteTimeWindow=t===1/0,this.bufferSize=Math.max(1,e),this.windowTime=Math.max(1,t)}next(e){const{isStopped:t,buffer:n,infiniteTimeWindow:r,timestampProvider:o,windowTime:i}=this;t||(n.push(e),!r&&n.push(o.now()+i)),this.trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this.trimBuffer();const t=this._innerSubscribe(e),{infiniteTimeWindow:n,buffer:r}=this,o=r.slice();for(let t=0;tfunction(e,t){return ce(t)?e(...t):e(t)}(e,t))}const ae=["addListener","removeListener"],he=["addEventListener","removeEventListener"],fe=["on","off"];function de(e,t,n,o){if(r(n)&&(o=n,n=void 0),o)return de(e,t,n).pipe(le(o));const[i,s]=function(e){return r(e.addEventListener)&&r(e.removeEventListener)}(e)?he.map(r=>o=>e[r](t,o,n)):function(e){return r(e.addListener)&&r(e.removeListener)}(e)?ae.map(pe(e,t)):function(e){return r(e.on)&&r(e.off)}(e)?fe.map(pe(e,t)):[];return!i&&O(e)?Q(e=>de(e,t,n))(Y(e)):new q(e=>{if(!i)throw new TypeError("Invalid event target");const t=(...t)=>e.next(1s(t)})}function pe(e,t){return n=>r=>e[n](t,r)}function be(e){return o((t,n)=>{t.subscribe(new S(n,()=>n.next(e)))})}function ve(e,t=document){return t.querySelector(e)||void 0}function me(e,t=document){const n=ve(e,t);if(void 0===n)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function we(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function ye(...e){return B(1)(Y(e,ee(e)))}function ge(...e){const t=ee(e);return o((n,r)=>{(t?ye(e,n,t):ye(e,n)).subscribe(r)})}function xe(e,t){return e=null!=e?e:_e,o((n,r)=>{let o,i=!0;n.subscribe(new S(r,n=>{(i&&(o=n,1)||!e(o,o=t?t(n):n))&&r.next(n),i=!1}))})}function _e(e,t){return e===t}function Se(...e){const t=ee(e);return t?$(e,t):Y(e)}const Ee=new q(b);function Ae(e){return o((t,n)=>{t.subscribe(n),n.add(e)})}function Te(e){e=e||{};const{connector:t=(()=>new oe),resetOnComplete:n=!0,resetOnError:r=!0,resetOnRefCountZero:i=!0}=e;let s=null,u=null,c=0,l=!1,a=!1;const h=()=>{s=u=null,l=a=!1};return o((e,o)=>{c++,u||(u=t());const f=u.subscribe(o);return s||(s=U(e).subscribe({next:e=>u.next(e),error:e=>{a=!0;const t=u;r&&h(),t.error(e)},complete:()=>{l=!0;const e=u;n&&h(),e.complete()}})),()=>{if(c--,f.unsubscribe(),!c&&i&&!a&&!l){const e=s;h(),null==e||e.unsubscribe()}}})}function Ce(e,t,n){var r,o;let i,s=!1;return e&&"object"==typeof e?(i=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(o=e.windowTime)&&void 0!==o?o:1/0,s=!!e.refCount,n=e.scheduler):i=null!=e?e:1/0,Te({connector:()=>new ue(i,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Oe(e,t,n){const i=r(e)||t||n?{next:e,error:t,complete:n}:e;return i?o((e,t)=>{e.subscribe(new S(t,e=>{var n;null===(n=i.next)||void 0===n||n.call(i,e),t.next(e)},e=>{var n;null===(n=i.error)||void 0===n||n.call(i,e),t.error(e)},()=>{var e;null===(e=i.complete)||void 0===e||e.call(i),t.complete()}))}):P}function Ie(e,t){return o((n,r)=>{let o=0;n.subscribe(new S(r,n=>e.call(t,n,o++)&&r.next(n)))})}const ke=new oe;(je=()=>Se(new ResizeObserver(e=>{for(const t of e)ke.next(t)})),new q(e=>{W(je()).subscribe(e)})).pipe(ne(e=>Ee.pipe(ge(e)).pipe(Ae(()=>e.disconnect()))),Ce(1));var je;function Pe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Le(e){return{x:e.scrollLeft,y:e.scrollTop}}function qe(e,t=16){return function(e){return te(de(e,"scroll"),de(window,"resize")).pipe(E(()=>Le(e)),ge(Le(e)))}(e).pipe(E(({y:n})=>{const r=Pe(e);return n>=function(e){return{width:e.scrollWidth,height:e.scrollHeight}}(e).height-r.height-t}),xe())}me("[data-md-toggle=drawer]"),me("[data-md-toggle=search]");function Me(){return new URL(location.href)}function $e(e,t={credentials:"same-origin"}){return U(fetch(e,t)).pipe(Ie(e=>200===e.status))}const{isArray:Fe}=Array,{getPrototypeOf:ze,prototype:He,keys:De}=Object;function Re(e){if(1===e.length){const n=e[0];if(Fe(n))return{args:n,keys:null};if((t=n)&&"object"==typeof t&&ze(t)===He){const e=De(n);return{args:e.map(e=>n[e]),keys:e}}}var t;return{args:e,keys:null}}function Ue(...e){const t=ee(e),n=X(e),{args:r,keys:o}=Re(e);if(0===r.length)return U([],t);const i=new q(function(e,t,n=P){return r=>{Ne(t,()=>{const{length:o}=e,i=new Array(o);let s=o;const u=e.map(()=>!1);let c=!0;for(let l=0;l{U(e[l],t).subscribe(new We(r,e=>{i[l]=e,c&&(u[l]=!0,c=!u.every(P)),c||r.next(n(i.slice()))},()=>0==--s))},r)}},r)}}(r,t,o?e=>{const t={};for(let n=0;nt?t(n[e],r[e]):n[e]===r[e])}function Be(e,t=document){return me(`[data-mdx-component=${e}]`,t)}function Ye(e,t=document){return function(e,t=document){return Array.from(t.querySelectorAll(e))}(`[data-mdx-component=${e}]`,t)}const Ze=me("#__config"),Je=JSON.parse(Ze.textContent);function Ge(e,t){return void 0!==t?Je.translations[e].replace("#",t.toString()):Je.translations[e]}Je.base=new URL(Je.base,Me()).toString().replace(/\/$/,"");class Ke extends c{constructor(e,t){super()}schedule(e,t=0){return this}}const Ve={setInterval(...e){const{delegate:t}=Ve;return((null==t?void 0:t.setInterval)||setInterval)(...e)},clearInterval(e){const{delegate:t}=Ve;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};class Xe extends Ke{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return Ve.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;Ve.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,u(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}class et{constructor(e,t=et.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}et.now=se.now;class tt extends et{constructor(e,t=et.now){super(e,t),this.actions=[],this.active=!1,this.scheduled=void 0}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const nt=new tt(Xe),rt=nt;function ot(e){return e<=0?()=>G:o((t,n)=>{let r=0;t.subscribe(new S(n,t=>{++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function it(e,t){return t?n=>ye(t.pipe(ot(1),o((e,t)=>{e.subscribe(new S(t,b))})),n.pipe(it(e))):Q((t,n)=>e(t,n).pipe(ot(1),be(t)))}function st(e=0,t,n=rt){let r=-1;return null!=t&&(K(t)?n=t:r=t),new q(t=>{let o=(i=e)instanceof Date&&!isNaN(i)?+e-n.now():e;var i;o<0&&(o=0);let s=0;return n.schedule((function(){t.closed||(t.next(s++),0<=r?this.schedule(void 0,r):t.complete())}),o)})}function ut(e){const t=function(e){return te(de(e,"focus"),de(e,"blur")).pipe(E(({type:e})=>"focus"===e),ge(e===we()))}(e);return Ue([te(de(e,"keyup"),de(e,"focus").pipe(function(e,t=nt){const n=st(e,t);return it(()=>n)}(1))).pipe(E(()=>e.value),ge(e.value),xe()),t]).pipe(E(([t,n])=>({ref:e,value:t,focus:n})))}var ct=n(3);const lt={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;const{delegate:r}=lt;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);const o=t(t=>{n=void 0,e(t)});return new c(()=>null==n?void 0:n(o))},requestAnimationFrame(...e){const{delegate:t}=lt;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:t}=lt;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...e)},delegate:void 0};const at=new class extends tt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1;e=e||t.shift();const o=t.length;do{if(n=e.execute(e.state,e.delay))break}while(++r0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=lt.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,n=0){if(null!=n&&n>0||null==n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(lt.cancelAnimationFrame(t),e.scheduled=void 0)}});function ht(e,t=0){return o((n,r)=>{n.subscribe(new S(r,n=>r.add(e.schedule(()=>r.next(n),t)),n=>r.add(e.schedule(()=>r.error(n),t)),()=>r.add(e.schedule(()=>r.complete(),t))))})}function ft(...e){const t=X(e);return o((n,r)=>{const o=e.length,i=new Array(o);let s=e.map(()=>!1),u=!1;for(let t=0;t{i[t]=e,u||s[t]||(s[t]=!0,(u=s.every(P))&&(s=null))},void 0,b));n.subscribe(new S(r,e=>{if(u){const n=[e,...i];r.next(t?t(...n):n)}}))})}function dt(...e){return o((t,n)=>{(function(...e){const t=X(e),n=J(e);return n.length?new q(e=>{let r=n.map(()=>[]),o=n.map(()=>!1);e.add(()=>{r=o=null});for(let i=0;!e.closed&&i{if(r[i].push(n),r.every(e=>e.length)){const n=r.map(e=>e.shift());e.next(t?t(...n):n),r.some((e,t)=>!e.length&&o[t])&&e.complete()}},void 0,()=>{o[i]=!0,!r[i].length&&e.complete()}));return()=>{r=o=null}}):G})(t,...e).subscribe(n)})}function pt(e,t){if("string"==typeof t||"number"==typeof t)e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(const n of t)pt(e,n)}function bt(e,t,...n){const r=document.createElement(e);if(t)for(const e of Object.keys(t))"boolean"!=typeof t[e]?r.setAttribute(e,t[e]):t[e]&&r.setAttribute(e,"");for(const e of n)pt(r,e);return r}function vt(e,t){return bt("li",{class:"mdx-icon-search-result__item"},bt("span",{class:"twemoji"},bt("img",{src:e.url})),bt("button",{class:"md-clipboard--inline",title:Ge("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},bt("code",null,`:${function(e,t){return Object(ct.wrap)(e,t,{wrap:{tagOpen:"",tagClose:""}})}(e.shortcode,t)}:`)))}function mt(e,{index$:t,query$:n}){const r=new oe,i=qe(e).pipe(Ie(Boolean)),s=me(":scope > :first-child",e);r.pipe(ht(at),ft(n)).subscribe(([{data:e},{value:t}])=>{t?function(e,t){switch(t){case 0:e.textContent=Ge("search.result.none");break;case 1:e.textContent=Ge("search.result.one");break;default:e.textContent=Ge("search.result.other",function(e){if(e>999){return((e+1e-6)/1e3).toFixed(+((e-950)%1e3>99))+"k"}return e.toString()}(t))}}(s,e.length):function(e){e.textContent=Ge("search.result.placeholder")}(s)});const c=me(":scope > :last-child",e);return r.pipe(ht(at),Oe(()=>function(e){e.innerHTML=""}(c)),ne(({data:e})=>te(Se(...e.slice(0,10)),Se(...e.slice(10)).pipe(function(e,t=null){return t=null!=t?t:e,o((n,r)=>{let o=[],i=0;n.subscribe(new S(r,n=>{let s=null;i++%t==0&&o.push([]);for(const t of o)t.push(n),e<=t.length&&(s=null!=s?s:[],s.push(t));if(s)for(const e of s)u(o,e),r.next(e)},void 0,()=>{for(const e of o)r.next(e);r.complete()},()=>{o=null}))})}(10),function(...e){return dt(...e)}(i),ne(([e])=>Se(...e))))),ft(n)).subscribe(([e,{value:t}])=>{!function(e,t){e.appendChild(t)}(c,vt(e,t))}),Ue([n.pipe(Qe("value")),t.pipe(E(({icons:e,emojis:t})=>[...Object.keys(e.data),...Object.keys(t.data)]))]).pipe(ft(t),E(([[{value:e},t],n])=>({data:Object(ct.filter)(t,e).map(e=>e in n.icons.data?{shortcode:e,url:`${n.icons.base}${n.icons.data[e]}`}:{shortcode:e,url:`${n.emojis.base}${n.emojis.data[e]}`})})),Oe(r),Ae(()=>r.complete()),E(t=>Object.assign({ref:e},t)))}function wt(e){const t=$e(Je.base+"/overrides/assets/javascripts/icon_search_index.json",n).pipe(ne(e=>e.json()),Ce(1));var n;const r=Be("icon-search-query",e),o=Be("icon-search-result",e),i=ut(r);return te(i,mt(o,{index$:t,query$:i}))}de(document.body,"click").subscribe(e=>{if(e.target instanceof HTMLElement){const t=e.target.closest("a[href^=http]");t instanceof HTMLLinkElement&&ga("send","event","outbound","click",t.href)}}),document$.pipe(ne(()=>te(...Ye("icon-search").map(e=>wt(e))))).subscribe()}])); //# sourceMappingURL=bundle.f4aeaef7.min.js.map