(self.webpackChunk=self.webpackChunk||[]).push([[8788],{83199:function(J,D,r){"use strict";var S=r(88351),A=r(87841),C=r(993),g=r(93236),h=r(75986),b=r(8263),E=r(62086),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],l=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(u,x){var F=u.fieldProps,f=u.children,B=u.params,U=u.proFieldProps,K=u.mode,k=u.valueEnum,j=u.request,z=u.showSearch,M=u.options,I=(0,A.Z)(u,c),X=(0,g.useContext)(h.Z);return(0,E.jsx)(b.Z,(0,S.Z)((0,S.Z)({valueEnum:(0,C.h)(k),request:j,params:B,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,S.Z)({options:M,mode:K,showSearch:z,getPopupContainer:X.getPopupContainer},F),ref:x,proFieldProps:U},I),{},{children:f}))},s=g.forwardRef(function(o,u){var x=o.fieldProps,F=o.children,f=o.params,B=o.proFieldProps,U=o.mode,K=o.valueEnum,k=o.request,j=o.options,z=(0,A.Z)(o,l),M=(0,S.Z)({options:j,mode:U||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},x),I=(0,g.useContext)(h.Z);return(0,E.jsx)(b.Z,(0,S.Z)((0,S.Z)({valueEnum:(0,C.h)(K),request:k,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,S.Z)({getPopupContainer:I.getPopupContainer},M),ref:u,proFieldProps:B},z),{},{children:F}))}),a=g.forwardRef(p),d=s,i=a;i.SearchSelect=d,i.displayName="ProFormComponent",D.Z=i},6758:function(J,D,r){"use strict";var S=r(88351),A=r(87841),C=r(93236),g=r(8263),h=r(62086),b=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],E=C.forwardRef(function(c,l){var p=c.fieldProps,s=c.unCheckedChildren,a=c.checkedChildren,d=c.proFieldProps,i=(0,A.Z)(c,b);return(0,h.jsx)(g.Z,(0,S.Z)({valueType:"switch",fieldProps:(0,S.Z)({unCheckedChildren:s,checkedChildren:a},p),ref:l,valuePropName:"checked",proFieldProps:d,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},i))});D.Z=E},52586:function(J,D,r){"use strict";var S=r(88351),A=r(87841),C=r(93236),g=r(8263),h=r(62086),b=["fieldProps","proFieldProps"],E=function(l,p){var s=l.fieldProps,a=l.proFieldProps,d=(0,A.Z)(l,b);return(0,h.jsx)(g.Z,(0,S.Z)({ref:p,valueType:"textarea",fieldProps:s,proFieldProps:a},d))};D.Z=C.forwardRef(E)},92094:function(){"use strict"},97683:function(J,D,r){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getFromHTMLConfig=D.getToHTMLConfig=D.blocks=D.getHexColor=D.defaultFontFamilies=D.namedColors=void 0;var S=Object.assign||function(I){for(var X=1;X=0||Object.prototype.hasOwnProperty.call(I,Q)&&($[Q]=I[Q]);return $}var b=D.namedColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},E=function(X){return X.split("-")[1]},c=function(X){return X+"px"},l=function(X){return X.replace("px","")},p=["style"],s=["style","href","target","alt","title","id","controls","autoplay","loop","poster"],a=function(X){return Object.keys(X).reduce(function($,Q){return $+" "+Q+'="'+X[Q]+'"'},"").replace(/^\s$/,"")},d=D.defaultFontFamilies=[{name:"Araial",family:"Arial, Helvetica, sans-serif"},{name:"Georgia",family:"Georgia, serif"},{name:"Impact",family:"Impact, serif"},{name:"Monospace",family:'"Courier New", Courier, monospace'},{name:"Tahoma",family:"tahoma, arial, 'Hiragino Sans GB', \u5B8B\u4F53, sans-serif"}],i=D.getHexColor=function(X){if(X=X.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(X))return X;if(b[X])return b[X];if(X.indexOf("rgb")===0){var $=X.split(","),Q=$.length<3?null:"#"+[$[0],$[1],$[2]].map(function(W){var le=parseInt(W.replace(/\D/g,""),10).toString(16);return le.length===1?"0"+le:le}).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(Q)?Q:null}else return null},o=D.blocks={"header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6",unstyled:"p",blockquote:"blockquote"},u=Object.keys(o),x=u.map(function(I){return o[I]}),F=function(X,$,Q){if(!X||!X.key)return C.default.createElement("p",null);var W=$.getBlockForKey(X.key),le=Q.class,te=h(Q,["class"]);if(te.className=le,!W)return C.default.createElement("p",null);var pe=W.getEntityAt(0);if(!pe)return C.default.createElement("p",null);var Le=$.getEntity(pe),De=Le.getType().toLowerCase(),Z=X.data,Re=Z.float,Ye=Z.alignment,_e=Le.getData(),Ze=_e.url,qe=_e.link,me=_e.link_target,ye=_e.width,Te=_e.height,we=_e.meta;if(De==="image"){var Me={},Ne="";return Re?(Me.float=Re,Ne+=" float-"+Re):Ye&&(Me.textAlign=Ye,Ne+=" align-"+Ye),qe?C.default.createElement("div",{className:"media-wrap image-wrap"+Ne,style:Me},C.default.createElement("a",{style:{display:"inline-block"},href:qe,target:me},C.default.createElement("img",S({},te,we,{src:Ze,width:ye,height:Te,style:{width:ye,height:Te}})))):C.default.createElement("div",{className:"media-wrap image-wrap"+Ne,style:Me},C.default.createElement("img",S({},te,we,{src:Ze,width:ye,height:Te,style:{width:ye,height:Te}})))}else return De==="audio"?C.default.createElement("div",{className:"media-wrap audio-wrap"},C.default.createElement("audio",S({controls:!0},te,we,{src:Ze}))):De==="video"?C.default.createElement("div",{className:"media-wrap video-wrap"},C.default.createElement("video",S({controls:!0},te,we,{src:Ze,width:ye,height:Te}))):De==="embed"?C.default.createElement("div",{className:"media-wrap embed-wrap"},C.default.createElement("div",{dangerouslySetInnerHTML:{__html:Ze}})):De==="hr"?C.default.createElement("hr",null):C.default.createElement("p",null)},f=function(X){return function($,Q){var W=X.entityExportFn,le=$.type.toLowerCase();if(W){var te=W($,Q);if(te)return te}if(le==="link"){var pe=$.data.nodeAttributes||{},Le=pe.class,De=h(pe,["class"]);return De.className=Le,C.default.createElement("a",S({href:$.data.href,target:$.data.target},De))}}},B=function(X){return function($){var Q=X.unitExportFn||c;if(X.styleExportFn){var W=X.styleExportFn($,X);if(W)return W}if($=$.toLowerCase(),$==="strikethrough")return C.default.createElement("span",{style:{textDecoration:"line-through"}});if($==="superscript")return C.default.createElement("sup",null);if($==="subscript")return C.default.createElement("sub",null);if($.indexOf("color-")===0)return C.default.createElement("span",{style:{color:"#"+E($)}});if($.indexOf("bgcolor-")===0)return C.default.createElement("span",{style:{backgroundColor:"#"+E($)}});if($.indexOf("fontsize-")===0)return C.default.createElement("span",{style:{fontSize:Q(E($),"font-size","html")}});if($.indexOf("lineheight-")===0)return C.default.createElement("span",{style:{lineHeight:Q(E($),"line-height","html")}});if($.indexOf("letterspacing-")===0)return C.default.createElement("span",{style:{letterSpacing:Q(E($),"letter-spacing","html")}});if($.indexOf("fontfamily-")===0){var le=X.fontFamilies.find(function(te){return te.name.toLowerCase()===E($)});return le?C.default.createElement("span",{style:{fontFamily:le.family}}):void 0}}},U=function(X){return function($){var Q=X.blockExportFn,W=X.contentState;if(Q){var le=Q(W,$);if(le)return le}var te="",pe=$.type.toLowerCase(),Le=$.data,De=Le.textAlign,Z=Le.textIndent,Re=Le.nodeAttributes,Ye=Re===void 0?{}:Re,_e=a(Ye);if((De||Z)&&(te=' style="',De&&(te+="text-align:"+De+";"),Z&&!isNaN(Z)&&Z>0&&(te+="text-indent:"+Z*2+"em;"),te+='"'),pe==="atomic")return F($,W,Ye);if(pe==="code-block"){var Ze=W.getBlockBefore($.key),qe=W.getBlockAfter($.key),me=Ze&&Ze.getType(),ye=qe&&qe.getType(),Te="",we="";return me!=="code-block"?Te="":Te="",ye!=="code-block"?we="":we="
",{start:Te,end:we}}else{if(o[pe])return{start:"<"+o[pe]+te+_e+">",end:""};if(pe==="unordered-list-item")return{start:"",end:"",nest:C.default.createElement("ul",null)};if(pe==="ordered-list-item")return{start:"",end:"",nest:C.default.createElement("ol",null)}}}},K=function(X,$){return function(Q,W,le){if(!W||!W.style)return le;var te=X.unitImportFn||l,pe=le;return[].forEach.call(W.style,function(Le){if(Q==="span"&&Le==="color"){var De=i(W.style.color);pe=De?pe.add("COLOR-"+De.replace("#","").toUpperCase()):pe}else if(Q==="span"&&Le==="background-color"){var Z=i(W.style.backgroundColor);pe=Z?pe.add("BGCOLOR-"+Z.replace("#","").toUpperCase()):pe}else if(Q==="span"&&Le==="font-size")pe=pe.add("FONTSIZE-"+te(W.style.fontSize,"font-size",$));else if(Q==="span"&&Le==="line-height"&&!isNaN(parseFloat(W.style.lineHeight,10)))pe=pe.add("LINEHEIGHT-"+te(W.style.lineHeight,"line-height",$));else if(Q==="span"&&Le==="letter-spacing"&&!isNaN(parseFloat(W.style.letterSpacing,10)))pe=pe.add("LETTERSPACING-"+te(W.style.letterSpacing,"letter-spacing",$));else if(Q==="span"&&Le==="text-decoration")W.style.textDecoration==="line-through"?pe=pe.add("STRIKETHROUGH"):W.style.textDecoration==="underline"&&(pe=pe.add("UNDERLINE"));else if(Q==="span"&&Le==="font-family"){var Re=X.fontFamilies.find(function(Ye){return Ye.family.toLowerCase()===W.style.fontFamily.toLowerCase()});if(!Re)return;pe=pe.add("FONTFAMILY-"+Re.name.toUpperCase())}}),Q==="sup"?pe=pe.add("SUPERSCRIPT"):Q==="sub"&&(pe=pe.add("SUBSCRIPT")),X.styleImportFn&&(pe=X.styleImportFn(Q,W,pe,$)||pe),pe}},k=function(X,$){return function(Q,W,le){if(X&&X.entityImportFn){var te=X.entityImportFn(Q,W,le,$);if(te)return te}Q=Q.toLowerCase();var pe=W.alt,Le=W.title,De=W.id,Z=W.controls,Re=W.autoplay,Ye=W.loop,_e=W.poster,Ze={},qe={};if(De&&(Ze.id=De),pe&&(Ze.alt=pe),Le&&(Ze.title=Le),Z&&(Ze.controls=Z),Re&&(Ze.autoPlay=Re),Ye&&(Ze.loop=Ye),_e&&(Ze.poster=_e),W.attributes&&Object.keys(W.attributes).forEach(function(rt){var Fe=W.attributes[rt];s.indexOf(Fe.name)===-1&&(qe[Fe.name]=Fe.value)}),Q==="a"&&!W.querySelectorAll("img").length){var me=W.getAttribute("href"),ye=W.getAttribute("target");return le("LINK","MUTABLE",{href:me,target:ye,nodeAttributes:qe})}else{if(Q==="audio")return le("AUDIO","IMMUTABLE",{url:W.getAttribute("src"),meta:Ze,nodeAttributes:qe});if(Q==="video")return le("VIDEO","IMMUTABLE",{url:W.getAttribute("src"),meta:Ze,nodeAttributes:qe});if(Q==="img"){var Te=W.parentNode,we={meta:Ze},Me=W.style,Ne=Me.width,ze=Me.height;return we.url=W.getAttribute("src"),Ne&&(we.width=Ne),ze&&(we.height=ze),Te.nodeName.toLowerCase()==="a"&&(we.link=Te.getAttribute("href"),we.link_target=Te.getAttribute("target")),le("IMAGE","IMMUTABLE",we)}else{if(Q==="hr")return le("HR","IMMUTABLE",{});if(W.parentNode&&W.parentNode.classList.contains("embed-wrap")){var We=W.innerHTML||W.outerHTML;if(We)return le("EMBED","IMMUTABLE",{url:We})}}}}},j=function(X,$){return function(Q,W){if(X&&X.blockImportFn){var le=X.blockImportFn(Q,W,$);if(le)return le}var te={},pe=W.style||{};if(W.attributes&&Object.keys(W.attributes).forEach(function(De){var Z=W.attributes[De];p.indexOf(Z.name)===-1&&(te[Z.name]=Z.value)}),W.classList&&W.classList.contains("media-wrap"))return{type:"atomic",data:{nodeAttributes:te,float:pe.float,alignment:pe.textAlign}};if(Q==="img")return{type:"atomic",data:{nodeAttributes:te,float:pe.float,alignment:pe.textAlign}};if(Q==="hr")return{type:"atomic",data:{nodeAttributes:te}};if(Q==="pre")return W.innerHTML=W.innerHTML.replace(//g,"").replace(/<\/code>/g,""),{type:"code-block",data:{nodeAttributes:te}};if(x.indexOf(Q)!==-1){var Le={nodeAttributes:te};return pe.textAlign&&(Le.textAlign=pe.textAlign),pe.textIndent&&(Le.textIndent=/^\d+em$/.test(pe.textIndent)?Math.ceil(parseInt(pe.textIndent,10)/2):1),{type:u[x.indexOf(Q)],data:Le}}}},z=D.getToHTMLConfig=function(X){return{styleToHTML:B(X),entityToHTML:f(X),blockToHTML:U(X)}},M=D.getFromHTMLConfig=function(X){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unknow";return{htmlToStyle:K(X,$),htmlToEntity:k(X,$),htmlToBlock:j(X,$)}}},91796:function(J,D,r){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.convertRawToEditorState=D.convertEditorStateToRaw=D.convertHTMLToEditorState=D.convertEditorStateToHTML=D.convertHTMLToRaw=D.convertRawToHTML=void 0;var S=Object.assign||function(a){for(var d=1;d=0)&&Object.prototype.propertyIsEnumerable.call(i,x)&&(u[x]=i[x])}return u}l.exports=d},function(l,p,s){"use strict";var a=s(30);function d(i){var o=i.getSelection();return o.isCollapsed()?null:a(i.getCurrentContent(),o)}l.exports=d},function(l,p){l.exports=c},function(l,p,s){var a=s(36),d=s(37),i=s(38);function o(u,x){return a(u)||d(u,x)||i()}l.exports=o},function(l,p){function s(a,d){if(a==null)return{};var i={},o=Object.keys(a),u,x;for(x=0;x=0)&&(i[u]=a[u]);return i}l.exports=s},function(l,p){function s(a,d){return l.exports=s=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},s(a,d)}l.exports=s},function(l,p){function s(a){if(Array.isArray(a)){for(var d=0,i=new Array(a.length);d0&&arguments[0]!==void 0?arguments[0]:j;return a(this,Q),d(this,$.call(this,I(W)))}return Q.prototype.getKey=function(){return this.get("key")},Q.prototype.getType=function(){return this.get("type")},Q.prototype.getText=function(){return this.get("text")},Q.prototype.getCharacterList=function(){return this.get("characterList")},Q.prototype.getLength=function(){return this.getText().length},Q.prototype.getDepth=function(){return this.get("depth")},Q.prototype.getData=function(){return this.get("data")},Q.prototype.getInlineStyleAt=function(le){var te=this.getCharacterList().get(le);return te?te.getStyle():k},Q.prototype.getEntityAt=function(le){var te=this.getCharacterList().get(le);return te?te.getEntity():null},Q.prototype.getChildKeys=function(){return this.get("children")},Q.prototype.getParentKey=function(){return this.get("parent")},Q.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},Q.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},Q.prototype.findStyleRanges=function(le,te){x(this.getCharacterList(),z,le,te)},Q.prototype.findEntityRanges=function(le,te){x(this.getCharacterList(),M,le,te)},Q}(U(j));l.exports=X},function(l,p,s){"use strict";var a={},d=Math.pow(2,24);function i(){for(var o=void 0;o===void 0||a.hasOwnProperty(o)||!isNaN(+o);)o=Math.floor(Math.random()*d).toString(32);return a[o]=!0,o}l.exports=i},function(l,p,s){"use strict";var a=s(19),d=s(20),i=s(35);function o(F,f){var B=F.getBlockMap(),U=F.getEntityMap(),K={},k=f.getStartKey(),j=f.getStartOffset(),z=B.get(k),M=x(U,z,j);M!==z&&(K[k]=M);var I=f.getEndKey(),X=f.getEndOffset(),$=B.get(I);k===I&&($=M);var Q=x(U,$,X);return Q!==$&&(K[I]=Q),Object.keys(K).length?F.merge({blockMap:B.merge(K),selectionAfter:f}):F.set("selectionAfter",f)}function u(F,f,B){var U;return d(F,function(K,k){return K.getEntity()===k.getEntity()},function(K){return K.getEntity()===f},function(K,k){K<=B&&k>=B&&(U={start:K,end:k})}),typeof U!="object"&&i(!1),U}function x(F,f,B){var U=f.getCharacterList(),K=B>0?U.get(B-1):void 0,k=B1){var G=Je.EditorState.push(t,Je.Modifier.removeRange(t.getCurrentContent(),t.getSelection(),"backward"),"remove-range");R.setValue(G)}},Ke=function(m,R,t){if(t.editorProps.readOnly||t.editorProps.disabled)return"handled";if(window&&window.__BRAFT_DRAGING__IMAGE__){var O=Je.EditorState.forceSelection(t.state.editorState,m);return O=Fe.ContentUtils.insertMedias(O,[window.__BRAFT_DRAGING__IMAGE__.mediaData]),O=Fe.ContentUtils.removeBlock(O,window.__BRAFT_DRAGING__IMAGE__.block,O.getSelection()),window.__BRAFT_DRAGING__IMAGE__=null,t.lockOrUnlockEditor(!0),t.setValue(O),"handled"}else if(!R||!R.getText())return"handled";return"not-handled"},Ve=function(m,R){var t=o()({},R.constructor.defaultProps.media,R.editorProps.media),O=t.pasteImage,G=t.validateFn,re=t.imagePasteLimit;return O&&m.slice(0,re).forEach(function(q){if(q&&q.type.indexOf("image")>-1&&R.braftFinder){var de=G?G(q):!0;de instanceof Promise?de.then(function(){R.braftFinder.uploadImage(q,function(ve){R.isLiving&&R.setValue(Fe.ContentUtils.insertMedias(R.state.editorState,[ve]))})}):de&&R.braftFinder.uploadImage(q,function(ve){R.isLiving&&R.setValue(Fe.ContentUtils.insertMedias(R.state.editorState,[ve]))})}}),m[0]&&m[0].type.indexOf("image")>-1&&O?"handled":"not-handled"},et=function(m,R,t){return t.editorProps.handleDroppedFiles&&t.editorProps.handleDroppedFiles(m,R,t)==="handled"?"handled":Ve(R,t)},Pe=function(m,R){return R.editorProps.handlePastedFiles&&R.editorProps.handlePastedFiles(m,R)==="handled"?"handled":Ve(m,R)},at=function(m,R){var t=ne()(R.state.editorState);if(t&&t.toArray)try{var O=Je.ContentState.createFromBlockArray(t.toArray()),G=Je.EditorState.createWithContent(O),re=m.clipboardData||window.clipboardData||m.originalEvent.clipboardData;G.setConvertOptions(R.state.editorState.convertOptions),re.setData("text/html",G.toHTML()),re.setData("text/plain",G.toText()),m.preventDefault()}catch(q){console.warn(q)}},mt=function(m,R,t,O){if(O.editorProps.handlePastedText&&O.editorProps.handlePastedText(m,R,t,O)==="handled")return"handled";if(!R||O.editorProps.stripPastedStyles)return!1;var G=Fe.ColorUtils.detectColorsFromHTMLString(R);return O.setState({tempColors:[].concat(te()(O.state.tempColors),te()(G)).filter(function(re){return O.editorProps.colors.indexOf(re)===-1}).filter(function(re,q,de){return de.indexOf(re)===q})},function(){O.setValue(Fe.ContentUtils.insertHTML(t,R,"paste"))}),"handled"},Tt=[],St=[],At=[],Yt=[],Gt=[],ae=[],ce=[],Ce=[],xe=[],He=[],je=[],gt=[],it=function(m,R){return R?m.map(function(t){return!t.includeEditors&&!t.excludeEditors?t.data:t.includeEditors?t.includeEditors.indexOf(R)!==-1?t.data:!1:t.excludeEditors?t.excludeEditors.indexOf(R)!==-1?!1:t.data:!1}).filter(function(t){return t}):m.filter(function(t){return!t.includeEditors}).map(function(t){return t.data})},Et=function(m){return it(At,m)},ot=function(m){return it(Tt,m)},wt=function(m){return it(St,m,"decorators")},ut=function(m){return it(Yt,m)},Ct=function(m){return it(Gt,m)},nt=function(m){var R={};return it(ae,m).forEach(function(t){R[t.inlineStyleName]=t.styleMap}),R},ct=function(m){return it(ce,m)},ht=function(m,R){return function(t,O,G){return it(xe,R).forEach(function(re){re.importer&&re.importer(t,O)&&(G=G.add(re.inlineStyleName))}),m?m(t,O,G):G}},ft=function(m,R){return function(t){t=t.toUpperCase();var O=m?m(t):void 0;return O||(it(He,R).find(function(G){if(G.inlineStyleName===t)return O=G.exporter,!0}),O)}},jt=function(m,R){return function(t,O,G,re){var q=m?m(t,O,G,re):null;return q||(it(Ce,R).find(function(de){var ve=de.importer?de.importer(t,O,re):null;return ve&&(q=G(de.entityType,ve.mutability||"MUTABLE",ve.data||{})),!!ve}),q)}},Ht=function(m,R){return function(t,O){var G=m?m(t,O):void 0;if(G)return G;var re=t.type.toUpperCase();return it(Ce,R).find(function(q){if(q.entityType===re)return G=q.exporter?q.exporter(t,O):void 0,!0}),G}},Ot=function(m,R){return function(t,O,G){var re=m?m(t,O,G):null;return re||(it(je,R).find(function(q){var de=q.importer?q.importer(t,O,G):void 0;return de&&(re=de),!!de}),re)}},Ft=function(m,R){return function(t,O){var G=m?m(t,O):null;return G||(it(gt,R).find(function(re){var q=re.exporter?re.exporter(t,O):void 0;return q&&(G=q),!!q}),G)}},st=function w(m){if(m instanceof Array)return m.forEach(w),!1;if(!m||!m.type||typeof m.type!="string")return!1;var R=m.includeEditors,t=m.excludeEditors;if(m.type==="control")Tt.push({includeEditors:R,excludeEditors:t,data:m.control});else if(m.type==="inline-style"){var O=m.name.toUpperCase();m.control&&Tt.push({includeEditors:R,excludeEditors:t,data:o()({key:O,type:"inline-style",command:O},m.control)}),m.style&&ae.push({includeEditors:R,excludeEditors:t,data:{inlineStyleName:O,styleMap:m.style}}),m.styleFn&&ce.push({includeEditors:R,excludeEditors:t,data:{inlineStyleName:O,styleFn:m.styleFn}}),m.importer&&xe.push({includeEditors:R,excludeEditors:t,data:{inlineStyleName:O,importer:m.importer}}),He.push({includeEditors:R,excludeEditors:t,data:{inlineStyleName:O,exporter:m.exporter?m.exporter(m):Z.a.createElement("span",{style:m.style})}})}else if(m.type!=="block-style"){if(m.type==="entity"){var G=m.name.toUpperCase();m.control&&Tt.push({includeEditors:R,excludeEditors:t,data:typeof m.control=="function"?m.control:o()({key:G,type:"entity",command:G,data:{mutability:m.mutability||"MUTABLE",data:m.data||{}}},m.control)}),Ce.push({includeEditors:R,excludeEditors:t,data:{entityType:G,importer:m.importer,exporter:m.exporter}}),St.push({includeEditors:R,excludeEditors:t,data:{type:"entity",decorator:{key:G,component:m.component}}})}else if(m.type==="block"){var re=m.name;m.renderMap&&Yt.push({includeEditors:R,excludeEditors:t,data:{blockType:re,renderMap:m.renderMap}}),m.rendererFn&&Gt.push({includeEditors:R,excludeEditors:t,data:{blockType:re,rendererFn:m.rendererFn}}),m.importer&&je.push({includeEditors:R,excludeEditors:t,data:{blockType:re,importer:m.importer}}),m.exporter&>.push({includeEditors:R,excludeEditors:t,data:{blockType:re,exporter:m.exporter}})}else if(m.type!=="atomic")if(m.type==="decorator"){var q=m.decorator;q&&q.strategy&&q.component?St.push({includeEditors:R,excludeEditors:t,data:{type:"strategy",decorator:q}}):q&&q.getDecorations&&St.push({includeEditors:R,excludeEditors:t,data:{type:"class",decorator:q}})}else m.type==="prop-interception"&&At.push({includeEditors:R,excludeEditors:t,data:m.interceptor})}},Mt=function(m){return m.use=st,m},Bt=function(w,m){var R=Object(pt.Map)({atomic:{element:""},"code-block":{element:"code",wrapper:Z.a.createElement("pre",{className:"braft-code-block"})}});try{var t=ut(w.editorId);R=t.reduce(function(O,G){return O.merge(typeof G.renderMap=="function"?G.renderMap(w):G.renderMap)},R),m&&(typeof m=="function"?R=R.merge(m(w)):R=R.merge(m)),R=Je.DefaultDraftBlockRenderMap.merge(R)}catch(O){console.warn(O)}return R},lt=s(11),Rt=s.n(lt),Ut=s(24),_t=s.n(Ut),on=s(45),ln=s(46),Qt=function(w){var m=w.active,R=w.onClick,t=w.className;return Z.a.createElement("div",{onClick:function(){return R()},className:"bf-switch "+t+(m?" active":"")})},Bn=function(w,m){return[{key:"undo",title:w.controls.undo,text:Z.a.createElement("i",{className:"bfi-undo"}),type:"editor-method",command:"undo"},{key:"redo",title:w.controls.redo,text:Z.a.createElement("i",{className:"bfi-redo"}),type:"editor-method",command:"redo"},{key:"remove-styles",title:w.controls.removeStyles,text:Z.a.createElement("i",{className:"bfi-format_clear"}),type:"editor-method",command:"removeSelectionInlineStyles"},{key:"hr",title:w.controls.hr,text:Z.a.createElement("i",{className:"bfi-hr"}),type:"editor-method",command:"insertHorizontalLine"},{key:"bold",title:w.controls.bold,text:Z.a.createElement("i",{className:"bfi-bold"}),type:"inline-style",command:"bold"},{key:"italic",title:w.controls.italic,text:Z.a.createElement("i",{className:"bfi-italic"}),type:"inline-style",command:"italic"},{key:"underline",title:w.controls.underline,text:Z.a.createElement("i",{className:"bfi-underlined"}),type:"inline-style",command:"underline"},{key:"strike-through",title:w.controls.strikeThrough,text:Z.a.createElement("i",{className:"bfi-strikethrough"}),type:"inline-style",command:"strikethrough"},{key:"superscript",title:w.controls.superScript,text:Z.a.createElement("i",{className:"bfi-superscript"}),type:"inline-style",command:"superscript"},{key:"subscript",title:w.controls.subScript,text:Z.a.createElement("i",{className:"bfi-subscript"}),type:"inline-style",command:"subscript"},{key:"headings",title:w.controls.headings,type:"headings"},{key:"blockquote",title:w.controls.blockQuote,text:Z.a.createElement("i",{className:"bfi-quote"}),type:"block-type",command:"blockquote"},{key:"code",title:w.controls.code,text:Z.a.createElement("i",{className:"bfi-code"}),type:"block-type",command:"code-block"},{key:"list-ul",title:w.controls.unorderedList,text:Z.a.createElement("i",{className:"bfi-list"}),type:"block-type",command:"unordered-list-item"},{key:"list-ol",title:w.controls.orderedList,text:Z.a.createElement("i",{className:"bfi-list-numbered"}),type:"block-type",command:"ordered-list-item"},{key:"link",title:w.controls.link,type:"link"},{key:"text-color",title:w.controls.color,type:"text-color"},{key:"line-height",title:w.controls.lineHeight,type:"line-height"},{key:"letter-spacing",title:w.controls.letterSpacing,type:"letter-spacing"},{key:"text-indent",title:w.controls.textIndent,type:"text-indent"},{key:"font-size",title:w.controls.fontSize,type:"font-size"},{key:"font-family",title:w.controls.fontFamily,type:"font-family"},{key:"text-align",title:w.controls.textAlign,type:"text-align"},{key:"media",title:w.controls.media,text:Z.a.createElement("i",{className:"bfi-media"}),type:"media"},{key:"emoji",title:w.controls.emoji,text:Z.a.createElement("i",{className:"bfi-emoji"}),type:"emoji"},{key:"clear",title:w.controls.clear,text:Z.a.createElement("i",{className:"bfi-clear_all"}),type:"editor-method",command:"clearEditorContent"},{key:"fullscreen",title:m.state.isFullscreen?w.controls.exitFullscreen:w.controls.fullscreen,text:Z.a.createElement("i",{className:m.state.isFullscreen?"bfi-fullscreen-exit":"bfi-fullscreen"}),type:"editor-method",command:"toggleFullscreen"},{key:"modal",type:"modal"},{key:"button",type:"button"},{key:"dropdown",type:"dropdown"},{key:"component",type:"component"}]},un={"float-left":{text:Z.a.createElement("span",{"data-float":"left"},"\uE91E"),command:"setImageFloat|left"},"float-right":{text:Z.a.createElement("span",{"data-float":"right"},"\uE914"),command:"setImageFloat|right"},"align-left":{text:Z.a.createElement("span",{"data-align":"left"},"\uE027"),command:"setImageAlignment|left"},"align-center":{text:Z.a.createElement("span",{"data-align":"center"},"\uE028"),command:"setImageAlignment|center"},"align-right":{text:Z.a.createElement("span",{"data-align":"right"},"\uE029"),command:"setImageAlignment|right"},size:{text:Z.a.createElement("span",null,"\uE3C2"),command:"toggleSizeEditor"},link:{text:Z.a.createElement("span",null,"\uE91A"),command:"toggleLinkEditor"},remove:{text:Z.a.createElement("span",null,"\uE9AC"),command:"removeImage"}},Pt=function(w){$()(m,w);function m(){var R,t;f()(this,m);for(var O=arguments.length,G=new Array(O),re=0;ret.zoom?(Qe=Math.floor(ve*t.zoom),t.setState({tempWidth:Qe}),tt=ve):de/ve1&&arguments[1]!==void 0?arguments[1]:{},R=nt(w.editorId);return o()({SUPERSCRIPT:{position:"relative",top:"-8px",fontSize:"11px"},SUBSCRIPT:{position:"relative",bottom:"-8px",fontSize:"11px"}},R,m)},Be=function(m){return m.split("-")[1]},Ue=function(w,m){return function(R,t){var O={},G=m.fontFamilies,re=m.unitExportFn,q=m.customStyleFn,de=ct(w.editorId);return de.forEach(function(ve){O=ve.styleFn?ve.styleFn(R,t,O):O}),O=q?q(R,t,O):{},R.forEach(function(ve){ve.indexOf("COLOR-")===0?O.color="#"+Be(ve):ve.indexOf("BGCOLOR-")===0?O.backgroundColor="#"+Be(ve):ve.indexOf("FONTSIZE-")===0?O.fontSize=re(Be(ve),"font-size","editor"):ve.indexOf("LINEHEIGHT-")===0?O.lineHeight=re(Be(ve),"line-height","editor"):ve.indexOf("LETTERSPACING-")===0?O.letterSpacing=re(Be(ve),"letter-spacing","editor"):ve.indexOf("TEXTINDENT-")===0?O.textIndent=re(Be(ve),"text-indent","editor"):ve.indexOf("FONTFAMILY-")===0&&(O.fontFamily=(G.find(function(Qe){return Qe.name.toUpperCase()===Be(ve)})||{}).family||"")}),O}},Xe=s(18),vt=s.n(Xe),bt=function(w){var m=w.children,R=w.entityKey,t=w.contentState,O=t.getEntity(R).getData(),G=O.href,re=O.target;return Z.a.createElement("span",{className:"bf-link-wrap"},Z.a.createElement("a",{onClick:function(de){return en(de,G)},className:"bf-link",href:G,target:re},m))},en=function(m,R){if(m.getModifierState("Control")||m.getModifierState("Meta")){var t=document.createElement("a");t.href=R,t.target=m.currentTarget.target,t.click()}},Zt="-";vt.a.prototype.getDecorations=function(w,m){var R=Array(w.getText().length).fill(null);return this.decorators.forEach(function(t,O){t.getDecorations(w,m).forEach(function(G,re){G&&(G=O+Zt+G,R[re]=G)})}),Dt.a.List(R)};var nn=[{type:"entity",decorator:{key:"LINK",component:bt}}],lr=function(m){return function(R,t,O){R.findEntityRanges(function(G){var re=G.getEntity();return re!==null&&O.getEntity(re).getType()===m},t)}},Br=function(w){var m=wt(w),R=[].concat(nn,te()(m.filter(function(G){return G.type==="entity"}))),t=m.filter(function(G){return G.type==="strategy"}),O=m.filter(function(G){return G.type==="class"});return new vt.a([].concat(te()(O.map(function(G){return G.decorator})),[new Je.CompositeDecorator(t.map(function(G){return G.decorator})),new Je.CompositeDecorator(R.map(function(G){return{strategy:lr(G.decorator.key),component:G.decorator.component}}))]))},ur=Bt,Wn=ie,Sn=Ee,Cn=ge,Pn=Ue,xt=Br,Wt=s(53),or=s(54),Vn=s(55),hn=[],Mn=!1,bn=!1,cn={resolve:function(m){var R=Fe.BaseUtils.UniqueIndex();return hn.push({id:R,eventHandler:m}),R},unresolve:function(m){hn=hn.filter(function(R){return R.id!==m})}};!Mn&&(typeof window=="undefined"?"undefined":d()(window))==="object"&&(window.addEventListener("resize",function(w){clearTimeout(bn),bn=setTimeout(function(){hn.map(function(m){typeof m.eventHandler=="function"&&m.eventHandler(w)}),bn=!1},100)}),Mn=!0);var rn=function(w){$()(m,w);function m(){var R,t;f()(this,m);for(var O=arguments.length,G=new Array(O),re=0;re-1&&(de=ve),t.props.editor.setValue(Fe.ContentUtils.toggleSelectionAlignment(t.props.editorState,de)),t.props.editor.requestFocus()}),t}return U()(m,[{key:"componentWillReceiveProps",value:function(t){this.setState({currentAlignment:Fe.ContentUtils.getSelectionBlockData(t.editorState,"textAlign")})}},{key:"render",value:function(){var t=this,O=[this.props.language.controls.alignLeft,this.props.language.controls.alignCenter,this.props.language.controls.alignRight,this.props.language.controls.alignJustify];return Z.a.createElement(wn,null,this.props.textAligns.map(function(G,re){return Z.a.createElement("button",{type:"button",key:re,"data-title":O[re],"data-alignment":G,className:"control-item button "+(G===t.state.currentAlignment?"active":null),onClick:t.setAlignment},Z.a.createElement("i",{className:"bfi-align-"+G}))}))}}]),m}(Z.a.Component),pr=s(62),fn=function(m,R){var t=m.currentTarget.dataset.emoji,O=R.hooks("insert-emoji",t)(t);if(O===!1)return!1;typeof O=="string"&&(t=O),R.editor.setValue(Fe.ContentUtils.insertText(R.editorState,t)),R.editor.requestFocus()},gr=function(w){return Z.a.createElement(rn,{caption:w.defaultCaption,autoHide:!0,showArrow:!1,getContainerNode:w.getContainerNode,title:w.language.controls.emoji,className:"control-item dropdown bf-emoji-dropdown"},Z.a.createElement("div",{className:"bf-emojis-wrap"},Z.a.createElement("ul",{className:"bf-emojis"},w.emojis.map(function(m,R){return Z.a.createElement("li",{key:R,"data-emoji":m,onClick:function(O){return fn(O,w)}},m)}))))},En=s(63),hr=function(m,R){var t=m.currentTarget.dataset.size,O=R.hooks("toggle-letter-spacing",t)(t);if(O===!1)return!1;isNaN(O)||(t=O),R.editor.setValue(Fe.ContentUtils.toggleSelectionLetterSpacing(R.editorState,t)),R.editor.requestFocus()},vr=function(w){var m=null,R=null,t=null;return w.letterSpacings.find(function(O){return Fe.ContentUtils.selectionHasInlineStyle(w.editorState,"LETTERSPACING-"+O)?(m=O,R=O,!0):!1}),Z.a.createElement(rn,{autoHide:!0,caption:m||w.defaultCaption,getContainerNode:w.getContainerNode,title:w.language.controls.letterSpacing,ref:function(G){return t=G},className:"control-item dropdown bf-letter-spacing-dropdown"},Z.a.createElement("ul",{className:"bf-letter-spacings"},w.letterSpacings.map(function(O,G){return Z.a.createElement("li",{key:G,className:O===R?"active":null,"data-size":O,onClick:function(q){hr(q,w),t.hide()}},O)})))},er=function(w){$()(m,w);function m(){var R,t;f()(this,m);for(var O=arguments.length,G=new Array(O),re=0;re=6,className:"control-item button button-indent-increase".concat(t>0&&t<6?" active":""),onClick:this.increaseIndent},Z.a.createElement("i",{className:"bfi-indent-increase"})),Z.a.createElement("button",{key:1,type:"button","data-title":O.controls.decreaseIndent,disabled:t<=0,className:"control-item button button-indent-decrease",onClick:this.decreaseIndent},Z.a.createElement("i",{className:"bfi-indent-decrease"})))}}]),m}(Z.a.Component),dn={"inline-style":"toggle-inline-style","block-type":"change-block-type","editor-method":"exec-editor-command"},qt={superscript:"subscript",subscript:"superscript"},Kn=function(m,R,t,O){return t=t.map(function(G){return typeof G=="function"?G(m):G}),O=O.map(function(G){return typeof G=="function"?G(m):G}),t.length===0&&O.length===0?R:R.map(function(G){return O.find(function(re){return re.replace===(G.key||G)})||t.find(function(re){return re.replace===(G.key||G)})||G}).concat(t.length?"separator":"").concat(t.filter(function(G){return!G.replace})).concat(O.filter(function(G){return typeof G=="string"||!G.replace}))},tr=function(w){$()(m,w);function m(){var R,t;f()(this,m);for(var O=arguments.length,G=new Array(O),re=0;re2&&arguments[2]!==void 0?arguments[2]:{},re=this.props.hooks(dn[O]||O,t)(t),q=this.props.editorState;if(re===!1)return!1;if(typeof re=="string"&&(t=re),O==="inline-style"){var de=qt[t];de&&Fe.ContentUtils.selectionHasInlineStyle(q,de)&&(q=Fe.ContentUtils.toggleSelectionInlineStyle(q,de)),this.props.editor.setValue(Fe.ContentUtils.toggleSelectionInlineStyle(q,t))}else O==="block-type"?this.props.editor.setValue(Fe.ContentUtils.toggleSelectionBlockType(q,t)):O==="entity"?this.props.editor.setValue(Fe.ContentUtils.toggleSelectionEntity(q,{type:t,mutability:G.mutability||"MUTABLE",data:G.data||{}})):O==="editor-method"&&this.props.editor[t]&&this.props.editor[t]()}},{key:"render",value:function(){var t=this,O=this.props,G=O.editor,re=O.editorId,q=O.editorState,de=O.className,ve=O.style,Qe=O.controls,tt=O.media,dt=O.extendControls,It=O.language,zt=O.hooks,an=O.colors,tn=O.colorPicker,Vt=O.colorPickerTheme,Jt=O.colorPickerAutoHide,_n=O.headings,Un=O.fontSizes,zn=O.fontFamilies,On=O.emojis,Jn=O.getContainerNode,yr=O.lineHeights,Rn=O.letterSpacings,Xn=O.textAligns,Er=O.textBackgroundColor,Xt=O.allowInsertLinkText,kn=O.defaultLinkTarget,e=Fe.ContentUtils.getSelectionBlockType(q),n={editor:G,editorId:re,editorState:q,language:It,getContainerNode:Jn,hooks:zt},T=[],N=Bn(It,G),H=ot(re),ee=Kn(n,Qe,H,dt);return this.allControls=ee,Z.a.createElement("div",{className:"bf-controlbar ".concat(de||""),style:ve,onMouseDown:this.preventDefault},ee.map(function(oe,se){var Ae=typeof oe=="string"?oe:oe.key;if(typeof Ae!="string"||T.indexOf(Ae)>-1)return null;if(Ae.toLowerCase()==="separator")return Z.a.createElement("span",{key:se,className:"separator-line"});var ue=N.find(function(Ge){return Ge.key.toLowerCase()===Ae.toLowerCase()});if(typeof oe!="string"&&(ue=o()({},ue,oe)),!ue)return null;if(T.push(Ae),ue.type==="headings")return Z.a.createElement(Cr,Rt()({key:se,headings:_n,current:e,onChange:function($e){return t.applyControl($e,"block-type")}},n));if(ue.type==="text-color")return Z.a.createElement(fr,Rt()({key:se,colors:an,colorPicker:tn,theme:Vt,autoHide:Jt,enableBackgroundColor:Er},n));if(ue.type==="font-size")return Z.a.createElement(br,Rt()({key:se,fontSizes:Un,defaultCaption:ue.title},n));if(ue.type==="line-height")return Z.a.createElement(xn,Rt()({key:se,lineHeights:yr,defaultCaption:ue.title},n));if(ue.type==="letter-spacing")return Z.a.createElement(vr,Rt()({key:se,letterSpacings:Rn,defaultCaption:ue.title},n));if(ue.type==="text-indent")return Z.a.createElement(er,Rt()({key:se,defaultCaption:ue.title},n));if(ue.type==="font-family")return Z.a.createElement(ar,Rt()({key:se,fontFamilies:zn,defaultCaption:ue.title},n));if(ue.type==="emoji")return Z.a.createElement(gr,Rt()({key:se,emojis:On,defaultCaption:ue.text},n));if(ue.type==="link")return Z.a.createElement(Nn,Rt()({key:se,defaultLinkTarget:kn,allowInsertLinkText:Xt},n));if(ue.type==="text-align")return Z.a.createElement(Lt,Rt()({key:se,textAligns:Xn},n));if(ue.type==="media")return!tt.image&&!tt.video&&!tt.audio?null:Z.a.createElement("button",{type:"button",key:se,"data-title":ue.title,disabled:ue.disabled,className:"control-item media button",onClick:t.openBraftFinder},ue.text);if(ue.type==="dropdown")return Z.a.createElement(rn,Rt()({key:se,className:"control-item extend-control-item dropdown ".concat(ue.className||""),caption:ue.text,htmlCaption:ue.html,showArrow:ue.showArrow,title:ue.title,arrowActive:ue.arrowActive,theme:ue.theme,autoHide:ue.autoHide,disabled:ue.disabled,ref:ue.ref},n),ue.component);if(ue.type==="modal")return Z.a.createElement("button",{type:"button",key:se,"data-title":ue.title,disabled:ue.disabled,className:"control-item extend-control-item button ".concat(ue.className||""),dangerouslySetInnerHTML:ue.html?{__html:ue.html}:null,onClick:function($e){ue.modal&&ue.modal.id&&(t.extendedModals[ue.modal.id]?(t.extendedModals[ue.modal.id].active=!0,t.extendedModals[ue.modal.id].update(o()({},ue.modal,{language:It}))):(t.extendedModals[ue.modal.id]=sn(o()({},ue.modal,{language:It})),ue.modal.onCreate&&ue.modal.onCreate(t.extendedModals[ue.modal.id]))),ue.onClick&&ue.onClick($e)}},ue.html?null:ue.text);if(ue.type==="component")return Z.a.createElement("div",{key:se,className:"component-wrapper ".concat(ue.className||"")},ue.component);if(ue.type==="button")return Z.a.createElement("button",{type:"button",key:se,"data-title":ue.title,disabled:ue.disabled,className:"control-item button ".concat(ue.className||""),dangerouslySetInnerHTML:ue.html?{__html:ue.html}:null,onClick:function($e){return ue.onClick&&ue.onClick($e)}},ue.html?null:ue.text);if(ue){var Ie=!1;return ue.command==="undo"?Ie=q.getUndoStack().size===0:ue.command==="redo"&&(Ie=q.getRedoStack().size===0),Z.a.createElement("button",{type:"button",key:se,disabled:Ie,"data-title":ue.title,className:t.getControlItemClassName({type:ue.type,command:ue.command}),onClick:function(){return t.applyControl(ue.command,ue.type,ue.data)}},ue.text)}}))}},{key:"preventDefault",value:function(t){var O=t.target.tagName.toLowerCase();O==="input"||O==="label"||t.preventDefault()}}]),m}(Z.a.Component),xr=function(m){return function(R){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m[R]||function(){return t}}},mr=function(m,R){return m.filter(function(t){return!R.find(function(O){return O.toLowerCase()===t.toLowerCase()})}).filter(function(t,O,G){return G.indexOf(t)===O})},Nt=function(m,R){return[].concat(te()(m.controls),te()(m.extendControls)).find(function(t){return t===R||t.key===R})&&m.excludeControls.indexOf(R)===-1},In=function(m){var R=m.editorId||m.id,t=o()({},V.converts,m.converts,{fontFamilies:m.fontFamilies});return t.styleImportFn=ht(t.styleImportFn,R),t.styleExportFn=ft(t.styleExportFn,R),t.entityImportFn=jt(t.entityImportFn,R),t.entityExportFn=Ht(t.entityExportFn,R),t.blockImportFn=Ot(t.blockImportFn,R),t.blockExportFn=Ft(t.blockExportFn,R),t},Yn=function(w){$()(m,w);function m(R){var t;f()(this,m),t=k()(this,z()(m).call(this,R)),W()(I()(t),"onChange",function(q,de){q instanceof Je.EditorState||(q=Je.EditorState.set(q,{decorator:t.editorDecorators})),q.convertOptions||q.setConvertOptions(In(t.editorProps)),t.setState({editorState:q},function(){t.props.onChange&&t.props.onChange(q),de&&de(q)})}),W()(I()(t),"getDraftInstance",function(){return t.draftInstance}),W()(I()(t),"getFinderInstance",function(){return t.braftFinder}),W()(I()(t),"getValue",function(){return t.state.editorState}),W()(I()(t),"setValue",function(q,de){return t.onChange(q,de)}),W()(I()(t),"forceRender",function(){var q=t.state.editorState.getSelection();t.setValue(Je.EditorState.set(t.state.editorState,{decorator:t.editorDecorators}),function(){t.setValue(Je.EditorState.forceSelection(t.state.editorState,q))})}),W()(I()(t),"onTab",function(q){he("tab",t.state.editorState,I()(t))==="handled"&&q.preventDefault(),t.editorProps.onTab&&t.editorProps.onTab(q)}),W()(I()(t),"onFocus",function(){t.isFocused=!0,t.editorProps.onFocus&&t.editorProps.onFocus(t.state.editorState)}),W()(I()(t),"onBlur",function(){t.isFocused=!1,t.editorProps.onBlur&&t.editorProps.onBlur(t.state.editorState)}),W()(I()(t),"requestFocus",function(){setTimeout(function(){return t.draftInstance.focus()},0)}),W()(I()(t),"handleKeyCommand",function(q,de){return he(q,de,I()(t))}),W()(I()(t),"handleReturn",function(q,de){return be(q,de,I()(t))}),W()(I()(t),"handleBeforeInput",function(q,de){return ke(q,de,I()(t))}),W()(I()(t),"handleDrop",function(q,de){return Ke(q,de,I()(t))}),W()(I()(t),"handleDroppedFiles",function(q,de){return et(q,de,I()(t))}),W()(I()(t),"handlePastedFiles",function(q){return Pe(q,I()(t))}),W()(I()(t),"handleCopyContent",function(q){return at(q,I()(t))}),W()(I()(t),"handlePastedText",function(q,de,ve){return mt(q,de,ve,I()(t))}),W()(I()(t),"handleCompositionStart",function(q){return Oe(q,I()(t))}),W()(I()(t),"undo",function(){t.setValue(Fe.ContentUtils.undo(t.state.editorState))}),W()(I()(t),"redo",function(){t.setValue(Fe.ContentUtils.redo(t.state.editorState))}),W()(I()(t),"removeSelectionInlineStyles",function(){t.setValue(Fe.ContentUtils.removeSelectionInlineStyles(t.state.editorState))}),W()(I()(t),"insertHorizontalLine",function(){t.setValue(Fe.ContentUtils.insertHorizontalLine(t.state.editorState))}),W()(I()(t),"clearEditorContent",function(){t.setValue(Fe.ContentUtils.clear(t.state.editorState),function(q){t.setValue(Fe.ContentUtils.toggleSelectionIndent(q,0))})}),W()(I()(t),"toggleFullscreen",function(q){t.setState({isFullscreen:typeof q!="undefined"?q:!t.state.isFullscreen},function(){t.editorProps.onFullscreen&&t.editorProps.onFullscreen(t.state.isFullscreen)})}),W()(I()(t),"setEditorContainerNode",function(q){t.containerNode=q}),t.editorProps=t.getEditorProps(R),t.editorDecorators=xt(t.editorProps.editorId||t.editorProps.id),t.isFocused=!1,t.isLiving=!1,t.braftFinder=null,t.valueInitialized=!!(t.props.defaultValue||t.props.value);var O=(t.props.defaultValue||t.props.value)instanceof Je.EditorState?t.props.defaultValue||t.props.value:Je.EditorState.createEmpty(t.editorDecorators);O.setConvertOptions(In(t.editorProps));var G=[];if(Fe.ContentUtils.isEditorState(O)){var re=Fe.ColorUtils.detectColorsFromDraftState(O.toRAW(!0));O.setConvertOptions(In(t.editorProps)),G=mr(re,t.editorProps.colors)}return t.state={tempColors:G,editorState:O,isFullscreen:!1,draftProps:{}},t.containerNode=null,t}return U()(m,[{key:"getEditorProps",value:function(t){var O=this;t=t||this.props;var G=t,re=G.value,q=G.defaultValue,de=G.onChange,ve=x()(G,["value","defaultValue","onChange"]),Qe=Et(ve.editorId||ve.id);if(Qe.length===0)return ve;var tt=Object(pt.Map)(ve);return Qe.forEach(function(dt){tt=tt.merge(Object(pt.Map)(dt(tt.toJS(),O)||{}))}),tt.toJS()}},{key:"componentWillMount",value:function(){if(Nt(this.editorProps,"media")){var t=this.editorProps,O=t.language,G=t.media,re=o()({},V.media,G),q=re.uploadFn,de=re.validateFn,ve=re.items;this.braftFinder=new rt.a({items:ve,language:O,uploader:q,validator:de}),this.forceUpdate()}}},{key:"componentDidMount",value:function(){this.isLiving=!0}},{key:"componentDidUpdate",value:function(t,O){O.editorState!==this.state.editorState&&this.state.editorState.setConvertOptions(In(this.editorProps))}},{key:"componentWillReceiveProps",value:function(t){var O=this;this.editorProps=this.getEditorProps(t);var G=t.value,re=this.editorProps,q=re.media,de=re.language,ve=this.getEditorProps();if(!Nt(ve,"media")&&Nt(this.editorProps,"media")&&!this.braftFinder){var Qe=o()({},V.media,q),tt=Qe.uploadFn,dt=Qe.validateFn,It=Qe.items;this.braftFinder=new rt.a({items:It,language:de,uploader:tt,validator:dt}),this.forceUpdate()}q&&q.items&&this.braftFinder&&this.braftFinder.setItems(q.items);var zt;if(!this.valueInitialized&&typeof this.props.defaultValue=="undefined"&&Fe.ContentUtils.isEditorState(t.defaultValue)?zt=t.defaultValue:Fe.ContentUtils.isEditorState(G)&&(zt=G),zt)if(zt&&zt!==this.state.editorState){var an=Fe.ColorUtils.detectColorsFromDraftState(zt.toRAW(!0));zt.setConvertOptions(In(this.editorProps)),this.setState({tempColors:mr([].concat(te()(this.state.tempColors),te()(an)),ve.colors),editorState:zt},function(){O.props.onChange&&O.props.onChange(zt)})}else this.setState({editorState:zt})}},{key:"componentWillUnmount",value:function(){this.isLiving=!1,this.controlBarInstance&&this.controlBarInstance.closeBraftFinder()}},{key:"lockOrUnlockEditor",value:function(t){this.setState({editorLocked:t})}},{key:"render",value:function(){var t=this,O=this.editorProps,G=O.id,re=O.editorId,q=O.controls,de=O.excludeControls,ve=O.extendControls,Qe=O.readOnly,tt=O.disabled,dt=O.media,It=O.language,zt=O.colors,an=O.colorPicker,tn=O.colorPickerTheme,Vt=O.colorPickerAutoHide,Jt=O.hooks,_n=O.fontSizes,Un=O.fontFamilies,zn=O.emojis,On=O.placeholder,Jn=O.fixPlaceholder,yr=O.headings,Rn=O.imageControls,Xn=O.imageResizable,Er=O.imageEqualRatio,Xt=O.lineHeights,kn=O.letterSpacings,e=O.textAligns,n=O.textBackgroundColor,T=O.allowInsertLinkText,N=O.defaultLinkTarget,H=O.extendAtomics,ee=O.className,oe=O.style,se=O.controlBarClassName,Ae=O.controlBarStyle,ue=O.contentClassName,Ie=O.contentStyle,Ge=O.stripPastedStyles,$e=O.componentBelowControlBar,yt=this.state,kt=yt.isFullscreen,Kt=yt.editorState;re=re||G,Jt=xr(Jt),q=q.filter(function(Dr){return de.indexOf(Dr)===-1}),It=(typeof It=="function"?It(ze,"braft-editor"):ze[It])||ze[V.language];var Dn=dt&&dt.externals?o()({},V.media.externals,dt.externals):V.media.externals,Ln=dt&&dt.accepts?o()({},V.media.accepts,dt.accepts):V.media.accepts;dt=o()({},V.media,dt,{externalMedias:Dn,accepts:Ln}),dt.uploadFn||(dt.video=!1,dt.audio=!1);var kr={editor:this,editorState:Kt,braftFinder:this.braftFinder,ref:function(Mr){return t.controlBarInstance=Mr},getContainerNode:function(){return t.containerNode},className:se,style:Ae,colors:[].concat(te()(zt),te()(this.state.tempColors)),colorPicker:an,colorPickerTheme:tn,colorPickerAutoHide:Vt,hooks:Jt,editorId:re,media:dt,controls:q,language:It,extendControls:ve,headings:yr,fontSizes:_n,fontFamilies:Un,emojis:zn,lineHeights:Xt,letterSpacings:kn,textAligns:e,textBackgroundColor:n,allowInsertLinkText:T,defaultLinkTarget:N},Rr=Kt.convertOptions.unitExportFn,Ir={editor:this,editorId:re,hooks:Jt,editorState:Kt,containerNode:this.containerNode,imageControls:Rn,imageResizable:Xn,language:It,extendAtomics:H,imageEqualRatio:Er},Lr=Wn(Ir,this.editorProps.blockRendererFn),Pr=ur(Ir,this.editorProps.blockRenderMap),Nr=Sn(this.editorProps.blockStyleFn),Kr=Cn(Ir,this.editorProps.customStyleMap),Ur=Pn(Ir,{fontFamilies:Un,unitExportFn:Rr,customStyleFn:this.editorProps.customStyleFn}),zr=Se(this.editorProps.keyBindingFn),Or={};(this.state.editorLocked||this.editorProps.disabled||this.editorProps.readOnly||this.editorProps.draftProps.readOnly)&&(Or.readOnly=!0),On&&Jn&&Kt.isEmpty()&&Kt.getCurrentContent().getFirstBlock().getType()!=="unstyled"&&(On="");var Hr=o()({ref:function(Mr){t.draftInstance=Mr},editorState:Kt,handleKeyCommand:this.handleKeyCommand,handleReturn:this.handleReturn,handleBeforeInput:this.handleBeforeInput,handleDrop:this.handleDrop,handleDroppedFiles:this.handleDroppedFiles,handlePastedText:this.handlePastedText,handlePastedFiles:this.handlePastedFiles,onChange:this.onChange,onTab:this.onTab,onFocus:this.onFocus,onBlur:this.onBlur,blockRenderMap:Pr,blockRendererFn:Lr,blockStyleFn:Nr,customStyleMap:Kr,customStyleFn:Ur,keyBindingFn:zr,placeholder:On,stripPastedStyles:Ge},this.editorProps.draftProps,Or);return Z.a.createElement("div",{style:oe,ref:this.setEditorContainerNode,className:"bf-container ".concat(ee).concat(tt?" disabled":"").concat(Qe?" read-only":"").concat(kt?" fullscreen":"")},Z.a.createElement(tr,kr),$e,Z.a.createElement("div",{onCompositionStart:this.handleCompositionStart,className:"bf-content ".concat(ue),onCopy:this.handleCopyContent,style:Ie},Z.a.createElement(Je.Editor,Hr)))}}]),m}(Z.a.Component);W()(Yn,"defaultProps",V);var v=s(14);s.d(p,"EditorState",function(){return Je.EditorState}),s.d(p,"getDecorators",function(){return xt}),Je.EditorState.prototype.setConvertOptions=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.convertOptions=w},Je.EditorState.prototype.toHTML=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=this.convertOptions||{};return Object(v.convertEditorStateToHTML)(this,o()({},m,w))},Je.EditorState.prototype.toRAW=function(w){return w?Object(v.convertEditorStateToRaw)(this):JSON.stringify(Object(v.convertEditorStateToRaw)(this))},Je.EditorState.prototype.toText=function(){return this.getCurrentContent().getPlainText()},Je.EditorState.prototype.isEmpty=function(){return!this.getCurrentContent().hasText()},Yn.createEditorState=Je.EditorState.createFrom=function(w){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};m.unitExportFn=m.unitExportFn||Yn.defaultProps.converts.unitExportFn,m.styleImportFn=ht(m.styleImportFn,m.editorId),m.entityImportFn=jt(m.entityImportFn,m.editorId),m.blockImportFn=Ot(m.blockImportFn,m.editorId);var R=null;if(w instanceof Je.EditorState)R=w;else if(d()(w)==="object"&&w&&w.blocks&&w.entityMap)R=Object(v.convertRawToEditorState)(w,xt(m.editorId));else if(typeof w=="string")try{/^(-)?\d+$/.test(w)?R=Object(v.convertHTMLToEditorState)(w,xt(m.editorId),m,"create"):R=Je.EditorState.createFrom(JSON.parse(w),m)}catch(t){R=Object(v.convertHTMLToEditorState)(w,xt(m.editorId),m,"create")}else typeof w=="number"?R=Object(v.convertHTMLToEditorState)(w.toLocaleString().replace(/,/g,""),xt(m.editorId),m,"create"):R=Je.EditorState.createEmpty(xt(m.editorId));return m.styleExportFn=ft(m.styleExportFn,m.editorId),m.entityExportFn=Ht(m.entityExportFn,m.editorId),m.blockExportFn=Ft(m.blockExportFn,m.editorId),R.setConvertOptions(m),R};var P=p.default=Mt(Yn)},function(l,p){},,function(l,p){},,,function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){},function(l,p){}])})},80306:function(J,D,r){(function(A,C){if(!0)J.exports=C(r(93236));else var g,h})(window,function(S){return function(A){var C={};function g(h){if(C[h])return C[h].exports;var b=C[h]={i:h,l:!1,exports:{}};return A[h].call(b.exports,b,b.exports,g),b.l=!0,b.exports}return g.m=A,g.c=C,g.d=function(h,b,E){g.o(h,b)||Object.defineProperty(h,b,{enumerable:!0,get:E})},g.r=function(h){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},g.t=function(h,b){if(b&1&&(h=g(h)),b&8||b&4&&typeof h=="object"&&h&&h.__esModule)return h;var E=Object.create(null);if(g.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:h}),b&2&&typeof h!="string")for(var c in h)g.d(E,c,function(l){return h[l]}.bind(null,c));return E},g.n=function(h){var b=h&&h.__esModule?function(){return h.default}:function(){return h};return g.d(b,"a",b),b},g.o=function(h,b){return Object.prototype.hasOwnProperty.call(h,b)},g.p="/",g(g.s=20)}([function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var h=C.compressImage=function(E){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1280,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:800;return new Promise(function(p,s){var a=new Image;a.src=E,a.onerror=function(d){s(d)},a.onload=function(){try{var d=document.createElement("canvas"),i=this.width>c||this.height>l?this.width>this.height?c/this.width:l/this.height:1;d.width=this.width*i,d.height=this.height*i;var o=d.getContext("2d");o.drawImage(this,0,0,d.width,d.height),p({url:d.toDataURL("image/png",1),width:d.width,height:d.height})}catch(u){s(u)}}})}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var h=C.UniqueIndex=function(){return isNaN(window.__BRAFT_MM_UNIQUE_INDEX__)?window.__BRAFT_MM_UNIQUE_INDEX__=1:window.__BRAFT_MM_UNIQUE_INDEX__+=1,window.__BRAFT_MM_UNIQUE_INDEX__}},function(A,C){A.exports=S},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"Kald\u0131r",cancel:"\u0130ptal",confirm:"Onayla",insert:"Se\xE7ilenleri ekle",width:"Geni\u015Flik",height:"Y\xFCkseklik",image:"Resim",video:"G\xF6r\xFCnt\xFC",audio:"Ses",embed:"Nesne g\xF6m",caption:"Kitapl\u0131k",dragTip:"T\u0131kla ya da dosya s\xFCr\xFCkle",dropTip:"Y\xFCklemek i\xE7in s\xFCr\xFCkleyin",selectAll:"T\xFCm\xFCn\xFC se\xE7",deselect:"Se\xE7imi kald\u0131r",removeSelected:"Se\xE7ilenleri kald\u0131r",externalInputPlaceHolder:"Kaynak ad\u0131|Kaynak ba\u011Flant\u0131s\u0131",externalInputTip:`Kaynak as\u0131n\u0131 ve ba\u011Flant\u0131s\u0131n\u0131 "|" ile ay\u0131r\u0131n ve Enter' a bas\u0131n.`,addLocalFile:"Yerel' den ekle",addExternalSource:"Harici kaynaktan ekle",unnamedItem:"Adland\u0131r\u0131lmam\u0131\u015F giri\u015F",confirmInsert:"Se\xE7ilenleri ekle"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"\u524A\u9664\u3059\u308B",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D\u3059\u308B",insert:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u633F\u5165",width:"\u5E45",height:"\u8EAB\u9577",image:"\u7D75",video:"\u30D3\u30C7\u30AA",audio:"\u97F3\u58F0",embed:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2",caption:"\u30E1\u30C7\u30A3\u30A2\u30E9\u30A4\u30D6\u30E9\u30EA\u30FC",dragTip:"\u30D5\u30A1\u30A4\u30EB\u3092\u3053\u306E\u4F4D\u7F6E\u307E\u3067\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059",dropTip:"\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3059\u308B\u30DE\u30A6\u30B9\u3092\u653E\u3057\u307E\u3059",selectAll:"\u3059\u3079\u3066\u9078\u629E",deselect:"\u9078\u629E\u3092\u89E3\u9664",removeSelected:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u524A\u9664",externalInputPlaceHolder:"\u30EA\u30BD\u30FC\u30B9\u540D|\u30EA\u30BD\u30FC\u30B9\u30A2\u30C9\u30EC\u30B9",externalInputTip:'\u30EA\u30BD\u30FC\u30B9\u540D\u3068\u30EA\u30BD\u30FC\u30B9\u30A2\u30C9\u30EC\u30B9\u306F "|"\u3067\u533A\u5207\u308A\u307E\u3059\u3002',addLocalFile:"\u30ED\u30FC\u30AB\u30EB\u30EA\u30BD\u30FC\u30B9\u3092\u8FFD\u52A0\u3059\u308B",addExternalSource:"\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30EA\u30BD\u30FC\u30B9\u3092\u8FFD\u52A0\u3059\u308B",unnamedItem:"\u540D\u524D\u306E\u306A\u3044\u30A2\u30A4\u30C6\u30E0",confirmInsert:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u633F\u5165"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"\uC0AD\uC81C",cancel:"\uCDE8\uC18C",confirm:"\uD655\uC778",insert:"\uC120\uD0DD\uD55C\uD56D\uBAA9\uC0BD\uC785",width:"\uB108\uBE44",height:"\uB192\uC774",image:"\uADF8\uB9BC",video:"\uBE44\uB514\uC624",audio:"\uC624\uB514\uC624",embed:"\uC784\uBCA0\uB514\uB4DC\uBBF8\uB514\uC5B4",caption:"\uBBF8\uB514\uC5B4\uB77C\uC774\uBE0C\uB7EC\uB9AC",dragTip:"\uD30C\uC77C\uC744 \uD074\uB9AD\uD558\uAC70\uB098\uC774 \uC9C0\uC810\uC73C\uB85C \uB4DC\uB798\uADF8\uD558\uC2ED\uC2DC\uC624.",dropTip:"\uC5C5\uB85C\uB4DC\uD558\uB824\uBA74\uB9C8\uC6B0\uC2A4\uB97C\uB193\uC73C\uC2ED\uC2DC\uC624.",selectAll:"\uBAA8\uB450 \uC120\uD0DD",deselect:"\uC120\uD0DD \uCDE8\uC18C",removeSelected:"\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0AD\uC81C",externalInputPlaceHolder:"\uB9AC\uC18C\uC2A4 \uC774\uB984 | \uB9AC\uC18C\uC2A4 \uC8FC\uC18C",externalInputTip:'\uC790\uC6D0 \uC774\uB984\uACFC \uC790\uC6D0 \uC8FC\uC18C\uB97C "|"',addLocalFile:"\uB85C\uCEEC \uB9AC\uC18C\uC2A4 \uCD94\uAC00",addExternalSource:"\uB124\uD2B8\uC6CC\uD06C \uB9AC\uC18C\uC2A4 \uCD94\uAC00",unnamedItem:"\uC774\uB984\uC5C6\uB294 \uD56D\uBAA9",confirmInsert:"\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0BD\uC785"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"Usu\u0144",cancel:"Anuluj",confirm:"Potwierd\u017A",insert:"Wstaw wybrane elementy",width:"Szeroko\u015B\u0107",height:"Wysoko\u015B\u0107",image:"Obraz",video:"Wideo",audio:"D\u017Awi\u0119k",embed:"Obiekt",caption:"Biblioteka medi\xF3w",dragTip:"Kliknij lub przenie\u015B tu pliki",dropTip:"Upu\u015B\u0107 aby doda\u0107 plik",selectAll:"Zaznacz wszystko",deselect:"Odznacz",removeSelected:"Usu\u0144 wybrane",externalInputPlaceHolder:"Nazwa \u017Ar\xF3d\u0142a|Adres URL",externalInputTip:'Oddziel nazw\u0119 i adres URL \u017Ar\xF3d\u0142a z pomoc\u0105 "|", Potwierd\u017A Enter-em',addLocalFile:"Dodaj z komputera",addExternalSource:"Dodaj z Internetu",unnamedItem:"Bez nazwy",confirmInsert:"Dodaj wybrane elementy"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"\u5220\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",insert:"\u63D2\u5165\u6240\u9009\u9879\u76EE",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",embed:"\u5D4C\u5165\u5F0F\u5A92\u4F53",caption:"\u5A92\u4F53\u5E93",dragTip:"\u70B9\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u81F3\u6B64",dropTip:"\u653E\u5F00\u9F20\u6807\u4EE5\u4E0A\u4F20",selectAll:"\u9009\u62E9\u5168\u90E8",deselect:"\u53D6\u6D88\u9009\u62E9",removeSelected:"\u5220\u9664\u9009\u4E2D\u9879\u76EE",externalInputPlaceHolder:"\u8D44\u6E90\u540D\u79F0|\u8D44\u6E90\u5730\u5740",externalInputTip:"\u4F7F\u7528\u201C|\u201D\u5206\u9694\u8D44\u6E90\u540D\u79F0\u548C\u8D44\u6E90\u5730\u5740",addLocalFile:"\u6DFB\u52A0\u672C\u5730\u8D44\u6E90",addExternalSource:"\u6DFB\u52A0\u7F51\u7EDC\u8D44\u6E90",unnamedItem:"\u672A\u547D\u540D\u9879\u76EE",confirmInsert:"\u63D2\u5165\u9009\u4E2D\u9879\u76EE"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"\u5220\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",insert:"\u63D2\u5165\u6240\u9009\u9879\u76EE",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",embed:"\u5D4C\u5165\u5F0F\u5A92\u4F53",caption:"\u5A92\u4F53\u5E93",dragTip:"\u70B9\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u81F3\u6B64",dropTip:"\u653E\u5F00\u9F20\u6807\u4EE5\u4E0A\u4F20",selectAll:"\u9009\u62E9\u5168\u90E8",deselect:"\u53D6\u6D88\u9009\u62E9",removeSelected:"\u5220\u9664\u9009\u4E2D\u9879\u76EE",externalInputPlaceHolder:"\u8D44\u6E90\u540D\u79F0|\u8D44\u6E90\u5730\u5740",externalInputTip:"\u4F7F\u7528\u201C|\u201D\u5206\u9694\u8D44\u6E90\u540D\u79F0\u548C\u8D44\u6E90\u5730\u5740",addLocalFile:"\u6DFB\u52A0\u672C\u5730\u8D44\u6E90",addExternalSource:"\u6DFB\u52A0\u7F51\u7EDC\u8D44\u6E90",unnamedItem:"\u672A\u547D\u540D\u9879\u76EE",confirmInsert:"\u63D2\u5165\u9009\u4E2D\u9879\u76EE"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default={remove:"Remove",cancel:"Cancel",confirm:"Confirm",insert:"Insert Selected Items",width:"Width",height:"Height",image:"Image",video:"Video",audio:"Audio",embed:"Embed",caption:"Media Library",dragTip:"Click Or Drag Files Here",dropTip:"Drop To Upload",selectAll:"Select All",deselect:"Deselect",removeSelected:"Remove Selected Items",externalInputPlaceHolder:"Source Name|Source URL",externalInputTip:'Split source name and source URL with "|", confirm by hit Enter.',addLocalFile:"Add from local",addExternalSource:"Add from Internet",unnamedItem:"Unnamed Item",confirmInsert:"Insert selected items"}},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var h=g(9),b=f(h),E=g(8),c=f(E),l=g(7),p=f(l),s=g(6),a=f(s),d=g(5),i=f(d),o=g(4),u=f(o),x=g(3),F=f(x);function f(B){return B&&B.__esModule?B:{default:B}}C.default={en:b.default,zh:c.default,"zh-hant":p.default,pl:a.default,kr:i.default,jpn:u.default,tr:F.default}},function(A,C){A.exports=function(g){var h=typeof window!="undefined"&&window.location;if(!h)throw new Error("fixUrls requires window.location");if(!g||typeof g!="string")return g;var b=h.protocol+"//"+h.host,E=b+h.pathname.replace(/\/[^\/]*$/,"/"),c=g.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(l,p){var s=p.trim().replace(/^"(.*)"$/,function(d,i){return i}).replace(/^'(.*)'$/,function(d,i){return i});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s))return l;var a;return s.indexOf("//")===0?a=s:s.indexOf("/")===0?a=b+s:a=E+s.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"});return c}},function(A,C,g){var h={},b=function(M){var I;return function(){return typeof I=="undefined"&&(I=M.apply(this,arguments)),I}},E=b(function(){return window&&document&&document.all&&!window.atob}),c=function(M){return document.querySelector(M)},l=function(M){var I={};return function(X){if(typeof X=="function")return X();if(typeof I[X]=="undefined"){var $=c.call(this,X);if(window.HTMLIFrameElement&&$ instanceof window.HTMLIFrameElement)try{$=$.contentDocument.head}catch(Q){$=null}I[X]=$}return I[X]}}(),p=null,s=0,a=[],d=g(11);A.exports=function(M,I){if(typeof DEBUG!="undefined"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");I=I||{},I.attrs=typeof I.attrs=="object"?I.attrs:{},!I.singleton&&typeof I.singleton!="boolean"&&(I.singleton=E()),I.insertInto||(I.insertInto="head"),I.insertAt||(I.insertAt="bottom");var X=o(M,I);return i(X,I),function(Q){for(var W=[],le=0;le=0&&a.splice(I,1)}function F(M){var I=document.createElement("style");return M.attrs.type===void 0&&(M.attrs.type="text/css"),B(I,M.attrs),u(M,I),I}function f(M){var I=document.createElement("link");return M.attrs.type===void 0&&(M.attrs.type="text/css"),M.attrs.rel="stylesheet",B(I,M.attrs),u(M,I),I}function B(M,I){Object.keys(I).forEach(function(X){M.setAttribute(X,I[X])})}function U(M,I){var X,$,Q,W;if(I.transform&&M.css)if(W=I.transform(M.css),W)M.css=W;else return function(){};if(I.singleton){var le=s++;X=p||(p=F(I)),$=k.bind(null,X,le,!1),Q=k.bind(null,X,le,!0)}else M.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(X=f(I),$=z.bind(null,X,I),Q=function(){x(X),X.href&&URL.revokeObjectURL(X.href)}):(X=F(I),$=j.bind(null,X),Q=function(){x(X)});return $(M),function(pe){if(pe){if(pe.css===M.css&&pe.media===M.media&&pe.sourceMap===M.sourceMap)return;$(M=pe)}else Q()}}var K=function(){var M=[];return function(I,X){return M[I]=X,M.filter(Boolean).join(` `)}}();function k(M,I,X,$){var Q=X?"":$.css;if(M.styleSheet)M.styleSheet.cssText=K(I,Q);else{var W=document.createTextNode(Q),le=M.childNodes;le[I]&&M.removeChild(le[I]),le.length?M.insertBefore(W,le[I]):M.appendChild(W)}}function j(M,I){var X=I.css,$=I.media;if($&&M.setAttribute("media",$),M.styleSheet)M.styleSheet.cssText=X;else{for(;M.firstChild;)M.removeChild(M.firstChild);M.appendChild(document.createTextNode(X))}}function z(M,I,X){var $=X.css,Q=X.sourceMap,W=I.convertToAbsoluteUrls===void 0&&Q;(I.convertToAbsoluteUrls||W)&&($=d($)),Q&&($+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(Q))))+" */");var le=new Blob([$],{type:"text/css"}),te=M.href;M.href=URL.createObjectURL(le),te&&URL.revokeObjectURL(te)}},function(A,C){A.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBsIAAAC8AAAAYGNtYXBWNv1DAAABHAAAANRnYXNwAAAAEAAAAfAAAAAIZ2x5ZtZLKCQAAAH4AAAPTGhlYWQT25ZrAAARRAAAADZoaGVhB8ID3gAAEXwAAAAkaG10eGoAC+sAABGgAAAAdGxvY2EqcC3wAAASFAAAADxtYXhwACcAewAAElAAAAAgbmFtZZlKCfsAABJwAAABhnBvc3QAAwAAAAAT+AAAACAAAwPsAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADprAPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAuAAAACoAIAAEAAoAAQAg4DTgN+BC4V3iQ+gN6Mno/ukD6QjpD+kT6RjpHOkm6YDprP/9//8AAAAAACDgNOA34ELhXeJD6A3oyej+6QHpB+kO6RHpFukc6SbpgOms//3//wAB/+Mf0B/OH8Qeqh3FF/wXQRcNFwsXCBcDFwIXABb9FvQWmxZwAAMAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIBAACBAwAC1QADAAcAAAEzESMhETMRAlaqqv6qqgLV/awCVP2sAAABAVYAgQMqAtUAAgAACQIBVgHU/iwC1f7W/tYAAQCqACsDVgOBAC4AAAEyFx4BFxYVFAcOAQcGIyInLgEnJjUzFBceARcWMzI3PgE3NjU0Jy4BJyYjFSc3AgBGPz5dGxsbG10+PkdGPz5dGxtWFBRFLy81NS8vRRQUFBRFLy811tYC1RsbXD4+Rkc+Pl0bGxsbXT4+RzYuL0UUFBQURS8uNjUvLkYUFKzW1gAAAwBWAAEDqgNVABsANwA7AAAlMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NgMhFSECAEY/Pl0bGxsbXT4+R0Y/Pl0bGxsbXT4+R1hOTnMiISEic05NWVhOTnMiISEic05NfQGs/lRVGxtdPj5HRj4/XRsbGxtdPz5GRz4+XRsbAwAiIXRNTlhZTU50ISEhIXROTVlYTk10ISL+gFQAAAABAKoAAQOAA1UAHwAAATMRIREUBisBIiY1ESE1IxUUBiMhIiY9ATQ2MyEyFhUDAID+qhgSVhIYAaoqGBL+ABIaGhICABIYAwH+qv6AEhgYEgHWqioSGhoSqhIYGBIAAAABAIAAAwOAA1UAMwAAJTIWFRQGIyImNTwBNyUOASMiJjU0NjMyFhclLgE1NDYzMhYVFAYjIiYnBR4BFRQGBwU+AQMAM0lJMzNJAv7SEiwaNExLNRktEgEsAQNLNTRMSzUZLRL+1AEDAgIBMBAs/UkzM0tLMwcPBrAREUs1NEwSEK4HDwg0TEw0NUsTEbAIDwcIDwewDxEAAAMAVgArA6oDVQACAAYAGgAALQI3FTM1FyERFAYjISImNREhNTQ2OwEyFhUBgAFA/sAqrFQBADAk/VQkMAEAMCSsJDCr1qrWVlZW/dYkMjIkAipWJDAwJAAEAIAAgQOAAtUAAwAHAAsADwAAEyEVIRU1IRUBNSEVJTUhFYADAP0AAwD9AAMA/QADAALVVKxWVv6sVFSqVlYABABVACIDqwN3AAQAIQA9AEIAACUzESMREyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAzM1IxUB1VZWK1hOTnQhIiIhdE5OWFhOTnQhIiIhdE5OWEc+Pl0aGxsaXT4+R0c+Pl0aGxsaXT4+clZW9wEA/wACgCEic05OWFlNTnQhIiIhdE5NWVhOTnMiIf0AGxtdPj5HRj8+XBsbGxtcPj9GRz4+XRsbAdZVVQAABABVACIDqwN3AAQAIQA9AFIAACUzNSMVEyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAyIGFTM0NjMyFhUUBhUzNDY1NCYjAdVWVitYTk50ISIiIXROTlhYTk50ISIiIXROTlhHPj5dGhsbGl0+PkdHPj5dGhsbGl0+PkdHZFYyIyMygFaAZEfNVVUCqiEic05OWFlNTnQhIiIhdE5NWVhOTnMiIf0AGxtdPj5HRj8+XBsbGxtcPj9GRz4+XRsbAlZkRyMyMiNALWhIPVBHZAAAAgBVAM0DqwLNAAUACwAAASc3JwkBJTcnNwkBAZHExDz/AAEAARrExDwBAP8AAQnExDz/AP8APMTEPP8A/wAAAAMAVQAiA6sDdwAcACsAOgAAASIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMBNDc+ATc2MzIWFwEuATUBIiYnAR4BFRQHDgEHBiMCAFhOTXQiIiIidE1OWFhOTXQiIiIidE1OWP6rGxtcPj9GOmot/iIjJQFVOmotAd4jJRsbXD4/RgN3ISJ0Tk1YWE5OdCEiIiF0Tk5YWE1OdCIh/lZGPj5dGxslI/4iLWo6/qomIwHeLWs5Rz4+XRsbAAAAAAMAgADNA4ACzQADAAcACwAANyE1ITUhNSE1FSE1gAMA/QADAP0AAwDNVYBV1lZWAAEAZAAlA1wDXABEAAABERQHBgcGBwYjIicmJyYnJjU0NzY3Njc2MzIXEQURFAcGBwYHBiMiJyYnJicmNTQ3Njc2NzYzMhcRNDc2NyU2MzIXFhUDXBERGhkaGRYXGRoZGhEREREaGRoZFzMr/oURERoZGhkXFhkaGRoRERERGhkaGRY0KwoJDwGbBggUDg4DLP3WGBQTCgsFBQUFCwoTFBgZExQKCwUFEwEKdv6iGRMTCwsFBQUFCwsTExkZExMLCgYFEwHeDw0MBX8CDg4UAAAEAHUAQgOJA1YALwA8AGIAeAAAAS4BBw4BJy4BJy4BBwYiJyYGBw4BJyYGBxQVHAEVFBUeATM2MzoBMzIzMjY3PAE1BSImNTQ2MzIWFRQGJyUqASM8ATU6ATMUFhUUFxwBFQYHFAYHDgEnLgE3PgE3OgEzPAE1BT4BNzoBMxQWBw4BJy4BNz4BNzoBMwKBARkZChUJCxcEFEMvBw8HHikMDCgdFyILCxgWNDM0ZzQzNBsaAf77L0FBMDBAQDEBtx8/IDRoNgEBAQENCxVFICIlBgc3JAcNCf7OAQICEyQTAwUFSiMmOAIBOiYHEAkCzhcaAQEBAwIJCC0fCAEBBhgbGxYGBBMVKCgpUCgoKQ8VARcaSpRK7T8uMEA/LzBAARchPyAKEgkzMjNmMjMzFCwRIBAOD0IjJjQDN2053QwUCi5dLSUsBgVEJig+BAAAAAAEAAAAAAQAA0AAGwAzAE8AUwAAARQXHgEXFjMyNz4BNzY1NCcuAScmIyIHDgEHBgEjLgEjISIGByMiBhURFBYzITI2NRE0JgEiJy4BJyY1NDc+ATc2MzIXHgEXFhUUBw4BBwYBIzUzATAQETgmJisrJiY4ERAQETgmJisrJiY4ERACkOAMJDD/ADAkDOAaJiYaA4AaJib+Jjs0M00XFhYXTTM0Ozs0M00XFhYXTTM0AYWAgAFgKyYmOBEQEBE4JiYrKyYmOBEQEBE4JiYBNTBQUDAmGv3AGiYmGgJAGib9hBYXTTM0Ozs0M00XFhYXTTM0Ozs0M00XFgG8QAABAJEAogOAAt4ABgAAAScHFwEnAQGAszzvAgA8/jwBGrM87wIAPP48AAAAAAEA4gCAAx4CyQAmAAABNzY0JyYiDwEnJiIHBhQfAQcGFBceATMyNj8BFx4BMzI2NzY0LwECPOINDQwkDOLiDCQMDQ3i4g0NBhAICBAG4uIGEAgIEAYNDeIBq+IMIw0MDOLiDAwNIwzi4g0jDAcGBgfh4QcGBgcMIw3iAAACAIAAYwNqA00AIgAvAAABIyc+ATU0Jy4BJyYjIgcOAQcGFRQXHgEXFjMyNjcXFRc3JyEiJjU0NjMyFhUUBiMClSEMHyQWFkszMjo5MzJLFhYWFksyMzk0XCUL1j/V/wBPcXFPUHBwUAF3DCRdMzoyM0sWFhYWSzMyOjkyM0sWFiQfDCLUP9VxT1BwcFBPcQACAGQAIgOcA3cATQBZAAABPgE1NCYnNz4BLwEuAQ8BLgEvAS4BKwEiBg8BDgEHJyYGDwEGFh8BDgEVFBYXBw4BHwEeAT8BHgEfAR4BOwEyNj8BPgE3FxY2PwE2JicFIiY1NDYzMhYVFAYDPQECAgFaBgMEVQQPB2oRJBQQAQwIqggMARAUJBFqBw8EVQQDBloBAgIBWgYDBFUEDwdqESQUEAEMCKoIDAEQFCQRagcPBFUEAwb+aT5XVz4+V1cBowoVCwsUC0YFDweUBwUDKgwVCHIHCgoHcggVDCoDBQeUBw8FRgsVCgsVCkYFEAeTBwUCKw0VCHEICgoIcQgVDSsDBgeTBxAFJlg+PldXPj5YAAEA1QCiAysC9wALAAABIREjESE1IREzESEDK/8AVv8AAQBWAQABov8AAQBVAQD/AAAAAAAJAAAAQAQAA0AAAwAHAAsADwATABcAGwAfACIAABMRIREBIzUzNSM1MzUjNTMBIREhEyM1MzUjNTM1IzUzBRElAAQA/MCAgICAgIACQP4AAgDAgICAgICA/cABAANA/QADAP1AgICAgID9gAKA/YCAgICAgID+gMAAAAAABgBA/8ADwAPAABkAIQA5AEcAVQBjAAABLgEnLgEnLgEjISIGFREUFjMhMjY1ETQmJyceARcjNR4BExQGIyEiJjURNDYzMDM6ATMyMRUUFjsBAyEiJjU0NjMhMhYVFAYnISImNTQ2MyEyFhUUBichIiY1NDYzITIWFRQGA5YRLRkaMxcnKQv+ECEvLyEC4CEvDhyFFyUNmhEphgkH/SAHCQkHTU66TU4TDeCg/kANExMNAcANExMN/kANExMNAcANExMN/kANExMNAcANExMC2xczGhktERwOLyH8oCEvLyECcAspJzYXKRGaDSX86AcJCQcDYAcJ4A0T/gATDQ0TEw0NE4ATDQ0TEw0NE4ATDQ0TEw0NEwAAAAcAAP/ABAADRgALABcAIwAvADsARwBTAAAlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYBoDgoKDg4KCg4/mA4KCg4OCgoOANAOCgoODgoKDj9OjgoKDg4KCg4Akw4KCg4OCgoOP20OCgoODgoKDgCTDgoKDg4KCg4ICg4OCgoODgByCg4OCgoODgoKDg4KCg4OAFOKDg4KCg4OP3cKDg4KCg4OCgoODgoKDg4AnQoODgoKDg4AAUAfAAAA4QDVQAiAC0AOABGAFQAAAEjNTQmKwEiBh0BIyIGFRQWOwERFBYzITI2NREzMjY1NCYjJTQ2OwEyFh0BIzUBFAYjISImNREhEQEiBh0BFBYzMjY9ATQmMyIGHQEUFjMyNj0BNCYDXZtEMJwwRJsQFxcQJ0QwAYQwRCcQFxcQ/i8WEJwQFugBXRcQ/nwQFwHS/skQFhYQEBcXjBAXFxAQFhYCuicwREQwJxcQEBb+BzBERDAB+RYQEBcnEBcXECcn/ZMQFhYQAfn+BwGEFxDoEBcXEOgQFxcQ6BAXFxDoEBcAAAABAAAAAQAANAmLwV8PPPUACwQAAAAAANheKPcAAAAA2F4o9wAA/8AEAAPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAdBAAAAAAAAAAAAAAAAgAAAAQAAQAEAAFWBAAAqgQAAFYEAACqBAAAgAQAAFYEAACABAAAVQQAAFUEAABVBAAAVQQAAIAEAABkBAAAdQQAAAAEAACRBAAA4gQAAIAEAABkBAAA1QQAAAAEAABABAAAAAQAAHwAAAAAAAoAFAAeADIAQACIAOYBFgFiAY4BrgIUAowCrAMMAyQDjAQ0BLIEyAUGBU4F1gXwBi4GugcyB6YAAQAAAB0AeQAJAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(A,C){A.exports=function(b){var E=[];return E.toString=function(){return this.map(function(l){var p=g(l,b);return l[2]?"@media "+l[2]+"{"+p+"}":p}).join("")},E.i=function(c,l){typeof c=="string"&&(c=[[null,c,""]]);for(var p={},s=0;s1?k[0]:f.props.language.unnamedItem;k=k.length>1?k[1]:k[0];var M=j==="IMAGE"?k:null;f.controller.addItems([{thumbnail:M,url:k,name:z,type:j,id:new Date().getTime()+"_"+(0,l.UniqueIndex)(),uploading:!1,uploadProgress:1,selected:!0}]),f.setState({showExternalForm:!1,external:{url:"",type:"IMAGE"}})}},f.toggleExternalForm=function(){f.setState({showExternalForm:!f.state.showExternalForm})},f.cancelInsert=function(){f.props.onCancel&&f.props.onCancel()},f.confirmInsert=function(){var U=f.controller.getSelectedItems();if(f.props.onBeforeInsert){var K=f.props.onBeforeInsert(U);K&&K instanceof Array?(f.controller.deselectAllItems(),f.props.onInsert&&f.props.onInsert(K)):K!==!1&&(f.controller.deselectAllItems(),f.props.onInsert&&f.props.onInsert(U))}else f.controller.deselectAllItems(),f.props.onInsert&&f.props.onInsert(U)},f.dragCounter=0,f.controller=f.props.controller;var B=f.controller.getItems();return f.state={draging:!1,error:!1,confirmable:B.find(function(U){var K=U.selected;return K}),external:{url:"",type:"IMAGE"},fileAccept:"",showExternalForm:!1,allowExternal:!1,items:B},f.changeListenerId=f.controller.onChange(function(U){f.setState({items:U,confirmable:U.find(function(K){var k=K.selected;return k})}),f.props.onChange&&f.props.onChange(U)}),f}return b(x,[{key:"mapPropsToState",value:function(f){var B=f.accepts,U=f.externals;B=h({},i,B);var K=B?[B.image,B.video,B.audio].filter(function(j){return j}).join(","):[i.image,i.video,i.audio].join(","),k={url:"",type:U.image?"IMAGE":U.audio?"AUDIO":U.video?"VIDEO":U.embed?"EMBED":""};return{fileAccept:K,external:k,allowExternal:U&&(U.image||U.audio||U.video||U.embed)}}},{key:"componentDidMount",value:function(){this.setState(this.mapPropsToState(this.props))}},{key:"componentWillReceiveProps",value:function(f){this.setState(this.mapPropsToState(f))}},{key:"componentWillUnmount",value:function(){this.controller.offChange(this.changeListenerId)}},{key:"render",value:function(){var f=this.props,B=f.language,U=f.externals,K=this.state,k=K.items,j=K.draging,z=K.confirmable,M=K.fileAccept,I=K.external,X=K.showExternalForm,$=K.allowExternal;return c.default.createElement("div",{className:"braft-finder"},c.default.createElement("div",{onDragEnter:this.handleDragEnter,onDragOver:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDragDrop,className:"bf-uploader"},c.default.createElement("div",{className:"bf-drag-uploader "+(j||!k.length?"active ":" ")+(j?"draging":"")},c.default.createElement("span",{className:"bf-drag-tip"},c.default.createElement("input",{accept:M,onChange:this.reslovePickedFiles,multiple:!0,type:"file"}),j?B.dropTip:B.dragTip)),k.length?c.default.createElement("div",{className:"bf-list-wrap"},c.default.createElement("div",{className:"bf-list-tools"},c.default.createElement("span",{onClick:this.selectAllItems,className:"bf-select-all"},c.default.createElement("i",{className:"braft-icon-done"})," ",B.selectAll),c.default.createElement("span",{onClick:this.deselectAllItems,disabled:!z,className:"bf-deselect-all"},c.default.createElement("i",{className:"braft-icon-close"})," ",B.deselect),c.default.createElement("span",{onClick:this.removeSelectedItems,disabled:!z,className:"bf-remove-selected"},c.default.createElement("i",{className:"braft-icon-bin"})," ",B.removeSelected)),this.buildItemList()):null,X&&$?c.default.createElement("div",{className:"bf-add-external"},c.default.createElement("div",{className:"bf-external-form"},c.default.createElement("div",{className:"bf-external-input"},c.default.createElement("div",null,c.default.createElement("input",{onKeyDown:this.confirmAddExternal,value:I.url,onChange:this.inputExternal,placeholder:B.externalInputPlaceHolder})),c.default.createElement("button",{type:"button",onClick:this.confirmAddExternal,disabled:!I.url.trim().length},B.confirm)),c.default.createElement("div",{"data-type":I.type,className:"bf-switch-external-type"},U.image?c.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"IMAGE"},B.image):null,U.audio?c.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"AUDIO"},B.audio):null,U.video?c.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"VIDEO"},B.video):null,U.embed?c.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"EMBED"},B.embed):null),c.default.createElement("span",{className:"bf-external-tip"},B.externalInputTip))):null),c.default.createElement("footer",{className:"bf-manager-footer"},c.default.createElement("div",{className:"pull-left"},$?c.default.createElement("span",{onClick:this.toggleExternalForm,className:"bf-toggle-external-form"},X?c.default.createElement("span",{className:"bf-bottom-text"},c.default.createElement("i",{className:"braft-icon-add"})," ",B.addLocalFile):c.default.createElement("span",{className:"bf-bottom-text"},c.default.createElement("i",{className:"braft-icon-add"})," ",B.addExternalSource)):null),c.default.createElement("div",{className:"pull-right"},c.default.createElement("button",{onClick:this.confirmInsert,className:"button button-insert",disabled:!z},B.insert),c.default.createElement("button",{onClick:this.cancelInsert,className:"button button-cancel"},B.cancel))))}},{key:"buildItemList",value:function(){var f=this;return c.default.createElement("ul",{className:"bf-list"},c.default.createElement("li",{className:"bf-add-item"},c.default.createElement("i",{className:"braft-icon-add"}),c.default.createElement("input",{accept:this.state.fileAccept,onChange:this.reslovePickedFiles,multiple:!0,type:"file"})),this.state.items.map(function(B,U){var K=null,k=B.uploading&&!f.props.hideProgress?c.default.createElement("div",{className:"bf-item-uploading"},c.default.createElement("div",{className:"bf-item-uploading-bar",style:{width:B.uploadProgress/1+"%"}})):"";switch(B.type){case"IMAGE":K=c.default.createElement("div",{className:"bf-image"},k,c.default.createElement("img",{src:B.thumbnail||B.url}));break;case"VIDEO":K=c.default.createElement("div",{className:"bf-icon bf-video",title:B.url},k,c.default.createElement("i",{className:"braft-icon-film"}),c.default.createElement("span",null,B.name||B.url));break;case"AUDIO":K=c.default.createElement("div",{className:"bf-icon bf-audio",title:B.url},k,c.default.createElement("i",{className:"braft-icon-music"}),c.default.createElement("span",null,B.name||B.url));break;case"EMBED":K=c.default.createElement("div",{className:"bf-icon bf-embed",title:B.url},k,c.default.createElement("i",{className:"braft-icon-code"}),c.default.createElement("span",null,B.name||f.props.language.embed));break;default:K=c.default.createElement("a",{className:"bf-icon bf-file",title:B.url,href:B.url},k,c.default.createElement("i",{className:"braft-icon-file-text"}),c.default.createElement("span",null,B.name||B.url));break}var j=["bf-item"];return B.selected&&j.push("active"),B.uploading&&j.push("uploading"),B.error&&j.push("error"),c.default.createElement("li",{key:U,title:B.name,"data-id":B.id,className:j.join(" "),onClick:f.toggleSelectItem},K,c.default.createElement("span",{"data-id":B.id,onClick:f.removeItem,className:"bf-item-remove braft-icon-close"}),c.default.createElement("span",{className:"bf-item-title"},B.name))}))}}]),x}(c.default.Component);o.defaultProps={accepts:i,externals:{image:!0,video:!0,audio:!0,embed:!0}},C.default=o},function(A,C,g){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var h=Object.assign||function(d){for(var i=1;i0&&arguments[0]!==void 0?arguments[0]:{};l(this,d),a.call(this),this.items=i.items||[],this.uploadFn=i.uploader,this.validateFn=i.validator||p,this.changeListeners=[]},a=function(){var i=this;this.setProps=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.items=o.items||i.items||[],i.uploadFn=o.uploader,i.validateFn=o.validator||p},this.getMediaItem=function(o){return i.items.find(function(u){return u.id===o})},this.getSelectedItems=function(){return i.items.filter(function(o){return o.selected})},this.getItems=function(){return i.items},this.setItems=function(o){i.items=o.map(function(u){return h({},u,{id:u.id.toString()})})||[],i.applyChange(),i.uploadItems()},this.addMediaItem=function(o){i.addItems([o])},this.addItems=function(o){i.items=[].concat(c(i.items),c(o.map(function(u){return h({},u,{id:u.id.toString()})}))),i.applyChange(),i.uploadItems()},this.selectMediaItem=function(o){var u=i.getMediaItem(o);if(u&&(u.uploading||u.error))return!1;i.setMediaItemState(o,{selected:!0})},this.selectAllItems=function(){i.items=i.items.filter(function(o){return!o.error&&!o.uploading}).map(function(o){return h({},o,{selected:!0})}),i.applyChange()},this.deselectMediaItem=function(o){i.setMediaItemState(o,{selected:!1})},this.deselectAllItems=function(){i.items=i.items.map(function(o){return h({},o,{selected:!1})}),i.applyChange()},this.removeMediaItem=function(o){i.items=i.items.filter(function(u){return u.id!==o}),i.applyChange()},this.removeItems=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.items=i.items.filter(function(u){return!o.includes(u.id)}),i.applyChange()},this.removeSelectedItems=function(){i.items=i.items.filter(function(o){return!o.selected}),i.applyChange()},this.removeErrorItems=function(){i.items=i.items.filter(function(o){return!o.error}),i.applyChange()},this.removeAllItems=function(){i.items=[],i.applyChange()},this.setMediaItemState=function(o,u){i.items=i.items.map(function(x){return x.id===o?h({},x,u):x}),i.applyChange()},this.reuploadErrorItems=function(){i.uploadItems(!0)},this.uploadItems=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;i.items.forEach(function(u,x){if(u.uploading||u.url||!o&&u.error)return!1;if(u.type==="IMAGE")i.createThumbnail(u),i.uploadFn=i.uploadFn||i.createInlineImage;else if(!i.uploadFn)return i.setMediaItemState(u.id,{error:1}),!1;i.setMediaItemState(u.id,{uploading:!0,uploadProgress:0,error:0}),i.uploadFn({id:u.id,file:u.file,success:function(f){i.handleUploadSuccess(u.id,f)},progress:function(f){i.setMediaItemState(u.id,{uploading:!0,uploadProgress:f})},error:function(f){i.setMediaItemState(u.id,{uploading:!1,error:2})}})})},this.createThumbnail=function(o){var u=o.id,x=o.file;(0,E.compressImage)(URL.createObjectURL(x),226,226).then(function(F){i.setMediaItemState(u,{thumbnail:F.url})})},this.createInlineImage=function(o){(0,E.compressImage)(URL.createObjectURL(o.file),1280,800).then(function(u){o.success({url:u.url})}).catch(function(u){o.error(u)})},this.handleUploadSuccess=function(o,u){i.setMediaItemState(o,h({},u,{file:null,uploadProgress:1,uploading:!1,selected:!1}));var x=i.getMediaItem(u.id||o);x.onReady&&x.onReady(x)},this.applyChange=function(){i.changeListeners.forEach(function(o){var u=o.callback;return u(i.items)})},this.uploadImage=function(o,u){var x=new Date().getTime()+"_"+(0,b.UniqueIndex)();i.addMediaItem({type:"IMAGE",id:x,file:o,name:x,size:o.size,uploadProgress:0,uploading:!1,selected:!1,error:0,onReady:u})},this.uploadImageRecursively=function(o,u){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[x]&&o[x].type.indexOf("image")>-1?i.uploadImage(o[x],function(F){u&&u(F),x0&&arguments[0]!==void 0?arguments[0]:{},M=h({},j.superProps,z),I=(typeof M.language=="function"?M.language(d.default,"braft-finder"):d.default[M.language])||d.default.zh;return E.default.createElement(s.default,h({},M,{language:I,controller:j}))}};C.default=U,C.ImageUtils=o}])})},36594:function(J,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var r=0,S=D.UniqueIndex=function(){return r+=1}},63039:function(J,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},S=function(E){if(E=E.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(E))return E;if(A[E])return A[E];if(E.indexOf("rgb")===0){var c=E.split(","),l=c.length<3?null:"#"+[c[0],c[1],c[2]].map(function(p){var s=parseInt(p.replace(/\D/g,""),10).toString(16);return s.length===1?"0"+s:s}).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(l)?l:null}else return null},A=D.namedColors=r,C=D.getHexColor=S,g=D.detectColorsFromHTMLString=function(E){return typeof E!="string"?[]:(E.match(/color:[^;]{3,24};/g)||[]).map(C).filter(function(c){return c})},h=D.detectColorsFromDraftState=function(E){var c=[];return!E||!E.blocks||!E.blocks.length?c:(E.blocks.forEach(function(l){l&&l.inlineStyleRanges&&l.inlineStyleRanges.length&&l.inlineStyleRanges.forEach(function(p){p.style&&p.style.indexOf("COLOR-")>=0&&c.push("#"+p.style.split("COLOR-")[1])})}),c.filter(function(l){return l}))}},17274:function(J,D,r){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.redo=D.undo=D.handleKeyCommand=D.clear=D.setMediaPosition=D.removeMedia=D.setMediaData=D.insertMedias=D.insertHorizontalLine=D.insertAtomicBlock=D.insertHTML=D.insertText=D.toggleSelectionLetterSpacing=D.toggleSelectionFontFamily=D.toggleSelectionLineHeight=D.toggleSelectionFontSize=D.toggleSelectionBackgroundColor=D.toggleSelectionColor=D.decreaseSelectionIndent=D.increaseSelectionIndent=D.toggleSelectionIndent=D.toggleSelectionAlignment=D.removeSelectionInlineStyles=D.toggleSelectionInlineStyle=D.selectionHasInlineStyle=D.getSelectionInlineStyle=D.toggleSelectionLink=D.toggleSelectionEntity=D.getSelectionEntityData=D.getSelectionEntityType=D.toggleSelectionBlockType=D.getSelectionText=D.getSelectionBlockType=D.getSelectionBlockData=D.setSelectionBlockData=D.getSelectedBlocks=D.updateEachCharacterOfSelection=D.getSelectionBlock=D.removeBlock=D.selectNextBlock=D.selectBlock=D.selectionContainsStrictBlock=D.selectionContainsBlockType=D.isSelectionCollapsed=D.createEditorState=D.createEmptyEditorState=D.isEditorState=D.registerStrictBlockType=void 0;var S=r(87937),A=r(64162),C=r(91796),g=r(52724),h=b(g);function b(Se){return Se&&Se.__esModule?Se:{default:Se}}var E=["atomic"],c=D.registerStrictBlockType=function(V){E.indexOf(V)===-1&&E.push(V)},l=D.isEditorState=function(V){return V instanceof S.EditorState},p=D.createEmptyEditorState=function(V){return S.EditorState.createEmpty(V)},s=D.createEditorState=function(V,Y){return S.EditorState.createWithContent(V,Y)},a=D.isSelectionCollapsed=function(V){return V.getSelection().isCollapsed()},d=D.selectionContainsBlockType=function(V,Y){return B(V).find(function(ne){return ne.getType()===Y})},i=D.selectionContainsStrictBlock=function(V){return B(V).find(function(Y){return~E.indexOf(Y.getType())})},o=D.selectBlock=function(V,Y){var ne=Y.getKey();return S.EditorState.forceSelection(V,new S.SelectionState({anchorKey:ne,anchorOffset:0,focusKey:ne,focusOffset:Y.getLength()}))},u=D.selectNextBlock=function(V,Y){var ne=V.getCurrentContent().getBlockAfter(Y.getKey());return ne?o(V,ne):V},x=D.removeBlock=function(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=void 0,he=void 0,be=Y.getKey();return fe=S.Modifier.removeRange(V.getCurrentContent(),new S.SelectionState({anchorKey:be,anchorOffset:0,focusKey:be,focusOffset:Y.getLength()}),"backward"),fe=S.Modifier.setBlockType(fe,fe.getSelectionAfter(),"unstyled"),he=S.EditorState.push(V,fe,"remove-range"),S.EditorState.forceSelection(he,ne||fe.getSelectionAfter())},F=D.getSelectionBlock=function(V){return V.getCurrentContent().getBlockForKey(V.getSelection().getAnchorKey())},f=D.updateEachCharacterOfSelection=function(V,Y){var ne=V.getSelection(),fe=V.getCurrentContent(),he=fe.getBlockMap(),be=B(V);if(be.length===0)return V;var ke=ne.getStartKey(),Oe=ne.getStartOffset(),Ke=ne.getEndKey(),Ve=ne.getEndOffset(),et=he.map(function(Pe){if(be.indexOf(Pe)===-1)return Pe;var at=Pe.getKey(),mt=Pe.getCharacterList(),Tt=null;return at===ke&&at===Ke?Tt=mt.map(function(St,At){return At>=Oe&&At=Oe?Y(St):St}):at===Ke?Tt=mt.map(function(St,At){return At2&&arguments[2]!==void 0?arguments[2]:"",fe=V;return Y=ne+Y.toUpperCase(),ne&&(fe=f(fe,function(he){return he.toJS().style.reduce(function(be,ke){return ke.indexOf(ne)===0&&Y!==ke?S.CharacterMetadata.removeStyle(be,ke):be},he)})),S.RichUtils.toggleInlineStyle(fe,Y)},te=D.removeSelectionInlineStyles=function(V){return f(V,function(Y){return Y.merge({style:h.default.OrderedSet([])})})},pe=D.toggleSelectionAlignment=function(V,Y){return U(V,{textAlign:K(V,"textAlign")!==Y?Y:void 0})},Le=D.toggleSelectionIndent=function(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6;return Y<0||Y>ne||isNaN(Y)?V:U(V,{textIndent:Y||void 0})},De=D.increaseSelectionIndent=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,ne=K(V,"textIndent")||0;return Le(V,ne+1,Y)},Z=D.decreaseSelectionIndent=function(V,Y){var ne=K(V,"textIndent")||0;return Le(V,ne-1,Y)},Re=D.toggleSelectionColor=function(V,Y){return le(V,Y.replace("#",""),"COLOR-")},Ye=D.toggleSelectionBackgroundColor=function(V,Y){return le(V,Y.replace("#",""),"BGCOLOR-")},_e=D.toggleSelectionFontSize=function(V,Y){return le(V,Y,"FONTSIZE-")},Ze=D.toggleSelectionLineHeight=function(V,Y){return le(V,Y,"LINEHEIGHT-")},qe=D.toggleSelectionFontFamily=function(V,Y){return le(V,Y,"FONTFAMILY-")},me=D.toggleSelectionLetterSpacing=function(V,Y){return le(V,Y,"LETTERSPACING-")},ye=D.insertText=function(V,Y,ne,fe){var he=V.getSelection(),be=k(V);if(be==="atomic")return V;var ke=void 0,Oe=V.getCurrentContent();return fe&&fe.type&&(Oe=Oe.createEntity(fe.type,fe.mutability||"MUTABLE",fe.data||entityData),ke=Oe.getLastCreatedEntityKey()),he.isCollapsed()?S.EditorState.push(V,S.Modifier.insertText(Oe,he,Y,ne,ke),"insert-text"):S.EditorState.push(V,S.Modifier.replaceText(Oe,he,Y,ne,ke),"replace-text")},Te=D.insertHTML=function(V,Y,ne){if(!Y)return V;var fe=V.getSelection(),he=V.getCurrentContent(),be=V.convertOptions||{};try{var ke=(0,S.convertFromRaw)((0,C.convertHTMLToRaw)(Y,be,ne)),Oe=ke.blockMap;return S.EditorState.push(V,S.Modifier.replaceWithFragment(he,fe,Oe),"insert-fragment")}catch(Ke){return console.warn(Ke),V}},we=D.insertAtomicBlock=function Se(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(i(V))return Se(u(V,F(V)),Y,ne,fe);var he=V.getSelection(),be=V.getCurrentContent();if(!he.isCollapsed()||k(V)==="atomic")return V;var ke=be.createEntity(Y,ne?"IMMUTABLE":"MUTABLE",fe),Oe=ke.getLastCreatedEntityKey(),Ke=S.AtomicBlockUtils.insertAtomicBlock(V,Oe," ");return Ke},Me=D.insertHorizontalLine=function(V){return we(V,"HR")},Ne=D.insertMedias=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Y.length?Y.reduce(function(ne,fe){var he=fe.url,be=fe.link,ke=fe.link_target,Oe=fe.name,Ke=fe.type,Ve=fe.width,et=fe.height,Pe=fe.meta;return we(ne,Ke,!0,{url:he,link:be,link_target:ke,name:Oe,type:Ke,width:Ve,height:et,meta:Pe})},V):V},ze=D.setMediaData=function(V,Y,ne){return S.EditorState.push(V,V.getCurrentContent().mergeEntityData(Y,ne),"change-block-data")},We=D.removeMedia=function(V,Y){return x(V,Y)},rt=D.setMediaPosition=function(V,Y,ne){var fe={},he=ne.float,be=ne.alignment;return typeof he!="undefined"&&(fe.float=Y.getData().get("float")===he?null:he),typeof be!="undefined"&&(fe.alignment=Y.getData().get("alignment")===be?null:be),U(o(V,Y),fe)},Fe=D.clear=function(V){var Y=V.getCurrentContent(),ne=Y.getFirstBlock(),fe=Y.getLastBlock(),he=new S.SelectionState({anchorKey:ne.getKey(),anchorOffset:0,focusKey:fe.getKey(),focusOffset:fe.getLength(),hasFocus:!0});return S.RichUtils.toggleBlockType(S.EditorState.push(V,S.Modifier.removeRange(Y,he,"backward"),"remove-range"),"unstyled")},Je=D.handleKeyCommand=function(V,Y){return S.RichUtils.handleKeyCommand(V,Y)},pt=D.undo=function(V){return S.EditorState.undo(V)},Dt=D.redo=function(V){return S.EditorState.redo(V)}},51980:function(J,D,r){"use strict";var S;S={value:!0},S=S=D.gk=void 0;var A=r(17274),C=c(A),g=r(36594),h=c(g),b=r(63039),E=c(b);function c(a){if(a&&a.__esModule)return a;var d={};if(a!=null)for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(d[i]=a[i]);return d.default=a,d}var l=D.gk=C,p=S=h,s=S=E},37266:function(J,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var r=0,S=D.UniqueIndex=function(){return r+=1}},79071:function(J,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},S=function(E){if(E=E.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(E))return E;if(A[E])return A[E];if(E.indexOf("rgb")===0){var c=E.split(","),l=c.length<3?null:"#"+[c[0],c[1],c[2]].map(function(p){var s=parseInt(p.replace(/\D/g,""),10).toString(16);return s.length===1?"0"+s:s}).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(l)?l:null}else return null},A=D.namedColors=r,C=D.getHexColor=S,g=D.detectColorsFromHTMLString=function(E){return typeof E!="string"?[]:(E.match(/color:[^;]{3,24};/g)||[]).map(C).filter(function(c){return c})},h=D.detectColorsFromDraftState=function(E){var c=[];return!E||!E.blocks||!E.blocks.length?c:(E.blocks.forEach(function(l){l&&l.inlineStyleRanges&&l.inlineStyleRanges.length&&l.inlineStyleRanges.forEach(function(p){p.style&&p.style.indexOf("COLOR-")>=0&&c.push("#"+p.style.split("COLOR-")[1])})}),c.filter(function(l){return l}))}},81792:function(J,D,r){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.redo=D.undo=D.handleKeyCommand=D.clear=D.setMediaPosition=D.removeMedia=D.setMediaData=D.insertMedias=D.insertHorizontalLine=D.insertAtomicBlock=D.insertHTML=D.insertText=D.toggleSelectionLetterSpacing=D.toggleSelectionFontFamily=D.toggleSelectionLineHeight=D.toggleSelectionFontSize=D.toggleSelectionBackgroundColor=D.toggleSelectionColor=D.decreaseSelectionIndent=D.increaseSelectionIndent=D.toggleSelectionIndent=D.toggleSelectionAlignment=D.removeSelectionInlineStyles=D.toggleSelectionInlineStyle=D.selectionHasInlineStyle=D.getSelectionInlineStyle=D.toggleSelectionLink=D.toggleSelectionEntity=D.getSelectionEntityData=D.getSelectionEntityType=D.toggleSelectionBlockType=D.getSelectionText=D.getSelectionBlockType=D.getSelectionBlockData=D.setSelectionBlockData=D.getSelectedBlocks=D.updateEachCharacterOfSelection=D.getSelectionBlock=D.removeBlock=D.selectNextBlock=D.selectBlock=D.selectionContainsStrictBlock=D.selectionContainsBlockType=D.isSelectionCollapsed=D.createEditorState=D.createEmptyEditorState=D.isEditorState=D.registerStrictBlockType=void 0;var S=r(87937),A=r(57865),C=r(91796),g=r(52724),h=b(g);function b(Se){return Se&&Se.__esModule?Se:{default:Se}}var E=["atomic"],c=D.registerStrictBlockType=function(V){E.indexOf(V)===-1&&E.push(V)},l=D.isEditorState=function(V){return V instanceof S.EditorState},p=D.createEmptyEditorState=function(V){return S.EditorState.createEmpty(V)},s=D.createEditorState=function(V,Y){return S.EditorState.createWithContent(V,Y)},a=D.isSelectionCollapsed=function(V){return V.getSelection().isCollapsed()},d=D.selectionContainsBlockType=function(V,Y){return B(V).find(function(ne){return ne.getType()===Y})},i=D.selectionContainsStrictBlock=function(V){return B(V).find(function(Y){return~E.indexOf(Y.getType())})},o=D.selectBlock=function(V,Y){var ne=Y.getKey();return S.EditorState.forceSelection(V,new S.SelectionState({anchorKey:ne,anchorOffset:0,focusKey:ne,focusOffset:Y.getLength()}))},u=D.selectNextBlock=function(V,Y){var ne=V.getCurrentContent().getBlockAfter(Y.getKey());return ne?o(V,ne):V},x=D.removeBlock=function(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=void 0,he=void 0,be=Y.getKey();return fe=S.Modifier.removeRange(V.getCurrentContent(),new S.SelectionState({anchorKey:be,anchorOffset:0,focusKey:be,focusOffset:Y.getLength()}),"backward"),fe=S.Modifier.setBlockType(fe,fe.getSelectionAfter(),"unstyled"),he=S.EditorState.push(V,fe,"remove-range"),S.EditorState.forceSelection(he,ne||fe.getSelectionAfter())},F=D.getSelectionBlock=function(V){return V.getCurrentContent().getBlockForKey(V.getSelection().getAnchorKey())},f=D.updateEachCharacterOfSelection=function(V,Y){var ne=V.getSelection(),fe=V.getCurrentContent(),he=fe.getBlockMap(),be=B(V);if(be.length===0)return V;var ke=ne.getStartKey(),Oe=ne.getStartOffset(),Ke=ne.getEndKey(),Ve=ne.getEndOffset(),et=he.map(function(Pe){if(be.indexOf(Pe)===-1)return Pe;var at=Pe.getKey(),mt=Pe.getCharacterList(),Tt=null;return at===ke&&at===Ke?Tt=mt.map(function(St,At){return At>=Oe&&At=Oe?Y(St):St}):at===Ke?Tt=mt.map(function(St,At){return At2&&arguments[2]!==void 0?arguments[2]:"",fe=V;return Y=ne+Y.toUpperCase(),ne&&(fe=f(fe,function(he){return he.toJS().style.reduce(function(be,ke){return ke.indexOf(ne)===0&&Y!==ke?S.CharacterMetadata.removeStyle(be,ke):be},he)})),S.RichUtils.toggleInlineStyle(fe,Y)},te=D.removeSelectionInlineStyles=function(V){return f(V,function(Y){return Y.merge({style:h.default.OrderedSet([])})})},pe=D.toggleSelectionAlignment=function(V,Y){return U(V,{textAlign:K(V,"textAlign")!==Y?Y:void 0})},Le=D.toggleSelectionIndent=function(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6;return Y<0||Y>ne||isNaN(Y)?V:U(V,{textIndent:Y||void 0})},De=D.increaseSelectionIndent=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,ne=K(V,"textIndent")||0;return Le(V,ne+1,Y)},Z=D.decreaseSelectionIndent=function(V,Y){var ne=K(V,"textIndent")||0;return Le(V,ne-1,Y)},Re=D.toggleSelectionColor=function(V,Y){return le(V,Y.replace("#",""),"COLOR-")},Ye=D.toggleSelectionBackgroundColor=function(V,Y){return le(V,Y.replace("#",""),"BGCOLOR-")},_e=D.toggleSelectionFontSize=function(V,Y){return le(V,Y,"FONTSIZE-")},Ze=D.toggleSelectionLineHeight=function(V,Y){return le(V,Y,"LINEHEIGHT-")},qe=D.toggleSelectionFontFamily=function(V,Y){return le(V,Y,"FONTFAMILY-")},me=D.toggleSelectionLetterSpacing=function(V,Y){return le(V,Y,"LETTERSPACING-")},ye=D.insertText=function(V,Y,ne,fe){var he=V.getSelection(),be=k(V);if(be==="atomic")return V;var ke=void 0,Oe=V.getCurrentContent();return fe&&fe.type&&(Oe=Oe.createEntity(fe.type,fe.mutability||"MUTABLE",fe.data||entityData),ke=Oe.getLastCreatedEntityKey()),he.isCollapsed()?S.EditorState.push(V,S.Modifier.insertText(Oe,he,Y,ne,ke),"insert-text"):S.EditorState.push(V,S.Modifier.replaceText(Oe,he,Y,ne,ke),"replace-text")},Te=D.insertHTML=function(V,Y,ne){if(!Y)return V;var fe=V.getSelection(),he=V.getCurrentContent(),be=V.convertOptions||{};try{var ke=(0,S.convertFromRaw)((0,C.convertHTMLToRaw)(Y,be,ne)),Oe=ke.blockMap;return S.EditorState.push(V,S.Modifier.replaceWithFragment(he,fe,Oe),"insert-fragment")}catch(Ke){return console.warn(Ke),V}},we=D.insertAtomicBlock=function Se(V,Y){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(i(V))return Se(u(V,F(V)),Y,ne,fe);var he=V.getSelection(),be=V.getCurrentContent();if(!he.isCollapsed()||k(V)==="atomic")return V;var ke=be.createEntity(Y,ne?"IMMUTABLE":"MUTABLE",fe),Oe=ke.getLastCreatedEntityKey(),Ke=S.AtomicBlockUtils.insertAtomicBlock(V,Oe," ");return Ke},Me=D.insertHorizontalLine=function(V){return we(V,"HR")},Ne=D.insertMedias=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Y.length?Y.reduce(function(ne,fe){var he=fe.url,be=fe.link,ke=fe.link_target,Oe=fe.name,Ke=fe.type,Ve=fe.width,et=fe.height,Pe=fe.meta;return we(ne,Ke,!0,{url:he,link:be,link_target:ke,name:Oe,type:Ke,width:Ve,height:et,meta:Pe})},V):V},ze=D.setMediaData=function(V,Y,ne){return S.EditorState.push(V,V.getCurrentContent().mergeEntityData(Y,ne),"change-block-data")},We=D.removeMedia=function(V,Y){return x(V,Y)},rt=D.setMediaPosition=function(V,Y,ne){var fe={},he=ne.float,be=ne.alignment;return typeof he!="undefined"&&(fe.float=Y.getData().get("float")===he?null:he),typeof be!="undefined"&&(fe.alignment=Y.getData().get("alignment")===be?null:be),U(o(V,Y),fe)},Fe=D.clear=function(V){var Y=V.getCurrentContent(),ne=Y.getFirstBlock(),fe=Y.getLastBlock(),he=new S.SelectionState({anchorKey:ne.getKey(),anchorOffset:0,focusKey:fe.getKey(),focusOffset:fe.getLength(),hasFocus:!0});return S.RichUtils.toggleBlockType(S.EditorState.push(V,S.Modifier.removeRange(Y,he,"backward"),"remove-range"),"unstyled")},Je=D.handleKeyCommand=function(V,Y){return S.RichUtils.handleKeyCommand(V,Y)},pt=D.undo=function(V){return S.EditorState.undo(V)},Dt=D.redo=function(V){return S.EditorState.redo(V)}},10881:function(J,D,r){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ColorUtils=D.BaseUtils=D.ContentUtils=void 0;var S=r(81792),A=E(S),C=r(37266),g=E(C),h=r(79071),b=E(h);function E(s){if(s&&s.__esModule)return s;var a={};if(s!=null)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(a[d]=s[d]);return a.default=s,a}var c=D.ContentUtils=A,l=D.BaseUtils=g,p=D.ColorUtils=b},9945:function(J,D,r){"use strict";r.r(D),r.d(D,{convertFromHTML:function(){return Gt},convertToHTML:function(){return Ze},parseHTML:function(){return ye}});var S=r(53670),A=r.n(S),C=r(93236),g=r(24155),h=r(87937),b=r(96835);function E(ae,ce,Ce,xe,He,je){var gt=xe-Ce,it=ce+Ce<=ae.offset;if(it)return Object.assign({},ae,{offset:ae.offset+gt});var Et=ce>=ae.offset&&ce+Ce<=ae.offset+ae.length;if(Et)return Object.assign({},ae,{length:ae.length+gt});var ot=ae.offset>=ce&&ae.offset+ae.length<=ce+Ce&&He>0;if(ot)return Object.assign({},ae,{offset:ae.offset+He});var wt=ae.offsetce&&He>0;if(wt)return[Object.assign({},ae,{length:ce-ae.offset}),Object.assign({},ae,{offset:ce+He,length:ae.offset-ce+ae.length})];var ut=ae.offset>=ce&&ae.offset+ae.length>ce+Ce&&ce+Ce>ae.offset&&je>0;return ut?[Object.assign({},ae,{offset:ae.offset+He,length:ce+Ce-ae.offset}),Object.assign({},ae,{offset:ce+Ce+He+je,length:ae.offset+ae.length-(ce+Ce)})]:ae}var c=function(ae,ce){return ae.offset===ce.offset?ce.length-ae.length:ae.offset-ce.offset},l={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\n":"
"},p=function(ae){for(var ce=(0,b.Z)(ae.text),Ce=ae.entityRanges.sort(c),xe=ae.inlineStyleRanges.sort(c),He="",je=function(Et){var ot=ce[Et];if(l[ot]!==void 0){var wt=l[ot],ut=(0,b.Z)(He).length;He+=wt;var Ct=function(ct){return E(ct,ut,ot.length,wt.length,0,0)};Ce=Ce.map(Ct),xe=xe.map(Ct)}else He+=ot},gt=0;gt1,"convertToHTML: Element of type ".concat(ae.type," must render children")),A()(ce.length<3,"convertToHTML: Element of type ".concat(ae.type," cannot use carriage return character")),{start:ce[0],end:ce[1]}}function i(ae){return C.isValidElement(ae)&&C.Children.count(ae.props.children)>0}function o(ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ae==null||typeof ae=="string")return ae;if(C.isValidElement(ae)){if(i(ae))return g.renderToStaticMarkup(ae);var Ce=d(ae);if(ce!==null&&(0,s.Z)(Ce)==="object"){var xe=Ce.start,He=Ce.end;return xe+ce+He}return Ce}if(A()(Object.prototype.hasOwnProperty.call(ae,"start")&&Object.prototype.hasOwnProperty.call(ae,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),ce!==null){var je=ae.start,gt=ae.end;return je+ce+gt}return ae}var u=function ae(ce){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(C.isValidElement(ce)){var xe=d(ce);if(typeof xe=="string")return 0;var He=xe[Ce].length,je=C.Children.toArray(ce.props.children)[0];return He+(je&&C.isValidElement(je)?ae(je,Ce):0)}return(0,s.Z)(ce)==="object"&&ce[Ce]?ce[Ce].length:0},x=u,F=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=arguments.length>1?arguments[1]:void 0;return Ce},f=function(ae,ce){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F,xe=(0,b.Z)(ae.text),He=Ce;if(Ce.__isMiddleware&&(He=Ce(F)),Object.prototype.hasOwnProperty.call(ae,"entityRanges")&&ae.entityRanges.length>0){for(var je=ae.entityRanges.sort(c),gt=ae.inlineStyleRanges,it=function(wt){var ut=je[wt],Ct=ce[ut.key],nt=xe.slice(ut.offset,ut.offset+ut.length).join(""),ct=He(Ct,nt),ht=o(ct,nt),ft=void 0;ht||ht===""?ft=(0,b.Z)(ht):ft=nt;var jt=x(ct,"start"),Ht=x(ct,"end"),Ot=function(Mt,Bt){return Bt>wt||Object.prototype.hasOwnProperty.call(Mt,"style")?E(Mt,ut.offset,ut.length,ft.length,jt,Ht):Mt},Ft=function(Mt){return Mt.reduce(function(Bt,lt,Rt){var Ut=Ot(lt,Rt);return Array.isArray(Ut)?Bt.concat(Ut):Bt.concat([Ut])},[])};je=Ft(je),gt=Ft(gt),xe=[].concat((0,b.Z)(xe.slice(0,ut.offset)),(0,b.Z)(ft),(0,b.Z)(xe.slice(ut.offset+ut.length)))},Et=0;Et=xe.offset&&ce=Ce.offset+Ce.length;return xe&&He},I=function(ce,Ce){var xe=Ce.offset+Ce.length,He=ce.offset+ce.length;return xe-He},X=function(ce,Ce){for(var xe=0;xe1&&arguments[1]!==void 0?arguments[1]:W;A()(ae!=null,"Expected raw block to be non-null");var Ce;ce.__isMiddleware===!0?Ce=ce(K):Ce=U(B(ce),B(K));for(var xe="",He=[],je=ae.inlineStyleRanges.sort(c),gt=(0,b.Z)(ae.text),it=0;it0}function Le(ae){return A()(ae!=null,"Expected block HTML value to be non-null"),typeof ae=="string"?ae:C.isValidElement(ae)?pe(ae)?g.renderToStaticMarkup(ae):d(ae):Object.prototype.hasOwnProperty.call(ae,"element")&&C.isValidElement(ae.element)?Object.assign({},ae,d(ae.element)):(A()(Object.prototype.hasOwnProperty.call(ae,"start")&&Object.prototype.hasOwnProperty.call(ae,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),ae)}function De(ae,ce){if(A()(ae!=null,"Expected block HTML value to be non-null"),typeof ae.nest=="function"){var Ce=d(ae.nest(ce)),xe=Ce.start,He=Ce.end;return Object.assign({},ae,{nestStart:xe,nestEnd:He})}if(C.isValidElement(ae.nest)){var je=d(ae.nest),gt=je.start,it=je.end;return Object.assign({},ae,{nestStart:gt,nestEnd:it})}return A()(Object.prototype.hasOwnProperty.call(ae,"nestStart")&&Object.prototype.hasOwnProperty.call(ae,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),ae}var Z=["1","a","i"],Re={unstyled:C.createElement("p",null),paragraph:C.createElement("p",null),"header-one":C.createElement("h1",null),"header-two":C.createElement("h2",null),"header-three":C.createElement("h3",null),"header-four":C.createElement("h4",null),"header-five":C.createElement("h5",null),"header-six":C.createElement("h6",null),"code-block":C.createElement("pre",null),blockquote:C.createElement("blockquote",null),"unordered-list-item":{element:C.createElement("li",null),nest:C.createElement("ul",null)},"ordered-list-item":{element:C.createElement("li",null),nest:function(ce){var Ce=Z[ce%3];return C.createElement("ol",{type:Ce})}},media:C.createElement("figure",null),atomic:C.createElement("figure",null)},Ye=function(ce,Ce){return Ce},_e=function(ce){var Ce=ce.styleToHTML,xe=Ce===void 0?{}:Ce,He=ce.blockToHTML,je=He===void 0?{}:He,gt=ce.entityToHTML,it=gt===void 0?Ye:gt;return function(Et){A()(Et!=null,"Expected contentState to be non-null");var ot;je.__isMiddleware===!0?ot=je(te(Re)):ot=U(te(je),te(Re));var wt=(0,h.convertToRaw)(Et),ut=[],Ct=wt.blocks.map(function(nt){var ct=nt.type,ht=nt.depth,ft="",jt="",Ht=ot(nt);if(!Ht)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(nt.type));if(!Ht.nest)ft=ut.reduceRight(function(lt,Rt){return lt+De(ot(Rt),ht).nestEnd},""),ut=[];else for(;ht+1!==ut.length||ct!==ut[ht].type;)if(ht+1===ut.length){var Ot=ut[ht];ft+=De(ot(Ot),ht).nestEnd,jt+=De(ot(nt),ht).nestStart,ut[ht]=nt}else if(ht+12&&arguments[2]!==void 0?arguments[2]:!1,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:(0,qe.Map)();return Ce===!0?{text:"\r",inlines:[(0,qe.OrderedSet)()],entities:new Array(1),blocks:[{type:ae,data:xe,depth:Math.max(0,Math.min(Me,ce))}],isNewline:!0}:{text:` `,inlines:[(0,qe.OrderedSet)()],entities:new Array(1),blocks:[]}}function Oe(ae,ce){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,qe.Map)();return{text:"\r",inlines:[(0,qe.OrderedSet)()],entities:new Array(1),blocks:[{type:ae,data:Ce,depth:Math.max(0,Math.min(Me,ce))}]}}function Ke(ae,ce){switch(ae){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return ce==="ol"?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function Ve(ae,ce,Ce){return Ke(ae,Ce)}function et(ae,ce,Ce){var xe=Je[ae];if(xe)Ce=Ce.add(xe).toOrderedSet();else if(ce instanceof HTMLElement){var He=ce;Ce=Ce.withMutations(function(je){He.style.fontWeight==="bold"&&je.add("BOLD"),He.style.fontStyle==="italic"&&je.add("ITALIC"),He.style.textDecoration==="underline"&&je.add("UNDERLINE"),He.style.textDecoration==="line-through"&&je.add("STRIKETHROUGH")}).toOrderedSet()}return Ce}function Pe(ae,ce){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,qe.OrderedSet)();return et(ae,ce,Ce)}function at(ae,ce){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=ce.text.slice(0,1),He=ae.text.slice(-1),je=He==="\r"&&xe==="\r",gt=ae.text!=="\r"&&ce.text!=="\r",it=ae.text==="\r"&&!ae.isNewline&&ce.isNewline;if(je&&(gt||it)&&(ae.text=ae.text.slice(0,-1),ae.inlines.pop(),ae.entities.pop(),ae.blocks.pop()),ae.text.slice(-1)==="\r"&&Ce===!0){if(ce.text===we||ce.text===` `)return ae;(xe===we||xe===` `)&&(ce.text=ce.text.slice(1),ce.inlines.shift(),ce.entities.shift())}var Et=ae.text.length===0&&ce.isNewline;return{text:ae.text+ce.text,inlines:ae.inlines.concat(ce.inlines),entities:ae.entities.concat(ce.entities),blocks:ae.blocks.concat(ce.blocks),isNewline:Et}}function mt(ae){return Fe.some(function(ce){return ae.indexOf("<".concat(ce))!==-1})}function Tt(ae,ce,Ce,xe,He,je,gt,it,Et,ot,wt,ut,Ct,nt,ct,ht){var ft=ae.nodeName.toLowerCase(),jt=!1,Ht="unstyled";if(ft==="#text"){var Ot=ae.textContent;if(Ot.trim()===""&&xe===null)return he();if(Ot.trim()===""&&xe!=="code-block")return be(ht);xe!=="code-block"&&(Ot=Ot.replace(ze,we));var Ft=Array(Ot.length).fill(ht),st=0,Mt=Et(Ot,wt,ut,Ct,nt).sort(c);return Mt.forEach(function(An){var gn=An.entity,vn=An.offset,sn=An.length,mn=An.result,yn=vn+st;mn==null&&(mn=Ot.substr(yn,sn));var pn=Ot.split("");pn.splice.bind(pn,yn,sn).apply(pn,mn.split("")),Ot=pn.join(""),Ft.splice.bind(Ft,yn,sn).apply(Ft,Array(mn.length).fill(gn)),st+=mn.length-sn}),{text:Ot,inlines:Array(Ot.length).fill(ce),entities:Ft,blocks:[]}}if(ft==="br"){var Bt=xe;return Bt===null?ke("unstyled",je,!0):ke(Bt||"unstyled",je,ct.flat)}var lt=he(),Rt=null;ce=et(ft,ae,ce),ce=gt(ft,ae,ce),(ft==="ul"||ft==="ol")&&(Ce&&(je+=1),Ce=ft,xe=null);var Ut=ot(ft,ae,Ce,xe),_t,on;if(Ut===!1)return he();if(Ut=Ut||{},typeof Ut=="string"?(_t=Ut,on=(0,qe.Map)()):(_t=typeof Ut=="string"?Ut:Ut.type,on=Ut.data?(0,qe.Map)(Ut.data):(0,qe.Map)()),!xe&&(He.indexOf(ft)!==-1||_t))lt=Oe(_t||Ke(ft,Ce),je,on),xe=_t||Ke(ft,Ce),jt=!0;else if(Ce&&(xe==="ordered-list-item"||xe==="unordered-list-item")&&ft==="li"){var ln=Ke(ft,Ce);lt=Oe(ln,je),xe=ln,jt=!0,Ht=Ce==="ul"?"unordered-list-item":"ordered-list-item"}else xe&&xe!=="atomic"&&_t==="atomic"&&(xe=_t,jt=!0,lt=ke(_t,je,!0,on));var Qt=ae.firstChild;Qt==null&&ht&&(_t==="atomic"||xe==="atomic")&&(Qt=document.createTextNode("a")),Qt!=null&&(ft=Qt.nodeName.toLowerCase());for(var Bn=null;Qt;){Bn=it(ft,Qt,wt,ut,Ct,nt),Rt=Tt(Qt,ce,Ce,xe,He,je,gt,it,Et,ot,wt,ut,Ct,nt,ct,Bn||ht),lt=at(lt,Rt,ct.flat);var un=Qt.nextSibling;if(un&&He.indexOf(ft)>=0&&xe){var Pt=ot(ft,Qt,Ce,xe),Tn=void 0,$t=void 0;Pt!==!1&&(Pt=Pt||{},typeof Pt=="string"?(Tn=Pt,$t=(0,qe.Map)()):(Tn=Pt.type||Ke(ft,Ce),$t=Pt.data?(0,qe.Map)(Pt.data):(0,qe.Map)()),lt=at(lt,ke(Tn,je,ct.flat,$t),ct.flat))}un&&(ft=un.nodeName.toLowerCase()),Qt=un}return jt&&(lt=at(lt,Oe(Ht,je,(0,qe.Map)()),ct.flat)),lt}function St(ae,ce,Ce,xe,He,je,gt,it,Et,ot,wt){ae=ae.trim().replace(Ne,"").replace(We,we);var ut=wt(ae);if(!ut)return null;var Ct=mt(ae)?Fe.concat(["div"]):["div"],nt=Tt(ut,(0,qe.OrderedSet)(),"ul",null,Ct,-1,ce,Ce,xe,He,je,gt,it,Et,ot);return nt.text.indexOf("\r")===0&&(nt={text:nt.text.slice(1),inlines:nt.inlines.slice(1),entities:nt.entities.slice(1),blocks:nt.blocks}),nt.text.slice(-1)==="\r"&&(nt.text=nt.text.slice(0,-1),nt.inlines=nt.inlines.slice(0,-1),nt.entities=nt.entities.slice(0,-1),nt.blocks.pop()),nt.blocks.length===0&&nt.blocks.push({type:"unstyled",data:(0,qe.Map)(),depth:0}),nt.text.split("\r").length===nt.blocks.length+1&&nt.blocks.unshift({type:"unstyled",data:(0,qe.Map)(),depth:0}),nt}function At(ae,ce,Ce,xe,He,je,gt,it,Et,ot,wt,ut){var Ct=St(ae,ce,Ce,xe,He,je,gt,it,Et,ot,wt,ut);if(Ct==null)return[];var nt=0;return Ct.text.split("\r").map(function(ct,ht){ct=fe(ct);var ft=nt+ct.length,jt=ne(Ct).inlines.slice(nt,ft),Ht=ne(Ct).entities.slice(nt,ft),Ot=(0,qe.List)(jt.map(function(Ft,st){var Mt={style:Ft,entity:null};return Ht[st]&&(Mt.entity=Ht[st]),h.CharacterMetadata.create(Mt)}));return nt=ft+1,new h.ContentBlock({key:ut(),type:ne(Ct).blocks[ht].type,data:ne(Ct).blocks[ht].data,depth:ne(Ct).blocks[ht].depth,text:ct,characterList:Ot})})}var Yt=function(ce){var Ce=ce.htmlToStyle,xe=Ce===void 0?Se:Ce,He=ce.htmlToEntity,je=He===void 0?V:He,gt=ce.textToEntity,it=gt===void 0?Y:gt,Et=ce.htmlToBlock,ot=Et===void 0?Dt:Et;return function(wt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{flat:!1},Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h.genKey,ct=h.ContentState.createFromText(""),ht=function(){if(ct.createEntity){var Bt;return ct=(Bt=ct).createEntity.apply(Bt,arguments),ct.getLastCreatedEntityKey()}return h.Entity.create.apply(h.Entity,arguments)},ft=function(){if(ct.getEntity){var Bt;return(Bt=ct).getEntity.apply(Bt,arguments)}return h.Entity.get.apply(h.Entity,arguments)},jt=function(){if(ct.mergeEntityData){var Bt;ct=(Bt=ct).mergeEntityData.apply(Bt,arguments);return}h.Entity.mergeData.apply(h.Entity,arguments)},Ht=function(){if(ct.replaceEntityData){var Bt;ct=(Bt=ct).replaceEntityData.apply(Bt,arguments);return}h.Entity.replaceData.apply(h.Entity,arguments)},Ot=At(wt,pt(xe,Pe),pt(je,V),pt(it,Y),pt(ot,Ve),ht,ft,jt,Ht,ut,Ct,nt),Ft=h.BlockMapBuilder.createFromArray(Ot),st=Ot[0].getKey();return ct.merge({blockMap:Ft,selectionBefore:h.SelectionState.createEmpty(st),selectionAfter:h.SelectionState.createEmpty(st)})}},Gt=function(){return arguments.length>=1&&typeof(arguments.length<=0?void 0:arguments[0])=="string"?Yt({}).apply(void 0,arguments):Yt.apply(void 0,arguments)}},19441:function(J,D,r){"use strict";var S=r(22767),A=S||function(f){for(var B=1;B0&&arguments[0]!==void 0?arguments[0]:d;return S(this,f),A(this,F.call(this,u(B)))}return f.prototype.getKey=function(){return this.get("key")},f.prototype.getType=function(){return this.get("type")},f.prototype.getText=function(){return this.get("text")},f.prototype.getCharacterList=function(){return this.get("characterList")},f.prototype.getLength=function(){return this.getText().length},f.prototype.getDepth=function(){return this.get("depth")},f.prototype.getData=function(){return this.get("data")},f.prototype.getInlineStyleAt=function(U){var K=this.getCharacterList().get(U);return K?K.getStyle():a},f.prototype.getEntityAt=function(U){var K=this.getCharacterList().get(U);return K?K.getEntity():null},f.prototype.getChildKeys=function(){return this.get("children")},f.prototype.getParentKey=function(){return this.get("parent")},f.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},f.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},f.prototype.findStyleRanges=function(U,K){b(this.getCharacterList(),i,U,K)},f.prototype.findEntityRanges=function(U,K){b(this.getCharacterList(),o,U,K)},f}(p(d));J.exports=x},96152:function(J,D,r){"use strict";function S(K,k){if(!(K instanceof k))throw new TypeError("Cannot call a class as a function")}function A(K,k){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:K}function C(K,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);K.prototype=Object.create(k&&k.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(K,k):K.__proto__=k)}var g=r(46852),h=r(24227),b=r(22696),E=r(73833),c=r(75364),l=r(50130),p=r(52724),s=r(7870),a=r(85607),d=r(2293),i=p.List,o=p.Record,u=p.Repeat,x=l.draft_tree_data_support,F={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},f=x?E:b,B=o(F),U=function(K){C(k,K);function k(){return S(this,k),A(this,K.apply(this,arguments))}return k.prototype.getEntityMap=function(){return c},k.prototype.getBlockMap=function(){return this.get("blockMap")},k.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},k.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},k.prototype.getBlockForKey=function(z){var M=this.getBlockMap().get(z);return M},k.prototype.getKeyBefore=function(z){return this.getBlockMap().reverse().keySeq().skipUntil(function(M){return M===z}).skip(1).first()},k.prototype.getKeyAfter=function(z){return this.getBlockMap().keySeq().skipUntil(function(M){return M===z}).skip(1).first()},k.prototype.getBlockAfter=function(z){return this.getBlockMap().skipUntil(function(M,I){return I===z}).skip(1).first()},k.prototype.getBlockBefore=function(z){return this.getBlockMap().reverse().skipUntil(function(M,I){return I===z}).skip(1).first()},k.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},k.prototype.getFirstBlock=function(){return this.getBlockMap().first()},k.prototype.getLastBlock=function(){return this.getBlockMap().last()},k.prototype.getPlainText=function(z){return this.getBlockMap().map(function(M){return M?M.getText():""}).join(z||` `)},k.prototype.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},k.prototype.hasText=function(){var z=this.getBlockMap();return z.size>1||z.first().getLength()>0},k.prototype.createEntity=function(z,M,I){return c.__create(z,M,I),this},k.prototype.mergeEntityData=function(z,M){return c.__mergeData(z,M),this},k.prototype.replaceEntityData=function(z,M){return c.__replaceData(z,M),this},k.prototype.addEntity=function(z){return c.__add(z),this},k.prototype.getEntity=function(z){return c.__get(z)},k.createFromBlockArray=function(z,M){var I=Array.isArray(z)?z:z.contentBlocks,X=g.createFromArray(I),$=X.isEmpty()?new s:s.createEmpty(X.first().getKey());return new k({blockMap:X,entityMap:M||c,selectionBefore:$,selectionAfter:$})},k.createFromText=function(z){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,I=z.split(M),X=I.map(function($){return $=d($),new f({key:a(),text:$,type:"unstyled",characterList:i(u(h.EMPTY,$.length))})});return k.createFromBlockArray(X)},k}(B);J.exports=U},85689:function(J,D,r){"use strict";var S=r(24227),A=r(52724),C=A.Map,g={add:function(E,c,l){return h(E,c,l,!0)},remove:function(E,c,l){return h(E,c,l,!1)}};function h(b,E,c,l){var p=b.getBlockMap(),s=E.getStartKey(),a=E.getStartOffset(),d=E.getEndKey(),i=E.getEndOffset(),o=p.skipUntil(function(u,x){return x===s}).takeUntil(function(u,x){return x===d}).concat(C([[d,p.get(d)]])).map(function(u,x){var F,f;s===d?(F=a,f=i):(F=x===s?a:0,f=x===d?i:u.getLength());for(var B=u.getCharacterList(),U;F0&&window.scrollTo(Q.x,Q.y+W+B)}else{X instanceof HTMLElement||F(!1);var Le=X.offsetHeight+X.offsetTop,De=$.offsetHeight+Q.y;W=Le-De,W>0&&p.setTop($,p.getTop($)+W+B)}}},j.prototype._renderChildren=function(){var M=this,I=this.props.block,X=I.getKey(),$=I.getText(),Q=this.props.tree.size-1,W=U(this.props.selection,X);return this.props.tree.map(function(le,te){var pe=le.get("leaves"),Le=pe.size-1,De=pe.map(function(ye,Te){var we=E.encode(X,te,Te),Me=ye.get("start"),Ne=ye.get("end");return c.createElement(b,{key:we,offsetKey:we,block:I,start:Me,selection:W?M.props.selection:null,forceSelection:M.props.forceSelection,text:$.slice(Me,Ne),styleSet:I.getInlineStyleAt(Me),customStyleMap:M.props.customStyleMap,customStyleFn:M.props.customStyleFn,isLast:te===Q&&Te===Le})}).toArray(),Z=le.get("decoratorKey");if(Z==null||!M.props.decorator)return De;var Re=f(M.props.decorator),Ye=Re.getComponentForKey(Z);if(!Ye)return De;var _e=Re.getPropsForKey(Z),Ze=E.encode(X,te,0),qe=$.slice(pe.first().get("start"),pe.last().get("end")),me=d.getHTMLDirIfDifferent(a.getDirection(qe),M.props.direction);return c.createElement(Ye,A({},_e,{contentState:M.props.contentState,decoratedText:qe,dir:me,key:Ze,entityKey:I.getEntityAt(le.get("start")),offsetKey:Ze}),De)}).toArray()},j.prototype.render=function(){var M=this.props,I=M.direction,X=M.offsetKey,$=i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":I==="LTR","public/DraftStyleDefault/rtl":I==="RTL"});return c.createElement("div",{"data-offset-key":X,className:$},this._renderChildren())},j}(c.Component);J.exports=K},61324:function(J,D,r){"use strict";var S=r(50130),A=r(89808),C=r(13406),g=r(16803),h=r(4509),b=r(84510),E=r(51305),c=20,l=!1,p=!1,s="",a={onBeforeInput:function(i,o){s=(s||"")+o.data},onCompositionStart:function(i){p=!0},onCompositionEnd:function(i){l=!1,p=!1,setTimeout(function(){l||a.resolveComposition(i)},c)},onKeyDown:function(i,o){if(!p){a.resolveComposition(i),i._onKeyDown(o);return}(o.which===g.RIGHT||o.which===g.LEFT)&&o.preventDefault()},onKeyPress:function(i,o){o.which===g.RETURN&&o.preventDefault()},resolveComposition:function(i){if(!p){l=!0;var o=s;s="";var u=C.set(i._latestEditorState,{inCompositionMode:!1}),x=u.getCurrentInlineStyle(),F=h(u.getCurrentContent(),u.getSelection()),f=!o||E(u)||x.size>0||F!==null;if(f&&i.restoreEditorDOM(),i.exitCurrentMode(),o){if(S.draft_handlebeforeinput_composed_text&&i.props.handleBeforeInput&&b(i.props.handleBeforeInput(o,u)))return;var B=A.replaceText(u.getCurrentContent(),u.getSelection(),o,x,F);i.update(C.push(u,B,"insert-characters"));return}f&&i.update(C.set(u,{nativelyRenderedContent:null,forceSelection:!0}))}}};J.exports=a},41753:function(J,D,r){"use strict";var S=r(22767),A=S||function(o){for(var u=1;upe;rt=s(rt,d(Ye,We,Fe,ye))}var Je=Ze||b,pt={className:rt,"data-block":!0,"data-editor":z,"data-offset-key":Te,key:Re};me!==void 0&&(pt=A({},pt,{contentEditable:me,suppressContentEditableWarning:!0}));var Dt=l.createElement(ze,pt,l.createElement(Je,we));te.push({block:Dt,wrapperTemplate:Ne,key:Re,offsetKey:Te}),Ne?pe=Z.getDepth():pe=null,Le=Ne}for(var Se=[],V=0;V0){if(i.props.handleDroppedFiles&&E(i.props.handleDroppedFiles(F,f)))return;h(f,function(U){U&&i.update(a(x,F,U))});return}var B=i._internalDrag?"internal":"external";if(!(i.props.handleDrop&&E(i.props.handleDrop(F,u,B)))){if(i._internalDrag){i.update(s(x,F));return}i.update(a(x,F,u.getText()))}}}};function s(d,i){var o=A.moveText(d.getCurrentContent(),d.getSelection(),i);return C.push(d,o,"insert-fragment")}function a(d,i,o){var u=A.insertText(d.getCurrentContent(),i,o,d.getCurrentInlineStyle());return C.push(d,u,"insert-fragment")}J.exports=p},46948:function(J,D,r){"use strict";var S=r(9325),A=r(79849),C=r(44622),g=r(69817),h=r(72521),b=r(67860),E=r(62891),c=r(47629),l=r(58279),p=r(3727),s=r(49749),a=r(71576),d={onBeforeInput:S,onBlur:A,onCompositionStart:C,onCopy:g,onCut:h,onDragOver:b,onDragStart:E,onFocus:c,onInput:l,onKeyDown:p,onPaste:s,onSelect:a};J.exports=d},31136:function(J,D,r){"use strict";var S=r(22767);function A(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function C(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function g(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var h=r(90780),b=r(93236),E=r(19103),c=r(44083),l=r(17742),p=function(s){g(a,s);function a(){return A(this,a),C(this,s.apply(this,arguments))}return a.prototype._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var o=this.props,u=o.block,x=o.start,F=o.text,f=u.getKey(),B=x+F.length;if(i.hasEdgeWithin(f,x,B)){var U=E.findDOMNode(this);U||c(!1);var K=U.firstChild;K||c(!1);var k=void 0;K.nodeType===Node.TEXT_NODE?k=K:K.tagName==="BR"?k=U:(k=K.firstChild,k||c(!1)),l(i,k,f,x,B)}}},a.prototype.shouldComponentUpdate=function(i){var o=E.findDOMNode(this.leaf);return o||c(!1),o.textContent!==i.text||i.styleSet!==this.props.styleSet||i.forceSelection},a.prototype.componentDidUpdate=function(){this._setSelection()},a.prototype.componentDidMount=function(){this._setSelection()},a.prototype.render=function(){var i=this,o=this.props.block,u=this.props.text;u.endsWith(` `)&&this.props.isLast&&(u+=` `);var x=this.props,F=x.customStyleMap,f=x.customStyleFn,B=x.offsetKey,U=x.styleSet,K=U.reduce(function(j,z){var M={},I=F[z];return I!==void 0&&j.textDecoration!==I.textDecoration&&(M.textDecoration=[j.textDecoration,I.textDecoration].join(" ").trim()),S(j,I,M)},{});if(f){var k=f(U,o);K=S(K,k)}return b.createElement("span",{"data-offset-key":B,ref:function(z){return i.leaf=z},style:K},b.createElement(h,null,u))},a}(b.Component);J.exports=p},59955:function(J,D,r){"use strict";function S(E,c){if(!(E instanceof c))throw new TypeError("Cannot call a class as a function")}function A(E,c){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:E}function C(E,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);E.prototype=Object.create(c&&c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(E,c):E.__proto__=c)}var g=r(93236),h=r(47471),b=function(E){C(c,E);function c(){return S(this,c),A(this,E.apply(this,arguments))}return c.prototype.shouldComponentUpdate=function(p){return this.props.text!==p.text||this.props.editorState.getSelection().getHasFocus()!==p.editorState.getSelection().getHasFocus()},c.prototype.render=function(){var p=this.props.editorState.getSelection().getHasFocus(),s=h({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":p}),a={whiteSpace:"pre-wrap"};return g.createElement("div",{className:s},g.createElement("div",{className:h("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},c}(g.Component);J.exports=b},90780:function(J,D,r){"use strict";function S(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}function A(d,i){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:d}function C(d,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);d.prototype=Object.create(i&&i.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(d,i):d.__proto__=i)}var g=r(93236),h=r(19103),b=r(13567),E=r(44083),c=b.isBrowser("IE <= 11");function l(d){return c?d.textContent===` `:d.tagName==="BR"}var p=c?g.createElement("span",{key:"A","data-text":"true"},` `):g.createElement("br",{key:"A","data-text":"true"}),s=c?g.createElement("span",{key:"B","data-text":"true"},` `):g.createElement("br",{key:"B","data-text":"true"}),a=function(d){C(i,d);function i(o){S(this,i);var u=A(this,d.call(this,o));return u._forceFlag=!1,u}return i.prototype.shouldComponentUpdate=function(u){var x=h.findDOMNode(this),F=u.children==="";return x instanceof Element||E(!1),F?!l(x):x.textContent!==u.children},i.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},i.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},i.prototype.render=function(){return this.props.children===""?this._forceFlag?p:s:g.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},i}(g.Component);J.exports=a},75364:function(J,D,r){"use strict";var S=r(22767),A=S||function(s){for(var a=1;a0)return" "+u}else if(x0){var u=p[i-1];u||C(!1),u.children.push(o);return}s.push(o)}),A({},l,{blocks:s})}};J.exports=E},64154:function(J,D,r){"use strict";var S=r(52724),A=r(84720),C=r(17e3),g=S.OrderedMap,h,b={getDirectionMap:function(c,l){h?h.reset():h=new A;var p=c.getBlockMap(),s=p.valueSeq().map(function(d){return C(h).getDirection(d.getText())}),a=g(p.keySeq().zip(s));return l!=null&&S.is(l,a)?l:a}};J.exports=b},13406:function(J,D,r){"use strict";var S=r(22767),A=S||function(k){for(var j=1;j0?I.getInlineStyleAt(M-1):I.getLength()?I.getInlineStyleAt(0):K(k,z)}function U(k,j){var z=j.getStartKey(),M=j.getStartOffset(),I=k.getBlockForKey(z);return M0?I.getInlineStyleAt(M-1):K(k,z)}function K(k,j){var z=k.getBlockMap().reverse().skipUntil(function(M,I){return I===j}).skip(1).skipUntil(function(M,I){return M.getLength()}).first();return z?z.getInlineStyleAt(z.getLength()-1):l()}J.exports=i},28131:function(J,D,r){"use strict";var S=r(13567),A=S.isPlatform("Mac OS X"),C={isCtrlKeyCommand:function(h){return!!h.ctrlKey&&!h.altKey},isOptionKeyCommand:function(h){return A&&h.altKey},hasCommandModifier:function(h){return A?!!h.metaKey&&!h.altKey:C.isCtrlKeyCommand(h)}};J.exports=C},39656:function(J,D,r){"use strict";var S=r(89808),A=r(13406),C=r(7870),g=r(28782),h=r(17e3),b={currentBlockContainsLink:function(c){var l=c.getSelection(),p=c.getCurrentContent(),s=p.getEntityMap();return p.getBlockForKey(l.getAnchorKey()).getCharacterList().slice(l.getStartOffset(),l.getEndOffset()).some(function(a){var d=a.getEntity();return!!d&&s.__get(d).getType()==="LINK"})},getCurrentBlockType:function(c){var l=c.getSelection();return c.getCurrentContent().getBlockForKey(l.getStartKey()).getType()},getDataObjectForLinkURL:function(c){return{url:c.toString()}},handleKeyCommand:function(c,l){switch(l){case"bold":return b.toggleInlineStyle(c,"BOLD");case"italic":return b.toggleInlineStyle(c,"ITALIC");case"underline":return b.toggleInlineStyle(c,"UNDERLINE");case"code":return b.toggleCode(c);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return b.onBackspace(c);case"delete":case"delete-word":case"delete-to-end-of-block":return b.onDelete(c);default:return null}},insertSoftNewline:function(c){var l=S.insertText(c.getCurrentContent(),c.getSelection(),` `,c.getCurrentInlineStyle(),null),p=A.push(c,l,"insert-characters");return A.forceSelection(p,l.getSelectionAfter())},onBackspace:function(c){var l=c.getSelection();if(!l.isCollapsed()||l.getAnchorOffset()||l.getFocusOffset())return null;var p=c.getCurrentContent(),s=l.getStartKey(),a=p.getBlockBefore(s);if(a&&a.getType()==="atomic"){var d=p.getBlockMap().delete(a.getKey()),i=p.merge({blockMap:d,selectionAfter:l});if(i!==p)return A.push(c,i,"remove-range")}var o=b.tryToRemoveBlockStyle(c);return o?A.push(c,o,"change-block-type"):null},onDelete:function(c){var l=c.getSelection();if(!l.isCollapsed())return null;var p=c.getCurrentContent(),s=l.getStartKey(),a=p.getBlockForKey(s),d=a.getLength();if(l.getStartOffset()0&&d!==i)return null;var o=d.getType(),u=a.getBlockBefore(s);if(o==="code-block"&&u&&u.getType()==="code-block"&&u.getLength()!==0)return null;if(o!=="unstyled")return S.setBlockType(a,l,"unstyled")}return null}};J.exports=b},84644:function(J,D,r){"use strict";var S=r(89808),A=r(13406),C=r(84391),g=r(17e3),h=null,b={cut:function(c){var l=c.getCurrentContent(),p=c.getSelection(),s=null;if(p.isCollapsed()){var a=p.getAnchorKey(),d=l.getBlockForKey(a).getLength();if(d===p.getAnchorOffset())return c;s=p.set("focusOffset",d)}else s=p;s=g(s),h=C(l,s);var i=S.removeRange(l,s,"forward");return i===l?c:A.push(c,i,"remove-range")},paste:function(c){if(!h)return c;var l=S.replaceWithFragment(c.getCurrentContent(),c.getSelection(),h);return A.push(c,l,"insert-fragment")}};J.exports=b},7870:function(J,D,r){"use strict";function S(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}function A(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:l}function C(l,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}var g=r(52724),h=g.Record,b={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},E=h(b),c=function(l){C(p,l);function p(){return S(this,p),A(this,l.apply(this,arguments))}return p.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},p.prototype.getAnchorKey=function(){return this.get("anchorKey")},p.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},p.prototype.getFocusKey=function(){return this.get("focusKey")},p.prototype.getFocusOffset=function(){return this.get("focusOffset")},p.prototype.getIsBackward=function(){return this.get("isBackward")},p.prototype.getHasFocus=function(){return this.get("hasFocus")},p.prototype.hasEdgeWithin=function(a,d,i){var o=this.getAnchorKey(),u=this.getFocusKey();if(o===u&&o===a){var x=this.getStartOffset(),F=this.getEndOffset();return d<=F&&x<=i}if(a!==o&&a!==u)return!1;var f=a===o?this.getAnchorOffset():this.getFocusOffset();return d<=f&&i>=f},p.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},p.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},p.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},p.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},p.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},p.createEmpty=function(a){return new p({anchorKey:a,anchorOffset:0,focusKey:a,focusOffset:0,isBackward:!1,hasFocus:!1})},p}(E);J.exports=c},28782:function(J){"use strict";function D(r,S,A,C){var g=S.getStartKey(),h=S.getEndKey(),b=r.getBlockMap(),E=b.toSeq().skipUntil(function(c,l){return l===g}).takeUntil(function(c,l){return l===h}).concat([[h,b.get(h)]]).map(function(c){var l=c.getDepth()+A;return l=Math.max(0,Math.min(l,C)),c.set("depth",l)});return b=b.merge(E),r.merge({blockMap:b,selectionBefore:S,selectionAfter:S})}J.exports=D},36194:function(J,D,r){"use strict";var S=r(24227);function A(C,g,h,b){for(var E=C.getCharacterList();g=0?ke.add("BOLD"):le.indexOf(Oe)>=0&&ke.remove("BOLD"),Ke==="italic"?ke.add("ITALIC"):Ke==="normal"&&ke.remove("ITALIC"),Ve==="underline"&&ke.add("UNDERLINE"),Ve==="line-through"&&ke.add("STRIKETHROUGH"),Ve==="none"&&(ke.remove("UNDERLINE"),ke.remove("STRIKETHROUGH"))}).toOrderedSet()}return fe},Te=function(Y,ne,fe){var he=Y.text.slice(-1),be=ne.text.slice(0,1);if(he==="\r"&&be==="\r"&&!fe&&(Y.text=Y.text.slice(0,-1),Y.inlines.pop(),Y.entities.pop(),Y.blocks.pop()),he==="\r"){if(ne.text===j||ne.text===` `)return Y;(be===j||be===` `)&&(ne.text=ne.text.slice(1),ne.inlines.shift(),ne.entities.shift())}return{text:Y.text+ne.text,inlines:Y.inlines.concat(ne.inlines),entities:Y.entities.concat(ne.entities),blocks:Y.blocks.concat(ne.blocks)}},we=function(Y,ne){return ne.some(function(fe){return Y.indexOf("<"+fe)!==-1})},Me=function(Y){Y instanceof HTMLAnchorElement||F(!1);var ne=Y.protocol;return ne==="http:"||ne==="https:"||ne==="mailto:"},Ne=function(Y){var ne=new Array(1);return Y&&(ne[0]=Y),S({},Re,{text:j,inlines:[K()],entities:ne})},ze=function(){return S({},Re,{text:` `,inlines:[K()],entities:new Array(1)})},We=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return S({},Ye,Y)},rt=function(Y,ne){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return{text:"\r",inlines:[K()],entities:new Array(1),blocks:[We({parent:fe,key:u(),type:Y,depth:Math.max(0,Math.min(z,ne))})]}},Fe=function(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(pe).some(function(fe){Y.classList.contains(fe)&&(ne=pe[fe])}),ne},Je=function V(Y,ne,fe,he,be,ke,Oe,Ke,Ve,et){var Pe=Z,at=ne.nodeName.toLowerCase(),mt=Y,Tt="unstyled",St=!1,At=be&&me(be,he,Ke),Yt=S({},Re),Gt=null,ae=void 0;if(at==="#text"){var ce=ne.textContent,Ce=ce.trim();if(he&&Ce===""&&ne.parentElement){var xe=ne.parentElement.nodeName.toLowerCase();if(xe==="ol"||xe==="ul")return{chunk:S({},Re),entityMap:Y}}return Ce===""&&be!=="pre"?{chunk:Ne(Ve),entityMap:Y}:(be!=="pre"&&(ce=ce.replace(I,j)),Z=at,{chunk:{text:ce,inlines:Array(ce.length).fill(fe),entities:Array(ce.length).fill(Ve),blocks:[]},entityMap:Y})}if(Z=at,at==="br")return Pe==="br"&&(!be||At==="unstyled")?{chunk:rt("unstyled",Oe,et),entityMap:Y}:{chunk:ze(),entityMap:Y};if(at==="img"&&ne instanceof HTMLImageElement&&ne.attributes.getNamedItem("src")&&ne.attributes.getNamedItem("src").value){var He=ne,je={};De.forEach(function(ht){var ft=He.getAttribute(ht);ft&&(je[ht]=ft)}),ne.textContent="\u{1F4F7}",Ve=l.__create("IMAGE","MUTABLE",je||{})}fe=ye(at,ne,fe),(at==="ul"||at==="ol")&&(he&&(Oe+=1),he=at),!B&&at==="li"&&ne instanceof HTMLElement&&(Oe=Fe(ne,Oe));var gt=me(at,he,Ke),it=he&&be==="li"&&at==="li",Et=(!be||B)&&ke.indexOf(at)!==-1;(it||Et)&&(Yt=rt(gt,Oe,et),ae=Yt.blocks[0].key,be=at,St=!B),it&&(Tt=he==="ul"?"unordered-list-item":"ordered-list-item");var ot=ne.firstChild;ot!=null&&(at=ot.nodeName.toLowerCase());for(var wt=null;ot;){ot instanceof HTMLAnchorElement&&ot.href&&Me(ot)?function(){var ht=ot,ft={};Le.forEach(function(jt){var Ht=ht.getAttribute(jt);Ht&&(ft[jt]=Ht)}),ft.url=new i(ht.href).toString(),wt=l.__create("LINK","MUTABLE",ft||{})}():wt=void 0;var ut=V(mt,ot,fe,he,be,ke,Oe,Ke,wt||Ve,B?ae:null),Ct=ut.chunk,nt=ut.entityMap;Gt=Ct,mt=nt,Yt=Te(Yt,Gt,B);var ct=ot.nextSibling;!et&&ct&&ke.indexOf(at)>=0&&be&&(Yt=Te(Yt,ze())),ct&&(at=ct.nodeName.toLowerCase()),ot=ct}return St&&(Yt=Te(Yt,rt(Tt,Oe,et))),{chunk:Yt,entityMap:mt}},pt=function(Y,ne,fe,he){Y=Y.trim().replace(M,"").replace(X,j).replace($,"").replace(Q,"");var be=Ze(fe),ke=ne(Y);if(!ke)return null;Z=null;var Oe=we(Y,be)?be:["div"],Ke=Je(he,ke,K(),"ul",null,Oe,-1,fe),Ve=Ke.chunk,et=Ke.entityMap;return Ve.text.indexOf("\r")===0&&(Ve={text:Ve.text.slice(1),inlines:Ve.inlines.slice(1),entities:Ve.entities.slice(1),blocks:Ve.blocks}),Ve.text.slice(-1)==="\r"&&(Ve.text=Ve.text.slice(0,-1),Ve.inlines=Ve.inlines.slice(0,-1),Ve.entities=Ve.entities.slice(0,-1),Ve.blocks.pop()),Ve.blocks.length===0&&Ve.blocks.push(S({},Re,{type:"unstyled",depth:0})),Ve.text.split("\r").length===Ve.blocks.length+1&&Ve.blocks.unshift({type:"unstyled",depth:0}),{chunk:Ve,entityMap:et}},Dt=function(Y){if(!Y||!Y.text||!Array.isArray(Y.blocks))return null;var ne={cacheRef:{},contentBlocks:[]},fe=0,he=Y.blocks,be=Y.inlines,ke=Y.entities,Oe=B?E:b;return Y.text.split("\r").reduce(function(Ke,Ve,et){Ve=f(Ve);var Pe=he[et],at=fe+Ve.length,mt=be.slice(fe,at),Tt=ke.slice(fe,at),St=U(mt.map(function(Et,ot){var wt={style:Et,entity:null};return Tt[ot]&&(wt.entity=Tt[ot]),h.create(wt)}));fe=at+1;var At=Pe.depth,Yt=Pe.type,Gt=Pe.parent,ae=Pe.key||u(),ce=null;if(Gt){var Ce=Ke.cacheRef[Gt],xe=Ke.contentBlocks[Ce];if(xe.getChildKeys().isEmpty()&&xe.getText()){var He=xe.getCharacterList(),je=xe.getText();ce=u();var gt=new E({key:ce,text:je,characterList:He,parent:Gt,nextSibling:ae});Ke.contentBlocks.push(gt),xe=xe.withMutations(function(Et){Et.set("characterList",U()).set("text","").set("children",xe.children.push(gt.getKey()))})}Ke.contentBlocks[Ce]=xe.set("children",xe.children.push(ae))}var it=new Oe({key:ae,parent:Gt,type:Yt,depth:At,text:Ve,characterList:St,prevSibling:ce||(et===0||he[et-1].parent!==Gt?null:he[et-1].key),nextSibling:et===he.length-1||he[et+1].parent!==Gt?null:he[et+1].key});return Ke.contentBlocks.push(it),Ke.cacheRef[it.key]=et,Ke},ne).contentBlocks},Se=function(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c,he=pt(Y,ne,fe,l);if(he==null)return null;var be=he.chunk,ke=he.entityMap,Oe=Dt(be);return{contentBlocks:Oe,entityMap:ke}};J.exports=Se},89795:function(J,D,r){"use strict";var S=r(22767),A=S||function($){for(var Q=1;Q0;){var Re=Z.pop(),Ye=Re.parentRef,_e=Ye.getChildKeys(),Ze=_e.indexOf(Re.key),qe=Array.isArray(Re.children);if(!qe){qe||o(!1);break}var me=Re.children.map(K),ye=new g(A({},B(Re,W),{parent:Ye.getKey(),children:x(me.map(function(Te){return Te.key})),prevSibling:Ze===0?null:_e.get(Ze-1),nextSibling:Ze===_e.size-1?null:_e.get(Ze+1)}));le=le.set(ye.getKey(),ye),Z=k(Z,me,ye)}return le},f())},z=function(Q,W){return f(Q.map(function(le){var te=new C(B(le,W));return[te.getKey(),te]}))},M=function(Q,W){var le=Array.isArray(Q.blocks[0].children),te=u&&!le?c.fromRawStateToRawTreeState(Q).blocks:Q.blocks;return u?j(te,W):z(le?c.fromRawTreeStateToRawState(Q).blocks:te,W)},I=function(Q){var W=Q.entityMap,le={};return Object.keys(W).forEach(function(te){var pe=W[te],Le=pe.type,De=pe.mutability,Z=pe.data;le[te]=b.__create(Le,De,Z||{})}),le},X=function(Q){Array.isArray(Q.blocks)||o(!1);var W=I(Q),le=M(Q,W),te=le.isEmpty()?new p:p.createEmpty(le.first().getKey());return new h({blockMap:le,entityMap:W,selectionBefore:te,selectionAfter:te})};J.exports=X},93783:function(J,D,r){"use strict";var S=r(24227),A=r(52724),C=A.List;function g(h,b){var E=h.map(function(c,l){var p=b[l];return S.create({style:c,entity:p})});return C(E)}J.exports=g},44238:function(J,D,r){"use strict";var S=r(11568),A=S.substr;function C(g,h){var b=Array(g.length).fill(null);return h&&h.forEach(function(E){for(var c=A(g,0,E.offset).length,l=c+A(g,E.offset,E.length).length,p=c;p0){if(o.props.handlePastedFiles&&p(o.props.handlePastedFiles(F)))return;l(F,function(te){if(te=te||f,!!te){var pe=o._latestEditorState,Le=s(te),De=A.create({style:pe.getCurrentInlineStyle(),entity:c(pe.getCurrentContent(),pe.getSelection())}),Z=E.getCurrentBlockType(pe),Re=h.processText(Le,De,Z),Ye=S.createFromArray(Re),_e=g.replaceWithFragment(pe.getCurrentContent(),pe.getSelection(),Ye);o.update(b.push(pe,_e,"insert-fragment"))}});return}}var B=[],U=x.getText(),K=x.getHTML(),k=o._latestEditorState;if(!(o.props.handlePastedText&&p(o.props.handlePastedText(U,K,k)))){if(U&&(B=s(U)),!o.props.stripPastedStyles){var j=o.getClipboard();if(x.isRichText()&&j){if(K.indexOf(o.getEditorKey())!==-1||B.length===1&&j.size===1&&j.first().getText()===U){o.update(d(o._latestEditorState,j));return}}else if(j&&x.types.includes("com.apple.webarchive")&&!x.types.includes("text/html")&&i(B,j)){o.update(d(o._latestEditorState,j));return}if(K){var z=h.processHTML(K,o.props.blockRenderMap);if(z){var M=z.contentBlocks,I=z.entityMap;if(M){var X=S.createFromArray(M);o.update(d(o._latestEditorState,X,I));return}}}o.setClipboard(null)}if(B.length){var $=A.create({style:k.getCurrentInlineStyle(),entity:c(k.getCurrentContent(),k.getSelection())}),Q=E.getCurrentBlockType(k),W=h.processText(B,$,Q),le=S.createFromArray(W);o.update(d(o._latestEditorState,le))}}}function d(o,u,x){var F=g.replaceWithFragment(o.getCurrentContent(),o.getSelection(),u);return b.push(o,F.set("entityMap",x),"insert-fragment")}function i(o,u){return o.length===u.size&&u.valueSeq().every(function(x,F){return x.getText()===o[F]})}J.exports=a},71576:function(J,D,r){"use strict";var S=r(13406),A=r(19103),C=r(25981),g=r(44083);function h(b){if(!(b._blockSelectEvents||b._latestEditorState!==b.props.editorState)){var E=b.props.editorState,c=A.findDOMNode(b.editorContainer);c||g(!1),c.firstChild instanceof HTMLElement||g(!1);var l=C(E,c.firstChild),p=l.selectionState;p!==E.getSelection()&&(l.needsRecovery?E=S.forceSelection(E,p):E=S.acceptSelection(E,p),b.update(E))}}J.exports=h},93115:function(J,D,r){"use strict";var S=r(29072),A=r(11568),C=A.strlen;function g(h,b){var E=[];return h.findEntityRanges(function(c){return!!c.getEntity()},function(c,l){var p=h.getText(),s=h.getEntityAt(c);E.push({offset:C(p.slice(0,c)),length:C(p.slice(c,l)),key:Number(b[S.stringify(s)])})}),E}J.exports=g},50151:function(J,D,r){"use strict";var S=r(11568),A=r(94718),C=function(l,p){return l===p},g=function(l){return!!l},h=[];function b(c,l,p){var s=[],a=l.map(function(d){return d.has(p)}).toList();return A(a,C,g,function(d,i){var o=c.getText();s.push({offset:S.strlen(o.slice(0,d)),length:S.strlen(o.slice(d,i)),style:p})}),s}function E(c){var l=c.getCharacterList().map(function(s){return s.getStyle()}).toList(),p=l.flatten().toSet().map(function(s){return b(c,l,s)});return Array.prototype.concat.apply(h,p.toJS())}J.exports=E},88995:function(J,D,r){"use strict";var S=r(11568),A=r(11174),C=r(44083);function g(c){var l=getComputedStyle(c),p=document.createElement("div");p.style.fontFamily=l.fontFamily,p.style.fontSize=l.fontSize,p.style.fontStyle=l.fontStyle,p.style.fontWeight=l.fontWeight,p.style.lineHeight=l.lineHeight,p.style.position="absolute",p.textContent="M";var s=document.body;s||C(!1),s.appendChild(p);var a=p.getBoundingClientRect();return s.removeChild(p),a.height}function h(c,l){for(var p=1/0,s=1/0,a=-1/0,d=-1/0,i=0;i=0;u--)if(!(o!=null&&u>0&&S.isSurrogatePair(o,u-1)))if(c.setStart(d,u),h(A(c),p))s=d,a=u;else break;if(u===-1||d.childNodes.length===0)break;d=d.childNodes[u],i=b(d)}while(!0);return c.setStart(s,a),c}J.exports=E},91658:function(J,D,r){"use strict";var S=r(68518);function A(C){for(var g=C;g&&g!==document.documentElement;){var h=S(g);if(h!=null)return h;g=g.parentNode}return null}J.exports=A},94718:function(J){"use strict";function D(r,S,A,C){if(r.size){var g=0;r.reduce(function(h,b,E){return S(h,b)||(A(h)&&C(g,E),g=E),b}),A(r.last())&&C(g,r.count())}}J.exports=D},85607:function(J){"use strict";var D={},r=Math.pow(2,24);function S(){for(var A=void 0;A===void 0||D.hasOwnProperty(A)||!isNaN(+A);)A=Math.floor(Math.random()*r).toString(32);return D[A]=!0,A}J.exports=S},3949:function(J,D,r){"use strict";var S=r(56004),A=r(59833),C=r(44083);function g(b,E,c,l,p){var s=l.getStartOffset(),a=l.getEndOffset(),d=E.getEntityAt(s),i=c.getEntityAt(a-1);if(!d&&!i)return l;var o=l;if(d&&d===i)o=h(b,E,o,p,d,!0,!0);else if(d&&i){var u=h(b,E,o,p,d,!1,!0),x=h(b,c,o,p,i,!1,!1);o=o.merge({anchorOffset:u.getAnchorOffset(),focusOffset:x.getFocusOffset(),isBackward:!1})}else if(d){var F=h(b,E,o,p,d,!1,!0);o=o.merge({anchorOffset:F.getStartOffset(),isBackward:!1})}else if(i){var f=h(b,c,o,p,i,!1,!1);o=o.merge({focusOffset:f.getEndOffset(),isBackward:!1})}return o}function h(b,E,c,l,p,s,a){var d=c.getStartOffset(),i=c.getEndOffset(),o=b.__get(p),u=o.getMutability(),x=a?d:i;if(u==="MUTABLE")return c;var F=A(E,p).filter(function(U){return x<=U.end&&x>=U.start});F.length!=1&&C(!1);var f=F[0];if(u==="IMMUTABLE")return c.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});s||(a?i=f.end:d=f.start);var B=S.getRemovalRange(d,i,E.getText().slice(f.start,f.end),f.start,l);return c.merge({anchorOffset:B.start,focusOffset:B.end,isBackward:!1})}J.exports=g},84391:function(J,D,r){"use strict";var S=r(47382),A=r(25702),C=function(h,b){var E=b.getStartKey(),c=b.getStartOffset(),l=b.getEndKey(),p=b.getEndOffset(),s=A(h,b),a=s.getBlockMap(),d=a.keySeq(),i=d.indexOf(E),o=d.indexOf(l)+1;return S(a.slice(i,o).map(function(u,x){var F=u.getText(),f=u.getCharacterList();return E===l?u.merge({text:F.slice(c,p),characterList:f.slice(c,p)}):x===E?u.merge({text:F.slice(c),characterList:f.slice(c)}):x===l?u.merge({text:F.slice(0,p),characterList:f.slice(0,p)}):u}))};J.exports=C},63169:function(J,D,r){"use strict";var S=r(28131),A=r(16803),C=r(13567),g=C.isPlatform("Mac OS X"),h=C.isPlatform("Windows"),b=g&&C.isBrowser("Firefox < 29"),E=S.hasCommandModifier,c=S.isCtrlKeyCommand;function l(i){return g&&i.altKey||c(i)}function p(i){return E(i)?i.shiftKey?"redo":"undo":null}function s(i){return h&&i.shiftKey?null:l(i)?"delete-word":"delete"}function a(i){return E(i)&&g?"backspace-to-start-of-line":l(i)?"backspace-word":"backspace"}function d(i){switch(i.keyCode){case 66:return E(i)?"bold":null;case 68:return c(i)?"delete":null;case 72:return c(i)?"backspace":null;case 73:return E(i)?"italic":null;case 74:return E(i)?"code":null;case 75:return!h&&c(i)?"secondary-cut":null;case 77:return c(i)?"split-block":null;case 79:return c(i)?"split-block":null;case 84:return g&&c(i)?"transpose-characters":null;case 85:return E(i)?"underline":null;case 87:return g&&c(i)?"backspace-word":null;case 89:return c(i)?h?"redo":"secondary-paste":null;case 90:return p(i)||null;case A.RETURN:return"split-block";case A.DELETE:return s(i);case A.BACKSPACE:return a(i);case A.LEFT:return b&&E(i)?"move-selection-to-start-of-block":null;case A.RIGHT:return b&&E(i)?"move-selection-to-end-of-block":null;default:return null}}J.exports=d},25981:function(J,D,r){"use strict";var S=r(93717);function A(C,g){var h=r.g.getSelection();return h.rangeCount===0?{selectionState:C.getSelection().set("hasFocus",!1),needsRecovery:!1}:S(C,g,h.anchorNode,h.anchorOffset,h.focusNode,h.focusOffset)}J.exports=A},93717:function(J,D,r){"use strict";var S=r(91658),A=r(68518),C=r(78201),g=r(44083),h=r(17e3);function b(s,a,d,i,o,u){var x=d.nodeType===Node.TEXT_NODE,F=o.nodeType===Node.TEXT_NODE;if(x&&F)return{selectionState:C(s,h(S(d)),i,h(S(o)),u),needsRecovery:!1};var f=null,B=null,U=!0;return x?(f={key:h(S(d)),offset:i},B=l(a,o,u)):F?(B={key:h(S(o)),offset:u},f=l(a,d,i)):(f=l(a,d,i),B=l(a,o,u),d===o&&i===u&&(U=!!d.firstChild&&d.firstChild.nodeName!=="BR")),{selectionState:C(s,f.key,f.offset,B.key,B.offset),needsRecovery:U}}function E(s){for(;s.firstChild&&(s.firstChild instanceof Element&&s.firstChild.getAttribute("data-blocks")==="true"||A(s.firstChild));)s=s.firstChild;return s}function c(s){for(;s.lastChild&&(s.lastChild instanceof Element&&s.lastChild.getAttribute("data-blocks")==="true"||A(s.lastChild));)s=s.lastChild;return s}function l(s,a,d){var i=a,o=S(i);if(o!=null||s&&(s===i||s.firstChild===i)||g(!1),s===i&&(i=i.firstChild,i instanceof Element&&i.getAttribute("data-contents")==="true"||g(!1),d>0&&(d=i.childNodes.length)),d===0){var u=null;if(o!=null)u=o;else{var x=E(i);u=h(A(x))}return{key:u,offset:0}}var F=i.childNodes[d-1],f=null,B=null;if(!A(F))f=h(o),B=p(F);else{var U=c(F);f=h(A(U)),B=p(U)}return{key:f,offset:B}}function p(s){var a=s.textContent;return a===` `?0:a.length}J.exports=b},4509:function(J){"use strict";function D(S,A){var C;if(A.isCollapsed()){var g=A.getAnchorKey(),h=A.getAnchorOffset();return h>0?(C=S.getBlockForKey(g).getEntityAt(h-1),C!==S.getBlockForKey(g).getEntityAt(h)?null:r(S.getEntityMap(),C)):null}var b=A.getStartKey(),E=A.getStartOffset(),c=S.getBlockForKey(b);return C=E===c.getLength()?null:c.getEntityAt(E),r(S.getEntityMap(),C)}function r(S,A){if(A){var C=S.__get(A);return C.getMutability()==="MUTABLE"?A:null}return null}J.exports=D},6518:function(J,D,r){"use strict";var S=r(84391);function A(C){var g=C.getSelection();return g.isCollapsed()?null:S(C.getCurrentContent(),g)}J.exports=A},14284:function(J,D,r){"use strict";var S=r(73833),A=function(g,h){var b=g instanceof S;if(!b)return null;var E=g.getNextSiblingKey();if(E)return E;var c=g.getParentKey();if(!c)return null;for(var l=h.get(c);l&&!l.getNextSiblingKey();){var p=l.getParentKey();l=p?h.get(p):null}return l?l.getNextSiblingKey():null};J.exports=A},40266:function(J,D,r){"use strict";var S=r(11174);function A(C){var g=S(C),h=0,b=0,E=0,c=0;if(g.length){if(g.length>1&&g[0].width===0){var l=g[1];h=l.top,b=l.right,E=l.bottom,c=l.left}else{var p=g[0];h=p.top,b=p.right,E=p.bottom,c=p.left}for(var s=1;sh){var c=C.getKeyBefore(g);if(c==null)b=g;else{b=c;var l=C.getBlockForKey(c);E=l.getText().length}}else E=h-S;return A.merge({focusKey:b,focusOffset:E,isBackward:!0})}J.exports=D},10749:function(J){"use strict";function D(r,S){var A=r.getSelection(),C=A.getStartKey(),g=A.getStartOffset(),h=r.getCurrentContent(),b=C,E,c=h.getBlockForKey(C);return S>c.getText().length-g?(b=h.getKeyAfter(C),E=0):E=g+S,A.merge({focusKey:b,focusOffset:E})}J.exports=D},47382:function(J,D,r){"use strict";var S=r(73833),A=r(52724),C=r(85607),g=A.OrderedMap,h=function(l){var p={},s=void 0;return g(l.withMutations(function(a){a.forEach(function(d,i){var o=d.getKey(),u=d.getNextSiblingKey(),x=d.getPrevSiblingKey(),F=d.getChildKeys(),f=d.getParentKey(),B=C();if(p[o]=B,u){var U=a.get(u);U?a.setIn([u,"prevSibling"],B):a.setIn([o,"nextSibling"],null)}if(x){var K=a.get(x);K?a.setIn([x,"nextSibling"],B):a.setIn([o,"prevSibling"],null)}if(f&&a.get(f)){var k=a.get(f),j=k.getChildKeys();a.setIn([f,"children"],j.set(j.indexOf(d.getKey()),B))}else a.setIn([o,"parent"],null),s&&(a.setIn([s.getKey(),"nextSibling"],B),a.setIn([o,"prevSibling"],p[s.getKey()])),s=a.get(o);F.forEach(function(z){var M=a.get(z);M?a.setIn([z,"parent"],B):a.setIn([o,"children"],d.getChildKeys().filter(function(I){return I!==z}))})})}).toArray().map(function(a){return[p[a.getKey()],a.set("key",p[a.getKey()])]}))},b=function(l){return g(l.toArray().map(function(p){var s=C();return[s,p.set("key",s)]}))},E=function(l){var p=l.first()instanceof S;return p?h(l):b(l)};J.exports=E},25702:function(J,D,r){"use strict";var S=r(24227),A=r(94718),C=r(44083);function g(E,c){var l=E.getBlockMap(),p=E.getEntityMap(),s={},a=c.getStartKey(),d=c.getStartOffset(),i=l.get(a),o=b(p,i,d);o!==i&&(s[a]=o);var u=c.getEndKey(),x=c.getEndOffset(),F=l.get(u);a===u&&(F=o);var f=b(p,F,x);return f!==F&&(s[u]=f),Object.keys(s).length?E.merge({blockMap:l.merge(s),selectionAfter:c}):E.set("selectionAfter",c)}function h(E,c,l){var p;return A(E,function(s,a){return s.getEntity()===a.getEntity()},function(s){return s.getEntity()===c},function(s,a){s<=l&&a>=l&&(p={start:s,end:a})}),typeof p!="object"&&C(!1),p}function b(E,c,l){var p=c.getCharacterList(),s=l>0?p.get(l-1):void 0,a=lu;)o=o.pop(),x--;else{var F=o.slice(0,u),f=o.slice(x);o=F.concat(f).toList()}return o};J.exports=a},40563:function(J,D,r){"use strict";var S=r(89808);function A(C,g,h){var b=C.getSelection(),E=C.getCurrentContent(),c=b;if(b.isCollapsed()){if(h==="forward"){if(C.isSelectionAtEndOfContent())return E}else if(C.isSelectionAtStartOfContent())return E;if(c=g(C),c===b)return E}return S.removeRange(E,c,h)}J.exports=A},2293:function(J){"use strict";var D=new RegExp("\r","g");function r(S){return S.replace(D,"")}J.exports=r},17742:function(J,D,r){"use strict";var S=r(33066),A=r(29558),C=r(21026),g=r(44083);function h(a,d){if(!a)return"[empty]";var i=b(a,d);return i.nodeType===Node.TEXT_NODE?i.textContent:(i instanceof Element||g(!1),i.outerHTML)}function b(a,d){var i=d!==void 0?d(a):[];if(a.nodeType===Node.TEXT_NODE){var o=a.textContent.length;return document.createTextNode("[text "+o+(i.length?" | "+i.join(", "):"")+"]")}var u=a.cloneNode();u.nodeType===1&&i.length&&u.setAttribute("data-labels",i.join(", "));for(var x=a.childNodes,F=0;F=f,M=B===i&&o<=U&&u>=U;if(z&&M){x.removeAllRanges(),s(x,d,f-o,a),p(x,d,U-o,a);return}if(!K)z&&(x.removeAllRanges(),s(x,d,f-o,a)),M&&p(x,d,U-o,a);else if(M&&(x.removeAllRanges(),s(x,d,U-o,a)),z){var I=x.focusNode,X=x.focusOffset;x.removeAllRanges(),s(x,d,f-o,a),p(x,I,X,a)}}}function p(a,d,i,o){var u=C();if(a.extend&&A(u,d)){i>c(d)&&S.logSelectionStateFailure({anonymizedDom:E(d),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(o.toJS())});var x=d===a.focusNode;try{a.extend(d,i)}catch(f){throw S.logSelectionStateFailure({anonymizedDom:E(d,function(B){var U=[];return B===u&&U.push("active element"),B===a.anchorNode&&U.push("selection anchor node"),B===a.focusNode&&U.push("selection focus node"),U}),extraParams:JSON.stringify({activeElementName:u?u.nodeName:null,nodeIsFocus:d===a.focusNode,nodeWasFocus:x,selectionRangeCount:a.rangeCount,selectionAnchorNodeName:a.anchorNode?a.anchorNode.nodeName:null,selectionAnchorOffset:a.anchorOffset,selectionFocusNodeName:a.focusNode?a.focusNode.nodeName:null,selectionFocusOffset:a.focusOffset,message:f?""+f:null,offset:i},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),f}}else{var F=a.getRangeAt(0);F.setEnd(d,i),a.addRange(F.cloneRange())}}function s(a,d,i,o){var u=document.createRange();i>c(d)&&S.logSelectionStateFailure({anonymizedDom:E(d),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(o.toJS())}),u.setStart(d,i),a.addRange(u)}J.exports=l},72439:function(J,D,r){"use strict";var S=r(73833),A=r(52724),C=r(85607),g=r(44083),h=A.List,b=A.Map,E=function(s,a,d){if(s){var i=a.get(s);i&&a.set(s,d(i))}},c=function(s,a,d){return s.withMutations(function(i){var o=a.getKey(),u=d.getKey();E(a.getParentKey(),i,function(x){var F=x.getChildKeys(),f=F.indexOf(o)+1,B=F.toArray();return B.splice(f,0,u),x.merge({children:h(B)})}),E(a.getNextSiblingKey(),i,function(x){return x.merge({prevSibling:u})}),E(o,i,function(x){return x.merge({nextSibling:u})}),E(u,i,function(x){return x.merge({prevSibling:o})})})},l=function(s,a){a.isCollapsed()||g(!1);var d=a.getAnchorKey(),i=a.getAnchorOffset(),o=s.getBlockMap(),u=o.get(d),x=u.getText(),F=u.getCharacterList(),f=C(),B=u instanceof S,U=u.merge({text:x.slice(0,i),characterList:F.slice(0,i)}),K=U.merge({key:f,text:x.slice(i),characterList:F.slice(i),data:b()}),k=o.toSeq().takeUntil(function(M){return M===u}),j=o.toSeq().skipUntil(function(M){return M===u}).rest(),z=k.concat([[d,U],[f,K]],j).toOrderedMap();return B&&(u.getChildKeys().isEmpty()||g(!1),z=c(z,U,K)),s.merge({blockMap:z,selectionBefore:a,selectionAfter:a.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})};J.exports=l},68208:function(J){"use strict";var D=/\r\n?|\n/g;function r(S){return S.split(D)}J.exports=r},64162:function(J,D,r){(function(S,A){J.exports=A(r(87937),r(52724))})(window,function(S,A){return h={},C.m=g=[function(b,E){b.exports=S},function(b,E){b.exports=A},function(b,E,c){b.exports=c(3)},function(b,E,c){"use strict";c.r(E);var l=c(0),p=c(1);function s(me){var ye=me.getSelection(),Te=me.getCurrentContent(),we=ye.getStartKey(),Me=ye.getEndKey(),Ne=Te.getBlockMap();return Ne.toSeq().skipUntil(function(ze,We){return We===we}).takeUntil(function(ze,We){return We===Me}).concat([[Me,Ne.get(Me)]])}function a(me){return s(me).toList()}function d(me){if(me)return a(me).get(0)}function i(me){if(me){var ye=d(me),Te=me.getCurrentContent().getBlockMap().toSeq().toList(),we=0;if(Te.forEach(function(Me,Ne){Me.get("key")===ye.get("key")&&(we=Ne-1)}),-1-1)return z.get(M)}}function p(K){return K?K.getCurrentContent().getBlockMap().toList():new B.List}function s(K){var k=E(K);if(!k.some(function(j){return j.type!==k.get(0).type}))return k.get(0).type}function a(K){var k=f.RichUtils.tryToRemoveBlockStyle(K);return k?f.EditorState.push(K,k,"change-block-type"):K}function d(K){var k="",j=K.getSelection(),z=j.getAnchorOffset(),M=j.getFocusOffset(),I=E(K);if(I.size>0){if(j.getIsBackward()){var X=z;z=M,M=X}for(var $=0;$0)for(var z=0;z=0}),j}var M=k.getStartOffset(),I=k.getEndOffset(),X=(0,f.getSelectedBlocksList)(K);if(X.size>0){var $=function(){for(var Q={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},W=0;W0)return M.get(0)}function d(K,k){var j=K.getCurrentInlineStyle().toList(),z=j.filter(function(M){return M.startsWith(k.toLowerCase())});if(z&&z.size>0)return z.get(0)}function i(K,k){if(K&&k&&k.length>0){var j=function(){var z=K.getSelection(),M={};if(z.isCollapsed())return k.forEach(function(W){M[W]=d(K,W)}),{v:M};var I=z.getStartOffset(),X=z.getEndOffset(),$=(0,f.getSelectedBlocksList)(K);if($.size>0){for(var Q=0;Q<$.size;Q+=1)(function(W){var le=W===0?I:0,te=W===$.size-1?X:$.get(W).getText().length;le===te&&le===0?(le=1,te=2):le===te&&(le-=1);for(var pe=le;pe0)return(0,s.changeDepth)(a,-1,x)}}}function E(a){return a.which===13&&(a.getModifierState("Shift")||a.getModifierState("Alt")||a.getModifierState("Control"))}function c(a,d){return E(d)?a.getSelection().isCollapsed()?l.RichUtils.insertSoftNewline(a):(0,p.addLineBreakRemovingSelection)(a):b(a)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=c;var l=h(0),p=h(1),s=h(2)}])})},8768:function(J,D,r){"use strict";function S(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}var A=r(24144),C=r(19543),g=r(5047),h=new RegExp(`\r `,"g"),b=` `,E={"text/rtf":1,"text/html":1};function c(p){if(p.kind=="file")return p.getAsFile()}var l=function(){function p(s){S(this,p),this.data=s,this.types=s.types?C(s.types):[]}return p.prototype.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(a){return E[a]})},p.prototype.getText=function(){var a;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(a=this.data.getData("text/plain")):a=this.data.getData("Text")),a?a.replace(h,b):null},p.prototype.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},p.prototype.isLink=function(){return this.types.some(function(a){return a.indexOf("Url")!=-1||a.indexOf("text/uri-list")!=-1||a.indexOf("text/x-moz-url")})},p.prototype.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var a=this.data.getData("text/x-moz-url").split(` `);return a[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},p.prototype.isImage=function(){var a=this.types.some(function(u){return u.indexOf("application/x-moz-file")!=-1});if(a)return!0;for(var d=this.getFiles(),i=0;i0},p}();J.exports=l},16803:function(J){"use strict";J.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}},24144:function(J){"use strict";var D={isImage:function(A){return r(A)[0]==="image"},isJpeg:function(A){var C=r(A);return D.isImage(A)&&(C[1]==="jpeg"||C[1]==="pjpeg")}};function r(S){return S.split("/")}J.exports=D},39937:function(J){"use strict";function D(S,A){return!!A&&(S===A.documentElement||S===A.body)}var r={getTop:function(A){var C=A.ownerDocument;return D(A,C)?C.body.scrollTop||C.documentElement.scrollTop:A.scrollTop},setTop:function(A,C){var g=A.ownerDocument;D(A,g)?g.body.scrollTop=g.documentElement.scrollTop=C:A.scrollTop=C},getLeft:function(A){var C=A.ownerDocument;return D(A,C)?C.body.scrollLeft||C.documentElement.scrollLeft:A.scrollLeft},setLeft:function(A,C){var g=A.ownerDocument;D(A,g)?g.body.scrollLeft=g.documentElement.scrollLeft=C:A.scrollLeft=C}};J.exports=r},68520:function(J,D,r){"use strict";var S=r(39404);function A(g,h){var b=C.get(g,h);return b==="auto"||b==="scroll"}var C={get:S,getScrollParent:function(h){if(!h)return null;for(var b=h.ownerDocument;h&&h!==b.body;){if(A(h,"overflow")||A(h,"overflowY")||A(h,"overflowX"))return h;h=h.parentNode}return b.defaultView||b.parentWindow}};J.exports=C},35343:function(J){"use strict";var D=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;\u30FB\u3001\u3002\u3008-\u3011\u3014-\u301F\uFF1A-\uFF1F\uFF01-\uFF0F\uFF3B-\uFF40\uFF5B-\uFF65\u2E2E\u061F\u066A-\u066C\u061B\u060C\u060D\uFD3E\uFD3F\u1801\u0964\u104A\u104B\u2010-\u2027\u2030-\u205E\xA1-\xB1\xB4-\xB8\xBA\xBB\xBF]`;J.exports={getPunctuation:function(){return D}}},26213:function(J){"use strict";function D(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}var r=function(){function S(A){D(this,S),this._uri=A}return S.prototype.toString=function(){return this._uri},S}();J.exports=r},71873:function(J,D,r){"use strict";var S=r(83673),A=r(44083),C={L:"A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BEF\u0BF0-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",R:"\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F",AL:"\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75\uFE76-\uFEFC\uFEFD-\uFEFE"},g=new RegExp("["+C.L+C.R+C.AL+"]"),h=new RegExp("["+C.R+C.AL+"]");function b(d){var i=g.exec(d);return i==null?null:i[0]}function E(d){var i=b(d);return i==null?S.NEUTRAL:h.exec(i)?S.RTL:S.LTR}function c(d,i){if(i=i||S.NEUTRAL,!d.length)return i;var o=E(d);return o===S.NEUTRAL?i:o}function l(d,i){return i||(i=S.getGlobalDir()),S.isStrong(i)||A(!1),c(d,i)}function p(d,i){return l(d,i)===S.LTR}function s(d,i){return l(d,i)===S.RTL}var a={firstStrongChar:b,firstStrongCharDir:E,resolveBlockDir:c,getDirection:l,isDirectionLTR:p,isDirectionRTL:s};J.exports=a},83673:function(J,D,r){"use strict";var S=r(44083),A="NEUTRAL",C="LTR",g="RTL",h=null;function b(d){return d===C||d===g}function E(d){return b(d)||S(!1),d===C?"ltr":"rtl"}function c(d,i){return b(d)||S(!1),b(i)||S(!1),d===i?null:E(d)}function l(d){h=d}function p(){l(C)}function s(){return h||this.initGlobalDir(),h||S(!1),h}var a={NEUTRAL:A,LTR:C,RTL:g,isStrong:b,getHTMLDir:E,getHTMLDirIfDifferent:c,setGlobalDir:l,initGlobalDir:p,getGlobalDir:s};J.exports=a},84720:function(J,D,r){"use strict";function S(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}var A=r(71873),C=r(83673),g=r(44083),h=function(){function b(E){S(this,b),E?C.isStrong(E)||g(!1):E=C.getGlobalDir(),this._defaultDir=E,this.reset()}return b.prototype.reset=function(){this._lastDir=this._defaultDir},b.prototype.getDirection=function(c){return this._lastDir=A.getDirection(c,this._lastDir),this._lastDir},b}();J.exports=h},11568:function(J,D,r){"use strict";var S=r(44083),A=55296,C=56319,g=56320,h=57343,b=/[\uD800-\uDFFF]/;function E(u){return A<=u&&u<=h}function c(u,x){if(0<=x&&xf||F<=0)return"";var B=0;if(x>0){for(;x>0&&B=f)return""}else if(x<0){for(B=f;x<0&&00&&U=|~>|~|>|)?\s*(.+)/,b=/^(\d*)(.*)/;function E(z,M){var I=z.split(C);return I.length>1?I.some(function(X){return j.contains(X,M)}):(z=I[0].trim(),c(z,M))}function c(z,M){var I=z.split(g);if(I.length>0&&I.length<=2||S(!1),I.length===1)return l(I[0],M);var X=I[0],$=I[1];return F(X)&&F($)||S(!1),l(">="+X,M)&&l("<="+$,M)}function l(z,M){if(z=z.trim(),z==="")return!0;var I=M.split(A),X=u(z),$=X.modifier,Q=X.rangeComponents;switch($){case"<":return p(I,Q);case"<=":return s(I,Q);case">=":return d(I,Q);case">":return i(I,Q);case"~":case"~>":return o(I,Q);default:return a(I,Q)}}function p(z,M){return k(z,M)===-1}function s(z,M){var I=k(z,M);return I===-1||I===0}function a(z,M){return k(z,M)===0}function d(z,M){var I=k(z,M);return I===1||I===0}function i(z,M){return k(z,M)===1}function o(z,M){var I=M.slice(),X=M.slice();X.length>1&&X.pop();var $=X.length-1,Q=parseInt(X[$],10);return x(Q)&&(X[$]=Q+1+""),d(z,I)&&p(z,X)}function u(z){var M=z.split(A),I=M[0].match(h);return I||S(!1),{modifier:I[1],rangeComponents:[I[2]].concat(M.slice(1))}}function x(z){return!isNaN(z)&&isFinite(z)}function F(z){return!u(z).modifier}function f(z,M){for(var I=z.length;IM?1:z-1;function r(S){return S=S||document,S.scrollingElement?S.scrollingElement:!D&&S.compatMode==="CSS1Compat"?S.documentElement:S.body}J.exports=r},18850:function(J,D,r){"use strict";var S=r(44175);function A(C){var g=S(C);return{x:g.left,y:g.top,width:g.right-g.left,height:g.bottom-g.top}}J.exports=A},44175:function(J,D,r){"use strict";var S=r(29558);function A(C){var g=C.ownerDocument.documentElement;if(!("getBoundingClientRect"in C)||!S(g,C))return{left:0,right:0,top:0,bottom:0};var h=C.getBoundingClientRect();return{left:Math.round(h.left)-g.clientLeft,right:Math.round(h.right)-g.clientLeft,top:Math.round(h.top)-g.clientTop,bottom:Math.round(h.bottom)-g.clientTop}}J.exports=A},56182:function(J,D,r){"use strict";var S=r(43150),A=r(76488);function C(g){var h=S(g.ownerDocument||g.document);g.Window&&g instanceof g.Window&&(g=h);var b=A(g),E=g===h?g.ownerDocument.documentElement:g,c=g.scrollWidth-E.clientWidth,l=g.scrollHeight-E.clientHeight;return b.x=Math.max(0,Math.min(b.x,c)),b.y=Math.max(0,Math.min(b.y,l)),b}J.exports=C},39404:function(J,D,r){"use strict";var S=r(98016),A=r(78019);function C(h){return h==null?h:String(h)}function g(h,b){var E=void 0;if(window.getComputedStyle&&(E=window.getComputedStyle(h,null),E))return C(E.getPropertyValue(A(b)));if(document.defaultView&&document.defaultView.getComputedStyle){if(E=document.defaultView.getComputedStyle(h,null),E)return C(E.getPropertyValue(A(b)));if(b==="display")return"none"}return h.currentStyle?C(b==="float"?h.currentStyle.cssFloat||h.currentStyle.styleFloat:h.currentStyle[S(b)]):C(h.style&&h.style[S(b)])}J.exports=g},76488:function(J){"use strict";function D(r){return r.Window&&r instanceof r.Window?{x:r.pageXOffset||r.document.documentElement.scrollLeft,y:r.pageYOffset||r.document.documentElement.scrollTop}:{x:r.scrollLeft,y:r.scrollTop}}J.exports=D},92699:function(J){"use strict";function D(){var A=void 0;return document.documentElement&&(A=document.documentElement.clientWidth),!A&&document.body&&(A=document.body.clientWidth),A||0}function r(){var A=void 0;return document.documentElement&&(A=document.documentElement.clientHeight),!A&&document.body&&(A=document.body.clientHeight),A||0}function S(){return{width:window.innerWidth||D(),height:window.innerHeight||r()}}S.withoutScrollbars=function(){return{width:D(),height:r()}},J.exports=S},78019:function(J){"use strict";var D=/([A-Z])/g;function r(S){return S.replace(D,"-$1").toLowerCase()}J.exports=r},44083:function(J){"use strict";var D=function(A){};function r(S,A,C,g,h,b,E,c){if(D(A),!S){var l;if(A===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[C,g,h,b,E,c],s=0;l=new Error(A.replace(/%s/g,function(){return p[s++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}J.exports=r},89139:function(J){"use strict";function D(r){var S=r?r.ownerDocument||r:document,A=S.defaultView||window;return!!(r&&(typeof A.Node=="function"?r instanceof A.Node:typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.nodeName=="string"))}J.exports=D},46683:function(J,D,r){"use strict";var S=r(89139);function A(C){return S(C)&&C.nodeType==3}J.exports=A},72115:function(J){"use strict";function D(r){r||(r="");var S=void 0,A=arguments.length;if(A>1)for(var C=1;C>>0;if(""+T!==n||T===4294967295)return NaN;n=T}return n<0?z(e)+n:n}function I(){return!0}function X(e,n,T){return(e===0||T!==void 0&&e<=-T)&&(n===void 0||T!==void 0&&n>=T)}function $(e,n){return W(e,n,0)}function Q(e,n){return W(e,n,n)}function W(e,n,T){return e===void 0?T:e<0?Math.max(0,n+e):n===void 0?e:Math.min(n,e)}var le=0,te=1,pe=2,Le=typeof Symbol=="function"&&Symbol.iterator,De="@@iterator",Z=Le||De;function Re(e){this.next=e}Re.prototype.toString=function(){return"[Iterator]"},Re.KEYS=le,Re.VALUES=te,Re.ENTRIES=pe,Re.prototype.inspect=Re.prototype.toSource=function(){return this.toString()},Re.prototype[Z]=function(){return this};function Ye(e,n,T,N){var H=e===0?n:e===1?T:[n,T];return N?N.value=H:N={value:H,done:!1},N}function _e(){return{value:void 0,done:!0}}function Ze(e){return!!ye(e)}function qe(e){return e&&typeof e.next=="function"}function me(e){var n=ye(e);return n&&n.call(e)}function ye(e){var n=e&&(Le&&e[Le]||e[De]);if(typeof n=="function")return n}function Te(e){return e&&typeof e.length=="number"}r(we,S);function we(e){return e==null?V():h(e)?e.toSeq():fe(e)}we.of=function(){return we(arguments)},we.prototype.toSeq=function(){return this},we.prototype.toString=function(){return this.__toString("Seq {","}")},we.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},we.prototype.__iterate=function(e,n){return be(this,e,n,!0)},we.prototype.__iterator=function(e,n){return ke(this,e,n,!0)},r(Me,we);function Me(e){return e==null?V().toKeyedSeq():h(e)?b(e)?e.toSeq():e.fromEntrySeq():Y(e)}Me.prototype.toKeyedSeq=function(){return this},r(Ne,we);function Ne(e){return e==null?V():h(e)?b(e)?e.entrySeq():e.toIndexedSeq():ne(e)}Ne.of=function(){return Ne(arguments)},Ne.prototype.toIndexedSeq=function(){return this},Ne.prototype.toString=function(){return this.__toString("Seq [","]")},Ne.prototype.__iterate=function(e,n){return be(this,e,n,!1)},Ne.prototype.__iterator=function(e,n){return ke(this,e,n,!1)},r(ze,we);function ze(e){return(e==null?V():h(e)?b(e)?e.entrySeq():e:ne(e)).toSetSeq()}ze.of=function(){return ze(arguments)},ze.prototype.toSetSeq=function(){return this},we.isSeq=Dt,we.Keyed=Me,we.Set=ze,we.Indexed=Ne;var We="@@__IMMUTABLE_SEQ__@@";we.prototype[We]=!0,r(rt,Ne);function rt(e){this._array=e,this.size=e.length}rt.prototype.get=function(e,n){return this.has(e)?this._array[M(this,e)]:n},rt.prototype.__iterate=function(e,n){for(var T=this._array,N=T.length-1,H=0;H<=N;H++)if(e(T[n?N-H:H],H,this)===!1)return H+1;return H},rt.prototype.__iterator=function(e,n){var T=this._array,N=T.length-1,H=0;return new Re(function(){return H>N?_e():Ye(e,H,T[n?N-H++:H++])})},r(Fe,Me);function Fe(e){var n=Object.keys(e);this._object=e,this._keys=n,this.size=n.length}Fe.prototype.get=function(e,n){return n!==void 0&&!this.has(e)?n:this._object[e]},Fe.prototype.has=function(e){return this._object.hasOwnProperty(e)},Fe.prototype.__iterate=function(e,n){for(var T=this._object,N=this._keys,H=N.length-1,ee=0;ee<=H;ee++){var oe=N[n?H-ee:ee];if(e(T[oe],oe,this)===!1)return ee+1}return ee},Fe.prototype.__iterator=function(e,n){var T=this._object,N=this._keys,H=N.length-1,ee=0;return new Re(function(){var oe=N[n?H-ee:ee];return ee++>H?_e():Ye(e,oe,T[oe])})},Fe.prototype[d]=!0,r(Je,Ne);function Je(e){this._iterable=e,this.size=e.length||e.size}Je.prototype.__iterateUncached=function(e,n){if(n)return this.cacheResult().__iterate(e,n);var T=this._iterable,N=me(T),H=0;if(qe(N))for(var ee;!(ee=N.next()).done&&e(ee.value,H++,this)!==!1;);return H},Je.prototype.__iteratorUncached=function(e,n){if(n)return this.cacheResult().__iterator(e,n);var T=this._iterable,N=me(T);if(!qe(N))return new Re(_e);var H=0;return new Re(function(){var ee=N.next();return ee.done?ee:Ye(e,H++,ee.value)})},r(pt,Ne);function pt(e){this._iterator=e,this._iteratorCache=[]}pt.prototype.__iterateUncached=function(e,n){if(n)return this.cacheResult().__iterate(e,n);for(var T=this._iterator,N=this._iteratorCache,H=0;H=N.length){var ee=T.next();if(ee.done)return ee;N[H]=ee.value}return Ye(e,H,N[H++])})};function Dt(e){return!!(e&&e[We])}var Se;function V(){return Se||(Se=new rt([]))}function Y(e){var n=Array.isArray(e)?new rt(e).fromEntrySeq():qe(e)?new pt(e).fromEntrySeq():Ze(e)?new Je(e).fromEntrySeq():typeof e=="object"?new Fe(e):void 0;if(!n)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return n}function ne(e){var n=he(e);if(!n)throw new TypeError("Expected Array or iterable object of values: "+e);return n}function fe(e){var n=he(e)||typeof e=="object"&&new Fe(e);if(!n)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return n}function he(e){return Te(e)?new rt(e):qe(e)?new pt(e):Ze(e)?new Je(e):void 0}function be(e,n,T,N){var H=e._cache;if(H){for(var ee=H.length-1,oe=0;oe<=ee;oe++){var se=H[T?ee-oe:oe];if(n(se[1],N?se[0]:oe,e)===!1)return oe+1}return oe}return e.__iterateUncached(n,T)}function ke(e,n,T,N){var H=e._cache;if(H){var ee=H.length-1,oe=0;return new Re(function(){var se=H[T?ee-oe:oe];return oe++>ee?_e():Ye(n,N?se[0]:oe-1,se[1])})}return e.__iteratorUncached(n,T)}function Oe(e,n){return n?Ke(n,e,"",{"":e}):Ve(e)}function Ke(e,n,T,N){return Array.isArray(n)?e.call(N,T,Ne(n).map(function(H,ee){return Ke(e,H,ee,n)})):et(n)?e.call(N,T,Me(n).map(function(H,ee){return Ke(e,H,ee,n)})):n}function Ve(e){return Array.isArray(e)?Ne(e).map(Ve).toList():et(e)?Me(e).map(Ve).toMap():e}function et(e){return e&&(e.constructor===Object||e.constructor===void 0)}function Pe(e,n){if(e===n||e!==e&&n!==n)return!0;if(!e||!n)return!1;if(typeof e.valueOf=="function"&&typeof n.valueOf=="function"){if(e=e.valueOf(),n=n.valueOf(),e===n||e!==e&&n!==n)return!0;if(!e||!n)return!1}return!!(typeof e.equals=="function"&&typeof n.equals=="function"&&e.equals(n))}function at(e,n){if(e===n)return!0;if(!h(n)||e.size!==void 0&&n.size!==void 0&&e.size!==n.size||e.__hash!==void 0&&n.__hash!==void 0&&e.__hash!==n.__hash||b(e)!==b(n)||E(e)!==E(n)||l(e)!==l(n))return!1;if(e.size===0&&n.size===0)return!0;var T=!c(e);if(l(e)){var N=e.entries();return n.every(function(Ae,ue){var Ie=N.next().value;return Ie&&Pe(Ie[1],Ae)&&(T||Pe(Ie[0],ue))})&&N.next().done}var H=!1;if(e.size===void 0)if(n.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{H=!0;var ee=e;e=n,n=ee}var oe=!0,se=n.__iterate(function(Ae,ue){if(T?!e.has(Ae):H?!Pe(Ae,e.get(ue,F)):!Pe(e.get(ue,F),Ae))return oe=!1,!1});return oe&&e.size===se}r(mt,Ne);function mt(e,n){if(!(this instanceof mt))return new mt(e,n);if(this._value=e,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(Tt)return Tt;Tt=this}}mt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},mt.prototype.get=function(e,n){return this.has(e)?this._value:n},mt.prototype.includes=function(e){return Pe(this._value,e)},mt.prototype.slice=function(e,n){var T=this.size;return X(e,n,T)?this:new mt(this._value,Q(n,T)-$(e,T))},mt.prototype.reverse=function(){return this},mt.prototype.indexOf=function(e){return Pe(this._value,e)?0:-1},mt.prototype.lastIndexOf=function(e){return Pe(this._value,e)?this.size:-1},mt.prototype.__iterate=function(e,n){for(var T=0;T1?" by "+this._step:"")+" ]"},At.prototype.get=function(e,n){return this.has(e)?this._start+M(this,e)*this._step:n},At.prototype.includes=function(e){var n=(e-this._start)/this._step;return n>=0&&n=0&&TT?_e():Ye(e,ee++,oe)})},At.prototype.equals=function(e){return e instanceof At?this._start===e._start&&this._end===e._end&&this._step===e._step:at(this,e)};var Yt;r(Gt,S);function Gt(){throw TypeError("Abstract")}r(ae,Gt);function ae(){}r(ce,Gt);function ce(){}r(Ce,Gt);function Ce(){}Gt.Keyed=ae,Gt.Indexed=ce,Gt.Set=Ce;var xe=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(n,T){n=n|0,T=T|0;var N=n&65535,H=T&65535;return N*H+((n>>>16)*H+N*(T>>>16)<<16>>>0)|0};function He(e){return e>>>1&1073741824|e&3221225471}function je(e){if(e===!1||e===null||e===void 0||typeof e.valueOf=="function"&&(e=e.valueOf(),e===!1||e===null||e===void 0))return 0;if(e===!0)return 1;var n=typeof e;if(n==="number"){var T=e|0;for(T!==e&&(T^=e*4294967295);e>4294967295;)e/=4294967295,T^=e;return He(T)}if(n==="string")return e.length>ft?gt(e):it(e);if(typeof e.hashCode=="function")return e.hashCode();if(n==="object")return Et(e);if(typeof e.toString=="function")return it(e.toString());throw new Error("Value type "+n+" cannot be hashed.")}function gt(e){var n=Ot[e];return n===void 0&&(n=it(e),Ht===jt&&(Ht=0,Ot={}),Ht++,Ot[e]=n),n}function it(e){for(var n=0,T=0;T0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ct=typeof WeakMap=="function",nt;Ct&&(nt=new WeakMap);var ct=0,ht="__immutablehash__";typeof Symbol=="function"&&(ht=Symbol(ht));var ft=16,jt=255,Ht=0,Ot={};function Ft(e){St(e!==1/0,"Cannot perform this action with an infinite size.")}r(st,ae);function st(e){return e==null?$t():Mt(e)&&!l(e)?e:$t().withMutations(function(n){var T=A(e);Ft(T.size),T.forEach(function(N,H){return n.set(H,N)})})}st.prototype.toString=function(){return this.__toString("Map {","}")},st.prototype.get=function(e,n){return this._root?this._root.get(0,void 0,e,n):n},st.prototype.set=function(e,n){return An(this,e,n)},st.prototype.setIn=function(e,n){return this.updateIn(e,F,function(){return n})},st.prototype.remove=function(e){return An(this,e,F)},st.prototype.deleteIn=function(e){return this.updateIn(e,function(){return F})},st.prototype.update=function(e,n,T){return arguments.length===1?e(this):this.updateIn([e],n,T)},st.prototype.updateIn=function(e,n,T){T||(T=n,n=void 0);var N=rr(this,er(e),n,T);return N===F?void 0:N},st.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$t()},st.prototype.merge=function(){return Fn(this,void 0,arguments)},st.prototype.mergeWith=function(e){var n=D.call(arguments,1);return Fn(this,e,n)},st.prototype.mergeIn=function(e){var n=D.call(arguments,1);return this.updateIn(e,$t(),function(T){return typeof T.merge=="function"?T.merge.apply(T,n):n[n.length-1]})},st.prototype.mergeDeep=function(){return Fn(this,$n,arguments)},st.prototype.mergeDeepWith=function(e){var n=D.call(arguments,1);return Fn(this,nr(e),n)},st.prototype.mergeDeepIn=function(e){var n=D.call(arguments,1);return this.updateIn(e,$t(),function(T){return typeof T.mergeDeep=="function"?T.mergeDeep.apply(T,n):n[n.length-1]})},st.prototype.sort=function(e){return Wt(xn(this,e))},st.prototype.sortBy=function(e,n){return Wt(xn(this,n,e))},st.prototype.withMutations=function(e){var n=this.asMutable();return e(n),n.wasAltered()?n.__ensureOwner(this.__ownerID):this},st.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},st.prototype.asImmutable=function(){return this.__ensureOwner()},st.prototype.wasAltered=function(){return this.__altered},st.prototype.__iterator=function(e,n){return new Qt(this,e,n)},st.prototype.__iterate=function(e,n){var T=this,N=0;return this._root&&this._root.iterate(function(H){return N++,e(H[1],H[0],T)},n),N},st.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function Mt(e){return!!(e&&e[Bt])}st.isMap=Mt;var Bt="@@__IMMUTABLE_MAP__@@",lt=st.prototype;lt[Bt]=!0,lt[i]=lt.remove,lt.removeIn=lt.deleteIn;function Rt(e,n){this.ownerID=e,this.entries=n}Rt.prototype.get=function(e,n,T,N){for(var H=this.entries,ee=0,oe=H.length;ee=_)return mn(e,Ae,N,H);var $e=e&&e===this.ownerID,yt=$e?Ae:j(Ae);return Ge?se?ue===Ie-1?yt.pop():yt[ue]=yt.pop():yt[ue]=[N,H]:yt.push([N,H]),$e?(this.entries=yt,this):new Rt(e,yt)}};function Ut(e,n,T){this.ownerID=e,this.bitmap=n,this.nodes=T}Ut.prototype.get=function(e,n,T,N){n===void 0&&(n=je(T));var H=1<<((e===0?n:n>>>e)&x),ee=this.bitmap;return ee&H?this.nodes[jn(ee&H-1)].get(e+o,n,T,N):N},Ut.prototype.update=function(e,n,T,N,H,ee,oe){T===void 0&&(T=je(N));var se=(n===0?T:T>>>n)&x,Ae=1<=ie)return pn(e,$e,ue,se,kt);if(Ie&&!kt&&$e.length===2&&vn($e[Ge^1]))return $e[Ge^1];if(Ie&&kt&&$e.length===1&&vn(kt))return kt;var Kt=e&&e===this.ownerID,Dn=Ie?kt?ue:ue^Ae:ue|Ae,Ln=Ie?kt?Zn($e,Ge,kt,Kt):L($e,Ge,Kt):y($e,Ge,kt,Kt);return Kt?(this.bitmap=Dn,this.nodes=Ln,this):new Ut(e,Dn,Ln)};function _t(e,n,T){this.ownerID=e,this.count=n,this.nodes=T}_t.prototype.get=function(e,n,T,N){n===void 0&&(n=je(T));var H=(e===0?n:n>>>e)&x,ee=this.nodes[H];return ee?ee.get(e+o,n,T,N):N},_t.prototype.update=function(e,n,T,N,H,ee,oe){T===void 0&&(T=je(N));var se=(n===0?T:T>>>n)&x,Ae=H===F,ue=this.nodes,Ie=ue[se];if(Ae&&!Ie)return this;var Ge=gn(Ie,e,n+o,T,N,H,ee,oe);if(Ge===Ie)return this;var $e=this.count;if(!Ie)$e++;else if(!Ge&&($e--,$e>>T)&x,oe=(T===0?N:N>>>T)&x,se,Ae=ee===oe?[sn(e,n,T+o,N,H)]:(se=new ln(n,N,H),ee>>=1)oe[se]=T&1?n[ee++]:void 0;return oe[N]=H,new _t(e,ee+1,oe)}function Fn(e,n,T){for(var N=[],H=0;H>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&127}function Zn(e,n,T,N){var H=N?e:j(e);return H[n]=T,H}function y(e,n,T,N){var H=e.length+1;if(N&&n+1===H)return e[n]=T,e;for(var ee=new Array(H),oe=0,se=0;se0&&N=0&&e>>n&x;if(N>=this.array.length)return new vt([],e);var H=N===0,ee;if(n>0){var oe=this.array[N];if(ee=oe&&oe.removeBefore(e,n-o,T),ee===oe&&H)return this}if(H&&!ee)return this;var se=Wn(this,e);if(!H)for(var Ae=0;Ae>>n&x;if(N>=this.array.length)return this;var H;if(n>0){var ee=this.array[N];if(H=ee&&ee.removeAfter(e,n-o,T),H===ee&&N===this.array.length-1)return this}var oe=Wn(this,e);return oe.array.splice(N+1),H&&(oe.array[N]=H),oe};var bt={};function en(e,n){var T=e._origin,N=e._capacity,H=xt(N),ee=e._tail;return oe(e._root,e._level,0);function oe(ue,Ie,Ge){return Ie===0?se(ue,Ge):Ae(ue,Ie,Ge)}function se(ue,Ie){var Ge=Ie===H?ee&&ee.array:ue&&ue.array,$e=Ie>T?0:T-Ie,yt=N-Ie;return yt>u&&(yt=u),function(){if($e===yt)return bt;var kt=n?--yt:$e++;return Ge&&Ge[kt]}}function Ae(ue,Ie,Ge){var $e,yt=ue&&ue.array,kt=Ge>T?0:T-Ge>>Ie,Kt=(N-Ge>>Ie)+1;return Kt>u&&(Kt=u),function(){do{if($e){var Dn=$e();if(Dn!==bt)return Dn;$e=null}if(kt===Kt)return bt;var Ln=n?--Kt:kt++;$e=oe(yt&&yt[Ln],Ie-o,Ge+(Ln<=e.size||n<0)return e.withMutations(function(oe){n<0?Cn(oe,n).set(0,T):Cn(oe,0,n+1).set(n,T)});n+=e._origin;var N=e._tail,H=e._root,ee=U(B);return n>=xt(e._capacity)?N=ur(N,e.__ownerID,0,n,T,ee):H=ur(H,e.__ownerID,e._level,n,T,ee),ee.value?e.__ownerID?(e._root=H,e._tail=N,e.__hash=void 0,e.__altered=!0,e):Zt(e._origin,e._capacity,e._level,H,N):e}function ur(e,n,T,N,H,ee){var oe=N>>>T&x,se=e&&oe0){var ue=e&&e.array[oe],Ie=ur(ue,n,T-o,N,H,ee);return Ie===ue?e:(Ae=Wn(e,n),Ae.array[oe]=Ie,Ae)}return se&&e.array[oe]===H?e:(K(ee),Ae=Wn(e,n),H===void 0&&oe===Ae.array.length-1?Ae.array.pop():Ae.array[oe]=H,Ae)}function Wn(e,n){return n&&e&&n===e.ownerID?e:new vt(e?e.array.slice():[],n)}function Sn(e,n){if(n>=xt(e._capacity))return e._tail;if(n<1<0;)T=T.array[n>>>N&x],N-=o;return T}}function Cn(e,n,T){n!==void 0&&(n=n|0),T!==void 0&&(T=T|0);var N=e.__ownerID||new k,H=e._origin,ee=e._capacity,oe=H+n,se=T===void 0?ee:T<0?ee+T:H+T;if(oe===H&&se===ee)return e;if(oe>=se)return e.clear();for(var Ae=e._level,ue=e._root,Ie=0;oe+Ie<0;)ue=new vt(ue&&ue.array.length?[void 0,ue]:[],N),Ae+=o,Ie+=1<=1<Ge?new vt([],N):yt;if(yt&&$e>Ge&&oeo;Dn-=o){var Ln=Ge>>>Dn&x;Kt=Kt.array[Ln]=Wn(Kt.array[Ln],N)}Kt.array[Ge>>>o&x]=yt}if(se=$e)oe-=$e,se-=$e,Ae=o,ue=null,kt=kt&&kt.removeBefore(N,0,oe);else if(oe>H||$e>>Ae&x;if(kr!==$e>>>Ae&x)break;kr&&(Ie+=(1<H&&(ue=ue.removeBefore(N,Ae,oe-Ie)),ue&&$eH&&(H=se.size),h(oe)||(se=se.map(function(Ae){return Oe(Ae)})),N.push(se)}return H>e.size&&(e=e.setSize(H)),Hn(e,n,N)}function xt(e){return e>>o<=u&&H.size>=N.size*2?(Ae=H.filter(function(ue,Ie){return ue!==void 0&&ee!==Ie}),se=Ae.toKeyedSeq().map(function(ue){return ue[0]}).flip().toMap(),e.__ownerID&&(se.__ownerID=Ae.__ownerID=e.__ownerID)):(se=N.remove(n),Ae=ee===H.size-1?H.pop():H.set(ee,void 0))}else if(oe){if(T===H.get(ee)[1])return e;se=N,Ae=H.set(ee,[n,T])}else se=N.set(n,H.size),Ae=H.set(H.size,[n,T]);return e.__ownerID?(e.size=se.size,e._map=se,e._list=Ae,e.__hash=void 0,e):Vn(se,Ae)}r(cn,Me);function cn(e,n){this._iter=e,this._useKeys=n,this.size=e.size}cn.prototype.get=function(e,n){return this._iter.get(e,n)},cn.prototype.has=function(e){return this._iter.has(e)},cn.prototype.valueSeq=function(){return this._iter.valueSeq()},cn.prototype.reverse=function(){var e=this,n=Sr(this,!0);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().reverse()}),n},cn.prototype.map=function(e,n){var T=this,N=sr(this,e,n);return this._useKeys||(N.valueSeq=function(){return T._iter.toSeq().map(e,n)}),N},cn.prototype.__iterate=function(e,n){var T=this,N;return this._iter.__iterate(this._useKeys?function(H,ee){return e(H,ee,T)}:(N=n?fn(this):0,function(H){return e(H,n?--N:N++,T)}),n)},cn.prototype.__iterator=function(e,n){if(this._useKeys)return this._iter.__iterator(e,n);var T=this._iter.__iterator(te,n),N=n?fn(this):0;return new Re(function(){var H=T.next();return H.done?H:Ye(e,n?--N:N++,H.value,H)})},cn.prototype[d]=!0,r(rn,Ne);function rn(e){this._iter=e,this.size=e.size}rn.prototype.includes=function(e){return this._iter.includes(e)},rn.prototype.__iterate=function(e,n){var T=this,N=0;return this._iter.__iterate(function(H){return e(H,N++,T)},n)},rn.prototype.__iterator=function(e,n){var T=this._iter.__iterator(te,n),N=0;return new Re(function(){var H=T.next();return H.done?H:Ye(e,N++,H.value,H)})},r(wn,ze);function wn(e){this._iter=e,this.size=e.size}wn.prototype.has=function(e){return this._iter.includes(e)},wn.prototype.__iterate=function(e,n){var T=this;return this._iter.__iterate(function(N){return e(N,N,T)},n)},wn.prototype.__iterator=function(e,n){var T=this._iter.__iterator(te,n);return new Re(function(){var N=T.next();return N.done?N:Ye(e,N.value,N.value,N)})},r(Nn,Me);function Nn(e){this._iter=e,this.size=e.size}Nn.prototype.entrySeq=function(){return this._iter.toSeq()},Nn.prototype.__iterate=function(e,n){var T=this;return this._iter.__iterate(function(N){if(N){pr(N);var H=h(N);return e(H?N.get(1):N[1],H?N.get(0):N[0],T)}},n)},Nn.prototype.__iterator=function(e,n){var T=this._iter.__iterator(te,n);return new Re(function(){for(;;){var N=T.next();if(N.done)return N;var H=N.value;if(H){pr(H);var ee=h(H);return Ye(e,ee?H.get(0):H[0],ee?H.get(1):H[1],N)}}})},rn.prototype.cacheResult=cn.prototype.cacheResult=wn.prototype.cacheResult=Nn.prototype.cacheResult=hr;function Ar(e){var n=En(e);return n._iter=e,n.size=e.size,n.flip=function(){return e},n.reverse=function(){var T=e.reverse.apply(this);return T.flip=function(){return e.reverse()},T},n.has=function(T){return e.includes(T)},n.includes=function(T){return e.has(T)},n.cacheResult=hr,n.__iterateUncached=function(T,N){var H=this;return e.__iterate(function(ee,oe){return T(oe,ee,H)!==!1},N)},n.__iteratorUncached=function(T,N){if(T===pe){var H=e.__iterator(T,N);return new Re(function(){var ee=H.next();if(!ee.done){var oe=ee.value[0];ee.value[0]=ee.value[1],ee.value[1]=oe}return ee})}return e.__iterator(T===te?le:te,N)},n}function sr(e,n,T){var N=En(e);return N.size=e.size,N.has=function(H){return e.has(H)},N.get=function(H,ee){var oe=e.get(H,F);return oe===F?ee:n.call(T,oe,H,e)},N.__iterateUncached=function(H,ee){var oe=this;return e.__iterate(function(se,Ae,ue){return H(n.call(T,se,Ae,ue),Ae,oe)!==!1},ee)},N.__iteratorUncached=function(H,ee){var oe=e.__iterator(pe,ee);return new Re(function(){var se=oe.next();if(se.done)return se;var Ae=se.value,ue=Ae[0];return Ye(H,ue,n.call(T,Ae[1],ue,e),se)})},N}function Sr(e,n){var T=En(e);return T._iter=e,T.size=e.size,T.reverse=function(){return e},e.flip&&(T.flip=function(){var N=Ar(e);return N.reverse=function(){return e.flip()},N}),T.get=function(N,H){return e.get(n?N:-1-N,H)},T.has=function(N){return e.has(n?N:-1-N)},T.includes=function(N){return e.includes(N)},T.cacheResult=hr,T.__iterate=function(N,H){var ee=this;return e.__iterate(function(oe,se){return N(oe,se,ee)},!H)},T.__iterator=function(N,H){return e.__iterator(N,!H)},T}function Cr(e,n,T,N){var H=En(e);return N&&(H.has=function(ee){var oe=e.get(ee,F);return oe!==F&&!!n.call(T,oe,ee,e)},H.get=function(ee,oe){var se=e.get(ee,F);return se!==F&&n.call(T,se,ee,e)?se:oe}),H.__iterateUncached=function(ee,oe){var se=this,Ae=0;return e.__iterate(function(ue,Ie,Ge){if(n.call(T,ue,Ie,Ge))return Ae++,ee(ue,N?Ie:Ae-1,se)},oe),Ae},H.__iteratorUncached=function(ee,oe){var se=e.__iterator(pe,oe),Ae=0;return new Re(function(){for(;;){var ue=se.next();if(ue.done)return ue;var Ie=ue.value,Ge=Ie[0],$e=Ie[1];if(n.call(T,$e,Ge,e))return Ye(ee,N?Ge:Ae++,$e,ue)}})},H}function cr(e,n,T){var N=st().asMutable();return e.__iterate(function(H,ee){N.update(n.call(T,H,ee,e),0,function(oe){return oe+1})}),N.asImmutable()}function Tr(e,n,T){var N=b(e),H=(l(e)?Wt():st()).asMutable();e.__iterate(function(oe,se){H.update(n.call(T,oe,se,e),function(Ae){return Ae=Ae||[],Ae.push(N?[se,oe]:oe),Ae})});var ee=gr(e);return H.map(function(oe){return Lt(e,ee(oe))})}function Gn(e,n,T,N){var H=e.size;if(n!==void 0&&(n=n|0),T!==void 0&&(T=T|0),X(n,T,H))return e;var ee=$(n,H),oe=Q(T,H);if(ee!==ee||oe!==oe)return Gn(e.toSeq().cacheResult(),n,T,N);var se=oe-ee,Ae;se===se&&(Ae=se<0?0:se);var ue=En(e);return ue.size=Ae===0?Ae:e.size&&Ae||void 0,!N&&Dt(e)&&Ae>=0&&(ue.get=function(Ie,Ge){return Ie=M(this,Ie),Ie>=0&&IeAe)return _e();var Kt=$e.next();return N||Ie===te?Kt:Ie===le?Ye(Ie,kt-1,void 0,Kt):Ye(Ie,kt-1,Kt.value[1],Kt)})},ue}function fr(e,n,T){var N=En(e);return N.__iterateUncached=function(H,ee){var oe=this;if(ee)return this.cacheResult().__iterate(H,ee);var se=0;return e.__iterate(function(Ae,ue,Ie){return n.call(T,Ae,ue,Ie)&&++se&&H(Ae,ue,oe)}),se},N.__iteratorUncached=function(H,ee){var oe=this;if(ee)return this.cacheResult().__iterator(H,ee);var se=e.__iterator(pe,ee),Ae=!0;return new Re(function(){if(!Ae)return _e();var ue=se.next();if(ue.done)return ue;var Ie=ue.value,Ge=Ie[0],$e=Ie[1];return n.call(T,$e,Ge,oe)?H===pe?ue:Ye(H,Ge,$e,ue):(Ae=!1,_e())})},N}function Fr(e,n,T,N){var H=En(e);return H.__iterateUncached=function(ee,oe){var se=this;if(oe)return this.cacheResult().__iterate(ee,oe);var Ae=!0,ue=0;return e.__iterate(function(Ie,Ge,$e){if(!(Ae&&(Ae=n.call(T,Ie,Ge,$e))))return ue++,ee(Ie,N?Ge:ue-1,se)}),ue},H.__iteratorUncached=function(ee,oe){var se=this;if(oe)return this.cacheResult().__iterator(ee,oe);var Ae=e.__iterator(pe,oe),ue=!0,Ie=0;return new Re(function(){var Ge,$e,yt;do{if(Ge=Ae.next(),Ge.done)return N||ee===te?Ge:ee===le?Ye(ee,Ie++,void 0,Ge):Ye(ee,Ie++,Ge.value[1],Ge);var kt=Ge.value;$e=kt[0],yt=kt[1],ue&&(ue=n.call(T,yt,$e,se))}while(ue);return ee===pe?Ge:Ye(ee,$e,yt,Ge)})},H}function qn(e,n){var T=b(e),N=[e].concat(n).map(function(oe){return h(oe)?T&&(oe=A(oe)):oe=T?Y(oe):ne(Array.isArray(oe)?oe:[oe]),oe}).filter(function(oe){return oe.size!==0});if(N.length===0)return e;if(N.length===1){var H=N[0];if(H===e||T&&b(H)||E(e)&&E(H))return H}var ee=new rt(N);return T?ee=ee.toKeyedSeq():E(e)||(ee=ee.toSetSeq()),ee=ee.flatten(!0),ee.size=N.reduce(function(oe,se){if(oe!==void 0){var Ae=se.size;if(Ae!==void 0)return oe+Ae}},0),ee}function br(e,n,T){var N=En(e);return N.__iterateUncached=function(H,ee){var oe=0,se=!1;function Ae(ue,Ie){var Ge=this;ue.__iterate(function($e,yt){return(!n||Ie0}function ar(e,n,T){var N=En(e);return N.size=new rt(T).map(function(H){return H.size}).min(),N.__iterate=function(H,ee){for(var oe=this.__iterator(te,ee),se,Ae=0;!(se=oe.next()).done&&H(se.value,Ae++,this)!==!1;);return Ae},N.__iteratorUncached=function(H,ee){var oe=T.map(function(ue){return ue=S(ue),me(ee?ue.reverse():ue)}),se=0,Ae=!1;return new Re(function(){var ue;return Ae||(ue=oe.map(function(Ie){return Ie.next()}),Ae=ue.some(function(Ie){return Ie.done})),Ae?_e():Ye(H,se++,n.apply(null,ue.map(function(Ie){return Ie.value})))})},N}function Lt(e,n){return Dt(e)?n:e.constructor(n)}function pr(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function fn(e){return Ft(e.size),z(e)}function gr(e){return b(e)?A:E(e)?C:g}function En(e){return Object.create((b(e)?Me:E(e)?Ne:ze).prototype)}function hr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):we.prototype.cacheResult.call(this)}function vr(e,n){return e>n?1:e=0;T--)n={value:arguments[T],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):It(e,n)},ve.prototype.pushAll=function(e){if(e=C(e),e.size===0)return this;Ft(e.size);var n=this.size,T=this._head;return e.reverse().forEach(function(N){n++,T={value:N,next:T}}),this.__ownerID?(this.size=n,this._head=T,this.__hash=void 0,this.__altered=!0,this):It(n,T)},ve.prototype.pop=function(){return this.slice(1)},ve.prototype.unshift=function(){return this.push.apply(this,arguments)},ve.prototype.unshiftAll=function(e){return this.pushAll(e)},ve.prototype.shift=function(){return this.pop.apply(this,arguments)},ve.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):an()},ve.prototype.slice=function(e,n){if(X(e,n,this.size))return this;var T=$(e,this.size),N=Q(n,this.size);if(N!==this.size)return ce.prototype.slice.call(this,e,n);for(var H=this.size-T,ee=this._head;T--;)ee=ee.next;return this.__ownerID?(this.size=H,this._head=ee,this.__hash=void 0,this.__altered=!0,this):It(H,ee)},ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?It(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ve.prototype.__iterate=function(e,n){if(n)return this.reverse().__iterate(e);for(var T=0,N=this._head;N&&e(N.value,T++,this)!==!1;)N=N.next;return T},ve.prototype.__iterator=function(e,n){if(n)return this.reverse().__iterator(e);var T=0,N=this._head;return new Re(function(){if(N){var H=N.value;return N=N.next,Ye(e,T++,H)}return _e()})};function Qe(e){return!!(e&&e[tt])}ve.isStack=Qe;var tt="@@__IMMUTABLE_STACK__@@",dt=ve.prototype;dt[tt]=!0,dt.withMutations=lt.withMutations,dt.asMutable=lt.asMutable,dt.asImmutable=lt.asImmutable,dt.wasAltered=lt.wasAltered;function It(e,n,T,N){var H=Object.create(dt);return H.size=e,H._head=n,H.__ownerID=T,H.__hash=N,H.__altered=!1,H}var zt;function an(){return zt||(zt=It(0))}function tn(e,n){var T=function(N){e.prototype[N]=n[N]};return Object.keys(n).forEach(T),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(T),e}S.Iterator=Re,tn(S,{toArray:function(){Ft(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(n,T){e[T]=n}),e},toIndexedSeq:function(){return new rn(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS=="function"?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON=="function"?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new cn(this,!0)},toMap:function(){return st(this.toKeyedSeq())},toObject:function(){Ft(this.size);var e={};return this.__iterate(function(n,T){e[T]=n}),e},toOrderedMap:function(){return Wt(this.toKeyedSeq())},toOrderedSet:function(){return t(b(this)?this.valueSeq():this)},toSet:function(){return Nt(b(this)?this.valueSeq():this)},toSetSeq:function(){return new wn(this)},toSeq:function(){return E(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ve(b(this)?this.valueSeq():this)},toList:function(){return ge(b(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,n){return this.size===0?e+n:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+n},concat:function(){var e=D.call(arguments,0);return Lt(this,qn(this,e))},includes:function(e){return this.some(function(n){return Pe(n,e)})},entries:function(){return this.__iterator(pe)},every:function(e,n){Ft(this.size);var T=!0;return this.__iterate(function(N,H,ee){if(!e.call(n,N,H,ee))return T=!1,!1}),T},filter:function(e,n){return Lt(this,Cr(this,e,n,!0))},find:function(e,n,T){var N=this.findEntry(e,n);return N?N[1]:T},findEntry:function(e,n){var T;return this.__iterate(function(N,H,ee){if(e.call(n,N,H,ee))return T=[H,N],!1}),T},findLastEntry:function(e,n){return this.toSeq().reverse().findEntry(e,n)},forEach:function(e,n){return Ft(this.size),this.__iterate(n?e.bind(n):e)},join:function(e){Ft(this.size),e=e!==void 0?""+e:",";var n="",T=!0;return this.__iterate(function(N){T?T=!1:n+=e,n+=N!=null?N.toString():""}),n},keys:function(){return this.__iterator(le)},map:function(e,n){return Lt(this,sr(this,e,n))},reduce:function(e,n,T){Ft(this.size);var N,H;return arguments.length<2?H=!0:N=n,this.__iterate(function(ee,oe,se){H?(H=!1,N=ee):N=e.call(T,N,ee,oe,se)}),N},reduceRight:function(e,n,T){var N=this.toKeyedSeq().reverse();return N.reduce.apply(N,arguments)},reverse:function(){return Lt(this,Sr(this,!0))},slice:function(e,n){return Lt(this,Gn(this,e,n,!0))},some:function(e,n){return!this.every(zn(e),n)},sort:function(e){return Lt(this,xn(this,e))},values:function(){return this.__iterator(te)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(e,n){return z(e?this.toSeq().filter(e,n):this)},countBy:function(e,n){return cr(this,e,n)},equals:function(e){return at(this,e)},entrySeq:function(){var e=this;if(e._cache)return new rt(e._cache);var n=e.toSeq().map(Un).toIndexedSeq();return n.fromEntrySeq=function(){return e.toSeq()},n},filterNot:function(e,n){return this.filter(zn(e),n)},findLast:function(e,n,T){return this.toKeyedSeq().reverse().find(e,n,T)},first:function(){return this.find(I)},flatMap:function(e,n){return Lt(this,wr(this,e,n))},flatten:function(e){return Lt(this,br(this,e,!0))},fromEntrySeq:function(){return new Nn(this)},get:function(e,n){return this.find(function(T,N){return Pe(N,e)},void 0,n)},getIn:function(e,n){for(var T=this,N=er(e),H;!(H=N.next()).done;){var ee=H.value;if(T=T&&T.get?T.get(ee,F):F,T===F)return n}return T},groupBy:function(e,n){return Tr(this,e,n)},has:function(e){return this.get(e,F)!==F},hasIn:function(e){return this.getIn(e,F)!==F},isSubset:function(e){return e=typeof e.includes=="function"?e:S(e),this.every(function(n){return e.includes(n)})},isSuperset:function(e){return e=typeof e.isSubset=="function"?e:S(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(_n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Qn(this,e)},maxBy:function(e,n){return Qn(this,n,e)},min:function(e){return Qn(this,e?On(e):Rn)},minBy:function(e,n){return Qn(this,n?On(n):Rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Lt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,n){return Lt(this,Fr(this,e,n,!0))},skipUntil:function(e,n){return this.skipWhile(zn(e),n)},sortBy:function(e,n){return Lt(this,xn(this,n,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Lt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,n){return Lt(this,fr(this,e,n))},takeUntil:function(e,n){return this.takeWhile(zn(e),n)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Xn(this))}});var Vt=S.prototype;Vt[p]=!0,Vt[Z]=Vt.values,Vt.__toJS=Vt.toArray,Vt.__toStringMapper=Jn,Vt.inspect=Vt.toSource=function(){return this.toString()},Vt.chain=Vt.flatMap,Vt.contains=Vt.includes,function(){try{Object.defineProperty(Vt,"length",{get:function(){if(!S.noLengthWarning){var e;try{throw new Error}catch(n){e=n.stack}if(e.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),tn(A,{flip:function(){return Lt(this,Ar(this))},findKey:function(e,n){var T=this.findEntry(e,n);return T&&T[0]},findLastKey:function(e,n){return this.toSeq().reverse().findKey(e,n)},keyOf:function(e){return this.findKey(function(n){return Pe(n,e)})},lastKeyOf:function(e){return this.findLastKey(function(n){return Pe(n,e)})},mapEntries:function(e,n){var T=this,N=0;return Lt(this,this.toSeq().map(function(H,ee){return e.call(n,[ee,H],N++,T)}).fromEntrySeq())},mapKeys:function(e,n){var T=this;return Lt(this,this.toSeq().flip().map(function(N,H){return e.call(n,N,H,T)}).flip())}});var Jt=A.prototype;Jt[s]=!0,Jt[Z]=Vt.entries,Jt.__toJS=Vt.toObject,Jt.__toStringMapper=function(e,n){return JSON.stringify(n)+": "+Jn(e)},tn(C,{toKeyedSeq:function(){return new cn(this,!1)},filter:function(e,n){return Lt(this,Cr(this,e,n,!1))},findIndex:function(e,n){var T=this.findEntry(e,n);return T?T[0]:-1},indexOf:function(e){var n=this.toKeyedSeq().keyOf(e);return n===void 0?-1:n},lastIndexOf:function(e){var n=this.toKeyedSeq().reverse().keyOf(e);return n===void 0?-1:n},reverse:function(){return Lt(this,Sr(this,!1))},slice:function(e,n){return Lt(this,Gn(this,e,n,!1))},splice:function(e,n){var T=arguments.length;if(n=Math.max(n|0,0),T===0||T===2&&!n)return this;e=$(e,e<0?this.count():this.size);var N=this.slice(0,e);return Lt(this,T===1?N:N.concat(j(arguments,2),this.slice(e+n)))},findLastIndex:function(e,n){var T=this.toKeyedSeq().findLastKey(e,n);return T===void 0?-1:T},first:function(){return this.get(0)},flatten:function(e){return Lt(this,br(this,e,!1))},get:function(e,n){return e=M(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?n:this.find(function(T,N){return N===e},void 0,n)},has:function(e){return e=M(this,e),e>=0&&(this.size!==void 0?this.size===1/0||en?-1:0}function Xn(e){if(e.size===1/0)return 0;var n=l(e),T=b(e),N=n?1:0,H=e.__iterate(T?n?function(ee,oe){N=31*N+Xt(je(ee),je(oe))|0}:function(ee,oe){N=N+Xt(je(ee),je(oe))|0}:n?function(ee){N=31*N+je(ee)|0}:function(ee){N=N+je(ee)|0});return Er(H,N)}function Er(e,n){return n=xe(n,3432918353),n=xe(n<<15|n>>>-15,461845907),n=xe(n<<13|n>>>-13,5),n=(n+3864292196|0)^e,n=xe(n^n>>>16,2246822507),n=xe(n^n>>>13,3266489909),n=He(n^n>>>16),n}function Xt(e,n){return e^n+2654435769+(e<<6)+(e>>2)|0}var kn={Iterable:S,Seq:we,Collection:Gt,Map:st,OrderedMap:Wt,List:ge,Stack:ve,Set:Nt,OrderedSet:t,Record:dn,Range:At,Repeat:mt,is:Pe,fromJS:Oe};return kn})},22767:function(J){"use strict";var D=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;function A(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}function C(){try{if(!Object.assign)return!1;var g=new String("abc");if(g[5]="de",Object.getOwnPropertyNames(g)[0]==="5")return!1;for(var h={},b=0;b<10;b++)h["_"+String.fromCharCode(b)]=b;var E=Object.getOwnPropertyNames(h).map(function(l){return h[l]});if(E.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(l){return!1}}J.exports=C()?Object.assign:function(g,h){for(var b,E=A(g),c,l=1;l")),L===""?C=!0:y.push(L)}var h=Object.prototype.hasOwnProperty,b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},c={};function l(y){return h.call(c,y)?!0:h.call(E,y)?!1:b.test(y)?c[y]=!0:(E[y]=!0,!1)}function p(y,L,_,ie,Ee,ge,Be){this.acceptsBooleans=L===2||L===3||L===4,this.attributeName=ie,this.attributeNamespace=Ee,this.mustUseProperty=_,this.propertyName=y,this.type=L,this.sanitizeURL=ge,this.removeEmptyString=Be}var s={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){s[y]=new p(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var L=y[0];s[L]=new p(L,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){s[y]=new p(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){s[y]=new p(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){s[y]=new p(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){s[y]=new p(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){s[y]=new p(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){s[y]=new p(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){s[y]=new p(y,5,!1,y.toLowerCase(),null,!1,!1)});var a=/[\-:]([a-z])/g;function d(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var L=y.replace(a,d);s[L]=new p(L,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var L=y.replace(a,d);s[L]=new p(L,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var L=y.replace(a,d);s[L]=new p(L,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){s[y]=new p(y,1,!1,y.toLowerCase(),null,!1,!1)}),s.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){s[y]=new p(y,1,!1,y.toLowerCase(),null,!0,!0)});var i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(y){o.forEach(function(L){L=L+y.charAt(0).toUpperCase()+y.substring(1),i[L]=i[y]})});var u=/["'&<>]/;function x(y){if(typeof y=="boolean"||typeof y=="number")return""+y;y=""+y;var L=u.exec(y);if(L){var _="",ie,Ee=0;for(ie=L.index;ie")}var j=new Map;function z(y,L,_){if(typeof _!="object")throw Error(A(62));L=!0;for(var ie in _)if(h.call(_,ie)){var Ee=_[ie];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ie.indexOf("--")===0){var ge=x(ie);Ee=x((""+Ee).trim())}else{ge=ie;var Be=j.get(ge);Be!==void 0||(Be=x(ge.replace(F,"-$1").toLowerCase().replace(f,"-ms-")),j.set(ge,Be)),ge=Be,Ee=typeof Ee=="number"?Ee===0||h.call(i,ie)?""+Ee:Ee+"px":x((""+Ee).trim())}L?(L=!1,y.push(' style="',ge,":",Ee)):y.push(";",ge,":",Ee)}}L||y.push('"')}function M(y,L,_,ie){switch(_){case"style":z(y,L,ie);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){if(L=s.hasOwnProperty(_)?s[_]:null,L!==null){switch(typeof ie){case"function":case"symbol":return;case"boolean":if(!L.acceptsBooleans)return}switch(_=L.attributeName,L.type){case 3:ie&&y.push(" ",_,'=""');break;case 4:ie===!0?y.push(" ",_,'=""'):ie!==!1&&y.push(" ",_,'="',x(ie),'"');break;case 5:isNaN(ie)||y.push(" ",_,'="',x(ie),'"');break;case 6:!isNaN(ie)&&1<=ie&&y.push(" ",_,'="',x(ie),'"');break;default:L.sanitizeURL&&(ie=""+ie),y.push(" ",_,'="',x(ie),'"')}}else if(l(_)){switch(typeof ie){case"function":case"symbol":return;case"boolean":if(L=_.toLowerCase().slice(0,5),L!=="data-"&&L!=="aria-")return}y.push(" ",_,'="',x(ie),'"')}}}function I(y,L,_){if(L!=null){if(_!=null)throw Error(A(60));if(typeof L!="object"||!("__html"in L))throw Error(A(61));L=L.__html,L!=null&&y.push(""+L)}}function X(y){var L="";return S.Children.forEach(y,function(_){_!=null&&(L+=_)}),L}function $(y,L,_,ie){y.push(le(_));var Ee=_=null,ge;for(ge in L)if(h.call(L,ge)){var Be=L[ge];if(Be!=null)switch(ge){case"children":_=Be;break;case"dangerouslySetInnerHTML":Ee=Be;break;default:M(y,ie,ge,Be)}}return y.push(">"),I(y,Ee,_),typeof _=="string"?(y.push(x(_)),null):_}var Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,W=new Map;function le(y){var L=W.get(y);if(L===void 0){if(!Q.test(y))throw Error(A(65,y));L="<"+y,W.set(y,L)}return L}function te(y,L,_,ie,Ee){switch(L){case"select":y.push(le("select"));var ge=null,Be=null;for(bt in _)if(h.call(_,bt)){var Ue=_[bt];if(Ue!=null)switch(bt){case"children":ge=Ue;break;case"dangerouslySetInnerHTML":Be=Ue;break;case"defaultValue":case"value":break;default:M(y,ie,bt,Ue)}}return y.push(">"),I(y,Be,ge),ge;case"option":Be=Ee.selectedValue,y.push(le("option"));var Xe=Ue=null,vt=null,bt=null;for(ge in _)if(h.call(_,ge)&&(L=_[ge],L!=null))switch(ge){case"children":Ue=L;break;case"selected":vt=L;break;case"dangerouslySetInnerHTML":bt=L;break;case"value":Xe=L;default:M(y,ie,ge,L)}if(Be!=null)if(_=Xe!==null?""+Xe:X(Ue),B(Be)){for(ie=0;ie"),I(y,bt,Ue),Ue;case"textarea":y.push(le("textarea")),bt=Be=ge=null;for(Ue in _)if(h.call(_,Ue)&&(Xe=_[Ue],Xe!=null))switch(Ue){case"children":bt=Xe;break;case"value":ge=Xe;break;case"defaultValue":Be=Xe;break;case"dangerouslySetInnerHTML":throw Error(A(91));default:M(y,ie,Ue,Xe)}if(ge===null&&Be!==null&&(ge=Be),y.push(">"),bt!=null){if(ge!=null)throw Error(A(92));if(B(bt)&&1"),null;case"menuitem":y.push(le("menuitem"));for(var en in _)if(h.call(_,en)&&(ge=_[en],ge!=null))switch(en){case"children":case"dangerouslySetInnerHTML":throw Error(A(400));default:M(y,ie,en,ge)}return y.push(">"),null;case"listing":case"pre":y.push(le(L)),Be=ge=null;for(Xe in _)if(h.call(_,Xe)&&(Ue=_[Xe],Ue!=null))switch(Xe){case"children":ge=Ue;break;case"dangerouslySetInnerHTML":Be=Ue;break;default:M(y,ie,Xe,Ue)}if(y.push(">"),Be!=null){if(ge!=null)throw Error(A(60));if(typeof Be!="object"||!("__html"in Be))throw Error(A(61));_=Be.__html,_!=null&&(typeof _=="string"&&0<_.length&&_[0]===` `?y.push(` `,_):y.push(""+_))}return typeof ge=="string"&&ge[0]===` `&&y.push(` `),ge;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":y.push(le(L));for(var Zt in _)if(h.call(_,Zt)&&(ge=_[Zt],ge!=null))switch(Zt){case"children":case"dangerouslySetInnerHTML":throw Error(A(399,L));default:M(y,ie,Zt,ge)}return y.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $(y,_,L,ie);case"html":return Ee.insertionMode===0&&y.push(""),$(y,_,L,ie);default:if(L.indexOf("-")===-1&&typeof _.is!="string")return $(y,_,L,ie);y.push(le(L)),Be=ge=null;for(vt in _)if(h.call(_,vt)&&(Ue=_[vt],Ue!=null))switch(vt){case"children":ge=Ue;break;case"dangerouslySetInnerHTML":Be=Ue;break;case"style":z(y,ie,Ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:l(vt)&&typeof Ue!="function"&&typeof Ue!="symbol"&&y.push(" ",vt,'="',x(Ue),'"')}return y.push(">"),I(y,Be,ge),ge}}function pe(y,L,_){if(g(y,'')}function Le(y,L,_,ie){switch(_.insertionMode){case 0:case 1:return g(y,'