unstick r1872951

Revision 1872951

Date:
2020/01/18 11:35:34
Author:
janpio
Revision Log:
Updated docs
Files:

Legend:

 
Added
 
Removed
 
Modified
  • cordova/site/public/feed.xml

     
    6 6 </description>
    7 7 <link>https://cordova.apache.org/</link>
    8 8 <atom:link href="https://cordova.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
    9 <pubDate>Sat, 18 Jan 2020 09:49:27 +0000</pubDate>
    10 <lastBuildDate>Sat, 18 Jan 2020 09:49:27 +0000</lastBuildDate>
    9 <pubDate>Sat, 18 Jan 2020 11:17:08 +0000</pubDate>
    10 <lastBuildDate>Sat, 18 Jan 2020 11:17:08 +0000</lastBuildDate>
    11 11 <generator>Jekyll v2.5.3</generator>
    12 12
    13 13 <item>
  • cordova/site/public/static/js/plugins.js

     
    1 1 !function t(e,n,r){function o(u,s){if(!n[u]){if(!e[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[u]={exports:{}};e[u][0].call(l.exports,function(t){var n=e[u][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t,e,n){(function(t){(function(){function n(t,e){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];this.obs=t,this.sync=e,this.lazy=n,this.queue=[]}function r(){n.apply(this,arguments)}function o(t){n.call(this,t,!0)}function i(t,e,n){this.context=t,this.method=e,this.args=n}function u(t){this.value=t}function s(){this.id=++ot}function a(t,e){return this instanceof a?(s.call(this),void(!e&&L.isFunction(t)||(null!=t?t._isNext:void 0)?(this.valueF=t,this.valueInternal=void 0):(this.valueF=void 0,this.valueInternal=t))):new a(t,e)}function c(t,e){return this instanceof c?void a.call(this,t,e):new c(t,e)}function l(){return this instanceof l?void s.call(this):new l}function f(t){return this instanceof f?(this.error=t,void s.call(this)):new f(t)}function p(t){this.desc=t,this.id=++ct,this.initialDesc=this.desc}function h(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];this.unsubscribe=L.bind(this.unsubscribe,this),this.unsubscribed=!1,this.subscriptions=[],this.starting=[];for(var e,n=0;n<t.length;n++)e=t[n],this.add(e)}function d(t,e){this._subscribe=t,this._handleEvent=e,this.subscribe=L.bind(this.subscribe,this),this.handleEvent=L.bind(this.handleEvent,this),this.pushing=!1,this.ended=!1,this.prevError=void 0,this.unsubSrc=void 0,this.subscriptions=[],this.queue=[]}function v(t,e,n){return this instanceof v?(L.isFunction(t)&&(n=e,e=t,t=i.empty),p.call(this,t),T(e),this.dispatcher=new d(e,n),void lt(this)):new v(t,e,n)}function y(t,e,n){d.call(this,e,n),this.property=t,this.subscribe=L.bind(this.subscribe,this),this.current=nt,this.currentValueRootId=void 0,this.propertyEnded=!1}function m(t,e,n){p.call(this,t),T(e),this.dispatcher=new y(this,e,n),lt(this)}function b(){return this instanceof b?(this.unsubAll=L.bind(this.unsubAll,this),this.subscribeAll=L.bind(this.subscribeAll,this),this.guardedSink=L.bind(this.guardedSink,this),this.sink=void 0,this.subscriptions=[],this.ended=!1,void v.call(this,new _.Desc(_,"Bus",[]),this.subscribeAll)):new b}function g(t){return[t,st()]}function w(t){this.observable=t}var S=Array.prototype.slice,_={toString:function(){return"Bacon"}};_.version="0.7.95";var x=("undefined"!=typeof t&&null!==t?t:this).Error,C=function(){},E=function(t,e){return t},P=function(t){return t.slice(0)},O=function(t,e){if(!e)throw new x(t)},D=function(t){if((null!=t?t._isObservable:void 0)&&!(null!=t?t._isProperty:void 0))throw new x("Observable is not a Property : "+t)},k=function(t){if(!(null!=t?t._isEventStream:void 0))throw new x("not an EventStream : "+t)},N=function(t){if(!(null!=t?t._isObservable:void 0))throw new x("not an Observable : "+t)},T=function(t){return O("not a function : "+t,L.isFunction(t))},A=Array.isArray||function(t){return t instanceof Array},M=function(t){return t&&t._isObservable},j=function(t){if(!A(t))throw new x("not an array : "+t)},I=function(t){return O("no arguments supported",0===t.length)},R=function(t){for(var e=arguments.length,n=1;1<e?n<e:n>e;1<e?n++:n--)for(var r in arguments[n])t[r]=arguments[n][r];return t},U=function(t,e){var n={}.hasOwnProperty,r=function(){};r.prototype=e.prototype,t.prototype=new r;for(var o in e)n.call(e,o)&&(t[o]=e[o]);return t},W=function(t){return"undefined"!=typeof Symbol&&Symbol[t]?Symbol[t]:"undefined"!=typeof Symbol&&"function"==typeof Symbol["for"]?Symbol[t]=Symbol["for"](t):"@@"+t},L={indexOf:function(){return Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n,r=0;r<t.length;r++)if(n=t[r],e===n)return r;return-1}}(),indexWhere:function(t,e){for(var n,r=0;r<t.length;r++)if(n=t[r],e(n))return r;return-1},head:function(t){return t[0]},always:function(t){return function(){return t}},negate:function(t){return function(e){return!t(e)}},empty:function(t){return 0===t.length},tail:function(t){return t.slice(1,t.length)},filter:function(t,e){for(var n,r=[],o=0;o<e.length;o++)n=e[o],t(n)&&r.push(n);return r},map:function(t,e){return function(){for(var n,r=[],o=0;o<e.length;o++)n=e[o],r.push(t(n));return r}()},each:function(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];e(n,r)}},toArray:function(t){return A(t)?t:[t]},contains:function(t,e){return L.indexOf(t,e)!==-1},id:function(t){return t},last:function(t){return t[t.length-1]},all:function(t){for(var e,n=arguments.length<=1||void 0===arguments[1]?L.id:arguments[1],r=0;r<t.length;r++)if(e=t[r],!n(e))return!1;return!0},any:function(t){for(var e,n=arguments.length<=1||void 0===arguments[1]?L.id:arguments[1],r=0;r<t.length;r++)if(e=t[r],n(e))return!0;return!1},without:function(t,e){return L.filter(function(e){return e!==t},e)},remove:function(t,e){var n=L.indexOf(e,t);if(n>=0)return e.splice(n,1)},fold:function(t,e,n){for(var r,o=0;o<t.length;o++)r=t[o],e=n(e,r);return e},flatMap:function(t,e){return L.fold(e,[],function(e,n){return e.concat(t(n))})},cached:function(t){var e=nt;return function(){return("undefined"!=typeof e&&null!==e?e._isNone:void 0)&&(e=t(),t=void 0),e}},bind:function(t,e){return function(){return t.apply(e,arguments)}},isFunction:function(t){return"function"==typeof t},toString:function(t){var e,n,r,o={}.hasOwnProperty;try{return $++,null==t?"undefined":L.isFunction(t)?"function":A(t)?$>5?"[..]":"["+L.map(L.toString,t).toString()+"]":null!=(null!=t?t.toString:void 0)&&t.toString!==Object.prototype.toString?t.toString():"object"==typeof t?$>5?"{..}":(e=function(){var e=[];for(n in t)o.call(t,n)&&(r=function(){var e;try{return t[n]}catch(e){return e}}(),e.push(L.toString(n)+":"+L.toString(r)));return e}(),"{"+e+"}"):t}finally{$--}}},$=0;_._=L;var F=_.UpdateBarrier=function(){function t(t){t<=s||(u[t-1]||(u[t-1]=[[],0]),s=t)}function e(t,e){for(var n=0;n<e.length;n++)if(e[n][0].id==t.id)return!0;return!1}function n(){var e=s;if(e)for(;s>=e;){var n=u[s-1];if(!n)throw new f("Unexpected stack top: "+n);var r=n[0],o=n[1];if(!(o<r.length)){n[0]=[],n[1]=0;break}var i=r[o],a=(i[0],i[1]);n[1]++,t(s+1);var c=!1;try{for(a(),c=!0;s>e&&0==u[s-1][0].length;)s--}finally{c||(u=[],s=0)}}}var r,o=[],i={},u=[],s=0,a={},c=function(o,i){if(!r&&!u.length)return i();t(1);for(var a=0;a<s-1&&!e(o,u[a][0]);)a++;var c=u[a][0];c.push([o,i]),r||n()},l=function(t,e){if(r){var n=i[t.id];return"undefined"==typeof n||null===n?(n=i[t.id]=[e],o.push(t)):n.push(e)}return e()},p=function(){for(;o.length>0;)h(0,!0);a={}},h=function(t,e){var n=o[t],r=n.id,u=i[r];o.splice(t,1),delete i[r],e&&o.length>0&&d(n);for(var s,a=0;a<u.length;a++)(s=u[a])()},d=function(t){if(!a[t.id]){for(var e,n=t.internalDeps(),r=0;r<n.length;r++)if(e=n[r],d(e),i[e.id]){var u=L.indexOf(o,e);h(u,!1)}a[t.id]=!0}},v=function(t,e,o,i){if(r)return o.apply(e,i);r=t;try{var u=o.apply(e,i);p()}finally{r=void 0,n()}return u},y=function(){return r?r.id:void 0},m=function(t,e){var n=!1,r=!1,o=function(){return r=!0},i=function(){return n=!0,o()};return o=t.dispatcher.subscribe(function(r){return c(t,function(){if(!n){var t=e(r);if(t===_.noMore)return i()}})}),r&&o(),i},b=function(){return o.length>0};return{whenDoneWith:l,hasWaiters:b,inTransaction:v,currentEventId:y,wrappedSubscribe:m,afterTransaction:c}}();R(n.prototype,{_isSource:!0,subscribe:function(t){return this.obs.dispatcher.subscribe(t)},toString:function(){return this.obs.toString()},markEnded:function(){return this.ended=!0,!0},consume:function(){return this.lazy?{value:L.always(this.queue[0])}:this.queue[0]},push:function(t){return this.queue=[t],[t]},mayHave:function(){return!0},hasAtLeast:function(){return this.queue.length},flatten:!0}),U(r,n),R(r.prototype,{consume:function(){return this.queue.shift()},push:function(t){return this.queue.push(t)},mayHave:function(t){return!this.ended||this.queue.length>=t},hasAtLeast:function(t){return this.queue.length>=t},flatten:!1}),U(o,n),R(o.prototype,{consume:function(){var t=this.queue;return this.queue=[],{value:function(){return t}}},push:function(t){return this.queue.push(t.value())},hasAtLeast:function(){return!0}}),n.isTrigger=function(t){return(null!=t?t._isSource:void 0)?t.sync:null!=t?t._isEventStream:void 0},n.fromObservable=function(t){return(null!=t?t._isSource:void 0)?t:(null!=t?t._isProperty:void 0)?new n(t,(!1)):new r(t,(!0))},R(i.prototype,{_isDesc:!0,deps:function(){return this.cached||(this.cached=H([this.context].concat(this.args))),this.cached},toString:function(){return L.toString(this.context)+"."+L.toString(this.method)+"("+L.map(L.toString,this.args)+")"}});var V=function(t,e){var n=t||e;if(n&&n._isDesc)return t||e;for(var r=arguments.length,o=Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];return new i(t,e,o)},B=function(t,e){return e.desc=t,e},H=function(t){return A(t)?L.flatMap(H,t):M(t)?[t]:("undefined"!=typeof t&&null!==t?t._isSource:void 0)?[t.obs]:[]};_.Desc=i,_.Desc.empty=new _.Desc("","",[]);var q=function(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if("object"==typeof e&&r.length){var i=e,u=r[0];e=function(){return i[u].apply(i,arguments)},r=r.slice(1)}return t.apply(void 0,[e].concat(r))}},z=function(t){return t=Array.prototype.slice.call(t),X.apply(void 0,t)},Q=function(t,e){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(void 0,e.concat(r))}},J=function(t){return function(e){return function(n){if("undefined"!=typeof n&&null!==n){var r=n[e];return L.isFunction(r)?r.apply(n,t):r}}}},Z=function(t,e){var n=t.slice(1).split("."),r=L.map(J(e),n);return function(t){for(var e,n=0;n<r.length;n++)e=r[n],t=e(t);return t}},G=function(t){return"string"==typeof t&&t.length>1&&"."===t.charAt(0)},X=q(function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return L.isFunction(t)?n.length?Q(t,n):t:G(t)?Z(t,n):L.always(t)}),Y=function(t,e){return X.apply(void 0,[t].concat(e))},K=function(t,e,n,r){if("undefined"!=typeof e&&null!==e?e._isProperty:void 0){var o=e.sampledBy(t,function(t,e){return[t,e]});return r.call(o,function(t){var e=t[0];t[1];return e}).map(function(t){var e=(t[0],t[1]);return e})}return e=Y(e,n),r.call(t,e)},tt=function(t){if(L.isFunction(t))return t;if(G(t)){var e=et(t);return function(t,n){return t[e](n)}}throw new x("not a function or a field key: "+t)},et=function(t){return t.slice(1)};R(u.prototype,{_isSome:!0,getOrElse:function(){return this.value},get:function(){return this.value},filter:function(t){return t(this.value)?new u(this.value):nt},map:function(t){return new u(t(this.value))},forEach:function(t){return t(this.value)},isDefined:!0,toArray:function(){return[this.value]},inspect:function(){return"Some("+this.value+")"},toString:function(){return this.inspect()}});var nt={_isNone:!0,getOrElse:function(t){return t},filter:function(){return nt},map:function(){return nt},forEach:function(){},isDefined:!1,toArray:function(){return[]},inspect:function(){return"None"},toString:function(){return this.inspect()}},rt=function(t){return("undefined"!=typeof t&&null!==t?t._isSome:void 0)||("undefined"!=typeof t&&null!==t?t._isNone:void 0)?t:new u(t)};_.noMore="<no-more>",_.more="<more>";var ot=0;s.prototype._isEvent=!0,s.prototype.isEvent=function(){return!0},s.prototype.isEnd=function(){return!1},s.prototype.isInitial=function(){return!1},s.prototype.isNext=function(){return!1},s.prototype.isError=function(){return!1},s.prototype.hasValue=function(){return!1},s.prototype.filter=function(){return!0},s.prototype.inspect=function(){return this.toString()},s.prototype.log=function(){return this.toString()},U(a,s),a.prototype.isNext=function(){return!0},a.prototype.hasValue=function(){return!0},a.prototype.value=function(){var t;return(null!=(t=this.valueF)?t._isNext:void 0)?(this.valueInternal=this.valueF.value(),this.valueF=void 0):this.valueF&&(this.valueInternal=this.valueF(),this.valueF=void 0),this.valueInternal},a.prototype.fmap=function(t){var e,n;return this.valueInternal?(n=this.valueInternal,this.apply(function(){return t(n)})):(e=this,this.apply(function(){return t(e.value())}))},a.prototype.apply=function(t){return new a(t)},a.prototype.filter=function(t){return t(this.value())},a.prototype.toString=function(){return L.toString(this.value())},a.prototype.log=function(){return this.value()},a.prototype._isNext=!0,U(c,a),c.prototype._isInitial=!0,c.prototype.isInitial=function(){return!0},c.prototype.isNext=function(){return!1},c.prototype.apply=function(t){return new c(t)},c.prototype.toNext=function(){return new a(this)},U(l,s),l.prototype.isEnd=function(){return!0},l.prototype.fmap=function(){return this},l.prototype.apply=function(){return this},l.prototype.toString=function(){return"<end>"},U(f,s),f.prototype.isError=function(){return!0},f.prototype.fmap=function(){return this},f.prototype.apply=function(){return this},f.prototype.toString=function(){return"<error> "+L.toString(this.error)},_.Event=s,_.Initial=c,_.Next=a,_.End=l,_.Error=f;var it=function(t){return new c(t,(!0))},ut=function(t){return new a(t,(!0))},st=function(){return new l},at=function(t){return t&&t._isEvent?t:ut(t)},ct=0,lt=function(){};R(p.prototype,{_isObservable:!0,subscribe:function(t){return F.wrappedSubscribe(this,t)},subscribeInternal:function(t){return this.dispatcher.subscribe(t)},onValue:function(){var t=z(arguments);return this.subscribe(function(e){if(e.hasValue())return t(e.value())})},onValues:function(t){return this.onValue(function(e){return t.apply(void 0,e)})},onError:function(){var t=z(arguments);return this.subscribe(function(e){if(e.isError())return t(e.error)})},onEnd:function(){var t=z(arguments);return this.subscribe(function(e){if(e.isEnd())return t()})},name:function(t){return this._name=t,this},withDescription:function(){return this.desc=V.apply(void 0,arguments),this},toString:function(){return this._name?this._name:this.desc.toString()},deps:function(){return this.desc.deps()},internalDeps:function(){return this.initialDesc.deps()}}),p.prototype.assign=p.prototype.onValue,p.prototype.forEach=p.prototype.onValue,p.prototype.inspect=p.prototype.toString,_.Observable=p,R(h.prototype,{add:function(t){var e=this;if(!this.unsubscribed){var n=!1,r=C;this.starting.push(t);var o=function(){if(!e.unsubscribed)return n=!0,e.remove(r),L.remove(t,e.starting)};return r=t(this.unsubscribe,o),this.unsubscribed||n?r():this.subscriptions.push(r),L.remove(t,this.starting),r}},remove:function(t){if(!this.unsubscribed)return void 0!==L.remove(t,this.subscriptions)?t():void 0},unsubscribe:function(){if(!this.unsubscribed){this.unsubscribed=!0;for(var t=this.subscriptions,e=0;e<t.length;e++)t[e]();return this.subscriptions=[],this.starting=[],[]}},count:function(){return this.unsubscribed?0:this.subscriptions.length+this.starting.length},empty:function(){return 0===this.count()}}),_.CompositeUnsubscribe=h,d.prototype.hasSubscribers=function(){return this.subscriptions.length>0},d.prototype.removeSub=function(t){return this.subscriptions=L.without(t,this.subscriptions),this.subscriptions},d.prototype.push=function(t){return t.isEnd()&&(this.ended=!0),F.inTransaction(t,this,this.pushIt,[t])},d.prototype.pushToSubscriptions=function(t){try{for(var e=this.subscriptions,n=e.length,r=0;r<n;r++){var o=e[r],i=o.sink(t);(i===_.noMore||t.isEnd())&&this.removeSub(o)}return!0}catch(u){throw this.pushing=!1,this.queue=[],u}},d.prototype.pushIt=function(t){if(this.pushing)return this.queue.push(t),_.more;if(t!==this.prevError){for(t.isError()&&(this.prevError=t),this.pushing=!0,this.pushToSubscriptions(t),this.pushing=!1;this.queue.length;)t=this.queue.shift(),this.push(t);return this.hasSubscribers()?_.more:(this.unsubscribeFromSource(),_.noMore)}},d.prototype.handleEvent=function(t){return this._handleEvent?this._handleEvent(t):this.push(t)},d.prototype.unsubscribeFromSource=function(){this.unsubSrc&&this.unsubSrc(),this.unsubSrc=void 0},d.prototype.subscribe=function(t){var e;return this.ended?(t(st()),C):(T(t),e={sink:t},this.subscriptions.push(e),1===this.subscriptions.length&&(this.unsubSrc=this._subscribe(this.handleEvent),T(this.unsubSrc)),function(t){return function(){if(t.removeSub(e),!t.hasSubscribers())return t.unsubscribeFromSource()}}(this))},_.Dispatcher=d,U(v,p),R(v.prototype,{_isEventStream:!0,toProperty:function(t){var e=0===arguments.length?nt:rt(function(){return t}),n=this.dispatcher,r=new _.Desc(this,"toProperty",[t]);return new m(r,function(t){var r=!1,o=!1,i=C,s=_.more,a=function(){if(!r)return e.forEach(function(e){if(r=!0,s=t(new c(e)),s===_.noMore)return i(),i=C,C})};return i=n.subscribe(function(n){return n.hasValue()?n.isInitial()&&!o?(e=new u(function(){return n.value()}),_.more):(n.isInitial()||a(),r=!0,e=new u(n),t(n)):(n.isEnd()&&(s=a()),s!==_.noMore?t(n):void 0)}),o=!0,a(),i})},toEventStream:function(){return this},withHandler:function(t){return new v(new _.Desc(this,"withHandler",[t]),this.dispatcher.subscribe,t)}}),_.EventStream=v,_.never=function(){return new v(V(_,"never"),function(t){return t(st()),C})},_.when=function(){if(0===arguments.length)return _.never();var t=arguments.length,e="when: expecting arguments in the form (Observable+,function)+";O(e,t%2===0);for(var r=[],o=[],i=0,u=[];i<t;){u[i]=arguments[i],u[i+1]=arguments[i+1];for(var s,a=L.toArray(arguments[i]),c=pt(arguments[i+1]),l={f:c,ixs:[]},f=!1,p=0;p<a.length;p++){s=a[p];var h=L.indexOf(r,s);f||(f=n.isTrigger(s)),h<0&&(r.push(s),h=r.length-1);for(var d,y=0;y<l.ixs.length;y++)d=l.ixs[y],d.index===h&&d.count++;l.ixs.push({index:h,count:1})}O("At least one EventStream required",f||!a.length),a.length>0&&o.push(l),i+=2}if(!r.length)return _.never();r=L.map(n.fromObservable,r);var m=L.any(r,function(t){return t.flatten})&&ft(L.map(function(t){return t.obs},r)),b=new _.Desc(_,"when",u),g=new v(b,function(t){var e=[],n=!1,i=function(t){for(var e,n=0;n<t.ixs.length;n++)if(e=t.ixs[n],!r[e.index].hasAtLeast(e.count))return!1;return!0},u=function(t){return!t.sync||t.ended},s=function(t){for(var e,n=0;n<t.ixs.length;n++)if(e=t.ixs[n],!r[e.index].mayHave(e.count))return!0},a=function(t){return!t.source.flatten},c=function(c){return function(l){var f=function(){return F.whenDoneWith(g,h)},p=function(){if(!(e.length>0))return _.more;for(var n,u=_.more,s=e.pop(),c=0;c<o.length;c++)if(n=o[c],i(n)){var l=function(){for(var t,e=[],o=0;o<n.ixs.length;o++)t=n.ixs[o],e.push(r[t.index].consume());return e}();return u=t(s.e.apply(function(){var t,e=function(){for(var t,e=[],n=0;n<l.length;n++)t=l[n],e.push(t.value());return e}();return(t=n).f.apply(t,e)})),e.length&&(e=L.filter(a,e)),u===_.noMore?u:p()}},h=function(){var e=p();return n&&(L.all(r,u)||L.all(o,s))&&(e=_.noMore,t(st())),e===_.noMore&&l(),e};return c.subscribe(function(r){if(r.isEnd())n=!0,c.markEnded(),f();else if(r.isError())var o=t(r);else c.push(r),c.sync&&(e.push({source:c,e:r}),m||F.hasWaiters()?f():h());return o===_.noMore&&l(),o||_.more})}};return new _.CompositeUnsubscribe(function(){for(var t,e=[],n=0;n<r.length;n++)t=r[n],e.push(c(t));return e}()).unsubscribe});return g};var ft=function(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=function(t){if(L.contains(e,t))return!0;var r=t.internalDeps();return r.length?(e.push(t),L.any(r,n)):(e.push(t),!1)};return L.any(t,n)},pt=function(t){return L.isFunction(t)?t:L.always(t)};_.groupSimultaneous=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];1===e.length&&A(e[0])&&(e=e[0]);var r=function(){for(var t,n=[],r=0;r<e.length;r++)t=e[r],n.push(new o(t));return n}();return B(new _.Desc(_,"groupSimultaneous",e),_.when(r,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}))},U(y,d),R(y.prototype,{push:function(t){return t.isEnd()&&(this.propertyEnded=!0),t.hasValue()&&(this.current=new u(t),this.currentValueRootId=F.currentEventId()),d.prototype.push.call(this,t)},maybeSubSource:function(t,e){return e===_.noMore?C:this.propertyEnded?(t(st()),C):d.prototype.subscribe.call(this,t)},subscribe:function(t){var e=this,n=_.more;if(this.current.isDefined&&(this.hasSubscribers()||this.propertyEnded)){var r=F.currentEventId(),o=this.currentValueRootId;return!this.propertyEnded&&o&&r&&r!==o?(F.whenDoneWith(this.property,function(){if(e.currentValueRootId===o)return t(it(e.current.get().value()))}),this.maybeSubSource(t,n)):(F.inTransaction(void 0,this,function(){return n=t(it(this.current.get().value()))},[]),this.maybeSubSource(t,n))}return this.maybeSubSource(t,n)}}),U(m,p),R(m.prototype,{_isProperty:!0,changes:function(){var t=this;return new v(new _.Desc(this,"changes",[]),function(e){return t.dispatcher.subscribe(function(t){if(!t.isInitial())return e(t)})})},withHandler:function(t){return new m(new _.Desc(this,"withHandler",[t]),this.dispatcher.subscribe,t)},toProperty:function(){return I(arguments),this},toEventStream:function(){var t=this;return new v(new _.Desc(this,"toEventStream",[]),function(e){return t.dispatcher.subscribe(function(t){return t.isInitial()&&(t=t.toNext()),e(t)})})}}),_.Property=m,_.constant=function(t){return new m(new _.Desc(_,"constant",[t]),function(e){return e(it(t)),e(st()),C})},_.fromBinder=function(t){var e=arguments.length<=1||void 0===arguments[1]?L.id:arguments[1],n=new _.Desc(_,"fromBinder",[t,e]);return new v(n,function(n){var r=!1,o=!1,i=function(){if(!r)return"undefined"!=typeof u&&null!==u?(u(),r=!0):o=!0},u=t(function(){for(var t,r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];var s=e.apply(this,o);A(s)&&(null!=(t=L.last(s))?t._isEvent:void 0)||(s=[s]);for(var a,c=_.more,l=0;l<s.length;l++)if(a=s[l],c=n(a=at(a)),c===_.noMore||a.isEnd())return i(),c;return c});return o&&i(),i})},_.Observable.prototype.map=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(this,t,n,function(t){return B(new _.Desc(this,"map",[t]),this.withHandler(function(e){return this.push(e.fmap(t))}))})};var ht=function(t){return A(t[0])?t[0]:Array.prototype.slice.call(t)},dt=function(t){return L.isFunction(t[0])?[ht(Array.prototype.slice.call(t,1)),t[0]]:[ht(Array.prototype.slice.call(t,0,t.length-1)),L.last(t)]};_.combineAsArray=function(){var t=ht(arguments);if(t.length){for(var e=[],r=0;r<t.length;r++){var o=M(t[r])?t[r]:_.constant(t[r]);e.push(new n(o,(!0)))}return B(new _.Desc(_,"combineAsArray",t),_.when(e,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}).toProperty())}return _.constant([])},_.onValues=function(){return _.combineAsArray(Array.prototype.slice.call(arguments,0,arguments.length-1)).onValues(arguments[arguments.length-1])},_.combineWith=function(){var t=dt(arguments),e=t[0],n=t[1],r=new _.Desc(_,"combineWith",[n].concat(e));return B(r,_.combineAsArray(e).map(function(t){return n.apply(void 0,t)}))},_.Observable.prototype.combine=function(t,e){var n=tt(e),r=new _.Desc(this,"combine",[t,e]);return B(r,_.combineAsArray(this,t).map(function(t){return n(t[0],t[1])}))},_.Observable.prototype.withStateMachine=function(t,e){var n=t,r=new _.Desc(this,"withStateMachine",[t,e]);return B(r,this.withHandler(function(t){var r=e(n,t),o=r[0],i=r[1];n=o;for(var u,s=_.more,a=0;a<i.length;a++)if(u=i[a],s=this.push(u),s===_.noMore)return s;return s}))};var vt=function(t,e){return t===e},yt=function(t){return"undefined"!=typeof t&&null!==t&&t._isNone};_.Observable.prototype.skipDuplicates=function(){var t=arguments.length<=0||void 0===arguments[0]?vt:arguments[0],e=new _.Desc(this,"skipDuplicates",[]);return B(e,this.withStateMachine(nt,function(e,n){return n.hasValue()?n.isInitial()||yt(e)||!t(e.get(),n.value())?[new u(n.value()),[n]]:[e,[]]:[e,[n]]}))},_.Observable.prototype.awaiting=function(t){var e=new _.Desc(this,"awaiting",[t]);return B(e,_.groupSimultaneous(this,t).map(function(t){return 0===t[1].length}).toProperty(!1).skipDuplicates())},_.Observable.prototype.not=function(){return B(new _.Desc(this,"not",[]),this.map(function(t){return!t}))},_.Property.prototype.and=function(t){return B(new _.Desc(this,"and",[t]),this.combine(t,function(t,e){return t&&e}))},_.Property.prototype.or=function(t){return B(new _.Desc(this,"or",[t]),this.combine(t,function(t,e){return t||e}))},_.scheduler={setTimeout:function(t,e){return setTimeout(t,e)},setInterval:function(t,e){return setInterval(t,e)},clearInterval:function(t){return clearInterval(t)},clearTimeout:function(t){return clearTimeout(t)},now:function(){return(new Date).getTime()}},_.EventStream.prototype.bufferWithTime=function(t){return B(new _.Desc(this,"bufferWithTime",[t]),this.bufferWithTimeOrCount(t,Number.MAX_VALUE))},_.EventStream.prototype.bufferWithCount=function(t){return B(new _.Desc(this,"bufferWithCount",[t]),this.bufferWithTimeOrCount(void 0,t))},_.EventStream.prototype.bufferWithTimeOrCount=function(t,e){var n=function(n){return n.values.length===e?n.flush():void 0!==t?n.schedule():void 0},r=new _.Desc(this,"bufferWithTimeOrCount",[t,e]);return B(r,this.buffer(t,n,n))},_.EventStream.prototype.buffer=function(t){var e=arguments.length<=1||void 0===arguments[1]?C:arguments[1],n=arguments.length<=2||void 0===arguments[2]?C:arguments[2],r={scheduled:null,end:void 0,values:[],flush:function(){if(this.scheduled&&(_.scheduler.clearTimeout(this.scheduled),this.scheduled=null),this.values.length>0){var t=this.values;this.values=[];var e=this.push(ut(t));if(null!=this.end)return this.push(this.end);if(e!==_.noMore)return n(this)}else if(null!=this.end)return this.push(this.end)},schedule:function(){var e=this;if(!this.scheduled)return this.scheduled=t(function(){return e.flush()})}},o=_.more;if(!L.isFunction(t)){var i=t;t=function(t){return _.scheduler.setTimeout(t,i)}}return B(new _.Desc(this,"buffer",[]),this.withHandler(function(t){var n=this;return r.push=function(t){return n.push(t)},t.isError()?o=this.push(t):t.isEnd()?(r.end=t,r.scheduled||r.flush()):(r.values.push(t.value()),e(r)),o}))},_.Observable.prototype.filter=function(t){D(t);for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(this,t,n,function(t){return B(new _.Desc(this,"filter",[t]),this.withHandler(function(e){return e.filter(t)?this.push(e):_.more}))})},_.once=function(t){return new v(new i(_,"once",[t]),function(e){return e(at(t)),e(st()),C})},_.EventStream.prototype.concat=function(t){var e=this;return new v(new _.Desc(e,"concat",[t]),function(n){var r=C,o=e.dispatcher.subscribe(function(e){return e.isEnd()?r=t.toEventStream().dispatcher.subscribe(n):n(e)});return function(){return o(),r()}})},_.Property.prototype.concat=function(t){return mt(this,this.changes().concat(t))},_.concatAll=function(){var t=ht(arguments);return t.length?B(new _.Desc(_,"concatAll",t),L.fold(L.tail(t),L.head(t).toEventStream(),function(t,e){return t.concat(e)})):_.never()};var mt=function(t,e){var n=new v(V(t,"justInitValue"),function(e){var r=void 0,o=t.dispatcher.subscribe(function(t){return t.isEnd()||(r=t),_.noMore});return F.whenDoneWith(n,function(){return"undefined"!=typeof r&&null!==r&&e(r),e(st())}),o});return n.concat(e).toProperty()};_.Observable.prototype.flatMap=function(){return wt(this,bt(arguments))},_.Observable.prototype.flatMapFirst=function(){return wt(this,bt(arguments),!0)};var bt=function(t){return 1===t.length&&M(t[0])?L.always(t[0]):z(t)},gt=function(t){return M(t)?t:_.once(t)},wt=function(t,e,n,r){var o=[t],i=[],u=new _.Desc(t,"flatMap"+(n?"First":""),[e]),s=new v(u,function(o){var u=new h,s=[],a=function(t){var n=gt(e(t.value()));return i.push(n),u.add(function(t,e){return n.dispatcher.subscribe(function(r){if(r.isEnd())return L.remove(n,i),c(),l(e),_.noMore;("undefined"!=typeof r&&null!==r?r._isInitial:void 0)&&(r=r.toNext());var u=o(r);return u===_.noMore&&t(),u})})},c=function(){var t=s.shift();if(t)return a(t)},l=function(t){if(t(),u.empty())return o(st())};return u.add(function(e,i){return t.dispatcher.subscribe(function(t){return t.isEnd()?l(i):t.isError()?o(t):n&&u.count()>1?_.more:u.unsubscribed?_.noMore:r&&u.count()>r?s.push(t):a(t)})}),u.unsubscribe});return s.internalDeps=function(){return i.length?o.concat(i):o},s};_.Observable.prototype.flatMapWithConcurrencyLimit=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=new _.Desc(this,"flatMapWithConcurrencyLimit",[t].concat(n));return B(o,wt(this,bt(n),!1,t))},_.Observable.prototype.flatMapConcat=function(){var t=new _.Desc(this,"flatMapConcat",Array.prototype.slice.call(arguments,0));return B(t,this.flatMapWithConcurrencyLimit.apply(this,[1].concat(S.call(arguments))))},_.later=function(t,e){return B(new _.Desc(_,"later",[t,e]),_.fromBinder(function(n){var r=function(){return n([e,st()])},o=_.scheduler.setTimeout(r,t);return function(){return _.scheduler.clearTimeout(o)}}))},_.Observable.prototype.bufferingThrottle=function(t){var e=new _.Desc(this,"bufferingThrottle",[t]);return B(e,this.flatMapConcat(function(e){return _.once(e).concat(_.later(t).filter(!1))}))},_.Property.prototype.bufferingThrottle=function(){return _.Observable.prototype.bufferingThrottle.apply(this,arguments).toProperty()},U(b,v),R(b.prototype,{unsubAll:function(){for(var t,e=this.subscriptions,n=0;n<e.length;n++)t=e[n],"function"==typeof t.unsub&&t.unsub()},subscribeAll:function(t){if(this.ended)t(st());else{this.sink=t;for(var e,n=P(this.subscriptions),r=0;r<n.length;r++)e=n[r],this.subscribeInput(e)}return this.unsubAll},guardedSink:function(t){var e=this;return function(n){return n.isEnd()?(e.unsubscribeInput(t),_.noMore):e.sink(n)}},subscribeInput:function(t){return t.unsub=t.input.dispatcher.subscribe(this.guardedSink(t.input)),t.unsub},unsubscribeInput:function(t){for(var e,n=this.subscriptions,r=0;r<n.length;r++)if(e=n[r],e.input===t)return"function"==typeof e.unsub&&e.unsub(),void this.subscriptions.splice(r,1)},plug:function(t){var e=this;if(N(t),!this.ended){var n={input:t};return this.subscriptions.push(n),"undefined"!=typeof this.sink&&this.subscribeInput(n),function(){return e.unsubscribeInput(t)}}},end:function(){if(this.ended=!0,this.unsubAll(),"function"==typeof this.sink)return this.sink(st())},push:function(t){if(!this.ended&&"function"==typeof this.sink){var e=!this.pushing;if(!e)return this.pushQueue||(this.pushQueue=[]),void this.pushQueue.push(t);this.pushing=!0;try{return this.sink(ut(t))}finally{if(e&&this.pushQueue){for(var n=0;n<this.pushQueue.length;){var t=this.pushQueue[n];this.sink(ut(t)),n++}this.pushQueue=null}this.pushing=!1}}},error:function(t){if("function"==typeof this.sink)return this.sink(new f(t))}}),_.Bus=b;var St=function(t,e){return q(function(n){for(var r=Q(e,[function(t,e){return n.apply(void 0,t.concat([e]))}]),o=arguments.length,i=Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];return B(new _.Desc(_,t,[n].concat(i)),_.combineAsArray(i).flatMap(r))})};_.fromCallback=St("fromCallback",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return _.fromBinder(function(e){return Y(t,n)(e),C},function(t){return[t,st()]})}),_.fromNodeCallback=St("fromNodeCallback",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return _.fromBinder(function(e){return Y(t,n)(e),C},function(t,e){return t?[new f(t),st()]:[e,st()]})}),_.combineTemplate=function(t){function e(t){return t[t.length-1]}function n(t,n,r){return e(t)[n]=r,r}function r(t,e){return function(r,o){n(r,t,o[e])}}function o(t,e){return function(r){n(r,t,e)}}function i(t){return A(t)?[]:{}}function u(t,e){return function(r){var o=i(e);n(r,t,o),r.push(o)}}function s(t){if(M(t))return!0;if(t&&(t.constructor==Object||t.constructor==Array))for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=t[e];if(s(n))return!0}}function a(t,e){if(M(e))p.push(e),
    2 2 f.push(r(t,p.length-1));else if(s(e)){var n=function(t){t.pop()};f.push(u(t,e)),l(e),f.push(n)}else f.push(o(t,e))}function c(e){for(var n,r=i(t),o=[r],u=0;u<f.length;u++)(n=f[u])(o,e);return r}function l(t){L.each(t,a)}var f=[],p=[],h=s(t)?(l(t),_.combineAsArray(p).map(c)):_.constant(t);return B(new _.Desc(_,"combineTemplate",[t]),h)},_.Observable.prototype.mapEnd=function(){var t=z(arguments);return B(new _.Desc(this,"mapEnd",[t]),this.withHandler(function(e){return e.isEnd()?(this.push(ut(t(e))),this.push(st()),_.noMore):this.push(e)}))},_.Observable.prototype.skipErrors=function(){return B(new _.Desc(this,"skipErrors",[]),this.withHandler(function(t){return t.isError()?_.more:this.push(t)}))},_.EventStream.prototype.takeUntil=function(t){var e={};return B(new _.Desc(this,"takeUntil",[t]),_.groupSimultaneous(this.mapEnd(e),t.skipErrors()).withHandler(function(t){if(t.hasValue()){var n=t.value(),r=n[0],o=n[1];if(o.length)return this.push(st());for(var i,u=_.more,s=0;s<r.length;s++)i=r[s],u=i===e?this.push(st()):this.push(ut(i));return u}return this.push(t)}))},_.Property.prototype.takeUntil=function(t){var e=this.changes().takeUntil(t);return B(new _.Desc(this,"takeUntil",[t]),mt(this,e))},_.Observable.prototype.flatMapLatest=function(){var t=bt(arguments),e=this.toEventStream();return B(new _.Desc(this,"flatMapLatest",[t]),e.flatMap(function(n){return gt(t(n)).takeUntil(e)}))},_.Property.prototype.delayChanges=function(t,e){return B(t,mt(this,e(this.changes())))},_.EventStream.prototype.delayChanges=function(t,e){return B(t,e(this))},_.Observable.prototype.delay=function(t){return this.delayChanges(new _.Desc(this,"delay",[t]),function(e){return e.flatMap(function(e){return _.later(t,e)})})},_.Observable.prototype.debounce=function(t){return this.delayChanges(new _.Desc(this,"debounce",[t]),function(e){return e.flatMapLatest(function(e){return _.later(t,e)})})},_.Observable.prototype.debounceImmediate=function(t){return this.delayChanges(new _.Desc(this,"debounceImmediate",[t]),function(e){return e.flatMapFirst(function(e){return _.once(e).concat(_.later(t).filter(!1))})})},_.Observable.prototype.decode=function(t){return B(new _.Desc(this,"decode",[t]),this.combine(_.combineTemplate(t),function(t,e){return e[t]}))},_.Observable.prototype.scan=function(t,e){var n,r=this;e=tt(e);var o=rt(t),i=!1,s=function(t){var s=!1,a=C,l=_.more,f=function(){if(!s)return o.forEach(function(e){if(s=i=!0,l=t(new c(function(){return e})),l===_.noMore)return a(),a=C})};return a=r.dispatcher.subscribe(function(n){if(n.hasValue()){if(i&&n.isInitial())return _.more;n.isInitial()||f(),s=i=!0;var r=o.getOrElse(void 0),a=e(r,n.value());return o=new u(a),t(n.apply(function(){return a}))}if(n.isEnd()&&(l=f()),l!==_.noMore)return t(n)}),F.whenDoneWith(n,f),a};return n=new m(new _.Desc(this,"scan",[t,e]),s)},_.Observable.prototype.diff=function(t,e){return e=tt(e),B(new _.Desc(this,"diff",[t,e]),this.scan([t],function(t,n){return[n,e(t[0],n)]}).filter(function(t){return 2===t.length}).map(function(t){return t[1]}))},_.Observable.prototype.doAction=function(){var t=z(arguments);return B(new _.Desc(this,"doAction",[t]),this.withHandler(function(e){return e.hasValue()&&t(e.value()),this.push(e)}))},_.Observable.prototype.doEnd=function(){var t=z(arguments);return B(new _.Desc(this,"doEnd",[t]),this.withHandler(function(e){return e.isEnd()&&t(),this.push(e)}))},_.Observable.prototype.doError=function(){var t=z(arguments);return B(new _.Desc(this,"doError",[t]),this.withHandler(function(e){return e.isError()&&t(e.error),this.push(e)}))},_.Observable.prototype.doLog=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return B(new _.Desc(this,"doLog",e),this.withHandler(function(t){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log&&console.log.apply(console,e.concat([t.log()])),this.push(t)}))},_.Observable.prototype.endOnError=function(t){"undefined"!=typeof t&&null!==t||(t=!0);for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(this,t,n,function(t){return B(new _.Desc(this,"endOnError",[]),this.withHandler(function(e){return e.isError()&&t(e.error)?(this.push(e),this.push(st())):this.push(e)}))})},p.prototype.errors=function(){return B(new _.Desc(this,"errors",[]),this.filter(function(){return!1}))},_.Observable.prototype.take=function(t){return t<=0?_.never():B(new _.Desc(this,"take",[t]),this.withHandler(function(e){return e.hasValue()?(t--,t>0?this.push(e):(0===t&&this.push(e),this.push(st()),_.noMore)):this.push(e)}))},_.Observable.prototype.first=function(){return B(new _.Desc(this,"first",[]),this.take(1))},_.Observable.prototype.mapError=function(){var t=z(arguments);return B(new _.Desc(this,"mapError",[t]),this.withHandler(function(e){return e.isError()?this.push(ut(t(e.error))):this.push(e)}))},_.Observable.prototype.flatMapError=function(t){var e=new _.Desc(this,"flatMapError",[t]);return B(e,this.mapError(function(t){return new f(t)}).flatMap(function(e){return e instanceof f?t(e.error):_.once(e)}))},_.EventStream.prototype.flatScan=function(t,e){var n=t;return this.flatMapConcat(function(t){return gt(e(n,t)).doAction(function(t){return n=t})}).toProperty(t)},_.EventStream.prototype.sampledBy=function(t,e){return B(new _.Desc(this,"sampledBy",[t,e]),this.toProperty().sampledBy(t,e))},_.Property.prototype.sampledBy=function(t,e){var r=!1;"undefined"!=typeof e&&null!==e?e=tt(e):(r=!0,e=function(t){return t.value()});var o=new n(this,(!1),r),i=new n(t,(!0),r),u=_.when([o,i],e),s=t._isProperty?u.toProperty():u;return B(new _.Desc(this,"sampledBy",[t,e]),s)},_.Property.prototype.sample=function(t){return B(new _.Desc(this,"sample",[t]),this.sampledBy(_.interval(t,{})))},_.Observable.prototype.map=function(t){if(t&&t._isProperty)return t.sampledBy(this,E);for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(this,t,n,function(t){return B(new _.Desc(this,"map",[t]),this.withHandler(function(e){return this.push(e.fmap(t))}))})},_.Observable.prototype.fold=function(t,e){return B(new _.Desc(this,"fold",[t,e]),this.scan(t,e).sampledBy(this.filter(!1).mapEnd().toProperty()))},p.prototype.reduce=p.prototype.fold;var _t=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"],["bind","unbind"]],xt=function(t){for(var e,n=0;n<_t.length;n++){e=_t[n];var r=[t[e[0]],t[e[1]]];if(r[0]&&r[1])return r}for(var o=0;o<_t.length;o++){e=_t[o];var i=t[e[0]];if(i)return[i,function(){}]}throw new f("No suitable event methods in "+t)};_.fromEventTarget=function(t,e,n){var r=xt(t),o=r[0],i=r[1],u=new _.Desc(_,"fromEvent",[t,e]);return B(u,_.fromBinder(function(n){return o.call(t,e,n),function(){return i.call(t,e,n)}},n))},_.fromEvent=_.fromEventTarget,_.fromPoll=function(t,e){var n=new _.Desc(_,"fromPoll",[t,e]);return B(n,_.fromBinder(function(e){var n=_.scheduler.setInterval(e,t);return function(){return _.scheduler.clearInterval(n)}},e))},_.fromPromise=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?g:arguments[2];return B(new _.Desc(_,"fromPromise",[t]),_.fromBinder(function(n){var r=t.then(n,function(t){return n(new f(t))});return r&&"function"==typeof r.done&&r.done(),e?function(){if("function"==typeof t.abort)return t.abort()}:function(){}},n))},_.Observable.prototype.groupBy=function(t){var e=arguments.length<=1||void 0===arguments[1]?_._.id:arguments[1],n={},r=this;return r.filter(function(e){return!n[t(e)]}).map(function(o){var i=t(o),u=r.filter(function(e){return t(e)===i}),s=_.once(o).concat(u),a=e(s,o).withHandler(function(t){if(this.push(t),t.isEnd())return delete n[i]});return n[i]=a,a})},_.fromArray=function(t){if(j(t),t.length){var e=0,n=new v(new _.Desc(_,"fromArray",[t]),function(r){function o(){if(a=!0,!s){for(s=!0;a;)if(a=!1,u!==_.noMore&&!i){var c=t[e++];u=r(at(c)),u!==_.noMore&&(e===t.length?r(st()):F.afterTransaction(n,o))}return s=!1}}var i=!1,u=_.more,s=!1,a=!1;return o(),function(){return i=!0}});return n}return B(new _.Desc(_,"fromArray",t),_.never())},_.EventStream.prototype.holdWhen=function(t){var e=!1,n=[],r=this,o=!1;return new v(new _.Desc(this,"holdWhen",[t]),function(i){var u=new h,s=!1,a=function(t){if("function"==typeof t&&t(),u.empty()&&s)return i(st())};return u.add(function(r,u){return t.subscribeInternal(function(t){if(!t.hasValue())return t.isEnd()?a(u):i(t);if(e=t.value(),!e){var r=n;return n=[],function(){for(var t,e=[],n=0;n<r.length;n++)t=r[n],e.push(i(ut(t)));return o&&(e.push(i(st())),u()),e}()}})}),u.add(function(t,u){return r.subscribeInternal(function(t){return e&&t.hasValue()?n.push(t.value()):t.isEnd()&&n.length?(o=!0,a(u)):i(t)})}),s=!0,a(),u.unsubscribe})},_.interval=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return B(new _.Desc(_,"interval",[t,e]),_.fromPoll(t,function(){return ut(e)}))},_.$={},_.$.asEventStream=function(t,e,n){var r=this;return L.isFunction(e)&&(n=e,e=void 0),B(new _.Desc(this.selector||this,"asEventStream",[t]),_.fromBinder(function(n){return r.on(t,e,n),function(){return r.off(t,e,n)}},n))},"undefined"!=typeof jQuery&&jQuery&&(jQuery.fn.asEventStream=_.$.asEventStream),"undefined"!=typeof Zepto&&Zepto&&(Zepto.fn.asEventStream=_.$.asEventStream),_.Observable.prototype.last=function(){var t;return B(new _.Desc(this,"last",[]),this.withHandler(function(e){return e.isEnd()?(t&&this.push(t),this.push(st()),_.noMore):void(t=e)}))},_.Observable.prototype.log=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.subscribe(function(t){"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,e.concat([t.log()]))}),this},_.EventStream.prototype.merge=function(t){k(t);var e=this;return B(new _.Desc(e,"merge",[t]),_.mergeAll(this,t))},_.mergeAll=function(){var t=ht(arguments);return t.length?new v(new _.Desc(_,"mergeAll",t),function(e){var n=0,r=function(r){return function(o){return r.dispatcher.subscribe(function(r){if(r.isEnd())return n++,n===t.length?e(st()):_.more;var i=e(r);return i===_.noMore&&o(),i})}},o=L.map(r,t);return new _.CompositeUnsubscribe(o).unsubscribe}):_.never()},_.repeatedly=function(t,e){var n=0;return B(new _.Desc(_,"repeatedly",[t,e]),_.fromPoll(t,function(){return e[n++%e.length]}))},_.repeat=function(t){var e=0;return _.fromBinder(function(n){function r(t){return t.isEnd()?i?o():i=!0:u=n(t)}function o(){var o;for(i=!0;i&&u!==_.noMore;)o=t(e++),i=!1,o?s=o.subscribeInternal(r):n(st());return i=!0}var i=!1,u=_.more,s=function(){};return o(),function(){return s()}})},_.retry=function(t){if(!L.isFunction(t.source))throw new x("'source' option has to be a function");var e=t.source,n=t.retries||0,r=0,o=t.delay||function(){return 0},i=t.isRetryable||function(){return!0},u=!1,s=null;return B(new _.Desc(_,"retry",[t]),_.repeat(function(t){function a(){return e(t).endOnError().withHandler(function(t){return t.isError()?(s=t,i(s.error)&&(0===n||r<n)?void 0:(u=!0,this.push(t))):(t.hasValue()&&(s=null,u=!0),this.push(t))})}if(u)return null;if(s){var c={error:s.error,retriesDone:r},l=_.later(o(c)).filter(!1);return r++,l.concat(_.once().flatMap(a))}return a()}))},_.sequentially=function(t,e){var n=0;return B(new _.Desc(_,"sequentially",[t,e]),_.fromPoll(t,function(){var t=e[n++];return n<e.length?t:n===e.length?[t,st()]:st()}))},_.Observable.prototype.skip=function(t){return B(new _.Desc(this,"skip",[t]),this.withHandler(function(e){return e.hasValue()&&t>0?(t--,_.more):this.push(e)}))},_.EventStream.prototype.skipUntil=function(t){var e=t.take(1).map(!0).toProperty(!1);return B(new _.Desc(this,"skipUntil",[t]),this.filter(e))},_.EventStream.prototype.skipWhile=function(t){D(t);for(var e=!1,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return K(this,t,r,function(t){return B(new _.Desc(this,"skipWhile",[t]),this.withHandler(function(n){return!e&&n.hasValue()&&t(n.value())?_.more:(n.hasValue()&&(e=!0),this.push(n))}))})},_.Observable.prototype.slidingWindow=function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return B(new _.Desc(this,"slidingWindow",[t,e]),this.scan([],function(e,n){return e.concat([n]).slice(-t)}).filter(function(t){return t.length>=e}))};var Ct=[],lt=function(t){if(Ct.length&&!lt.running)try{lt.running=!0,Ct.forEach(function(e){e(t)})}finally{delete lt.running}};_.spy=function(t){return Ct.push(t)},_.Property.prototype.startWith=function(t){return B(new _.Desc(this,"startWith",[t]),this.scan(t,function(t,e){return e}))},_.EventStream.prototype.startWith=function(t){return B(new _.Desc(this,"startWith",[t]),_.once(t).concat(this))},_.Observable.prototype.takeWhile=function(t){D(t);for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(this,t,n,function(t){return B(new _.Desc(this,"takeWhile",[t]),this.withHandler(function(e){return e.filter(t)?this.push(e):(this.push(st()),_.noMore)}))})},_.Observable.prototype.throttle=function(t){return this.delayChanges(new _.Desc(this,"throttle",[t]),function(e){return e.bufferWithTime(t).map(function(t){return t[t.length-1]})})},p.prototype.firstToPromise=function(t){var e=this;if("function"!=typeof t){if("function"!=typeof Promise)throw new x("There isn't default Promise, use shim or parameter");t=Promise}return new t(function(t,n){return e.subscribe(function(e){return e.hasValue()&&t(e.value()),e.isError()&&n(e.error),_.noMore})})},p.prototype.toPromise=function(t){return this.last().firstToPromise(t)},_["try"]=function(t){return function(e){try{return _.once(t(e))}catch(n){return new _.Error(n)}}},_.update=function(t){function e(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e){return t.apply(void 0,[e].concat(n))}}}for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=r.length-1;i>0;)r[i]instanceof Function||(r[i]=L.always(r[i])),r[i]=e(r[i]),i-=2;return B(new _.Desc(_,"update",[t].concat(r)),_.when.apply(_,r).scan(t,function(t,e){return e(t)}))},_.zipAsArray=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=ht(e);return B(new _.Desc(_,"zipAsArray",r),_.zipWith(r,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}))},_.zipWith=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=dt(e),o=r[0],i=r[1];return o=L.map(function(t){return t.toEventStream()},o),B(new _.Desc(_,"zipWith",[i].concat(o)),_.when(o,i))},_.Observable.prototype.zip=function(t,e){return B(new _.Desc(this,"zip",[t]),_.zipWith([this,t],e||Array))},w.prototype.subscribe=function(t,e,n){var r="function"==typeof t?{next:t,error:e,complete:n}:t,o={closed:!1,unsubscribe:function(){o.closed=!0,i()}},i=this.observable.subscribe(function(t){t.isError()?(r.error&&r.error(t.error),o.unsubscribe()):t.isEnd()?(o.closed=!0,r.complete&&r.complete()):r.next&&r.next(t.value())});return o},w.prototype[W("observable")]=function(){return this},_.Observable.prototype.toESObservable=function(){return new w(this)},_.Observable.prototype[W("observable")]=_.Observable.prototype.toESObservable,_.fromESObservable=function(t){var e;e=t[W("observable")]?t[W("observable")]():t;var n=new _.Desc(_,"fromESObservable",[e]);return new _.EventStream(n,function(t){var n=e.subscribe({error:function(){t(new _.Error),t(new _.End)},next:function(e){t(new _.Next(e,(!0)))},complete:function(){t(new _.End)}});return n.unsubscribe?function(){n.unsubscribe()}:n})},"undefined"!=typeof define&&null!==define&&null!=define.amd?(define([],function(){return _}),"undefined"!=typeof this&&null!==this&&(this.Bacon=_)):"undefined"!=typeof e&&null!==e&&null!=e.exports?(e.exports=_,_.Bacon=_):this.Bacon=_}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){!function(){"use strict";function t(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var u=t.apply(null,o);u&&e.push(u)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}var n={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?(t["default"]=t,e.exports=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}()},{}],3:[function(t,e,n){(function(r){!function(r,o){"object"==typeof n&&"undefined"!=typeof e?e.exports=o(t("prop-types"),t("preact"),t("preact-context")):"function"==typeof define&&define.amd?define(["prop-types","preact","preact-context"],o):r.preactCompat=o(r.PropTypes,r.preact,r.preactContext)}(this,function(t,e,n){"use strict";function o(){return null}function i(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&C(t.attributes,e.defaultProps),n&&C(t.attributes,n)}function u(t,e){var n,r,o;if(e){for(o in e)if(n=z.test(o))break;if(n){r=t.attributes={};for(o in e)e.hasOwnProperty(o)&&(r[z.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=e[o])}}}function s(t,n,r){var o=n&&n._preactCompatRendered&&n._preactCompatRendered.base;o&&o.parentNode!==n&&(o=null),!o&&n&&(o=n.firstElementChild);for(var i=n.childNodes.length;i--;)n.childNodes[i]!==o&&n.removeChild(n.childNodes[i]);var u=e.render(t,n,o);return n&&(n._preactCompatRendered=u&&(u._component||{base:u})),"function"==typeof r&&r(),u&&u._component||u}function a(t,n,r,o){var i=e.h(K,{context:t.context},n),u=s(i,r),a=u._component||u.base;return o&&o.call(a,u),a}function c(t){a(this,t.vnode,t.container)}function l(t,n){return e.h(c,{vnode:t,container:n})}function f(t){var n=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!n||n.parentNode!==t)&&(e.render(e.h(o),t,n),!0)}function p(t){return m.bind(null,t)}function h(t,e){for(var n=e||0;n<t.length;n++){var r=t[n];Array.isArray(r)?h(r):r&&"object"==typeof r&&!w(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(t[n]=m(r.type||r.nodeName,r.props||r.attributes,r.children))}}function d(t){return"function"==typeof t&&!(t.prototype&&t.prototype.render)}function v(t){return D({displayName:t.displayName||t.name,render:function(){return t(this.props,this.context)}})}function y(t){var e=t[H];return e?e===!0?t:e:(e=v(t),Object.defineProperty(e,H,{configurable:!0,value:!0}),e.displayName=t.displayName,e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,Object.defineProperty(t,H,{configurable:!0,value:e}),e)}function m(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h(t,2),b(e.h.apply(void 0,t))}function b(t){t.preactCompatNormalized=!0,x(t),d(t.nodeName)&&(t.nodeName=y(t.nodeName));var e=t.attributes.ref,n=e&&typeof e;return!tt||"string"!==n&&"number"!==n||(t.attributes.ref=S(e,tt)),_(t),t}function g(t,n){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!w(t))return t;var i=t.attributes||t.props,u=e.h(t.nodeName||t.type,C({},i),t.children||i&&i.children),s=[u,n];return r&&r.length?s.push(r):n&&n.children&&s.push(n.children),b(e.cloneElement.apply(void 0,s))}function w(t){return t&&(t instanceof G||t.$$typeof===B)}function S(t,e){return e._refProxies[t]||(e._refProxies[t]=function(n){e&&e.refs&&(e.refs[t]=n,null===n&&(delete e._refProxies[t],e=null))})}function _(t){var e=t.nodeName,n=t.attributes;if(n&&"string"==typeof e){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=M([n[i],n[r.onchange]]),delete n[r.onchange])}}}function x(t){var e=t.attributes||(t.attributes={});it.enumerable="className"in e,e.className&&(e["class"]=e.className),Object.defineProperty(e,"className",it)}function C(t,e){for(var n=arguments,r=1,o=void 0;r<arguments.length;r++)if(o=n[r])for(var i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);return t}function E(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function P(t){return t&&(t.base||1===t.nodeType&&t)||null}function O(){}function D(t){function e(t,e){T(this),W.call(this,t,e,Q),j.call(this,t,e)}return t=C({constructor:e},t),t.mixins&&N(t,k(t.mixins)),t.statics&&C(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps.call(e)),O.prototype=W.prototype,e.prototype=C(new O,t),e.displayName=t.displayName||"Component",e}function k(t){for(var e={},n=0;n<t.length;n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(e[o]||(e[o]=[])).push(r[o])}return e}function N(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=M(e[n].concat(t[n]||et),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function T(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||q.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function A(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function M(t,e){return function(){for(var n,r=arguments,o=this,i=0;i<t.length;i++){var u=A(o,t[i],r);if(e&&null!=u){n||(n={});for(var s in u)u.hasOwnProperty(s)&&(n[s]=u[s])}else"undefined"!=typeof u&&(n=u)}return n}}function j(t,e){I.call(this,t,e),this.componentWillReceiveProps=M([I,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=M([I,R,this.render||"render",U])}function I(e,n){if(e){var r=e.children;if(r&&Array.isArray(r)&&1===r.length&&("string"==typeof r[0]||"function"==typeof r[0]||r[0]instanceof G)&&(e.children=r[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),J){var o="function"==typeof this?this:this.constructor,i=this.propTypes||o.propTypes,u=this.displayName||o.name;i&&t.checkPropTypes(i,e,"prop",u)}}}function R(t){tt=this}function U(){tt===this&&(tt=null)}function W(t,n,r){e.Component.call(this,t,n),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==Q&&j.call(this,t,n)}function L(t,e){W.call(this,t,e)}function $(t){t()}t=t&&t.hasOwnProperty("default")?t["default"]:t;var F="15.1.0",V="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),B="undefined"!=typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H="undefined"!=typeof Symbol&&Symbol["for"]?Symbol["for"]("__preactCompatWrapper"):"__preactCompatWrapper",q={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},z=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,Q={},J=!1;try{J="production"!==r.env.NODE_ENV}catch(Z){}var G=e.h("a",null).constructor;G.prototype.$$typeof=B,G.prototype.preactCompatUpgraded=!1,G.prototype.preactCompatNormalized=!1,Object.defineProperty(G.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(G.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var X=e.options.event;e.options.event=function(t){return X&&(t=X(t)),t.persist=Object,t.nativeEvent=t,t};var Y=e.options.vnode;e.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=null==t.attributes?{}:C({},t.attributes);"function"==typeof e?(e[H]===!0||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||b(t),i(t)):(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),u(t,n))}Y&&Y(t)};var K=function(){};K.prototype.getChildContext=function(){return this.props.context},K.prototype.render=function(t){return t.children[0]};for(var tt,et=[],nt={map:function(t,e,n){return null==t?null:(t=nt.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){return null==t?null:(t=nt.toArray(t),n&&n!==t&&(e=e.bind(n)),void t.forEach(e))},count:function(t){return t&&t.length||0},only:function(t){if(t=nt.toArray(t),1!==t.length)throw new Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:et.concat(t)}},rt={},ot=V.length;ot--;)rt[V[ot]]=p(V[ot]);var it={configurable:!0,get:function(){return this["class"]},set:function(t){this["class"]=t}};C(W.prototype=new e.Component,{constructor:W,isReactComponent:{},replaceState:function(t,e){var n=this;this.setState(t,e);for(var r in n.state)r in t||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),O.prototype=W.prototype,L.prototype=new O,L.prototype.isPureReactComponent=!0,L.prototype.shouldComponentUpdate=function(t,e){return E(this.props,t)||E(this.state,e)};var ut={version:F,DOM:rt,PropTypes:t,Children:nt,render:s,hydrate:s,createClass:D,createContext:n.createContext,createPortal:l,createFactory:p,createElement:m,cloneElement:g,createRef:e.createRef,isValidElement:w,findDOMNode:P,unmountComponentAtNode:f,Component:W,PureComponent:L,unstable_renderSubtreeIntoContainer:a,unstable_batchedUpdates:$,__spread:C};return ut})}).call(this,t("_process"))},{_process:6,preact:5,"preact-context":4,"prop-types":10}],4:[function(t,e,n){!function(r,o){"object"==typeof n&&"undefined"!=typeof e?o(n,t("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],o):o((r=r||self).preactContext={},r.preact)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t){var e=t.children;return{child:1===e.length?e[0]:null,children:e}}function o(t){return r(t).child||"render"in t&&t.render}function i(t,i){var u="_preactContextProvider-"+l++;return{Provider:function(t){function o(e){var n=t.call(this,e)||this;return n.t=function(t,e){var n=[],r=t,o=function(t){return 0|e(r,t)};return{register:function(t){n.push(t),t(r,o(r))},unregister:function(t){n=n.filter(function(e){return e!==t})},val:function(t){if(void 0===t||t==r)return r;var e=o(t);return r=t,n.forEach(function(n){return n(t,e)}),r}}}(e.value,i||c),n}return n(o,t),o.prototype.getChildContext=function(){var t;return(t={})[u]=this.t,t},o.prototype.componentDidUpdate=function(){this.t.val(this.props.value)},o.prototype.render=function(){var t=r(this.props),n=t.child,o=t.children;return n||e.h("span",null,o)},o}(e.Component),Consumer:function(e){function r(n,r){var o=e.call(this,n,r)||this;return o.i=function(t,e){var n=o.props.unstable_observedBits,r=void 0===n||null===n?a:n;0!=((r|=0)&e)&&o.setState({value:t})},o.state={value:o.u().val()||t},o}return n(r,e),r.prototype.componentDidMount=function(){this.u().register(this.i)},r.prototype.shouldComponentUpdate=function(t,e){return this.state.value!==e.value||o(this.props)!==o(t)},r.prototype.componentWillUnmount=function(){this.u().unregister(this.i)},r.prototype.componentDidUpdate=function(t,e,n){var r=n[u];r!==this.context[u]&&((r||s).unregister(this.i),this.componentDidMount())},r.prototype.render=function(){var t="render"in this.props&&this.props.render,e=o(this.props);return t&&t!==e&&console.warn("Both children and a render function are defined. Children will be used"),"function"==typeof e?e(this.state.value):void console.warn("Consumer is expecting a function as one and only child but didn't find any")},r.prototype.u=function(){return this.context[u]||s},r}(e.Component)}}var u=function(t,e){return(u=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)},s={register:function(t){console.warn("Consumer used without a Provider")},unregister:function(t){},val:function(t){}},a=1073741823,c=function(){return a},l=0,f=i;t["default"]=i,t.createContext=f,Object.defineProperty(t,"__esModule",{value:!0})})},{preact:5}],5:[function(t,e,n){!function(){"use strict";function t(t,e){var n,r,o,i,u=M;for(i=arguments.length;i-- >2;)A.push(arguments[i]);for(e&&null!=e.children&&(A.length||A.push(e.children),delete e.children);A.length;)if((r=A.pop())&&void 0!==r.pop)for(i=r.length;i--;)A.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof t)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===M?u=[r]:u.push(r),n=o;var s=new N;return s.nodeName=t,s.children=u,s.attributes=null==e?void 0:e,s.key=null==e?void 0:e.key,void 0!==T.vnode&&T.vnode(s),s}function n(t,e){for(var n in e)t[n]=e[n];return t}function r(t,e){t&&("function"==typeof t?t(e):t.current=e)}function o(e,r){return t(e.nodeName,n(n({},e.attributes),r),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(t){!t.__d&&(t.__d=!0)&&1==R.push(t)&&(T.debounceRendering||j)(u)}function u(){for(var t;t=R.pop();)t.__d&&C(t)}function s(t,e,n){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&a(t,e.nodeName):n||t._componentConstructor===e.nodeName}function a(t,e){return t.__n===e||t.nodeName.toLowerCase()===e.toLowerCase()}function c(t){var e=n({},t.attributes);e.children=t.children;var r=t.nodeName.defaultProps;if(void 0!==r)for(var o in r)void 0===e[o]&&(e[o]=r[o]);return e}function l(t,e){var n=e?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return n.__n=t,n}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n,o,i){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)r(n,null),r(o,t);else if("class"!==e||i)if("style"===e){if(o&&"string"!=typeof o&&"string"!=typeof n||(t.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var u in n)u in o||(t.style[u]="");for(var u in o)t.style[u]="number"==typeof o[u]&&!1===I.test(u)?o[u]+"px":o[u]}}else if("dangerouslySetInnerHTML"===e)o&&(t.innerHTML=o.__html||"");else if("o"==e[0]&&"n"==e[1]){var s=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),o?n||t.addEventListener(e,h,s):t.removeEventListener(e,h,s),(t.__l||(t.__l={}))[e]=o}else if("list"!==e&&"type"!==e&&!i&&e in t){try{t[e]=null==o?"":o}catch(a){}null!=o&&!1!==o||"spellcheck"==e||t.removeAttribute(e)}else{var c=i&&e!==(e=e.replace(/^xlink:?/,""));null==o||!1===o?c?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof o&&(c?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),o):t.setAttribute(e,o))}else t.className=o||""}function h(t){return this.__l[t.type](T.event&&T.event(t)||t)}function d(){for(var t;t=U.shift();)T.afterMount&&T.afterMount(t),t.componentDidMount&&t.componentDidMount()}function v(t,e,n,r,o,i){W++||(L=null!=o&&void 0!==o.ownerSVGElement,$=null!=t&&!("__preactattr_"in t));var u=y(t,e,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--W||($=!1,i||d()),u}function y(t,e,n,r,o){var i=t,u=L;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=e&&(t.nodeValue=e):(i=document.createTextNode(e),
    3 t&&(t.parentNode&&t.parentNode.replaceChild(i,t),b(t,!0))),i.__preactattr_=!0,i;var s=e.nodeName;if("function"==typeof s)return E(t,e,n,r);if(L="svg"===s||"foreignObject"!==s&&L,s=String(s),(!t||!a(t,s))&&(i=l(s,L),t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),b(t,!0)}var c=i.firstChild,f=i.__preactattr_,p=e.children;if(null==f){f=i.__preactattr_={};for(var h=i.attributes,d=h.length;d--;)f[h[d].name]=h[d].value}return!$&&p&&1===p.length&&"string"==typeof p[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=p[0]&&(c.nodeValue=p[0]):(p&&p.length||null!=c)&&m(i,p,n,r,$||null!=f.dangerouslySetInnerHTML),w(i,e.attributes,f),L=u,i}function m(t,e,n,r,o){var i,u,a,c,l,p=t.childNodes,h=[],d={},v=0,m=0,g=p.length,w=0,S=e?e.length:0;if(0!==g)for(var _=0;_<g;_++){var x=p[_],C=x.__preactattr_,E=S&&C?x._component?x._component.__k:C.key:null;null!=E?(v++,d[E]=x):(C||(void 0!==x.splitText?!o||x.nodeValue.trim():o))&&(h[w++]=x)}if(0!==S)for(var _=0;_<S;_++){c=e[_],l=null;var E=c.key;if(null!=E)v&&void 0!==d[E]&&(l=d[E],d[E]=void 0,v--);else if(m<w)for(i=m;i<w;i++)if(void 0!==h[i]&&s(u=h[i],c,o)){l=u,h[i]=void 0,i===w-1&&w--,i===m&&m++;break}l=y(l,c,n,r),a=p[_],l&&l!==t&&l!==a&&(null==a?t.appendChild(l):l===a.nextSibling?f(a):t.insertBefore(l,a))}if(v)for(var _ in d)void 0!==d[_]&&b(d[_],!1);for(;m<=w;)void 0!==(l=h[w--])&&b(l,!1)}function b(t,e){var n=t._component;n?P(n):(null!=t.__preactattr_&&r(t.__preactattr_.ref,null),!1!==e&&null!=t.__preactattr_||f(t),g(t))}function g(t){for(t=t.lastChild;t;){var e=t.previousSibling;b(t,!0),t=e}}function w(t,e,n){var r;for(r in n)e&&null!=e[r]||null==n[r]||p(t,r,n[r],n[r]=void 0,L);for(r in e)"children"===r||"innerHTML"===r||r in n&&e[r]===("value"===r||"checked"===r?t[r]:n[r])||p(t,r,n[r],n[r]=e[r],L)}function S(t,e,n){var r,o=F.length;for(t.prototype&&t.prototype.render?(r=new t(e,n),O.call(r,e,n)):(r=new O(e,n),r.constructor=t,r.render=_);o--;)if(F[o].constructor===t)return r.__b=F[o].__b,F.splice(o,1),r;return r}function _(t,e,n){return this.constructor(t,n)}function x(t,e,n,o,u){t.__x||(t.__x=!0,t.__r=e.ref,t.__k=e.key,delete e.ref,delete e.key,void 0===t.constructor.getDerivedStateFromProps&&(!t.base||u?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,o)),o&&o!==t.context&&(t.__c||(t.__c=t.context),t.context=o),t.__p||(t.__p=t.props),t.props=e,t.__x=!1,0!==n&&(1!==n&&!1===T.syncComponentUpdates&&t.base?i(t):C(t,1,u)),r(t.__r,t))}function C(t,e,r,o){if(!t.__x){var i,u,s,a=t.props,l=t.state,f=t.context,p=t.__p||a,h=t.__s||l,y=t.__c||f,m=t.base,g=t.__b,w=m||g,_=t._component,E=!1,O=y;if(t.constructor.getDerivedStateFromProps&&(l=n(n({},l),t.constructor.getDerivedStateFromProps(a,l)),t.state=l),m&&(t.props=p,t.state=h,t.context=y,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(a,l,f)?E=!0:t.componentWillUpdate&&t.componentWillUpdate(a,l,f),t.props=a,t.state=l,t.context=f),t.__p=t.__s=t.__c=t.__b=null,t.__d=!1,!E){i=t.render(a,l,f),t.getChildContext&&(f=n(n({},f),t.getChildContext())),m&&t.getSnapshotBeforeUpdate&&(O=t.getSnapshotBeforeUpdate(p,h));var D,k,N=i&&i.nodeName;if("function"==typeof N){var A=c(i);u=_,u&&u.constructor===N&&A.key==u.__k?x(u,A,1,f,!1):(D=u,t._component=u=S(N,A,f),u.__b=u.__b||g,u.__u=t,x(u,A,0,f,!1),C(u,1,r,!0)),k=u.base}else s=w,D=_,D&&(s=t._component=null),(w||1===e)&&(s&&(s._component=null),k=v(s,i,f,r||!m,w&&w.parentNode,!0));if(w&&k!==w&&u!==_){var M=w.parentNode;M&&k!==M&&(M.replaceChild(k,w),D||(w._component=null,b(w,!1)))}if(D&&P(D),t.base=k,k&&!o){for(var j=t,I=t;I=I.__u;)(j=I).base=k;k._component=j,k._componentConstructor=j.constructor}}for(!m||r?U.push(t):E||(t.componentDidUpdate&&t.componentDidUpdate(p,h,O),T.afterUpdate&&T.afterUpdate(t));t.__h.length;)t.__h.pop().call(t);W||o||d()}}function E(t,e,n,r){for(var o=t&&t._component,i=o,u=t,s=o&&t._componentConstructor===e.nodeName,a=s,l=c(e);o&&!a&&(o=o.__u);)a=o.constructor===e.nodeName;return o&&a&&(!r||o._component)?(x(o,l,3,n,r),t=o.base):(i&&!s&&(P(i),t=u=null),o=S(e.nodeName,l,n),t&&!o.__b&&(o.__b=t,u=null),x(o,l,1,n,r),t=o.base,u&&t!==u&&(u._component=null,b(u,!1))),t}function P(t){T.beforeUnmount&&T.beforeUnmount(t);var e=t.base;t.__x=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?P(n):e&&(null!=e.__preactattr_&&r(e.__preactattr_.ref,null),t.__b=e,f(e),F.push(t),g(e)),r(t.__r,null)}function O(t,e){this.__d=!0,this.context=e,this.props=t,this.state=this.state||{},this.__h=[]}function D(t,e,n){return v(n,t,{},!1,e,!1)}function k(){return{}}var N=function(){},T={},A=[],M=[],j="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,I=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,R=[],U=[],W=0,L=!1,$=!1,F=[];n(O.prototype,{setState:function(t,e){this.__s||(this.__s=this.state),this.state=n(n({},this.state),"function"==typeof t?t(this.state,this.props):t),e&&this.__h.push(e),i(this)},forceUpdate:function(t){t&&this.__h.push(t),C(this,2)},render:function(){}});var V={h:t,createElement:t,cloneElement:o,createRef:k,Component:O,render:D,rerender:u,options:T};"undefined"!=typeof e?e.exports=V:self.preact=V}()},{}],6:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function u(t){if(p===clearTimeout)return clearTimeout(t);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function s(){y&&d&&(y=!1,d.length?v=d.concat(v):m=-1,v.length&&a())}function a(){if(!y){var t=i(s);y=!0;for(var e=v.length;e;){for(d=v,v=[];++m<e;)d&&d[m].run();m=-1,e=v.length}d=null,y=!1,u(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var f,p,h=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(t){p=o}}();var d,v=[],y=!1,m=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new c(t,e)),1!==v.length||y||i(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.prependListener=l,h.prependOnceListener=l,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],7:[function(t,e,n){"use strict";function r(t,e,n,r,o){}r.resetWarningCache=function(){},e.exports=r},{"./lib/ReactPropTypesSecret":11}],8:[function(t,e,n){"use strict";function r(){}function o(){}var i=t("./lib/ReactPropTypesSecret");o.resetWarningCache=r,e.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":11}],9:[function(t,e,n){"use strict";function r(){return null}var o=t("react-is"),i=t("object-assign"),u=t("./lib/ReactPropTypesSecret"),s=t("./checkPropTypes"),a=Function.call.bind(Object.prototype.hasOwnProperty),c=function(){};e.exports=function(t,e){function n(t){var e=t&&(T&&t[T]||t[A]);if("function"==typeof e)return e}function l(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function p(t){function n(n,r,o,i,s,a,c){if(i=i||M,a=a||o,c!==u){if(e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}return null==r[o]?n?new f(null===r[o]?"The "+s+" `"+a+"` is marked as required "+("in `"+i+"`, but its value is `null`."):"The "+s+" `"+a+"` is marked as required in "+("`"+i+"`, but its value is `undefined`.")):null:t(r,o,i,s,a)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function h(t){function e(e,n,r,o,i,u){var s=e[n],a=O(s);if(a!==t){var c=D(s);return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return p(e)}function d(){return p(r)}function v(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){var a=O(s);return new f("Invalid "+o+" `"+i+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var l=t(s,c,r,o,i+"["+c+"]",u);if(l instanceof Error)return l}return null}return p(e)}function y(){function e(e,n,r,o,i){var u=e[n];if(!t(u)){var s=O(u);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return p(e)}function m(){function t(t,e,n,r,i){var u=t[e];if(!o.isValidElementType(u)){var s=O(u);return new f("Invalid "+r+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement type."))}return null}return p(t)}function b(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var u=t.name||M,s=N(e[n]);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return p(e)}function g(t){function e(e,n,r,o,i){for(var u=e[n],s=0;s<t.length;s++)if(l(u,t[s]))return null;var a=JSON.stringify(t,function(t,e){var n=D(e);return"symbol"===n?String(e):e});return new f("Invalid "+o+" `"+i+"` of value `"+String(u)+"` "+("supplied to `"+r+"`, expected one of "+a+"."))}return Array.isArray(t)?p(e):r}function w(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=e[n],c=O(s);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an object."));for(var l in s)if(a(s,l)){var p=t(s,l,r,o,i+"."+l,u);if(p instanceof Error)return p}return null}return p(e)}function S(t){function e(e,n,r,o,i){for(var s=0;s<t.length;s++){var a=t[s];if(null==a(e,n,r,o,i,u))return null}return new f("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return r;for(var n=0;n<t.length;n++){var o=t[n];if("function"!=typeof o)return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(o)+" at index "+n+"."),r}return p(e)}function _(){function t(t,e,n,r,o){return E(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return p(t)}function x(t){function e(e,n,r,o,i){var s=e[n],a=O(s);if("object"!==a)return new f("Invalid "+o+" `"+i+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in t){var l=t[c];if(l){var p=l(s,c,r,o,i+"."+c,u);if(p)return p}}return null}return p(e)}function C(t){function e(e,n,r,o,s){var a=e[n],c=O(a);if("object"!==c)return new f("Invalid "+o+" `"+s+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));var l=i({},e[n],t);for(var p in l){var h=t[p];if(!h)return new f("Invalid "+o+" `"+s+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(a,p,r,o,s+"."+p,u);if(d)return d}return null}return p(e)}function E(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(E);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!E(o.value))return!1}else for(;!(o=i.next()).done;){var u=o.value;if(u&&!E(u[1]))return!1}return!0;default:return!1}}function P(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function O(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":P(e,t)?"symbol":e}function D(t){if("undefined"==typeof t||null===t)return""+t;var e=O(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function k(t){var e=D(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function N(t){return t.constructor&&t.constructor.name?t.constructor.name:M}var T="function"==typeof Symbol&&Symbol.iterator,A="@@iterator",M="<<anonymous>>",j={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:d(),arrayOf:v,element:y(),elementType:m(),instanceOf:b,node:_(),objectOf:w,oneOf:g,oneOfType:S,shape:x,exact:C};return f.prototype=Error.prototype,j.checkPropTypes=s,j.resetWarningCache=s.resetWarningCache,j.PropTypes=j,j}},{"./checkPropTypes":7,"./lib/ReactPropTypesSecret":11,"object-assign":12,"react-is":15}],10:[function(t,e,n){e.exports=t("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":8,"./factoryWithTypeCheckers":9,"react-is":15}],11:[function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],12:[function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var n,o,a=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)u.call(n,l)&&(a[l]=n[l]);if(i){o=i(n);for(var f=0;f<o.length;f++)s.call(n,o[f])&&(a[o[f]]=n[o[f]])}}return a}},{}],13:[function(t,e,n){(function(t){"use strict";"production"!==t.env.NODE_ENV&&!function(){function t(t){return"string"==typeof t||"function"==typeof t||t===g||t===E||t===S||t===w||t===O||t===D||"object"==typeof t&&null!==t&&(t.$$typeof===N||t.$$typeof===k||t.$$typeof===_||t.$$typeof===x||t.$$typeof===P||t.$$typeof===T||t.$$typeof===A||t.$$typeof===M)}function e(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case m:var n=t.type;switch(n){case C:case E:case g:case S:case w:case O:return n;default:var r=n&&n.$$typeof;switch(r){case x:case P:case N:case k:case _:return r;default:return e}}case b:return e}}}function r(t){return G||(G=!0,R(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(t)||e(t)===C}function o(t){return e(t)===E}function i(t){return e(t)===x}function u(t){return e(t)===_}function s(t){return"object"==typeof t&&null!==t&&t.$$typeof===m}function a(t){return e(t)===P}function c(t){return e(t)===g}function l(t){return e(t)===N}function f(t){return e(t)===k}function p(t){return e(t)===b}function h(t){return e(t)===S}function d(t){return e(t)===w}function v(t){return e(t)===O}Object.defineProperty(n,"__esModule",{value:!0});var y="function"==typeof Symbol&&Symbol["for"],m=y?Symbol["for"]("react.element"):60103,b=y?Symbol["for"]("react.portal"):60106,g=y?Symbol["for"]("react.fragment"):60107,w=y?Symbol["for"]("react.strict_mode"):60108,S=y?Symbol["for"]("react.profiler"):60114,_=y?Symbol["for"]("react.provider"):60109,x=y?Symbol["for"]("react.context"):60110,C=y?Symbol["for"]("react.async_mode"):60111,E=y?Symbol["for"]("react.concurrent_mode"):60111,P=y?Symbol["for"]("react.forward_ref"):60112,O=y?Symbol["for"]("react.suspense"):60113,D=y?Symbol["for"]("react.suspense_list"):60120,k=y?Symbol["for"]("react.memo"):60115,N=y?Symbol["for"]("react.lazy"):60116,T=y?Symbol["for"]("react.fundamental"):60117,A=y?Symbol["for"]("react.responder"):60118,M=y?Symbol["for"]("react.scope"):60119,j=function(){},I=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(u){}};j=function(t,e){if(void 0===e)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];I.apply(void 0,[e].concat(r))}};var R=j,U=C,W=E,L=x,$=_,F=m,V=P,B=g,H=N,q=k,z=b,Q=S,J=w,Z=O,G=!1;n.typeOf=e,n.AsyncMode=U,n.ConcurrentMode=W,n.ContextConsumer=L,n.ContextProvider=$,n.Element=F,n.ForwardRef=V,n.Fragment=B,n.Lazy=H,n.Memo=q,n.Portal=z,n.Profiler=Q,n.StrictMode=J,n.Suspense=Z,n.isValidElementType=t,n.isAsyncMode=r,n.isConcurrentMode=o,n.isContextConsumer=i,n.isContextProvider=u,n.isElement=s,n.isForwardRef=a,n.isFragment=c,n.isLazy=l,n.isMemo=f,n.isPortal=p,n.isProfiler=h,n.isStrictMode=d,n.isSuspense=v}()}).call(this,t("_process"))},{_process:6}],14:[function(t,e,n){"use strict";function r(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case u:switch(t=t.type){case h:case d:case a:case l:case c:case y:return t;default:switch(t=t&&t.$$typeof){case p:case v:case g:case b:case f:return t;default:return e}}case s:return e}}}function o(t){return r(t)===d}Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&Symbol["for"],u=i?Symbol["for"]("react.element"):60103,s=i?Symbol["for"]("react.portal"):60106,a=i?Symbol["for"]("react.fragment"):60107,c=i?Symbol["for"]("react.strict_mode"):60108,l=i?Symbol["for"]("react.profiler"):60114,f=i?Symbol["for"]("react.provider"):60109,p=i?Symbol["for"]("react.context"):60110,h=i?Symbol["for"]("react.async_mode"):60111,d=i?Symbol["for"]("react.concurrent_mode"):60111,v=i?Symbol["for"]("react.forward_ref"):60112,y=i?Symbol["for"]("react.suspense"):60113,m=i?Symbol["for"]("react.suspense_list"):60120,b=i?Symbol["for"]("react.memo"):60115,g=i?Symbol["for"]("react.lazy"):60116,w=i?Symbol["for"]("react.fundamental"):60117,S=i?Symbol["for"]("react.responder"):60118,_=i?Symbol["for"]("react.scope"):60119;n.typeOf=r,n.AsyncMode=h,n.ConcurrentMode=d,n.ContextConsumer=p,n.ContextProvider=f,n.Element=u,n.ForwardRef=v,n.Fragment=a,n.Lazy=g,n.Memo=b,n.Portal=s,n.Profiler=l,n.StrictMode=c,n.Suspense=y,n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===d||t===l||t===c||t===y||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===b||t.$$typeof===f||t.$$typeof===p||t.$$typeof===v||t.$$typeof===w||t.$$typeof===S||t.$$typeof===_)},n.isAsyncMode=function(t){return o(t)||r(t)===h},n.isConcurrentMode=o,n.isContextConsumer=function(t){return r(t)===p},n.isContextProvider=function(t){return r(t)===f},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===u},n.isForwardRef=function(t){return r(t)===v},n.isFragment=function(t){return r(t)===a},n.isLazy=function(t){return r(t)===g},n.isMemo=function(t){return r(t)===b},n.isPortal=function(t){return r(t)===s},n.isProfiler=function(t){return r(t)===l},n.isStrictMode=function(t){return r(t)===c},n.isSuspense=function(t){return r(t)===y}},{}],15:[function(t,e,n){(function(n){"use strict";"production"===n.env.NODE_ENV?e.exports=t("./cjs/react-is.production.min.js"):e.exports=t("./cjs/react-is.development.js")}).call(this,t("_process"))},{"./cjs/react-is.development.js":13,"./cjs/react-is.production.min.js":14,_process:6}],16:[function(t,e,n){var r={Quality:"Quality",RecentlyUpdated:"Recently Updated",Downloads:"Downloads"};e.exports=r},{}],17:[function(t,e,n){function r(t,e){clearTimeout(p),p=setTimeout(t,e)}function o(t,e,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(r.readyState==XMLHttpRequest.DONE)return 200==r.status?void e(JSON.parse(r.responseText)):void n()}.bind(this),r.open("GET",t,!0),r.send()}var i=window.Preact=t("preact"),u=t("preact").h,s=t("preact-compat").createClass,a=t("./searchbar.jsx"),c=t("./pluginlist.jsx"),l=t("./platformbutton.jsx");v={},SortDropdown=t("./sortdropdown.jsx"),SortCriteria=t("./SortCriteria");var f=500,p=null,h={DownloadCountBatch:100,NpmSearchInitialSize:500},d={SortBy:"sortBy",Query:"q",Platfroms:"platforms"},v=s({getInitialState:function(){var t=[];t.platforms=[],t.authors=[],t.licenses=[];var e=v.getURLParameter(d.Platfroms);e&&(t.platforms=t.platforms.concat(e.split(",")));var n=v.getURLParameter(d.Query),r=v.getURLParameter(d.SortBy);r||(r=SortCriteria.Quality);var o={plugins:[],placeHolderText:"Loading...",searchResults:[],staticFilters:t,sortCriteria:r,downloadsReceived:!1};return n?o.filterText=n:o.filterText="",o},handleUserInput:function(t){var e=this;if(this.state.filterText!==t){var n=this.state.staticFilters.platforms;r(function(){v.updateURL(t,n,e.state.sortCriteria)},f),this.setState({filterText:t,searchResults:v.filterPlugins(e.state.plugins,t,e.state.staticFilters)})}},toggleCondition:function(t,e){var n=this.state;this.setState(function(r,o){var i=r.staticFilters[t].indexOf(e);return i>-1?r.staticFilters[t].splice(i,1):r.staticFilters[t].push(e),v.updateURL(r.filterText,r.staticFilters.platforms,r.sortCriteria),{staticFilters:r.staticFilters,plugins:r.plugins,searchResults:v.filterPlugins(r.plugins,n.filterText,n.staticFilters)}})},setSort:function(t){var e=this.state;this.setState(function(n,o){return v.sortPlugins(n.plugins,t),r(function(){v.updateURL(n.filterText,n.staticFilters.platforms,n.sortCriteria)},f),{plugins:n.plugins,searchResults:v.filterPlugins(n.plugins,e.filterText,e.staticFilters),sortCriteria:t}})},statics:{appendURLParameter:function(t,e){return t=t?t+"&"+e+"=":"?"+e+"="},getURLParameter:function(t){try{return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}catch(e){if(e instanceof URIError)return window.history.replaceState({},"","./"),null;throw e}},shallowCopy:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},tagOfficialPlugins:function(){},filterPlugins:function(t,e,n){for(var r=function(t,e){var n=!0;return 0==t.length?n:!!e&&(t.forEach(function(t){for(var r=!1,o=0;o<e.length;o++)e[o]&&e[o].toLowerCase().indexOf(t.toLowerCase())>-1&&(r=!0);r||(n=!1)}),n)},o=function(t){var e=t.split(" "),n=[];return n.platforms=[],n.authors=[],n.licenses=[],n.searchWords=[],e.forEach(function(t){var e=t.split(":");if(1==e.length){var r=e[0].trim();r&&n.searchWords.push(r)}else if(e[1].trim()){var r=e[1].trim();switch(e[0]){case"platform":n.platforms.push(r);break;case"author":n.authors.push(r);break;case"license":n.licenses.push(r);break;default:n.searchWords.push(t)}}else n.searchWords.push(t)}),n},i=[],u=o(e),s=function(t,e){for(var n=[].concat(t),r=0;r<e.length;r++)n.indexOf(e[r])===-1&&n.push(e[r]);return n},a=0;a<t.length;a++){var c=t[a],l=c.name.concat(c.author,c.keywords,c.license,c.description);r(s(u.platforms,n.platforms),c.keywords)&&r(s(u.authors,n.authors),c.author)&&r(s(u.licenses,n.licenses),c.license)&&r(u.searchWords,l)&&i.push(c)}return i},sortPlugins:function(t,e){var n=function(t,e){return t.name===e.name?0:t.name>e.name?1:-1};switch(e){case SortCriteria.Downloads:t.sort(function(t,e){return t.downloadCount?e.downloadCount?e.downloadCount===t.downloadCount?n(t,e):e.downloadCount-t.downloadCount:-1:1});break;case SortCriteria.RecentlyUpdated:t.sort(function(t,e){return e.modified===t.modified?n(t,e):t.modified-e.modified});break;case SortCriteria.Quality:default:t.sort(function(t,e){return e.rating===t.rating?n(t,e):e.rating-t.rating})}return t},updateURL:function(t,e,n){var r="",o={};if(t){var i=t;r=v.appendURLParameter(r,d.Query),r+=encodeURIComponent(i),o.filterText=i}e.length>0&&(r=v.appendURLParameter(r,d.Platfroms),r+=encodeURIComponent(e.join()),o.platforms=e),n!==SortCriteria.Quality&&(r=v.appendURLParameter(r,d.SortBy),r+=encodeURIComponent(n),o.sortBy=n),window.history.replaceState(o,"",r),ga("send","pageview","/index.html"+r)}},componentDidMount:function(){function e(t,e){var n=(e.length,new Date),r=864e5;t.forEach(function(t){for(var n=0;n<e.length;n++)if(e[n].name[0]===t)return void(e[n].isOfficial=!0)});for(var o=e.length-1;o>=0;o--)for(var u=0;u<i.length;u++)if(e[o].name[0]===i[u]){e.splice(o,1);break}for(var o=0;o<e.length;o++)e[o].modified=Math.ceil((n-new Date(e[o].modified))/r);if(e=this.state.sortCriteria!==SortCriteria.Downloads?v.sortPlugins(e,this.state.sortCriteria):v.sortPlugins(e,SortCriteria.Quality),this.isMounted()){var s=v.getURLParameter(d.Query);s?this.setState({plugins:e,filterText:s,placeHolderText:"Search "+e.length+" plugins...",searchResults:v.filterPlugins(e,s,this.state.staticFilters)}):this.setState({plugins:e,placeHolderText:"Search "+e.length+" plugins...",searchResults:v.filterPlugins(e,"",this.state.staticFilters)}),m(e)}}var n=[],r=t("./official-plugins.json").plugins,i=t("./blacklisted-plugins.json").plugins,u=0,s=this,a="https:"===window.location.protocol?"https:":"http:",c=a+"//npmsearch.com/query",l="fields=name,keywords,license,description,author,modified,homepage,version,rating",f="q=keywords:%22ecosystem:cordova%22",p=h.NpmSearchInitialSize,y=c+"?"+l+"&"+f+"&sort=rating:desc";o(y+"&size="+p+"&start=0",function(t){n=t.results,u=t.total,u<=p?e.bind(s,r,n)():o(y+"&size="+(u-p)+"&start="+p,function(t){n=[].concat(n,t.results),e.bind(s,r,n)()},function(){console.log("xhr err")})},function(){console.log("xhr err")});var m=function(t){for(var e="",n=[],r=0;r<t.length;r++)/^@.*\//.test(t[r].name)||(e+=t[r].name+",",r%h.DownloadCountBatch!==0&&r!==t.length-1||(n.push($.getJSON("https://api.npmjs.org/downloads/point/last-month/"+e)),e=""));$.when.apply($,n).done(function(){for(var e=0;e<arguments.length;e++)for(var n=arguments[e][0],r=0;r<t.length;r++)n[t[r].name]&&(t[r]=v.shallowCopy(t[r]),t[r].downloadCount=n[t[r].name].downloads);s.state.sortCriteria===SortCriteria.Downloads&&v.sortPlugins(t,s.state.sortCriteria),s.setState({plugins:t,searchResults:v.filterPlugins(t,s.state.filterText,s.state.staticFilters),downloadsReceived:!0})}).fail(function(){console.log("xhr err")})}},render:function(){var t=this.toggleCondition,e=function(e,n,r){var o=r.staticFilters.platforms.indexOf(n)>-1;return u(l,{platform:e,keyword:n,initiallyActive:o,toggleCondition:t})},n=u(c,{plugins:this.state.searchResults});return u("div",null,u("div",{className:"container"},u("div",{className:"row"},u("div",{className:"col-sm-12 text-center"},u("h1",null,"Cordova Plugins"))),u("div",{className:"row"},u("div",{className:"col-sm-12"},u("div",{className:"plugins_search_container"},u(a,{initialValue:this.state.filterText,placeHolderText:this.state.placeHolderText,onUserInput:this.handleUserInput}),u("div",{className:"whatisplugin_box"},u("img",{src:"/static/img/pluggy.png"}),u("h2",null,"What is a Cordova plugin?"),u("p",null,"A plugin is a bit of add-on code that provides JavaScript interface to native components. They allow your app to use native device capabilities beyond what is available to pure web apps.")),u("div",{className:"clearfix"})),u("div",{className:"plugins_links"},u("ul",{className:"nav nav-justified"},u("li",null,u("a",{href:"/docs/en//latest/guide/hybrid/plugins/index.html#publishing-plugins"},u("span",{className:"glyphicon glyphicon-plus"}),u("i",null," "),"Contribute Plugins")),u("li",null,u("a",{href:"/plugins/faq.html"},u("span",{className:"glyphicon glyphicon-question-sign"}),u("i",null," "),"Plugin Help")))))),u("div",{className:"row filter-by-platforms"},u("div",{className:"col-sm-9"},u("div",{className:"filter-by-platform-label"},u("span",null,"Must Support Platform(s):")),u("div",{className:"filter-by-platform-filters"},e("Android","cordova-android",this.state),e("iOS","cordova-ios",this.state),e("Windows","cordova-windows",this.state),e("macOS","cordova-osx",this.state),e("Browser","cordova-browser",this.state))),u("div",{className:"col-sm-3"},u("div",{className:"plugin-results-number"},this.state.searchResults.length," result(s) found"),u(SortDropdown,{setSort:this.setSort,selected:this.state.sortCriteria,downloadsEnabled:this.state.downloadsReceived})))),n,u("div",{className:"row plugin-search-credit"},"Search results powered by ",u("a",{target:"_blank",href:"https://npmsearch.com/"},"npmsearch.com")))}});v.start=function(){i.render(u(v,null),document.getElementById("pluginsAppContainer"))},e.exports=window.App=v,v.start()},{"./SortCriteria":16,"./blacklisted-plugins.json":18,"./official-plugins.json":19,"./platformbutton.jsx":20,"./pluginlist.jsx":22,"./searchbar.jsx":23,"./sortdropdown.jsx":25,preact:5,"preact-compat":3}],18:[function(t,e,n){e.exports={plugins:["cordova-wp8","cordova-wp8-testtest","cordova-app-hello-world","delete-this","cordova-android","cordova-fetch","amilatemethods","cordova-ios"]}},{}],19:[function(t,e,n){e.exports={plugins:["cordova-plugin-battery-status","cordova-plugin-camera","cordova-plugin-device","cordova-plugin-dialogs","cordova-plugin-file","cordova-plugin-geolocation","cordova-plugin-inappbrowser","cordova-plugin-media","cordova-plugin-media-capture","cordova-plugin-network-information","cordova-plugin-screen-orientation","cordova-plugin-splashscreen","cordova-plugin-statusbar","cordova-plugin-vibration","cordova-plugin-whitelist"]}},{}],20:[function(t,e,n){var r=(t("preact"),t("preact").h),o=t("preact-compat").createClass,i=o({getInitialState:function(){return{isActive:this.props.initiallyActive}},onClick:function(){this.props.toggleCondition("platforms",this.props.keyword),this.setState(function(t,e){return{isActive:!t.isActive}})},render:function(){return this.state.isActive?r("button",{className:"btn btn-primary",onClick:this.onClick},r("span",{className:"glyphicon glyphicon-ok"}),r("i",null," "),this.props.platform):r("button",{className:"btn btn-default",onClick:this.onClick},this.props.platform)}});e.exports=i},{preact:5,"preact-compat":3}],21:[function(t,e,n){function r(t){ga("send","event","outbound","click",t)}var o=(t("preact"),t("preact").h),i=t("preact-compat").createClass,u=t("./supportedplatforms.jsx"),s=t("classnames"),a=i({shouldComponentUpdate:function(t,e){return this.props.plugin!==t.plugin},copyText:function(){var t=document.createRange();t.selectNode(this.getDOMNode().getElementsByClassName("cordova-add-command")[0]);var e=window.getSelection();e.removeAllRanges(),e.addRange(t);try{document.execCommand("copy")}catch(n){}e.removeAllRanges()},render:function(){if(!this.props.plugin)return o("div",{className:"container plugin-results-result"},o("div",{className:"row"},o("div",{className:"col-sm-9"},o("h2",null,"Loading..."))));var t=this.props.plugin.license;t&&t.length>1&&(t=t[0]);var e,n,i="https://www.npmjs.com/package/"+this.props.plugin.name;if(this.props.plugin.downloadCount){var a=this.props.plugin.downloadCount.toLocaleString();e=o("p",{className:"downloads"},o("strong",null,a)," downloads last month")}this.props.plugin&&(n=o("img",{id:"copy-"+this.props.plugin.name,
    4 className:"plugins-copy-to-clipboard",src:"/static/img/copy-clipboard-icon.svg",title:"Copy cordova plugin add command to clipboard","data-toggle":"tooltip","data-placement":"auto",onClick:this.copyText}));var c=s({container:!0,"plugin-results-result":!0,"plugins-featured":this.props.plugin.isOfficial});return o("div",{className:c},o("div",{className:"row"},o("div",{className:"col-sm-8 col-xs-8"},o("span",null,o("h2",null,o("a",{href:i,onClick:r.bind(this,i),target:"_blank"},this.props.plugin.name)),o("p",{className:"version_and_author"},"v",this.props.plugin.version," by ",o("strong",null,this.props.plugin.author)))),o("div",{className:"col-sm-4 col-xs-4"},n)),o("div",{className:"row"},o("div",{className:"col-sm-8"},o("p",null,this.props.plugin.description),o(u,{keywords:this.props.plugin.keywords,plugin:this.props.plugin.name})),o("div",{className:"col-sm-3 col-sm-offset-1"},o("hr",{className:"visible-xs results-divider-line"}),o("p",{className:"license"},t),e,o("p",{className:"last-updated"},"Last updated ",o("strong",null,this.props.plugin.modified," days ago")))),o("div",{className:"cordova-add-command"},"cordova plugin add "+this.props.plugin.name))},componentDidMount:function(){this.copyText(),this.props.plugin&&$(this.getDOMNode()).find(".plugins-copy-to-clipboard").tooltip()},componentDidUpdate:function(){this.copyText()}});e.exports=a},{"./supportedplatforms.jsx":26,classnames:2,preact:5,"preact-compat":3}],22:[function(t,e,n){var r=(t("preact"),t("preact").h),o=t("preact-compat").createClass,i=t("./plugin.jsx"),u=10,s=20,a=o({getInitialState:function(){return{bootstrapped:!1}},componentWillReceiveProps:function(){this.setState({bootstrapped:!0,searchPage:0})},increaseSearchResults:function(){this.setState({searchPage:this.state.searchPage+1})},render:function(){if(this.state.bootstrapped){var t=this.props.plugins,e=null,n=[];if(t.length-this.state.searchPage*s>u&&(e=r("div",{className:"plugin-results-show-more btn-block btn-primary",onClick:this.increaseSearchResults},"Show More")),0===t.length)return r("div",{className:"container plugins-results-container"},"No plugins found. Learn how to ",r("a",{href:"/docs/en/latest/guide/hybrid/plugins/index.html"},"create one"));for(var o=0;o<u+this.state.searchPage*s&&t[o];o++)n.push(r(i,{plugin:t[o],key:o}));return r("div",{className:"container plugins-results-container"},n,e)}for(var a=[],o=0;o<u;o++)a.push(r(i,{key:o}));return r("div",{className:"container plugins-results-container"},a)}});e.exports=a},{"./plugin.jsx":21,preact:5,"preact-compat":3}],23:[function(t,e,n){var r=(t("preact"),t("preact").h),o=t("preact-compat").findDOMNode,i=t("preact-compat").createClass,u=t("baconjs").Bacon,s=i({linkRef:function(t,e){var n=t._linkedRefs||(t._linkedRefs={});return t.refs||(t.refs={}),n[e]||(n[e]=function(n){return t.refs[e]=n})},getInitialState:function(){return{textValue:this.props.initialValue}},handleChange:function(t){this.setState({textValue:t.target.value})},componentDidMount:function(){var t=this,e=200,n=o(this.refs.filterTextInput),r=u.fromEvent(n,"input").debounce(e).map(function(t){return t.target.value}).skipDuplicates(),i=r.flatMapLatest(function(t){return u.once(t)});i.onValue(function(e){t.props.onUserInput(e)}),n.focus()},render:function(){return r("div",{className:"input-group"},r("input",{className:"form-control",type:"text",autoComplete:"off",placeholder:this.props.placeHolderText,value:this.state.textValue,onInput:this.handleChange,ref:this.linkRef(this,"filterTextInput")}))}});e.exports=s},{baconjs:1,preact:5,"preact-compat":3}],24:[function(t,e,n){var r=(t("preact"),t("preact").h),o=t("preact-compat").createClass,i=o({onClick:function(){this.props.setSort(this.props.criteria)},render:function(){return r("li",{className:"clickable",onClick:this.onClick},r("a",{href:"#"},this.props.criteria))}});e.exports=i},{preact:5,"preact-compat":3}],25:[function(t,e,n){var r=(t("preact"),t("preact").h),o=t("preact-compat").createClass,i=t("./sortbutton.jsx"),u=t("./SortCriteria"),s=o({render:function(){var t;return this.props.downloadsEnabled&&(t=r(i,{setSort:this.props.setSort,criteria:u.Downloads})),r("div",{className:"dropdown plugins-sort-dropdown"},r("button",{className:"btn btn-primary btn-block dropdown-toggle",type:"button",id:"dropdownMenu1","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"true"},r("strong",null,"Sort: "),this.props.selected,r("span",{className:"caret"})),r("ul",{className:"dropdown-menu","aria-labelledby":"dropdownMenu1"},r(i,{setSort:this.props.setSort,criteria:u.Quality}),r(i,{setSort:this.props.setSort,criteria:u.RecentlyUpdated}),t))}});e.exports=s},{"./SortCriteria":16,"./sortbutton.jsx":24,preact:5,"preact-compat":3}],26:[function(t,e,n){const r=(t("preact"),t("preact").h),o=t("preact-compat").createClass,i=(t("./platformbutton.jsx"),o({render:function(){const t=[{keyword:"cordova-android",icon:"android",alt:"Android"},{keyword:"cordova-ios",icon:"ios",alt:"iOS"},{keyword:"cordova-windows",icon:"windows",alt:"Windows"},{keyword:"cordova-osx",icon:"osx",alt:"macOS"},{keyword:"cordova-browser",icon:"browser",alt:"Browser"}],e=t.filter(function(t){return this.props.keywords.indexOf(t.keyword)>-1}.bind(this)).map(function(t){return r("li",{key:this.props.plugin+"-"+t.alt},r("div",{className:t.icon,title:t.alt}))}.bind(this));return r("ul",{className:"results-supported-platforms"},e)}}));e.exports=i},{"./platformbutton.jsx":20,preact:5,"preact-compat":3}]},{},[17]);