contiago-toolbar
Version:
One of the options for outputting content from contiago xml-server
1 lines • 2.79 MB
JavaScript
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=0)}({"./app/app.js":function(e,t,n){"use strict";function r(){}function o(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.getDisplayName,l=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=o.methodName,s=void 0===u?"connectAdvanced":u,i=o.renderCountProp,c=void 0===i?void 0:i,d=o.shouldHandleStateChanges,f=void 0===d||d,m=o.storeKey,h=void 0===m?"store":m,v=o.withRef,p=void 0!==v&&v,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),b=h+"Subscription",j=kt++,y=((t={})[h]=yt,t[b]=jt,t),g=((n={})[b]=jt,n);return function(t){wt()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),a=Pt({},_,{getDisplayName:l,methodName:s,renderCountProp:c,shouldHandleStateChanges:f,storeKey:h,withRef:p,displayName:o,wrappedComponentName:n,WrappedComponent:t}),u=function(n){function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=j,r.state={},r.renderCount=0,r.store=e[h]||t[h],r.propsMode=Boolean(e[h]),r.setWrappedInstance=r.setWrappedInstance.bind(r),wt()(r.store,'Could not find "'+h+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,n),l.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[b]=t||this.context[b],e},l.prototype.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},l.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=r,this.store=null,this.selector.run=r,this.selector.shouldComponentUpdate=!1},l.prototype.getWrappedInstance=function(){return wt()(p,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+s+"() call."),this.wrappedInstance},l.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},l.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},l.prototype.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[b];this.subscription=new zt(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(St)):this.notifyNestedSubs()},l.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.prototype.addExtraProps=function(e){if(!(p||c||this.propsMode&&this.subscription))return e;var t=Pt({},e);return p&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[b]=this.subscription),t},l.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(mt.createElement)(t,this.addExtraProps(e.props))},l}(mt.Component);return u.WrappedComponent=t,u.displayName=o,u.childContextTypes=g,u.contextTypes=y,u.propTypes=y,Ot()(u,t)}}function a(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function l(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Ct.call(t,n[o])||!a(e[n[o]],t[n[o]]))return!1;return!0}function u(e,t,n){function r(){f===d&&(f=d.slice())}function o(){return c}function a(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),f.push(e),function(){if(t){t=!1,r();var n=f.indexOf(e);f.splice(n,1)}}}function l(e){if(!Zt(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,c=i(c,e)}finally{m=!1}for(var t=d=f,n=0;n<t.length;n++)t[n]();return e}var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,c=t,d=[],f=d,m=!1;return l({type:en.INIT}),(s={dispatch:l,subscribe:a,getState:o,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,l({type:en.INIT})}})[Qt.a]=function(){var e,t=a;return(e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}})[Qt.a]=function(){return this},e},s}function s(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],o=t.slice(0,-1);return function(){return o.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}function c(e){return function(t,n){function r(){return o}var o=e(t,n);return r.dependsOnOwnProps=!1,r}}function d(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function f(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=d(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=d(o),o=r(t,n)),o},r}}function m(e,t,n){return on({},n,e,t)}function h(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function v(e,t,n,r,o){function a(o,a){var i,v,p=!u(a,d),_=!l(o,c);return c=o,d=a,p&&_?(f=e(c,d),t.dependsOnOwnProps&&(m=t(r,d)),h=n(f,m,d)):p?(e.dependsOnOwnProps&&(f=e(c,d)),t.dependsOnOwnProps&&(m=t(r,d)),h=n(f,m,d)):_?(i=e(c,d),v=!s(i,f),f=i,v&&(h=n(f,m,d)),h):h}var l=o.areStatesEqual,u=o.areOwnPropsEqual,s=o.areStatePropsEqual,i=!1,c=void 0,d=void 0,f=void 0,m=void 0,h=void 0;return function(o,l){return i?a(o,l):(f=e(c=o,d=l),m=t(r,d),h=n(f,m,d),i=!0,h)}}function p(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,a),u=r(e,a),s=o(e,a);return(a.pure?v:h)(l,u,s,e,a)}function _(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function b(e,t){return e===t}function j(e,t){return e===t}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qn;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})}function q(e){var t={dispatch:zn.a,subscribe:zn.a,getState:zn.a,replaceReducer:zn.a,runSaga:zn.a,injectedReducers:Bn.a,injectedSagas:Bn.a};wt()(Cn()(e,t),"(app/utils...) injectors: Expected a valid redux store")}function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments[1];switch(t.type){case mn:return e.set("location",t.newRoute).set("history",[].concat(O(e.toJS().history),[t.newRoute]));case hn:var n=e.toJS().history,r=n[n.length-2],o=[].concat(O(n.slice(0,n.length-1)));return e.set("location",r).set("history",o);default:return e}}function w(e){return Object(An.combineReducers)(Yn({route:x,global:Kn,language:Vn},e))}function M(e){return q(e),{injectReducer:function(e,t){return function(t,n){wt()(kn()(t)&&!Mn()(t)&&zn()(n),"(app/utils...) injectReducer: Expected `reducer` to be a reducer function"),Reflect.has(e.injectedReducers,t)&&e.injectedReducers[t]===n||(e.injectedReducers[t]=n,e.replaceReducer(w(e.injectedReducers)))}}(e)}}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function z(e){return q(e),{injectSaga:function(e,t){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=tr({},n,{mode:n.mode||Zn}),a=o.saga,l=o.mode;rr(t),or(o);var u=Reflect.has(e.injectedSagas,t);(!u||u&&l!==Qn&&l!==er)&&(e.injectedSagas[t]=tr({},o,{task:e.runSaga(a,r)}))}}(e),ejectSaga:function(e,t){return function(t){if(rr(t),Reflect.has(e.injectedSagas,t)){var n=e.injectedSagas[t];n.mode!==Qn&&(n.task.cancel(),e.injectedSagas[t]="done")}}}(e)}}function P(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){var n,r;if(1===t.length&&Object(zr.a)(t[0])&&(t=t[0]),!t.length)return Object(Or.a)();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function S(e){var t=Object(Fr.b)(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||0,l=t.day||0,u=t.hour||0,s=t.minute||0,i=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ar.a.call(Dr,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Dr.length;++r)if(e[Dr[r]]){if(n)return!1;parseFloat(e[Dr[r]])!==Object(Tr.a)(e[Dr[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*i+6e4*s+1e3*u*60*60,this._days=+l+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=Object(Br.b)(),this._bubble()}function C(e){return e instanceof S}function F(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function B(e,t){Object(Ur.a)(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Object(Lr.a)(~~(e/60),2)+t+Object(Lr.a)(~~e%60,2)})}function T(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Jr)||["-",0,0],o=60*r[1]+Object(Tr.a)(r[2]);return 0===o?0:"+"===r[0]?o:-o}function A(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Object(Mr.c)(e)||Object(Gr.a)(e)?e.valueOf():Object(Or.a)(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),qr.a.updateOffset(n,!1),n):Object(Or.a)(e).local()}function D(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function R(){return!!this.isValid()&&this._isUTC&&0===this._offset}function I(e,t){var n,r,o,a=e,l=null;return C(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Object(Rr.a)(e)?(a={},t?a[t]=e:a.milliseconds=e):(l=$r.exec(e))?(n="-"===l[1]?-1:1,a={y:0,d:Object(Tr.a)(l[Nr.a])*n,h:Object(Tr.a)(l[Nr.b])*n,m:Object(Tr.a)(l[Nr.d])*n,s:Object(Tr.a)(l[Nr.f])*n,ms:Object(Tr.a)(F(1e3*l[Nr.c]))*n}):(l=Xr.exec(e))?(n="-"===l[1]?-1:(l[1],1),a={y:N(l[2],n),M:N(l[3],n),w:N(l[4],n),d:N(l[5],n),h:N(l[6],n),m:N(l[7],n),s:N(l[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=function(e,t){var n;return e.isValid()&&t.isValid()?(t=A(t,e),e.isBefore(t)?n=L(e,t):((n=L(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Object(Or.a)(a.from),Object(Or.a)(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new S(a),C(e)&&Object(Ir.a)(e,"_locale")&&(r._locale=e._locale),r}function N(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function L(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function U(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(Object(Er.b)(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),W(this,I(n="string"==typeof n?+n:n,r),e),this}}function W(e,t,n,r){var o=t._milliseconds,a=F(t._days),l=F(t._months);e.isValid()&&(r=null==r||r,l&&Object(Cr.k)(e,Object(Sr.a)(e,"Month")+l*n),a&&Object(Sr.c)(e,"Date",Object(Sr.a)(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&qr.a.updateOffset(e,a||l))}function H(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function K(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Object(Br.b)(e))&&(this._locale=t),this)}function G(){return this._locale}function V(e,t){Object(Ur.a)(0,[e,e.length],0,t)}function Y(e,t,n,r,o){var a;return null==e?Object(uo.b)(this,r,o).year:(t>(a=Object(uo.c)(e,r,o))&&(t=a),function(e,t,n,r,o){var a=Object(uo.a)(e,t,n,r,o),l=Object(so.b)(a.year,0,a.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}.call(this,e,t,n,r,o))}function J(e,t){t[Nr.c]=Object(Tr.a)(1e3*("0."+e))}function $(e){return e}function X(e,t,n,r){var o=Object(Br.b)(),a=Object(xr.a)().set(r,t);return o[n](a,e)}function Z(e,t,n){if(Object(Rr.a)(e)&&(t=e,e=void 0),e=e||"",null!=t)return X(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=X(e,r,n,"month");return o}function Q(e,t,n,r){"boolean"==typeof e?(Object(Rr.a)(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,Object(Rr.a)(t)&&(n=t,t=void 0),t=t||"");var o,a=Object(Br.b)(),l=e?a._week.dow:0;if(null!=n)return X(t,(n+l)%7,r,"day");var u=[];for(o=0;o<7;o++)u[o]=X(t,(o+l)%7,r,"day");return u}function ee(e,t,n,r){var o=I(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function te(e){return e<0?Math.floor(e):Math.ceil(e)}function ne(e){return 4800*e/146097}function re(e){return 146097*e/4800}function oe(e){return function(){return this.as(e)}}function ae(e){return function(){return this.isValid()?this._data[e]:NaN}}function le(e){return(e>0)-(e<0)||+e}function ue(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Go(this._milliseconds)/1e3,r=Go(this._days),o=Go(this._months);e=Object(to.a)(n/60),t=Object(to.a)(e/60),n%=60,e%=60;var a=Object(to.a)(o/12),l=o%=12,u=r,s=t,i=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",m=le(this._months)!==le(d)?"-":"",h=le(this._days)!==le(d)?"-":"",v=le(this._milliseconds)!==le(d)?"-":"";return f+"P"+(a?m+a+"Y":"")+(l?m+l+"M":"")+(u?h+u+"D":"")+(s||i||c?"T":"")+(s?v+s+"H":"")+(i?v+i+"M":"")+(c?v+c+"S":"")}function se(e,t,n){if(!t(e))throw he("error","uncaught at check",n),new Error(n)}function ie(e,t){return cl.notUndef(e)&&il.call(e,t)}function ce(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$a({},e),n=new Promise(function(e,n){t.resolve=e,t.reject=n});return t.promise=n,t}function fe(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise(function(r){n=setTimeout(function(){return r(t)},e)});return r[nl]=function(){return clearTimeout(n)},r}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hl,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],o={name:n,next:e,throw:t,return:vl};return r&&(o[el]=!0),"undefined"!=typeof Symbol&&(o[Symbol.iterator]=function(){return o}),o}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function ve(e,t){return function(){return e.apply(void 0,arguments)}}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,o=0,a=0,l=function(t){n[o]=t,o=(o+1)%e,r++},u=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},s=function(){for(var e=[];r;)e.push(u());return e};return{isEmpty:function(){return 0==r},put:function(u){if(r<e)l(u);else{var i=void 0;switch(t){case gl:throw new Error(yl);case ql:n[o]=u,a=o=(o+1)%e;break;case Ol:i=2*e,n=s(),r=n.length,o=n.length,a=0,n.length=i,e=i,l(u)}}},take:u,flush:s}}function _e(e){try{je(),e()}finally{ye()}}function be(e){Ml.push(e),El||(je(),ge())}function je(){El++}function ye(){El--}function ge(){ye();for(var e=void 0;!El&&void 0!==(e=Ml.shift());)_e(e)}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wl.none(),n=arguments[2];arguments.length>2&&se(n,cl.func,"Invalid match function passed to eventChannel");var r=function(){function e(){if(n&&r.length)throw _l("Cannot have a closed channel with pending takers");if(r.length&&!t.isEmpty())throw _l("Cannot have pending takers with non empty buffer")}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wl.fixed(),n=!1,r=[];return se(t,cl.buffer,Sl),{take:function(o){e(),se(o,cl.func,"channel.take's callback must be a function"),n&&t.isEmpty()?o(Pl):t.isEmpty()?(r.push(o),o.cancel=function(){return ce(r,o)}):o(t.take())},put:function(o){if(e(),se(o,cl.notUndef,Cl),!n){if(!r.length)return t.put(o);for(var a=0;a<r.length;a++){var l=r[a];if(!l[tl]||l[tl](o))return r.splice(a,1),l(o)}}},flush:function(r){e(),se(r,cl.func,"channel.flush' callback must be a function"),r(n&&t.isEmpty()?Pl:t.flush())},close:function(){if(e(),!n&&(n=!0,r.length)){var t=r;r=[];for(var o=0,a=t.length;o<a;o++)t[o](Pl)}},get __takers__(){return r},get __closed__(){return n}}}(t),o=function(){r.__closed__||(a&&a(),r.close())},a=e(function(e){kl(e)?o():n&&!n(e)||r.put(e)});if(r.__closed__&&a(),!cl.func(a))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:r.take,flush:r.flush,close:o}}function Oe(e,t){function n(t,n){if(o===Bl)return Fl;if(n)throw o=Bl,n;r&&r(t);var a=e[o](),l=a[0],u=a[1],s=a[2];return r=s,(o=l)===Bl?Fl:u}var r=void 0,o=t;return me(n,function(e){return n(null,e)},arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iterator",!0)}function xe(e){return cl.channel(e)?"channel":Array.isArray(e)?String(e.map(function(e){return String(e)})):String(e)}function we(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a={done:!1,value:ze(e)},l=void 0,u=function(e){return l=e};return Oe({q1:function(){return["q2",a,u]},q2:function(){return l===Pl?[Bl]:["q1",(e=l,{done:!1,value:Fe.apply(void 0,[t].concat(r,[e]))})];var e}},"q1","takeEvery("+xe(e)+", "+t.name+")")}function Me(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a={done:!1,value:ze(e)},l=function(e){return{done:!1,value:Fe.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length>1)return ke(n.map(function(t){return e(t)}));var o=n[0];return 1===n.length&&(se(o,cl.notUndef,"cancel(task): argument task is undefined"),se(o,cl.task,"cancel(task): argument "+o+" is not a valid Task object "+Kl)),Gl(Ul,o||ol)}(e)}},s=void 0,i=void 0,c=function(e){return s=e},d=function(e){return i=e};return Oe({q1:function(){return["q2",a,d]},q2:function(){return i===Pl?[Bl]:s?["q3",u(s)]:["q1",l(i),c]},q3:function(){return["q1",l(i),c]}},"q1","takeLatest("+xe(e)+", "+t.name+")")}function Ee(e,t,n){for(var r=arguments.length,o=Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var l=void 0,u=void 0,s={done:!1,value:function(e,t){return se(e,cl.notUndef,"actionChannel(pattern,...): argument pattern is undefined"),arguments.length>1&&(se(t,cl.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),se(t,cl.buffer,"actionChannel(pattern, buffer): argument "+t+" is not a valid buffer")),Gl(Hl,{pattern:e,buffer:t})}(t,wl.sliding(1))},i={done:!1,value:Ce(fe,e)},c=function(e){return l=e},d=function(e){return u=e};return Oe({q1:function(){return["q2",s,d]},q2:function(){return["q3",{done:!1,value:ze(u)},c]},q3:function(){return l===Pl?[Bl]:["q4",(e=l,{done:!1,value:Fe.apply(void 0,[n].concat(o,[e]))})];var e},q4:function(){return["q2",i]}},"q1","throttle("+xe(t)+", "+n.name+")")}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if(arguments.length&&se(arguments[0],cl.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),cl.pattern(e))return Gl(Dl,{pattern:e});if(cl.channel(e))return Gl(Dl,{channel:e});throw new Error("take(patternOrChannel): argument "+String(e)+" is not valid channel or a valid pattern")}function Pe(e,t){return arguments.length>1?(se(e,cl.notUndef,"put(channel, action): argument channel is undefined"),se(e,cl.channel,"put(channel, action): argument "+e+" is not a valid channel"),se(t,cl.notUndef,"put(channel, action): argument action is undefined")):(se(e,cl.notUndef,"put(action): argument action is undefined"),t=e,e=null),Gl(Rl,{channel:e,action:t})}function ke(e){return Gl(Il,e)}function Se(e,t,n){se(t,cl.notUndef,e+": argument fn is undefined");var r=null;if(cl.array(t)){var o=t;r=o[0],t=o[1]}else if(t.fn){var a=t;r=a.context,t=a.fn}return r&&cl.string(t)&&cl.func(r[t])&&(t=r[t]),se(t,cl.func,e+": argument "+t+" is not a function"),{context:r,fn:t,args:n}}function Ce(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Gl(Nl,Se("call",e,n))}function Fe(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Gl(Ll,Se("fork",e,n))}function Be(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 0===arguments.length?e=sl:(se(e,cl.notUndef,"select(selector,[...]): argument selector is undefined"),se(e,cl.func,"select(selector,[...]): argument "+e+" is not a function")),Gl(Wl,{selector:e,args:n})}function Te(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Fe.apply(void 0,[Me,e,t].concat(r))}function Ae(){var e,t,n,r,o=arguments;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:for(a.prev=0,e=o.length,t=Array(e),n=0;n<e;n++)t[n]=o[n];return a.next=4,Ce(Xl.a,"/content/article/"+t[0].payload);case 4:return r=a.sent,a.next=7,Pe(Ha(r));case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(0),a.next=13,Pe(Ka(a.t0));case 13:case"end":return a.stop()}},Zl,this,[[0,9]])}function De(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te(Ia,Ae);case 2:case"end":return e.stop()}},Ql,this)}function Re(){var e,t,n,r,o,a,l,u,s,i=arguments;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:for(c.prev=0,e=i.length,t=Array(e),n=0;n<e;n++)t[n]=i[n];return r=t[0].payload,o="/content/article/rubric/"+r,c.next=6,Be();case 6:return a=c.sent,l=Gs()(a),u=Ks()(a),c.next=11,Ce(Xl.a,o,{getParamsObject:{page:l,size:u}});case 11:return s=c.sent,c.next=14,Pe(ai(s.totalPages));case 14:return c.next=16,Pe(ni(s.content));case 16:c.next=22;break;case 18:return c.prev=18,c.t0=c.catch(0),c.next=22,Pe(ri(c.t0));case 22:case"end":return c.stop()}},ui,this,[[0,18]])}function Ie(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te(Vs,Re);case 2:case"end":return e.stop()}},si,this)}function Ne(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function Le(e,t){var n=null;return-1!==nc.indexOf(t)&&Yl&&(n={passive:!e.props.preventDefault}),n}function Ue(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function We(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function He(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ce(Xl.a,"/config");case 3:return e=t.sent,t.next=6,Pe(dr(e));case 6:t.next=13;break;case 8:return t.prev=8,t.t0=t.catch(0),console.log(t.t0,"err during output config uploading"),t.next=13,Pe(fr(t.t0));case 13:case"end":return t.stop()}},Tc,this,[[0,8]])}function Ke(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ce(Xl.a,"/content/article/random");case 3:return e=t.sent,t.next=6,Pe(vr(e));case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(0),t.next=12,Pe(pr(t.t0));case 12:case"end":return t.stop()}},Ac,this,[[0,8]])}function Ge(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te(Dn,He);case 2:return e.next=4,Te(Ln,Ke);case 4:case"end":return e.stop()}},Dc,this)}function Ve(e){var t,n,r,o,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(r=a[t])for(o in r)Vc.call(r,o)&&(e[o]=r[o]);return e}function Ye(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function Je(e){this.id=e}function $e(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function Xe(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function Ze(e,t){this.id=e,this.options=t}function Qe(e,t,n){var r="string"==typeof e?Qe.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(Qe.formats,n),Jc(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,o),l=this;this.format=function(e){return l._format(a,e)}}function et(e,t){t=t||{},id(e)&&(e=e.concat()),ld(this,"_locale",{value:this._resolveLocale(e)}),ld(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),ld(this,"_locales",{value:e}),ld(this,"_fields",{value:this._findFields(this._locale)}),ld(this,"_messages",{value:ud(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}function tt(e){var t,n,r,o,a=[],l=[];for(t in e)e.hasOwnProperty(t)&&l.push(t);var u=l.sort();for(n=0,r=u.length;n<r;n+=1)(o={})[t=u[n]]=e[t],a[n]=o;return a}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(td.__addLocaleData(e),vd.__addLocaleData(e))})}function rt(e){var t=e&&e.toLowerCase();return!(!td.__localeData__[t]||!vd.__localeData__[t])}function ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function at(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;wt()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function lt(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":Od(e))||null===e||"object"!==(void 0===t?"undefined":Od(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),a=0;a<n.length;a++)if(!o(n[a])||e[n[a]]!==t[n[a]])return!1;return!0}function ut(e,t,n){var r=e.props,o=e.state,a=e.context,l=void 0===a?{}:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=l.intl,i=void 0===s?{}:s,c=u.intl,d=void 0===c?{}:c;return!lt(t,r)||!lt(n,o)||!(d===i||lt(ot(d,Jd),ot(i,Jd)))}function st(e){var t=vd.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function it(e,t,n){var r=e&&e[t]&&e[t][n];if(r)return r}function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,l=e.messages,u=e.defaultLocale,s=e.defaultFormats,i=n.id,c=n.defaultMessage;wt()(i,"[React Intl] An `id` must be provided to format a message.");var d=l&&l[i];if(!(Object.keys(r).length>0))return d||c||i;var f=void 0;if(d)try{f=t.getMessageFormat(d,o,a).format(r)}catch(e){}if(!f&&c)try{f=t.getMessageFormat(c,u,s).format(r)}catch(e){}return f||d||c||i}function dt(e){return("*"===e?zf.wildcard:cl.array(e)?zf.array:cl.stringableFunc(e)?zf.default:cl.func(e)?zf.predicate:zf.default)(e)}function ft(e){function t(){e._isRunning&&!e._isCancelled&&(e._isCancelled=!0,M.cancelAll(),r(Ef))}function n(t,r){if(!w.isRunning)throw new Error("Trying to resume an already finished generator");try{var a=void 0;r?a=e.throw(t):t===Ef?(w.isCancelled=!0,n.cancel(),a=cl.func(e.return)?e.return(Ef):{done:!0,value:Ef}):a=t===Mf?cl.func(e.return)?e.return():{done:!0}:e.next(t),a.done?(w.isMainRunning=!1,w.cont&&w.cont(a.value)):o(a.value,h,"",n)}catch(e){w.isCancelled&&g("error","uncaught at "+v,e.message),w.isMainRunning=!1,w.cont(e,!0)}}function r(t,n){e._isRunning=!1,q.close(),n?(t instanceof Error&&(t.sagaStack="at "+v+" \n "+(t.sagaStack||t.stack)),x.cont||(g("error","uncaught",t.sagaStack||t.stack),t instanceof Error&&y&&y(t)),e._error=t,e._isAborted=!0,e._deferredEnd&&e._deferredEnd.reject(t)):(e._result=t,e._deferredEnd&&e._deferredEnd.resolve(t)),x.cont&&x.cont(t,n),x.joiners.forEach(function(e){return e.cb(t,n)}),x.joiners=null}function o(e,t){function n(e,t){h||(h=!0,f.cancel=ul,b&&(t?b.effectRejected(m,e):b.effectResolved(m,e)),f(e,t))}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",f=arguments[3],m=ml();b&&b.effectTriggered({effectId:m,parentEffectId:t,label:r,effect:e});var h=void 0;n.cancel=ul,f.cancel=function(){if(!h){h=!0;try{n.cancel()}catch(e){g("error","uncaught at "+v,e.message)}n.cancel=ul,b&&b.effectCancelled(m)}};var p=void 0;return cl.promise(e)?a(e,n):cl.helper(e)?u(Pf(e),m,n):cl.iterator(e)?l(e,m,v,n):cl.array(e)?_(e,m,n):(p=$l.take(e))?function(e,t){var n=e.channel,r=e.pattern,o=e.maybe;n=n||q;var a=function(e){return e instanceof Error?t(e,!0):t(kl(e)&&!o?Mf:e)};try{n.take(a,dt(r))}catch(e){return t(e,!0)}t.cancel=a.cancel}(p,n):(p=$l.put(e))?function(e,t){var n=e.channel,r=e.action,o=e.resolve;be(function(){var e=void 0;try{e=(n?n.put:c)(r)}catch(e){if(n||o)return t(e,!0);g("error","uncaught at "+v,e.stack||e.message||e)}if(!o||!cl.promise(e))return t(e);a(e,t)})}(p,n):(p=$l.all(e))?s(p,m,n):(p=$l.race(e))?function(e,t,n){var r=void 0,a=Object.keys(e),l={};a.forEach(function(e){var t=function(t,o){if(!r)if(o)n.cancel(),n(t,!0);else if(!kl(t)&&t!==Mf&&t!==Ef){var a;n.cancel(),r=!0,n(((a={})[e]=t,a))}};t.cancel=ul,l[e]=t}),n.cancel=function(){r||(r=!0,a.forEach(function(e){return l[e].cancel()}))},a.forEach(function(n){r||o(e[n],t,n,l[n])})}(p,m,n):(p=$l.call(e))?function(e,t,n){var r=e.context,o=e.fn,u=e.args,s=void 0;try{s=o.apply(r,u)}catch(e){return n(e,!0)}return cl.promise(s)?a(s,n):cl.iterator(s)?l(s,t,o.name,n):n(s)}(p,m,n):(p=$l.cps(e))?function(e,t){var n=e.context,r=e.fn,o=e.args;try{var a=function(e,n){return cl.undef(e)?t(n):t(e,!0)};r.apply(n,o.concat(a)),a.cancel&&(t.cancel=function(){return a.cancel()})}catch(e){return t(e,!0)}}(p,n):(p=$l.fork(e))?u(p,m,n):(p=$l.join(e))?function(e,t){if(e.isRunning()){var n={task:x,cb:t};t.cancel=function(){return ce(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())}(p,n):(p=$l.cancel(e))?function(e,t){e===ol&&(e=x),e.isRunning()&&e.cancel(),t()}(p,n):(p=$l.select(e))?function(e,t){var n=e.selector,r=e.args;try{var o=n.apply(void 0,[d()].concat(r));t(o)}catch(e){t(e,!0)}}(p,n):(p=$l.actionChannel(e))?function(e,t){var n=e.pattern,r=e.buffer,o=dt(n);o.pattern=n,t(qe(i,r||wl.fixed(),o))}(p,n):(p=$l.flush(e))?function(e,t){e.flush(t)}(p,n):(p=$l.cancelled(e))?function(e,t){t(!!w.isCancelled)}(0,n):(p=$l.getContext(e))?function(e,t){t(O[e])}(p,n):(p=$l.setContext(e))?function(e,t){dl.assign(O,e),t()}(p,n):n(e)}function a(e,t){var n=e[nl];"function"==typeof n&&(t.cancel=n),e.then(t,function(e){return t(e,!0)})}function l(e,t,n,r){ft(e,i,c,d,O,m,t,n,r)}function u(e,t,n){var r=e.context,o=e.fn,a=e.args,l=e.detached,u=function(e){var t=e.context,n=e.fn,r=e.args;if(cl.iterator(n))return n;var o,a,l=void 0,u=void 0;try{l=n.apply(t,r)}catch(e){u=e}return cl.iterator(l)?l:me(u?function(){throw u}:(o=void 0,a={done:!1,value:l},function(e){return o?{done:!0,value:e}:(o=!0,a)}))}({context:r,fn:o,args:a});try{je();var s=ft(u,i,c,d,O,m,t,o.name,l?null:ul);l?n(s):u._isRunning?(M.addTask(s),n(s)):u._error?M.abort(u._error):n(s)}finally{ge()}}function s(e,t,n){var r=Object.keys(e);if(!r.length)return n(cl.array(e)?[]:{});var a=0,l=void 0,u={},s={};r.forEach(function(t){var o=function(o,s){l||(s||kl(o)||o===Mf||o===Ef?(n.cancel(),n(o,s)):(u[t]=o,++a===r.length&&(l=!0,n(cl.array(e)?fl.from(Of({},u,{length:r.length})):u))))};o.cancel=ul,s[t]=o}),n.cancel=function(){l||(l=!0,r.forEach(function(e){return s[e].cancel()}))},r.forEach(function(n){return o(e[n],t,n,s[n])})}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return ul},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ul,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ul,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,v=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"anonymous",p=arguments[8];se(e,cl.iterator,wf);var _=ve(s,pl("[...effects]","all([...effects])")),b=m.sagaMonitor,j=m.logger,y=m.onError,g=j||he,q=function(e){var t=qe(function(t){return e(function(e){e[rl]?t(e):be(function(){return t(e)})})});return zl({},t,{take:function(e,n){arguments.length>1&&(se(n,cl.func,"channel.take's matcher argument must be a function"),e[tl]=n),t.take(e)}})}(i),O=Object.create(f);n.cancel=ul;var x=function(e,n,r,o){var a,l;return r._deferredEnd=null,(a={})[Qa]=!0,a.id=e,a.name=n,(l={}).done=l.done||{},l.done.get=function(){if(r._deferredEnd)return r._deferredEnd.promise;var e=de();return r._deferredEnd=e,r._isRunning||(r._error?e.reject(r._error):e.resolve(r._result)),e.promise},a.cont=o,a.joiners=[],a.cancel=t,a.isRunning=function(){return r._isRunning},a.isCancelled=function(){return r._isCancelled},a.isAborted=function(){return r._isAborted},a.result=function(){return r._result},a.error=function(){return r._error},a.setContext=function(e){se(e,cl.object,bl("task",e)),dl.assign(O,e)},function(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}}(a,l),a}(h,v,e,p),w={name:v,cancel:function(){w.isRunning&&!w.isCancelled&&(w.isCancelled=!0,n(Ef))},isRunning:!0},M=function(e,t,n){function r(e){a(),n(e,!0)}function o(e){l.push(e),e.cont=function(o,a){s||(ce(l,e),e.cont=ul,a?r(o):(e===t&&(u=o),l.length||(s=!0,n(u))))}}function a(){s||(s=!0,l.forEach(function(e){e.cont=ul,e.cancel()}),l=[])}var l=[],u=void 0,s=!1;return o(t),{addTask:o,cancelAll:a,abort:r,getTasks:function(){return l},taskNames:function(){return l.map(function(e){return e.name})}}}(0,w,r);return p&&(p.cancel=t),e._isRunning=!0,n(),x}Object.defineProperty(t,"__esModule",{value:!0});var mt=n("./node_modules/react/react.js"),ht=n.n(mt),vt=n("./node_modules/react-dom/index.js"),pt=n.n(vt),_t=n("./node_modules/prop-types/index.js"),bt=n.n(_t),jt=bt.a.shape({trySubscribe:bt.a.func.isRequired,tryUnsubscribe:bt.a.func.isRequired,notifyNestedSubs:bt.a.func.isRequired,isSubscribed:bt.a.func.isRequired}),yt=bt.a.shape({subscribe:bt.a.func.isRequired,dispatch:bt.a.func.isRequired,getState:bt.a.func.isRequired}),gt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",r=function(e){function r(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return a[t]=n.store,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),r.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},r.prototype.render=function(){return mt.Children.only(this.props.children)},r}(mt.Component);return r.propTypes={store:yt.isRequired,children:bt.a.element.isRequired},r.childContextTypes=((e={})[t]=yt.isRequired,e[n]=jt,e),r.displayName="Provider",r}(),qt=n("./node_modules/react-redux/node_modules/hoist-non-react-statics/index.js"),Ot=n.n(qt),xt=n("./node_modules/invariant/browser.js"),wt=n.n(xt),Mt=null,Et={notify:function(){}},zt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=Et}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=Mt,e=Mt},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==Mt&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Et)},e}(),Pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt=0,St={},Ct=Object.prototype.hasOwnProperty,Ft=n("./node_modules/lodash-es/_freeGlobal.js"),Bt="object"==typeof self&&self&&self.Object===Object&&self,Tt=(Ft.a||Bt||Function("return this")()).Symbol,At=Object.prototype,Dt=At.hasOwnProperty,Rt=At.toString,It=Tt?Tt.toStringTag:void 0,Nt=function(e){var t=Dt.call(e,It),n=e[It];try{e[It]=void 0;var r=!0}catch(e){}var o=Rt.call(e);return r&&(t?e[It]=n:delete e[It]),o},Lt=Object.prototype.toString,Ut=function(e){return Lt.call(e)},Wt=Tt?Tt.toStringTag:void 0,Ht=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Wt&&Wt in Object(e)?Nt(e):Ut(e)},Kt=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Gt=function(e){return null!=e&&"object"==typeof e},Vt=Function.prototype,Yt=Object.prototype,Jt=Vt.toString,$t=Yt.hasOwnProperty,Xt=Jt.call(Object),Zt=function(e){if(!Gt(e)||"[object Object]"!=Ht(e))return!1;var t=Kt(e);if(null===t)return!0;var n=$t.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Jt.call(n)==Xt},Qt=n("./node_modules/symbol-observable/es/index.js"),en={INIT:"@@redux/INIT"},tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nn=[function(e){return"function"==typeof e?f(e):void 0},function(e){return e?void 0:c(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?c(function(t){return function(e,t){if("function"==typeof e)return s(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var a=n[o],l=e[a];"function"==typeof l&&(r[a]=s(l,t))}return r}(e,t)}):void 0}],rn=[function(e){return"function"==typeof e?f(e):void 0},function(e){return e?void 0:c(function(){return{}})}],on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},an=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,a=!1,l=void 0;return function(t,n,u){var s=e(t,n,u);return a?r&&o(s,l)||(l=s):(a=!0,l=s),l}}}(e):void 0},function(e){return e?void 0:function(){return m}}],ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?o:t,r=e.mapStateToPropsFactories,a=void 0===r?rn:r,u=e.mapDispatchToPropsFactories,s=void 0===u?nn:u,i=e.mergePropsFactories,c=void 0===i?an:i,d=e.selectorFactory,f=void 0===d?p:d;return function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=o.pure,i=void 0===u||u,d=o.areStatesEqual,m=void 0===d?b:d,h=o.areOwnPropsEqual,v=void 0===h?l:h,p=o.areStatePropsEqual,j=void 0===p?l:p,y=o.areMergedPropsEqual,g=void 0===y?l:y,q=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=_(e,a,"mapStateToProps"),x=_(t,s,"mapDispatchToProps"),w=_(r,c,"mergeProps");return n(f,ln({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:O,initMapDispatchToProps:x,initMergeProps:w,pure:i,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:j,areMergedPropsEqual:g},q))}}(),sn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),cn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,ht.a.PureComponent),sn(t,[{key:"getChildContext",value:function(){return{router:this.props.router}}},{key:"render",value:function(){return this.props.children}}]),t}(),dn=cn;cn.childContextTypes={router:bt.a.object.isRequired};var fn,mn="app/router/LOCATION_CHANGE",hn="app/router/PREVIOUS_LOCATION",vn=function(e){return{type:mn,newRoute:e}},pn=function(){return{type:hn}},_n=(fn="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,n,r){var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={}),t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});if(1===a)t.children=r;else if(a>1){for(var u=Array(a),s=0;s<a;s++)u[s]=arguments[s+3];t.children=u}return{$$typeof:fn,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}),bn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();((function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,ht.a.PureComponent),bn(t,[{key:"render",value:function(){var e=this.context.router,t=ht.a.Children.map(this.props.children,function(t){return ht.a.cloneElement(t,{router:e})});return _n("div",{},void 0,t)}}]),t})()).contextTypes={router:bt.a.object.isRequired};var jn=n("./node_modules/fontfaceobserver/fontfaceobserver.standalone.js"),yn=n.n(jn),gn=(n("./node_modules/sanitize.css/sanitize.css"),n("./node_modules/styled-components/dist/styled-components.es.js")),qn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=0,l=r.pop(),u=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),s=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(n)),i=y(function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return s.apply(null,e)});return i.resultFunc=l,i.recomputations=function(){return a},i.resetRecomputations=function(){return a=0},i}}(y),On=n("./node_modules/hoist-non-react-statics/index.js"),xn=n.n(On),wn=n("./node_modules/lodash/isEmpty.js"),Mn=n.n(wn),En=n("./node_modules/lodash/isFunction.js"),zn=n.n(En),Pn=n("./node_modules/lodash/isString.js"),kn=n.n(Pn),Sn=n("./node_modules/lodash/conformsTo.js"),Cn=n.n(Sn),Fn=n("./node_modules/lodash/isObject.js"),Bn=n.n(Fn),Tn=n("./node_modules/immutable/dist/immutable.js"),An=n("./node_modules/redux-immutable/dist/index.js"),Dn="app/global/LOAD_TOOLBAR_OUTPUT_CONFIG",Rn="app/global/LOAD_TOOLBAR_OUTPUT_CONFIG_SUCCESS",In="app/global/LOAD_TOOLBAR_OUTPUT_CONFIG_ERROR",Nn="app/global/SET_TOOLBAR_POSITION",Ln="app/ToolbarContainer/GET_RANDOM_ARTICLES",Un="app/ToolbarContainer/GET_RANDOM_ARTICLES_SUCCESS",Wn="app/ToolbarContainer/GET_RANDOM_ARTICLES_ERROR",Hn=Object(Tn.fromJS)({toolbarConfig:{},outputAccessToken:null,loading:!1,error:!1,toolbarPosition:{},randomArticles:[]}),Kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hn,t=arguments[1];switch(t.type){case Dn:case Ln:return e.set("loading",!0).set("error",!1);case Rn:return e.set("loading",!1).set("toolbarConfig",t.payload);case In:case Wn:return e.set("loading",!1).set("error",t.payload);case Un:return e.set("loading",!1).set("randomArticles",t.payload);case Nn:return e.set("toolbarPosition",t.payload);default:return e}},Gn=Object(Tn.fromJS)({locale:"en"}),Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gn,t=arguments[1];switch(t.type){case"app/LanguageToggle/CHANGE_LOCALE":return e.set("locale",t.locale);default:return e}},Yn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jn=Object(Tn.fromJS)({location:"Home",history:[]}),$n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Xn=function(e){var t=e.key,n=e.reducer;return function(e){var r=function(r){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeErro