UNPKG

core-resource-app-test

Version:

App that contains assets and scripts for the core apps

1 lines 477 kB
var Dhis2HeaderBar=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=185)}([function(t,e,r){"use strict";var n=r(18),i=r(287),o=r(69),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i;i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(67),o=r(12),s=r(143),a=r(68),u=function(t){function e(r,n,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,r,n,i)}}return n(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,r,n,o){t.call(this),this._parentSubscriber=e;var a,u=this;i.isFunction(r)?a=r:r&&(a=r.next,n=r.error,o=r.complete,r!==s.empty&&(u=Object.create(r),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=n,this._complete=o}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,e){t.exports=React},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(1),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber);e.OuterSubscriber=o},function(t,e,r){"use strict";function n(t,e,r,n){var p=new l.InnerSubscriber(t,r,n);if(p.closed)return null;if(e instanceof u.Observable)return e._isScalar?(p.next(e.value),p.complete(),null):e.subscribe(p);if(o.isArrayLike(e)){for(var h=0,d=e.length;h<d&&!p.closed;h++)p.next(e[h]);p.closed||p.complete()}else{if(s.isPromise(e))return e.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),p;if(e&&"function"==typeof e[c.iterator])for(var b=e[c.iterator]();;){var y=b.next();if(y.done){p.complete();break}if(p.next(y.value),p.closed)break}else if(e&&"function"==typeof e[f.observable]){var v=e[f.observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,r,n));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m=a.isObject(e)?"an invalid object":"'"+e+"'",g="You provided "+m+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";p.error(new TypeError(g))}}return null}var i=r(18),o=r(145),s=r(146),a=r(141),u=r(0),c=r(57),l=r(296),f=r(69);e.subscribeToResult=n},function(t,e,r){t.exports=r(256)()},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){t.exports={default:r(225),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(128),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){"use strict";e.__esModule=!0;var n=r(91),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(249),o=n(i),s=r(253),a=n(s),u=r(91),c=n(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=r(29),o=r(141),s=r(67),a=r(19),u=r(15),c=r(142),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,l=r._parent,f=r._parents,p=r._unsubscribe,h=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,b=f?f.length:0;l;)l.remove(this),l=++d<b&&f[d]||null;if(s.isFunction(p)){var y=a.tryCatch(p).call(this);y===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?n(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(h))for(d=-1,b=h.length;++d<b;){var v=h[d];if(o.isObject(v)){var y=a.tryCatch(v.unsubscribe).call(v);if(y===u.errorObject){e=!0,t=t||[];var m=u.errorObject.e;m instanceof c.UnsubscriptionError?t=t.concat(n(m.errors)):t.push(m)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;r=new t,r._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=l},function(t,e,r){"use strict";function n(t,e){if(void 0!==t)return!0;throw new Error([e||"Value","should be provided"].join(" "))}function i(t,e,r){if(n(t,r),n(e,"Type"),"function"==typeof e&&t instanceof e||"string"==typeof e&&(void 0===t?"undefined":d(t))===e)return!0;throw new Error(["Expected",r||t,"to have type",e].join(" "))}function o(t,e){try{return i(t,e),!0}catch(t){}return!1}function s(t){return o(t,"string")}function a(t){return Array.isArray(t)}function u(t){return o(t,Object)}function c(t){return void 0!==t}function l(t){return"number"==typeof t&&isFinite(t)&&t>-9007199254740992&&t<9007199254740992&&Math.floor(t)===t}function f(t){return"number"==typeof t&&isFinite(t)&&t-parseFloat(t)+1>=0}function p(t,e){return(a(e)&&e||[]).indexOf(t)>=0}function h(t){return t&&11===t.length}Object.defineProperty(e,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.checkDefined=n,e.checkType=i,e.isType=o,e.isString=s,e.isArray=a,e.isObject=u,e.isDefined=c,e.isInteger=l,e.isNumeric=f,e.contains=p,e.isValidUid=h,Number.isInteger||(Number.isInteger=l),e.default={checkType:i,checkDefined:n,isArray:a,isDefined:c,isInteger:l,isNumeric:f,isString:s,isType:o,contains:p,isValidUid:h}},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(1),s=r(12),a=r(70),u=r(144),c=r(68),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var f=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.Observable);e.Subject=f;var p=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(f);e.AnonymousSubject=p},function(t,e,r){"use strict";e.errorObject={e:{}}},function(t,e){t.exports=fp},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";(function(t){var r="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=r||i||n;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,r(49))},function(t,e,r){"use strict";function n(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,n}var o,s=r(15);e.tryCatch=i},function(t,e,r){"use strict";e.__esModule=!0;var n=r(120),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(t,e,r,n){if(n=n||this.easeOutFunction,e&&"[object Array]"===Object.prototype.toString.call(e)){for(var i="",o=0;o<e.length;o++)i&&(i+=","),i+=this.create(t,e[o],r,n);return i}return this.create(t,e,r,n)},create:function(t,e,r,n){return t=t||"450ms",e=e||"all",r=r||"0ms",n=n||"linear",e+" "+t+" "+n+" "+r}}},function(t,e,r){"use strict";var n=r(59),i=r(60);e.async=new i.AsyncScheduler(n.AsyncAction)},function(t,e){var r=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(t,e,r){"use strict";var n=r(14);e.Subject=n.Subject,e.AnonymousSubject=n.AnonymousSubject;var i=r(0);e.Observable=i.Observable,r(288),r(291),r(294),r(297),r(299),r(302),r(304),r(307),r(311),r(314),r(317),r(319),r(322),r(325),r(330),r(332),r(334),r(337),r(339),r(341),r(344),r(347),r(350),r(353),r(356),r(358),r(360),r(366),r(368),r(370),r(372),r(374),r(376),r(378),r(380),r(381),r(382),r(384),r(386),r(388),r(390),r(392),r(394),r(396),r(398),r(400),r(402),r(405),r(406),r(408),r(410),r(412),r(414),r(416),r(418),r(419),r(421),r(422),r(424),r(426),r(431),r(433),r(435),r(437),r(439),r(441),r(443),r(445),r(446),r(448),r(450),r(452),r(453),r(454),r(455),r(456),r(458),r(460),r(461),r(462),r(463),r(465),r(468),r(470),r(472),r(474),r(476),r(478),r(479),r(480),r(482),r(484),r(486),r(488),r(490),r(492),r(494),r(496),r(498),r(500),r(502),r(504),r(506),r(508),r(510),r(512),r(520),r(522),r(524),r(526),r(528),r(530),r(532),r(534),r(535),r(537),r(538),r(540),r(542),r(543),r(545),r(547),r(549),r(551),r(553),r(555),r(557),r(559),r(560);var o=r(12);e.Subscription=o.Subscription;var s=r(1);e.Subscriber=s.Subscriber;var a=r(71);e.AsyncSubject=a.AsyncSubject;var u=r(75);e.ReplaySubject=u.ReplaySubject;var c=r(161);e.BehaviorSubject=c.BehaviorSubject;var l=r(160);e.ConnectableObservable=l.ConnectableObservable;var f=r(58);e.Notification=f.Notification;var p=r(76);e.EmptyError=p.EmptyError;var h=r(61);e.ArgumentOutOfRangeError=h.ArgumentOutOfRangeError;var d=r(70);e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var b=r(166);e.TimeoutError=b.TimeoutError;var y=r(142);e.UnsubscriptionError=y.UnsubscriptionError;var v=r(165);e.TimeInterval=v.TimeInterval;var m=r(167);e.Timestamp=m.Timestamp;var g=r(562);e.TestScheduler=g.TestScheduler;var w=r(171);e.VirtualTimeScheduler=w.VirtualTimeScheduler;var _=r(153);e.AjaxResponse=_.AjaxResponse,e.AjaxError=_.AjaxError,e.AjaxTimeoutError=_.AjaxTimeoutError;var O=r(162),x=r(22),S=r(154),k=r(565),T=r(68),C=r(57),j=r(69),P={asap:O.asap,queue:S.queue,animationFrame:k.animationFrame,async:x.async};e.Scheduler=P;var E={rxSubscriber:T.rxSubscriber,observable:j.observable,iterator:C.iterator};e.Symbol=E},function(t,e,r){"use strict";(function(t){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"REPLACE",e=f.default.getSystem();return e.version&&Number(e.version.minor)<=22?"mergeStrategy="+t:"mergeMode="+t}function o(t,e){if(new RegExp("^(:?https?:)?//").test(e))return e;var r=[];return t&&r.push(t),r.push(e),r.join("/").replace(new RegExp("(.(?:[^:]))//+","g"),"$1/").replace(new RegExp("/$"),"")}function s(){return s.api?s.api:s.api=new p}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r(111);var u=r(13),c=r(48),l=r(114),f=function(t){return t&&t.__esModule?t:{default:t}}(l),p=function(){function e(r){if(n(this,e),"function"==typeof r)this.fetch=r.bind("undefined"!=typeof window?window:t);else{if("undefined"==typeof fetch)throw new Error("Failed to initialise D2 Api: No fetch implementation is available");this.fetch=fetch.bind("undefined"!=typeof window?window:t)}this.baseUrl="/api",this.defaultFetchOptions={mode:"cors",credentials:"include",cache:"default"},this.defaultHeaders={}}return a(e,[{key:"setDefaultHeaders",value:function(t){this.defaultHeaders=t}},{key:"get",value:function(t,e,r){return this.request("GET",o(this.baseUrl,t),e,r)}},{key:"post",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o(this.baseUrl,t),i=e;return r.headers=new Headers(r.headers||{}),void 0!==e&&("FormData"===e.constructor.name?(r.headers.delete("Content-Type"),i=e):r.headers.has("Content-Type")&&r.headers.get("Content-Type").toLocaleLowerCase().startsWith("text/")?i=String(e):(r.headers.set("Content-Type","application/json"),i=JSON.stringify(e))),this.request("POST",n,i,r)}},{key:"delete",value:function(t,e){return this.request("DELETE",o(this.baseUrl,t),void 0,e)}},{key:"update",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!0===r?t+"?"+i():t;return this.request("PUT",o(this.baseUrl,n),JSON.stringify(e))}},{key:"request",value:function(t,e,r){function n(t){try{return JSON.parse(t)}catch(e){return t}}var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,u.checkType)(t,"string","Request type"),(0,u.checkType)(e,"string","Url");var s=this,a=e,l="";if(-1!==a.indexOf("?")&&(l=a.substr(a.indexOf("?")+1),a=a.substr(0,a.indexOf("?"))),r&&Array.isArray(r.filter)){var f=r.filter.map(function(t){return t.split(":").map(encodeURIComponent).join(":")});l=(0,c.customEncodeURIComponent)(l)+(l.length?"&":"")+"filter="+f.join("&filter="),delete r.filter}r&&"GET"===t&&Object.keys(r).forEach(function(t){l=l+(l.length>0?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(r[t])}),l.length&&(a=a+"?"+l);var p=function(e,n,i){var o=Object.assign({},s.defaultFetchOptions,n),a=new Headers(n.headers||{});return Object.keys(e).filter(function(t){return!a.get(t)}).forEach(function(t){return a.set(t,e[t])}),o.method=t,"GET"===o.method||!i&&0!==i&&!1!==i?a.delete("Content-Type"):i&&("FormData"===r.constructor.name?a.delete("Content-Type"):a.get("Content-Type")||a.set("Content-Type","application/json"),o.body=i),o.headers=a,o}(this.defaultHeaders,o,r);return new Promise(function(t,e){i.fetch(a,p).then(function(r){r.ok?r.text().then(function(e){return t(n(e))}):r.text().then(function(t){Object({NODE_ENV:"production"})&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_event||console.warn("API request failed with status "+r.status+" "+r.statusText+"\n","Request: "+p.method+" "+a),e(n(t))})}).catch(function(t){Object({NODE_ENV:"production"})&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_event||console.error("Server connection error:",t),e("Server connection failed for API request: "+p.method+" "+a)})})}},{key:"setBaseUrl",value:function(t){return(0,u.checkType)(t,"string","Base url"),this.baseUrl=t,this}}]),e}();p.getApi=s,e.default=p}).call(e,r(49))},function(t,e,r){var n=r(88)("wks"),i=r(63),o=r(33).Symbol,s="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.default,r=e.getApi();r.setBaseUrl("");var n={getBaseUrl:function(){return this.activities.dhis.href}};return r.get(""+t).then(function(t){return Object.assign({},t,n)})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default,e=t.getApi();return E.baseUrl&&j&&e.setBaseUrl(E.baseUrl),e.get("userSettings")}function a(t,e){var r=[],n=function(e){return t.get("schemas/"+e,{fields:k.fieldsForSchemas})};if(Array.isArray(e)){var i=e.map(n).concat([]),o=Promise.all(i).then(function(t){return{schemas:t}});r.push(o),e.length>0?r.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1})):r.push({attributes:[]})}else r.push(t.get("schemas",{fields:k.fieldsForSchemas})),r.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1}));return r}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.default,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.getLogger(),n=e.getApi(),o=O.default.create(E,t);o.headers&&n.setDefaultHeaders(o.headers);var u={models:void 0,model:d.default,Api:e,system:m.default.getSystem(),i18n:w.default.getI18n(),dataStore:C.default.getDataStore()};O.default.processConfigForD2(o,u),j?j=!1:P=l.Deferred.create();var c=a(n,o.schemas),f=[n.get("me",{fields:":all,organisationUnits[id],userGroups[id],userCredentials[:all,!user,userRoles[id]"}),n.get("me/authorization"),s(e)],h=[n.get("system/info"),n.get("apps")];return Promise.all([].concat(i(c),f,h,[u.i18n.load()])).then(function(t){var e={schemas:(0,l.pick)("schemas")(t[0]),attributes:(0,l.pick)("attributes")(t[1]),currentUser:t[2],authorities:t[3],userSettings:t[4],systemInfo:t[5],apps:t[6]};return e.schemas.filter(function(t){return t.metadata}).map(function(t){return t.apiEndpoint=(0,l.updateAPIUrlWithBaseUrlVersionNumber)(t.apiEndpoint,o.baseUrl),t}).forEach(function(t){var r=e.attributes.filter(function(e){return!0===e[[t.singular,"Attribute"].join("")]});Object.prototype.hasOwnProperty.call(u.models,t.singular)||u.models.add(d.default.ModelDefinition.createFromSchema(t,r))}),u.currentUser=S.default.create(e.currentUser,e.authorities,u.models,e.userSettings),u.system.setSystemInfo(e.systemInfo),u.system.setInstalledApps(e.apps),P.resolve(u),P.promise}).catch(function(t){return r.error("Unable to get schemas from the api",JSON.stringify(t),t),P.reject("Unable to get schemas from the DHIS2 API"),P.promise})}function c(){return P.promise}Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.getManifest=o,e.getUserSettings=s,e.init=u,e.getInstance=c,r(111);var l=r(48),f=r(112),p=n(f),h=r(186),d=n(h),b=r(25),y=n(b),v=r(114),m=n(v),g=r(205),w=n(g),_=r(206),O=n(_),x=r(207),S=n(x),k=r(118),T=r(210),C=n(T),j=!0,P=l.Deferred.create(),E=O.default.create(),A=e.config=E;e.default={init:u,config:A,getInstance:c,getUserSettings:s,getManifest:o}},function(t,e,r){"use strict";(function(t){function n(t,e){switch(t.userSettings.keyStyle){case"vietnam/vietnam.css":return Object.assign({},e,{background:"#B40303"});case"india/india.css":return Object.assign({},e,{background:"#EA5911"});case"green/green.css":return Object.assign({},e,{background:"#467E4A"})}return e}function i(){return t.document?Math.max(window.document.documentElement.clientWidth,window.innerWidth||0):0}function o(){if(!t.document)return 465;var e=.8*Math.max(t.document.documentElement.clientHeight,window.innerHeight||0);return e<465?e:465}r.d(e,"a",function(){return f}),e.b=n,r.d(e,"e",function(){return d}),e.d=o;var s=r(56),a=(r.n(s),r(24)),u=(r.n(a),r(40)),c=r.n(u),l=r(16),f=(r.n(l),125),p={},h=Object(l.curry)(function(t,e,r){return t()?e:r}),d=h(function(){return i()>1150});t.document&&a.Observable.fromEvent(t,"resize").debounceTime(300).subscribe(function(){return Object.assign(p.searchResults,{maxHeight:o()})},c.a.error),p={avatar:{fontSize:"1.3rem",letterSpacing:-2,lineHeight:"32px"},avatarBig:{fontSize:"34px",letterSpacing:-2,lineHeight:"60px"},headerBar:{boxSizing:"border-box",background:"#276696",display:"flex",position:"fixed",top:0,left:0,width:"100%",minHeight:48,justifyContent:"center",alignItems:"center",zIndex:1400},headerTitle:{flex:1,color:"#FFF"},headerMenu:{flex:"0 0 auto",padding:"0 1rem",height:48,justifyContent:"center",alignItems:"center",display:"flex"},menusWrap:{display:"flex",flexDirection:"row",justifyContent:"flex-end",paddingRight:"2rem"},dropDownWrap:{position:"absolute",display:"none",padding:"1rem",right:40,overflow:"hidden",width:400,flexDirection:"column",top:48},searchField:{display:"flex",flex:1,position:"relative",flexDirection:"row",maxWidth:550,justifyContent:"flex-end",minWidth:420},searchFieldInnerWrap:{transition:"width .5s cubic-bezier(0.39, -0.04, 0.2, 1)",position:"relative"},searchResultList:{display:"flex",flexWrap:"wrap"},searchResults:{position:"absolute",top:48,left:0,right:0,maxWidth:673,maxHeight:o(),overflow:"auto",transition:"padding-top .3s cubic-bezier(0.39, -0.04, 0.2, 1), padding-bottom .3s cubic-bezier(0.39, -0.04, 0.2, 1), height .3s cubic-bezier(0.39, -0.04, 0.2, 1)",boxSizing:"border-box"},searchFieldInput:{color:s.white,flex:1},searchFieldHintText:{color:"rgba(255, 255, 255, 0.5)"},menuItemLink:{padding:"1rem",display:"flex",width:f,height:f,boxSizing:"border-box",flexDirection:"column",alignItems:"center",justifyContent:"center",textDecoration:"none",color:s.black,fontSize:"1rem"},menuItemIcon:{height:48,width:48},menuItemLabel:{flex:"1 1 auto",maxWidth:"100%",textAlign:"center"},moreAppsButton:{marginTop:"1rem",width:"100%",display:"block",textAlign:"center"},moreAppsButtonWrap:{width:"100%",padding:"1rem",boxSizing:"border-box"},clearIcon:{position:"absolute",top:"10px",right:"5px"}},e.c=p}).call(e,r(49))},function(t,e,r){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}e.isScheduler=n},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(101),s=r(35),a=r(30),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var i=t.length;return i>1?new e(t,n):1===i?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;if(r>=n)return void i.complete();i.next(e[r]),i.closed||(t.index=r+1,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var o=0;o<n&&!t.closed;o++)t.next(r[o]);t.complete()},e}(i.Observable);e.ArrayObservable=u},function(t,e,r){var n=r(33),i=r(23),o=r(82),s=r(41),a=function(t,e,r){var u,c,l,f=t&a.F,p=t&a.G,h=t&a.S,d=t&a.P,b=t&a.B,y=t&a.W,v=p?i:i[e]||(i[e]={}),m=v.prototype,g=p?n:h?n[e]:(n[e]||{}).prototype;p&&(r=e);for(u in r)(c=!f&&g&&void 0!==g[u])&&u in v||(l=c?g[u]:r[u],v[u]=p&&"function"!=typeof g[u]?r[u]:b&&c?o(l,n):y&&g[u]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((v.virtual||(v.virtual={}))[u]=l,t&a.R&&m&&!m[u]&&s(m,u,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(42),i=r(121),o=r(83),s=Object.defineProperty;e.f=r(37)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i.Observable);e.EmptyObservable=o},function(t,e){t.exports=ReactDOM},function(t,e,r){t.exports=!r(43)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";function n(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(r,e));var n=Object.create(this,i.connectableObservableDescriptor);return n.source=this,n.subjectFactory=r,n}var i=r(160);e.multicast=n;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();e.MulticastOperator=o},function(t,e,r){var n,i;!function(o,s){"use strict";n=s,void 0!==(i="function"==typeof n?n.call(e,r,e,t):n)&&(t.exports=i)}(0,function(){"use strict";function t(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function e(e){return"debug"===e&&(e="log"),typeof console!==a&&(void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):s)}function r(t,e){for(var r=0;r<u.length;r++){var n=u[r];this[n]=r<t?s:this.methodFactory(n,t,e)}this.log=this.debug}function n(t,e,n){return function(){typeof console!==a&&(r.call(this,e,n),this[t].apply(this,arguments))}}function i(t,r,i){return e(t)||n.apply(this,arguments)}function o(t,e,n){function o(t){var e=(u[t]||"silent").toUpperCase();if(typeof window!==a){try{return void(window.localStorage[f]=e)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+e+";"}catch(t){}}}function s(){var t;if(typeof window!==a){try{t=window.localStorage[f]}catch(t){}if(typeof t===a)try{var e=window.document.cookie,r=e.indexOf(encodeURIComponent(f)+"=");r&&(t=/^([^;]+)/.exec(e.slice(r))[1])}catch(t){}return void 0===l.levels[t]&&(t=void 0),t}}var c,l=this,f="loglevel";t&&(f+=":"+t),l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||i,l.getLevel=function(){return c},l.setLevel=function(e,n){if("string"==typeof e&&void 0!==l.levels[e.toUpperCase()]&&(e=l.levels[e.toUpperCase()]),!("number"==typeof e&&e>=0&&e<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(c=e,!1!==n&&o(e),r.call(l,e,t),typeof console===a&&e<l.levels.SILENT)return"No console available for logging"},l.setDefaultLevel=function(t){s()||l.setLevel(t,!1)},l.enableAll=function(t){l.setLevel(l.levels.TRACE,t)},l.disableAll=function(t){l.setLevel(l.levels.SILENT,t)};var p=s();null==p&&(p=null==e?"WARN":e),l.setLevel(p,!1)}var s=function(){},a="undefined",u=["trace","debug","info","warn","error"],c=new o,l={};c.getLogger=function(t){if("string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=l[t];return e||(e=l[t]=new o(t,c.getLevel(),c.methodFactory)),e};var f=typeof window!==a?window.log:void 0;return c.noConflict=function(){return typeof window!==a&&window.log===c&&(window.log=f),c},c})},function(t,e,r){var n=r(34),i=r(52);t.exports=r(37)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(51);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(124),i=r(85);t.exports=function(t){return n(i(t))}},function(t,e,r){"use strict";var n=function(){};t.exports=n},function(t,e,r){"use strict";function n(t){return t.replace(/\/{1,}$/,"")}function i(t){var e=t.protocol,r=t.host,i=t.pathname;return n(e+"//"+r+(/^\//.test(i)?i:"/"+i))}function o(t){var e=document.createElement("a");return t.Api?(e.href=t.Api.getApi().baseUrl.replace(/\/api(?:\/2[3-9])?\/?$/i,""),e.host||(e.host=window.location.host),i(e)):(console&&console.info("Can not find d2 baseUrl, falling back to one folder up in the current location"),e.href=document.location.pathname+"/../",i(e))}e.a=o},function(t,e,r){"use strict";function n(t,e,r){return r?[t,e]:t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){throw new Error(t)}function o(t,e){return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.apply(this,[e].concat(n))}}function s(t,e,r){var n={enumerable:!0,configurable:!1,writable:!1,value:r};Object.defineProperty(t,e,n)}function a(t,e){return Object.keys(e).filter(function(t){return e.hasOwnProperty(t)}).forEach(function(r){t[r]=e[r]}),t}function u(t){return function(e){if(e)return e[t]}}function c(t,e){if(!e||!t)return t;var r=/api\/([1-9][0-9])/,n=e.match(r),i=n&&n[1],o=t&&!r.test(t);if(i&&o){var s=n[1];return t.replace(/api/,"api/"+s)}return t}function l(t){return encodeURIComponent(t).replace(d,decodeURIComponent)}Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.throwError=i,e.curry=o,e.addLockedProperty=s,e.copyOwnProperties=a,e.pick=u,e.updateAPIUrlWithBaseUrlVersionNumber=c,e.customEncodeURIComponent=l;var p=(e.Deferred=function(){function t(){var e=this;n(this,t),this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})}return f(t,null,[{key:"create",value:function(){return new t}}]),t}(),",&$=/;:"),h=p.split("").map(function(t){return encodeURIComponent(t)}),d=new RegExp("(?:"+h.join("|")+")","g")},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){t.exports=r(213)()},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(123),i=r(89);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(85);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports={}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.red50="#ffebee",e.red100="#ffcdd2",e.red200="#ef9a9a",e.red300="#e57373",e.red400="#ef5350",e.red500="#f44336",e.red600="#e53935",e.red700="#d32f2f",e.red800="#c62828",e.red900="#b71c1c",e.redA100="#ff8a80",e.redA200="#ff5252",e.redA400="#ff1744",e.redA700="#d50000",e.pink50="#fce4ec",e.pink100="#f8bbd0",e.pink200="#f48fb1",e.pink300="#f06292",e.pink400="#ec407a",e.pink500="#e91e63",e.pink600="#d81b60",e.pink700="#c2185b",e.pink800="#ad1457",e.pink900="#880e4f",e.pinkA100="#ff80ab",e.pinkA200="#ff4081",e.pinkA400="#f50057",e.pinkA700="#c51162",e.purple50="#f3e5f5",e.purple100="#e1bee7",e.purple200="#ce93d8",e.purple300="#ba68c8",e.purple400="#ab47bc",e.purple500="#9c27b0",e.purple600="#8e24aa",e.purple700="#7b1fa2",e.purple800="#6a1b9a",e.purple900="#4a148c",e.purpleA100="#ea80fc",e.purpleA200="#e040fb",e.purpleA400="#d500f9",e.purpleA700="#aa00ff",e.deepPurple50="#ede7f6",e.deepPurple100="#d1c4e9",e.deepPurple200="#b39ddb",e.deepPurple300="#9575cd",e.deepPurple400="#7e57c2",e.deepPurple500="#673ab7",e.deepPurple600="#5e35b1",e.deepPurple700="#512da8",e.deepPurple800="#4527a0",e.deepPurple900="#311b92",e.deepPurpleA100="#b388ff",e.deepPurpleA200="#7c4dff",e.deepPurpleA400="#651fff",e.deepPurpleA700="#6200ea",e.indigo50="#e8eaf6",e.indigo100="#c5cae9",e.indigo200="#9fa8da",e.indigo300="#7986cb",e.indigo400="#5c6bc0",e.indigo500="#3f51b5",e.indigo600="#3949ab",e.indigo700="#303f9f",e.indigo800="#283593",e.indigo900="#1a237e",e.indigoA100="#8c9eff",e.indigoA200="#536dfe",e.indigoA400="#3d5afe",e.indigoA700="#304ffe",e.blue50="#e3f2fd",e.blue100="#bbdefb",e.blue200="#90caf9",e.blue300="#64b5f6",e.blue400="#42a5f5",e.blue500="#2196f3",e.blue600="#1e88e5",e.blue700="#1976d2",e.blue800="#1565c0",e.blue900="#0d47a1",e.blueA100="#82b1ff",e.blueA200="#448aff",e.blueA400="#2979ff",e.blueA700="#2962ff",e.lightBlue50="#e1f5fe",e.lightBlue100="#b3e5fc",e.lightBlue200="#81d4fa",e.lightBlue300="#4fc3f7",e.lightBlue400="#29b6f6",e.lightBlue500="#03a9f4",e.lightBlue600="#039be5",e.lightBlue700="#0288d1",e.lightBlue800="#0277bd",e.lightBlue900="#01579b",e.lightBlueA100="#80d8ff",e.lightBlueA200="#40c4ff",e.lightBlueA400="#00b0ff",e.lightBlueA700="#0091ea",e.cyan50="#e0f7fa",e.cyan100="#b2ebf2",e.cyan200="#80deea",e.cyan300="#4dd0e1",e.cyan400="#26c6da",e.cyan500="#00bcd4",e.cyan600="#00acc1",e.cyan700="#0097a7",e.cyan800="#00838f",e.cyan900="#006064",e.cyanA100="#84ffff",e.cyanA200="#18ffff",e.cyanA400="#00e5ff",e.cyanA700="#00b8d4",e.teal50="#e0f2f1",e.teal100="#b2dfdb",e.teal200="#80cbc4",e.teal300="#4db6ac",e.teal400="#26a69a",e.teal500="#009688",e.teal600="#00897b",e.teal700="#00796b",e.teal800="#00695c",e.teal900="#004d40",e.tealA100="#a7ffeb",e.tealA200="#64ffda",e.tealA400="#1de9b6",e.tealA700="#00bfa5",e.green50="#e8f5e9",e.green100="#c8e6c9",e.green200="#a5d6a7",e.green300="#81c784",e.green400="#66bb6a",e.green500="#4caf50",e.green600="#43a047",e.green700="#388e3c",e.green800="#2e7d32",e.green900="#1b5e20",e.greenA100="#b9f6ca",e.greenA200="#69f0ae",e.greenA400="#00e676",e.greenA700="#00c853",e.lightGreen50="#f1f8e9",e.lightGreen100="#dcedc8",e.lightGreen200="#c5e1a5",e.lightGreen300="#aed581",e.lightGreen400="#9ccc65",e.lightGreen500="#8bc34a",e.lightGreen600="#7cb342",e.lightGreen700="#689f38",e.lightGreen800="#558b2f",e.lightGreen900="#33691e",e.lightGreenA100="#ccff90",e.lightGreenA200="#b2ff59",e.lightGreenA400="#76ff03",e.lightGreenA700="#64dd17",e.lime50="#f9fbe7",e.lime100="#f0f4c3",e.lime200="#e6ee9c",e.lime300="#dce775",e.lime400="#d4e157",e.lime500="#cddc39",e.lime600="#c0ca33",e.lime700="#afb42b",e.lime800="#9e9d24",e.lime900="#827717",e.limeA100="#f4ff81",e.limeA200="#eeff41",e.limeA400="#c6ff00",e.limeA700="#aeea00",e.yellow50="#fffde7",e.yellow100="#fff9c4",e.yellow200="#fff59d",e.yellow300="#fff176",e.yellow400="#ffee58",e.yellow500="#ffeb3b",e.yellow600="#fdd835",e.yellow700="#fbc02d",e.yellow800="#f9a825",e.yellow900="#f57f17",e.yellowA100="#ffff8d",e.yellowA200="#ffff00",e.yellowA400="#ffea00",e.yellowA700="#ffd600",e.amber50="#fff8e1",e.amber100="#ffecb3",e.amber200="#ffe082",e.amber300="#ffd54f",e.amber400="#ffca28",e.amber500="#ffc107",e.amber600="#ffb300",e.amber700="#ffa000",e.amber800="#ff8f00",e.amber900="#ff6f00",e.amberA100="#ffe57f",e.amberA200="#ffd740",e.amberA400="#ffc400",e.amberA700="#ffab00",e.orange50="#fff3e0",e.orange100="#ffe0b2",e.orange200="#ffcc80",e.orange300="#ffb74d",e.orange400="#ffa726",e.orange500="#ff9800",e.orange600="#fb8c00",e.orange700="#f57c00",e.orange800="#ef6c00",e.orange900="#e65100",e.orangeA100="#ffd180",e.orangeA200="#ffab40",e.orangeA400="#ff9100",e.orangeA700="#ff6d00",e.deepOrange50="#fbe9e7",e.deepOrange100="#ffccbc",e.deepOrange200="#ffab91",e.deepOrange300="#ff8a65",e.deepOrange400="#ff7043",e.deepOrange500="#ff5722",e.deepOrange600="#f4511e",e.deepOrange700="#e64a19",e.deepOrange800="#d84315",e.deepOrange900="#bf360c",e.deepOrangeA100="#ff9e80",e.deepOrangeA200="#ff6e40",e.deepOrangeA400="#ff3d00",e.deepOrangeA700="#dd2c00",e.brown50="#efebe9",e.brown100="#d7ccc8",e.brown200="#bcaaa4",e.brown300="#a1887f",e.brown400="#8d6e63",e.brown500="#795548",e.brown600="#6d4c41",e.brown700="#5d4037",e.brown800="#4e342e",e.brown900="#3e2723",e.blueGrey50="#eceff1",e.blueGrey100="#cfd8dc",e.blueGrey200="#b0bec5",e.blueGrey300="#90a4ae",e.blueGrey400="#78909c",e.blueGrey500="#607d8b",e.blueGrey600="#546e7a",e.blueGrey700="#455a64",e.blueGrey800="#37474f",e.blueGrey900="#263238",e.grey50="#fafafa",e.grey100="#f5f5f5",e.grey200="#eeeeee",e.grey300="#e0e0e0",e.grey400="#bdbdbd",e.grey500="#9e9e9e",e.grey600="#757575",e.grey700="#616161",e.grey800="#424242",e.grey900="#212121",e.black="#000000",e.white="#ffffff",e.transparent="rgba(0, 0, 0, 0)",e.fullBlack="rgba(0, 0, 0, 1)",e.darkBlack="rgba(0, 0, 0, 0.87)",e.lightBlack="rgba(0, 0, 0, 0.54)",e.minBlack="rgba(0, 0, 0, 0.26)",e.faintBlack="rgba(0, 0, 0, 0.12)",e.fullWhite="rgba(255, 255, 255, 1)",e.darkWhite="rgba(255, 255, 255, 0.87)",e.lightWhite="rgba(255, 255, 255, 0.54)"},function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=r(18);e.symbolIteratorPonyfill=n,e.iterator=n(i.root),e.$$iterator=e.iterator},function(t,e,r){"use strict";var n=r(0),i=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(18),o=r(328),s=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(o.Action);e.AsyncAction=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(329),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},e}(i.Scheduler);e.AsyncScheduler=o},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.ArgumentOutOfRangeError=i},function(t,e,r){"use strict";function n(t,e){return e.map(function(e){return Object.assign({},e,{name:t(e.name)})})}r.d(e,"e",function(){return d}),e.f=n,r.d(e,"c",function(){return v}),r.d(e,"d",function(){return T}),r.d(e,"a",function(){return j});var i=r(27),o=(r.n(i),r(16)),s=(r.n(o),r(24)),a=(r.n(s),r(573)),u=r(174),c=r(46),l=Object(o.curry)(function(t,e){return t.i18n.getTranslation(e)}),f={currentUser:{userSettings:{}}},p=s.Observable.fromPromise(Object(i.getInstance)()).catch(s.Observable.of(f)),h=p.map(Object(o.get)("currentUser")),d=s.Observable.combineLatest(p,s.Observable.of(l),function(t,e){return e(t)}),b=function(t){return t.replace(/^\.\./,"")},y=function(t){return/^(?:https?:)?\/\//.test(t)},v=c.a,m=Object(o.curry)(function(t,e){return y(e)?e:t+b(e)}),g=function(t){return t.icon||"/icons/program.png"},w=Object(o.curry)(function(t,e){return Object.assign({},e,{icon:m(t,g(e))})}),_=Object(o.curry)(function(t,e){return Object.assign({},e,{action:m(t,e.defaultAction)})}),O=function(t){return Object(o.compose)(w(t),_(t))},x=function(t){return Object.assign({},t,{label:t.displayName||t.name})},S=Object(o.pick)(["action","icon","description","label","name","parentApp"]),k=function(t){return Object(o.compose)(S,O(t),x)},T=function(t,e){return Object(o.map)(k(t),e)},C=s.Observable.combineLatest(d,u.b,n).combineLatest(p,function(t,e){return{items:t,d2:e}}).map(function(t){var e=t.items,r=t.d2;return T(v(r),e)}).catch(s.Observable.of([])),j=u.a.combineLatest(p,function(t,e){return{items:t,d2:e}}).map(function(t){var e=t.items,r=t.d2;return T(v(r),e)}).catch(s.Observable.of([])),P=s.Observable.combineLatest(j,C,h,a.a,function(t,e,r,n){return{appItems:t,profileItems:e,currentUser:r,settings:n}});e.b=P},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";e.__esModule=!0;var n=r(136),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={set:function(t,e,r){t[e]=r}}},function(t,e,r){"use strict";function n(t){return"function"==typeof t}e.isFunction=n},function(t,e,r){"use strict";var n=r(18),i=n.root.Symbol;e.rxSubscriber="f