diff --git a/assets/app.js b/assets/app.js index dacd603d9..c7aabed69 100644 --- a/assets/app.js +++ b/assets/app.js @@ -3,7 +3,7 @@ object-assign (c) Sindre Sorhus @license MIT */ -var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 o(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)}var a=n(8),s=a.Map,u=a.OrderedSet,l=a.Record,c=u(),d={style:c,entity:null},h=l(d),p=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return f;var n={style:c,entity:null},r=s(n).merge(e),i=m.get(r);if(i)return i;var o=new t(r);return m=m.set(r,o),o},t}(h),f=new p,m=s([[s(d),f]]);p.EMPTY=f,e.exports=p},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(76),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 o(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)}var a=n(26),s=n(8),u=n(94),l=s.List,c=s.Map,d=s.OrderedSet,h=s.Record,p=s.Repeat,f=d(),m={parent:null,characterList:l(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:l(),prevSibling:null,nextSibling:null},g=function(e,t){return e.getStyle()===t.getStyle()},y=function(e,t){return e.getEntity()===t.getEntity()},v=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=l(p(a.EMPTY,n.length))),e},_=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return r(this,t),i(this,e.call(this,v(n)))}return o(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){u(this.getCharacterList(),g,e,t)},t.prototype.findEntityRanges=function(e,t){u(this.getCharacterList(),y,e,t)},t}(h(m));e.exports=_},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}t.isScheduler=r},function(e,t,n){"use strict";var r=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[]).reduce(function(t,n){return Math.max(e.lastIndexOf(n),t)},-1)},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"${"+e+"}";return e.split(".").reduce(function(e,t){return e[t]||n},t)};t.parseTemplate=function(e,t,n){return e.replace(/\$\{.+?}/g,function(e){var r=e.substr(2,e.length-3).trim();return a(r,t,n)})},t.hasEntityAtSelection=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t||e.getSelection();if(!n.getHasFocus())return!1;var r=e.getCurrentContent(),i=r.getBlockForKey(n.getStartKey()),o=i.getEntityAt(n.getStartOffset()-1);return!!o&&r.getEntity(o)},t.getTriggerRange=function(e){var t=window.getSelection();if(0===t.rangeCount)return null;var n=t.getRangeAt(0),r=n.startContainer.textContent.substring(0,n.startOffset);if(/\s+$/.test(r))return null;var i=o(r,e);return-1===i?null:{text:r.substring(i),start:i,end:n.startOffset}},t.getInsertRange=function(e,t){var n=t.getSelection(),r=n.getAnchorOffset(),i=n.getAnchorKey();return{start:t.getCurrentContent().getBlockForKey(i).getText().substring(0,r).lastIndexOf(e.trigger),end:r}},t.getTopPosition=function(e,t){var n=window.getSelection().getRangeAt(0).cloneRange();n.setStart(n.startContainer,e.start);var r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return i.top-r.top+i.height},t.scrollElementIfNotInView=function(e,t){var n=t.getBoundingClientRect(),r=n.bottom,i=n.top,o=e.getBoundingClientRect(),a=o.bottom,s=o.top;a>r&&(t.scrollTop+=o.height),s0)return!1;var r=document.getElementById(Object.keys(t)[0]);return!r||r.getBoundingClientRect().y>0},t.getNewestEntry=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!(!e&&!t)&&(t?!e&&t?t:"delete"===t.type&&t.id===e.id&&n?s(n,1):e.timestamp>t.timestamp?e:t:e)},t.daysAgo=function(e,t){return(0,a.default)().utcOffset(t,!0).diff(e,"days")});t.timeAgo=function(e,t,n){var r=parseInt(t,10),i=a.default.unix(e).utcOffset(r,!0);return u(i,r)>=30?i.formatUsingDateTime(n):i.fromNow()},t.formattedTime=function(e,t,n){var r=parseInt(t,10);return a.default.unix(e).utcOffset(r,!0).local().formatUsingDateTime(n)},t.getCurrentTimestamp=function(){return Math.floor(Date.now()/1e3)},t.getPollingPages=function(e,t){return t?Math.max(t,1):e},t.triggerOembedLoad=function(e){window.instgrm&&e.querySelector(".instagram-media")&&window.instgrm.Embeds.process(),window.twttr&&e.querySelector(".twitter-tweet")&&Array.from(e.querySelectorAll(".twitter-tweet")).forEach(function(e){window.twttr.widgets.load(e)}),window.FB&&e.querySelector(".fb-post")&&window.FB.XFBML.parse(),window.dispatchEvent(new CustomEvent("omembedTrigger"))},t.getScrollToId=function(e,t){return"first"===t?"id_"+e[0].id:"last"===t?"id_"+e[e.length-1].id:"id_"+e[0].id}},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(948),a=n(951),s=n(952),u=n(453),l={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(l,u)},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(){for(var e=void 0;void 0===e||i.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return i[e]=!0,e}var i={},o=Math.pow(2,24);e.exports=r},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(485)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(185),i=n(511),o=n(512),a=n(513),s=n(188);n(187);n.d(t,"createStore",function(){return r.b}),n.d(t,"combineReducers",function(){return i.a}),n.d(t,"bindActionCreators",function(){return o.a}),n.d(t,"applyMiddleware",function(){return a.a}),n.d(t,"compose",function(){return s.a})},function(e,t,n){var r=n(22),i=n(48),o=n(49),a=n(73)("src"),s=Function.toString,u=(""+s).split("toString");n(27).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(34),i=n(74);e.exports=n(35)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(65);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(0),o=n(151),a=n(53),s=n(31),u=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,r):1===i?new o.ScalarObservable(e[0],r):new a.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,i=e.subscriber;if(n>=r)return void i.complete();i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o1&&void 0!==arguments[1]&&arguments[1];return{type:i.default.GET_ENTRIES,page:e,hash:t}},t.getEntriesPaginated=function(e,t){return{type:i.default.GET_ENTRIES_PAGINATED,page:e,scrollTo:t}},t.getEntriesSuccess=function(e,t){return{type:i.default.GET_ENTRIES_SUCCESS,payload:e,renderNewEntries:t}},t.getEntriesFailed=function(){return{type:i.default.GET_ENTRIES_FAILED,error:!0}},t.startPolling=function(e){return{type:i.default.START_POLLING,payload:e}},t.pollingSuccess=function(e,t){return{type:i.default.POLLING_SUCCESS,payload:e,renderNewEntries:t}},t.pollingFailed=function(){return{type:i.default.POLLING_FAILED,error:!0}},t.cancelPolling=function(){return{type:i.default.CANCEL_POLLING}},t.createEntry=function(e){return{type:i.default.CREATE_ENTRY,payload:e}},t.createEntrySuccess=function(e){return{type:i.default.CREATE_ENTRY_SUCCESS,payload:e}},t.createEntryFailed=function(){return{type:i.default.CREATE_ENTRY_FAILED,error:!0}},t.deleteEntry=function(e){return{type:i.default.DELETE_ENTRY,payload:e}},t.deleteEntrySuccess=function(e){return{type:i.default.DELETE_ENTRY_SUCCESS,payload:e}},t.deleteEntryFailed=function(){return{type:i.default.DELETE_ENTRY_FAILED,error:!0}},t.updateEntry=function(e){return{type:i.default.UPDATE_ENTRY,payload:e}},t.updateEntrySuccess=function(e){return{type:i.default.UPDATE_ENTRY_SUCCESS,payload:e}},t.updateEntryFailed=function(){return{type:i.default.UPDATE_ENTRY_FAILED,error:!0}},t.mergePolling=function(){return{type:i.default.MERGE_POLLING}},t.mergePollingIntoEntries=function(e,t){return{type:i.default.MERGE_POLLING_INTO_ENTRIES,payload:e,pages:t}}},function(e,t,n){"use strict";function r(){for(var e=[],t=0;tw;w++)if((h||w in v)&&(m=v[w],g=_(m,w,y),e))if(n)k[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(c)return!1;return d?-1:l||c?c:k}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;tr||n<=0)return"";var i=0;if(t>0){for(;t>0&&i=r)return""}else if(t<0){for(i=r;t<0&&00&&s2&&void 0!==arguments[2]&&arguments[2],r={url:t.endpoint_url+"crud/",method:"POST",body:{crud_action:"insert",post_id:t.post_id,content:e.content,author_id:e.author,contributor_ids:e.contributors},headers:{"Content-Type":"application/json","X-WP-Nonce":n||t.nonce,"cache-control":"no-cache"}};return(0,g.ajax)(r)}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={url:t.endpoint_url+"crud/",method:"POST",body:{crud_action:"update",post_id:t.post_id,entry_id:e.id,content:e.content,author_id:e.author,contributor_ids:e.contributors},headers:{"Content-Type":"application/json","X-WP-Nonce":n||t.nonce,"cache-control":"no-cache"}};return(0,g.ajax)(r)}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={url:t.endpoint_url+"crud/",method:"POST",body:{crud_action:"delete",post_id:t.post_id,entry_id:e},headers:{"Content-Type":"application/json","X-WP-Nonce":n||t.nonce,"cache-control":"no-cache"}};return(0,g.ajax)(r)}function u(e,t){var n={url:e.endpoint_url+"get-key-events/"+(t.id||e.latest_entry_id)+"-"+(t.timestamp||e.latest_entry_timestamp),method:"GET"};return(0,g.ajax)(n)}function l(e,t,n){var r={url:t.endpoint_url+"jump-to-key-event/"+e+"/"+(n.id||0)+"-"+(n.timestamp||0),method:"GET"};return(0,g.ajax)(r)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={url:t.endpoint_url+"crud/",method:"POST",body:{crud_action:"delete_key",post_id:t.post_id,entry_id:e.id,content:e.content},headers:{"Content-Type":"application/json","X-WP-Nonce":n||t.nonce,"cache-control":"no-cache"}};return(0,g.ajax)(r)}function d(e,t){var n={url:""+t.autocomplete[3].url+e,method:"GET"};return(0,g.ajax)(n)}function h(e,t){var n={url:""+t.autocomplete[2].url+e,method:"GET"};return(0,g.ajax)(n)}function p(e,t){var n={url:t.endpoint_url+"preview",method:"POST",body:{entry_content:e},headers:{"Content-Type":"application/json"}};return(0,g.ajax)(n)}function f(e){var t=window.location,n={url:t.protocol+"//"+t.hostname+"/wp-admin/admin-ajax.php",method:"POST",body:e};return(0,g.ajax)(n)}function m(e){var t=window.location,n={url:t.protocol+"//"+t.hostname+"/wp-json/wp/v2/media"+v(e),method:"GET"};return(0,g.ajax)(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.getEntries=r,t.polling=i,t.createEntry=o,t.updateEntry=a,t.deleteEntry=s,t.getEvents=u,t.jumpToEvent=l,t.deleteEvent=c,t.getAuthors=d,t.getHashtags=h,t.getPreview=p,t.uploadImage=f,t.getMedia=m;var g=n(350),y=n(40),v=function(e){return"?"+Object.keys(e).map(function(t){return"&"+t+"="+e[t]}).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetScrollOnEntry=t.scrollToEntry=t.entryEditClose=t.entryEditOpen=void 0;var r=n(60),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.entryEditOpen=function(e){return{type:i.default.ENTRY_EDIT_OPEN,payload:e}},t.entryEditClose=function(e){return{type:i.default.ENTRY_EDIT_CLOSE,payload:e}},t.scrollToEntry=function(e){return{type:i.default.SCROLL_TO_ENTRY,payload:e}},t.resetScrollOnEntry=function(e){return{type:i.default.RESET_SCROLL_ON_ENTRY,payload:e}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 o(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)}var a=n(8),s=a.Record,u={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},l=s(u),c=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(l);e.exports=c},function(e,t,n){"use strict";function r(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(i).join(" "):Array.prototype.map.call(arguments,i).join(" ")}function i(e){return e.replace(/\//g,"-")}e.exports=r},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(192)(!0);n(132)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(58);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(76),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(34).f,i=n(49),o=n(12)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(12)("unscopables"),i=Array.prototype;void 0==i[r]&&n(48)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(611);n.d(t,"createEpicMiddleware",function(){return r.a});var i=n(221);n.d(t,"ActionsObservable",function(){return i.a});var o=n(616);n.d(t,"combineEpics",function(){return o.a});var a=n(225);n.d(t,"EPIC_END",function(){return a.a})},function(e,t,n){"use strict";function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(2);t.map=r;var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}();t.MapOperator=a;var s=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return i(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.Subscriber)},function(e,t,n){"use strict";function r(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof i.Observable?e[0]:s.mergeAll(n)(new o.ArrayObservable(e,r))}var i=n(0),o=n(52),a=n(31),s=n(109);t.merge=r},function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new s(e,t,n))}}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(6),a=n(5);t.mergeMap=r;var s=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=s;var u=function(e){function t(t,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(a.OuterSubscriber);t.MergeMapSubscriber=u},function(e,t,n){"use strict";function r(e){return!i.isArray(e)&&e-parseFloat(e)+1>=0}var i=n(39);t.isNumeric=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(21),o=n(664),a=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n,this.pending=!1}return r(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),i.root.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?t:i.root.clearInterval(t)&&void 0||void 0},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(o.Action);t.AsyncAction=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(665),o=function(e){function t(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(t,e),t.prototype.flush=function(e){var t=this.actions;if(this.active)return void t.push(e);var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(i.Scheduler);t.AsyncScheduler=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.ArgumentOutOfRangeError=i},function(e,t,n){"use strict";function r(e,t){return arguments.length>=2?function(n){return s.pipe(i.scan(e,t),o.takeLast(1),a.defaultIfEmpty(t))(n)}:function(t){return s.pipe(i.scan(function(t,n,r){return e(t,n,r+1)}),o.takeLast(1))(t)}}var i=n(162),o=n(163),a=n(158),s=n(148);t.reduce=r},function(e,t,n){"use strict";var r=n(8),i=r.OrderedMap,o={createFromArray:function(e){return i(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o}),n(e.last())&&r(i,e.count())}}e.exports=r},function(e,t,n){"use strict";function r(e){return"handled"===e||!0===e}e.exports=r},function(e,t,n){"use strict";var r={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),a=r;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===r)return o}return i.removeRange(o,a,n)}var i=n(24);e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!i(e)&&(i(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var i=n(489);e.exports=r},function(e,t,n){"use strict";var r=n(128),i={};i[n(12)("toStringTag")]="z",i+""!="[object z]"&&n(47)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t){e.exports=!1},function(e,t,n){var r=n(42),i=n(193),o=n(134),a=n(133)("IE_PROTO"),s=function(){},u=function(){var e,t=n(130)("iframe"),r=o.length;for(t.style.display="none",n(135).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("