core-resource-app-test
Version:
App that contains assets and scripts for the core apps
1 lines • 490 kB
JavaScript
var Dhis2HeaderBar=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=275)}([function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(22),i=n(352),o=n(72),s=n(103),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=Object(i.a)(t,e,n);if(r?r.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 n=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:Object(s.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(70),i=n(13),o=n(152),s=n(71),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!n){this.destination=o.a;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return a(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);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,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.a),c=function(t){function e(e,n,i,s){t.call(this),this._parentSubscriber=e;var a,u=this;Object(r.a)(n)?a=n:n&&(a=n.next,i=n.error,s=n.complete,n!==o.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=i,this._complete=s}return a(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 n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),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,n){try{e.call(this._context,n)}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,n){"use strict";n.d(e,"a",function(){return o});var r=n(1),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r.a)},function(t,e,n){"use strict";function r(t,e,n,r){var p=new l.a(t,n,r);if(p.closed)return null;if(e instanceof u.a)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(Object(o.a)(e)){for(var h=0,d=e.length;h<d&&!p.closed;h++)p.next(e[h]);p.closed||p.complete()}else{if(Object(s.a)(e))return e.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){i.a.setTimeout(function(){throw t})}),p;if(e&&"function"==typeof e[c.a])for(var y=e[c.a]();;){var b=y.next();if(b.done){p.complete();break}if(p.next(b.value),p.closed)break}else if(e&&"function"==typeof e[f.a]){var v=e[f.a]();if("function"==typeof v.subscribe)return v.subscribe(new l.a(t,n,r));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m=Object(a.a)(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}e.a=r;var i=n(22),o=n(154),s=n(155),a=n(150),u=n(0),c=n(56),l=n(361),f=n(72)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(60),i=n(61),o=new i.a(r.a)},function(t,e,n){t.exports=n(320)()},function(t,e,n){"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 n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(289),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(136),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(95),i=function(t){return t&&t.__esModule?t:{default:t}}(r);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,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(313),o=r(i),s=n(317),a=r(s),u=n(95),c=r(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,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.a?e.errors:e)},[])}n.d(e,"a",function(){return l});var i=n(27),o=n(150),s=n(70),a=n(19),u=n(15),c=n(151),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 n=this,l=n._parent,f=n._parents,p=n._unsubscribe,h=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=f?f.length:0;l;)l.remove(this),l=++d<y&&f[d]||null;if(Object(s.a)(p)){var b=Object(a.a)(p).call(this);b===u.a&&(e=!0,t=t||(u.a.e instanceof c.a?r(u.a.e.errors):[u.a.e]))}if(Object(i.a)(h))for(d=-1,y=h.length;++d<y;){var v=h[d];if(Object(o.a)(v)){var b=Object(a.a)(v.unsubscribe).call(v);if(b===u.a){e=!0,t=t||[];var m=u.a.e;m instanceof c.a?t=t.concat(r(m.errors)):t.push(m)}}}if(e)throw new c.a(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}()},function(t,e,n){"use strict";n.d(e,"c",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p});var r=n(0),i=n(1),o=n(13),s=n(73),a=n(153),u=n(71),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=function(t){function e(e){t.call(this,e),this.destination=e}return c(e,t),e}(i.a),f=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return c(e,t),e.prototype[u.a]=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 s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].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 s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new a.a(this,t))},e.prototype.asObservable=function(){var t=new r.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(r.a),p=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return c(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):o.a.EMPTY},e}(f)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},function(t,e){t.exports=fp},function(t,e,n){"use strict";function r(t,e){if(void 0!==t)return!0;throw new Error([e||"Value","should be provided"].join(" "))}function i(t,e,n){if(r(t,n),r(e,"Type"),"function"==typeof e&&t instanceof e||"string"==typeof e&&(void 0===t?"undefined":d(t))===e)return!0;throw new Error(["Expected",n||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=r,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:r,isArray:a,isDefined:c,isInteger:l,isNumeric:f,isString:s,isType:o,contains:p,isValidUid:h}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.a.e=t,s.a}}function i(t){return o=t,r}e.a=i;var o,s=n(15)},function(t,e,n){"use strict";e.__esModule=!0;var r=n(128),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"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,n,r){if(r=r||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],n,r);return i}return this.create(t,e,n,r)},create:function(t,e,n,r){return t=t||"450ms",e=e||"all",n=n||"0ms",r=r||"linear",e+" "+t+" "+r+" "+n}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return s});var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=void 0!==t&&t,s=r||o||i}).call(e,n(47))},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";var r=n(14);n.d(e,"c",function(){return r.b});var i=n(0);n.d(e,"a",function(){return i.a});var o=(n(353),n(356),n(359),n(362),n(365),n(368),n(370),n(373),n(374),n(377),n(380),n(382),n(385),n(388),n(393),n(395),n(396),n(399),n(400),n(402),n(405),n(408),n(411),n(414),n(416),n(418),n(427),n(431),n(433),n(435),n(437),n(439),n(441),n(443),n(445),n(447),n(449),n(451),n(453),n(455),n(457),n(459),n(461),n(463),n(465),n(467),n(469),n(471),n(473),n(475),n(477),n(479),n(481),n(483),n(485),n(487),n(489),n(491),n(493),n(495),n(497),n(499),n(501),n(503),n(505),n(507),n(509),n(511),n(513),n(515),n(517),n(519),n(520),n(522),n(524),n(526),n(528),n(530),n(532),n(534),n(536),n(538),n(540),n(542),n(544),n(546),n(548),n(550),n(552),n(554),n(556),n(558),n(560),n(562),n(564),n(566),n(568),n(570),n(572),n(574),n(576),n(578),n(580),n(582),n(584),n(586),n(595),n(597),n(599),n(601),n(603),n(605),n(607),n(609),n(611),n(613),n(614),n(616),n(618),n(620),n(622)),s=(n.n(o),n(623),n(625),n(627),n(629),n(631),n(633),n(635),n(637),n(13),n(1),n(74),n(82));n.d(e,"b",function(){return s.a});var a=(n(207),n(201),n(57),n(80),n(62),n(73),n(236),n(151),n(248),n(121),n(639),n(252),n(163),n(103),n(246)),u=n(5),c=n(210),l=n(642),f=n(71),p=n(56),h=n(72);n(164),a.a,c.a,l.a,u.a,f.a,h.a,p.a},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.a=r},function(t,e,n){var r=n(92)("wks"),i=n(66),o=n(31).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";(function(t){function r(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 n=[];return t&&n.push(t),n.push(e),n.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 n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(255);var u=n(17),c=n(64),l=n(258),f=function(t){return t&&t.__esModule?t:{default:t}}(l),p=function(){function e(n){if(r(this,e),"function"==typeof n)this.fetch=n.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,n){return this.request("GET",o(this.baseUrl,t),e,n)}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(this.baseUrl,t),i=e;return n.headers=new Headers(n.headers||{}),void 0!==e&&("FormData"===e.constructor.name?(n.headers.delete("Content-Type"),i=e):n.headers.has("Content-Type")&&n.headers.get("Content-Type").toLocaleLowerCase().startsWith("text/")?i=String(e):(n.headers.set("Content-Type","application/json"),i=JSON.stringify(e))),this.request("POST",r,i,n)}},{key:"delete",value:function(t,e){return this.request("DELETE",o(this.baseUrl,t),void 0,e)}},{key:"update",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!0===n?t+"?"+i():t;return this.request("PUT",o(this.baseUrl,r),JSON.stringify(e))}},{key:"request",value:function(t,e,n){function r(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("?"))),n&&Array.isArray(n.filter)){var f=n.filter.map(function(t){return t.split(":").map(encodeURIComponent).join(":")});l=(0,c.customEncodeURIComponent)(l)+(l.length?"&":"")+"filter="+f.join("&filter="),delete n.filter}n&&"GET"===t&&Object.keys(n).forEach(function(t){l=l+(l.length>0?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n[t])}),l.length&&(a=a+"?"+l);var p=function(e,r,i){var o=Object.assign({},s.defaultFetchOptions,r),a=new Headers(r.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"===n.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,n);return new Promise(function(t,e){i.fetch(a,p).then(function(n){n.ok?n.text().then(function(e){return t(r(e))}):n.text().then(function(t){Object({NODE_ENV:"production"})&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_event||console.warn("API request failed with status "+n.status+" "+n.statusText+"\n","Request: "+p.method+" "+a),e(r(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,n(47))},function(t,e,n){"use strict";(function(t){function r(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}n.d(e,"a",function(){return f}),e.b=r,n.d(e,"e",function(){return d}),e.d=o;var s=n(55),a=(n.n(s),n(24)),u=n(40),c=n.n(u),l=n(16),f=(n.n(l),125),p={},h=Object(l.curry)(function(t,e,n){return t()?e:n}),d=h(function(){return i()>1150});t.document&&a.a.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,n(47))},function(t,e,n){var r=n(31),i=n(23),o=n(86),s=n(42),a=function(t,e,n){var u,c,l,f=t&a.F,p=t&a.G,h=t&a.S,d=t&a.P,y=t&a.B,b=t&a.W,v=p?i:i[e]||(i[e]={}),m=v.prototype,g=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(u in n)(c=!f&&g&&void 0!==g[u])&&u in v||(l=c?g[u]:n[u],v[u]=p&&"function"!=typeof g[u]?n[u]:y&&c?o(l,r):b&&g[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}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 n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(43),i=n(129),o=n(87),s=Object.defineProperty;e.f=n(37)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(105),o=n(34),s=n(25),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return a(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];Object(s.a)(r)?t.pop():r=null;var a=t.length;return a>1?new e(t,r):1===a?new i.a(t[0],r):new o.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return i(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r.a)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default,n=e.getApi();n.setBaseUrl("");var r={getBaseUrl:function(){return this.activities.dhis.href}};return n.get(""+t).then(function(t){return Object.assign({},t,r)})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,e=t.getApi();return E.baseUrl&&C&&e.setBaseUrl(E.baseUrl),e.get("userSettings")}function a(t,e){var n=[],r=function(e){return t.get("schemas/"+e,{fields:S.fieldsForSchemas})};if(Array.isArray(e)){var i=e.map(r).concat([]),o=Promise.all(i).then(function(t){return{schemas:t}});n.push(o),e.length>0?n.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1})):n.push({attributes:[]})}else n.push(t.get("schemas",{fields:S.fieldsForSchemas})),n.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1}));return n}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.getLogger(),r=e.getApi(),o=x.default.create(E,t);o.headers&&r.setDefaultHeaders(o.headers);var u={models:void 0,model:d.default,Api:e,system:m.default.getSystem(),i18n:w.default.getI18n(),dataStore:T.default.getDataStore()};x.default.processConfigForD2(o,u),C?C=!1:P=l.Deferred.create();var c=a(r,o.schemas),f=[r.get("me",{fields:":all,organisationUnits[id],userGroups[id],userCredentials[:all,!user,userRoles[id]"}),r.get("me/authorization"),s(e)],h=[r.get("system/info"),r.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 n=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,n))}),u.currentUser=k.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 n.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,n(255);var l=n(64),f=n(256),p=r(f),h=n(649),d=r(h),y=n(28),b=r(y),v=n(258),m=r(v),g=n(668),w=r(g),_=n(669),x=r(_),O=n(670),k=r(O),S=n(262),j=n(673),T=r(j),C=!0,P=l.Deferred.create(),E=x.default.create(),M=e.config=E;e.default={init:u,config:M,getInstance:c,getUserSettings:s,getManifest:o}},function(t,e){t.exports=ReactDOM},function(t,e,n){t.exports=!n(44)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";function r(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(r,e));var s=Object.create(n,i.a);return s.source=n,s.subjectFactory=r,s}}e.a=r;var i=n(201),o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}()},function(t,e,n){var r,i;!function(o,s){"use strict";r=s,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i)}(0,function(){"use strict";function t(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[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 n(t,e){for(var n=0;n<u.length;n++){var r=u[n];this[r]=n<t?s:this.methodFactory(r,t,e)}this.log=this.debug}function r(t,e,r){return function(){typeof console!==a&&(n.call(this,e,r),this[t].apply(this,arguments))}}function i(t,n,i){return e(t)||r.apply(this,arguments)}function o(t,e,r){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,n=e.indexOf(encodeURIComponent(f)+"=");-1!==n&&(t=/^([^;]+)/.exec(e.slice(n))[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=r||i,l.getLevel=function(){return c},l.setLevel=function(e,r){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!==r&&o(e),n.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,n){t.exports=n(277)()},function(t,e,n){var r=n(32),i=n(51);t.exports=n(37)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(50);t.exports=function(t){if(!r(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,n){var r=n(132),i=n(89);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){return t.replace(/\/{1,}$/,"")}function i(t){var e=t.protocol,n=t.host,i=t.pathname;return r(e+"//"+n+(/^\//.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,n){"use strict";function r(t,e,n){return n?[t,e]:t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},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,n){var r=n(131),i=n(93);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(89);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){"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,n){"use strict";n.d(e,"a",function(){return i});var r=n(22),i=function(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.a.of(this.value);case"E":return r.a.throw(this.error);case"C":return r.a.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}()},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new a(t,e,n))}}e.a=r;var i=n(4),o=n(3),s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}(),u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return s(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(i.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}e.a=r;var i=n(27)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(22),i=n(391),o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return o(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 n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),r.a.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:r.a.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 n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(392),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return i(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}},e}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},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 r(e,t),e}(Error)},function(t,e,n){"use strict";function r(t,e){return arguments.length>=2?function(n){return Object(a.a)(Object(i.a)(t,e),Object(o.a)(1),Object(s.a)(e))(n)}:function(e){return Object(a.a)(Object(i.a)(function(e,n,r){return t(e,n,r+1)}),Object(o.a)(1))(e)}}e.a=r;var i=n(117),o=n(118),s=n(113),a=n(103)},function(t,e,n){"use strict";function r(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 n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.apply(this,[e].concat(r))}}function s(t,e,n){var r={enumerable:!0,configurable:!1,writable:!1,value:n};Object.defineProperty(t,e,r)}function a(t,e){return Object.keys(e).filter(function(t){return e.hasOwnProperty(t)}).forEach(function(n){t[n]=e[n]}),t}function u(t){return function(e){if(e)return e[t]}}function c(t,e){if(!e||!t)return t;var n=/api\/([1-9][0-9])/,r=e.match(n),i=r&&r[1],o=t&&!n.test(t);if(i&&o){var s=r[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 n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),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;r(this,t),this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}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,n){"use strict";function r(t,e){return e.map(function(e){return Object.assign({},e,{name:t(e.name)})})}n.d(e,"e",function(){return d}),e.f=r,n.d(e,"c",function(){return v}),n.d(e,"d",function(){return j}),n.d(e,"a",function(){return C});var i=n(35),o=(n.n(i),n(16)),s=(n.n(o),n(24)),a=n(676),u=n(264),c=n(48),l=Object(o.curry)(function(t,e){return t.i18n.getTranslation(e)}),f={currentUser:{userSettings:{}}},p=s.a.fromPromise(Object(i.getInstance)()).catch(s.a.of(f)),h=p.map(Object(o.get)("currentUser")),d=s.a.combineLatest(p,s.a.of(l),function(t,e){return e(t)}),y=function(t){return t.replace(/^\.\./,"")},b=function(t){return/^(?:https?:)?\/\//.test(t)},v=c.a,m=Object(o.curry)(function(t,e){return b(e)?e:t+y(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)})}),x=function(t){return Object(o.compose)(w(t),_(t))},O=function(t){return Object.assign({},t,{label:t.displayName||t.name})},k=Obj