text: var Editable=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=i(o),s=n(2),u=i(s),c=n(3),f=i(c),l=n(15),d=i(l),h=n(7),g=r(h),p=n(28),v=i(p),m=n(16),y=r(m),b=n(45),C=r(b),S=n(10),w=r(S),R=n(46),N=r(R),E=n(65),_=i(E),x=n(24),O=i(x),k=n(67),T=i(k),A=n(64),M=i(A),P=n(51),D=i(P),B=e.exports=function(){function e(t){(0,a.default)(this,e);var n={window:window,defaultBehavior:!0,mouseMoveSelectionChanges:!1,browserSpellcheck:!0};this.config=f.default.extend(n,t),this.win=this.config.window,this.editableSelector="."+g.editableClass,d.default.initialized||d.default.init(),this.dispatcher=new _.default(this),this.config.defaultBehavior===!0&&this.dispatcher.on((0,M.default)(this))}return(0,u.default)(e,[{key:"add",value:function(e){return this.enable((0,f.default)(e)),this}},{key:"remove",value:function(e){var t=(0,f.default)(e);return this.disable(t),t.removeClass(g.editableDisabledClass),this}},{key:"disable",value:function(e){var t=this.win.document.body;return e=e||(0,f.default)("."+g.editableClass,t),e.each(function(e,t){return C.disable(t)}),this}},{key:"enable",value:function(e,t){var n=this,r=this.win.document.body;e=e||(0,f.default)("."+g.editableDisabledClass,r);var i=this.config.browserSpellcheck;return e.each(function(e,r){C.init(r,{normalize:t,shouldSpellcheck:i}),n.dispatcher.notify("init",r)}),this}},{key:"suspend",value:function(e){var t=this.win.document.body;return e=e||(0,f.default)("."+g.editableClass,t),e.removeAttr("contenteditable"),this}},{key:"continue",value:function(e){var t=this.win.document.body;return e=e||(0,f.default)("."+g.editableClass,t),e.attr("contenteditable",!0),this}},{key:"createCursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"beginning",n=(0,f.default)(e).closest(this.editableSelector);if(n.length){var r=d.default.createRange();return"beginning"===t||"end"===t?(r.selectNodeContents(e),r.collapse("beginning"===t)):e!==n[0]?"before"===t?(r.setStartBefore(e),r.setEndBefore(e)):"after"===t&&(r.setStartAfter(e),r.setEndAfter(e)):(0,v.default)("EditableJS: cannot create cursor outside of an editable block."),new O.default(n[0],r)}}},{key:"createCursorAtBeginning",value:function(e){return this.createCursor(e,"beginning")}},{key:"createCursorAtEnd",value:function(e){return this.createCursor(e,"end")}},{key:"createCursorBefore",value:function(e){return this.createCursor(e,"before")}},{key:"createCursorAfter",value:function(e){return this.createCursor(e,"after")}},{key:"getContent",value:function(e){return w.extractContent(e)}},{key:"appendTo",value:function(e,t){var n=w.adoptElement(e,this.win.document),r=this.createCursor(n,"end");return r.insertAfter("string"==typeof t?w.createFragmentFromString(t):t),r}},{key:"prependTo",value:function(e,t){var n=w.adoptElement(e,this.win.document),r=this.createCursor(n,"beginning");return r.insertBefore("string"==typeof t?w.createFragmentFromString(t):t),r}},{key:"getSelection",value:function(e){var t=this.dispatcher.selectionWatcher.getFreshSelection();if(!e||!t)return t;var n=t.range;try{n.compareNode(e)!==n.NODE_BEFORE_AND_AFTER&&(t=void 0)}catch(e){t=void 0}return t}},{key:"setupHighlighting",value:function(e){return this.highlighting=new T.default(this,e),this}},{key:"setupSpellcheck",value:function(e){var t=this,n=void 0;e.markerNode&&(n=e.markerNode.outerHTML),this.setupHighlighting({throttle:e.throttle,spellcheck:{marker:n,spellcheckService:e.spellcheckService}}),this.spellcheck={checkSpelling:function(e){t.highlighting.highlight(e)}}}},{key:"on",value:function(e,t){return this.dispatcher.on(e,t),this}},{key:"off",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.dispatcher.off.apply(this.dispatcher,t),this}},{key:"unload",value:function(){return this.dispatcher.unload(),this}}],[{key:"globalConfig",value:function(e){f.default.extend(g,e),N.updateConfig(g)}}]),e}();B.parser=y,B.content=w,B.browser=D.default,["focus","blur","flow","selection","cursor","newline","insert","split","merge","empty","change","switch","move","clipboard","paste"].forEach(function(e){B.prototype[e]=function(t){return this.on(e,t)}})},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(78),o=r(i);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t){e.exports=jQuery},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(39)("wks"),i=n(27),o=n(8).Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.elementNode=1,t.attributeNode=2,t.textNode=3,t.cdataSectionNode=4,t.entityReferenceNode=5,t.entityNode=6,t.processingInstructionNode=7,t.commentNode=8,t.documentNode=9,t.documentTypeNode=10,t.documentFragmentNode=11,t.notationNode=12},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.log=!1,t.logErrors=!0,t.editableClass="js-editable",t.editableDisabledClass="js-editable-disabled",t.pastingAttribute="data-editable-is-pasting",t.boldTag="strong",t.italicTag="em",t.pastedHtmlRules={allowedElements:{a:{href:!0},strong:{},em:{},br:{}},requiredAttributes:{a:["href"]},transformElements:{b:"strong",i:"em"},splitIntoBlocks:["h1","h2","h3","h4","h5","h6","p","blockquote"],blockLevelElements:["h1","h2","h3","h4","h5","h6","div","p","pre","hr","blockquote","article","figure","header","footer","ul","ol","li","section","table","video"]}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(18),i=n(53),o=n(42),a=Object.defineProperty;t.f=n(11)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,n,r){return n=U.save(n),r.call(t),U.restore(e,n)}function a(e){s(e)}function s(e){var t=document.createDocumentFragment();for(Array.prototype.forEach.call(e.childNodes,function(e){if("BR"===e.nodeName||e.textContent){if(e.nodeType===z.elementNode&&"BR"!==e.nodeName){for(var n=e;null!==(n=n.nextSibling)&&$.isSameNode(n,e);)(0,H.default)(n.childNodes).forEach(function(t){e.appendChild(t.cloneNode(!0))}),n.parentNode.removeChild(n);s(e)}t.appendChild(e.cloneNode(!0))}});e.firstChild;)e.removeChild(e.firstChild);e.appendChild(t)}function u(e){return e.replace(X," ")}function c(e){e.innerHTML=f(e,!0)}function f(e,t){var n=(e.nodeType===z.documentFragmentNode?l(e):e.innerHTML).replace(J,"").replace(Q,"<br>"),r=document.createElement("div");return r.innerHTML=n,p(r,t),r.innerHTML}function l(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}function d(e){var t=document.createDocumentFragment();return(0,F.default)("<div>").html(e).contents().each(function(e,n){t.appendChild(n)}),t}function h(e,t){return e.ownerDocument!==t?t.adoptNode(e):e}function g(e){for(var t=e.cloneContents(),n=t.childNodes[0],r=document.createDocumentFragment();n.childNodes.length;)r.appendChild(n.childNodes[0]);return r}function p(e,t){for(;e;){var n=e.nextSibling;if(e.nodeType===z.elementNode){var r=e.getAttribute("data-editable");e.firstChild&&p(e.firstChild,t),("remove"===r||"ui-remove"===r&&!t)&&(0,F.default)(e).remove(),("unwrap"===r||"ui-unwrap"===r&&!t)&&O(e),e=n}else e=n}}function v(e,t,n){for(var r=y(t,n),i=t.commonAncestorContainer;i!==e;)n&&!n(i)||r.push(i),i=i.parentNode;return r}function m(e,t,n){return v(e,t,function(e){return e.nodeName===n.toUpperCase()})}function y(e,t){return e.getNodes([z.elementNode],t)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){return e.nodeName})}function C(e,t,n){return v(e,t).some(function(e){return e.nodeName===n.toUpperCase()})}function S(e){var t=L.default.createRange();return t.selectNodeContents(e),t}function w(e,t,n){var r=L.default.createRange();if(r.selectNodeContents(t),!e.intersectsRange(r))return!1;var i=e.toString(),o=(0,F.default)(t).text();return n&&(i=G.trim(i),o=G.trim(o)),""!==i&&i===o}function R(e,t,n){return t.selectNodeContents(n),t}function N(e,t,n){var r=m(e,t,n.nodeName);return 1===r.length&&w(t,r[0],"visible")?k(e,t,n.nodeName):_(e,t,n)}function E(e){return e.canSurroundContents()}function _(e,t,n){var r=o(e,t,function(){T(e,t,n.nodeName)});return E(r)||(r=o(e,r,function(){T(e,r)})),x(r,n),r}function x(e,t){var n=G.isString(t)?(0,F.default)(t).get(0):t;return E(e)?void e.surroundContents(n):void console.log("content.wrap(): can not surround range")}function O(e){var t=(0,F.default)(e),n=t.contents();n.length?n.unwrap():t.remove()}function k(e,t,n){return o(e,t,function(){T(e,t,n)})}function T(e,t,n){v(e,t).forEach(function(e){"BR"===e.nodeName||n&&e.nodeName!==n.toUpperCase()||O(e)})}function A(e,t,n){var r=document.createTextNode(t),i=e.cloneRange();i.collapse(n),i.insertNode(r),e[n?"setStartBefore":"setEndAfter"](r),e.normalizeBoundaries()}function M(e,t,n,r){return A(t,r||n,!1),A(t,n,!0),t}function P(e,t,n){if(!D(t,n))return t;t.splitBoundaries();var r=o(e,t,function(){var e=G.regexp(n);t.getNodes([z.textNode],function(t){return t.nodeValue.search(e)>=0}).forEach(function(t){t.nodeValue=t.nodeValue.replace(e,"")})});return r.normalizeBoundaries(),r}function D(e,t){return e.toString().indexOf(t)>=0}function B(e,t,n){v(e,t).forEach(function(e){e.nodeName===n&&O(e)})}Object.defineProperty(t,"__esModule",{value:!0});var I=n(17),H=i(I);t.tidyHtml=a,t.normalizeTags=s,t.normalizeWhitespace=u,t.cleanInternals=c,t.extractContent=f,t.getInnerHtmlOfFragment=l,t.createFragmentFromString=d,t.adoptElement=h,t.cloneRangeContents=g,t.unwrapInternalNodes=p,t.getTags=v,t.getTagsByName=m,t.getInnerTags=y,t.getTagNames=b,t.isAffectedBy=C,t.selectNodeContents=S,t.isExactSelection=w,t.expandTo=R,t.toggleTag=N,t.isWrappable=E,t.forceWrap=_,t.wrap=x,t.unwrap=O,t.removeFormatting=k,t.nuke=T,t.insertCharacter=A,t.surround=M,t.deleteCharacter=P,t.containsString=D,t.nukeTag=B;var j=n(3),F=i(j),W=n(15),L=i(W),V=n(6),z=r(V),q=n(49),U=r(q),K=n(16),$=r(K),Y=n(25),G=r(Y),Q=/\u200B/g,J=/\uFEFF/g,X=/[^\S ]/g},function(e,t,n){e.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(8),i=n(4),o=n(31),a=n(19),s="prototype",u=function(e,t,n){var c,f,l,d=e&u.F,h=e&u.G,g=e&u.S,p=e&u.P,v=e&u.B,m=e&u.W,y=h?i:i[t]||(i[t]={}),b=y[s],C=h?r:g?r[t]:(r[t]||{})[s];h&&(n=t);for(c in n)f=!d&&C&&void 0!==C[c],f&&c in y||(l=f?C[c]:n[c],y[c]=h&&"function"!=typeof C[c]?n[c]:v&&f?o(l,r):m&&C[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((y.virtual||(y.virtual={}))[c]=l,e&u.R&&b&&!b[c]&&a(b,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(99),i=n(32);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i;!function(o,a){r=o,i="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==i&&(e.exports=i))}(function(){function e(e,t){var n=typeof e[t];return n==C||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=S}function r(e){return function(t,n){for(var r=n.length;r--;)if(!e(t,n[r]))return!1;return!0}}function i(e){return e&&_(e,E)&&O(e,N)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=S&&e(console,"log")&&console.log(t)}function s(e,t){A&&t?alert(e):a(e)}function u(e){P.initialized=!0,P.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,P.config.alertOnFail)}function c(e){s("Rangy warning: "+e,P.config.alertOnWarn)}function f(e){return e.message||e.description||String(e)}function l(){if(A&&!P.initialized){var t,n=!1,r=!1;e(document,"createRange")&&(t=document.createRange(),_(t,R)&&O(t,w)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void u("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),i(t)&&(r=!0)),!n&&!r)return void u("Neither Range nor TextRange are available");P.initialized=!0,P.features={implementsDomRange:n,implementsTextRange:r};var c,l;for(var d in T)(c=T[d])instanceof p&&c.init(c,P);for(var h=0,g=I.length;h<g;++h)try{I[h](P)}catch(e){l="Rangy init listener threw an exception. Continuing. Detail: "+f(e),a(l)}}}function d(e,t,n){n&&(e+=" in module "+n.name),P.warn("DEPRECATED: "+e+" is deprecated. Please use "+t+" instead.")}function h(e,t,n,r){e[t]=function(){return d(t,n,r),e[n].apply(e,M.toArray(arguments))}}function g(e){e=e||window,l();for(var t=0,n=H.length;t<n;++t)H[t](e)}function p(e,t,n){this.name=e,this.dependencies=t,this.initialized=!1,this.supported=!1,this.initializer=n}function v(e,t,n){var r=new p(e,t,function(t){if(!t.initialized){t.initialized=!0;try{n(P,t),t.supported=!0}catch(t){var r="Module '"+e+"' failed to load: "+f(t);a(r),t.stack&&a(t.stack)}}});return T[e]=r,r}function m(){}function y(){}var b="object",C="function",S="undefined",w=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],R=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],N=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],E=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"],_=r(e),x=r(t),O=r(n),k=[].forEach?function(e,t){e.forEach(t)}:function(e,t){for(var n=0,r=e.length;n<r;++n)t(e[n],n)},T={},A=typeof window!=S&&typeof document!=S,M={isHostMethod:e,isHostObject:t,isHostProperty:n,areHostMethods:_,areHostObjects:x,areHostProperties:O,isTextRange:i,getBody:o,forEach:k},P={version:"1.3.0",initialized:!1,isBrowser:A,supported:!0,util:M,features:{},modules:T,config:{alertOnFail:!1,alertOnWarn:!1,preferTextRange:!1,autoInitialize:typeof rangyAutoInitialize==S||rangyAutoInitialize}};P.fail=u,P.warn=c;var D;({}).hasOwnProperty?(M.extend=D=function(e,t,n){var r,i;for(var o in t)t.hasOwnProperty(o)&&(r=e[o],i=t[o],n&&null!==r&&"object"==typeof r&&null!==i&&"object"==typeof i&&D(r,i,!0),e[o]=i);return t.hasOwnProperty("toString")&&(e.toString=t.toString),e},M.createOptions=function(e,t){var n={};return D(n,t),e&&D(n,e),n}):u("hasOwnProperty not supported"),A||u("Rangy can only run in a browser"),function(){var e;if(A){var t=document.createElement("div");t.appendChild(document.createElement("span"));var n=[].slice;try{1==n.call(t.childNodes,0)[0].nodeType&&(e=function(e){return n.call(e,0)})}catch(e){}}e||(e=function(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e[n];return t}),M.toArray=e}();var B;A&&(e(document,"addEventListener")?B=function(e,t,n){e.addEventListener(t,n,!1)}:e(document,"attachEvent")?B=function(e,t,n){e.attachEvent("on"+t,n)}:u("Document does not have required addEventListener or attachEvent method"),M.addListener=B);var I=[];M.deprecationNotice=d,M.createAliasForDeprecatedMethod=h,P.init=l,P.addInitListener=function(e){P.initialized?e(P):I.push(e)};var H=[];P.addShimListener=function(e){H.push(e)},A&&(P.shim=P.createMissingNativeApi=g,h(P,"createMissingNativeApi","shim")),p.prototype={init:function(){for(var e,t,n=this.dependencies||[],r=0,i=n.length;r<i;++r){if(t=n[r],e=T[t],!(e&&e instanceof p))throw new Error("required module '"+t+"' not found");if(e.init(),!e.supported)throw new Error("required module '"+t+"' not supported")}this.initializer(this)},fail:function(e){throw this.initialized=!0,this.supported=!1,new Error(e)},warn:function(e){P.warn("Module "+this.name+": "+e)},deprecationNotice:function(e,t){P.warn("DEPRECATED: "+e+" in module "+this.name+" is deprecated. Please use "+t+" instead")},createError:function(e){return new Error("Error in Rangy "+this.name+" module: "+e)}},P.createModule=function(e){var t,n;2==arguments.length?(t=arguments[1],n=[]):(t=arguments[2],n=arguments[1]);var r=v(e,n,t);P.initialized&&P.supported&&r.init()},P.createCoreModule=function(e,t,n){v(e,t,n)},P.RangePrototype=m,P.rangePrototype=new m,P.selectionPrototype=new y,P.createCoreModule("DomUtil",[],function(e,t){function n(e){var t;return typeof e.namespaceURI==A||null===(t=e.namespaceURI)||"http://www.w3.org/1999/xhtml"==t}function r(e){var t=e.parentNode;return 1==t.nodeType?t:null}function i(e){for(var t=0;e=e.previousSibling;)++t;return t}function o(e){switch(e.nodeType){case 7:case 10:return 0;case 3:case 8:return e.length;default:return e.childNodes.length}}function a(e,t){var n,r=[];for(n=e;n;n=n.parentNode)r.push(n);for(n=t;n;n=n.parentNode)if(I(r,n))return n;return null}function s(e,t,n){for(var r=n?t:t.parentNode;r;){if(r===e)return!0;r=r.parentNode}return!1}function u(e,t){return s(e,t,!0)}function c(e,t,n){for(var r,i=n?e:e.parentNode;i;){if(r=i.parentNode,r===t)return i;i=r}return null}function f(e){var t=e.nodeType;return 3==t||4==t||8==t}function l(e){if(!e)return!1;var t=e.nodeType;return 3==t||8==t}function d(e,t){var n=t.nextSibling,r=t.parentNode;return n?r.insertBefore(e,n):r.appendChild(e),e}function h(e,t,n){var r=e.cloneNode(!1);if(r.deleteData(0,t),e.deleteData(t,e.length-t),d(r,e),n)for(var o,a=0;o=n[a++];)o.node==e&&o.offset>t?(o.node=r,o.offset-=t):o.node==e.parentNode&&o.offset>i(e)&&++o.offset;return r}function g(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=A)return e.ownerDocument;if(typeof e.document!=A)return e.document;if(e.parentNode)return g(e.parentNode);throw t.createError("getDocument: no document found for node")}function p(e){var n=g(e);if(typeof n.defaultView!=A)return n.defaultView;if(typeof n.parentWindow!=A)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function v(e){if(typeof e.contentDocument!=A)return e.contentDocument;if(typeof e.contentWindow!=A)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=A)return e.contentWindow;if(typeof e.contentDocument!=A)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&M.isHostMethod(e,"setTimeout")&&M.isHostObject(e,"document")}function b(e,t,n){var r;if(e?M.isHostProperty(e,"nodeType")?r=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?v(e):g(e):y(e)&&(r=e.document):r=document,!r)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return r}function C(e){for(var t;t=e.parentNode;)e=t;return e}function S(e,n,r,o){var s,u,f,l,d;if(e==r)return n===o?0:n<o?-1:1;if(s=c(r,e,!0))return n<=i(s)?-1:1;if(s=c(e,r,!0))return i(s)<o?-1:1;if(u=a(e,r),!u)throw new Error("comparePoints error: nodes have no common ancestor");if(f=e===u?u:c(e,u,!0),l=r===u?u:c(r,u,!0),f===l)throw t.createError("comparePoints got to case 4 and childA and childB are the same!");for(d=u.firstChild;d;){if(d===f)return-1;if(d===l)return 1;d=d.nextSibling}}function w(e){var t;try{return t=e.parentNode,!1}catch(e){return!0}}function R(e){if(!e)return"[No node]";if(H&&w(e))return"[Broken node]";if(f(e))return'"'+e.data+'"';if(1==e.nodeType){var t=e.id?' id="'+e.id+'"':"";return"<"+e.nodeName+t+">[index:"+i(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function N(e){for(var t,n=g(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function E(e,t,n){var r=P(e),i=e.createElement("div");i.contentEditable=""+!!n,t&&(i.innerHTML=t);var o=r.firstChild;return o?r.insertBefore(i,o):r.appendChild(i),i}function _(e){return e.parentNode.removeChild(e)}function x(e){this.root=e,this._next=e}function O(e){return new x(e)}function k(e,t){this.node=e,this.offset=t}function T(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var A="undefined",M=e.util,P=M.getBody;M.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),M.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var D=document.createElement("div");M.areHostMethods(D,["insertBefore","appendChild","cloneNode"]||!M.areHostObjects(D,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),M.isHostProperty(D,"innerHTML")||t.fail("Element is missing innerHTML property");var B=document.createTextNode("test");M.areHostMethods(B,["splitText","deleteData","insertData","appendData","cloneNode"]||!M.areHostObjects(D,["previousSibling","nextSibling","childNodes","parentNode"])||!M.areHostProperties(B,["data"]))||t.fail("Incomplete Text Node implementation");var I=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},H=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="<br />",H=w(n),e.features.crashyTextNodes=H}();var j;typeof window.getComputedStyle!=A?j=function(e,t){return p(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=A?j=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),x.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},k.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+R(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},T.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},T.prototype.toString=function(){return this.message},e.dom={arrayContains:I,isHtmlNamespace:n,parentElement:r,getNodeIndex:i,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:u,getClosestAncestorIn:c,isCharacterDataNode:f,isTextOrCommentNode:l,insertAfter:d,splitDataNode:h,getDocument:g,getWindow:p,getIframeWindow:m,getIframeDocument:v,getBody:P,isWindow:y,getContentDocument:b,getRootContainer:C,comparePoints:S,isBrokenNode:w,inspectNode:R,getComputedStyleProperty:j,createTestElement:E,removeNode:_,fragmentFromNodeChildren:N,createIterator:O,DomPosition:k},e.DOMException=T}),P.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(L(e,t.startContainer)||L(e,t.endContainer))}function r(e){return e.document||V(e.startContainer)}function i(e){return Y(e.startContainer)}function o(e){return new H(e.parentNode,W(e))}function a(e){return new H(e.parentNode,W(e)+1)}function s(e,t,n){var r=11==e.nodeType?e.firstChild:e;return F(t)?n==t.length?B.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:q(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),r}function u(e,t,n){if(E(e),E(t),r(t)!=r(e))throw new j("WRONG_DOCUMENT_ERR");var i=z(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=z(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?i<=0&&o>=0:i<0&&o>0}function c(e){for(var t,n,i,o=r(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(i=e.getSubtreeIterator(),n.appendChild(c(i)),i.detach()),10==n.nodeType)throw new j("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function f(e,t,n){var r,i;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),f(a,t,n),a.detach(),n.stop)return}else for(r=B.createIterator(o);i=r.next();)if(t(i)===!1)return void(n.stop=!0)}function l(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),l(t),t.detach()):e.remove()}function d(e){for(var t,n,i=r(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new j("HIERARCHY_REQUEST_ERR");i.appendChild(t)}return i}function h(e,t,n){var r,i=!(!t||!t.length),o=!!n;i&&(r=new RegExp("^("+t.join("|")+")$"));var a=[];return f(new p(e,!1),function(t){if((!i||r.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!F(s)||e.startOffset!=s.length){var u=e.endContainer;t==u&&F(u)&&0==e.endOffset||a.push(t)}}}),a}function g(e){var t="undefined"==typeof e.getName?"Range":e.getName();return"["+t+"("+B.inspectNode(e.startContainer)+":"+e.startOffset+", "+B.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function p(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&F(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||F(this.sc)?U(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||F(this.ec)?U(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function v(e){return function(t,n){for(var r,i=n?t:t.parentNode;i;){if(r=i.nodeType,$(e,r))return i;i=i.parentNode}return null}}function m(e,t){if(ie(e,t))throw new j("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!$(t,e.nodeType))throw new j("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(F(e)?e.length:e.childNodes.length))throw new j("INDEX_SIZE_ERR")}function C(e,t){if(ne(e,!0)!==ne(t,!0))throw new j("WRONG_DOCUMENT_ERR")}function S(e){if(re(e,!0))throw new j("NO_MODIFICATION_ALLOWED_ERR")}function w(e,t){if(!e)throw new j(t)}function R(e,t){return t<=(F(e)?e.length:e.childNodes.length)}function N(e){return!!e.startContainer&&!!e.endContainer&&!(G&&(B.isBrokenNode(e.startContainer)||B.isBrokenNode(e.endContainer)))&&Y(e.startContainer)==Y(e.endContainer)&&R(e.startContainer,e.startOffset)&&R(e.endContainer,e.endOffset)}function E(e){if(!N(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function _(e,t){E(e);var n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=n===i;F(i)&&o>0&&o<i.length&&q(i,o,t),F(n)&&r>0&&r<n.length&&(n=q(n,r,t),a?(o-=r,i=n):i==n.parentNode&&o>=W(n)&&o++,r=0),e.setStartAndEnd(n,r,i,o)}function x(e){E(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function O(e){e.START_TO_START=ce,e.START_TO_END=fe,e.END_TO_END=le,e.END_TO_START=de,e.NODE_BEFORE=he,e.NODE_AFTER=ge,e.NODE_BEFORE_AND_AFTER=pe,e.NODE_INSIDE=ve}function k(e){O(e),O(e.prototype)}function T(e,t){return function(){E(this);var n,r,i=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,u=new p(this,!0);i!==s&&(n=U(i,s,!0),r=a(n),i=r.node,o=r.offset),f(u,S),u.reset();var c=e(u);return u.detach(),t(this,i,o,i,o),c}}function A(t,r){function i(e,t){return function(n){y(n,J),y(Y(n),X);var r=(e?o:a)(n);(t?s:u)(this,r.node,r.offset)}}function s(e,t,n){var i=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(Y(t)==Y(i)&&1!=z(t,n,i,o)||(i=t,o=n),r(e,t,n,i,o))}function u(e,t,n){var i=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(Y(t)==Y(i)&&z(t,n,i,o)!=-1||(i=t,o=n),r(e,i,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,I.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),u(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],i=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:i=e[2],o=e[3]}r(this,t,n,i,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:i(!0,!0),setStartAfter:i(!1,!0),setEndBefore:i(!0,!1),setEndAfter:i(!1,!1),collapse:function(e){E(this),e?r(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):r(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),r(this,e,0,e,K(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);r(this,t.node,t.offset,n.node,n.offset)},extractContents:T(d,r),deleteContents:T(l,r),canSurroundContents:function(){E(this),S(this.startContainer),S(this.endContainer);var e=new p(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){_(this)},splitBoundariesPreservingPositions:function(e){_(this,e)},normalizeBoundaries:function(){E(this);var e,t=this.startContainer,n=this.startOffset,i=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(i=e,o=e.length,e.appendData(t.data),Q(t))},s=function(e){var r=e.previousSibling;if(r&&r.nodeType==e.nodeType){t=e;var a=e.length;if(n=r.length,e.insertData(0,r.data),Q(r),t==i)o+=n,i=t;else if(i==e.parentNode){var s=W(e);o==s?(i=e,o=a):o>s&&o--}}},u=!0;if(F(i))o==i.length?a(i):0==o&&(e=i.previousSibling,e&&e.nodeType==i.nodeType&&(o=e.length,t==i&&(u=!1),e.appendData(i.data),Q(i),i=e));else{if(o>0){var c=i.childNodes[o-1];c&&F(c)&&a(c)}u=!this.collapsed}if(u){if(F(t))0==n?s(t):n==t.length&&(e=t.nextSibling,e&&e.nodeType==t.nodeType&&(i==e&&(i=t,o+=t.length),t.appendData(e.data),Q(e)));else if(n<t.childNodes.length){var f=t.childNodes[n];f&&F(f)&&s(f)}}else t=i,n=o;r(this,t,n,i,o)},collapseToPoint:function(e,t){m(e,!0),b(e,t),this.setStartAndEnd(e,t)}}),k(t)}function M(e){e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset,e.commonAncestorContainer=e.collapsed?e.startContainer:B.getCommonAncestor(e.startContainer,e.endContainer)}function P(e,t,n,r,i){e.startContainer=t,e.startOffset=n,e.endContainer=r,e.endOffset=i,e.document=B.getDocument(t),M(e)}function D(e){this.startContainer=e,this.startOffset=0,this.endContainer=e,this.endOffset=0,this.document=e,M(this)}var B=e.dom,I=e.util,H=B.DomPosition,j=e.DOMException,F=B.isCharacterDataNode,W=B.getNodeIndex,L=B.isOrIsAncestorOf,V=B.getDocument,z=B.comparePoints,q=B.splitDataNode,U=B.getClosestAncestorIn,K=B.getNodeLength,$=B.arrayContains,Y=B.getRootContainer,G=e.features.crashyTextNodes,Q=B.removeNode;p.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var e=this._current=this._next;return e&&(this._next=e!==this._last?e.nextSibling:null,
  F(e)&&this.clonePartiallySelectedTextNodes&&(e===this.ec&&(e=e.cloneNode(!0)).deleteData(this.eo,e.length-this.eo),this._current===this.sc&&(e=e.cloneNode(!0)).deleteData(0,this.so))),e},remove:function(){var e,t,n=this._current;!F(n)||n!==this.sc&&n!==this.ec?n.parentNode&&Q(n):(e=n===this.sc?this.so:0,t=n===this.ec?this.eo:n.length,e!=t&&n.deleteData(e,t-e))},isPartiallySelectedSubtree:function(){var e=this._current;return n(e,this.range)},getSubtreeIterator:function(){var e;if(this.isSingleCharacterDataNode)e=this.range.cloneRange(),e.collapse(!1);else{e=new D(r(this.range));var t=this._current,n=t,i=0,o=t,a=K(t);L(t,this.sc)&&(n=this.sc,i=this.so),L(t,this.ec)&&(o=this.ec,a=this.eo),P(e,n,i,o,a)}return new p(e,this.clonePartiallySelectedTextNodes)},detach:function(){this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};var J=[1,3,4,5,7,8,10],X=[2,9,11],Z=[5,6,10,12],ee=[1,3,4,5,7,8,10,11],te=[1,3,4,5,7,8],ne=v([9,11]),re=v(Z),ie=v([6,10,12]),oe=document.createElement("style"),ae=!1;try{oe.innerHTML="<b>x</b>",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=V(t);if(!t)throw new j("INVALID_STATE_ERR");var r=null;return 1==t.nodeType?r=t:F(t)&&(r=B.parentElement(t)),r=null===r||"HTML"==r.nodeName&&B.isHtmlNamespace(V(r).documentElement)&&B.isHtmlNamespace(r)?n.createElement("body"):r.cloneNode(!1),r.innerHTML=e,B.fragmentFromNodeChildren(r)}:function(e){var t=r(this),n=t.createElement("body");return n.innerHTML=e,B.fragmentFromNodeChildren(n)},ue=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,fe=1,le=2,de=3,he=0,ge=1,pe=2,ve=3;I.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){E(this),C(this.startContainer,t.startContainer);var n,r,i,o,a=e==de||e==ce?"start":"end",s=e==fe||e==ce?"start":"end";return n=this[a+"Container"],r=this[a+"Offset"],i=t[s+"Container"],o=t[s+"Offset"],z(n,r,i,o)},insertNode:function(e){if(E(this),y(e,ee),S(this.startContainer),L(e,this.startContainer))throw new j("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){E(this);var e,t;if(this.collapsed)return r(this).createDocumentFragment();if(this.startContainer===this.endContainer&&F(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=r(this).createDocumentFragment(),t.appendChild(e),t;var n=new p(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){E(this),S(this.startContainer),S(this.endContainer);var e=new p(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new j("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){E(this);for(var e,t=new D(r(this)),n=ue.length;n--;)e=ue[n],t[e]=this[e];return t},toString:function(){E(this);var e=this.startContainer;if(e===this.endContainer&&F(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new p(this,!0);return f(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){E(this);var t=e.parentNode,n=W(e);if(!t)throw new j("NOT_FOUND_ERR");var r=this.comparePoint(t,n),i=this.comparePoint(t,n+1);return r<0?i>0?pe:he:i>0?ge:ve},comparePoint:function(e,t){return E(this),w(e,"HIERARCHY_REQUEST_ERR"),C(e,this.startContainer),z(e,t,this.startContainer,this.startOffset)<0?-1:z(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return x(this)},intersectsNode:function(e,t){if(E(this),Y(e)!=i(this))return!1;var n=e.parentNode,r=W(e);if(!n)return!0;var o=z(n,r,this.endContainer,this.endOffset),a=z(n,r+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return E(this),w(e,"HIERARCHY_REQUEST_ERR"),C(e,this.startContainer),z(e,t,this.startContainer,this.startOffset)>=0&&z(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return u(this,e,!1)},intersectsOrTouchesRange:function(e){return u(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=z(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=z(this.endContainer,this.endOffset,e.endContainer,e.endOffset),r=this.cloneRange();return t==-1&&r.setStart(e.startContainer,e.startOffset),1==n&&r.setEnd(e.endContainer,e.endOffset),r}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return z(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==z(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new j("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ve},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,K(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var r=n.pop();return t.setEnd(r,r.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return E(this),h(this,e,t)},getDocument:function(){return r(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=r(this),i=e.createRange(n);t=t||B.getBody(n),i.selectNodeContents(t);var o=this.intersection(i),a=0,s=0;return o&&(i.setEnd(o.startContainer,o.startOffset),a=i.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var r,i,o,a,s=[t],u=!1,c=!1;!c&&(r=s.pop());)if(3==r.nodeType)i=n+r.length,!u&&e.start>=n&&e.start<=i&&(this.setStart(r,e.start-n),u=!0),u&&e.end>=n&&e.end<=i&&(this.setEnd(r,e.end-n),c=!0),n=i;else for(a=r.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return D.rangesEqual(this,e)},isValid:function(){return N(this)},inspect:function(){return g(this)},detach:function(){}}),A(D,P),I.extend(D,{rangeProperties:ue,RangeIterator:p,copyComparisonConstants:k,createPrototypeRange:A,inspect:g,toHtml:x,getRangeDocument:r,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=D}),P.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,r,i=e.dom,o=e.util,a=i.DomPosition,s=e.DomRange,u=i.getBody,c=i.getContentDocument,f=i.isCharacterDataNode;if(e.features.implementsDomRange&&!function(){function r(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,r,i){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==r||e.endOffset!=i,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(r,i),e.setStart(t,n))}var f,l,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,r(this)},s.createPrototypeRange(n,a),f=n.prototype,f.selectNode=function(e){this.nativeRange.selectNode(e),r(this)},f.cloneContents=function(){return this.nativeRange.cloneContents()},f.surroundContents=function(e){this.nativeRange.surroundContents(e),r(this)},f.collapse=function(e){this.nativeRange.collapse(e),r(this)},f.cloneRange=function(){return new n(this.nativeRange.cloneRange())},f.refresh=function(){r(this)},f.toString=function(){return this.nativeRange.toString()};var h=document.createTextNode("test");u(document).appendChild(h);var g=document.createRange();g.setStart(h,0),g.setEnd(h,0);try{g.setStart(h,1),f.setStart=function(e,t){this.nativeRange.setStart(e,t),r(this)},f.setEnd=function(e,t){this.nativeRange.setEnd(e,t),r(this)},l=function(e){return function(t){this.nativeRange[e](t),r(this)}}}catch(e){f.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}r(this)},f.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}r(this)},l=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(r){this.nativeRange[t](n),this.nativeRange[e](n)}r(this)}}}f.setStartBefore=l("setStartBefore","setEndBefore"),f.setStartAfter=l("setStartAfter","setEndAfter"),f.setEndBefore=l("setEndBefore","setStartBefore"),f.setEndAfter=l("setEndAfter","setStartAfter"),f.selectNodeContents=function(e){this.setStartAndEnd(e,0,i.getNodeLength(e))},g.selectNodeContents(h),g.setEnd(h,3);var p=document.createRange();p.selectNodeContents(h),p.setEnd(h,4),p.setStart(h,2),g.compareBoundaryPoints(g.START_TO_END,p)==-1&&1==g.compareBoundaryPoints(g.END_TO_START,p)?f.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:f.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var v=document.createElement("div");v.innerHTML="123";var m=v.firstChild,y=u(document);y.appendChild(v),g.setStart(m,1),g.setEnd(m,2),g.deleteContents(),"13"==m.data&&(f.deleteContents=function(){this.nativeRange.deleteContents(),r(this)},f.extractContents=function(){var e=this.nativeRange.extractContents();return r(this),e}),y.removeChild(v),y=null,o.isHostMethod(g,"createContextualFragment")&&(f.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),u(document).removeChild(h),f.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var l=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var r=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=r==o?r:i.getCommonAncestor(r,o);return a==t?a:i.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},h=function(e,t,n,r,o){var s=e.duplicate();s.collapse(n);var u=s.parentElement();if(i.isOrIsAncestorOf(t,u)||(u=t),!u.canHaveHTML){var c=new a(u.parentNode,i.getNodeIndex(u));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var l=i.getDocument(u).createElement("span");l.parentNode&&i.removeNode(l);for(var d,h,g,p,v,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==u?o.nodeIndex:0,b=u.childNodes.length,C=b,S=C;;){if(S==b?u.appendChild(l):u.insertBefore(l,u.childNodes[S]),s.moveToElementText(l),d=s.compareEndPoints(m,e),0==d||y==C)break;if(d==-1){if(C==y+1)break;y=S}else C=C==y+1?y:S;S=Math.floor((y+C)/2),u.removeChild(l)}if(v=l.nextSibling,d==-1&&v&&f(v)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var w;if(/[\r\n]/.test(v.data)){var R=s.duplicate(),N=R.text.replace(/\r\n/g,"\r").length;for(w=R.moveStart("character",N);(d=R.compareEndPoints("StartToEnd",R))==-1;)w++,R.moveStart("character",1)}else w=s.text.length;p=new a(v,w)}else h=(r||!n)&&l.previousSibling,g=(r||n)&&l.nextSibling,p=g&&f(g)?new a(g,0):h&&f(h)?new a(h,h.data.length):new a(u,i.getNodeIndex(l));return i.removeNode(l),{boundaryPosition:p,nodeInfo:{nodeIndex:S,containerElement:u}}},g=function(e,t){var n,r,o,a,s=e.offset,c=i.getDocument(e.node),l=u(c).createTextRange(),d=f(e.node);return d?(n=e.node,r=n.parentNode):(a=e.node.childNodes,n=s<a.length?a[s]:null,r=e.node),o=c.createElement("span"),o.innerHTML="&#feff;",n?r.insertBefore(o,n):r.appendChild(o),l.moveToElementText(o),l.collapse(!t),r.removeChild(o),d&&l[t?"moveStart":"moveEnd"]("character",s),l};r=function(e){this.textRange=e,this.refresh()},r.prototype=new s(document),r.prototype.refresh=function(){var e,t,n,r=l(this.textRange);d(this.textRange)?t=e=h(this.textRange,r,!0,!0).boundaryPosition:(n=h(this.textRange,r,!0,!1),e=n.boundaryPosition,t=h(this.textRange,r,!1,!1,n.nodeInfo).boundaryPosition),this.setStart(e.node,e.offset),this.setEnd(t.node,t.offset)},r.prototype.getName=function(){return"WrappedTextRange"},s.copyComparisonConstants(r);var p=function(e){if(e.collapsed)return g(new a(e.startContainer,e.startOffset),!0);var t=g(new a(e.startContainer,e.startOffset),!0),n=g(new a(e.endContainer,e.endOffset),!1),r=u(s.getRangeDocument(e)).createTextRange();return r.setEndPoint("StartToStart",t),r.setEndPoint("EndToEnd",n),r};if(r.rangeToTextRange=p,r.prototype.toTextRange=function(){return p(this)},e.WrappedTextRange=r,!e.features.implementsDomRange||e.config.preferTextRange){var v=function(e){return e("return this;")()}(Function);"undefined"==typeof v.Range&&(v.Range=r),e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),u(e).createTextRange()},e.WrappedRange=r}}e.createRange=function(n){return n=c(n,t,"createRange"),new e.WrappedRange(e.createNativeRange(n))},e.createRangyRange=function(e){return e=c(e,t,"createRangyRange"),new s(e)},o.createAliasForDeprecatedMethod(e,"createIframeRange","createRange"),o.createAliasForDeprecatedMethod(e,"createIframeRangyRange","createRangyRange"),e.addShimListener(function(t){var n=t.document;"undefined"==typeof n.createRange&&(n.createRange=function(){return e.createRange(n)}),n=t=null})}),P.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],function(e,t){function n(e){return"string"==typeof e?/^backward(s)?$/i.test(e):!!e}function r(e,n){if(e){if(O.isWindow(e))return e;if(e instanceof m)return e.win;var r=O.getContentDocument(e,t,n);return O.getWindow(r)}return window}function i(e){return r(e,"getWinSelection").getSelection()}function o(e){return r(e,"getDocSelection").document.selection}function a(e){var t=!1;return e.anchorNode&&(t=1==O.comparePoints(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)),t}function s(e,t,n){var r=n?"end":"start",i=n?"start":"end";e.anchorNode=t[r+"Container"],e.anchorOffset=t[r+"Offset"],e.focusNode=t[i+"Container"],e.focusOffset=t[i+"Offset"]}function u(e){var t=e.nativeSelection;e.anchorNode=t.anchorNode,e.anchorOffset=t.anchorOffset,e.focusNode=t.focusNode,e.focusOffset=t.focusOffset}function c(e){e.anchorNode=e.focusNode=null,e.anchorOffset=e.focusOffset=0,e.rangeCount=0,e.isCollapsed=!0,e._ranges.length=0}function f(t){var n;return t instanceof A?(n=e.createNativeRange(t.getDocument()),n.setEnd(t.endContainer,t.endOffset),n.setStart(t.startContainer,t.startOffset)):t instanceof M?n=t.nativeRange:B.implementsDomRange&&t instanceof O.getWindow(t.startContainer).Range&&(n=t),n}function l(e){if(!e.length||1!=e[0].nodeType)return!1;for(var t=1,n=e.length;t<n;++t)if(!O.isAncestorOf(e[0],e[t]))return!1;return!0}function d(e){var n=e.getNodes();if(!l(n))throw t.createError("getSingleElementFromRange: range "+e.inspect()+" did not consist of a single element");return n[0]}function h(e){return!!e&&"undefined"!=typeof e.text}function g(e,t){var n=new M(t);e._ranges=[n],s(e,n,!1),e.rangeCount=1,e.isCollapsed=n.collapsed}function p(t){if(t._ranges.length=0,"None"==t.docSelection.type)c(t);else{var n=t.docSelection.createRange();if(h(n))g(t,n);else{t.rangeCount=n.length;for(var r,i=H(n.item(0)),o=0;o<t.rangeCount;++o)r=e.createRange(i),r.selectNode(n.item(o)),t._ranges.push(r);t.isCollapsed=1==t.rangeCount&&t._ranges[0].collapsed,s(t,t._ranges[t.rangeCount-1],!1)}}}function v(e,n){for(var r=e.docSelection.createRange(),i=d(n),o=H(r.item(0)),a=j(o).createControlRange(),s=0,u=r.length;s<u;++s)a.add(r.item(s));try{a.add(i)}catch(e){throw t.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}a.select(),p(e)}function m(e,t,n){this.nativeSelection=e,this.docSelection=t,this._ranges=[],this.win=n,this.refresh()}function y(e){e.win=e.anchorNode=e.focusNode=e._ranges=null,e.rangeCount=e.anchorOffset=e.focusOffset=0,e.detached=!0}function b(e,t){for(var n,r,i=te.length;i--;)if(n=te[i],r=n.selection,"deleteAll"==t)y(r);else if(n.win==e)return"delete"==t?(te.splice(i,1),!0):r;return"deleteAll"==t&&(te.length=0),null}function C(e,n){for(var r,i=H(n[0].startContainer),o=j(i).createControlRange(),a=0,s=n.length;a<s;++a){r=d(n[a]);try{o.add(r)}catch(e){throw t.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)")}}o.select(),p(e)}function S(e,t){if(e.win.document!=H(t))throw new P("WRONG_DOCUMENT_ERR")}function w(t){return function(n,r){var i;this.rangeCount?(i=this.getRangeAt(0),i["set"+(t?"Start":"End")](n,r)):(i=e.createRange(this.win.document),i.setStartAndEnd(n,r)),this.setSingleRange(i,this.isBackward())}}function R(e){var t=[],n=new D(e.anchorNode,e.anchorOffset),r=new D(e.focusNode,e.focusOffset),i="function"==typeof e.getName?e.getName():"Selection";if("undefined"!=typeof e.rangeCount)for(var o=0,a=e.rangeCount;o<a;++o)t[o]=A.inspect(e.getRangeAt(o));return"["+i+"(Ranges: "+t.join(", ")+")(anchor: "+n.inspect()+", focus: "+r.inspect()+"]"}e.config.checkSelectionRanges=!0;var N,E,_="boolean",x="number",O=e.dom,k=e.util,T=k.isHostMethod,A=e.DomRange,M=e.WrappedRange,P=e.DOMException,D=O.DomPosition,B=e.features,I="Control",H=O.getDocument,j=O.getBody,F=A.rangesEqual,W=T(window,"getSelection"),L=k.isHostObject(document,"selection");B.implementsWinGetSelection=W,B.implementsDocSelection=L;var V=L&&(!W||e.config.preferTextRange);if(V)N=o,e.isSelectionValid=function(e){var t=r(e,"isSelectionValid").document,n=t.selection;return"None"!=n.type||H(n.createRange().parentElement())==t};else{if(!W)return t.fail("Neither document.selection or window.getSelection() detected."),!1;N=i,e.isSelectionValid=function(){return!0}}e.getNativeSelection=N;var z=N();if(!z)return t.fail("Native selection was null (possibly issue 138?)"),!1;var q=e.createNativeRange(document),U=j(document),K=k.areHostProperties(z,["anchorNode","focusNode","anchorOffset","focusOffset"]);B.selectionHasAnchorAndFocus=K;var $=T(z,"extend");B.selectionHasExtend=$;var Y=typeof z.rangeCount==x;B.selectionHasRangeCount=Y;var G=!1,Q=!0,J=$?function(t,n){var r=A.getRangeDocument(n),i=e.createRange(r);i.collapseToPoint(n.endContainer,n.endOffset),t.addRange(f(i)),t.extend(n.startContainer,n.startOffset)}:null;k.areHostMethods(z,["addRange","getRangeAt","removeAllRanges"])&&typeof z.rangeCount==x&&B.implementsDomRange&&!function(){var t=window.getSelection();if(t){for(var n=t.rangeCount,r=n>1,i=[],o=a(t),s=0;s<n;++s)i[s]=t.getRangeAt(s);var u=O.createTestElement(document,"",!1),c=u.appendChild(document.createTextNode("   ")),f=document.createRange();if(f.setStart(c,1),f.collapse(!0),t.removeAllRanges(),t.addRange(f),Q=1==t.rangeCount,t.removeAllRanges(),!r){var l=window.navigator.appVersion.match(/Chrome\/(.*?) /);if(l&&parseInt(l[1])>=36)G=!1;else{var d=f.cloneRange();f.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(f),t.addRange(d),G=2==t.rangeCount}}for(O.removeNode(u),t.removeAllRanges(),s=0;s<n;++s)0==s&&o?J?J(t,i[s]):(e.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"),t.addRange(i[s])):t.addRange(i[s])}}(),B.selectionSupportsMultipleRanges=G,B.collapsedNonEditableSelectionsSupported=Q;var X,Z=!1;U&&T(U,"createControlRange")&&(X=U.createControlRange(),k.areHostProperties(X,["item","add"])&&(Z=!0)),B.implementsControlRange=Z,E=K?function(e){return e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset}:function(e){return!!e.rangeCount&&e.getRangeAt(e.rangeCount-1).collapsed};var ee;T(z,"getRangeAt")?ee=function(e,t){try{return e.getRangeAt(t)}catch(e){return null}}:K&&(ee=function(t){var n=H(t.anchorNode),r=e.createRange(n);return r.setStartAndEnd(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),r.collapsed!==this.isCollapsed&&r.setStartAndEnd(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset),r}),m.prototype=e.selectionPrototype;var te=[],ne=function(e){if(e&&e instanceof m)return e.refresh(),e;e=r(e,"getNativeSelection");var t=b(e),n=N(e),i=L?o(e):null;return t?(t.nativeSelection=n,t.docSelection=i,t.refresh()):(t=new m(n,i,e),te.push({win:e,selection:t})),t};e.getSelection=ne,k.createAliasForDeprecatedMethod(e,"getIframeSelection","getSelection");var re=m.prototype;if(!V&&K&&k.areHostMethods(z,["removeAllRanges","addRange"])){re.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),c(this)};var ie=function(e,t){J(e.nativeSelection,t),e.refresh()};Y?re.addRange=function(t,r){if(Z&&L&&this.docSelection.type==I)v(this,t);else if(n(r)&&$)ie(this,t);else{var i;G?i=this.rangeCount:(this.removeAllRanges(),i=0);var o=f(t).cloneRange();try{this.nativeSelection.addRange(o)}catch(e){}if(this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==i+1){if(e.config.checkSelectionRanges){var a=ee(this.nativeSelection,this.rangeCount-1);a&&!F(a,t)&&(t=new M(a))}this._ranges[this.rangeCount-1]=t,s(this,t,se(this.nativeSelection)),this.isCollapsed=E(this)}else this.refresh()}}:re.addRange=function(e,t){n(t)&&$?ie(this,e):(this.nativeSelection.addRange(f(e)),this.refresh())},re.setRanges=function(e){if(Z&&L&&e.length>1)C(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t<n;++t)this.addRange(e[t])}}}else{if(!(T(z,"empty")&&T(q,"select")&&Z&&V))return t.fail("No means of selecting a Range or TextRange was found"),!1;re.removeAllRanges=function(){try{if(this.docSelection.empty(),"None"!=this.docSelection.type){var e;if(this.anchorNode)e=H(this.anchorNode);else if(this.docSelection.type==I){var t=this.docSelection.createRange();t.length&&(e=H(t.item(0)))}if(e){var n=j(e).createTextRange();n.select(),this.docSelection.empty()}}}catch(e){}c(this)},re.addRange=function(t){this.docSelection.type==I?v(this,t):(e.WrappedTextRange.rangeToTextRange(t).select(),this._ranges[0]=t,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,s(this,t,!1))},re.setRanges=function(e){this.removeAllRanges();var t=e.length;t>1?C(this,e):t&&this.addRange(e[0])}}re.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new P("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(V)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=j(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==I?p(t):h(n)?g(t,n):c(t)};else if(T(z,"getRangeAt")&&typeof z.rangeCount==x)oe=function(t){if(Z&&L&&t.docSelection.type==I)p(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,r=t.rangeCount;n<r;++n)t._ranges[n]=new e.WrappedRange(t.nativeSelection.getRangeAt(n));s(t,t._ranges[t.rangeCount-1],se(t.nativeSelection)),t.isCollapsed=E(t)}else c(t)};else{if(!K||typeof z.isCollapsed!=_||typeof q.collapsed!=_||!B.implementsDomRange)return t.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;oe=function(e){var t,n=e.nativeSelection;n.anchorNode?(t=ee(n,0),e._ranges=[t],e.rangeCount=1,u(e),e.isCollapsed=E(e)):c(e)}}re.refresh=function(e){var t=e?this._ranges.slice(0):null,n=this.anchorNode,r=this.anchorOffset;if(oe(this),e){var i=t.length;if(i!=this._ranges.length)return!0;if(this.anchorNode!=n||this.anchorOffset!=r)return!0;for(;i--;)if(!F(t[i],this._ranges[i]))return!0;return!1}};var ae=function(e,t){var n=e.getAllRanges();e.removeAllRanges();for(var r=0,i=n.length;r<i;++r)F(t,n[r])||e.addRange(n[r]);e.rangeCount||c(e)};Z&&L?re.removeRange=function(e){if(this.docSelection.type==I){for(var t,n=this.docSelection.createRange(),r=d(e),i=H(n.item(0)),o=j(i).createControlRange(),a=!1,s=0,u=n.length;s<u;++s)t=n.item(s),t!==r||a?o.add(n.item(s)):a=!0;o.select(),p(this)}else ae(this,e)}:re.removeRange=function(e){ae(this,e)};var se;!V&&K&&B.implementsDomRange?(se=a,re.isBackward=function(){return se(this)}):se=re.isBackward=function(){return!1},re.isBackwards=re.isBackward,re.toString=function(){for(var e=[],t=0,n=this.rangeCount;t<n;++t)e[t]=""+this._ranges[t];return e.join("")},re.collapse=function(t,n){S(this,t);var r=e.createRange(t);r.collapseToPoint(t,n),this.setSingleRange(r),this.isCollapsed=!0},re.collapseToStart=function(){if(!this.rangeCount)throw new P("INVALID_STATE_ERR");var e=this._ranges[0];this.collapse(e.startContainer,e.startOffset)},re.collapseToEnd=function(){if(!this.rangeCount)throw new P("INVALID_STATE_ERR");var e=this._ranges[this.rangeCount-1];this.collapse(e.endContainer,e.endOffset)},re.selectAllChildren=function(t){S(this,t);var n=e.createRange(t);n.selectNodeContents(t),this.setSingleRange(n)},re.deleteFromDocument=function(){if(Z&&L&&this.docSelection.type==I){for(var e,t=this.docSelection.createRange();t.length;)e=t.item(0),t.remove(e),O.removeNode(e);this.refresh()}else if(this.rangeCount){var n=this.getAllRanges();if(n.length){this.removeAllRanges();for(var r=0,i=n.length;r<i;++r)n[r].deleteContents();this.addRange(n[i-1])}}},re.eachRange=function(e,t){for(var n=0,r=this._ranges.length;n<r;++n)if(e(this.getRangeAt(n)))return t},re.getAllRanges=function(){var e=[];return this.eachRange(function(t){e.push(t)}),e},re.setSingleRange=function(e,t){this.removeAllRanges(),this.addRange(e,t)},re.callMethodOnEachRange=function(e,t){var n=[];return this.eachRange(function(r){n.push(r[e].apply(r,t||[]))}),n},re.setStart=w(!0),re.setEnd=w(!1),e.rangePrototype.select=function(e){ne(this.getDocument()).setSingleRange(this,e)},re.changeEachRange=function(e){var t=[],n=this.isBackward();this.eachRange(function(n){e(n),t.push(n)}),this.removeAllRanges(),n&&1==t.length?this.addRange(t[0],"backward"):this.setRanges(t)},re.containsNode=function(e,t){return this.eachRange(function(n){return n.containsNode(e,t)},!0)||!1},re.getBookmark=function(e){return{backward:this.isBackward(),rangeBookmarks:this.callMethodOnEachRange("getBookmark",[e])}},re.moveToBookmark=function(t){for(var n,r,i=[],o=0;n=t.rangeBookmarks[o++];)r=e.createRange(this.win),r.moveToBookmark(n),i.push(r);t.backward?this.setSingleRange(i[0],"backward"):this.setRanges(i)},re.saveRanges=function(){return{backward:this.isBackward(),ranges:this.callMethodOnEachRange("cloneRange")}},re.restoreRanges=function(e){this.removeAllRanges();for(var t,n=0;t=e.ranges[n];++n)this.addRange(t,e.backward&&0==n)},re.toHtml=function(){var e=[];return this.eachRange(function(t){e.push(A.toHtml(t))}),e.join("")},B.implementsTextRange&&(re.getNativeTextRange=function(){var n;if(n=this.docSelection){var r=n.createRange();if(h(r))return r;throw t.createError("getNativeTextRange: selection is a control selection")}if(this.rangeCount>0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),re.getName=function(){return"WrappedSelection"},re.inspect=function(){return R(this)},re.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=R,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=re,e.addShimListener(function(e){"undefined"==typeof e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var j=!1,F=function(e){j||(j=!0,!P.initialized&&P.config.autoInitialize&&l())};return A&&("complete"==document.readyState?F():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",F,!1),B(window,"load",F))),P},this)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t="."+A.editableClass,n=(0,E.default)(e).closest(t);return n[0]}function a(e){for(var t=0;null!==(e=e.previousSibling);)t++;return t}function s(e){var t=this;return(0,R.default)(e.childNodes).every(function(e){return!(e.nodeType===k.textNode&&!t.isVoidTextNode(e))&&e.nodeType!==k.elementNode})}function u(e){return e.nodeType===k.textNode&&!e.nodeValue}function c(e){return e.nodeType===k.textNode&&0===this.lastOffsetWithContent(e)}function f(e){return e.nodeType===k.elementNode&&"BR"===e.tagName}function l(e){var t=this;if(e.nodeType===k.textNode)return x.trimRight(e.nodeValue).length;var n=0;return(0,R.default)(e.childNodes).reverse().every(function(e,r,i){return!(!t.isWhitespaceOnly(e)&&!t.isLinebreak(e))||(n=i.length-r,!1)}),n}function d(e,t,n){if(t===e)return this.isStartOffset(t,n);if(this.isStartOffset(t,n)){var r=this.getNodeIndex(t);return this.isBeginningOfHost(e,t.parentNode,r)}return!1}function h(e,t,n){if(t===e)return this.isEndOffset(t,n);if(this.isEndOffset(t,n)){var r=this.getNodeIndex(t)+1;return this.isEndOfHost(e,t.parentNode,r)}return!1}function g(e,t){return e.nodeType===k.textNode?0===t:0===e.childNodes.length||e.childNodes[t]===e.firstChild}function p(e,t){return e.nodeType===k.textNode?t===e.length:0===e.childNodes.length||t>0&&e.childNodes[t-1]===e.lastChild}function v(e,t,n){if(t===e)return this.isTextEndOffset(t,n);if(this.isTextEndOffset(t,n)){var r=this.getNodeIndex(t)+1;return this.isTextEndOfHost(e,t.parentNode,r)}return!1}function m(e,t){if(e.nodeType===k.textNode){var n=x.trimRight(e.nodeValue);return t>=n.length}return 0===e.childNodes.length||t>=this.lastOffsetWithContent(e)}function y(e,t){var n,r,i;if(e.nodeType!==t.nodeType)return!1;if(e.nodeName!==t.nodeName)return!1;for(n=0,r=e.attributes.length;n<r;n++)if(i=e.attributes[n],t.getAttribute(i.name)!==i.value)return!1;return!0}function b(e){return e.lastChild?this.latestChild(e.lastChild):e}function C(e){return e&&e.nodeType===k.documentFragmentNode&&0===e.childNodes.length}function S(e,t){var n=t.currentStyle||e.getComputedStyle(t,""),r=n.display;switch(r){case"inline":case"inline-block":return!0;default:return!1}}Object.defineProperty(t,"__esModule",{value:!0});var w=n(17),R=i(w);t.getHost=o,t.getNodeIndex=a,t.isVoid=s,t.isVoidTextNode=u,t.isWhitespaceOnly=c,t.isLinebreak=f,t.lastOffsetWithContent=l,t.isBeginningOfHost=d,t.isEndOfHost=h,t.isStartOffset=g,t.isEndOffset=p,t.isTextEndOfHost=v,t.isTextEndOffset=m,t.isSameNode=y,t.latestChild=b,t.isDocumentFragmentWithoutChildren=C,t.isInlineElement=S;var N=n(3),E=i(N),_=n(25),x=r(_),O=n(6),k=r(O),T=n(7),A=r(T)},function(e,t,n){e.exports={default:n(85),__esModule:!0}},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(9),i=n(23);e.exports=n(11)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(3),f=i(c),l=n(15),d=i(l),h=n(10),g=r(h),p=n(16),v=r(p),m=n(25),y=r(m),b=n(6),C=r(b),S=n(28),w=r(S),R=n(49),N=r(R),E=function(){function e(t,n){(0,a.default)(this,e),this.setHost(t),this.range=n,this.isCursor=!0}return(0,u.default)(e,[{key:"isAtEnd",value:function(){return v.isEndOfHost(this.host,this.range.endContainer,this.range.endOffset)}},{key:"isAtTextEnd",value:function(){return v.isTextEndOfHost(this.host,this.range.endContainer,this.range.endOffset)}},{key:"isAtBeginning",value:function(){return v.isBeginningOfHost(this.host,this.range.startContainer,this.range.startOffset)}},{key:"insertBefore",
  value:function(e){if(y.isString(e)&&(e=g.createFragmentFromString(e)),!v.isDocumentFragmentWithoutChildren(e)){e=this.adoptElement(e);var t=e;if(e.nodeType===C.documentFragmentNode){var n=e.childNodes.length-1;t=e.childNodes[n]}this.range.insertNode(e),this.range.setStartAfter(t),this.range.setEndAfter(t)}}},{key:"insertAfter",value:function(e){y.isString(e)&&(e=g.createFragmentFromString(e)),v.isDocumentFragmentWithoutChildren(e)||(e=this.adoptElement(e),this.range.insertNode(e))}},{key:"setSelection",value:function(){this.setVisibleSelection()}},{key:"setVisibleSelection",value:function(){this.win.document.activeElement!==this.host&&(0,f.default)(this.host).focus(),d.default.getSelection(this.win).setSingleRange(this.range)}},{key:"before",value:function(){var e=this.range.cloneRange();return e.setStartBefore(this.host),g.cloneRangeContents(e)}},{key:"beforeHtml",value:function(){return g.getInnerHtmlOfFragment(this.before())}},{key:"after",value:function(){var e=this.range.cloneRange();return e.setEndAfter(this.host),g.cloneRangeContents(e)}},{key:"afterHtml",value:function(){return g.getInnerHtmlOfFragment(this.after())}},{key:"getCoordinates",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"absolute",t=this.range.nativeRange.getBoundingClientRect();if("fixed"===e)return t;var n=this.win,r=void 0!==n.pageXOffset?n.pageXOffset:(n.document.documentElement||n.document.body.parentNode||n.document.body).scrollLeft,i=void 0!==n.pageYOffset?n.pageYOffset:(n.document.documentElement||n.document.body.parentNode||n.document.body).scrollTop;return{top:t.top+i,bottom:t.bottom+i,left:t.left+r,right:t.right+r,height:t.height,width:t.width}}},{key:"moveBefore",value:function(t){if(this.updateHost(t),this.range.setStartBefore(t),this.range.setEndBefore(t),this.isSelection)return new e(this.host,this.range)}},{key:"moveAfter",value:function(t){if(this.updateHost(t),this.range.setStartAfter(t),this.range.setEndAfter(t),this.isSelection)return new e(this.host,this.range)}},{key:"moveAtBeginning",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.host;if(this.updateHost(t),this.range.selectNodeContents(t),this.range.collapse(!0),this.isSelection)return new e(this.host,this.range)}},{key:"moveAtEnd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.host;if(this.updateHost(t),this.range.selectNodeContents(t),this.range.collapse(!1),this.isSelection)return new e(this.host,this.range)}},{key:"moveAtTextEnd",value:function(e){return this.moveAtEnd(v.latestChild(e))}},{key:"setHost",value:function(e){e.jquery&&(e=e[0]),this.host=e,this.win=void 0===e||null===e?window:e.ownerDocument.defaultView}},{key:"updateHost",value:function(e){var t=v.getHost(e);t||w("Can not set cursor outside of an editable block"),this.setHost(t)}},{key:"retainVisibleSelection",value:function(e){this.save(),e(),this.restore(),this.setVisibleSelection()}},{key:"save",value:function(){this.savedRangeInfo=N.save(this.range),this.savedRangeInfo.host=this.host}},{key:"restore",value:function(){this.savedRangeInfo||w("Could not restore selection"),this.host=this.savedRangeInfo.host,this.range=N.restore(this.host,this.savedRangeInfo),this.savedRangeInfo=void 0}},{key:"equals",value:function(e){return!!e&&(!!e.host&&(!!e.host.isEqualNode(this.host)&&(!!e.range&&!!e.range.equals(this.range))))}},{key:"createElement",value:function(e){return this.win.document.createElement(e)}},{key:"createTextNode",value:function(e){return this.win.document.createTextNode(e)}},{key:"adoptElement",value:function(e){return g.adoptElement(e,this.win.document)}},{key:"triggerChange",value:function(){(0,f.default)(this.host).trigger("formatEditable")}}]),e}();t.default=E},function(e,t){"use strict";function n(e){return e.replace(/\s+$/,"")}function r(e){return e.replace(/^\s+/,"")}function i(e){return e.replace(/^\s+|\s+$/g,"")}function o(e){return"[object String]"===c.call(e)}function a(e,t){t||(t="g");var n=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");return new RegExp(n,t)}function s(e,t){return e.replace(t?/[&<>'"]/g:/[&<>]/g,function(e){return f[e]})}function u(e){var t=document.createElement("div");return t.appendChild(document.createTextNode(e)),t.innerHTML}Object.defineProperty(t,"__esModule",{value:!0}),t.trimRight=n,t.trimLeft=r,t.trim=i,t.isString=o,t.regexp=a,t.escapeHtml=s,t.browserEscapeHtml=u;var c=Object.prototype.toString,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}},function(e,t,n){var r=n(59),i=n(33);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){if(u.default.logErrors!==!1){var t=1===arguments.length?arguments[0]:(0,a.default)(arguments);if(e.console)return"function"==typeof console.error?console.error(t):void console.log(t)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o);t.default=i;var s=n(7),u=r(s)}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(82),o=r(i),a=n(81),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(92);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t,n){var r=n(18),i=n(108),o=n(33),a=n(38)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(52)("iframe"),r=o.length,i="<",a=">";for(t.style.display="none",n(98).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;r--;)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(9).f,i=n(13),o=n(5)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(39)("keys"),i=n(27);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(8),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(32);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),i=n(4),o=n(34),a=n(44),s=n(9).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(5)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t.normalize,r=t.shouldSpellcheck;s(e),e.setAttribute("contenteditable",!0),e.setAttribute("spellcheck",Boolean(r)),(0,d.default)(e).removeClass(g.editableDisabledClass).addClass(g.editableClass),n&&v.tidyHtml(e)}function a(e){e.removeAttribute("contenteditable"),e.removeAttribute("spellcheck"),c(e,void 0),(0,d.default)(e).removeClass(g.editableClass).addClass(g.editableDisabledClass)}function s(e){e.hasAttribute("data-editable")||(e.setAttribute("data-editable","id-"+m),m+=1)}function u(e){if(e.hasAttribute("data-editable")){var t=e.getAttribute("data-editable");return y[t]}}function c(e,t){if(e.hasAttribute("data-editable")){var n=e.getAttribute("data-editable");y[n]=t}}function f(e){return function(t){var n=t[e];return n&&n.getAttribute("contenteditable")?n:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.previous=t.next=void 0,t.init=o,t.disable=a,t.setBlockId=s,t.getState=u,t.setState=c;var l=n(3),d=i(l),h=n(7),g=r(h),p=n(10),v=r(p),m=1,y={};t.next=f("nextElementSibling"),t.previous=f("previousElementSibling")},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.pastedHtmlRules;_=t.allowedElements||{},x=t.requiredAttributes||{},O=t.transformElements||{},k={},t.blockLevelElements.forEach(function(e){k[e]=!0}),T={},t.splitIntoBlocks.forEach(function(e){T[e]=!0})}function a(e,t,n){var r=e.ownerDocument;e.setAttribute(S.pastingAttribute,!0),t.isSelection&&(t=t.deleteContent()),t.save();var i=s(r);i.focus(),setTimeout(function(){var r=u(i);(0,b.default)(i).remove(),e.removeAttribute(S.pastingAttribute),t.restore(),n(r,t)},0)}function s(e){var t=(0,b.default)("<div>").attr("contenteditable",!0).css({position:"fixed",right:"5px",top:"50%",width:"1px",height:"1px",overflow:"hidden",outline:"none"});return(0,b.default)(e.body).append(t),t.get(0)}function u(e){return c(e).split(M).map(function(e){return R.trim(p(e))}).filter(function(e){return!A.test(e)})}function c(e){return(0,m.default)(e.childNodes).reduce(function(e,t){if(t.nodeType===E.elementNode){var n=c(t);return e+f(t,n)}return t.nodeType===E.textNode?e+R.escapeHtml(t.nodeValue):e},"")}function f(e,t){var n=e.nodeName.toLowerCase();if(n=d(n),g(n,e)){var r=l(n,e);return"br"===n?"<"+(n+r)+">":A.test(t)?t:"<"+(n+r)+">"+t+"</"+n+">"}return T[n]?M+t+M:k[n]?t+" ":t}function l(e,t){return(0,m.default)(t.attributes).reduce(function(t,n){var r=n.name,i=n.value;return _[e][r]&&i?" "+r+'="'+i+'"':t},"")}function d(e){return O[e]||e}function h(e,t){var n=x[e];return!n||!n.some(function(e){return!t.getAttribute(e)})}function g(e,t){return _[e]&&h(e,t)}function p(e){return e.replace(/(.)\u00A0/g,function(e,t){return t+(/[\u0020]/.test(t)?" ":" ")})}Object.defineProperty(t,"__esModule",{value:!0});var v=n(17),m=i(v);t.updateConfig=o,t.paste=a,t.injectPasteholder=s,t.parseContent=u,t.filterHtmlElements=c,t.conditionalNodeWrap=f,t.filterAttributes=l,t.transformNodeName=d,t.hasRequiredAttributes=h,t.shouldKeepNode=g,t.cleanWhitespace=p;var y=n(3),b=i(y),C=n(7),S=r(C),w=n(25),R=r(w),N=n(6),E=r(N),_=void 0,x=void 0,O=void 0,k=void 0,T=void 0,A=/^\s*$/,M="<!-- BLOCK -->";o(S)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){c.default.extend(e,o(t))}function o(e){function t(e,t){r[e]=r[e]||[],r[e].unshift(t)}function n(e,t){var n=r[e];if(n){var i=n.indexOf(t);i<0||n.splice(i,1)}}var r={};return{on:function(e,n){if(2===arguments.length)t(e,n);else if(1===arguments.length)for(var r in e)t(r,e[r]);return this},off:function(e,t){2===arguments.length?n(e,t):1===arguments.length?r[e]=[]:r={}},notify:function(t,n){var i=(0,s.default)(arguments);e?(n=t,t=e,i.splice(0,1)):i.splice(0,2);var o=r[n];o&&o.every(function(e){return e.apply(t,i)!==!1})}}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),s=r(a);t.default=i;var u=n(3),c=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.contenteditableSpanBug=t.selectionchange=t.contenteditable=void 0;var i=n(51),o=r(i);t.contenteditable="undefined"!=typeof document.documentElement.contentEditable,t.selectionchange=!(o.default.gecko||o.default.opera),t.contenteditableSpanBug=!!o.default.webkit},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=e.commonAncestorContainer;null!==n.ownerDocument&&void 0!==n.ownerDocument||h("Cannot save range: range is emtpy");var r=e.cloneRange();r.collapse(t);var i=n.ownerDocument.defaultView.document,o=i.createElement("span");return o.id="editable-range-boundary-"+ ++v,o.setAttribute("data-editable","remove"),o.style.lineHeight="0",o.style.display="none",o.appendChild(i.createTextNode(m)),r.insertNode(o),o}function a(e,t,n,r){var i=c(e,n);return i?(t[r?"setStartBefore":"setEndBefore"](i),void i.parentNode.removeChild(i)):console.log("Marker element has been removed. Cannot restore selection.")}function s(e){var t=void 0,n=void 0,r=void 0;return e.collapsed?(r=o(e,!1),t={markerId:r.id,collapsed:!0}):(r=o(e,!1),n=o(e,!0),t={startMarkerId:n.id,endMarkerId:r.id,collapsed:!1}),e.collapsed?e.collapseBefore(r):(e.setEndBefore(r),e.setStartAfter(n)),t}function u(e,t){if(!t.restored){var n=l.default.createRange();if(t.collapsed){var r=c(e,t.markerId);if(r){r.style.display="inline";var i=r.previousSibling;i&&i.nodeType===p.textNode?(r.parentNode.removeChild(r),n.collapseToPoint(i,i.length)):(n.collapseBefore(r),r.parentNode.removeChild(r))}else console.log("Marker element has been removed. Cannot restore selection.")}else this.setRangeBoundary(e,n,t.startMarkerId,!0),this.setRangeBoundary(e,n,t.endMarkerId,!1);return n.normalizeBoundaries(),n}}function c(e,t){return e.querySelector("#"+t)}Object.defineProperty(t,"__esModule",{value:!0}),t.insertRangeBoundaryMarker=o,t.setRangeBoundary=a,t.save=s,t.restore=u;var f=n(15),l=i(f),d=n(28),h=r(d),g=n(6),p=r(g),v=0,m="\ufeff"},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(79),a=i(o),s=n(1),u=i(s),c=n(2),f=i(c),l=n(84),d=i(l),h=n(83),g=i(h),p=n(24),v=i(p),m=n(10),y=r(m),b=n(16),C=r(b),S=n(7),w=r(S),R=n(3),N=function(e){function t(){(0,u.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments));return delete e.isCursor,e.isSelection=!0,e}return(0,g.default)(t,e),(0,f.default)(t,[{key:"text",value:function(){return this.range.toString()}},{key:"html",value:function(){return this.range.toHtml()}},{key:"isAllSelected",value:function(){return C.isBeginningOfHost(this.host,this.range.startContainer,this.range.startOffset)&&C.isTextEndOfHost(this.host,this.range.endContainer,this.range.endOffset)}},{key:"getRects",value:function(){return this.range.nativeRange.getClientRects()}},{key:"link",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=R(this.createElement("a"));e&&(t.href=e),n.attr(t),this.forceWrap(n[0])}},{key:"unlink",value:function(){this.removeFormatting("a")}},{key:"toggleLink",value:function(e,t){var n=this.getTagsByName("a");if(n.length>=1){var r=n[0];this.isExactSelection(r,"visible")?this.unlink():this.expandTo(r)}else this.link(e,t)}},{key:"toggle",value:function(e){e=this.adoptElement(e),this.range=y.toggleTag(this.host,this.range,e),this.setSelection()}},{key:"makeBold",value:function(){var e=this.createElement(w.boldTag);this.forceWrap(e)}},{key:"toggleBold",value:function(){var e=this.createElement(w.boldTag);this.toggle(e)}},{key:"giveEmphasis",value:function(){var e=this.createElement(w.italicTag);this.forceWrap(e)}},{key:"toggleEmphasis",value:function(){var e=this.createElement(w.italicTag);this.toggle(e)}},{key:"insertCharacter",value:function(e){var t=this.deleteContent(),n=t.createTextNode(e);return t.insertBefore(n),t.setSelection(),t}},{key:"surround",value:function(e,t){this.range=y.surround(this.host,this.range,e,t),this.setSelection()}},{key:"removeSurround",value:function(e,t){this.range=y.deleteCharacter(this.host,this.range,e),this.range=y.deleteCharacter(this.host,this.range,t),this.setSelection()}},{key:"toggleSurround",value:function(e,t){this.containsString(e)&&this.containsString(t)?this.removeSurround(e,t):this.surround(e,t)}},{key:"removeFormatting",value:function(e){this.range=y.removeFormatting(this.host,this.range,e),this.setSelection()}},{key:"deleteContent",value:function(){return this.range.deleteContents(),new v.default(this.host,this.range)}},{key:"expandTo",value:function(e){this.range=y.expandTo(this.host,this.range,e),this.setSelection()}},{key:"collapseAtBeginning",value:function(e){return this.range.collapse(!0),this.setSelection(),new v.default(this.host,this.range)}},{key:"collapseAtEnd",value:function(e){return this.range.collapse(!1),this.setSelection(),new v.default(this.host,this.range)}},{key:"forceWrap",value:function(e){e=this.adoptElement(e),this.range=y.forceWrap(this.host,this.range,e),this.setSelection()}},{key:"getTags",value:function(e){return y.getTags(this.host,this.range,e)}},{key:"getTagsByName",value:function(e){return y.getTagsByName(this.host,this.range,e)}},{key:"isExactSelection",value:function(e,t){return y.isExactSelection(this.range,e,t)}},{key:"containsString",value:function(e){return y.containsString(this.range,e)}},{key:"deleteCharacter",value:function(e){this.range=y.deleteCharacter(this.host,this.range,e),this.setSelection()}}]),t}(v.default);t.default=N},function(e,t,n){!function(t,r){"undefined"!=typeof e&&e.exports?e.exports=r():n(126)(t,r)}("bowser",function(){function e(e){function t(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function n(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var r,i=t(/(ipod|iphone|ipad)/i).toLowerCase(),o=/like android/i.test(e),s=!o&&/android/i.test(e),u=/nexus\s*[0-6]\s*/i.test(e),c=!u&&/nexus\s*[0-9]+/i.test(e),f=/CrOS/.test(e),l=/silk/i.test(e),d=/sailfish/i.test(e),h=/tizen/i.test(e),g=/(web|hpw)os/i.test(e),p=/windows phone/i.test(e),v=(/SamsungBrowser/i.test(e),!p&&/windows/i.test(e)),m=!i&&!l&&/macintosh/i.test(e),y=!s&&!d&&!h&&!g&&/linux/i.test(e),b=t(/edge\/(\d+(\.\d+)?)/i),C=t(/version\/(\d+(\.\d+)?)/i),S=/tablet/i.test(e),w=!S&&/[^-]mobi/i.test(e),R=/xbox/i.test(e);/opera/i.test(e)?r={name:"Opera",opera:a,version:C||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr|opios/i.test(e)?r={name:"Opera",opera:a,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||C}:/SamsungBrowser/i.test(e)?r={name:"Samsung Internet for Android",samsungBrowser:a,version:C||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?r={name:"Opera Coast",coast:a,version:C||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?r={name:"Yandex Browser",yandexbrowser:a,version:C||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:"UC Browser",ucbrowser:a,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?r={name:"Maxthon",maxthon:a,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?r={name:"Epiphany",epiphany:a,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?r={name:"Puffin",puffin:a,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?r={name:"Sleipnir",sleipnir:a,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?r={name:"K-Meleon",kMeleon:a,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:p?(r={name:"Windows Phone",windowsphone:a},b?(r.msedge=a,r.version=b):(r.msie=a,r.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?r={name:"Internet Explorer",msie:a,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?r={name:"Chrome",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?r={name:"Microsoft Edge",msedge:a,version:b}:/vivaldi/i.test(e)?r={name:"Vivaldi",vivaldi:a,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||C}:d?r={name:"Sailfish",sailfish:a,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?r={name:"SeaMonkey",seamonkey:a,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:"Firefox",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(r.firefoxos=a)):l?r={name:"Amazon Silk",silk:a,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?r={name:"PhantomJS",phantom:a,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?r={name:"SlimerJS",slimer:a,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?r={name:"BlackBerry",blackberry:a,version:C||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(r={name:"WebOS",webos:a,version:C||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(r.touchpad=a)):/bada/i.test(e)?r={name:"Bada",bada:a,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:h?r={name:"Tizen",tizen:a,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||C}:/qupzilla/i.test(e)?r={name:"QupZilla",qupzilla:a,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||C}:/chromium/i.test(e)?r={name:"Chromium",chromium:a,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||C}:/chrome|crios|crmo/i.test(e)?r={name:"Chrome",chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:C}:/safari|applewebkit/i.test(e)?(r={name:"Safari",safari:a},C&&(r.version=C)):i?(r={name:"iphone"==i?"iPhone":"ipad"==i?"iPad":"iPod"},C&&(r.version=C)):r=/googlebot/i.test(e)?{name:"Googlebot",googlebot:a,version:t(/googlebot\/(\d+(\.\d+))/i)||C}:{name:t(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(r.name=r.name||"Blink",r.blink=a):(r.name=r.name||"Webkit",r.webkit=a),!r.version&&C&&(r.version=C)):!r.opera&&/gecko\//i.test(e)&&(r.name=r.name||"Gecko",r.gecko=a,r.version=r.version||t(/gecko\/(\d+(\.\d+)?)/i)),r.msedge||!s&&!r.silk?i?(r[i]=a,r.ios=a):m?r.mac=a:R?r.xbox=a:v?r.windows=a:y&&(r.linux=a):r.android=a;var N="";r.windowsphone?N=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i?(N=t(/os (\d+([_\s]\d+)*) like mac os x/i),N=N.replace(/[_\s]/g,".")):s?N=t(/android[ \/-](\d+(\.\d+)*)/i):r.webos?N=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?N=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?N=t(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(N=t(/tizen[\/\s](\d+(\.\d+)*)/i)),N&&(r.osversion=N);var E=N.split(".")[0];return S||c||"ipad"==i||s&&(3==E||E>=4&&!w)||r.silk?r.tablet=a:(w||"iphone"==i||"ipod"==i||s||u||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function t(e){return e.split(".").length}function n(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n++)r.push(t(e[n]));return r}function r(e){for(var r=Math.max(t(e[0]),t(e[1])),i=n(e,function(e){var i=r-t(e);return e+=new Array(i+1).join(".0"),n(e.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]!==i[1][r])return-1;if(0===r)return 0}}function i(t,n,i){var o=s;"string"==typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(o=e(i));var a=""+o.version;for(var u in t)if(t.hasOwnProperty(u)&&o[u])return r([a,t[u]])<0;return n}function o(e,t,n){return!i(e,t,n)}var a=!0,s=e("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(e){for(var t=0;t<e.length;++t){var n=e[t];if("string"==typeof n&&n in s)return!0}return!1},s.isUnsupportedBrowser=i,s.compareVersions=r,s.check=o,s._detect=e,s})},function(e,t,n){var r=n(21),i=n(8).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=!n(11)&&!n(20)(function(){return 7!=Object.defineProperty(n(52)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(34),i=n(12),o=n(60),a=n(19),s=n(13),u=n(22),c=n(103),f=n(37),l=n(58),d=n(5)("iterator"),h=!([].keys&&"next"in[].keys()),g="@@iterator",p="keys",v="values",m=function(){return this};e.exports=function(e,t,n,y,b,C,S){c(n,t,y);var w,R,N,E=function(e){if(!h&&e in k)return k[e];switch(e){case p:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",x=b==v,O=!1,k=e.prototype,T=k[d]||k[g]||b&&k[b],A=T||E(b),M=b?x?E("entries"):A:void 0,P="Array"==t?k.entries||T:T;if(P&&(N=l(P.call(new e)),N!==Object.prototype&&(f(N,_,!0),r||s(N,d)||a(N,d,m))),x&&T&&T.name!==v&&(O=!0,A=function(){return T.call(this)}),r&&!S||!h&&!O&&k[d]||a(k,d,A),u[t]=A,u[_]=m,b)if(w={values:x?A:E(v),keys:C?A:E(p),entries:M},S)for(R in w)R in k||o(k,R,w[R]);else i(i.P+i.F*(h||O),t,w);return w}},function(e,t,n){var r=n(36),i=n(23),o=n(14),a=n(42),s=n(13),u=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(11)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(59),i=n(33).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(13),i=n(41),o=n(38)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(13),i=n(14),o=n(94)(!1),a=n(38)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){e.exports=n(19)},function(e,t,n){var r=n(40),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(112)(!0);n(54)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.win.document;return{focus:function(e){if(c.isVoid(e)){var n=t.createElement("br");n.setAttribute("data-editable","remove"),e.appendChild(n)}},blur:function(e){l.cleanInternals(e)},selection:function(e,t){(0,h.default)(t?"Default selection behavior":"Default selection empty behavior")},cursor:function(e,t){(0,h.default)(t?"Default cursor behavior":"Default cursor empty behavior")},newline:function(e,n){if(n.insertBefore(t.createElement("br")),n.isAtEnd()){(0,h.default)("at the end");var r=t.createTextNode("​");n.insertAfter(r)}else(0,h.default)("not at the end");n.setVisibleSelection()},insert:function(e,t,n){var r=e.parentNode,i=e.cloneNode(!1);switch(i.id&&i.removeAttribute("id"),t){case"before":r.insertBefore(i,e),e.focus();break;case"after":r.insertBefore(i,e.nextSibling),i.focus()}},split:function(e,t,n,r){var i=e.cloneNode();i.appendChild(t);var o=e.parentNode;for(o.insertBefore(i,e);e.firstChild;)e.removeChild(e.firstChild);e.appendChild(n),l.tidyHtml(i),l.tidyHtml(e),e.focus()},merge:function(t,n,r){var i=void 0,o=void 0;switch(n){case"before":i=p.previous(t),o=t;break;case"after":i=t,o=p.next(t)}i&&o&&(r=i.childNodes.length>0?e.appendTo(i,o.innerHTML):e.prependTo(i,o.innerHTML),o.parentNode.removeChild(o),r.save(),l.tidyHtml(i),r.restore(),r.setVisibleSelection())},empty:function(e){(0,h.default)("Default empty behavior")},switch:function(e,t,n){switch(t){case"before":var r=p.previous(e);r&&(n.moveAtTextEnd(r),n.setVisibleSelection());break;case"after":var i=p.next(e);i&&(n.moveAtBeginning(i),n.setVisibleSelection())}},move:function(e,t,n){(0,h.default)("Default move behavior")},paste:function(t,n,r){if(r.insertBefore(n[0]),n.length<=1)return r.setVisibleSelection();var i=t.parentNode,o=t;n.forEach(function(e){var n=t.cloneNode(!1);n.id&&n.removeAttribute("id");var r=l.createFragmentFromString(e);(0,s.default)(n).append(r),i.insertBefore(n,o.nextSibling),o=n}),e.createCursorAtEnd(o).setVisibleSelection()},clipboard:function(e,t,n){(0,h.default)("Default clipboard behavior")}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(3),s=i(a),u=n(16),c=r(u),f=n(10),l=r(f),d=n(76),h=i(d),g=n(45),p=r(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=(0,a.default)(e);return{focus:function(e){t.focus(e)},blur:function(e){t.blur(e)},flow:function(e,n){t.flow(e,n)},selection:function(e,n){t.selection(e,n)},cursor:function(e,n){t.cursor(e,n)},newline:function(e,n){t.newline(e,n)},split:function(e,n,r,i){t.split(e,n,r,i)},insert:function(e,n,r){t.insert(e,n,r)},merge:function(e,n,r){t.merge(e,n,r)},empty:function(e){t.empty(e)},switch:function(e,n,r){t.switch(e,n,r)},move:function(e,n,r){t.move(e,n,r)},clipboard:function(e,n,r){t.clipboard(e,n,r)},paste:function(e,n,r){t.paste(e,n,r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(63),a=r(o)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(3),f=i(c),l=n(48),d=n(46),h=r(d),g=n(47),p=i(g),v=n(75),m=i(v),y=n(7),b=r(y),C=n(68),S=i(C),w=!1,R=function(){function e(t){(0,a.default)(this,e);var n=t.win;(0,p.default)(this,t),this.supportsInputEvent=!1,this.$document=(0,f.default)(n.document),this.config=t.config,this.editable=t,this.editableSelector=t.editableSelector,this.selectionWatcher=new m.default(this,n),this.keyboard=new S.default(this.selectionWatcher),this.setup()}return(0,u.default)(e,[{key:"setup",value:function(){this.setupElementEvents(),this.setupKeyboardEvents(),l.selectionchange?this.setupSelectionChangeEvents():this.setupSelectionChangeFallback()}},{key:"unload",value:function(){this.off(),this.$document.off(".editable")}},{key:"setupElementEvents",value:function(){var e=this,t=this.editableSelector;this.$document.on("focus.editable",t,function(t){this.getAttribute(b.pastingAttribute)||e.notify("focus",this)}).on("blur.editable",t,function(t){this.getAttribute(b.pastingAttribute)||e.notify("blur",this)}).on("copy.editable",t,function(t){var n=e.selectionWatcher.getFreshSelection();n.isSelection&&e.notify("clipboard",this,"copy",n)}).on("cut.editable",t,function(t){var n=e.selectionWatcher.getFreshSelection();n.isSelection&&(e.notify("clipboard",this,"cut",n),e.triggerChangeEvent(this))}).on("paste.editable",t,function(t){function n(t,n){t.length?(e.notify("paste",r,t,n),e.notify("change",r)):n.setVisibleSelection()}var r=this,i=e.selectionWatcher.getFreshSelection();h.paste(this,i,n)}).on("input.editable",t,function(t){w?e.notify("change",this):w=!0}).on("formatEditable.editable",t,function(t){
  e.notify("change",this)})}},{key:"triggerChangeEvent",value:function(e){w||this.notify("change",e)}},{key:"dispatchSwitchEvent",value:function(e,t,n){var r=this;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)){var i=this.selectionWatcher.getSelection();i&&!i.isSelection&&setTimeout(function(){var o=r.selectionWatcher.forceCursor();o.equals(i)&&(e.preventDefault(),e.stopPropagation(),r.notify("switch",t,n,o))},0)}}},{key:"setupKeyboardEvents",value:function(){var e=this;this.$document.on("keydown.editable",this.editableSelector,function(t){var n=!w;e.keyboard.dispatchKeyEvent(t,this,n)}),this.keyboard.on("left up",function(t){e.dispatchSwitchEvent(t,this,"before")}).on("right down",function(t){e.dispatchSwitchEvent(t,this,"after")}).on("tab shiftTab esc",function(){}).on("backspace",function(t){var n=e.selectionWatcher.getFreshRange();if(!n.isCursor)return e.triggerChangeEvent(this);var r=n.getCursor();return r.isAtBeginning()?(t.preventDefault(),t.stopPropagation(),void e.notify("merge",this,"before",r)):e.triggerChangeEvent(this)}).on("delete",function(t){var n=e.selectionWatcher.getFreshRange();if(!n.isCursor)return e.triggerChangeEvent(this);var r=n.getCursor();return r.isAtTextEnd()?(t.preventDefault(),t.stopPropagation(),void e.notify("merge",this,"after",r)):e.triggerChangeEvent(this)}).on("enter",function(t){t.preventDefault(),t.stopPropagation();var n=e.selectionWatcher.getFreshRange(),r=n.forceCursor();r.isAtTextEnd()?e.notify("insert",this,"after",r):r.isAtBeginning()?e.notify("insert",this,"before",r):e.notify("split",this,r.before(),r.after(),r)}).on("shiftEnter",function(t){t.preventDefault(),t.stopPropagation();var n=e.selectionWatcher.forceCursor();e.notify("newline",this,n)}).on("character",function(t){e.notify("change",this)})}},{key:"setupSelectionChangeEvents",value:function(){var e=this,t=!1,n=!1,r=this.$document,i=this.selectionWatcher;r.on("selectionchange.editable",function(e){n?t=!0:i.selectionChanged()}),r.on("mousedown.editable",this.editableSelector,function(o){e.config.mouseMoveSelectionChanges===!1&&(n=!0,setTimeout(f.default.proxy(i,"selectionChanged"),0)),r.on("mouseup.editableSelection",function(e){r.off(".editableSelection"),n=!1,t&&(t=!1,i.selectionChanged())})})}},{key:"setupSelectionChangeFallback",value:function(){var e=this.$document,t=this.selectionWatcher;e.on("mouseup.editableSelection",function(e){setTimeout(f.default.proxy(t,"selectionChanged"),0)}),e.on("keyup.editable",this.editableSelector,function(e){t.selectionChanged()})}}]),e}();t.default=R},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=new c.default(e),r=void 0;r=n.getNext();)r.nodeType===l.textNode&&""!==r.data?t(r.data):r.nodeType===l.elementNode&&"BR"===r.nodeName&&t(" ")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),s=i(a),u=n(69),c=i(u),f=n(6),l=r(f);t.default={extractText:function(e){var t="";return o(e,function(e){t+=e}),t},highlightMatches:function(e,t){if(t&&0!==t.length)for(var n=new c.default(e),r=0,i=0,o=t[r],a=[],s=void 0;s=n.getNext();)if(s.nodeType===l.textNode&&""!==s.data){var u=s,f=u.data,d=i+f.length;if(o.startIndex<d&&i<o.endIndex){var h=p=!1;if(i<=o.startIndex){h=!0;var g=o.startIndex}if(d>=o.endIndex)var p=!0;var v=void 0;v=h?o.startIndex-i:0;var m=void 0;m=p?o.endIndex-i-v:f.length-v;var y={element:u,text:f.substring(v,v+m),offset:v,length:m,isLastPortion:p,wordId:g};if(a.push(y),p){var b=this.wrapMatch(a,o.marker,o.title);n.replaceCurrent(b),d=i+y.length+y.offset,a=[],r+=1,r<t.length&&(o=t[r])}}i=d}else if(s.nodeType===l.elementNode&&"BR"===s.nodeName){i+=1;continue}},wrapMatch:function(e,t,n){var r=this;return e.map(function(e){return r.wrapPortion(e,t,n)}).pop()},wrapPortion:function(e,t,n){var r=s.default.createRange();r.setStart(e.element,e.offset),r.setEnd(e.element,e.offset+e.length);var i=t.cloneNode(!0);if(i.setAttribute("data-word-id",e.wordId),n&&i.setAttribute("title",n),r.surroundContents(i),i.nextSibling){var o=i.nextSibling;o.nodeType===l.textNode&&""===o.data&&o.parentNode.removeChild(o)}return i}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(29),a=i(o),s=n(1),u=i(s),c=n(2),f=i(c),l=n(3),d=i(l),h=n(6),g=r(h),p=n(10),v=r(p),m=n(66),y=i(m),b=n(71),C=i(b),S=n(72),w=i(S),R=n(73),N=i(R),E=n(70),_=i(E),x=function(){function e(t,n,r){(0,u.default)(this,e),this.editable=t,this.win=t.win,this.focusedEditableHost=void 0,this.currentlyCheckedEditableHost=void 0,this.timeout={};var i={checkOnInit:!1,checkOnFocus:!1,checkOnChange:!0,throttle:1e3,removeOnCorrection:!0,spellcheck:{marker:'<span class="highlight-whitespace"></span>',throttle:1e3,spellcheckService:function(){}},whitespace:{marker:'<span class="highlight-whitespace"></span>'}};this.config=d.default.extend(!0,i,n);var o=this.config.spellcheck.spellcheckService,a=this.createMarkerNode(this.config.spellcheck.marker),s=this.createMarkerNode(this.config.whitespace.marker);this.spellcheckService=new C.default(o),this.spellcheck=new N.default(a),this.whitespace=new w.default(s),this.setupListeners()}return(0,f.default)(e,[{key:"setupListeners",value:function(){this.config.checkOnFocus&&(this.editable.on("focus",d.default.proxy(this,"onFocus")),this.editable.on("blur",d.default.proxy(this,"onBlur"))),(this.config.checkOnChange||this.config.removeOnCorrection)&&this.editable.on("change",d.default.proxy(this,"onChange")),this.config.checkOnInit&&this.editable.on("init",d.default.proxy(this,"onInit"))}},{key:"onInit",value:function(e){this.highlight(e)}},{key:"onFocus",value:function(e){this.focusedEditableHost!==e&&(this.focusedEditableHost=e,this.editableHasChanged(e))}},{key:"onBlur",value:function(e){this.focusedEditableHost===e&&(this.focusedEditableHost=void 0)}},{key:"onChange",value:function(e){this.config.checkOnChange&&this.editableHasChanged(e,this.config.throttle),this.config.removeOnCorrection&&this.removeHighlightsAtCursor(e)}},{key:"createMarkerNode",value:function(e){var t=(0,d.default)(e)[0];return t=v.adoptElement(t,this.win.document),t.setAttribute("data-editable","ui-unwrap"),t.setAttribute("data-highlight","highlight"),t}},{key:"editableHasChanged",value:function(e,t){var n=this;this.timeout.id&&this.timeout.editableHost===e&&clearTimeout(this.timeout.id);var r=setTimeout(function(){n.highlight(e),n.timeout={}},t||0);this.timeout={id:r,editableHost:e}}},{key:"highlight",value:function(e){var t=this,n=y.default.extractText(e);this.spellcheckService.check(n,function(r,i){if(!r){n=y.default.extractText(e);var o=new _.default,a=t.spellcheck.findMatches(n,i);o.addMatches("spellcheck",a),a=t.whitespace.findMatches(n),o.addMatches("whitespace",a),t.safeHighlightMatches(e,o.matches)}})}},{key:"safeHighlightMatches",value:function(e,t){var n=this,r=this.editable.getSelection(e);r?r.retainVisibleSelection(function(){n.highlightMatches(e,t)}):this.highlightMatches(e,t)}},{key:"highlightMatches",value:function(e,t){this.removeHighlights(e),t&&t.length>0&&y.default.highlightMatches(e,t)}},{key:"removeHighlights",value:function(e){(0,d.default)(e).find("[data-highlight]").each(function(e,t){v.unwrap(t)})}},{key:"removeHighlightsAtCursor",value:function(e){var t=this.editable.getSelection(e);if(t&&t.isCursor){var n=function(){var n=t.range.startContainer;n.nodeType===g.textNode&&(n=n.parentNode);var r=void 0;do{if(n===e)return{v:void 0};if(n.hasAttribute("data-word-id")){r=n.getAttribute("data-word-id");break}}while(n=n.parentNode);r&&t.retainVisibleSelection(function(){(0,d.default)(e).find("[data-word-id="+r+"]").each(function(e,t){v.unwrap(t)})})}();if("object"===("undefined"==typeof n?"undefined":(0,a.default)(n)))return n.v}}}]),e}();t.default=x},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(48),f=n(6),l=r(f),d=n(47),h=i(d),g=n(15),p=function(){function e(t){(0,a.default)(this,e),(0,h.default)(this),this.selectionWatcher=t}return(0,u.default)(e,[{key:"dispatchKeyEvent",value:function(e,t,n){switch(e.keyCode){case this.key.left:return this.notify(t,"left",e);case this.key.right:return this.notify(t,"right",e);case this.key.up:return this.notify(t,"up",e);case this.key.down:return this.notify(t,"down",e);case this.key.tab:return e.shiftKey?this.notify(t,"shiftTab",e):this.notify(t,"tab",e);case this.key.esc:return this.notify(t,"esc",e);case this.key.backspace:return this.preventContenteditableBug(t,e),this.notify(t,"backspace",e);case this.key.delete:return this.preventContenteditableBug(t,e),this.notify(t,"delete",e);case this.key.enter:return e.shiftKey?this.notify(t,"shiftEnter",e):this.notify(t,"enter",e);case this.key.ctrl:case this.key.shift:case this.key.alt:return;case 224:case 17:case 91:case 93:return;default:if(this.preventContenteditableBug(t,e),!n)return;if(!e.ctrlKey&&!e.metaKey)return this.notify(t,"character",e)}}},{key:"preventContenteditableBug",value:function(t,n){if(c.contenteditableSpanBug&&!n.ctrlKey&&!n.metaKey){var r=this.selectionWatcher.getFreshRange();if(r.isSelection){var i=e.getNodeToRemove(r.range,t);i&&i.remove()}}}}],[{key:"getNodeToRemove",value:function(t,n){if(0===t.startOffset){var r=t.startContainer;if(r.nodeType===l.textNode&&(r=r.parentNode),r!==n){var i=g.createRange();if(i.setStartBefore(r.firstChild),i.setEndAfter(r.lastChild),!i.containsRange(t)){if(t.startContainer.nodeType===l.textNode){var o=[l.textNode,l.elementNode],a=r.firstChild;do if(o.indexOf(a.nodeType)!==-1)break;while(a=a.nextSibling);if(a!==t.startContainer)return}var s=t.cloneRange();return s.setStartBefore(r),e.getNodeToRemove(s,n)||r}}}}}]),e}();t.default=p,p.key=p.prototype.key={left:37,up:38,right:39,down:40,tab:9,esc:27,backspace:8,delete:46,enter:13,shift:16,ctrl:17,alt:18}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(6),f=r(c),l=function(){function e(t){(0,a.default)(this,e),this.current=this.next=this.root=t}return(0,u.default)(e,[{key:"getNextTextNode",value:function(){for(var e=void 0;e=this.getNext();)if(e.nodeType===f.textNode&&""!==e.data)return e}},{key:"getNext",value:function(){var e=this.current=this.next,t=this.next=void 0;if(this.current)if(t=e.firstChild,t&&"remove"!==e.getAttribute("data-editable"))this.next=t;else for(;e!==this.root&&!(this.next=e.nextSibling);)e=e.parentNode;return this.current}},{key:"replaceCurrent",value:function(e){this.current=e,this.next=void 0;for(var t=this.current;t!==this.root&&!(this.next=t.nextSibling);)t=t.parentNode}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n=void 0,r=e.length,i=t.length,a=-1,s=[],u={a1:e,i1:0,a2:t,i2:0};u.i1<r||u.i2<i;)n=o(u),n.startIndex>=a&&s.push(n),a=n.endIndex;return s}function o(e){var t=e.i1,n=e.i2,r=e.a1[t],i=e.a2[n];return r&&i&&r.startIndex<i.startIndex?(e.i1=t+1,r):r&&i?(e.i2=n+1,i):r?(e.i1=t+1,r):i?(e.i2=n+1,i):void 0}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=r(a),u=n(2),c=r(u),f=function(){function e(){(0,s.default)(this,e),this.matches=[]}return(0,c.default)(e,[{key:"addMatches",value:function(e,t){t&&t.length&&(this.matches=i(this.matches,t))}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(10),f=r(c),l=function(){function e(t){(0,a.default)(this,e),this.spellcheckService=t}return(0,u.default)(e,[{key:"check",value:function(e,t){if(!e)return t(null);var n=f.normalizeWhitespace(e);this.spellcheckService(n,function(e){e&&e.length>0?t(null,e):t(null)})}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.charCodeAt(0);return""+t.toString(16).toUpperCase()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),s=n(2),u=r(s),c={A0:"no-break space",2e3:"en quad",2001:"em quad",2002:"en space",2003:"em space",2004:"three-per-em space",2005:"four-per-em space",2006:"six-per-em space",2007:"figure space",2008:"punctuation space",2009:"thin space","200A":"hair space","202F":"narrow no-break space","205F":"medium mathematical space",3e3:"ideographic space"},f="\\u2000-\\u200A\\u202F\\u205F\\u3000",l=function(){function e(t){(0,a.default)(this,e),this.marker=t}return(0,u.default)(e,[{key:"findMatches",value:function(e){var t=this;if(e){var n="["+f+"]";n=new RegExp(n,"g");for(var r=[],i=void 0;i=n.exec(e);)r.push(i);return r.map(function(e){return t.prepareMatch(e)})}}},{key:"prepareMatch",value:function(e){var t=e.index,n=i(e[0]),r=c[n];return{startIndex:t,endIndex:t+e.length,match:e[0],title:r+" (\\u"+n+")",marker:this.marker}}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(2),s=r(a),u=n(3),c=r(u),f="\\u0041-\\u005A\\u0061-\\u007A\\u0030-\\u0039\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF\\u0100-\\u017F\\u0180-\\u024F",l=function(){function e(t){(0,o.default)(this,e),this.marker=t}return(0,s.default)(e,[{key:"findMatches",value:function(e,t){if(e)return t&&t.length>0?this.searchMatches(e,t):void 0}},{key:"searchMatches",value:function(e,t){for(var n=this,r=this.createRegex(t),i=[],o=void 0;o=r.exec(e);)i.push(o);return i.map(function(e){return n.prepareMatch(e)})}},{key:"createRegex",value:function(e){var t=this,n=c.default.map(e,function(e){return t.escapeRegEx(e)}),r="([^"+f+"]|^)"+("("+n.join("|")+")")+("(?=[^"+f+"]|$)");return new RegExp(r,"g")}},{key:"escapeRegEx",value:function(e){return String(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}},{key:"prepareMatch",value:function(e){var t=e.index+e[1].length;return{startIndex:t,endIndex:t+e[2].length,match:e[2],marker:this.marker}}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(2),s=r(a),u=n(24),c=r(u),f=n(50),l=r(f),d=function(){function e(t,n){(0,o.default)(this,e),this.host=t&&t.jquery?t[0]:t,this.range=n,this.isAnythingSelected=void 0!==n,this.isCursor=this.isAnythingSelected&&n.collapsed,this.isSelection=this.isAnythingSelected&&!this.isCursor}return(0,s.default)(e,[{key:"getCursor",value:function(){if(this.isCursor)return new c.default(this.host,this.range)}},{key:"getSelection",value:function(){if(this.isSelection)return new l.default(this.host,this.range)}},{key:"forceCursor",value:function(){return this.isSelection?this.getSelection().deleteContent():this.getCursor()}},{key:"isDifferentFrom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new e,n=this.range,r=t.range;return n&&r?!n.equals(r):!(!n&&!r)}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(2),u=i(s),c=n(15),f=i(c),l=n(16),d=r(l),h=n(74),g=i(h),p=n(24),v=i(p),m=n(50),y=i(m),b=function(){function e(t,n){(0,a.default)(this,e),this.dispatcher=t,this.win=n||window,this.rangySelection=void 0,this.currentSelection=void 0,this.currentRange=void 0}return(0,u.default)(e,[{key:"getRangeContainer",value:function(){if(this.rangySelection=f.default.getSelection(this.win),this.rangySelection.rangeCount){var e=this.rangySelection.getRangeAt(0),t=d.getHost(e.commonAncestorContainer);if(t)return new g.default(t,e)}return new g.default}},{key:"getFreshRange",value:function(){return this.getRangeContainer()}},{key:"getFreshSelection",value:function(){var e=this.getRangeContainer();return e.isCursor?e.getCursor(this.win):e.getSelection(this.win)}},{key:"getSelection",value:function(){return this.currentSelection}},{key:"forceCursor",value:function(){var e=this.getRangeContainer();return e.forceCursor()}},{key:"selectionChanged",value:function(){var e=this.getRangeContainer();if(e.isDifferentFrom(this.currentRange)){var t=this.currentSelection;this.currentRange=e,t&&(t.isCursor&&!this.currentRange.isCursor?this.dispatcher.notify("cursor",t.host):t.isSelection&&!this.currentRange.isSelection&&this.dispatcher.notify("selection",t.host)),this.currentRange.isCursor?(this.currentSelection=new v.default(this.currentRange.host,this.currentRange.range),this.dispatcher.notify("cursor",this.currentSelection.host,this.currentSelection)):this.currentRange.isSelection?(this.currentSelection=new y.default(this.currentRange.host,this.currentRange.range),this.dispatcher.notify("selection",this.currentSelection.host,this.currentSelection)):this.currentSelection=void 0}}}]),e}();t.default=b},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(){if(c.log!==!1&&e.console){var t=1===arguments.length?arguments[0]:(0,s.default)(arguments);return 1!==arguments.length&&"trace"===t[t.length-1]&&(t.pop(),console.trace&&console.trace()),console.log(t)}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),s=i(a);t.default=o;var u=n(7),c=r(u)}).call(t,function(){return this}())},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){e.exports={default:n(87),__esModule:!0}},function(e,t,n){e.exports={default:n(88),__esModule:!0}},function(e,t,n){e.exports={default:n(89),__esModule:!0}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){e.exports={default:n(91),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(80),o=r(i),a=n(77),s=r(a),u=n(29),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(29),o=r(i);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){n(62),n(115),e.exports=n(4).Array.from},function(e,t,n){n(117);var r=n(4).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(118);var r=n(4).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(119),e.exports=n(4).Object.getPrototypeOf},function(e,t,n){n(120),e.exports=n(4).Object.setPrototypeOf},function(e,t,n){n(122),n(121),n(123),n(124),e.exports=n(4).Symbol},function(e,t,n){n(62),n(125),e.exports=n(44).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(14),i=n(61),o=n(113);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),f=o(a,c);if(e&&n!=n){for(;c>f;)if(s=u[f++],s!=s)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(30),i=n(5)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var r=n(9),i=n(23);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(26),i=n(57),o=n(36);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){e.exports=n(8).document&&document.documentElement},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(22),i=n(5)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(18);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(35),i=n(23),o=n(37),a={};n(19)(a,n(5)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(26),i=n(14);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var r=n(27)("meta"),i=n(21),o=n(13),a=n(9).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(20)(function(){return u(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},l=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[r].w},h=function(e){return c&&g.NEED&&u(e)&&!o(e,r)&&f(e),e},g=e.exports={KEY:r,NEED:!1,fastKey:l,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(9),i=n(18),o=n(26);e.exports=n(11)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(14),i=n(56).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(12),i=n(4),o=n(20);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(21),i=n(18),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(31)(Function.call,n(55).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(40),i=n(32);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var r=n(40),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(95),i=n(5)("iterator"),o=n(22);e.exports=n(4).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(31),i=n(12),o=n(41),a=n(102),s=n(100),u=n(61),c=n(96),f=n(114);i(i.S+i.F*!n(104)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,l,d=o(e),h="function"==typeof this?this:Array,g=arguments.length,p=g>1?arguments[1]:void 0,v=void 0!==p,m=0,y=f(d);if(v&&(p=r(p,g>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=u(d.length),n=new h(t);t>m;m++)c(n,m,v?p(d[m],m):d[m]);else for(l=y.call(d),n=new h;!(i=l.next()).done;m++)c(n,m,v?a(l,p,[i.value,m],!0):i.value);return n.length=m,n}})},function(e,t,n){"use strict";var r=n(93),i=n(105),o=n(22),a=n(14);e.exports=n(54)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(12);r(r.S,"Object",{create:n(35)})},function(e,t,n){var r=n(12);r(r.S+r.F*!n(11),"Object",{defineProperty:n(9).f})},function(e,t,n){var r=n(41),i=n(58);n(110)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(12);r(r.S,"Object",{setPrototypeOf:n(111).set})},function(e,t){},function(e,t,n){"use strict";var r=n(8),i=n(13),o=n(11),a=n(12),s=n(60),u=n(107).KEY,c=n(20),f=n(39),l=n(37),d=n(27),h=n(5),g=n(44),p=n(43),v=n(106),m=n(97),y=n(101),b=n(18),C=n(14),S=n(42),w=n(23),R=n(35),N=n(109),E=n(55),_=n(9),x=n(26),O=E.f,k=_.f,T=N.f,A=r.Symbol,M=r.JSON,P=M&&M.stringify,D="prototype",B=h("_hidden"),I=h("toPrimitive"),H={}.propertyIsEnumerable,j=f("symbol-registry"),F=f("symbols"),W=f("op-symbols"),L=Object[D],V="function"==typeof A,z=r.QObject,q=!z||!z[D]||!z[D].findChild,U=o&&c(function(){return 7!=R(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=O(L,t);r&&delete L[t],k(e,t,n),r&&e!==L&&k(L,t,r)}:k,K=function(e){var t=F[e]=R(A[D]);return t._k=e,t},$=V&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===L&&Y(W,t,n),b(e),t=S(t,!0),b(n),i(F,t)?(n.enumerable?(i(e,B)&&e[B][t]&&(e[B][t]=!1),n=R(n,{enumerable:w(0,!1)})):(i(e,B)||k(e,B,w(1,{})),e[B][t]=!0),U(e,t,n)):k(e,t,n)},G=function(e,t){b(e);for(var n,r=m(t=C(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?R(e):G(R(e),t)},J=function(e){var t=H.call(this,e=S(e,!0));return!(this===L&&i(F,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,B)&&this[B][e])||t)},X=function(e,t){if(e=C(e),t=S(t,!0),e!==L||!i(F,t)||i(W,t)){var n=O(e,t);return!n||!i(F,t)||i(e,B)&&e[B][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=T(C(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==B||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===L,r=T(n?W:C(e)),o=[],a=0;r.length>a;)!i(F,t=r[a++])||n&&!i(L,t)||o.push(F[t]);return o};V||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===L&&t.call(W,n),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),U(this,e,w(1,n))};return o&&q&&U(L,e,{configurable:!0,set:t}),K(e)},s(A[D],"toString",function(){return this._k}),E.f=X,_.f=Y,n(56).f=N.f=Z,n(36).f=J,n(57).f=ee,o&&!n(34)&&s(L,"propertyIsEnumerable",J,!0),g.f=function(e){return K(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var te=x(h.store),ne=0;te.length>ne;)p(te[ne++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=A(e)},keyFor:function(e){if($(e))return v(j,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:Q,defineProperty:Y,defineProperties:G,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),M&&a(a.S+a.F*(!V||c(function(){var e=A();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!$(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,P.apply(M,r)}}}),A[D][I]||n(19)(A[D],I,A[D].valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(e,t,n){n(43)("asyncIterator")},function(e,t,n){n(43)("observable")},function(e,t,n){n(116);for(var r=n(8),i=n(19),o=n(22),a=n(5)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],f=r[c],l=f&&f.prototype;l&&!l[a]&&i(l,a,c),o[c]=o.Array}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}}]);
  