/** * Draft v0.10.5 * * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("immutable"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["immutable","react","react-dom"],e):"object"==typeof exports?exports.Draft=e(require("immutable"),require("react"),require("react-dom")):t.Draft=e(t.Immutable,t.React,t.ReactDOM)}(this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(64),o=n(17),i=n(5),s=n(65),a=n(12),c=n(25),u=n(26),l=n(39),f=n(67),p=n(40),d=n(22),g=n(4),h=n(41),y=n(3),m=n(27),v=n(44),b=n(15),S=n(86),w=n(45),x=n(87),C=n(10),k=n(46),E=n(110),O={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:s,Entity:d,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:a,ContentState:c,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:g,RichUtils:v,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:w,convertFromRaw:x,convertToRaw:S,genKey:C,getDefaultKeyBinding:k,getVisibleSelectionRect:E};t.exports=O},function(t,e,n){"use strict";function r(t,e,n,r,i,s,a,c){var u,l,f;if(o(e),!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,r,i,s,a,c],f=0,u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"),u.framesToPop=1,u}var o=function(t){};t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return k.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(t,e){return t.getBlockMap().map(function(n){return g.generate(t,n,e)}).toOrderedMap()}function s(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),s=t.getImmutable().get("treeMap");return s.merge(e.toSeq().filter(function(t,e){return t!==i.get(e)}).map(function(t){return g.generate(o,t,r)}))}function a(t,e,n,r,o){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return g.generate(t,e,r)}))}function c(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function u(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):f(t,n)}function l(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):f(t,n)}function f(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):b()}var p=n(7),d=p||function(t){var e,n,r;for(e=1;e0&&void 0!==arguments[0]?arguments[0]:h;return r(this,e),o(this,t.call(this,v(n)))}return i(e,t),e.prototype.getKey=function(){return this.get("key")},e.prototype.getType=function(){return this.get("type")},e.prototype.getText=function(){return this.get("text")},e.prototype.getCharacterList=function(){return this.get("characterList")},e.prototype.getLength=function(){return this.getText().length},e.prototype.getDepth=function(){return this.get("depth")},e.prototype.getData=function(){return this.get("data")},e.prototype.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():g},e.prototype.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},e.prototype.getChildKeys=function(){return this.get("children")},e.prototype.getParentKey=function(){return this.get("parent")},e.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},e.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},e.prototype.findStyleRanges=function(t,e){c(this.getCharacterList(),y,t,e)},e.prototype.findEntityRanges=function(t,e){c(this.getCharacterList(),m,t,e)},e}(p(h));t.exports=b},function(t,e){/* object-assign (c) Sindre Sorhus @license MIT */ "use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){var t,e,n,r,o;try{if(!Object.assign)return!1;if(t=new String("abc"),t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;return r=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"===r.join("")&&(o={},"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(t){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){var r,a,c,u,l,f=n(t);for(c=1;cr||n<=0)return"";if(o=0,e>0){for(;e>0&&o=r)return""}else if(e<0){for(o=r;e<0&&00&&a=i)},e.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},e.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},e.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},e.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},e.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}(u);t.exports=l},function(t,e){"use strict";function n(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(r).join(" "):Array.prototype.map.call(arguments,r).join(" ")}function r(t){return t.replace(/\//g,"-")}t.exports=n},function(t,e,n){"use strict";var r=n(2),o=r.OrderedMap,i={createFromArray:function(t){return o(t.map(function(t){return[t.getKey(),t]}))}};t.exports=i},function(t,e){"use strict";function n(t,e,n,r){if(t.size){var o=0;t.reduce(function(t,i,s){return e(t,i)||(n(t)&&r(o,s),o=s),i}),n(t.last())&&r(o,t.count())}}t.exports=n},function(t,e){"use strict";function n(t){return"handled"===t||t===!0}t.exports=n},function(t,e,n){"use strict";function r(t,e,n){var r=t.getSelection(),i=t.getCurrentContent(),s=r;if(r.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return i}else if(t.isSelectionAtStartOfContent())return i;if(s=e(t),s===r)return i}return o.removeRange(i,s,n)}var o=n(4);t.exports=r},function(t,e){t.exports=n},function(t,e,n){"use strict";function r(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var o=n(7),i=o||function(t){var e,n,r;for(e=1;e1||t.first().getLength()>0},e.prototype.createEntity=function(t,e,n){return l.__create(t,e,n),this},e.prototype.mergeEntityData=function(t,e){return l.__mergeData(t,e),this},e.prototype.replaceEntityData=function(t,e){return l.__replaceData(t,e),this},e.prototype.addEntity=function(t){return l.__add(t),this},e.prototype.getEntity=function(t){return l.__get(t)},e.createFromBlockArray=function(t,n){var r=Array.isArray(t)?t:t.contentBlocks,o=s.createFromArray(r),i=o.isEmpty()?new d:d.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:n||l,selectionBefore:i,selectionAfter:i})},e.createFromText=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(n),o=r.map(function(t){return t=h(t),new w({key:g(),text:t,type:"unstyled",characterList:y(v(a.EMPTY,t.length))})});return e.createFromBlockArray(o)},e}(x);t.exports=C},function(t,e,n){"use strict";var r=n(2),o=r.Map,i=n(14),s=n(16),a=i.createElement("ul",{className:s("public/DraftStyleDefault/ul")}),c=i.createElement("ol",{className:s("public/DraftStyleDefault/ol")}),u=i.createElement("pre",{className:s("public/DraftStyleDefault/pre")}),l=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:a},"ordered-list-item":{element:"li",wrapper:c},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:u},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=l},function(t,e,n){"use strict";var r=n(9),o=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:i.isCtrlKeyCommand(t)}};t.exports=i},function(t,e,n){"use strict";function r(t){for(var e,n=t;n&&n!==document.documentElement;){if(e=o(n),null!=e)return e;n=n.parentNode}return null}var o=n(52);t.exports=r},function(t,e){"use strict";function n(t,e){var n,o,i,s,a,c;return e.isCollapsed()?(o=e.getAnchorKey(),i=e.getAnchorOffset(),i>0?(n=t.getBlockForKey(o).getEntityAt(i-1),n!==t.getBlockForKey(o).getEntityAt(i)?null:r(t.getEntityMap(),n)):null):(s=e.getStartKey(),a=e.getStartOffset(),c=t.getBlockForKey(s),n=a===c.getLength()?null:c.getEntityAt(a),r(t.getEntityMap(),n))}function r(t,e){if(e){var n=t.__get(e);return"MUTABLE"===n.getMutability()?e:null}return null}t.exports=n},function(t,e){"use strict";function n(t,e){var n,r,o=t.getSelection(),i=t.getCurrentContent(),s=o.getStartKey(),a=o.getStartOffset(),c=s,u=0;return e>a?(n=i.getKeyBefore(s),null==n?c=s:(c=n,r=i.getBlockForKey(n),u=r.getText().length)):u=a-e,o.merge({focusKey:c,focusOffset:u,isBackward:!0})}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"")}var r=new RegExp("\r","g");t.exports=n},function(t,e){"use strict";t.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}},function(t,e,n){"use strict";function r(t,e){var n=i.get(t,e);return"auto"===n||"scroll"===n}var o=n(140),i={get:o,getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},function(t,e,n){"use strict";function r(t){return t===f||t===p}function o(t){return r(t)?void 0:u(!1),t===f?"ltr":"rtl"}function i(t,e){return r(t)?void 0:u(!1),r(e)?void 0:u(!1),t===e?null:o(t)}function s(t){d=t}function a(){s(f)}function c(){return d||this.initGlobalDir(),d?void 0:u(!1),d}var u=n(1),l="NEUTRAL",f="LTR",p="RTL",d=null,g={NEUTRAL:l,LTR:f,RTL:p,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:i,setGlobalDir:s,initGlobalDir:a,getGlobalDir:c};t.exports=g},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(145);t.exports=r},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,s,a=o(t.ownerDocument||t.document);return t.Window&&t instanceof t.Window&&(t=a),e=i(t),n=t===a?t.ownerDocument.documentElement:t,r=t.scrollWidth-n.clientWidth,s=t.scrollHeight-n.clientHeight,e.x=Math.max(0,Math.min(e.x,r)),e.y=Math.max(0,Math.min(e.y,s)),e}var o=n(137),i=n(141);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return a(r,o,f,function(t,r){n.push(new g({start:t+e,end:r+e}))}),c(n)}function o(t,e){return t===e}var i=n(2),s=n(36),a=n(18),c=i.List,u=i.Repeat,l=i.Record,f=s.thatReturnsTrue,p="-",d={start:null,end:null},g=l(d),h={start:null,end:null,decoratorKey:null,leaves:null},y=l(h),m={generate:function(t,e,n){var i,s,l,p=e.getLength();return p?(i=[],s=n?n.getDecorations(e,t):c(u(null,p)),l=e.getCharacterList(),a(s,o,f,function(t,e){i.push(new y({start:t,end:e,decoratorKey:s.get(t),leaves:r(l.slice(t,e).toList(),t)}))}),c(i)):c.of(new y({start:0,end:0,decoratorKey:null,leaves:c.of(new g({start:0,end:0}))}))},getFingerprint:function(t){return t.map(function(t){var e=t.get("decoratorKey"),n=null!==e?e+"."+(t.get("end")-t.get("start")):"";return""+n+"."+t.get("leaves").size}).join(p)}};t.exports=m},function(t,e){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=s||function(t){var e,n,r;for(e=1;e0&&window.scrollTo(n.x,n.y+r+x)):(t instanceof HTMLElement?void 0:S(!1),a=t.offsetHeight+t.offsetTop,c=e.offsetHeight+n.y,r=a-c,r>0&&p.setTop(e,p.getTop(e)+r+x)))},e.prototype._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),o=this.props.tree.size-1,i=C(this.props.selection,n);return this.props.tree.map(function(s,f){var p,d,y,m,v,b,S=s.get("leaves"),x=S.size-1,C=S.map(function(s,a){var p=u.encode(n,f,a),d=s.get("start"),g=s.get("end");return l.createElement(c,{key:p,offsetKey:p,block:e,start:d,selection:i?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(d,g),styleSet:e.getInlineStyleAt(d),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===o&&a===x})}).toArray(),k=s.get("decoratorKey");return null==k?C:t.props.decorator?(p=w(t.props.decorator),(d=p.getComponentForKey(k))?(y=p.getPropsForKey(k),m=u.encode(n,f,0),v=r.slice(S.first().get("start"),S.last().get("end")),b=h.getHTMLDirIfDifferent(g.getDirection(v),t.props.direction),l.createElement(d,a({},y,{contentState:t.props.contentState,decoratedText:v,dir:b,key:m,entityKey:e.getEntityAt(s.get("start")),offsetKey:m}),C)):C):C}).toArray()},e.prototype.render=function(){var t=this.props,e=t.direction,n=t.offsetKey,r=y({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===e,"public/DraftStyleDefault/rtl":"RTL"===e});return l.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},e}(l.Component);t.exports=k},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(2),a=s.Record,c=a({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getType=function(){return this.get("type")},e.prototype.getMutability=function(){return this.get("mutability")},e.prototype.getData=function(){return this.get("data")},e}(c);t.exports=u},function(t,e,n){"use strict";function r(t,e){var n=e?f.exec(t):u.exec(t);return n?n[0]:t}var o=n(130),i=o.getPunctuation(),s="['‘’]",a="\\s|(?![_])"+i,c="^(?:"+a+")*(?:"+s+"|(?!"+a+").)*(?:(?!"+a+").)",u=new RegExp(c),l="(?:(?!"+a+").)(?:"+s+"|(?!"+a+").)*(?:"+a+")*$",f=new RegExp(l),p={getBackward:function(t){return r(t,!0)},getForward:function(t){return r(t,!1)}};t.exports=p},function(t,e){"use strict";var n={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=n},function(t,e,n){"use strict";var r=n(4),o=n(3),i=(n(15),n(83)),s=n(8),a={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e,n,r,i,s,c,u=t.getSelection();return!u.isCollapsed()||u.getAnchorOffset()||u.getFocusOffset()?null:(e=t.getCurrentContent(),n=u.getStartKey(),r=e.getBlockBefore(n),r&&"atomic"===r.getType()&&(i=e.getBlockMap().delete(r.getKey()),s=e.merge({blockMap:i,selectionAfter:u}),s!==e)?o.push(t,s,"remove-range"):(c=a.tryToRemoveBlockStyle(t),c?o.push(t,c,"change-block-type"):null))},onDelete:function(t){var e,n,i,s,a,c,u,l=t.getSelection();return l.isCollapsed()?(e=t.getCurrentContent(),n=l.getStartKey(),i=e.getBlockForKey(n),s=i.getLength(),l.getStartOffset()0&&o!==i)return null;if(s=o.getType(),a=n.getBlockBefore(e),"code-block"===s&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==s)return r.setBlockType(n,c,"unstyled")}return null}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,i=s||function(t){var e,n,r;for(e=1;e=0?t.add("BOLD"):L.indexOf(e)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}).toOrderedSet()),n},q=function(t,e,n){var r=t.text.slice(-1),o=e.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(t.text=t.text.slice(0,-1),t.inlines.pop(),t.entities.pop(),t.blocks.pop()),"\r"===r){if(e.text===O||"\n"===e.text)return t;o!==O&&"\n"!==o||(e.text=e.text.slice(1),e.inlines.shift(),e.entities.shift())}return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},X=function(t,e){return e.some(function(e){return t.indexOf("<"+e)!==-1})},J=function(t){t instanceof HTMLAnchorElement?void 0:S(!1);var e=t.protocol;return"http:"===e||"https:"===e||"mailto:"===e},$=function(t){var e=new Array(1);return t&&(e[0]=t),i({},j,{text:O,inlines:[k()],entities:e})},Y=function(){return i({},j,{text:"\n",inlines:[k()],entities:new Array(1)})},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i({},U,t)},Q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[k()],entities:new Array(1),blocks:[Z({parent:n,key:v(),type:t,depth:Math.max(0,Math.min(T,e))})]}},tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some(function(n){t.classList.contains(n)&&(e=N[n])}),e},et=function t(e,n,r,o,s,a,c,u,l,p){var d,g,h,m,v,b,S,w,C,k,E,T,K,D,A=P,M=n.nodeName.toLowerCase(),B=e,L="unstyled",R=!1,N=s&&V(s,o,u),U=i({},j),H=null,z=void 0;if("#text"===M)return d=n.textContent,g=d.trim(),o&&""===g&&n.parentElement&&(h=n.parentElement.nodeName.toLowerCase(),"ol"===h||"ul"===h)?{chunk:i({},j),entityMap:e}:""===g&&"pre"!==s?{chunk:$(l),entityMap:e}:("pre"!==s&&(d=d.replace(_,O)),P=M,{chunk:{text:d,inlines:Array(d.length).fill(r),entities:Array(d.length).fill(l),blocks:[]},entityMap:e});if(P=M,"br"===M)return"br"!==A||s&&"unstyled"!==N?{chunk:Y(),entityMap:e}:{chunk:Q("unstyled",c,p),entityMap:e};for("img"===M&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value&&(m=n,v={},I.forEach(function(t){var e=m.getAttribute(t);e&&(v[t]=e)}),n.textContent="📷",l=f.__create("IMAGE","MUTABLE",v||{})),r=G(M,n,r),"ul"!==M&&"ol"!==M||(o&&(c+=1),o=M),!x&&"li"===M&&n instanceof HTMLElement&&(c=tt(n,c)),b=V(M,o,u),S=o&&"li"===s&&"li"===M,w=(!s||x)&&a.indexOf(M)!==-1,(S||w)&&(U=Q(b,c,p), z=U.blocks[0].key,s=M,R=!x),S&&(L="ul"===o?"unordered-list-item":"ordered-list-item"),C=n.firstChild,null!=C&&(M=C.nodeName.toLowerCase()),k=null;C;)C instanceof HTMLAnchorElement&&C.href&&J(C)?!function(){var t=C,e={};F.forEach(function(n){var r=t.getAttribute(n);r&&(e[n]=r)}),e.url=new y(t.href).toString(),k=f.__create("LINK","MUTABLE",e||{})}():k=void 0,E=t(B,C,r,o,s,a,c,u,k||l,x?z:null),T=E.chunk,K=E.entityMap,H=T,B=K,U=q(U,H,x),D=C.nextSibling,!p&&D&&a.indexOf(M)>=0&&s&&(U=q(U,Y())),D&&(M=D.nodeName.toLowerCase()),C=D;return R&&(U=q(U,Q(L,c,p))),{chunk:U,entityMap:B}},nt=function(t,e,n,r){var o,s,a,c,u,l;return t=t.trim().replace(K,"").replace(D,O).replace(A,"").replace(M,""),o=z(n),(s=e(t))?(P=null,a=X(t,o)?o:["div"],c=et(r,s,k(),"ul",null,a,-1,n),u=c.chunk,l=c.entityMap,0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(i({},j,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}):null},rt=function(t){var e,n,r,o,i,s;return t&&t.text&&Array.isArray(t.blocks)?(e={cacheRef:{},contentBlocks:[]},n=0,r=t.blocks,o=t.inlines,i=t.entities,s=x?u:c,t.text.split("\r").reduce(function(t,e,c){var l,f,p,d,g,h,y,m,b,S,x,k,E,O,T,K;return e=w(e),l=r[c],f=n+e.length,p=o.slice(n,f),d=i.slice(n,f),g=C(p.map(function(t,e){var n={style:t,entity:null};return d[e]&&(n.entity=d[e]),a.create(n)})),n=f+1,h=l.depth,y=l.type,m=l.parent,b=l.key||v(),S=null,m&&(x=t.cacheRef[m],k=t.contentBlocks[x],k.getChildKeys().isEmpty()&&k.getText()&&(E=k.getCharacterList(),O=k.getText(),S=v(),T=new u({key:S,text:O,characterList:E,parent:m,nextSibling:b}),t.contentBlocks.push(T),k=k.withMutations(function(t){t.set("characterList",C()).set("text","").set("children",k.children.push(T.getKey()))})),t.contentBlocks[x]=k.set("children",k.children.push(b))),K=new s({key:b,parent:m,type:y,depth:h,text:e,characterList:g,prevSibling:S||(0===c||r[c-1].parent!==m?null:r[c-1].key),nextSibling:c===r.length-1||r[c+1].parent!==m?null:r[c+1].key}),t.contentBlocks.push(K),t.cacheRef[K.key]=c,t},e).contentBlocks):null},ot=function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,s=nt(t,o,i,f);return null==s?null:(e=s.chunk,n=s.entityMap,r=rt(e),{contentBlocks:r,entityMap:n})};t.exports=ot},function(t,e,n){"use strict";function r(t){return f&&t.altKey||h(t)}function o(t){return g(t)?t.shiftKey?"redo":"undo":null}function i(t){return p&&t.shiftKey?null:r(t)?"delete-word":"delete"}function s(t){return g(t)&&f?"backspace-to-start-of-line":r(t)?"backspace-word":"backspace"}function a(t){switch(t.keyCode){case 66:return g(t)?"bold":null;case 68:return h(t)?"delete":null;case 72:return h(t)?"backspace":null;case 73:return g(t)?"italic":null;case 74:return g(t)?"code":null;case 75:return!p&&h(t)?"secondary-cut":null;case 77:return h(t)?"split-block":null;case 79:return h(t)?"split-block":null;case 84:return f&&h(t)?"transpose-characters":null;case 85:return g(t)?"underline":null;case 87:return f&&h(t)?"backspace-word":null;case 89:return h(t)?p?"redo":"secondary-paste":null;case 90:return o(t)||null;case u.RETURN:return"split-block";case u.DELETE:return i(t);case u.BACKSPACE:return s(t);case u.LEFT:return d&&g(t)?"move-selection-to-start-of-block":null;case u.RIGHT:return d&&g(t)?"move-selection-to-end-of-block":null;default:return null}}var c=n(27),u=n(32),l=n(9),f=l.isPlatform("Mac OS X"),p=l.isPlatform("Windows"),d=f&&l.isBrowser("Firefox < 29"),g=c.hasCommandModifier,h=c.isCtrlKeyCommand;t.exports=a},function(t,e,n){"use strict";function r(t,e,n,r,o,i){var a,u,f,d=n.nodeType===Node.TEXT_NODE,g=o.nodeType===Node.TEXT_NODE;return d&&g?{selectionState:l(t,p(c(n)),r,p(c(o)),i),needsRecovery:!1}:(a=null,u=null,f=!0,d?(a={key:p(c(n)),offset:r},u=s(e,o,i)):g?(u={key:p(c(o)),offset:i},a=s(e,n,r)):(a=s(e,n,r),u=s(e,o,i),n===o&&r===i&&(f=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:l(t,a.key,a.offset,u.key,u.offset),needsRecovery:f})}function o(t){for(;t.firstChild&&(t.firstChild instanceof Element&&"true"===t.firstChild.getAttribute("data-blocks")||u(t.firstChild));)t=t.firstChild;return t}function i(t){for(;t.lastChild&&(t.lastChild instanceof Element&&"true"===t.lastChild.getAttribute("data-blocks")||u(t.lastChild));)t=t.lastChild;return t}function s(t,e,n){var r,s,l,d,g,h,y=e,m=c(y);return null!=m||t&&(t===y||t.firstChild===y)?void 0:f(!1),t===y&&(y=y.firstChild,y instanceof Element&&"true"===y.getAttribute("data-contents")?void 0:f(!1),n>0&&(n=y.childNodes.length)),0===n?(r=null,null!=m?r=m:(s=o(y),r=p(u(s))),{key:r,offset:0}):(l=y.childNodes[n-1],d=null,g=null,u(l)?(h=i(l),d=p(u(h)),g=a(h)):(d=p(m),g=a(l)),{key:d,offset:g})}function a(t){var e=t.textContent;return"\n"===e?0:e.length}var c=n(28),u=n(52),l=n(54),f=n(1),p=n(8);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.getSelection();return e.isCollapsed()?null:o(t.getCurrentContent(),e)}var o=n(24);t.exports=r},function(t,e,n){"use strict";var r=n(6),o=function(t,e){var n,o,i,s,a=t instanceof r;if(!a)return null;if(n=t.getNextSiblingKey())return n;if(o=t.getParentKey(),!o)return null;for(i=e.get(o);i&&!i.getNextSiblingKey();)s=i.getParentKey(),i=s?e.get(s):null;return i?i.getNextSiblingKey():null};t.exports=o},function(t,e,n){"use strict";function r(t){var e,n,r,o,s=t.cloneRange(),a=[];for(e=t.endContainer;null!=e;e=e.parentNode){if(n=e===t.commonAncestorContainer,n?s.setStart(t.startContainer,t.startOffset):s.setStart(s.endContainer,0),r=Array.from(s.getClientRects()),a.push(r),n)return a.reverse(),(o=[]).concat.apply(o,a);s.setEndBefore(e)}i(!1)}var o=n(9),i=n(1),s=o.isBrowser("Chrome"),a=s?r:function(t){return Array.from(t.getClientRects())};t.exports=a},function(t,e,n){"use strict";function r(t){var e,n=null;return!s&&document.implementation&&document.implementation.createHTMLDocument&&(e=document.implementation.createHTMLDocument("foo"),e.documentElement?void 0:i(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}var o=n(9),i=n(1),s=o.isBrowser("IE <= 9");t.exports=r},function(t,e){"use strict";function n(t){var e,r,o;if(t instanceof Element){if(e=t.getAttribute("data-offset-key"))return e;for(r=0;rc.getText().length-i?(a=s.getKeyAfter(o),n=0):n=i+e,r.merge({focusKey:a,focusOffset:n})}t.exports=n},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(10),s=o.OrderedMap,a=function(t){var e={},n=void 0;return s(t.withMutations(function(t){t.forEach(function(r,o){var s,a,c,u,l=r.getKey(),f=r.getNextSiblingKey(),p=r.getPrevSiblingKey(),d=r.getChildKeys(),g=r.getParentKey(),h=i();e[l]=h,f&&(s=t.get(f),s?t.setIn([f,"prevSibling"],h):t.setIn([l,"nextSibling"],null)),p&&(a=t.get(p),a?t.setIn([p,"nextSibling"],h):t.setIn([l,"prevSibling"],null)),g&&t.get(g)?(c=t.get(g),u=c.getChildKeys(),t.setIn([g,"children"],u.set(u.indexOf(r.getKey()),h))):(t.setIn([l,"parent"],null),n&&(t.setIn([n.getKey(),"nextSibling"],h),t.setIn([l,"prevSibling"],e[n.getKey()])),n=t.get(l)),d.forEach(function(e){var n=t.get(e);n?t.setIn([e,"parent"],h):t.setIn([l,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[e[t.getKey()],t.set("key",e[t.getKey()])]}))},c=function(t){return s(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))},u=function(t){var e=t.first()instanceof r;return e?a(t):c(t)};t.exports=u},function(t,e,n){"use strict";function r(t,e){var n,r,o,s,a=t.getBlockMap(),c=t.getEntityMap(),u={},l=e.getStartKey(),f=e.getStartOffset(),p=a.get(l),d=i(c,p,f);return d!==p&&(u[l]=d),n=e.getEndKey(),r=e.getEndOffset(),o=a.get(n),l===n&&(o=d),s=i(c,o,r),s!==o&&(u[n]=s),Object.keys(u).length?t.merge({blockMap:a.merge(u),selectionAfter:e}):t.set("selectionAfter",e)}function o(t,e,n){var r;return a(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"object"!=typeof r?c(!1):void 0,r}function i(t,e,n){var r,i,a,c,u,l=e.getCharacterList(),f=n>0?l.get(n-1):void 0,p=n0},t}();t.exports=f},function(t,e){"use strict";function n(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollTop=r.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=r},function(t,e,n){"use strict";function r(t){var e=p.exec(t);return null==e?null:e[0]}function o(t){var e=r(t);return null==e?u.NEUTRAL:d.exec(e)?u.RTL:u.LTR}function i(t,e){if(e=e||u.NEUTRAL,!t.length)return e;var n=o(t);return n===u.NEUTRAL?e:n}function s(t,e){return e||(e=u.getGlobalDir()),u.isStrong(e)?void 0:l(!1),i(t,e)}function a(t,e){return s(t,e)===u.LTR}function c(t,e){return s(t,e)===u.RTL}var u=n(34),l=n(1),f={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},p=new RegExp("["+f.L+f.R+f.AL+"]"),d=new RegExp("["+f.R+f.AL+"]"),g={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:s,isDirectionLTR:a,isDirectionRTL:c};t.exports=g},function(t,e){"use strict";function n(t){if(t=t||("undefined"!=typeof document?document:void 0),"undefined"==typeof t)return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e0||null!==l,g&&t.restoreEditorDOM(),t.exitCurrentMode(),e){if(r.draft_handlebeforeinput_composed_text&&t.props.handleBeforeInput&&c(t.props.handleBeforeInput(e,n)))return;return h=o.replaceText(n.getCurrentContent(),n.getSelection(),e,s,l),void t.update(i.push(n,h,"insert-characters"))}g&&t.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};t.exports=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=s||function(t){var e,n,r;for(e=1;eX,x=p(x,g(r,w,C,h))),k=i||c,E={className:x,"data-block":!0,"data-editor":P,"data-offset-key":y,key:n},void 0!==f&&(E=a({},E,{contentEditable:f,suppressContentEditableWarning:!0})),O=l.createElement(S,E,l.createElement(k,m)),q.push({block:O,wrapperTemplate:b,key:n,offsetKey:y}),X=b?e.getDepth():null,J=b;for(T=[],K=0;K0){if(t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(f,n)))return;return void l(n,function(e){e&&t.update(i(u,f,e))})}if(a=t._internalDrag?"internal":"external",!t.props.handleDrop||!p(t.props.handleDrop(f,c,a)))return t._internalDrag?void t.update(o(u,f)):void t.update(i(u,f,c.getText()))}}};t.exports=g},function(t,e,n){"use strict";var r=n(91),o=n(92),i=n(93),s=n(94),a=n(95),c=n(96),u=n(97),l=n(98),f=n(99),p=n(100),d=n(101),g=n(102),h={onBeforeInput:r,onBlur:o,onCompositionStart:i,onCopy:s,onCut:a,onDragOver:c,onDragStart:u,onFocus:l,onInput:f,onKeyDown:p,onPaste:d,onSelect:g};t.exports=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t, enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=n(75),c=n(14),u=n(21),l=n(1),f=n(126),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype._setSelection=function(){var t,e,n,r,o,i,s,a,c,p=this.props.selection;null!=p&&p.getHasFocus()&&(t=this.props,e=t.block,n=t.start,r=t.text,o=e.getKey(),i=n+r.length,p.hasEdgeWithin(o,n,i)&&(s=u.findDOMNode(this),s?void 0:l(!1),a=s.firstChild,a?void 0:l(!1),c=void 0,a.nodeType===Node.TEXT_NODE?c=a:"BR"===a.tagName?c=s:(c=a.firstChild,c?void 0:l(!1)),f(p,c,o,n,i)))},e.prototype.shouldComponentUpdate=function(t){var e=u.findDOMNode(this.leaf);return e?void 0:l(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},e.prototype.componentDidUpdate=function(){this._setSelection()},e.prototype.componentDidMount=function(){this._setSelection()},e.prototype.render=function(){var t,e,n,r,o,i,u,l=this,f=this.props.block,p=this.props.text;return p.endsWith("\n")&&this.props.isLast&&(p+="\n"),t=this.props,e=t.customStyleMap,n=t.customStyleFn,r=t.offsetKey,o=t.styleSet,i=o.reduce(function(t,n){var r={},o=e[n];return void 0!==o&&t.textDecoration!==o.textDecoration&&(r.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),s(t,o,r)},{}),n&&(u=n(o,f),i=s(i,u)),c.createElement("span",{"data-offset-key":r,ref:function(t){return l.leaf=t},style:i},c.createElement(a,null,p))},e}(c.Component);t.exports=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(14),a=n(16),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},e.prototype.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t}),n={whiteSpace:"pre-wrap"};return s.createElement("div",{className:e},s.createElement("div",{className:a("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:n},this.props.text))},e}(s.Component);t.exports=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return f?"\n"===t.textContent:"BR"===t.tagName}var a=n(14),c=n(21),u=n(9),l=n(1),f=u.isBrowser("IE <= 11"),p=f?a.createElement("span",{key:"A","data-text":"true"},"\n"):a.createElement("br",{key:"A","data-text":"true"}),d=f?a.createElement("span",{key:"B","data-text":"true"},"\n"):a.createElement("br",{key:"B","data-text":"true"}),g=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return i._forceFlag=!1,i}return i(e,t),e.prototype.shouldComponentUpdate=function(t){var e=c.findDOMNode(this),n=""===t.children;return e instanceof Element?void 0:l(!1),n?!s(e):e.textContent!==t.children},e.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},e.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},e.prototype.render=function(){return""===this.props.children?this._forceFlag?p:d:a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},e}(a.Component);t.exports=g},function(t,e){"use strict";var n={getRemovalRange:function(t,e,n,r,o){var i,s,a,c,u,l,f,p,d,g=n.split(" ");for(g=g.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e0?(r=e[c-1],r?void 0:i(!1),void r.children.push(u)):void n.push(u)):(e={},void n.push(u))}),o({},t,{blocks:n})}};t.exports=u},function(t,e,n){"use strict";var r,o=n(2),i=n(132),s=n(8),a=o.OrderedMap,c={getDirectionMap:function(t,e){var n,c,u;return r?r.reset():r=new i,n=t.getBlockMap(),c=n.valueSeq().map(function(t){return s(r).getDirection(t.getText())}),u=a(n.keySeq().zip(c)),null!=e&&o.is(e,u)?e:u}};t.exports=c},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(24),s=n(8),a=null,c={cut:function(t){var e,n,c,u=t.getCurrentContent(),l=t.getSelection(),f=null;if(l.isCollapsed()){if(e=l.getAnchorKey(),n=u.getBlockForKey(e).getLength(),n===l.getAnchorOffset())return t;f=l.set("focusOffset",n)}else f=l;return f=s(f),a=i(u,f),c=r.removeRange(u,f,"forward"),c===u?t:o.push(t,c,"remove-range")},paste:function(t){if(!a)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return o.push(t,e,"insert-fragment")}};t.exports=c},function(t,e){"use strict";function n(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,s.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return s=s.merge(a),t.merge({blockMap:s,selectionBefore:e,selectionAfter:e})}t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=t.getCharacterList();e0;){if(l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),g=Array.isArray(l.children),!g){g?void 0:m(!1);break}h=l.children.map(k),y=new s(o({},x(l,e),{parent:f.getKey(),children:b(h.map(function(t){return t.key})),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)})),n=n.set(y.getKey(),y),u=E(u,h,y)}return n},w())},T=function(t,e){return w(t.map(function(t){var n=new i(x(t,e));return[n.getKey(),n]}))},K=function(t,e){var n=Array.isArray(t.blocks[0].children),r=v&&!n?l.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?O(r,e):T(n?l.fromRawTreeStateToRawState(t).blocks:r,e)},_=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],o=r.type,i=r.mutability,s=r.data;n[t]=c.__create(o,i,s||{})}),n},D=function(t){var e,n,r;return Array.isArray(t.blocks)?void 0:m(!1),e=_(t),n=K(t,e),r=n.isEmpty()?new p:p.createEmpty(n.first().getKey()),new a({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})};t.exports=D},function(t,e,n){"use strict";function r(t,e){var n=t.map(function(t,n){var r=e[n];return o.create({style:t,entity:r})});return s(n)}var o=n(5),i=n(2),s=i.List;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){var r,o=i(t,0,e.offset).length,s=o+i(t,e.offset,e.length).length;for(r=o;r0)){if(t.props.handlePastedFiles&&h(t.props.handlePastedFiles(r)))return;return void g(r,function(e){var n,r,o,i,c,g,h;e=e||m,e&&(n=t._latestEditorState,r=y(e),o=a.create({style:n.getCurrentInlineStyle(),entity:d(n.getCurrentContent(),n.getSelection())}),i=p.getCurrentBlockType(n),c=l.processText(r,o,i),g=s.createFromArray(c),h=u.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g),t.update(f.push(n,h,"insert-fragment")))})}if(v=[],b=n.getText(),S=n.getHTML(),w=t._latestEditorState,!t.props.handlePastedText||!h(t.props.handlePastedText(b,S,w))){if(b&&(v=y(b)),!t.props.stripPastedStyles){if(x=t.getClipboard(),n.isRichText()&&x){if(S.indexOf(t.getEditorKey())!==-1||1===v.length&&1===x.size&&x.first().getText()===b)return void t.update(o(t._latestEditorState,x))}else if(x&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&i(v,x))return void t.update(o(t._latestEditorState,x));if(S&&(C=l.processHTML(S,t.props.blockRenderMap),C&&(k=C.contentBlocks,E=C.entityMap,k)))return O=s.createFromArray(k),void t.update(o(t._latestEditorState,O,E));t.setClipboard(null)}v.length&&(T=a.create({style:w.getCurrentInlineStyle(),entity:d(w.getCurrentContent(),w.getSelection())}),K=p.getCurrentBlockType(w),_=l.processText(v,T,K),D=s.createFromArray(_),t.update(o(t._latestEditorState,D)))}}function o(t,e,n){var r=u.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return f.push(t,r.set("entityMap",n),"insert-fragment")}function i(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}var s=n(17),a=n(5),c=n(60),u=n(4),l=n(79),f=n(3),p=n(44),d=n(29),g=n(53),h=n(19),y=n(128);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,c;t._blockSelectEvents||t._latestEditorState!==t.props.editorState||(e=t.props.editorState,n=i.findDOMNode(t.editorContainer),n?void 0:a(!1),n.firstChild instanceof HTMLElement?void 0:a(!1),r=s(e,n.firstChild),c=r.selectionState,c!==e.getSelection()&&(e=r.needsRecovery?o.forceSelection(e,c):o.acceptSelection(e,c),t.update(e)))}var o=n(3),i=n(21),s=n(107),a=n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(r,i){var a=t.getText(),c=t.getEntityAt(r);n.push({offset:s(a.slice(0,r)),length:s(a.slice(r,i)),key:Number(e[o.stringify(c)])})}),n}var o=n(43),i=n(13),s=i.strlen;t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=[],o=e.map(function(t){return t.has(n)}).toList();return s(o,a,c,function(e,o){var s=t.getText();r.push({offset:i.strlen(s.slice(0,e)),length:i.strlen(s.slice(e,o)),style:n})}),r}function o(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return r(t,e,n)});return Array.prototype.concat.apply(u,n.toJS())}var i=n(13),s=n(18),a=function(t,e){return t===e},c=function(t){return!!t},u=[];t.exports=o},function(t,e,n){"use strict";function r(t){var e,n,r=getComputedStyle(t),o=document.createElement("div");return o.style.fontFamily=r.fontFamily,o.style.fontSize=r.fontSize,o.style.fontStyle=r.fontStyle,o.style.fontWeight=r.fontWeight,o.style.lineHeight=r.lineHeight,o.style.position="absolute",o.textContent="M",e=document.body,e?void 0:u(!1),e.appendChild(o),n=o.getBoundingClientRect(),e.removeChild(o),n.height}function o(t,e){var n,r,o=1/0,i=1/0,s=-(1/0),a=-(1/0);for(n=0;n=0;g--)if(!(null!=d&&g>0&&a.isSurrogatePair(d,g-1))){if(t.setStart(f,g),!o(c(t),n))break;s=f,l=g}if(g===-1||0===f.childNodes.length)break;f=f.childNodes[g],p=i(f)}return t.setStart(s,l),t}var a=n(13),c=n(50),u=n(1);t.exports=s},function(t,e,n){"use strict";function r(t,e,n,r,i){var s,a,c,u,l,f=r.getStartOffset(),p=r.getEndOffset(),d=e.getEntityAt(f),g=n.getEntityAt(p-1);return d||g?(s=r,d&&d===g?s=o(t,e,s,i,d,!0,!0):d&&g?(a=o(t,e,s,i,d,!1,!0),c=o(t,n,s,i,g,!1,!1),s=s.merge({anchorOffset:a.getAnchorOffset(),focusOffset:c.getFocusOffset(),isBackward:!1})):d?(u=o(t,e,s,i,d,!1,!0),s=s.merge({anchorOffset:u.getStartOffset(),isBackward:!1})):g&&(l=o(t,n,s,i,g,!1,!1),s=s.merge({focusOffset:l.getEndOffset(),isBackward:!1})),s):r}function o(t,e,n,r,o,c,u){var l,f,p,d=n.getStartOffset(),g=n.getEndOffset(),h=t.__get(o),y=h.getMutability(),m=u?d:g;return"MUTABLE"===y?n:(l=s(e,o).filter(function(t){return m<=t.end&&m>=t.start}),1!=l.length?a(!1):void 0,f=l[0],"IMMUTABLE"===y?n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1}):(c||(u?g=f.end:d=f.start),p=i.getRemovalRange(d,g,e.getText().slice(f.start,f.end),f.start,r),n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})))}var i=n(76),s=n(109),a=n(1);t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,n){var r=e.getSelection();return 0===r.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:o(t,n,r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}var o=n(47);t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){var e,n,r,i,s=o(t),a=0,c=0,u=0,l=0;if(s.length)for(s.length>1&&0===s[0].width?(e=s[1],a=e.top,c=e.right,u=e.bottom,l=e.left):(n=s[0],a=n.top,c=n.right,u=n.bottom,l=n.left),r=1;re;)t=t.pop(),n--;else r=t.slice(0,e),o=t.slice(n),t=r.concat(o).toList();return t};t.exports=d},function(t,e,n){(function(e){"use strict";function r(t,e){if(!t)return"[empty]";var n=o(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element?void 0:d(!1),n.outerHTML)}function o(t,e){var n,r,i,s,a=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE)return n=t.textContent.length,document.createTextNode("[text "+n+(a.length?" | "+a.join(", "):"")+"]");for(r=t.cloneNode(),1===r.nodeType&&a.length&&r.setAttribute("data-labels",a.join(", ")),i=t.childNodes,s=0;s=l,v=p===r&&o<=d&&i>=d,m&&v?(s.removeAllRanges(),u(s,n,l-o,t),void c(s,n,d-o,t)):void(g?(v&&(s.removeAllRanges(),u(s,n,d-o,t)),m&&(b=s.focusNode,S=s.focusOffset,s.removeAllRanges(),u(s,n,l-o,t),c(s,b,S,t))):(m&&(s.removeAllRanges(),u(s,n,l-o,t)),v&&c(s,n,d-o,t)))}function c(t,e,n,r){var o,a,c=p();if(t.extend&&f(c,e)){n>s(e)&&l.logSelectionStateFailure({anonymizedDom:i(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o=e===t.focusNode;try{t.extend(e,n)}catch(s){throw l.logSelectionStateFailure({anonymizedDom:i(e,function(e){var n=[];return e===c&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:c?c.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:o,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:s?""+s:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),s}}else a=t.getRangeAt(0),a.setEnd(e,n),t.addRange(a.cloneRange())}function u(t,e,n,r){var o=document.createRange();n>s(e)&&l.logSelectionStateFailure({anonymizedDom:i(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(e,n),t.addRange(o)}var l=n(78),f=n(35),p=n(63),d=n(1);t.exports=a}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(10),s=n(1),a=o.List,c=o.Map,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),o=n.getKey();u(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:a(i)})}),u(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:o})}),u(r,t,function(t){return t.merge({nextSibling:o})}),u(o,t,function(t){return t.merge({prevSibling:r})})})},f=function(t,e){var n,o,a,u,f,p,d,g,h,y,m,v,b;return e.isCollapsed()?void 0:s(!1),n=e.getAnchorKey(),o=e.getAnchorOffset(),a=t.getBlockMap(),u=a.get(n),f=u.getText(),p=u.getCharacterList(),d=i(),g=u instanceof r,h=u.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),y=h.merge({key:d,text:f.slice(o),characterList:p.slice(o),data:c()}),m=a.toSeq().takeUntil(function(t){return t===u}),v=a.toSeq().skipUntil(function(t){return t===u}).rest(),b=m.concat([[n,h],[d,y]],v).toOrderedMap(),g&&(u.getChildKeys().isEmpty()?void 0:s(!1),b=l(b,h,y)),t.merge({blockMap:b,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})};t.exports=f},function(t,e){"use strict";function n(t){return t.split(r)}var r=/\r\n?|\n/g;t.exports=n},function(t,e){"use strict";function n(t){return t.split("/")}var r={isImage:function(t){return"image"===n(t)[0]},isJpeg:function(t){var e=n(t);return r.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};t.exports=r},function(t,e){"use strict";var n="[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]";t.exports={getPunctuation:function(){return n}}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(e){n(this,t),this._uri=e}return t.prototype.toString=function(){return this._uri},t}();t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(62),i=n(34),s=n(1),a=function(){function t(e){r(this,t),e?i.isStrong(e)?void 0:s(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}return t.prototype.reset=function(){this._lastDir=this._defaultDir},t.prototype.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=a},function(t,e,n){"use strict";function r(t){return a[t]||t}function o(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}var i=n(152),s="Unknown",a={"Mac OS":"Mac OS X"},c=new i,u=c.getResult(),l=o(u.browser.version),f={browserArchitecture:u.cpu.architecture||s,browserFullVersion:u.browser.version||s,browserMinorVersion:l.minor||s,browserName:u.browser.name||s,browserVersion:u.browser.major||s,deviceName:u.device.model||s,engineName:u.engine.name||s,engineVersion:u.engine.version||s,platformArchitecture:u.cpu.architecture||s,platformName:r(u.os.name)||s,platformVersion:u.os.version||s,platformFullVersion:u.os.version||s};t.exports=f},function(t,e,n){"use strict";function r(t,e){var n=t.split(x);return n.length>1?n.some(function(t){return O.contains(t,e)}):(t=n[0].trim(),o(t,e))}function o(t,e){var n,r,o=t.split(C);return o.length>0&&o.length<=2?void 0:S(!1),1===o.length?i(o[0],e):(n=o[0],r=o[1],g(n)&&g(r)?void 0:S(!1),i(">="+n,e)&&i("<="+r,e))}function i(t,e){var n,r,o,i;if(t=t.trim(),""===t)return!0;switch(n=e.split(w),r=p(t),o=r.modifier,i=r.rangeComponents,o){case"<":return s(n,i);case"<=":return a(n,i);case">=":return u(n,i);case">":return l(n,i);case"~":case"~>":return f(n,i);default:return c(n,i)}}function s(t,e){return b(t,e)===-1}function a(t,e){var n=b(t,e);return n===-1||0===n}function c(t,e){return 0===b(t,e)}function u(t,e){var n=b(t,e);return 1===n||0===n}function l(t,e){return 1===b(t,e)}function f(t,e){var n,r,o=e.slice(),i=e.slice();return i.length>1&&i.pop(),n=i.length-1,r=parseInt(i[n],10),d(r)&&(i[n]=r+1+""),u(t,o)&&s(t,i)}function p(t){var e=t.split(w),n=e[0].match(k);return n?void 0:S(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function g(t){return!p(t).modifier}function h(t,e){for(var n=t.length;ne?1:t=|~>|~|>|)?\s*(.+)/,E=/^(\d*)(.*)/,O={contains:function(t,e){return r(t.trim(),e.trim())}};t.exports=O},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){var e,n,r=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?s(!1):void 0,"number"!=typeof r?s(!1):void 0,0===r||r-1 in t?void 0:s(!1),"function"==typeof t.callee?s(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(e=Array(r),n=0;n-1;t.exports=n},function(t,e,n){"use strict";function r(t){var e=o(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}var o=n(139);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=t.ownerDocument.documentElement;return"getBoundingClientRect"in t&&o(n,t)?(e=t.getBoundingClientRect(),{left:Math.round(e.left)-n.clientLeft,right:Math.round(e.right)-n.clientLeft,top:Math.round(e.top)-n.clientTop,bottom:Math.round(e.bottom)-n.clientTop}):{left:0,right:0,top:0,bottom:0}}var o=n(35);t.exports=r},function(t,e,n){"use strict";function r(t){return null==t?t:String(t)}function o(t,e){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return r(n.getPropertyValue(s(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return r(n.getPropertyValue(s(e)));if("display"===e)return"none"}return r(t.currentStyle?"float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[i(e)]:t.style&&t.style[i(e)])}var i=n(135),s=n(143);t.exports=o},function(t,e){"use strict";function n(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},t.exports=o},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e){"use strict";function n(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(144);t.exports=r},function(t,e){"use strict";function n(t){var e,n,r;if(t||(t=""),e=void 0,n=arguments.length,n>1)for(r=1;r1)for(e=1;e0?2==s.length?typeof s[1]==f?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==f||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):i:this[s[0]]=c?s[1].call(this,c,s[2]):i:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):i):this[s]=c?c:i;p+=2}},str:function(t,e){var n,r;for(n in e)if(typeof e[n]===d&&e[n].length>0){for(r=0;r