')}),p=lR.map(y,t),c(n),cR(o).on("focusin focusout",function(n){cR(n.target).attr("aria-grabbed","focus"===n.type?"true":"false")}),cR(o).on("keydown",function(t){function e(n,t,e,r,u){n.stopPropagation(),n.preventDefault(),i(o,e,r,u)}var o;switch(lR.each(y,function(n){return t.target.id===b+"-"+n.name?(o=n,!1):void 0}),t.keyCode){case dR.LEFT:e(t,o,n,-10,0);break;case dR.RIGHT:e(t,o,n,10,0);break;case dR.UP:e(t,o,n,0,-10);break;case dR.DOWN:e(t,o,n,0,10);break;case dR.ENTER:case dR.SPACEBAR:t.preventDefault(),r()}})}function a(n){var t;t=lR.map(y,function(n){return"#"+b+"-"+n.name}).concat(lR.map(h,function(n){return"#"+b+"-"+n})).join(","),n?cR(t,o).show():cR(t,o).hide()}function c(n){function e(n,t){t.h<0&&(t.h=0),t.w<0&&(t.w=0),cR("#"+b+"-"+n,o).css({left:t.x,top:t.y,width:t.w,height:t.h})}lR.each(y,function(t){cR("#"+b+"-"+t.name,o).css({left:n.w*t.xMul+n.x,top:n.h*t.yMul+n.y})}),e("top",{x:t.x,y:t.y,w:t.w,h:n.y-t.y}),e("right",{x:n.x+n.w,y:n.y,w:t.w-n.x-n.w+t.x,h:n.h}),e("bottom",{x:t.x,y:n.y+n.h,w:t.w,h:t.h-n.y-n.h+t.y}),e("left",{x:t.x,y:n.y,w:n.x-t.x,h:n.h}),e("move",n)}function s(t){n=t,c(n)}function f(e){t=e,c(n)}function l(n){s(x(e,n))}function d(t){e=t,c(n)}function m(){lR.each(p,function(n){n.destroy()}),p=[]}var g,p,h,v="tox-",b=v+"crid-"+mR++,y=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}];h=["top","right","bottom","left"];var x=function(n,t){return{x:t.x+n.x,y:t.y+n.y,w:t.w,h:t.h}},w=function(n,t){return{x:t.x-n.x,y:t.y-n.y,w:t.w,h:t.h}},S=function(){return w(e,n)};return u(),g=lR.extend({toggleVisibility:a,setClampRect:d,setRect:s,getInnerRect:S,setInnerRect:l,setViewPortRect:f,destroy:m},fR)},pR={create:gR},hR=function(n){return new IC(function(t){var e=function(){n.removeEventListener("load",e),t(n)};n.complete?t(n):n.addEventListener("load",e)})},vR=function(n){var t=sC({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),e=zr(1),o=zr(St.none()),r=zr({x:0,y:0,w:1,h:1}),i=zr({x:0,y:0,w:1,h:1}),u=function(n,i){g.getOpt(n).each(function(n){var u=e.get(),a=bf(n.element()),c=af(n.element()),s=i.dom().naturalWidth*u,f=i.dom().naturalHeight*u,l=Math.max(0,a/2-s/2),d=Math.max(0,c/2-f/2),m={left:l.toString()+"px",top:d.toString()+"px",width:s.toString()+"px",height:f.toString()+"px",position:"absolute"};Is(i,m),t.getOpt(n).each(function(n){Is(n.element(),m)}),o.get().each(function(n){var t=r.get();n.setRect({x:t.x*u+l,y:t.y*u+d,w:t.w*u,h:t.h*u}),n.setClampRect({x:l,y:d,w:s,h:f}),n.setViewPortRect({x:0,y:0,w:a,h:c})})})},a=function(n,t){g.getOpt(n).each(function(n){var o=bf(n.element()),r=af(n.element()),i=t.dom().naturalWidth,u=t.dom().naturalHeight,a=Math.min(o/i,r/u);e.set(a>=1?1:a)})},c=function(n,t){var e=Xr.fromTag("img");return cc(e,"src",t),hR(e.dom()).then(function(){return g.getOpt(n).map(function(n){var t=tf({element:e});ew.replaceAt(n,1,St.some(t));var o=i.get(),c={x:0,y:0,w:e.dom().naturalWidth,h:e.dom().naturalHeight};i.set(c);var s=sR.inflate(c,-20,-20);return r.set(s),(o.w!==c.w||o.h!==c.h)&&a(n,e),u(n,e),e})})},s=function(n,t){var o=e.get(),r=t>0?Math.min(2,o+.1):Math.max(.1,o-.1);e.set(r),g.getOpt(n).each(function(n){var t=n.components()[1].element();u(n,t)})},f=function(){o.get().each(function(n){n.toggleVisibility(!0)})},l=function(){o.get().each(function(n){n.toggleVisibility(!1)})},d=function(){return r.get()},m=wE.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:n}}},{dom:{tag:"div"},behaviours:bd([rw("image-panel-crop-events",[Sa(function(n){g.getOpt(n).each(function(n){var t=n.element().dom(),i=pR.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,function(){});i.toggleVisibility(!1),i.on("updateRect",function(n){var t=n.rect,o=e.get(),i={x:Math.round(t.x/o),y:Math.round(t.y/o),w:Math.round(t.w/o),h:Math.round(t.h/o)};r.set(i)}),o.set(St.some(i))})})])])}],containerBehaviours:bd([ew.config({}),rw("image-panel-events",[Sa(function(t){c(t,n)})])])}),g=sC(m),p=function(){var n=i.get();return{width:n.w,height:n.h}};return{memContainer:g,updateSrc:c,zoom:s,showCrop:f,hideCrop:l,getRect:d,getMeasurements:p}},bR=function(n,t,e,o,r){return _I({name:n,icon:St.some(t),disabled:e,tooltip:St.some(n),primary:!1,borderless:!1},o,r)},yR=function(n,t){t?CO.enable(n):CO.disable(n)},xR=function(n){var t=function(n,t,r){e.getOpt(n).each(function(n){yR(n,t)}),o.getOpt(n).each(function(n){yR(n,r)})},e=sC(bR("Undo","undo",!0,function(n){oa(n,eR.undo(),{direction:1})},n)),o=sC(bR("Redo","redo",!0,function(n){oa(n,eR.redo(),{direction:1})},n)),r=wE.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[e.asSpec(),o.asSpec(),bR("Zoom in","zoom-in",!1,function(n){oa(n,eR.zoom(),{direction:1})},n),bR("Zoom out","zoom-out",!1,function(n){oa(n,eR.zoom(),{direction:-1})},n)]});return{container:r,updateButtonUndoStates:t}},wR=function(t){var e=zr(t),o=zr(St.none()),r=rt();r.add(t);var i=function(){return e.get()},u=function(n){e.set(n)},a=function(){return o.get().fold(function(){return e.get()},function(n){return n})},c=function(n){var t=s(n);return d(),o.set(St.some(t)),t.url},s=function(t){return{blob:t,url:n.URL.createObjectURL(t)}},f=function(t){n.URL.revokeObjectURL(t.url)},l=function(n){lR.each(n,f)},d=function(){o.get().each(f),o.set(St.none())},m=function(n){var t=s(n);u(t);var e=r.add(t).removed;return l(e),t.url},g=function(n){var t=s(n);return o.set(St.some(t)),t.url},p=function(n){return o.get().fold(function(){},function(t){m(t.blob),n()})},h=function(){var n=r.undo();return u(n),n.url},v=function(){var n=r.redo();return u(n),n.url},b=function(){var n=r.canUndo(),t=r.canRedo();return{undoEnabled:n,redoEnabled:t}};return{getBlobState:i,setBlobState:u,addBlobState:m,getTempState:a,updateTempState:c,addTempState:g,applyTempState:p,destroyTempState:d,undo:h,redo:v,getHistoryStates:b}},SR=function(t,e){var o=wR(t.currentState),r=function(n,t){var e=t.event().direction();k.zoom(n,e)},i=function(n){var t=o.getHistoryStates();O.updateButtonUndoStates(n,t.undoEnabled,t.redoEnabled),oa(n,uR.formActionEvent,{name:uR.saveState(),value:t.undoEnabled})},u=function(n){O.updateButtonUndoStates(n,!1,!1)},a=function(n){var t=o.undo();
+d(n,t).then(function(){l(n),i(n)})},c=function(n){var t=o.redo();d(n,t).then(function(){l(n),i(n)})},s=function(n){return n.toBlob()},f=function(n){oa(n,uR.formActionEvent,{name:uR.disable(),value:{}})},l=function(n){_.getApplyButton(n).each(function(n){CO.enable(n)}),oa(n,uR.formActionEvent,{name:uR.enable(),value:{}})},d=function(n,t){return f(n),k.updateSrc(n,t)},m=function(t,e,o,r,u){return f(t),HF(e).then(o).then(s).then(r).then(function(n){return d(t,n).then(function(n){return i(t),u(),l(t),n})}).catch(function(e){return n.console.log(e),l(t),e})},g=function(n,t,e){var r=o.getBlobState().blob,i=function(n){return o.updateTempState(n)};m(n,r,t,i,e)},p=function(n,t){var e=o.getTempState().blob,r=function(n){return o.addTempState(n)};m(n,e,t,r,at)},h=function(n,t,e){var r=o.getBlobState().blob,i=function(t){var e=o.addBlobState(t);return b(n),e};m(n,r,t,i,e)},v=function(n,t){var e=function(){b(n);var e=t.event().swap();e()};o.applyTempState(e)},b=function(n){var t=o.getBlobState().url;return o.destroyTempState(),i(n),t},y=function(n){var t=b(n);d(n,t).then(function(){l(n)})},x=function(n,t){y(n);var e=t.event().swap();e(),k.hideCrop()},w=function(n,t){return g(n,t.event().transform(),at)},S=function(n,t){return p(n,t.event().transform())},C=function(n,t){return h(n,t.event().transform(),t.event().swap())},k=vR(t.currentState.url),O=xR(e),_=aR(k,e),T=function(n,t){u(n);var e=t.event().transform(),o=t.event().swap();e.fold(function(){o()},function(t){g(n,t,o)})};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[_.memContainer.asSpec(),k.memContainer.asSpec(),O.container],behaviours:bd([Ah.config({store:{mode:"manual",getValue:function(){return o.getBlobState()}}}),rw("image-tools-events",[da(eR.undo(),a),da(eR.redo(),c),da(eR.zoom(),r),da(eR.back(),x),da(eR.apply(),v),da(eR.transform(),w),da(eR.tempTransform(),S),da(eR.transformApply(),C),da(eR.swap(),T)]),rF.self()])}},CR=function(n){var t=Gt(n.options,function(n){return{dom:{tag:"option",value:n.value,innerHtml:n.text}}}),e=n.data.map(function(n){return eo("initialValue",n)}).getOr({});return{uid:n.uid,dom:{tag:"select",classes:n.selectClasses,attributes:n.selectAttributes},components:t,behaviours:Ih(n.selectBehaviours,[mw.config({}),Ah.config({store:vt({mode:"manual",getValue:function(n){return Us(n.element())},setValue:function(t,e){var o=Qt(n.options,function(n){return n.value===e});o.isSome()&&Ws(t.element(),e)}},e)})])}},kR=jv({name:"HtmlSelect",configFields:[fr("options"),Mh("selectBehaviours",[mw,Ah]),Br("selectClasses",[]),Br("selectAttributes",{}),wr("data")],factory:CR}),OR=function(n,t){var e=Gt(n.items,function(n){return{text:t.translate(n.text),value:n.value}}),o=n.label.map(function(n){return CB(n,t)}),r=HE.parts().field({dom:{},selectAttributes:{size:n.size},options:e,factory:kR,selectBehaviours:bd([CO.config({disabled:n.disabled}),vB.config({}),rw("selectbox-change",[da(_u(),function(t){oa(t,CE,{name:n.name})})])])}),i=n.size>1?St.none():St.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:lC("chevron-down",t.icons)}}),u={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[r],i.toArray()])};return HE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([o.toArray(),[u]]),fieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})])})},_R=function(n,t){var e=n.label.map(function(n){return CB(n,t)}),o=[CO.config({disabled:n.disabled}),Xx.config({mode:"execution",useEnter:n.multiline!==!0,useControlEnter:n.multiline===!0,execute:function(n){return ea(n,TE),St.some(!0)}}),rw("textfield-change",[da(Ou(),function(t){oa(t,CE,{name:n.name})}),da(Fu(),function(t){oa(t,CE,{name:n.name})})]),vB.config({})],r=n.validation.map(function(n){return mB.config({getRoot:function(n){return Va(n.element())},invalidClass:"tox-invalid",validator:{validate:function(t){var e=Ah.getValue(t),o=n.validator(e);return tB.pure(o===!0?_t.value(e):_t.error(o))},validateOnLoad:n.validateOnLoad}})}).toArray(),i=n.placeholder.fold(ft({}),function(n){return{placeholder:t.translate(n)}}),u=n.inputMode.fold(ft({}),function(n){return{inputmode:n}}),a=vt(vt({},i),u),c=HE.parts().field({tag:n.multiline===!0?"textarea":"input",inputAttributes:a,inputClasses:[n.classname],inputBehaviours:bd(ne([o,r])),selectOnFocus:!1,factory:UE}),s=n.flex?["tox-form__group--stretched"]:[],f=s.concat(n.maximized?["tox-form-group--maximize"]:[]),l=[CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})];return bB(e,c,f,l)},TR=function(n,t){return _R({name:n.name,multiline:!1,label:n.label,inputMode:n.inputMode,placeholder:n.placeholder,flex:!1,disabled:n.disabled,classname:"tox-textfield",validation:St.none(),maximized:n.maximized},t)},ER=function(n,t){return _R({name:n.name,multiline:!0,label:n.label,inputMode:St.none(),placeholder:n.placeholder,flex:!0,disabled:n.disabled,classname:"tox-textarea",validation:St.none(),maximized:n.maximized},t)},BR=function(n,t){var e=n.stream.streams,o=e.setup(n,t);return ca([da(n.event,o),Ca(function(){return t.cancel()})].concat(n.cancelEvent.map(function(n){return[da(n,function(){return t.cancel()})]}).getOr([])))},DR=Object.freeze({__proto__:null,events:BR}),AR=function(){var n=zr(null),t=function(){return{timer:null!==n.get()?"set":"unset"}},e=function(t){n.set(t)},o=function(){var t=n.get();null!==t&&t.cancel()};return Uc({readState:t,setTimer:e,cancel:o})},MR=function(n){return n.stream.streams.state(n)},FR=Object.freeze({__proto__:null,throttle:AR,init:MR}),IR=function(n,t){var e=n.stream,o=bC(n.onStream,e.delay);return t.setTimer(o),function(n,t){o.throttle(n,t),e.stopEvent&&t.stop()}},RR=[lr("stream",nr("mode",{throttle:[fr("delay"),Br("stopEvent",!0),kl("streams",{setup:IR,state:AR})]})),Br("event","input"),wr("cancelEvent"),Sl("onStream")],VR=xd({fields:RR,name:"streaming",active:DR,state:FR}),HR=function(n,t,e){var o=Ah.getValue(e);Ah.setValue(t,o),PR(t)},NR=function(n,t){var e=n.element(),o=Us(e),r=e.dom();"number"!==fc(e,"type")&&t(r,o)},PR=function(n){NR(n,function(n,t){return n.setSelectionRange(t.length,t.length)})},zR=function(n,t){NR(n,function(n,e){return n.setSelectionRange(t,e.length)})},LR=function(n,t,e){if(n.selectsOver){var o=Ah.getValue(t),r=n.getDisplayText(o),i=Ah.getValue(e),u=n.getDisplayText(i);return 0===u.indexOf(r)?St.some(function(){HR(n,t,e),zR(t,r.length)}):St.none()}return St.none()},jR=ft("alloy.typeahead.itemexecute"),UR=function(n,t,e,o){var r=function(t,e,r){n.previewing.set(!1);var i=BB.getCoupled(t,"sandbox");if(Kp.isOpen(i))Qv.getCurrent(i).each(function(n){bb.getHighlighted(n).fold(function(){r(n)},function(){aa(i,n.element(),"keydown",e)})});else{var a=function(n){Qv.getCurrent(n).each(r)};VB(n,u(t),t,i,o,a,XE.HighlightFirst).get(at)}},i=PE(n),u=function(n){return function(t){return t.map(function(t){var e=ye(t.menus),o=te(e,function(n){return Kt(n.items,function(n){return"item"===n.type})}),r=Ah.getState(n);return r.update(Gt(o,function(n){return n.data})),t})}},a=[mw.config({}),Ah.config({onSetValue:n.onSetValue,store:vt({mode:"dataset",getDataKey:function(n){return Us(n.element())},getFallbackEntry:function(n){return{value:n,meta:{}}},setValue:function(t,e){Ws(t.element(),n.model.getDisplayText(e))}},n.initialData.map(function(n){return eo("initialValue",n)}).getOr({}))}),VR.config({stream:{mode:"throttle",delay:n.responseTime,stopEvent:!1},onStream:function(t){var e=BB.getCoupled(t,"sandbox"),r=mw.isFocused(t);if(r&&Us(t.element()).length>=n.minChars){var i=Qv.getCurrent(e).bind(function(n){return bb.getHighlighted(n).map(Ah.getValue)});n.previewing.set(!0);var a=function(){Qv.getCurrent(e).each(function(t){i.fold(function(){n.model.selectsOver&&bb.highlightFirst(t)},function(n){bb.highlightBy(t,function(t){var e=Ah.getValue(t);return e.value===n.value}),bb.getHighlighted(t).orThunk(function(){return bb.highlightFirst(t),St.none()})})})};VB(n,u(t),t,e,o,a,XE.HighlightFirst).get(at)}},cancelEvent:zu()}),Xx.config({mode:"special",onDown:function(n,t){return r(n,t,bb.highlightFirst),St.some(!0)},onEscape:function(n){var t=BB.getCoupled(n,"sandbox");return Kp.isOpen(t)?(Kp.close(t),St.some(!0)):St.none()},onUp:function(n,t){return r(n,t,bb.highlightLast),St.some(!0)},onEnter:function(t){var e=BB.getCoupled(t,"sandbox"),o=Kp.isOpen(e);if(o&&!n.previewing.get())return Qv.getCurrent(e).bind(function(n){return bb.getHighlighted(n)}).map(function(n){return oa(t,jR(),{item:n}),!0});var r=Ah.getValue(t);return ea(t,zu()),n.onExecute(e,t,r),o&&Kp.close(e),St.some(!0)}}),Mw.config({toggleClass:n.markers.openClass,aria:{mode:"expanded"}}),BB.config({others:{sandbox:function(t){return jB(n,t,{onOpen:function(){return Mw.on(t)},onClose:function(){return Mw.off(t)}})}}}),rw("typeaheadevents",[Oa(function(t){var e=at;NB(n,u(t),t,o,e,XE.HighlightFirst).get(at)}),da(jR(),function(t,e){var o=BB.getCoupled(t,"sandbox");HR(n.model,t,e.event().item()),ea(t,zu()),n.onItemExecute(t,o,e.event().item(),Ah.getValue(t)),Kp.close(o),PR(t)})].concat(n.dismissOnBlur?[da(Mu(),function(n){var t=BB.getCoupled(n,"sandbox");Rd(t.element()).isNone()&&Kp.close(t)})]:[]))];return{uid:n.uid,dom:LE(Be(n,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:vt(vt({},i),Ih(n.typeaheadBehaviours,a)),eventOrder:n.eventOrder}},WR=ft([wr("lazySink"),fr("fetch"),Br("minChars",5),Br("responseTime",1e3),xl("onOpen"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Br("layouts",St.none()),Br("eventOrder",{}),Nr("model",{},[Br("getDisplayText",function(n){return void 0!==n.meta&&void 0!==n.meta.text?n.meta.text:n.value}),Br("selectsOver",!0),Br("populateFromBrowse",!0)]),xl("onSetValue"),wl("onExecute"),xl("onItemExecute"),Br("inputClasses",[]),Br("inputAttributes",{}),Br("inputStyles",{}),Br("matchWidth",!0),Br("useMinWidth",!1),Br("dismissOnBlur",!0),bl(["openClass"]),wr("initialData"),Mh("typeaheadBehaviours",[mw,Ah,VR,Xx,Mw,BB]),Pr("previewing",function(){return zr(!0)})].concat(NE()).concat(WB())),GR=ft([lv({schema:[vl()],name:"menu",overrides:function(n){return{fakeFocus:!0,onHighlight:function(t,e){t.getSystem().getByUid(n.uid).each(n.previewing.get()?function(o){LR(n.model,o,e).fold(function(){return bb.dehighlight(t,e)},function(n){return n()})}:function(t){n.model.populateFromBrowse&&HR(n.model,t,e)}),n.previewing.set(!1)},onExecute:function(t,e){return t.getSystem().getByUid(n.uid).toOption().map(function(n){return oa(n,jR(),{item:e}),!0})},onHover:function(t,e){n.previewing.set(!1),t.getSystem().getByUid(n.uid).each(function(t){n.model.populateFromBrowse&&HR(n.model,t,e)})}}}})]),XR=Uv({name:"Typeahead",configFields:WR(),partFields:GR(),factory:UR}),YR=function(t){var e=function(){return YR(t.toCached())},o=function(n){return YR(t.bind(function(t){return t.fold(function(n){return tB.pure(_t.error(n))},function(t){return n(t)})}))},r=function(n){return YR(t.map(function(t){return t.bind(n)}))},i=function(n){return YR(t.map(function(t){return t.map(n)}))},u=function(n){return YR(t.map(function(t){return t.mapError(n)}))},a=function(n,e){return t.map(function(t){return t.fold(n,e)})},c=function(e,o){return YR(tB.nu(function(r){var i=!1,u=n.setTimeout(function(){i=!0,r(_t.error(o()))},e);t.get(function(t){i||(n.clearTimeout(u),r(t))})}))};return vt(vt({},t),{toCached:e,bindFuture:o,bindResult:r,mapResult:i,mapError:u,foldResult:a,withTimeout:c})},qR=function(n){return YR(tB.nu(n))},KR=function(n){return YR(tB.pure(_t.value(n)))},JR=function(n){return YR(tB.pure(_t.error(n)))},$R=function(n){return YR(tB.pure(n))},QR=function(n){return YR(n.map(_t.value))},ZR=function(n){return qR(function(t){n.then(function(n){t(_t.value(n))},function(n){t(_t.error(n))})})},nV={nu:qR,wrap:YR,pure:KR,value:KR,error:JR,fromResult:$R,fromFuture:QR,fromPromise:ZR},tV={type:"separator"},eV=function(n){return{type:"menuitem",value:n.url,text:n.title,meta:{attach:n.attach},onAction:function(){}}},oV=function(n,t){return{type:"menuitem",value:t,text:n,meta:{attach:void 0},onAction:function(){}}},rV=function(n){return Gt(n,eV)},iV=function(n,t){return Kt(t,function(t){return t.type===n})},uV=function(n,t){return rV(iV(n,t))},aV=function(n){return uV("header",n.targets)},cV=function(n){return uV("anchor",n.targets)},sV=function(n){return St.from(n.anchorTop).map(function(n){return oV("
",n)}).toArray()},fV=function(n){return St.from(n.anchorBottom).map(function(n){return oV("",n)}).toArray()},lV=function(n){return Gt(n,function(n){return oV(n,n)})},dV=function(n){return $t(n,function(n,t){var e=0===n.length||0===t.length;return e?n.concat(t):n.concat(tV,t)},[])},mV=function(n,t){var e=n.toLowerCase();return Kt(t,function(n){var t=void 0!==n.meta&&void 0!==n.meta.text?n.meta.text:n.text;return Ai(t.toLowerCase(),e)||Ai(n.value.toLowerCase(),e)})},gV=function(n,t,e){var o=Ah.getValue(t),r=void 0!==o.meta.text?o.meta.text:o.value,i=e.getLinkInformation();return i.fold(function(){return[]},function(t){var o=mV(r,lV(e.getHistory(n)));return"file"===n?dV([o,mV(r,aV(t)),mV(r,ne([sV(t),cV(t),fV(t)]))]):o})},pV=Sc("aria-invalid"),hV=function(n,t,e){var o,r=t.shared.providers,i=function(t){var o=Ah.getValue(t);e.addToHistory(o.value,n.filetype)},u=HE.parts().field({factory:XR,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":pV,type:"url"},minChars:0,responseTime:0,fetch:function(o){var r=gV(n.filetype,o,e),i=xI(r,FO.BUBBLE_TO_SANDBOX,t,!1);return tB.pure(i)},getHotspot:function(n){return m.getOpt(n)},onSetValue:function(n){n.hasConfigured(mB)&&mB.run(n).get(at)},typeaheadBehaviours:bd(ne([e.getValidationHandler().map(function(t){return mB.config({getRoot:function(n){return Va(n.element())},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(n,t){s.getOpt(n).each(function(n){cc(n.element(),"title",r.translate(t))})}},validator:{validate:function(e){var o=Ah.getValue(e);return nV.nu(function(e){t({type:n.filetype,url:o.value},function(n){if("invalid"===n.status){var t=_t.error(n.message);e(t)}else{var o=_t.value(n.message);e(o)}})})},validateOnLoad:!1}})}).toArray(),[CO.config({disabled:n.disabled}),vB.config({}),rw("urlinput-events",ne(["file"===n.filetype?[da(Ou(),function(t){oa(t,CE,{name:n.name})})]:[],[da(_u(),function(t){oa(t,CE,{name:n.name}),i(t)}),da(Fu(),function(t){oa(t,CE,{name:n.name}),i(t)})]]))]])),eventOrder:(o={},o[Ou()]=["streaming","urlinput-events","invalidating"],o),model:{getDisplayText:function(n){return n.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:cT(!1,1,"normal")},onExecute:function(n,t){oa(t,TE,{})},onItemExecute:function(t){i(t),oa(t,CE,{name:n.name})}}),a=n.label.map(function(n){return CB(n,r)}),c=function(n,t,e,o){return void 0===e&&(e=n),void 0===o&&(o=n),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+n],innerHtml:lC(e,r.icons),attributes:vt({title:r.translate(o),"aria-live":"polite"},t.fold(function(){return{}},function(n){return{id:n}}))}}},s=sC(c("invalid",St.some(pV),"warning")),f=sC({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[s.asSpec()]}),l=e.getUrlPicker(n.filetype),d=Sc("browser.url.event"),m=sC({dom:{tag:"div",classes:["tox-control-wrap"]},components:[u,f.asSpec()],behaviours:bd([CO.config({disabled:n.disabled})])}),g=sC(EI({name:n.name,icon:St.some("browse"),text:n.label.getOr(""),disabled:n.disabled,primary:!1,borderless:!0},function(n){return ea(n,d)},r,[],["tox-browse-url"])),p=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[m.asSpec()],l.map(function(){return g.asSpec()}).toArray()])}},h=function(t){Qv.getCurrent(t).each(function(e){var o=Ah.getValue(e),r=vt({fieldname:n.name},o);l.each(function(o){o(r).get(function(o){Ah.setValue(e,o),oa(t,CE,{name:n.name})})})})};return HE.sketch({dom:wB(),components:a.toArray().concat([p()]),fieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable),g.getOpt(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable),g.getOpt(n).each(CO.enable)}}),rw("url-input-events",[da(d,h)])])})},vV=function(n,t){var e=Ah.config({store:{mode:"manual",getValue:function(n){var t=n.element().dom();return t.checked},setValue:function(n,t){var e=n.element().dom();e.checked=t}}}),o=function(n){return n.element().dom().click(),St.some(!0)},r=HE.parts().field({factory:{sketch:lt},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:bd([rF.self(),CO.config({disabled:n.disabled}),vB.config({}),mw.config({}),e,Xx.config({mode:"special",onEnter:o,onSpace:o,stopSpaceKeyup:!0}),rw("checkbox-events",[da(_u(),function(t){oa(t,CE,{name:n.name})})])])}),i=HE.parts().label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(n.label)},behaviours:bd([QB.config({})])}),u=function(n){var e="checked"===n?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+n],innerHtml:lC(e,t.icons)}}},a=sC({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[u("checked"),u("unchecked")]});return HE.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[r,a.asSpec(),i],fieldBehaviours:bd([CO.config({disabled:n.disabled,disableClass:"tox-checkbox--disabled",onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})])})},bV=function(n){return wE.sketch("presentation"===n.presets?{dom:{tag:"div",classes:["tox-form__group"],innerHtml:n.html}}:{dom:{tag:"div",classes:["tox-form__group"],innerHtml:n.html,attributes:{role:"document"}},containerBehaviours:bd([vB.config({}),mw.config({})])})},yV=function(n,t){var e={dom:{tag:"label",innerHtml:t.providers.translate(n.label),classes:["tox-label"]}},o=Gt(n.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[e].concat(o),behaviours:bd([rF.self(),ew.config({}),yF.domHtml(St.none()),Xx.config({mode:"acyclic"})])}},xV=function(n,t){var e=n.label.map(function(n){return CB(n,t)}),o=function(n){return function(t,e){$f(e.event().target(),"[data-collection-item-value]").each(function(o){n(t,e,o,fc(o,"data-collection-item-value"))})}},r=function(n){return'"'===n?""":n},i=function(t,e){var o=Gt(e,function(t){var e=Ek.translate(t.text),o=1===n.columns?''+e+"
":"",i=''+t.icon+"
",u={_:" "," - ":" ","-":" "},a=e.replace(/\_| \- |\-/g,function(n){return u[n]});return''+i+o+"
"}),i=n.columns>1&&"auto"!==n.columns?Wt(o,n.columns):[o],u=Gt(i,function(n){return''+n.join("")+"
"});nc(t.element(),u.join(""))},u=o(function(t,e,o,r){e.stop(),oa(t,_E,{name:n.name,value:r})}),a=[da(xu(),o(function(n,t,e){Ad(e)})),da(Tu(),u),da(Hu(),u),da(wu(),o(function(n,t,e){Jf(n.element(),"."+zk).each(function(n){Cs(n,zk)}),ws(e,zk)})),da(Su(),o(function(n){Jf(n.element(),"."+zk).each(function(n){Cs(n,zk)})})),Oa(o(function(t,e,o,r){oa(t,_E,{name:n.name,value:r})}))],c=HE.parts().field({dom:{tag:"div",classes:["tox-collection"].concat(1!==n.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:lt},behaviours:bd([ew.config({}),Ah.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,e){i(t,e),"auto"===n.columns&&dk(t,5,"tox-collection__item").each(function(n){var e=n.numRows,o=n.numColumns;Xx.setGridSize(t,e,o)}),ea(t,AE)}}),vB.config({}),Xx.config(CT(n.columns,"normal")),rw("collection-events",a)])}),s=["tox-form__group--collection"];return bB(e,c,s,[])},wV=function(n,t){var e=function(n){return{dom:{tag:"th",innerHtml:t.translate(n)}}},o=function(n){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:Gt(n,e)}]}},r=function(n){return{dom:{tag:"td",innerHtml:t.translate(n)}}},i=function(n){return{dom:{tag:"tr"},components:Gt(n,r)}},u=function(n){return{dom:{tag:"tbody"},components:Gt(n,i)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[o(n.header),u(n.cells)],behaviours:bd([vB.config({}),mw.config({})])}},SV=function(n,t){return{dom:{tag:"div",classes:n.classes},components:Gt(n.items,t.shared.interpreter)}},CV=function(n){return function(t,e,o){return xe(e,"name").fold(function(){return n(e,o)},function(r){return t.field(r,n(e,o))})}},kV=function(n){return function(t,e,o){var r=Be(e,{source:"dynamic"});return CV(n)(t,r,o)}},OV={bar:CV(function(n,t){return FE(n,t.shared)}),collection:CV(function(n,t){return xV(n,t.shared.providers)}),alertbanner:CV(function(n,t){return ME(n,t.shared.providers)}),input:CV(function(n,t){return TR(n,t.shared.providers)}),textarea:CV(function(n,t){return ER(n,t.shared.providers)}),label:CV(function(n,t){return yV(n,t.shared)}),iframe:kV(function(n,t){return IF(n,t.shared.providers)}),button:CV(function(n,t){return FI(n,t.shared.providers)}),checkbox:CV(function(n,t){return vV(n,t.shared.providers)}),colorinput:CV(function(n,t){return oD(n,t.shared,t.colorinput)}),colorpicker:CV(cF),dropzone:CV(function(n,t){return SF(n,t.shared.providers)}),grid:CV(function(n,t){return CF(n,t.shared)}),selectbox:CV(function(n,t){return OR(n,t.shared.providers)}),sizeinput:CV(function(n,t){return XI(n,t.shared.providers)}),urlinput:CV(function(n,t){return hV(n,t,t.urlinput)}),customeditor:CV(lF),htmlpanel:CV(bV),imagetools:CV(function(n,t){return SR(n,t.shared.providers)}),table:CV(function(n,t){return wV(n,t.shared.providers)}),panel:CV(function(n,t){return SV(n,t)})},_V={field:function(n,t){return t}},TV=function(n,t,e){var o=Be(e,{shared:{interpreter:function(t){return EV(n,t,o)}}});return EV(n,t,o)},EV=function(t,e,o){return xe(OV,e.type).fold(function(){return n.console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e},function(n){return n(t,e,o)})},BV=function(n,t){var e=_V;return EV(e,n,t)},DV={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},AV=function(n,t,e){var o=vm(-12,12,DV),r={maxHeightFunction:lm()},i=function(){return{anchor:"node",root:Ds(Fa(n())),node:St.from(n()),bubble:o,layouts:{onRtl:function(){return[TS]},onLtr:function(){return[_S]}},overrides:r}},u=function(){return{anchor:"hotspot",hotspot:t(),bubble:o,layouts:{onRtl:function(){return[$l]},onLtr:function(){return[Ql]}},overrides:r}};return e?i:u},MV=function(n,t,e){var o=function(){return{anchor:"node",root:Ds(Fa(n())),node:St.from(n()),layouts:{onRtl:function(){return[ES]},onLtr:function(){return[ES]}}}},r=function(){return{anchor:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[ed]},onLtr:function(){return[ed]}}}};return e?o:r},FV=function(n,t){return function(){return{anchor:"selection",root:t(),getSelection:function(){var t=n.selection.getRng();return St.some(Jm.range(Xr.fromDom(t.startContainer),t.startOffset,Xr.fromDom(t.endContainer),t.endOffset))}}}},IV=function(n){return function(t){return{anchor:"node",root:n(),node:t}}},RV=function(n,t){var e=eC(n),o=function(){return Xr.fromDom(n.getBody())},r=function(){return Xr.fromDom(n.getContentAreaContainer())},i=e||!ZS(n);return{inlineDialog:AV(r,t,i),banner:MV(r,t,i),cursor:FV(n,o),node:IV(o)}},VV={getAnchors:RV},HV=function(n){return function(t,e){var o=eT.colorPickerDialog(n);o(t,e)}},NV=function(n){return function(){return M_.hasCustomColors(n)}},PV=function(n){return function(){return M_.getColors(n)}},zV=function(n){return function(){return eT.getColorCols(n)}},LV=function(n){return{colorPicker:HV(n),hasCustomColors:NV(n),getColors:PV(n),getColorCols:zV(n)}},jV=function(n){return function(){return uC(n)}},UV=function(n){return{isDraggableModal:jV(n)}},WV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strike-through",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}]}],GV=function(n){return we(n,"items")},XV=function(n){return we(n,"block")},YV=function(n){return we(n,"inline")},qV=function(n){return we(n,"selector")},KV=function(n){return $t(n,function(n,t){if(GV(t)){var e=KV(t.items);return{customFormats:n.customFormats.concat(e.customFormats),formats:n.formats.concat([{title:t.title,items:e.formats}])}}if(YV(t)||XV(t)||qV(t)){var o="custom-"+t.title.toLowerCase();return{customFormats:n.customFormats.concat([{name:o,format:t}]),formats:n.formats.concat([{title:t.title,format:o,icon:t.icon}])}}return vt(vt({},n),{formats:n.formats.concat(t)})},{customFormats:[],formats:[]})},JV=function(n,t){var e=KV(t),o=function(t){Xt(t,function(t){n.formatter.has(t.name)||n.formatter.register(t.name,t.format)})};return n.formatter?o(e.customFormats):n.on("init",function(){o(e.customFormats)}),e.formats},$V=function(n){return jS(n).map(function(t){var e=JV(n,t);return US(n)?WV.concat(e):e}).getOr(WV)},QV=function(n,t,e){var o={type:"formatter",isSelected:t(n.format),getStylePreview:e(n.format)};return Be(n,o)},ZV=function(n,t,e,o){var r=function(n){return QV(n,e,o)},i=function(n){var t={type:"submenu"};return Be(n,t)},u=function(t){var r=Sc(t.title),i={type:"formatter",format:r,isSelected:e(r),getStylePreview:o(r)},u=Be(t,i);return n.formatter.register(r,u),u},a=function(n){return Gt(n,function(n){var t=de(n);if(Se(n,"items")){var e=a(n.items);return Be(i(n),{getStyleItems:function(){return e}})}return Se(n,"format")?r(n):1===t.length&&Lt(t,"title")?Be(n,{type:"separator"}):u(n)})};return a(t)},nH=function(n){var t=function(t){return function(){return n.formatter.match(t)}},e=function(t){return function(){var e=n.formatter.get(t);return void 0!==e?St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))}):St.none()}},o=function(n){var t=n.items;return void 0!==t&&t.length>0?te(t,o):[n.format]},r=zr([]),i=zr([]),u=zr([]),a=zr([]),c=zr(!1);n.on("PreInit",function(){var u=$V(n),a=ZV(n,u,t,e);r.set(a),i.set(te(a,o))}),n.on("addStyleModifications",function(r){var i=ZV(n,r.items,t,e);u.set(i),c.set(r.replace),a.set(te(i,o))});var s=function(){var n=c.get()?[]:r.get(),t=u.get();return n.concat(t)},f=function(){var n=c.get()?[]:i.get(),t=a.get();return n.concat(t)};return{getData:s,getFlattenedKeys:f}},tH=lR.trim,eH=function(n){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===n)return!0;if(t.getAttribute("data-mce-contenteditable")===n)return!0}return!1}},oH=eH("true"),rH=eH("false"),iH=function(n,t,e,o,r){return{type:n,title:t,url:e,level:o,attach:r}},uH=function(n){for(;n=n.parentNode;){var t=n.contentEditable;if(t&&"inherit"!==t)return oH(n)}return!1},aH=function(n,t){return Gt(bg(Xr.fromDom(t),n),function(n){return n.dom()})},cH=function(n){return n.innerText||n.textContent},sH=function(n){return n.id?n.id:Sc("h")},fH=function(n){return n&&"A"===n.nodeName&&void 0!==(n.id||n.name)},lH=function(n){return fH(n)&&mH(n)},dH=function(n){return n&&/^(H[1-6])$/.test(n.nodeName)},mH=function(n){return uH(n)&&!rH(n)},gH=function(n){return dH(n)&&mH(n)},pH=function(n){return dH(n)?parseInt(n.nodeName.substr(1),10):0},hH=function(n){var t=sH(n),e=function(){n.id=t};return iH("header",cH(n),"#"+t,pH(n),e)},vH=function(n){var t=n.id||n.name,e=cH(n);return iH("anchor",e?e:"#"+t,"#"+t,0,at)},bH=function(n){return Gt(Kt(n,gH),hH)},yH=function(n){return Gt(Kt(n,lH),vH)},xH=function(n){var t=aH("h1,h2,h3,h4,h5,h6,a:not([href])",n);return t},wH=function(n){return tH(n.title).length>0},SH=function(n){var t=xH(n);return Kt(bH(t).concat(yH(t)),wH)},CH={find:SH},kH="tinymce-url-history",OH=5,_H=function(n){return Bt(n)&&/^https?/.test(n)},TH=function(n){return At(n)&&n.length<=OH&&ee(n,_H)},EH=function(n){return Dt(n)&&be(n,function(n){return!TH(n)}).isNone()},BH=function(){var t=n.localStorage.getItem(kH);if(null===t)return{};var e;try{e=JSON.parse(t)}catch(o){if(o instanceof SyntaxError)return n.console.log("Local storage "+kH+" was not valid JSON",o),{};throw o}return EH(e)?e:(n.console.log("Local storage "+kH+" was not valid format",e),{})},DH=function(t){if(!EH(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));n.localStorage.setItem(kH,JSON.stringify(t))},AH=function(n){var t=BH();return Object.prototype.hasOwnProperty.call(t,n)?t[n]:[]},MH=function(n,t){if(_H(n)){var e=BH(),o=Object.prototype.hasOwnProperty.call(e,t)?e[t]:[],r=Kt(o,function(t){return t!==n});e[t]=[n].concat(r).slice(0,OH),DH(e)}},FH=Object.prototype.hasOwnProperty,IH=function(n){return!!n},RH=function(n){return pe(lR.makeMap(n,/[, ]/),IH)},VH=function(n,t){return FH.call(n,t)?St.some(n[t]):St.none()},HH=function(n,t,e){var o=VH(n,t).getOr(e);return Bt(o)?St.some(o):St.none()},NH=function(n){return St.some(n.file_picker_callback).filter(Ft)},PH=function(n){var t=St.some(n.file_picker_types).filter(IH),e=St.some(n.file_browser_callback_types).filter(IH),o=t.or(e).map(RH);return NH(n).fold(function(){return!1},function(){return o.fold(function(){return!0},function(n){return de(n).length>0?n:!1})})},zH=function(n,t){var e=PH(n);return Mt(e)?e?NH(n):St.none():e[t]?NH(n):St.none()},LH=function(n,t){return zH(n.settings,t).map(function(e){return function(o){return tB.nu(function(r){var i=function(n,t){if(!Bt(n))throw new Error("Expected value to be string");if(void 0!==t&&!Dt(t))throw new Error("Expected meta to be a object");var e={value:n,meta:t};r(e)},u=vt({filetype:t,fieldname:o.fieldname},St.from(o.meta).getOr({}));e.call(n,i,o.value,u)})}})},jH=function(n){return n.settings.typeahead_urls===!1?St.none():St.some({targets:CH.find(n.getBody()),anchorTop:HH(n.settings,"anchor_top","#top").getOrUndefined(),anchorBottom:HH(n.settings,"anchor_bottom","#bottom").getOrUndefined()})},UH=function(n){var t=St.from(n.settings.file_picker_validator_handler).filter(Ft);return t.orThunk(function(){return St.from(n.settings.filepicker_validator_handler).filter(Ft)})},WH=function(n){return{getHistory:AH,addToHistory:MH,getLinkInformation:function(){return jH(n)},getValidationHandler:function(){return UH(n)},getUrlPicker:function(t){return LH(n,t)}}},GH=function(n,t,e){var o=zr(!1),r={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:Ek.translate},interpreter:function(n){return BV(n,r)},anchors:VV.getAnchors(t,e),getSink:function(){return _t.value(n)}},urlinput:WH(t),styleselect:nH(t),colorinput:LV(t),dialog:UV(t),isContextMenuOpen:function(){return o.get()},setContextMenuState:function(n){return o.set(n)}};return r},XH=ft(function(n,t){xf(n,Math.floor(t))}),YH="contexttoolbar-show",qH="contexttoolbar-hide",KH=ft([fr("items"),bl(["itemSelector"]),Mh("tgroupBehaviours",[Xx])]),JH=ft([mv({name:"items",unit:"item"})]),$H=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.tgroupBehaviours,[Xx.config({mode:"flow",selector:n.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},QH=Uv({name:"ToolbarGroup",configFields:KH(),partFields:JH(),factory:$H}),ZH=ft([fr("dom"),Br("shell",!0),Mh("toolbarBehaviours",[ew])]),nN=function(){return{behaviours:bd([ew.config({})])}
+},tN=ft([dv({name:"groups",overrides:nN})]),eN=function(t,e){var o=function(t,e){r(t).fold(function(){throw n.console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},function(n){ew.set(n,e)})},r=function(n){return t.shell?St.some(n):Ov(n,t,"groups")},i=t.shell?{behaviours:[ew.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:i.components,behaviours:Ih(t.toolbarBehaviours,i.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},oN=Uv({name:"Toolbar",configFields:ZH(),partFields:tN(),factory:eN,apis:{setGroups:function(n,t,e){n.setGroups(t,e)}}}),rN=function(n,t){var e={len:0,list:[]},o=$t(n,function(n,e){var o=t(e,n.len);return o.fold(ft(n),function(t){return{len:t.finish(),list:n.list.concat([t])}})},e);return o.list},iN=_a("within","extra","withinWidth"),uN=function(n,t,e){var o=rN(n,function(n,t){var o=e(n);return St.some({element:ft(n),start:ft(t),finish:ft(t+o),width:ft(o)})}),r=Kt(o,function(n){return n.finish()<=t}),i=Jt(r,function(n,t){return n+t.width()},0),u=o.slice(r.length);return{within:ft(r),extra:ft(u),withinWidth:ft(i)}},aN=function(n){return Gt(n,function(n){return n.element()})},cN=function(n,t,e){var o=aN(n.concat(t));return iN(o,[],e)},sN=function(n,t,e,o){var r=aN(n).concat([e]);return iN(r,aN(t),o)},fN=function(n,t,e){return iN(aN(n),[],e)},lN=function(n,t,e){var o=uN(t,n,e);return 0===o.extra().length?St.some(o):St.none()},dN=function(n,t,e,o){var r=lN(n,t,e).getOrThunk(function(){return uN(t,n-e(o),e)}),i=r.within(),u=r.extra(),a=r.withinWidth();return 1===u.length&&u[0].width()<=e(o)?cN(i,u,a):u.length>=1?sN(i,u,o,a):fN(i,u,a)},mN=function(n,t){var e=Gt(t,function(n){return rf(n)});oN.setGroups(n,e)},gN=function(n){return le(n,function(n){return Rd(n.element()).bind(function(t){return n.getSystem().getByDom(t).toOption()})})},pN=function(n,t,e){var o=_v(n,t,"primary"),r=BB.getCoupled(n,"overflowGroup");Fs(o.element(),"visibility","hidden");var i=t.builtGroups.get().concat([r]),u=gN(i);e([]),mN(o,i);var a=bf(o.element()),c=dN(a,t.builtGroups.get(),function(n){return bf(n.element())},r);0===c.extra().length?(ew.remove(o,r),e([])):(mN(o,c.within()),e(c.extra())),Ls(o.element(),"visibility"),js(o.element()),u.each(mw.focus)},hN=ft([Mh("splitToolbarBehaviours",[BB]),Pr("builtGroups",function(){return zr([])})]),vN=ft([bl(["overflowToggledClass"]),Or("getOverflowBounds"),fr("lazySink"),Pr("overflowGroups",function(){return zr([])})].concat(hN())),bN=ft([fv({factory:oN,schema:ZH(),name:"primary"}),lv({schema:ZH(),name:"overflow"}),lv({name:"overflow-button"}),lv({name:"overflow-group"})]),yN=ft([bl(["toggledClass"]),fr("lazySink"),hr("fetch"),Or("getBounds"),Tr("fireDismissalEventInstead",[Br("event",qu())]),Om()]),xN=ft([lv({name:"button",overrides:function(n){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:bd([Mw.config({toggleClass:n.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),lv({factory:oN,schema:ZH(),name:"toolbar",overrides:function(n){return{toolbarBehaviours:bd([Xx.config({mode:"cyclic",onEscape:function(t){return Ov(t,n,"button").each(mw.focus),St.none()}})])}}})]),wN=function(n,t){var e=BB.getCoupled(n,"toolbarSandbox");Kp.isOpen(e)?Kp.close(e):Kp.open(e,t.toolbar())},SN=function(n,t,e,o){var r=e.getBounds.map(function(n){return n()}),i=e.lazySink(n).getOrDie();pp.positionWithinBounds(i,{anchor:"hotspot",hotspot:n,layouts:o,overrides:{maxWidthFunction:XH()}},t,r)},CN=function(n,t,e,o,r){oN.setGroups(t,r),SN(n,t,e,o),Mw.on(n)},kN=function(n,t,e){var o=Zf(),r=function(r,i){e.fetch().get(function(r){CN(n,i,e,t.layouts,r),o.link(n.element()),Xx.focusIn(i)})},i=function(){Mw.off(n),mw.focus(n),o.unlink(n.element())};return{dom:{tag:"div",attributes:{id:o.id()}},behaviours:bd([Xx.config({mode:"special",onEscape:function(n){return Kp.close(n),St.some(!0)}}),Kp.config({onOpen:r,onClose:i,isPartOf:function(t,e,o){return tl(e,o)||tl(n,o)},getAttachPoint:function(){return e.lazySink(n).getOrDie()}}),Ed.config({channels:vt(vt({},nh(vt({isExtraPart:gt},e.fireDismissalEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})))),eh({doReposition:function(){Kp.getState(BB.getCoupled(n,"toolbarSandbox")).each(function(o){SN(n,o,e,t.layouts)})}}))})])}},ON=function(n,t,e,o){return vt(vt({},cC.sketch(vt(vt({},o.button()),{action:function(n){wN(n,o)},buttonBehaviours:Rh.augment({dump:o.button().buttonBehaviours},[BB.config({others:{toolbarSandbox:function(t){return kN(t,e,n)}}})])}))),{apis:{setGroups:function(t,o){Kp.getState(BB.getCoupled(t,"toolbarSandbox")).each(function(r){CN(t,r,n,e.layouts,o)})},reposition:function(t){Kp.getState(BB.getCoupled(t,"toolbarSandbox")).each(function(o){SN(t,o,n,e.layouts)})},toggle:function(n){wN(n,o)},getToolbar:function(n){return Kp.getState(BB.getCoupled(n,"toolbarSandbox"))}}})},_N=Uv({name:"FloatingToolbarButton",factory:ON,configFields:yN(),partFields:xN(),apis:{setGroups:function(n,t,e){n.setGroups(t,e)},reposition:function(n,t){n.reposition(t)},toggle:function(n,t){n.toggle(t)},getToolbar:function(n,t){return n.getToolbar(t)}}}),TN=function(n){return Gt(n,function(n){return rf(n)})},EN=function(n,t,e){pN(n,e,function(o){e.overflowGroups.set(o),t.getOpt(n).each(function(n){_N.setGroups(n,TN(o))})})},BN=function(n,t,e,o){var r=sC(_N.sketch({fetch:function(){return tB.nu(function(t){t(TN(n.overflowGroups.get()))})},layouts:{onLtr:function(){return[Ql,$l]},onRtl:function(){return[$l,Ql]},onBottomLtr:function(){return[nd,Zl]},onBottomRtl:function(){return[Zl,nd]}},getBounds:e.getOverflowBounds,lazySink:n.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:n.markers.overflowToggledClass},parts:{button:o["overflow-button"](),toolbar:o.overflow()}}));return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.splitToolbarBehaviours,[BB.config({others:{overflowGroup:function(){return QH.sketch(vt(vt({},o["overflow-group"]()),{items:[r.asSpec()]}))}}})]),apis:{setGroups:function(t,e){n.builtGroups.set(Gt(e,t.getSystem().build)),EN(t,r,n)},refresh:function(t){return EN(t,r,n)},toggle:function(n){r.getOpt(n).each(function(n){_N.toggle(n)})},reposition:function(n){r.getOpt(n).each(function(n){_N.reposition(n)})},getOverflow:function(n){return r.getOpt(n).bind(function(n){return _N.getToolbar(n)})}},domModification:{attributes:{role:"group"}}}},DN=Uv({name:"SplitFloatingToolbar",configFields:vN(),partFields:bN(),factory:BN,apis:{setGroups:function(n,t,e){n.setGroups(t,e)},refresh:function(n,t){n.refresh(t)},reposition:function(n,t){n.reposition(t)},toggle:function(n,t){n.toggle(t)},getOverflow:function(n,t){return n.getOverflow(t)}}}),AN=function(n,t){return t.getAnimationRoot.fold(function(){return n.element()},function(t){return t(n)})},MN=function(n){return n.dimension.property},FN=function(n,t){return n.dimension.getDimension(t)},IN=function(n,t){var e=AN(n,t);_s(e,[t.shrinkingClass,t.growingClass])},RN=function(n,t){Cs(n.element(),t.openClass),ws(n.element(),t.closedClass),Fs(n.element(),MN(t),"0px"),js(n.element())},VN=function(n,t){Cs(n.element(),t.closedClass),ws(n.element(),t.openClass),Ls(n.element(),MN(t))},HN=function(n,t,e){e.setCollapsed(),Fs(n.element(),MN(t),FN(t,n.element())),js(n.element()),IN(n,t),RN(n,t),t.onStartShrink(n),t.onShrunk(n)},NN=function(n,t,e,o){var r=o.getOrThunk(function(){return FN(t,n.element())});e.setCollapsed(),Fs(n.element(),MN(t),r),js(n.element());var i=AN(n,t);Cs(i,t.growingClass),ws(i,t.shrinkingClass),RN(n,t),t.onStartShrink(n)},PN=function(n,t,e){var o=FN(t,n.element()),r="0px"===o?HN:NN;r(n,t,e,St.some(o))},zN=function(n,t,e){var o=AN(n,t),r=ks(o,t.shrinkingClass),i=FN(t,n.element());VN(n,t);var u=FN(t,n.element()),a=function(){Fs(n.element(),MN(t),i),js(n.element())},c=function(){RN(n,t)},s=r?a:c;s(),Cs(o,t.shrinkingClass),ws(o,t.growingClass),VN(n,t),Fs(n.element(),MN(t),u),e.setExpanded(),t.onStartGrow(n)},LN=function(n,t,e){if(e.isExpanded()){Ls(n.element(),MN(t));var o=FN(t,n.element());Fs(n.element(),MN(t),o)}},jN=function(n,t,e){e.isExpanded()||zN(n,t,e)},UN=function(n,t,e){e.isExpanded()&&PN(n,t,e)},WN=function(n,t,e){e.isExpanded()&&HN(n,t,e,St.none())},GN=function(n,t,e){return e.isExpanded()},XN=function(n,t,e){return e.isCollapsed()},YN=function(n,t){var e=AN(n,t);return ks(e,t.growingClass)===!0},qN=function(n,t){var e=AN(n,t);return ks(e,t.shrinkingClass)===!0},KN=function(n,t){return YN(n,t)===!0||qN(n,t)===!0},JN=function(n,t,e){var o=e.isExpanded()?PN:zN;o(n,t,e)},$N=Object.freeze({__proto__:null,refresh:LN,grow:jN,shrink:UN,immediateShrink:WN,hasGrown:GN,hasShrunk:XN,isGrowing:YN,isShrinking:qN,isTransitioning:KN,toggleGrow:JN,disableTransitions:IN}),QN=function(n,t){var e=t.expanded;return qc(e?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:eo(t.dimension.property,"0px")})},ZN=function(n,t){return ca([wa(Eu(),function(e,o){var r=o.event().raw();if(r.propertyName===n.dimension.property){IN(e,n),t.isExpanded()&&Ls(e.element(),n.dimension.property);var i=t.isExpanded()?n.onGrown:n.onShrunk;i(e)}})])},nP=Object.freeze({__proto__:null,exhibit:QN,events:ZN}),tP=[fr("closedClass"),fr("openClass"),fr("shrinkingClass"),fr("growingClass"),wr("getAnimationRoot"),xl("onShrunk"),xl("onStartShrink"),xl("onGrown"),xl("onStartGrow"),Br("expanded",!1),lr("dimension",nr("property",{width:[kl("property","width"),kl("getDimension",function(n){return bf(n)+"px"})],height:[kl("property","height"),kl("getDimension",function(n){return af(n)+"px"})]}))],eP=function(n){var e=zr(n.expanded),o=function(){return"expanded: "+e.get()};return Uc({isExpanded:function(){return e.get()===!0},isCollapsed:function(){return e.get()===!1},setCollapsed:t(e.set,!1),setExpanded:t(e.set,!0),readState:o})},oP=Object.freeze({__proto__:null,init:eP}),rP=xd({fields:tP,name:"sliding",active:nP,apis:$N,state:oP}),iP=ft([bl(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),xl("onOpened"),xl("onClosed")].concat(hN())),uP=ft([fv({factory:oN,schema:ZH(),name:"primary"}),fv({factory:oN,schema:ZH(),name:"overflow",overrides:function(n){return{toolbarBehaviours:bd([rP.config({dimension:{property:"height"},closedClass:n.markers.closedClass,openClass:n.markers.openClass,shrinkingClass:n.markers.shrinkingClass,growingClass:n.markers.growingClass,onShrunk:function(t){Ov(t,n,"overflow-button").each(function(n){Mw.off(n),mw.focus(n)}),n.onClosed(t)},onGrown:function(t){Xx.focusIn(t),n.onOpened(t)},onStartGrow:function(t){Ov(t,n,"overflow-button").each(Mw.on)}}),Xx.config({mode:"acyclic",onEscape:function(t){return Ov(t,n,"overflow-button").each(mw.focus),St.some(!0)}})])}}}),lv({name:"overflow-button",overrides:function(n){return{buttonBehaviours:bd([Mw.config({toggleClass:n.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),lv({name:"overflow-group"})]),aP=function(n,t){Ov(n,t,"overflow").each(function(e){cP(n,t),rP.toggleGrow(e)})},cP=function(n,t){Ov(n,t,"overflow").each(function(e){pN(n,t,function(n){var t=Gt(n,function(n){return rf(n)});oN.setGroups(e,t)}),Ov(n,t,"overflow-button").each(function(n){rP.hasGrown(e)&&Mw.on(n)}),rP.refresh(e)})},sP=function(n,t,e,o){var r="alloy.toolbar.toggle",i=function(t,e){var o=Gt(e,t.getSystem().build);n.builtGroups.set(o)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.splitToolbarBehaviours,[BB.config({others:{overflowGroup:function(n){return QH.sketch(vt(vt({},o["overflow-group"]()),{items:[cC.sketch(vt(vt({},o["overflow-button"]()),{action:function(){ea(n,r)}}))]}))}}}),rw("toolbar-toggle-events",[da(r,function(t){Ov(t,n,"overflow").each(function(e){cP(t,n),rP.toggleGrow(e)})})])]),apis:{setGroups:function(t,e){i(t,e),cP(t,n)},refresh:function(t){return cP(t,n)},toggle:function(t){return aP(t,n)}},domModification:{attributes:{role:"group"}}}},fP=Uv({name:"SplitSlidingToolbar",configFields:iP(),partFields:uP(),factory:sP,apis:{setGroups:function(n,t,e){n.setGroups(t,e)},refresh:function(n,t){n.refresh(t)},toggle:function(n,t){n.toggle(t)}}}),lP=ft(Sc("toolbar-height-change")),dP="silver.readonly",mP=Mo([pr("readonly")]),gP=function(n,t){$i("*",n.element()).forEach(function(e){n.getSystem().getByDom(e).each(function(n){n.hasConfigured(CO)&&CO.set(n,t)})})},pP=function(n,t){var e=n.outerContainer,o=e.element();t&&(n.mothership.broadcastOn([Jp()],{target:o}),n.uiMothership.broadcastOn([Jp()],{target:o})),n.mothership.broadcastOn([dP],{readonly:t}),n.uiMothership.broadcastOn([dP],{readonly:t})},hP=function(n,t){var e=n.outerContainer;pP(n,t),$i("*",e.element()).forEach(function(n){e.getSystem().getByDom(n).each(function(n){n.hasConfigured(CO)&&CO.set(n,t)})})},vP=function(n,t){n.on("init",function(){n.mode.isReadOnly()&&hP(t,!0)}),n.on("SwitchMode",function(){return hP(t,n.mode.isReadOnly())}),IS(n)&&n.setMode("readonly")},bP=function(n){var t;return Ed.config({channels:(t={},t[dP]={schema:mP,onReceive:function(t,e){n(t).each(function(n){gP(n,e.readonly)})}},t)})},yP=function(n){var t=n.title.fold(function(){return{}},function(n){return{attributes:{title:n}}});return{dom:vt({tag:"div",classes:["tox-toolbar__group"]},t),components:[QH.parts().items({})],items:n.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:bd([vB.config({}),mw.config({})])}},xP=function(n){return QH.sketch(yP(n))},wP=function(n,t,e){var o=Sa(function(t){var e=Gt(n.initGroups,xP);oN.setGroups(t,e)});return bd([Xx.config({mode:t,onEscape:n.onEscape,selector:".tox-toolbar__group"}),rw("toolbar-events",[o]),bP(e)])},SP=function(n,t){var e=n.cyclicKeying?"cyclic":"acyclic";return{uid:n.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":yP({title:St.none(),items:[]}),"overflow-button":OI({name:"more",icon:St.some("more-drawer"),disabled:!1,tooltip:St.some("More..."),primary:!1,borderless:!1},St.none(),n.backstage.shared.providers)},splitToolbarBehaviours:wP(n,e,t)}},CP=function(n){var t=SP(n,DN.getOverflow),e=4,o=DN.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return DN.sketch(vt(vt({},t),{lazySink:n.getSink,getOverflowBounds:function(){var t=n.moreDrawerData.lazyHeader().element(),o=Uf(t),r=Ia(t),i=Uf(r),u=Math.max(r.dom().scrollHeight,i.height());return Lf(o.x()+e,i.y(),o.width()-2*e,u)},parts:vt(vt({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:n.attributes}}}),components:[o],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},kP=function(n){var t=fP.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),e=fP.parts().overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),o=SP(n,St.none);return fP.sketch(vt(vt({},o),{components:[t,e],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(n){n.getSystem().broadcastOn([lP()],{type:"opened"})},onClosed:function(n){n.getSystem().broadcastOn([lP()],{type:"closed"})}}))},OP=function(n){var t=n.cyclicKeying?"cyclic":"acyclic";return oN.sketch({uid:n.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(n.type===jb.scrolling?["tox-toolbar--scrolling"]:[])},components:[oN.parts().groups({})],toolbarBehaviours:wP(n,t,ft(St.none()))})},_P=[Ir("disabled",!1),kr("tooltip"),kr("icon"),kr("text"),Rr("onSetup",function(){return at})],TP=Mo([mr("type"),hr("onAction")].concat(_P)),EP=function(n){return Ko("toolbarbutton",TP,n)},BP=[kr("text"),kr("tooltip"),kr("icon"),hr("fetch"),Rr("onSetup",function(){return at})],DP=Mo(o([mr("type")],BP)),AP=function(n){return Ko("menubutton",DP,n)},MP=Mo([mr("type"),kr("tooltip"),kr("icon"),kr("text"),Or("select"),hr("fetch"),Rr("onSetup",function(){return at}),Fr("presets","normal",["normal","color","listpreview"]),Br("columns",1),hr("onAction"),hr("onItemAction")]),FP=function(n){return Ko("SplitButton",MP,n)},IP=[Ir("active",!1)].concat(_P),RP=Mo(IP.concat([mr("type"),hr("onAction")])),VP=function(n){return Ko("ToggleButton",RP,n)},HP=Mo([mr("type"),lr("items",Io([Uo([mr("name"),xr("items",rr)]),rr]))].concat(_P)),NP=function(n){return Ko("GroupToolbarButton",HP,n)},PP=[Rr("predicate",function(){return!1}),Fr("scope","node",["node","editor"]),Fr("position","selection",["node","selection","line"])],zP=_P.concat([Br("type","contextformbutton"),Br("primary",!1),hr("onAction"),Pr("original",lt)]),LP=IP.concat([Br("type","contextformbutton"),Br("primary",!1),hr("onAction"),Pr("original",lt)]),jP=_P.concat([Br("type","contextformbutton")]),UP=IP.concat([Br("type","contextformtogglebutton")]),WP=nr("type",{contextformbutton:zP,contextformtogglebutton:LP}),GP=Mo([Br("type","contextform"),Rr("initValue",function(){return""}),kr("label"),xr("commands",WP),Sr("launch",nr("type",{contextformbutton:jP,contextformtogglebutton:UP}))].concat(PP)),XP=Mo([Br("type","contexttoolbar"),mr("items")].concat(PP)),YP=function(n){return Ko("ContextToolbar",XP,n)},qP=function(n){return Ko("ContextForm",GP,n)},KP=function(n,t,e){return e},JP=Object.freeze({__proto__:null,getState:KP}),$P=function(n,t){var e=function(e,o){n.updateState.each(function(n){var r=n(e,o);t.set(r)}),n.renderComponents.each(function(n){var r=n(o,t.get()),i=Gt(r,e.getSystem().build);xp(e,i)})};return ca([da(Iu(),function(t,o){var r=o,i=n.channel;Lt(r.channels(),i)&&e(t,r.data())}),Sa(function(t){n.initialData.each(function(n){e(t,n)})})])},QP=Object.freeze({__proto__:null,events:$P}),ZP=function(){var n=zr(St.none()),t=function(t){return n.set(t)},e=function(){return n.set(St.none())},o=function(){return n.get()},r=function(){return n.get().fold(function(){return"none"},function(n){return n})};return{readState:r,get:o,set:t,clear:e}},nz=Object.freeze({__proto__:null,init:ZP}),tz=[fr("channel"),wr("renderComponents"),wr("updateState"),wr("initialData")],ez=xd({fields:tz,name:"reflecting",active:QP,apis:JP,state:nz}),oz=ft([fr("toggleClass"),fr("fetch"),Sl("onExecute"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Om(),Sl("onItemExecute"),wr("lazySink"),fr("dom"),xl("onOpen"),Mh("splitDropdownBehaviours",[BB,Xx,mw]),Br("matchWidth",!1),Br("useMinWidth",!1),Br("eventOrder",{}),wr("role")].concat(WB())),rz=fv({factory:cC,schema:[fr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:bd([mw.revoke()])}},overrides:function(n){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(n.uid).each(ra)},buttonBehaviours:bd([Mw.config({toggleOnExecute:!1,toggleClass:n.toggleClass})])}}}),iz=fv({factory:cC,schema:[fr("dom")],name:"button",defaults:function(){return{buttonBehaviours:bd([mw.revoke()])}},overrides:function(n){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(n.uid).each(function(e){n.onExecute(e,t)})}}}}),uz=ft([rz,iz,dv({factory:{sketch:function(n){return{uid:n.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:n.text}}}},schema:[fr("text")],name:"aria-descriptor"}),lv({schema:[vl()],name:"menu",defaults:function(n){return{onExecute:function(t,e){t.getSystem().getByUid(n.uid).each(function(o){n.onItemExecute(o,t,e)})}}}}),AB()]),az=function(n,t,e,o){var r=function(n){Qv.getCurrent(n).each(function(n){bb.highlightFirst(n),Xx.focusIn(n)})},i=function(t){var e=r;NB(n,function(n){return n},t,o,e,XE.HighlightFirst).get(at)},u=function(n){return i(n),St.some(!0)},a=function(t){var e=_v(t,n,"button");return ra(e),St.some(!0)},c=vt(vt({},ca([Sa(function(t){var e=Ov(t,n,"aria-descriptor");e.each(function(n){var e=Sc("aria");cc(n.element(),"id",e),cc(t.element(),"aria-describedby",e)})})])),Iw(St.some(i))),s={repositionMenus:function(n){Mw.isOn(n)&&UB(n)}};return{uid:n.uid,dom:n.dom,components:t,apis:s,eventOrder:vt(vt({},n.eventOrder),{"alloy.execute":["disabling","toggling","alloy.base.behaviour"]}),events:c,behaviours:Ih(n.splitDropdownBehaviours,[BB.config({others:{sandbox:function(t){var e=_v(t,n,"arrow"),o={onOpen:function(){Mw.on(e),Mw.on(t)},onClose:function(){Mw.off(e),Mw.off(t)}};return jB(n,t,o)}}}),Xx.config({mode:"special",onSpace:a,onEnter:a,onDown:u}),mw.config({}),Mw.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:n.role.getOr("button"),"aria-haspopup":!0}}}},cz=Uv({name:"SplitDropdown",configFields:oz(),partFields:uz(),factory:az,apis:{repositionMenus:function(n,t){return n.repositionMenus(t)}}}),sz=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},fz=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},lz=function(n,t){return n.map(function(n){return{"aria-label":t.translate(n),title:t.translate(n)}}).getOr({})},dz=Sc("focus-button"),mz=["checklist","ordered-list"],gz=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],pz=function(n,t,e,o,r,i){var u,a=function(n){return Ek.isRtl()&&Lt(mz,n)?n+"-rtl":n},c=Ek.isRtl()&&n.exists(function(n){return Lt(gz,n)});return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]).concat(c?["tox-tbtn__icon-rtl"]:[]),attributes:lz(e,i)},components:VO([n.map(function(n){return eI(a(n),i.icons)}),t.map(function(n){return rI(n,"tox-tbtn",i)})]),eventOrder:(u={},u[hu()]=["focusing","alloy.base.behaviour","common-button-display-events"],u),buttonBehaviours:bd([rw("common-button-display-events",[da(hu(),function(n,t){t.event().prevent(),ea(n,dz)})])].concat(o.map(function(e){return ez.config({channel:e,initialData:{icon:n,text:t},renderComponents:function(n){return VO([n.icon.map(function(n){return eI(a(n),i.icons)}),n.text.map(function(n){return rI(n,"tox-tbtn",i)})])}})}).toArray()).concat(r.getOr([])))}},hz=function(n,t,e,o){var r=t.shared;return _N.sketch({lazySink:r.getSink,fetch:function(){return tB.nu(function(t){t(Gt(e(n.items),xP))})},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:pz(n.icon,n.text,n.tooltip,St.none(),St.none(),r.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:o}}}})},vz=function(n,t,e){var o=zr(at),r=pz(n.icon,n.text,n.tooltip,St.none(),St.none(),e);return cC.sketch({dom:r.dom,components:r.components,eventOrder:aI,buttonBehaviours:bd([rw("toolbar-button-events",[uI({onAction:n.onAction,getApi:t.getApi}),DO(t,o),AO(t,o)]),EO.toolbarButton(n.disabled)].concat(t.toolbarButtonBehaviours))})},bz=function(n,t){return yz(n,t,[])},yz=function(n,t,e){return vz(n,{toolbarButtonBehaviours:[].concat(e.length>0?[rw("toolbarButtonWith",e)]:[]),getApi:sz,onSetup:n.onSetup},t)},xz=function(n,t){return wz(n,t,[])},wz=function(n,t,e){return Be(vz(n,{toolbarButtonBehaviours:[ew.config({}),Mw.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(e.length>0?[rw("toolbarToggleButtonWith",e)]:[]),getApi:fz,onSetup:n.onSetup},t))},Sz=function(n,t,e){return function(o){return tB.nu(function(n){return t.fetch(n)}).map(function(r){return St.from(jT(Be(xT(Sc("menu-value"),r,function(e){t.onItemAction(n(o),e)},t.columns,t.presets,FO.CLOSE_ON_EXECUTE,t.select.getOr(function(){return!1}),e),{movement:ST(t.columns,t.presets),menuBehaviours:pk.unnamedEvents("auto"!==t.columns?[]:[Sa(function(n){dk(n,4,jk(t.presets)).each(function(t){var e=t.numRows,o=t.numColumns;Xx.setGridSize(n,e,o)})})])})))})}},Cz=function(n,t){var e,o=Sc("channel-update-split-dropdown-display"),r=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)},setIconFill:function(t,e){Jf(n.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(n){cc(n,"fill",e)})},setIconStroke:function(t,e){Jf(n.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(n){cc(n,"stroke",e)})},setActive:function(t){cc(n.element(),"aria-pressed",t),Jf(n.element(),"span").each(function(e){n.getSystem().getByDom(e).each(function(n){return Mw.set(n,t)})})},isActive:function(){return Jf(n.element(),"span").exists(function(t){return n.getSystem().getByDom(t).exists(Mw.isOn)})}}},i=zr(at),u={getApi:r,onSetup:n.onSetup};return cz.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:vt({"aria-pressed":!1},lz(n.tooltip,t.providers))},onExecute:function(t){n.onAction(r(t))},onItemExecute:function(){},splitDropdownBehaviours:bd([EO.splitButton(!1),rw("split-dropdown-events",[da(dz,mw.focus),DO(u,i),AO(u,i)]),QB.config({})]),eventOrder:(e={},e[Xu()]=["alloy.base.behaviour","split-dropdown-events"],e),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:Sz(r,n,t.providers),parts:{menu:cT(!1,n.columns,n.presets)},components:[cz.parts().button(pz(n.icon,n.text,St.none(),St.some(o),St.some([Mw.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),cz.parts().arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:lC("chevron-down",t.providers.icons)}}),cz.parts()["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},kz=function(n){return{hide:function(){return ea(n,Pu())},getValue:function(){return Ah.getValue(n)}}},Oz=function(n,t){return da(iI,function(e,o){var r=n.get(e),i=kz(r);t.onAction(i,o.event().buttonApi())})},_z=function(n,t,o){var r=t.original,i=(r.primary,e(r,["primary"])),u=Jo(EP(vt(vt({},i),{type:"button",onAction:function(){}})));return yz(u,o.backstage.shared.providers,[Oz(n,t)])},Tz=function(n,t,o){var r=t.original,i=(r.primary,e(r,["primary"])),u=Jo(VP(vt(vt({},i),{type:"togglebutton",onAction:function(){}})));return wz(u,o.backstage.shared.providers,[Oz(n,t)])},Ez=function(n,t,e){var o={backstage:{shared:{providers:e}}};return"contextformtogglebutton"===t.type?Tz(n,t,o):_z(n,t,o)},Bz=function(n,t,e){var o=Gt(t,function(t){return sC(Ez(n,t,e))}),r=function(){return Gt(o,function(n){return n.asSpec()})},i=function(n){return le(t,function(t,e){return t.primary?St.from(o[e]).bind(function(t){return t.getOpt(n)}).filter(dt(CO.isDisabled)):St.none()})};return{asSpecs:r,findPrimary:i}},Dz=function(n,t,e){var o=t.label.fold(function(){return{}},function(n){return{"aria-label":n}}),r=sC(UE.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:o,selectOnFocus:!0,inputBehaviours:bd([Xx.config({mode:"special",onEnter:function(n){return i.findPrimary(n).map(function(n){return ra(n),!0})},onLeft:function(n,t){return t.cut(),St.none()},onRight:function(n,t){return t.cut(),St.none()}})])})),i=Bz(r,t.commands,e.shared.providers);return OP({type:n,uid:Sc("context-toolbar"),initGroups:[{title:St.none(),items:[r.asSpec()]},{title:St.none(),items:i.asSpecs()}],onEscape:St.none,cyclicKeying:!0})},Az={renderContextForm:Dz},Mz=function(n,t){var e=Math.max(t.x(),n.x()),o=n.right()-e,r=t.width()-(e-t.x()),i=Math.min(o,r);return{x:e,width:i}},Fz=function(n,t,e){var o=Xr.fromDom(n.getContainer()),r=Jf(o,".tox-editor-header").getOr(o),i=jf(r),u=i.y()>=t.bottom(),a=ZS(n),c=a&&!u;if(n.inline&&c)return{y:Math.max(i.bottom(),e.y()),bottom:e.bottom()};if(n.inline&&!c)return{y:e.y(),bottom:Math.min(i.y(),e.bottom())};var s=jf(o);return c?{y:Math.max(i.bottom(),e.y()),bottom:Math.min(s.bottom(),e.bottom())}:{y:Math.max(s.y(),e.y()),bottom:Math.min(i.y(),e.bottom())}},Iz=function(t){var e=Mf(n.window),o=jf(Xr.fromDom(t.getContentAreaContainer())),r=GS(t)||XS(t)||qS(t),i=Mz(o,e),u=i.x,a=i.width;if(t.inline&&!r)return Lf(u,e.y(),a,e.height());var c=Fz(t,o,e),s=c.y,f=c.bottom;return Lf(u,s,a,f-s)},Rz=function(n,t){return le(t,function(t){return t.predicate(n.dom())?St.some({toolbarApi:t,elem:n}):St.none()})},Vz=function(n,t){var e=Xr.fromDom(t.getBody()),o=function(n){return Zi(n,e)},r=function(n){return!o(n)&&!ou(e,n)},i=Xr.fromDom(t.selection.getNode());return r(i)?St.none():Rz(i,n.inNodeScope).orThunk(function(){return Rz(i,n.inEditorScope).orThunk(function(){return o(i)?St.none():ru(i,function(t){return Rz(t,n.inNodeScope)},o)})})},Hz={lookup:Vz},Nz=function(n,t){var e={},o=[],r=[],i={},u={},a=function(n,a){var c=Jo(qP(a));e[n]=c,c.launch.map(function(e){i["form:"+n]=vt(vt({},a.launch),{type:"contextformtogglebutton"===e.type?"togglebutton":"button",onAction:function(){t(c)}})}),"editor"===c.scope?r.push(c):o.push(c),u[n]=c},c=function(n,t){YP(t).each(function(e){"editor"===t.scope?r.push(e):o.push(e),u[n]=e})},s=de(n);return Xt(s,function(t){var e=n[t];"contextform"===e.type?a(t,e):"contexttoolbar"===e.type&&c(t,e)}),{forms:e,inNodeScope:o,inEditorScope:r,lookupTable:u,formNavigators:i}},Pz={categorise:Nz},zz=Sc("forward-slide"),Lz=Sc("backward-slide"),jz=Sc("change-slide-event"),Uz="tox-pop--resizing",Wz=function(n){var t=zr([]);return bS.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(n){t.set([]),bS.getContent(n).each(function(n){Ls(n.element(),"visibility")}),Cs(n.element(),Uz),Ls(n.element(),"width")},inlineBehaviours:bd([rw("context-toolbar-events",[wa(Eu(),function(n){bS.getContent(n).each(function(){}),Cs(n.element(),Uz),Ls(n.element(),"width")}),da(jz,function(n,t){Ls(n.element(),"width");var e=bf(n.element());bS.setContent(n,t.event().contents()),ws(n.element(),Uz);var o=bf(n.element());Fs(n.element(),"width",e+"px"),bS.getContent(n).each(function(e){t.event().focus().bind(function(t){return Ad(t),Rd(n.element())}).orThunk(function(){return Xx.focusIn(e),Id()})}),DS.setTimeout(function(){Fs(n.element(),"width",o+"px")},0)}),da(zz,function(n,e){bS.getContent(n).each(function(n){t.set(t.get().concat([{bar:n,focus:Id()}]))}),oa(n,jz,{contents:e.event().forwardContents(),focus:St.none()})}),da(Lz,function(n){se(t.get()).each(function(e){t.set(t.get().slice(0,t.get().length-1)),oa(n,jz,{contents:rf(e.bar),focus:e.focus})})})]),Xx.config({mode:"special",onEscape:function(e){return se(t.get()).fold(function(){return n.onEscape()},function(){return ea(e,Lz),St.some(!0)})}})]),lazySink:function(){return _t.value(n.sink)}})},Gz=function(n,t,e){var o=function(n,o,i,u){var a=t.shared.providers.translate(n.title);if("separator"===n.type)return St.some({type:"separator",text:a});if("submenu"===n.type){var c=te(n.getStyleItems(),function(n){return r(n,o,u)});return 0===o&&c.length<=0?St.none():St.some({type:"nestedmenuitem",text:a,disabled:c.length<=0,getSubmenuItems:function(){return te(n.getStyleItems(),function(n){return r(n,o,u)})}})}return St.some(vt({type:"togglemenuitem",text:a,active:n.isSelected(u),disabled:i,onAction:e.onAction(n)},n.getStylePreview().fold(function(){return{}},function(n){return{meta:{style:n}}})))},r=function(n,t,r){var i="formatter"===n.type&&e.isInvalid(n);return 0===t?i?[]:o(n,t,!1,r).toArray():o(n,t,i,r).toArray()},i=function(n){var t=e.getCurrentValue(),o=e.shouldHide?0:1;return te(n,function(n){return r(n,o,t)})},u=function(n,t){return function(e){var o=t(),r=i(o),u=xI(r,FO.CLOSE_ON_EXECUTE,n,!1);e(u)}};return{validateItems:i,getFetch:u}},Xz=function(n,t,e){var o=e.dataset,r="basic"===o.type?function(){return Gt(o.data,function(n){return QV(n,e.isSelectedFor,e.getPreviewFor)})}:o.getData;return{items:Gz(n,t,e),getStyleItems:r}},Yz=function(n,t,e){var o=Xz(n,t,e),r=o.items,i=o.getStyleItems,u=function(n){return{getComponent:function(){return n}}},a=function(t){return e.setInitialValue.each(function(n){return n(t.getComponent())}),e.nodeChangeHandler.map(function(e){var o=e(t.getComponent());return n.on("NodeChange",o),function(){n.off("NodeChange",o)}}).getOr(at)};return fI({text:e.icon.isSome()?St.none():St.some(""),icon:e.icon,tooltip:St.from(e.tooltip),role:St.none(),fetch:r.getFetch(t,i),onSetup:a,getApi:u,columns:1,presets:"normal",classes:e.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},qz=function(n){return Gt(n,function(n){var t=n,e=n,o=n.split("=");
+return o.length>1&&(t=o[0],e=o[1]),{title:t,format:e}})},Kz=function(n){return{type:"basic",data:n}};!function(n){n[n.SemiColon=0]="SemiColon",n[n.Space=1]="Space"}(MB||(MB={}));var Jz,$z=function(n,t){return t===MB.SemiColon?n.replace(/;$/,"").split(";"):n.split(" ")},Qz=function(n,t,e,o){var r=xe(n.settings,t).getOr(e),i=qz($z(r,o));return{type:"basic",data:i}},Zz=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],nL=function(n){var t=function(){return Qt(Zz,function(t){return n.formatter.match(t.format)})},e=function(t){return function(){return n.formatter.match(t)}},o=function(){return function(){return St.none()}},r=function(n){var e=t(),o=e.fold(function(){return"left"},function(n){return n.title.toLowerCase()});oa(n,sI,{icon:"align-"+o})},i=St.some(function(n){return function(){return r(n)}}),u=St.some(function(n){return r(n)}),a=Kz(Zz),c=function(t){return function(){return Qt(Zz,function(n){return n.format===t.format}).each(function(t){return n.execCommand(t.command)})}};return{tooltip:"Align",icon:St.some("align-left"),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:c,setInitialValue:u,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(t){return!n.formatter.canApply(t.format)}}},tL=function(n,t){return Yz(n,t,nL(n))},eL=function(n,t){var e=Xz(n,t,nL(n));n.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},oL="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",rL=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],iL=function(n){var t=n.split(/\s*,\s*/);return Gt(t,function(n){return n.replace(/^['"]+|['"]+$/g,"")})},uL=function(n){var t=function(){var t=iL(n.toLowerCase());return ee(rL,function(n){return t.indexOf(n.toLowerCase())>-1})};return 0===n.indexOf("-apple-system")&&t()},aL=function(n){var t=function(){var t=function(n){return n?iL(n)[0]:""},e=n.queryCommandValue("FontName"),o=s.data,r=e?e.toLowerCase():"",i=Qt(o,function(n){var e=n.format;return e.toLowerCase()===r||t(e).toLowerCase()===t(r).toLowerCase()}).orThunk(function(){return uL(r)?St.from({title:"System Font",format:r}):St.none()});return{matchOpt:i,font:e}},e=function(n){return function(t){return t.exists(function(t){return t.format===n})}},o=function(){var n=t().matchOpt;return n},r=function(n){return function(){return St.some({tag:"div",styles:-1===n.indexOf("dings")?{"font-family":n}:{}})}},i=function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("FontName",!1,t.format)})}},u=function(n){var e=t(),o=e.matchOpt,r=e.font,i=o.fold(function(){return r},function(n){return n.title});oa(n,cI,{text:i})},a=St.some(function(n){return function(){return u(n)}}),c=St.some(function(n){return u(n)}),s=Qz(n,"font_formats",oL,MB.SemiColon);return{tooltip:"Fonts",icon:St.none(),isSelectedFor:e,getCurrentValue:o,getPreviewFor:r,onAction:i,setInitialValue:c,nodeChangeHandler:a,dataset:s,shouldHide:!1,isInvalid:function(){return!1}}},cL=function(n,t){return Yz(n,t,aL(n))},sL=function(n,t){var e=Xz(n,t,aL(n));n.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},fL="8pt 10pt 12pt 14pt 18pt 24pt 36pt",lL={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},dL=function(n,t){var e=Math.pow(10,t);return Math.round(n*e)/e},mL=function(n,t){return/[0-9.]+px$/.test(n)?dL(72*parseInt(n,10)/96,t||0)+"pt":n},gL=function(n){return xe(lL,n).getOr("")},pL=function(n){var t=function(){var t=St.none(),e=s.data,o=n.queryCommandValue("FontSize");if(o)for(var r=function(n){var r=mL(o,n),i=gL(r);t=Qt(e,function(n){return n.format===o||n.format===r||n.format===i})},i=3;t.isNone()&&i>=0;i--)r(i);return{matchOpt:t,size:o}},e=function(n){return function(t){return t.exists(function(t){return t.format===n})}},o=function(){var n=t().matchOpt;return n},r=ft(ft(St.none())),i=function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("FontSize",!1,t.format)})}},u=function(n){var e=t(),o=e.matchOpt,r=e.size,i=o.fold(function(){return r},function(n){return n.title});oa(n,cI,{text:i})},a=St.some(function(n){return function(){return u(n)}}),c=St.some(function(n){return u(n)}),s=Qz(n,"fontsize_formats",fL,MB.Space);return{tooltip:"Font sizes",icon:St.none(),isSelectedFor:e,getPreviewFor:r,getCurrentValue:o,onAction:i,setInitialValue:c,nodeChangeHandler:a,dataset:s,shouldHide:!1,isInvalid:function(){return!1}}},hL=function(n,t){return Yz(n,t,pL(n))},vL=function(n,t){var e=Xz(n,t,pL(n));n.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},bL=function(n,t,e){var o=t();return le(e,function(t){return Qt(o,function(e){return n.formatter.matchNode(t,e.format)})}).orThunk(function(){return n.formatter.match("p")?St.some({title:"Paragraph",format:"p"}):St.none()})},yL=function(n){var t=n.selection.getStart(!0)||n.getBody();return n.dom.getParents(t,function(){return!0},n.getBody())},xL=function(n,t){return function(e){var o=zr(St.none()),r=function(){e.setActive(n.formatter.match(t));var r=n.formatter.formatChanged(t,e.setActive).unbind;o.set(St.some(r))};return n.initialized?r():n.on("init",r),function(){return o.get().each(function(n){return n()})}}},wL=function(n){return function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("mceToggleFormat",!1,t.format)})}}},SL="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",CL=function(n){var t=function(t){return bL(n,function(){return a.data},t)},e=function(t){return function(){return n.formatter.match(t)}},o=function(t){return function(){var e=n.formatter.get(t);return St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))})}},r=function(n,e){var o=t(n),r=o.fold(function(){return"Paragraph"},function(n){return n.title});oa(e,cI,{text:r})},i=St.some(function(n){return function(t){return r(t.parents,n)}}),u=St.some(function(t){var e=yL(n);r(e,t)}),a=Qz(n,"block_formats",SL,MB.SemiColon);return{tooltip:"Blocks",icon:St.none(),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:wL(n),setInitialValue:u,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(t){return!n.formatter.canApply(t.format)}}},kL=function(n,t){return Yz(n,t,CL(n))},OL=function(n,t){var e=Xz(n,t,CL(n));n.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},_L=function(n,t){var e=function(t){return function(){return n.formatter.match(t)}},o=function(t){return function(){var e=n.formatter.get(t);return void 0!==e?St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))}):St.none()}},r=function(t,e){var o=function(n){var t=n.items;return void 0!==t&&t.length>0?te(t,o):[{title:n.title,format:n.format}]},r=te($V(n),o),i=bL(n,function(){return r},t),u=i.fold(function(){return"Paragraph"},function(n){return n.title});oa(e,cI,{text:u})},i=St.some(function(n){return function(t){return r(t.parents,n)}}),u=St.some(function(t){var e=yL(n);r(e,t)});return{tooltip:"Formats",icon:St.none(),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:wL(n),setInitialValue:u,nodeChangeHandler:i,shouldHide:n.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!n.formatter.canApply(t.format)},dataset:t}},TL=function(n,t){var e=vt({type:"advanced"},t.styleselect);return Yz(n,t,_L(n,e))},EL=function(n,t){var e=vt({type:"advanced"},t.styleselect),o=Xz(n,t,_L(n,e));n.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return o.items.validateItems(o.getStyleItems())}})},BL=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],DL=function(n,t){return function(e,o,r){var i=n(e).mapError(function(n){return Qo(n)}).getOrDie();return t(i,o,r)}},AL={button:DL(EP,function(n,t){return bz(n,t.backstage.shared.providers)}),togglebutton:DL(VP,function(n,t){return xz(n,t.backstage.shared.providers)}),menubutton:DL(AP,function(n,t){return SI(n,"tox-tbtn",t.backstage,St.none())}),splitbutton:DL(FP,function(n,t){return Cz(n,t.backstage.shared)}),grouptoolbarbutton:DL(NP,function(n,t,e){var o,r=e.ui.registry.getAll().buttons,i=function(n){return PL(e,{buttons:r,toolbar:n,allowToolbarGroups:!1},t,St.none())},u=(o={},o[Cm]=ZS(e)?ol.TopToBottom:ol.BottomToTop,o);switch(JS(e)){case jb.floating:return hz(n,t.backstage,i,u);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}}),styleSelectButton:function(n,t){return TL(n,t.backstage)},fontsizeSelectButton:function(n,t){return hL(n,t.backstage)},fontSelectButton:function(n,t){return cL(n,t.backstage)},formatButton:function(n,t){return kL(n,t.backstage)},alignMenuButton:function(n,t){return tL(n,t.backstage)}},ML=function(t,e,o){return xe(AL,t.type).fold(function(){return n.console.error("skipping button defined by",t),St.none()},function(n){return St.some(n(t,e,o))})},FL={styleselect:AL.styleSelectButton,fontsizeselect:AL.fontsizeSelectButton,fontselect:AL.fontSelectButton,formatselect:AL.formatButton,align:AL.alignMenuButton},IL=function(n){var t=Gt(BL,function(t){var e=Kt(t.items,function(t){return we(n,t)||we(FL,t)});return{name:t.name,items:e}});return Kt(t,function(n){return n.items.length>0})},RL=function(n){var t=n.split("|");return Gt(t,function(n){return{items:n.trim().split(" ")}})},VL=function(n){return Rt(n,function(n){return we(n,"name")&&we(n,"items")})},HL=function(t){var e=t.toolbar,o=t.buttons;return e===!1?[]:void 0===e||e===!0?IL(o):Bt(e)?RL(e):VL(e)?e:(n.console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},NL=function(t,e,o,r,i,u){return xe(e,o.toLowerCase()).orThunk(function(){return u.bind(function(n){return le(n,function(n){return xe(e,n+o.toLowerCase())})})}).fold(function(){return xe(FL,o.toLowerCase()).map(function(n){return n(t,i)}).orThunk(function(){return St.none()})},function(e){return"grouptoolbarbutton"!==e.type||r?ML(e,i,t):(n.console.warn("Ignoring the '"+o+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),St.none())})},PL=function(n,t,e,o){var r=HL(t),i=Gt(r,function(r){var i=te(r.items,function(r){return 0===r.trim().length?[]:NL(n,t.buttons,r,t.allowToolbarGroups,e,o).toArray()});return{title:St.from(n.translate(r.name)),items:i}});return Kt(i,function(n){return n.items.length>0})},zL=12,LL={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},jL={maxHeightFunction:lm(),maxWidthFunction:XH()},UL={onLtr:function(){return[td,ed,Zl,$l,nd,Ql,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[td,ed,nd,Ql,Zl,$l,ES,BS,TS,OS,_S,kS]}},WL={onLtr:function(){return[ed,$l,Ql,Zl,nd,td,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[ed,Ql,$l,nd,Zl,td,ES,BS,TS,OS,_S,kS]}},GL=function(n,t){return"line"===n?{bubble:vm(zL,0,LL),layouts:{onLtr:function(){return[od]},onRtl:function(){return[rd]}},overrides:jL}:{bubble:vm(0,zL,LL),layouts:t?WL:UL,overrides:jL}},XL=function(n,t,e,o){var r=Ui().deviceType.isTouch,i=of(Wz({sink:e,onEscape:function(){return n.focus(),St.some(!0)}})),u=function(){return Iz(n)},a=function(n,t,e,o){return Math.max(n,e)<=Math.min(t,o)},c=function(){var t=m.get().map(function(n){return n.getBoundingClientRect()}).getOrThunk(function(){return n.selection.getRng().getBoundingClientRect()}),e=n.inline?Ef().top():Uf(Xr.fromDom(n.getBody())).y();return{y:t.top+e,bottom:t.bottom+e}},s=function(){if(r()&&o.backstage.isContextMenuOpen())return!0;var n=c(),t=u();return!a(n.y,n.bottom,t.y(),t.bottom())},f=function(){bS.hide(i)},l=function(){d.get().each(function(n){var t=i.element();Ls(t,"display"),s()?Fs(t,"display","none"):pp.positionWithinBounds(e,n,i,St.some(u()))})},d=zr(St.none()),m=zr(St.none()),g=zr(null),p=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:bd([Xx.config({mode:"acyclic"}),rw("pop-dialog-wrap-events",[Sa(function(t){n.shortcuts.add("ctrl+F9","focus statusbar",function(){return Xx.focusIn(t)})}),Ca(function(){n.shortcuts.remove("ctrl+F9")})])])}},h=Ae(function(){return Pz.categorise(t,function(n){var t=v(n);oa(i,zz,{forwardContents:p(t)})})}),v=function(t){var e=n.ui.registry.getAll().buttons,r=JS(n)===jb.scrolling?jb.scrolling:jb.default,i=h();return"contexttoolbar"===t.type?function(){var u=vt(vt({},e),i.formNavigators),a=PL(n,{buttons:u,toolbar:t.items,allowToolbarGroups:!1},o,St.some(["form:"]));return OP({type:r,uid:Sc("context-toolbar"),initGroups:a,onEscape:St.none,cyclicKeying:!0})}():function(){return Az.renderContextForm(r,t,o.backstage)}()};n.on(YH,function(t){var e=h();xe(e.lookupTable,t.toolbarKey).each(function(e){y(e,t.target===n?St.none():St.some(t)),bS.getContent(i).each(Xx.focusIn)})});var b=function(n,t){var e="node"===n?o.backstage.shared.anchors.node(t):o.backstage.shared.anchors.cursor();return Be(e,GL(n,r()))},y=function(n,t){if(w(),!r()||!o.backstage.isContextMenuOpen()){var e=v(n),a=t.map(Xr.fromDom),c=b(n.position,a);d.set(St.some(c)),m.set(t);var f=i.element();Ls(f,"display"),bS.showWithinBounds(i,c,p(e),function(){return St.some(u())}),s()&&Fs(f,"display","none")}},x=function(){if(n.hasFocus()){var t=h();Hz.lookup(t,n).fold(function(){d.set(St.none()),bS.hide(i)},function(n){y(n.toolbarApi,St.some(n.elem.dom()))})}},w=function(){var n=g.get();null!==n&&(DS.clearTimeout(n),g.set(null))},S=function(n){w(),g.set(n)};n.on("init",function(){n.on(qH,f),n.on("ScrollContent ScrollWindow longpress",l),n.on("click keyup focus SetContent ObjectResized ResizeEditor",function(){S(DS.setEditorTimeout(n,x,0))}),n.on("focusout",function(){DS.setEditorTimeout(n,function(){Rd(e.element()).isNone()&&Rd(i.element()).isNone()&&(d.set(St.none()),bS.hide(i))},0)}),n.on("SwitchMode",function(){n.mode.isReadOnly()&&(d.set(St.none()),bS.hide(i))}),n.on("NodeChange",function(){Rd(i.element()).fold(function(){S(DS.setEditorTimeout(n,x,0))},function(){})})})},YL={register:XL},qL=function(t,e,o){var r=function(n,t){Xt([e,o],function(e){e.broadcastEvent(n,t)})},i=function(n,t){Xt([e,o],function(e){e.broadcastOn([n],t)})},u=function(n){return i(Jp(),{target:n.target()})},a=YT(Xr.fromDom(n.document),"touchstart",u),c=YT(Xr.fromDom(n.document),"touchmove",function(n){return r(ju(),n)}),s=YT(Xr.fromDom(n.document),"touchend",function(n){return r(Uu(),n)}),f=YT(Xr.fromDom(n.document),"mousedown",u),l=YT(Xr.fromDom(n.document),"mouseup",function(n){0===n.raw().button&&i(Qp(),{target:n.target()})}),d=function(n){return i(Jp(),{target:Xr.fromDom(n.target)})},m=function(n){0===n.button&&i(Qp(),{target:Xr.fromDom(n.target)})},g=function(n){return r(Wu(),KT(n))},p=function(n){i($p(),{}),r(Gu(),KT(n))},h=function(){return i($p(),{})};t.on("PostRender",function(){t.on("click",d),t.on("tap",d),t.on("mouseup",m),t.on("ScrollWindow",g),t.on("ResizeWindow",p),t.on("ResizeEditor",h)}),t.on("remove",function(){t.off("click",d),t.off("tap",d),t.off("mouseup",m),t.off("ScrollWindow",g),t.off("ResizeWindow",p),t.off("ResizeEditor",h),f.unbind(),a.unbind(),c.unbind(),s.unbind(),l.unbind()}),t.on("detach",function(){Bp(e),Bp(o),e.destroy(),o.destroy()})},KL={setup:qL},JL=Fv,$L=pv,QL=ft([Br("shell",!1),fr("makeItem"),Br("setupItem",at),Rh.field("listBehaviours",[ew])]),ZL=function(){return{behaviours:bd([ew.config({})])}},nj=dv({name:"items",overrides:ZL}),tj=ft([nj]),ej=ft("CustomList"),oj=function(t,e){var o=function(e,o){i(e).fold(function(){throw n.console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},function(n){var r=ew.contents(n),i=o.length,u=i-r.length,a=u>0?Ut(u,function(){return t.makeItem()}):[],c=r.slice(i);Xt(c,function(t){return ew.remove(n,t)}),Xt(a,function(t){return ew.append(n,t)});var s=ew.contents(n);Xt(s,function(n,r){t.setupItem(e,n,o[r],r)})})},r=t.shell?{behaviours:[ew.config({})],components:[]}:{behaviours:[],components:e},i=function(n){return t.shell?St.some(n):Ov(n,t,"items")};return{uid:t.uid,dom:t.dom,components:r.components,behaviours:Ih(t.listBehaviours,r.behaviours),apis:{setItems:o}}},rj=Uv({name:ej(),configFields:QL(),partFields:tj(),factory:oj,apis:{setItems:function(n,t,e){n.setItems(t,e)}}}),ij=function(n){var t=Ns(n,"position").is("fixed"),e=t?St.none():Ha(n);return e.orThunk(function(){var t=Xr.fromTag("span");return Va(n).bind(function(n){Xa(n,t);var e=Ha(t);return $a(t),e})})},uj=function(n){return ij(n).map(gf).getOrThunk(function(){return lf(0,0)})},aj=ke.generate([{"static":[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),cj=function(n,t){var e=n.element();ws(e,t.transitionClass),Cs(e,t.fadeOutClass),ws(e,t.fadeInClass),t.onShow(n)},sj=function(n,t){var e=n.element();ws(e,t.transitionClass),Cs(e,t.fadeInClass),ws(e,t.fadeOutClass),t.onHide(n)},fj=function(n,t){return n.y()t.y()},lj=function(n,t){return n.y()>=t.y()},dj=function(n,t){return n.bottom()<=t.bottom()},mj=function(n,t,e){return ee(n,function(n){switch(n){case"bottom":return dj(t,e);case"top":return lj(t,e)}})},gj=function(n,t){return t.getInitialPosition().map(function(t){return Lf(t.bounds.x(),t.bounds.y(),bf(n),af(n))})},pj=function(n,t,e){e.setInitialPosition(St.some({style:Ps(n),position:Vs(n,"position")||"static",bounds:t}))},hj=function(n,t,e){return e.getInitialPosition().bind(function(o){switch(e.setInitialPosition(St.none()),o.position){case"static":return St.some(aj.static());case"absolute":var r=ij(n).map(jf).getOrThunk(function(){return jf(Bs())});return St.some(aj.absolute(Hd("absolute",xe(o.style,"left").map(function(){return t.x()-r.x()}),xe(o.style,"top").map(function(){return t.y()-r.y()}),xe(o.style,"right").map(function(){return r.right()-t.right()}),xe(o.style,"bottom").map(function(){return r.bottom()-t.bottom()}))));default:return St.none()}})},vj=function(n,t,e,o){return gj(n,o).filter(function(n){return mj(t.modes,n,e)}).bind(function(t){return hj(n,t,o)})},bj=function(n,t,e,o){var r=jf(n);if(mj(t.modes,r,e))return St.none();pj(n,r,o);var i=Wf(),u=r.x()-i.x(),a=e.y()-i.y(),c=i.bottom()-e.bottom(),s=r.y()<=e.y();return St.some(aj.fixed(Hd("fixed",St.some(u),s?St.some(a):St.none(),St.none(),s?St.none():St.some(c))))},yj=function(n,t,e,o){var r=n.element(),i=Ns(r,"position").is("fixed");return i?vj(r,t,e,o):bj(r,t,e,o)},xj=function(n,t){var e=n.element();return gj(e,t).bind(function(n){return hj(e,n,t)})},wj=function(n,t){Xt(["left","right","top","bottom","position"],function(t){return Ls(n.element(),t)}),t.onUndocked(n)},Sj=function(n,t,e){Nd(n.element(),e);var o="fixed"===e.position()?t.onDocked:t.onUndocked;o(n)},Cj=function(n,t,e,o,r){void 0===r&&(r=!1),t.contextual.each(function(t){t.lazyContext(n).each(function(i){var u=fj(i,o);if(u!==e.isVisible())if(e.setVisible(u),r&&!u)Os(n.element(),[t.fadeOutClass]),t.onHide(n);else{var a=u?cj:sj;a(n,t)}})})},kj=function(n,t,e){var o=t.lazyViewport(n),r=e.isDocked();r&&Cj(n,t,e,o),yj(n,t,o,e).each(function(i){e.setDocked(!r),i.fold(function(){return wj(n,t)},function(e){return Sj(n,t,e)},function(r){Cj(n,t,e,o,!0),Sj(n,t,r)})})},Oj=function(n,t,e){var o=n.element();e.setDocked(!1),xj(n,e).each(function(e){e.fold(function(){return wj(n,t)},function(e){return Sj(n,t,e)},at)}),e.setVisible(!0),t.contextual.each(function(t){_s(o,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(n)}),_j(n,t,e)},_j=function(n,t,e){n.getSystem().isConnected()&&kj(n,t,e)},Tj=function(n,t,e){e.isDocked()&&Oj(n,t,e)},Ej=function(n,t,e){return e.isDocked()},Bj=Object.freeze({__proto__:null,refresh:_j,reset:Tj,isDocked:Ej}),Dj=function(n,t){return ca([wa(Eu(),function(e,o){n.contextual.each(function(n){if(ks(e.element(),n.transitionClass)){_s(e.element(),[n.transitionClass,n.fadeInClass]);var r=t.isVisible()?n.onShown:n.onHidden;r(e)}o.stop()})}),da(Wu(),function(e){_j(e,n,t)}),da(Gu(),function(e){Tj(e,n,t)})])},Aj=Object.freeze({__proto__:null,events:Dj}),Mj=[Tr("contextual",[mr("fadeInClass"),mr("fadeOutClass"),mr("transitionClass"),hr("lazyContext"),xl("onShow"),xl("onShown"),xl("onHide"),xl("onHidden")]),Rr("lazyViewport",Wf),Hr("modes",["top","bottom"],rr),xl("onDocked"),xl("onUndocked")],Fj=function(){var n=zr(!1),t=zr(!0),e=zr(St.none()),o=function(){return"docked: "+n.get()+", visible: "+t.get()};return Uc({isDocked:function(){return n.get()},setDocked:function(t){return n.set(t)},getInitialPosition:function(){return e.get()},setInitialPosition:function(n){return e.set(n)},isVisible:function(){return t.get()},setVisible:function(n){return t.set(n)},readState:o})},Ij=Object.freeze({__proto__:null,init:Fj}),Rj=xd({fields:Mj,name:"docking",active:Aj,apis:Bj,state:Ij}),Vj={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},Hj="tox-tinymce--toolbar-sticky-on",Nj="tox-tinymce--toolbar-sticky-off",Pj=function(n,t){var e=Fa(t),o=e.dom().defaultView.innerHeight,r=Ef(e),i=Xr.fromDom(n.elm),u=Uf(i),a=af(i),c=u.y(),s=c+a,f=gf(t),l=af(t),d=f.top(),m=d+l,g=Math.abs(d-r.top())<2,p=Math.abs(m-(r.top()+o))<2;if(g&&m>c)Bf(r.left(),c-l,e);else if(p&&s>d){var h=c-o+a+l;Bf(r.left(),h,e)}},zj=function(n,t){var e=function(n){return cf(n)+(parseInt(Vs(n,"margin-top"),10)||0)+(parseInt(Vs(n,"margin-bottom"),10)||0)},o=n.element();Va(o).each(function(r){var i="padding-"+(t?"top":"bottom");if(Rj.isDocked(n)){var u=bf(r);Fs(o,"width",u+"px"),Fs(r,i,e(o)+"px")}else Ls(o,"width"),Ls(r,i)})},Lj=function(n,t){t?(Cs(n,Vj.fadeOutClass),Os(n,[Vj.transitionClass,Vj.fadeInClass])):(Cs(n,Vj.fadeInClass),Os(n,[Vj.fadeOutClass,Vj.transitionClass]))},jj=function(n,t){var e=Xr.fromDom(n.getContainer());t?(ws(e,Hj),Cs(e,Nj)):(ws(e,Nj),Cs(e,Hj))},Uj=function(n,t){var e=Fa(t);Id(e).filter(function(n){return!Zi(t,n)}).filter(function(t){return Zi(t,Xr.fromDom(e.dom().body))||ou(n,t)}).each(function(){return Ad(t)})},Wj=function(n,t){return Rd(n).orThunk(function(){return t().toOption().bind(function(n){return Rd(n.element())})})},Gj=function(n,t){n.inline||(ZS(n)||n.on("ResizeEditor",function(){t().each(Rj.reset)}),n.on("ResizeWindow ResizeEditor",function(){t().each(function(t){return zj(t,ZS(n))})}),n.on("SkinLoaded",function(){t().each(function(n){Rj.isDocked(n)?Rj.reset(n):Rj.refresh(n)})}),n.on("FullscreenStateChanged",function(){t().each(Rj.reset)})),n.on("AfterScrollIntoView",function(n){t().each(function(t){Rj.refresh(t);var e=t.element();my(e)&&Pj(n,e)})}),n.on("PostRender",function(){jj(n,!1)})},Xj=function(n){return n().map(Rj.isDocked).getOr(!1)},Yj=function(n){var t;return[Ed.config({channels:(t={},t[lP()]={onReceive:function(t){zj(t,n)}},t)})]},qj=function(n,t){var e=zr(St.none()),r=ZS(n),i=function(n){t().each(function(t){return n(t.element())})},u=function(e){n.inline||zj(e,r),jj(n,Rj.isDocked(e)),e.getSystem().broadcastOn([$p()],{}),t().each(function(n){return n.getSystem().broadcastOn([$p()],{})})},a=n.inline?[]:Yj(r);return o([mw.config({}),Rj.config({contextual:vt({lazyContext:function(t){var e=cf(t.element()),o=n.inline?n.getContentAreaContainer():n.getContainer(),i=jf(Xr.fromDom(o)),u=i.height()-e,a=i.y()+(r?0:e);return St.some(Lf(i.x(),a,i.width(),u))},onShow:function(){i(function(n){return Lj(n,!0)})},onShown:function(n){i(function(n){return _s(n,[Vj.transitionClass,Vj.fadeInClass])}),e.get().each(function(t){Uj(n.element(),t),e.set(St.none())})},onHide:function(n){e.set(Wj(n.element(),t)),i(function(n){return Lj(n,!1)})},onHidden:function(){i(function(n){return _s(n,[Vj.transitionClass])})}},Vj),modes:[r?"top":"bottom"],onDocked:u,onUndocked:u})],a)},Kj=Object.freeze({__proto__:null,setup:Gj,isDocked:Xj,getBehaviours:qj}),Jj=at,$j=gt,Qj=ft([]),Zj=Object.freeze({__proto__:null,setup:Jj,isDocked:$j,getBehaviours:Qj}),nU=function(n){var t=n.editor,e=n.sticky?qj:Qj;return{uid:n.uid,dom:n.dom,components:n.components,behaviours:bd(e(t,n.getSink))}},tU=function(n,t){var e=function(n,e){var o=Gt(e,function(n){var e={type:"menubutton",text:n.text,fetch:function(t){t(n.getItems())}},o=AP(e).mapError(function(n){return Qo(n)}).getOrDie();return SI(o,"tox-mbtn",t.backstage,St.some("menuitem"))});ew.set(n,o)},o={focus:Xx.focusIn,setMenus:e};return{uid:n.uid,dom:n.dom,components:[],behaviours:bd([ew.config({}),rw("menubar-events",[Sa(function(t){n.onSetup(t)}),da(xu(),function(n,t){Jf(n.element(),".tox-mbtn--active").each(function(e){$f(t.event().target(),".tox-mbtn").each(function(t){Zi(e,t)||n.getSystem().getByDom(e).each(function(e){n.getSystem().getByDom(t).each(function(n){qB.expand(n),qB.close(e),mw.focus(n)})})})})}),da(Ju(),function(n,t){t.event().prevFocus().bind(function(t){return n.getSystem().getByDom(t).toOption()}).each(function(e){t.event().newFocus().bind(function(t){return n.getSystem().getByDom(t).toOption()}).each(function(n){qB.isOpen(e)&&(qB.expand(n),qB.close(e))})})})]),Xx.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return n.onEscape(t),St.some(!0)}}),vB.config({})]),apis:o,domModification:{attributes:{role:"menubar"}}}},eU=jv({factory:tU,name:"silver.Menubar",configFields:[fr("dom"),fr("uid"),fr("onEscape"),fr("backstage"),Br("onSetup",at)],apis:{focus:function(n,t){n.focus(t)},setMenus:function(n,t,e){n.setMenus(t,e)}}}),oU="container",rU=[Mh("slotBehaviours",[])],iU=function(n){return""},uU=function(n){var t=function(){var n=[],t=function(t,e){return n.push(t),xv(oU,iU(t),e)};return{slot:t,record:function(){return n}}}(),e=n(t),o=t.record(),r=Gt(o,function(n){return fv({name:n,pname:iU(n)})});return Hv(oU,rU,r,aU,e)},aU=function(n,t){var e=function(){return Bv(n)},o=function(t,e){return Ov(t,n,e)},r=function(t,e){return function(o,r){return Ov(o,n,r).map(function(n){return t(n,r)}).getOr(e)}},i=function(n){return function(t,e){Xt(e,function(e){return n(t,e)})}},u=function(n){return"true"!==fc(n.element(),"aria-hidden")},a=function(n,t){if(!u(n)){var e=n.element();Ls(e,"display"),mc(e,"aria-hidden"),oa(n,$u(),{name:t,visible:!0})}},c=function(n,t){if(u(n)){var e=n.element();Fs(e,"display","none"),cc(e,"aria-hidden","true"),oa(n,$u(),{name:t,visible:!1})}},s=r(u,!1),f=r(c),l=i(f),d=function(n){return l(n,e())},m=r(a),g={getSlotNames:e,getSlot:o,isShowing:s,hideSlot:f,hideAllSlots:d,showSlot:m};return{uid:n.uid,dom:n.dom,components:t,behaviours:Fh(n.slotBehaviours),apis:g}},cU=pe({getSlotNames:function(n,t){return n.getSlotNames(t)},getSlot:function(n,t,e){return n.getSlot(t,e)},isShowing:function(n,t,e){return n.isShowing(t,e)},hideSlot:function(n,t,e){return n.hideSlot(t,e)},hideAllSlots:function(n,t){return n.hideAllSlots(t)},showSlot:function(n,t,e){return n.showSlot(t,e)}},function(n){return Lc(n)}),sU=vt(vt({},cU),{sketch:uU}),fU=Mo([kr("icon"),kr("tooltip"),Rr("onShow",at),Rr("onHide",at),Rr("onSetup",function(){return at})]),lU=function(n){return Ko("sidebar",fU,n)},dU=function(n){var t=n.ui.registry.getAll().sidebars;Xt(de(t),function(e){var o=t[e],r=function(){return St.from(n.queryCommandValue("ToggleSidebar")).is(e)};n.ui.registry.addToggleButton(e,{icon:o.icon,tooltip:o.tooltip,onAction:function(t){n.execCommand("ToggleSidebar",!1,e),t.setActive(r())},onSetup:function(t){var e=function(){return t.setActive(r())};return n.on("ToggleSidebar",e),function(){n.off("ToggleSidebar",e)}}})})},mU=function(n){return{element:function(){return n.element().dom()}}},gU=function(n,t){var e=Gt(de(t),function(n){var e=t[n],o=Jo(lU(e));return{name:n,getApi:mU,onSetup:o.onSetup,onShow:o.onShow,onHide:o.onHide}});return Gt(e,function(t){var o=zr(at);return n.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:pk.unnamedEvents([DO(t,o),AO(t,o),da($u(),function(n,t){var o=t.event(),r=Qt(e,function(n){return n.name===o.name()});r.each(function(t){var e=o.visible()?t.onShow:t.onHide;e(t.getApi(n))})})])})})},pU=function(n){return sU.sketch(function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:gU(t,n),slotBehaviours:pk.unnamedEvents([Sa(function(n){return sU.hideAllSlots(n)})])}})},hU=function(n,t){var e=Qv.getCurrent(n);e.each(function(n){return ew.set(n,[pU(t)])})},vU=function(n,t){var e=Qv.getCurrent(n);e.each(function(n){var e=Qv.getCurrent(n);e.each(function(e){rP.hasGrown(n)?sU.isShowing(e,t)?rP.shrink(n):(sU.hideAllSlots(e),sU.showSlot(e,t)):(sU.hideAllSlots(e),sU.showSlot(e,t),rP.grow(n))})})},bU=function(n){var t=Qv.getCurrent(n);return t.bind(function(n){var t=rP.isGrowing(n)||rP.hasGrown(n);if(t){var e=Qv.getCurrent(n);return e.bind(function(n){return Qt(sU.getSlotNames(n),function(t){return sU.isShowing(n,t)})})}return St.none()})},yU=Sc("FixSizeEvent"),xU=Sc("AutoSizeEvent"),wU=function(n){return{uid:n.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:bd([vB.config({}),mw.config({}),rP.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(n){var t=Qv.getCurrent(n);t.each(sU.hideAllSlots),ea(n,xU)},onGrown:function(n){ea(n,xU)},onStartGrow:function(n){oa(n,yU,{width:Ns(n.element(),"width").getOr("")})},onStartShrink:function(n){oa(n,yU,{width:bf(n.element())+"px"})}}),ew.config({}),Qv.config({find:function(n){var t=ew.contents(n);return ce(t)}})])}],behaviours:bd([rF.childAt(0),rw("sidebar-sliding-events",[da(yU,function(n,t){Fs(n.element(),"width",t.event().width())}),da(xU,function(n){Ls(n.element(),"width")})])])}},SU=function(n){var t=void 0!==n.dom().attributes?n.dom().attributes:[];return $t(t,function(n,t){var e;return"class"===t.name?n:vt(vt({},n),(e={},e[t.name]=t.value,e))},{})},CU=function(n){return Array.prototype.slice.call(n.dom().classList,0)},kU=function(n){var t=Xr.fromHtml(n),e=Pa(t),o=SU(t),r=CU(t),i=0===e.length?{}:{innerHtml:Za(t)};return vt({tag:ec(t),classes:r,attributes:o},i)},OU=function(n){return{dom:{tag:"div",attributes:{"aria-label":n.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:kU('')}],behaviours:bd([Xx.config({mode:"special",onTab:function(){return St.some(!0)},onShiftTab:function(){return St.some(!0)}}),mw.config({})])}},_U=function(n,t,e){var o=n.element();t===!0?(ew.set(n,[OU(e)]),Ls(o,"display"),mc(o,"aria-hidden")):(ew.set(n,[]),Fs(o,"display","none"),cc(o,"aria-hidden","true"))},TU=function(n){return{uid:n.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:bd([ew.config({})]),components:[]}
+},EU=function(n,t,e){var o=zr(!1),r=zr(St.none()),i=function(n){n!==o.get()&&(_U(t(),n,e.providers),o.set(n))};n.on("ProgressState",function(t){if(r.get().each(DS.clearTimeout),It(t.time)){var e=DS.setEditorTimeout(n,function(){return i(t.state)},t.time);r.set(St.some(e))}else i(t.state),r.set(St.none())})},BU=function(n,t){var e={getSocket:function(t){return JL.getPart(t,n,"socket")},setSidebar:function(t,e){JL.getPart(t,n,"sidebar").each(function(n){return hU(n,e)})},toggleSidebar:function(t,e){JL.getPart(t,n,"sidebar").each(function(n){return vU(n,e)})},whichSidebar:function(t){return JL.getPart(t,n,"sidebar").bind(bU).getOrNull()},getHeader:function(t){return JL.getPart(t,n,"header")},getToolbar:function(t){return JL.getPart(t,n,"toolbar")},setToolbar:function(t,e){JL.getPart(t,n,"toolbar").each(function(n){n.getApis().setGroups(n,e)})},setToolbars:function(t,e){JL.getPart(t,n,"multiple-toolbar").each(function(n){rj.setItems(n,e)})},refreshToolbar:function(t){var e=JL.getPart(t,n,"toolbar");e.each(function(n){return n.getApis().refresh(n)})},getThrobber:function(t){return JL.getPart(t,n,"throbber")},focusToolbar:function(t){var e=JL.getPart(t,n,"toolbar").orThunk(function(){return JL.getPart(t,n,"multiple-toolbar")});e.each(function(n){Xx.focusIn(n)})},setMenubar:function(t,e){JL.getPart(t,n,"menubar").each(function(n){eU.setMenus(n,e)})},focusMenubar:function(t){JL.getPart(t,n,"menubar").each(function(n){eU.focus(n)})}};return{uid:n.uid,dom:n.dom,components:t,apis:e,behaviours:n.behaviours}},DU=$L.optional({factory:eU,name:"menubar",schema:[fr("backstage")]}),AU=function(n){return n.type===jb.sliding?kP:n.type===jb.floating?CP:OP},MU=$L.optional({factory:{sketch:function(n){return rj.sketch({uid:n.uid,dom:n.dom,listBehaviours:bd([Xx.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return OP({type:n.type,uid:Sc("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],onEscape:function(){return St.none()}})},setupItem:function(n,t,e){oN.setGroups(t,e)},shell:!0})}},name:"multiple-toolbar",schema:[fr("dom"),fr("onEscape")]}),FU=$L.optional({factory:{sketch:function(n){var t=AU(n),e={type:n.type,uid:n.uid,onEscape:function(){return n.onEscape(),St.some(!0)},cyclicKeying:!1,initGroups:[],getSink:n.getSink,backstage:n.backstage,moreDrawerData:{lazyToolbar:n.lazyToolbar,lazyMoreButton:n.lazyMoreButton,lazyHeader:n.lazyHeader},attributes:n.attributes};return t(e)}},name:"toolbar",schema:[fr("dom"),fr("onEscape"),fr("getSink")]}),IU=$L.optional({factory:{sketch:nU},name:"header",schema:[fr("dom")]}),RU=$L.optional({name:"socket",schema:[fr("dom")]}),VU=$L.optional({factory:{sketch:wU},name:"sidebar",schema:[fr("dom")]}),HU=$L.optional({factory:{sketch:TU},name:"throbber",schema:[fr("dom")]}),NU=Uv({name:"OuterContainer",factory:BU,configFields:[fr("dom"),fr("behaviours")],partFields:[IU,DU,FU,MU,RU,VU,HU],apis:{getSocket:function(n,t){return n.getSocket(t)},setSidebar:function(n,t,e){n.setSidebar(t,e)},toggleSidebar:function(n,t,e){n.toggleSidebar(t,e)},whichSidebar:function(n,t){return n.whichSidebar(t)},getHeader:function(n,t){return n.getHeader(t)},getToolbar:function(n,t){return n.getToolbar(t)},setToolbar:function(n,t,e){var o=Gt(e,function(n){return xP(n)});n.setToolbar(t,o)},setToolbars:function(n,t,e){var o=Gt(e,function(n){return Gt(n,xP)});n.setToolbars(t,o)},refreshToolbar:function(n,t){return n.refreshToolbar(t)},getThrobber:function(n,t){return n.getThrobber(t)},setMenubar:function(n,t,e){n.setMenubar(t,e)},focusMenubar:function(n,t){n.focusMenubar(t)},focusToolbar:function(n,t){n.focusToolbar(t)}}}),PU="file edit view insert format tools table help",zU={file:{title:"File",items:"newdocument restoredraft | preview | print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},LU=function(n,t,e){var o=WS(e).split(/[ ,]/);return{text:n.title,getItems:function(){return te(n.items,function(n){var e=n.toLowerCase();return 0===e.trim().length?[]:jt(o,function(n){return n===e})?[]:"separator"===e||"|"===e?[{type:"separator"}]:t.menuItems[e]?[t.menuItems[e]]:[]})}}},jU=function(n){return"string"==typeof n?n.split(" "):n},UU=function(n,t){var e=vt(vt({},zU),t.menus),o=de(t.menus).length>0,r=jU(void 0===t.menubar||t.menubar===!0?PU:t.menubar===!1?"":t.menubar),i=Kt(r,function(n){return o?t.menus.hasOwnProperty(n)&&t.menus[n].hasOwnProperty("items")||zU.hasOwnProperty(n):zU.hasOwnProperty(n)}),u=Gt(i,function(o){var r=e[o];return LU({title:r.title,items:jU(r.items)},t,n)});return Kt(u,function(n){var t=function(n){return"separator"!==n.type};return n.getItems().length>0&&jt(n.getItems(),t)})},WU=function(n){var t=function(){n._skinLoaded=!0,z_.fireSkinLoaded(n)};return function(){n.initialized?t():n.on("init",t)}},GU=function(n,t){return function(){return z_.fireSkinLoadError(n,{message:t})}},XU={fireSkinLoaded:WU,fireSkinLoadError:GU},YU=function(n,t){var e,o=FS(t);o&&(e=o+"/skin.min.css",t.contentCSS.push(o+(n?"/content.inline":"/content")+".min.css")),RS(t)===!1&&e?AS.DOM.styleSheetLoader.load(e,XU.fireSkinLoaded(t),XU.fireSkinLoadError(t,"Skin could not be loaded")):XU.fireSkinLoaded(t)()},qU=t(YU,!1),KU=t(YU,!0),JU=function(n,t,e,o){var r=t.outerContainer,i=e.toolbar,u=e.buttons;if(Rt(i,Bt)){var a=i.map(function(t){var r={toolbar:t,buttons:u,allowToolbarGroups:e.allowToolbarGroups};return PL(n,r,{backstage:o},St.none())});NU.setToolbars(r,a)}else NU.setToolbar(r,PL(n,e,{backstage:o},St.none()))},$U=AS.DOM,QU=Ui(),ZU=QU.os.isiOS()&&QU.os.version.major<=12,nW=function(n){var t=n.getWin(),e=n.getDoc().documentElement,o=zr(lf(t.innerWidth,t.innerHeight)),r=zr(lf(e.offsetWidth,e.offsetHeight)),i=function(e){var i=n.getDoc().documentElement,u=o.get(),a=r.get();u.left()!==t.innerWidth||u.top()!==t.innerHeight?(o.set(lf(t.innerWidth,t.innerHeight)),z_.fireResizeContent(n,e)):(a.left()!==i.offsetWidth||a.top()!==i.offsetHeight)&&(r.set(lf(i.offsetWidth,i.offsetHeight)),z_.fireResizeContent(n,e))},u=function(t){return z_.fireScrollContent(n,t)};$U.bind(t,"resize",i),$U.bind(t,"scroll",u);var a=qT(Xr.fromDom(n.getBody()),"load",i);n.on("remove",function(){a.unbind(),$U.unbind(t,"resize",i),$U.unbind(t,"scroll",u)})},tW=function(n,t,e,o,r){var i=zr(0);qU(n),Tp(Xr.fromDom(r.targetNode),t.mothership),_p(Bs(),t.uiMothership),n.on("PostRender",function(){JU(n,t,e,o),i.set(n.getWin().innerWidth),NU.setMenubar(t.outerContainer,UU(n,e)),NU.setSidebar(t.outerContainer,e.sidebar),nW(n)});var u=NU.getSocket(t.outerContainer).getOrDie("Could not find expected socket element");if(ZU===!0){Is(u.element(),{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var a=vC(function(){n.fire("ScrollContent")},20);YT(u.element(),"scroll",a.throttle)}vP(n,t),n.addCommand("ToggleSidebar",function(e,o){NU.toggleSidebar(t.outerContainer,o),n.fire("ToggleSidebar")}),n.addQueryValueHandler("ToggleSidebar",function(){return NU.whichSidebar(t.outerContainer)});var c=JS(n),s=function(){NU.refreshToolbar(t.outerContainer)};return(c===jb.sliding||c===jb.floating)&&n.on("ResizeWindow ResizeEditor ResizeContent",function(){var t=n.getWin().innerWidth;t!==i.get()&&(s(),i.set(t))}),{iframeContainer:u.element().dom(),editorContainer:t.outerContainer.element().dom()}},eW={render:tW},oW=function(n){var t=/^[0-9\.]+(|px)$/i;return t.test(""+n)?St.some(parseInt(""+n,10)):St.none()},rW=function(n){return It(n)?n+"px":n},iW=function(n,t,e){var o=t.filter(function(t){return t>n}),r=e.filter(function(t){return n>t});return o.or(r).getOr(n)},uW={calcCappedSize:iW,parseToInt:oW,numToPx:rW},aW=function(n){var t=VS(n),e=PS(n),o=LS(n);return uW.parseToInt(t).map(function(n){return uW.calcCappedSize(n,e,o)})},cW=function(n){var t=aW(n);return t.getOr(VS(n))},sW=function(n){var t=HS(n),e=NS(n),o=zS(n);return uW.parseToInt(t).map(function(n){return uW.calcCappedSize(n,e,o)})},fW=function(n){var t=sW(n);return t.getOr(HS(n))},lW=function(n,t){var e=jf(n);return{pos:t?e.y():e.bottom(),height:e.height()}},dW=function(n,t,e,o,r){var i,u=t.mothership,a=t.uiMothership,c=t.outerContainer,s=AS.DOM,f=eC(n),l=iC(n),d=Xr.fromDom(r.targetNode),m=zS(n).or(sW(n)),g=JS(n),p=g===jb.sliding||g===jb.floating,h=ZS(n),v=zr(lW(d,h)),b=zr(!1);KU(n);var y=function(n){var t=p?n.fold(function(){return 0},function(n){return n.components().length>1?af(n.components()[1].element()):0}):0,e=jf(d),o=h?e.y()-af(i.element())+t:e.bottom();Is(c.element(),{position:"absolute",top:Math.round(o)+"px",left:Math.round(e.x())+"px"});var r=m.getOrThunk(function(){var n=uW.parseToInt(Vs(Bs(),"margin-left")).getOr(0);return bf(Bs())-e.x()+n});Fs(i.element(),"max-width",r+"px")},x=function(){a.broadcastOn([$p()],{})},w=function(n){if(void 0===n&&(n=!1),p&&NU.refreshToolbar(c),!f){var t=NU.getToolbar(c);y(t)}l&&(n?Rj.reset(i):Rj.refresh(i)),x()},S=function(){b.set(!0),Fs(c.element(),"display","flex"),s.addClass(n.getBody(),"mce-edit-focus"),Ls(a.element(),"display"),w()},C=function(){b.set(!1),t.outerContainer&&(Fs(c.element(),"display","none"),s.removeClass(n.getBody(),"mce-edit-focus")),Fs(a.element(),"display","none")},k=function(){if(i)return void S();i=NU.getHeader(c).getOrDie();var r=oC(n);_p(r,u),_p(r,a),JU(n,t,e,o),NU.setMenubar(c,UU(n,e)),S(),n.on("activate",S),n.on("deactivate",C),n.on("SkinLoaded ResizeWindow",function(){b.get()&&w(!0)}),n.on("NodeChange keydown",function(){DS.requestAnimationFrame(function(){var n=lW(d,h),t=v.get();b.get()&&(n.pos!==t.pos?(w(!0),v.set(n)):n.height!==t.height&&(x(),v.set(n)))})}),n.nodeChanged()};return n.on("focus",k),n.on("blur hide",C),n.on("init",function(){n.hasFocus()&&k()}),vP(n,t),{editorContainer:c.element().dom()}},mW={render:dW},gW=function(n){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];lR.each(t,function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,onAction:function(){return n.execCommand(t.cmd)},icon:t.icon,onSetup:xL(n,t.name)})});var e={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};n.ui.registry.addButton(e.name,{tooltip:e.text,onAction:function(){return n.execCommand(e.cmd)},icon:e.icon})},pW={register:gW},hW=function(n,t){return function(){n.execCommand("mceToggleFormat",!1,t)}},vW=function(n){lR.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:xL(n,t.name),onAction:hW(n,t.name)})});for(var t=1;6>=t;t++){var e="h"+t;n.ui.registry.addToggleButton(e,{text:e.toUpperCase(),tooltip:"Heading "+t,onSetup:xL(n,e),onAction:hW(n,e)})}},bW=function(n){lR.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],function(t){n.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return n.execCommand(t.action)}})})},yW=function(n){lR.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return n.execCommand(t.action)},onSetup:xL(n,t.name)})})},xW=function(n){vW(n),bW(n),yW(n)},wW=function(n){lR.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],function(t){n.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:function(){return n.execCommand(t.action)}})}),n.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:hW(n,"code")})},SW=function(n){xW(n),wW(n)},CW={register:SW},kW=function(n,t,e){var o=function(){return t.undoManager?t.undoManager[e]():!1},r=function(){n.setDisabled(t.mode.isReadOnly()||!o())};return n.setDisabled(!o()),t.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r),function(){return t.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r)}},OW=function(n){n.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(t){return kW(t,n,"hasUndo")},onAction:function(){return n.execCommand("undo")}}),n.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(t){return kW(t,n,"hasRedo")},onAction:function(){return n.execCommand("redo")}})},_W=function(n){n.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(t){return kW(t,n,"hasUndo")},onAction:function(){return n.execCommand("undo")}}),n.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(t){return kW(t,n,"hasRedo")},onAction:function(){return n.execCommand("redo")}})},TW=function(n){OW(n),_W(n)},EW={register:TW},BW=function(n,t){n.setActive(t.hasVisual);var e=function(t){n.setActive(t.hasVisual)};return t.on("VisualAid",e),function(){return t.off("VisualAid",e)}},DW=function(n){n.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(t){return BW(t,n)},onAction:function(){n.execCommand("mceToggleVisualAid")}})},AW=function(n){n.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return n.execCommand("mceToggleVisualAid")}})},MW=function(n){AW(n),DW(n)},FW={register:MW},IW=function(n,t){n.setDisabled(!t.queryCommandState("outdent"));var e=function(){n.setDisabled(!t.queryCommandState("outdent"))};return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},RW=function(n){n.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(t){return IW(t,n)},onAction:function(){return n.execCommand("outdent")}}),n.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return n.execCommand("indent")}})},VW=function(n){RW(n)},HW={register:VW},NW=function(n,t){eL(n,t),sL(n,t),EL(n,t),OL(n,t),vL(n,t)},PW={register:NW},zW=function(n,t){pW.register(n),CW.register(n),PW.register(n,t),EW.register(n),eT.register(n),FW.register(n),HW.register(n)},LW={setup:zW},jW=function(n,t){return{anchor:"makeshift",x:n,y:t}},UW=function(n,t,e){return jW(n.x+t,n.y+e)},WW=function(n){return"longpress"===n.type||0===n.type.indexOf("touch")},GW=function(n){if(WW(n)){var t=n.touches[0];return jW(t.pageX,t.pageY)}return jW(n.pageX,n.pageY)},XW=function(n){if(WW(n)){var t=n.touches[0];return jW(t.clientX,t.clientY)}return jW(n.clientX,n.clientY)},YW=function(n,t){var e=AS.DOM.getPos(n);return UW(t,e.x,e.y)},qW=function(n,t){return"contextmenu"===t.type||"longpress"===t.type?n.inline?GW(t):YW(n.getContentAreaContainer(),XW(t)):KW(n)},KW=function(n){return{anchor:"selection",root:Xr.fromDom(n.selection.getNode())}},JW=function(n){return{anchor:"node",node:St.some(Xr.fromDom(n.selection.getNode())),root:Xr.fromDom(n.getBody())}},$W=function(n,t,e){return e?JW(n):qW(n,t)},QW=function(n,t,e,o,r,i){var u=e(),a=$W(n,t,i);xI(u,FO.CLOSE_ON_EXECUTE,o,!1).map(function(n){t.preventDefault(),bS.showMenuAt(r,a,{menu:{markers:iT("normal")},data:n})})},ZW={onLtr:function(){return[ed,$l,Ql,Zl,nd,td,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[ed,Ql,$l,nd,Zl,td,ES,BS,TS,OS,_S,kS]}},nG=12,tG={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},eG=function(n,t){var e=n.selection;if(e.isCollapsed()||t.touches.length<1)return!1;var o=t.touches[0],r=e.getRng(),i=kg(n.getWin(),Jm.domRange(r));return i.exists(function(n){return n.left()<=o.clientX&&n.right()>=o.clientX&&n.top()<=o.clientY&&n.bottom()>=o.clientY})},oG=function(n,t,e){var o=t?JW(n):qW(n,e);return vt({bubble:vm(0,nG,tG),layouts:ZW,overrides:{maxWidthFunction:XH(),maxHeightFunction:lm()}},o)},rG=function(n){var t=n.selection.getRng(),e=function(){DS.setEditorTimeout(n,function(){n.selection.setRng(t)},10),i()};n.once("touchend",e);var o=function(n){n.preventDefault(),n.stopImmediatePropagation()};n.on("mousedown",o,!0);var r=function(){return i()};n.once("longpresscancel",r);var i=function(){n.off("touchend",e),n.off("longpresscancel",r),n.off("mousedown",o)}},iG=function(n,t,e,o,r,i,u){var a=oG(n,i,t);xI(e,FO.CLOSE_ON_EXECUTE,o,!0).map(function(e){t.preventDefault(),bS.showMenuWithinBounds(r,a,{menu:{markers:iT("normal"),highlightImmediately:u},data:e,type:"horizontal"},function(){return St.some(Iz(n))}),n.fire(qH)})},uG=function(n,t,e,o,r,i){var u=Ui(),a=u.os.isiOS(),c=u.os.isOSX(),s=u.os.isAndroid(),f=u.deviceType.isTouch(),l=function(){return!(s||a||c&&f)},d=function(){var u=e();iG(n,t,u,o,r,i,l())};if(!c&&!a||i)s&&!i&&n.selection.setCursorLocation(t.target,0),d();else{var m=function(){rG(n),d()};eG(n,t)?m():(n.once("selectionchange",m),n.once("touchend",function(){return n.off("selectionchange",m)}))}},aG=function(n){return"string"==typeof n?n.split(/[ ,]/):n},cG=function(n){return n.settings.contextmenu_never_use_native||!1},sG=function(n,t,e){var o=n.ui.registry.getAll().contextMenus;return xe(n.settings,t).map(aG).getOrThunk(function(){return Kt(aG(e),function(n){return we(o,n)})})},fG=function(n){return n.getParam("contextmenu")===!1},lG=function(n){return sG(n,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},dG={shouldNeverUseNative:cG,getContextMenu:lG,isContextMenuDisabled:fG},mG=function(n){return Bt(n)?"|"===n:"separator"===n.type},gG={type:"separator"},pG=function(n){if(Bt(n))return n;switch(n.type){case"separator":return gG;case"submenu":return{type:"nestedmenuitem",text:n.text,icon:n.icon,getSubmenuItems:function(){var t=n.getSubmenuItems();return Bt(t)?t:Gt(t,pG)}};default:return{type:"menuitem",text:n.text,icon:n.icon,onAction:ct(n.onAction)}}},hG=function(n,t){if(0===t.length)return n;var e=se(n).filter(function(n){return!mG(n)}),o=e.fold(function(){return[]},function(){return[gG]});return n.concat(o).concat(t).concat([gG])},vG=function(n,t,e){var o=$t(t,function(t,o){if(we(n,o)){var r=n[o].update(e);if(Bt(r))return hG(t,r.split(" "));if(r.length>0){var i=Gt(r,pG);return hG(t,i)}return t}return t.concat([o])},[]);return o.length>0&&mG(o[o.length-1])&&o.pop(),o},bG=function(n,t){return t.ctrlKey&&!dG.shouldNeverUseNative(n)},yG=function(n,t){return"longpress"!==t.type&&(2!==t.button||t.target===n.getBody()&&""===t.pointerType)},xG=function(n,t,e){var o=Ui(),r=o.deviceType.isTouch,i=of(bS.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return n.focus()},onShow:function(){return e.setContextMenuState(!0)},onHide:function(){return e.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:bd([rw("dismissContextMenu",[da(qu(),function(t){Kp.close(t),n.focus()})])])})),u=function(){return bS.hide(i)},a=function(t){if(dG.shouldNeverUseNative(n)&&t.preventDefault(),!bG(n,t)&&!dG.isContextMenuDisabled(n)){var o=yG(n,t),u=function(){var e=o?n.selection.getStart(!0):t.target,r=n.ui.registry.getAll(),i=dG.getContextMenu(n);return vG(r.contextMenus,i,e)},a=r()?uG:QW;a(n,t,u,e,i,o)}};n.on("init",function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(r()?"":" ResizeWindow");n.on(t,u),n.on("longpress contextmenu",a)})},wG=ke.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),SG=function(n){return function(t){return t.translate(-n.left(),-n.top())}},CG=function(n){return function(t){return t.translate(n.left(),n.top())}},kG=function(n){return function(t,e){return $t(n,function(n,t){return t(n)},lf(t,e))}},OG=function(n,t,e){return n.fold(kG([CG(e),SG(t)]),kG([SG(t)]),kG([]))},_G=function(n,t,e){return n.fold(kG([CG(e)]),kG([]),kG([CG(t)]))},TG=function(n,t,e){return n.fold(kG([]),kG([SG(e)]),kG([CG(t),SG(e)]))},EG=function(n,t,e,o,r,i){var u=_G(n,r,i),a=_G(t,r,i);return Math.abs(u.left()-a.left())<=e&&Math.abs(u.top()-a.top())<=o},BG=function(n,t,e,o,r,i){var u=_G(n,r,i),a=_G(t,r,i),c=Math.abs(u.left()-a.left()),s=Math.abs(u.top()-a.top());return lf(c,s)},DG=function(n,t,e){var o=n.fold(function(n,t){return{position:St.some("absolute"),left:St.some(n+"px"),top:St.some(t+"px")}},function(n,t){return{position:St.some("absolute"),left:St.some(n-e.left()+"px"),top:St.some(t-e.top()+"px")}},function(n,t){return{position:St.some("fixed"),left:St.some(n+"px"),top:St.some(t+"px")}});return vt({right:St.none(),bottom:St.none()},o)},AG=function(n,t,e){return n.fold(function(n,o){return FG(n+t,o+e)},function(n,o){return IG(n+t,o+e)},function(n,o){return RG(n+t,o+e)})},MG=function(n,t,e,o){var r=function(n,r){return function(i,u){var a=n(t,e,o);return r(i.getOr(a.left()),u.getOr(a.top()))}};return n.fold(r(TG,FG),r(_G,IG),r(OG,RG))},FG=wG.offset,IG=wG.absolute,RG=wG.fixed,VG=function(n,t){var e=n.element(),o=parseInt(fc(e,t.leftAttr),10),r=parseInt(fc(e,t.topAttr),10);return isNaN(o)||isNaN(r)?St.none():St.some(lf(o,r))},HG=function(n,t,e){var o=n.element();cc(o,t.leftAttr,e.left()+"px"),cc(o,t.topAttr,e.top()+"px")},NG=function(n,t){var e=n.element();mc(e,t.leftAttr),mc(e,t.topAttr)},PG=function(n,t,e,o){return VG(n,t).fold(function(){return e},function(n){return RG(n.left()+o.left(),n.top()+o.top())})},zG=function(n,t,e,o,r,i){var u=PG(n,t,e,o),a=t.mustSnap?UG(n,t,u,r,i):WG(n,t,u,r,i),c=OG(u,r,i);return HG(n,t,c),a.fold(function(){return{coord:RG(c.left(),c.top()),extra:St.none()}},function(n){return{coord:n.output(),extra:n.extra()}})},LG=function(n,t){NG(n,t)},jG=function(n,t,e,o){return le(n,function(n){var r=n.sensor(),i=EG(t,r,n.range().left(),n.range().top(),e,o);return i?St.some({output:ft(MG(n.output(),t,e,o)),extra:n.extra}):St.none()})},UG=function(n,t,e,o,r){var i=t.getSnapPoints(n),u=jG(i,e,o,r);return u.orThunk(function(){var n=$t(i,function(n,t){var i=t.sensor(),u=BG(e,i,t.range().left(),t.range().top(),o,r);return n.deltas.fold(function(){return{deltas:St.some(u),snap:St.some(t)}},function(e){var o=(u.left()+u.top())/2,r=(e.left()+e.top())/2;return r>=o?{deltas:St.some(u),snap:St.some(t)}:n})},{deltas:St.none(),snap:St.none()});return n.snap.map(function(n){return{output:ft(MG(n.output(),e,o,r)),extra:n.extra}})})},WG=function(n,t,e,o,r){var i=t.getSnapPoints(n);return jG(i,e,o,r)},GG=function(n,t,e){return{coord:MG(n.output(),n.output(),t,e),extra:n.extra()}},XG=function(n,t,e,o){var r=t.getTarget(n.element());if(t.repositionTarget){var i=Fa(n.element()),u=Ef(i),a=uj(r),c=GG(o,u,a),s=DG(c.coord,u,a);Rs(r,s)}},YG=Object.freeze({__proto__:null,snapTo:XG}),qG="data-initial-z-index",KG=function(n){Va(n.element()).filter(ic).each(function(n){var t=fc(n,qG);dc(n,qG)?Fs(n,"z-index",t):Ls(n,"z-index"),mc(n,qG)})},JG=function(n){Va(n.element()).filter(ic).each(function(t){Ns(t,"z-index").each(function(n){cc(t,qG,n)}),Fs(t,"z-index",Vs(n.element(),"z-index"))})},$G=function(n,t){n.getSystem().addToGui(t),JG(t)},QG=function(n){KG(n),n.getSystem().removeFromGui(n)},ZG=function(n,t,e){return n.getSystem().build(wE.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:e}))},nX=Tr("snaps",[fr("getSnapPoints"),xl("onSensor"),fr("leftAttr"),fr("topAttr"),Br("lazyViewport",Wf),Br("mustSnap",!1)]),tX=[Br("useFixed",gt),fr("blockerClass"),Br("getTarget",lt),Br("onDrag",at),Br("repositionTarget",!0),Br("onDrop",at),Rr("getBounds",Wf),nX],eX=function(n){return Yv(Ns(n,"left"),Ns(n,"top"),Ns(n,"position"),function(n,t,e){var o="fixed"===e?RG:FG;return o(parseInt(n,10),parseInt(t,10))}).getOrThunk(function(){var t=gf(n);return IG(t.left(),t.top())})},oX=function(n,t,e,o,r){var i=r.bounds,u=_G(t,e,o),a=$d(u.left(),i.x(),i.x()+i.width()-r.width),c=$d(u.top(),i.y(),i.y()+i.height()-r.height),s=IG(a,c);return t.fold(function(){var n=TG(s,e,o);return FG(n.left(),n.top())},function(){return s},function(){var n=OG(s,e,o);return RG(n.left(),n.top())})},rX=function(n,t,e,o,r,i,u){var a=t.fold(function(){var n=AG(e,i.left(),i.top()),t=OG(n,o,r);return RG(t.left(),t.top())},function(t){var u=zG(n,t,e,i,o,r);return u.extra.each(function(e){t.onSensor(n,e)}),u.coord});return oX(n,a,o,r,u)},iX=function(n,t,e,o){var r=t.getTarget(n.element());if(t.repositionTarget){var i=Fa(n.element()),u=Ef(i),a=uj(r),c=eX(r),s=rX(n,t.snaps,c,u,a,o,e),f=DG(s,u,a);Rs(r,f)}t.onDrag(n,r,o)},uX=function(n,t){return{bounds:n.getBounds(),height:cf(t.element()),width:yf(t.element())}},aX=function(n,t,e,o,r){var i=e.update(o,r),u=e.getStartData().getOrThunk(function(){return uX(t,n)});i.each(function(e){iX(n,t,u,e)})},cX=function(n,t,e,o){t.each(QG),e.snaps.each(function(t){LG(n,t)});var r=e.getTarget(n.element());o.reset(),e.onDrop(n,r)},sX=function(n){return function(t,e){var r=function(n){e.setStartData(uX(t,n))};return ca(o([da(Wu(),function(n){e.getStartData().each(function(){return r(n)})})],n(t,e,r)))}},fX=function(n){return ca([da(hu(),n.forceDrop),da(yu(),n.drop),da(vu(),function(t,e){n.move(e.event())}),da(bu(),n.delayDrop)])},lX=function(n){return St.from(lf(n.x(),n.y()))},dX=function(n,t){return lf(t.left()-n.left(),t.top()-n.top())},mX=Object.freeze({__proto__:null,getData:lX,getDelta:dX}),gX=function(n,t,e){return[da(hu(),function(o,r){var i=r.event().raw();if(0===i.button){r.stop();var u=function(){return cX(o,St.some(s),n,t)},a=d(u,200),c={drop:u,delayDrop:a.schedule,forceDrop:u,move:function(e){a.cancel(),aX(o,n,t,mX,e)}},s=ZG(o,n.blockerClass,fX(c)),f=function(){e(o),$G(o,s)};f()}})]},pX=o(tX,[kl("dragger",{handlers:sX(gX)})]),hX=function(n){return ca([da(du(),n.forceDrop),da(gu(),n.drop),da(pu(),n.drop),da(mu(),function(t,e){n.move(e.event())})])},vX=function(n){var t=n[0];return St.some(lf(t.clientX,t.clientY))},bX=function(n){var t=n.raw(),e=t.touches;return 1===e.length?vX(e):St.none()},yX=function(n,t){return lf(t.left()-n.left(),t.top()-n.top())},xX=Object.freeze({__proto__:null,getData:bX,getDelta:yX}),wX=function(n,t,e){var o=zr(St.none());return[da(du(),function(r,i){i.stop();var u=function(){cX(r,o.get(),n,t),o.set(St.none())},a={drop:u,delayDrop:function(){},forceDrop:u,move:function(e){aX(r,n,t,xX,e)}},c=ZG(r,n.blockerClass,hX(a));o.set(St.some(c));var s=function(){e(r),$G(r,c)};s()}),da(mu(),function(e,o){o.stop(),aX(e,n,t,xX,o.event())}),da(gu(),function(e,r){r.stop(),cX(e,o.get(),n,t),o.set(St.none())}),da(pu(),function(e){cX(e,o.get(),n,t),o.set(St.none())})]},SX=o(tX,[kl("dragger",{handlers:sX(wX)})]),CX=function(n,t,e){return o(gX(n,t,e),wX(n,t,e))},kX=o(tX,[kl("dragger",{handlers:sX(CX)})]),OX=pX,_X=SX,TX=kX,EX=Object.freeze({__proto__:null,mouse:OX,touch:_X,mouseOrTouch:TX}),BX=function(){var n=St.none(),t=St.none(),e=function(){n=St.none(),t=St.none()},o=function(t,e){var o=n.map(function(n){return t.getDelta(n,e)});return n=St.some(e),o},r=function(n,t){return n.getData(t).bind(function(t){return o(n,t)})},i=function(n){t=St.some(n)},u=function(){return t},a=ft({});return Uc({readState:a,reset:e,update:r,getStartData:u,setStartData:i})},DX=Object.freeze({__proto__:null,init:BX}),AX=Sd({branchKey:"mode",branches:EX,name:"dragging",active:{events:function(n,t){var e=n.dragger;return e.handlers(n,t)}},extra:{snap:Ma(["sensor","range","output"],["extra"])},state:DX,apis:YG}),MX=Ui(),FX=40,IX=FX/2,RX=function(n,t,e,o,r,i){return n.fold(function(){return AX.snap({sensor:IG(e-IX,o-IX),range:lf(r,i),output:IG(St.some(e),St.some(o)),extra:{td:t}})},function(n){var r=e-IX,i=o-IX,u=FX,a=FX,c=n.element().dom().getBoundingClientRect();return AX.snap({sensor:IG(r,i),range:lf(u,a),output:IG(St.some(e-c.width/2),St.some(o-c.height/2)),extra:{td:t}})})},VX=function(n,t,e){var o=function(n,t){return n.exists(function(n){return Zi(n,t)})};return{getSnapPoints:n,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(n,r){var i=r.td;o(t.get(),i)||(t.set(St.some(i)),e(i))},mustSnap:!0}},HX=function(n){return sC(cC.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:bd([AX.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:n}),QB.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},NX=function(n,t){var e=zr([]),o=zr([]),r=zr(!1),i=zr(St.none()),u=zr(St.none()),a=function(n){var e=Uf(n);return RX(m.getOpt(t),n,e.x(),e.y(),e.width(),e.height())},c=function(){return Gt(e.get(),function(n){return a(n)})},s=function(n){var e=Uf(n);return RX(g.getOpt(t),n,e.right(),e.bottom(),e.width(),e.height())},f=function(){return Gt(o.get(),function(n){return s(n)})},l=VX(c,i,function(t){u.get().each(function(e){n.fire("TableSelectorChange",{start:t,finish:e})})}),d=VX(f,u,function(t){i.get().each(function(e){n.fire("TableSelectorChange",{start:e,finish:t})})}),m=HX(l),g=HX(d),p=of(m.asSpec()),h=of(g.asSpec()),v=function(t,e,o,r){var i=e.dom().getBoundingClientRect();Ls(t.element(),"display");var u=Ra(Xr.fromDom(n.getBody())).dom().innerHeight,a=o(i),c=r(i,u);(a||c)&&Fs(t.element(),"display","none")},b=function(n,t,e,o){var r=e(t);AX.snapTo(n,r);var i=function(n){return n[o]<0},u=function(n,t){return n[o]>t};v(n,t,i,u)},y=function(n){return b(p,n,a,"top")},x=function(){return i.get().each(y)},w=function(n){return b(h,n,s,"bottom")},S=function(){return u.get().each(w)};MX.deviceType.isTouch()&&(n.on("TableSelectionChange",function(n){r.get()||(wp(t,p),wp(t,h),r.set(!0)),i.set(St.some(n.start)),u.set(St.some(n.finish)),n.otherCells.each(function(t){e.set(t.upOrLeftCells),o.set(t.downOrRightCells),y(n.start),w(n.finish)})}),n.on("ResizeEditor ResizeWindow ScrollContent",function(){x(),S()}),n.on("TableSelectionClear",function(){r.get()&&(kp(p),kp(h),r.set(!1)),i.set(St.none()),u.set(St.none())}))},PX={setup:NX};!function(n){n[n.None=0]="None",n[n.Both=1]="Both",n[n.Vertical=2]="Vertical"}(Jz||(Jz={}));var zX=function(n,t,e,o,r){var i={};return i.height=uW.calcCappedSize(o+t.top(),PS(n),LS(n)),e===Jz.Both&&(i.width=uW.calcCappedSize(r+t.left(),NS(n),zS(n))),i
+},LX=function(n,t,e){var o=Xr.fromDom(n.getContainer()),r=zX(n,t,e,af(o),bf(o));ge(r,function(n,t){return Fs(o,t,uW.numToPx(n))}),z_.fireResizeEditor(n)},jX=function(n){if(1===n.nodeType){if("BR"===n.nodeName||n.getAttribute("data-mce-bogus"))return!0;if("bookmark"===n.getAttribute("data-mce-type"))return!0}return!1},UX=function(n,t){t.delimiter||(t.delimiter="»");var e=function(e){var o=e||[],r=Gt(o,function(t,e){return cC.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":e,"tab-index":-1,"aria-level":e+1},innerHtml:t.name},action:function(){n.focus(),n.selection.select(t.element),n.nodeChanged()}})}),i={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return $t(r.slice(1),function(n,t){var e=n;return e.push(i),e.push(t),e},[r[0]])},o=function(t){for(var e=[],o=t.length;o-->0;){var r=t[o];if(1===r.nodeType&&!jX(r)){var i=n.fire("ResolveName",{name:r.nodeName.toLowerCase(),target:r});if(i.isDefaultPrevented()||e.push({name:i.name,element:r}),i.isPropagationStopped())break}}return e};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:bd([Xx.config({mode:"flow",selector:"div[role=button]"}),vB.config({}),ew.config({}),rw("elementPathEvents",[Sa(function(t){n.shortcuts.add("alt+F11","focus statusbar elementpath",function(){return Xx.focusIn(t)}),n.on("NodeChange",function(n){var r=o(n.parents);r.length>0?ew.set(t,e(r)):ew.set(t,[])})})])]),components:[]}},WX={renderElementPath:UX},GX=function(n,t){var e=function(n,e,o){return ew.set(n,[nf(t.translate(["{0} "+o,e[o]]))])};return cC.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:bd([vB.config({}),ew.config({}),Ah.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),rw("wordcount-events",[Oa(function(n){var t=Ah.getValue(n),o="words"===t.mode?"characters":"words";Ah.setValue(n,{mode:o,count:t.count}),e(n,t.count,o)}),Sa(function(t){n.on("wordCountUpdate",function(n){var o=Ah.getValue(t).mode;Ah.setValue(t,{mode:o,count:n.wordCount}),e(t,n.wordCount,o)})})])])})},XX=function(n,t){var e=function(e){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize"),"aria-hidden":"true"},innerHtml:lC("resize-handle",t.icons)},behaviours:bd([AX.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,o,r){LX(n,r,e)},blockerClass:"tox-blocker"})])}},o=function(){var n=Ek.translate(["Powered by {0}","Tiny"]),t=''+n+" ";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(n){var t=!Ai(n.settings.plugins,"autoresize"),e=n.getParam("resize",t);return e===!1?Jz.None:"both"===e?Jz.Both:Jz.Vertical},i=function(){var e=[];return n.getParam("elementpath",!0,"boolean")&&e.push(WX.renderElementPath(n,{})),Ai(n.settings.plugins,"wordcount")&&e.push(GX(n,t)),n.getParam("branding",!0,"boolean")&&e.push(o()),e.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:e}]:[]},u=function(){var t=i(),o=r(n);return o!==Jz.None&&t.push(e(o)),t};return{dom:{tag:"div",classes:["tox-statusbar"]},components:u()}},YX=function(n){var t,e=n.inline,o=e?mW:eW,r=iC(n)?Kj:Zj,i=St.none(),u=Ui(),a=u.browser.isIE(),c=a?["tox-platform-ie"]:[],s=u.deviceType.isTouch(),f="tox-platform-touch",l=s?[f]:[],d=ZS(n),m=Ek.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(t={},t[Cm]=d?ol.TopToBottom:ol.BottomToTop,t)},p=function(){return i.bind(NU.getHeader)},h=function(){return r.isDocked(p)},v=of({dom:vt({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(l)},m),behaviours:bd([pp.config({useFixed:function(){return h()}})])}),b=function(){return _t.value(v)},y=sC({dom:{tag:"div",classes:["tox-anchorbar"]}}),x=function(){return i.bind(function(n){return y.getOpt(n)}).getOrDie("Could not find a anchor bar element")},w=function(){return i.bind(function(n){return NU.getToolbar(n)}).getOrDie("Could not find more toolbar element")},S=function(){return i.bind(function(n){return NU.getThrobber(n)}).getOrDie("Could not find throbber element")},C=GH(v,n,x),k=NU.parts().menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:C,onEscape:function(){n.focus()}}),O=JS(n),_=NU.parts().toolbar(vt({dom:{tag:"div",classes:["tox-toolbar"]},getSink:b,backstage:C,onEscape:function(){n.focus()},type:O,lazyToolbar:w,lazyHeader:function(){return p().getOrDie("Could not find header element")}},g)),T=NU.parts()["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},onEscape:function(){},type:O}),E=NU.parts().socket({dom:{tag:"div",classes:["tox-edit-area"]}}),B=NU.parts().sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),D=NU.parts().throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:C}),A=n.getParam("statusbar",!0,"boolean"),M=A&&!e?St.some(XX(n,C.shared.providers)):St.none(),F={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[E,B]},I=qS(n),R=XS(n),V=GS(n),H=function(){return I?[T]:R?[_]:[]},N=NU.parts().header({dom:vt({tag:"div",classes:["tox-editor-header"]},g),components:ne([V?[k]:[],H(),eC(n)?[]:[y.asSpec()]]),sticky:iC(n),editor:n,getSink:b}),P=ne([d?[N]:[],e?[]:[F],d?[]:[N]]),z={dom:{tag:"div",classes:["tox-editor-container"]},components:P},L=ne([[z],e?[]:M.toArray(),[D]]),j=rC(n),U=vt(vt({role:"application"},Ek.isRtl()?{dir:"rtl"}:{}),j?{"aria-hidden":"true"}:{}),W=of(NU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(e?["tox-tinymce-inline"]:[]).concat(d?[]:["tox-tinymce--toolbar-bottom"]).concat(l).concat(c),styles:vt({visibility:"hidden"},j?{opacity:"0",border:"0"}:{}),attributes:U},components:L,behaviours:bd([Xx.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})])}));i=St.some(W),n.shortcuts.add("alt+F9","focus menubar",function(){NU.focusMenubar(W)}),n.shortcuts.add("alt+F10","focus toolbar",function(){NU.focusToolbar(W)});var G=SE(W),X=SE(v);KL.setup(n,G,X);var Y=function(){var n={broadcastAll:X.broadcast,broadcastOn:X.broadcastOn,register:function(){}};return{channels:n}},q=function(){var t=uW.numToPx(cW(n)),e=uW.numToPx(fW(n));return n.inline||(zs("div","width",e)&&Fs(W.element(),"width",e),zs("div","height",t)?Fs(W.element(),"height",t):Fs(W.element(),"height","200px")),t},K=function(){r.setup(n,p),LW.setup(n,C),xG(n,b,C),dU(n),EU(n,S,C.shared),pe(QS(n),function(t,e){n.ui.registry.addGroupToolbarButton(e,t)});var t=n.ui.registry.getAll(),e=t.buttons,i=t.menuItems,u=t.contextToolbars,a=t.sidebars,c=YS(n),s={menuItems:i,menus:n.settings.menu?pe(n.settings.menu,function(n){return vt(vt({},n),{items:n.items})}):{},menubar:n.settings.menubar,toolbar:c.getOrThunk(function(){return n.getParam("toolbar",!0)}),allowToolbarGroups:O===jb.floating,buttons:e,sidebar:a};YL.register(n,u,v,{backstage:C}),PX.setup(n,v);var f=n.getElement(),l=q(),d={mothership:G,uiMothership:X,outerContainer:W},m={targetNode:f,height:l};return o.render(n,d,s,C,m)};return{mothership:G,uiMothership:X,backstage:C,renderUI:K,getUi:Y}},qX={setup:YX},KX=function(n,t){var e=St.from(fc(n,"id")).fold(function(){var n=Sc("dialog-describe");return cc(t,"id",n),n},lt);cc(n,"aria-describedby",e)},JX={labelledBy:function(n,t){var e=St.from(fc(n,"id")).fold(function(){var n=Sc("dialog-label");return cc(t,"id",n),n},lt);cc(n,"aria-labelledby",e)}},$X=ft([fr("lazySink"),wr("dragBlockClass"),Rr("getBounds",Wf),Br("useTabstopAt",ft(!0)),Br("eventOrder",{}),Mh("modalBehaviours",[Xx]),wl("onExecute"),Cl("onEscape")]),QX={sketch:lt},ZX=ft([dv({name:"draghandle",overrides:function(n,t){return{behaviours:bd([AX.config({mode:"mouse",getTarget:function(n){return Kf(n,'[role="dialog"]').getOr(n)},blockerClass:n.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:n.getDragBounds})])}}}),fv({schema:[fr("dom")],name:"title"}),fv({factory:QX,schema:[fr("dom")],name:"close"}),fv({factory:QX,schema:[fr("dom")],name:"body"}),dv({factory:QX,schema:[fr("dom")],name:"footer"}),lv({factory:{sketch:function(n,t){return vt(vt({},n),{dom:t.dom,components:t.components})}},schema:[Br("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Br("components",[])],name:"blocker"})]),nY=function(n,t,e,o){var r=Sc("alloy.dialog.busy"),i=Sc("alloy.dialog.idle"),u=bd([Xx.config({mode:"special",onTab:function(){return St.some(!0)},onShiftTab:function(){return St.some(!0)}}),mw.config({})]),a=function(t){var e=n.lazySink(t).getOrDie(),a=zr(St.none()),c=o.blocker(),s=e.getSystem().build(vt(vt({},c),{components:c.components.concat([rf(t)]),behaviours:bd([mw.config({}),rw("dialog-blocker-events",[wa(wu(),function(){Xx.focusIn(t)}),da(i,function(){dc(t.element(),"aria-busy")&&(mc(t.element(),"aria-busy"),a.get().each(function(n){return ew.remove(t,n)}))}),da(r,function(n,e){cc(t.element(),"aria-busy","true");var o=e.event().getBusySpec();a.get().each(function(n){ew.remove(t,n)});var r=o(t,u),i=n.getSystem().build(r);a.set(St.some(i)),ew.append(t,rf(i)),i.hasConfigured(Xx)&&Xx.focusIn(i)})])])}));wp(e,s),Xx.focusIn(t)},c=function(n){Va(n.element()).each(function(t){n.getSystem().getByDom(t).each(function(n){kp(n)})})},s=function(t){return _v(t,n,"body")},f=function(t){return _v(t,n,"footer")},l=function(n,t){oa(n,r,{getBusySpec:t})},d=function(n){ea(n,i)},m=Sc("modal-events"),g=vt(vt({},n.eventOrder),{"alloy.system.attached":[m].concat(n.eventOrder["alloy.system.attached"]||[])});return{uid:n.uid,dom:n.dom,components:t,apis:{show:a,hide:c,getBody:s,getFooter:f,setIdle:d,setBusy:l},eventOrder:g,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ih(n.modalBehaviours,[ew.config({}),Xx.config({mode:"cyclic",onEnter:n.onExecute,onEscape:n.onEscape,useTabstopAt:n.useTabstopAt}),rw(m,[Sa(function(t){JX.labelledBy(t.element(),_v(t,n,"title").element()),KX(t.element(),_v(t,n,"body").element())})])])}},tY=Uv({name:"ModalDialog",configFields:$X(),partFields:ZX(),factory:nY,apis:{show:function(n,t){n.show(t)},hide:function(n,t){n.hide(t)},getBody:function(n,t){return n.getBody(t)},getFooter:function(n,t){return n.getFooter(t)},setBusy:function(n,t,e){n.setBusy(t,e)},setIdle:function(n,t){n.setIdle(t)}}}),eY=[mr("type"),mr("text"),gr("level",["info","warn","error","success"]),mr("icon"),Br("url","")],oY=Mo(eY),rY=function(n){return[mr("type"),n]},iY=[mr("type"),mr("text"),Ir("disabled",!1),Ir("primary",!1),Po("name","name",Ke(function(){return Sc("button-name")}),rr),kr("icon"),Ir("borderless",!1)],uY=Mo(iY),aY=[mr("type"),mr("name"),mr("label"),Ir("disabled",!1)],cY=Mo(aY),sY=ir,fY=[mr("type"),mr("name")],lY=fY.concat([kr("label")]),dY=lY,mY=Mo(dY),gY=rr,pY=lY,hY=Mo(pY),vY=rr,bY=lY,yY=Mo(bY),xY=Wo(),wY=function(n){return[mr("type"),dr("columns"),n]},SY=lY.concat([Ir("sandboxed",!0)]),CY=Mo(SY),kY=rr,OY=lY.concat([kr("inputMode"),kr("placeholder"),Ir("maximized",!1),Ir("disabled",!1)]),_Y=Mo(OY),TY=rr,EY=lY.concat([yr("items",[mr("text"),mr("value")]),Ar("size",1),Ir("disabled",!1)]),BY=Mo(EY),DY=rr,AY=lY.concat([Ir("constrain",!0),Ir("disabled",!1)]),MY=Mo(AY),FY=Mo([mr("width"),mr("height")]),IY=lY.concat([kr("placeholder"),Ir("maximized",!1),Ir("disabled",!1)]),RY=Mo(IY),VY=rr,HY=lY.concat([Fr("filetype","file",["image","media","file"]),Br("disabled",!1)]),NY=Mo(HY),PY=Mo([mr("value"),Br("meta",{})]),zY=fY.concat([Mr("tag","textarea"),mr("scriptId"),mr("scriptUrl"),Vr("settings",void 0)]),LY=fY.concat([Mr("tag","textarea"),hr("init")]),jY=Xo(function(n){return Ko("customeditor.old",Ao(LY),n).orThunk(function(){return Ko("customeditor.new",Ao(zY),n)})}),UY=rr,WY=[mr("type"),mr("html"),Fr("presets","presentation",["presentation","document"])],GY=Mo(WY),XY=lY.concat([lr("currentState",Mo([fr("blob"),mr("url")]))]),YY=Mo(XY),qY=lY.concat([Br("columns","auto")]),KY=Mo(qY),JY=Uo([mr("value"),mr("text"),mr("icon")]),$Y=function(n){return[mr("type"),mr("label"),n]},QY=[mr("type"),xr("header",rr),xr("cells",Fo(rr))],ZY=Mo(QY),nq=function(n){return Po("items","items",Ye(),Fo(Xo(function(t){return Ko("Checking item of "+n,tq,t).fold(function(n){return _t.error(Qo(n))},function(n){return _t.value(n)})})))},tq=Go(function(){return Zo("type",{alertbanner:oY,bar:Mo(rY(nq("bar"))),button:uY,checkbox:cY,colorinput:mY,colorpicker:hY,dropzone:yY,grid:Mo(wY(nq("grid"))),iframe:CY,input:_Y,selectbox:BY,sizeinput:MY,textarea:RY,urlinput:NY,customeditor:jY,htmlpanel:GY,imagetools:YY,collection:KY,label:Mo($Y(nq("label"))),table:ZY,panel:oq})}),eq=[mr("type"),Br("classes",[]),xr("items",tq)],oq=Mo(eq),rq=[Po("name","name",Ke(function(){return Sc("tab-name")}),rr),mr("title"),xr("items",tq)],iq=[mr("type"),yr("tabs",rq)],uq=Mo(iq),aq=Mo([mr("type"),mr("name")].concat(nk)),cq=ir,sq=[Po("name","name",Ke(function(){return Sc("button-name")}),rr),kr("icon"),Fr("align","end",["start","end"]),Ir("primary",!1),Ir("disabled",!1)],fq=o(sq,[mr("text")]),lq=o([gr("type",["submit","cancel","custom"])],fq),dq=o([gr("type",["menu"]),kr("text"),kr("tooltip"),kr("icon"),xr("items",aq)],sq),mq=nr("type",{submit:lq,cancel:lq,custom:lq,menu:dq}),gq=fq,pq=mq,hq=Mo([mr("title"),lr("body",Zo("type",{panel:oq,tabpanel:uq})),Mr("size","normal"),xr("buttons",pq),Br("initialData",{}),Rr("onAction",at),Rr("onChange",at),Rr("onSubmit",at),Rr("onClose",at),Rr("onCancel",at),Br("onTabChange",at)]),vq=function(n){return Ko("dialog",hq,n)},bq=function(n){return Dt(n)?[n].concat(te(ye(n),bq)):At(n)?te(n,bq):[]},yq=function(n){return Bt(n.type)&&Bt(n.name)},xq={checkbox:sY,colorinput:gY,colorpicker:vY,dropzone:xY,input:TY,iframe:kY,sizeinput:FY,selectbox:DY,size:FY,textarea:VY,urlinput:PY,customeditor:UY,collection:JY,togglemenuitem:cq},wq=function(n){return St.from(xq[n.type])},Sq=function(n){return Kt(bq(n),yq)},Cq=function(n){var t=Sq(n),e=te(t,function(n){return wq(n).fold(function(){return[]},function(t){return[lr(n.name,t)]})});return Mo(e)},kq=Mo(o([gr("type",["cancel","custom"])],gq)),Oq=Mo([mr("title"),mr("url"),Cr("height"),Cr("width"),_r("buttons",kq),Rr("onAction",at),Rr("onCancel",at),Rr("onClose",at),Rr("onMessage",at)]),_q=function(n){return Ko("dialog",Oq,n)},Tq=function(n){var t=Jo(vq(n)),e=Cq(n),o=n.initialData;return{internalDialog:t,dataValidator:e,initialData:o}},Eq={open:function(n,t){var e=Tq(t);return n(e.internalDialog,e.initialData,e.dataValidator)},openUrl:function(n,t){var e=Jo(_q(t));return n(e)},redial:function(n){return Tq(n)}},Bq=function(){var n=zr(St.none()),t=function(){n.set(St.none())},e=function(t){n.set(St.some(t))},o=function(t){n.get().each(t)},r=function(){return n.get().isSome()};return{clear:t,set:e,isSet:r,on:o}},Dq=function(n){var t=[],e={};return ge(n,function(n,o){n.fold(function(){t.push(o)},function(n){e[o]=n})}),t.length>0?_t.error(t):_t.value(e)},Aq=function(t,e){var o=sC(YM.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:Gt(t.items,function(t){return TV(n,t,e)})}}));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[o.asSpec()]}],behaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)}),rF.memento(o),yF.memento(o,{postprocess:function(t){return Dq(t).fold(function(t){return n.console.error(t),{}},function(n){return n})}})])}},Mq=function(n){return{uid:n.uid,dom:n.dom,components:n.components,events:Iw(n.action),behaviours:Ih(n.tabButtonBehaviours,[mw.config({}),Xx.config({mode:"execution",useSpace:!0,useEnter:!0}),Ah.config({store:{mode:"memory",initialValue:n.value}})]),domModification:n.domModification}},Fq=jv({name:"TabButton",configFields:[Br("uid",void 0),fr("value"),Po("dom","dom",Je(function(){return{attributes:{role:"tab",id:Sc("aria"),"aria-selected":"false"}}}),tr()),wr("action"),Br("domModification",{}),Mh("tabButtonBehaviours",[mw,Xx,Ah]),fr("view")],factory:Mq}),Iq=ft([fr("tabs"),fr("dom"),Br("clickToDismiss",!1),Mh("tabbarBehaviours",[bb,Xx]),bl(["tabClass","selectedClass"])]),Rq=mv({factory:Fq,name:"tabs",unit:"tab",overrides:function(n){var t=function(n,t){bb.dehighlight(n,t),oa(n,Zu(),{tabbar:n,button:t})},e=function(n,t){bb.highlight(n,t),oa(n,Qu(),{tabbar:n,button:t})};return{action:function(o){var r=o.getSystem().getByUid(n.uid).getOrDie(),i=bb.isHighlighted(r,o),u=function(){return i&&n.clickToDismiss?t:i?at:e}();u(r,o)},domModification:{classes:[n.markers.tabClass]}}}}),Vq=ft([Rq]),Hq=function(n,t){return{uid:n.uid,dom:n.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Ih(n.tabbarBehaviours,[bb.config({highlightClass:n.markers.selectedClass,itemClass:n.markers.tabClass,onHighlight:function(n,t){cc(t.element(),"aria-selected","true")},onDehighlight:function(n,t){cc(t.element(),"aria-selected","false")}}),Xx.config({mode:"flow",getInitial:function(n){return bb.getHighlighted(n).map(function(n){return n.element()})},selector:"."+n.markers.tabClass,executeOnMove:!0})])}},Nq=Uv({name:"Tabbar",configFields:Iq(),partFields:Vq(),factory:Hq}),Pq=function(n){return{uid:n.uid,dom:n.dom,behaviours:Ih(n.tabviewBehaviours,[ew.config({})]),domModification:{attributes:{role:"tabpanel"}}}},zq=jv({name:"Tabview",configFields:[Mh("tabviewBehaviours",[ew])],factory:Pq}),Lq=ft([Br("selectFirst",!0),xl("onChangeTab"),xl("onDismissTab"),Br("tabs",[]),Mh("tabSectionBehaviours",[])]),jq=fv({factory:Nq,schema:[fr("dom"),br("markers",[fr("tabClass"),fr("selectedClass")])],name:"tabbar",defaults:function(n){return{tabs:n.tabs}}}),Uq=fv({factory:zq,name:"tabview"}),Wq=ft([jq,Uq]),Gq=function(n,t){var e=function(t){var e=Ah.getValue(t);Ov(t,n,"tabview").each(function(o){var r=Qt(n.tabs,function(n){return n.value===e});r.each(function(e){var r=e.view();lc(t.element(),"id").each(function(n){cc(o.element(),"aria-labelledby",n)}),ew.set(o,r),n.onChangeTab(o,t,r)})})},o=function(t,e){Ov(t,n,"tabbar").each(function(n){e(n).each(ra)})};return{uid:n.uid,dom:n.dom,components:t,behaviours:Fh(n.tabSectionBehaviours),events:ca(ne([n.selectFirst?[Sa(function(n){o(n,bb.getFirst)})]:[],[da(Qu(),function(n,t){var o=t.event().button();e(o)}),da(Zu(),function(t,e){var o=e.event().button();n.onDismissTab(t,o)})]])),apis:{getViewItems:function(t){return Ov(t,n,"tabview").map(function(n){return ew.contents(n)}).getOr([])},showTab:function(n,t){var e=function(n){var e=bb.getCandidates(n),o=Qt(e,function(n){return Ah.getValue(n)===t});return o.filter(function(t){return!bb.isHighlighted(n,t)})};o(n,e)}}}},Xq=Uv({name:"TabSection",configFields:Lq(),partFields:Wq(),factory:Gq,apis:{getViewItems:function(n,t){return n.getViewItems(t)},showTab:function(n,t,e){n.showTab(t,e)}}}),Yq=function(n,t,e){return Gt(n,function(o,r){ew.set(e,n[r].view());var i=t.dom().getBoundingClientRect();return ew.set(e,[]),i.height})},qq=function(n){return ce(ae(n,function(n,t){return n>t?-1:t>n?1:0}))},Kq=function(t,e,o){var r,i=Ia(t).dom(),u=Kf(t,".tox-dialog-wrap").getOr(t),a="fixed"===Vs(u,"position");r=a?Math.max(i.clientHeight,n.window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var c=af(e),s=e.dom().offsetLeft>=o.dom().offsetLeft+bf(o),f=s?Math.max(af(o),c):c,l=parseInt(Vs(t,"margin-top"),10)||0,d=parseInt(Vs(t,"margin-bottom"),10)||0,m=af(t)+l+d,g=m-f;return r-g},Jq=function(n,t){ce(n).each(function(n){return Xq.showTab(t,n.value)})},$q=function(n,t){Fs(n,"height",t+"px"),Ui().browser.isIE()?Ls(n,"flex-basis"):Fs(n,"flex-basis",t+"px")},Qq=function(n,t,e){Kf(n,'[role="dialog"]').each(function(n){Jf(n,'[role="tablist"]').each(function(o){e.get().map(function(e){return Fs(t,"height","0"),Fs(t,"flex-basis","0"),Math.min(e,Kq(n,t,o))}).each(function(n){$q(t,n)})})})},Zq=function(n){return Jf(n,'[role="tabpanel"]')},nK=function(n){var t=function(){var t=zr(St.none()),e=[Sa(function(e){var o=e.element();Zq(o).each(function(r){Fs(r,"visibility","hidden"),e.getSystem().getByDom(r).toOption().each(function(e){var o=Yq(n,r,e),i=qq(o);t.set(i)}),Qq(o,r,t),Ls(r,"visibility"),Jq(n,e),DS.requestAnimationFrame(function(){Qq(o,r,t)})})}),da(Gu(),function(n){var e=n.element();Zq(e).each(function(n){Qq(e,n,t)})}),da(AE,function(n){var e=n.element();Zq(e).each(function(n){var o=Id();Fs(n,"visibility","hidden");var r=Ns(n,"height").map(function(n){return parseInt(n,10)});Ls(n,"height"),Ls(n,"flex-basis");var i=n.dom().getBoundingClientRect().height,u=r.forall(function(n){return i>n});u?(t.set(St.from(i)),Qq(e,n,t)):r.each(function(t){$q(n,t)}),Ls(n,"visibility"),o.each(Ad)})})],o=!1;return{extraEvents:e,selectFirst:o}}(),e=function(){var n=[],t=!0;return{extraEvents:n,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:e}},tK="send-data-to-section",eK="send-data-to-view",oK=function(n,t){var e=zr({}),o=function(n){var t=Ah.getValue(n),o=Dq(t).getOr({}),r=e.get(),i=Be(r,o);e.set(i)},r=function(n){var t=e.get();Ah.setValue(n,t)},i=zr(null),u=Gt(n.tabs,function(n){return{value:n.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(n.title)},view:function(){return[YM.sketch(function(e){return{dom:{tag:"div",classes:["tox-form"]},components:Gt(n.items,function(n){return TV(e,n,t)}),formBehaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)}),rw("TabView.form.events",[Sa(r),Ca(o)]),Ed.config({channels:oo([{key:tK,value:{onReceive:o}},{key:eK,value:{onReceive:r}}])})])}})]}}}),a=nK(u).smartTabHeight;return Xq.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(n,t){var e=Ah.getValue(t);oa(n,DE,{name:e,oldName:i.get()}),i.set(e)},tabs:u,components:[Xq.parts().tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Nq.parts().tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:bd([vB.config({})])}),Xq.parts().tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:a.selectFirst,tabSectionBehaviours:bd([rw("tabpanel",a.extraEvents),Xx.config({mode:"acyclic"}),Qv.config({find:function(n){return ce(Xq.getViewItems(n))}}),Ah.config({store:{mode:"manual",getValue:function(n){return n.getSystem().broadcastOn([tK],{}),e.get()},setValue:function(n,t){e.set(t),n.getSystem().broadcastOn([eK],{})}}})])})},rK=Sc("update-dialog"),iK=Sc("update-title"),uK=Sc("update-body"),aK=Sc("update-footer"),cK=Sc("body-send-message"),sK=function(n,t,e,o){var r=function(n){switch(n.body.type){case"tabpanel":return[oK(n.body,e)];default:return[Aq(n.body,e)]}},i=function(n,t){return St.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},u={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:vt(vt({},t.map(function(n){return{id:n}}).getOr({})),o?u:{})},components:[],behaviours:bd([rF.childAt(0),ez.config({channel:uK,updateState:i,renderComponents:r,initialData:n})])}},fK=function(n,t,e,o){return sK(n,St.some(t),e,o)},lK=function(n,t){var e=sK(n,St.none(),t,!1);return tY.parts().body(e)},dK=function(n){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[AF.craft({dom:{tag:"iframe",attributes:{src:n.url}},behaviours:bd([vB.config({}),mw.config({})])})]}],behaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)})])};return tY.parts().body(t)},mK=Uk.deviceType.isTouch(),gK=function(n,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[n,t]}},pK=function(n,t){return tY.parts().close(cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:n,buttonBehaviours:bd([vB.config({})])}))},hK=function(){return tY.parts().title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},vK=function(n,t){return tY.parts().body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:kU(""+t.translate(n)+"
")}]}]})},bK=function(n){return tY.parts().footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:n})},yK=function(n,t){return[wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:n}),wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},xK=function(n){var t,e="tox-dialog",r=e+"-wrap",i=r+"__backdrop",u=e+"__disable-scroll";return tY.sketch({lazySink:n.lazySink,onEscape:function(t){return n.onEscape(t),St.some(!0)},useTabstopAt:function(n){return!AF.isPseudoStop(n)},dom:{tag:"div",classes:[e].concat(n.extraClasses),styles:vt({position:"relative"},n.extraStyles)},components:o([n.header,n.body],n.footer.toArray()),parts:{blocker:{dom:kU('
'),components:[{dom:{tag:"div",classes:mK?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:bd(o([mw.config({}),rw("dialog-events",n.dialogEvents.concat([wa(wu(),function(n){Xx.focusIn(n)})])),rw("scroll-lock",[Sa(function(){ws(Bs(),u)}),Ca(function(){Cs(Bs(),u)})])],n.extraBehaviours)),eventOrder:vt((t={},t[Ru()]=["dialog-events"],t[Xu()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[Yu()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),n.eventOrder)})},wK=function(n){return cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":n.translate("Close"),title:n.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:' '}}],action:function(n){ea(n,OE)}})},SK=function(n,t,e){var o=function(n){return[nf(e.translate(n.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:vt({},t.map(function(n){return{id:n}}).getOr({}))},components:o(n),behaviours:bd([ez.config({channel:iK,renderComponents:o})])}},CK=function(){return{dom:kU('
')}},kK=function(n,t,e){return wE.sketch({dom:kU(''),components:[SK(n,St.some(t),e),CK(),wK(e)],containerBehaviours:bd([AX.config({mode:"mouse",blockerClass:"blocker",getTarget:function(n){return $f(n,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},OK=function(n,t){var e=tY.parts().title(SK(n,St.none(),t)),o=tY.parts().draghandle(CK()),r=tY.parts().close(wK(t)),i=[e].concat(n.draggable?[o]:[]).concat([r]);return wE.sketch({dom:kU(''),components:i})},_K=function(n,t){return OK({title:t.shared.providers.translate(n),draggable:t.dialog.isDraggableModal()},t.shared.providers)},TK=function(n,t){return{onClose:function(){return t.closeWindow()},onBlock:function(t){tY.setBusy(n(),function(n,e){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":t.message()},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:kU('')}]}})},onUnblock:function(){tY.setIdle(n())}}},EK=function(n,t,e,r){var i,u=function(n,t){return St.some(t)};return of(xK(vt(vt({},n),{lazySink:r.shared.getSink,extraBehaviours:o([ez.config({channel:rK,updateState:u,initialData:t}),yF.memory({})],n.extraBehaviours),onEscape:function(n){ea(n,OE)},dialogEvents:e,eventOrder:(i={},i[Iu()]=["reflecting","receiving"],i[Xu()]=["scroll-lock","reflecting","messages","dialog-events","alloy.base.behaviour"],i[Yu()]=["alloy.base.behaviour","dialog-events","messages","reflecting","scroll-lock"],i)})))},BK=function(n){var t=function(n){var t=Gt(n.items,function(n){var t=zr(!1);return vt(vt({},n),{storage:t})});return vt(vt({},n),{items:t})};return Gt(n,function(n){return"menu"===n.type?t(n):n})},DK=function(n){return $t(n,function(n,t){if("menu"===t.type){var e=t;return $t(e.items,function(n,t){return n[t.name]=t.storage,n},n)}return n},{})},AK=function(n,t){return[ba(wu(),AF.onFocus),n(kE,function(n,e){t.onClose(),e.onClose()}),n(OE,function(n,t,e,o){t.onCancel(n),ea(o,kE)}),da(BE,function(){return t.onUnblock()}),da(EE,function(n,e){return t.onBlock(e.event())})]},MK=function(n,t){var e=function(t,e){return da(t,function(t,o){r(t,function(r){e(n(),r,o.event(),t)})})},r=function(n,t){ez.getState(n).get().each(function(e){t(e,n)})};return o(AK(e,t),[e(_E,function(n,t,e){t.onAction(n,{name:e.name()})})])},FK=function(n,t,e){var r=function(t,e){return da(t,function(t,o){i(t,function(r){e(n(),r,o.event(),t)})})},i=function(n,t){ez.getState(n).get().each(function(e){t(e.internalDialog,n)})};return o(AK(r,t),[r(TE,function(n,t){return t.onSubmit(n)}),r(CE,function(n,t,e){t.onChange(n,{name:e.name()})}),r(_E,function(n,t,o,r){var i=function(){return Xx.focusIn(r)},u=function(n){return dc(n,"disabled")||lc(n,"aria-disabled").exists(function(n){return"true"===n})},a=Id();t.onAction(n,{name:o.name(),value:o.value()}),Id().fold(i,function(n){u(n)?i():a.exists(function(t){return ou(n,t)&&u(t)})?i():e().toOption().filter(function(t){return!ou(t.element(),n)}).each(i)})}),r(DE,function(n,t,e){t.onTabChange(n,{newTabName:e.name(),oldTabName:e.oldName()})}),Ca(function(t){var e=n();Ah.setValue(t,e.getData())})])},IK={initUrlDialog:MK,initDialog:FK},RK=function(n,t){return MI(n,n.type,t)},VK=function(n,t,e){return Qt(t,function(n){return n.name===e}).bind(function(t){return t.memento.getOpt(n)})},HK=function(n,t){var e=t.map(function(n){return n.footerButtons}).getOr([]),o=qt(e,function(n){return"start"===n.align}),r=function(n,t){return wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+n]},components:Gt(t,function(n){return n.memento.asSpec()})})},i=r("start",o.pass),u=r("end",o.fail);return[i,u]},NK=function(n,t){var e=function(n,e){var o=Gt(e.buttons,function(n){var e=sC(RK(n,t));return{name:n.name,align:n.align,memento:e}}),r=function(n,t){return VK(n,o,t)};return St.some({lookupByName:r,footerButtons:o})};return{dom:kU(''),components:[],behaviours:bd([ez.config({channel:aK,initialData:n,updateState:e,renderComponents:HK})])}},PK=function(n,t){return NK(n,t)},zK=function(n,t){return tY.parts().footer(NK(n,t))},LK=function(n,t){var e=n.getRoot();if(e.getSystem().isConnected()){var o=Qv.getCurrent(n.getFormWrapper()).getOr(n.getFormWrapper());return YM.getField(o,t).fold(function(){var e=n.getFooter(),r=ez.getState(e);return r.get().bind(function(n){return n.lookupByName(o,t)})},function(n){return St.some(n)})}return St.none()},jK=function(n,t){var e=n.getRoot();return ez.getState(e).get().map(function(n){return Jo(Ko("data",n.dataValidator,t))}).getOr(t)},UK=function(n,t,e){var o=function(t){var e=n.getRoot();e.getSystem().isConnected()&&t(e)},r=function(){var t=n.getRoot(),o=t.getSystem().isConnected()?n.getFormWrapper():t,r=Ah.getValue(o),i=pe(e,function(n){return n.get()});return vt(vt({},r),i)},i=function(t){o(function(){var o=g.getData(),r=vt(vt({},o),t),i=jK(n,r),u=n.getFormWrapper();Ah.setValue(u,i),ge(e,function(n,t){we(r,t)&&n.set(r[t])})})},u=function(t){LK(n,t).each(CO.disable)},a=function(t){LK(n,t).each(CO.enable)},c=function(t){LK(n,t).each(mw.focus)},s=function(n){if(!Bt(n))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");o(function(t){oa(t,EE,{message:n})})},f=function(){o(function(n){ea(n,BE)})},l=function(t){o(function(){var e=n.getBody(),o=ez.getState(e);o.get().exists(function(n){return n.isTabPanel()})&&Qv.getCurrent(e).each(function(n){Xq.showTab(n,t)
+})})},d=function(n){o(function(e){var o=t(n);e.getSystem().broadcastOn([rK],o),e.getSystem().broadcastOn([iK],o.internalDialog),e.getSystem().broadcastOn([uK],o.internalDialog),e.getSystem().broadcastOn([aK],o.internalDialog),g.setData(o.initialData)})},m=function(){o(function(n){ea(n,kE)})},g={getData:r,setData:i,disable:u,enable:a,focus:c,block:s,unblock:f,showTab:l,redial:d,close:m};return g},WK=function(n,t,e){var o=_K(n.internalDialog.title,e),r=lK({body:n.internalDialog.body},e),i=BK(n.internalDialog.buttons),u=DK(i),a=zK({buttons:i},e),c=IK.initDialog(function(){return m},TK(function(){return l},t),e.shared.getSink),s="normal"!==n.internalDialog.size?"large"===n.internalDialog.size?["tox-dialog--width-lg"]:["tox-dialog--width-md"]:[],f={header:o,body:r,footer:St.some(a),extraClasses:s,extraBehaviours:[],extraStyles:{}},l=EK(f,n,c,e),d=function(){var n=function(){var n=tY.getBody(l);return Qv.getCurrent(n).getOr(n)};return{getRoot:function(){return l},getBody:function(){return tY.getBody(l)},getFooter:function(){return tY.getFooter(l)},getFormWrapper:n}}(),m=UK(d,t.redial,u);return{dialog:l,instanceApi:m}},GK=function(n,t,e,o){var r,i,u=Sc("dialog-label"),a=Sc("dialog-content"),c=function(n,t){return St.some(t)},s=sC(kK({title:n.internalDialog.title,draggable:!0},u,e.shared.providers)),f=sC(fK({body:n.internalDialog.body},a,e,o)),l=BK(n.internalDialog.buttons),d=DK(l),m=sC(PK({buttons:l},e)),g=IK.initDialog(function(){return h},{onBlock:function(){},onUnblock:function(){},onClose:function(){return t.closeWindow()}},e.shared.getSink),p=of({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(r={role:"dialog"},r["aria-labelledby"]=u,r["aria-describedby"]=""+a,r)},eventOrder:(i={},i[Iu()]=[ez.name(),Ed.name()],i[Ru()]=["execute-on-form"],i[Xu()]=["reflecting","execute-on-form"],i),behaviours:bd([Xx.config({mode:"cyclic",onEscape:function(n){return ea(n,kE),St.some(!0)},useTabstopAt:function(n){return!AF.isPseudoStop(n)&&("button"!==ec(n)||"disabled"!==fc(n,"disabled"))}}),ez.config({channel:rK,updateState:c,initialData:n}),mw.config({}),rw("execute-on-form",g.concat([wa(wu(),function(n){Xx.focusIn(n)})])),yF.memory({})]),components:[s.asSpec(),f.asSpec(),m.asSpec()]}),h=UK({getRoot:function(){return p},getFooter:function(){return m.get(p)},getBody:function(){return f.get(p)},getFormWrapper:function(){var n=f.get(p);return Qv.getCurrent(n).getOr(n)}},t.redial,d);return{dialog:p,instanceApi:h}},XK=tinymce.util.Tools.resolve("tinymce.util.URI"),YK=function(n){var t=function(t){n.getSystem().isConnected()&&t(n)},e=function(n){if(!Bt(n))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(function(t){oa(t,EE,{message:n})})},o=function(){t(function(n){ea(n,BE)})},r=function(){t(function(n){ea(n,kE)})},i=function(n){t(function(t){t.getSystem().broadcastOn([cK],n)})};return{block:e,unblock:o,close:r,sendMessage:i}},qK=["insertContent","setContent","execCommand","close","block","unblock"],KK=function(n){return Dt(n)&&-1!==qK.indexOf(n.mceAction)},JK=function(n){return!KK(n)&&Dt(n)&&we(n,"mceAction")},$K=function(n,t,e){switch(e.mceAction){case"insertContent":n.insertContent(e.content);break;case"setContent":n.setContent(e.content);break;case"execCommand":var o=Mt(e.ui)?e.ui:!1;n.execCommand(e.cmd,o,e.value);break;case"close":t.close();break;case"block":t.block(e.message);break;case"unblock":t.unblock()}},QK=function(t,e,o,r){var i,u=_K(t.title,r),a=dK(t),c=t.buttons.bind(function(n){return 0===n.length?St.none():St.some(zK({buttons:n},r))}),s=IK.initUrlDialog(function(){return b},TK(function(){return v},e)),f=vt(vt({},t.height.fold(function(){return{}},function(n){return{height:n+"px","max-height":n+"px"}})),t.width.fold(function(){return{}},function(n){return{width:n+"px","max-width":n+"px"}})),l=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],d=new XK(t.url,{base_uri:new XK(n.window.location.href)}),m=d.protocol+"://"+d.host+(d.port?":"+d.port:""),g=zr(St.none()),p=[rw("messages",[Sa(function(){var e=YT(Xr.fromDom(n.window),"message",function(n){if(d.isSameOrigin(new XK(n.raw().origin))){var e=n.raw().data;KK(e)?$K(o,b,e):JK(e)&&t.onMessage(b,e)}});g.set(St.some(e))}),Ca(function(){g.get().each(function(n){return n.unbind()})})]),Ed.config({channels:(i={},i[cK]={onReceive:function(n,t){Jf(n.element(),"iframe").each(function(n){var e=n.dom().contentWindow;e.postMessage(t,m)})}},i)})],h={header:u,body:a,footer:c,extraClasses:l,extraBehaviours:p,extraStyles:f},v=EK(h,t,s,r),b=YK(v);return{dialog:v,instanceApi:b}},ZK=function(n){var t=n.backstage.shared,e=function(e,o){var r=function(){tY.hide(c),o()},i=sC(MI({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:St.none()},"cancel",n.backstage)),u=hK(),a=pK(r,t.providers),c=of(xK({lazySink:function(){return t.getSink()},header:gK(u,a),body:vK(e,t.providers),footer:St.some(bK(yK([],[i.asSpec()]))),onEscape:r,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[da(OE,r)],eventOrder:{}}));tY.show(c);var s=i.get(c);mw.focus(s)};return{open:e}},nJ=function(n){var t=n.backstage.shared,e=function(e,o){var r=function(n){tY.hide(s),o(n)},i=sC(MI({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:St.none()},"submit",n.backstage)),u=MI({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:St.none()},"cancel",n.backstage),a=hK(),c=pK(function(){return r(!1)},t.providers),s=of(xK({lazySink:function(){return t.getSink()},header:gK(a,c),body:vK(e,t.providers),footer:St.some(bK(yK([],[u,i.asSpec()]))),onEscape:function(){return r(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[da(OE,function(){return r(!1)}),da(TE,function(){return r(!0)})],eventOrder:{}}));tY.show(s);var f=i.get(s);mw.focus(f)};return{open:e}},tJ=function(n,t){return Jo(Ko("data",t,n))},eJ=function(n){return JT(n,".tox-alert-dialog")||JT(n,".tox-confirm-dialog")},oJ=function(n,t,e){return t&&e?[]:[Rj.config({contextual:{lazyContext:function(){return St.some(jf(Xr.fromDom(n.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rJ=function(n){var t=n.backstage,e=n.editor,r=iC(e),i=ZS(e),u=ZK(n),a=nJ(n),c=function(n,e,o){return void 0!==e&&"toolbar"===e.inline?d(n,t.shared.anchors.inlineDialog(),o,e.ariaAttrs):void 0!==e&&"cursor"===e.inline?d(n,t.shared.anchors.cursor(),o,e.ariaAttrs):l(n,o)},s=function(n,t){return f(n,t)},f=function(n,o){var r=function(n){var r=QK(n,{closeWindow:function(){tY.hide(r.dialog),o(r.instanceApi)}},e,t);return tY.show(r.dialog),r.instanceApi};return Eq.openUrl(r,n)},l=function(n,e){var o=function(n,o,r){var i=o,u={dataValidator:r,initialData:i,internalDialog:n},a=WK(u,{redial:Eq.redial,closeWindow:function(){tY.hide(a.dialog),e(a.instanceApi)}},t);return tY.show(a.dialog),a.instanceApi.setData(i),a.instanceApi};return Eq.open(o,n)},d=function(n,u,a,c){var s=function(n,s,f){var l=tJ(s,f),d=Bq(),m={dataValidator:f,initialData:l,internalDialog:n},g=function(){return d.on(function(n){bS.reposition(n),Rj.refresh(n)})},p=GK(m,{redial:Eq.redial,closeWindow:function(){d.on(bS.hide),e.off("ResizeEditor",g),d.clear(),a(p.instanceApi)}},t,c),h=of(bS.sketch(vt(vt({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},i?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:bd(o([rw("window-manager-inline-events",[da(qu(),function(){ea(p.dialog,OE)})])],oJ(e,r,i))),isExtraPart:function(n,t){return eJ(t)}})));return d.set(h),bS.showWithin(h,u,rf(p.dialog),St.some(Bs())),r&&i||(Rj.refresh(h),e.on("ResizeEditor",g)),p.instanceApi.setData(l),Xx.focusIn(p.dialog),p.instanceApi};return Eq.open(s,n)},m=function(n,t){a.open(n,function(n){t(n)})},g=function(n,t){u.open(n,function(){t()})},p=function(n){n.close()};return{open:c,openUrl:s,alert:g,close:p,confirm:m}},iJ={setup:rJ};it()}(window)});
+;/*!node_modules/tinymce/themes/silver/index.js*/
+amis.define("node_modules/tinymce/themes/silver/index",function(e){e("node_modules/tinymce/themes/silver/theme")});
+;/*!node_modules/tinymce/plugins/advlist/plugin.js*/
+amis.define("node_modules/tinymce/plugins/advlist/plugin",function(){!function(){"use strict";function e(){t.add("advlist",function(e){var t=function(e,t){var r=e.settings.plugins?e.settings.plugins:"";return-1!==n.inArray(r.split(/[ ,]/),t)};t(e,"lists")&&(B.register(e),u.register(e))})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e,t,n){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";e.execCommand(r,!1,n===!1?null:{"list-style-type":n})},i={applyListFormat:r},o=function(e){e.addCommand("ApplyUnorderedListStyle",function(t,n){i.applyListFormat(e,"UL",n["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(t,n){i.applyListFormat(e,"OL",n["list-style-type"])})},u={register:o},l=function(e){var t=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},s=function(e){var t=e.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},c={getNumberStyles:l,getBulletStyles:s},a=function(){},f=function(e){return function(){return e}},d=f(!1),g=f(!0),p=function(){return m},m=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:d,isSome:d,isNone:g,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:n,orThunk:t,map:p,each:a,bind:p,exists:d,forall:g,filter:p,equals:e,equals_:e,toArray:function(){return[]},toString:f("none()")};return Object.freeze&&Object.freeze(r),r}(),y=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:g,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(d,function(t){return n(e,t)})}};return i},v=function(e){return null===e||void 0===e?m:y(e)},L={some:y,none:p,from:v},O=function(e,t){return e.$.contains(e.getBody(),t)},N=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},S=function(e){return function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&O(e,t)}},h=function(e){var t=e.dom.getParent(e.selection.getNode(),"ol,ul"),n=e.dom.getStyle(t,"listStyleType");return L.from(n)},T={isTableCellNode:N,isListNode:S,getSelectedStyleType:h},b=function(e,t){for(var n=0;n0&&u[0].nodeName===r},U=function(e,t,r,o,u,l){e.ui.registry.addSplitButton(t,{tooltip:r,icon:"OL"===u?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(e){var t=n.map(l,function(e){var t="OL"===u?"num":"bull",n="disc"===e||"decimal"===e?"default":e,r="default"===e?"":e,i=C(e);return{type:"choiceitem",value:r,icon:"list-"+t+"-"+n,text:i}});e(t)},onAction:function(){return e.execCommand(o)},onItemAction:function(t,n){i.applyListFormat(e,u,n)},select:function(t){var n=T.getSelectedStyleType(e);return n.map(function(e){return t===e}).getOr(!1)},onSetup:function(t){var n=function(n){t.setActive(A(e,n,u))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}})},w=function(e,t,n,r,i){e.ui.registry.addToggleButton(t,{active:!1,tooltip:n,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:function(t){var n=function(n){t.setActive(A(e,n,i))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}},onAction:function(){return e.execCommand(r)}})},_=function(e,t,n,r,i,o){o.length>0?U(e,t,n,r,i,o):w(e,t,n,r,i)},x=function(e){_(e,"numlist","Numbered list","InsertOrderedList","OL",c.getNumberStyles(e)),_(e,"bullist","Bullet list","InsertUnorderedList","UL",c.getBulletStyles(e))},B={register:x};e()}()});
+;/*!node_modules/tinymce/plugins/advlist/index.js*/
+amis.define("node_modules/tinymce/plugins/advlist/index",function(i){i("node_modules/tinymce/plugins/advlist/plugin")});
+;/*!node_modules/tinymce/plugins/autolink/plugin.js*/
+amis.define("node_modules/tinymce/plugins/autolink/plugin",function(){!function(){"use strict";function t(){e.add("autolink",function(t){k.setup(t)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),i=function(t){return t.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i)},o=function(t){return t.getParam("default_link_target",!1)},r=function(t){return t.getParam("link_default_protocol","http","string")},a={getAutoLinkPattern:i,getDefaultLinkTarget:o,getDefaultLinkProtocol:r},f=function(t,e){return t===e||" "===t||160===t.charCodeAt(0)},u=function(t){h(t,-1,"(")},d=function(t){h(t,0,"")},l=function(t){h(t,-1,"")},s=function(t,e){if(0>e&&(e=0),3===t.nodeType){var n=t.data.length;e>n&&(e=n)}return e},c=function(t,e,n){1!==e.nodeType||e.hasChildNodes()?t.setStart(e,s(e,n)):t.setStartBefore(e)},g=function(t,e,n){1!==e.nodeType||e.hasChildNodes()?t.setEnd(e,s(e,n)):t.setEndAfter(e)},h=function(t,e,n){var i,o,r,u,d,l,s,h,m,k,C=a.getAutoLinkPattern(t),p=a.getDefaultLinkTarget(t);if("A"!==t.selection.getNode().tagName){if(i=t.selection.getRng(!0).cloneRange(),i.startOffset<5){if(h=i.endContainer.previousSibling,!h){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;h=i.endContainer.firstChild.nextSibling}if(m=h.length,c(i,h,m),g(i,h,m),i.endOffset<5)return;o=i.endOffset,u=h}else{if(u=i.endContainer,3!==u.nodeType&&u.firstChild){for(;3!==u.nodeType&&u.firstChild;)u=u.firstChild;3===u.nodeType&&(c(i,u,0),g(i,u,u.nodeValue.length))}o=1===i.endOffset?2:i.endOffset-1-e}r=o;do c(i,u,o>=2?o-2:0),g(i,u,o>=1?o-1:0),o-=1,k=i.toString();while(" "!==k&&""!==k&&160!==k.charCodeAt(0)&&o-2>=0&&k!==n);f(i.toString(),n)?(c(i,u,o),g(i,u,r),o+=1):0===i.startOffset?(c(i,u,0),g(i,u,r)):(c(i,u,o),g(i,u,r)),l=i.toString(),"."===l.charAt(l.length-1)&&g(i,u,r-1),l=i.toString().trim(),s=l.match(C);var y=a.getDefaultLinkProtocol(t);s&&("www."===s[1]?s[1]=y+"://www.":/@$/.test(s[1])&&!/^mailto:/.test(s[1])&&(s[1]="mailto:"+s[1]),d=t.selection.getBookmark(),t.selection.setRng(i),t.execCommand("createlink",!1,s[1]+s[2]),p!==!1&&t.dom.setAttrib(t.selection.getNode(),"target",p),t.selection.moveToBookmark(d),t.nodeChanged())}},m=function(t){var e;return t.on("keydown",function(e){return 13===e.keyCode?l(t):void 0}),n.browser.isIE()?void t.on("focus",function(){if(!e){e=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}}):(t.on("keypress",function(e){return 41===e.keyCode?u(t):void 0}),void t.on("keyup",function(e){return 32===e.keyCode?d(t):void 0}))},k={setup:m};t()}()});
+;/*!node_modules/tinymce/plugins/autolink/index.js*/
+amis.define("node_modules/tinymce/plugins/autolink/index",function(n){n("node_modules/tinymce/plugins/autolink/plugin")});
+;/*!node_modules/tinymce/plugins/lists/plugin.js*/
+amis.define("node_modules/tinymce/plugins/lists/plugin",function(){!function(e){"use strict";function t(){n.add("lists",function(e){return ai.setup(e),li.register(e),ii.register(e),ni.get(e)})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},o=function(e){return function(){return e}},i=function(e){return function(){for(var t=[],n=0;no;o++){var i=e[o];r[o]=t(i,o)}return r},L=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},T=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},b=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,u=e.length;u>i;i++){var s=e[i],a=t(s);a!==n&&(r.push(o),o=[]),n=a,o.push(s)}return 0!==o.length&&r.push(o),r},k=function(e,t,n){return L(e,function(e){n=t(n,e)}),n},E=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return l.some(o)}return l.none()},D=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!p(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}return t},B=function(e,t){return D(S(e,t))},w=function(e){var t=O.call(e,0);return t.reverse(),t},x=function(e){return 0===e.length?l.none():l.some(e[0])},A=function(e){return 0===e.length?l.none():l.some(e[e.length-1])},R=(N(Array.from)?Array.from:function(e){return O.call(e)},function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)}),I=function(t,n){return R(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},P=function(t,n){return R(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},_={documentPositionPreceding:I,documentPositionContainedBy:P},M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},M.apply(this,arguments)},U=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return U(n())};return{get:n,set:r,clone:o}},F=function(e,t){for(var n=0;n1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return At(o.childNodes[0])},wt=function(t,n){var r=n||e.document,o=r.createElement(t);return At(o)},xt=function(t,n){var r=n||e.document,o=r.createTextNode(t);return At(o)},At=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},Rt=function(e,t,n){var r=e.dom();return l.from(r.elementFromPoint(t,n)).map(At)},It={fromHtml:Bt,fromTag:wt,fromText:xt,fromDom:At,fromPoint:Rt},Pt=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),_t=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,Pt),Mt=function(e,t){var n=e.dom();if(n.nodeType!==_t)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ut=function(e,t){return e.dom()===t.dom()},Ft=function(e,t){var n=e.dom(),r=t.dom();return n===r?!1:n.contains(r)},zt=function(e,t){return _.documentPositionContainedBy(e.dom(),t.dom())},jt=Dt().browser,Ht=jt.isIE()?zt:Ft,$t=Mt,Wt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),qt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Vt=tinymce.util.Tools.resolve("tinymce.util.VK"),Kt=function(e,t,n){return e.isSome()&&t.isSome()?l.some(n(e.getOrDie(),t.getOrDie())):l.none()},Qt=function(t,n){var r=n||e.document,o=r.createDocumentFragment();return L(t,function(e){o.appendChild(e.dom())}),It.fromDom(o)},Xt=function(){for(var e=[],t=0;tr;r++){var i=n[r],u=e[i];t(u,i)}},Jt=function(e){return l.from(e.dom().parentNode).map(It.fromDom)},Zt=function(e){return S(e.dom().childNodes,It.fromDom)},en=function(e,t){var n=e.dom().childNodes;return l.from(n[t]).map(It.fromDom)},tn=function(e){return en(e,0)},nn=function(e){return en(e,e.dom().childNodes.length-1)},rn=(Xt("element","offset"),function(e,t){var n=Jt(e);n.each(function(n){n.dom().insertBefore(t.dom(),e.dom())})}),on=function(e,t){e.dom().appendChild(t.dom())},un=function(e,t){L(t,function(t){rn(e,t)})},sn=function(e,t){L(t,function(t){on(e,t)})},an=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},cn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},fn="undefined"!=typeof e.window?e.window:Function("return this;")(),dn=function(e,t){for(var n=void 0!==t&&null!==t?t:fn,r=0;r0?!1:r},In=function(e,t){return e.isChildOf(t,e.getRoot())},Pn={isTextNode:Cn,isListNode:Sn,isOlUlNode:Ln,isDlItemNode:bn,isListItemNode:Tn,isTableCellNode:kn,isBr:En,isFirstChild:Dn,isLastChild:Bn,isTextBlock:wn,isBlock:xn,isBogusBr:An,isEmpty:Rn,isChildOfBody:In},_n=function(e){var t=e.selection.getStart(!0);return e.dom.getParent(t,"OL,UL,DL",$n(e,t))},Mn=function(e,t){return e&&1===t.length&&t[0]===e},Un=function(e){return On.grep(e.querySelectorAll("ol,ul,dl"),function(e){return Pn.isListNode(e)})},Fn=function(e){var t=_n(e),n=e.selection.getSelectedBlocks();return Mn(t,n)?Un(t):On.grep(n,function(e){return Pn.isListNode(e)&&t!==e})},zn=function(e,t){var n=On.map(t,function(t){var n=e.dom.getParent(t,"li,dd,dt",$n(e,t));return n?n:t});return yn.unique(n)},jn=function(e){var t=e.selection.getSelectedBlocks();return On.grep(zn(e,t),function(e){return Pn.isListItemNode(e)})},Hn=function(e){return T(jn(e),Pn.isDlItemNode)},$n=function(e,t){var n=e.dom.getParents(t,"TD,TH"),r=n.length>0?n[0]:e.getBody();return r},Wn=function(e,t){var n=e.dom.getParents(t,"ol,ul",$n(e,t));return A(n)},qn=function(e){var t=Wn(e,e.selection.getStart()),n=T(e.selection.getSelectedBlocks(),Pn.isOlUlNode);return t.toArray().concat(n)},Vn=function(e){var t=qn(e);return Kn(e,t)},Kn=function(e,t){var n=S(t,function(t){return Wn(e,t).getOr(t)});return yn.unique(n)},Qn=function(e){var t=_n(e);return Nn.isPrototypeOf(t)},Xn={isList:Qn,getParentList:_n,getSelectedSubLists:Fn,getSelectedListItems:jn,getClosestListRootElm:$n,getSelectedDlItems:Hn,getSelectedListRoots:Vn},Yn=function(e){return e.getParam("lists_indent_on_tab",!0)},Gn=function(e){var t=e.getParam("forced_root_block","p");return t===!1?"":t===!0?"p":t},Jn=function(e){return e.getParam("forced_root_block_attrs",{})},Zn={shouldIndentOnTab:Yn,getForcedRootBlock:Gn,getForcedRootBlockAttrs:Jn},er=function(e,t){var n,r,o,i=e.dom,u=e.schema.getBlockElements(),s=i.createFragment(),a=Zn.getForcedRootBlock(e);if(a&&(r=i.create(a),r.tagName===a.toUpperCase()&&i.setAttribs(r,Zn.getForcedRootBlockAttrs(e)),Pn.isBlock(t.firstChild,u)||s.appendChild(r)),t)for(;n=t.firstChild;){var c=n.nodeName;o||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Pn.isBlock(n,u)?(s.appendChild(n),r=null):a?(r||(r=i.create(a),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return a?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):s.appendChild(i.create("br")),s},tr=function(e){var t=e.dom().nodeName;return t.toLowerCase()},nr=function(e){return e.dom().nodeType},rr=function(e){return function(t){return nr(t)===e}},or=rr(Pt),ir=function(t,n,r){if(!(v(r)||h(r)||y(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},ur=function(e,t){var n=e.dom();Gt(t,function(e,t){ir(n,t,e)})},sr=function(e){return k(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},ar=function(e){return void 0!==e.style&&N(e.style.getPropertyValue)},cr=function(t,n,r){if(!v(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);ar(t)&&t.style.setProperty(n,r)},fr=function(e,t,n){var r=e.dom();cr(r,t,n)},dr=function(e,t){return It.fromDom(e.dom().cloneNode(t))},lr=function(e){return dr(e,!0)},mr=function(e,t){var n=It.fromTag(t),r=sr(e);return ur(n,r),n},gr=function(e,t){var n=mr(e,t);rn(e,n);var r=Zt(e);return sn(n,r),an(e),n},vr=function(e,t){on(e.item,t.list)},pr=function(e){for(var t=1;to;o++)r.push(Nr(e,t.listType));return r},Or=function(e,t){for(var n=0;nt.length?br(e,t,n):Tr(e,t,n)},[]);return x(n).map(function(e){return e.list})},Er=function(e){return $t(e,"OL,UL")},Dr=function(e){return tn(e).map(Er).getOr(!1)},Br=function(e){return nn(e).map(Er).getOr(!1)},wr=function(e){return e.depth>0},xr=function(e){return e.isSelected},Ar=function(e){var t=Zt(e),n=Br(e)?t.slice(0,-1):t;return S(n,lr)},Rr=function(e,t,n){return Jt(e).filter(or).map(function(r){return{depth:t,isSelected:n,content:Ar(e),itemAttributes:sr(e),listAttributes:sr(r),listType:tr(r)}})},Ir=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}},Pr=function(e,t){e.listType=t.listType,e.listAttributes=M({},t.listAttributes)},_r=function(e,t){for(var n=e[t].depth,r=t-1;r>=0;r--){if(e[r].depth===n)return l.some(e[r]);if(e[r].depth=e.childNodes.length?n.data.length:0}:n.previousSibling&&Pn.isTextNode(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Pn.isTextNode(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},to=function(e){var t=e.cloneRange(),n=eo(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=eo(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},no={getNormalizedPoint:eo,normalizeRange:to},ro=function(e,t){var n=S(Xn.getSelectedListRoots(e),It.fromDom),r=S(Xn.getSelectedDlItems(e),It.fromDom),o=!1;if(n.length||r.length){var i=e.selection.getBookmark();Vr(e,n,t),Zr(e,t,r),e.selection.moveToBookmark(i),e.selection.setRng(no.normalizeRange(e.selection.getRng())),e.nodeChanged(),o=!0}return o},oo=function(e){return ro(e,"Indent")},io=function(e){return ro(e,"Outdent")},uo=function(e){return ro(e,"Flatten")},so=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),ao=Kr.DOM,co=function(e){var t={},n=function(n){var r,o,i;o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"],1===o.nodeType&&(r=ao.create("span",{"data-mce-type":"bookmark"}),o.hasChildNodes()?(i=Math.min(i,o.childNodes.length-1),n?o.insertBefore(r,o.childNodes[i]):ao.insertAfter(r,o.childNodes[i])):o.appendChild(r),o=r,i=0),t[n?"startContainer":"endContainer"]=o,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},fo=function(e){function t(t){var n,r,o,i=function(e){for(var t=e.parentNode.firstChild,n=0;t;){if(t===e)return n;(1!==t.nodeType||"bookmark"!==t.getAttribute("data-mce-type"))&&n++,t=t.nextSibling}return-1};n=o=e[t?"startContainer":"endContainer"],r=e[t?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=i(n),n=n.parentNode,ao.remove(o),!n.hasChildNodes()&&ao.isBlock(n)&&n.appendChild(ao.create("br"))),e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=r)}t(!0),t();var n=ao.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),no.normalizeRange(n)},lo={createBookmark:co,resolveBookmark:fo},mo=function(e){return/\btox\-/.test(e.className)},go=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},vo=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},po=function(e,t){On.each(t,function(t,n){e.setAttribute(n,t)})},ho=function(e,t,n){po(t,n["list-attributes"]),On.each(e.select("li",t),function(e){po(e,n["list-item-attributes"])})},No=function(e,t,n){vo(e,t,n),ho(e,t,n)},yo=function(e,t,n){On.each(n,function(n){var r;return e.setStyle(t,(r={},r[n]="",r))})},Oo=function(e,t,n,r){var o,i;for(o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Pn.isBr(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(Pn.isTextBlock(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},Co=function(e,t,n){for(var r,o=[],i=e.dom,u=Oo(e,t,!0,n),s=Oo(e,t,!1,n),a=[],c=u;c&&(a.push(c),c!==s);c=c.nextSibling);return On.each(a,function(t){if(Pn.isTextBlock(e,t))return o.push(t),void(r=null);if(i.isBlock(t)||Pn.isBr(t))return Pn.isBr(t)&&i.remove(t),void(r=null);var u=t.nextSibling;return so.isBookmarkNode(t)&&(Pn.isTextBlock(e,u)||!u&&t.parentNode===n)?void(r=null):(r||(r=i.create("p"),t.parentNode.insertBefore(r,t),o.push(r)),void r.appendChild(t))}),o},So=function(e,t,n){var r=e.getStyle(t,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},Lo=function(e,t,n){void 0===n&&(n={});var r,o=e.selection.getRng(!0),i="LI",u=Xn.getClosestListRootElm(e,e.selection.getStart(!0)),s=e.dom;"false"!==s.getContentEditable(e.selection.getNode())&&(t=t.toUpperCase(),"DL"===t&&(i="DT"),r=lo.createBookmark(o),On.each(Co(e,o,u),function(r){var o,u;u=r.previousSibling,u&&Pn.isListNode(u)&&u.nodeName===t&&So(s,u,n)?(o=u,r=s.rename(r,i),u.appendChild(r)):(o=s.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=s.rename(r,i)),yo(s,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),No(s,o,n),Do(e.dom,o)}),e.selection.setRng(lo.resolveBookmark(r)))},To=function(e,t){return e&&t&&Pn.isListNode(e)&&e.nodeName===t.nodeName},bo=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),o=e.getStyle(n,"list-style-type",!0);return r===o},ko=function(e,t){return e.className===t.className},Eo=function(e,t,n){return To(t,n)&&bo(e,t,n)&&ko(t,n)},Do=function(e,t){var n,r;if(n=t.nextSibling,Eo(e,t,n)){for(;r=n.firstChild;)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Eo(e,t,n)){for(;r=n.lastChild;)t.insertBefore(r,t.firstChild);e.remove(n)}},Bo=function(e,t,n,r){if(t.nodeName!==n){var o=e.dom.rename(t,n);No(e.dom,o,r),cn(e,go(n),o)}else No(e.dom,t,r),cn(e,go(n),t)},wo=function(e,t,n,r,o){if(t.nodeName!==r||xo(o)){var i=lo.createBookmark(e.selection.getRng(!0));On.each([t].concat(n),function(t){Bo(e,t,r,o)}),e.selection.setRng(lo.resolveBookmark(i))}else uo(e)},xo=function(e){return"list-style-type"in e},Ao=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||xo(r)||mo(t)){var o=lo.createBookmark(e.selection.getRng(!0));No(e.dom,t,r);var i=e.dom.rename(t,n);Do(e.dom,i),e.selection.setRng(lo.resolveBookmark(o)),cn(e,go(n),i)}else uo(e);else Lo(e,n,r),cn(e,go(n),t)},Ro=function(e,t,n){var r=Xn.getParentList(e),o=Xn.getSelectedSubLists(e);n=n?n:{},r&&o.length>0?wo(e,r,o,t,n):Ao(e,r,t,n)},Io={toggleList:Ro,mergeWithAdjacentLists:Do},Po=Kr.DOM,_o=function(e,t){var n,r=t.parentNode;"LI"===r.nodeName&&r.firstChild===t&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(t),Pn.isEmpty(e,r)&&Po.remove(r)):Po.setStyle(r,"listStyleType","none")),Pn.isListNode(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(t))},Mo=function(e,t){On.each(On.grep(e.select("ol,ul",t)),function(t){_o(e,t)})},Uo={normalizeList:_o,normalizeLists:Mo},Fo=function(e,t,n,r){var o=t.startContainer,i=t.startOffset;if(Pn.isTextNode(o)&&(n?i0))return o;var u=e.schema.getNonEmptyElements();1===o.nodeType&&(o=Wt.getNode(o,i));var s=new qt(o,r);for(n&&Pn.isBogusBr(e.dom,o)&&s.next();o=s[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(u[o.nodeName])return o;if(Pn.isTextNode(o)&&o.data.length>0)return o}},zo=function(e,t){var n=t.childNodes;return 1===n.length&&!Pn.isListNode(n[0])&&e.isBlock(n[0])},jo=function(e,t){zo(e,t)&&e.remove(t.firstChild,!0)},Ho=function(e,t,n){var r,o;if(o=zo(e,n)?n.firstChild:n,jo(e,t),!Pn.isEmpty(e,t,!0))for(;r=t.firstChild;)o.appendChild(r)},$o=function(e,t,n){var r,o,i=t.parentNode;if(Pn.isChildOfBody(e,t)&&Pn.isChildOfBody(e,n)){Pn.isListNode(n.lastChild)&&(o=n.lastChild),i===n.lastChild&&Pn.isBr(i.previousSibling)&&e.remove(i.previousSibling),r=n.lastChild,r&&Pn.isBr(r)&&t.hasChildNodes()&&e.remove(r),Pn.isEmpty(e,n,!0)&&e.$(n).empty(),Ho(e,t,n),o&&n.appendChild(o);var u=Ht(It.fromDom(n),It.fromDom(t)),s=u?e.getParents(t,Pn.isListNode,n):[];e.remove(t),L(s,function(t){Pn.isEmpty(e,t)&&t!==e.getRoot()&&e.remove(t)})}},Wo=function(e,t,n){e.dom.$(n).empty(),$o(e.dom,t,n),e.selection.setCursorLocation(n)},qo=function(e,t,n,r){var o=e.dom;if(o.isEmpty(r))Wo(e,n,r);else{var i=lo.createBookmark(t);$o(o,n,r),e.selection.setRng(lo.resolveBookmark(i))}},Vo=function(e,t,n,r){var o=lo.createBookmark(t);$o(e.dom,n,r);var i=lo.resolveBookmark(o);e.selection.setRng(i)},Ko=function(e,t){var n=e.dom,r=e.selection,o=r.getStart(),i=Xn.getClosestListRootElm(e,o),u=n.getParent(r.getStart(),"LI",i);if(u){var s=u.parentNode;if(s===e.getBody()&&Pn.isEmpty(n,s))return!0;var a=no.normalizeRange(r.getRng()),c=n.getParent(Fo(e,a,t,i),"LI",i);if(c&&c!==u)return e.undoManager.transact(function(){t?qo(e,a,c,u):Pn.isFirstChild(u)?io(e):Vo(e,a,u,c)}),!0;if(!c&&!t&&0===a.startOffset&&0===a.endOffset)return e.undoManager.transact(function(){uo(e)}),!0}return!1},Qo=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Xo=function(e,t){var n=e.dom,r=e.selection.getStart(),o=Xn.getClosestListRootElm(e,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var u=no.normalizeRange(e.selection.getRng()),s=n.getParent(Fo(e,u,t,o),"LI",o);if(s)return e.undoManager.transact(function(){Qo(n,i,o),Io.mergeWithAdjacentLists(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)}),!0}return!1},Yo=function(e,t){return Ko(e,t)||Xo(e,t)},Go=function(e){var t=e.selection.getStart(),n=Xn.getClosestListRootElm(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return r||Xn.getSelectedListItems(e).length>0?(e.undoManager.transact(function(){e.execCommand("Delete"),Uo.normalizeLists(e.dom,e.getBody())}),!0):!1},Jo=function(e,t){return e.selection.isCollapsed()?Yo(e,t):Go(e)},Zo=function(e){e.on("keydown",function(t){t.keyCode===Vt.BACKSPACE?Jo(e,!1)&&t.preventDefault():t.keyCode===Vt.DELETE&&Jo(e,!0)&&t.preventDefault()})},ei={setup:Zo,backspaceDelete:Jo},ti=function(e){return{backspaceDelete:function(t){ei.backspaceDelete(e,t)}}},ni={get:ti},ri=function(e,t){return function(){var n=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===t}},oi=function(e){e.on("BeforeExecCommand",function(t){var n=t.command.toLowerCase();"indent"===n?oo(e):"outdent"===n&&io(e)}),e.addCommand("InsertUnorderedList",function(t,n){Io.toggleList(e,"UL",n)}),e.addCommand("InsertOrderedList",function(t,n){Io.toggleList(e,"OL",n)}),e.addCommand("InsertDefinitionList",function(t,n){Io.toggleList(e,"DL",n)}),e.addCommand("RemoveList",function(){uo(e)}),e.addQueryStateHandler("InsertUnorderedList",ri(e,"UL")),e.addQueryStateHandler("InsertOrderedList",ri(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",ri(e,"DL"))},ii={register:oi},ui=function(e){e.on("keydown",function(t){t.keyCode!==Vt.TAB||Vt.metaKeyPressed(t)||e.undoManager.transact(function(){(t.shiftKey?io(e):oo(e))&&t.preventDefault()})})},si=function(e){Zn.shouldIndentOnTab(e)&&ui(e),ei.setup(e)},ai={setup:si},ci=function(e,t){for(var n=0;n0&&i[0].nodeName===t&&!mo(i[0]))};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},di=function(e){var t=function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return-1!==On.inArray(n.split(/[ ,]/),t)},n=function(t){return function(){return e.execCommand(t)}};t(e,"advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:n("InsertOrderedList"),onSetup:fi(e,"OL")}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:n("InsertUnorderedList"),onSetup:fi(e,"UL")}))},li={register:di};t()}(window)});
+;/*!node_modules/tinymce/plugins/lists/index.js*/
+amis.define("node_modules/tinymce/plugins/lists/index",function(i){i("node_modules/tinymce/plugins/lists/plugin")});
+;/*!node_modules/tinymce/plugins/link/plugin.js*/
+amis.define("node_modules/tinymce/plugins/link/plugin",function(){!function(t){"use strict";function n(){e.add("link",function(t){Re.setupButtons(t),Re.setupMenuItems(t),Re.setupContextMenu(t),Re.setupContextToolbars(t),be.setupGotoLinks(t),Le.register(t),Oe.setup(t)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.util.VK"),o=function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n},i=function(t){return function(n){return o(n)===t}},u=i("string"),a=i("array"),c=i("boolean"),l=i("function"),f=function(t){var n=t.getParam("link_assume_external_targets",!1);return c(n)&&n?1:!u(n)||"http"!==n&&"https"!==n?0:n},s=function(t){return t.getParam("link_context_toolbar",!1,"boolean")},m=function(t){return t.getParam("link_list")},g=function(t){return t.getParam("default_link_target")},d=function(t){return t.getParam("target_list",!0)},p=function(t){return t.getParam("rel_list",[],"array")},h=function(t){return t.getParam("link_class_list",[],"array")},v=function(t){return t.getParam("link_title",!0,"boolean")},y=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},k=function(t){return t.getParam("link_quicklink",!1,"boolean")},x=function(t){return t.getParam("link_default_protocol","http","string")},T={assumeExternalTargets:f,hasContextToolbar:s,getLinkList:m,getDefaultLinkTarget:g,getTargetList:d,getRelList:p,getLinkClassList:h,shouldShowLinkTitle:v,allowUnsafeLinkTarget:y,useQuickLink:k,getDefaultLinkProtocol:x},w=function(n,e){t.document.body.appendChild(n),n.dispatchEvent(e),t.document.body.removeChild(n)},b=function(n){var e=t.document.createElement("a");e.target="_blank",e.href=n,e.rel="noreferrer noopener";var r=t.document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,t.window,0,0,0,0,0,!1,!1,!1,!1,0,null),w(e,r)},_={open:b},L=function(){return L=Object.assign||function(t){for(var n,e=1,r=arguments.length;r>e;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)},A=function(){},O=function(t){return function(){return t}},C=O(!1),E=O(!0),S=function(){return P},P=function(){var t=function(t){return t.isNone()},n=function(t){return t()},e=function(t){return t},r={fold:function(t){return t()},is:C,isSome:C,isNone:E,getOr:e,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:O(null),getOrUndefined:O(void 0),or:e,orThunk:n,map:S,each:A,bind:S,exists:C,forall:E,filter:S,equals:t,equals_:t,toArray:function(){return[]},toString:O("none()")};return Object.freeze&&Object.freeze(r),r}(),R=function(t){var n=O(t),e=function(){return o},r=function(n){return n(t)},o={fold:function(n,e){return e(t)},is:function(n){return t===n},isSome:E,isNone:C,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){return R(n(t))},each:function(n){n(t)},bind:r,exists:r,forall:r,filter:function(n){return n(t)?o:P},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(n){return n.is(t)},equals_:function(n,e){return n.fold(C,function(n){return e(t,n)})}};return o},D=function(t){return null===t||void 0===t?P:R(t)},N={some:R,none:S,from:D},I=Array.prototype.slice,j=Array.prototype.indexOf,F=Array.prototype.push,U=function(t,n){return j.call(t,n)},M=function(t,n){return U(t,n)>-1},z=function(t,n){for(var e=t.length,r=new Array(e),o=0;e>o;o++){var i=t[o];r[o]=n(i,o)}return r},q=function(t,n){for(var e=0,r=t.length;r>e;e++){var o=t[e];n(o,e)}},B=function(t,n,e){return q(t,function(t){e=n(e,t)}),e},K=function(t){for(var n=[],e=0,r=t.length;r>e;++e){if(!a(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);F.apply(n,t[e])}return n},H=function(t,n){return K(z(t,n))},V=(l(Array.from)?Array.from:function(t){return I.call(t)},function(t,n){for(var e=0;e0?t.concat(e):e},u=function(t){return t.filter(function(t){return-1===W.inArray(e,t)})},a=n?i(r):u(r);return a.length>0?o(a):""},J=function(t){return t.replace(/\uFEFF/g,"")},X=function(t,n){return n=n||t.selection.getNode(),en(n)?t.dom.select("a[href]",n)[0]:t.dom.getParent(n,"a[href]")},Y=function(t,n){var e=n?n.innerText||n.textContent:t.getContent({format:"text"});return J(e)},Z=function(t){return t&&"A"===t.nodeName&&!!Q(t)},tn=function(t){return W.grep(t,Z).length>0},nn=function(t){return!/]+>[^<]+<\/a>$/.test(t)&&-1!==t.indexOf("href=")?!0:!1},en=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},rn=function(t){return B(["title","rel","class","target"],function(n,e){return t[e].each(function(t){n[e]=t.length>0?t:null}),n},{href:t.href})},on=function(t,n){return"http"!==n&&"https"!==n||G(t)?t:n+"://"+t},un=function(t,n){var e=L({},n);if(!(T.getRelList(t).length>0)&&T.allowUnsafeLinkTarget(t)===!1){var r=$(e.rel,"_blank"===e.target);e.rel=r?r:null}return N.from(e.target).isNone()&&T.getTargetList(t)===!1&&(e.target=T.getDefaultLinkTarget(t)),e.href=on(e.href,T.assumeExternalTargets(t)),e},an=function(t,n,e,r){e.each(function(t){n.hasOwnProperty("innerText")?n.innerText=t:n.textContent=t}),t.dom.setAttribs(n,r),t.selection.select(n)},cn=function(t,n,e,r){en(n)?mn(t,n,r):e.fold(function(){t.execCommand("mceInsertLink",!1,r)},function(n){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(n)))})},ln=function(t,n,e){var r=t.selection.getNode(),o=X(t,r),i=un(t,rn(e));t.undoManager.transact(function(){e.href===n.href&&n.attach(),o?(t.focus(),an(t,o,e.text,i)):cn(t,r,e.text,i)})},fn=function(t){t.undoManager.transact(function(){var n=t.selection.getNode();if(en(n))sn(t,n);else{var e=t.dom.getParent(n,"a[href]",t.getBody());e&&t.dom.remove(e,!0)}t.focus()})},sn=function(t,n){var e=t.dom.select("img",n)[0];if(e){var r=t.dom.getParents(e,"a[href]",n)[0];r&&(r.parentNode.insertBefore(e,r),t.dom.remove(r))}},mn=function(t,n,e){var r=t.dom.select("img",n)[0];if(r){var o=t.dom.create("a",e);r.parentNode.insertBefore(o,r),o.appendChild(r)}},gn={link:ln,unlink:fn,isLink:Z,hasLinks:tn,getHref:Q,isOnlyTextSelected:nn,getAnchorElement:X,getAnchorText:Y,applyRelTargetRules:$,hasProtocol:G},dn=function(t){for(var n=[],e=function(t){n.push(t)},r=0;r0;return void 0!==o?wn(o,e).map(function(n){return{url:{value:n.value,meta:{text:i?t:n.text,attach:A}},text:i?t:n.text}}):N.none()},_n=function(t,n){return"link"===n?t.catalogs.link:"anchor"===n?t.catalogs.anchor:N.none()},Ln=function(t,n){var e=Tn(t.text),r=function(t){if(e.get().length<=0){var n=void 0!==t.url.meta.text?t.url.meta.text:t.url.value,r=void 0!==t.url.meta.title?t.url.meta.title:"";return N.some({text:n,title:r})}return N.none()},o=function(t,r){var o=_n(n,r.name).getOr([]);return bn(e.get(),r.name,o,t)},i=function(t,n){return"url"===n.name?r(t()):M(["anchor","link"],n.name)?o(t(),n):"text"===n.name?(e.set(t().text),N.none()):N.none()};return{onChange:i}},An={init:Ln,getDelta:bn},On={},Cn={exports:On};!function(t,n,e,r){!function(r){if("object"==typeof n&&"undefined"!=typeof e)e.exports=r();else if("function"==typeof t&&t.amd)t([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function t(n,e,o){function i(a,c){if(!e[a]){if(!n[a]){var l="function"==typeof r&&r;if(!c&&l)return l(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=e[a]={exports:{}};n[a][0].call(s.exports,function(t){var e=n[a][1][t];return i(e||t)},s,s.exports,t,n,e,o)}return e[a].exports}for(var u="function"==typeof r&&r,a=0;a1)for(var e=1;en;n++)u(t,t._deferreds[n]);t._deferreds=null}function f(t,n,e){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=e}function s(t,n){var e=!1;try{t(function(t){e||(e=!0,a(n,t))},function(t){e||(e=!0,c(n,t))})}catch(r){if(e)return;e=!0,c(n,r)}}var m=setTimeout;i.prototype["catch"]=function(t){return this.then(null,t)},i.prototype.then=function(t,n){var e=new this.constructor(r);return u(this,new f(t,n,e)),e},i.all=function(t){var n=Array.prototype.slice.call(t);return new i(function(t,e){function r(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(t){r(i,t)},e)}n[i]=u,0===--o&&t(n)}catch(c){e(c)}}if(0===n.length)return t([]);for(var o=n.length,i=0;ir;r++)t[r].then(n,e)})},i._immediateFn="function"==typeof t?function(n){t(n)}:function(t){m(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},"undefined"!=typeof n&&n.exports?n.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,n,e){(function(n,r){function o(t,n){this._id=t,this._clearFn=n}var i=t("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,c={},l=0;e.setTimeout=function(){return new o(u.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(u.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,n){clearTimeout(t._idleTimeoutId),t._idleTimeout=n},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var n=t._idleTimeout;n>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},n))},e.setImmediate="function"==typeof n?n:function(t){var n=l++,r=arguments.length<2?!1:a.call(arguments,1);return c[n]=!0,i(function(){c[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete c[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,n){var e=t("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();n.exports={boltExport:r.Promise||e}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,On,Cn,void 0);var En=Cn.exports.boltExport,Sn=function(n){var e=N.none(),r=[],o=function(t){return Sn(function(n){i(function(e){n(t(e))})})},i=function(t){a()?l(t):r.push(t)},u=function(t){e=N.some(t),c(r),r=[]},a=function(){return e.isSome()},c=function(t){q(t,l)},l=function(n){e.each(function(e){t.setTimeout(function(){n(e)},0)})};return n(u),{get:i,map:o,isReady:a}},Pn=function(t){return Sn(function(n){n(t)})},Rn={nu:Sn,pure:Pn},Dn=function(n){t.setTimeout(function(){throw n},0)},Nn=function(t){var n=function(n){t().then(n,Dn)},e=function(n){return Nn(function(){return t().then(n)})},r=function(n){return Nn(function(){return t().then(function(t){return n(t).toPromise()})})},o=function(n){return Nn(function(){return t().then(function(){return n.toPromise()})})},i=function(){return Rn.nu(n)},u=function(){var n=null;return Nn(function(){return null===n&&(n=t()),n})},a=t;return{map:e,bind:r,anonBind:o,toLazy:i,toCached:u,toPromise:a,get:n}},In=function(t){return Nn(function(){return new En(t)})},jn=function(t){return Nn(function(){return En.resolve(t)})},Fn={nu:In,pure:jn},Un=tinymce.util.Tools.resolve("tinymce.util.Delay"),Mn=function(t,n,e){var r=t.selection.getRng();Un.setEditorTimeout(t,function(){t.windowManager.confirm(n,function(n){t.selection.setRng(r),e(n)})})},zn=function(t){var n=t.href,e=n.indexOf("@")>0&&-1===n.indexOf("//")&&-1===n.indexOf("mailto:");return e?N.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return L(L({},t),{href:"mailto:"+n})}}):N.none()},qn=function(t,n){return function(e){var r=e.href,o=1===t&&!gn.hasProtocol(r)||0===t&&/^\s*www[\.|\d\.]/i.test(r);return o?N.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+n+":// prefix?",preprocess:function(t){return L(L({},t),{href:n+"://"+r})}}):N.none()}},Bn=function(t,n){return V([zn,qn(T.assumeExternalTargets(t),T.getDefaultLinkProtocol(t))],function(t){return t(n)}).fold(function(){return Fn.pure(n)},function(e){return Fn.nu(function(r){Mn(t,e.message,function(t){r(t?e.preprocess(n):n)})})})},Kn={preprocess:Bn},Hn=function(t){var n=t.dom.select("a:not([href])"),e=H(n,function(t){var n=t.name||t.id;return n?[{text:n,value:"#"+n}]:[]});return e.length>0?N.some([{text:"None",value:""}].concat(e)):N.none()},Vn={getAnchors:Hn},Wn=function(t){var n=T.getLinkClassList(t);return n.length>0?xn.sanitize(n):N.none()},Gn={getClasses:Wn},Qn=tinymce.util.Tools.resolve("tinymce.util.XHR"),$n=function(t){try{return N.some(JSON.parse(t))}catch(n){return N.none()}},Jn=function(t){var n=function(n){return t.convertURL(n.value||n.url,"href")},e=T.getLinkList(t);return Fn.nu(function(t){u(e)?Qn.send({url:e,success:function(n){return t($n(n))},error:function(){return t(N.none())}}):l(e)?e(function(n){return t(N.some(n))}):t(N.from(e))}).map(function(t){return t.bind(xn.sanitizeWith(n)).map(function(t){return t.length>0?[{text:"None",value:""}].concat(t):t})})},Xn={getLinks:Jn},Yn=function(t,n){var e=T.getRelList(t);if(e.length>0){var r=n.is("_blank"),o=T.allowUnsafeLinkTarget(t)===!1,i=function(t){return gn.applyRelTargetRules(xn.getValue(t),r)},u=o?xn.sanitizeWith(i):xn.sanitize;return u(e)}return N.none()},Zn={getRels:Yn},te=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ne=function(t){var n=T.getTargetList(t);return a(n)?xn.sanitize(n).orThunk(function(){return N.some(te)}):n===!1?N.none():N.some(te)},ee={getTargets:ne},re=function(t,n,e){var r=t.getAttrib(n,e);return null!==r&&r.length>0?N.some(r):N.none()},oe=function(t,n){var e=t.dom,r=gn.isOnlyTextSelected(t.selection.getContent()),o=r?N.some(gn.getAnchorText(t.selection,n)):N.none(),i=n?N.some(e.getAttrib(n,"href")):N.none(),u=n?N.from(e.getAttrib(n,"target")):N.none(),a=re(e,n,"rel"),c=re(e,n,"class"),l=re(e,n,"title");return{url:i,text:o,title:l,target:u,rel:a,linkClass:c}},ie=function(t,n){return Xn.getLinks(t).map(function(e){var r=oe(t,n);return{anchor:r,catalogs:{targets:ee.getTargets(t),rels:Zn.getRels(t,r.target),classes:Gn.getClasses(t),anchor:Vn.getAnchors(t),link:e},optNode:N.from(n),flags:{titleEnabled:T.shouldShowLinkTitle(t)}}})},ue={collect:ie},ae=function(t,n){return function(e){var r=e.getData();if(!r.url.value)return gn.unlink(t),void e.close();var o=function(t){return N.from(r[t]).filter(function(e){return!n.anchor[t].is(e)})},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),"class":o("linkClass"),title:o("title")},u={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:function(){}};Kn.preprocess(t,i).get(function(n){gn.link(t,u,n)}),e.close()}},ce=function(t){var n=gn.getAnchorElement(t);return ue.collect(t,n)},le=function(t,n){return{url:{value:t.anchor.url.getOr(""),meta:{attach:function(){},text:t.anchor.url.fold(function(){return""},function(){return t.anchor.text.getOr("")}),original:{value:t.anchor.url.getOr("")}}},text:t.anchor.text.getOr(""),title:t.anchor.title.getOr(""),anchor:t.anchor.url.getOr(""),link:t.anchor.url.getOr(""),rel:t.anchor.rel.getOr(""),target:t.anchor.target.or(n).getOr(""),linkClass:t.anchor.linkClass.getOr("")}},fe=function(t,n,e){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=t.anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],u=N.from(T.getDefaultLinkTarget(e)),a=le(t,u),c=An.init(a,t),l=t.catalogs,f={type:"panel",items:K([r,o,i,dn([l.anchor.map(xn.createUi("anchor","Anchors")),l.rels.map(xn.createUi("rel","Rel")),l.targets.map(xn.createUi("target","Open link in...")),l.link.map(xn.createUi("link","Link list")),l.classes.map(xn.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:f,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onChange:function(t,n){var e=n.name;c.onChange(t.getData,{name:e}).each(function(n){t.setData(n)})},onSubmit:n}},se=function(t){var n=ce(t);n.map(function(n){var e=ae(t,n);return fe(n,e,t)}).get(function(n){t.windowManager.open(n)})},me={open:se},ge=function(t,n){return t.dom.getParent(n,"a[href]")},de=function(t){return ge(t,t.selection.getStart())},pe=function(t){return t.altKey===!0&&t.shiftKey===!1&&t.ctrlKey===!1&&t.metaKey===!1},he=function(t,n){if(n){var e=gn.getHref(n);if(/^#/.test(e)){var r=t.$(e);r.length&&t.selection.scrollIntoView(r[0],!0)}else _.open(n.href)}},ve=function(t){return function(){me.open(t)}},ye=function(t){return function(){he(t,de(t))}},ke=function(t){return function(n){var e,r,o;return T.hasContextToolbar(t)&&gn.isLink(n)&&(e=t.selection,r=e.getRng(),o=r.startContainer,3===o.nodeType&&e.isCollapsed()&&r.startOffset>0&&r.startOffset0}).or(N.from(o)):N.none();gn.link(t,i,{href:o,text:a,title:N.none(),rel:N.none(),target:N.none(),"class":N.none()}),e.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:e,onAction:function(n){gn.unlink(t),n.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:e,onAction:function(n){be.gotoSelectedLink(t)(),n.hide()}}]})},Re={setupButtons:Ce,setupMenuItems:Ee,setupContextMenu:Se,setupContextToolbars:Pe};n()}(window)});
+;/*!node_modules/tinymce/plugins/link/index.js*/
+amis.define("node_modules/tinymce/plugins/link/index",function(n){n("node_modules/tinymce/plugins/link/plugin")});
+;/*!node_modules/tinymce/plugins/image/plugin.js*/
+amis.define("node_modules/tinymce/plugins/image/plugin",function(){!function(e){"use strict";function t(t){var n=function(n,r,i,o){var a,u;a=new e.XMLHttpRequest,a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){var e;return a.status<200||a.status>=300?void i("HTTP Error: "+a.status):(e=JSON.parse(a.responseText),e&&"string"==typeof e.location?void r(Fn(t.basePath,e.location)):void i("Invalid JSON: "+a.responseText))},u=new e.FormData,u.append("file",n.blob(),n.filename()),a.send(u)},r=function(e,t){return new dt(function(n,r){try{t(e,n,r,i)}catch(o){r(o.message)}})},o=function(e){return e===n},a=function(e){return!t.url&&o(t.handler)?dt.reject("Upload url missing from the settings."):r(e,t.handler)};return t=Sn.extend({credentials:!1,handler:n},t),{upload:a}}function n(){r.add("image",function(e){Pr.setup(e),Lr.register(e),Or.register(e)})}var r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(){},o=function(e){return function(){return e}},a=function(e){return e},u=function(e){return function(){throw new Error(e)}},c=o(!1),s=o(!0),l=function(){return f},f=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:c,isSome:c,isNone:s,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:n,orThunk:t,map:l,each:i,bind:l,exists:c,forall:s,filter:l,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(r),r}(),d=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return d(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,function(t){return n(e,t)})}};return i},m=function(e){return null===e||void 0===e?f:d(e)},p={some:d,none:l,from:m},g=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},h=function(e){return function(t){return g(t)===e}},v=h("string"),b=h("object"),y=h("array"),T=h("boolean"),w=h("function"),_=h("number"),D=Array.prototype.slice,x=Array.prototype.push,E=function(e,t){for(var n=0,r=e.length;r>n;n++){var i=e[n];t(i,n)}},A=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},N=function(e){return 0===e.length?p.none():p.some(e[0])},O=(w(Array.from)?Array.from:function(e){return D.call(e)},function(e,t){for(var n=0;nn;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},I.apply(this,arguments)},S={},U={exports:S};!function(e,t,n,r){!function(r){if("object"==typeof t&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof e&&e.amd)e([],r);else{var i;i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,i.EphoxContactWrapper=r()}}(function(){return function(){function e(t,n,i){function o(u,c){if(!n[u]){if(!t[u]){var s="function"==typeof r&&r;if(!c&&s)return s(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n||e)},f,f.exports,e,t,n,i)}return n[u].exports}for(var a="function"==typeof r&&r,u=0;u1)for(var n=1;nt;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(r){if(n)return;n=!0,c(t,r)}}var d=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(o,e)},n)}t[o]=a,0===--i&&e(t)}catch(c){n(c)}}if(0===t.length)return e([]);for(var i=t.length,o=0;or;r++)e[r].then(t,n)})},o._immediateFn="function"==typeof e?function(t){e(t)}:function(e){d(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},"undefined"!=typeof t&&t.exports?t.exports=o:n.Promise||(n.Promise=o)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){function i(e,t){this._id=e,this._clearFn=t}var o=e("process/browser.js").nextTick,a=Function.prototype.apply,u=Array.prototype.slice,c={},s=0;n.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=arguments.length<2?!1:u.call(arguments,1);return c[t]=!0,o(function(){c[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t){var n=e("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,S,U,void 0);var P=U.exports.boltExport,C=function(t){var n=p.none(),r=[],i=function(e){return C(function(t){o(function(n){t(e(n))})})},o=function(e){u()?s(e):r.push(e)},a=function(e){n=p.some(e),c(r),r=[]},u=function(){return n.isSome()},c=function(e){E(e,s)},s=function(t){n.each(function(n){e.setTimeout(function(){t(n)},0)})};return t(a),{get:o,map:i,isReady:u}},L=function(e){return C(function(t){t(e)})},R={nu:C,pure:L},M=function(t){e.setTimeout(function(){throw t},0)},j=function(e){var t=function(t){e().then(t,M)},n=function(t){return j(function(){return e().then(t)})},r=function(t){return j(function(){return e().then(function(e){return t(e).toPromise()})})},i=function(t){return j(function(){return e().then(function(){return t.toPromise()})})},o=function(){return R.nu(t)},a=function(){var t=null;return j(function(){return null===t&&(t=e()),t})},u=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:u,get:t}},k=function(e){return j(function(){return new P(e)})},F=function(e){return j(function(){return P.resolve(e)})},z={nu:k,pure:F},H=function(e){var t=function(t){return e===t},n=function(){return H(e)},r=function(){return H(e)},i=function(t){return H(t(e))},a=function(){return H(e)},u=function(t){t(e)},l=function(t){return t(e)},f=function(t,n){return n(e)},d=function(t){return t(e)},m=function(t){return t(e)},g=function(){return p.some(e)};return{is:t,isValue:s,isError:c,getOr:o(e),getOrThunk:o(e),getOrDie:o(e),or:n,orThunk:r,fold:f,map:i,mapError:a,each:u,bind:l,exists:d,forall:m,toOption:g}},B=function(e){var t=function(e){return e()},n=function(){return u(String(e))()},r=function(e){return e},o=function(e){return e()},l=function(){return B(e)},f=function(t){return B(t(e))},d=function(){return B(e)},m=function(t){return t(e)};return{is:c,isValue:c,isError:s,getOr:a,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:m,map:l,mapError:f,each:i,bind:d,exists:c,forall:s,toOption:p.none}},G=function(e,t){return e.fold(function(){return B(t)},H)},W={value:H,error:B,fromOption:G},q=function(t){var n=function(){return q(t.toCached())},r=function(e){return q(t.bind(function(t){return t.fold(function(e){return z.pure(W.error(e))},function(t){return e(t)})}))},i=function(e){return q(t.map(function(t){return t.bind(e)}))},o=function(e){return q(t.map(function(t){return t.map(e)}))},a=function(e){return q(t.map(function(t){return t.mapError(e)}))},u=function(e,n){return t.map(function(t){return t.fold(e,n)})},c=function(n,r){return q(z.nu(function(i){var o=!1,a=e.setTimeout(function(){o=!0,i(W.error(r()))},n);t.get(function(t){o||(e.clearTimeout(a),i(t))})}))};return I(I({},t),{toCached:n,bindFuture:r,bindResult:i,mapResult:o,mapError:a,foldResult:u,withTimeout:c})},V=function(e){return q(z.nu(e))},X=function(e){return q(z.pure(W.value(e)))},$=function(e){return q(z.pure(W.error(e)))},J=function(e){return q(z.pure(e))},Y=function(e){return q(e.map(W.value))},K=function(e){return V(function(t){e.then(function(e){t(W.value(e))},function(e){t(W.error(e))})})},Z={nu:V,wrap:q,pure:X,value:X,error:$,fromResult:J,fromFuture:Y,fromPromise:K},Q=Object.prototype.hasOwnProperty,et=function(e,t){var n=b(e)&&b(t);return n?nt(e,t):t},tt=function(e){return function(){for(var t=new Array(arguments.length),n=0;n1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return ct(i.childNodes[0])},at=function(t,n){var r=n||e.document,i=r.createElement(t);return ct(i)},ut=function(t,n){var r=n||e.document,i=r.createTextNode(t);return ct(i)},ct=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},st=function(e,t,n){var r=e.dom();return p.from(r.elementFromPoint(t,n)).map(ct)},lt={fromHtml:ot,fromTag:at,fromText:ut,fromDom:ct,fromPoint:st},ft=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),dt=tinymce.util.Tools.resolve("tinymce.util.Promise"),mt=tinymce.util.Tools.resolve("tinymce.util.XHR"),pt=function(e){return e.getParam("image_dimensions",!0,"boolean")},gt=function(e){return e.getParam("image_advtab",!1,"boolean")},ht=function(e){return e.getParam("image_uploadtab",!0,"boolean")},vt=function(e){return e.getParam("image_prepend_url","","string")},bt=function(e){return e.getParam("image_class_list")},yt=function(e){return e.getParam("image_description",!0,"boolean")},Tt=function(e){return e.getParam("image_title",!1,"boolean")},wt=function(e){return e.getParam("image_caption",!1,"boolean")},_t=function(e){return e.getParam("image_list",!1)},Dt=function(e){return!!Et(e)},xt=function(e){return!!At(e)},Et=function(e){return e.getParam("images_upload_url","","string")},At=function(e){return e.getParam("images_upload_handler",void 0,"function")},Nt=function(e){return e.getParam("images_upload_base_path",void 0,"string")},Ot=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},It=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},St=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Ut={hasDimensions:pt,hasUploadTab:ht,hasAdvTab:gt,getPrependUrl:vt,getClassList:bt,hasDescription:yt,hasImageTitle:Tt,hasImageCaption:wt,getImageList:_t,hasUploadUrl:Dt,hasUploadHandler:xt,getUploadUrl:Et,getUploadHandler:At,getUploadBasePath:Nt,getUploadCredentials:Ot,showAccessibilityOptions:It,isAutomaticUploadsEnabled:St},Pt=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},Ct=function(t,n){var r=e.document.createElement("img"),i=function(e){r.parentNode&&r.parentNode.removeChild(r),n(e)};r.onload=function(){var e=Pt(r.width,r.clientWidth),t=Pt(r.height,r.clientHeight),n={width:e,height:t};i(W.value(n))},r.onerror=function(){i(W.error("Failed to get image dimensions for: "+t))};var o=r.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",e.document.body.appendChild(r),r.src=t},Lt=function(e){return e&&(e=e.replace(/px$/,"")),e},Rt=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},Mt=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},jt=function(e,t){var n=Ut.getImageList(e);"string"==typeof n?mt.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"==typeof n?n(t):t(n)},kt=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!Ut.hasDimensions(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},Ft=function(t){return new dt(function(n,r){var i=new e.FileReader;i.onload=function(){n(i.result)},i.onerror=function(){r(i.error.message)},i.readAsDataURL(t)})},zt=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},Ht={getImageSize:Ct,removePixelSuffix:Lt,addPixelSuffix:Rt,mergeMargins:Mt,createImageList:jt,waitLoadImage:kt,blobToDataUri:Ft,isPlaceholderImage:zt},Bt=ft.DOM,Gt=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?Ht.removePixelSuffix(e.style.marginLeft):""},Wt=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?Ht.removePixelSuffix(e.style.marginTop):""},qt=function(e){return e.style.borderWidth?Ht.removePixelSuffix(e.style.borderWidth):""},Vt=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Xt=function(e,t){return e.style[t]?e.style[t]:""},$t=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Jt=function(e,t,n){e.setAttribute(t,n)},Yt=function(e){var t=Bt.create("figure",{"class":"image"});Bt.insertAfter(t,e),t.appendChild(e),t.appendChild(Bt.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Kt=function(e){var t=e.parentNode;Bt.insertAfter(e,t),Bt.remove(t)},Zt=function(e){$t(e)?Kt(e):Yt(e)},Qt=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},en=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=Ht.addPixelSuffix(r),Qt(e,t)):Jt(e,n,r)}},tn=function(e,t){return e.style[t]?Ht.removePixelSuffix(e.style[t]):Vt(e,t)},nn=function(e,t){var n=Ht.addPixelSuffix(t);e.style.marginLeft=n,e.style.marginRight=n},rn=function(e,t){var n=Ht.addPixelSuffix(t);e.style.marginTop=n,e.style.marginBottom=n},on=function(e,t){var n=Ht.addPixelSuffix(t);e.style.borderWidth=n},an=function(e,t){e.style.borderStyle=t},un=function(e){return Xt(e,"borderStyle")},cn=function(e){return"FIGURE"===e.nodeName},sn=function(e){return"IMG"===e.nodeName},ln=function(e){return 0===Bt.getAttrib(e,"alt").length&&"presentation"===Bt.getAttrib(e,"role")},fn=function(e){return ln(e)?"":Vt(e,"alt")},dn=function(){return{src:"",alt:"",title:"",width:"",height:"","class":"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},mn=function(t,n){var r=e.document.createElement("img");return Jt(r,"style",n.style),(Gt(r)||""!==n.hspace)&&nn(r,n.hspace),(Wt(r)||""!==n.vspace)&&rn(r,n.vspace),(qt(r)||""!==n.border)&&on(r,n.border),(un(r)||""!==n.borderStyle)&&an(r,n.borderStyle),t(r.getAttribute("style"))},pn=function(t,n,r){var i=e.document.createElement("img");if(Tn(t,I(I({},n),{caption:!1}),i,r),vn(i,n.alt,n.isDecorative,r),n.caption){var o=Bt.create("figure",{"class":"image"});return o.appendChild(i),o.appendChild(Bt.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return i},gn=function(e,t){return{src:Vt(t,"src"),alt:fn(t),title:Vt(t,"title"),width:tn(t,"width"),height:tn(t,"height"),"class":Vt(t,"class"),style:e(Vt(t,"style")),caption:$t(t),hspace:Gt(t),vspace:Wt(t),border:qt(t),borderStyle:Xt(t,"borderStyle"),isDecorative:ln(t)}},hn=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},vn=function(e,t,n,r){if(n){Bt.setAttrib(e,"role","presentation");var i=lt.fromDom(e);it(i,"alt","")}else{if(r.hasAccessibilityOptions)Bt.setAttrib(e,"alt",t);else{var i=lt.fromDom(e);it(i,"alt",t)}"presentation"===Bt.getAttrib(e,"role")&&Bt.setAttrib(e,"role","")}},bn=function(e,t,n,r){(n.alt!==t.alt||n.isDecorative!==t.isDecorative)&&vn(e,n.alt,n.isDecorative,r)},yn=function(e,t){return function(n,r,i){e(n,i),Qt(n,t)}},Tn=function(e,t,n,r){var i=gn(e,n);hn(n,i,t,"caption",function(e){return Zt(e)}),hn(n,i,t,"src",Jt),hn(n,i,t,"title",Jt),hn(n,i,t,"width",en("width",e)),hn(n,i,t,"height",en("height",e)),hn(n,i,t,"class",Jt),hn(n,i,t,"style",yn(function(e,t){return Jt(e,"style",t)},e)),hn(n,i,t,"hspace",yn(nn,e)),hn(n,i,t,"vspace",yn(rn,e)),hn(n,i,t,"border",yn(on,e)),hn(n,i,t,"borderStyle",yn(an,e)),bn(n,i,t,r)},wn=function(e,t){var n=e.dom.styles.parse(t),r=Ht.mergeMargins(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},_n=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||Ht.isPlaceholderImage(t))?null:t},Dn=function(e,t){var n=e.dom,r=n.getParent(t.parentNode,function(t){return!!e.schema.getTextBlockElements()[t.nodeName]},e.getBody());return r?n.split(r,t):t},xn=function(e){var t=_n(e);return t?gn(function(t){return wn(e,t)},t):dn()},En=function(e,t,n){var r=pn(function(t){return wn(e,t)},t,n);e.dom.setAttrib(r,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(r.outerHTML);var i=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(i,"data-mce-id",null),cn(i)){var o=Dn(e,i);e.selection.select(o)}else e.selection.select(i)},An=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},Nn=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},On=function(e,t,n){var r=_n(e);if(Tn(function(t){return wn(e,t)},t,r,n),An(e,r),cn(r.parentNode)){var i=r.parentNode;Dn(e,i),e.selection.select(r.parentNode)}else e.selection.select(r),Ht.waitLoadImage(e,t,r)},In=function(e,t,n){var r=_n(e);r?t.src?On(e,t,n):Nn(e,r):t.src&&En(e,t,n)},Sn=tinymce.util.Tools.resolve("tinymce.util.Tools"),Un=function(e){return v(e.value)?e.value:""},Pn=function(e,t){var n=[];return Sn.each(e,function(e){var r=v(e.text)?e.text:v(e.title)?e.title:"";if(void 0!==e.menu){var i=Pn(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}}),n},Cn=function(e){return void 0===e&&(e=Un),function(t){return t?p.from(t).map(function(t){return Pn(t,e)}):p.none()}},Ln=function(e){return Cn(Un)(e)},Rn=function(e){return Object.prototype.hasOwnProperty.call(e,"items")},Mn=function(e,t){return O(e,function(e){return Rn(e)?Mn(e.items,t):e.value===t?p.some(e):p.none()})},jn=function(e,t){return e.bind(function(e){return Mn(e,t)})},kn={sanitizer:Cn,sanitize:Ln,findEntry:jn},Fn=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},zn=function(){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"selectbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Hn={makeTab:zn},Bn=function(e){var t=kn.sanitizer(function(t){return e.convertURL(t.value||t.url,"src")}),n=z.nu(function(n){Ht.createImageList(e,function(e){n(t(e).map(function(e){return A([[{text:"None",value:""}],e])}))})}),r=kn.sanitize(Ut.getClassList(e)),i=Ut.hasAdvTab(e),o=Ut.hasUploadTab(e),a=Ut.hasUploadUrl(e),u=Ut.hasUploadHandler(e),c=xn(e),s=Ut.hasDescription(e),l=Ut.hasImageTitle(e),f=Ut.hasDimensions(e),d=Ut.hasImageCaption(e),m=Ut.showAccessibilityOptions(e),g=Ut.getUploadUrl(e),h=Ut.getUploadBasePath(e),b=Ut.getUploadCredentials(e),y=Ut.getUploadHandler(e),T=Ut.isAutomaticUploadsEnabled(e),w=p.some(Ut.getPrependUrl(e)).filter(function(e){return v(e)&&e.length>0});return n.map(function(e){return{image:c,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:a,hasUploadHandler:u,hasDescription:s,hasImageTitle:l,hasDimensions:f,hasImageCaption:d,url:g,basePath:h,credentials:b,handler:y,prependURL:w,hasAccessibilityOptions:m,automaticUploads:T}})},Gn=function(e){var t={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=e.imageList.map(function(e){return{name:"images",type:"selectbox",label:"Image list",items:e}}),r={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},i={name:"title",type:"input",label:"Image title"},o={name:"dimensions",type:"sizeinput"},a={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map(function(e){return{name:"classes",type:"selectbox",label:"Class",items:e}}),c={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return A([[t],n.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[a]:[],e.hasDescription?[r]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[o]:[],[{type:"grid",columns:2,items:A([u.toArray(),e.hasImageCaption?[c]:[]])}]])},Wn=function(e){return{title:"General",name:"general",items:Gn(e)}},qn={makeTab:Wn,makeItems:Gn},Vn=function(){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},Xn={makeTab:Vn},$n=function(e){return{prevImage:kn.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Jn=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Yn=function(e){return{src:e.src.value,alt:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,"class":e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Kn=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?p.none():e.prependURL.bind(function(e){return t.substring(0,e.length)!==e?p.some(e+t):p.none()})},Zn=function(e,t){var n=t.getData();Kn(e,n.src.value).each(function(e){t.setData({src:{value:e,meta:n.src.meta}})})},Qn=function(e,t,n){e.hasDescription&&v(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&v(n.title)&&(t.title=n.title),e.hasDimensions&&(v(n.width)&&(t.dimensions.width=n.width),v(n.height)&&(t.dimensions.height=n.height)),v(n.class)&&kn.findEntry(e.classList,n.class).each(function(e){t.classes=e.value}),e.hasImageCaption&&T(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(v(n.style)&&(t.style=n.style),v(n.vspace)&&(t.vspace=n.vspace),v(n.border)&&(t.border=n.border),v(n.hspace)&&(t.hspace=n.hspace),v(n.borderstyle)&&(t.borderstyle=n.borderstyle))},er=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=nt({},n);Qn(e,i,r),t.setData(i)}},tr=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||e.imageSize(o).get(function(e){e.each(function(e){n.open&&r.setData({dimensions:e})})})},nr=function(e,t,n){var r=n.getData(),i=kn.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map(function(e){return e.value}).getOr("")})},rr=function(e,t,n,r){Zn(t,r),er(t,r),tr(e,t,n,r),nr(t,n,r)},ir=function(e,t,n,r){var i=r.getData(),o=kn.findEntry(t.imageList,i.images);o.each(function(e){var t=""===i.alt||n.prevImage.map(function(e){return e.text===i.alt}).getOr(!1);r.setData(t?""===e.value?{src:e,alt:n.prevAlt}:{src:e,alt:e.text}:{src:e})}),n.prevImage=o,rr(e,t,n,r)},or=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?Ht.removePixelSuffix(String(e["margin-top"])):""},ar=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?Ht.removePixelSuffix(String(e["margin-right"])):""},ur=function(e){return e["border-width"]?Ht.removePixelSuffix(String(e["border-width"])):""},cr=function(e){return e["border-style"]?String(e["border-style"]):""},sr=function(e,t,n){return t(e(t(n)))},lr=function(e,t,n){var r=Ht.mergeMargins(e(n.style)),i=nt({},n);return i.vspace=or(r),i.hspace=ar(r),i.border=ur(r),i.borderstyle=cr(r),i.style=sr(e,t,r),i},fr=function(e,t){var n=t.getData(),r=lr(e.parseStyle,e.serializeStyle,n);t.setData(r)},dr=function(e,t,n){var r=nt(Jn(t.image),n.getData()),i=mn(e.normalizeCss,Yn(r));n.setData({style:i})},mr=function(n,r,i,o){var a=o.getData();o.block("Uploading image"),N(a.fileinput).fold(function(){o.unblock()},function(a){var u=e.URL.createObjectURL(a),c=t({url:r.url,basePath:r.basePath,credentials:r.credentials,handler:r.handler}),s=function(){o.unblock(),e.URL.revokeObjectURL(u)},l=function(e){o.setData({src:{value:e,meta:{}}}),o.showTab("general"),rr(n,r,i,o)};Ht.blobToDataUri(a).then(function(e){var t=n.createBlobCache(a,u,e);r.automaticUploads?c.upload(t).then(function(e){l(e),s()}).catch(function(e){s(),n.alertErr(o,e)}):(n.addToBlobCache(t),l(t.blobUri()),o.unblock())})})},pr=function(e,t,n){return function(r,i){"src"===i.name?rr(e,t,n,r):"images"===i.name?ir(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?fr(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?dr(e,t,r):"fileinput"===i.name?mr(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},gr=function(e){return function(){e.open=!1}},hr=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:A([[qn.makeTab(e)],e.hasAdvTab?[Hn.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Xn.makeTab(e)]:[]])};return t}var n={type:"panel",items:qn.makeItems(e)};return n},vr=function(e){return function(t){var n=$n(t);return{title:"Insert/Edit Image",size:"normal",body:hr(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Jn(t.image),onSubmit:e.onSubmit(t),onChange:pr(e,t,n),onClose:gr(n)}
+}},br=function(e){return function(t){return function(n){var r=nt(Jn(t.image),n.getData());e.undoManager.transact(function(){In(e,Yn(r),t)}),e.editorUpload.uploadImagesAuto(),n.close()}}},yr=function(e){return function(t){return Z.nu(function(n){Ht.getImageSize(e.documentBaseURI.toAbsolute(t),function(e){var t=e.map(function(e){return{width:String(e.width),height:String(e.height)}});n(t)})})}},Tr=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,base64:r.split(",")[1]})}},wr=function(e){return function(t){e.editorUpload.blobCache.add(t)}},_r=function(e){return function(t,n){e.windowManager.alert(n,t.close)}},Dr=function(e){return function(t){return wn(e,t)}},xr=function(e){return function(t){return e.dom.parseStyle(t)}},Er=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},Ar=function(e){var t={onSubmit:br(e),imageSize:yr(e),addToBlobCache:wr(e),createBlobCache:Tr(e),alertErr:_r(e),normalizeCss:Dr(e),parseStyle:xr(e),serializeStyle:Er(e)},n=function(){return Bn(e).map(vr(t)).get(function(t){e.windowManager.open(t)})};return{open:n}},Nr=function(e){e.addCommand("mceImage",Ar(e).open)},Or={register:Nr},Ir=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},Sr=function(e){return function(t){for(var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};n--;){var i=t[n];Ir(i)&&(i.attr("contenteditable",e?"false":null),Sn.each(i.getAll("figcaption"),r))}}},Ur=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("figure",Sr(!0)),e.serializer.addNodeFilter("figure",Sr(!1))})},Pr={setup:Ur},Cr=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Ar(e).open,onSetup:function(t){return e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Ar(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return cn(e)||sn(e)&&!Ht.isPlaceholderImage(e)?["image"]:[]}})},Lr={register:Cr};n()}(window)});
+;/*!node_modules/tinymce/plugins/image/index.js*/
+amis.define("node_modules/tinymce/plugins/image/index",function(e){e("node_modules/tinymce/plugins/image/plugin")});
+;/*!node_modules/tinymce/plugins/charmap/plugin.js*/
+amis.define("node_modules/tinymce/plugins/charmap/plugin",function(){!function(n){"use strict";function e(){r.add("charmap",function(n){var e=L.getCharMap(n);return J.register(n,e),ee.register(n),$(n,e[0]),R.get(n)})}var r=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n,e){return n.fire("insertCustomChar",{chr:e})},a={fireInsertCustomChar:t},i=function(n,e){var r=a.fireInsertCustomChar(n,e).chr;n.execCommand("mceInsertContent",!1,r)},o={insertChar:i},c=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(n){return n.settings.charmap},s=function(n){return n.settings.charmap_append},l={getCharMap:u,getCharMapAppend:s},g=function(){},f=function(n){return function(){return n}},m=f(!1),h=f(!0),p=function(){return d},d=function(){var n=function(n){return n.isNone()},e=function(n){return n()},r=function(n){return n},t={fold:function(n){return n()},is:m,isSome:m,isNone:h,getOr:r,getOrThunk:e,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:r,orThunk:e,map:p,each:g,bind:p,exists:m,forall:h,filter:p,equals:n,equals_:n,toArray:function(){return[]},toString:f("none()")};return Object.freeze&&Object.freeze(t),t}(),y=function(n){var e=f(n),r=function(){return a},t=function(e){return e(n)},a={fold:function(e,r){return r(n)},is:function(e){return n===e},isSome:h,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return y(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?a:d},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,r){return e.fold(m,function(e){return r(n,e)})}};return a},v=function(n){return null===n||void 0===n?d:y(n)},w={some:y,none:p,from:v},b=function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e},C=function(n){return function(e){return b(e)===n}},k=C("array"),A=C("function"),O=Array.prototype.slice,x=Array.prototype.push,q=function(n,e){for(var r=n.length,t=new Array(r),a=0;r>a;a++){var i=n[a];t[a]=e(i,a)}return t},S=function(n,e){for(var r=0,t=n.length;t>r;r++){var a=n[r];e(a,r)}},T=function(n,e){for(var r=0,t=n.length;t>r;r++){var a=n[r];if(e(a,r))return w.some(a)}return w.none()},E=function(n){for(var e=[],r=0,t=n.length;t>r;++r){if(!k(n[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+n);x.apply(e,n[r])}return e},M=function(n,e){return E(q(n,e))},I=(A(Array.from)?Array.from:function(n){return O.call(n)},c.isArray),z="User Defined",N=function(){return[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}]},U=function(n){return c.grep(n,function(n){return I(n)&&2===n.length})},D=function(n){return I(n)?[].concat(U(n)):"function"==typeof n?n():[]},P=function(n,e){var r=l.getCharMap(n);r&&(e=[{name:z,characters:D(r)}]);var t=l.getCharMapAppend(n);if(t){var a=c.grep(e,function(n){return n.name===z});return a.length?(a[0].characters=[].concat(a[0].characters).concat(D(t)),e):[].concat(e).concat({name:z,characters:D(t)})}return e},j=function(n){var e=P(n,N());return e.length>1?[{name:"All",characters:M(e,function(n){return n.characters})}].concat(e):e},L={getCharMap:j},_=function(n){var e=function(){return L.getCharMap(n)},r=function(e){o.insertChar(n,e)};return{getCharMap:e,insertChar:r}},R={get:_},Y=function(n){var e=n,r=function(){return e},t=function(n){e=n},a=function(){return Y(r())};return{get:r,set:t,clone:a}},B=function(e,r){var t=null,a=function(){null!==t&&(n.clearTimeout(t),t=null)},i=function(){for(var a=[],i=0;i',o&&(t+='");var r=a.shouldUseContentCssCors(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,function(n){t+=' "});var s=e.settings.body_id||"tinymce";-1!==s.indexOf("=")&&(s=e.getParam("body_id","","hash"),s=s[e.id]||s);var l=e.settings.body_class||"";-1!==l.indexOf("=")&&(l=e.getParam("body_class","","hash"),l=l[e.id]||"");var d=c.mac?"e.metaKey":"e.ctrlKey && !e.altKey",m=' ",u=e.getBody().dir,g=u?' dir="'+i(u)+'"':"",v=""+t+'"+e.getContent()+m+"";return v},d={getPreviewHtml:l},m=function(e){var t=d.getPreviewHtml(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},u=function(e){e.addCommand("mcePreview",function(){m(e)})},g={register:u},v=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})},y={register:v};e()}()});
+;/*!node_modules/tinymce/plugins/preview/index.js*/
+amis.define("node_modules/tinymce/plugins/preview/index",function(e){e("node_modules/tinymce/plugins/preview/plugin")});
+;/*!node_modules/tinymce/plugins/anchor/plugin.js*/
+amis.define("node_modules/tinymce/plugins/anchor/plugin",function(){!function(){"use strict";function e(){t.add("anchor",function(e){h.setup(e),l.register(e),b.register(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){return"A"===t.tagName&&""===e.dom.getAttrib(t,"href")},o=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},i=function(e){var t=e.selection.getNode();return n(e,t)?t.getAttribute("id")||t.getAttribute("name"):""},r=function(e,t){var o=e.selection.getNode();n(e,o)?(o.removeAttribute("name"),o.id=t,e.undoManager.add()):(e.focus(),e.selection.collapse(!0),e.insertContent(e.dom.createHTML("a",{id:t})))},a={isValidId:o,getId:i,insert:r},c=function(e,t){return a.isValidId(t)?(a.insert(e,t),!0):(e.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1)},u=function(e){var t=a.getId(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:function(t){c(e,t.getData().id)&&t.close()}})},d={open:u},s=function(e){e.addCommand("mceAnchor",function(){d.open(e)})},l={register:s},m=function(e){return!e.attr("href")&&(e.attr("id")||e.attr("name"))&&!e.firstChild},f=function(e){return function(t){for(var n=0;n0){var r=e[t];if(!r)throw new Error("Invalid capture group");n+=e[0].indexOf(r),e[0]=r}return[n,n+e[0].length,[e[0]]]}function c(t){var n;if(3===t.nodeType)return t.data;if(m[t.nodeName]&&!g[t.nodeName])return"";if(n="",e(t))return"\n";if((g[t.nodeName]||p[t.nodeName])&&(n+="\n"),t=t.firstChild)do n+=c(t);while(t=t.nextSibling);return n}function u(t,n,r){var o,a,i,c,u=[],d=0,s=t,l=n.shift(),f=0;e:for(;;){if((g[s.nodeName]||p[s.nodeName]||e(s))&&d++,3===s.nodeType&&(!a&&s.length+d>=l[1]?(a=s,c=l[1]-d):o&&u.push(s),!o&&s.length+d>l[0]&&(o=s,i=l[0]-d),d+=s.length),o&&a){if(s=r({startNode:o,startNodeIndex:i,endNode:a,endNodeIndex:c,innerNodes:u,match:l[2],matchIndex:f}),d-=a.length-c,o=null,a=null,u=[],l=n.shift(),f++,!l)break}else if(m[s.nodeName]&&!g[s.nodeName]||!s.firstChild){if(s.nextSibling){s=s.nextSibling;continue}}else if(!e(s)){s=s.firstChild;continue}for(;;){if(s.nextSibling){s=s.nextSibling;break}if(s.parentNode===t)break e;s=s.parentNode}}}function d(e){var t;if("function"!=typeof e){var n=e.nodeType?e:f.createElement(e);t=function(e,t){var r=n.cloneNode(!1);return r.setAttribute("data-mce-index",t),e&&r.appendChild(f.createTextNode(e)),r}}else t=e;return function(e){var n,r,o,a=e.startNode,i=e.endNode,c=e.matchIndex;if(a===i){var u=a;o=u.parentNode,e.startNodeIndex>0&&(n=f.createTextNode(u.data.substring(0,e.startNodeIndex)),o.insertBefore(n,u));var d=t(e.match[0],c);return o.insertBefore(d,u),e.endNodeIndexl;++l){var m=e.innerNodes[l],p=t(m.data,c);m.parentNode.replaceChild(p,m)}var h=t(i.data.substring(0,e.endNodeIndex),c);return o=a.parentNode,o.insertBefore(n,a),o.insertBefore(s,a),o.removeChild(a),o=i.parentNode,o.insertBefore(h,i),o.insertBefore(r,i),o.removeChild(i),h}}var s,l,f,g,m,p,h=[],v=0;if(f=n.ownerDocument,g=a.getBlockElements(),m=a.getWhiteSpaceElements(),p=a.getShortEndedElements(),l=c(n)){if(t.global)for(;s=t.exec(l);)h.push(i(s,o));else s=l.match(t),h.push(i(s,o));return h.length&&(v=h.length,u(n,h,d(r))),v}}function n(){o.add("searchreplace",function(e){var t=r({index:-1,count:0,text:"",matchCase:!1,wholeWord:!1});return J.register(e,t),Q.register(e,t),j.get(e,t)})}var r=function(e){var t=e,n=function(){return t},o=function(e){t=e},a=function(){return r(n())};return{get:n,set:o,clone:a}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a.apply(this,arguments)},i=function(){},c=function(e){return function(){return e}},u=c(!1),d=c(!0),s="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",l=c(s),f=function(){return g},g=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:u,isSome:u,isNone:d,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:n,orThunk:t,map:f,each:i,bind:f,exists:u,forall:d,filter:f,equals:e,equals_:e,toArray:function(){return[]},toString:c("none()")};return Object.freeze&&Object.freeze(r),r}(),m=function(e){var t=c(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:d,isNone:u,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(u,function(t){return n(e,t)})}};return o},p=function(e){return null===e||void 0===e?g:m(e)},h={some:m,none:f,from:p},v=l,x=tinymce.util.Tools.resolve("tinymce.util.Tools"),y={findAndReplaceDOMText:t},b=function(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t},N=function(e,t,n){var r,o;return o=e.dom.create("span",{"data-mce-bogus":1}),o.className="mce-match-marker",r=e.getBody(),M(e,t,!1),y.findAndReplaceDOMText(n,r,o,1,e.schema)},w=function(e){var t=e.parentNode;e.firstChild&&t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)},C=function(e,t){var n,r=[];if(n=x.toArray(e.getBody().getElementsByTagName("span")),n.length)for(var o=0;o0},E=function(e,t,n,r,o){var i,c,u,d,s,l=t.get(),f=l.index,g=f;for(r=r!==!1,u=e.getBody(),c=x.grep(x.toArray(u.getElementsByTagName("span")),I),i=0;if&&c[i].setAttribute("data-mce-index",String(s-1))}return t.set(a(a({},l),{count:o?0:l.count-1,index:g})),r?k(e,t):B(e,t),!o&&t.get().count>0},M=function(e,t,n){var r,o,i,c,u=t.get();for(o=x.toArray(e.getBody().getElementsByTagName("span")),r=0;r1},R=function(e,t){return t.get().count>1},F=function(e,t){var n=function(n){return M(e,t,n)},r=function(n,r,o){return A(e,t,n,r,o)},o=function(){return k(e,t)},a=function(){return B(e,t)},i=function(n,r,o){return E(e,t,n,r,o)};return{done:n,find:r,next:o,prev:a,replace:i}},j={get:F},P=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},W=function(e){return function(t){return P(t)===e}},z=W("function"),q=Array.prototype.slice,_=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},$=(z(Array.from)?Array.from:function(e){return q.call(e)},function(){var e=r(h.none()),t=function(){e.set(h.none())},n=function(t){e.set(h.some(t))},o=function(t){e.get().each(t)},a=function(){return e.get().isSome()};return{clear:t,set:n,isSet:a,on:o}}),U=tinymce.util.Tools.resolve("tinymce.Env"),V=function(e,t){function n(n){var r=D(e,t)?n.enable:n.disable;r("next");var o=R(e,t)?n.enable:n.disable;o("prev")}function r(t){e.windowManager.alert("Could not find the specified string.",function(){t.focus("findtext")})}var o=$();e.undoManager.add();var i=x.trim(e.selection.getContent({format:"text"})),c=function(e){var n=e.getData(),r=t.get();t.set(a(a({},r),{matchCase:n.matchcase,wholeWord:n.wholewords}))},u=function(e,t){var n=["replace","replaceall","prev","next"],r=t?e.disable:e.enable;_(n,r)},d=function(e,t){U.browser.isSafari()&&U.deviceType.isTouch()&&("find"===t||"replace"===t||"replaceall"===t)&&e.focus(t)},s=function(r){M(e,t,!1),u(r,!0),n(r)},l=function(o){var a=o.getData(),i=t.get();if(!a.findtext.length)return void s(o);if(i.text===a.findtext&&i.matchCase===a.matchcase&&i.wholeWord===a.wholewords)k(e,t);else{var c=A(e,t,a.findtext,a.matchcase,a.wholewords);0>=c&&r(o),u(o,0===c)}n(o)},f=t.get(),g={findtext:i,replacetext:"",wholewords:f.wholeWord,matchcase:f.matchCase},m={title:"Find and Replace",size:"normal",body:{type:"panel",items:[{type:"bar",items:[{type:"input",name:"findtext",placeholder:"Find",maximized:!0,inputMode:"search"},{type:"button",name:"prev",text:"Previous",icon:"action-prev",disabled:!0,borderless:!0},{type:"button",name:"next",text:"Next",icon:"action-next",disabled:!0,borderless:!0}]},{type:"input",name:"replacetext",placeholder:"Replace with",inputMode:"search"}]},buttons:[{type:"menu",name:"options",icon:"preferences",tooltip:"Preferences",align:"start",items:[{type:"togglemenuitem",name:"matchcase",text:"Match case"},{type:"togglemenuitem",name:"wholewords",text:"Find whole words only"}]},{type:"custom",name:"find",text:"Find",primary:!0},{type:"custom",name:"replace",text:"Replace",disabled:!0},{type:"custom",name:"replaceall",text:"Replace All",disabled:!0}],initialData:g,onChange:function(e,n){"findtext"===n.name&&t.get().count>0&&s(e)},onAction:function(r,o){var a=r.getData();switch(o.name){case"find":l(r);break;case"replace":E(e,t,a.replacetext)?n(r):s(r);break;case"replaceall":E(e,t,a.replacetext,!0,!0),s(r);break;case"prev":B(e,t),n(r);break;case"next":k(e,t),n(r);break;case"matchcase":case"wholewords":c(r),s(r)}d(r,o.name)},onSubmit:function(e){l(e),d(e,"find")},onClose:function(){e.focus(),M(e,t),e.undoManager.add()}};o.set(e.windowManager.open(m,{inline:"toolbar"}))},G={open:V},H=function(e,t){e.addCommand("SearchReplace",function(){G.open(e,t)})},J={register:H},K=function(e,t){return function(){G.open(e,t)}},L=function(e,t){e.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:K(e,t),icon:"search"}),e.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:K(e,t),icon:"search"}),e.shortcuts.add("Meta+F","",K(e,t))},Q={register:L};n()}()});
+;/*!node_modules/tinymce/plugins/searchreplace/index.js*/
+amis.define("node_modules/tinymce/plugins/searchreplace/index",function(e){e("node_modules/tinymce/plugins/searchreplace/plugin")});
+;/*!node_modules/tinymce/plugins/visualblocks/plugin.js*/
+amis.define("node_modules/tinymce/plugins/visualblocks/plugin",function(){!function(){"use strict";function e(){o.add("visualblocks",function(e,o){var n=t(!1);c.register(e,o,n),k.register(e,n),g.setup(e,o,n)})}var t=function(e){var o=e,n=function(){return o},i=function(e){o=e},s=function(){return t(n())};return{get:n,set:i,clone:s}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){e.fire("VisualBlocks",{state:t})},i={fireVisualBlocks:n},s=function(e,t,o){var n=e.dom;n.toggleClass(e.getBody(),"mce-visualblocks"),o.set(!o.get()),i.fireVisualBlocks(e,o.get())},u={toggleVisualBlocks:s},l=function(e,t,o){e.addCommand("mceVisualBlocks",function(){u.toggleVisualBlocks(e,t,o)})},c={register:l},r=function(e){return e.getParam("visualblocks_default_state",!1,"boolean")},a={isEnabledByDefault:r},f=function(e,t,o){e.on("PreviewFormats AfterPreviewFormats",function(t){o.get()&&e.dom.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),e.on("init",function(){a.isEnabledByDefault(e)&&u.toggleVisualBlocks(e,t,o)}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")})},g={setup:f},m=function(e,t){return function(o){o.setActive(t.get());var n=function(e){return o.setActive(e.state)};return e.on("VisualBlocks",n),function(){return e.off("VisualBlocks",n)}}},d=function(e,t){e.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:function(){return e.execCommand("mceVisualBlocks")},onSetup:m(e,t)}),e.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",onAction:function(){return e.execCommand("mceVisualBlocks")},onSetup:m(e,t)})},k={register:d};e()}()});
+;/*!node_modules/tinymce/plugins/visualblocks/index.js*/
+amis.define("node_modules/tinymce/plugins/visualblocks/index",function(i){i("node_modules/tinymce/plugins/visualblocks/plugin")});
+;/*!node_modules/tinymce/plugins/code/plugin.js*/
+amis.define("node_modules/tinymce/plugins/code/plugin",function(){!function(){"use strict";function e(){n.add("code",function(e){return a.register(e),s.register(e),{}})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},o=function(e){return e.getContent({source_view:!0})},i={setContent:t,getContent:o},c=function(e){var n=i.getContent(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:n},onSubmit:function(n){i.setContent(e,n.getData().code),n.close()}})},r={open:c},u=function(e){e.addCommand("mceCodeEditor",function(){r.open(e)})},a={register:u},d=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return r.open(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return r.open(e)}})},s={register:d};e()}()});
+;/*!node_modules/tinymce/plugins/code/index.js*/
+amis.define("node_modules/tinymce/plugins/code/index",function(e){e("node_modules/tinymce/plugins/code/plugin")});
+;/*!node_modules/tinymce/plugins/fullscreen/plugin.js*/
+amis.define("node_modules/tinymce/plugins/fullscreen/plugin",function(){!function(n){"use strict";function e(){t.add("fullscreen",function(n){var e=r(null);return n.settings.inline?i.get(e):(Gr.register(n,e),Jr.register(n,e),n.addShortcut("Meta+Shift+F","","mceFullScreen"),i.get(e))})}var r=function(n){var e=n,t=function(){return e},o=function(n){e=n},i=function(){return r(t())};return{get:t,set:o,clone:i}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){return{isFullscreen:function(){return null!==n.get()}}},i={get:o},u=function(){},c=function(n,e){return function(){for(var r=[],t=0;to;o++){var i=n[o];t[o]=e(i,o)}return t},A=function(n,e){for(var r=0,t=n.length;t>r;r++){var o=n[r];e(o,r)}},_=function(n,e){for(var r=[],t=0,o=n.length;o>t;t++){var i=n[t];e(i,t)&&r.push(i)}return r},F=function(n,e){for(var r=0,t=n.length;t>r;r++){var o=n[r];if(e(o,r))return g.some(o)}return g.none()},M=function(n){for(var e=[],r=0,t=n.length;t>r;++r){if(!E(n[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+n);C.apply(e,n[r])}return e},P=function(n,e){return M(D(n,e))},k=(T(Array.from)?Array.from:function(n){return x.call(n)},Object.keys),R=function(n,e){for(var r=k(n),t=0,o=r.length;o>t;t++){var i=r[t],u=n[i];e(u,i)}},I=function(n,e){return-1!==n.indexOf(e)},L=function(n){return void 0!==n.style&&T(n.style.getPropertyValue)},B=function(e,r){var t=r||n.document,o=t.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return H(o.childNodes[0])},U=function(e,r){var t=r||n.document,o=t.createElement(e);return H(o)},W=function(e,r){var t=r||n.document,o=t.createTextNode(e);return H(o)},H=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:s(n)}},j=function(n,e,r){var t=n.dom();return g.from(t.elementFromPoint(e,r)).map(H)},V={fromHtml:B,fromTag:U,fromText:W,fromDom:H,fromPoint:j},q=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),z=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),X=n.Node.TEXT_NODE,Y=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){return n.dom().nodeType}),G=function(n){return function(e){return Y(e)===n}},$=G(X),K=function(n){var e=$(n)?n.dom().parentNode:n.dom();return void 0!==e&&null!==e&&e.ownerDocument.body.contains(e)},J=function(e,r,t){if(!(O(t)||N(t)||b(t)))throw n.console.error("Invalid call to Attr.set. Key ",r,":: Value ",t,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(r,t+"")},Q=function(n,e,r){J(n.dom(),e,r)},Z=function(n,e){var r=n.dom().getAttribute(e);return null===r?void 0:r},ne=function(n,e){n.dom().removeAttribute(e)},ee=function(e,r,t){if(!O(t))throw n.console.error("Invalid call to CSS.set. Property ",r,":: Value ",t,":: Element ",e),new Error("CSS value must be a string: "+t);L(e)&&e.style.setProperty(r,t)},re=function(n,e){var r=n.dom();R(e,function(n,e){ee(r,e,n)})},te=function(e,r){var t=e.dom(),o=n.window.getComputedStyle(t),i=o.getPropertyValue(r),u=""!==i||K(e)?i:oe(t,r);return null===u?void 0:u},oe=function(n,e){return L(n)?n.style.getPropertyValue(e):""},ie=function(n,e,r,t,o,i,u){return{target:s(n),x:s(e),y:s(r),stop:t,prevent:o,kill:i,raw:s(u)}},ue=function(n){var e=V.fromDom(n.target),r=function(){n.stopPropagation()},t=function(){n.preventDefault()},o=c(t,r);return ie(e,n.clientX,n.clientY,r,t,o,n)},ce=function(n,e){for(var r=0;r0?t[0]:r(e)},o=function(e){return e.getParam("insertdatetime_element",!1)},u={getDateFormat:n,getTimeFormat:r,getFormats:i,getDefaultDateTime:a,shouldInsertTimeElement:o},m="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),s="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),c="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),l="January February March April May June July August September October November December".split(" "),d=function(e,t){if(e=""+e,e.length'+n+"")}else e.insertContent(g(e,t))},y={insertDateTime:p,getDateTime:g},D=function(e){e.addCommand("mceInsertDate",function(){y.insertDateTime(e,u.getDateFormat(e))}),e.addCommand("mceInsertTime",function(){y.insertDateTime(e,u.getTimeFormat(e))})},T={register:D},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return S(n())};return{get:n,set:r,clone:i}},v=function(e){var t=u.getFormats(e),n=S(u.getDefaultDateTime(e));e.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===n.get()},fetch:function(n){n(M.map(t,function(t){return{type:"choiceitem",text:y.getDateTime(e,t),value:t}}))},onAction:function(){for(var t=[],r=0;rr;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(this,arguments)},n=function(){},i=function(e){return function(){return e}},o=i(!1),a=i(!0),c=function(){return u},u=function(){var e=function(e){return e.isNone()},t=function(e){return e()},r=function(e){return e},u={fold:function(e){return e()},is:o,isSome:o,isNone:a,getOr:r,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:t,map:c,each:n,bind:c,exists:o,forall:a,filter:c,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return Object.freeze&&Object.freeze(u),u}(),s=function(e){var t=i(e),r=function(){return c},n=function(t){return t(e)},c={fold:function(t,r){return r(e)},is:function(t){return e===t},isSome:a,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return s(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?c:u},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,r){return t.fold(o,function(t){return r(e,t)})}};return c},l=function(e){return null===e||void 0===e?u:s(e)},m={some:s,none:c,from:l},d=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},f=function(e){return function(t){return d(t)===e}},h=f("string"),p=f("object"),g=f("array"),v=f("function"),b=Array.prototype.slice,w=Array.prototype.push,y=function(e,t){for(var r=0,n=e.length;n>r;r++){var i=e[r];t(i,r)}},x=function(e){for(var t=[],r=0,n=e.length;n>r;++r){if(!g(e[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+e);w.apply(t,e[r])}return t},S=(v(Array.from)?Array.from:function(e){return b.call(e)},function(e){var t=e,r=function(){return t},n=function(e){t=e},i=function(){return S(r())};return{get:r,set:n,clone:i}}),j=Object.hasOwnProperty,O=function(e,t){return A(e,t)?m.from(e[t]):m.none()},A=function(e,t){return j.call(e,t)},_=function(e){return e.getParam("media_scripts")},C=function(e){return e.getParam("audio_template_callback")},k=function(e){return e.getParam("video_template_callback")},T=function(e){return e.getParam("media_live_embeds",!0)},D=function(e){return e.getParam("media_filter_html",!0)},P=function(e){return e.getParam("media_url_resolver")},z=function(e){return e.getParam("media_alt_source",!0)},F=function(e){return e.getParam("media_poster",!0)},$=function(e){return e.getParam("media_dimensions",!0)},M={getScripts:_,getAudioTemplateCallback:C,getVideoTemplateCallback:k,hasLiveEmbeds:T,shouldFilterHtml:D,getUrlResolver:P,hasAltSource:z,hasPoster:F,hasDimensions:$},E=tinymce.util.Tools.resolve("tinymce.util.Tools"),N=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),H=function(e,t){if(e)for(var r=0;ra&&(Q(c,{src:t[Y[a]],type:t[Y[a]+"mime"]}),!t[Y[a]]))return;a++;break;case"img":if(!t.poster)return;n=!0}}i.start(e,c,u)},end:function(e){if(!o.get()){if("video"===e&&r)for(var c=0;2>c;c++)if(t[Y[c]]){var u=[];u.map={},c>a&&(Q(u,{src:t[Y[c]],type:t[Y[c]+"mime"]}),i.start("source",u,!0))}if(t.poster&&"object"===e&&r&&!n){var s=[];s.map={},Q(s,{src:t.poster,width:t.width,height:t.height}),i.start("img",s,!0)}}i.end(e)}},W({})).parse(e),i.getContent()},et={updateHtml:Z},tt=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],rt=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},nt=function(e,t){for(var r=rt(t),n=e.regex.exec(t),i=r+e.url,o=function(e){i=i.replace("$"+e,function(){return n[e]?n[e]:""})},a=0;a0?E.extend({},t[0],{url:nt(t[0],e)}):null},ot=function(e){var t=e.allowFullscreen?' allowFullscreen="1"':"";return'"},at=function(e){var t='';return e.poster&&(t+=' '),t+=" "},ct=function(e,t){return t?t(e):''+(e.altsource?'\n \n":"")+" "},ut=function(e,t){return t?t(e):'\n \n"+(e.altsource?' \n":"")+" "},st=function(e){return''},lt=function(e,t){var r=E.extend({},t);if(!r.source&&(E.extend(r,q(M.getScripts(e),r.embed)),!r.source))return"";r.altsource||(r.altsource=""),r.poster||(r.poster=""),r.source=e.convertURL(r.source,"source"),r.altsource=e.convertURL(r.altsource,"source"),r.sourcemime=V.guess(r.source),r.altsourcemime=V.guess(r.altsource),r.poster=e.convertURL(r.poster,"poster");var n=it(r.source);if(n&&(r.source=n.url,r.type=n.type,r.allowFullscreen=n.allowFullscreen,r.width=r.width||String(n.w),r.height=r.height||String(n.h)),r.embed)return et.updateHtml(r.embed,r,!0);var i=H(M.getScripts(e),r.source);i&&(r.type="script",r.width=String(i.width),r.height=String(i.height));var o=M.getAudioTemplateCallback(e),a=M.getVideoTemplateCallback(e);return r.width=r.width||"300",r.height=r.height||"150",E.each(r,function(t,n){r[n]=e.dom.encode(""+t)}),"iframe"===r.type?ot(r):"application/x-shockwave-flash"===r.sourcemime?at(r):-1!==r.sourcemime.indexOf("audio")?ct(r,o):"script"===r.type?st(r):ut(r,a)},mt=tinymce.util.Tools.resolve("tinymce.util.Promise"),dt={},ft=function(e,t,r){return new mt(function(n,i){var o=function(r){return r.html&&(dt[e.source]=r),n({url:e.source,html:r.html?r.html:t(e)})};dt[e.source]?o(dt[e.source]):r({url:e.source},o,i)})},ht=function(e,t){return new mt(function(r){r({html:t(e),url:e.source})})},pt=function(e){return function(t){return lt(e,t)}},gt=function(e,t){var r=M.getUrlResolver(e);return r?ft(t,pt(e),r):ht(t,pt(e))},vt=function(e){return dt.hasOwnProperty(e)},bt={getEmbedHtml:gt,isCached:vt},wt=function(e,t){return O(t,e).bind(function(e){return O(e,"meta")})},yt=function(e,t,r){return function(n){var i,o=function(){return O(e,n)},a=function(){return O(t,n)},c=function(e){return O(e,"value").bind(function(e){return e.length>0?m.some(e):m.none()})},u=function(){return o().bind(function(e){return p(e)?c(e).orThunk(a):a().orThunk(function(){return m.from(e)})})},s=function(){return a().orThunk(function(){return o().bind(function(e){return p(e)?c(e):m.from(e)})})};return i={},i[n]=(n===r?u():s()).getOr(""),i}},xt=function(e,t){var r={};return O(e,"dimensions").each(function(e){y(["width","height"],function(n){O(t,n).orThunk(function(){return O(e,n)}).each(function(e){return r[n]=e})})}),r},St=function(e,t){var n=t?wt(t,e).getOr({}):{},i=yt(e,n,t);return r(r(r(r(r({},i("source")),i("altsource")),i("poster")),i("embed")),xt(e,n))},jt=function(e){var t=r(r({},e),{source:{value:O(e,"source").getOr("")},altsource:{value:O(e,"altsource").getOr("")},poster:{value:O(e,"poster").getOr("")}});return y(["width","height"],function(r){O(e,r).each(function(e){var n=t.dimensions||{};n[r]=e,t.dimensions=n})}),t},Ot=function(e){return function(t){var r=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:r})}},At=function(e,t){return q(M.getScripts(e),t)},_t=function(e){return e.getAttribute("data-mce-object")||e.getAttribute("data-ephox-embed-iri")},Ct=function(e){var t=e.selection.getNode(),n=_t(t)?e.serializer.serialize(t,{selection:!0}):"";return r({embed:n},q(M.getScripts(e),n))},kt=function(e,t){return function(n){if(h(n.url)&&n.url.trim().length>0){var i=n.html,o=At(t,i),a=r(r({},o),{source:n.url,embed:i});e.setData(jt(a))}}},Tt=function(e,t){for(var r=e.dom.select("img[data-mce-object]"),n=0;n=0;i--)t[n]===r[i]&&r.splice(i,1);e.selection.select(r[0])},Dt=function(e,t){var r=e.dom.select("img[data-mce-object]");e.insertContent(t),Tt(e,r),e.nodeChanged()},Pt=function(e,t,r){t.embed=et.updateHtml(t.embed,t),t.embed&&(e.source===t.source||bt.isCached(t.source))?Dt(r,t.embed):bt.getEmbedHtml(r,t).then(function(e){Dt(r,e.html)}).catch(Ot(r))},zt=function(e){var t=Ct(e),n=S(t),i=jt(t),o=function(t,r){var n=St(r.getData(),"source");t.source!==n.source&&(kt(v,e)({url:n.source,html:""}),bt.getEmbedHtml(e,n).then(kt(v,e)).catch(Ot(e)))},a=function(t){var r=St(t.getData()),n=At(e,r.embed);t.setData(jt(n))},c=function(t,n){var i=St(t.getData(),n),o=lt(e,i);t.setData(jt(r(r({},i),{embed:o})))},u=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=M.hasDimensions(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:x([u,s])},m={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[m]},f=[];M.hasAltSource(e)&&f.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),M.hasPoster(e)&&f.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var h={title:"Advanced",name:"advanced",items:f},p=[l,d];f.length>0&&p.push(h);var g={type:"tabpanel",tabs:p},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var r=St(t.getData());Pt(n.get(),r,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(n.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":c(e,t.name)}n.set(St(e.getData()))},initialData:i})},Ft={showDialog:zt,unwrap:St},$t=function(e){var t=function(){Ft.showDialog(e)};return{showDialog:t}},Mt={get:$t},Et=function(e){var t=function(){Ft.showDialog(e)};e.addCommand("mceMedia",t)},Nt={register:Et},Ut=tinymce.util.Tools.resolve("tinymce.html.Node"),Ht=tinymce.util.Tools.resolve("tinymce.Env"),Rt=function(e,t){if(M.shouldFilterHtml(e)===!1)return t;var r,n=G();return U({validate:!1,allow_conditional_comments:!1,comment:function(e){n.comment(e)},cdata:function(e){n.cdata(e)},text:function(e,t){n.text(e,t)},start:function(t,i,o){if(r=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var c=i[a].name;0===c.indexOf("on")&&(delete i.map[c],i.splice(a,1)),"style"===c&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}n.start(t,i,o),r=!1}},end:function(e){r||n.end(e)}},W({})).parse(t),n.getContent()},Lt={sanitize:Rt},It=function(e,t){var r,n=t.name;return r=new Ut("img",1),r.shortEnded=!0,Bt(e,t,r),r.attr({width:t.attr("width")||"300",height:t.attr("height")||("audio"===n?"30":"150"),style:t.attr("style"),src:Ht.transparentSrc,"data-mce-object":n,"class":"mce-object mce-object-"+n}),r},qt=function(e,t){var r,n,i,o=t.name;return r=new Ut("span",1),r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":o,"class":"mce-preview-object mce-object-"+o}),Bt(e,t,r),n=new Ut(o,1),n.attr({src:t.attr("src"),allowfullscreen:t.attr("allowfullscreen"),style:t.attr("style"),"class":t.attr("class"),width:t.attr("width"),height:t.attr("height"),frameborder:"0"}),i=new Ut("span",1),i.attr("class","mce-shim"),r.append(n),r.append(i),r},Bt=function(e,t,r){var n,i,o,a,c;for(o=t.attributes,a=o.length;a--;)n=o[a].name,i=o[a].value,"width"!==n&&"height"!==n&&"style"!==n&&(("data"===n||"src"===n)&&(i=e.convertURL(i,n)),r.attr("data-mce-p-"+n,i));c=t.firstChild&&t.firstChild.value,c&&(r.attr("data-mce-html",escape(Lt.sanitize(e,c))),r.firstChild=null)},Vt=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},Wt=function(e){for(;e=e.parent;)if(e.attr("data-ephox-embed-iri")||Vt(e))return!0;return!1},Gt=function(e){return function(t){for(var r,n,i=t.length;i--;)r=t[i],r.parent&&(r.parent.attr("data-mce-object")||("script"!==r.name||(n=H(M.getScripts(e),r.attr("src"))))&&(n&&(n.width&&r.attr("width",n.width.toString()),n.height&&r.attr("height",n.height.toString())),"iframe"===r.name&&M.hasLiveEmbeds(e)&&Ht.ceFalse?Wt(r)||r.replace(qt(e,r)):Wt(r)||r.replace(It(e,r))))}},Jt={createPreviewIframeNode:qt,createPlaceholderNode:It,placeHolderConverter:Gt},Kt=function(e){e.on("preInit",function(){var t=e.schema.getSpecialElements();E.each("video audio iframe object".split(" "),function(e){t[e]=new RegExp(""+e+"[^>]*>","gi")});var r=e.schema.getBoolAttrs();E.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(e){r[e]={}}),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Jt.placeHolderConverter(e)),e.serializer.addAttributeFilter("data-mce-object",function(t,r){for(var n,i,o,a,c,u,s,l,m=t.length;m--;)if(n=t[m],n.parent){for(s=n.attr(r),i=new Ut(s,1),"audio"!==s&&"script"!==s&&(l=n.attr("class"),i.attr(l&&-1!==l.indexOf("mce-preview-object")?{width:n.firstChild.attr("width"),height:n.firstChild.attr("height")}:{width:n.attr("width"),height:n.attr("height")})),i.attr({style:n.attr("style")}),a=n.attributes,o=a.length;o--;){var d=a[o].name;0===d.indexOf("data-mce-p-")&&i.attr(d.substr(11),a[o].value)}"script"===s&&i.attr("type","text/javascript"),c=n.attr("data-mce-html"),c&&(u=new Ut("#text",3),u.raw=!0,u.value=Lt.sanitize(e,unescape(c)),i.append(u)),n.replace(i)}})}),e.on("SetContent",function(){e.$("span.mce-preview-object").each(function(t,r){var n=e.$(r);0===n.find("span.mce-shim").length&&n.append(' ')})})},Qt={setup:Kt},Xt=function(e){e.on("ResolveName",function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)})},Yt={setup:Xt},Zt=function(e){e.on("click keyup touchend",function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")}),e.on("ObjectSelected",function(e){var t=e.target.getAttribute("data-mce-object");("audio"===t||"script"===t)&&e.preventDefault()}),e.on("ObjectResized",function(e){var t,r=e.target;r.getAttribute("data-mce-object")&&(t=r.getAttribute("data-mce-html"),t&&(t=unescape(t),r.setAttribute("data-mce-html",escape(et.updateHtml(t,{width:String(e.width),height:String(e.height)})))))})},er={setup:Zt},tr=function(e,t){return function(r){return e.selection.selectorChangedWithUnbind(t.join(","),r.setActive).unbind}},rr=function(e){e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:function(){e.execCommand("mceMedia")},onSetup:tr(e,["img[data-mce-object]","span[data-mce-object]","div[data-ephox-embed-iri]"])}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:function(){e.execCommand("mceMedia")}})},nr={register:rr};e()}()});
+;/*!node_modules/tinymce/plugins/media/index.js*/
+amis.define("node_modules/tinymce/plugins/media/index",function(e){e("node_modules/tinymce/plugins/media/plugin")});
+;/*!node_modules/tinymce/plugins/table/plugin.js*/
+amis.define("node_modules/tinymce/plugins/table/plugin",function(){!function(e){"use strict";function t(e){for(var t=[],n=1;n=r||null===r){var o=en(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return Y(t,function(t,n){var r=en(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o},0)},u=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:u}}function u(e){var t=function(t){return e(t).isRtl()?Qa.rtl:Qa.ltr},n=function(e,n){return t(n).delta(e,n)},r=function(e,n){return t(n).positions(e,n)},o=function(e){return t(e).edge(e)};return{delta:n,edge:o,positions:r}}function a(){var e=A.none(),t=function(){e=A.none()},n=function(t,n){var r=e.map(function(e){return t.compare(e,n)});return e=A.some(n),r},r=function(e,t){var r=t.extract(e);r.each(function(e){var r=n(t,e);r.each(function(e){o.trigger.move(e)})})},o=dg.create({move:fg(["info"])});return{onEvent:r,reset:t,events:o.registry}}function c(){return{onEvent:p,reset:p}}function l(){var e=c(),t=a(),n=e,r=function(){n.reset(),n=t},o=function(){n.reset(),n=e},i=function(e,t){n.onEvent(e,t)},u=function(){return n===t};return{on:r,off:o,isOn:u,onEvent:i,events:t.events}}function f(e,t,n,r){var o=A.none(),i=function(){o=A.none()},u=function(e){r.clear(t),o=Db(e.target(),n)},a=function(i){o.each(function(o){r.clearBeforeUpdate(t),Db(i.target(),n).each(function(i){gu.identify(o,i,n).each(function(n){var u=n.boxes().getOr([]);(u.length>1||1===u.length&&!ur(o,i))&&(r.selectRange(t,u,n.start(),n.finish()),e.selectContents(i))})})})},c=function(){o.each(i)};return{mousedown:u,mouseover:a,mouseup:c}}function s(e,t,n){var r=ht(["mousedown","mouseover","mouseup","keyup","keydown"],[]),o=A.none(),i=Td(e),u=function(t,r,o){n.targets().each(function(n){var u=yo.table(r);u.each(function(u){var a=Gt.fromDom(e.getDoc()),c=ci.cellOperations(p,a,i),l=nw.getOtherCells(u,n,c);Id(e,t,r,o,l)})})},a=function(){Nd(e)},c=Qb.byAttr(Tu,u,a);e.on("init",function(){var n=e.getWin(),i=Ks(e),u=Js(e),a=function(){var t=e.selection,n=Gt.fromDom(t.getStart()),r=Gt.fromDom(t.getEnd()),o=ou.sharedOne(yo.table,[n,r]);o.fold(function(){c.clear(i)},p)},l=Gb.mouse(n,i,u,c),f=Gb.keyboard(n,i,u,c),s=Gb.external(n,i,u,c),d=function(e){return e.raw().shiftKey===!0};e.on("TableSelectorChange",function(e){s(e.start,e.finish)});var m=function(t,r){d(t)&&(r.kill()&&t.kill(),r.selection().each(function(t){var r=Rp.relative(t.start(),t.finish()),o=Lp(n,r);e.selection.setRng(o)}))},h=function(t){var n=Cg(t);if(n.raw().shiftKey&&Wb.isNavigation(n.raw().which)){var r=e.selection.getRng(),o=Gt.fromDom(r.startContainer),i=Gt.fromDom(r.endContainer);f.keyup(n,o,r.startOffset,i,r.endOffset).each(function(e){m(n,e)})}},v=function(n){var r=Cg(n);t().each(function(e){e.hideBars()});var o=e.selection.getRng(),i=Gt.fromDom(e.selection.getStart()),u=Gt.fromDom(o.startContainer),a=Gt.fromDom(o.endContainer),c=id.directionAt(i).isRtl()?Wb.rtl:Wb.ltr;f.keydown(r,u,o.startOffset,a,o.endOffset,c).each(function(e){m(r,e)}),t().each(function(e){e.showBars()})},b=function(e){return 0===e.button},w=function(e){return void 0===e.buttons?!0:Im.browser.isEdge()&&0===e.buttons?!0:0!==(1&e.buttons)},y=function(e){b(e)&&rw(e)&&l.mousedown(Cg(e))},C=function(e){w(e)&&rw(e)&&l.mouseover(Cg(e))},S=function(e){b(e)&&rw(e)&&l.mouseup(Cg(e))},x=function(){var e=g(Gt.fromDom(i)),t=g(0),n=function(n){var r=Gt.fromDom(n.target);if("td"===Ct(r)||"th"===Ct(r)){var o=e.get(),i=t.get();ur(o,r)&&n.timeStamp-i<300&&(n.preventDefault(),s(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},R=x();e.on("mousedown",y),e.on("mouseover",C),e.on("mouseup",S),e.on("touchend",R.touchEnd),e.on("keyup",h),e.on("keydown",v),e.on("NodeChange",a),o=A.some(r({mousedown:y,mouseover:C,mouseup:S,keyup:h,keydown:v}))});var l=function(){o.each(function(){})};return{clear:c.clear,destroy:l}}function d(e){var t=ow(e),n=iw(e,t),r=Zg(e),o=s(e,r.lazyResize,n),i=jd(e,r.lazyWire),u=g(A.none());return ig.registerCommands(e,i,o,t,u),qu.registerEvents(e,t,i,o),fw.addMenuItems(e,n),cw.addButtons(e,n),cw.addToolbars(e),e.on("PreInit",function(){e.serializer.addTempAttr(Tu.firstSelected()),e.serializer.addTempAttr(Tu.lastSelected())}),dd(e)&&e.on("keydown",function(t){Ph.handle(t,e,i,r.lazyWire)}),e.on("remove",function(){r.destroy(),o.destroy()}),mw(e,u,r,n)}function m(){D.add("table",d)}var g=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return g(n())};return{get:n,set:r,clone:o}},p=function(){},h=function(e,t){return function(){for(var n=[],r=0;r-1},z=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return!0}return!1},F=function(e,t){for(var n=e.length,r=new Array(n),o=0;n>o;o++){var i=e[o];r[o]=t(i,o)}return r},U=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},V=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},q=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},G=function(e,t,n){return V(e,function(e){n=t(n,e)}),n},Y=function(e,t,n){return U(e,function(e){n=t(n,e)}),n},K=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return A.some(o)}return A.none()},X=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return A.some(n)}return A.none()},$=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!N(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},J=function(e,t){return $(F(e,t))},Q=function(e,t){for(var n=0,r=e.length;r>n;++n){var o=e[n];if(t(o,n)!==!0)return!1}return!0},Z=function(e){var t=W.call(e,0);return t.reverse(),t},et=function(e){return 0===e.length?A.none():A.some(e[e.length-1])},tt=(P(Array.from)?Array.from:function(e){return W.call(e)},function(e,t){for(var n=0;nr;r++){var i=n[r],u=e[i];t(u,i)}},it=function(e,t){return ut(e,function(e,n){return{k:n,v:t(e,n)}})},ut=function(e,t){var n={};return ot(e,function(e,r){var o=t(e,r);n[o.k]=o.v}),n},at=function(e,t){return ct(e,t)?A.from(e[t]):A.none()},ct=function(e,t){return rt.call(e,t)},lt=function(){for(var e=[],t=0;t0&&dt(u);var a={};return U(e,function(e){a[e]=v(r[e])}),U(t,function(e){a[e]=v(Object.prototype.hasOwnProperty.call(r,e)?A.some(r[e]):A.none())}),a}},vt=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE),bt=e.Node.DOCUMENT_NODE,wt=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),yt=e.Node.TEXT_NODE,Ct=(e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,"undefined"!=typeof e.window?e.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),St=function(e){return e.dom().nodeType},xt=function(e){return function(t){return St(t)===e}},Rt=function(e){return St(e)===vt||"#comment"===Ct(e)},Tt=xt(wt),Ot=xt(yt),At=function(t,n,r){if(!(I(r)||k(r)||M(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},Dt=function(e,t,n){At(e.dom(),t,n)},Et=function(e,t){var n=e.dom();ot(t,function(e,t){At(n,t,e)})},Bt=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},It=function(e,t){var n=e.dom();return n&&n.hasAttribute?n.hasAttribute(t):!1},Nt=function(e,t){e.dom().removeAttribute(t)},kt=function(e){return Y(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},Pt=function(e,t,n){if(""===t)return!0;if(e.length1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Vt(o.childNodes[0])},Ft=function(t,n){var r=n||e.document,o=r.createElement(t);return Vt(o)},Ut=function(t,n){var r=n||e.document,o=r.createTextNode(t);return Vt(o)},Vt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:v(e)}},qt=function(e,t,n){var r=e.dom();return A.from(r.elementFromPoint(t,n)).map(Vt)},Gt={fromHtml:zt,fromTag:Ft,fromText:Ut,fromDom:Vt,fromPoint:qt},Yt=function(e){var t=Ot(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Kt=jt(function(){return Xt(Gt.fromDom(e.document))}),Xt=function(e){var t=e.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Gt.fromDom(t)},$t=function(t,n,r){if(!I(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);Ht(t)&&t.style.setProperty(n,r)},Jt=function(e,t){Ht(e)&&e.style.removeProperty(t)},Qt=function(e,t,n){var r=e.dom();$t(r,t,n)},Zt=function(e,t){var n=e.dom();ot(t,function(e,t){$t(n,t,e)})},en=function(t,n){var r=t.dom(),o=e.window.getComputedStyle(r),i=o.getPropertyValue(n),u=""!==i||Yt(t)?i:tn(r,n);return null===u?void 0:u},tn=function(e,t){return Ht(e)?e.style.getPropertyValue(t):""},nn=function(e,t){var n=e.dom(),r=tn(n,t);return A.from(r).filter(function(e){return e.length>0})},rn=function(e,t){var n=e.dom();Jt(n,t),It(e,"style")&&""===Lt(Bt(e,"style"))&&Nt(e,"style")},on=function(e,t){var n=e.dom(),r=t.dom();Ht(n)&&Ht(r)&&(r.style.cssText=n.style.cssText)},un=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},an=function(t,n){return un(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},cn=function(t,n){return un(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},ln={documentPositionPreceding:an,documentPositionContainedBy:cn},fn=function(){return fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fn.apply(this,arguments)},sn=function(e,t){for(var n=0;n0&&Or(e,t),Br(e)},Nr=(lt("width","height"),lt("width","height"),lt("rows","columns")),kr=lt("row","column"),Pr=(lt("x","y"),lt("element","rowspan","colspan")),Mr=lt("element","rowspan","colspan","isNew"),Wr=lt("element","rowspan","colspan","row","column"),_r=lt("element","cells","section"),Lr=lt("element","isNew"),Hr=lt("element","cells","section","isNew"),jr=lt("cells","section"),zr=lt("details","section"),Fr=lt("startRow","startCol","finishRow","finishCol"),Ur=function(e,t,n){return q(pr(e,n),t)},Vr=function(e,t){return q(br(e),t)},qr=function(e,t){var n=[];return U(br(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(qr(e,t))}),n},Gr=function(e,t,n){return Ur(e,function(e){return nr(e,t)},n)},Yr=function(e,t){return Vr(e,function(e){return nr(e,t)})},Kr=function(e,t){return or(t,e)},Xr=function(e,t,n){for(var r=e.dom(),o=P(n)?n:v(!1);r.parentNode;){r=r.parentNode;var i=Gt.fromDom(r);if(t(i))return A.some(i);if(o(i))break}return A.none()},$r=function(e,t,r){var o=function(e,t){return t(e)};return n(o,Xr,e,t,r)},Jr=function(e,t){var n=function(e){return t(Gt.fromDom(e))},r=K(e.dom().childNodes,n);return r.map(Gt.fromDom)},Qr=function(e,t){var n=function(e){for(var r=0;r0?A.some(r[0]):A.none()},Ao=function(e,t){var n=J(e.all(),function(e){return e.cells()});return q(n,t)},Do=function(e){var t={},n=[],r=e.length,o=0;U(e,function(e,r){var i=[];U(e.cells(),function(e){for(var n=0;void 0!==t[Ro(r,n)];)n++;for(var u=Wr(e.element(),e.rowspan(),e.colspan(),r,n),a=0;an?o=n:r>u&&(u=r),i>c?i=c:l>a&&(a=l)}}),Io(o,i,u,a)},ko=function(e,t,n){var r=e[n].element(),o=Gt.fromTag("td");Rr(o,Gt.fromTag("br"));var i=t?Rr:xr;i(r,o)},Po=function(e,t,n,r){for(var o=t.grid().columns(),i=t.grid().rows(),u=0;i>u;u++)for(var a=!1,c=0;o>c;c++)if(!(un.maxRow()||cn.maxCol())){var l=Bo.getAt(t,u,c).filter(r).isNone();l?ko(e,a,u):a=!0}},Mo=function(e,t){var n=q(io.firstLayer(e,"tr"),function(e){return 0===e.dom().childElementCount});U(n,Br),(t.minCol()===t.maxCol()||t.minRow()===t.maxRow())&&U(io.firstLayer(e,"th,td"),function(e){Nt(e,"rowspan"),Nt(e,"colspan")}),Nt(e,"width"),Nt(e,"height"),rn(e,"width"),rn(e,"height")},Wo=function(e,t){var n=function(e){return nr(e.element(),t)},r=xo.fromTable(e),o=Bo.generate(r),i=No(o,n),u="th:not("+t+"),td:not("+t+")",a=io.filterFirstLayer(e,"th,td",function(e){return nr(e,u)});return U(a,Br),Po(r,o,i,n),Mo(e,i),e},_o={extract:Wo},Lo=" ",Ho=r(Ot,"text"),jo=function(e){return Ho.get(e)},zo=function(e){return Ho.getOption(e)},Fo=function(e,t){Ho.set(e,t)},Uo=function(e){return"img"===Ct(e)?1:zo(e).fold(function(){return br(e).length},function(e){return e.length})},Vo=function(e){return zo(e).filter(function(e){return 0!==e.trim().length||e.indexOf(Lo)>-1}).isSome()},qo=["img","br"],Go=function(e){var t=Vo(e);return t||j(qo,Ct(e))},Yo=function(e){return Qr(e,Go)},Ko=function(e){return Xo(e,Go)},Xo=function(e,t){var n=function(e){for(var r=br(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return A.some(i);var u=n(i);if(u.isSome())return u}return A.none()};return n(e)},$o=function(e,t){return Gt.fromDom(e.dom().cloneNode(t))},Jo=function(e){return $o(e,!1)},Qo=function(e){return $o(e,!0)},Zo=function(e,t){var n=Gt.fromTag(t),r=kt(e);return Et(n,r),n},ei=function(e,t){var n=Zo(e,t),r=br(Qo(e));return Dr(n,r),n},ti=function(){var e=Gt.fromTag("td");return Rr(e,Gt.fromTag("br")),e},ni=function(e,t,n){var r=ei(e,t);return ot(n,function(e,t){null===e?Nt(r,t):Dt(r,t,e)}),r},ri=function(e){return e},oi=function(e){return function(){return Gt.fromTag("tr",e.dom())}},ii=function(e,t,n){var r=Yo(e);return r.map(function(r){var o=n.join(","),i=Gr(r,o,function(t){return ur(t,e)});return G(i,function(e,t){var n=Jo(t);return Nt(n,"contenteditable"),Rr(e,n),n},t)}).getOr(t)},ui=function(e,t,n){var r=function(t){var r=dr(t.element()),o=Gt.fromTag(Ct(t.element()),r.dom()),i=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),u=i.length>0?ii(t.element(),o,i):o;return Rr(u,Gt.fromTag("br")),on(t.element(),o),rn(o,"height"),1!==t.colspan()&&rn(t.element(),"width"),e(t.element(),o),o};return{row:oi(t),cell:r,replace:ni,gap:ti}},ai=function(e){return{row:oi(e),cell:ti,replace:ri,gap:ti}},ci={cellOperations:ui,paste:ai},li=function(t,n){var r=n||e.document,o=r.createElement("div");return o.innerHTML=t,br(Gt.fromDom(o))},fi=function(e,t){var n=t.column(),r=t.column()+t.colspan()-1,o=t.row(),i=t.row()+t.rowspan()-1;return n<=e.finishCol()&&r>=e.startCol()&&o<=e.finishRow()&&i>=e.startRow()},si=function(e,t){return t.column()>=e.startCol()&&t.column()+t.colspan()-1<=e.finishCol()&&t.row()>=e.startRow()&&t.row()+t.rowspan()-1<=e.finishRow()},di=function(e,n){for(var r=!0,o=t(si,n),i=n.startRow();i<=n.finishRow();i++)for(var u=n.startCol();u<=n.finishCol();u++)r=r&&Bo.getAt(e,i,u).exists(o);return r?A.some(n):A.none()},mi={inSelection:fi,isWithin:si,isRectangular:di},gi=function(e,t){return Fr(Math.min(e.row(),t.row()),Math.min(e.column(),t.column()),Math.max(e.row()+e.rowspan()-1,t.row()+t.rowspan()-1),Math.max(e.column()+e.colspan()-1,t.column()+t.colspan()-1))},pi=function(e,t,n){var r=Bo.findItem(e,t,ur),o=Bo.findItem(e,n,ur);return r.bind(function(e){return o.map(function(t){return gi(e,t)})})},hi=function(e,t,n){return pi(e,t,n).bind(function(t){return mi.isRectangular(e,t)})},vi={getAnyBox:pi,getBox:hi},bi=function(e,t,n,r){return Bo.findItem(e,t,ur).bind(function(t){var o=n>0?t.row()+t.rowspan()-1:t.row(),i=r>0?t.column()+t.colspan()-1:t.column(),u=Bo.getAt(e,o+n,i+r);return u.map(function(e){return e.element()})})},wi=function(e,n,r){return vi.getAnyBox(e,n,r).map(function(n){var r=Bo.filterItems(e,t(mi.inSelection,n));return F(r,function(e){return e.element()})})},yi=function(e,t){var n=function(e,t){return fr(t,e)};return Bo.findItem(e,t,n).map(function(e){return e.element()})},Ci={moveBy:bi,intercepts:wi,parentCell:yi},Si=function(e,t,n){return yo.table(e).bind(function(r){var o=Oi(r);return Ci.moveBy(o,e,t,n)})},xi=function(e,t,n){var r=Oi(e);return Ci.intercepts(r,t,n)},Ri=function(e,t,n,r,o){var i=Oi(e),u=ur(e,n)?A.some(t):Ci.parentCell(i,t),a=ur(e,o)?A.some(r):Ci.parentCell(i,r);return u.bind(function(e){return a.bind(function(t){return Ci.intercepts(i,e,t)})})},Ti=function(e,t,n){var r=Oi(e);return vi.getBox(r,t,n)},Oi=function(e){var t=xo.fromTable(e);return Bo.generate(t)},Ai={moveBy:Si,intercepts:xi,nestedIntercepts:Ri,getBox:Ti},Di=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Ei=lt("left","right"),Bi=lt("first","second","splits"),Ii=function(e,n,r){var o=e.property().children(n),i=X(o,t(e.eq,r));return i.map(function(e){return{before:v(o.slice(0,e)),after:v(o.slice(e+1))}})},Ni=function(e,t,n){return Ii(e,t,n).map(function(n){var r=e.create().clone(t);return e.insert().appendAll(r,n.after()),e.insert().after(t,r),Ei(t,r)})},ki=function(e,t,n){return Ii(e,t,n).map(function(r){var o=e.create().clone(t);return e.insert().appendAll(o,r.before().concat([n])),e.insert().appendAll(t,r.after()),e.insert().before(t,o),Ei(o,t)})},Pi=function(e,t,n,r){var o=function(t,i,u){var a=Bi(t,A.none(),u);return n(t)?Bi(t,i,u):e.property().parent(t).bind(function(i){return r(e,i,t).map(function(e){var t=[{first:e.left,second:e.right}],r=n(i)?i:e.left();
+return o(r,A.some(e.right()),u.concat(t))})}).getOr(a)};return o(t,A.none(),[])},Mi=function(e,t,n,r){var o=n[0],i=n.slice(1);return r(e,t,o,i)},Wi=function(e,t,n){return n.length>0?Mi(e,t,n,_i):A.none()},_i=function(e,t,n,r){var o=t(e,n);return G(r,function(n,r){var o=t(e,r);return Li(e,n,o)},o)},Li=function(e,n,r){return n.bind(function(n){return r.filter(t(e.eq,n))})},Hi=function(e,n){return t(e.eq,n)},ji=function(e,t,n,r){var o=e.property().children(t);if(e.eq(t,n[0]))return A.some([n[0]]);if(e.eq(t,r[0]))return A.some([r[0]]);var i=function(n){var r=Z(n),i=X(r,Hi(e,t)).getOr(-1),u=i0?u[u.length-1]:t;return A.some(uu.create({boxes:Ai.nestedIntercepts(o,e,o,t,i),start:e,finish:a}))}if(fr(i,o)){var u=Gr(e,"td,th",r(i)),c=u.length>0?u[u.length-1]:e;return A.some(uu.create({boxes:Ai.nestedIntercepts(i,e,o,t,i),start:e,finish:c}))}return ou.ancestors(e,t).shared().bind(function(u){return no(u,"table",n).bind(function(n){var u=Gr(t,"td,th",r(n)),a=u.length>0?u[u.length-1]:t,c=Gr(e,"td,th",r(n)),l=c.length>0?c[c.length-1]:e;return A.some(uu.create({boxes:Ai.nestedIntercepts(n,e,o,t,i),start:l,finish:a}))})})})})},lu=function(e,t){var n=Kr(e,t);return n.length>0?A.some(n):A.none()},fu=function(e,t){return K(e,function(e){return nr(e,t)})},su=function(e,t,n){return to(e,t).bind(function(t){return to(e,n).bind(function(e){return ou.sharedOne(au,[t,e]).map(function(n){return{first:v(t),last:v(e),table:v(n)}})})})},du=function(e,t){return Zr(e,"table").bind(function(n){return to(n,t).bind(function(t){return cu(t,e).bind(function(e){return e.boxes().map(function(t){return{boxes:v(t),start:v(e.start()),finish:v(e.finish())}})})})})},mu=function(e,t,n,r,o){return fu(e,o).bind(function(e){return Ai.moveBy(e,t,n).bind(function(e){return du(e,r)})})},gu={identify:cu,retrieve:lu,shiftSelection:mu,getEdges:su},pu=function(e,t){return gu.retrieve(e,t)},hu=function(e,t,n){return gu.getEdges(e,t,n).bind(function(t){var n=function(t){return ur(e,t)},r=Zr(t.first(),"thead,tfoot,tbody,table",n),o=Zr(t.last(),"thead,tfoot,tbody,table",n);return r.bind(function(e){return o.bind(function(n){return ur(e,n)?Ai.getBox(t.table(),t.first(),t.last()):A.none()})})})},vu={retrieve:pu,retrieveBox:hu},bu="data-mce-selected",wu="td["+bu+"],th["+bu+"]",yu="["+bu+"]",Cu="data-mce-first-selected",Su="td["+Cu+"],th["+Cu+"]",xu="data-mce-last-selected",Ru="td["+xu+"],th["+xu+"]",Tu={selected:v(bu),selectedSelector:v(wu),attributeSelector:v(yu),firstSelected:v(Cu),firstSelectedSelector:v(Su),lastSelected:v(xu),lastSelectedSelector:v(Ru)},Ou=function(t){if(!N(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return U(t,function(o,i){var u=nt(o);if(1!==u.length)throw new Error("one and only one name per case");var a=u[0],c=o[a];if(void 0!==r[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!N(c))throw new Error("case arguments must be an array");n.push(a),r[a]=function(){var r=arguments.length;if(r!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+r);for(var o=new Array(r),u=0;u1||It(e,"colspan")&&parseInt(Bt(e,"colspan"),10)>1},r=Iu(e,t);return r.length>0&&Q(r,n)?A.some(r):A.none()},ku=function(e,t){return Bu.cata(t.get(),A.none,function(t){return 0===t.length?A.none():vu.retrieveBox(e,Tu.firstSelectedSelector(),Tu.lastSelectedSelector()).bind(function(e){return t.length>1?A.some({bounds:v(e),cells:v(t)}):A.none()})},A.none)},Pu={mergable:ku,unmergable:Nu,selection:Iu},Mu=function(e){return{element:v(e),mergable:A.none,unmergable:A.none,selection:v([e])}},Wu=function(e,t,n){return{element:v(n),mergable:v(Pu.mergable(t,e)),unmergable:v(Pu.unmergable(n,e)),selection:v(Pu.selection(n,e))}},_u=function(e){return Mu(e)},Lu=lt("element","clipboard","generators"),Hu=function(e,t,n,r,o){return{element:v(n),mergable:A.none,unmergable:A.none,selection:v(Pu.selection(n,e)),clipboard:v(r),generators:v(o)}},ju={noMenu:Mu,forMenu:Wu,notCell:_u,paste:Lu,pasteRows:Hu},zu=function(e){return yo.table(e[0]).map(Qo).map(function(e){return[_o.extract(e,Tu.attributeSelector())]})},Fu=function(e,t){return F(t,function(t){return e.selection.serializer.serialize(t.dom(),{})}).join("")},Uu=function(e){return F(e,function(e){return e.dom().innerText}).join("")},Vu=function(e,t,n,r){e.on("BeforeGetContent",function(n){var r=function(t){n.preventDefault(),zu(t).each(function(t){n.content="text"===n.format?Uu(t):Fu(e,t)})};n.selection===!0&&Bu.cata(t.get(),p,r,p)}),e.on("BeforeSetContent",function(t){if(t.selection===!0&&t.paste===!0){var o=A.from(e.dom.getParent(e.selection.getStart(),"th,td"));o.each(function(o){var i=Gt.fromDom(o);yo.table(i).each(function(o){var u=q(li(t.content),function(e){return"meta"!==Ct(e)});if(1===u.length&&"table"===Ct(u[0])){t.preventDefault();var a=Gt.fromDom(e.getDoc()),c=ci.paste(a),l=ju.paste(i,u[0],c);n.pasteCells(o,l).each(function(t){e.selection.setRng(t),e.focus(),r.clear(o)})}})})}})},qu={registerEvents:Vu},Gu=i("height",function(e){var t=e.dom();return Yt(e)?t.getBoundingClientRect().height:t.offsetHeight}),Yu=function(e){return Gu.get(e)},Ku=function(e){return Gu.getOuter(e)},Xu=i("width",function(e){return e.dom().offsetWidth}),$u=function(e){return Xu.get(e)},Ju=function(e){return Xu.getOuter(e)},Qu=Zn(),Zu=function(){return Qu.browser.isIE()||Qu.browser.isEdge()},ea=function(e,t){var n=parseFloat(e);return isNaN(n)?t:n},ta=function(e,t,n){return ea(en(e,t),n)},na=function(e){var t=ta(e,"padding-top",0),n=ta(e,"padding-bottom",0),r=ta(e,"border-top-width",0),o=ta(e,"border-bottom-width",0),i=e.dom().getBoundingClientRect().height,u=en(e,"box-sizing"),a=r+o;return"border-box"===u?i:i-t-n-a},ra=function(e){return ta(e,"width",$u(e))},oa=function(e){return Zu()?na(e):ta(e,"height",Yu(e))},ia={getWidth:ra,getHeight:oa},ua=/(\d+(\.\d+)?)(\w|%)*/,aa=/(\d+(\.\d+)?)%/,ca=/(\d+(\.\d+)?)px|em/,la=function(e,t){Qt(e,"width",t+"px")},fa=function(e,t){Qt(e,"width",t+"%")},sa=function(e,t){Qt(e,"height",t+"px")},da=function(e){return nn(e,"height").getOrThunk(function(){return ia.getHeight(e)+"px"})},ma=function(e,t,n,r){var o=yo.table(e).map(function(e){var r=n(e);return Math.floor(t/100*r)}).getOr(t);return r(e,o),o},ga=function(e,t,n,r){var o=parseInt(e,10);return _t(e,"%")&&"table"!==Ct(t)?ma(t,o,n,r):o},pa=function(e){var t=da(e);return t?ga(t,e,Yu,sa):Yu(e)},ha=function(e,t,n){var r=n(e),o=va(e,t);return r/o},va=function(e,t){return It(e,t)?parseInt(Bt(e,t),10):1},ba=function(e){var t=nn(e,"width");return t.fold(function(){return A.from(Bt(e,"width"))},function(e){return A.some(e)})},wa=function(e,t){return e/t.pixelWidth()*100},ya=function(e,t,n){var r=aa.exec(t);if(null!==r)return parseFloat(r[1]);var o=$u(e);return wa(o,n)},Ca=function(e,t){var n=ba(e);return n.fold(function(){var n=$u(e);return wa(n,t)},function(n){return ya(e,n,t)})},Sa=function(e,t){return e/100*t.pixelWidth()},xa=function(e,t,n){var r=ca.exec(t);if(null!==r)return parseInt(r[1],10);var o=aa.exec(t);if(null!==o){var i=parseFloat(o[1]);return Sa(i,n)}return $u(e)},Ra=function(e,t){var n=ba(e);return n.fold(function(){return $u(e)},function(n){return xa(e,n,t)})},Ta=function(e){return ha(e,"rowspan",pa)},Oa=function(e){var t=ba(e);return t.bind(function(e){var t=ua.exec(e);return null!==t?A.some({width:v(parseFloat(t[1])),unit:v(t[3])}):A.none()})},Aa=function(e,t,n){Qt(e,"width",t+n)},Da={percentageBasedSizeRegex:v(aa),pixelBasedSizeRegex:v(ca),setPixelWidth:la,setPercentageWidth:fa,setHeight:sa,getPixelWidth:Ra,getPercentageWidth:Ca,getGenericWidth:Oa,setGenericWidth:Aa,getHeight:Ta,getRawWidth:ba},Ea=function(e,t){var n=Da.getGenericWidth(e);n.each(function(n){var r=n.width()/2;Da.setGenericWidth(e,r,n.unit()),Da.setGenericWidth(t,r,n.unit())})},Ba={halve:Ea},Ia=function(e,t){var n=function(n,r){return Ia(e+n,t+r)};return{left:v(e),top:v(t),translate:n}},Na=Ia,ka=function(e){var t=e.getBoundingClientRect();return Na(t.left,t.top)},Pa=function(e,t){return void 0!==e?e:void 0!==t?t:0},Ma=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Na(n.offsetLeft,n.offsetTop);var i=Pa(r.pageYOffset,o.scrollTop),u=Pa(r.pageXOffset,o.scrollLeft),a=Pa(o.clientTop,n.clientTop),c=Pa(o.clientLeft,n.clientLeft);return Wa(e).translate(u-c,i-a)},Wa=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?Na(r.offsetLeft,r.offsetTop):Yt(e)?ka(t):Na(0,0)},_a=lt("row","y"),La=lt("col","x"),Ha=function(e){var t=Ma(e);return t.left()+Ju(e)},ja=function(e){return Ma(e).left()},za=function(e,t){return La(e,ja(t))},Fa=function(e,t){return La(e,Ha(t))},Ua=function(e){return Ma(e).top()},Va=function(e,t){return _a(e,Ua(t))},qa=function(e,t){return _a(e,Ua(t)+Ku(t))},Ga=function(e,t,n){if(0===n.length)return[];var r=F(n.slice(1),function(t,n){return t.map(function(t){return e(n,t)})}),o=n[n.length-1].map(function(e){return t(n.length-1,e)});return r.concat([o])},Ya=function(e){return-e},Ka={delta:b,positions:function(e){return Ga(Va,qa,e)},edge:Ua},Xa={delta:b,edge:ja,positions:function(e){return Ga(za,Fa,e)}},$a={delta:Ya,edge:Ha,positions:function(e){return Ga(Fa,za,e)}},Ja={height:Ka,rtl:$a,ltr:Xa},Qa={ltr:Ja.ltr,rtl:Ja.rtl},Za=function(e){var t=xo.fromTable(e),n=Bo.generate(t);return n.grid()},ec={getGridSize:Za},tc=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r0?o(e,t):i(t)},a=[],c=[],l=[];return U(t,function(e){switch(e.section()){case"thead":a.push(e);break;case"tbody":c.push(e);break;case"tfoot":l.push(e)}}),u(a,"thead"),u(c,"tbody"),u(l,"tfoot"),{newRows:v(n),newCells:v(r)}},oc=function(e){var t=F(e,function(e){var t=Jo(e.element());return U(e.cells(),function(e){var n=Qo(e.element());nc(n,"colspan",e.colspan(),1),nc(n,"rowspan",e.rowspan(),1),Rr(t,n)}),t});return t},ic={render:rc,copy:oc},uc=function(e,t){var n=Bt(e,t);return void 0===n||""===n?[]:n.split(" ")},ac=function(e,t,n){var r=uc(e,t),o=r.concat([n]);return Dt(e,t,o.join(" ")),!0},cc=function(e,t,n){var r=q(uc(e,t),function(e){return e!==n});return r.length>0?Dt(e,t,r.join(" ")):Nt(e,t),!1},lc=function(e){return void 0!==e.dom().classList},fc=function(e){return uc(e,"class")},sc=function(e,t){return ac(e,"class",t)},dc=function(e,t){return cc(e,"class",t)},mc=function(e,t){lc(e)?e.dom().classList.add(t):sc(e,t)},gc=function(e){var t=lc(e)?e.dom().classList:fc(e);0===t.length&&Nt(e,"class")},pc=function(e,t){if(lc(e)){var n=e.dom().classList;n.remove(t)}else dc(e,t);gc(e)},hc=function(e,t){return lc(e)&&e.dom().classList.contains(t)},vc=function(e,t){for(var n=[],r=0;e>r;r++)n.push(t(r));return n},bc=function(e,t){for(var n=[],r=e;t>r;r++)n.push(r);return n},wc=function(e,t){if(0>t||t>=e.length-1)return A.none();var n=e[t].fold(function(){var n=Z(e.slice(0,t));return tt(n,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return A.some({value:e,delta:0})}),r=e[t+1].fold(function(){var n=e.slice(t+1);return tt(n,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return A.some({value:e,delta:1})});return n.bind(function(e){return r.map(function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n})})},yc=function(e){var t=e.grid(),n=bc(0,t.columns()),r=bc(0,t.rows());return F(n,function(t){var n=function(){return J(r,function(n){return Bo.getAt(e,n,t).filter(function(e){return e.column()===t}).fold(v([]),function(e){return[e]})})},o=function(e){return 1===e.colspan()},i=function(){return Bo.getAt(e,0,t)};return Cc(n,o,i)})},Cc=function(e,t,n){var r=e(),o=K(r,t),i=o.orThunk(function(){return A.from(r[0]).orThunk(n)});return i.map(function(e){return e.element()})},Sc=function(e){var t=e.grid(),n=bc(0,t.rows()),r=bc(0,t.columns());return F(n,function(t){var n=function(){return J(r,function(n){return Bo.getAt(e,t,n).filter(function(e){return e.row()===t}).fold(v([]),function(e){return[e]})})},o=function(e){return 1===e.rowspan()},i=function(){return Bo.getAt(e,t,0)};return Cc(n,o,i)})},xc={columns:yc,rows:Sc},Rc=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},Tc=Rc("ephox-snooker"),Oc={resolve:Tc.resolve},Ac=function(e,t,n,r,o){var i=Gt.fromTag("div");return Zt(i,{position:"absolute",left:t-r/2+"px",top:n+"px",height:o+"px",width:r+"px"}),Et(i,{"data-column":e,role:"presentation"}),i},Dc=function(e,t,n,r,o){var i=Gt.fromTag("div");return Zt(i,{position:"absolute",left:t+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),Et(i,{"data-row":e,role:"presentation"}),i},Ec={col:Ac,row:Dc},Bc=Oc.resolve("resizer-bar"),Ic=Oc.resolve("resizer-rows"),Nc=Oc.resolve("resizer-cols"),kc=7,Pc=function(e){var t=Kr(e.parent(),"."+Bc);U(t,Br)},Mc=function(e,t,n){var r=e.origin();U(t,function(t){t.each(function(t){var o=n(r,t);mc(o,Bc),Rr(e.parent(),o)})})},Wc=function(e,t,n,r){Mc(e,t,function(e,t){var o=Ec.col(t.col(),t.x()-e.left(),n.top()-e.top(),kc,r);return mc(o,Nc),o})},_c=function(e,t,n,r){Mc(e,t,function(e,t){var o=Ec.row(t.row(),n.left()-e.left(),t.y()-e.top(),r,kc);return mc(o,Ic),o})},Lc=function(e,t,n,r,o,i){var u=Ma(t),a=n.length>0?o.positions(n,t):[];_c(e,a,u,Ju(t));var c=r.length>0?i.positions(r,t):[];Wc(e,c,u,Ku(t))},Hc=function(e,t,n,r){Pc(e);var o=xo.fromTable(t),i=Bo.generate(o),u=xc.rows(i),a=xc.columns(i);Lc(e,t,u,a,n,r)},jc=function(e,t){var n=Kr(e.parent(),"."+Bc);U(n,t)},zc=function(e){jc(e,function(e){Qt(e,"display","none")})},Fc=function(e){jc(e,function(e){Qt(e,"display","block")})},Uc=function(e){return hc(e,Ic)},Vc=function(e){return hc(e,Nc)},qc={refresh:Hc,hide:zc,show:Fc,destroy:Pc,isRowBar:Uc,isColBar:Vc},Gc=function(e,t,n){var r=e.cells(),o=r.slice(0,t),i=r.slice(t),u=o.concat([n]).concat(i);return Kc(e,u)},Yc=function(e,t,n){var r=e.cells();r[t]=n},Kc=function(e,t){return jr(t,e.section())},Xc=function(e,t){var n=e.cells(),r=F(n,t);return jr(r,e.section())},$c=function(e,t){return e.cells()[t]},Jc=function(e,t){return $c(e,t).element()},Qc=function(e){return e.cells().length},Zc={addCell:Gc,setCells:Kc,mutateCell:Yc,getCell:$c,getCellElement:Jc,mapCells:Xc,cellLength:Qc},el=function(e,t){return F(e,function(e){return Zc.getCell(e,t)})},tl=function(e,t){return e[t]},nl=function(e,t){if(0===e.length)return 0;var n=e[0],r=X(e,function(e){return!t(n.element(),e.element())});return r.fold(function(){return e.length},function(e){return e})},rl=function(e,t,n,r){var o=tl(e,t).cells().slice(n),i=nl(o,r),u=el(e,n).slice(t),a=nl(u,r);return{colspan:v(i),rowspan:v(a)}},ol={subgrid:rl},il=function(e,t){var n=F(e,function(e){return F(e.cells(),function(){return!1})}),r=function(e,t,r,o){for(var i=e;e+r>i;i++)for(var u=t;t+o>u;u++)n[i][u]=!0};return F(e,function(o,i){var u=J(o.cells(),function(o,u){if(n[i][u]===!1){var a=ol.subgrid(e,i,u,t);return r(i,u,a.rowspan(),a.colspan()),[Mr(o.element(),a.rowspan(),a.colspan(),o.isNew())]}return[]});return zr(u,o.section())})},ul=function(e,t,n){for(var r=[],o=0;o0?A.some({cells:r,generators:t.generators,clipboard:t.clipboard}):A.none()},hl=function(e,t){return t.mergable()},vl=function(e,t){return t.unmergable()},bl=function(e,t){var n=F(t.selection(),function(t){return yo.cell(t).bind(function(t){return sl(e,t)})}),r=tc(n);return r.length>0?A.some(r):A.none()},wl=function(e){var t=function(t){return e===t},n=function(){return wl(e)},r=function(){return wl(e)},o=function(t){return wl(t(e))},i=function(){return wl(e)},u=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},l=function(t){return t(e)},f=function(t){return t(e)},s=function(){return A.some(e)};return{is:t,isValue:S,isError:C,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:n,orThunk:r,fold:c,map:o,mapError:i,each:u,bind:a,exists:l,forall:f,toOption:s}},yl=function(e){var t=function(e){return e()},n=function(){return y(String(e))()},r=function(e){return e},o=function(e){return e()},i=function(){return yl(e)},u=function(t){return yl(t(e))},a=function(){return yl(e)},c=function(t){return t(e)};return{is:C,isValue:C,isError:S,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:c,map:i,mapError:u,each:p,bind:a,exists:C,forall:S,toOption:A.none}},Cl=function(e,t){return e.fold(function(){return yl(t)},wl)},Sl={value:wl,error:yl,fromOption:Cl},xl=function(e,t,n){if(e.row()>=t.length||e.column()>Zc.cellLength(t[0]))return Sl.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var r=t.slice(e.row()),o=r[0].cells().slice(e.column()),i=Zc.cellLength(n[0]),u=n.length;return Sl.value({rowDelta:v(r.length-u),colDelta:v(o.length-i)})},Rl=function(e,t){var n=Zc.cellLength(e[0]),r=Zc.cellLength(t[0]);return{rowDelta:v(0),colDelta:v(n-r)}},Tl=function(e,t){return F(e,function(){return Lr(t.cell(),!0)})},Ol=function(e,t,n){return e.concat(vc(t,function(){return Zc.setCells(e[e.length-1],Tl(e[e.length-1].cells(),n))}))},Al=function(e,t,n){return F(e,function(e){return Zc.setCells(e,e.cells().concat(Tl(bc(0,t),n)))})},Dl=function(e,t,n){var r=t.colDelta()<0?Al:b,o=t.rowDelta()<0?Ol:b,i=r(e,Math.abs(t.colDelta()),n),u=o(i,Math.abs(t.rowDelta()),n);return u},El={measure:xl,measureWidth:Rl,tailor:Dl},Bl=function(e,t,n,r){if(0===e.length)return e;for(var o=t.startRow();o<=t.finishRow();o++)for(var i=t.startCol();i<=t.finishCol();i++)Zc.mutateCell(e[o],i,Lr(r(),!1));return e},Il=function(e,t,n,r){for(var o=!0,i=0;i0&&t1&&Zc.cellLength(a)>1&&(r>0&&u(Zc.getCellElement(a,r-1))||r0&&u(Zc.getCellElement(e[n-1],r))||ns;s++)for(var d=u;f>d;d++){Ml(t,s,d,o)&&Pl.unmerge(t,Zc.getCellElement(t[s],d),o,r.cell);var m=Zc.getCellElement(n[s-i],d-u),g=r.replace(m);Zc.mutateCell(t[s],d,Lr(g,!0))}return t},_l=function(e,t,n,r,o){var i=El.measure(e,t,n);return i.map(function(i){var u=El.tailor(t,i,r);return Wl(e,u,n,r,o)})},Ll=function(e,t,n,r,o){Pl.splitRows(t,e,o,r.cell);var i=El.measureWidth(n,t),u=El.tailor(n,i,r),a=El.measureWidth(t,u),c=El.tailor(t,a,r);return c.slice(0,e).concat(u).concat(c.slice(e,c.length))},Hl={merge:_l,insert:Ll},jl=function(e,t,n,r,o){var i=e.slice(0,t),u=e.slice(t),a=Zc.mapCells(e[n],function(n,i){var u=t>0&&t0&&t0})},ql=function(e,t,n){return e.slice(0,t).concat(e.slice(n+1))},Gl={insertRowAt:jl,insertColumnAt:zl,splitCellIntoColumns:Fl,splitCellIntoRows:Ul,deleteRowsAt:ql,deleteColumnsAt:Vl},Yl=function(e,t,n,r){var o=function(e){return z(t,function(t){return n(e.element(),t.element())})};return F(e,function(e){return Zc.mapCells(e,function(e){return o(e)?Lr(r(e.element(),n),!0):e})})},Kl=function(e,t,n,r){return void 0!==Zc.getCellElement(e[t],n)&&t>0&&r(Zc.getCellElement(e[t-1],n),Zc.getCellElement(e[t],n))},Xl=function(e,t,n){return t>0&&n(Zc.getCellElement(e,t-1),Zc.getCellElement(e,t))},$l=function(e,t,n,r){var o=J(e,function(r,o){var i=Kl(e,o,t,n)||Xl(r,t,n);return i?[]:[Zc.getCell(r,t)]});return Yl(e,o,n,r)},Jl=function(e,t,n,r){var o=e[t],i=J(o.cells(),function(r,i){var u=Kl(e,t,i,n)||Xl(o,i,n);return u?[]:[r]});return Yl(e,i,n,r)},Ql={replaceColumn:$l,replaceRow:Jl},Zl=Au.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),ef=fn({},Zl),tf=function(e,t){return 0===e.length?ef.none():1===e.length?ef.only(0):0===t?ef.left(0,1):t===e.length-1?ef.right(t-1,t):t>0&&t=0){var i=Math.max(r.minCellWidth(),o[t]-n);return u(o.slice(0,e)).concat([n,i-o[t]]).concat(u(o.slice(t+1)))}var a=Math.max(r.minCellWidth(),o[e]+n),c=o[e]-a;return u(o.slice(0,e)).concat([a-o[e],c]).concat(u(o.slice(t+1)))},f=l,s=function(e,t,n){return l(t,n)},d=function(e,t){if(n>=0)return u(o.slice(0,t)).concat([n]);var i=Math.max(r.minCellWidth(),o[t]+n);return u(o.slice(0,t)).concat([i-o[t]])};return i.fold(a,c,f,s,d)},rf={determine:nf},of=function(e,t){return It(e,t)&&parseInt(Bt(e,t),10)>1},uf=function(e){return of(e,"colspan")},af=function(e){return of(e,"rowspan")},cf=function(e,t){return parseInt(en(e,t),10)},lf={hasColspan:uf,hasRowspan:af,minWidth:v(10),minHeight:v(10),getInt:cf},ff=function(e,t,n){return nn(e,t).fold(function(){return n(e)+"px"},function(e){return e})},sf=function(e,t){return ff(e,"width",function(e){return Da.getPixelWidth(e,t)})},df=function(e){return ff(e,"height",Da.getHeight)},mf=function(e,t,n,r,o){var i=xc.columns(e),u=F(i,function(e){return e.map(t.edge)});return F(i,function(e,t){var i=e.filter(w(lf.hasColspan));return i.fold(function(){var e=wc(u,t);return r(e)},function(e){return n(e,o)})})},gf=function(e){return e.map(function(e){return e+"px"}).getOr("")},pf=function(e,t,n){return mf(e,t,sf,gf,n)},hf=function(e,t,n){return mf(e,t,Da.getPercentageWidth,function(e){return e.fold(function(){return n.minCellWidth()},function(e){return e/n.pixelWidth()*100})},n)},vf=function(e,t,n){return mf(e,t,Da.getPixelWidth,function(e){return e.getOrThunk(n.minCellWidth)},n)},bf=function(e,t,n,r){var o=xc.rows(e),i=F(o,function(e){return e.map(t.edge)});return F(o,function(e,t){var o=e.filter(w(lf.hasRowspan));return o.fold(function(){var e=wc(i,t);return r(e)},function(e){return n(e)})})},wf=function(e,t){return bf(e,t,Da.getHeight,function(e){return e.getOrThunk(lf.minHeight)})},yf=function(e,t){return bf(e,t,df,gf)},Cf={getRawWidths:pf,getPixelWidths:vf,getPercentageWidths:hf,getPixelHeights:wf,getRawHeights:yf},Sf=function(e,t,n){for(var r=0,o=e;t>o;o++)r+=void 0!==n[o]?n[o]:0;return r},xf=function(e,t){var n=Bo.justCells(e);return F(n,function(e){var n=Sf(e.column(),e.column()+e.colspan(),t);return{element:e.element,width:v(n),colspan:e.colspan}})},Rf=function(e,t){var n=Bo.justCells(e);return F(n,function(e){var n=Sf(e.row(),e.row()+e.rowspan(),t);return{element:e.element,height:v(n),rowspan:e.rowspan}})},Tf=function(e,t){return F(e.all(),function(e,n){return{element:e.element,height:v(t[n])}})},Of={recalculateWidth:xf,recalculateHeight:Rf,matchRowHeight:Tf},Af=function(e,t){var n=parseFloat(e),r=$u(t),o=function(e){return e/r*100},i=function(e){return[100-e]},u=function(){return lf.minWidth()/r*100},a=function(e,t,r){var o=r/100,i=o*n;Da.setPercentageWidth(e,n+i)};return{width:v(n),pixelWidth:v(r),getWidths:Cf.getPercentageWidths,getCellDelta:o,singleColumnWidth:i,minCellWidth:u,setElementWidth:Da.setPercentageWidth,setTableWidth:a}},Df=function(e){var t=b,n=function(e,t){var n=Math.max(lf.minWidth(),e+t);return[n-e]},r=function(e,t){var n=G(t,function(e,t){return e+t},0);Da.setPixelWidth(e,n)};return{width:v(e),pixelWidth:v(e),getWidths:Cf.getPixelWidths,getCellDelta:t,singleColumnWidth:n,minCellWidth:lf.minWidth,setElementWidth:Da.setPixelWidth,setTableWidth:r}},Ef=function(e,t){var n=Da.percentageBasedSizeRegex().exec(t);if(null!==n)return Af(n[1],e);var r=Da.pixelBasedSizeRegex().exec(t);if(null!==r){var o=parseInt(r[1],10);return Df(o)}var i=$u(e);return Df(i)},Bf=function(e){var t=Da.getRawWidth(e);return t.fold(function(){var t=$u(e);return Df(t)},function(t){return Ef(e,t)})},If={getTableSize:Bf},Nf=function(e){return Bo.generate(e)},kf=function(e){return G(e,function(e,t){return e+t},0)},Pf=function(e){var t=xo.fromTable(e);return Nf(t)},Mf=function(e,t,n,r){var o=If.getTableSize(e),i=o.getCellDelta(t),u=Pf(e),a=o.getWidths(u,r,o),c=rf.determine(a,n,i,o),l=F(c,function(e,t){return e+a[t]}),f=Of.recalculateWidth(u,l);U(f,function(e){o.setElementWidth(e.element(),e.width())}),n===u.grid().columns()-1&&o.setTableWidth(e,l,i)},Wf=function(e,t,n,r){var o=Pf(e),i=Cf.getPixelHeights(o,r),u=F(i,function(e,r){return n===r?Math.max(t+e,lf.minHeight()):e}),a=Of.recalculateHeight(o,u),c=Of.matchRowHeight(o,u);U(c,function(e){Da.setHeight(e.element(),e.height())}),U(a,function(e){Da.setHeight(e.element(),e.height())});var l=kf(u);Da.setHeight(e,l)},_f=function(e,t,n){var r=If.getTableSize(e),o=Nf(t),i=r.getWidths(o,n,r),u=Of.recalculateWidth(o,i);U(u,function(e){r.setElementWidth(e.element(),e.width())}),u.length>0&&r.setTableWidth(e,i,r.getCellDelta(0))},Lf={adjustWidth:Mf,adjustHeight:Wf,adjustWidthTo:_f},Hf=function(e,t){return jf(e,t,{validate:P,label:"function"})},jf=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return mt("required",t),pt(t),function(r){var o=nt(r),i=Q(t,function(e){return j(o,e)});i||st(t,o),e(t,o);var u=q(t,function(e){return!n.validate(r[e],e)});return u.length>0&>(u,n.label),r}},zf=function(e,t){var n=q(t,function(t){return!j(e,t)});n.length>0&&dt(n)},Ff=function(e){return Hf(zf,e)},Uf=Ff(["cell","row","replace","gap"]),Vf=function(e){var t=It(e,"colspan")?parseInt(Bt(e,"colspan"),10):1,n=It(e,"rowspan")?parseInt(Bt(e,"rowspan"),10):1;return{element:v(e),colspan:v(t),rowspan:v(n)}},qf=function(e,t){void 0===t&&(t=Vf),Uf(e);var n=g(A.none()),r=function(t){return e.cell(t)},o=function(e){var n=t(e);return r(n)},i=function(e){var t=o(e);return n.get().isNone()&&n.set(A.some(t)),u=A.some({item:e,replacement:t}),t},u=A.none(),a=function(e,t){return u.fold(function(){return i(e)},function(n){return t(e,n.item)?n.replacement:i(e)})};return{getOrInit:a,cursor:n.get}},Gf=function(e,t){return function(n){var r=g(A.none());Uf(n);var o=[],i=function(e,t){return K(o,function(n){return t(n.item,e)})},u=function(i){var u={scope:e},a=n.replace(i,t,u);return o.push({item:i,sub:a}),r.get().isNone()&&r.set(A.some(a)),a},a=function(e,t){return i(e,t).fold(function(){return u(e)},function(n){return t(e,n.item)?n.sub:u(e)})};return{replaceOrInit:a,cursor:r.get}
+}},Yf=function(e){Uf(e);var t=g(A.none()),n=function(n){return t.get().isNone()&&t.set(A.some(n)),function(){var t=e.cell({element:v(n),colspan:v(1),rowspan:v(1)});return rn(t,"width"),rn(n,"width"),t}};return{combine:n,cursor:t.get}},Kf={modification:qf,transform:Gf,merging:Yf},Xf=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],$f=function(e,t){var n=e.property().name(t);return j(["ol","ul"],n)},Jf=function(e,t){var n=e.property().name(t);return j(Xf,n)},Qf=function(e,t){var n=e.property().name(t);return j(["address","pre","p","h1","h2","h3","h4","h5","h6"],n)},Zf=function(e,t){var n=e.property().name(t);return j(["h1","h2","h3","h4","h5","h6"],n)},es=function(e,t){return j(["div","li","td","th","blockquote","body","caption"],e.property().name(t))},ts=function(e,t){return j(["br","img","hr","input"],e.property().name(t))},ns=function(e,t){return"iframe"===e.property().name(t)},rs=function(e,t){return!(Jf(e,t)||ts(e,t))&&"li"!==e.property().name(t)},os={isBlock:Jf,isList:$f,isFormatting:Qf,isHeading:Zf,isContainer:es,isEmptyTag:ts,isFrame:ns,isInline:rs},is=o(),us=function(e){return os.isBlock(is,e)},as=function(e){return os.isList(is,e)},cs=function(e){return os.isFormatting(is,e)},ls=function(e){return os.isHeading(is,e)},fs=function(e){return os.isContainer(is,e)},ss=function(e){return os.isEmptyTag(is,e)},ds=function(e){return os.isFrame(is,e)},ms=function(e){return os.isInline(is,e)},gs={isBlock:us,isList:as,isFormatting:cs,isHeading:ls,isContainer:fs,isEmptyTag:ss,isFrame:ds,isInline:ms},ps=function(e){var t=function(e){return"br"===Ct(e)},n=function(e){return Q(e,function(e){return t(e)||Ot(e)&&0===jo(e).trim().length})},r=function(e){return"li"===Ct(e)||Xr(e,gs.isList).isSome()},o=function(e){return vr(e).map(function(e){return gs.isBlock(e)?!0:gs.isEmptyTag(e)?"img"===Ct(e)?!1:!0:!1}).getOr(!1)},i=function(e){return Ko(e).bind(function(n){var i=o(n);return gr(n).map(function(o){return i===!0||r(o)||t(n)||gs.isBlock(o)&&!ur(e,o)?[]:[Gt.fromTag("br")]})}).getOr([])},u=function(){var t=J(e,function(e){var t=br(e);return n(t)?[]:t.concat(i(e))});return 0===t.length?[Gt.fromTag("br")]:t},a=u();Er(e[0]),Dr(e[0],a)},hs={merge:ps},vs=function(e){var t=yo.cells(e);0===t.length&&Br(e)},bs=lt("grid","cursor"),ws=function(e,t,n){return ys(e,t,n).orThunk(function(){return ys(e,0,0)})},ys=function(e,t,n){return A.from(e[t]).bind(function(e){return A.from(e.cells()[n]).bind(function(e){return A.from(e.element())})})},Cs=function(e,t,n){return bs(e,ys(e,t,n))},Ss=function(e){return Y(e,function(e,t){return z(e,function(e){return e.row()===t.row()})?e:e.concat([t])},[]).sort(function(e,t){return e.row()-t.row()})},xs=function(e){return Y(e,function(e,t){return z(e,function(e){return e.column()===t.column()})?e:e.concat([t])},[]).sort(function(e,t){return e.column()-t.column()})},Rs=function(e,t,n,r){var o=t.row(),i=t.row(),u=Gl.insertRowAt(e,i,o,n,r.getOrInit);return Cs(u,i,t.column())},Ts=function(e,t,n,r){var o=t[0].row(),i=t[0].row(),u=Ss(t),a=Y(u,function(e){return Gl.insertRowAt(e,i,o,n,r.getOrInit)},e);return Cs(a,i,t[0].column())},Os=function(e,t,n,r){var o=t.row(),i=t.row()+t.rowspan(),u=Gl.insertRowAt(e,i,o,n,r.getOrInit);return Cs(u,i,t.column())},As=function(e,t,n,r){var o=Ss(t),i=o[o.length-1].row(),u=o[o.length-1].row()+o[o.length-1].rowspan(),a=Y(o,function(e){return Gl.insertRowAt(e,u,i,n,r.getOrInit)},e);return Cs(a,u,t[0].column())},Ds=function(e,t,n,r){var o=t.column(),i=t.column(),u=Gl.insertColumnAt(e,i,o,n,r.getOrInit);return Cs(u,t.row(),i)},Es=function(e,t,n,r){var o=xs(t),i=o[0].column(),u=o[0].column(),a=Y(o,function(e){return Gl.insertColumnAt(e,u,i,n,r.getOrInit)},e);return Cs(a,t[0].row(),u)},Bs=function(e,t,n,r){var o=t.column(),i=t.column()+t.colspan(),u=Gl.insertColumnAt(e,i,o,n,r.getOrInit);return Cs(u,t.row(),i)},Is=function(e,t,n,r){var o=t[t.length-1].column(),i=t[t.length-1].column()+t[t.length-1].colspan(),u=xs(t),a=Y(u,function(e){return Gl.insertColumnAt(e,i,o,n,r.getOrInit)},e);return Cs(a,t[0].row(),i)},Ns=function(e,t,n,r){var o=Ql.replaceRow(e,t.row(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},ks=function(e,t,n,r){var o=Ql.replaceColumn(e,t.column(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ps=function(e,t,n,r){var o=Ql.replaceRow(e,t.row(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ms=function(e,t,n,r){var o=Ql.replaceColumn(e,t.column(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ws=function(e,t,n,r){var o=Gl.splitCellIntoColumns(e,t.row(),t.column(),n,r.getOrInit);return Cs(o,t.row(),t.column())},_s=function(e,t,n,r){var o=Gl.splitCellIntoRows(e,t.row(),t.column(),n,r.getOrInit);return Cs(o,t.row(),t.column())},Ls=function(e,t){var n=xs(t),r=Gl.deleteColumnsAt(e,n[0].column(),n[n.length-1].column()),o=ws(r,t[0].row(),t[0].column());return bs(r,o)},Hs=function(e,t){var n=Ss(t),r=Gl.deleteRowsAt(e,n[0].row(),n[n.length-1].row()),o=ws(r,t[0].row(),t[0].column());return bs(r,o)},js=function(e,t,n){var r=t.cells();hs.merge(r);var o=Pl.merge(e,t.bounds(),n,v(r[0]));return bs(o,A.from(r[0]))},zs=function(e,t,n,r){var o=G(t,function(e,t){return Pl.unmerge(e,t,n,r.combine(t))},e);return bs(o,A.from(t[0]))},Fs=function(e,t,n){var r=function(e,t){var n=xo.fromTable(e),r=Bo.generate(n);return al.toGrid(r,t,!0)},o=r(t.clipboard(),t.generators()),i=kr(t.row(),t.column()),u=Hl.merge(i,e,o,t.generators(),n);return u.fold(function(){return bs(e,A.some(t.element()))},function(e){var n=ws(e,t.row(),t.column());return bs(e,n)})},Us=function(e,t,n){var r=xo.fromPastedRows(e,n),o=Bo.generate(r);return al.toGrid(o,t,!0)},Vs=function(e,t,n){var r=e[t.cells[0].row()],o=t.cells[0].row(),i=Us(t.clipboard(),t.generators(),r),u=Hl.insert(o,e,i,t.generators(),n),a=ws(u,t.cells[0].row(),t.cells[0].column());return bs(u,a)},qs=function(e,t,n){var r=e[t.cells[0].row()],o=t.cells[t.cells.length-1].row()+t.cells[t.cells.length-1].rowspan(),i=Us(t.clipboard(),t.generators(),r),u=Hl.insert(o,e,i,t.generators(),n),a=ws(u,t.cells[0].row(),t.cells[0].column());return bs(u,a)},Gs=Lf.adjustWidthTo,Ys={insertRowBefore:dl(Rs,ml,p,p,Kf.modification),insertRowsBefore:dl(Ts,bl,p,p,Kf.modification),insertRowAfter:dl(Os,ml,p,p,Kf.modification),insertRowsAfter:dl(As,bl,p,p,Kf.modification),insertColumnBefore:dl(Ds,ml,Gs,p,Kf.modification),insertColumnsBefore:dl(Es,bl,Gs,p,Kf.modification),insertColumnAfter:dl(Bs,ml,Gs,p,Kf.modification),insertColumnsAfter:dl(Is,bl,Gs,p,Kf.modification),splitCellIntoColumns:dl(Ws,ml,Gs,p,Kf.modification),splitCellIntoRows:dl(_s,ml,p,p,Kf.modification),eraseColumns:dl(Ls,bl,Gs,vs,Kf.modification),eraseRows:dl(Hs,bl,p,vs,Kf.modification),makeColumnHeader:dl(ks,ml,p,p,Kf.transform("row","th")),unmakeColumnHeader:dl(Ms,ml,p,p,Kf.transform(null,"td")),makeRowHeader:dl(Ns,ml,p,p,Kf.transform("col","th")),unmakeRowHeader:dl(Ps,ml,p,p,Kf.transform(null,"td")),mergeCells:dl(js,hl,p,p,Kf.merging),unmergeCells:dl(zs,vl,Gs,p,Kf.merging),pasteCells:dl(Fs,gl,Gs,p,Kf.modification),pasteRowsBefore:dl(Vs,pl,p,p,Kf.modification),pasteRowsAfter:dl(qs,pl,p,p,Kf.modification)},Ks=function(e){return Gt.fromDom(e.getBody())},Xs=function(e){return e.getBoundingClientRect().width},$s=function(e){return e.getBoundingClientRect().height},Js=function(e){return function(t){return ur(t,Ks(e))}},Qs=function(e){return e?e.replace(/px$/,""):""},Zs=function(e){return/^[0-9]+$/.test(e)&&(e+="px"),e},ed=function(e){var t=Kr(e,"td[data-mce-style],th[data-mce-style]");Nt(e,"data-mce-style"),U(t,function(e){Nt(e,"data-mce-style")})},td=function(e){return"rtl"===en(e,"direction")?"rtl":"ltr"},nd={isRtl:v(!1)},rd={isRtl:v(!0)},od=function(e){var t=td(e);return"rtl"===t?rd:nd},id={directionAt:od},ud="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",ad={"border-collapse":"collapse",width:"100%"},cd={border:"1"},ld=function(e){return e.getParam("table_default_attributes",cd,"object")},fd=function(e){return e.getParam("table_default_styles",ad,"object")},sd=function(e){return e.getParam("table_resize_bars",!0,"boolean")},dd=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},md=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},gd=function(e){return e.getParam("table_row_advtab",!0,"boolean")},pd=function(e){return e.getParam("table_advtab",!0,"boolean")},hd=function(e){return e.getParam("table_appearance_options",!0,"boolean")},vd=function(e){return e.getParam("table_grid",!0,"boolean")},bd=function(e){return e.getParam("table_style_by_css",!1,"boolean")},wd=function(e){return e.getParam("table_cell_class_list",[],"array")},yd=function(e){return e.getParam("table_row_class_list",[],"array")},Cd=function(e){return e.getParam("table_class_list",[],"array")},Sd=function(e){return e.getParam("table_responsive_width")===!0},xd=function(e){return e.getParam("table_responsive_width")===!1},Rd=function(e){return e.getParam("table_toolbar",ud)},Td=function(e){var t=e.getParam("table_clone_elements");return I(t)?A.some(t.split(/[ ,]/)):Array.isArray(t)?A.some(t):A.none()},Od=function(e){var t=e.getParam("object_resizing",!0);return I(t)?"table"===t:t},Ad=function(e,t){return e.fire("newrow",{node:t})},Dd=function(e,t){return e.fire("newcell",{node:t})},Ed=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},Bd=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Id=function(e,t,n,r,o){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:o})},Nd=function(e){e.fire("TableSelectionClear")},kd=lt("element","offset"),Pd=(lt("element","deltaOffset"),lt("element","start","finish"),lt("begin","end"),lt("element","text"),function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind(function(t){return Pd(e,t,n).orThunk(function(){return A.some(t)})}):A.none()}),Md=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},Wd=function(e,t){var n=Pd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return kd(n,Md(e,n));var r=e.property().children(n);return r.length>0?Wd(e,r[r.length-1]):kd(n,Md(e,n))},_d=Wd,Ld=o(),Hd=function(e){return _d(Ld,e)},jd=function(e,t){var n=function(e){return"table"===Ct(Ks(e))},r=function(t){var r=ec.getGridSize(t);return n(e)===!1||r.rows()>1},o=function(t){var r=ec.getGridSize(t);return n(e)===!1||r.columns()>1},i=Td(e),a=function(t,n,r,o){return function(a,c){ed(a);var l=o(),f=Gt.fromDom(e.getDoc()),s=u(id.directionAt),d=ci.cellOperations(r,f,i);return n(a)?t(l,a,c,d,s).bind(function(t){return U(t.newRows(),function(t){Ad(e,t.dom())}),U(t.newCells(),function(t){Dd(e,t.dom())}),t.cursor().map(function(t){var n=Hd(t),r=e.dom.createRng();return r.setStart(n.element().dom(),n.offset()),r.setEnd(n.element().dom(),n.offset()),r})}):A.none()}},c=a(Ys.eraseRows,r,p,t),l=a(Ys.eraseColumns,o,p,t),f=a(Ys.insertRowsBefore,S,p,t),s=a(Ys.insertRowsAfter,S,p,t),d=a(Ys.insertColumnsBefore,S,Ba.halve,t),m=a(Ys.insertColumnsAfter,S,Ba.halve,t),g=a(Ys.mergeCells,S,p,t),h=a(Ys.unmergeCells,S,p,t),v=a(Ys.pasteRowsBefore,S,p,t),b=a(Ys.pasteRowsAfter,S,p,t),w=a(Ys.pasteCells,S,p,t);return{deleteRow:c,deleteColumn:l,insertRowsBefore:f,insertRowsAfter:s,insertColumnsBefore:d,insertColumnsAfter:m,mergeCells:g,unmergeCells:h,pasteRowsBefore:v,pasteRowsAfter:b,pasteCells:w}},zd=function(e,t,n){var r=xo.fromTable(e),o=Bo.generate(r),i=bl(o,t);return i.map(function(e){var t=al.toGrid(o,n,!1),r=t.slice(e[0].row(),e[e.length-1].row()+e[e.length-1].rowspan()),i=fl(r,n);return ic.copy(i)})},Fd={copyRows:zd},Ud=tinymce.util.Tools.resolve("tinymce.util.Tools"),Vd=function(e,t,n){var r,o=e.select("td,th",t),i=function(t,r){for(var o=0;o0?A.some({name:"class",type:"selectbox",label:"Class",items:n}):A.none()},lm=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"selectbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"selectbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"selectbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"selectbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],fm=function(e){return cm(e).fold(function(){return lm},function(e){return lm.concat(e)})},sm={getItems:fm},dm=function(e,t){var n=function(n,r){e.setAttrib(t,n,r)},r=function(n,r){e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},mm=function(e,t){var n=function(n,r){r&&e.setAttrib(t,n,r)},r=function(n,r){r&&e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},gm={normal:dm,ifTruthy:mm},pm=function(e,t){e.setAttrib("scope",t.scope),e.setAttrib("class",t.class),e.setStyle("width",Zs(t.width)),e.setStyle("height",Zs(t.height))},hm=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle),e.setStyle("border-width",Zs(t.borderwidth))},vm=function(e,t,n){var r=e.dom,o=n.celltype&&t[0].nodeName.toLowerCase()!==n.celltype?r.rename(t[0],n.celltype):t[0],i=gm.normal(r,o);pm(i,n),md(e)&&hm(i,n),Xd.unApplyAlign(e,o),Xd.unApplyVAlign(e,o),n.halign&&Xd.applyAlign(e,o,n.halign),n.valign&&Xd.applyVAlign(e,o,n.valign)},bm=function(e,t,n){var r=e.dom;Ud.each(t,function(t){n.celltype&&t.nodeName.toLowerCase()!==n.celltype&&(t=r.rename(t,n.celltype));var o=gm.ifTruthy(r,t);pm(o,n),md(e)&&hm(o,n),n.halign&&Xd.applyAlign(e,t,n.halign),n.valign&&Xd.applyVAlign(e,t,n.valign)})},wm=function(e,t,n){var r=n.getData();n.close(),e.undoManager.transact(function(){var n=1===t.length?vm:bm;n(e,t,r),e.focus()})},ym=function(e){var n,r=[];if(r=e.dom.select("td[data-mce-selected],th[data-mce-selected]"),n=e.dom.getParent(e.selection.getStart(),"td,th"),!r.length&&n&&r.push(n),n=n||r[0]){var o=Ud.map(r,function(t){return am.extractDataFromCellElement(e,t,md(e))}),i=am.getSharedValues(o),u={type:"tabpanel",tabs:[{title:"General",name:"general",items:sm.getItems(e)},am.getAdvancedTab("cell")]},a={type:"panel",items:[{type:"grid",columns:2,items:sm.getItems(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:md(e)?u:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onSubmit:t(wm,e,r)})}},Cm={open:ym},Sm=function(e){var t=yd(e),n=am.buildListItems(t,function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})});return t.length>0?A.some({name:"class",type:"selectbox",label:"Class",items:n}):A.none()},xm=[{type:"selectbox",name:"type",label:"Row type",items:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Rm=function(e){return Sm(e).fold(function(){return xm},function(e){return xm.concat(e)})},Tm={getItems:Rm},Om=function(e,t,n){var r=e.getParent(t,"table"),o=t.parentNode,i=e.select(n,r)[0];i||(i=e.create(n),r.firstChild?"CAPTION"===r.firstChild.nodeName?e.insertAfter(i,r.firstChild):r.insertBefore(i,r.firstChild):r.appendChild(i)),"tbody"===n&&"THEAD"===o.nodeName&&i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t),o.hasChildNodes()||e.remove(o)},Am=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},Dm=function(e,t,n,r){var o=e.dom,i=r.getData();r.close();var u=1===t.length?gm.normal:gm.ifTruthy;e.undoManager.transact(function(){Ud.each(t,function(t){i.type!==t.parentNode.nodeName.toLowerCase()&&Om(e.dom,t,i.type);var r=u(o,t);r.setAttrib("scope",i.scope),r.setAttrib("class",i.class),r.setStyle("height",Zs(i.height)),gd(e)&&Am(r,i),i.align!==n.align&&(Xd.unApplyAlign(e,t),Xd.applyAlign(e,t,i.align))}),e.focus()})},Em=function(e){var n,r,o,i=e.dom,u=[];if(n=i.getParent(e.selection.getStart(),"table"),n&&(r=i.getParent(e.selection.getStart(),"td,th"),Ud.each(n.rows,function(e){Ud.each(e.cells,function(t){return(i.getAttrib(t,"data-mce-selected")||t===r)&&u.indexOf(e)<0?(u.push(e),!1):void 0})}),o=u[0])){var a=Ud.map(u,function(t){return am.extractDataFromRowElement(e,t,gd(e))}),c=am.getSharedValues(a),l={type:"tabpanel",tabs:[{title:"General",name:"general",items:Tm.getItems(e)},am.getAdvancedTab("row")]},f={type:"panel",items:[{type:"grid",columns:2,items:Tm.getItems(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:gd(e)?l:f,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:c,onSubmit:t(Dm,e,u,c)})}},Bm={open:Em},Im=tinymce.util.Tools.resolve("tinymce.Env"),Nm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},percentages:!0},km=function(){return Gt.fromTag("table")},Pm=function(){return Gt.fromTag("tbody")},Mm=function(){return Gt.fromTag("tr")},Wm=function(){return Gt.fromTag("th")},_m=function(){return Gt.fromTag("td")},Lm=function(e,t,n,r,o){void 0===o&&(o=Nm);var i=km();Zt(i,o.styles),Et(i,o.attributes);var u=Pm();Rr(i,u);for(var a=[],c=0;e>c;c++){for(var l=Mm(),f=0;t>f;f++){var s=n>c||r>f?Wm():_m();r>f&&Dt(s,"scope","row"),n>c&&Dt(s,"scope","col"),Rr(s,Gt.fromTag("br")),o.percentages&&Qt(s,"width",100/t+"%"),Rr(l,s)}a.push(l)}return Dr(u,a),i},Hm=function(e){return e.dom().innerHTML},jm=function(e){var t=Gt.fromTag("div"),n=Gt.fromDom(e.dom().cloneNode(!0));return Rr(t,n),Hm(t)},zm=function(e,t){e.selection.select(t.dom(),!0),e.selection.collapse(!0)},Fm=function(e,n){to(n,"td,th").each(t(zm,e))},Um=function(e,t){U(Kr(t,"tr"),function(t){Ad(e,t.dom()),U(Kr(t,"th,td"),function(t){Dd(e,t.dom())})})},Vm=function(e){return I(e)&&-1!==e.indexOf("%")},qm=function(e,t,n){var r=fd(e),o={styles:r,attributes:ld(e),percentages:Vm(r.width)&&!xd(e)},i=Lm(n,t,0,0,o);Dt(i,"data-mce-id","__mce");var u=jm(i);return e.insertContent(u),to(Ks(e),'table[data-mce-id="__mce"]').map(function(t){return xd(e)&&Qt(t,"width",en(t,"width")),Nt(t,"data-mce-id"),Um(e,t),Fm(e,t),t.dom()}).getOr(null)},Gm={insert:qm},Ym=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],i=hd(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],u=[{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],a=t?[{type:"selectbox",name:"class",label:"Class",items:am.buildListItems(Cd(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"table",classes:[t.value]})})})}]:[];return r.concat(o).concat(i).concat(u).concat(a)},Km={getItems:Ym},Xm=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)I(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o ',t.insertBefore(r,t.firstChild)),""===i.align?Xd.unApplyAlign(e,t):Xd.applyAlign(e,t,i.align),e.focus(),e.addVisual()})},Qm=function(e,n){var r,o=e.dom,i=am.extractDataFromSettings(e,pd(e));n===!1?(r=o.getParent(e.selection.getStart(),"table"),r?i=am.extractDataFromTableElement(e,r,pd(e)):pd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",pd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var u=Cd(e).length>0;u&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:Km.getItems(e,u,n)},c=function(){return{type:"panel",items:[a]}},l=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},am.getAdvancedTab("table")]}},f=pd(e)?l():c();e.windowManager.open({title:"Table Properties",size:"normal",body:f,onSubmit:t(Jm,e,r),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},Zm={open:Qm},eg=function(e){return function(t){return A.from(t.dom.getParent(t.selection.getStart(),e)).map(Gt.fromDom)}},tg=eg("th,td"),ng=eg("th,td,caption"),rg=Ud.each,og=function(e,n,r,o,i){var u=Js(e),a=function(){ng(e).each(function(t){var n=yo.table(t,u);n.filter(w(u)).each(function(t){var n=Gt.fromText("");if(Sr(t,n),Br(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom(),0),r.setEnd(n.dom(),0),e.selection.setRng(r),e.nodeChanged()}})})},c=function(e){return yo.table(e,u)},l=function(e){return{width:Xs(e.dom()),height:Xs(e.dom())}},f=function(e,t,n){var r=l(n);(t.width!==r.width||t.height!==r.height)&&(Ed(e,n.dom(),t.width,t.height),Bd(e,n.dom(),r.width,r.height))},s=function(t){tg(e).each(function(n){c(n).each(function(i){var u=ju.forMenu(o,i,n),a=l(i);t(i,u).each(function(t){f(e,a,i),e.selection.setRng(t),e.focus(),r.clear(i),ed(i)})})})},d=function(){return tg(e).map(function(t){return c(t).bind(function(n){var r=Gt.fromDom(e.getDoc()),i=ju.forMenu(o,n,t),u=ci.cellOperations(p,r,A.none());return Fd.copyRows(n,i,u)})})},m=function(t){i.get().each(function(n){var i=F(n,function(e){return Qo(e)});tg(e).each(function(n){c(n).each(function(u){var a=Gt.fromDom(e.getDoc()),c=ci.paste(a),l=ju.pasteRows(o,u,n,i,c);t(u,l).each(function(t){e.selection.setRng(t),e.focus(),r.clear(u)})})})})};rg({mceTableSplitCells:function(){s(n.unmergeCells)},mceTableMergeCells:function(){s(n.mergeCells)},mceTableInsertRowBefore:function(){s(n.insertRowsBefore)},mceTableInsertRowAfter:function(){s(n.insertRowsAfter)},mceTableInsertColBefore:function(){s(n.insertColumnsBefore)},mceTableInsertColAfter:function(){s(n.insertColumnsAfter)},mceTableDeleteCol:function(){s(n.deleteColumn)},mceTableDeleteRow:function(){s(n.deleteRow)},mceTableCutRow:function(){d().each(function(e){i.set(e),s(n.deleteRow)})},mceTableCopyRow:function(){d().each(function(e){i.set(e)})},mceTablePasteRowBefore:function(){m(n.pasteRowsBefore)},mceTablePasteRowAfter:function(){m(n.pasteRowsAfter)},mceTableDelete:a},function(t,n){e.addCommand(n,t)}),rg({mceInsertTable:t(Zm.open,e,!0),mceTableProps:t(Zm.open,e,!1),mceTableRowProps:t(Bm.open,e),mceTableCellProps:t(Cm.open,e)},function(t,n){e.addCommand(n,function(){t()})})},ig={registerCommands:og},ug=function(e){var t=A.from(e.dom().documentElement).map(Gt.fromDom).getOr(e);return{parent:v(t),view:v(e),origin:v(Na(0,0))}},ag=function(e,t){var n=function(){return Ma(t)};return{parent:v(t),view:v(e),origin:n}},cg=function(e,t){return{parent:v(t),view:v(e),origin:v(Na(0,0))}},lg={only:ug,detached:ag,body:cg},fg=function(e){var t=lt.apply(null,e),n=[],r=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");n.push(e)},o=function(e){n=q(n,function(t){return t!==e})},i=function(){for(var e=[],r=0;r0})},f=function(){return o},s=function(){return i.getOr(lg.only(Gt.fromDom(e.getBody())))},d=function(){o.each(function(e){e.destroy()}),i.each(function(t){Xg.remove(e,t)})};return e.on("init",function(){var t=u(id.directionAt),n=Xg.get(e);if(i=A.some(n),Od(e)&&sd(e)){var a=qg.create(n,t);a.on(),a.events.startDrag.bind(function(){r=A.some(e.selection.getRng())}),a.events.beforeResize.bind(function(t){var n=t.table().dom();Ed(e,n,Xs(n),$s(n))}),a.events.afterResize.bind(function(t){var n=t.table(),o=n.dom();ed(n),r.each(function(t){e.selection.setRng(t),e.focus()}),Bd(e,o,Xs(o),$s(o)),e.undoManager.add()}),o=A.some(a)}}),e.on("ObjectResizeStart",function(r){var o=r.target;if(c(o)){var i=l(o).map(function(e){return a.test(e)}).getOr(!1);i&&xd(e)?Qg(o):!i&&Sd(e)&&Jg(o),t=r.width,n=l(o).getOr("")}}),e.on("ObjectResized",function(r){var o=r.target;if(c(o)){var i=o;if(a.test(n)){var u=parseFloat(a.exec(n)[1]),l=r.width*u/t;e.dom.setStyle(i,"width",l+"%")}else{var f=[];Ud.each(i.rows,function(t){Ud.each(t.cells,function(t){var n=e.dom.getStyle(t,"width",!0);f.push({cell:t,width:n})})}),Ud.each(f,function(t){e.dom.setStyle(t.cell,"width",t.width),e.dom.setAttrib(t.cell,"width",null)})}}}),e.on("SwitchMode",function(){f().each(function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()})}),{lazyResize:f,lazyWire:s,destroy:d}},ep=Au.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),tp=function(e){return void 0===e&&(e=void 0),ep.none(e)},np=fn(fn({},ep),{none:tp}),rp=function(e,t){return yo.table(e,t).bind(function(t){var n=yo.cells(t),r=X(n,function(t){return ur(e,t)});return r.map(function(e){return{index:v(e),all:v(n)}})})},op=function(e,t){var n=rp(e,t);return n.fold(function(){return np.none(e)},function(t){return t.index()+1=0?np.middle(e,t.all()[t.index()-1]):np.first(e)})},up={next:op,prev:ip},ap=lt("start","soffset","finish","foffset"),cp={create:ap},lp=Au.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fp=function(e,t,n,r){return e.fold(t,n,r)},sp=function(e){return e.fold(b,b,b)},dp=lp.before,mp=lp.on,gp=lp.after,pp={before:dp,on:mp,after:gp,cata:fp,getStart:sp},hp=Au.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vp=function(e){return hp.exact(e.start(),e.soffset(),e.finish(),e.foffset())},bp=function(e){return e.match({domRange:function(e){return Gt.fromDom(e.startContainer)},relative:function(e){return pp.getStart(e)},exact:function(e){return e}})},wp=hp.domRange,yp=hp.relative,Cp=hp.exact,Sp=function(e){var t=bp(e);return mr(t)},xp=cp.create,Rp={domRange:wp,relative:yp,exact:Cp,exactFromRange:vp,getWin:Sp,range:xp},Tp=function(e,t){var n=e.document.createRange();return Op(n,t),n},Op=function(e,t){e.selectNodeContents(t.dom())},Ap=function(e,t){t.fold(function(t){e.setStartBefore(t.dom())},function(t,n){e.setStart(t.dom(),n)},function(t){e.setStartAfter(t.dom())})},Dp=function(e,t){t.fold(function(t){e.setEndBefore(t.dom())},function(t,n){e.setEnd(t.dom(),n)},function(t){e.setEndAfter(t.dom())})},Ep=function(e,t,n){var r=e.document.createRange();return Ap(r,t),Dp(r,n),r},Bp=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom(),n),i.setEnd(r.dom(),o),i},Ip=function(e){return{left:v(e.left),top:v(e.top),right:v(e.right),bottom:v(e.bottom),width:v(e.width),height:v(e.height)}},Np=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?A.some(n).map(Ip):A.none()},kp=Au.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Pp=function(e,t,n){return t(Gt.fromDom(n.startContainer),n.startOffset,Gt.fromDom(n.endContainer),n.endOffset)},Mp=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:A.none}},relative:function(t,n){return{ltr:jt(function(){return Ep(e,t,n)}),rtl:jt(function(){return A.some(Ep(e,n,t))})}},exact:function(t,n,r,o){return{ltr:jt(function(){return Bp(e,t,n,r,o)}),rtl:jt(function(){return A.some(Bp(e,r,o,t,n))})}}})},Wp=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter(function(e){return e.collapsed===!1});return r.map(function(e){return kp.rtl(Gt.fromDom(e.endContainer),e.endOffset,Gt.fromDom(e.startContainer),e.startOffset)}).getOrThunk(function(){return Pp(e,kp.ltr,n)})}return Pp(e,kp.ltr,n)},_p=function(e,t){var n=Mp(e,t);return Wp(e,n)},Lp=function(e,t){var n=_p(e,t);return n.match({ltr:function(t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom(),n),i.setEnd(r.dom(),o),i},rtl:function(t,n,r,o){var i=e.document.createRange();return i.setStart(r.dom(),o),i.setEnd(t.dom(),n),i}})},Hp=(kp.ltr,kp.rtl,function(e,t,n,r,o){if(0===o)return 0;if(t===r)return o-1;for(var i=r,u=1;o>u;u++){var a=e(u),c=Math.abs(t-a.left);if(n<=a.bottom){if(ni)return u-1;i=c}}return 0}),jp=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},zp=function(e,t,n,r,o){var i=function(n){var r=e.dom().createRange();return r.setStart(t.dom(),n),r.collapse(!0),r},u=function(e){var t=i(e);return t.getBoundingClientRect()},a=jo(t).length,c=Hp(u,n,r,o.right,a);return i(c)},Fp=function(e,t,n,r){var o=e.dom().createRange();o.selectNode(t.dom());var i=o.getClientRects(),u=tt(i,function(e){return jp(e,n,r)?A.some(e):A.none()});return u.map(function(o){return zp(e,t,n,r,o)})},Up=function(e,t,n,r){var o=e.dom().createRange(),i=br(t);return tt(i,function(t){return o.selectNode(t.dom()),jp(o.getBoundingClientRect(),n,r)?Vp(e,t,n,r):A.none()})},Vp=function(e,t,n,r){return Ot(t)?Fp(e,t,n,r):Up(e,t,n,r)},qp=function(e,t,n,r){var o=e.dom().createRange();o.selectNode(t.dom());var i=o.getBoundingClientRect(),u=Math.max(i.left,Math.min(i.right,n)),a=Math.max(i.top,Math.min(i.bottom,r));return Vp(e,t,u,a)},Gp=!0,Yp=!1,Kp=function(e,t){return t-e.left0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return A.some(cp.create(Gt.fromDom(t.startContainer),t.startOffset,Gt.fromDom(n.endContainer),n.endOffset))}return A.none()},wh=function(e){var t=Gt.fromDom(e.anchorNode),n=Gt.fromDom(e.focusNode);return fh(t,e.anchorOffset,n,e.focusOffset)?A.some(cp.create(t,e.anchorOffset,n,e.focusOffset)):bh(e)},yh=function(e,t){var n=Tp(e,t);sh(e,n)},Ch=function(e){return A.from(e.getSelection()).filter(function(e){return e.rangeCount>0}).bind(wh)},Sh=function(e){return Ch(e).map(function(e){return Rp.exact(e.start(),e.soffset(),e.finish(),e.foffset())})},xh=function(e,t){var n=Lp(e,t);return Np(n)},Rh=function(e,t,n){return oh(e,t,n)},Th=function(e){var t=e.getSelection();t.removeAllRanges()},Oh=tinymce.util.Tools.resolve("tinymce.util.VK"),Ah=function(e,t,n,r){return Ih(e,t,up.next(n),r)},Dh=function(e,t,n,r){return Ih(e,t,up.prev(n),r)},Eh=function(e,t){var n=Rp.exact(t,0,t,0);return vh(n)},Bh=function(e,t){var n=Kr(t,"tr");return et(n).bind(function(t){return to(t,"td,th").map(function(t){return Eh(e,t)})})},Ih=function(e,t,n,r){return n.fold(A.none,A.none,function(t,n){return Yo(n).map(function(t){return Eh(e,t)})},function(n){return yo.table(n,t).bind(function(t){var o=ju.noMenu(n);return e.undoManager.transact(function(){r.insertRowsAfter(t,o)}),Bh(e,t)})})},Nh=["table","li","dl"],kh=function(e,t,n,r){if(e.keyCode===Oh.TAB){var o=Ks(t),i=function(e){var t=Ct(e);return ur(e,o)||j(Nh,t)},u=t.selection.getRng();if(u.collapsed){var a=Gt.fromDom(u.startContainer);yo.cell(a,i).each(function(o){e.preventDefault();var u=e.shiftKey?Dh:Ah,a=u(t,i,o,n,r);a.each(function(e){t.selection.setRng(e)})})}}},Ph={handle:kh},Mh=lt("selection","kill"),Wh={create:Mh},_h=function(e,t,n,r){return{start:v(pp.on(e,t)),finish:v(pp.on(n,r))}},Lh={create:_h},Hh=function(e,t){var n=Lp(e,t);return cp.create(Gt.fromDom(n.startContainer),n.startOffset,Gt.fromDom(n.endContainer),n.endOffset)},jh=Lh.create,zh={convertToRange:Hh,makeSitus:jh},Fh=function(e,t,n,r,o,i,u){return ur(n,o)&&r===i?A.none():no(n,"td,th",t).bind(function(n){return no(o,"td,th",t).bind(function(r){return Uh(e,t,n,r,u)})})},Uh=function(e,t,n,r,o){return ur(n,r)?A.none():gu.identify(n,r,t).bind(function(t){var r=t.boxes().getOr([]);return r.length>0?(o(e,r,t.start(),t.finish()),A.some(Wh.create(A.some(zh.makeSitus(n,0,n,Uo(n))),!0))):A.none()})},Vh=function(e,t,n,r,o){var i=function(e){return o.clearBeforeUpdate(n),o.selectRange(n,e.boxes(),e.start(),e.finish()),e.boxes()};return gu.shiftSelection(r,e,t,o.firstSelectedSelector(),o.lastSelectedSelector()).map(i)},qh={sync:Fh,detect:Uh,update:Vh},Gh=lt("item","mode"),Yh=function(e,t,n,r){return void 0===r&&(r=Kh),e.property().parent(t).map(function(e){return Gh(e,r)})},Kh=function(e,t,n,r){return void 0===r&&(r=Xh),n.sibling(e,t).map(function(e){return Gh(e,r)})},Xh=function(e,t,n,r){void 0===r&&(r=Xh);var o=e.property().children(t),i=n.first(o);return i.map(function(e){return Gh(e,r)})},$h=[{current:Yh,next:Kh,fallback:A.none()},{current:Kh,next:Xh,fallback:A.some(Yh)},{current:Xh,next:Xh,fallback:A.some(Kh)}],Jh=function(e,t,n,r,o){void 0===o&&(o=$h);var i=K(o,function(e){return e.current===n});return i.bind(function(n){return n.current(e,t,r,n.next).orThunk(function(){return n.fallback.bind(function(n){return Jh(e,t,n,r)})})})},Qh=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?A.some(e[e.length-1]):A.none()};return{sibling:e,first:t}},Zh=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?A.some(e[0]):A.none()};return{sibling:e,first:t}},ev={left:Qh,right:Zh},tv=function(e,t,n,r,o,i){var u=Jh(e,t,r,o);return u.bind(function(t){return i(t.item())?A.none():n(t.item())?A.some(t.item()):tv(e,t.item(),n,t.mode(),o,i)})},nv=function(e,t,n,r){return tv(e,t,n,Kh,ev.left(),r)},rv=function(e,t,n,r){return tv(e,t,n,Kh,ev.right(),r)},ov=function(e){return function(t){return 0===e.property().children(t).length}},iv=function(e,t,n){return av(e,t,ov(e),n)},uv=function(e,t,n){return cv(e,t,ov(e),n)},av=nv,cv=rv,lv=o(),fv=function(e,t){return iv(lv,e,t)},sv=function(e,t){return uv(lv,e,t)},dv=function(e,t,n){return av(lv,e,t,n)},mv=function(e,t,n){return cv(lv,e,t,n)},gv=function(e,t,n){return Xr(e,t,n).isSome()},pv=Au.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),hv=function(e,t,n){var r=e.getRect(t),o=e.getRect(n);return o.right>r.left&&o.left ("+e.right()+", "+e.bottom()+")"},zv={nu:Nv,moveUp:Pv,moveDown:kv,moveBottomTo:Mv,moveTopTo:Wv,getTop:Lv,getBottom:Hv,translate:_v,toString:jv},Fv=function(e,t,n){return n>=0&&n0?e.getRangedRect(t,n-1,t,n):A.none()},Uv=function(e){return zv.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},Vv=function(e,t){return A.some(e.getRect(t))},qv=function(e,t,n){return Tt(t)?Vv(e,t).map(Uv):Ot(t)?Fv(e,t,n).map(Uv):A.none()},Gv=function(e,t){return Tt(t)?Vv(e,t).map(Uv):Ot(t)?e.getRangedRect(t,0,t,Uo(t)).map(Uv):A.none()},Yv={getBoxAt:qv,getEntireBox:Gv},Kv=5,Xv=100,$v=Au.generate([{none:[]},{retry:["caret"]}]),Jv=function(e,t){return e.left()t.right()},Qv=function(e,t,n){return $r(t,gs.isBlock).fold(v(!1),function(t){return Yv.getEntireBox(e,t).exists(function(e){return Jv(n,e)})})},Zv=function(e,t,n,r,o){var i=zv.moveDown(o,Kv);return Math.abs(n.bottom()-r.bottom())<1?$v.retry(i):n.top()>o.bottom()?$v.retry(i):n.top()===o.bottom()?$v.retry(zv.moveDown(o,1)):Qv(e,t,o)?$v.retry(zv.translate(i,Kv,0)):$v.none()},eb=function(e,t,n,r,o){var i=zv.moveUp(o,Kv);return Math.abs(n.top()-r.top())<1?$v.retry(i):n.bottom()n.getInnerHeight()?A.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?A.some(-e.point(t)):A.none()},lb=function(e,t,n){var r=e.move(n,Kv),o=ib(t,e,n,r,Xv).getOr(r);return cb(e,o,t).fold(function(){return t.situsFromPoint(o.left(),e.point(o))},function(n){return t.scrollBy(0,n),t.situsFromPoint(o.left(),e.point(o)-n)})},fb={tryUp:t(lb,tb),tryDown:t(lb,nb),ieTryUp:ab,ieTryDown:ub,getJumpSize:v(Kv)},sb=20,db=Zn(),mb=function(e,t,n){return e.getSelection().bind(function(r){return Iv.tryBr(t,r.finish(),r.foffset(),n).fold(function(){return A.some(kd(r.finish(),r.foffset()))},function(o){var i=e.fromSitus(o),u=yv.verify(e,r.finish(),r.foffset(),i.finish(),i.foffset(),n.failure,t);return Iv.process(u)})})},gb=function(e,t,n,r,o,i){return 0===i?A.none():vb(e,t,n,r,o).bind(function(u){var a=e.fromSitus(u),c=yv.verify(e,n,r,a.finish(),a.foffset(),o.failure,t);return yv.cata(c,function(){return A.none()},function(){return A.some(u)},function(u){return ur(n,u)&&0===r?pb(e,n,r,zv.moveUp,o):gb(e,t,u,0,o,i-1)},function(u){return ur(n,u)&&r===Uo(u)?pb(e,n,r,zv.moveDown,o):gb(e,t,u,Uo(u),o,i-1)})})},pb=function(e,t,n,r,o){return Yv.getBoxAt(e,t,n).bind(function(t){return hb(e,o,r(t,fb.getJumpSize()))})},hb=function(e,t,n){return db.browser.isChrome()||db.browser.isSafari()||db.browser.isFirefox()||db.browser.isEdge()?t.otherRetry(e,n):db.browser.isIE()?t.ieRetry(e,n):A.none()},vb=function(e,t,n,r,o){return Yv.getBoxAt(e,n,r).bind(function(t){return hb(e,o,t)})},bb=function(e,t,n){return mb(e,t,n).bind(function(r){return gb(e,t,r.element(),r.offset(),n,sb).map(e.fromSitus)})},wb={handle:bb},yb=Zn(),Cb=function(e,t){return gv(e,function(e){return gr(e).exists(function(e){return ur(e,t)})})},Sb=function(e,t,n,r,o){return no(r,"td,th",t).bind(function(r){return no(r,"table",t).bind(function(i){return Cb(o,i)?wb.handle(e,t,n).bind(function(e){return no(e.finish(),"td,th",t).map(function(t){return{start:v(r),finish:v(t),range:v(e)}})}):A.none()})})},xb=function(e,t,n,r,o,i){return yb.browser.isIE()?A.none():i(r,t).orThunk(function(){return Sb(e,t,n,r,o).map(function(e){var t=e.range();return Wh.create(A.some(zh.makeSitus(t.start(),t.soffset(),t.finish(),t.foffset())),!0)})})},Rb=function(e,t){return no(e,"tr",t).bind(function(e){return no(e,"table",t).bind(function(n){var r=Kr(n,"tr");return ur(e,r[0])?dv(n,function(e){return Ko(e).isSome()},t).map(function(e){var t=Uo(e);return Wh.create(A.some(zh.makeSitus(e,t,e,t)),!0)}):A.none()})})},Tb=function(e,t){return no(e,"tr",t).bind(function(e){return no(e,"table",t).bind(function(n){var r=Kr(n,"tr");return ur(e,r[r.length-1])?mv(n,function(e){return Yo(e).isSome()},t).map(function(e){return Wh.create(A.some(zh.makeSitus(e,0,e,0)),!0)}):A.none()})})},Ob=function(e,t,n,r,o,i,u){return Sb(e,n,r,o,i).bind(function(e){return qh.detect(t,n,e.start(),e.finish(),u)})},Ab={navigate:xb,select:Ob,firstUpCheck:Rb,lastDownCheck:Tb},Db=function(e,t){return no(e,"td,th",t)},Eb={traverse:vr,gather:sv,relative:pp.before,otherRetry:fb.tryDown,ieRetry:fb.ieTryDown,failure:yv.failedDown},Bb={traverse:hr,gather:fv,relative:pp.before,otherRetry:fb.tryUp,ieRetry:fb.ieTryUp,failure:yv.failedUp},Ib={down:Eb,up:Bb},Nb=function(e){return function(t){return t===e}},kb=Nb(38),Pb=Nb(40),Mb=function(e){return e>=37&&40>=e},Wb={ltr:{isBackward:Nb(37),isForward:Nb(39)},rtl:{isBackward:Nb(39),isForward:Nb(37)},isUp:kb,isDown:Pb,isNavigation:Mb},_b=function(e){return{left:e.left(),top:e.top(),right:e.right(),bottom:e.bottom(),width:e.width(),height:e.height()}},Lb={toRaw:_b},Hb=(Zn().browser.isSafari(),function(t){var n=void 0!==t?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Na(r,o)}),jb=function(t,n,r){var o=void 0!==r?r.dom():e.document,i=o.defaultView;i.scrollBy(t,n)},zb=function(e){var t=function(t,n){return Gt.fromPoint(Gt.fromDom(e.document),t,n)},n=function(e){return e.dom().getBoundingClientRect()},r=function(t,n,r,o){var i=Rp.exact(t,n,r,o);return xh(e,i).map(Lb.toRaw)},o=function(){return Sh(e).map(function(t){return zh.convertToRange(e,t)})},i=function(t){var n=Rp.relative(t.start(),t.finish());return zh.convertToRange(e,n)},u=function(t,n){return Rh(e,t,n).map(function(e){return Lh.create(e.start(),e.soffset(),e.finish(),e.foffset())})},a=function(){Th(e)},c=function(t){void 0===t&&(t=!1),Sh(e).each(function(n){return n.fold(function(e){return e.collapse(t)},function(n,r){var o=t?n:r;hh(e,o,o)},function(n,r,o,i){var u=t?n:o,a=t?r:i;ph(e,u,a,u,a)})})},l=function(t){yh(e,t)},f=function(t){ph(e,t.start(),t.soffset(),t.finish(),t.foffset())},s=function(t,n){hh(e,t,n)},d=function(){return e.innerHeight},m=function(){var t=Hb(Gt.fromDom(e.document));return t.top()},g=function(t,n){jb(t,n,Gt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:o,fromSitus:i,situsFromPoint:u,clearSelection:a,collapseSelection:c,setSelection:f,setRelativeSelection:s,selectContents:l,getInnerHeight:d,getScrollY:m,scrollBy:g}},Fb=lt("rows","cols"),Ub=function(e,t,n,r){var o=zb(e),i=f(o,t,n,r);return{mousedown:i.mousedown,mouseover:i.mouseover,mouseup:i.mouseup}},Vb=function(e,n,r,o){var i=zb(e),u=function(){return o.clear(n),A.none()},a=function(e,a,c,l,f,s){var d=e.raw(),m=d.which,g=d.shiftKey===!0,p=gu.retrieve(n,o.selectedSelector()).fold(function(){return Wb.isDown(m)&&g?t(Ab.select,i,n,r,Ib.down,l,a,o.selectRange):Wb.isUp(m)&&g?t(Ab.select,i,n,r,Ib.up,l,a,o.selectRange):Wb.isDown(m)?t(Ab.navigate,i,r,Ib.down,l,a,Ab.lastDownCheck):Wb.isUp(m)?t(Ab.navigate,i,r,Ib.up,l,a,Ab.firstUpCheck):A.none},function(e){var t=function(t){return function(){var r=tt(t,function(t){return qh.update(t.rows(),t.cols(),n,e,o)});return r.fold(function(){return gu.getEdges(n,o.firstSelectedSelector(),o.lastSelectedSelector()).map(function(e){var t=Wb.isDown(m)||s.isForward(m)?pp.after:pp.before;return i.setRelativeSelection(pp.on(e.first(),0),t(e.table())),o.clear(n),Wh.create(A.none(),!0)})},function(){return A.some(Wh.create(A.none(),!0))})}};return Wb.isDown(m)&&g?t([Fb(1,0)]):Wb.isUp(m)&&g?t([Fb(-1,0)]):s.isBackward(m)&&g?t([Fb(0,-1),Fb(-1,0)]):s.isForward(m)&&g?t([Fb(0,1),Fb(1,0)]):Wb.isNavigation(m)&&g===!1?u:A.none});return p()},c=function(e,t,i,u,a){return gu.retrieve(n,o.selectedSelector()).fold(function(){var c=e.raw(),l=c.which,f=c.shiftKey===!0;return f===!1?A.none():Wb.isNavigation(l)?qh.sync(n,r,t,i,u,a,o.selectRange):A.none()},A.none)};return{keydown:a,keyup:c}},qb=function(e,t,n,r){var o=zb(e);return function(e,i){r.clearBeforeUpdate(t),gu.identify(e,i,n).each(function(e){var n=e.boxes().getOr([]);r.selectRange(t,n,e.start(),e.finish()),o.selectContents(i),o.collapseSelection()})}},Gb={mouse:Ub,keyboard:Vb,external:qb},Yb=function(e,t){U(t,function(t){pc(e,t)})},Kb=function(e){return function(t){mc(t,e)}},Xb=function(e){return function(t){Yb(t,e)}},$b=function(e){var t=Kb(e.selected()),n=Xb([e.selected(),e.lastSelected(),e.firstSelected()]),r=function(t){var r=Kr(t,e.selectedSelector());U(r,n)},o=function(n,o,i,u){r(n),U(o,t),mc(i,e.firstSelected()),mc(u,e.lastSelected())};return{clearBeforeUpdate:r,clear:r,selectRange:o,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Jb=function(e,t,n){var r=function(t){Nt(t,e.selected()),Nt(t,e.firstSelected()),Nt(t,e.lastSelected())},o=function(t){Dt(t,e.selected(),"1")},i=function(e){u(e),n()},u=function(t){var n=Kr(t,e.selectedSelector());U(n,r)},a=function(n,r,u,a){i(n),U(r,o),Dt(u,e.firstSelected(),"1"),Dt(a,e.lastSelected(),"1"),t(r,u,a)};return{clearBeforeUpdate:u,clear:i,selectRange:a,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Qb={byClass:$b,byAttr:Jb},Zb=function(e,t,n){var r=e.slice(0,t[t.length-1].row()+1),o=fl(r,n);return J(o,function(e){var n=e.cells().slice(0,t[t.length-1].column()+1);return F(n,function(e){return e.element()})})},ew=function(e,t,n){var r=e.slice(t[0].row()+t[0].rowspan()-1,e.length),o=fl(r,n);return J(o,function(e){var n=e.cells().slice(t[0].column()+t[0].colspan()-1,+e.cells().length);return F(n,function(e){return e.element()})})},tw=function(e,t,n){var r=xo.fromTable(e),o=Bo.generate(r),i=bl(o,t);return i.map(function(e){var t=al.toGrid(o,n,!1),r=Zb(t,e,n),i=ew(t,e,n);return{upOrLeftCells:r,downOrRightCells:i}})},nw={getOtherCells:tw},rw=function(e){return hc(Gt.fromDom(e.target),"ephox-snooker-resizer-bar")===!1},ow=function(e){var t=function(){var t=Ks(e);return vu.retrieve(t,Tu.selectedSelector()).fold(function(){return void 0===e.selection.getStart()?Bu.none():Bu.single(e.selection)},function(e){return Bu.multiple(e)})};return{get:t}},iw=function(e,t){var n=g(A.none()),r=g([]),o=function(){return ng(e).bind(function(e){var n=yo.table(e);return n.map(function(n){return"caption"===Ct(e)?ju.notCell(e):ju.forMenu(t,n,e)})})},i=function(){n.set(jt(o)()),U(r.get(),function(e){return e()})},u=function(e,t){var o=function(){return n.get().fold(function(){e.setDisabled(!0)},function(n){e.setDisabled(t(n))})};return o(),r.set(r.get().concat([o])),function(){r.set(q(r.get(),function(e){return e!==o}))}},a=function(e){return u(e,function(){return!1})},c=function(e){return u(e,function(e){return"caption"===Ct(e.element())})},l=function(e){return u(e,function(e){return e.mergable().isNone()})},f=function(e){return u(e,function(e){return e.unmergable().isNone()})};return e.on("NodeChange TableSelectorChange",i),{onSetupTable:a,onSetupCellOrRow:c,onSetupMergeable:l,onSetupUnmergeable:f,resetTargets:i,targets:function(){return n.get()}}},uw=function(e,t){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var n=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:n("mceTableProps"),icon:"table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:n("mceTableDelete"),icon:"table-delete-table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:n("mceTableCellProps"),icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:n("mceTableMergeCells"),icon:"table-merge-cells",onSetup:t.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:n("mceTableSplitCells"),icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:n("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:n("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:n("mceTableDeleteRow"),icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:n("mceTableRowProps"),icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:n("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:n("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:n("mceTableDeleteCol"),icon:"table-delete-column",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",onAction:n("mceTableCutRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",onAction:n("mceTableCopyRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",onAction:n("mceTablePasteRowBefore"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",onAction:n("mceTablePasteRowAfter"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:n("mceInsertTable"),icon:"table"})
+},aw=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rd(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},cw={addButtons:uw,addToolbars:aw},lw=function(e,t){var n=function(t){return function(){return e.execCommand(t)}},r=function(t){var n=t.numRows,r=t.numColumns;e.undoManager.transact(function(){Gm.insert(e,r,n)}),e.addVisual()},o={text:"Table properties",onSetup:t.onSetupTable,onAction:n("mceTableProps")},i={text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,onAction:n("mceTableDelete")},u=[{type:"menuitem",text:"Insert row before",icon:"table-insert-row-above",onAction:n("mceTableInsertRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert row after",icon:"table-insert-row-after",onAction:n("mceTableInsertRowAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete row",icon:"table-delete-row",onAction:n("mceTableDeleteRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Row properties",icon:"table-row-properties",onAction:n("mceTableRowProps"),onSetup:t.onSetupCellOrRow},{type:"separator"},{type:"menuitem",text:"Cut row",onAction:n("mceTableCutRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Copy row",onAction:n("mceTableCopyRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row before",onAction:n("mceTablePasteRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row after",onAction:n("mceTablePasteRowAfter"),onSetup:t.onSetupCellOrRow}],a={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return u}},c=[{type:"menuitem",text:"Insert column before",icon:"table-insert-column-before",onAction:n("mceTableInsertColBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert column after",icon:"table-insert-column-after",onAction:n("mceTableInsertColAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete column",icon:"table-delete-column",onAction:n("mceTableDeleteCol"),onSetup:t.onSetupCellOrRow}],l={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return c}},f=[{type:"menuitem",text:"Cell properties",icon:"table-cell-properties",onAction:n("mceTableCellProps"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Merge cells",icon:"table-merge-cells",onAction:n("mceTableMergeCells"),onSetup:t.onSetupMergeable},{type:"menuitem",text:"Split cell",icon:"table-split-cells",onAction:n("mceTableSplitCells"),onSetup:t.onSetupUnmergeable}],s={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return f}};vd(e)===!1?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:n("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:r}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:n("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",o),e.ui.registry.addMenuItem("deletetable",i),e.ui.registry.addNestedMenuItem("row",a),e.ui.registry.addNestedMenuItem("column",l),e.ui.registry.addNestedMenuItem("cell",s),e.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold(function(){return""},function(e){return"caption"===Ct(e.element())?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"})}})},fw={addMenuItems:lw},sw=function(e){return e.get().fold(function(){},function(e){return F(e,function(e){return e.dom()})})},dw=function(e,t){var n=F(e,Gt.fromDom);t.set(A.from(n))},mw=function(e,t,n,r){return{insertTable:function(t,n){return Gm.insert(e,t,n)},setClipboardRows:function(e){return dw(e,t)},getClipboardRows:function(){return sw(t)},resizeHandler:n,selectionTargets:r}};m()}(window)});
+;/*!node_modules/tinymce/plugins/table/index.js*/
+amis.define("node_modules/tinymce/plugins/table/index",function(e){e("node_modules/tinymce/plugins/table/plugin")});
+;/*!node_modules/tinymce/plugins/paste/plugin.js*/
+amis.define("node_modules/tinymce/plugins/paste/plugin",function(){!function(t){"use strict";function e(t,e){return de.each(e,function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}function n(t){function n(t){var e=t.name,r=t;if("br"===e)return void(i+="\n");if("wbr"!==e){if(u[e]&&(i+=" "),a[e])return void(i+=" ");if(3===t.type&&(i+=t.value),!t.shortEnded&&(t=t.firstChild))do n(t);while(t=t.next);s[e]&&r.next&&(i+="\n","p"===e&&(i+="\n"))}}var r=Ie(),o=De({},r),i="",u=r.getShortEndedElements(),a=de.makeMap("script noscript style textarea video audio iframe object"," "),s=r.getBlockElements();return t=e(t,[//g]),n(o.parse(t)),i}function r(t){function n(t,e,n){return e||n?Ke:" "}return t=e(t,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/|/g,[/( ?)\u00a0<\/span>( ?)/g,n],/ /g,/ $/i])}function o(t){var e=0;return function(){return t+e++}}function i(t){return/u?i&&(i=i.parent.parent):(s=i,i=null)),i&&i.name===e?i.append(t):(s=s||i,i=new Se(e,1),o>1&&i.attr("start",""+o),t.wrap(i)),t.name="li",u>c&&s&&s.lastChild.append(i),c=u,r(t),n(t,/^\u00a0+/),n(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),n(t,/^\u00a0+/)}for(var i,s,c=1,l=[],f=t.firstChild;"undefined"!=typeof f&&null!==f;)if(l.push(f),f=f.walk(),null!==f)for(;"undefined"!=typeof f&&f.parent!==t;)f=f.walk();for(var d=0;d [\\s\\r\\n]+| )*(<\\/?("+n.join("|")+")[^>]*>)(?: [\\s\\r\\n]+| )*","g");return e=Ge.filter(e,[[r,"$1"]]),e=Ge.filter(e,[[/ /g," "],[/ /g," "],[/ /g," "]])}function m(t,e,n,r){if(r||n)return e;var o,i=Ve.getWebkitStyles(t);if(Ve.shouldRemoveWebKitStyles(t)===!1||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var u=t.dom,a=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(t,e,n,r){var i=u.parseStyle(u.decode(n)),s={};if("none"===o)return e+r;for(var c=0;c]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(t,e,n,r){return e+' style="'+n+'"'+r})}function p(t,e){t.$("a",e).find("font,u").each(function(e,n){t.dom.remove(n,!0)})}function g(){h.add("paste",function(t){if(b.hasProPlugin(t)===!1){var e=v(!1),n=v(Ve.isPasteAsTextEnabled(t)?"text":"html"),r=Zn(t,n),o=yr.setup(t);return wr.register(t,r),I.register(t,r),vr.setup(t),sr.register(t),pr.setup(t,r,e),w.get(r,o)}})}var v=function(t){var e=t,n=function(){return e},r=function(t){e=t},o=function(){return v(n())};return{get:n,set:r,clone:o}},h=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=function(e){return/(^|[ ,])powerpaste([, ]|$)/.test(e.settings.plugins)&&h.get("powerpaste")?("undefined"!=typeof t.window.console&&t.window.console.log&&t.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0):!1},b={hasProPlugin:y},P=function(t,e){return{clipboard:t,quirks:e}},w={get:P},x=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},_=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},T=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},C=function(t,e){return t.fire("paste",{ieFake:e})},k={firePastePreProcess:x,firePastePostProcess:_,firePastePlainTextToggle:T,firePaste:C},D=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),k.firePastePlainTextToggle(t,!1)):(e.pasteFormat.set("text"),k.firePastePlainTextToggle(t,!0)),t.focus()},F={togglePlainTextPaste:D},S=function(t,e){t.addCommand("mceTogglePlainTextPaste",function(){F.togglePlainTextPaste(t,e)}),t.addCommand("mceInsertClipboardContent",function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)})},I={register:S},E=function(){},R=function(t){return function(){return t}},O=R(!1),A=R(!0),j=function(){return M},M=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t){return t()},is:O,isSome:O,isNone:A,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:R(null),getOrUndefined:R(void 0),or:n,orThunk:e,map:j,each:E,bind:j,exists:O,forall:A,filter:j,equals:t,equals_:t,toArray:function(){return[]},toString:R("none()")};return Object.freeze&&Object.freeze(r),r}(),L=function(t){var e=R(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:A,isNone:O,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return L(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:M},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(O,function(e){return n(t,e)})}};return o},H=function(t){return null===t||void 0===t?M:L(t)},B={some:L,none:j,from:H},N=function(t){if(null===t)return"null";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},U=function(t){return function(e){return N(e)===t}},$=U("function"),W=Array.prototype.slice,z=function(t,e){for(var n=t.length,r=new Array(n),o=0;n>o;o++){var i=t[o];r[o]=e(i,o)}return r},V=function(t,e){for(var n=0,r=t.length;r>n;n++){var o=t[n];e(o,n)}},K=function(t,e){for(var n=[],r=0,o=t.length;o>r;r++){var i=t[r];e(i,r)&&n.push(i)}return n},q=function(t,e,n){return V(t,function(t){n=e(n,t)}),n},G=$(Array.from)?Array.from:function(t){return W.call(t)},X={},Y={exports:X};!function(t,e,n,r){!function(r){if("object"==typeof e&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof t&&t.amd)t([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function t(e,n,o){function i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof r&&r;if(!s&&c)return c(a,!0);if(u)return u(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return i(n||t)},f,f.exports,t,e,n,o)}return n[a].exports}for(var u="function"==typeof r&&r,a=0;a1)for(var n=1;ne;e++)u(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(r){if(n)return;n=!0,s(e,r)}}var d=setTimeout;i.prototype["catch"]=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(r);return u(this,new l(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){function r(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(t){r(i,t)},n)}e[i]=u,0===--o&&t(e)}catch(s){n(s)}}if(0===e.length)return t([]);for(var o=e.length,i=0;ir;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(t){d(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},"undefined"!=typeof e&&e.exports?e.exports=i:n.Promise||(n.Promise=i)}(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){function o(t,e){this._id=t,this._clearFn=e}var i=t("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;n.setTimeout=function(){return new o(u.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new o(u.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n.setImmediate="function"==typeof e?e:function(t){var e=c++,r=arguments.length<2?!1:a.call(arguments,1);return s[e]=!0,i(function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))}),e},n.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e){var n=t("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();e.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,X,Y,void 0);var Z=Y.exports.boltExport,J=function(e){var n=B.none(),r=[],o=function(t){return J(function(e){i(function(n){e(t(n))})})},i=function(t){a()?c(t):r.push(t)},u=function(t){n=B.some(t),s(r),r=[]},a=function(){return n.isSome()},s=function(t){V(t,c)},c=function(e){n.each(function(n){t.setTimeout(function(){e(n)},0)})};return e(u),{get:i,map:o,isReady:a}},Q=function(t){return J(function(e){e(t)})},te={nu:J,pure:Q},ee=function(e){t.setTimeout(function(){throw e},0)},ne=function(t){var e=function(e){t().then(e,ee)},n=function(e){return ne(function(){return t().then(e)})},r=function(e){return ne(function(){return t().then(function(t){return e(t).toPromise()})})},o=function(e){return ne(function(){return t().then(function(){return e.toPromise()})})},i=function(){return te.nu(e)},u=function(){var e=null;return ne(function(){return null===e&&(e=t()),e})},a=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:u,toPromise:a,get:e}},re=function(t){return ne(function(){return new Z(t)})},oe=function(t){return ne(function(){return Z.resolve(t)})},ie={nu:re,pure:oe},ue=function(t,e){return e(function(e){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=t.length&&e(n)}};0===t.length?e([]):V(t,function(t,e){t.get(o(e))})})},ae=function(t){return ue(t,ie.nu)},se=function(t,e){return ae(z(t,e))},ce=function(){var t=v(B.none()),e=function(){t.set(B.none())},n=function(e){t.set(B.some(e))},r=function(e){t.get().each(e)},o=function(){return t.get().isSome()};return{clear:e,set:n,isSet:o,on:r}},le=tinymce.util.Tools.resolve("tinymce.Env"),fe=tinymce.util.Tools.resolve("tinymce.util.Delay"),de=tinymce.util.Tools.resolve("tinymce.util.Tools"),me=tinymce.util.Tools.resolve("tinymce.util.VK"),pe="x-tinymce/html",ge="",ve=function(t){return ge+t},he=function(t){return t.replace(ge,"")},ye=function(t){return-1!==t.indexOf(ge)},be={mark:ve,unmark:he,isMarked:ye,internalHtmlMime:function(){return pe}},Pe=tinymce.util.Tools.resolve("tinymce.html.Entities"),we=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},xe=function(t){return t.replace(/\r?\n/g," ")},_e=function(t,e){var n,r=[],o="<"+t;if("object"==typeof e){for(n in e)e.hasOwnProperty(n)&&r.push(n+'="'+Pe.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}return o+">"},Te=function(t,e,n){var r=t.split(/\n\n/),o=_e(e,n),i=""+e+">",u=de.map(r,function(t){return t.split(/\n/).join(" ")}),a=function(t){return o+t+i};return 1===u.length?u[0]:de.map(u,a).join("")},Ce=function(t,e,n){return e?Te(t,e===!0?"p":e,n):xe(t)},ke={isPlainText:we,convert:Ce,toBRs:xe,toBlockElements:Te},De=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Fe=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Se=tinymce.util.Tools.resolve("tinymce.html.Node"),Ie=tinymce.util.Tools.resolve("tinymce.html.Schema"),Ee=function(t){return t.getParam("paste_block_drop",!1)},Re=function(t){return t.getParam("paste_data_images",!1)},Oe=function(t){return t.getParam("paste_filter_drop",!0)},Ae=function(t){return t.getParam("paste_preprocess")},je=function(t){return t.getParam("paste_postprocess")},Me=function(t){return t.getParam("paste_webkit_styles")},Le=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},He=function(t){return t.getParam("paste_merge_formats",!0)},Be=function(t){return t.getParam("smart_paste",!0)},Ne=function(t){return t.getParam("paste_as_text",!1)},Ue=function(t){return t.getParam("paste_retain_style_properties")},$e=function(t){var e="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return t.getParam("paste_word_valid_elements",e)},We=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},ze=function(t){return t.getParam("paste_enable_default_filters",!0)},Ve={shouldBlockDrop:Ee,shouldPasteDataImages:Re,shouldFilterDrop:Oe,getPreProcess:Ae,getPostProcess:je,getWebkitStyles:Me,shouldRemoveWebKitStyles:Le,shouldMergeFormats:He,isSmartPasteEnabled:Be,isPasteAsTextEnabled:Ne,getRetainStyleProps:Ue,getWordValidElements:$e,shouldConvertWordFakeLists:We,shouldUseDefaultFilters:ze},Ke=" ",qe=function(){return-1!==t.navigator.userAgent.indexOf(" Edge/")},Ge={filter:e,innerText:n,trimHtml:r,createIdGenerator:o,isMsEdge:qe},Xe=function(t,e){var n,r;n=Ve.getRetainStyleProps(t),n&&(r=de.makeMap(n.split(/[, ]/))),e=Ge.filter(e,[/ /gi,/]+id="?docs-internal-[^>]*>/gi,//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,Ke],[/([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(Ke):""}]]);var o=Ve.getWordValidElements(t),i=Ie({valid_elements:o,valid_children:"-li[p]"});de.each(i.elements,function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))});var u=De({},i);u.addAttributeFilter("style",function(e){for(var n,o=e.length;o--;)n=e[o],n.attr("style",c(t,r,n,n.attr("style"))),"span"===n.name&&n.parent&&!n.attributes.length&&n.unwrap()}),u.addAttributeFilter("class",function(t){for(var e,n,r=t.length;r--;)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)}),u.addNodeFilter("del",function(t){for(var e=t.length;e--;)t[e].remove()}),u.addNodeFilter("a",function(t){for(var e,n,r,o=t.length;o--;)if(e=t[o],n=e.attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()});var a=u.parse(e);return Ve.shouldConvertWordFakeLists(t)&&s(a),e=Fe({validate:t.settings.validate},i).serialize(a)},Ye=function(t,e){return Ve.shouldUseDefaultFilters(t)?Xe(t,e):e},Ze={preProcess:Ye,isWordContent:i},Je=function(t,e){var n=De({},t.schema);n.addNodeFilter("meta",function(t){de.each(t,function(t){return t.remove()})});var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return Fe({validate:t.settings.validate},t.schema).serialize(r)},Qe=function(t,e){return{content:t,cancelled:e}},tn=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=k.firePastePostProcess(t,o,n,r);return Qe(i.node.innerHTML,i.isDefaultPrevented())},en=function(t,e,n,r){var o=k.firePastePreProcess(t,e,n,r),i=Je(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?tn(t,i,n,r):Qe(i,o.isDefaultPrevented())},nn=function(t,e,n){var r=Ze.isWordContent(e),o=r?Ze.preProcess(t,e):e;return en(t,o,n,r)},rn={process:nn},on=function(t,e){return t.insertContent(e,{merge:Ve.shouldMergeFormats(t),paste:!0}),!0},un=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},an=function(t){return un(t)&&/.(gif|jpe?g|png)$/.test(t)},sn=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.insertContent(' ')}),!0},cn=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.execCommand("mceInsertLink",!1,e)}),!0},ln=function(t,e,n){return t.selection.isCollapsed()===!1&&un(e)?cn(t,e,n):!1},fn=function(t,e,n){return an(e)?sn(t,e,n):!1},dn=function(t,e){de.each([ln,fn,on],function(n){return n(t,e,on)!==!0})},mn=function(t,e,n){n||Ve.isSmartPasteEnabled(t)===!1?on(t,e):dn(t,e)},pn={isImageUrl:an,isAbsoluteUrl:un,insertContent:mn},gn=function(t){return-1!==" \f ".indexOf(t)},vn=function(t){return"\n"===t||"\r"===t},hn=function(t,e){return e=0?vn(t[e]):!1},yn=function(t){var e=q(t,function(e,n){return gn(n)||n===Ke?e.pcIsSpace||""===e.str||e.str.length===t.length-1||hn(t,e.str.length+1)?{pcIsSpace:!1,str:e.str+Ke}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:vn(n),str:e.str+n}},{pcIsSpace:!1,str:""});return e.str},bn=function(t,e,n,r){var o=rn.process(t,e,n);o.cancelled===!1&&pn.insertContent(t,o.content,r)},Pn=function(t,e,n){var r=n?n:be.isMarked(e);bn(t,be.unmark(e),r,!1)},wn=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=yn(n),o=ke.convert(r,t.settings.forced_root_block,t.settings.forced_root_block_attrs);bn(t,o,!1,!0)},xn=function(t){var e={},n="data:text/mce-internal,";if(t){if(t.getData){var r=t.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(e["text/plain"]=r)}if(t.types)for(var o=0;o0},Cn=function(t){return Tn(t,"text/html")||Tn(t,"text/plain")},kn=function(t){var e;return e=t.indexOf(","),-1!==e?t.substr(e+1):null},Dn=function(t,e){return t.images_dataimg_filter?t.images_dataimg_filter(e):!0},Fn=function(t,e){var n=e.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i);return n?t.dom.encode(n[1]):null},Sn=Ge.createIdGenerator("mceclip"),In=function(e,n){var r=kn(n.uri),o=Sn(),i=e.settings.images_reuse_filename&&n.blob.name?Fn(e,n.blob.name):o,u=new t.Image;if(u.src=n.uri,Dn(e.settings,u)){var a=e.editorUpload.blobCache,s=void 0,c=void 0;c=a.findFirst(function(t){return t.base64()===r}),c?s=c:(s=a.create(o,n.blob,r,i),a.add(s)),Pn(e,' ',!1)}else Pn(e,' ',!1)},En=function(t){return"paste"===t.type},Rn=function(t){return se(t,function(t){return ie.nu(function(e){var n=t.getAsFile?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)})})},On=function(t){var e=t.items?z(G(t.items),function(t){return t.getAsFile()}):[],n=t.files?G(t.files):[],r=K(e.length>0?e:n,function(t){return/^image\/(jpeg|png|gif|bmp)$/.test(t.type)});return r},An=function(t,e,n){var r=En(e)?e.clipboardData:e.dataTransfer;if(t.settings.paste_data_images&&r){var o=On(r);if(o.length>0)return e.preventDefault(),Rn(o).get(function(e){n&&t.selection.setRng(n),V(e,function(e){In(t,e)})}),!0}return!1},jn=function(e){var n=e.clipboardData;return-1!==t.navigator.userAgent.indexOf("Android")&&n&&n.items&&0===n.items.length},Mn=function(t){return me.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},Ln=function(e,n,r){function o(t,r,o,i){var u,a,s;return Tn(t,"text/html")?u=t["text/html"]:(u=n.getHtml(),i=i?i:be.isMarked(u),n.isDefaultContent(u)&&(o=!0)),u=Ge.trimHtml(u),n.remove(),a=i===!1&&ke.isPlainText(u),s=pn.isImageUrl(u),(!u.length||a&&!s)&&(o=!0),(o||s)&&(u=Tn(t,"text/plain")&&a?t["text/plain"]:Ge.innerText(u)),n.isDefaultContent(u)?void(r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.")):void(o?wn(e,u):Pn(e,u,i))}var i,u=ce();e.on("keydown",function(r){function o(t){Mn(t)&&!t.isDefaultPrevented()&&n.remove()}if(Mn(r)&&!r.isDefaultPrevented()){if(i=r.shiftKey&&86===r.keyCode,i&&le.webkit&&-1!==t.navigator.userAgent.indexOf("Version/"))return;if(r.stopImmediatePropagation(),u.set(r),window.setTimeout(function(){u.clear()},100),le.ie&&i)return r.preventDefault(),void k.firePaste(e,!0);n.remove(),n.create(),e.once("keyup",o),e.once("paste",function(){e.off("keyup",o)})}});var a=function(){return n.getLastRng()||e.selection.getRng()};e.on("paste",function(t){var s=u.isSet(),c=_n(e,t),l="text"===r.get()||i,f=Tn(c,be.internalHtmlMime());return i=!1,t.isDefaultPrevented()||jn(t)?void n.remove():!Cn(c)&&An(e,t,a())?void n.remove():(s||t.preventDefault(),!le.ie||s&&!t.ieFake||Tn(c,"text/html")||(n.create(),e.dom.bind(n.getEl(),"paste",function(t){t.stopPropagation()}),e.getDoc().execCommand("Paste",!1,null),c["text/html"]=n.getHtml()),void(Tn(c,"text/html")?(t.preventDefault(),f||(f=be.isMarked(c["text/html"])),o(c,s,l,f)):fe.setEditorTimeout(e,function(){o(c,s,l,f)},0)))})},Hn=function(t,e,n){Ln(t,e,n);var r;t.parser.addNodeFilter("img",function(e,n,o){var i=function(t){return t.data&&t.data.paste===!0},u=function(t){t.attr("data-mce-object")||r===le.transparentSrc||t.remove()},a=function(t){return 0===t.indexOf("webkit-fake-url")},s=function(t){return 0===t.indexOf("data:")};if(!t.settings.paste_data_images&&i(o))for(var c=e.length;c--;)r=e[c].attr("src"),r&&(a(r)?u(e[c]):!t.settings.allow_html_data_urls&&s(r)&&u(e[c]))})},Bn=function(e){return le.ie&&e.inline?t.document.body:e.getBody()},Nn=function(t){return Bn(t)!==t.getBody()},Un=function(t,e,n){Nn(t)&&t.dom.bind(e,"paste keyup",function(){Xn(t,n)||t.fire("paste")})},$n=function(t,e,n){var r,o=t.dom,i=t.getBody();e.set(t.selection.getRng()),r=t.dom.add(Bn(t),"div",{id:"mcepastebin","class":"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n),(le.ie||le.gecko)&&o.setStyle(r,"left","rtl"===o.getStyle(i,"direction",!0)?65535:-65535),o.bind(r,"beforedeactivate focusin focusout",function(t){t.stopPropagation()}),Un(t,r,n),r.focus(),t.selection.select(r,!0)},Wn=function(t,e){if(zn(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},zn=function(t){return t.dom.get("mcepastebin")},Vn=function(t){var e,n,r,o,i,u=function(e,n){e.appendChild(n),t.dom.remove(n,!0)};for(n=de.grep(Bn(t).childNodes,function(t){return"mcepastebin"===t.id}),e=n.shift(),de.each(n,function(t){u(e,t)}),o=t.dom.select("div[id=mcepastebin]",e),r=o.length-1;r>=0;r--)i=t.dom.create("div"),e.insertBefore(i,o[r]),u(i,o[r]);return e?e.innerHTML:""},Kn=function(t){return t.get()},qn=function(t,e){return e===t},Gn=function(t){return t&&"mcepastebin"===t.id},Xn=function(t,e){var n=zn(t);return Gn(n)&&qn(e,n.innerHTML)},Yn=function(t){var e=v(null),n="%MCEPASTEBIN%";return{create:function(){return $n(t,e,n)},remove:function(){return Wn(t,e)},getEl:function(){return zn(t)},getHtml:function(){return Vn(t)},getLastRng:function(){return Kn(e)},isDefault:function(){return Xn(t,n)},isDefaultContent:function(t){return qn(n,t)}}},Zn=function(t,e){var n=Yn(t);return t.on("PreInit",function(){return Hn(t,n,e)}),{pasteFormat:e,pasteHtml:function(e,n){return Pn(t,e,n)},pasteText:function(e){return wn(t,e)},pasteImageData:function(e,n){return An(t,e,n)},getDataTransferItems:xn,hasHtmlOrText:Cn,hasContentType:Tn}},Jn=function(t){return le.iOS===!1&&void 0!==t&&"function"==typeof t.setData&&Ge.isMsEdge()!==!0},Qn=function(t,e,n){if(!Jn(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(be.internalHtmlMime(),e),!0}catch(r){return!1}},tr=function(t,e,n,r){Qn(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},er=function(t){return function(e,n){var r=be.mark(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var u=t.selection.getRng();i.focus();var a=t.dom.createRng();a.selectNodeContents(i),t.selection.setRng(a),fe.setTimeout(function(){t.selection.setRng(u),o.parentNode.removeChild(o),n()},0)}},nr=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},rr=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},or=function(t){return!t.selection.isCollapsed()||rr(t)},ir=function(t){return function(e){or(t)&&tr(e,nr(t),er(t),function(){if(le.browser.isChrome()){var e=t.selection.getRng();fe.setEditorTimeout(t,function(){t.selection.setRng(e),t.execCommand("Delete")},0)}else t.execCommand("Delete")})}},ur=function(t){return function(e){or(t)&&tr(e,nr(t),er(t),function(){})}},ar=function(t){t.on("cut",ir(t)),t.on("copy",ur(t))},sr={register:ar},cr=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),lr=function(t,e){return cr.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},fr=function(t){var e=t["text/plain"];return e?0===e.indexOf("file://"):!1},dr=function(t,e){t.focus(),t.selection.setRng(e)},mr=function(t,e,n){Ve.shouldBlockDrop(t)&&t.on("dragend dragover draggesture dragdrop drop drag",function(t){t.preventDefault(),t.stopPropagation()}),Ve.shouldPasteDataImages(t)||t.on("drop",function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()}),t.on("drop",function(r){var o,i;if(i=lr(t,r),!r.isDefaultPrevented()&&!n.get()){o=e.getDataTransferItems(r.dataTransfer);var u=e.hasContentType(o,be.internalHtmlMime());if((e.hasHtmlOrText(o)&&!fr(o)||!e.pasteImageData(r,i))&&i&&Ve.shouldFilterDrop(t)){var a=o["mce-internal"]||o["text/html"]||o["text/plain"];a&&(r.preventDefault(),fe.setEditorTimeout(t,function(){t.undoManager.transact(function(){o["mce-internal"]&&t.execCommand("Delete"),dr(t,i),a=Ge.trimHtml(a),o["text/html"]?e.pasteHtml(a,u):e.pasteText(a)
+})}))}}}),t.on("dragstart",function(){n.set(!0)}),t.on("dragover dragend",function(e){Ve.shouldPasteDataImages(t)&&n.get()===!1&&(e.preventDefault(),dr(t,lr(t,e))),"dragend"===e.type&&n.set(!1)})},pr={setup:mr},gr=function(t){var e=t.plugins.paste,n=Ve.getPreProcess(t);n&&t.on("PastePreProcess",function(t){n.call(e,e,t)});var r=Ve.getPostProcess(t);r&&t.on("PastePostProcess",function(t){r.call(e,e,t)})},vr={setup:gr},hr=function(t){le.webkit&&l(t,m),le.ie&&(l(t,d),f(t,p))},yr={setup:hr},br=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}},Pr=function(t,e){t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:br(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:br(t,e)})},wr={register:Pr};g()}(window)});
+;/*!node_modules/tinymce/plugins/paste/index.js*/
+amis.define("node_modules/tinymce/plugins/paste/index",function(e){e("node_modules/tinymce/plugins/paste/plugin")});
+;/*!node_modules/tinymce/plugins/help/plugin.js*/
+amis.define("node_modules/tinymce/plugins/help/plugin",function(){!function(){"use strict";function e(e){for(var t=[],n=1;nn;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)},l=function(){},h=function(e){return function(){return e}},m=function(e){return function(){for(var t=[],n=0;n-1},O=function(e,t){for(var n=e.length,o=new Array(n),r=0;n>r;r++){var a=e[r];o[r]=t(a,r)}return o},F=function(e,t){for(var n=[],o=0,r=e.length;r>o;o++){var a=e[o];t(a,o)&&n.push(a)}return n},S=function(e,t){for(var n=0,o=e.length;o>n;n++){var r=e[n];if(t(r,n))return v.some(r)}return v.none()},_=(A(Array.from)?Array.from:function(e){return T.call(e)},Object.keys),E=Object.hasOwnProperty,I=function(e,t){return j(e,t)?v.from(e[t]):v.none()},j=function(e,t){return E.call(e,t)},H=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o"+K.translate(e)+""}).join("");return''+K.translate("Premium plugins:")+"
"},o=e(q,'${name} '),r=function(e,t){return S(X.urls,function(e){return e.key===t}).fold(function(){var n=e.plugins[t].getMetadata;return"function"==typeof n?o(n()):t},function(e){return o({name:e.name,url:"https://www.tiny.cloud/docs/plugins/"+e.key})})},a=function(t){var n=_(t.plugins);return void 0===t.settings.forced_plugins?n:F(n,m(e(M,t.settings.forced_plugins)))},i=function(e){var t=a(e),n=O(t,function(t){return""+r(e,t)+" "}),o=n.length,i=n.join(""),s=""+K.translate(["Plugins installed ({0}):",o])+"
";return s},s=function(e){return null==e?"":''+i(e)+"
"},c={type:"htmlpanel",presets:"document",html:[s(t),n()].join("")};return{name:"plugins",title:"Plugins",items:[c]}},Y={tab:$},Z=tinymce.util.Tools.resolve("tinymce.EditorManager"),G=function(){var e=function(e,t){return 0===e.indexOf("@")?"X.X.X":e+"."+t},t=e(Z.majorVersion,Z.minorVersion),n='TinyMCE '+t+" ",o={type:"htmlpanel",html:""+K.translate(["You are using {0}",n])+"
",presets:"document"};return{name:"versions",title:"Version",items:[o]}},J={tab:G},Q="Editor UI keyboard navigation \n\nActivating keyboard navigation \n\nThe sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:
\n\n Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS) \n Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS) \n Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS) \n \n\nFocusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline.
\n\nMoving between UI sections \n\nWhen keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:
\n\n the menubar \n each group of the toolbar \n the sidebar \n the element path in the footer \n the wordcount toggle button in the footer \n the branding link in the footer \n \n\nPressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.
\n\nMoving within UI sections \n\nKeyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:
\n\n moving between menus in the menubar \n moving between buttons in a toolbar group \n moving between items in the element path \n \n\nIn all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group.
\n\nExecuting buttons \n\nTo execute a button, navigate the selection to the desired button and hit space or enter.
\n\nOpening, navigating and closing menus \n\nWhen focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.
\n\nTo close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.
\n\nContext toolbars and menus \n\nTo focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).
\n\nContext toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.
\n\nDialog navigation \n\nThere are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.
\n\nWhen a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.
\n\nWhen a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab’s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.
",et=function(){var e={type:"htmlpanel",presets:"document",html:Q};return{name:"keyboardnav",title:"Keyboard Navigation",items:[e]}},tt={tab:et},nt=function(e,t){var n={},o=O(e,function(e){return"string"==typeof e?(j(t,e)&&(n[e]=t[e]),e):(n[e.name]=e,e.name)});return{tabs:n,names:o}},ot=function(e){var t=_(e),n=P(t,"versions");return n.each(function(e){t.splice(e,1),t.push("versions")}),{tabs:e,names:t}},rt=function(e,t){var n,o=V.tab(),r=tt.tab(),a=Y.tab(e),i=J.tab(),s=u((n={},n[o.name]=o,n[r.name]=r,n[a.name]=a,n[i.name]=i,n),t.get());return U(e).fold(function(){return ot(s)},function(e){return nt(e,s)})},at=function(e,t){return function(){var n=rt(e,t),o=n.tabs,r=n.names,a=O(r,function(e){return I(o,e)}),i=H(a),s={type:"tabpanel",tabs:i};e.windowManager.open({title:"Help",size:"medium",body:s,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}};t()}()});
+;/*!node_modules/tinymce/plugins/help/index.js*/
+amis.define("node_modules/tinymce/plugins/help/index",function(e){e("node_modules/tinymce/plugins/help/plugin")});
+;/*!node_modules/tinymce/plugins/wordcount/plugin.js*/
+amis.define("node_modules/tinymce/plugins/wordcount/plugin",function(){!function(){"use strict";function t(t){void 0===t&&(t=300),n.add("wordcount",function(n){var e=Z(n);return tn(n,e),V(n,e,t),e})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){},r=function(t){return function(){return t}},o=function(t){return t},u=r(!1),i=r(!0),c=function(){return c=Object.assign||function(t){for(var n,e=1,r=arguments.length;r>e;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c.apply(this,arguments)},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",l={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵----]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},f={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},E=[new RegExp(l.aletter),new RegExp(l.midnumlet),new RegExp(l.midletter),new RegExp(l.midnum),new RegExp(l.numeric),new RegExp(l.cr),new RegExp(l.lf),new RegExp(l.newline),new RegExp(l.extend),new RegExp(l.format),new RegExp(l.katakana),new RegExp(l.extendnumlet),new RegExp("@")],s="",g=new RegExp("^"+l.punctuation+"$"),d=/^\s+$/,p=function(){return T},T=function(){var t=function(t){return t.isNone()},n=function(t){return t()},o=function(t){return t},c={fold:function(t){return t()},is:u,isSome:u,isNone:i,getOr:o,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:o,orThunk:n,map:p,each:e,bind:p,exists:u,forall:i,filter:p,equals:t,equals_:t,toArray:function(){return[]},toString:r("none()")};return Object.freeze&&Object.freeze(c),c}(),h=function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n},A=function(t){return function(n){return h(n)===t}},C=A("function"),R=Array.prototype.slice,m=function(t,n){for(var e=t.length,r=new Array(e),o=0;e>o;o++){var u=t[o];r[o]=n(u,o)}return r},y=(C(Array.from)?Array.from:function(t){return R.call(t)},E),N=f.OTHER,M=function(t){for(var n=N,e=y.length,r=0;e>r;++r){var o=y[r];if(o&&o.test(t)){n=r;break}}return n},v=function(t){var n={};return function(e){if(n[e])return n[e];var r=t(e);return n[e]=r,r}},w=function(t){var n=v(M);return m(t,n)},L=function(t,n){var e,r,o=t[n],u=t[n+1];return 0>n||n>t.length-1&&0!==n?!1:o===f.ALETTER&&u===f.ALETTER?!1:(r=t[n+2],o!==f.ALETTER||u!==f.MIDLETTER&&u!==f.MIDNUMLET&&u!==f.AT||r!==f.ALETTER?(e=t[n-1],(o!==f.MIDLETTER&&o!==f.MIDNUMLET&&u!==f.AT||u!==f.ALETTER||e!==f.ALETTER)&&(o!==f.NUMERIC&&o!==f.ALETTER||u!==f.NUMERIC&&u!==f.ALETTER)&&(o!==f.MIDNUM&&o!==f.MIDNUMLET||u!==f.NUMERIC||e!==f.NUMERIC)&&(o!==f.NUMERIC||u!==f.MIDNUM&&u!==f.MIDNUMLET||r!==f.NUMERIC)?o===f.EXTEND||o===f.FORMAT||e===f.EXTEND||e===f.FORMAT||u===f.EXTEND||u===f.FORMAT?!1:o===f.CR&&u===f.LF?!1:o===f.NEWLINE||o===f.CR||o===f.LF?!0:u===f.NEWLINE||u===f.CR||u===f.LF?!0:o===f.KATAKANA&&u===f.KATAKANA?!1:(u!==f.EXTENDNUMLET||o!==f.ALETTER&&o!==f.NUMERIC&&o!==f.KATAKANA&&o!==f.EXTENDNUMLET)&&(o!==f.EXTENDNUMLET||u!==f.ALETTER&&u!==f.NUMERIC&&u!==f.KATAKANA)?o===f.AT?!1:!0:!1:!1):!1)},D="",U=s,I=d,x=g,W=function(t){return"http"===t||"https"===t},b=function(t,n){var e;for(e=n;e ")})},o={register:t},i=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})},r={register:i};n()}()});
+;/*!node_modules/tinymce/plugins/hr/index.js*/
+amis.define("node_modules/tinymce/plugins/hr/index",function(n){n("node_modules/tinymce/plugins/hr/plugin")});
+;/*!node_modules/tinymce/plugins/pagebreak/plugin.js*/
+amis.define("node_modules/tinymce/plugins/pagebreak/plugin",function(){!function(){"use strict";function e(){t.add("pagebreak",function(e){s.register(e),f.register(e),g.setup(e),p.setup(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){return e.getParam("pagebreak_separator","")},r=function(e){return e.getParam("pagebreak_split_block",!1)},o={getSeparatorHtml:n,shouldSplitBlock:r},i=function(){return"mce-pagebreak"},c=function(){return' '},l=function(e){var t=o.getSeparatorHtml(e),a=new RegExp(t.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");e.on("BeforeSetContent",function(e){e.content=e.content.replace(a,c())}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(a){for(var n,r,i=a.length;i--;)if(n=a[i],r=n.attr("class"),r&&-1!==r.indexOf("mce-pagebreak")){var c=n.parent;if(e.schema.getBlockElements()[c.name]&&o.shouldSplitBlock(e)){c.type=3,c.value=t,c.raw=!0,n.remove();continue}n.type=3,n.value=t,n.raw=!0}})})},g={setup:l,getPlaceholderHtml:c,getPageBreakClass:i},u=function(e){e.addCommand("mcePageBreak",function(){e.insertContent(e.settings.pagebreak_split_block?""+g.getPlaceholderHtml()+"
":g.getPlaceholderHtml())})},s={register:u},m=function(e){e.on("ResolveName",function(t){"IMG"===t.target.nodeName&&e.dom.hasClass(t.target,g.getPageBreakClass())&&(t.name="pagebreak")})},p={setup:m},d=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})},f={register:d};e()}()});
+;/*!node_modules/tinymce/plugins/pagebreak/index.js*/
+amis.define("node_modules/tinymce/plugins/pagebreak/index",function(e){e("node_modules/tinymce/plugins/pagebreak/plugin")});
+;/*!node_modules/tinymce/plugins/spellchecker/plugin.js*/
+amis.define("node_modules/tinymce/plugins/spellchecker/plugin",function(){!function(e){"use strict";function t(e){return e&&1===e.nodeType&&"false"===e.contentEditable}function n(){o.add("spellchecker",function(e,t){if(a.hasProPlugin(e)===!1){var n=r(!1),o=r(k.getLanguage(e)),i=r(null),c=r(null);return K.register(e,t,n,i,o,c),Z.setup(e,t,c,n,i,o),q.register(e,t,n,i,c,o),j.get(e,n,c,i,o,t)}})}var r=function(e){var t=e,n=function(){return t},o=function(e){t=e},i=function(){return r(n())};return{get:n,set:o,clone:i}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t){return/(^|[ ,])tinymcespellchecker([, ]|$)/.test(t.settings.plugins)&&o.get("tinymcespellchecker")?("undefined"!=typeof e.window.console&&e.window.console.log&&e.window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),!0):!1},a={hasProPlugin:i},c=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=tinymce.util.Tools.resolve("tinymce.util.URI"),u=tinymce.util.Tools.resolve("tinymce.util.XHR"),s=function(e){return e.fire("SpellcheckStart")},d=function(e){return e.fire("SpellcheckEnd")},f={fireSpellcheckStart:s,fireSpellcheckEnd:d},g=function(e){var t="English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv";return e.getParam("spellchecker_languages",t)},h=function(e){var t=e.getParam("language","en");return e.getParam("spellchecker_language",t)},p=function(e){return e.getParam("spellchecker_rpc_url")},m=function(e){return e.getParam("spellchecker_callback")},v=function(e){var t=new RegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`§©«®±¶·¸»¼½¾¿×÷¤”“„ ]+',"g");return e.getParam("spellchecker_wordchar_pattern",t)},k={getLanguages:g,getLanguage:h,getRpcUrl:p,getSpellcheckerCallback:m,getSpellcheckerWordcharPattern:v},x=function(e,n){function r(e,t){if(!e[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}function o(e){var n;if(3===e.nodeType)return e.data;if(T[e.nodeName]&&!w[e.nodeName])return"";if(t(e))return"\n";if(n="",(w[e.nodeName]||P[e.nodeName])&&(n+="\n"),e=e.firstChild)do n+=o(e);while(e=e.nextSibling);return n}function i(e,n,r){var o,i,a,c,l,u=[],s=0,d=e,f=0;n=n.slice(0),n.sort(function(e,t){return e.start-t.start}),l=n.shift();e:for(;;){if((w[d.nodeName]||P[d.nodeName]||t(d))&&s++,3===d.nodeType&&(!i&&d.length+s>=l.end?(i=d,c=l.end-s):o&&u.push(d),!o&&d.length+s>l.start&&(o=d,a=l.start-s),s+=d.length),o&&i){if(d=r({startNode:o,startNodeIndex:a,endNode:i,endNodeIndex:c,innerNodes:u,match:l.text,matchIndex:f}),s-=i.length-c,o=null,i=null,u=[],l=n.shift(),f++,!l)break}else if(T[d.nodeName]&&!w[d.nodeName]||!d.firstChild){if(d.nextSibling){d=d.nextSibling;continue}}else if(!t(d)){d=d.firstChild;continue}for(;;){if(d.nextSibling){d=d.nextSibling;break}if(d.parentNode===e)break e;d=d.parentNode}}}function a(e){function t(t,n){var r=I[n];r.stencil||(r.stencil=e(r));var o=r.stencil.cloneNode(!1);return o.setAttribute("data-mce-index",n),t&&o.appendChild(B.doc.createTextNode(t)),o}return function(e){var n,r,o,i=e.startNode,a=e.endNode,c=e.matchIndex,l=B.doc;if(i===a){var u=i;o=u.parentNode,e.startNodeIndex>0&&(n=l.createTextNode(u.data.substring(0,e.startNodeIndex)),o.insertBefore(n,u));var s=t(e.match,c);return o.insertBefore(s,u),e.endNodeIndexf;++f){var h=e.innerNodes[f],p=t(h.data,c);h.parentNode.replaceChild(p,h)}var m=t(a.data.substring(0,e.endNodeIndex),c);return o=i.parentNode,o.insertBefore(n,i),o.insertBefore(d,i),o.removeChild(i),o=a.parentNode,o.insertBefore(m,a),o.insertBefore(r,a),o.removeChild(a),m}}function c(e){for(var t=e.parentNode;e.childNodes.length>0;)t.insertBefore(e.childNodes[0],e);t.removeChild(e)}function l(e){return-1!==e.className.indexOf("mce-spellchecker-word")}function u(t){var n=e.getElementsByTagName("*"),r=[];t="number"==typeof t?""+t:null;for(var o=0;ot&&e(I[t],t)!==!1;t++);return this}function g(t){return I.length&&i(e,I,a(t)),this}function h(e,t){if(b&&e.global)for(;y=e.exec(b);)I.push(r(y,t));return this}function p(e){var t,n=u(e?s(e):null);for(t=n.length;t--;)c(n[t]);return this}function m(e){return I[e.getAttribute("data-mce-index")]}function v(e){return u(s(e))[0]}function k(e,t,n){return I.push({start:e,end:e+t,text:b.substr(e,t),data:n}),this}function x(e){var t=u(s(e)),r=n.dom.createRng();return r.setStartBefore(t[0]),r.setEndAfter(t[t.length-1]),r}function N(e,t){var r=x(e);return r.deleteContents(),t.length>0&&r.insertNode(n.dom.doc.createTextNode(t)),r}function S(){return I.splice(0,I.length),p(),this}var y,b,w,T,P,I=[],B=n.dom;return w=n.schema.getBlockElements(),T=n.schema.getWhiteSpaceElements(),P=n.schema.getShortEndedElements(),b=o(e),{text:b,matches:I,each:f,filter:d,reset:S,matchFromElement:m,elementFromMatch:v,find:h,add:k,wrap:g,unwrap:p,replace:N,rangeFromMatch:x,indexOf:s}},N=function(){},S=function(e){return function(){return e}},y=S(!1),b=S(!0),w=function(){return T},T=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:y,isSome:y,isNone:b,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:S(null),getOrUndefined:S(void 0),or:n,orThunk:t,map:w,each:N,bind:w,exists:y,forall:b,filter:w,equals:e,equals_:e,toArray:function(){return[]},toString:S("none()")};return Object.freeze&&Object.freeze(r),r}(),P=Object.hasOwnProperty,I=function(e){for(var t in e)if(P.call(e,t))return!1;return!0},B=function(e,t){if(!t.get()){var n=x(e.getBody(),e);t.set(n)}return t.get()},A=function(e,t,n){return function(r,o,i,a){var s={method:r,lang:n.get()},d="";s["addToDictionary"===r?"word":"text"]=o,c.each(s,function(e,t){d&&(d+="&"),d+=t+"="+encodeURIComponent(e)}),u.send({url:new l(t).toAbsolute(k.getRpcUrl(e)),type:"post",content_type:"application/x-www-form-urlencoded",data:d,success:function(t){var n=JSON.parse(t);if(n)n.error?a(n.error):i(n);else{var r=e.translate("Server response wasn't proper JSON.");a(r)}},error:function(){var t=e.translate("The spelling service was not found: (")+k.getRpcUrl(e)+e.translate(")");a(t)}})}},E=function(e,t,n,r,o,i,a){var c=k.getSpellcheckerCallback(e),l=c?c:A(e,t,n);l.call(e.plugins.spellchecker,r,o,i,a)},C=function(e,t,n,r,o,i){if(!D(e,n,r)){var a=function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1),D(e,n,r)},c=function(t){W(e,n,r,o,t)};e.setProgressState(!0),E(e,t,i,"spellcheck",B(e,r).text,c,a),e.focus()}},O=function(e,t,n){e.dom.select("span.mce-spellchecker-word").length||D(e,t,n)},R=function(e,t,n,r,o,i,a){e.setProgressState(!0),E(e,t,o,"addToDictionary",i,function(){e.setProgressState(!1),e.dom.remove(a,!0),O(e,n,r)},function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1)})},_=function(e,t,n,r,o,i){e.selection.collapse(),i?c.each(e.dom.select("span.mce-spellchecker-word"),function(t){t.getAttribute("data-mce-word")===r&&e.dom.remove(t,!0)}):e.dom.remove(o,!0),O(e,t,n)},D=function(e,t,n){var r=e.selection.getBookmark();return B(e,n).reset(),e.selection.moveToBookmark(r),n.set(null),t.get()?(t.set(!1),f.fireSpellcheckEnd(e),!0):void 0},M=function(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t},F=function(e,t){var n,r=[];if(n=c.toArray(e.getBody().getElementsByTagName("span")),n.length)for(var o=0;on;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},J.apply(this,arguments)},$="SpellcheckStart SpellcheckEnd",G=function(e,t){var n=[];return c.each(t,function(e){n.push({selectable:!0,text:e.name,data:e.value})}),n},H=function(e){return c.map(k.getLanguages(e).split(","),function(e){return e=e.split("="),{name:e[0],value:e[1]}})},X=function(e,t,n,r,o,i){var a=G("Language",H(e)),l=function(){L.spellcheck(e,t,n,r,i,o)},u={tooltip:"Spellcheck",onAction:l,icon:"spell-check",onSetup:function(t){var r=function(){t.setActive(n.get())};return e.on($,r),function(){e.off($,r)}}},s=J(J({},u),{type:"splitbutton",select:function(e){return e===o.get()},fetch:function(e){var t=c.map(a,function(e){return{type:"choiceitem",value:e.data,text:e.text}});e(t)},onItemAction:function(e,t){o.set(t)}});a.length>1?e.ui.registry.addSplitButton("spellchecker",s):e.ui.registry.addToggleButton("spellchecker",u),e.ui.registry.addToggleMenuItem("spellchecker",{text:"Spellcheck",onSetup:function(t){t.setActive(n.get());var r=function(){t.setActive(n.get())};return e.on($,r),function(){e.off($,r)}},onAction:l})},K={register:X},Q=!0,V=function(e,t,n,r,o,i,a,l){var u=[],s=n.get().suggestions[a];c.each(s,function(t){u.push({text:t,onAction:function(){e.insertContent(e.dom.encode(t)),e.dom.remove(l),L.checkIfFinished(e,r,o)}})});var d=n.get().hasDictionarySupport;return d&&(u.push({type:"separator"}),u.push({text:"Add to dictionary",onAction:function(){L.addToDictionary(e,t,r,o,i,a,l)}})),u.push.apply(u,[{type:"separator"},{text:"Ignore",onAction:function(){L.ignoreWord(e,r,o,a,l)}},{text:"Ignore all",onAction:function(){L.ignoreWord(e,r,o,a,l,Q)}}]),u},Y=function(e,t,n,r,o,i){var a=function(a){var c=a;if("mce-spellchecker-word"!==c.className)return[];var l=L.findSpansByIndex(e,L.getElmIndex(c));if(l.length>0){var u=e.dom.createRng();return u.setStartBefore(l[0]),u.setEndAfter(l[l.length-1]),e.selection.setRng(u),V(e,t,n,r,o,i,c.getAttribute("data-mce-word"),l)}};e.ui.registry.addContextMenu("spellchecker",{update:a})},Z={setup:Y};n()}(window)});
+;/*!node_modules/tinymce/plugins/spellchecker/index.js*/
+amis.define("node_modules/tinymce/plugins/spellchecker/index",function(e){e("node_modules/tinymce/plugins/spellchecker/plugin")});
+;/*!node_modules/tinymce/plugins/visualchars/plugin.js*/
+amis.define("node_modules/tinymce/plugins/visualchars/plugin",function(){!function(n){"use strict";function e(){r.add("visualchars",function(n){var e=t(!1);return pe.register(n,e),we(n,e),Te.setup(n,e),be.setup(n,e),i.get(e)})}var t=function(n){var e=n,r=function(){return e},o=function(n){e=n},i=function(){return t(r())};return{get:r,set:o,clone:i}},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){var e=function(){return n.get()};return{isEnabled:e}},i={get:o},u=function(n,e){return n.fire("VisualChars",{state:e})},a={fireVisualChars:u},c=function(){},s=function(n){return function(){return n}},f=s(!1),l=s(!0),d=function(){return m},m=function(){var n=function(n){return n.isNone()},e=function(n){return n()},t=function(n){return n},r={fold:function(n){return n()},is:f,isSome:f,isNone:l,getOr:t,getOrThunk:e,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:t,orThunk:e,map:d,each:c,bind:d,exists:f,forall:l,filter:d,equals:n,equals_:n,toArray:function(){return[]},toString:s("none()")};return Object.freeze&&Object.freeze(r),r}(),g=function(n){var e=s(n),t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:l,isNone:f,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return g(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){return e(n)?o:m},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(f,function(e){return t(n,e)})}};return o},v=function(n){return null===n||void 0===n?m:g(n)},h={some:g,none:d,from:v},p=function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e},N=function(n){return function(e){return p(e)===n}},E=N("string"),T=N("boolean"),O=N("function"),y=N("number"),C=Array.prototype.slice,b=function(n,e){for(var t=n.length,r=new Array(t),o=0;t>o;o++){var i=n[o];r[o]=e(i,o)}return r},D=function(n,e){for(var t=0,r=n.length;r>t;t++){var o=n[t];e(o,t)}},w=function(n,e){for(var t=[],r=0,o=n.length;o>r;r++){var i=n[r];e(i,r)&&t.push(i)}return t},_=(O(Array.from)?Array.from:function(n){return C.call(n)},n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE,n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE,n.Node.TEXT_NODE),A=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){return n.dom().nodeType}),S=function(n){return n.dom().nodeValue},M=function(n){return function(e){return A(e)===n}},k=M(_),x=function(e,t,r){if(!(E(r)||T(r)||y(r)))throw n.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,r+"")},V=function(n,e,t){x(n.dom(),e,t)},B=function(n,e){var t=n.dom().getAttribute(e);return null===t?void 0:t},I=function(n,e){n.dom().removeAttribute(e)},L=function(n,e){var t=B(n,e);return void 0===t||""===t?[]:t.split(" ")},P=function(n,e,t){var r=L(n,e),o=r.concat([t]);return V(n,e,o.join(" ")),!0},R=function(n,e,t){var r=w(L(n,e),function(n){return n!==t});return r.length>0?V(n,e,r.join(" ")):I(n,e),!1},U=function(n){return void 0!==n.dom().classList},j=function(n){return L(n,"class")},q=function(n,e){return P(n,"class",e)},F=function(n,e){return R(n,"class",e)},G=function(n,e){U(n)?n.dom().classList.add(e):q(n,e)},H=function(n){var e=U(n)?n.dom().classList:j(n);0===e.length&&I(n,"class")},W=function(n,e){if(U(n)){var t=n.dom().classList;t.remove(e)}else F(n,e);H(n)},Y=function(e,t){var r=t||n.document,o=r.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return X(o.childNodes[0])},z=function(e,t){var r=t||n.document,o=r.createElement(e);return X(o)},K=function(e,t){var r=t||n.document,o=r.createTextNode(e);return X(o)},X=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:s(n)}},J=function(n,e,t){var r=n.dom();return h.from(r.elementFromPoint(e,t)).map(X)},Q={fromHtml:Y,fromTag:z,fromText:K,fromDom:X,fromPoint:J},Z={" ":"nbsp","":"shy"},$=function(n,e){var t,r="";for(t in n)r+=t;return new RegExp("["+r+"]",e?"g":"")},ne=function(n){var e,t="";for(e in n)t&&(t+=","),t+="span.mce-"+n[e];return t},ee={charMap:Z,regExp:$(Z),regExpGlobal:$(Z,!0),selector:ne(Z),nbspClass:"mce-nbsp",charMapToRegExp:$,charMapToSelector:ne},te=function(n){return''+n+" "},re={wrapCharWithSpan:te},oe=function(n){var e=S(n);return k(n)&&void 0!==e&&ee.regExp.test(e)},ie=function(n,e){var t=[],r=n.dom(),o=b(r.childNodes,Q.fromDom);return D(o,function(n){e(n)&&(t=t.concat([n])),t=t.concat(ie(n,e))}),t},ue=function(n,e){for(;n.parentNode;){if(n.parentNode===e)return n;n=n.parentNode}},ae=function(n){return n.replace(ee.regExpGlobal,re.wrapCharWithSpan)},ce={isMatch:oe,filterDescendants:ie,findParentElm:ue,replaceWithSpans:ae},se=function(n){return"span"===n.nodeName.toLowerCase()&&n.classList.contains("mce-nbsp-wrap")},fe=function(n,e){var t=ce.filterDescendants(Q.fromDom(e),ce.isMatch);D(t,function(e){var t=e.dom().parentNode;if(se(t))G(Q.fromDom(t),ee.nbspClass);else{for(var r=ce.replaceWithSpans(n.dom.encode(S(e))),o=n.dom.create("div",null,r),i=void 0;i=o.lastChild;)n.dom.insertAfter(i,e.dom());n.dom.remove(e.dom())}})},le=function(n,e){var t=n.dom.select(ee.selector,e);D(t,function(e){se(e)?W(Q.fromDom(e),ee.nbspClass):n.dom.remove(e,!0)})},de=function(n){var e=n.getBody(),t=n.selection.getBookmark(),r=ce.findParentElm(n.selection.getNode(),e);r=void 0!==r?r:e,le(n,r),fe(n,r),n.selection.moveToBookmark(t)},me={show:fe,hide:le,toggle:de},ge=function(n,e){var t,r=n.getBody(),o=n.selection;e.set(!e.get()),a.fireVisualChars(n,e.get()),t=o.getBookmark(),e.get()===!0?me.show(n,r):me.hide(n,r),o.moveToBookmark(t)},ve={toggleVisualChars:ge},he=function(n,e){n.addCommand("mceVisualChars",function(){ve.toggleVisualChars(n,e)})},pe={register:he},Ne=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ee=function(n,e){var t=Ne.debounce(function(){me.toggle(n)},300);n.settings.forced_root_block!==!1&&n.on("keydown",function(r){e.get()===!0&&(13===r.keyCode?me.toggle(n):t())})},Te={setup:Ee},Oe=function(n){return n.getParam("visualchars_default_state",!1)},ye={isEnabledByDefault:Oe},Ce=function(n,e){n.on("init",function(){var t=!ye.isEnabledByDefault(n);e.set(t),ve.toggleVisualChars(n,e)})},be={setup:Ce},De=function(n,e){return function(t){t.setActive(e.get());var r=function(n){return t.setActive(n.state)};return n.on("VisualChars",r),function(){return n.off("VisualChars",r)}}},we=function(n,e){n.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:De(n,e)}),n.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:De(n,e)})};e()}(window)});
+;/*!node_modules/tinymce/plugins/visualchars/index.js*/
+amis.define("node_modules/tinymce/plugins/visualchars/index",function(i){i("node_modules/tinymce/plugins/visualchars/plugin")});
+;/*!node_modules/tinymce/plugins/template/plugin.js*/
+amis.define("node_modules/tinymce/plugins/template/plugin",function(){!function(){"use strict";function e(e){for(var t=[],n=1;n0&&(r=o.create("div",null),r.appendChild(a[0].cloneNode(!0))),i.each(o.select("*",r),function(t){S(t,v.getCreationDateClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,v.getCdateFormat(e))),S(t,v.getModificationDateClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,v.getMdateFormat(e))),S(t,v.getSelectedContentClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=u)}),O(e,r),e.execCommand("mceInsertContent",!1,r.innerHTML),e.addVisual()},D={createTemplateList:M,replaceTemplateValues:C,replaceVals:O,insertTemplate:_},P=function(t){t.addCommand("mceInsertTemplate",e(D.insertTemplate,t))},x={register:P},w=function(e){e.on("PreProcess",function(t){var n=e.dom,r=v.getMdateFormat(e);i.each(n.select("div",t.node),function(t){n.hasClass(t,"mceTmpl")&&(i.each(n.select("*",t),function(t){n.hasClass(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,r))}),D.replaceVals(e,t))})})},A={setup:w},N=function(){return F},F=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e){return e()},is:o,isSome:o,isNone:u,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void 0),or:n,orThunk:t,map:N,each:r,bind:N,exists:o,forall:u,filter:N,equals:e,equals_:e,toArray:function(){return[]},toString:a("none()")};return Object.freeze&&Object.freeze(i),i}(),H=function(e){var t=a(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:u,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return H(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:F},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(o,function(t){return n(e,t)})}};return i},L=function(e){return null===e||void 0===e?F:H(e)},V={some:H,none:N,from:L},I=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},R=function(e){return function(t){return I(t)===e}},k=R("function"),J=Array.prototype.slice,Y=function(e,t){for(var n=e.length,r=new Array(n),a=0;n>a;a++){var o=e[a];r[a]=t(o,a)}return r},j=function(e,t){for(var n=0,r=e.length;r>n;n++){var a=e[n];if(t(a,n))return V.some(a)}return V.none()},q=(k(Array.from)?Array.from:function(e){return J.call(e)},tinymce.util.Tools.resolve("tinymce.util.Promise")),B=Object.hasOwnProperty,E=function(e,t){return z(e,t)?V.from(e[t]):V.none()},z=function(e,t){return B.call(e,t)},U={'"':""","<":"<",">":">","&":"&","'":"'"},W=function(e){return e.replace(/["'<>&]/g,function(e){return E(U,e).getOr(e)})},X=function(e,t){if(-1===t.indexOf("")){var n="";i.each(e.contentCSS,function(t){n+=' '});var r=e.settings.body_class||"";-1!==r.indexOf("=")&&(r=e.getParam("body_class","","hash"),r=r[e.id]||"");var a=e.dom.encode,o=e.getBody().dir,u=o?' dir="'+a(o)+'"':"";t=""+n+'"+t+""}return D.replaceTemplateValues(t,v.getPreviewReplaceValues(e))},$=function(e,t){var n=function(){if(!t||0===t.length){var n=e.translate("No templates defined.");return e.notificationManager.open({text:n,type:"info"}),V.none()}return V.from(i.map(t,function(e,t){var n=function(e){return void 0!==e.url};return{selected:0===t,text:e.title,value:{url:n(e)?V.from(e.url):V.none(),content:n(e)?V.none():V.from(e.content),description:e.description}}}))},r=function(e){return Y(e,function(e){return{text:e.text,value:e.text}})},a=function(e,t){return j(e,function(e){return e.text===t})},o=function(t){e.windowManager.alert("Could not load the specified template.",function(){return t.focus("template")})},u=function(e){return new q(function(t,n){e.value.url.fold(function(){return t(e.value.content.getOr(""))},function(e){return c.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})})})},l=function(e,t){return function(n,r){if("template"===r.name){var i=n.getData().template;a(e,i).each(function(e){n.block("Loading..."),u(e).then(function(r){t(n,e,r)}).catch(function(){t(n,e,""),n.disable("save"),o(n)})})}}},s=function(t){return function(n){var r=n.getData();a(t,r.template).each(function(t){u(t).then(function(t){D.insertTemplate(e,!1,t),n.close()}).catch(function(){n.disable("save"),o(n)})})}},f=function(t){var n=r(t),a=function(e,n){return{title:"Insert Template",size:"large",body:{type:"panel",items:e},initialData:n,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:s(t),onChange:l(t,i)}},i=function(t,r,o){var u=X(e,o),i=[{type:"selectbox",name:"template",label:"Templates",items:n},{type:"htmlpanel",html:''+W(r.value.description)+"
"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],c={template:r.text,preview:u};t.unblock(),t.redial(a(i,c)),t.focus("template")},c=e.windowManager.open(a([],{template:"",preview:""}));c.block("Loading..."),u(t[0]).then(function(e){i(c,t[0],e)}).catch(function(){i(c,t[0],""),c.disable("save"),o(c)})},p=n();p.each(f)},G={open:$},K=function(e){return function(t){G.open(e,t)}},Q=function(e){e.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:D.createTemplateList(e.settings,K(e))}),e.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:D.createTemplateList(e.settings,K(e))})},Z={register:Q};t()}()});
+;/*!node_modules/tinymce/plugins/template/index.js*/
+amis.define("node_modules/tinymce/plugins/template/index",function(e){e("node_modules/tinymce/plugins/template/plugin")});
+;/*!node_modules/tinymce/plugins/nonbreaking/plugin.js*/
+amis.define("node_modules/tinymce/plugins/nonbreaking/plugin",function(){!function(){"use strict";function n(){e.add("nonbreaking",function(n){p.register(n),m.register(n),b.setup(n)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n){var e=n.getParam("nonbreaking_force_tab",0);return"boolean"==typeof e?e===!0?3:0:e},i=function(n){return n.getParam("nonbreaking_wrap",!0,"boolean")},r={getKeyboardSpaces:t,wrapNbsps:i},o=function(n,e){for(var t="",i=0;e>i;i++)t+=n;return t},a=function(n){return n.plugins.visualchars?n.plugins.visualchars.isEnabled():!1},s=function(n,e){var t=function(){return a(n)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},i=function(){return''+o(" ",e)+" "},s=r.wrapNbsps(n),u=s||n.plugins.visualchars?i():o(" ",e);n.undoManager.transact(function(){return n.insertContent(u)})},u={insertNbsp:s},c=function(n){n.addCommand("mceNonBreaking",function(){u.insertNbsp(n,1)})},p={register:c},g=tinymce.util.Tools.resolve("tinymce.util.VK"),f=function(n){var e=r.getKeyboardSpaces(n);e>0&&n.on("keydown",function(t){if(t.keyCode===g.TAB&&!t.isDefaultPrevented()){if(t.shiftKey)return;t.preventDefault(),t.stopImmediatePropagation(),u.insertNbsp(n,e)}})},b={setup:f},l=function(n){n.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}}),n.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}})},m={register:l};n()}()});
+;/*!node_modules/tinymce/plugins/nonbreaking/index.js*/
+amis.define("node_modules/tinymce/plugins/nonbreaking/index",function(n){n("node_modules/tinymce/plugins/nonbreaking/plugin")});
+;/*!node_modules/tinymce/plugins/emoticons/plugin.js*/
+amis.define("node_modules/tinymce/plugins/emoticons/plugin",function(){!function(n){"use strict";function t(){e.add("emoticons",function(n,t){var e=G.getEmoticonDatabaseUrl(n,t),r=G.getEmoticonDatabaseId(n),o=V(n,e,r);$.register(n,o),w(n,o)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},o=function(n){return function(){return n}},i=o(!1),u=o(!0),c=function(){return a},a=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},a={fold:function(n){return n()},is:i,isSome:i,isNone:u,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:e,orThunk:t,map:c,each:r,bind:c,exists:i,forall:u,filter:c,equals:n,equals_:n,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(a),a}(),l=function(n){var t=o(n),e=function(){return c},r=function(t){return t(n)},c={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:u,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return l(t(n))},each:function(t){t(n)},bind:r,exists:r,forall:r,filter:function(t){return t(n)?c:a},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(i,function(t){return e(n,t)})}};return c},s=function(n){return null===n||void 0===n?a:l(n)},f={some:l,none:c,from:s},m=function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t},g=function(n){return function(t){return m(t)===n}},d=g("function"),y=Array.prototype.slice,p=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];if(t(o,e))return!0}return!1},v=function(n,t){for(var e=n.length,r=new Array(e),o=0;e>o;o++){var i=n[o];r[o]=t(i,o)}return r},h=(d(Array.from)?Array.from:function(n){return y.call(n)},function(n,t){return-1!==n.indexOf(t)}),b=function(n,t){return h(n.title.toLowerCase(),t)||p(n.keywords,function(n){return h(n.toLowerCase(),t)})},O=function(n,t,e){for(var r=[],o=t.toLowerCase(),u=e.fold(function(){return i},function(n){return function(t){return t>=n}}),c=0;ce;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},k.apply(this,arguments)},D=Object.prototype.hasOwnProperty,T=function(n,t){return t},_=function(n){return function(){for(var t=new Array(arguments.length),e=0;er;r++){var i=e[r],u=n[i];t(u,i)}},L=function(n,t){return N(n,function(n,e){return{k:e,v:t(n,e)}})},N=function(n,t){var e={};return x(n,function(n,r){var o=t(n,r);e[o.k]=o.v}),e},F=function(n,t){return S.call(n,t)},I=tinymce.util.Tools.resolve("tinymce.Resource"),U=tinymce.util.Tools.resolve("tinymce.util.Delay"),q=tinymce.util.Tools.resolve("tinymce.util.Promise"),z="tinymce.plugins.emoticons",M=function(n,t){return n.getParam("emoticons_database_url",t+"/js/emojis"+n.suffix+".js")},R=function(n){return n.getParam("emoticons_database_id",z,"string")},B=function(n){return n.getParam("emoticons_append",{},"object")},G={getEmoticonDatabaseUrl:M,getEmoticonDatabaseId:R,getAppendedEmoticons:B},H="All",J={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},K=function(n,t){return F(n,t)?n[t]:t},Q=function(n){var t=G.getAppendedEmoticons(n);return L(t,function(n){return k({keywords:[],category:"user"},n)})},V=function(t,e,r){var o=A(f.none()),i=A(f.none()),u=function(n){var t={},e=[];x(n,function(n,r){var o={title:r,keywords:n.keywords,"char":n.char,category:K(J,n.category)},i=void 0!==t[o.category]?t[o.category]:[];t[o.category]=i.concat([o]),e.push(o)}),o.set(f.some(t)),i.set(f.some(e))};t.on("init",function(){I.load(r,e).then(function(n){var e=Q(t);u(E(n,e))},function(t){n.console.log("Failed to load emoticons: "+t),o.set(f.some({})),i.set(f.some([]))})});var c=function(n){return n===H?a():o.get().bind(function(t){return f.from(t[n])}).getOr([])},a=function(){return i.get().getOr([])},l=function(){return[H].concat(P(o.get().getOr({})))},s=function(){return m()?q.resolve(!0):new q(function(t,r){var o=15,i=U.setInterval(function(){m()?(U.clearInterval(i),t(!0)):(o--,0>o&&(n.console.log("Could not load emojis from url: "+e),U.clearInterval(i),r(!1)))},100)})},m=function(){return o.get().isSome()&&i.get().isSome()};return{listCategories:l,hasLoaded:m,waitForLoad:s,listAll:a,listCategory:c}},W="pattern",X=function(n,t){var e={pattern:"",results:O(t.listAll(),"",f.some(300))},r=A(H),o=function(n){var e=n.getData(),o=r.get(),i=t.listCategory(o),u=O(i,e[W],o===H?f.some(300):f.none());n.setData({results:u})},i=j(function(n){o(n)},200),u={label:"Search",type:"input",name:W},c={type:"collection",name:"results"},a=function(){var o={type:"tabpanel",tabs:v(t.listCategories(),function(n){return{title:n,name:n,items:[u,c]}})};return{title:"Emoticons",size:"normal",body:o,initialData:e,onTabChange:function(n,t){r.set(t.newTabName),i.throttle(n)},onChange:i.throttle,onAction:function(t,e){"results"===e.name&&(C(n,e.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},l=n.windowManager.open(a());l.focus(W),t.hasLoaded()||(l.block("Loading emoticons..."),t.waitForLoad().then(function(){l.redial(a()),i.throttle(l),l.focus(W),l.unblock()}).catch(function(){l.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"Could not load emoticons
"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),l.focus(W),l.unblock()}))},Y={open:X},Z=function(n,t){var e=function(){return Y.open(n,t)};n.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:e}),n.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:e})},$={register:Z};t()}(window)});
+;/*!node_modules/tinymce/plugins/emoticons/index.js*/
+amis.define("node_modules/tinymce/plugins/emoticons/index",function(n){n("node_modules/tinymce/plugins/emoticons/plugin")});
+;/*!node_modules/tinymce/plugins/emoticons/js/emojis.js*/
+amis.define("node_modules/tinymce/plugins/emoticons/js/emojis",function(){window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],"char":"😀",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],"char":"😬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],"char":"😁",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],"char":"😂",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],"char":"🤣",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],"char":"😃",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],"char":"😄",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],"char":"😅",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],"char":"😆",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],"char":"😇",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],"char":"😉",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"char":"😊",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],"char":"🙂",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],"char":"🙃",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],"char":"☺️",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"char":"😋",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],"char":"😌",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],"char":"😍",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],"char":"😘",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],"char":"😗",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],"char":"😙",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],"char":"😚",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],"char":"😜",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],"char":"🤪",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],"char":"🤨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],"char":"🧐",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],"char":"😝",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],"char":"😛",fitzpatrick_scale:!1,category:"people"},money_mouth_face:{keywords:["face","rich","dollar","money"],"char":"🤑",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],"char":"🤓",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],"char":"😎",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],"char":"🤩",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],"char":"🤡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],"char":"🤠",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],"char":"🤗",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],"char":"😏",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],"char":"😶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],"char":"😐",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],"char":"😑",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],"char":"😒",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],"char":"🙄",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],"char":"🤔",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],"char":"🤥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],"char":"🤭",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],"char":"🤫",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],"char":"🤬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],"char":"🤯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],"char":"😳",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],"char":"😞",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],"char":"😟",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],"char":"😠",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],"char":"😡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],"char":"😔",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],"char":"😕",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],"char":"🙁",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],"char":"☹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],"char":"😣",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],"char":"😖",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],"char":"😫",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],"char":"😩",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],"char":"😤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],"char":"😮",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],"char":"😱",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],"char":"😨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],"char":"😰",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],"char":"😯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],"char":"😦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],"char":"😧",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],"char":"😢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],"char":"😥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],"char":"🤤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],"char":"😪",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],"char":"😓",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],"char":"😭",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],"char":"😵",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],"char":"😲",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],"char":"🤐",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],"char":"🤢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],"char":"🤧",fitzpatrick_scale:!1,category:"people"},vomiting:{keywords:["face","sick"],"char":"🤮",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],"char":"😷",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],"char":"🤒",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],"char":"🤕",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],"char":"😴",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],"char":"💤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],"char":"💩",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],"char":"😈",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],"char":"👿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"char":"👹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],"char":"👺",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],"char":"💀",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],"char":"👻",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],"char":"👽",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],"char":"🤖",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],"char":"😺",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],"char":"😸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],"char":"😹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],"char":"😻",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],"char":"😼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],"char":"😽",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],"char":"🙀",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],"char":"😿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],"char":"😾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],"char":"🤲",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],"char":"🙌",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],"char":"👏",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"char":"👋",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],"char":"🤙",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"char":"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],"char":"👎",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],"char":"👊",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],"char":"✊",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],"char":"🤛",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],"char":"🤜",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],"char":"✌",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],"char":"👌",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],"char":"✋",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],"char":"🤚",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],"char":"👐",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],"char":"💪",fitzpatrick_scale:!0,category:"people"},pray:{keywords:["please","hope","wish","namaste","highfive"],"char":"🙏",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],"char":"🤝",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],"char":"☝",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],"char":"👆",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],"char":"👇",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],"char":"👈",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],"char":"👉",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],"char":"🖕",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],"char":"🖐",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],"char":"🤟",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],"char":"🤘",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],"char":"🤞",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],"char":"🖖",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],"char":"✍",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],"char":"🤳",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],"char":"💅",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],"char":"👄",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],"char":"👅",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],"char":"👂",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],"char":"👃",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],"char":"👁",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],"char":"👀",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],"char":"🧠",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],"char":"👤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],"char":"👥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],"char":"🗣",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],"char":"👶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],"char":"🧒",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],"char":"👦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],"char":"👧",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],"char":"🧑",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],"char":"👨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],"char":"👩",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],"char":"👱♀️",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],"char":"👱",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],"char":"🧔",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],"char":"🧓",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],"char":"👴",fitzpatrick_scale:!0,category:"people"},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],"char":"👵",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],"char":"👲",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],"char":"🧕",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],"char":"👳♀️",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],"char":"👳",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],"char":"👮♀️",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],"char":"👮",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],"char":"👷♀️",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],"char":"👷",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],"char":"💂♀️",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],"char":"💂",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],"char":"🕵️♀️",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],"char":"🕵",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],"char":"👩⚕️",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],"char":"👨⚕️",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],"char":"👩🌾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],"char":"👨🌾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],"char":"👩🍳",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],"char":"👨🍳",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],"char":"👩🎓",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],"char":"👨🎓",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],"char":"👩🎤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],"char":"👨🎤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],"char":"👩🏫",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],"char":"👨🏫",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],"char":"👩🏭",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],"char":"👨🏭",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],"char":"👩💻",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],"char":"👨💻",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],"char":"👩💼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],"char":"👨💼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],"char":"👩🔧",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],"char":"👨🔧",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],"char":"👩🔬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],"char":"👨🔬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],"char":"👩🎨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],"char":"👨🎨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],"char":"👩🚒",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],"char":"👨🚒",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],"char":"👩✈️",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],"char":"👨✈️",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],"char":"👩🚀",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],"char":"👨🚀",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],"char":"👩⚖️",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],"char":"👨⚖️",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],"char":"🤶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],"char":"🎅",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],"char":"🧙♀️",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],"char":"🧙♂️",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],"char":"🧝♀️",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],"char":"🧝♂️",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],"char":"🧛♀️",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],"char":"🧛♂️",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],"char":"🧟♀️",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],"char":"🧟♂️",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],"char":"🧞♀️",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],"char":"🧞♂️",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],"char":"🧜♀️",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],"char":"🧜♂️",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],"char":"🧚♀️",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],"char":"🧚♂️",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],"char":"👼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],"char":"🤰",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],"char":"🤱",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],"char":"👸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],"char":"🤴",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],"char":"👰",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],"char":"🤵",fitzpatrick_scale:!0,category:"people"},running_woman:{keywords:["woman","walking","exercise","race","running","female"],"char":"🏃♀️",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],"char":"🏃",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],"char":"🚶♀️",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],"char":"🚶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],"char":"💃",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],"char":"🕺",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],"char":"👯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],"char":"👯♂️",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],"char":"👫",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],"char":"👬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],"char":"👭",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],"char":"🙇♀️",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],"char":"🙇",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],"char":"🤦",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],"char":"🤦♀️",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],"char":"🤷",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],"char":"🤷♂️",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],"char":"💁",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],"char":"💁♂️",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],"char":"🙅",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],"char":"🙅♂️",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],"char":"🙆",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],"char":"🙆♂️",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],"char":"🙋",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],"char":"🙋♂️",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],"char":"🙎",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],"char":"🙎♂️",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],"char":"🙍",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],"char":"🙍♂️",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],"char":"💇",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],"char":"💇♂️",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],"char":"💆",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],"char":"💆♂️",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],"char":"🧖♀️",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],"char":"🧖♂️",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"💑",fitzpatrick_scale:!1,category:"people"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"👩❤️👩",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"👨❤️👨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"💏",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"👩❤️💋👩",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"👨❤️💋👨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],"char":"👪",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],"char":"👨👩👧",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👨👩👧👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👨👩👦👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👨👩👧👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],"char":"👩👩👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],"char":"👩👩👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👩👩👧👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👩👩👦👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👩👩👧👧",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],"char":"👨👨👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],"char":"👨👨👧",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👨👨👧👦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👨👨👦👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👨👨👧👧",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],"char":"👩👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],"char":"👩👧",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],"char":"👩👧👦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],"char":"👩👦👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],"char":"👩👧👧",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],"char":"👨👦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],"char":"👨👧",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],"char":"👨👧👦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],"char":"👨👦👦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],"char":"👨👧👧",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],"char":"🧥",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],"char":"👚",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],"char":"👕",fitzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],"char":"👖",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],"char":"👔",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],"char":"👗",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],"char":"👙",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],"char":"👘",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],"char":"💄",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],"char":"💋",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],"char":"👣",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],"char":"👠",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],"char":"👡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],"char":"👢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],"char":"👞",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],"char":"👟",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],"char":"🧦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],"char":"🧤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],"char":"🧣",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],"char":"👒",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],"char":"🎩",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],"char":"🧢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],"char":"⛑",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"char":"🎓",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],"char":"👑",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],"char":"🎒",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],"char":"👝",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],"char":"👛",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],"char":"👜",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],"char":"💼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],"char":"👓",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],"char":"🕶",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"char":"💍",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],"char":"🌂",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],"char":"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],"char":"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],"char":"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],"char":"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],"char":"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],"char":"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],"char":"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],"char":"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],"char":"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],"char":"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],"char":"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],"char":"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],"char":"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],"char":"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],"char":"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],"char":"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],"char":"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},shrimp:{keywords:["animal","ocean","nature","seafood"],"char":"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],"char":"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],"char":"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],"char":"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],"char":"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],"char":"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],"char":"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],"char":"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],"char":"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],"char":"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],"char":"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],"char":"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],"char":"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],"char":"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],"char":"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],"char":"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],"char":"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],"char":"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],"char":"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],"char":"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],"char":"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],"char":"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],"char":"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],"char":"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],"char":"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],"char":"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],"char":"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],"char":"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],"char":"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],"char":"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],"char":"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],"char":"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],"char":"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],"char":"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],"char":"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},turtle:{keywords:["animal","slow","nature","tortoise"],"char":"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],"char":"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],"char":"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],"char":"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],"char":"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],"char":"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],"char":"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],"char":"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],"char":"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],"char":"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],"char":"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],"char":"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],"char":"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],"char":"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],"char":"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],"char":"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],"char":"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],"char":"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],"char":"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],"char":"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],"char":"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],"char":"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],"char":"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],"char":"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],"char":"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],"char":"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],"char":"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],"char":"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],"char":"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],"char":"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],"char":"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],"char":"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],"char":"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],"char":"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],"char":"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],"char":"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],"char":"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],"char":"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],"char":"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],"char":"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],"char":"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],"char":"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],"char":"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],"char":"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],"char":"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],"char":"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],"char":"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],"char":"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],"char":"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],"char":"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],"char":"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],"char":"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],"char":"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],"char":"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],"char":"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],"char":"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],"char":"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],"char":"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],"char":"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],"char":"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],"char":"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],"char":"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],"char":"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],"char":"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],"char":"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],"char":"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],"char":"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],"char":"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],"char":"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],"char":"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],"char":"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],"char":"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],"char":"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],"char":"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],"char":"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],"char":"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],"char":"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],"char":"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],"char":"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],"char":"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],"char":"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],"char":"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],"char":"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],"char":"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],"char":"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],"char":"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],"char":"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],"char":"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],"char":"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],"char":"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],"char":"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],"char":"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],"char":"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],"char":"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],"char":"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],"char":"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],"char":"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],"char":"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],"char":"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],"char":"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],"char":"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],"char":"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],"char":"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],"char":"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],"char":"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],"char":"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],"char":"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],"char":"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],"char":"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],"char":"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],"char":"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],"char":"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],"char":"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],"char":"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],"char":"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],"char":"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],"char":"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],"char":"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],"char":"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],"char":"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],"char":"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],"char":"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],"char":"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],"char":"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],"char":"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],"char":"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],"char":"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],"char":"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],"char":"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],"char":"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],"char":"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],"char":"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],"char":"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],"char":"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],"char":"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],"char":"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],"char":"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],"char":"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],"char":"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],"char":"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],"char":"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],"char":"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],"char":"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],"char":"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],"char":"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],"char":"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"char":"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],"char":"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],"char":"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],"char":"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],"char":"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],"char":"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],"char":"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],"char":"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],"char":"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],"char":"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],"char":"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],"char":"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],"char":"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],"char":"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"char":"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},fortune_cookie:{keywords:["food","prophecy"],"char":"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],"char":"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],"char":"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],"char":"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],"char":"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],"char":"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],"char":"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],"char":"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],"char":"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],"char":"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],"char":"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],"char":"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],"char":"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],"char":"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],"char":"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],"char":"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],"char":"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],"char":"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],"char":"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],"char":"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],"char":"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],"char":"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],"char":"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],"char":"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],"char":"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],"char":"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"char":"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],"char":"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"char":"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],"char":"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],"char":"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],"char":"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},cup_with_straw:{keywords:["drink","soda"],"char":"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],"char":"☕",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],"char":"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],"char":"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],"char":"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],"char":"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],"char":"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],"char":"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],"char":"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],"char":"⚽",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],"char":"🏀",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],"char":"🏈",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],"char":"⚾",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],"char":"🎾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],"char":"🏐",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],"char":"🏉",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],"char":"🎱",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],"char":"⛳",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],"char":"🏌️♀️",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],"char":"🏌",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],"char":"🏓",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],"char":"🏸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],"char":"🥅",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],"char":"🏒",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],"char":"🏑",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],"char":"🏏",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],"char":"🎿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],"char":"⛷",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],"char":"🏂",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],"char":"🤺",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],"char":"🤼♀️",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],"char":"🤼♂️",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],"char":"🤸♀️",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],"char":"🤸♂️",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],"char":"🤾♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],"char":"🤾♂️",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],"char":"⛸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],"char":"🥌",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],"char":"🛷",fitzpatrick_scale:!1,category:"activity"},bow_and_arrow:{keywords:["sports"],"char":"🏹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],"char":"🎣",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],"char":"🥊",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],"char":"🥋",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],"char":"🚣♀️",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],"char":"🚣",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],"char":"🧗♀️",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],"char":"🧗♂️",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],"char":"🏊♀️",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],"char":"🏊",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],"char":"🤽♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],"char":"🤽♂️",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],"char":"🧘♀️",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],"char":"🧘♂️",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],"char":"🏄♀️",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],"char":"🏄",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],"char":"🛀",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],"char":"⛹️♀️",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],"char":"⛹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],"char":"🏋️♀️",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],"char":"🏋",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],"char":"🚴♀️",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],"char":"🚴",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],"char":"🚵♀️",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],"char":"🚵",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],"char":"🏇",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],"char":"🕴",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],"char":"🏆",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],"char":"🎽",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],"char":"🏅",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],"char":"🎖",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],"char":"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],"char":"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],"char":"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],"char":"🎗",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],"char":"🏵",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],"char":"🎫",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],"char":"🎟",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],"char":"🎭",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],"char":"🎨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],"char":"🎪",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],"char":"🤹♀️",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],"char":"🤹♂️",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],"char":"🎤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],"char":"🎧",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],"char":"🎼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],"char":"🎹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],"char":"🥁",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],"char":"🎷",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],"char":"🎺",fitzpatrick_scale:!1,category:"activity"},guitar:{keywords:["music","instrument"],"char":"🎸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],"char":"🎻",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],"char":"🎬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],"char":"🎮",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],"char":"👾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],"char":"🎯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],"char":"🎲",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],"char":"🎰",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],"char":"🎳",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],"char":"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],"char":"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],"char":"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],"char":"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],"char":"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],"char":"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],"char":"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],"char":"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],"char":"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],"char":"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],"char":"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],"char":"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],"char":"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],"char":"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],"char":"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],"char":"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],"char":"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"char":"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],"char":"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],"char":"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],"char":"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],"char":"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],"char":"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],"char":"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],"char":"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],"char":"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],"char":"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],"char":"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],"char":"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],"char":"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],"char":"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],"char":"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],"char":"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],"char":"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],"char":"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],"char":"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],"char":"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],"char":"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],"char":"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],"char":"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],"char":"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],"char":"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],"char":"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],"char":"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],"char":"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],"char":"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],"char":"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],"char":"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],"char":"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],"char":"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],"char":"💺",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],"char":"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],"char":"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],"char":"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],"char":"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],"char":"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],"char":"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],"char":"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],"char":"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],"char":"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],"char":"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],"char":"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],"char":"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],"char":"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],"char":"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],"char":"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],"char":"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],"char":"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],"char":"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],"char":"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],"char":"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],"char":"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],"char":"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],"char":"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],"char":"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],"char":"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],"char":"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],"char":"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],"char":"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],"char":"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],"char":"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],"char":"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],"char":"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],"char":"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],"char":"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],"char":"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],"char":"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],"char":"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],"char":"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],"char":"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],"char":"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],"char":"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],"char":"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],"char":"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],"char":"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],"char":"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],"char":"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],"char":"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],"char":"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],"char":"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],"char":"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],"char":"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],"char":"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],"char":"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],"char":"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],"char":"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],"char":"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],"char":"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],"char":"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],"char":"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],"char":"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],"char":"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],"char":"💒",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],"char":"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],"char":"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],"char":"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],"char":"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],"char":"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],"char":"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],"char":"⌚",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],"char":"📱",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],"char":"📲",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],"char":"💻",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],"char":"⌨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],"char":"🖥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],"char":"🖨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],"char":"🖱",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],"char":"🖲",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],"char":"🕹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],"char":"🗜",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],"char":"💽",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],"char":"💾",fitzpatrick_scale:!1,category:"objects"},cd:{keywords:["technology","dvd","disk","disc","90s"],"char":"💿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],"char":"📀",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],"char":"📼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],"char":"📷",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],"char":"📸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],"char":"📹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],"char":"🎥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],"char":"📽",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],"char":"🎞",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],"char":"📞",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],"char":"☎️",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],"char":"📟",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],"char":"📠",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],"char":"📺",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],"char":"📻",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],"char":"🎙",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],"char":"🎚",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],"char":"🎛",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],"char":"⏱",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],"char":"⏲",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],"char":"⏰",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],"char":"🕰",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],"char":"⏳",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],"char":"⌛",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],"char":"📡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],"char":"🔋",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],"char":"🔌",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],"char":"💡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],"char":"🔦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],"char":"🕯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],"char":"🗑",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],"char":"🛢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],"char":"💸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],"char":"💵",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],"char":"💴",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],"char":"💶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],"char":"💷",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],"char":"💰",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],"char":"💳",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],"char":"💎",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],"char":"⚖",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],"char":"🔧",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],"char":"🔨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],"char":"⚒",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],"char":"🛠",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],"char":"⛏",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],"char":"🔩",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],"char":"⚙",fitzpatrick_scale:!1,category:"objects"},chains:{keywords:["lock","arrest"],"char":"⛓",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],"char":"🔫",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],"char":"💣",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],"char":"🔪",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],"char":"🗡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],"char":"⚔",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],"char":"🛡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],"char":"🚬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],"char":"☠",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],"char":"⚰",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],"char":"⚱",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],"char":"🏺",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],"char":"🔮",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],"char":"📿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],"char":"💈",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],"char":"⚗",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],"char":"🔭",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],"char":"🔬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],"char":"🕳",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],"char":"💊",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],"char":"💉",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],"char":"🌡",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],"char":"🏷",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],"char":"🔖",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],"char":"🚽",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],"char":"🚿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],"char":"🛁",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],"char":"🔑",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],"char":"🗝",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],"char":"🛋",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],"char":"🛌",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],"char":"🛏",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],"char":"🚪",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],"char":"🛎",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],"char":"🖼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],"char":"🗺",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],"char":"⛱",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],"char":"🗿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],"char":"🛍",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],"char":"🛒",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],"char":"🎈",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],"char":"🎏",fitzpatrick_scale:!1,category:"objects"},ribbon:{keywords:["decoration","pink","girl","bowtie"],"char":"🎀",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],"char":"🎁",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],"char":"🎊",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],"char":"🎉",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],"char":"🎎",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],"char":"🎐",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],"char":"🎌",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],"char":"🏮",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],"char":"✉️",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],"char":"📩",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],"char":"📨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],"char":"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],"char":"💌",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],"char":"📮",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],"char":"📪",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],"char":"📫",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],"char":"📬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],"char":"📭",fitzpatrick_scale:!1,category:"objects"},"package":{keywords:["mail","gift","cardboard","box","moving"],"char":"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],"char":"📯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],"char":"📥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],"char":"📤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],"char":"📜",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],"char":"📃",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],"char":"📑",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],"char":"📊",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],"char":"📈",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],"char":"📉",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],"char":"📄",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],"char":"📅",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],"char":"📆",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],"char":"🗓",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],"char":"📇",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],"char":"🗃",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],"char":"🗳",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],"char":"🗄",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],"char":"📋",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],"char":"🗒",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],"char":"📁",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],"char":"📂",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],"char":"🗂",fitzpatrick_scale:!1,category:"objects"},newspaper_roll:{keywords:["press","headline"],"char":"🗞",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],"char":"📰",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],"char":"📓",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],"char":"📕",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],"char":"📗",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],"char":"📘",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],"char":"📙",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],"char":"📔",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],"char":"📒",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],"char":"📚",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],"char":"📖",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],"char":"🔗",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],"char":"📎",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],"char":"🖇",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],"char":"✂️",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],"char":"📐",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],"char":"📏",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],"char":"📌",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],"char":"📍",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],"char":"🚩",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],"char":"🏳",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],"char":"🏴",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],"char":"🏳️🌈",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],"char":"🔐",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],"char":"🔒",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],"char":"🔓",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],"char":"🔏",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],"char":"🖊",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],"char":"🖋",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],"char":"✒️",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],"char":"📝",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],"char":"✏️",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],"char":"🖍",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],"char":"🖌",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],"char":"🔍",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],"char":"🔎",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],"char":"❤️",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],"char":"🧡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],"char":"💛",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],"char":"💚",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],"char":"💙",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],"char":"💜",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],"char":"🖤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],"char":"💔",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],"char":"❣",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],"char":"💕",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],"char":"💞",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],"char":"💓",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],"char":"💗",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],"char":"💖",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],"char":"💘",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],"char":"💝",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],"char":"💟",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],"char":"☮",fitzpatrick_scale:!1,category:"symbols"},latin_cross:{keywords:["christianity"],"char":"✝",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],"char":"☪",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],"char":"🕉",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],"char":"☸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],"char":"✡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],"char":"🔯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],"char":"🕎",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],"char":"☯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],"char":"☦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],"char":"🛐",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],"char":"⛎",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♈",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],"char":"♉",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♊",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♋",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♌",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♍",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♎",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],"char":"♏",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♐",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♑",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♒",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],"char":"♓",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],"char":"🆔",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],"char":"⚛",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],"char":"🈳",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],"char":"🈹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],"char":"☢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],"char":"☣",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],"char":"📴",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],"char":"📳",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],"char":"🈶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],"char":"🈚",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],"char":"🈸",fitzpatrick_scale:!1,category:"symbols"},u55b6:{keywords:["japanese","opening hours","orange-square"],"char":"🈺",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],"char":"🈷️",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],"char":"✴️",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],"char":"🆚",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],"char":"🉑",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],"char":"💮",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],"char":"🉐",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],"char":"㊙️",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],"char":"㊗️",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],"char":"🈴",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],"char":"🈵",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],"char":"🈲",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],"char":"🅰️",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],"char":"🅱️",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],"char":"🆎",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],"char":"🆑",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],"char":"🅾️",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],"char":"🆘",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],"char":"⛔",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],"char":"📛",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],"char":"🚫",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel"],"char":"❌",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],"char":"⭕",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],"char":"🛑",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],"char":"💢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],"char":"♨️",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],"char":"🚷",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],"char":"🚯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],"char":"🚳",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],"char":"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],"char":"🔞",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],"char":"📵",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],"char":"❗",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],"char":"❕",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],"char":"❓",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],"char":"❔",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],"char":"‼️",fitzpatrick_scale:!1,category:"symbols"},interrobang:{keywords:["wat","punctuation","surprise"],"char":"⁉️",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],"char":"💯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],"char":"🔅",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],"char":"🔆",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],"char":"🔱",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],"char":"⚜",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],"char":"〽️",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],"char":"⚠️",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],"char":"🚸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],"char":"🔰",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],"char":"♻️",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],"char":"🈯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],"char":"💹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],"char":"❇️",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],"char":"✳️",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],"char":"❎",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],"char":"✅",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],"char":"💠",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],"char":"🌀",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],"char":"➿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],"char":"🌐",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],"char":"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],"char":"🏧",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],"char":"🈂️",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],"char":"🛂",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],"char":"🛃",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],"char":"🛄",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],"char":"🛅",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],"char":"♿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],"char":"🚭",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],"char":"🚾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],"char":"🅿️",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],"char":"🚰",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],"char":"🚹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],"char":"🚺",fitzpatrick_scale:!1,category:"symbols"},baby_symbol:{keywords:["orange-square","child"],"char":"🚼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],"char":"🚻",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],"char":"🚮",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],"char":"🎦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"char":"📶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],"char":"🈁",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],"char":"🆖",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],"char":"🆗",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],"char":"🆙",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],"char":"🆒",fitzpatrick_scale:!1,category:"symbols"},"new":{keywords:["blue-square","words","start"],"char":"🆕",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],"char":"🆓",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],"char":"0️⃣",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],"char":"1️⃣",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],"char":"2️⃣",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],"char":"3️⃣",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],"char":"4️⃣",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],"char":"5️⃣",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],"char":"6️⃣",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],"char":"7️⃣",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],"char":"8️⃣",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],"char":"9️⃣",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],"char":"🔟",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],"char":"*⃣",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],"char":"🔢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],"char":"⏏️",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],"char":"▶️",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],"char":"⏸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],"char":"⏭",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],"char":"⏹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],"char":"⏺",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],"char":"⏯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],"char":"⏮",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],"char":"⏩",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],"char":"⏪",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],"char":"🔀",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],"char":"🔁",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],"char":"🔂",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],"char":"◀️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],"char":"🔼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],"char":"🔽",fitzpatrick_scale:!1,category:"symbols"},arrow_double_up:{keywords:["blue-square","direction","top"],"char":"⏫",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],"char":"⏬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],"char":"➡️",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],"char":"⬅️",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],"char":"⬆️",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],"char":"⬇️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],"char":"↗️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],"char":"↘️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],"char":"↙️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],"char":"↖️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],"char":"↕️",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],"char":"↔️",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],"char":"🔄",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],"char":"↪️",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],"char":"↩️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],"char":"⤴️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],"char":"⤵️",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],"char":"#️⃣",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],"char":"ℹ️",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],"char":"🔤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],"char":"🔡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],"char":"🔠",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],"char":"🔣",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],"char":"🎵",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],"char":"🎶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],"char":"〰️",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],"char":"➰",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],"char":"✔️",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],"char":"🔃",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],"char":"➕",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],"char":"➖",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],"char":"➗",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],"char":"✖️",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],"char":"💲",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],"char":"💱",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],"char":"©️",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],"char":"®️",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],"char":"™️",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],"char":"🔚",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],"char":"🔙",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],"char":"🔛",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],"char":"🔝",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],"char":"🔜",fitzpatrick_scale:!1,category:"symbols"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],"char":"☑️",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],"char":"🔘",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],"char":"⚪",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],"char":"⚫",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],"char":"🔴",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],"char":"🔵",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],"char":"🔸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],"char":"🔹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],"char":"🔶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],"char":"🔷",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],"char":"🔺",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],"char":"▪️",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],"char":"▫️",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],"char":"⬛",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],"char":"⬜",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],"char":"🔻",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],"char":"◼️",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],"char":"◻️",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],"char":"◾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],"char":"◽",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],"char":"🔲",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],"char":"🔳",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],"char":"🔈",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],"char":"🔉",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],"char":"🔊",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],"char":"🔇",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],"char":"📣",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],"char":"📢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],"char":"🔔",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],"char":"🔕",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],"char":"🃏",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],"char":"🀄",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],"char":"♠️",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],"char":"♣️",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],"char":"♥️",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],"char":"♦️",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],"char":"🎴",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],"char":"💭",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],"char":"🗯",fitzpatrick_scale:!1,category:"symbols"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],"char":"💬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],"char":"🗨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],"char":"🕐",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],"char":"🕑",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],"char":"🕒",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],"char":"🕓",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],"char":"🕔",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],"char":"🕕",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],"char":"🕖",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],"char":"🕗",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],"char":"🕘",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],"char":"🕙",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],"char":"🕚",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],"char":"🕛",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],"char":"🕜",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],"char":"🕝",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],"char":"🕞",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],"char":"🕟",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],"char":"🕠",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],"char":"🕡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],"char":"🕢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],"char":"🕣",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],"char":"🕤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],"char":"🕥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],"char":"🕦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],"char":"🕧",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],"char":"🇦🇫",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],"char":"🇦🇽",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],"char":"🇦🇱",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],"char":"🇩🇿",fitzpatrick_scale:!1,category:"flags"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],"char":"🇦🇸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],"char":"🇦🇩",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],"char":"🇦🇴",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],"char":"🇦🇮",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],"char":"🇦🇶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],"char":"🇦🇬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],"char":"🇦🇷",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],"char":"🇦🇲",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],"char":"🇦🇼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],"char":"🇦🇺",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],"char":"🇦🇹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],"char":"🇦🇿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],"char":"🇧🇸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],"char":"🇧🇭",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],"char":"🇧🇩",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],"char":"🇧🇧",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],"char":"🇧🇾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],"char":"🇧🇪",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],"char":"🇧🇿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],"char":"🇧🇯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],"char":"🇧🇲",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],"char":"🇧🇹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],"char":"🇧🇴",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],"char":"🇧🇶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],"char":"🇧🇦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],"char":"🇧🇼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],"char":"🇧🇷",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],"char":"🇮🇴",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],"char":"🇻🇬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],"char":"🇧🇳",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],"char":"🇧🇬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],"char":"🇧🇫",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],"char":"🇧🇮",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],"char":"🇨🇻",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],"char":"🇰🇭",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],"char":"🇨🇲",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],"char":"🇨🇦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],"char":"🇮🇨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],"char":"🇰🇾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],"char":"🇨🇫",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],"char":"🇹🇩",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],"char":"🇨🇱",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],"char":"🇨🇳",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],"char":"🇨🇽",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],"char":"🇨🇨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],"char":"🇨🇴",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],"char":"🇰🇲",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],"char":"🇨🇬",fitzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],"char":"🇨🇩",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],"char":"🇨🇰",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],"char":"🇨🇷",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],"char":"🇭🇷",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],"char":"🇨🇺",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],"char":"🇨🇼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],"char":"🇨🇾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],"char":"🇨🇿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],"char":"🇩🇰",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],"char":"🇩🇯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],"char":"🇩🇲",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],"char":"🇩🇴",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],"char":"🇪🇨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],"char":"🇪🇬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],"char":"🇸🇻",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],"char":"🇬🇶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],"char":"🇪🇷",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],"char":"🇪🇪",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],"char":"🇪🇹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],"char":"🇪🇺",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],"char":"🇫🇰",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],"char":"🇫🇴",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],"char":"🇫🇯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],"char":"🇫🇮",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],"char":"🇫🇷",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],"char":"🇬🇫",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],"char":"🇵🇫",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],"char":"🇹🇫",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],"char":"🇬🇦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],"char":"🇬🇲",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],"char":"🇬🇪",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],"char":"🇩🇪",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],"char":"🇬🇭",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],"char":"🇬🇮",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],"char":"🇬🇷",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],"char":"🇬🇱",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],"char":"🇬🇩",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],"char":"🇬🇵",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],"char":"🇬🇺",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],"char":"🇬🇹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],"char":"🇬🇬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],"char":"🇬🇳",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],"char":"🇬🇼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],"char":"🇬🇾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],"char":"🇭🇹",fitzpatrick_scale:!1,category:"flags"},honduras:{keywords:["hn","flag","nation","country","banner"],"char":"🇭🇳",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],"char":"🇭🇰",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],"char":"🇭🇺",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],"char":"🇮🇸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],"char":"🇮🇳",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],"char":"🇮🇩",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],"char":"🇮🇷",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],"char":"🇮🇶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],"char":"🇮🇪",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],"char":"🇮🇲",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],"char":"🇮🇱",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],"char":"🇮🇹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],"char":"🇨🇮",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],"char":"🇯🇲",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],"char":"🇯🇵",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],"char":"🇯🇪",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],"char":"🇯🇴",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],"char":"🇰🇿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],"char":"🇰🇪",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],"char":"🇰🇮",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],"char":"🇽🇰",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],"char":"🇰🇼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],"char":"🇰🇬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],"char":"🇱🇦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],"char":"🇱🇻",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],"char":"🇱🇧",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],"char":"🇱🇸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],"char":"🇱🇷",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],"char":"🇱🇾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],"char":"🇱🇮",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],"char":"🇱🇹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],"char":"🇱🇺",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],"char":"🇲🇴",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],"char":"🇲🇰",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],"char":"🇲🇬",fitzpatrick_scale:!1,category:"flags"},malawi:{keywords:["mw","flag","nation","country","banner"],"char":"🇲🇼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],"char":"🇲🇾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],"char":"🇲🇻",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],"char":"🇲🇱",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],"char":"🇲🇹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],"char":"🇲🇭",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],"char":"🇲🇶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],"char":"🇲🇷",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],"char":"🇲🇺",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],"char":"🇾🇹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],"char":"🇲🇽",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],"char":"🇫🇲",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],"char":"🇲🇩",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],"char":"🇲🇨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],"char":"🇲🇳",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],"char":"🇲🇪",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],"char":"🇲🇸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],"char":"🇲🇦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],"char":"🇲🇿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],"char":"🇲🇲",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],"char":"🇳🇦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],"char":"🇳🇷",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],"char":"🇳🇵",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],"char":"🇳🇱",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],"char":"🇳🇨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],"char":"🇳🇿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],"char":"🇳🇮",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],"char":"🇳🇪",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],"char":"🇳🇬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],"char":"🇳🇺",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],"char":"🇳🇫",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],"char":"🇲🇵",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],"char":"🇰🇵",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],"char":"🇳🇴",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],"char":"🇴🇲",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],"char":"🇵🇰",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],"char":"🇵🇼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],"char":"🇵🇸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],"char":"🇵🇦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],"char":"🇵🇬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],"char":"🇵🇾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],"char":"🇵🇪",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],"char":"🇵🇭",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],"char":"🇵🇳",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],"char":"🇵🇱",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],"char":"🇵🇹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],"char":"🇵🇷",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],"char":"🇶🇦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],"char":"🇷🇪",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],"char":"🇷🇴",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],"char":"🇷🇺",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],"char":"🇷🇼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],"char":"🇧🇱",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],"char":"🇸🇭",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],"char":"🇰🇳",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],"char":"🇱🇨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],"char":"🇵🇲",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],"char":"🇻🇨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],"char":"🇼🇸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],"char":"🇸🇲",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],"char":"🇸🇹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],"char":"🇸🇦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],"char":"🇸🇳",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],"char":"🇷🇸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],"char":"🇸🇨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],"char":"🇸🇱",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],"char":"🇸🇬",fitzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],"char":"🇸🇽",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],"char":"🇸🇰",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],"char":"🇸🇮",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],"char":"🇸🇧",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],"char":"🇸🇴",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],"char":"🇿🇦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],"char":"🇬🇸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],"char":"🇰🇷",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],"char":"🇸🇸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],"char":"🇪🇸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],"char":"🇱🇰",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],"char":"🇸🇩",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],"char":"🇸🇷",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],"char":"🇸🇿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],"char":"🇸🇪",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],"char":"🇨🇭",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],"char":"🇸🇾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],"char":"🇹🇼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],"char":"🇹🇯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],"char":"🇹🇿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],"char":"🇹🇭",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],"char":"🇹🇱",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],"char":"🇹🇬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],"char":"🇹🇰",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],"char":"🇹🇴",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],"char":"🇹🇹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],"char":"🇹🇳",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],"char":"🇹🇷",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],"char":"🇹🇲",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],"char":"🇹🇨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],"char":"🇹🇻",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],"char":"🇺🇬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],"char":"🇺🇦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],"char":"🇦🇪",fitzpatrick_scale:!1,category:"flags"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],"char":"🇬🇧",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],"char":"🏴",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],"char":"🏴",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],"char":"🏴",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],"char":"🇺🇸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],"char":"🇻🇮",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],"char":"🇺🇾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],"char":"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],"char":"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],"char":"🇻🇦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],"char":"🇻🇪",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],"char":"🇻🇳",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],"char":"🇼🇫",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],"char":"🇪🇭",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],"char":"🇾🇪",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],"char":"🇿🇲",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],"char":"🇿🇼",fitzpatrick_scale:!1,category:"flags"}})
+});
+;/*!src/components/Tinymce.tsx*/
+amis.define("82fac39",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("node_modules/tinymce/tinymce"));e("node_modules/tinymce/themes/silver/index"),e("node_modules/tinymce/plugins/advlist/index"),e("node_modules/tinymce/plugins/autolink/index"),e("node_modules/tinymce/plugins/lists/index"),e("node_modules/tinymce/plugins/link/index"),e("node_modules/tinymce/plugins/image/index"),e("node_modules/tinymce/plugins/charmap/index"),e("node_modules/tinymce/plugins/print/index"),e("node_modules/tinymce/plugins/preview/index"),e("node_modules/tinymce/plugins/anchor/index"),e("node_modules/tinymce/plugins/searchreplace/index"),e("node_modules/tinymce/plugins/visualblocks/index"),e("node_modules/tinymce/plugins/code/index"),e("node_modules/tinymce/plugins/fullscreen/index"),e("node_modules/tinymce/plugins/insertdatetime/index"),e("node_modules/tinymce/plugins/media/index"),e("node_modules/tinymce/plugins/table/index"),e("node_modules/tinymce/plugins/paste/index"),e("node_modules/tinymce/plugins/help/index"),e("node_modules/tinymce/plugins/wordcount/index"),e("node_modules/tinymce/plugins/hr/index"),e("node_modules/tinymce/plugins/pagebreak/index"),e("node_modules/tinymce/plugins/spellchecker/index"),e("node_modules/tinymce/plugins/visualchars/index"),e("node_modules/tinymce/plugins/template/index"),e("node_modules/tinymce/plugins/nonbreaking/index"),e("node_modules/tinymce/plugins/emoticons/index"),e("node_modules/tinymce/plugins/emoticons/js/emojis");var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=o.default.createRef(),t}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.locale;this.config=n.__assign(n.__assign({inline:!1,skin:!1,content_css:!1,height:400,language:t&&"zh-cn"!==t?"en":"zh_CN",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","table emoticons template paste help"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | help",menu:{file:{title:"File",items:"newdocument restoredraft | preview | print "},edit:{title:"Edit",items:"undo redo | cut copy paste | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | code wordcount"},table:{title:"Table",items:"inserttable | cell row column | tableprops deletetable"},help:{title:"Help",items:"help"}},paste_data_images:!0},this.props.config),{target:this.elementRef.current,readOnly:this.props.disabled,setup:function(t){e.editor=t,t.on("init",function(n){e.initEditor(n,t)})}}),i.default.init(this.config)},t.prototype.componentDidUpdate=function(e){var t,n=this.props;n.model!==e.model&&n.model!==this.currentContent&&(null===(t=this.editor)||void 0===t?void 0:t.setContent(n.model||""))},t.prototype.componentWillUnmount=function(){i.default.remove(this.editor)},t.prototype.initEditor=function(e,t){var n=this,o=this.props,i=o.model,r=o.onModelChange,l=o.outputFormat,a=o.onFocus,s=o.onBlur,d=i||"";t.setContent(d),r&&t.on("change keyup setcontent",function(){var e=t.getContent({format:l});e!==n.currentContent&&(n.currentContent=e,r(e))}),a&&t.on("focus",a),s&&t.on("blur",s)},t.prototype.render=function(){return o.default.createElement("textarea",{ref:this.elementRef})},t.defaultProps={outputFormat:"html"},t}(o.default.Component);t.default=r,i.default.addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Image description":"图片描述",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/Edit Link":"插入/编辑链接","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Spell check":"拼写检查",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进","permanent pen":"记号笔",comments:"备注","Format Painter":"格式刷","Insert/edit iframe":"插入/编辑框架",Capitalization:"大写",lowercase:"小写",UPPERCASE:"大写","Title Case":"首字母大写","Permanent Pen Properties":"永久笔属性","Permanent pen properties...":"永久笔属性...",Font:"字体",Size:"字号","More...":"更多...","Spellcheck Language":"拼写检查语言","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色",Emoticons:"表情","Document properties":"文档属性",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配",Spellcheck:"拼写检查",Caption:"标题","Insert template":"插入模板"})});
\ No newline at end of file
diff --git a/gh-pages/sdk-placeholder.html b/gh-pages/sdk-placeholder.html
index b7c32a5a..0fde2af9 100644
--- a/gh-pages/sdk-placeholder.html
+++ b/gh-pages/sdk-placeholder.html
@@ -1,13 +1,13 @@
-
+
-
-
+
+