(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2939],{29380:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",c="object",u="string",l="major",f="model",p="name",d="type",g="vendor",h="version",b="architecture",y="console",v="mobile",m="tablet",w="smarttv",S="wearable",x="embedded",k="Amazon",C="Apple",_="ASUS",E="BlackBerry",O="Browser",T="Chrome",D="Firefox",K="Google",A="Huawei",M="LG",B="Microsoft",N="Motorola",L="Opera",R="Samsung",F="Sharp",P="Sony",I="Xiaomi",j="Zebra",U="Facebook",z="Chromium OS",H="Mac OS",q=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;f+=2}},X=function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var n=0;n2&&(e[f]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[p]=o,e[h]=o,J.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[p]=o,e[h]=o,J.call(e,n,w.os),S&&!e[p]&&y&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?G(e,500):e,this},this.setUA(n),this};Y.VERSION="1.0.37",Y.BROWSER=q([p,h,l]),Y.CPU=q([b]),Y.DEVICE=q([f,g,d,y,v,w,m,S,x]),Y.ENGINE=Y.OS=q([p,h]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?(n=function(){return Y}.call(t,r,t,e))===o||(e.exports=n):typeof i!==s&&(i.UAParser=Y);var Q=typeof i!==s&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new Y;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:this)},21838:(e,t,r)=>{"use strict";function n(e){for(var t=1;t{"use strict";var n=r(92990).OrderedMap,i={createFromArray:function(e){return n(e.map((function(e){return[e.getKey(),e]})))}};e.exports=i},78524:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(79594),o=r(27532),a=r(92990),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,r){var n=t.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],a=r?r.getDecorations(t,e):s(c(null,n)),u=t.getCharacterList();return i(a,g,l,(function(e,t){var r,n,c,d;o.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:(r=u.slice(e,t).toList(),n=e,c=[],d=r.map((function(e){return e.getStyle()})).toList(),i(d,g,l,(function(e,t){c.push(new f({start:e+n,end:t+n}))})),s(c))}))})),s(o)},fromJS:function(e){var t=e.leaves,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,["leaves"]);return new p(function(e){for(var t=1;t{"use strict";var n=r(92990),i=n.Map,o=n.OrderedSet,a=n.Record,s=o(),c={style:s,entity:null},u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},n.applyStyle=function(e,t){var r=e.set("style",e.getStyle().add(t));return n.create(r)},n.removeStyle=function(e,t){var r=e.set("style",e.getStyle().remove(t));return n.create(r)},n.applyEntity=function(e,t){var r=e.getEntity()===t?e:e.set("entity",t);return n.create(r)},n.create=function(e){if(!e)return l;var t=i({style:s,entity:null}).merge(e),r=f.get(t);if(r)return r;var o=new n(t);return f=f.set(t,o),o},n.fromJS=function(e){var t=e.style,r=e.entity;return new n({style:Array.isArray(t)?o(t):t,entity:Array.isArray(r)?o(r):r})},n}(a(c)),l=new u,f=i([[i(c),l]]);u.EMPTY=l,e.exports=u},20722:(e,t,r)=>{"use strict";var n=r(92990).List,i=function(){function e(e){var t,r;r=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach((function(n,i){var o=0;(0,n.strategy)(e,(function(e,t){(function(e,t,r){for(var n=t;n{"use strict";var n=r(73723),i=r(79594),o=r(92990),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,f=c(),p=function(e){var t,r;function o(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){i(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},o}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},8827:(e,t,r)=>{"use strict";var n=r(73723),i=r(79594),o=r(92990),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,f=c(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},g=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){var t,r;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){i(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},o}(u(p));e.exports=h},46527:(e,t,r)=>{"use strict";function n(e){for(var t=1;t1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,r){return u.__create(e,t,r),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},i.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,n=o.createFromArray(r),a=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t||u,selectionBefore:a,selectionAfter:a})},i.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(t).map((function(e){return e=h(e),new x({key:f(),text:e,type:"unstyled",characterList:b(v(a.EMPTY,e.length))})}));return i.createFromBlockArray(r)},i.fromJS=function(e){return new i(n({},e,{blockMap:w(e.blockMap).map(i.createContentBlockFromJS),selectionBefore:new l(e.selectionBefore),selectionAfter:new l(e.selectionAfter)}))},i.createContentBlockFromJS=function(e){var t=e.characterList;return new x(n({},e,{data:m(e.data),characterList:null!=t?b((Array.isArray(t)?t:p(t)).map((function(e){return a.fromJS(e)}))):void 0}))},i}(S);e.exports=k},89865:(e,t,r)=>{"use strict";var n=r(73723),i=r(92990).Map,o={add:function(e,t,r){return a(e,t,r,!0)},remove:function(e,t,r){return a(e,t,r,!1)}};function a(e,t,r,o){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(i([[u,a.get(u)]])).map((function(e,t){var i,a;s===u?(i=c,a=l):(i=t===s?c:0,a=t===u?l:e.getLength());for(var f,p=e.getCharacterList();i{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(29409),o=r(79801),a=r(86686),s=r(92990),c=r(10905),u=r(44261),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=i.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=e,this.mutations=l();var r=a(e);r.MutationObserver&&!p?this.observer=new r.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t{"use strict";var n=r(40099),i=r(33554),o=(0,r(92990).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=o},44131:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},80246:(e,t,r)=>{"use strict";var n=r(21838),i=r(90437),o=r(73723),a=r(20722),s=r(15351),c=r(46527),u=r(93748),l=r(44131),f=r(12102),p=r(15603),d=r(7149),g=r(82151),h=r(82614),b=r(32103),y=r(40566),v=r(35866),m=r(22101),w=r(29822),S=r(17945),x=r(611),k=r(72350),C=r(73712),_=r(90975),E={Editor:f,EditorBlock:p,EditorState:b,CompositeDecorator:a,Entity:d,EntityInstance:h,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:g,RichUtils:m,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:r(26607),convertFromRaw:x,convertToRaw:S,genKey:k,getDefaultKeyBinding:C,getVisibleSelectionRect:_};e.exports=E},12102:(e,t,r)=>{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else y(r)||b(!1),(n=r.offsetHeight+r.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),n=t.getText(),c=this.props.tree.size-1,u=m(this.props.selection,r);return this.props.tree.map((function(p,d){var g=p.get("leaves");if(0===g.size)return null;var h=g.size-1,b=g.map((function(i,l){var f=a.encode(r,d,l),p=i.get("start"),g=i.get("end");return s.createElement(o,{key:f,offsetKey:f,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:n.slice(p,g),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===c&&l===h})})).toArray(),y=p.get("decoratorKey");if(null==y)return b;if(!e.props.decorator)return b;var m=v(e.props.decorator),w=m.getComponentForKey(y);if(!w)return b;var S=m.getPropsForKey(y),x=a.encode(r,d,0),k=g.first().get("start"),C=g.last().get("end"),_=n.slice(k,C),E=t.getEntityAt(p.get("start")),O=f.getHTMLDirIfDifferent(l.getDirection(_),e.props.direction),T={contentState:e.props.contentState,decoratedText:_,dir:O,start:k,end:C,blockKey:r,entityKey:E,offsetKey:x};return s.createElement(w,i({},S,T,{key:x}),b)})).toArray()},w.render=function(){var e=this,t=this.props,r=t.direction,n=t.offsetKey,i=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return s.createElement("div",{"data-offset-key":n,className:i,ref:function(t){return e._node=t}},this._renderChildren())},n}(s.Component);e.exports=w},96331:(e,t,r)=>{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{y(r)||b(!1);var s=r;(n=s.offsetHeight+s.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}}},h.render=function(){var e=this,t=this.props,r=t.block,a=t.blockRenderMap,l=t.blockRendererFn,f=t.blockStyleFn,p=t.contentState,d=t.decorator,g=t.editorKey,h=t.editorState,b=t.customStyleFn,y=t.customStyleMap,x=t.direction,k=t.forceSelection,C=t.selection,_=t.tree,E=null;r.children.size&&(E=r.children.reduce((function(t,r){var i=c.encode(r,0,0),s=p.getBlockForKey(r),d=w(s,l),b=d.CustomComponent||n,y=m(s,a),v=y.Element,x=y.wrapperTemplate,k=S(s,g,i,f,d,null),C=o({},e.props,{tree:h.getBlockTree(r),blockProps:d.customProps,offsetKey:i,block:s});return t.push(u.createElement(v,k,u.createElement(b,C))),!x||function(e,t){var r=e.getNextSiblingKey();return!!r&&t.getBlockForKey(r).getType()===e.getType()}(s,p)||function(e,t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=r.reverse()[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var f=s.value;if(f.type!==t)break;n.push(f)}}catch(e){o=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),d=p[0].key;r.push(u.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},p))}(x,v,t),t}),[]));var O=r.getKey(),T=c.encode(O,0,0),D=w(r,l),K=D.CustomComponent,A=null!=K?u.createElement(K,i({},this.props,{tree:h.getBlockTree(O),blockProps:D.customProps,offsetKey:T,block:r})):u.createElement(s,{block:r,children:E,contentState:p,customStyleFn:b,customStyleMap:y,decorator:d,direction:x,forceSelection:k,hasSelection:v(C,O),selection:C,tree:_});if(r.getParentKey())return A;var M=m(r,a).Element,B=S(r,g,T,f,D,this.wrapperRef);return u.createElement(M,B,A)},n}(u.Component);e.exports=x},40357:(e,t,r)=>{"use strict";var n=r(61915),i=r(82151),o=r(7234),a=r(32103),s=r(91929),c=r(29409),u=r(32256),l=r(88473),f=r(18501),p=r(89768),d=r(44261),g=c.isBrowser("IE"),h=!1,b=!1,y=null,v={onCompositionStart:function(e){b=!0,function(e){y||(y=new n(l(e))).start()}(e)},onCompositionEnd:function(e){h=!1,b=!1,setTimeout((function(){h||v.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!b)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!b){var t=d(y).stopAndFlushMutations();y=null,h=!0;var r=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var n=r.getCurrentContent();t.forEach((function(e,t){var s=o.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,f=r.getBlockTree(c).getIn([u,"leaves",l]),d=f.start,g=f.end,h=r.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:g,isBackward:!1}),b=p(n,h),y=n.getBlockForKey(c).getInlineStyleAt(d);n=i.replaceText(n,h,e,y,b),r=a.set(r,{currentContent:n})}));var s=f(r,l(e)).selectionState;e.restoreEditorDOM();var c=g?a.forceSelection(r,s):a.acceptSelection(r,s);e.update(a.push(c,n,"insert-characters"))}else e.update(r)}}};e.exports=v},20580:(e,t,r)=>{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},g=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return i!==o||a!==s||c!==u||r.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,g=e.editorState,h=e.editorKey,b=e.preventScroll,y=e.textDirectionality,v=g.getCurrentContent(),m=g.getSelection(),w=g.mustForceSelection(),S=g.getDecorator(),x=p(g.getDirectionMap()),k=v.getBlocksAsArray(),C=[],_=null,E=null,O=0;O_,L)));var H=M||s,q={className:z,"data-block":!0,"data-editor":h,"data-offset-key":R,key:D};void 0!==N&&(q=o({},q,{contentEditable:N,suppressContentEditableWarning:!0}));var W=u.createElement(j,q,u.createElement(H,i({},F,{key:D})));C.push({block:W,wrapperTemplate:I,key:D,offsetKey:R}),_=I?T.getDepth():null,E=I}for(var V=[],G=0;G{"use strict";var n=r(21775)("draft_tree_data_support");e.exports=r(n?54030:20580)},54030:(e,t,r)=>{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t{"use strict";var n=r(1697);function i(){return i=n||function(e){for(var t=1;t{"use strict";var n=r(38138),i=r(82151),o=r(32103),a=r(79801),s=r(9314),c=r(87222),u=r(41089),l=r(86686),f=r(68336),p=r(44261),d={onDragEnd:function(e){e.exitCurrentMode(),g(e)},onDrop:function(e,t){var r=new n(t.nativeEvent.dataTransfer),l=e._latestEditorState,d=function(e,t){var r=null,n=null,i=s(e.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(e.x,e.y);r=o.startContainer,n=o.startOffset}else{if(!e.rangeParent)return null;r=e.rangeParent,n=e.rangeOffset}r=p(r),n=p(n);var c=p(a(r));return u(t,c,n,c,n)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var b=r.getFiles();if(b.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(d,b)))return;c(b,(function(t){t&&e.update(h(l,d,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(d,r,y))||(e._internalDrag?e.update(function(e,t){var r=i.moveText(e.getCurrentContent(),e.getSelection(),t);return o.push(e,r,"insert-fragment")}(l,d)):e.update(h(l,d,r.getText()))),g(e)}}}};function g(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var r=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(r)}}function h(e,t,r){var n=i.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return o.push(e,n,"insert-fragment")}e.exports=d},84943:(e,t,r)=>{"use strict";var n=r(29409),i=r(8935),o=r(33713),a=r(26642),s=r(16189),c=r(74010),u=r(53912),l=r(18952),f=r(39838),p=r(21954),d=r(19885),g=r(38345),h=r(32256),b=n.isBrowser("Chrome"),y=n.isBrowser("Firefox"),v=b||y?h:function(e){},m={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:g,onSelect:h,onMouseUp:v,onKeyUp:v};e.exports=m},3755:(e,t,r)=>{"use strict";var n=r(18499).unstable_flushControlled;e.exports=n},22094:(e,t,r)=>{"use strict";var n=r(1697),i=r(31046),o=r(40099),a=r(10905),s=r(474),c=r(64041).setDraftEditorSelection,u=function(e){var t,r;function u(){for(var t,r,n,i,o=arguments.length,a=new Array(o),s=0;s{"use strict";var n=r(54719),i=r(22094),o=r(7234),a=r(92990),s=r(40099),c=r(33554),u=(a.List,function(e){var t,r;function a(){return e.apply(this,arguments)||this}return r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.prototype.render=function(){var e=this.props,t=e.block,r=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,f=e.direction,p=e.forceSelection,d=e.hasSelection,g=e.selection,h=e.tree,b=t.getKey(),y=t.getText(),v=h.size-1,m=this.props.children||h.map((function(e,c){var h=e.get("decoratorKey"),m=e.get("leaves"),w=m.size-1,S=m.map((function(e,r){var n=o.encode(b,c,r),l=e.get("start"),f=e.get("end");return s.createElement(i,{key:n,offsetKey:n,block:t,start:l,selection:d?g:null,forceSelection:p,text:y.slice(l,f),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:h===v&&r===w})})).toArray();return h&&l?s.createElement(n,{block:t,children:S,contentState:r,decorator:l,decoratorKey:h,direction:f,leafSet:e,text:y,key:c}):S})).toArray();return s.createElement("div",{"data-offset-key":o.encode(b,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},m)},a}(s.Component));e.exports=u},34023:(e,t,r)=>{"use strict";var n=r(40099),i=r(33554),o=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=o.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return n.createElement("div",{className:t},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(n.Component);e.exports=o},31046:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(40099),a=r(29409),s=r(10905),c=r(23653),u=a.isBrowser("IE <= 11"),l=function(e){var t,r;function a(t){var r;return i(n(r=e.call(this,t)||this),"_forceFlag",void 0),i(n(r),"_node",void 0),r._forceFlag=!1,r}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,r=""===e.children;c(t)||s(!1);var n=t;return r?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(n):n.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?o.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(o.Component);e.exports=l},97062:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},7149:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(82614),o=r(92990),a=r(10905),s=r(20570),c=(0,o.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,r){return l("DraftEntity.create","contentState.createEntity"),f.__create(e,t,r)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,r){return f.__add(new i({type:e,mutability:t,data:r||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var r=f.__get(e),i=function(e){for(var t=1;t{"use strict";var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},n}((0,r(92990).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},79943:e=>{"use strict";e.exports={getRemovalRange:function(e,t,r,n,i){var o=r.split(" ");o=o.map((function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},82151:(e,t,r)=>{"use strict";var n=r(73723),i=r(89865),o=r(49141),a=r(46299),s=r(94187),c=r(92990),u=r(48236),l=r(78411),f=r(10905),p=r(73881),d=r(533),g=r(81338),h=r(1913),b=c.OrderedSet,y={replaceText:function(e,t,r,i,o){var a=d(e,t),s=g(a,t),c=n.create({style:i||b(),entity:o||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,r,n,i){return t.isCollapsed()||f(!1),y.replaceText(e,t,r,n,i)},moveText:function(e,t,r){var n=s(e,t),i=y.removeRange(e,t,"backward");return y.replaceWithFragment(i,r,n)},replaceWithFragment:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(e,t),o=g(i,t);return u(o,o.getSelectionAfter(),r,n)},removeRange:function(e,t,r){var n,i,o,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(n),s=e.getBlockForKey(i);var c=t.getStartOffset(),u=t.getEndOffset(),l=o.getEntityAt(c),f=s.getEntityAt(u-1);if(n===i&&l&&l===f){var p=a(e.getEntityMap(),o,s,t,r);return g(e,p)}var h=d(e,t);return g(h,t)},splitBlock:function(e,t){var r=d(e,t),n=g(r,t);return h(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return i.add(e,t,r)},removeInlineStyle:function(e,t,r){return i.remove(e,t,r)},setBlockType:function(e,t,r){return p(e,t,(function(e){return e.merge({type:r,depth:0})}))},setBlockData:function(e,t,r){return p(e,t,(function(e){return e.merge({data:r})}))},mergeBlockData:function(e,t,r){return p(e,t,(function(e){return e.merge({data:e.getData().merge(r)})}))},applyEntity:function(e,t,r){var n=d(e,t);return o(n,t,r)}};e.exports=y},7234:e=>{"use strict";var t="-",r={encode:function(e,r,n){return e+t+r+t+n},decode:function(e){var r=e.split(t).reverse(),n=r[0],i=r[1];return{blockKey:r.slice(2).reverse().join(t),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}};e.exports=r},42131:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(15351),o=r(8827),a=r(26607),s=r(72350),c=r(13217),u=r(21775),l=r(92990),f=r(60180),p=l.List,d=l.Repeat,g=u("draft_tree_data_support"),h=g?o:i,b={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,r){return e.reduce((function(e,i,o){i=f(i);var a=s(),c={key:a,type:r,text:i,characterList:p(d(t,i.length))};if(g&&0!==o){var u=o-1;c=function(e){for(var t=1;t{"use strict";var n="['‘’]",i="\\s|(?![_])"+r(26024).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:"+n+"|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:"+n+"|(?!"+i+").)*(?:"+i+")*$");function s(e,t){var r=t?a.exec(e):o.exec(e);return r?r[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},40476:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},34195:(e,t,r)=>{"use strict";function n(e){for(var t=1;t0)||(delete u.children,r.push(u));var o=i.children;Array.isArray(o)||a(!1),t=t.concat([].concat(o.reverse()))}var c,u}(t),e.blocks=r,n({},e,{blocks:r})):e},fromRawStateToRawTreeState:function(e){var t=[],r=[];return e.blocks.forEach((function(e){var i=s(e),a=e.depth||0,c=n({},e,{children:[]});if(i){var u=r[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth=a;)r.shift(),u=r[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)})),n({},e,{blocks:t})}};e.exports=c},13715:(e,t,r)=>{"use strict";r(23017),e.exports={isValidBlock:function(e,t){var r=e.getKey(),n=e.getParentKey();if(null!=n&&!t.get(n).getChildKeys().includes(r))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===r})))return!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==r)return!1;var o=e.getNextSiblingKey();return(null==o||t.get(o).getPrevSiblingKey()===r)&&!(null!==o&&null!==i&&i===o||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var r=0,n=t.shift().getKey(),i=[];null!=n;){var o=e.get(n),a=o.getChildKeys(),s=o.getNextSiblingKey();if(a.size>0){null!=s&&i.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;n=c.getKey()}else n=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();r++}return r===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(r){return t.isValidBlock(r,e)}))&&this.isConnectedTree(e)}}},76916:(e,t,r)=>{"use strict";var n,i=r(25809),o=r(92990),a=r(44261),s=o.OrderedMap,c={getDirectionMap:function(e,t){n?n.reset():n=new i;var r=e.getBlockMap(),c=r.valueSeq().map((function(e){return a(n).getDirection(e.getText())})),u=s(r.keySeq().zip(c));return null!=t&&o.is(t,u)?t:u}};e.exports=c},32103:(e,t,r)=>{"use strict";function n(e){for(var t=1;t0?i.getInlineStyleAt(n-1):i.getLength()?i.getInlineStyleAt(0):m(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),i=e.getBlockForKey(r);return n0?i.getInlineStyleAt(n-1):m(e,r)}(t,r)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var r=e.getCurrentContent().getLastBlock(),n=r.getKey(),i=r.getLength();return t.acceptSelection(e,new c({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var r=t.moveSelectionToEnd(e);return t.forceSelection(r,r.getSelection())},t.push=function(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===r)return e;var o=s.getDirectionMap(r,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:r,directionMap:o,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),u=e.getUndoStack(),l=r;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",c.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var d={currentContent:l,directionMap:o,undoStack:u,redoStack:p(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var r=e.getUndoStack(),n=r.peek();if(!n)return e;var i=e.getCurrentContent(),o=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var r=e.getRedoStack(),n=r.peek();if(!n)return e;var i=e.getCurrentContent(),o=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,r){return b.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(r){return o.generate(e,r,t)})).toOrderedMap()}function m(e,t){var r=e.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=b},40566:(e,t,r)=>{"use strict";var n=r(29409),i=r(83465),o=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:i};e.exports=a},35866:()=>{},22101:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103),o=r(50439),a=r(44261),s={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,r){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=i.push(e,t,"insert-characters");return i.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var a=r.getBlockMap().delete(o.getKey()),c=r.merge({blockMap:a,selectionAfter:t});if(c!==r)return i.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?i.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),o=t.getStartKey(),a=r.getBlockForKey(o).getLength();if(t.getStartOffset(){"use strict";var n=r(82151),i=r(32103),o=r(94187),a=r(44261),s=null,c={cut:function(e){var t=e.getCurrentContent(),r=e.getSelection(),c=null;if(r.isCollapsed()){var u=r.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===r.getAnchorOffset()){var f=t.getKeyAfter(u);if(null==f)return e;c=r.set("focusKey",f).set("focusOffset",0)}else c=r.set("focusOffset",l)}else c=r;c=a(c),s=o(t,c);var p=n.removeRange(t,c,"forward");return p===t?e:i.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=n.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return i.push(e,t,"insert-fragment")}};e.exports=c},29822:(e,t,r)=>{"use strict";var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=r||t<=a&&a<=r}if(e!==n&&e!==i)return!1;var s=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=s&&r>=s},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},n.createEmpty=function(e){return new n({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,r(92990).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},50439:e=>{"use strict";e.exports=function(e,t,r,n){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat([[o,a.get(o)]]).map((function(e){var t=e.getDepth()+r;return t=Math.max(0,Math.min(t,n)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},96937:(e,t,r)=>{"use strict";var n=r(73723);e.exports=function(e,t,r,i){for(var o=t,a=e.getCharacterList();o{"use strict";var n=r(96937),i=r(92990);e.exports=function(e,t,r){var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(i.OrderedMap([[c,o.get(c)]])).map((function(e,t){var i=t===a?s:0,o=t===c?u:e.getLength();return n(e,i,o,r)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}},17945:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(15351),o=r(8827),a=r(40476),s=r(20646),c=r(1435),u=r(10905),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var r=t.entityMap,s=[],c={},f={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var n=e.getEntityAt(t),i=a.stringify(n);f[i]||(f[i]=n,r[i]="".concat(p),p++)})),function(e,t,r,a){if(e instanceof i)r.push(l(e,t));else{e instanceof o||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t{"use strict";var n;function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(r){e.classList.contains(r)&&(t=L[r])})),t},I=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(e){return!1}},j=function(e){if(!k(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!x(e))return t;var r=e,n=r.style.fontWeight,i=r.style.fontStyle,o=r.style.textDecoration;return t.withMutations((function(e){A.indexOf(n)>=0?e.add("BOLD"):M.indexOf(n)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},z=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){o(this,"characterList",y()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",l),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],m())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(C?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var r=[],n=0;n(r=void 0!==(n=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(r,e-n[0]):r)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,r),this.characterList=this.characterList.slice(t,r))},t._addTextNode=function(e,t){var r=e.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(E," ")),this._appendText(r,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(k(e)){var r=e,n={};N.forEach((function(e){var t=r.getAttribute(e);t&&(n[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n),h("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,r){if(w(e)){var n=e,i={};B.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),i.url=new f(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),r)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,n=0;n<=r;n++){var o=e[n];o.parent=t,o.prevSibling=n>0?e[n-1].key:null,o.nextSibling=n2&&void 0!==arguments[2]?arguments[2]:u,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g)(e=e.trim().replace(_,"").replace(T," ").replace(D,"").replace(K,""));if(!r)return null;var n=function(e){var t={};return e.mapKeys((function(e,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach((function(r){void 0===t[r]?t[r]=e:"string"==typeof t[r]?t[r]=[t[r],e]:t[r].push(e)}))})),v(t)}(t);return new H(n,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(r).getContentBlocks()}},611:(e,t,r)=>{"use strict";function n(e){for(var t=1;t0})),i=v&&!r?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return S(e.map((function(e){var r=new o(x(e,t));return[r.getKey(),r]})))}(r?u.fromRawTreeStateToRawState(e).blocks:i,t);var s=function(e,t){return e.map(C).reduce((function(r,i,o){Array.isArray(i.children)||y(!1);var s=i.children.map(C),c=new a(n({},x(i,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:m(s.map((function(e){return e.key})))}));r=r.set(c.getKey(),c);for(var u=_([],s,c);u.length>0;){var l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),g=Array.isArray(l.children);if(!g){g||y(!1);break}var h=l.children.map(C),b=new a(n({},x(l,t),{parent:f.getKey(),children:m(h.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));r=r.set(b.getKey(),b),u=_(u,h,b)}return r}),S())}(i,t);return s}(e,t),i=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new s({blockMap:r,entityMap:t,selectionBefore:i,selectionAfter:i})}},31997:(e,t,r)=>{"use strict";var n=r(73723),i=r(92990).List;e.exports=function(e,t){var r=e.map((function(e,r){var i=t[r];return n.create({style:e,entity:i})}));return i(r)}},65346:(e,t,r)=>{"use strict";var n=r(98825).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var i=n(e,0,t.offset).length,o=i+n(e,t.offset,t.length).length,a=i;a{"use strict";var n=r(98825),i=r(92990).OrderedSet,o=n.substr,a=i();e.exports=function(e,t){var r=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var n=o(e,0,t.offset).length,i=n+o(e,t.offset,t.length).length;n{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},8935:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103),o=r(29409),a=r(89768),s=r(68336),c=r(29704),u=r(44261),l=r(5840),f=o.isBrowser("Firefox");function p(e,t,r,o,a){var s=n.replaceText(e.getCurrentContent(),e.getSelection(),t,r,o);return i.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,n=t.data;if(n)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(n,r,t.timeStamp)))t.preventDefault();else{var o=r.getSelection(),d=o.getStartOffset(),g=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var h,b=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var v=r.getBlockTree(g),m=b.getBlockTree(g);y=v.size!==m.size||v.zip(m).some((function(e){var t=e[0],r=e[1],i=t.get("start"),o=i+(i>=d?n.length:0),a=t.get("end"),s=a+(a>=d?n.length:0),c=r.get("start"),u=r.get("end"),l=r.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==r.get("leaves").size||o!==c||s!==u||null!=l&&u-c!=a-i}))}if(y||(h=n,y=f&&("'"==h||"/"==h)),y||(y=u(b.getDirectionMap()).get(g)!==u(r.getDirectionMap()).get(g)),y)return t.preventDefault(),b=i.set(b,{forceSelection:!0}),void e.update(b);b=i.set(b,{nativelyRenderedContent:b.getCurrentContent()}),e._pendingStateFromBeforeInput=b,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},33713:(e,t,r)=>{"use strict";var n=r(32103),i=r(61348),o=r(4735);e.exports=function(e,t){var r=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&o(r)===r.body){var a=r.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&i(s,a.anchorNode)&&i(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(n.acceptSelection(c,l))}}},26642:(e,t,r)=>{"use strict";var n=r(32103);e.exports=function(e,t){e.setMode("composite"),e.update(n.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},16189:(e,t,r)=>{"use strict";var n=r(50783);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(n(e._latestEditorState))}},74010:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103),o=r(27372),a=r(50783),s=r(88672),c=r(89259);e.exports=function(e,t){var r,u=e._latestEditorState,l=u.getSelection(),f=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(f)){var p=f;r=s(o.getScrollParent(p))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(r),e.exitCurrentMode(),e.update(function(e){var t=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return i.push(e,t,"remove-range")}(u))}),0)}}},53912:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},18952:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},39838:(e,t,r)=>{"use strict";var n=r(32103),i=r(29409);e.exports=function(e,t){var r=e._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),i.isBrowser("Chrome < 60.0.3081.0")?e.update(n.forceSelection(r,a)):e.update(n.acceptSelection(r,a))}}},21954:(e,t,r)=>{"use strict";var n=r(82151),i=r(7234),o=r(32103),a=r(29409),s=r(97234).notEmptyKey,c=r(79801),u=r(9126),l=r(44261),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,p=r.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var g=a.parentNode;if(null==g)return;a.nodeValue=g.textContent;for(var h=g.firstChild;null!=h;h=h.nextSibling)h!==a&&g.removeChild(h)}var b=a.textContent,y=e._latestEditorState,v=l(c(a)),m=i.decode(v),w=m.blockKey,S=m.decoratorKey,x=m.leafKey,k=y.getBlockTree(w).getIn([S,"leaves",x]),C=k.start,_=k.end,E=y.getCurrentContent(),O=E.getBlockForKey(w),T=O.getText().slice(C,_);if(b.endsWith("\n\n")&&(b=b.slice(0,-1)),b!==T){var D,K,A,M,B=y.getSelection(),N=B.merge({anchorOffset:C,focusOffset:_,isBackward:!1}),L=O.getEntityAt(C),R=s(L)?E.getEntity(L):null,F="MUTABLE"===(null!=R?R.getMutability():null),P=F?"spellcheck-change":"apply-entity",I=n.replaceText(E,N,b,O.getInlineStyleAt(C),F?O.getEntityAt(C):null);if(f)D=r.anchorOffset,K=r.focusOffset,M=(A=C+Math.min(D,K))+Math.abs(D-K),D=A,K=M;else{var j=b.length-T.length;A=B.getStartOffset(),M=B.getEndOffset(),D=p?M+j:A,K=M+j}var U=I.merge({selectionBefore:E.getSelectionAfter(),selectionAfter:B.merge({anchorOffset:D,focusOffset:K})});e.update(o.push(y,U,P))}else{var z=t.nativeEvent.inputType;if(z){var H=function(e,t){return"deleteContentBackward"===e?u(t):t}(z,y);if(H!==y)return e.restoreEditorDOM(),void e.update(H)}}}}},19885:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103),o=r(40566),a=r(91929),s=r(34249),c=r(29409),u=r(68336),l=r(71748),f=r(51722),p=r(82038),d=r(26018),g=r(59312),h=r(61351),b=r(9126),y=r(15466),v=r(59486),m=r(70135),w=o.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var r=t.which,o=e._latestEditorState;function c(r){var n=e.props[r];return!!n&&(n(t),!0)}switch(r){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,o)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(x,o,t.timeStamp))){var k=function(e,t,r){switch(e){case"redo":return i.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return b(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return l(t,r);case"split-block":return d(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return h(t);case"move-selection-to-end-of-block":return g(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,o,t);k!==o&&e.update(k)}}else m(t,o,e.update);else if(r===a.SPACE&&S&&w(t)){var C=n.replaceText(o.getCurrentContent(),o.getSelection()," ");e.update(i.push(o,C,"insert-characters"))}}},38345:(e,t,r)=>{"use strict";var n=r(90437),i=r(73723),o=r(38138),a=r(82151),s=r(42131),c=r(32103),u=r(22101),l=r(89768),f=r(87222),p=r(68336),d=r(43765);function g(e,t,r){var n=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new o(t.clipboardData);if(!r.isRichText()){var h=r.getFiles(),b=r.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,(function(t){if(t=t||b){var r=e._latestEditorState,o=d(t),f=i.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=u.getCurrentBlockType(r),g=s.processText(o,f,p),h=n.createFromArray(g),y=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),h);e.update(c.push(r,y,"insert-fragment"))}}))}}var y=[],v=r.getText(),m=r.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(v,m);v=S.text,m=S.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(v,m,w))){if(v&&(y=d(v)),!e.props.stripPastedStyles){var x,k=e.getClipboard();if(!e.props.formatPastedText&&r.isRichText()&&k){if(-1!==(null===(x=m)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===y.length&&1===k.size&&k.first().getText()===v)return void e.update(g(e._latestEditorState,k))}else if(k&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,r){return t.getText()===e[r]}))}(y,k))return void e.update(g(e._latestEditorState,k));if(m){var C=s.processHTML(m,e.props.blockRenderMap);if(C){var _=C.contentBlocks,E=C.entityMap;if(_){var O=n.createFromArray(_);return void e.update(g(e._latestEditorState,O,E))}}}e.setClipboard(null)}if(y.length){var T=i.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),D=u.getCurrentBlockType(w),K=s.processText(y,T,D),A=n.createFromArray(K);e.update(g(e._latestEditorState,A))}}}},32256:(e,t,r)=>{"use strict";var n=r(64865),i=r(32103),o=r(88473),a=r(18501);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var r=e.props.editorState,s=a(r,o(e)),c=s.selectionState;c!==r.getSelection()&&(r=s.needsRecovery?i.forceSelection(r,c):i.acceptSelection(r,c),e.update(r))}}},20646:(e,t,r)=>{"use strict";var n=r(40476),i=r(98825).strlen;e.exports=function(e,t){var r=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(o,a){var s=e.getText(),c=e.getEntityAt(o);r.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[n.stringify(c)])})})),r}},1435:(e,t,r)=>{"use strict";var n=r(98825),i=r(79594),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),r=t.flatten().toSet().map((function(r){return function(e,t,r){var s=[],c=t.map((function(e){return e.has(r)})).toList();return i(c,o,a,(function(t,i){var o=e.getText();s.push({offset:n.strlen(o.slice(0,t)),length:n.strlen(o.slice(t,i)),style:r})})),s}(e,t,r)}));return Array.prototype.concat.apply(s,r.toJS())}},29178:(e,t,r)=>{"use strict";var n=r(98825),i=r(9314),o=r(31455),a=r(10905);function s(e,t){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a=0;g--)if(!(null!=d&&g>0&&n.isSurrogatePair(d,g-1))){if(e.setStart(f,g),!s(o(e),r))break;u=f,l=g}if(-1===g||0===f.childNodes.length)break;p=c(f=f.childNodes[g])}return e.setStart(u,l),e}},79801:(e,t,r)=>{"use strict";var n=r(9314),i=r(57150);e.exports=function(e){for(var t=e;t&&t!==n(e).documentElement;){var r=i(t);if(null!=r)return r;t=t.parentNode}return null}},79594:e=>{"use strict";e.exports=function(e,t,r,n){if(e.size){var i=0;e.reduce((function(e,o,a){return t(e,o)||(r(e)&&n(i,a),i=a),o})),r(e.last())&&n(i,e.count())}}},72350:e=>{"use strict";var t={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return t[e]=!0,e}},46299:(e,t,r)=>{"use strict";var n=r(79943),i=r(99094),o=r(10905);function a(e,t,r,a,s,c,u){var l=r.getStartOffset(),f=r.getEndOffset(),p=e.__get(s).getMutability(),d=u?l:f;if("MUTABLE"===p)return r;var g=i(t,s).filter((function(e){return d<=e.end&&d>=e.start}));1!=g.length&&o(!1);var h=g[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});c||(u?f=h.end:l=h.start);var b=n.getRemovalRange(l,f,t.getText().slice(h.start,h.end),h.start,a);return r.merge({anchorOffset:b.start,focusOffset:b.end,isBackward:!1})}e.exports=function(e,t,r,n,i){var o=n.getStartOffset(),s=n.getEndOffset(),c=t.getEntityAt(o),u=r.getEntityAt(s-1);if(!c&&!u)return n;var l=n;if(c&&c===u)l=a(e,t,l,i,c,!0,!0);else if(c&&u){var f=a(e,t,l,i,c,!1,!0),p=a(e,r,l,i,u,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var d=a(e,t,l,i,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var g=a(e,r,l,i,u,!1,!1);l=l.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return l}},88473:(e,t,r)=>{"use strict";var n=r(10905),i=r(12586);e.exports=function(e){var t=e.editorContainer;return t||n(!1),i(t.firstChild)||n(!1),t.firstChild}},94187:(e,t,r)=>{"use strict";var n=r(30755),i=r(533);e.exports=function(e,t){var r=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=i(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(r),f=u.indexOf(a)+1;return n(c.slice(l,f).map((function(e,t){var n=e.getText(),i=e.getCharacterList();return r===a?e.merge({text:n.slice(o,s),characterList:i.slice(o,s)}):t===r?e.merge({text:n.slice(o),characterList:i.slice(o)}):t===a?e.merge({text:n.slice(0,s),characterList:i.slice(0,s)}):e})))}},9314:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},73712:(e,t,r)=>{"use strict";var n=r(40566),i=r(91929),o=r(29409),a=o.isPlatform("Mac OS X"),s=a&&o.isBrowser("Firefox < 29"),c=n.hasCommandModifier,u=n.isCtrlKeyCommand;function l(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return!a&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case i.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},18501:(e,t,r)=>{"use strict";var n=r(41016);e.exports=function(e,t){var r=t.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,s=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(e,t,i,o,a,s)}},41016:(e,t,r)=>{"use strict";var n=r(79801),i=r(57150),o=r(41089),a=r(10905),s=r(23653),c=r(44261);function u(e,t,r){var o=t,u=n(o);if(null!=u||e&&(e===o||e.firstChild===o)||a(!1),e===o&&(o=o.firstChild,s(o)||a(!1),"true"!==o.getAttribute("data-contents")&&a(!1),r>0&&(r=o.childNodes.length)),0===r){var f=null;if(null!=u)f=u;else{var p=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||i(e.firstChild));)e=e.firstChild;return e}(o);f=c(i(p))}return{key:f,offset:0}}var d=o.childNodes[r-1],g=null,h=null;if(i(d)){var b=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||i(e.lastChild));)e=e.lastChild;return e}(d);g=c(i(b)),h=l(b)}else g=c(u),h=l(d);return{key:g,offset:h}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,i,a,s){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(e,c(n(r)),i,c(n(a)),s),needsRecovery:!1};var p=null,d=null,g=!0;return l?(p={key:c(n(r)),offset:i},d=u(t,a,s)):f?(d={key:c(n(a)),offset:s},p=u(t,r,i)):(p=u(t,r,i),d=u(t,a,s),r===a&&i===s&&(g=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(e,p.key,p.offset,d.key,d.offset),needsRecovery:g}}},89768:(e,t,r)=>{"use strict";var n=r(97234).notEmptyKey;function i(e,t){return n(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(r=e.getBlockForKey(n).getEntityAt(o-1))!==e.getBlockForKey(n).getEntityAt(o)?null:i(e.getEntityMap(),r):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),i(e.getEntityMap(),r)}},50783:(e,t,r)=>{"use strict";var n=r(94187);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:n(e.getCurrentContent(),t)}},74851:(e,t,r)=>{"use strict";var n=r(8827);e.exports=function(e,t){if(!(e instanceof n))return null;var r=e.getNextSiblingKey();if(r)return r;var i=e.getParentKey();if(!i)return null;for(var o=t.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?t.get(a):null}return o?o.getNextSiblingKey():null}},27532:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},24469:(e,t,r)=>{"use strict";var n=r(31455);e.exports=function(e){var t=n(e),r=0,i=0,o=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];r=s.top,i=s.right,o=s.bottom,a=s.left}else{var c=t[0];r=c.top,i=c.right,o=c.bottom,a=c.left}for(var u=1;u{"use strict";var n=r(29409),i=r(10905),o=n.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),r=[],n=e.endContainer;null!=n;n=n.parentNode){var o=n===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(r.push(s),o)return r.reverse(),(a=[]).concat.apply(a,r);t.setEndBefore(n)}i(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=o},99094:(e,t,r)=>{"use strict";var n=r(10905);e.exports=function(e,t){var r=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){r.push({start:e,end:t})})),r.length||n(!1),r}},13217:(e,t,r)=>{"use strict";var n=r(29409),i=r(10905),o=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},57150:(e,t,r)=>{"use strict";var n=r(23653);e.exports=function e(t){if(n(t)){var r=t,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o{"use strict";var n=r(10905),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach((function(c){!function(e,t){if(!r.g.FileReader||e.type&&!(e.type in o))t("");else{if(""===e.type){var a="";return i.test(e.name)&&(a=e.name.replace(i,"")),void t(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&n(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}}(c,(function(r){a++,r&&s.push(r.slice(0,5e3)),a==e.length&&t(s.join("\r"))}))}))}},41089:(e,t,r)=>{"use strict";var n=r(7234),i=r(44261);e.exports=function(e,t,r,o,a){var s=i(e.getSelection());if(!t||!o)return s;var c=n.decode(t),u=c.blockKey,l=e.getBlockTree(u),f=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),p=n.decode(o),d=p.blockKey,g=e.getBlockTree(d),h=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!h)return s;var b=f.get("start"),y=h.get("start"),v=f?b+r:null,m=h?y+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===v&&s.getFocusKey()===d&&s.getFocusOffset()===m)return s;var w=!1;if(u===d){var S=f.get("end"),x=h.get("end");w=y===b&&x===S?a{"use strict";var n=r(24469);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),i=n(r),o=i.top,a=i.right,s=i.bottom,c=i.left;return 0===o&&0===a&&0===s&&0===c?null:i}},86686:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},21775:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},48236:(e,t,r)=>{"use strict";var n=r(90437),i=r(8827),o=r(92990),a=r(18762),s=r(10905),c=r(30755),u=o.List;e.exports=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var l=e.getBlockMap(),f=c(r),p=t.getStartKey(),d=t.getStartOffset(),g=l.get(p);return g instanceof i&&(g.getChildKeys().isEmpty()||s(!1)),1===f.size?function(e,t,r,n,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=r.get(i),u=c.getText(),l=c.getCharacterList(),f=i,p=o+n.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=n.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=n.getData()}var g=c.getType();u&&"unstyled"===g&&(g=n.getType());var h=c.merge({text:u.slice(0,o)+n.getText()+u.slice(o),characterList:a(l,n.getCharacterList(),o),type:g,data:d});return e.merge({blockMap:r.set(i,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(e,t,l,f.first(),p,d,o):function(e,t,r,o,a,s){var c=r.first()instanceof i,l=[],f=o.size,p=r.get(a),d=o.first(),g=o.last(),h=g.getLength(),b=g.getKey(),y=c&&(!p.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());r.forEach((function(e,t){t===a?(y?l.push(e):l.push(function(e,t,r){var n=e.getText(),i=e.getCharacterList(),o=n.slice(0,t),a=i.slice(0,t),s=r.first();return e.merge({text:o+s.getText(),characterList:a.concat(s.getCharacterList()),type:o?e.getType():s.getType(),data:s.getData()})}(e,s,o)),o.slice(y?0:1,f-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,r){var n=e.getText(),i=e.getCharacterList(),o=n.length,a=n.slice(t,o),s=i.slice(t,o),c=r.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,o))):l.push(e)}));var v=n.createFromArray(l);return c&&(v=function(e,t,r,n){return e.withMutations((function(t){var i=r.getKey(),o=n.getKey(),a=r.getNextSiblingKey(),s=r.getParentKey(),c=function(e,t){var r=e.getKey(),n=e,i=[];for(t.get(r)&&i.push(r);n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o),n=t.get(o)}return i}(n,e),l=c[c.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],n.getNextSiblingKey()),t.setIn([n.getNextSiblingKey(),"prevSibling"],i)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var f=e.get(s).getChildKeys(),p=f.indexOf(i)+1,d=f.toArray();d.splice.apply(d,[p,0].concat(c)),t.setIn([s,"children"],u(d))}}))}(v,0,p,d)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:b,anchorOffset:h,focusKey:b,focusOffset:h,isBackward:!1})})}(e,t,l,f,p,d)}},18762:e=>{"use strict";e.exports=function(e,t,r){var n=e;if(r===n.count())t.forEach((function(e){n=n.push(e)}));else if(0===r)t.reverse().forEach((function(e){n=n.unshift(e)}));else{var i=n.slice(0,r),o=n.slice(r);n=i.concat(t,o).toList()}return n}},78411:(e,t,r)=>{"use strict";var n=r(92990),i=r(18762),o=r(10905),a=n.Repeat;e.exports=function(e,t,r,n){t.isCollapsed()||o(!1);var s=null;if(null!=r&&(s=r.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),f=c.get(u),p=f.getText(),d=f.merge({text:p.slice(0,l)+r+p.slice(l,f.getLength()),characterList:i(f.getCharacterList(),a(n,s).toList(),l)}),g=l+s;return e.merge({blockMap:c.set(u,d),selectionAfter:t.merge({anchorOffset:g,focusOffset:g})})}},23653:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},68336:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},89337:(e,t,r)=>{"use strict";var n=r(23653);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"A"===e.nodeName}},474:(e,t,r)=>{"use strict";var n=r(23653);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"BR"===e.nodeName}},12586:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},21529:(e,t,r)=>{"use strict";var n=r(23653);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"IMG"===e.nodeName}},89259:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},29704:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=e.getBlockTree(r),i=t.getStartOffset(),o=!1;return n.some((function(e){return i===e.get("start")?(o=!0,!0):i{"use strict";var n=r(91929);e.exports=function(e){return e.which===n.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},71748:(e,t,r)=>{"use strict";var n=r(32103),i=r(29178),o=r(41016),a=r(69013),s=r(10739);e.exports=function(e,t){var r=s(e,(function(e){var r=e.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(e,1);var n=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=i(n),o(e,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState}),"backward");return r===e.getCurrentContent()?e:n.push(e,r,"remove-range")}},51722:(e,t,r)=>{"use strict";var n=r(13981),i=r(32103),o=r(69013),a=r(10739);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,r),s=n.getBackward(a);return o(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},82038:(e,t,r)=>{"use strict";var n=r(13981),i=r(32103),o=r(92443),a=r(10739);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),r=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(r),s=n.getForward(a);return o(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},26018:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},59312:(e,t,r)=>{"use strict";var n=r(32103);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}},61351:(e,t,r)=>{"use strict";var n=r(32103);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},9126:(e,t,r)=>{"use strict";var n=r(32103),i=r(98825),o=r(69013),a=r(10739);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},15466:(e,t,r)=>{"use strict";var n=r(32103),i=r(98825),o=r(92443),a=r(10739);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},59486:(e,t,r)=>{"use strict";var n=r(82151),i=r(32103),o=r(94187);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;r===l?(a=t.set("anchorOffset",r-1),s=t):s=(a=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var f=o(u,a),p=n.removeRange(u,a,"backward"),d=p.getSelectionAfter(),g=d.getAnchorOffset()-1,h=d.merge({anchorOffset:g,focusOffset:g}),b=n.replaceWithFragment(p,h,f),y=i.push(e,b,"insert-fragment");return i.acceptSelection(y,s)}},70135:(e,t,r)=>{"use strict";var n=r(32103);e.exports=function(e,t,r){var i=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout((function(){r(i)}),0)):r(i);else{var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}))}}},73881:(e,t,r)=>{"use strict";var n=r(92990).Map;e.exports=function(e,t,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat(n([[o,a.get(o)]])).map(r);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},87194:(e,t,r)=>{"use strict";var n=r(8827),i=r(74851),o=r(92990),a=r(10905),s=o.OrderedMap,c=o.List,u=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},l=function(e,t,r,n,i){if(!i)return e;var o="after"===n,a=t.getKey(),s=r.getKey(),l=t.getParentKey(),f=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),d=r.getParentKey(),g=o?r.getNextSiblingKey():s,h=o?s:r.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(p,e,(function(e){return e.merge({nextSibling:f})})),u(f,e,(function(e){return e.merge({prevSibling:p})})),u(g,e,(function(e){return e.merge({prevSibling:a})})),u(h,e,(function(e){return e.merge({nextSibling:a})})),u(d,e,(function(e){var t=e.getChildKeys(),r=t.indexOf(s),n=o?r+1:0!==r?r-1:0,i=t.toArray();return i.splice(n,0,a),e.merge({children:c(i)})})),u(a,e,(function(e){return e.merge({nextSibling:g,prevSibling:h,parent:d})}))}))};e.exports=function(e,t,r,o){"replace"===o&&a(!1);var c=r.getKey(),u=t.getKey();u===c&&a(!1);var f=e.getBlockMap(),p=t instanceof n,d=[t],g=f.delete(u);p&&(d=[],g=f.withMutations((function(e){var r=t.getNextSiblingKey(),n=i(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),i=t===u,o=r&&t!==r,a=!r&&e.getParentKey()&&(!n||t!==n);return!!(i||o||a)})).forEach((function(t){d.push(t),e.delete(t.getKey())}))})));var h=g.toSeq().takeUntil((function(e){return e===r})),b=g.toSeq().skipUntil((function(e){return e===r})).skip(1),y=d.map((function(e){return[e.getKey(),e]})),v=s();if("before"===o){var m=e.getBlockBefore(c);m&&m.getKey()===t.getKey()&&a(!1),v=h.concat([].concat(y,[[c,r]]),b).toOrderedMap()}else if("after"===o){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=h.concat([[c,r]].concat(y),b).toOrderedMap()}return e.merge({blockMap:l(v,t,r,o,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},69013:(e,t,r)=>{"use strict";r(23017),e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),a=i,s=0;if(t>o){var c=n.getKeyBefore(i);null==c?a=i:(a=c,s=n.getBlockForKey(c).getText().length)}else s=o-t;return r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},92443:(e,t,r)=>{"use strict";r(23017),e.exports=function(e,t){var r,n=e.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),r=0):r=o+t,n.merge({focusKey:s,focusOffset:r})}},30755:(e,t,r)=>{"use strict";var n=r(8827),i=r(72350),o=r(92990).OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t,r={};return o(e.withMutations((function(e){e.forEach((function(n,o){var a=n.getKey(),s=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),u=n.getChildKeys(),l=n.getParentKey(),f=i();if(r[a]=f,s&&(e.get(s)?e.setIn([s,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var p=e.get(l).getChildKeys();e.setIn([l,"children"],p.set(p.indexOf(n.getKey()),f))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],r[t.getKey()])),t=e.get(a);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],n.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[r[e.getKey()],e.set("key",r[e.getKey()])]})))}(e):function(e){return o(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))}(e)}},533:(e,t,r)=>{"use strict";var n=r(73723),i=r(79594),o=r(10905);function a(e,t,r){var a=t.getCharacterList(),s=r>0?a.get(r-1):void 0,c=r=r&&(n={start:e,end:t})})),"object"!=typeof n&&o(!1),n}(a,l,r),d=p.start,g=p.end;d{"use strict";var n=r(8827),i=r(74851),o=r(92990),a=(o.List,o.Map),s=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},c=function(e,t){var r=[];if(!e)return r;for(var n=t.get(e);n&&n.getParentKey();){var i=n.getParentKey();i&&r.push(i),n=i?t.get(i):null}return r},u=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getNextSiblingKey();n&&!t.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getPrevSiblingKey();n&&!t.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n};e.exports=function(e,t){if(t.isCollapsed())return e;var r,o=e.getBlockMap(),f=t.getStartKey(),p=t.getStartOffset(),d=t.getEndKey(),g=t.getEndOffset(),h=o.get(f),b=o.get(d),y=h instanceof n,v=[];if(y){var m=b.getChildKeys(),w=c(d,o);b.getNextSiblingKey()&&(v=v.concat(w)),m.isEmpty()||(v=v.concat(w.concat([d]))),v=v.concat(c(i(b,o),o))}r=h===b?function(e,t,r){if(0===t)for(;tt;)e=e.pop(),r--;else{var n=e.slice(0,t),i=e.slice(r);e=n.concat(i).toList()}return e}(h.getCharacterList(),p,g):h.getCharacterList().slice(0,p).concat(b.getCharacterList().slice(g));var S=h.merge({text:h.getText().slice(0,p)+b.getText().slice(g),characterList:r}),x=y&&0===p&&0===g&&b.getParentKey()===f&&null==b.getPrevSiblingKey()?a([[f,null]]):o.toSeq().skipUntil((function(e,t){return t===f})).takeUntil((function(e,t){return t===d})).filter((function(e,t){return-1===v.indexOf(t)})).concat(a([[d,null]])).map((function(e,t){return t===f?S:null})),k=o.merge(x).filter((function(e){return!!e}));return y&&h!==b&&(k=function(e,t,r,n){return e.withMutations((function(o){if(s(t.getKey(),o,(function(e){return e.merge({nextSibling:u(e,o,n),prevSibling:l(e,o,n)})})),s(r.getKey(),o,(function(e){return e.merge({nextSibling:u(e,o,n),prevSibling:l(e,o,n)})})),c(t.getKey(),n).forEach((function(e){return s(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:u(e,o,n),prevSibling:l(e,o,n)})}))})),s(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:u(e,o,n)})})),s(r.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:l(e,o,n)})})),s(r.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:r.getNextSiblingKey()})})),c(r.getKey(),n).forEach((function(e){s(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:u(e,o,n),prevSibling:l(e,o,n)})}))})),function(e,t){var r=[];if(!e)return r;for(var n=i(e,t);n&&t.get(n);){var o=t.get(n);r.push(n),n=o.getParentKey()?i(o,t):null}return r}(r,n).forEach((function(e){return s(e,o,(function(e){return e.merge({nextSibling:u(e,o,n),prevSibling:l(e,o,n)})}))})),null==e.get(t.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===t.getKey()&&null==r.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(r.getKey(),o,(function(e){return e.merge({prevSibling:a})})),s(a,o,(function(e){return e.merge({nextSibling:r.getKey()})}));var f=a?e.get(a):null,p=f?f.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,o,(function(e){return e.merge({parent:p})}))})),null!=p){var d=e.get(p);s(p,o,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(k,h,b,o)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}},10739:(e,t,r)=>{"use strict";var n=r(82151),i=r(21775)("draft_tree_data_support");e.exports=function(e,t,r){var o=e.getSelection(),a=e.getCurrentContent(),s=o,c=o.getAnchorKey(),u=o.getFocusKey(),l=a.getBlockForKey(c);if(i&&"forward"===r&&c!==u)return a;if(o.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a;if(i&&o.getAnchorOffset()===a.getBlockForKey(c).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===o)return a}return n.removeRange(a,s,r)}},60180:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},64041:(e,t,r)=>{"use strict";var n=r(97062),i=r(64865),o=r(29409),a=r(61348),s=r(4735),c=r(9314),u=r(10905),l=r(23653),f=o.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var r=d(e,t);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||u(!1),r.outerHTML)}function d(e,t){var r=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var n=e.textContent.length;return c(e).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var o=e.childNodes,a=0;ah(t)&&i.logSelectionStateFailure({anonymizedDom:g(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,r)}catch(a){throw i.logSelectionStateFailure({anonymizedDom:g(t,(function(t){var r=[];return t===o&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,r),e.addRange(u.cloneRange())}}function y(e,t,r,o){var a=c(t).createRange();if(r>h(t)&&(i.logSelectionStateFailure({anonymizedDom:g(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),a.setStart(t,r),f)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,r,n,i){var o=c(t);if(a(o.documentElement,t)){var s=o.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),f=e.getFocusKey(),p=e.getFocusOffset(),d=e.getIsBackward();if(!s.extend&&d){var g=u,h=l;u=f,l=p,f=g,p=h,d=!1}var v=u===r&&n<=l&&i>=l,m=f===r&&n<=p&&i>=p;if(v&&m)return s.removeAllRanges(),y(s,t,l-n,e),void b(s,t,p-n,e);if(d){if(m&&(s.removeAllRanges(),y(s,t,p-n,e)),v){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),y(s,t,l-n,e),b(s,w,S,e)}}else v&&(s.removeAllRanges(),y(s,t,l-n,e)),m&&b(s,t,p-n,e)}},addFocusToSelection:b}},1913:(e,t,r)=>{"use strict";var n=r(8827),i=r(72350),o=r(92990),a=r(10905),s=r(73881),c=o.List,u=o.Map,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var r=t.getAnchorKey(),o=e.getBlockMap(),f=o.get(r),p=f.getText();if(!p){var d=f.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var g=t.getAnchorOffset(),h=f.getCharacterList(),b=i(),y=f instanceof n,v=f.merge({text:p.slice(0,g),characterList:h.slice(0,g)}),m=v.merge({key:b,text:p.slice(g),characterList:h.slice(g),data:u()}),w=o.toSeq().takeUntil((function(e){return e===f})),S=o.toSeq().skipUntil((function(e){return e===f})).rest(),x=w.concat([[r,v],[b,m]],S).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),x=function(e,t,r){return e.withMutations((function(e){var n=t.getKey(),i=r.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,o=t.toArray();return o.splice(r,0,i),e.merge({children:c(o)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:i})})),l(n,e,(function(e){return e.merge({nextSibling:i})})),l(i,e,(function(e){return e.merge({prevSibling:n})}))}))}(x,v,m)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:b,anchorOffset:0,focusKey:b,focusOffset:0,isBackward:!1})})}},43765:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},20570:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},38138:(e,t,r)=>{"use strict";var n=r(51032),i=r(14629),o=r(50252),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?i(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),r=0;r0},e}();e.exports=u},91929:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},51032:e=>{"use strict";var t={isImage:function(e){return"image"===r(e)[0]},isJpeg:function(e){var n=r(e);return t.isImage(e)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(e){return e.split("/")}e.exports=t},73728:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollTop||r.documentElement.scrollTop:e.scrollTop},setTop:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollTop=n.documentElement.scrollTop=r:e.scrollTop=r},getLeft:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollLeft||r.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:e.scrollLeft=r}};e.exports=r},27372:(e,t,r)=>{"use strict";function n(e,t){var r=i.get(e,t);return"auto"===r||"scroll"===r}var i={get:r(41293),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=i},26024:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},99411:e=>{"use strict";var t=function(){function e(e){var t,r;r=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},57736:(e,t,r)=>{"use strict";var n=r(91603),i=r(10905),o="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+a+"]"),c=new RegExp("["+o+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?n.NEUTRAL:c.exec(t)?n.RTL:n.LTR}function f(e,t){if(t=t||n.NEUTRAL,!e.length)return t;var r=l(e);return r===n.NEUTRAL?t:r}function p(e,t){return t||(t=n.getGlobalDir()),n.isStrong(t)||i(!1),f(e,t)}var d={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===n.LTR},isDirectionRTL:function(e,t){return p(e,t)===n.RTL}};e.exports=d},91603:(e,t,r)=>{"use strict";var n=r(10905),i="LTR",o="RTL",a=null;function s(e){return e===i||e===o}function c(e){return s(e)||n(!1),e===i?"ltr":"rtl"}function u(e){a=e}var l={NEUTRAL:"NEUTRAL",LTR:i,RTL:o,isStrong:s,getHTMLDir:c,getHTMLDirIfDifferent:function(e,t){return s(e)||n(!1),s(t)||n(!1),e===t?null:c(e)},setGlobalDir:u,initGlobalDir:function(){u(i)},getGlobalDir:function(){return a||this.initGlobalDir(),a||n(!1),a}};e.exports=l},25809:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(57736),o=r(91603),a=r(10905),s=function(){function e(e){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),e?o.isStrong(e)||a(!1):e=o.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=i.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},98825:(e,t,r)=>{"use strict";var n=r(10905),i=55296,o=57343,a=/[\uD800-\uDFFF]/;function s(e){return i<=e&&e<=o}function c(e){return a.test(e)}function u(e,t){return 1+s(e.charCodeAt(t))}function l(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!c(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var i=0;if(t>0){for(;t>0&&i=n)return""}else if(t<0){for(i=n;t<0&&00&&o{"use strict";var n=r(94001),i=r(58784),o=r(20576),a=r(60078);function s(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var o=r.slice(e.length);return!!t&&(o=n?n(o):o,i.contains(o,t))}function c(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(n.browserArchitecture,null,e)},isDevice:function(e){return s(n.deviceName,null,e)},isEngine:function(e){return s(n.engineName,n.engineVersion,e)},isPlatform:function(e){return s(n.platformName,n.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(n.platformArchitecture,null,e)}};e.exports=o(u,a)},94001:(e,t,r)=>{"use strict";var n,i="Unknown",o=(new(r(73314))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(o.browser.version),s={browserArchitecture:o.cpu.architecture||i,browserFullVersion:o.browser.version||i,browserMinorVersion:a.minor||i,browserName:o.browser.name||i,browserVersion:o.browser.major||i,deviceName:o.device.model||i,engineName:o.engine.name||i,engineVersion:o.engine.version||i,platformArchitecture:o.cpu.architecture||i,platformName:(n=o.os.name,{"Mac OS":"Mac OS X"}[n]||n||i),platformVersion:o.os.version||i,platformFullVersion:o.os.version||i};e.exports=s},58784:(e,t,r)=>{"use strict";var n=r(10905),i=/\./,o=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var r,n=t.split(i),o=p(e),a=o.modifier,s=o.rangeComponents;switch(a){case"<":return l(n,s);case"<=":return-1===(r=v(n,s))||0===r;case">=":return f(n,s);case">":return 1===v(n,s);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var i=n.length-1,o=parseInt(n[i],10);return d(o)&&(n[i]=o+1+""),f(e,r)&&l(e,n)}(n,s);default:return function(e,t){return 0===v(e,t)}(n,s)}}function l(e,t){return-1===v(e,t)}function f(e,t){var r=v(e,t);return 1===r||0===r}function p(e){var t=e.split(i),r=t[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function d(e){return!isNaN(e)&&isFinite(e)}function g(e){return!p(e).modifier}function h(e,t){for(var r=e.length;rt?1:e1?r.some((function(e){return m.contains(e,t)})):function(e,t){var r=e.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var i=r[0],o=r[1];return g(i)&&g(o)||n(!1),u(">="+i,t)&&u("<="+o,t)}(e=r[0].trim(),t)}(e.trim(),t.trim())}};e.exports=m},62909:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},61348:(e,t,r)=>{"use strict";var n=r(50510);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},14629:(e,t,r)=>{"use strict";var n=r(10905);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),i=0;i{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},50252:e=>{"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},4735:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},17453:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},18898:(e,t,r)=>{"use strict";var n=r(65635);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},65635:(e,t,r)=>{"use strict";var n=r(61348);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},88672:(e,t,r)=>{"use strict";var n=r(17453),i=r(70991);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=i(e),o=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,s)),r}},41293:(e,t,r)=>{"use strict";var n=r(62909),i=r(61257);function o(e){return null==e?e:String(e)}e.exports=function(e,t){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return o(r.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return o(r.getPropertyValue(i(t)));if("display"===t)return"none"}return e.currentStyle?o("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):o(e.style&&e.style[n(t)])}},70991:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},60006:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||t(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:t(),height:r()}},e.exports=n},61257:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},10905:e=>{"use strict";e.exports=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},50510:(e,t,r)=>{"use strict";var n=r(39389);e.exports=function(e){return n(e)&&3==e.nodeType}},1137:e=>{"use strict";e.exports=function(e){var t=e||"",r=arguments.length;if(r>1)for(var n=1;n{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,r,n){if(!e)return null;var i={};for(var o in e)t.call(e,o)&&(i[o]=r.call(n,e[o],o,e));return i}},60078:e=>{"use strict";e.exports=function(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}},44261:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},5840:(e,t,r)=>{"use strict";r(42114),e.exports=r.g.setImmediate},23017:(e,t,r)=>{"use strict";var n=r(50252);e.exports=n},73314:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",c="object",u="string",l="major",f="model",p="name",d="type",g="vendor",h="version",b="architecture",y="console",v="mobile",m="tablet",w="smarttv",S="wearable",x="embedded",k="Amazon",C="Apple",_="ASUS",E="BlackBerry",O="Browser",T="Chrome",D="Firefox",K="Google",A="Huawei",M="LG",B="Microsoft",N="Motorola",L="Opera",R="Samsung",F="Sharp",P="Sony",I="Xiaomi",j="Zebra",U="Facebook",z="Chromium OS",H="Mac OS",q=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;f+=2}},X=function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var n=0;n2&&(e[f]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[p]=o,e[h]=o,J.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[p]=o,e[h]=o,J.call(e,n,w.os),S&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?G(e,500):e,this},this.setUA(n),this};Y.VERSION="0.7.38",Y.BROWSER=q([p,h,l]),Y.CPU=q([b]),Y.DEVICE=q([f,g,d,y,v,w,m,S,x]),Y.ENGINE=Y.OS=q([p,h]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?(n=function(){return Y}.call(t,r,t,e))===o||(e.exports=n):typeof i!==s&&(i.UAParser=Y);var Q=typeof i!==s&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new Y;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:this)},60951:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",c="object",u="string",l="major",f="model",p="name",d="type",g="vendor",h="version",b="architecture",y="console",v="mobile",m="tablet",w="smarttv",S="wearable",x="embedded",k="Amazon",C="Apple",_="ASUS",E="BlackBerry",O="Browser",T="Chrome",D="Firefox",K="Google",A="Huawei",M="LG",B="Microsoft",N="Motorola",L="Opera",R="Samsung",F="Sharp",P="Sony",I="Xiaomi",j="Zebra",U="Facebook",z="Chromium OS",H="Mac OS",q=" Browser",W=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;f+=2}},Z=function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var n=0;n2&&(e[f]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[p]=o,e[h]=o,X.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[p]=o,e[h]=o,X.call(e,n,w.os),S&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?J(e,500):e,this},this.setUA(n),this};Q.VERSION="1.0.39",Q.BROWSER=W([p,h,l]),Q.CPU=W([b]),Q.DEVICE=W([f,g,d,y,v,w,m,S,x]),Q.ENGINE=Q.OS=W([p,h]),typeof t!==s?(e.exports&&(t=e.exports=Q),t.UAParser=Q):r.amdO?(n=function(){return Q}.call(t,r,t,e))===o||(e.exports=n):typeof i!==s&&(i.UAParser=Q);var ee=typeof i!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var te=new Q;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var r in t)ee.ua[r]=t[r]}}}("object"==typeof window?window:this)}}]);