!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=r||void 0!==t&&t||i}).call(this,n(7))},,,,function(t,e,n){t.exports=n(8)},function(t,e){!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var n,r;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}()},function(t,e,n){"use strict";document.addEventListener("DOMContentLoaded",(function(){(function(){var t=document.createElement("details");if(!("open"in t))return!1;t.innerHTML="__",t.style.display="block",document.body.appendChild(t);var e=t.offsetHeight;t.open=!0;var n=t.offsetHeight;return document.body.removeChild(t),n-e!=0})()||(document.documentElement.classList.add("no-details"),document.querySelectorAll("details > summary").forEach((function(t){t.addEventListener("click",(function(){var e=t.parentNode;e.hasAttribute("open")?e.removeAttribute("open"):e.setAttribute("open","")}))})))}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}function o(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return r(n)?e:i((function(e){return t(n,e)}));default:return r(n)&&r(o)?e:r(n)?i((function(e){return t(e,o)})):r(o)?i((function(e){return t(n,e)})):t(n,o)}}}n.r(e);var u=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function s(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function c(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!u(i)){for(var o=0;o=0;){if(t(e[n]))return e[n];n-=1}}))),h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function p(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function d(t){return"function"==typeof t}var y=!1,b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;y=t},get useDeprecatedSynchronousErrorHandling(){return y}};function v(t){setTimeout((function(){throw t}),0)}var m={closed:!0,next:function(t){},error:function(t){if(b.useDeprecatedSynchronousErrorHandling)throw t;v(t)},complete:function(){}},w=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function g(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,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),x=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function D(t){return t&&"function"==typeof t.schedule}var L=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return p(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(T),z=function(t){return function(e){for(var n=0,r=t.length;n0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(U);function Q(t){return t}function Z(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t((function(t,r){return G(e(t,r)).pipe(P((function(e,i){return n(t,e,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new J(e,r))})}(Q,t)}function tt(t,e){return e?W(t,e):new A(z(t))}function et(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof A?t[0]:Z(n)(tt(t,r))}function nt(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(it),ut=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),st=function(t){function e(n,r){void 0===r&&(r=ut.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return p(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ut),ct=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(it),qt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(st))(Pt),Mt=new A((function(t){return t.complete()}));function Ht(t){return t?function(t){return new A((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Mt}function Dt(t){var e=t.error;t.subscriber.error(e)}Tt||(Tt={});var Lt=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return nt(this.value);case"E":return t=this.error,new A(e?function(n){return e.schedule(Dt,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return Ht()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function zt(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Ft(t,e))}}var Ft=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new Rt(t,this.scheduler,this.delay))},t}(),Rt=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return p(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Vt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Lt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Lt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Lt.createComplete()),this.unsubscribe()},e}(T),Vt=function(){return function(t,e){this.notification=t,this.destination=e}}(),Xt=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return p(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Yt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new It;if(this.isStopped||this.hasError?e=x.EMPTY:(this.observers.push(t),e=new Ct(this,t)),i&&t.add(t=new Rt(t,i)),n)for(var u=0;ue&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(At),Yt=function(){return function(t,e){this.time=t,this.value=e}}();function $t(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,c=t.scheduler,a=0,f=!1,l=!1;return function(t){a++,e&&!f||(f=!1,e=new Xt(i,u,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var r=e.subscribe(this);this.add((function(){a--,r.unsubscribe(),n&&!l&&s&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Ut(t,e){return"function"==typeof e?function(n){return n.pipe(Ut((function(n,r){return G(t(n,r)).pipe(P((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Wt(t))}}var Wt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Bt(t,this.project))},t}(),Bt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return p(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new L(this,void 0,void 0);this.destination.add(i),this.innerSubscription=$(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(U);function Gt(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Jt(t,e,n))}}var Jt=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Kt(t,this.accumulator,this.seed,this.hasSeed))},t}(),Kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return p(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(T),Qt=new st(it);function Zt(t,e){void 0===e&&(e=Qt);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new te(r,e))}}var te=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ee(t,this.delay,this.scheduler))},t}(),ee=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return p(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ne(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Lt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Lt.createComplete()),this.unsubscribe()},e}(T),ne=function(){return function(t,e){this.time=t,this.notification=e}}();function re(t,e,n){return function(r){return r.lift(new ie(t,e,n))}}var ie=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.nextOrObserver,this.error,this.complete))},t}(),oe=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=I,o._tapError=I,o._tapComplete=I,o._tapError=r||I,o._tapComplete=i||I,d(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||I,o._tapError=n.error||I,o._tapComplete=n.complete||I),o}return p(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(T);function ue(t,e){return function(n){return n.lift(new se(t,e))}}var se=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ce(t,this.predicate,this.thisArg))},t}(),ce=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return p(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(T);n(5),n(6);function ae(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var fe=Object.prototype.toString,le=function(){return"[object Arguments]"===fe.call(arguments)?function(t){return"[object Arguments]"===fe.call(t)}:function(t){return ae("callee",t)}}(),he=!{toString:null}.propertyIsEnumerable("toString"),pe=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],de=function(){return arguments.propertyIsEnumerable("length")}(),ye=function(t,e){for(var n=0;n=0;)ae(e=pe[n],t)&&!ye(r,e)&&(r[r.length]=e),n-=1;return r})):i((function(t){return Object(t)!==t?[]:Object.keys(t)}));function ve(t){return C(Ut((function(e){return e?t():rt})))}function me(t,e){return void 0===e&&(e=document),e.querySelector(t)||void 0}function we(t,e){return void 0===e&&(e=document),n=e.querySelectorAll(t),Array.from(n);var n}function ge(){for(var t=[],e=0;e1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(T),Te=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return p(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new x).add(this.source.subscribe(new je(this.getSubject(),this))),t.closed&&(this._connection=null,t=x.EMPTY)),t},e.prototype.refCount=function(){return xe()(this)},e}(A),Oe=function(){var t=Te.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return p(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(Nt);var Ie=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function Ce(){return new At}function Ne(){return function(t){return xe()((e=Ce,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new Ie(r,n));var i=Object.create(t,Oe);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}var Ae=H(window,"hashchange"),ke=H(window,"popstate");function Pe(t){var e=window.matchMedia(t);return function t(e,n,r){return r?t(e,n).pipe(P((function(t){return w(t)?r.apply(void 0,t):r(t)}))):new A((function(t){var r,i=function(){for(var e=[],n=0;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Fe(t){return C(Ut((function(e){return void 0!==e[t]?nt(e[t]):rt})))}var Re=i((function(t){return e=t,"[object String]"===Object.prototype.toString.call(e)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse();var e}));function Ve(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Xe(t,e,n){for(var r=0,i=n.length;r=0;){if(n[s]===t)return r[s]===e;s-=1}switch(u){case"Map":return t.size===e.size&&Ue(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&Ue(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=be(t);if(c.length!==be(e).length)return!1;var a=n.concat([t]),f=r.concat([e]);for(s=c.length-1;s>=0;){var l=c[s];if(!ae(l,e)||!We(e[l],t[l],a,f))return!1;s-=1}return!0}var Be=o((function(t,e){return We(t,e,[],[])}));function Ge(t,e){return function(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n=0}function Je(t,e,n){var r,i=typeof t;switch(i){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):i in n._items?t in n._items[i]||(e&&(n._items[i][t]=!0),!1):(e&&(n._items[i]={},n._items[i][t]=!0),!1);case"boolean":if(i in n._items){var o=t?1:0;return!!n._items[i][o]||(e&&(n._items[i][o]=!0),!1)}return e&&(n._items[i]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):i in n._items?!!Ge(t,n._items[i])||(e&&n._items[i].push(t),!1):(e&&(n._items[i]=[t]),!1);case"undefined":return!!n._items[i]||(e&&(n._items[i]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(t))in n._items?!!Ge(t,n._items[i])||(e&&n._items[i].push(t),!1):(e&&(n._items[i]=[t]),!1)}}var Ke=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Je(t,!0,this)},t.prototype.has=function(t){return Je(t,!1,this)},t}(),Qe=o((function(t,e){for(var n=[],r=0,i=t.length,o=e.length,u=new Ke,s=0;s=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},bn=function(){for(var t=[],e=0;e0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};var gn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function _n(t,e){t.style.background=e?"yellow":"",t.style.webkitOverflowScrolling=e?"touch":""}var xn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};function Sn(t,e){var n=e.offset$,r=e.main$,i=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),o=tn(n,r).pipe(P((function(t){var e=xn(t,2),n=e[0].y,r=e[1],o=r.offset;return r.height-i+Math.min(i,Math.max(0,n-o))}))),u=tn(n,r).pipe(P((function(t){var e=xn(t,2);return e[0].y>=e[1].offset+i})));return tn(o,u).pipe(P((function(t){var e=xn(t,2);return{height:e[0],lock:e[1]}})),rn(Be),$t({bufferSize:1,refCount:!0}))}function En(t){return C(zt(ct),re((function(e){var n=e.height,r=e.lock;!function(t,e){t.style.height=e+"px"}(t,n),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,r)})),sn((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}n.d(e,"app",(function(){return Wn}));var Tn=function(){return(Tn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},jn=function(){for(var t=[],e=0;e=t.offsetTop-i})),rn());return tn(o,i,u).pipe(P((function(e){var n=wn(e,3),r=n[0],i=n[1],o=n[2];return{offset:t.offsetTop-i,height:r,active:o}})),$t({bufferSize:1,refCount:!0}))}(t,{size$:Cn,offset$:In,header$:Ln})})),$t({bufferSize:1,refCount:!0}));Dn.pipe(Fe("navigation"),Ut((function(t){return Nn.pipe(ve((function(){return Sn(t,{offset$:In,main$:zn}).pipe(En(t))})))}))).subscribe(),Dn.pipe(Fe("toc"),Ut((function(t){return kn.pipe(ve((function(){return Sn(t,{offset$:In,main$:zn}).pipe(En(t))})))}))).subscribe(),Dn.pipe(Fe("toc"),P((function(t){return we(".md-nav__link",t)})),Ut((function(t){return kn.pipe(ve((function(){return function(t,e){var n,r,i=e.size$,o=e.offset$,u=e.header$,s=new Map;try{for(var c=dn(t),a=c.next();!a.done;a=c.next()){var f=a.value,l=me('[id="'+decodeURIComponent(f.hash.substring(1))+'"]');void 0!==l&&s.set(f,l)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var h=u.pipe(P((function(t){return 18+t.height})));return i.pipe(P((function(){var t=[];return bn(s).reduce((function(e,n){for(var r=yn(n,2),i=r[0],o=r[1];t.length;){if(!(s.get(t[t.length-1]).tagName>=o.tagName))break;t.pop()}return e.set(Re(t=bn(t,[i])),o.offsetTop)}),new Map)})),Ut((function(t){return tn(o,h).pipe(Gt((function(t,e){for(var n=yn(t,2),r=n[0],i=n[1],o=yn(e,2),u=o[0].y,s=o[1];i.length;){if(!(yn(i[0],2)[1]-s=u))break;i=bn([r.pop()],i)}return[r,i]}),[[],bn(t)]),rn((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(P((function(t){var e=yn(t,2),n=e[0],r=e[1];return{done:n.map((function(t){return yn(t,1)[0]})),next:r.map((function(t){return yn(t,1)[0]}))}})),$t({bufferSize:1,refCount:!0}))}(t,{size$:Cn,offset$:In,header$:Ln}).pipe(function(t){return C(Gt((function(t,e){var n=Math.max(0,Math.min(e.done.length,t.done.length)-1),r=Math.max(e.done.length,t.done.length);return{done:e.done.slice(n,r+1),next:Qe(e.next,t.next)}}),{done:[],next:[]}),zt(ct),re((function(t){var e,n,r,i,o=t.done,u=t.next;try{for(var s=dn(u),c=s.next();!c.done;c=s.next()){pn(l=yn(c.value,1)[0]),ln(l)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}try{for(var a=dn(o.entries()),f=a.next();!f.done;f=a.next()){var l,h=yn(f.value,2),p=h[0];hn(l=yn(h[1],1)[0],p===o.length-1),fn(l,!0)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}})),sn((function(){var e,n;try{for(var r=dn(t),i=r.next();!i.done;i=r.next()){var o=i.value;pn(o),ln(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})))}(t))})))}))).subscribe(),Dn.pipe(Fe("header"),Ut((function(t){return zn.pipe(vn(t))}))).subscribe(),Mn.pipe(Ut((function(t){return H(t.body,"click")})),Ut((function(t){for(var e=t.target;e&&!(e instanceof HTMLAnchorElement);)e=e.parentNode;if(e&&!/(:\/\/|^#[^\/]+$)/.test(e.getAttribute("href"))){t.preventDefault(),console.log("> ",e.href);var n=e.href;return history.pushState({},"",n),nt(n)}return rt})),$t({bufferSize:1,refCount:!0})).subscribe(Hn);var Fn=function(t){var e,n,r=we("nav",t),i=new Map;try{for(var o=gn(r),u=o.next();!u.done;u=o.next()){var s=u.value,c=me("label",s);if(void 0!==c){var a=me("#"+c.htmlFor);i.set(a,s)}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return nt(i).pipe($t({bufferSize:1,refCount:!0}))}(me("[data-md-component=navigation]"));An.pipe(ve((function(){return Fn.pipe(Ut((function(t){return et.apply(void 0,jn(jn(t.keys()).map((function(t){return H(t,"change")})))).pipe(Et(t))})),P((function(t){return me("ul",t.get(l((function(t){return t.checked}),jn(t.keys()))))})),Gt((function(t,e){return t&&_n(t,!1),e})),Zt(250),re((function(t){_n(t,!0)})))}))).subscribe(),Nn.pipe(ve((function(){return Fn.pipe(Ut((function(t){return jn(t.keys()).filter((function(e){return"collapsible"===t.get(e).getAttribute("data-md-component")})).map((function(e){var n=t.get(e);return n.setAttribute("data-md-height",""+n.offsetHeight),e})).map((function(e){return H(e,"change").pipe(P((function(){var n=t.get(e),r=parseInt(n.getAttribute("data-md-height"),10);return e.checked?(n.style.maxHeight="initial",n.style.transitionDuration="initial",r=n.offsetHeight,console.log("expand to height"),n.style.maxHeight="0px"):(n.style.maxHeight=r+"px",r=0),n.offsetHeight,n.style.transitionDuration="",r})),zt(ct),re((function(n){var r=t.get(e);r.style.maxHeight=n+"px",console.log("setting shit..."),r.setAttribute("data-md-height",""+n)})),Zt(250),re((function(){var n=t.get(e);console.log("DONE"),n.style.maxHeight=""}))).subscribe()}))})))}))).subscribe();var Rn,Vn=Ae.pipe(P((function(){return location.hash})),_e(location.hash),ue((function(t){return t.length>0})),Ne());Vn.pipe((void 0===Rn&&(Rn=document),C(P((function(t){return me(t,Rn)})),ue(Boolean))),re((function(t){for(var e=t.parentNode;e&&!(e instanceof HTMLDetailsElement);)e=e.parentNode;if(e&&!e.open){e.open=!0;var n=location.hash;location.hash=" ",location.hash=n}}))).subscribe();var Xn=me("[data-md-toggle=drawer]"),Yn=me("[data-md-toggle=search]");Vn.pipe(re((function(){return Un(Xn,!1)}))).subscribe();var $n=me("[data-md-component=query]");function Un(t,e){t.checked!==e&&(t.checked=e,t.dispatchEvent(new CustomEvent("change")))}function Wn(t){console.log("called app with",t)}$n&&H($n,"focus").pipe(re((function(){return Un(Yn,!0)}))).subscribe(),H(Yn,"change").pipe(ue((function(){return Yn.checked})),Zt(400),re((function(){return $n.focus()}))).subscribe()}]));
//# sourceMappingURL=app.js.map