diff --git a/assets/app.js b/assets/app.js index a1c05c1c8..62128e5c0 100644 --- a/assets/app.js +++ b/assets/app.js @@ -37,4 +37,4 @@ var O=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},D= * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var v=n(19),_=n(3),b=n(44),w=n(124),k=n(1043),x=n(453),E={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},S={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=S,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var s in n){T.hasOwnProperty(s)&&r("48",s);var u=s.toLowerCase(),l=n[s];u={attributeName:u,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:i(l,t.MUST_USE_PROPERTY),hasBooleanValue:i(l,t.HAS_BOOLEAN_VALUE),hasNumericValue:i(l,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(l,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(l,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:i(l,t.HAS_STRING_BOOLEAN_VALUE)},1>=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),o.hasOwnProperty(s)&&(u.attributeNamespace=o[s]),e.hasOwnProperty(s)&&(u.mutationMethod=e[s]),T[s]=u}}},T={},C=S,M=C.MUST_USE_PROPERTY,A=C.HAS_BOOLEAN_VALUE,L=C.HAS_NUMERIC_VALUE,O=C.HAS_POSITIVE_NUMERIC_VALUE,D=C.HAS_OVERLOADED_BOOLEAN_VALUE,F=C.HAS_STRING_BOOLEAN_VALUE,R={Properties:{allowFullScreen:A,async:A,autoFocus:A,autoPlay:A,capture:D,checked:M|A,cols:O,contentEditable:F,controls:A,default:A,defer:A,disabled:A,download:D,draggable:F,formNoValidate:A,hidden:A,loop:A,multiple:M|A,muted:M|A,noValidate:A,open:A,playsInline:A,readOnly:A,required:A,reversed:A,rows:O,rowSpan:L,scoped:A,seamless:A,selected:M|A,size:O,start:L,span:O,spellCheck:F,style:0,tabIndex:0,itemScope:A,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:F},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},j=C.HAS_STRING_BOOLEAN_VALUE,I={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},P={Properties:{autoReverse:j,externalResourcesRequired:j,preserveAlpha:j},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:I.xlink,xlinkArcrole:I.xlink,xlinkHref:I.xlink,xlinkRole:I.xlink,xlinkShow:I.xlink,xlinkTitle:I.xlink,xlinkType:I.xlink,xmlBase:I.xml,xmlLang:I.xml,xmlSpace:I.xml}},N=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(N,u);P.Properties[t]=0,P.DOMAttributeNames[t]=e}),C.injectDOMPropertyConfig(R),C.injectDOMPropertyConfig(P);var B="function"==typeof Symbol&&Symbol.for?Symbol.for("react.fragment"):60107,Y=/["'&<>]/,z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H={},$={},W={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},U={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},V=v({menuitem:!0},U),q={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},K=["Webkit","ms","Moz","O"];Object.keys(q).forEach(function(e){K.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),q[t]=q[e]})});var G=_.Children.toArray,J=b.thatReturns(""),X={listing:!0,pre:!0,textarea:!0},Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z={},ee=x(function(e){return k(e)}),te={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},ne=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");_.isValidElement(t)?t.type!==B?t=[t]:(t=t.props.children,t=_.isValidElement(t)?[t]:G(t)):t=G(t),this.stack=[{domNamespace:W.html,children:t,childIndex:0,context:w,footer:""}],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=n}return e.prototype.read=function(e){if(this.exhausted)return null;for(var t="";t.length=n.children.length){var r=n.footer;t+=r,""!==r&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===n.tag&&(this.currentSelectValue=null)}else r=n.children[n.childIndex++],t+=this.render(r,n.context,n.domNamespace)}return t},e.prototype.render=function(e,t,n){return"string"==typeof e||"number"==typeof e?""===(n=""+e)?"":this.makeStaticMarkup?l(n):this.previousWasTextNode?"\x3c!-- --\x3e"+l(n):(this.previousWasTextNode=!0,l(n)):(t=y(e,t),e=t.child,t=t.context,null===e||!1===e?"":_.isValidElement(e)?e.type===B?(e=G(e.props.children),this.stack.push({domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""):this.renderDOM(e,t,n):(e=G(e),this.stack.push({domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""))},e.prototype.renderDOM=function(e,t,n){var i=e.type.toLowerCase();n===W.html&&h(i),Z.hasOwnProperty(i)||(Q.test(i)||r("65",i),Z[i]=!0);var o=e.props;if("input"===i)o=v({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===i){var a=o.value;if(null==a){a=o.defaultValue;var s=o.children;null!=s&&(null!=a&&r("92"),Array.isArray(s)&&(1>=s.length||r("93"),s=s[0]),a=""+s),null==a&&(a="")}o=v({},o,{value:void 0,children:""+a})}else if("select"===i)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=v({},o,{value:void 0});else if("option"===i){s=this.currentSelectValue;var u=f(o.children);if(null!=s){var p=null!=o.value?o.value+"":u;if(a=!1,Array.isArray(s)){for(var m=0;m":(k+=">",a="");e:{if(null!=(s=o.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else if("string"==typeof(s=o.children)||"number"==typeof s){s=l(s);break e}s=null}return null!=s?(o=[],X[i]&&"\n"===s.charAt(0)&&(k+="\n"),k+=s):o=G(o.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?h(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,tag:i,children:o,childIndex:0,context:t,footer:a}),this.previousWasTextNode=!1,k},e}(),re={renderToString:function(e){return new ne(e,!1).read(1/0)},renderToStaticMarkup:function(e){return new ne(e,!0).read(1/0)},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.2.0"},ie=Object.freeze({default:re}),oe=ie&&re||ie;e.exports=oe.default?oe.default:oe},function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=n(455),o=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t":">",'"':""","'":"'","`":"`","\n":"
"};t.default=function(e){for(var t=[].concat(i(e.text)),n=e.entityRanges.sort(u.default),r=e.inlineStyleRanges.sort(u.default),o="",s=0;s0&&void 0!==arguments[0]&&arguments[0];return arguments[1]};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,r=[].concat(i(e.text)),o=n;if(n.__isMiddleware&&(o=n(p)),Object.prototype.hasOwnProperty.call(e,"entityRanges")&&e.entityRanges.length>0){for(var s=e.entityRanges.sort(u.default),l=e.inlineStyleRanges,d=0;de||Object.prototype.hasOwnProperty.call(t,"style")?(0,a.default)(t,n.offset,n.length,f.length,m,g):t},v=function(e){return e.reduce(function(e,t,n){var r=y(t,n);return Array.isArray(r)?e.concat(r):e.concat([r])},[])};s=v(s),l=v(l),r=[].concat(i(r.slice(0,n.offset)),i(f),i(r.slice(n.offset+n.length)))}(d);return Object.assign({},e,{text:r.join(""),inlineStyleRanges:l,entityRanges:s})}return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(3),a=r(o),s=n(123),u=r(s),l=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";if(a.default.isValidElement(t)){var r=(0,u.default)(t)[n].length,o=a.default.Children.toArray(t.props.children)[0];return r+(o&&a.default.isValidElement(o)?e(o,n):0)}return"object"===(void 0===t?"undefined":i(t))&&t[n]?t[n].length:0};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=t.offset&&e=t.offset+t.length;return n&&r},w=function(e,t){return t.offset+t.length-(e.offset+e.length)},k=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:S;(0,a.default)(null!==e&&void 0!==e,"Expected raw block to be non-null");var n=void 0;n=!0===t.__isMiddleware?t(g.default):(0,c.default)((0,u.default)(t),(0,u.default)(g.default));for(var r="",o=[],s=e.inlineStyleRanges.sort(f.default),l=[].concat(i(e.text)),d=0;d0}function o(e){return(0,s.default)(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),"string"==typeof e?e:l.default.isValidElement(e)?i(e)?d.default.renderToStaticMarkup(e):(0,p.default)(e):Object.prototype.hasOwnProperty.call(e,"element")&&l.default.isValidElement(e.element)?Object.assign({},e,(0,p.default)(e.element)):((0,s.default)(Object.prototype.hasOwnProperty.call(e,"start")&&Object.prototype.hasOwnProperty.call(e,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(57),s=r(a),u=n(3),l=r(u),c=n(121),d=r(c),h=n(123),p=r(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if((0,a.default)(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),u.default.isValidElement(e.nest)){var t=(0,c.default)(e.nest),n=t.start,r=t.end;return Object.assign({},e,{nestStart:n,nestEnd:r})}return(0,a.default)(Object.prototype.hasOwnProperty.call(e,"nestStart")&&Object.prototype.hasOwnProperty.call(e,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(57),a=r(o),s=n(3),u=r(s),l=n(123),c=r(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={unstyled:i.default.createElement("p",null),paragraph:i.default.createElement("p",null),"header-one":i.default.createElement("h1",null),"header-two":i.default.createElement("h2",null),"header-three":i.default.createElement("h3",null),"header-four":i.default.createElement("h4",null),"header-five":i.default.createElement("h5",null),"header-six":i.default.createElement("h6",null),blockquote:i.default.createElement("blockquote",null),"unordered-list-item":{element:i.default.createElement("li",null),nest:i.default.createElement("ul",null)},"ordered-list-item":{element:i.default.createElement("li",null),nest:i.default.createElement("ol",null)},media:i.default.createElement("figure",null)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return{text:"",inlines:[],entities:[],blocks:[]}}function o(e){var t=new Array(1);return e&&(t[0]=e),{text:E,inlines:[(0,v.OrderedSet)()],entities:t,blocks:[]}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,v.Map)();return!0===n?{text:"\r",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:r,depth:Math.max(0,Math.min(S,t))}],isNewline:!0}:{text:"\n",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[]}}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,v.Map)();return{text:"\r",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:n,depth:Math.max(0,Math.min(S,t))}]}}function u(e,t){switch(e){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return"ol"===t?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function l(e,t,n){return u(e,n)}function c(e,t,n){var r=O[e];return r?n=n.add(r).toOrderedSet():t instanceof HTMLElement&&function(){var e=t;n=n.withMutations(function(t){"bold"===e.style.fontWeight&&t.add("BOLD"),"italic"===e.style.fontStyle&&t.add("ITALIC"),"underline"===e.style.textDecoration&&t.add("UNDERLINE"),"line-through"===e.style.textDecoration&&t.add("STRIKETHROUGH")}).toOrderedSet()}(),n}function d(e,t){return c(e,t,(0,v.OrderedSet)())}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.text.slice(0,1),i=e.text.slice(-1),o="\r"===i&&"\r"===r,a="\r"!==e.text&&"\r"!==t.text,s="\r"===e.text&&!e.isNewline&&t.isNewline;if(o&&(a||s)&&(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===e.text.slice(-1)&&!0===n){if(t.text===E||"\n"===t.text)return e;r!==E&&"\n"!==r||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}var u=0===e.text.length&&t.isNewline;return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks),isNewline:u}}function p(e){return L.some(function(t){return-1!==e.indexOf("<"+t)})}function f(e,t,n,r,l,d,p,m,g,_,b,w,k,S,T,M){var A=e.nodeName.toLowerCase(),L=!1,O="unstyled";if("#text"===A){var D=function(){var n=e.textContent;if(""===n.trim()&&null===r)return{v:i()};if(""===n.trim()&&"code-block"!==r)return{v:o(M)};"code-block"!==r&&(n=n.replace(C,E));var a=Array(n.length).fill(M),s=0;return g(n,b,w,k,S).sort(x.default).forEach(function(e){var t=e.entity,r=e.offset,i=e.length,o=e.result,u=r+s;null!==o&&void 0!==o||(o=n.substr(u,i));var l=n.split("");l.splice.bind(l,u,i).apply(l,o.split("")),n=l.join(""),a.splice.bind(a,u,i).apply(a,Array(o.length).fill(t)),s+=o.length-i}),{v:{text:n,inlines:Array(n.length).fill(t),entities:a,blocks:[]}}}();if("object"===(void 0===D?"undefined":y(D)))return D.v}if("br"===A){var F=r;return null===F?a("unstyled",d,!0):a(F||"unstyled",d,T.flat)}var R=i(),j=null;t=c(A,e,t),t=p(A,e,t),"ul"!==A&&"ol"!==A||(n&&(d+=1),n=A,r=null);var I=_(A,e,n,r),P=void 0,N=void 0;if(!1===I)return i();if(I=I||{},"string"==typeof I?(P=I,N=(0,v.Map)()):(P="string"==typeof I?I:I.type,N=I.data?(0,v.Map)(I.data):(0,v.Map)()),r||-1===l.indexOf(A)&&!P)if(!n||"ordered-list-item"!==r&&"unordered-list-item"!==r||"li"!==A)r&&"atomic"!==r&&"atomic"===P&&(r=P,L=!0,R=a(P,d,!0,N));else{var B=u(A,n);R=s(B,d),r=B,L=!0,O="ul"===n?"unordered-list-item":"ordered-list-item"}else R=s(P||u(A,n),d,N),r=P||u(A,n),L=!0;var Y=e.firstChild;null!=Y||!M||"atomic"!==P&&"atomic"!==r||(Y=document.createTextNode("a")),null!=Y&&(A=Y.nodeName.toLowerCase());for(var z=null;Y;){z=m(A,Y,b,w,k,S),j=f(Y,t,n,r,l,d,p,m,g,_,b,w,k,S,T,z||M),R=h(R,j,T.flat);var H=Y.nextSibling;if(H&&l.indexOf(A)>=0&&r){var $=_(A,Y,n,r),W=void 0,U=void 0;!1!==$&&($=$||{},"string"==typeof $?(W=$,U=(0,v.Map)()):(W=$.type||u(A,n),U=$.data?(0,v.Map)($.data):(0,v.Map)()),R=h(R,a(W,d,T.flat,U),T.flat))}H&&(A=H.nodeName.toLowerCase()),Y=H}return L&&(R=h(R,s(O,d,(0,v.Map)()),T.flat)),R}function m(e,t,n,r,i,o,a,s,u,l,c){e=e.trim().replace(T,"").replace(M,E);var d=c(e);if(!d)return null;var h=p(e)?L.concat(["div"]):["div"],m=f(d,(0,v.OrderedSet)(),"ul",null,h,-1,t,n,r,i,o,a,s,u,l);return 0===m.text.indexOf("\r")&&(m={text:m.text.slice(1),inlines:m.inlines.slice(1),entities:m.entities.slice(1),blocks:m.blocks}),"\r"===m.text.slice(-1)&&(m.text=m.text.slice(0,-1),m.inlines=m.inlines.slice(0,-1),m.entities=m.entities.slice(0,-1),m.blocks.pop()),0===m.blocks.length&&m.blocks.push({type:"unstyled",data:(0,v.Map)(),depth:0}),m.text.split("\r").length===m.blocks.length+1&&m.blocks.unshift({type:"unstyled",data:(0,v.Map)(),depth:0}),m}function g(e,t,n,r,i,o,a,s,u,l,c){var d=m(e,t,n,r,i,o,a,s,u,l,c);if(null==d)return[];var h=0;return d.text.split("\r").map(function(e,t){e=N(e);var n=h+e.length,r=P(d).inlines.slice(h,n),i=P(d).entities.slice(h,n),o=(0,v.List)(r.map(function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),_.CharacterMetadata.create(n)}));return h=n+1,new _.ContentBlock({key:(0,_.genKey)(),type:P(d).blocks[t].type,data:P(d).blocks[t].data,depth:P(d).blocks[t].depth,text:e,characterList:o})})}Object.defineProperty(t,"__esModule",{value:!0});var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=n(1055),_=n(17),b=n(482),w=r(b),k=n(122),x=r(k),E=" ",S=4,T=new RegExp("\r","g"),C=new RegExp("\n","g"),M=new RegExp(" ","g"),A=new RegExp("\r","g"),L=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],O={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},D=function(e,t){return e&&!0===e.__isMiddleware?e(t):e},F=function(e,t,n){},R=function(e,t,n){return n},j=function(e,t){},I=function(e){return[]},P=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},N=function(e){return e.replace(A,"")},B=function(e){var t=e.htmlToStyle,n=void 0===t?R:t,r=e.htmlToEntity,i=void 0===r?j:r,o=e.textToEntity,a=void 0===o?I:o,s=e.htmlToBlock,u=void 0===s?F:s;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.default,o=_.ContentState.createFromText(""),s=function(){if(o.createEntity){var e;return o=(e=o).createEntity.apply(e,arguments),o.getLastCreatedEntityKey()}return _.Entity.create.apply(_.Entity,arguments)},c=function(){if(o.getEntity){var e;return(e=o).getEntity.apply(e,arguments)}return _.Entity.get.apply(_.Entity,arguments)},h=function(){if(o.mergeEntityData){var e;return void(o=(e=o).mergeEntityData.apply(e,arguments))}_.Entity.mergeData.apply(_.Entity,arguments)},p=function(){if(o.replaceEntityData){var e;return void(o=(e=o).replaceEntityData.apply(e,arguments))}_.Entity.replaceData.apply(_.Entity,arguments)},f=g(e,D(n,d),D(i,j),D(a,I),D(u,l),s,c,h,p,t,r),m=_.BlockMapBuilder.createFromArray(f);return o.set("blockMap",m)}};t.default=function(){return arguments.length>=1&&"string"==typeof(arguments.length<=0?void 0:arguments[0])?B({}).apply(void 0,arguments):B.apply(void 0,arguments)}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:A(e)}function n(e){return a(e)?e:L(e)}function r(e){return s(e)?e:O(e)}function i(e){return o(e)&&!u(e)?e:D(e)}function o(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[dn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[hn])}function c(e){return e.value=!1,e}function d(e){e&&(e.value=!0)}function h(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?f(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function v(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function x(){return{value:void 0,done:!0}}function E(e){return!!C(e)}function S(e){return e&&"function"==typeof e.next}function T(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(kn&&e[kn]||e[xn]);if("function"==typeof t)return t}function M(e){return e&&"number"==typeof e.length}function A(e){return null===e||void 0===e?N():o(e)?e.toSeq():z(e)}function L(e){return null===e||void 0===e?N().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function O(e){return null===e||void 0===e?N():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():Y(e)}function D(e){return(null===e||void 0===e?N():o(e)?a(e)?e.entrySeq():e:Y(e)).toSetSeq()}function F(e){this._array=e,this.size=e.length}function R(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function I(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[Sn])}function N(){return Tn||(Tn=new F([]))}function B(e){var t=Array.isArray(e)?new F(e).fromEntrySeq():S(e)?new I(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new R(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Y(e){var t=H(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function z(e){var t=H(e)||"object"==typeof e&&new R(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function H(e){return M(e)?new F(e):S(e)?new I(e):E(e)?new j(e):void 0}function $(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function W(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?x():k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?V(t,e,"",{"":e}):q(e)}function V(e,t,n,r){return Array.isArray(t)?e.call(r,n,O(t).map(function(n,r){return V(e,n,r,t)})):K(t)?e.call(r,n,L(t).map(function(n,r){return V(e,n,r,t)})):t}function q(e){return Array.isArray(e)?O(e).map(q).toList():K(e)?L(e).map(q).toMap():e}function K(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function J(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var d=!0,h=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,gn)):!G(e.get(r,gn),t))return d=!1,!1});return d&&e.size===h}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Cn)return Cn;Cn=this}}function Q(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function oe(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>In?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Bn[e];return void 0===t&&(t=se(e),Nn===Pn&&(Nn=0,Bn={}),Nn++,Bn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function de(e){return null===e||void 0===e?ke():he(e)&&!l(e)?e:ke().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function he(e){return!(!e||!e[Yn])}function pe(e,t){this.ownerID=e,this.entries=t}function fe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ve(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&be(e._root)}function _e(e,t){return k(e,t[0],t[1])}function be(e,t){return{node:e,index:0,__prev:t}}function we(e,t,n,r){var i=Object.create(zn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function ke(){return Hn||(Hn=we(0))}function xe(e,t,n){var r,i;if(e._root){var o=c(yn),a=c(vn);if(r=Ee(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return e;i=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?we(i,r):ke()}function Ee(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===gn?e:(d(s),d(a),new ye(t,r,[i,o]))}function Se(e){return e.constructor===ye||e.constructor===ge}function Te(e,t,n,r,i){if(e.keyHash===r)return new ge(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new fe(t,1<>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new me(e,o+1,a)}function Le(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ie(e,t,n,r){var i=r?e:p(e);return i[t]=n,i}function Pe(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,l=a-n;return l>fn&&(l=fn),function(){if(i===l)return Gn;var e=t?--l:i++;return r&&r[e]}}function i(e,r,i){var s,u=e&&e.array,l=i>o?0:o-i>>r,c=1+(a-i>>r);return c>fn&&(c=fn),function(){for(;;){if(s){var e=s();if(e!==Gn)return e;s=null}if(l===c)return Gn;var o=t?--c:l++;s=n(u&&u[o],r-pn,i+(o<=e.size||t<0)return e.withMutations(function(e){t<0?Ge(e,t).set(0,n):Ge(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(vn);return t>=Xe(e._capacity)?r=Ve(r,e.__ownerID,0,t,n,o):i=Ve(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):$e(e._origin,e._capacity,e._level,i,r):e}function Ve(e,t,n,r,i,o){var a=r>>>n&mn,s=e&&a0){var l=e&&e.array[a],c=Ve(l,t,n-pn,r,i,o);return c===l?e:(u=qe(e,t),u.array[a]=c,u)}return s&&e.array[a]===i?e:(d(o),u=qe(e,t),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function qe(e,t){return t&&e&&t===e.ownerID?e:new ze(e?e.array.slice():[],t)}function Ke(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&mn],r-=pn;return n}}function Ge(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new h,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new ze(l&&l.array.length?[void 0,l]:[],r),u+=pn,c+=1<=1<d?new ze([],r):f;if(f&&p>d&&apn;y-=pn){var v=d>>>y&mn;g=g.array[v]=qe(g.array[v],r)}g.array[d>>>pn&mn]=f}if(s=p)a-=p,s-=p,u=pn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>i||p>>u&mn;if(_!==p>>>u&mn)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&pa&&(a=l.size),o(u)||(l=l.map(function(e){return U(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Fe(e,t,i)}function Xe(e){return e>>pn<=fn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Mt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=At,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===wn){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===bn?_n:bn,n)},t}function ut(e,t,n){var r=Mt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,gn);return o===gn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(wn,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),i)})},r}function lt(e,t){var n=Mt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=At,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=Mt(e);return r&&(i.has=function(r){var i=e.get(r,gn);return i!==gn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,gn);return o!==gn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(wn,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(i,r?l:s++,c,o)}})},i}function dt(e,t,n){var r=de().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function ht(e,t,n){var r=a(e),i=(l(e)?Qe():de()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=Ct(e);return i.map(function(t){return Et(e,o(t))})}function pt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,i))return e;var o=v(t,i),a=_(n,i);if(o!==o||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Mt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&ts)return x();var e=i.next();return r||t===bn?e:t===_n?k(t,u-1,void 0,e):k(t,u-1,e.value[1],e)})},l}function ft(e,t,n){var r=Mt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(wn,i),s=!0;return new w(function(){if(!s)return x();var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===wn?e:k(r,u,l,e):(s=!1,x())})},r}function mt(e,t,n,r){var i=Mt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(wn,o),u=!0,l=0;return new w(function(){var e,o,c;do{if(e=s.next(),e.done)return r||i===bn?e:i===_n?k(i,l++,void 0,e):k(i,l++,e.value[1],e);var d=e.value;o=d[0],c=d[1],u&&(u=t.call(n,c,o,a))}while(u);return i===wn?e:k(i,o,c,e)})},i}function gt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):Y(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new F(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function yt(e,t,n){var r=Mt(e);return r.__iterateUncached=function(r,i){function a(e,l){var c=this;e.__iterate(function(e,i){return(!t||l0}function xt(e,n,r){var i=Mt(e);return i.size=new F(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(bn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),T(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?x():k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Et(e,t){return P(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Tt(e){return ce(e.size),f(e)}function Ct(e){return a(e)?n:s(e)?r:i}function Mt(e){return Object.create((a(e)?L:s(e)?O:D).prototype)}function At(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):A.prototype.cacheResult.call(this)}function Lt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0}),r)}function an(e,t){return t=Ln(t,3432918353),t=Ln(t<<15|t>>>-15,461845907),t=Ln(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ln(t^t>>>16,2246822507),t=Ln(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",dn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",pn=5,fn=1<r?x():k(e,i,n[t?r-i++:i++])})},e(R,L),R.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},R.prototype.has=function(e){return this._object.hasOwnProperty(e)},R.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},R.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?x():k(e,a,n[a])})},R.prototype[hn]=!0,e(j,O),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=T(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=T(n);if(!S(r))return new w(x);var i=0;return new w(function(){var t=r.next();return t.done?t:k(e,i++,t.value)})},e(I,O),I.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return k(e,i,r[i++])})};var Tn;e(X,O),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return G(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new X(this._value,_(t,n)-v(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return G(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+m(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?x():k(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:J(this,e)};var Mn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var An,Ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},On=Object.isExtensible,Dn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Fn="function"==typeof WeakMap;Fn&&(An=new WeakMap);var Rn=0,jn="__immutablehash__";"function"==typeof Symbol&&(jn=Symbol(jn));var In=16,Pn=255,Nn=0,Bn={};e(de,te),de.prototype.toString=function(){return this.__toString("Map {","}")},de.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},de.prototype.set=function(e,t){return xe(this,e,t)},de.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},de.prototype.remove=function(e){return xe(this,e,gn)},de.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},de.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},de.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Re(this,Ot(e),t,n);return r===gn?void 0:r},de.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ke()},de.prototype.merge=function(){return Le(this,void 0,arguments)},de.prototype.mergeWith=function(e){return Le(this,e,un.call(arguments,1))},de.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,ke(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},de.prototype.mergeDeep=function(){return Le(this,Oe,arguments)},de.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Le(this,De(e),t)},de.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,ke(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},de.prototype.sort=function(e){return Qe(bt(this,e))},de.prototype.sortBy=function(e,t){return Qe(bt(this,t,e))},de.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},de.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},de.prototype.asImmutable=function(){return this.__ensureOwner()},de.prototype.wasAltered=function(){return this.__altered},de.prototype.__iterator=function(e,t){return new ve(this,e,t)},de.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},de.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?we(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},de.isMap=he;var Yn="@@__IMMUTABLE_MAP__@@",zn=de.prototype;zn[Yn]=!0,zn.delete=zn.remove,zn.removeIn=zn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=$n)return Ce(e,u,r,i);var f=e&&e===this.ownerID,m=f?u:p(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),f?(this.entries=m,this):new pe(e,m)}},fe.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&mn),o=this.bitmap;return 0==(o&i)?r:this.nodes[je(o&i-1)].get(e+pn,t,n,r)},fe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=1<=Wn)return Ae(e,h,l,s,f);if(c&&!f&&2===h.length&&Se(h[1^d]))return h[1^d];if(c&&f&&1===h.length&&Se(f))return f;var m=e&&e===this.ownerID,g=c?f?l:l^u:l|u,y=c?f?Ie(h,d,f,m):Ne(h,d,m):Pe(h,d,f,m);return m?(this.bitmap=g,this.nodes=y,this):new fe(e,g,y)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&mn,o=this.nodes[i];return o?o.get(e+pn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=i===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var d=Ee(c,e,t+pn,n,r,i,o,a);if(d===c)return this;var h=this.count;if(c){if(!d&&--h=0&&e>>t&mn;if(r>=this.array.length)return new ze([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-pn,n))===a&&o)return this}if(o&&!i)return this;var s=qe(this,e);if(!o)for(var u=0;u>>t&mn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if((i=o&&o.removeAfter(e,t-pn,n))===o&&r===this.array.length-1)return this}var a=qe(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Kn,Gn={};e(Qe,de),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,gn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=Ze,Qe.prototype[hn]=!0,Qe.prototype.delete=Qe.prototype.remove;var Jn;e(rt,L),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Tt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(bn,t),r=t?Tt(this):0;return new w(function(){var i=n.next();return i.done?i:k(e,t?--r:r++,i.value,i)})},rt.prototype[hn]=!0,e(it,O),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(ot,D),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(at,L),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var i=o(r);return k(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=At,e(Dt,te),Dt.prototype.toString=function(){return this.__toString(Rt(this)+" {","}")},Dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Ft(this,ke()))},Dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Rt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Ft(this,n)},Dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Ft(this,t)},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Ft(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xn=Dt.prototype;Xn.delete=Xn.remove,Xn.deleteIn=Xn.removeIn=zn.removeIn,Xn.merge=zn.merge,Xn.mergeWith=zn.mergeWith,Xn.mergeIn=zn.mergeIn,Xn.mergeDeep=zn.mergeDeep,Xn.mergeDeepWith=zn.mergeDeepWith,Xn.mergeDeepIn=zn.mergeDeepIn,Xn.setIn=zn.setIn,Xn.update=zn.update,Xn.updateIn=zn.updateIn,Xn.withMutations=zn.withMutations,Xn.asMutable=zn.asMutable,Xn.asImmutable=zn.asImmutable,e(Pt,re),Pt.of=function(){return this(arguments)},Pt.fromKeys=function(e){return this(n(e).keySeq())},Pt.prototype.toString=function(){return this.__toString("Set {","}")},Pt.prototype.has=function(e){return this._map.has(e)},Pt.prototype.add=function(e){return Bt(this,this._map.set(e,!0))},Pt.prototype.remove=function(e){return Bt(this,this._map.remove(e))},Pt.prototype.clear=function(){return Bt(this,this._map.clear())},Pt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kt(e,t)},Vt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kt(t,n)},Vt.prototype.pop=function(){return this.slice(1)},Vt.prototype.unshift=function(){return this.push.apply(this,arguments)},Vt.prototype.unshiftAll=function(e){return this.pushAll(e)},Vt.prototype.shift=function(){return this.pop.apply(this,arguments)},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gt()},Vt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=v(e,this.size);if(_(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Kt(r,i)},Vt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return x()})},Vt.isStack=qt;var rr="@@__IMMUTABLE_STACK__@@",ir=Vt.prototype;ir[rr]=!0,ir.withMutations=zn.withMutations,ir.asMutable=zn.asMutable,ir.asImmutable=zn.asImmutable,ir.wasAltered=zn.wasAltered;var or;t.Iterator=w,Jt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return de(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return Ht(a(this)?this.valueSeq():this)},toSet:function(){return Pt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vt(a(this)?this.valueSeq():this)},toList:function(){return Be(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Et(this,gt(this,un.call(arguments,0)))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(wn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Et(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return Et(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Et(this,lt(this,!0))},slice:function(e,t){return Et(this,pt(this,e,t,!0))},some:function(e,t){return!this.every(Zt(e),t)},sort:function(e){return Et(this,bt(this,e))},values:function(){return this.__iterator(bn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return f(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return dt(this,e,t)},equals:function(e){return J(this,e)},entrySeq:function(){var e=this;if(e._cache)return new F(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(g)},flatMap:function(e,t){return Et(this,vt(this,e,t))},flatten:function(e){return Et(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Ot(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,gn):gn)===gn)return t}return r},groupBy:function(e,t){return ht(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return wt(this,e)},maxBy:function(e,t){return wt(this,t,e)},min:function(e){return wt(this,e?en(e):rn)},minBy:function(e,t){return wt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Et(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Et(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zt(e),t)},sortBy:function(e,t){return Et(this,bt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Et(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Et(this,ft(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[ln]=!0,ar[En]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,function(){try{Object.defineProperty(ar,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Jt(n,{flip:function(){return Et(this,st(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return Et(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Et(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=n.prototype;return sr[cn]=!0,sr[En]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Jt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Et(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Et(this,lt(this,!1))},slice:function(e,t){return Et(this,pt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=v(e,e<0?this.count():this.size);var r=this.slice(0,e);return Et(this,1===n?r:r.concat(p(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Et(this,yt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=m(this,e))>=0&&(void 0!==this.size?this.size===1/0||e",end:"",nestStart:"
    ",nestEnd:"
"}:"ordered-list-item"===t.type?{start:"
  • ",end:"
  • ",nestStart:"
      ",nestEnd:"
    "}:"unstyled"===t.type?i.default.createElement("p",null):i.default.createElement("span",null)},entityToHTML:function(e,t){return"LINK"===e.type?i.default.createElement("a",{href:e.data.url},t):"TEXT"===e.type?i.default.createElement(e.data.nodeName,e.data.attributes,t):t}})(e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1059),o=r(i),a=n(1060),s=r(a),u=n(1061),l=r(u);t.default=[{strategy:i.findLinkEntities,component:o.default},{strategy:a.findEmojiEntities,component:s.default},{strategy:u.findTextEntities,component:l.default}]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findLinkEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.entityKey,n=e.children,r=e.contentState,i=r.getEntity(t).getData(),a=i.url;return o.default.createElement("a",{href:a},n)};u.propTypes={entityKey:s.default.any,children:s.default.any,contentState:s.default.any},t.default=u;t.findLinkEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findEmojiEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.children,n=e.entityKey,r=e.contentState,i=r.getEntity(n).getData(),a=i.suggestion,s=i.extraData,u="url("+s.cdn+a.image+".png)";return o.default.createElement("span",{className:"liveblog-inline-emoji",style:{backgroundImage:u}},t)};u.propTypes={children:s.default.any,contentState:s.default.object,entityKey:s.default.string},t.default=u;t.findEmojiEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&":"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findTextEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.children,n=e.entityKey,r=e.contentState,i=r.getEntity(n).getData(),a=i.nodeName,s=i.attributes;return o.default.createElement(a,s,t)};u.propTypes={children:s.default.any,contentState:s.default.object,entityKey:s.default.string},t.default=u;t.findTextEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"TEXT"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(9),s=r(a),u=n(1063),l=r(u),c=function(e){var t=e.loading,n=e.entries;return o.default.createElement("div",{className:t?"liveblog-feed is-loading":"liveblog-feed"},0!==n.length||t?n.map(function(e){return o.default.createElement(l.default,{entry:e,key:e.id})}):o.default.createElement("div",{className:"liveblog-empty-message"},"There are no entries on this page."))};c.propTypes={entries:s.default.array,loading:s.default.bool},t.default=c},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&d.default.createElement("header",{className:"liveblog-meta-authors"},n.authors.map(function(e){return d.default.createElement("div",{className:"liveblog-meta-author",key:e.id},e.avatar&&d.default.createElement("div",{className:"liveblog-meta-author-avatar",dangerouslySetInnerHTML:{__html:e.avatar}}),d.default.createElement("span",{className:"liveblog-meta-author-name",dangerouslySetInnerHTML:{__html:e.name}}))})),this.isEditing()?d.default.createElement("div",{className:"liveblog-entry-edit"},d.default.createElement(k.default,{entry:n,isEditing:!0})):d.default.createElement("div",{className:"liveblog-entry-content",dangerouslySetInnerHTML:{__html:n.render}}),this.entryActions()))}}]),t}(c.Component);x.propTypes={user:p.default.object,config:p.default.object,entry:p.default.object,entryEditOpen:p.default.func,entryEditClose:p.default.func,deleteEntry:p.default.func,activateScrolling:p.default.bool,resetScrollOnEntry:p.default.func};var E=function(e){return e},S=function(e){return(0,f.bindActionCreators)(u({},y,_),e)};t.default=(0,m.connect)(E,S)(x)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0)&&o.default.createElement("div",{className:"liveblog-update-btn-container"},o.default.createElement("button",{className:"liveblog-btn liveblog-update-btn",onClick:n},t.length," new ",t.length>1?"entries":"entry"," available"))};u.propTypes={polling:s.default.array,click:s.default.func},t.default=u},function(e,t){}]); \ No newline at end of file +var v=n(19),_=n(3),b=n(44),w=n(124),k=n(1043),x=n(453),E={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},S={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=S,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var s in n){T.hasOwnProperty(s)&&r("48",s);var u=s.toLowerCase(),l=n[s];u={attributeName:u,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:i(l,t.MUST_USE_PROPERTY),hasBooleanValue:i(l,t.HAS_BOOLEAN_VALUE),hasNumericValue:i(l,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(l,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(l,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:i(l,t.HAS_STRING_BOOLEAN_VALUE)},1>=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),o.hasOwnProperty(s)&&(u.attributeNamespace=o[s]),e.hasOwnProperty(s)&&(u.mutationMethod=e[s]),T[s]=u}}},T={},C=S,M=C.MUST_USE_PROPERTY,A=C.HAS_BOOLEAN_VALUE,L=C.HAS_NUMERIC_VALUE,O=C.HAS_POSITIVE_NUMERIC_VALUE,D=C.HAS_OVERLOADED_BOOLEAN_VALUE,F=C.HAS_STRING_BOOLEAN_VALUE,R={Properties:{allowFullScreen:A,async:A,autoFocus:A,autoPlay:A,capture:D,checked:M|A,cols:O,contentEditable:F,controls:A,default:A,defer:A,disabled:A,download:D,draggable:F,formNoValidate:A,hidden:A,loop:A,multiple:M|A,muted:M|A,noValidate:A,open:A,playsInline:A,readOnly:A,required:A,reversed:A,rows:O,rowSpan:L,scoped:A,seamless:A,selected:M|A,size:O,start:L,span:O,spellCheck:F,style:0,tabIndex:0,itemScope:A,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:F},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},j=C.HAS_STRING_BOOLEAN_VALUE,I={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},P={Properties:{autoReverse:j,externalResourcesRequired:j,preserveAlpha:j},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:I.xlink,xlinkArcrole:I.xlink,xlinkHref:I.xlink,xlinkRole:I.xlink,xlinkShow:I.xlink,xlinkTitle:I.xlink,xlinkType:I.xlink,xmlBase:I.xml,xmlLang:I.xml,xmlSpace:I.xml}},N=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(N,u);P.Properties[t]=0,P.DOMAttributeNames[t]=e}),C.injectDOMPropertyConfig(R),C.injectDOMPropertyConfig(P);var B="function"==typeof Symbol&&Symbol.for?Symbol.for("react.fragment"):60107,Y=/["'&<>]/,z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H={},$={},W={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},U={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},V=v({menuitem:!0},U),q={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},K=["Webkit","ms","Moz","O"];Object.keys(q).forEach(function(e){K.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),q[t]=q[e]})});var G=_.Children.toArray,J=b.thatReturns(""),X={listing:!0,pre:!0,textarea:!0},Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z={},ee=x(function(e){return k(e)}),te={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},ne=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");_.isValidElement(t)?t.type!==B?t=[t]:(t=t.props.children,t=_.isValidElement(t)?[t]:G(t)):t=G(t),this.stack=[{domNamespace:W.html,children:t,childIndex:0,context:w,footer:""}],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=n}return e.prototype.read=function(e){if(this.exhausted)return null;for(var t="";t.length=n.children.length){var r=n.footer;t+=r,""!==r&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===n.tag&&(this.currentSelectValue=null)}else r=n.children[n.childIndex++],t+=this.render(r,n.context,n.domNamespace)}return t},e.prototype.render=function(e,t,n){return"string"==typeof e||"number"==typeof e?""===(n=""+e)?"":this.makeStaticMarkup?l(n):this.previousWasTextNode?"\x3c!-- --\x3e"+l(n):(this.previousWasTextNode=!0,l(n)):(t=y(e,t),e=t.child,t=t.context,null===e||!1===e?"":_.isValidElement(e)?e.type===B?(e=G(e.props.children),this.stack.push({domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""):this.renderDOM(e,t,n):(e=G(e),this.stack.push({domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""))},e.prototype.renderDOM=function(e,t,n){var i=e.type.toLowerCase();n===W.html&&h(i),Z.hasOwnProperty(i)||(Q.test(i)||r("65",i),Z[i]=!0);var o=e.props;if("input"===i)o=v({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===i){var a=o.value;if(null==a){a=o.defaultValue;var s=o.children;null!=s&&(null!=a&&r("92"),Array.isArray(s)&&(1>=s.length||r("93"),s=s[0]),a=""+s),null==a&&(a="")}o=v({},o,{value:void 0,children:""+a})}else if("select"===i)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=v({},o,{value:void 0});else if("option"===i){s=this.currentSelectValue;var u=f(o.children);if(null!=s){var p=null!=o.value?o.value+"":u;if(a=!1,Array.isArray(s)){for(var m=0;m":(k+=">",a="");e:{if(null!=(s=o.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else if("string"==typeof(s=o.children)||"number"==typeof s){s=l(s);break e}s=null}return null!=s?(o=[],X[i]&&"\n"===s.charAt(0)&&(k+="\n"),k+=s):o=G(o.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?h(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,tag:i,children:o,childIndex:0,context:t,footer:a}),this.previousWasTextNode=!1,k},e}(),re={renderToString:function(e){return new ne(e,!1).read(1/0)},renderToStaticMarkup:function(e){return new ne(e,!0).read(1/0)},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.2.0"},ie=Object.freeze({default:re}),oe=ie&&re||ie;e.exports=oe.default?oe.default:oe},function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=n(455),o=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t":">",'"':""","'":"'","`":"`","\n":"
    "};t.default=function(e){for(var t=[].concat(i(e.text)),n=e.entityRanges.sort(u.default),r=e.inlineStyleRanges.sort(u.default),o="",s=0;s0&&void 0!==arguments[0]&&arguments[0];return arguments[1]};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,r=[].concat(i(e.text)),o=n;if(n.__isMiddleware&&(o=n(p)),Object.prototype.hasOwnProperty.call(e,"entityRanges")&&e.entityRanges.length>0){for(var s=e.entityRanges.sort(u.default),l=e.inlineStyleRanges,d=0;de||Object.prototype.hasOwnProperty.call(t,"style")?(0,a.default)(t,n.offset,n.length,f.length,m,g):t},v=function(e){return e.reduce(function(e,t,n){var r=y(t,n);return Array.isArray(r)?e.concat(r):e.concat([r])},[])};s=v(s),l=v(l),r=[].concat(i(r.slice(0,n.offset)),i(f),i(r.slice(n.offset+n.length)))}(d);return Object.assign({},e,{text:r.join(""),inlineStyleRanges:l,entityRanges:s})}return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(3),a=r(o),s=n(123),u=r(s),l=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";if(a.default.isValidElement(t)){var r=(0,u.default)(t)[n].length,o=a.default.Children.toArray(t.props.children)[0];return r+(o&&a.default.isValidElement(o)?e(o,n):0)}return"object"===(void 0===t?"undefined":i(t))&&t[n]?t[n].length:0};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=t.offset&&e=t.offset+t.length;return n&&r},w=function(e,t){return t.offset+t.length-(e.offset+e.length)},k=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:S;(0,a.default)(null!==e&&void 0!==e,"Expected raw block to be non-null");var n=void 0;n=!0===t.__isMiddleware?t(g.default):(0,c.default)((0,u.default)(t),(0,u.default)(g.default));for(var r="",o=[],s=e.inlineStyleRanges.sort(f.default),l=[].concat(i(e.text)),d=0;d0}function o(e){return(0,s.default)(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),"string"==typeof e?e:l.default.isValidElement(e)?i(e)?d.default.renderToStaticMarkup(e):(0,p.default)(e):Object.prototype.hasOwnProperty.call(e,"element")&&l.default.isValidElement(e.element)?Object.assign({},e,(0,p.default)(e.element)):((0,s.default)(Object.prototype.hasOwnProperty.call(e,"start")&&Object.prototype.hasOwnProperty.call(e,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(57),s=r(a),u=n(3),l=r(u),c=n(121),d=r(c),h=n(123),p=r(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if((0,a.default)(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),u.default.isValidElement(e.nest)){var t=(0,c.default)(e.nest),n=t.start,r=t.end;return Object.assign({},e,{nestStart:n,nestEnd:r})}return(0,a.default)(Object.prototype.hasOwnProperty.call(e,"nestStart")&&Object.prototype.hasOwnProperty.call(e,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(57),a=r(o),s=n(3),u=r(s),l=n(123),c=r(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={unstyled:i.default.createElement("p",null),paragraph:i.default.createElement("p",null),"header-one":i.default.createElement("h1",null),"header-two":i.default.createElement("h2",null),"header-three":i.default.createElement("h3",null),"header-four":i.default.createElement("h4",null),"header-five":i.default.createElement("h5",null),"header-six":i.default.createElement("h6",null),blockquote:i.default.createElement("blockquote",null),"unordered-list-item":{element:i.default.createElement("li",null),nest:i.default.createElement("ul",null)},"ordered-list-item":{element:i.default.createElement("li",null),nest:i.default.createElement("ol",null)},media:i.default.createElement("figure",null)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return{text:"",inlines:[],entities:[],blocks:[]}}function o(e){var t=new Array(1);return e&&(t[0]=e),{text:E,inlines:[(0,v.OrderedSet)()],entities:t,blocks:[]}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,v.Map)();return!0===n?{text:"\r",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:r,depth:Math.max(0,Math.min(S,t))}],isNewline:!0}:{text:"\n",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[]}}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,v.Map)();return{text:"\r",inlines:[(0,v.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:n,depth:Math.max(0,Math.min(S,t))}]}}function u(e,t){switch(e){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return"ol"===t?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function l(e,t,n){return u(e,n)}function c(e,t,n){var r=O[e];return r?n=n.add(r).toOrderedSet():t instanceof HTMLElement&&function(){var e=t;n=n.withMutations(function(t){"bold"===e.style.fontWeight&&t.add("BOLD"),"italic"===e.style.fontStyle&&t.add("ITALIC"),"underline"===e.style.textDecoration&&t.add("UNDERLINE"),"line-through"===e.style.textDecoration&&t.add("STRIKETHROUGH")}).toOrderedSet()}(),n}function d(e,t){return c(e,t,(0,v.OrderedSet)())}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.text.slice(0,1),i=e.text.slice(-1),o="\r"===i&&"\r"===r,a="\r"!==e.text&&"\r"!==t.text,s="\r"===e.text&&!e.isNewline&&t.isNewline;if(o&&(a||s)&&(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===e.text.slice(-1)&&!0===n){if(t.text===E||"\n"===t.text)return e;r!==E&&"\n"!==r||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}var u=0===e.text.length&&t.isNewline;return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks),isNewline:u}}function p(e){return L.some(function(t){return-1!==e.indexOf("<"+t)})}function f(e,t,n,r,l,d,p,m,g,_,b,w,k,S,T,M){var A=e.nodeName.toLowerCase(),L=!1,O="unstyled";if("#text"===A){var D=function(){var n=e.textContent;if(""===n.trim()&&null===r)return{v:i()};if(""===n.trim()&&"code-block"!==r)return{v:o(M)};"code-block"!==r&&(n=n.replace(C,E));var a=Array(n.length).fill(M),s=0;return g(n,b,w,k,S).sort(x.default).forEach(function(e){var t=e.entity,r=e.offset,i=e.length,o=e.result,u=r+s;null!==o&&void 0!==o||(o=n.substr(u,i));var l=n.split("");l.splice.bind(l,u,i).apply(l,o.split("")),n=l.join(""),a.splice.bind(a,u,i).apply(a,Array(o.length).fill(t)),s+=o.length-i}),{v:{text:n,inlines:Array(n.length).fill(t),entities:a,blocks:[]}}}();if("object"===(void 0===D?"undefined":y(D)))return D.v}if("br"===A){var F=r;return null===F?a("unstyled",d,!0):a(F||"unstyled",d,T.flat)}var R=i(),j=null;t=c(A,e,t),t=p(A,e,t),"ul"!==A&&"ol"!==A||(n&&(d+=1),n=A,r=null);var I=_(A,e,n,r),P=void 0,N=void 0;if(!1===I)return i();if(I=I||{},"string"==typeof I?(P=I,N=(0,v.Map)()):(P="string"==typeof I?I:I.type,N=I.data?(0,v.Map)(I.data):(0,v.Map)()),r||-1===l.indexOf(A)&&!P)if(!n||"ordered-list-item"!==r&&"unordered-list-item"!==r||"li"!==A)r&&"atomic"!==r&&"atomic"===P&&(r=P,L=!0,R=a(P,d,!0,N));else{var B=u(A,n);R=s(B,d),r=B,L=!0,O="ul"===n?"unordered-list-item":"ordered-list-item"}else R=s(P||u(A,n),d,N),r=P||u(A,n),L=!0;var Y=e.firstChild;null!=Y||!M||"atomic"!==P&&"atomic"!==r||(Y=document.createTextNode("a")),null!=Y&&(A=Y.nodeName.toLowerCase());for(var z=null;Y;){z=m(A,Y,b,w,k,S),j=f(Y,t,n,r,l,d,p,m,g,_,b,w,k,S,T,z||M),R=h(R,j,T.flat);var H=Y.nextSibling;if(H&&l.indexOf(A)>=0&&r){var $=_(A,Y,n,r),W=void 0,U=void 0;!1!==$&&($=$||{},"string"==typeof $?(W=$,U=(0,v.Map)()):(W=$.type||u(A,n),U=$.data?(0,v.Map)($.data):(0,v.Map)()),R=h(R,a(W,d,T.flat,U),T.flat))}H&&(A=H.nodeName.toLowerCase()),Y=H}return L&&(R=h(R,s(O,d,(0,v.Map)()),T.flat)),R}function m(e,t,n,r,i,o,a,s,u,l,c){e=e.trim().replace(T,"").replace(M,E);var d=c(e);if(!d)return null;var h=p(e)?L.concat(["div"]):["div"],m=f(d,(0,v.OrderedSet)(),"ul",null,h,-1,t,n,r,i,o,a,s,u,l);return 0===m.text.indexOf("\r")&&(m={text:m.text.slice(1),inlines:m.inlines.slice(1),entities:m.entities.slice(1),blocks:m.blocks}),"\r"===m.text.slice(-1)&&(m.text=m.text.slice(0,-1),m.inlines=m.inlines.slice(0,-1),m.entities=m.entities.slice(0,-1),m.blocks.pop()),0===m.blocks.length&&m.blocks.push({type:"unstyled",data:(0,v.Map)(),depth:0}),m.text.split("\r").length===m.blocks.length+1&&m.blocks.unshift({type:"unstyled",data:(0,v.Map)(),depth:0}),m}function g(e,t,n,r,i,o,a,s,u,l,c){var d=m(e,t,n,r,i,o,a,s,u,l,c);if(null==d)return[];var h=0;return d.text.split("\r").map(function(e,t){e=N(e);var n=h+e.length,r=P(d).inlines.slice(h,n),i=P(d).entities.slice(h,n),o=(0,v.List)(r.map(function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),_.CharacterMetadata.create(n)}));return h=n+1,new _.ContentBlock({key:(0,_.genKey)(),type:P(d).blocks[t].type,data:P(d).blocks[t].data,depth:P(d).blocks[t].depth,text:e,characterList:o})})}Object.defineProperty(t,"__esModule",{value:!0});var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=n(1055),_=n(17),b=n(482),w=r(b),k=n(122),x=r(k),E=" ",S=4,T=new RegExp("\r","g"),C=new RegExp("\n","g"),M=new RegExp(" ","g"),A=new RegExp("\r","g"),L=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],O={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},D=function(e,t){return e&&!0===e.__isMiddleware?e(t):e},F=function(e,t,n){},R=function(e,t,n){return n},j=function(e,t){},I=function(e){return[]},P=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},N=function(e){return e.replace(A,"")},B=function(e){var t=e.htmlToStyle,n=void 0===t?R:t,r=e.htmlToEntity,i=void 0===r?j:r,o=e.textToEntity,a=void 0===o?I:o,s=e.htmlToBlock,u=void 0===s?F:s;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.default,o=_.ContentState.createFromText(""),s=function(){if(o.createEntity){var e;return o=(e=o).createEntity.apply(e,arguments),o.getLastCreatedEntityKey()}return _.Entity.create.apply(_.Entity,arguments)},c=function(){if(o.getEntity){var e;return(e=o).getEntity.apply(e,arguments)}return _.Entity.get.apply(_.Entity,arguments)},h=function(){if(o.mergeEntityData){var e;return void(o=(e=o).mergeEntityData.apply(e,arguments))}_.Entity.mergeData.apply(_.Entity,arguments)},p=function(){if(o.replaceEntityData){var e;return void(o=(e=o).replaceEntityData.apply(e,arguments))}_.Entity.replaceData.apply(_.Entity,arguments)},f=g(e,D(n,d),D(i,j),D(a,I),D(u,l),s,c,h,p,t,r),m=_.BlockMapBuilder.createFromArray(f);return o.set("blockMap",m)}};t.default=function(){return arguments.length>=1&&"string"==typeof(arguments.length<=0?void 0:arguments[0])?B({}).apply(void 0,arguments):B.apply(void 0,arguments)}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:A(e)}function n(e){return a(e)?e:L(e)}function r(e){return s(e)?e:O(e)}function i(e){return o(e)&&!u(e)?e:D(e)}function o(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[dn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[hn])}function c(e){return e.value=!1,e}function d(e){e&&(e.value=!0)}function h(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?f(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function v(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function x(){return{value:void 0,done:!0}}function E(e){return!!C(e)}function S(e){return e&&"function"==typeof e.next}function T(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(kn&&e[kn]||e[xn]);if("function"==typeof t)return t}function M(e){return e&&"number"==typeof e.length}function A(e){return null===e||void 0===e?N():o(e)?e.toSeq():z(e)}function L(e){return null===e||void 0===e?N().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function O(e){return null===e||void 0===e?N():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():Y(e)}function D(e){return(null===e||void 0===e?N():o(e)?a(e)?e.entrySeq():e:Y(e)).toSetSeq()}function F(e){this._array=e,this.size=e.length}function R(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function I(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[Sn])}function N(){return Tn||(Tn=new F([]))}function B(e){var t=Array.isArray(e)?new F(e).fromEntrySeq():S(e)?new I(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new R(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Y(e){var t=H(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function z(e){var t=H(e)||"object"==typeof e&&new R(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function H(e){return M(e)?new F(e):S(e)?new I(e):E(e)?new j(e):void 0}function $(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function W(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?x():k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?V(t,e,"",{"":e}):q(e)}function V(e,t,n,r){return Array.isArray(t)?e.call(r,n,O(t).map(function(n,r){return V(e,n,r,t)})):K(t)?e.call(r,n,L(t).map(function(n,r){return V(e,n,r,t)})):t}function q(e){return Array.isArray(e)?O(e).map(q).toList():K(e)?L(e).map(q).toMap():e}function K(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function J(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var d=!0,h=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,gn)):!G(e.get(r,gn),t))return d=!1,!1});return d&&e.size===h}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Cn)return Cn;Cn=this}}function Q(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function oe(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>In?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Bn[e];return void 0===t&&(t=se(e),Nn===Pn&&(Nn=0,Bn={}),Nn++,Bn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function de(e){return null===e||void 0===e?ke():he(e)&&!l(e)?e:ke().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function he(e){return!(!e||!e[Yn])}function pe(e,t){this.ownerID=e,this.entries=t}function fe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ve(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&be(e._root)}function _e(e,t){return k(e,t[0],t[1])}function be(e,t){return{node:e,index:0,__prev:t}}function we(e,t,n,r){var i=Object.create(zn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function ke(){return Hn||(Hn=we(0))}function xe(e,t,n){var r,i;if(e._root){var o=c(yn),a=c(vn);if(r=Ee(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return e;i=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?we(i,r):ke()}function Ee(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===gn?e:(d(s),d(a),new ye(t,r,[i,o]))}function Se(e){return e.constructor===ye||e.constructor===ge}function Te(e,t,n,r,i){if(e.keyHash===r)return new ge(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new fe(t,1<>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new me(e,o+1,a)}function Le(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ie(e,t,n,r){var i=r?e:p(e);return i[t]=n,i}function Pe(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,l=a-n;return l>fn&&(l=fn),function(){if(i===l)return Gn;var e=t?--l:i++;return r&&r[e]}}function i(e,r,i){var s,u=e&&e.array,l=i>o?0:o-i>>r,c=1+(a-i>>r);return c>fn&&(c=fn),function(){for(;;){if(s){var e=s();if(e!==Gn)return e;s=null}if(l===c)return Gn;var o=t?--c:l++;s=n(u&&u[o],r-pn,i+(o<=e.size||t<0)return e.withMutations(function(e){t<0?Ge(e,t).set(0,n):Ge(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(vn);return t>=Xe(e._capacity)?r=Ve(r,e.__ownerID,0,t,n,o):i=Ve(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):$e(e._origin,e._capacity,e._level,i,r):e}function Ve(e,t,n,r,i,o){var a=r>>>n&mn,s=e&&a0){var l=e&&e.array[a],c=Ve(l,t,n-pn,r,i,o);return c===l?e:(u=qe(e,t),u.array[a]=c,u)}return s&&e.array[a]===i?e:(d(o),u=qe(e,t),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function qe(e,t){return t&&e&&t===e.ownerID?e:new ze(e?e.array.slice():[],t)}function Ke(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&mn],r-=pn;return n}}function Ge(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new h,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new ze(l&&l.array.length?[void 0,l]:[],r),u+=pn,c+=1<=1<d?new ze([],r):f;if(f&&p>d&&apn;y-=pn){var v=d>>>y&mn;g=g.array[v]=qe(g.array[v],r)}g.array[d>>>pn&mn]=f}if(s=p)a-=p,s-=p,u=pn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>i||p>>u&mn;if(_!==p>>>u&mn)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&pa&&(a=l.size),o(u)||(l=l.map(function(e){return U(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Fe(e,t,i)}function Xe(e){return e>>pn<=fn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Mt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=At,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===wn){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===bn?_n:bn,n)},t}function ut(e,t,n){var r=Mt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,gn);return o===gn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(wn,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),i)})},r}function lt(e,t){var n=Mt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=At,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=Mt(e);return r&&(i.has=function(r){var i=e.get(r,gn);return i!==gn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,gn);return o!==gn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(wn,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(i,r?l:s++,c,o)}})},i}function dt(e,t,n){var r=de().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function ht(e,t,n){var r=a(e),i=(l(e)?Qe():de()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=Ct(e);return i.map(function(t){return Et(e,o(t))})}function pt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,i))return e;var o=v(t,i),a=_(n,i);if(o!==o||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Mt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&ts)return x();var e=i.next();return r||t===bn?e:t===_n?k(t,u-1,void 0,e):k(t,u-1,e.value[1],e)})},l}function ft(e,t,n){var r=Mt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(wn,i),s=!0;return new w(function(){if(!s)return x();var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===wn?e:k(r,u,l,e):(s=!1,x())})},r}function mt(e,t,n,r){var i=Mt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(wn,o),u=!0,l=0;return new w(function(){var e,o,c;do{if(e=s.next(),e.done)return r||i===bn?e:i===_n?k(i,l++,void 0,e):k(i,l++,e.value[1],e);var d=e.value;o=d[0],c=d[1],u&&(u=t.call(n,c,o,a))}while(u);return i===wn?e:k(i,o,c,e)})},i}function gt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):Y(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new F(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function yt(e,t,n){var r=Mt(e);return r.__iterateUncached=function(r,i){function a(e,l){var c=this;e.__iterate(function(e,i){return(!t||l0}function xt(e,n,r){var i=Mt(e);return i.size=new F(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(bn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),T(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?x():k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Et(e,t){return P(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Tt(e){return ce(e.size),f(e)}function Ct(e){return a(e)?n:s(e)?r:i}function Mt(e){return Object.create((a(e)?L:s(e)?O:D).prototype)}function At(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):A.prototype.cacheResult.call(this)}function Lt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0}),r)}function an(e,t){return t=Ln(t,3432918353),t=Ln(t<<15|t>>>-15,461845907),t=Ln(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ln(t^t>>>16,2246822507),t=Ln(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",dn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",pn=5,fn=1<r?x():k(e,i,n[t?r-i++:i++])})},e(R,L),R.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},R.prototype.has=function(e){return this._object.hasOwnProperty(e)},R.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},R.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?x():k(e,a,n[a])})},R.prototype[hn]=!0,e(j,O),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=T(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=T(n);if(!S(r))return new w(x);var i=0;return new w(function(){var t=r.next();return t.done?t:k(e,i++,t.value)})},e(I,O),I.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return k(e,i,r[i++])})};var Tn;e(X,O),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return G(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new X(this._value,_(t,n)-v(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return G(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+m(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?x():k(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:J(this,e)};var Mn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var An,Ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},On=Object.isExtensible,Dn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Fn="function"==typeof WeakMap;Fn&&(An=new WeakMap);var Rn=0,jn="__immutablehash__";"function"==typeof Symbol&&(jn=Symbol(jn));var In=16,Pn=255,Nn=0,Bn={};e(de,te),de.prototype.toString=function(){return this.__toString("Map {","}")},de.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},de.prototype.set=function(e,t){return xe(this,e,t)},de.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},de.prototype.remove=function(e){return xe(this,e,gn)},de.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},de.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},de.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Re(this,Ot(e),t,n);return r===gn?void 0:r},de.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ke()},de.prototype.merge=function(){return Le(this,void 0,arguments)},de.prototype.mergeWith=function(e){return Le(this,e,un.call(arguments,1))},de.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,ke(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},de.prototype.mergeDeep=function(){return Le(this,Oe,arguments)},de.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Le(this,De(e),t)},de.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,ke(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},de.prototype.sort=function(e){return Qe(bt(this,e))},de.prototype.sortBy=function(e,t){return Qe(bt(this,t,e))},de.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},de.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},de.prototype.asImmutable=function(){return this.__ensureOwner()},de.prototype.wasAltered=function(){return this.__altered},de.prototype.__iterator=function(e,t){return new ve(this,e,t)},de.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},de.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?we(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},de.isMap=he;var Yn="@@__IMMUTABLE_MAP__@@",zn=de.prototype;zn[Yn]=!0,zn.delete=zn.remove,zn.removeIn=zn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=$n)return Ce(e,u,r,i);var f=e&&e===this.ownerID,m=f?u:p(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),f?(this.entries=m,this):new pe(e,m)}},fe.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&mn),o=this.bitmap;return 0==(o&i)?r:this.nodes[je(o&i-1)].get(e+pn,t,n,r)},fe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=1<=Wn)return Ae(e,h,l,s,f);if(c&&!f&&2===h.length&&Se(h[1^d]))return h[1^d];if(c&&f&&1===h.length&&Se(f))return f;var m=e&&e===this.ownerID,g=c?f?l:l^u:l|u,y=c?f?Ie(h,d,f,m):Ne(h,d,m):Pe(h,d,f,m);return m?(this.bitmap=g,this.nodes=y,this):new fe(e,g,y)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&mn,o=this.nodes[i];return o?o.get(e+pn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=i===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var d=Ee(c,e,t+pn,n,r,i,o,a);if(d===c)return this;var h=this.count;if(c){if(!d&&--h=0&&e>>t&mn;if(r>=this.array.length)return new ze([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-pn,n))===a&&o)return this}if(o&&!i)return this;var s=qe(this,e);if(!o)for(var u=0;u>>t&mn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if((i=o&&o.removeAfter(e,t-pn,n))===o&&r===this.array.length-1)return this}var a=qe(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Kn,Gn={};e(Qe,de),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,gn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=Ze,Qe.prototype[hn]=!0,Qe.prototype.delete=Qe.prototype.remove;var Jn;e(rt,L),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Tt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(bn,t),r=t?Tt(this):0;return new w(function(){var i=n.next();return i.done?i:k(e,t?--r:r++,i.value,i)})},rt.prototype[hn]=!0,e(it,O),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(ot,D),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(at,L),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var i=o(r);return k(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=At,e(Dt,te),Dt.prototype.toString=function(){return this.__toString(Rt(this)+" {","}")},Dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Ft(this,ke()))},Dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Rt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Ft(this,n)},Dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Ft(this,t)},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Ft(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xn=Dt.prototype;Xn.delete=Xn.remove,Xn.deleteIn=Xn.removeIn=zn.removeIn,Xn.merge=zn.merge,Xn.mergeWith=zn.mergeWith,Xn.mergeIn=zn.mergeIn,Xn.mergeDeep=zn.mergeDeep,Xn.mergeDeepWith=zn.mergeDeepWith,Xn.mergeDeepIn=zn.mergeDeepIn,Xn.setIn=zn.setIn,Xn.update=zn.update,Xn.updateIn=zn.updateIn,Xn.withMutations=zn.withMutations,Xn.asMutable=zn.asMutable,Xn.asImmutable=zn.asImmutable,e(Pt,re),Pt.of=function(){return this(arguments)},Pt.fromKeys=function(e){return this(n(e).keySeq())},Pt.prototype.toString=function(){return this.__toString("Set {","}")},Pt.prototype.has=function(e){return this._map.has(e)},Pt.prototype.add=function(e){return Bt(this,this._map.set(e,!0))},Pt.prototype.remove=function(e){return Bt(this,this._map.remove(e))},Pt.prototype.clear=function(){return Bt(this,this._map.clear())},Pt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kt(e,t)},Vt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kt(t,n)},Vt.prototype.pop=function(){return this.slice(1)},Vt.prototype.unshift=function(){return this.push.apply(this,arguments)},Vt.prototype.unshiftAll=function(e){return this.pushAll(e)},Vt.prototype.shift=function(){return this.pop.apply(this,arguments)},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gt()},Vt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=v(e,this.size);if(_(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Kt(r,i)},Vt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return x()})},Vt.isStack=qt;var rr="@@__IMMUTABLE_STACK__@@",ir=Vt.prototype;ir[rr]=!0,ir.withMutations=zn.withMutations,ir.asMutable=zn.asMutable,ir.asImmutable=zn.asImmutable,ir.wasAltered=zn.wasAltered;var or;t.Iterator=w,Jt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return de(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return Ht(a(this)?this.valueSeq():this)},toSet:function(){return Pt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vt(a(this)?this.valueSeq():this)},toList:function(){return Be(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Et(this,gt(this,un.call(arguments,0)))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(wn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Et(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return Et(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Et(this,lt(this,!0))},slice:function(e,t){return Et(this,pt(this,e,t,!0))},some:function(e,t){return!this.every(Zt(e),t)},sort:function(e){return Et(this,bt(this,e))},values:function(){return this.__iterator(bn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return f(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return dt(this,e,t)},equals:function(e){return J(this,e)},entrySeq:function(){var e=this;if(e._cache)return new F(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(g)},flatMap:function(e,t){return Et(this,vt(this,e,t))},flatten:function(e){return Et(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Ot(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,gn):gn)===gn)return t}return r},groupBy:function(e,t){return ht(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return wt(this,e)},maxBy:function(e,t){return wt(this,t,e)},min:function(e){return wt(this,e?en(e):rn)},minBy:function(e,t){return wt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Et(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Et(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zt(e),t)},sortBy:function(e,t){return Et(this,bt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Et(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Et(this,ft(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[ln]=!0,ar[En]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,function(){try{Object.defineProperty(ar,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Jt(n,{flip:function(){return Et(this,st(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return Et(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Et(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=n.prototype;return sr[cn]=!0,sr[En]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Jt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Et(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Et(this,lt(this,!1))},slice:function(e,t){return Et(this,pt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=v(e,e<0?this.count():this.size);var r=this.slice(0,e);return Et(this,1===n?r:r.concat(p(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Et(this,yt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=m(this,e))>=0&&(void 0!==this.size?this.size===1/0||e",end:"",nestStart:"
      ",nestEnd:"
    "}:"ordered-list-item"===t.type?{start:"
  • ",end:"
  • ",nestStart:"
      ",nestEnd:"
    "}:"unstyled"===t.type?i.default.createElement("p",null):i.default.createElement("span",null)},entityToHTML:function(e,t){return"LINK"===e.type?i.default.createElement("a",{href:e.data.url},t):"TEXT"===e.type?i.default.createElement(e.data.nodeName,e.data.attributes,t):t}})(e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1059),o=r(i),a=n(1060),s=r(a),u=n(1061),l=r(u);t.default=[{strategy:i.findLinkEntities,component:o.default},{strategy:a.findEmojiEntities,component:s.default},{strategy:u.findTextEntities,component:l.default}]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findLinkEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.entityKey,n=e.children,r=e.contentState,i=r.getEntity(t).getData(),a=i.url;return o.default.createElement("a",{href:a},n)};u.propTypes={entityKey:s.default.any,children:s.default.any,contentState:s.default.any},t.default=u;t.findLinkEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findEmojiEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.children,n=e.entityKey,r=e.contentState,i=r.getEntity(n).getData(),a=i.suggestion,s=i.extraData,u="url("+s.cdn+a.image+".png)";return o.default.createElement("span",{className:"liveblog-inline-emoji",style:{backgroundImage:u}},t)};u.propTypes={children:s.default.any,contentState:s.default.object,entityKey:s.default.string},t.default=u;t.findEmojiEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&":"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.findTextEntities=void 0;var i=n(3),o=r(i),a=n(9),s=r(a),u=function(e){var t=e.children,n=e.entityKey,r=e.contentState,i=r.getEntity(n).getData(),a=i.nodeName,s=i.attributes;return o.default.createElement(a,s,t)};u.propTypes={children:s.default.any,contentState:s.default.object,entityKey:s.default.string},t.default=u;t.findTextEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"TEXT"===n.getEntity(t).getType()},t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(9),s=r(a),u=n(1063),l=r(u),c=function(e){var t=e.loading,n=e.entries;return o.default.createElement("div",{className:t?"liveblog-feed is-loading":"liveblog-feed"},0!==n.length||t?n.map(function(e){return o.default.createElement(l.default,{entry:e,key:e.id})}):o.default.createElement("div",{className:"liveblog-empty-message"},"There are no entries on this page."))};c.propTypes={entries:s.default.array,loading:s.default.bool},t.default=c},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&d.default.createElement("header",{className:"liveblog-meta-authors"},n.authors.map(function(e){return d.default.createElement("div",{className:"liveblog-meta-author",key:e.id},e.avatar&&d.default.createElement("div",{className:"liveblog-meta-author-avatar",dangerouslySetInnerHTML:{__html:e.avatar}}),d.default.createElement("span",{className:"liveblog-meta-author-name",dangerouslySetInnerHTML:{__html:e.name}}))})),this.isEditing()?d.default.createElement("div",{className:"liveblog-entry-edit"},d.default.createElement(k.default,{entry:n,isEditing:!0})):d.default.createElement("div",{className:"liveblog-entry-content",dangerouslySetInnerHTML:{__html:n.render}}),this.entryActions()))}}]),t}(c.Component);x.propTypes={user:p.default.object,config:p.default.object,entry:p.default.object,entryEditOpen:p.default.func,entryEditClose:p.default.func,deleteEntry:p.default.func,activateScrolling:p.default.bool,resetScrollOnEntry:p.default.func};var E=function(e){return e},S=function(e){return(0,f.bindActionCreators)(u({},y,_),e)};t.default=(0,m.connect)(E,S)(x)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0)&&o.default.createElement("div",{className:"liveblog-update-btn-container"},o.default.createElement("button",{className:"liveblog-btn liveblog-update-btn",onClick:n},t.length," new ",t.length>1?"entries":"entry"," available"))};u.propTypes={polling:s.default.array,click:s.default.func},t.default=u},function(e,t){}]); \ No newline at end of file