mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
17 lines
26 KiB
JavaScript
17 lines
26 KiB
JavaScript
!function(t,n){for(var r in n)t[r]=n[r]}(window,function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=2)}([,,function(t,n,r){t.exports=r(3)},function(t,n,r){"use strict";function e(t,n=[]){return(...r)=>(n=>n.length>=t.length?t(...n):e(t,n))([...n,...r])}r.r(n);e((function(t,n,r){const e=r.slice(),o=n<0?e.length+n:n;return e[o]=t(e[o]),e}));const o=e((function(t,n,r){return Object.assign({},r,{[t]:n})}));function i(t){return t<<0===t}Number.isInteger;function u(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}Object.is;e((function t(n,r,e){const c="string"==typeof n?n.split("."):n;if(0===c.length)return e;const s=c[0];if(c.length>1){const n=u(e)&&e.hasOwnProperty(s)?e[s]:i(parseInt(c[1],10))?[]:{};r=t(Array.prototype.slice.call(c,1),r,n)}if(i(parseInt(s,10))&&Array.isArray(e)){const t=[].concat(e);return t[s]=r,t}return o(s,r,e)}));function c(t){return null==t||!0===Number.isNaN(t)}function s(t,...n){if(1===arguments.length)return n=>s(t,n);if(2===arguments.length)return c(n[0])?t:n[0];const r=n.length-1;let e,o=r+1,i=!1;for(;!i;){const t=n[r-o+1];0===o?i=!0:c(t)?o-=1:(e=t,i=!0)}return void 0===e?t:e}function f(t){const n=typeof t;if(null===t)return"Null";if(void 0===t)return"Undefined";if("boolean"===n)return"Boolean";if("number"===n)return Number.isNaN(t)?"NaN":"Number";if("string"===n)return"String";if(Array.isArray(t))return"Array";if(t instanceof RegExp)return"RegExp";const r=t.toString();return r.startsWith("async")?"Async":"[object Promise]"===r?"Promise":"function"===n?"Function":"Object"}function a(t,n){if(1===arguments.length)return n=>a(t,n);if(t===n)return!0;const r=f(t);if(r!==f(n))return!1;if("Array"===r){const r=Array.from(t),e=Array.from(n);if(r.toString()!==e.toString())return!1;let o=!0;return r.forEach((t,n)=>{o&&(t===e[n]||a(t,e[n])||(o=!1))}),o}if("Object"===r){const r=Object.keys(t);if(r.length!==Object.keys(n).length)return!1;let e=!0;return r.forEach(r=>{if(e){const o=t[r],i=n[r];o===i||a(o,i)||(e=!1)}}),e}return!1}e((function(t,n,r){return s(t,function t(n,r){if(1===arguments.length)return r=>t(n,r);if(null==r)return;let e=r,o=0;const i="string"==typeof n?n.split("."):n;for(;o<i.length;){if(null==e)return;e=e[i[o]],o++}return e}(n,r))}));const p=e((function(t,n,r){return r.reduce(t,n)}));p((function t(n,r){return 1===arguments.length?r=>t(n,r):n*r}),1);e((function(t,n,r){return function t(n,r){return 1===arguments.length?r=>t(n,r):null!=r&&r.constructor===n||r instanceof n}(t,r[n])}));
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
var h=function(t,n){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)};function l(t,n){function r(){this.constructor=t}h(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function d(t){return"function"==typeof t}var b=!1,y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;b=t},get useDeprecatedSynchronousErrorHandling(){return b}};function v(t){setTimeout((function(){throw t}),0)}var m={closed:!0,next:function(t){},error:function(t){if(y.useDeprecatedSynchronousErrorHandling)throw t;v(t)},complete:function(){}},g=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function w(t){return null!==t&&"object"==typeof t}var _=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),S=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var n;if(!this.closed){var r=this._parentOrParents,e=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var i=0;i<r.length;++i){r[i].remove(this)}if(d(e))try{e.call(this)}catch(t){n=t instanceof _?x(t.errors):[t]}if(g(o)){i=-1;for(var u=o.length;++i<u;){var c=o[i];if(w(c))try{c.unsubscribe()}catch(t){n=n||[],t instanceof _?n=n.concat(x(t.errors)):n.push(t)}}}if(n)throw new _(n)}},t.prototype.add=function(n){var r=n;if(!n)return t.EMPTY;switch(typeof n){case"function":r=new t(n);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var e=r;(r=new t)._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof t){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[r]:i.push(r),r},t.prototype.remove=function(t){var n=this._subscriptions;if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function x(t){return t.reduce((function(t,n){return t.concat(n instanceof _?n.errors:n)}),[])}var E=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),O=function(t){function n(r,e,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=m;break;case 1:if(!r){i.destination=m;break}if("object"==typeof r){r instanceof n?(i.syncErrorThrowable=r.syncErrorThrowable,i.destination=r,r.add(i)):(i.syncErrorThrowable=!0,i.destination=new T(i,r));break}default:i.syncErrorThrowable=!0,i.destination=new T(i,r,e,o)}return i}return l(n,t),n.prototype[E]=function(){return this},n.create=function(t,r,e){var o=new n(t,r,e);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(S),T=function(t){function n(n,r,e,o){var i,u=t.call(this)||this;u._parentSubscriber=n;var c=u;return d(r)?i=r:r&&(i=r.next,e=r.error,o=r.complete,r!==m&&(d((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=i,u._error=e,u._complete=o,u}return l(n,t),n.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;y.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},n.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,r=y.useDeprecatedSynchronousErrorHandling;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):v(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;v(t)}}},n.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};y.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(t){if(this.unsubscribe(),y.useDeprecatedSynchronousErrorHandling)throw t;v(t)}},n.prototype.__tryOrSetError=function(t,n,r){if(!y.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(n){return y.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(v(n),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n}(O);var j=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function N(){}function P(t){return t?1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}:N}var I=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(n){var r=new t;return r.source=this,r.operator=n,r},t.prototype.subscribe=function(t,n,r){var e=this.operator,o=function(t,n,r){if(t){if(t instanceof O)return t;if(t[E])return t[E]()}return t||n||r?new O(t,n,r):new O(m)}(t,n,r);if(e?o.add(e.call(o,this.source)):o.add(this.source||y.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),y.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){y.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=n),!function(t){for(;t;){var n=t,r=n.closed,e=n.destination,o=n.isStopped;if(r||o)return!1;t=e&&e instanceof O?e:null}return!0}(t)?console.warn(n):t.error(n)}},t.prototype.forEach=function(t,n){var r=this;return new(n=A(n))((function(n,e){var o;o=r.subscribe((function(n){try{t(n)}catch(t){e(t),o&&o.unsubscribe()}}),e,n)}))},t.prototype._subscribe=function(t){var n=this.source;return n&&n.subscribe(t)},t.prototype[j]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this:P(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=A(t))((function(t,r){var e;n.subscribe((function(t){return e=t}),(function(t){return r(t)}),(function(){return t(e)}))}))},t.create=function(n){return new t(n)},t}();function A(t){if(t||(t=y.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function k(t,n){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new H(t,n))}}var H=function(){function t(t,n){this.project=t,this.thisArg=n}return t.prototype.call=function(t,n){return n.subscribe(new D(t,this.project,this.thisArg))},t}(),D=function(t){function n(n,r,e){var o=t.call(this,n)||this;return o.project=r,o.count=0,o.thisArg=e||o,o}return l(n,t),n.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(n)},n}(O);function L(t,n,r,e){return d(r)&&(e=r,r=void 0),e?L(t,n,r).pipe(k((function(t){return g(t)?e.apply(void 0,t):e(t)}))):new I((function(e){!function t(n,r,e,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(n)){var c=n;n.addEventListener(r,e,i),u=function(){return c.removeEventListener(r,e,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(n)){var s=n;n.on(r,e),u=function(){return s.off(r,e)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(n)){var f=n;n.addListener(r,e),u=function(){return f.removeListener(r,e)}}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(var a=0,p=n.length;a<p;a++)t(n[a],r,e,o,i)}o.add(u)}(t,n,(function(t){arguments.length>1?e.next(Array.prototype.slice.call(arguments)):e.next(t)}),e,r)}))}function M(t){return t&&"function"==typeof t.schedule}var V=function(t){return function(n){for(var r=0,e=t.length;r<e&&!n.closed;r++)n.next(t[r]);n.complete()}};function Y(t,n){return new I((function(r){var e=new S,o=0;return e.add(n.schedule((function(){o!==t.length?(r.next(t[o++]),r.closed||e.add(this.schedule())):r.complete()}))),e}))}function R(t,n){return n?Y(t,n):new I(V(t))}function C(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[t.length-1];return M(r)?(t.pop(),Y(t,r)):R(t)}var q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.notifyNext=function(t,n,r,e,o){this.destination.next(n)},n.prototype.notifyError=function(t,n){this.destination.error(t)},n.prototype.notifyComplete=function(t){this.destination.complete()},n}(O),F=function(t){function n(n,r,e){var o=t.call(this)||this;return o.parent=n,o.outerValue=r,o.outerIndex=e,o.index=0,o}return l(n,t),n.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},n.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(O);function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var B=U(),K=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function W(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var z=function(t){if(t&&"function"==typeof t[j])return e=t,function(t){var n=e[j]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)};if(K(t))return V(t);if(W(t))return r=t,function(t){return r.then((function(n){t.closed||(t.next(n),t.complete())}),(function(n){return t.error(n)})).then(null,v),t};if(t&&"function"==typeof t[B])return n=t,function(t){for(var r=n[B]();;){var e=r.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var n,r,e,o=w(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function X(t,n,r,e,o){if(void 0===o&&(o=new F(t,r,e)),!o.closed)return n instanceof I?n.subscribe(o):z(n)(o)}var G={};function J(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=null,e=null;return M(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&g(t[0])&&(t=t[0]),R(t,e).lift(new Q(r))}var Q=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new Z(t,this.resultSelector))},t}(),Z=function(t){function n(n,r){var e=t.call(this,n)||this;return e.resultSelector=r,e.active=0,e.values=[],e.observables=[],e}return l(n,t),n.prototype._next=function(t){this.values.push(G),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(var r=0;r<n;r++){var e=t[r];this.add(X(this,e,e,r))}}},n.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},n.prototype.notifyNext=function(t,n,r,e,o){var i=this.values,u=i[r],c=this.toRespond?u===G?--this.toRespond:this.toRespond:0;i[r]=n,0===c&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},n.prototype._tryResultSelector=function(t){var n;try{n=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(n)},n}(q);function $(t,n){if(null!=t){if(function(t){return t&&"function"==typeof t[j]}(t))return function(t,n){return new I((function(r){var e=new S;return e.add(n.schedule((function(){var o=t[j]();e.add(o.subscribe({next:function(t){e.add(n.schedule((function(){return r.next(t)})))},error:function(t){e.add(n.schedule((function(){return r.error(t)})))},complete:function(){e.add(n.schedule((function(){return r.complete()})))}}))}))),e}))}(t,n);if(W(t))return function(t,n){return new I((function(r){var e=new S;return e.add(n.schedule((function(){return t.then((function(t){e.add(n.schedule((function(){r.next(t),e.add(n.schedule((function(){return r.complete()})))})))}),(function(t){e.add(n.schedule((function(){return r.error(t)})))}))}))),e}))}(t,n);if(K(t))return Y(t,n);if(function(t){return t&&"function"==typeof t[B]}(t)||"string"==typeof t)return function(t,n){if(!t)throw new Error("Iterable cannot be null");return new I((function(r){var e,o=new S;return o.add((function(){e&&"function"==typeof e.return&&e.return()})),o.add(n.schedule((function(){e=t[B](),o.add(n.schedule((function(){if(!r.closed){var t,n;try{var o=e.next();t=o.value,n=o.done}catch(t){return void r.error(t)}n?r.complete():(r.next(t),this.schedule())}})))}))),o}))}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function tt(t,n){return n?$(t,n):t instanceof I?t:new I(z(t))}var nt=function(){function t(t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=n}return t.prototype.call=function(t,n){return n.subscribe(new rt(t,this.project,this.concurrent))},t}(),rt=function(t){function n(n,r,e){void 0===e&&(e=Number.POSITIVE_INFINITY);var o=t.call(this,n)||this;return o.project=r,o.concurrent=e,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return l(n,t),n.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},n.prototype._tryNext=function(t){var n,r=this.index++;try{n=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(n,t,r)},n.prototype._innerSub=function(t,n,r){var e=new F(this,void 0,void 0);this.destination.add(e),X(this,t,n,r,e)},n.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t,n,r,e,o){this.destination.next(n)},n.prototype.notifyComplete=function(t){var n=this.buffer;this.remove(t),this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},n}(q);function et(t){return t}function ot(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(n,r,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),"function"==typeof r?function(o){return o.pipe(t((function(t,e){return tt(n(t,e)).pipe(k((function(n,o){return r(t,n,e,o)})))}),e))}:("number"==typeof r&&(e=r),function(t){return t.lift(new nt(n,e))})}(et,t)}function it(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ot(1)(C.apply(void 0,t))}function ut(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[t.length-1];return M(r)?(t.pop(),function(n){return it(t,n,r)}):function(n){return it(t,n)}}function ct(t,n){return function(r){return r.lift(new st(t,n))}}var st=function(){function t(t,n){this.predicate=t,this.thisArg=n}return t.prototype.call=function(t,n){return n.subscribe(new ft(t,this.predicate,this.thisArg))},t}(),ft=function(t){function n(n,r,e){var o=t.call(this,n)||this;return o.predicate=r,o.thisArg=e,o.count=0,o}return l(n,t),n.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}n&&this.destination.next(t)},n}(O);function at(t,n){return"function"==typeof n?function(r){return r.pipe(at((function(r,e){return tt(t(r,e)).pipe(k((function(t,o){return n(r,t,e,o)})))})))}:function(n){return n.lift(new pt(t))}}var pt=function(){function t(t){this.project=t}return t.prototype.call=function(t,n){return n.subscribe(new ht(t,this.project))},t}(),ht=function(t){function n(n,r){var e=t.call(this,n)||this;return e.project=r,e.index=0,e}return l(n,t),n.prototype._next=function(t){var n,r=this.index++;try{n=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(n,t,r)},n.prototype._innerSub=function(t,n,r){var e=this.innerSubscription;e&&e.unsubscribe();var o=new F(this,void 0,void 0);this.destination.add(o),this.innerSubscription=X(this,t,n,r,o)},n.prototype._complete=function(){var n=this.innerSubscription;n&&!n.closed||t.prototype._complete.call(this),this.unsubscribe()},n.prototype._unsubscribe=function(){this.innerSubscription=null},n.prototype.notifyComplete=function(n){this.destination.remove(n),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},n.prototype.notifyNext=function(t,n,r,e,o){this.destination.next(n)},n}(q);function lt(t,n){return n?at((function(){return t}),n):at((function(){return t}))}function dt(t,n){return function(r){return r.lift(new bt(t,n))}}var bt=function(){function t(t,n){this.compare=t,this.keySelector=n}return t.prototype.call=function(t,n){return n.subscribe(new yt(t,this.compare,this.keySelector))},t}(),yt=function(t){function n(n,r,e){var o=t.call(this,n)||this;return o.keySelector=e,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return l(n,t),n.prototype.compare=function(t,n){return t===n},n.prototype._next=function(t){var n;try{var r=this.keySelector;n=r?r(t):t}catch(t){return this.destination.error(t)}var e=!1;if(this.hasKey)try{e=(0,this.compare)(this.key,n)}catch(t){return this.destination.error(t)}else this.hasKey=!0;e||(this.key=n,this.destination.next(t))},n}(O);var vt=L(window,"scroll"),mt=L(window,"resize");function gt(){return{x:window.pageXOffset,y:window.pageYOffset}}function wt(){return{width:window.innerWidth,height:window.innerHeight}}r.d(n,"app",(function(){return Lt}));_t="(min-width: 1220px)",St=window.matchMedia(_t),function t(n,r,e){return e?t(n,r).pipe(k((function(t){return g(t)?e.apply(void 0,t):e(t)}))):new I((function(t){var e,o=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.next(1===n.length?n[0]:n)};try{e=n(o)}catch(n){return void t.error(n)}if(d(r))return function(){return r(o,e)}}))}((function(t){return St.addListener((function(){return t(St.matches)}))})).pipe(ut(St.matches));var _t,St,xt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Number.POSITIVE_INFINITY,e=null,o=t[t.length-1];return M(o)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===e&&1===t.length&&t[0]instanceof I?t[0]:ot(r)(R(t,e))}(vt,mt).pipe(k(gt),ut(gt()),dt(a)),Et=mt.pipe(k(wt),ut(wt()),dt(a)),Ot=L(window,"hashchange").pipe(ut(document.location.hash),k((function(){return document.location.hash})),ct((function(t){return t.length>0}))),Tt=C({container:document.querySelector("[data-md-component=container]"),navigation:document.querySelector("[data-md-component=navigation]"),header:document.querySelector("[data-md-component=header]"),title:document.querySelector("[data-md-component=title]"),toc:document.querySelector("[data-md-component=toc]"),headline:document.querySelector(".md-typeset h1")});function jt(t){return Array.from(t)}document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");var Nt=Et.pipe(lt(Tt),k((function(t){var n=t.header,r=t.navigation;return-1*(null===n.offsetParent?n.offsetHeight:0)+p((function(t,n){return Math.max(t,n.offsetTop)}),0,jt(r.parentElement.children))})),dt(a)),Pt=J(xt,Et,Tt,Nt).pipe(k((function(t){var n=t[0].y,r=t[1].height,e=t[2],o=e.header,i=e.navigation,u=t[3],c=i.parentElement;return r-(null===o.offsetParent?o.offsetHeight:0)-Math.max(0,u-n)-Math.max(0,n+r-c.offsetTop-c.offsetHeight)}))),It=J(xt,Nt).pipe(k((function(t){return t[0].y>=t[1]})),dt(a));J(Tt,It).subscribe((function(t){var n=t[0].navigation,r=t[1];n.dataset.mdState=r?"lock":""})),J(Tt,Pt).subscribe((function(t){var n=t[0].navigation,r=t[1];n.style.height=r+"px"})),J(Tt,It).pipe(ct((function(t){var n=t[0].toc;return Boolean(n)}))).subscribe((function(t){var n=t[0].toc,r=t[1];n.dataset.mdState=r?"lock":""})),J(Tt,Pt).pipe(ct((function(t){var n=t[0].toc;return Boolean(n)}))).subscribe((function(t){var n=t[0].toc,r=t[1];n.style.height=r+"px"}));var At=J(xt,Et.pipe(lt(Tt),k((function(t){var n=t.container.parentElement,r=0;do{r+=(n=n.previousElementSibling).offsetHeight}while(n.previousElementSibling);return r})))).pipe(k((function(t){return t[0].y>=t[1]})),dt(a));J(Tt,At).subscribe((function(t){var n=t[0].header,r=t[1];n.dataset.mdState=r?"shadow":""}));var kt=Et.pipe(lt(Tt),k((function(t){return t.headline.offsetTop})),dt(a)),Ht=Et.pipe(lt(Tt),k((function(t){return t.title.offsetWidth-20})),dt(a)),Dt=J(xt,kt).pipe(k((function(t){return t[0].y>=t[1]})),dt(a));function Lt(t){}J(Tt,Dt).subscribe((function(t){var n=t[0].title,r=t[1];n.dataset.mdState=r?"active":""})),J(Tt,Ht).subscribe((function(t){for(var n=t[0].title,r=t[1],e=0,o=jt(n.children);e<o.length;e++){o[e].style.width=r+"px"}})),Ot.pipe(k((function(t){return document.querySelector(t)})),ct(Boolean)).subscribe((function(t){for(var n=t.parentNode;n&&!(n instanceof HTMLDetailsElement);)n=n.parentNode;if(n&&!n.open){n.open=!0;var r=location.hash;location.hash=" ",location.hash=r}}))}]));
|
|
//# sourceMappingURL=app.js.map
|