diff --git a/build/1.acd49c9b.js b/build/1.acd49c9b.js new file mode 100644 index 0000000..b2a28fa --- /dev/null +++ b/build/1.acd49c9b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{496:function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\//.test(e),d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),g=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),C=d&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(d=!1,l=!0);var w=y&&(c||d&&(null==C||C<12.11)),S=n||a&&s>=9;function classTest(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,L=function(e,t){var n=e.className,r=classTest(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function removeChildren(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function removeChildrenAndAdd(e,t){return removeChildren(e).appendChild(t)}function elt(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}g?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(M=function(e){try{e.select()}catch(e){}});var T=function(){this.id=null,this.f=null,this.time=0,this.handler=bind(this.onTimeout,this)};function indexOf(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var H=[""];function spaceStr(e){for(;H.length<=e;)H.push(lst(H)+" ");return H[e]}function lst(e){return e[e.length-1]}function map(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||E.test(e))}function isWordChar(e,t){return t?!!(t.source.indexOf("\\w")>-1&&isWordCharBasic(e))||t.test(e):isWordCharBasic(e)}function isEmpty(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var W=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function isExtendingChar(e){return e.charCodeAt(0)>=768&&W.test(e)}function skipExtendingChars(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function iterateBidiSections(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var I=null;function getBidiPartAt(e,t,n){var r;I=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:I=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:I=o)}return null!=r?r:I}var F=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function BidiSpan(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,l){var c,u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!n.test(s))return!1;for(var d=s.length,p=[],h=0;h-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function signal(e,t){var n=getHandlers(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function eventMixin(e){e.prototype.on=function(e,t){z(this,e,t)},e.prototype.off=function(e,t){off(this,e,t)}}function e_preventDefault(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function e_stopPropagation(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function e_defaultPrevented(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function e_stop(e){e_preventDefault(e),e_stopPropagation(e)}function e_target(e){return e.target||e.srcElement}function e_button(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var R,V,U=function(){if(a&&s<9)return!1;var e=elt("div");return"draggable"in e||"dragDrop"in e}();function zeroWidthElement(e){if(null==R){var t=elt("span","​");removeChildrenAndAdd(e,elt("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(R=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=R?elt("span","​"):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function hasBadBidiRects(e){if(null!=V)return V;var t=removeChildrenAndAdd(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return removeChildren(e),!(!n||n.left==n.right)&&(V=r.right-n.right<3)}var j,G=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},_=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},K="oncopy"in(j=elt("div"))||(j.setAttribute("oncopy","return;"),"function"==typeof j.oncopy),q=null;function hasBadZoomedRects(e){if(null!=q)return q;var t=removeChildrenAndAdd(e,elt("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return q=Math.abs(n.left-r.left)>1}var X={},$={};function defineMode(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),X[e]=t}function resolveMode(e){if("string"==typeof e&&$.hasOwnProperty(e))e=$[e];else if(e&&"string"==typeof e.name&&$.hasOwnProperty(e.name)){var t=$[e.name];"string"==typeof t&&(t={name:t}),(e=createObj(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return resolveMode("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return resolveMode("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function getMode(e,t){t=resolveMode(t);var n=X[t.name];if(!n)return getMode(e,"text/plain");var r=n(e,t);if(Y.hasOwnProperty(t.name)){var o=Y[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Y={};function extendMode(e,t){var n=Y.hasOwnProperty(e)?Y[e]:Y[e]={};copyObj(t,n)}function copyState(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function innerMode(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function startState(e,t,n){return!e.startState||e.startState(t,n)}var Z=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function getLine(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?Pos(n,getLine(e,n).text.length):clipToLen(t,getLine(e,t.line).text.length)}function clipToLen(e,t){var n=e.ch;return null==n||n>t?Pos(e.line,t):n<0?Pos(e.line,0):e}function clipPosArray(e,t){for(var n=[],r=0;r=this.string.length},Z.prototype.sol=function(){return this.pos==this.lineStart},Z.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Z.prototype.next=function(){if(this.post},Z.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Z.prototype.skipToEnd=function(){this.pos=this.string.length},Z.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Z.prototype.backUp=function(e){this.pos-=e},Z.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);if(o(i)==o(e))return!1!==t&&(this.pos+=e.length),!0},Z.prototype.current=function(){return this.string.slice(this.start,this.pos)},Z.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Z.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Z.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var J=function(e,t){this.state=e,this.lookAhead=t},Q=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function highlightLine(e,t,n,r){var o=[e.state.modeGen],i={};runMode(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,c=0;n.state=!0,runMode(e,t.text,s.mode,n,function(e,t){for(var n=l;ce&&o.splice(l,1,e,o[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&©State(e.doc.mode,r.state),i=highlightLine(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function getContextBefore(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new Q(r,!0,t);var i=findStartLine(e,t,n),a=i>r.first&&getLine(r,i-1).stateAfter,s=a?Q.fromSaved(r,a,i):new Q(r,startState(r.mode),i);return r.iter(i,t,function(n){processLine(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}Q.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Q.fromSaved=function(e,t,n){return t instanceof J?new Q(e,copyState(e.mode,t.state),n,t.lookAhead):new Q(e,copyState(e.mode,t),n)},Q.prototype.save=function(e){var t=!1!==e?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new J(t,this.maxLookAhead):t};var ee=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function takeToken(e,t,n,r){var o,i=e.doc,a=i.mode;t=clipPos(i,t);var s,l=getLine(i,t.line),c=getContextBefore(e,t.line,n),u=new Z(l.text,e.options.tabSize,c);for(r&&(s=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&processLine(e,t,r,d.pos),d.pos=t.length,l=null):l=extractLineClasses(readToken(n,d,r.state,p),i),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;ca;--s){if(s<=i.first)return i.first;var l=getLine(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof J?c.lookAhead:0)<=i.modeFrontier))return s;var u=countColumn(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}function retreatFrontier(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=getLine(e,r).stateAfter;if(o&&(!(o instanceof J)||r+o.lookAhead=t:i.to>t);(r||(r=[])).push(new MarkedSpan(a,i.from,l?null:i.to))}}return r}function markedSpansAfter(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var x=0;x0)){var u=[l,1],d=cmp(c.from,s.from),p=cmp(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}function detachMarkedSpans(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||compareCollapsedMarkers(n,i.marker)<0)&&(n=i.marker)}return n}function conflictingCollapsedRange(e,t,n,r,o){var i=getLine(e,t),a=ne&&i.markedSpans;if(a)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?cmp(c.to,n)>=0:cmp(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?cmp(c.from,r)<=0:cmp(c.from,r)<0)))return!0}}}function visualLine(e){for(var t;t=collapsedSpanAtStart(e);)e=t.find(-1,!0).line;return e}function visualLineEnd(e){for(var t;t=collapsedSpanAtEnd(e);)e=t.find(1,!0).line;return e}function visualLineContinued(e){for(var t,n;t=collapsedSpanAtEnd(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function visualLineNo(e,t){var n=getLine(e,t),r=visualLine(n);return n==r?t:lineNo(r)}function visualLineEndNo(e,t){if(t>e.lastLine())return t;var n,r=getLine(e,t);if(!lineIsHidden(e,r))return t;for(;n=collapsedSpanAtEnd(r);)r=n.find(1,!0).line;return lineNo(r)+1}function lineIsHidden(e,t){var n=ne&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var re=function(e,t,n){this.text=e,attachMarkedSpans(this,t),this.height=n?n(this):1};function updateLine(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),detachMarkedSpans(e),attachMarkedSpans(e,n);var o=r?r(e):1;o!=e.height&&updateLineHeight(e,o)}function cleanUpLine(e){e.parent=null,detachMarkedSpans(e)}re.prototype.lineNo=function(){return lineNo(this)},eventMixin(re);var oe={},ie={};function interpretTokenStyle(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ie:oe;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function buildLineContent(e,t){var n=eltP("span",null,null,l?"padding-right: .1px":null),r={pre:eltP("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=buildToken,hasBadBidiRects(e.display.measure)&&(a=getOrder(i,e.doc.direction))&&(r.addToken=buildTokenBadBidi(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&lineNo(i);insertLineContent(i,r,getLineStyles(e,i,s)),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=joinClasses(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=joinClasses(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(zeroWidthElement(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return signal(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=joinClasses(r.pre.className,r.textClass||"")),r}function defaultSpecialCharPlaceholder(e){var t=elt("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function buildToken(e,t,n,r,o,i,l){if(t){var c,u=e.splitSpaces?splitSpaces(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var f=d.exec(t),g=f?f.index-h:t.length-h;if(g){var m=document.createTextNode(u.slice(h,h+g));a&&s<9?c.appendChild(elt("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!f)break;h+=g+1;var v=void 0;if("\t"==f[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(elt("span",spaceStr(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=c.appendChild(elt("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(elt("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||p||i||l){var x=n||"";r&&(x+=r),o&&(x+=o);var C=elt("span",[c],x,i);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&C.setAttribute(w,l[w]);return e.content.appendChild(C)}e.content.appendChild(c)}}function splitSpaces(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;oc&&d.from<=c);p++);if(d.to>=u)return e(n,r,o,i,a,s,l);e(n,r.slice(0,d.to-c),o,i,null,s,l),i=null,r=r.slice(d.to-c),c=d.to}}}function buildCollapsedSpan(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function insertLineContent(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,c,u,d,p,h=o.length,f=0,g=1,m="",v=0;;){if(v==f){l=c=u=s="",p=null,d=null,v=1/0;for(var y=[],b=void 0,x=0;xf||w.collapsed&&C.to==f&&C.from==f)){if(null!=C.to&&C.to!=f&&v>C.to&&(v=C.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&C.from==f&&(u+=" "+w.startStyle),w.endStyle&&C.to==v&&(b||(b=[])).push(w.endStyle,C.to),w.title&&((p||(p={})).title=w.title),w.attributes)for(var S in w.attributes)(p||(p={}))[S]=w.attributes[S];w.collapsed&&(!d||compareCollapsedMarkers(d.marker,w)<0)&&(d=C)}else C.from>f&&v>C.from&&(v=C.from)}if(b)for(var k=0;k=h)break;for(var M=Math.min(h,v);;){if(m){var T=f+m.length;if(!d){var O=T>M?m.slice(0,M-f):m;t.addToken(t,O,a?a+l:l,u,f+O.length==v?c:"",s,p)}if(T>=M){m=m.slice(M-f),f=M;break}f=T,u=""}m=o.slice(i,i=n[g++]),a=interpretTokenStyle(n[g++],t.cm.options)}}else for(var P=1;P2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function mapFromLineView(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function updateExternalMeasurement(e,t){var n=lineNo(t=visualLine(t)),r=e.display.externalMeasured=new LineView(e.doc,t,n);r.lineN=n;var o=r.built=buildLineContent(e,r);return r.text=o.pre,removeChildrenAndAdd(e.display.lineMeasure,o.pre),r}function measureChar(e,t,n,r){return measureCharPrepared(e,prepareMeasureForLine(e,t),n,r)}function findViewForLine(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function measureCharInner(e,t,n,r){var o,i=nodeAndOffsetInLineMap(t.map,n,r),l=i.node,c=i.start,u=i.end,d=i.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&isExtendingChar(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(d=r="right"),o=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var f=l.parentNode.getClientRects()[0];o=f?{left:f.left,right:f.left+charWidth(e.display),top:f.top,bottom:f.bottom}:ce}for(var g=o.top-t.rect.top,m=o.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!a)return get("before"==l?s-1:s,"before"==l);function getBidi(e,t,n){var r=a[t],o=1==r.level;return get(n?e-1:e,o!=n)}var c=getBidiPartAt(a,s,l),u=I,d=getBidi(s,c,"before"==l);return null!=u&&(d.other=getBidi(s,u,"before"!=l)),d}function estimateCoords(e,t){var n=0;t=clipPos(e.doc,t),e.options.lineWrapping||(n=charWidth(e.display)*t.ch);var r=getLine(e.doc,t.line),o=heightAtLine(r)+paddingTop(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function PosWithInfo(e,t,n,r,o){var i=Pos(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function coordsChar(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return PosWithInfo(r.first,0,null,-1,-1);var o=lineAtHeight(r,n),i=r.first+r.size-1;if(o>i)return PosWithInfo(r.first+r.size-1,getLine(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=getLine(r,o);;){var s=coordsCharInner(e,a,o,t,n),l=collapsedSpanAround(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=getLine(r,o=c.line)}}function wrappedLineExtent(e,t,n,r){r-=widgetTopHeight(t);var o=t.text.length,i=findFirst(function(t){return measureCharPrepared(e,n,t-1).bottom<=r},o,0);return o=findFirst(function(t){return measureCharPrepared(e,n,t).top>r},i,o),{begin:i,end:o}}function wrappedLineExtentChar(e,t,n,r){n||(n=prepareMeasureForLine(e,t));var o=intoCoordSystem(e,t,measureCharPrepared(e,n,r),"line").top;return wrappedLineExtent(e,t,n,o)}function boxIsAfter(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function coordsCharInner(e,t,n,r,o){o-=heightAtLine(t);var i=prepareMeasureForLine(e,t),a=widgetTopHeight(t),s=0,l=t.text.length,c=!0,u=getOrder(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?coordsBidiPartWrapped:coordsBidiPart)(e,t,n,i,u,r,o);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,f=null,g=null,m=findFirst(function(t){var n=measureCharPrepared(e,i,t);return n.top+=a,n.bottom+=a,!!boxIsAfter(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(f=t,g=n),!0)},s,l),v=!1;if(g){var y=r-g.left=x.bottom?1:0}return m=skipExtendingChars(t.text,m,1),PosWithInfo(n,m,h,v,r-p)}function coordsBidiPart(e,t,n,r,o,i,a){var s=findFirst(function(s){var l=o[s],c=1!=l.level;return boxIsAfter(cursorCoords(e,Pos(n,c?l.to:l.from,c?"before":"after"),"line",t,r),i,a,!0)},0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=cursorCoords(e,Pos(n,c?l.from:l.to,c?"after":"before"),"line",t,r);boxIsAfter(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function coordsBidiPartWrapped(e,t,n,r,o,i,a){var s=wrappedLineExtent(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p=c||h.to<=l)){var f=1!=h.level,g=measureCharPrepared(e,r,f?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=gm)&&(u=h,d=m)}}return u||(u=o[o.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function textHeight(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==le){le=elt("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)le.appendChild(document.createTextNode("x")),le.appendChild(elt("br"));le.appendChild(document.createTextNode("x"))}removeChildrenAndAdd(e.measure,le);var n=le.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),removeChildren(e.measure),n||1}function charWidth(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=elt("span","xxxxxxxxxx"),n=elt("pre",[t],"CodeMirror-line-like");removeChildrenAndAdd(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function getDimensions(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:compensateForHScroll(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function compensateForHScroll(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function estimateHeight(e){var t=textHeight(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/charWidth(e.display)-3);return function(o){if(lineIsHidden(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(l=getLine(e.doc,c.line).text).length==c.ch){var u=countColumn(l,l.length,e.options.tabSize)-l.length;c=Pos(c.line,Math.max(0,Math.round((i-paddingH(e.display).left)/charWidth(e.display))-u))}return c}function findViewIndex(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)ne&&visualLineNo(e.doc,t)o.viewFrom?resetView(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)resetView(e);else if(t<=o.viewFrom){var i=viewCuttingPoint(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):resetView(e)}else if(n>=o.viewTo){var a=viewCuttingPoint(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):resetView(e)}else{var s=viewCuttingPoint(e,t,t,-1),l=viewCuttingPoint(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(buildViewArray(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):resetView(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[findViewIndex(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==indexOf(a,n)&&a.push(n)}}}function resetView(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function viewCuttingPoint(e,t,n,r){var o,i=findViewIndex(e,t),a=e.display.view;if(!ne||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;visualLineNo(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function adjustView(e,t,n){var r=e.display,o=r.view;0==o.length||t>=r.viewTo||n<=r.viewFrom?(r.view=buildViewArray(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=buildViewArray(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,findViewIndex(e,n)))),r.viewTo=n}function countDirtyView(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval(function(){e.hasFocus()||onBlur(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ensureFocus(e){e.state.focused||(e.display.input.focus(),onFocus(e))}function delayBlurEvent(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,onBlur(e))},100)}function onFocus(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(signal(e,"focus",e,t),e.state.focused=!0,addClass(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),restartBlink(e))}function onBlur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(signal(e,"blur",e,t),e.state.focused=!1,L(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function updateHeightsInViewport(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||p<-.005)&&(updateLineHeight(o.line,l),updateWidgetHeight(o.line),o.rest))for(var h=0;he.display.sizerWidth){var f=Math.ceil(c/charWidth(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function updateWidgetHeight(e){if(e.widgets)for(var t=0;t=a&&(i=lineAtHeight(t,heightAtLine(getLine(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function maybeScrollWindow(e,t){if(!signalDOMEvent(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!f){var i=elt("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-paddingTop(e.display))+"px;\n height: "+(t.bottom-t.top+scrollGap(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function scrollPosIntoView(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?Pos(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?Pos(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=cursorCoords(e,t),l=n&&n!=t?cursorCoords(e,n):s;o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=calculateScrollPos(e,o),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(updateScrollTop(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(setScrollLeft(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}function calculateScrollPos(e,t){var n=e.display,r=textHeight(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=displayHeight(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+paddingVert(n),l=t.tops-r;if(t.topo+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=o&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=displayWidth(e)-n.gutters.offsetWidth,f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+p-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function addToScrollTop(e,t){null!=t&&(resolveScrollToPos(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ensureCursorVisible(e){resolveScrollToPos(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function scrollToCoords(e,t,n){null==t&&null==n||resolveScrollToPos(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function scrollToRange(e,t){resolveScrollToPos(e),e.curOp.scrollToPos=t}function resolveScrollToPos(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=estimateCoords(e,t.from),r=estimateCoords(e,t.to);scrollToCoordsRange(e,n,r,t.margin)}}function scrollToCoordsRange(e,t,n,r){var o=calculateScrollPos(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});scrollToCoords(e,o.scrollLeft,o.scrollTop)}function updateScrollTop(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||updateDisplaySimple(e,{top:t}),setScrollTop(e,t,!0),n&&updateDisplaySimple(e),startWorker(e,100))}function setScrollTop(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function setScrollLeft(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,alignHorizontally(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function measureForScrollbars(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+paddingVert(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+scrollGap(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var ue=function(e,t,n){this.cm=n;var r=this.vert=elt("div",[elt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=elt("div",[elt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),z(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),z(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ue.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},ue.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ue.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ue.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new T,this.disableVert=new T},ue.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function maybeDisable(){var r=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,maybeDisable)})},ue.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var de=function(){};function updateScrollbars(e,t){t||(t=measureForScrollbars(e));var n=e.display.barWidth,r=e.display.barHeight;updateScrollbarsInner(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&updateHeightsInViewport(e),updateScrollbarsInner(e,measureForScrollbars(e)),n=e.display.barWidth,r=e.display.barHeight}function updateScrollbarsInner(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}de.prototype.update=function(){return{bottom:0,right:0}},de.prototype.setScrollLeft=function(){},de.prototype.setScrollTop=function(){},de.prototype.clear=function(){};var pe={native:ue,null:de};function initScrollbars(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new pe[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),z(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?setScrollLeft(e,t):updateScrollTop(e,t)},e),e.display.scrollbars.addClass&&addClass(e.display.wrapper,e.display.scrollbars.addClass)}var he=0;function startOperation(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++he},t=e.curOp,ae?ae.ops.push(t):t.ownsGroup=ae={ops:[t],delayedCallbacks:[]}}function endOperation(e){var t=e.curOp;t&&finishOperation(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new fe(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function endOperation_R2(e){var t=e.cm,n=t.display;e.updatedDisplay&&updateHeightsInViewport(t),e.barMeasure=measureForScrollbars(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=measureChar(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+scrollGap(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-displayWidth(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function endOperation_W2(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=getContextBefore(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?copyState(t.mode,r.state):null,l=highlightLine(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&pn)return startWorker(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&runInOp(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==countDirtyView(e))return!1;maybeUpdateLineNumberWidth(e)&&(resetView(e),t.dims=getDimensions(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),ne&&(i=visualLineNo(e.doc,i),a=visualLineEndNo(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;adjustView(e,i,a),n.viewOffset=heightAtLine(getLine(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=countDirtyView(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=selectionSnapshot(e);return l>4&&(n.lineDiv.style.display="none"),patchDisplay(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,restoreSelection(c),removeChildren(n.cursorDiv),removeChildren(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,startWorker(e,400)),n.updateLineNumbers=null,!0}function postUpdateDisplay(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=displayWidth(e))r&&(t.visible=visibleLines(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+paddingVert(e.display)-displayHeight(e),n.top)}),t.visible=visibleLines(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!updateDisplayIfNeeded(e,t))break;updateHeightsInViewport(e);var o=measureForScrollbars(e);updateSelection(e),updateScrollbars(e,o),setDocumentHeight(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function updateDisplaySimple(e,t){var n=new fe(e,t);if(updateDisplayIfNeeded(e,n)){updateHeightsInViewport(e),postUpdateDisplay(e,n);var r=measureForScrollbars(e);updateSelection(e),updateScrollbars(e,r),setDocumentHeight(e,r),n.finish()}}function patchDisplay(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function rm(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=r.view,c=r.viewFrom,u=0;u-1&&(p=!1),updateLineForChanges(e,d,c,n)),p&&(removeChildren(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(lineNumberFor(e.options,c)))),a=d.node.nextSibling}else{var h=buildLineElement(e,d,c,n);i.insertBefore(h,a)}c+=d.size}for(;a;)a=rm(a)}function updateGutterSpace(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function setDocumentHeight(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+scrollGap(e)+"px"}function alignHorizontally(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=compensateForHScroll(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(o&&c||i&&u){if(i&&y&&l)e:for(var p=t.target,h=a.view;p!=s;p=p.parentNode)for(var f=0;f=0&&cmp(e,r.to())<=0)return n}return-1};var ye=function(e,t){this.anchor=e,this.head=t};function normalizeSelection(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort(function(e,t){return cmp(e.from(),t.from())}),n=indexOf(t,o);for(var i=1;i0:l>=0){var c=minPos(s.from(),a.from()),u=maxPos(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new ye(d?u:c,d?c:u))}}return new ve(t,n)}function simpleSelection(e,t){return new ve([new ye(e,t||e)],0)}function changeEnd(e){return e.text?Pos(e.from.line+e.text.length-1,lst(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function adjustForChange(e,t){if(cmp(e,t.from)<0)return e;if(cmp(e,t.to)<=0)return changeEnd(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=changeEnd(t).ch-t.to.ch),Pos(n,r)}function computeSelAfterChange(e,t){for(var n=[],r=0;r1&&e.remove(o.line+1,d-1),e.insert(o.line+1,f)}signalLater(e,"change",e,t)}function linkedDocs(e,t,n){!function propagate(e,r,o){if(e.linked)for(var i=0;i1&&!e.done[e.done.length-2].ranges?(e.done.pop(),lst(e.done)):void 0}function addChangeToHistory(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=lastChangeEvent(o,o.lastOp==r)))a=lst(i.changes),0==cmp(t.from,t.to)&&0==cmp(t.from,a.to)?a.to=changeEnd(t):i.changes.push(historyChangeFromChange(e,t));else{var l=lst(o.done);for(l&&l.ranges||pushSelectionToHistory(e.sel,o.done),i={changes:[historyChangeFromChange(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||signal(e,"historyAdded")}function selectionEventCanBeMerged(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function addSelectionToHistory(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||selectionEventCanBeMerged(e,i,lst(o.done),t))?o.done[o.done.length-1]=t:pushSelectionToHistory(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&clearSelectionEvents(o.undone)}function pushSelectionToHistory(e,t){var n=lst(t);n&&n.ranges&&n.equals(e)||t.push(e)}function attachLocalSpans(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function removeClearedSpans(e){if(!e)return null;for(var t,n=0;n-1&&(lst(s)[d]=c[d],delete c[d])}}}return r}function extendRange(e,t,n,r){if(r){var o=e.anchor;if(n){var i=cmp(t,o)<0;i!=cmp(n,o)<0?(o=t,t=n):i!=cmp(t,n)<0&&(t=n)}return new ye(o,t)}return new ye(n||t,t)}function extendSelection(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),setSelection(e,new ve([extendRange(e.sel.primary(),t,n,o)],0),r)}function extendSelections(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(signal(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?u:c)&&(d=movePos(e,d,-r,d&&d.line==t.line?i:null)),d&&d.line==t.line&&(p=cmp(d,n))&&(r<0?p<0:p>0))return skipAtomicInner(e,d,t,r,o)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=movePos(e,h,r,h.line==t.line?i:null)),h?skipAtomicInner(e,h,t,r,o):null}}return t}function skipAtomic(e,t,n,r,o){var i=r||1,a=skipAtomicInner(e,t,n,i,o)||!o&&skipAtomicInner(e,t,n,i,!0)||skipAtomicInner(e,t,n,-i,o)||!o&&skipAtomicInner(e,t,n,-i,!0);return a||(e.cantEdit=!0,Pos(e.first,0))}function movePos(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?clipPos(e,Pos(t.line-1)):null:n>0&&t.ch==(r||getLine(e,t.line)).text.length?t.line=0;--o)makeChangeInner(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else makeChangeInner(e,t)}}function makeChangeInner(e,t){if(1!=t.text.length||""!=t.text[0]||0!=cmp(t.from,t.to)){var n=computeSelAfterChange(e,t);addChangeToHistory(e,t,n,e.cm?e.cm.curOp.id:NaN),makeChangeSingleDoc(e,t,n,stretchSpansOverChange(e,t));var r=[];linkedDocs(e,function(e,n){n||-1!=indexOf(r,e.history)||(rebaseHist(e.history,t),r.push(e.history)),makeChangeSingleDoc(e,t,null,stretchSpansOverChange(e,t))})}}function makeChangeFromHistory(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c=0;--h){var f=p(h);if(f)return f.v}}}}function shiftDoc(e,t){if(0!=t&&(e.first+=t,e.sel=new ve(map(e.sel.ranges,function(e){return new ye(Pos(e.anchor.line+t,e.anchor.ch),Pos(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){regChange(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:Pos(i,getLine(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=getBetween(e,t.from,t.to),n||(n=computeSelAfterChange(e,t)),e.cm?makeChangeSingleDocInEditor(e.cm,t,r):updateDoc(e,t,r),setSelectionNoUndo(e,n,A),e.cantEdit&&skipAtomic(e,Pos(e.firstLine(),0))&&(e.cantEdit=!1)}}function makeChangeSingleDocInEditor(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=lineNo(visualLine(getLine(r,i.line))),r.iter(l,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&signalCursorActivity(e),updateDoc(r,t,n,estimateHeight(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,function(e){var t=lineLength(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),retreatFrontier(r,i.line),startWorker(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?regChange(e):i.line!=a.line||1!=t.text.length||isWholeLineUpdate(e.doc,t)?regChange(e,i.line,a.line+1,c):regLineChange(e,i.line,"text");var u=hasHandler(e,"changes"),d=hasHandler(e,"change");if(d||u){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&signalLater(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function replaceRange(e,t,n,r,o){var i;r||(r=n),cmp(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),makeChange(e,{from:n,to:r,text:t,origin:o})}function rebaseHistSelSingle(e,t,n,r){n1||!(this.children[0]instanceof LeafChunk))){var s=[];this.collapse(s),this.children=[new LeafChunk(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=eltP("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(conflictingCollapsedRange(e,t.line,t,n,i)||t.line!=n.line&&conflictingCollapsedRange(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");ne=!0}i.addToHistory&&addChangeToHistory(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(e){c&&i.collapsed&&!c.options.lineWrapping&&visualLine(e)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&updateLineHeight(e,0),addMarkedSpan(e,new MarkedSpan(i,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),i.collapsed&&e.iter(t.line,n.line+1,function(t){lineIsHidden(e,t)&&updateLineHeight(t,0)}),i.clearOnEnter&&z(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(te=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++xe,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)regChange(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)regLineChange(c,u,"text");i.atomic&&reCheckSelection(c.doc),signalLater(c,"markerAdded",c,i)}return i}Ce.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&startOperation(e),hasHandler(this,"clear")){var n=this.find();n&&signalLater(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&®Change(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&reCheckSelection(e.doc)),e&&signalLater(e,"markerCleared",e,this,r,o),t&&endOperation(e),this.parent&&this.parent.clear()}},Ce.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;l--)makeChange(this,r[l]);s?setSelectionReplaceHistory(this,s):this.cm&&ensureCursorVisible(this.cm)}),undo:docMethodOp(function(){makeChangeFromHistory(this,"undo")}),redo:docMethodOp(function(){makeChangeFromHistory(this,"redo")}),undoSelection:docMethodOp(function(){makeChangeFromHistory(this,"undo",!0)}),redoSelection:docMethodOp(function(){makeChangeFromHistory(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=clipPos(this,e),t=clipPos(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n}),clipPos(this,Pos(n,t))},indexFromPos:function(e){var t=(e=clipPos(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),setSelectionNoUndo(t.doc,simpleSelection(n,n)),p)for(var h=0;h=0;t--)replaceRange(e.doc,"",r[t].from,r[t].to,"+delete");ensureCursorVisible(e)})}function moveCharLogically(e,t,n){var r=skipExtendingChars(e.text,t+n,n);return r<0||r>e.text.length?null:r}function moveLogically(e,t,n){var r=moveCharLogically(e,t.ch,n);return null==r?null:new Pos(t.line,r,n<0?"after":"before")}function endOfLine(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=getOrder(n,t.doc.direction);if(i){var a,s=o<0?lst(i):i[0],l=o<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=prepareMeasureForLine(t,n);a=o<0?n.text.length-1:0;var d=measureCharPrepared(t,u,a).top;a=findFirst(function(e){return measureCharPrepared(t,u,e).top==d},o<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=moveCharLogically(n,a,1))}else a=o<0?s.to:s.from;return new Pos(r,a,c)}}return new Pos(r,o<0?n.text.length:0,o<0?"before":"after")}function moveVisually(e,t,n,r){var o=getOrder(t,e.doc.direction);if(!o)return moveLogically(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=getBidiPartAt(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=u.begin)){var h=d?"before":"after";return new Pos(n.line,p,h)}}var f=function(e,t,r){for(var i=function(e,t){return t?new Pos(n.line,l(e,1),"before"):new Pos(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||r>0&&m==t.text.length||!(g=f(r>0?0:o.length-1,r,c(m)))?null:g}Ne.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ne.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ne.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ne.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ne.default=y?Ne.macDefault:Ne.pcDefault;var De={selectAll:selectAll,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),A)},killLine:function(e){return deleteNearSelection(e,function(t){if(t.empty()){var n=getLine(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new Pos(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),Pos(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=getLine(e.doc,o.line-1).text;a&&(o=new Pos(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),Pos(o.line-1,a.length-1),o,"+transpose"))}n.push(new ye(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return runInOp(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(cmp((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(cmp(o.to(),t)>0||t.xRel<0)?leftButtonStartDrag(e,r,t,i):leftButtonSelect(e,r,t,i)}function leftButtonStartDrag(e,t,n,r){var o=e.display,i=!1,c=operation(e,function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,off(o.wrapper.ownerDocument,"mouseup",c),off(o.wrapper.ownerDocument,"mousemove",u),off(o.scroller,"dragstart",d),off(o.scroller,"drop",c),i||(e_preventDefault(t),r.addNew||extendSelection(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),z(o.wrapper.ownerDocument,"mouseup",c),z(o.wrapper.ownerDocument,"mousemove",u),z(o.scroller,"dragstart",d),z(o.scroller,"drop",c),delayBlurEvent(e),setTimeout(function(){return o.input.focus()},20)}function rangeForUnit(e,t,n){if("char"==n)return new ye(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ye(Pos(t.line,0),clipPos(e.doc,Pos(t.line+1,0)));var r=n(e,t);return new ye(r.from,r.to)}function leftButtonSelect(e,t,n,r){var o=e.display,i=e.doc;e_preventDefault(t);var a,s,l=i.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=i.sel.contains(n),a=s>-1?c[s]:new ye(n,n)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ye(n,n)),n=posFromMouse(e,t,!0,!0),s=-1;else{var u=rangeForUnit(e,n,r.unit);a=r.extend?extendRange(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,setSelection(i,normalizeSelection(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(setSelection(i,normalizeSelection(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=i.sel):replaceOneSelection(i,s,a,N):(s=0,setSelection(i,new ve([a],0),N),l=i.sel);var d=n;function extendTo(t){if(0!=cmp(d,t))if(d=t,"rectangle"==r.unit){for(var o=[],c=e.options.tabSize,u=countColumn(getLine(i,n.line).text,n.ch,c),p=countColumn(getLine(i,t.line).text,t.ch,c),h=Math.min(u,p),f=Math.max(u,p),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=getLine(i,g).text,y=findColumn(v,h,c);h==f?o.push(new ye(Pos(g,y),Pos(g,y))):v.length>y&&o.push(new ye(Pos(g,y),Pos(g,findColumn(v,f,c))))}o.length||o.push(new ye(n,n)),setSelection(i,normalizeSelection(e,l.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=a,C=rangeForUnit(e,t,r.unit),w=x.anchor;cmp(C.anchor,w)>0?(b=C.head,w=minPos(x.from(),C.anchor)):(b=C.anchor,w=maxPos(x.to(),C.head));var S=l.ranges.slice(0);S[s]=bidiSimplify(e,new ye(clipPos(i,w),b)),setSelection(i,normalizeSelection(e,S,s),N)}}var p=o.wrapper.getBoundingClientRect(),h=0;function extend(t){var n=++h,a=posFromMouse(e,t,!0,"rectangle"==r.unit);if(a)if(0!=cmp(a,d)){e.curOp.focus=activeElt(),extendTo(a);var s=visibleLines(o,i);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(operation(e,function(){h==n&&(o.scroller.scrollTop+=l,extend(t))}),50)}}function done(t){e.state.selectingText=!1,h=1/0,t&&(e_preventDefault(t),o.input.focus()),off(o.wrapper.ownerDocument,"mousemove",f),off(o.wrapper.ownerDocument,"mouseup",g),i.history.lastSelOrigin=null}var f=operation(e,function(e){0!==e.buttons&&e_button(e)?extend(e):done(e)}),g=operation(e,done);e.state.selectingText=g,z(o.wrapper.ownerDocument,"mousemove",f),z(o.wrapper.ownerDocument,"mouseup",g)}function bidiSimplify(e,t){var n=t.anchor,r=t.head,o=getLine(e.doc,n.line);if(0==cmp(n,r)&&n.sticky==r.sticky)return t;var i=getOrder(o);if(!i)return t;var a=getBidiPartAt(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=getBidiPartAt(i,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=i[c+(l?-1:0)],h=l==(1==p.level),f=h?p.from:p.to,g=h?"after":"before";return n.ch==f&&n.sticky==g?t:new ye(new Pos(n.line,f,g),r)}function gutterEvent(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&e_preventDefault(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!hasHandler(e,n))return e_defaultPrevented(t);i-=s.top-a.viewOffset;for(var l=0;l=o){var u=lineAtHeight(e.doc,i),d=e.display.gutterSpecs[l];return signal(e,n,e,u,d.className,t),e_defaultPrevented(t)}}}function clickInGutter(e,t){return gutterEvent(e,t,"gutterClick",!0)}function onContextMenu(e,t){eventInWidget(e.display,t)||contextMenuInGutter(e,t)||signalDOMEvent(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function contextMenuInGutter(e,t){return!!hasHandler(e,"gutterContextMenu")&&gutterEvent(e,t,"gutterContextMenu",!1)}function themeChanged(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),clearCaches(e)}Fe.prototype.compare=function(e,t,n){return this.time+400>e&&0==cmp(t,this.pos)&&n==this.button};var Be={toString:function(){return"CodeMirror.Init"}},ze={},Re={};function dragDropChanged(e,t,n){var r=n&&n!=Be;if(!t!=!r){var o=e.display.dragFunctions,i=t?z:off;i(e.display.scroller,"dragstart",o.start),i(e.display.scroller,"dragenter",o.enter),i(e.display.scroller,"dragover",o.over),i(e.display.scroller,"dragleave",o.leave),i(e.display.scroller,"drop",o.drop)}}function wrappingChanged(e){e.options.lineWrapping?(addClass(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),findMaxLine(e)),estimateLineHeights(e),regChange(e),clearCaches(e),setTimeout(function(){return updateScrollbars(e)},100)}function CodeMirror(e,t){var n=this;if(!(this instanceof CodeMirror))return new CodeMirror(e,t);this.options=t=t?copyObj(t):{},copyObj(ze,t,!1);var r=t.value;"string"==typeof r?r=new ke(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new CodeMirror.inputStyles[t.inputStyle](this),i=this.display=new Display(e,r,o,t);for(var c in i.wrapper.CodeMirror=this,themeChanged(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),initScrollbars(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new T,keySeq:null,specialChars:null},t.autofocus&&!v&&i.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),registerEventHandlers(this),Me||(registerGlobalHandlers(),Me=!0),startOperation(this),this.curOp.forceUpdate=!0,attachDoc(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&onFocus(n)},20):onBlur(this),Re)Re.hasOwnProperty(c)&&Re[c](this,t[c],Be);maybeUpdateLineNumberWidth(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}z(t.scroller,"touchstart",function(o){if(!signalDOMEvent(e,o)&&!isMouseLikeTouchEvent(o)&&!clickInGutter(e,o)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),z(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),z(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!eventInWidget(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,i=e.coordsChar(t.activeTouch,"page");o=!r.prev||farAway(r,r.prev)?new ye(i,i):!r.prev.prev||farAway(r,r.prev.prev)?e.findWordAt(i):new ye(Pos(i.line,0),clipPos(e.doc,Pos(i.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),e_preventDefault(n)}finishTouch()}),z(t.scroller,"touchcancel",finishTouch),z(t.scroller,"scroll",function(){t.scroller.clientHeight&&(updateScrollTop(e,t.scroller.scrollTop),setScrollLeft(e,t.scroller.scrollLeft,!0),signal(e,"scroll",e))}),z(t.scroller,"mousewheel",function(t){return onScrollWheel(e,t)}),z(t.scroller,"DOMMouseScroll",function(t){return onScrollWheel(e,t)}),z(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){signalDOMEvent(e,t)||e_stop(t)},over:function(t){signalDOMEvent(e,t)||(onDragOver(e,t),e_stop(t))},start:function(t){return onDragStart(e,t)},drop:operation(e,onDrop),leave:function(t){signalDOMEvent(e,t)||clearDragCursor(e)}};var o=t.input.getField();z(o,"keyup",function(t){return onKeyUp.call(e,t)}),z(o,"keydown",operation(e,onKeyDown)),z(o,"keypress",operation(e,onKeyPress)),z(o,"focus",function(t){return onFocus(e,t)}),z(o,"blur",function(t){return onBlur(e,t)})}CodeMirror.defaults=ze,CodeMirror.optionHandlers=Re;var Ve=[];function indentLine(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=getContextBefore(e,t).state:n="prev");var a=e.options.tabSize,s=getLine(i,t),l=countColumn(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==P||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?countColumn(getLine(i,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)p+=a,d+="\t";if(pa,l=G(t),c=null;if(s&&r.ranges.length>1)if(Ue&&Ue.text.join("\n")==t){if(r.ranges.length%Ue.text.length==0){c=[];for(var u=0;u=0;p--){var h=r.ranges[p],f=h.from(),g=h.to();h.empty()&&(n&&n>0?f=Pos(f.line,f.ch-n):e.state.overwrite&&!s?g=Pos(g.line,Math.min(getLine(i,g.line).text.length,g.ch+lst(l).length)):s&&Ue&&Ue.lineWise&&Ue.text.join("\n")==l.join("\n")&&(f=g=Pos(f.line,0)));var m={from:f,to:g,text:c?c[p%c.length]:l,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};makeChange(e.doc,m),signalLater(e,"inputRead",e,m)}t&&!s&&triggerElectric(e,t),ensureCursorVisible(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function handlePaste(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||runInOp(t,function(){return applyTextInput(t,n,0,null,"paste")}),!0}function triggerElectric(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=indentLine(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(getLine(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=indentLine(e,o.head.line,"smart"));a&&signalLater(e,"electricInput",e,o.head.line)}}}function copyableRanges(e){for(var t=[],n=[],r=0;r0?0:-1));a=isNaN(u)?null:new Pos(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=o?moveVisually(e.cm,s,t,n):moveLogically(s,t,n);if(null==a){if(i||((c=t.line+l)=e.first+e.size||(t=new Pos(c,t.ch,t.sticky),!(s=getLine(e,c)))))return!1;t=endOfLine(o,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)moveOnce();else if("column"==r)moveOnce(!0);else if("word"==r||"group"==r)for(var c=null,u="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||moveOnce(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",f=isWordChar(h,d)?"w":u&&"\n"==h?"n":!u||/\s/.test(h)?null:"p";if(!u||p||f||(f="s"),c&&c!=f){n<0&&(n=1,moveOnce(),t.sticky="after");break}if(f&&(c=f),n>0&&!moveOnce(!p))break}var g=skipAtomic(e,t,i,a,!0);return equalCursorPos(i,g)&&(g.hitSide=!0),g}function findPosV(e,t,n,r){var o,i,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*textHeight(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=coordsChar(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var je=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new T,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function posToDOM(e,t){var n=findViewForLine(e,t.line);if(!n||n.hidden)return null;var r=getLine(e.doc,t.line),o=mapFromLineView(n,r,t.line),i=getOrder(r,e.doc.direction),a="left";if(i){var s=getBidiPartAt(i,t.ch);a=s%2?"right":"left"}var l=nodeAndOffsetInLineMap(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function isInGutter(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function badPos(e,t){return t&&(e.bad=!0),e}function domTextBetween(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator(),l=!1;function close(){a&&(i+=s,l&&(i+=s),a=l=!1)}function addText(e){e&&(close(),i+=e)}function walk(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void addText(n);var i,c=t.getAttribute("cm-marker");if(c){var u=e.findMarks(Pos(r,0),Pos(o+1,0),(h=+c,function(e){return e.id==h}));return void(u.length&&(i=u[0].find(0))&&addText(getBetween(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;d&&close();for(var p=0;p=t.display.viewTo||i.line=t.display.viewFrom&&posToDOM(t,o)||{node:l[0].measure.map[2],offset:0},u=i.liner.firstLine()&&(a=Pos(a.line-1,getLine(r.doc,a.line-1).length)),s.ch==getLine(r.doc,s.line).text.length&&s.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=findViewIndex(r,a.line))?(t=lineNo(o.view[0].line),n=o.view[0].node):(t=lineNo(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,c,u=findViewIndex(r,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=lineNo(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(domTextBetween(r,n,c,t,l)),p=getBetween(r.doc,Pos(t,0),Pos(l,getLine(r.doc,l).text.length));d.length>1&&p.length>1;)if(lst(d)==lst(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,f=0,g=d[0],m=p[0],v=Math.min(g.length,m.length);ha.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)h--,f++;d[d.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var C=Pos(t,h),w=Pos(l,p.length?lst(p).length-f:0);return d.length>1||d[0]||cmp(C,w)?(replaceRange(r.doc,d,C,w,"+input"),!0):void 0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||runInOp(this.cm,function(){return regChange(e.cm)})},je.prototype.setUneditable=function(e){e.contentEditable="false"},je.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||operation(this.cm,applyTextInput)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},je.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;var Ge=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new T,this.hasSelection=!1,this.composing=null};Ge.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function prepareCopyCut(e){if(!signalDOMEvent(r,e)){if(r.somethingSelected())setLastCopied({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=copyableRanges(r);setLastCopied({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,A):(n.prevInput="",o.value=t.text.join("\n"),M(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),z(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),z(o,"paste",function(e){signalDOMEvent(r,e)||handlePaste(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),z(o,"cut",prepareCopyCut),z(o,"copy",prepareCopyCut),z(e.scroller,"paste",function(t){if(!eventInWidget(e,t)&&!signalDOMEvent(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}}),z(e.lineSpace,"selectstart",function(t){eventInWidget(e,t)||e_preventDefault(t)}),z(o,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),z(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ge.prototype.createField=function(e){this.wrapper=hiddenTextarea(),this.textarea=this.wrapper.firstChild},Ge.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ge.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=prepareSelection(e);if(e.options.moveInputWithCursor){var o=cursorCoords(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Ge.prototype.showSelection=function(e){var t=this.cm,n=t.display;removeChildrenAndAdd(n.cursorDiv,e.cursors),removeChildrenAndAdd(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ge.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ge.prototype.getField=function(){return this.textarea},Ge.prototype.supportsTouch=function(){return!1},Ge.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||activeElt()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ge.prototype.blur=function(){this.textarea.blur()},Ge.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ge.prototype.receivedFocus=function(){this.slowPoll()},Ge.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ge.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function p(){var n=t.poll();n||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,p))})},Ge.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,o.length);l1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ge.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ge.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ge.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=posFromMouse(n,e),c=r.scroller.scrollTop;if(i&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(i)&&operation(n,setSelection)(n.doc,simpleSelection(i),A);var p,h=o.style.cssText,f=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(p=window.scrollY),r.input.focus(),l&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=rehide,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&prepareSelectAllHack(),S){e_stop(e);var m=function(){off(window,"mouseup",m),setTimeout(rehide,20)};z(window,"mouseup",m)}else setTimeout(rehide,50)}function prepareSelectAllHack(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="​"+(e?o.value:"");o.value="⇚",o.value=i,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function rehide(){if(t.contextMenuPending==rehide&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,o.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&prepareSelectAllHack();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?operation(n,selectAll)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Ge.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ge.prototype.setUneditable=function(){},Ge.prototype.needsContentAttribute=!1,function defineOptions(e){var t=e.optionHandlers;function option(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Be&&o(e,t,n)}:o)}e.defineOption=option,e.Init=Be,option("value","",function(e,t){return e.setValue(t)},!0),option("mode",null,function(e,t){e.doc.modeOption=t,loadMode(e)},!0),option("indentUnit",2,loadMode,!0),option("indentWithTabs",!1),option("smartIndent",!0),option("tabSize",4,function(e){resetModeState(e),clearCaches(e),regChange(e)},!0),option("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(Pos(r,i))}r++});for(var o=n.length-1;o>=0;o--)replaceRange(e.doc,t,n[o],Pos(n[o].line,n[o].ch+t.length))}}),option("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Be&&e.refresh()}),option("specialCharPlaceholder",defaultSpecialCharPlaceholder,function(e){return e.refresh()},!0),option("electricChars",!0),option("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),option("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),option("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),option("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),option("rtlMoveVisually",!x),option("wholeLineUpdateBefore",!0),option("theme","default",function(e){themeChanged(e),updateGutters(e)},!0),option("keyMap","default",function(e,t,n){var r=getKeyMap(t),o=n!=Be&&getKeyMap(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),option("extraKeys",null),option("configureMouse",null),option("lineWrapping",!1,wrappingChanged,!0),option("gutters",[],function(e,t){e.display.gutterSpecs=getGutters(t,e.options.lineNumbers),updateGutters(e)},!0),option("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?compensateForHScroll(e.display)+"px":"0",e.refresh()},!0),option("coverGutterNextToScrollbar",!1,function(e){return updateScrollbars(e)},!0),option("scrollbarStyle","native",function(e){initScrollbars(e),updateScrollbars(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),option("lineNumbers",!1,function(e,t){e.display.gutterSpecs=getGutters(e.options.gutters,t),updateGutters(e)},!0),option("firstLineNumber",1,updateGutters,!0),option("lineNumberFormatter",function(e){return e},updateGutters,!0),option("showCursorWhenSelecting",!1,updateSelection,!0),option("resetSelectionOnContextMenu",!0),option("lineWiseCopyCut",!0),option("pasteLinesPerSelection",!0),option("selectionsMayTouch",!1),option("readOnly",!1,function(e,t){"nocursor"==t&&(onBlur(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),option("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),option("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),option("dragDrop",!0,dragDropChanged),option("allowDropFileTypes",null),option("cursorBlinkRate",530),option("cursorScrollMargin",0),option("cursorHeight",1,updateSelection,!0),option("singleCursorHeightPerLine",!0,updateSelection,!0),option("workTime",100),option("workDelay",100),option("flattenSpans",!0,resetModeState,!0),option("addModeClass",!1,resetModeState,!0),option("pollInterval",100),option("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),option("historyEventDelay",1250),option("viewportMargin",10,function(e){return e.refresh()},!0),option("maxHighlightLength",1e4,resetModeState,!0),option("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),option("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),option("autofocus",null),option("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),option("phrases",null)}(CodeMirror),function addEditorMethods(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&operation(this,t[e])(this,n,o),signal(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](getKeyMap(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(indentLine(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&ensureCursorVisible(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&replaceOneSelection(this.doc,r,new ye(i,c[r].to()),A)}}}),getTokenAt:function(e,t){return takeToken(this,e,t)},getLineTokens:function(e,t){return takeToken(this,Pos(e),t,!0)},getTokenTypeAt:function(e){e=clipPos(this.doc,e);var t,n=getLineStyles(this,getLine(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=getLine(this.doc,e)}else r=e;return intoCoordSystem(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-heightAtLine(r):0)},defaultTextHeight:function(){return textHeight(this.display)},defaultCharWidth:function(){return charWidth(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i,a,s,l=this.display,c=(e=cursorCoords(this,clipPos(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==o?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(i=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=calculateScrollPos(i,a)).scrollTop&&updateScrollTop(i,s.scrollTop),null!=s.scrollLeft&&setScrollLeft(i,s.scrollLeft))},triggerOnKeyDown:methodOp(onKeyDown),triggerOnKeyPress:methodOp(onKeyPress),triggerOnKeyUp:onKeyUp,triggerOnMouseDown:methodOp(onMouseDown),execCommand:function(e){if(De.hasOwnProperty(e))return De[e].call(null,this)},triggerElectric:methodOp(function(e){triggerElectric(this,e)}),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=clipPos(this.doc,e),a=0;a0&&s(n.charAt(r-1));)--r;for(;o.5||this.options.lineWrapping)&&estimateLineHeights(this),signal(this,"refresh",this)}),swapDoc:methodOp(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),attachDoc(this,e),clearCaches(this),this.display.input.reset(),scrollToCoords(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,signalLater(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},eventMixin(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(CodeMirror);var _e="iter insert remove copy getEditor constructor".split(" ");for(var Ke in ke.prototype)ke.prototype.hasOwnProperty(Ke)&&indexOf(_e,Ke)<0&&(CodeMirror.prototype[Ke]=function(e){return function(){return e.apply(this.doc,arguments)}}(ke.prototype[Ke]));return eventMixin(ke),CodeMirror.inputStyles={textarea:Ge,contenteditable:je},CodeMirror.defineMode=function(e){CodeMirror.defaults.mode||"null"==e||(CodeMirror.defaults.mode=e),defineMode.apply(this,arguments)},CodeMirror.defineMIME=function defineMIME(e,t){$[e]=t},CodeMirror.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.defineExtension=function(e,t){CodeMirror.prototype[e]=t},CodeMirror.defineDocExtension=function(e,t){ke.prototype[e]=t},CodeMirror.fromTextArea=function fromTextArea(e,t){if((t=t?copyObj(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=activeElt();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function save(){e.value=a.getValue()}var r;if(e.form&&(z(e.form,"submit",save),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var i=o.submit=function(){save(),o.submit=r,o.submit(),o.submit=i}}catch(e){}}t.finishInit=function(n){n.save=save,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,save(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(off(e.form,"submit",save),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var a=CodeMirror(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function addLegacyProps(e){e.off=off,e.on=z,e.wheelEventPixels=wheelEventPixels,e.Doc=ke,e.splitLines=G,e.countColumn=countColumn,e.findColumn=findColumn,e.isWordChar=isWordCharBasic,e.Pass=P,e.signal=signal,e.Line=re,e.changeEnd=changeEnd,e.scrollbarModel=pe,e.Pos=Pos,e.cmpPos=cmp,e.modes=X,e.mimeModes=$,e.resolveMode=resolveMode,e.getMode=getMode,e.modeExtensions=Y,e.extendMode=extendMode,e.copyState=copyState,e.startState=startState,e.innerMode=innerMode,e.commands=De,e.keyMap=Ne,e.keyName=keyName,e.isModifierKey=isModifierKey,e.lookupKey=lookupKey,e.normalizeKeyMap=normalizeKeyMap,e.StringStream=Z,e.SharedTextMarker=we,e.TextMarker=Ce,e.LineWidget=be,e.e_preventDefault=e_preventDefault,e.e_stopPropagation=e_stopPropagation,e.e_stop=e_stop,e.addClass=addClass,e.contains=contains,e.rmClass=L,e.keyNames=Te}(CodeMirror),CodeMirror.version="5.58.2",CodeMirror}()},497:function(e,t,n){"use strict";(function(e){var r,o=Object.assign||function(e){for(var t=1;t]*>\s*$/,!1)){for(;l.prev&&!l.startOfLine;)l=l.prev;l.startOfLine?s-=t.indentUnit:a.prev.state.lexical&&(s=a.prev.state.lexical.indented)}else 1==a.depth&&(s+=t.indentUnit);return i.context=new Context(e.startState(o,s),o,0,i.context),null}if(1==a.depth){if("<"==n.peek())return r.skipAttribute(a.state),i.context=new Context(e.startState(r,flatXMLIndent(a.state)),r,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return a.depth=2,token(n,i)}var c,u=r.token(n,a.state),d=n.current();return/\btag\b/.test(u)?/>$/.test(d)?a.state.context?a.depth=0:i.context=i.context.prev:/^-1&&n.backUp(d.length-c),u}function jsToken(t,n,i){if("<"==t.peek()&&o.expressionAllowed(t,i.state))return o.skipExpression(i.state),n.context=new Context(e.startState(r,o.indent(i.state,"","")),r,0,n.context),null;var a=o.token(t,i.state);if(!a&&null!=i.depth){var s=t.current();"{"==s?i.depth++:"}"==s&&0==--i.depth&&(n.context=n.context.prev)}return a}return{startState:function(){return{context:new Context(e.startState(o),o)}},copyState:function(e){return{context:copyContext(e.context)}},token:token,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}},"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(496),n(499),n(500))},499:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){var i,a,s=r.indentUnit,l={},c=o.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in o)l[u]=o[u];function inText(e,t){function chain(n){return t.tokenize=n,n(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?chain(inBlock("atom","]]>")):null:e.match("--")?chain(inBlock("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),chain(doctype(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=inBlock("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=inTag,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function inTag(e,t){var n,r,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=inText,i=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return i="equals",null;if("<"==o){t.tokenize=inText,t.state=baseState,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(o)?(t.tokenize=(n=o,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=inTag;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function inBlock(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=inText;break}n.next()}return e}}function doctype(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=doctype(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=inText;break}return n.tokenize=doctype(e-1),n.tokenize(t,n)}}return"meta"}}function Context(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function popContext(e){e.context&&(e.context=e.context.prev)}function maybePopContext(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;popContext(e)}}function baseState(e,t,n){return"openTag"==e?(n.tagStart=t.column(),tagNameState):"closeTag"==e?closeTagNameState:baseState}function tagNameState(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",attrState):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",attrState(e,0,n)):(a="error",tagNameState)}function closeTagNameState(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&popContext(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",closeState):(a="tag error",closeStateErr)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",closeState(e,0,n)):(a="error",closeStateErr)}function closeState(e,t,n){return"endTag"!=e?(a="error",closeState):(popContext(n),baseState)}function closeStateErr(e,t,n){return a="error",closeState(e,0,n)}function attrState(e,t,n){if("word"==e)return a="attribute",attrEqState;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?maybePopContext(n,r):(maybePopContext(n,r),n.context=new Context(n,r,o==n.indented)),baseState}return a="error",attrState}function attrEqState(e,t,n){return"equals"==e?attrValueState:(l.allowMissing||(a="error"),attrState(e,0,n))}function attrValueState(e,t,n){return"string"==e?attrContinuedState:"word"==e&&l.allowUnquoted?(a="string",attrState):(a="error",attrState(e,0,n))}function attrContinuedState(e,t,n){return"string"==e?attrContinuedState:attrState(e,0,n)}return inText.isInText=!0,{startState:function(e){var t={tokenize:inText,state:baseState,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(a=null,t.state=t.state(i||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=inTag&&t.tokenize!=inText)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==attrValueState&&(e.state=attrState)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(496))},500:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",function(t,n){var r,o,i=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function kw(e){return{type:e,style:"keyword"}}var e=kw("keyword a"),t=kw("keyword b"),n=kw("keyword c"),r=kw("keyword d"),o=kw("operator"),i={type:"atom",style:"atom"};return{if:kw("if"),while:e,with:e,else:t,do:t,try:t,finally:t,return:r,break:r,continue:r,new:kw("new"),delete:n,void:n,throw:n,debugger:kw("debugger"),var:kw("var"),const:kw("var"),let:kw("var"),function:kw("function"),catch:kw("catch"),for:kw("for"),switch:kw("switch"),case:kw("case"),default:kw("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:kw("this"),class:kw("class"),super:kw("atom"),yield:n,export:kw("export"),import:kw("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function readRegexp(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function ret(e,t,n){return r=e,o=n,t}function tokenBase(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,o=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=tokenBase,ret("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(t.tokenize=tokenBase),ret("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ret("number","number");if("."==r&&e.match(".."))return ret("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return ret(r);if("="==r&&e.eat(">"))return ret("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ret("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ret("number","number");if("/"==r)return e.eat("*")?(t.tokenize=tokenComment,tokenComment(e,t)):e.eat("/")?(e.skipToEnd(),ret("comment","comment")):expressionAllowed(e,t,1)?(readRegexp(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ret("regexp","string-2")):(e.eat("="),ret("operator","operator",e.current()));if("`"==r)return t.tokenize=tokenQuasi,tokenQuasi(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),ret("meta","meta");if("#"==r&&e.eatWhile(u))return ret("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),ret("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?ret("."):ret("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var o=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(o)){var i=d[o];return ret(i.type,i.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ret("async","keyword",o)}return ret("variable","variable",o)}}function tokenComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=tokenBase;break}r="*"==n}return ret("comment","comment")}function tokenQuasi(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=tokenBase;break}r=!r&&"\\"==n}return ret("quasi","string-2",e.current())}var f="([{}])";function findFatArrow(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=f.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(u.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;var d=e.string.charAt(a-1);if(d==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}var g={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function JSLexical(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function inScope(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function parseJS(e,t,n,r,o){var i=e.cc;for(m.state=e,m.stream=o,m.marked=null,m.cc=i,m.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=i.length?i.pop():l?expression:statement;if(a(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return m.marked?m.marked:"variable"==n&&inScope(e,r)?"variable-2":t}}}var m={state:null,column:null,marked:null,cc:null};function pass(){for(var e=arguments.length-1;e>=0;e--)m.cc.push(arguments[e])}function cont(){return pass.apply(null,arguments),!0}function inList(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function register(e){var t=m.state;if(m.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=registerVarScoped(e,t.context);if(null!=r)return void(t.context=r)}else if(!inList(e,t.localVars))return void(t.localVars=new Var(e,t.localVars));n.globalVars&&!inList(e,t.globalVars)&&(t.globalVars=new Var(e,t.globalVars))}function registerVarScoped(e,t){if(t){if(t.block){var n=registerVarScoped(e,t.prev);return n?n==t.prev?t:new Context(n,t.vars,!0):null}return inList(e,t.vars)?t:new Context(t.prev,new Var(e,t.vars),!1)}return null}function isModifier(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function Context(e,t,n){this.prev=e,this.vars=t,this.block=n}function Var(e,t){this.name=e,this.next=t}var v=new Var("this",new Var("arguments",null));function pushcontext(){m.state.context=new Context(m.state.context,m.state.localVars,!1),m.state.localVars=v}function pushblockcontext(){m.state.context=new Context(m.state.context,m.state.localVars,!0),m.state.localVars=null}function popcontext(){m.state.localVars=m.state.context.vars,m.state.context=m.state.context.prev}function pushlex(e,t){var n=function(){var n=m.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new JSLexical(r,m.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function poplex(){var e=m.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function expect(e){return function exp(t){return t==e?cont():";"==e||"}"==t||")"==t||"]"==t?pass():cont(exp)}}function statement(e,t){return"var"==e?cont(pushlex("vardef",t),vardef,expect(";"),poplex):"keyword a"==e?cont(pushlex("form"),parenExpr,statement,poplex):"keyword b"==e?cont(pushlex("form"),statement,poplex):"keyword d"==e?m.stream.match(/^\s*$/,!1)?cont():cont(pushlex("stat"),maybeexpression,expect(";"),poplex):"debugger"==e?cont(expect(";")):"{"==e?cont(pushlex("}"),pushblockcontext,block,poplex,popcontext):";"==e?cont():"if"==e?("else"==m.state.lexical.info&&m.state.cc[m.state.cc.length-1]==poplex&&m.state.cc.pop()(),cont(pushlex("form"),parenExpr,statement,poplex,maybeelse)):"function"==e?cont(functiondef):"for"==e?cont(pushlex("form"),forspec,statement,poplex):"class"==e||c&&"interface"==t?(m.marked="keyword",cont(pushlex("form","class"==e?e:t),className,poplex)):"variable"==e?c&&"declare"==t?(m.marked="keyword",cont(statement)):c&&("module"==t||"enum"==t||"type"==t)&&m.stream.match(/^\s*\w/,!1)?(m.marked="keyword","enum"==t?cont(enumdef):"type"==t?cont(typename,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):c&&"namespace"==t?(m.marked="keyword",cont(pushlex("form"),expression,statement,poplex)):c&&"abstract"==t?(m.marked="keyword",cont(statement)):cont(pushlex("stat"),maybelabel):"switch"==e?cont(pushlex("form"),parenExpr,expect("{"),pushlex("}","switch"),pushblockcontext,block,poplex,poplex,popcontext):"case"==e?cont(expression,expect(":")):"default"==e?cont(expect(":")):"catch"==e?cont(pushlex("form"),pushcontext,maybeCatchBinding,statement,poplex,popcontext):"export"==e?cont(pushlex("stat"),afterExport,poplex):"import"==e?cont(pushlex("stat"),afterImport,poplex):"async"==e?cont(statement):"@"==t?cont(expression,statement):pass(pushlex("stat"),expression,expect(";"),poplex)}function maybeCatchBinding(e){if("("==e)return cont(funarg,expect(")"))}function expression(e,t){return expressionInner(e,t,!1)}function expressionNoComma(e,t){return expressionInner(e,t,!0)}function parenExpr(e){return"("!=e?pass():cont(pushlex(")"),maybeexpression,expect(")"),poplex)}function expressionInner(e,t,n){if(m.state.fatArrowAt==m.stream.start){var r=n?arrowBodyNoComma:arrowBody;if("("==e)return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,expect("=>"),r,popcontext);if("variable"==e)return pass(pushcontext,pattern,expect("=>"),r,popcontext)}var o=n?maybeoperatorNoComma:maybeoperatorComma;return g.hasOwnProperty(e)?cont(o):"function"==e?cont(functiondef,o):"class"==e||c&&"interface"==t?(m.marked="keyword",cont(pushlex("form"),classExpression,poplex)):"keyword c"==e||"async"==e?cont(n?expressionNoComma:expression):"("==e?cont(pushlex(")"),maybeexpression,expect(")"),poplex,o):"operator"==e||"spread"==e?cont(n?expressionNoComma:expression):"["==e?cont(pushlex("]"),arrayLiteral,poplex,o):"{"==e?contCommasep(objprop,"}",null,o):"quasi"==e?pass(quasi,o):"new"==e?cont(maybeTarget(n)):"import"==e?cont(expression):cont()}function maybeexpression(e){return e.match(/[;\}\)\],]/)?pass():pass(expression)}function maybeoperatorComma(e,t){return","==e?cont(maybeexpression):maybeoperatorNoComma(e,t,!1)}function maybeoperatorNoComma(e,t,n){var r=0==n?maybeoperatorComma:maybeoperatorNoComma,o=0==n?expression:expressionNoComma;return"=>"==e?cont(pushcontext,n?arrowBodyNoComma:arrowBody,popcontext):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?cont(r):c&&"<"==t&&m.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?cont(pushlex(">"),commasep(typeexpr,">"),poplex,r):"?"==t?cont(expression,expect(":"),o):cont(o):"quasi"==e?pass(quasi,r):";"!=e?"("==e?contCommasep(expressionNoComma,")","call",r):"."==e?cont(property,r):"["==e?cont(pushlex("]"),maybeexpression,expect("]"),poplex,r):c&&"as"==t?(m.marked="keyword",cont(typeexpr,r)):"regexp"==e?(m.state.lastType=m.marked="operator",m.stream.backUp(m.stream.pos-m.stream.start-1),cont(o)):void 0:void 0}function quasi(e,t){return"quasi"!=e?pass():"${"!=t.slice(t.length-2)?cont(quasi):cont(expression,continueQuasi)}function continueQuasi(e){if("}"==e)return m.marked="string-2",m.state.tokenize=tokenQuasi,cont(quasi)}function arrowBody(e){return findFatArrow(m.stream,m.state),pass("{"==e?statement:expression)}function arrowBodyNoComma(e){return findFatArrow(m.stream,m.state),pass("{"==e?statement:expressionNoComma)}function maybeTarget(e){return function(t){return"."==t?cont(e?targetNoComma:target):"variable"==t&&c?cont(maybeTypeArgs,e?maybeoperatorNoComma:maybeoperatorComma):pass(e?expressionNoComma:expression)}}function target(e,t){if("target"==t)return m.marked="keyword",cont(maybeoperatorComma)}function targetNoComma(e,t){if("target"==t)return m.marked="keyword",cont(maybeoperatorNoComma)}function maybelabel(e){return":"==e?cont(poplex,statement):pass(maybeoperatorComma,expect(";"),poplex)}function property(e){if("variable"==e)return m.marked="property",cont()}function objprop(e,t){if("async"==e)return m.marked="property",cont(objprop);if("variable"==e||"keyword"==m.style){return m.marked="property","get"==t||"set"==t?cont(getterSetter):(c&&m.state.fatArrowAt==m.stream.start&&(n=m.stream.match(/^\s*:\s*/,!1))&&(m.state.fatArrowAt=m.stream.pos+n[0].length),cont(afterprop));var n}else{if("number"==e||"string"==e)return m.marked=s?"property":m.style+" property",cont(afterprop);if("jsonld-keyword"==e)return cont(afterprop);if(c&&isModifier(t))return m.marked="keyword",cont(objprop);if("["==e)return cont(expression,maybetype,expect("]"),afterprop);if("spread"==e)return cont(expressionNoComma,afterprop);if("*"==t)return m.marked="keyword",cont(objprop);if(":"==e)return pass(afterprop)}}function getterSetter(e){return"variable"!=e?pass(afterprop):(m.marked="property",cont(functiondef))}function afterprop(e){return":"==e?cont(expressionNoComma):"("==e?pass(functiondef):void 0}function commasep(e,t,n){function proceed(r,o){if(n?n.indexOf(r)>-1:","==r){var i=m.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),cont(function(n,r){return n==t||r==t?pass():pass(e)},proceed)}return r==t||o==t?cont():n&&n.indexOf(";")>-1?pass(e):cont(expect(t))}return function(n,r){return n==t||r==t?cont():pass(e,proceed)}}function contCommasep(e,t,n){for(var r=3;r"),typeexpr):void 0}function maybeReturnType(e){if("=>"==e)return cont(typeexpr)}function typeprop(e,t){return"variable"==e||"keyword"==m.style?(m.marked="property",cont(typeprop)):"?"==t||"number"==e||"string"==e?cont(typeprop):":"==e?cont(typeexpr):"["==e?cont(expect("variable"),maybetypeOrIn,expect("]"),typeprop):"("==e?pass(functiondecl,typeprop):void 0}function typearg(e,t){return"variable"==e&&m.stream.match(/^\s*[?:]/,!1)||"?"==t?cont(typearg):":"==e?cont(typeexpr):"spread"==e?cont(typearg):pass(typeexpr)}function afterType(e,t){return"<"==t?cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType):"|"==t||"."==e||"&"==t?cont(typeexpr):"["==e?cont(typeexpr,expect("]"),afterType):"extends"==t||"implements"==t?(m.marked="keyword",cont(typeexpr)):"?"==t?cont(typeexpr,expect(":"),typeexpr):void 0}function maybeTypeArgs(e,t){if("<"==t)return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType)}function typeparam(){return pass(typeexpr,maybeTypeDefault)}function maybeTypeDefault(e,t){if("="==t)return cont(typeexpr)}function vardef(e,t){return"enum"==t?(m.marked="keyword",cont(enumdef)):pass(pattern,maybetype,maybeAssign,vardefCont)}function pattern(e,t){return c&&isModifier(t)?(m.marked="keyword",cont(pattern)):"variable"==e?(register(t),cont()):"spread"==e?cont(pattern):"["==e?contCommasep(eltpattern,"]"):"{"==e?contCommasep(proppattern,"}"):void 0}function proppattern(e,t){return"variable"!=e||m.stream.match(/^\s*:/,!1)?("variable"==e&&(m.marked="property"),"spread"==e?cont(pattern):"}"==e?pass():"["==e?cont(expression,expect("]"),expect(":"),proppattern):cont(expect(":"),pattern,maybeAssign)):(register(t),cont(maybeAssign))}function eltpattern(){return pass(pattern,maybeAssign)}function maybeAssign(e,t){if("="==t)return cont(expressionNoComma)}function vardefCont(e){if(","==e)return cont(vardef)}function maybeelse(e,t){if("keyword b"==e&&"else"==t)return cont(pushlex("form","else"),statement,poplex)}function forspec(e,t){return"await"==t?cont(forspec):"("==e?cont(pushlex(")"),forspec1,poplex):void 0}function forspec1(e){return"var"==e?cont(vardef,forspec2):"variable"==e?cont(forspec2):pass(forspec2)}function forspec2(e,t){return")"==e?cont():";"==e?cont(forspec2):"in"==t||"of"==t?(m.marked="keyword",cont(expression,forspec2)):pass(expression,forspec2)}function functiondef(e,t){return"*"==t?(m.marked="keyword",cont(functiondef)):"variable"==e?(register(t),cont(functiondef)):"("==e?cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,statement,popcontext):c&&"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondef):void 0}function functiondecl(e,t){return"*"==t?(m.marked="keyword",cont(functiondecl)):"variable"==e?(register(t),cont(functiondecl)):"("==e?cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,popcontext):c&&"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondecl):void 0}function typename(e,t){return"keyword"==e||"variable"==e?(m.marked="type",cont(typename)):"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex):void 0}function funarg(e,t){return"@"==t&&cont(expression,funarg),"spread"==e?cont(funarg):c&&isModifier(t)?(m.marked="keyword",cont(funarg)):c&&"this"==e?cont(maybetype,maybeAssign):pass(pattern,maybetype,maybeAssign)}function classExpression(e,t){return"variable"==e?className(e,t):classNameAfter(e,t)}function className(e,t){if("variable"==e)return register(t),cont(classNameAfter)}function classNameAfter(e,t){return"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex,classNameAfter):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(m.marked="keyword"),cont(c?typeexpr:expression,classNameAfter)):"{"==e?cont(pushlex("}"),classBody,poplex):void 0}function classBody(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&isModifier(t))&&m.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(m.marked="keyword",cont(classBody)):"variable"==e||"keyword"==m.style?(m.marked="property",cont(classfield,classBody)):"number"==e||"string"==e?cont(classfield,classBody):"["==e?cont(expression,maybetype,expect("]"),classfield,classBody):"*"==t?(m.marked="keyword",cont(classBody)):c&&"("==e?pass(functiondecl,classBody):";"==e||","==e?cont(classBody):"}"==e?cont():"@"==t?cont(expression,classBody):void 0}function classfield(e,t){if("?"==t)return cont(classfield);if(":"==e)return cont(typeexpr,maybeAssign);if("="==t)return cont(expressionNoComma);var n=m.state.lexical.prev,r=n&&"interface"==n.info;return pass(r?functiondecl:functiondef)}function afterExport(e,t){return"*"==t?(m.marked="keyword",cont(maybeFrom,expect(";"))):"default"==t?(m.marked="keyword",cont(expression,expect(";"))):"{"==e?cont(commasep(exportField,"}"),maybeFrom,expect(";")):pass(statement)}function exportField(e,t){return"as"==t?(m.marked="keyword",cont(expect("variable"))):"variable"==e?pass(expressionNoComma,exportField):void 0}function afterImport(e){return"string"==e?cont():"("==e?pass(expression):pass(importSpec,maybeMoreImports,maybeFrom)}function importSpec(e,t){return"{"==e?contCommasep(importSpec,"}"):("variable"==e&®ister(t),"*"==t&&(m.marked="keyword"),cont(maybeAs))}function maybeMoreImports(e){if(","==e)return cont(importSpec,maybeMoreImports)}function maybeAs(e,t){if("as"==t)return m.marked="keyword",cont(importSpec)}function maybeFrom(e,t){if("from"==t)return m.marked="keyword",cont(expression)}function arrayLiteral(e){return"]"==e?cont():pass(commasep(expressionNoComma,"]"))}function enumdef(){return pass(pushlex("form"),pattern,expect("{"),pushlex("}"),commasep(enummember,"}"),poplex,poplex)}function enummember(){return pass(pattern,maybeAssign)}function isContinuedStatement(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function expressionAllowed(e,t,n){return t.tokenize==tokenBase&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return popcontext.lex=!0,poplex.lex=!0,{startState:function(e){var t={tokenize:tokenBase,lastType:"sof",cc:[],lexical:new JSLexical((e||0)-i,0,"block",!1),localVars:n.localVars,context:n.localVars&&new Context(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),findFatArrow(e,t)),t.tokenize!=tokenComment&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=o&&"--"!=o?r:"incdec",parseJS(t,n,r,o,e))},indent:function(t,r){if(t.tokenize==tokenComment||t.tokenize==tokenQuasi)return e.Pass;if(t.tokenize!=tokenBase)return 0;var o,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==poplex)l=l.prev;else if(u!=maybeelse)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==maybeoperatorComma||o==maybeoperatorNoComma)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(isContinuedStatement(t,r)?a||i:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:i):l.indented+(/^(?:case|default)\b/.test(r)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:expressionAllowed,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=expression&&t!=expressionNoComma||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(496))},501:function(e,t,n){var r=n(502);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},502:function(e,t,n){(e.exports=n(46)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""])},503:function(e,t,n){var r=n(504);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},504:function(e,t,n){(e.exports=n(46)(!1)).push([e.i,"/*\n\n Name: Base16 Default Light\n Author: Chris Kempson (http://chriskempson.com)\n\n CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)\n Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)\n\n*/\n\n.cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; }\n.cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; }\n.cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }\n.cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }\n.cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; }\n.cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; }\n\n.cm-s-base16-light span.cm-comment { color: #8f5536; }\n.cm-s-base16-light span.cm-atom { color: #aa759f; }\n.cm-s-base16-light span.cm-number { color: #aa759f; }\n\n.cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; }\n.cm-s-base16-light span.cm-keyword { color: #ac4142; }\n.cm-s-base16-light span.cm-string { color: #f4bf75; }\n\n.cm-s-base16-light span.cm-variable { color: #90a959; }\n.cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; }\n.cm-s-base16-light span.cm-def { color: #d28445; }\n.cm-s-base16-light span.cm-bracket { color: #202020; }\n.cm-s-base16-light span.cm-tag { color: #ac4142; }\n.cm-s-base16-light span.cm-link { color: #aa759f; }\n.cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; }\n\n.cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; }\n.cm-s-base16-light .CodeMirror-matchingbracket { color: #f5f5f5 !important; background-color: #6A9FB5 !important}\n",""])},505:function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",function(){return f});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(8),l=n(152),c=n.n(l),u=n(497),d=(n(498),Object.assign||function(e){for(var t=1;t>1}},OrderedMap.from=function(e){if(e instanceof OrderedMap)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new OrderedMap(t)};var r=OrderedMap;function findDiffStart(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){var s=findDiffStart(o.content,i.content,n+1);if(null!=s)return s}n+=o.nodeSize}else n+=o.nodeSize}}function findDiffEnd(e,t,n,r){for(var o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){for(var c=0,u=Math.min(a.text.length,s.text.length);ce&&!1!==n(s,r+a,o,i)&&s.content.size){var c=a+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}a=l}},o.prototype.descendants=function descendants(e){this.nodesBetween(0,this.size,e)},o.prototype.textBetween=function textBetween(e,t,n,r){var o="",i=!0;return this.nodesBetween(e,t,function(a,s){a.isText?(o+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf&&r?(o+=r,i=!n):!i&&a.isBlock&&(o+=n,i=!0)},0),o},o.prototype.append=function append(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);ie)for(var i=0,a=0;ae&&((at)&&(s=s.isText?s.cut(Math.max(0,e-a),Math.min(s.text.length,t-a)):s.cut(Math.max(0,e-a-1),Math.min(s.content.size,t-a-1))),n.push(s),r+=s.nodeSize),a=l}return new o(n,r)},o.prototype.cutByIndex=function cutByIndex(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))},o.prototype.replaceChild=function replaceChild(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new o(r,i)},o.prototype.addToStart=function addToStart(e){return new o([e].concat(this.content),this.size+e.nodeSize)},o.prototype.addToEnd=function addToEnd(e){return new o(this.content.concat(e),this.size+e.nodeSize)},o.prototype.eq=function eq(e){if(this.content.length!=e.content.length)return!1;for(var t=0;tthis.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?retIndex(n+1,o):retIndex(n,r);r=o}},o.prototype.toString=function toString(){return"<"+this.toStringInner()+">"},o.prototype.toStringInner=function toStringInner(){return this.content.join(", ")},o.prototype.toJSON=function toJSON(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null},o.fromJSON=function fromJSON(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new o(t.map(e.nodeFromJSON))},o.fromArray=function fromArray(e){if(!e.length)return o.empty;for(var t,n=0,r=0;rthis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},s.prototype.removeFromSet=function removeFromSet(e){for(var t=0;te.depth)throw new ReplaceError("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ReplaceError("Inconsistent open depths");return replaceOuter(e,t,n,0)}function replaceOuter(e,t,n,r){var o=e.index(r),i=e.node(r);if(o==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function addRange(e,t,n,r){var o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(addNode(e.nodeAfter,r),i++));for(var s=i;si&&joinable(e,t,i+1),s=r.depth>i&&joinable(n,r,i+1),l=[];return addRange(null,e,i,l),a&&s&&t.index(i)==n.index(i)?(checkJoin(a,s),addNode(index_es_close(a,replaceThreeWay(e,t,n,r,i+1)),l)):(a&&addNode(index_es_close(a,replaceTwoWay(e,t,i+1)),l),addRange(t,n,i,l),s&&addNode(index_es_close(s,replaceTwoWay(n,r,i+1)),l)),addRange(r,null,i,l),new o(l)}function replaceTwoWay(e,t,n){var r=[];(addRange(null,e,n,r),e.depth>n)&&addNode(index_es_close(joinable(e,t,n+1),replaceTwoWay(e,t,n+1)),r);return addRange(t,null,n,r),new o(r)}function prepareSliceForReplace(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),i=n-1;i>=0;i--)r=t.node(i).copy(o.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}c.size.get=function(){return this.content.size-this.openStart-this.openEnd},l.prototype.insertAt=function insertAt(e,t){var n=insertInto(this.content,e+this.openStart,t,null);return n&&new l(n,this.openStart,this.openEnd)},l.prototype.removeBetween=function removeBetween(e,t){return new l(removeRange(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},l.prototype.eq=function eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},l.prototype.toString=function toString(){return this.content+"("+this.openStart+","+this.openEnd+")"},l.prototype.toJSON=function toJSON(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},l.fromJSON=function fromJSON(e,t){if(!t)return l.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new l(o.fromJSON(e,t.content),n,r)},l.maxOpen=function maxOpen(e,t){void 0===t&&(t=!0);for(var n=0,r=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new l(e,n,r)},Object.defineProperties(l.prototype,c),l.empty=new l(o.empty,0,0);var u=function ResolvedPos(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},p={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};u.prototype.resolveDepth=function resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e},p.parent.get=function(){return this.node(this.depth)},p.doc.get=function(){return this.node(0)},u.prototype.node=function node(e){return this.path[3*this.resolveDepth(e)]},u.prototype.index=function index(e){return this.path[3*this.resolveDepth(e)+1]},u.prototype.indexAfter=function indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},u.prototype.start=function start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},u.prototype.end=function end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},u.prototype.before=function before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},u.prototype.after=function after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},p.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},p.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},p.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},u.prototype.posAtIndex=function posAtIndex(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,o=0;o0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},u.prototype.blockRange=function blockRange(e,t){if(void 0===e&&(e=this),e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new m(this,e,n)},u.prototype.sameParent=function sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},u.prototype.max=function max(e){return e.pos>this.pos?e:this},u.prototype.min=function min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,o=t,i=e;;){var a=i.content.findIndex(o),s=a.index,l=a.offset,c=o-l;if(n.push(i,s,r+l),!c)break;if((i=i.child(s)).isText)break;o=c-1,r+=l+1}return new u(t,n,o)},u.resolveCached=function resolveCached(e,t){for(var n=0;ne&&this.nodesBetween(e,t,function(e){return n.isInSet(e.marks)&&(r=!0),!r}),r},b.isBlock.get=function(){return this.type.isBlock},b.isTextblock.get=function(){return this.type.isTextblock},b.inlineContent.get=function(){return this.type.inlineContent},b.isInline.get=function(){return this.type.isInline},b.isText.get=function(){return this.type.isText},b.isLeaf.get=function(){return this.type.isLeaf},b.isAtom.get=function(){return this.type.isAtom},y.prototype.toString=function toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),wrapMarks(this.marks,e)},y.prototype.contentMatchAt=function contentMatchAt(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},y.prototype.canReplace=function canReplace(e,t,n,r,i){void 0===n&&(n=o.empty),void 0===r&&(r=0),void 0===i&&(i=n.childCount);var a=this.contentMatchAt(e).matchFragment(n,r,i),s=a&&a.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(var l=r;l=0;n--)t=e[n].type.name+"("+t+")";return t}var k=function ContentMatch(e){this.validEnd=e,this.next=[],this.wrapCache=[]},x={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};k.parse=function parse(e,t){var n=new C(e,t);if(null==n.next)return k.empty;var r=parseExpr(n);n.next&&n.err("Unexpected trailing text");var o=dfa(nfa(r));return checkForDeadEnds(o,n),o},k.prototype.matchType=function matchType(e){for(var t=0;t>1},k.prototype.edge=function edge(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},k.prototype.toString=function toString(){var e=[];return function scan(t){e.push(t);for(var n=1;n"+e.indexOf(t.next[o+1]);return r}).join("\n")},Object.defineProperties(k.prototype,x),k.empty=new k(!0);var C=function TokenStream(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.unshift()},S={next:{configurable:!0}};function parseExpr(e){var t=[];do{t.push(parseExprSeq(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function parseExprSeq(e){var t=[];do{t.push(parseExprSubscript(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function parseExprSubscript(e){for(var t=parseExprAtom(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=parseExprRange(e,t)}return t}function parseNum(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function parseExprRange(e,t){var n=parseNum(e),r=n;return e.eat(",")&&(r="}"!=e.next?parseNum(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function resolveName(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var i in n){var a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}function parseExprAtom(e){if(e.eat("(")){var t=parseExpr(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=resolveName(e,e.next).map(function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}});return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}function nfa(e){var t=[[]];return connect(function compile(e,t){if("choice"==e.type)return e.exprs.reduce(function(e,n){return e.concat(compile(n,t))},[]);if("seq"==e.type)for(var n=0;;n++){var r=compile(e.exprs[n],t);if(n==e.exprs.length-1)return r;connect(r,t=node())}else{if("star"==e.type){var o=node();return edge(t,o),connect(compile(e.expr,o),o),[edge(o)]}if("plus"==e.type){var i=node();return connect(compile(e.expr,t),i),connect(compile(e.expr,i),i),[edge(i)]}if("opt"==e.type)return[edge(t)].concat(compile(e.expr,t));if("range"==e.type){for(var a=t,s=0;s-1&&r[i+1];nullFrom(e,o).forEach(function(e){a||r.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)})}})});var o=t[n.join(",")]=new k(n.indexOf(e.length-1)>-1);for(var i=0;i-1},E.prototype.allowsMarks=function allowsMarks(e){if(null==this.markSet)return!0;for(var t=0;t-1};var A=function Schema(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=r.from(e.nodes),this.spec.marks=r.from(e.marks),this.nodes=E.compile(this.spec.nodes,this),this.marks=M.compile(this.spec.marks,this);var n=Object.create(null);for(var o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");var i=this.nodes[o],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[a]||(n[a]=k.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?gatherMarks(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var l in this.marks){var c=this.marks[l],u=c.spec.excludes;c.excluded=null==u?[c]:""==u?[]:gatherMarks(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function gatherMarks(e,t){for(var n=[],r=0;r-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}A.prototype.node=function node(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof E))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},A.prototype.text=function text(e,t){var n=this.nodes.text;return new w(n,n.defaultAttrs,e,s.setFrom(t))},A.prototype.mark=function mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},A.prototype.nodeFromJSON=function nodeFromJSON(e){return y.fromJSON(this,e)},A.prototype.markFromJSON=function markFromJSON(e){return s.fromJSON(this,e)},A.prototype.nodeType=function nodeType(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var T=function DOMParser(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)}),this.normalizeLists=!this.tags.some(function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)})};T.prototype.parse=function parse(e,t){void 0===t&&(t={});var n=new I(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},T.prototype.parseSlice=function parseSlice(e,t){void 0===t&&(t={});var n=new I(this,t,!0);return n.addAll(e,null,t.from,t.to),l.maxOpen(n.finish())},T.prototype.matchTag=function matchTag(e,t){for(var n=0;ne.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var i=o.getAttrs(t);if(!1===i)continue;o.attrs=i}return o}}},T.schemaRules=function schemaRules(e){var t=[];function insert(e){for(var n=null==e.priority?50:e.priority,r=0;r=0;t--)if(this.stashMarks[t].type==e)return this.stashMarks.splice(t,1)[0]},j.prototype.applyPending=function applyPending(e){for(var t=0,n=this.pendingMarks;t=0;r--){var o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var a=0;athis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},I.prototype.finish=function finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},I.prototype.sync=function sync(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},B.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},I.prototype.findAtPoint=function findAtPoint(e,t){if(this.find)for(var n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,o=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),a=function(e,s){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;s>=i;s--)if(a(e-1,s))return!0;return!1}var c=s>0||0==s&&o?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!c||c.name!=l&&-1==c.groups.indexOf(l))return!1;s--}return!0};return a(n.length-1,this.open)},I.prototype.textblockFromContext=function textblockFromContext(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}},I.prototype.addPendingMark=function addPendingMark(e){var t=findSameTypeInSet(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},I.prototype.removePendingMark=function removePendingMark(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e.type);o&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(I.prototype,B);var q=function DOMSerializer(e,t){this.nodes=e||{},this.marks=t||{}};function gatherToDOM(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function doc(e){return e.document||window.document}q.prototype.serializeFragment=function serializeFragment(e,t,n){var r=this;void 0===t&&(t={}),n||(n=doc(t).createDocumentFragment());var o=n,i=null;return e.forEach(function(e){if(i||e.marks.length){i||(i=[]);for(var n=0,a=0;n=0;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},q.prototype.serializeMark=function serializeMark(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&q.renderSpec(doc(n),r(e,t))},q.renderSpec=function renderSpec(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r=t[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));var i=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var c in l=2,s)if(null!=s[c]){var u=c.indexOf(" ");u>0?a.setAttributeNS(c.slice(0,u),c.slice(u+1),s[c]):a.setAttribute(c,s[c])}for(var p=l;pl)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var f=q.renderSpec(e,d,n),h=f.dom,m=f.contentDOM;if(a.appendChild(h),m){if(i)throw new RangeError("Multiple content holes");i=m}}return{dom:a,contentDOM:i}},q.fromSchema=function fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new q(this.nodesFromSchema(e),this.marksFromSchema(e)))},q.nodesFromSchema=function nodesFromSchema(e){var t=gatherToDOM(e.nodes);return t.text||(t.text=function(e){return e.text}),t},q.marksFromSchema=function marksFromSchema(e){return gatherToDOM(e.marks)}},function(e,t,n){"use strict";n.r(t),n.d(t,"AllSelection",function(){return f}),n.d(t,"EditorState",function(){return b}),n.d(t,"NodeSelection",function(){return p}),n.d(t,"Plugin",function(){return x}),n.d(t,"PluginKey",function(){return S}),n.d(t,"Selection",function(){return a}),n.d(t,"SelectionRange",function(){return l}),n.d(t,"TextSelection",function(){return c}),n.d(t,"Transaction",function(){return m});var r=n(2),o=n(15),i=Object.create(null),a=function Selection(e,t,n){this.ranges=n||[new l(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},s={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};s.anchor.get=function(){return this.$anchor.pos},s.head.get=function(){return this.$head.pos},s.from.get=function(){return this.$from.pos},s.to.get=function(){return this.$to.pos},s.$from.get=function(){return this.ranges[0].$from},s.$to.get=function(){return this.ranges[0].$to},s.empty.get=function(){for(var e=this.ranges,t=0;t=0;o--){var i=t<0?findSelectionIn(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):findSelectionIn(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}},a.near=function near(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))},a.atStart=function atStart(e){return findSelectionIn(e,e,0,0,1)||new f(e)},a.atEnd=function atEnd(e){return findSelectionIn(e,e,e.content.size,e.childCount,-1)||new f(e)},a.fromJSON=function fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=i[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},a.jsonID=function jsonID(e,t){if(e in i)throw new RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t},a.prototype.getBookmark=function getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(a.prototype,s),a.prototype.visible=!0;var l=function SelectionRange(e,t){this.$from=e,this.$to=t},c=function(e){function TextSelection(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(TextSelection.__proto__=e),TextSelection.prototype=Object.create(e&&e.prototype),TextSelection.prototype.constructor=TextSelection;var t={$cursor:{configurable:!0}};return t.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},TextSelection.prototype.map=function map(t,n){var r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return e.near(r);var o=t.resolve(n.map(this.anchor));return new TextSelection(o.parent.inlineContent?o:r,r)},TextSelection.prototype.replace=function replace(t,n){if(void 0===n&&(n=r.Slice.empty),e.prototype.replace.call(this,t,n),n==r.Slice.empty){var o=this.$from.marksAcross(this.$to);o&&t.ensureMarks(o)}},TextSelection.prototype.eq=function eq(e){return e instanceof TextSelection&&e.anchor==this.anchor&&e.head==this.head},TextSelection.prototype.getBookmark=function getBookmark(){return new u(this.anchor,this.head)},TextSelection.prototype.toJSON=function toJSON(){return{type:"text",anchor:this.anchor,head:this.head}},TextSelection.fromJSON=function fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new TextSelection(e.resolve(t.anchor),e.resolve(t.head))},TextSelection.create=function create(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},TextSelection.between=function between(t,n,r){var o=t.pos-n.pos;if(r&&!o||(r=o>=0?1:-1),!n.parent.inlineContent){var i=e.findFrom(n,r,!0)||e.findFrom(n,-r,!0);if(!i)return e.near(n,r);n=i.$head}return t.parent.inlineContent||(0==o?t=n:(t=(e.findFrom(t,-r,!0)||e.findFrom(t,r,!0)).$anchor).pos0?0:1);o>0?a=0;a+=o){var s=t.child(a);if(s.isAtom){if(!i&&p.isSelectable(s))return p.create(e,n-(o<0?s.nodeSize:0))}else{var l=findSelectionIn(e,s,n+o,o<0?s.childCount:0,o,i);if(l)return l}n+=s.nodeSize*o}}function selectionToInsertionEnd(e,t,n){var r=e.steps.length-1;if(!(r0},Transaction.prototype.setStoredMarks=function setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this},Transaction.prototype.ensureMarks=function ensureMarks(e){return r.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},Transaction.prototype.addStoredMark=function addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},Transaction.prototype.removeStoredMark=function removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},t.storedMarksSet.get=function(){return(2&this.updated)>0},Transaction.prototype.addStep=function addStep(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},Transaction.prototype.setTime=function setTime(e){return this.time=e,this},Transaction.prototype.replaceSelection=function replaceSelection(e){return this.selection.replace(this,e),this},Transaction.prototype.replaceSelectionWith=function replaceSelectionWith(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.Mark.none))),n.replaceWith(this,e),this},Transaction.prototype.deleteSelection=function deleteSelection(){return this.selection.replace(this),this},Transaction.prototype.insertText=function insertText(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this},Transaction.prototype.setMeta=function setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},Transaction.prototype.getMeta=function getMeta(e){return this.meta["string"==typeof e?e:e.key]},t.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},Transaction.prototype.scrollIntoView=function scrollIntoView(){return this.updated|=4,this},t.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(Transaction.prototype,t),Transaction}(o.d);function bind(e,t){return t&&e?e.bind(t):e}var g=function FieldDesc(e,t,n){this.name=e,this.init=bind(t.init,n),this.apply=bind(t.apply,n)},v=[new g("doc",{init:function init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function apply(e){return e.doc}}),new g("selection",{init:function init(e,t){return e.selection||a.atStart(t.doc)},apply:function apply(e){return e.selection}}),new g("storedMarks",{init:function init(e){return e.storedMarks||null},apply:function apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new g("scrollToSelection",{init:function init(){return 0},apply:function apply(e,t){return e.scrolledIntoView?t+1:t}})],y=function Configuration(e,t){var n=this;this.schema=e,this.fields=v.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach(function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new g(e.key,e.spec.state,e))})},b=function EditorState(e){this.config=e},w={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};w.schema.get=function(){return this.config.schema},w.plugins.get=function(){return this.config.plugins},b.prototype.apply=function apply(e){return this.applyTransaction(e).state},b.prototype.filterTransaction=function filterTransaction(e,t){void 0===t&&(t=-1);for(var n=0;n-1&&k.splice(t,1)},Object.defineProperties(b.prototype,w);var k=[];function bindProps(e,t,n){for(var r in e){var o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=bindProps(o,t,{})),n[r]=o}return n}var x=function Plugin(e){this.props={},e.props&&bindProps(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:createKey("plugin")};x.prototype.getState=function getState(e){return e[this.key]};var C=Object.create(null);function createKey(e){return e in C?e+"$"+ ++C[e]:(C[e]=0,e+"$")}var S=function PluginKey(e){void 0===e&&(e="key"),this.key=createKey(e)};S.prototype.get=function get(e){return e.config.pluginsByKey[this.key]},S.prototype.getState=function getState(e){return e[this.key]}},function(e,t,n){"use strict";n.r(t),n.d(t,"Closeable",function(){return S}),n.d(t,"Tooltip",function(){return M}),n.d(t,"ToolbarButton",function(){return P}),n.d(t,"PrimaryButton",function(){return z}),n.d(t,"Icon",function(){return H}),n.d(t,"Input",function(){return X}),n.d(t,"Modal",function(){return oe}),n.d(t,"Popup",function(){return le}),n.d(t,"Space",function(){return fe}),n.d(t,"SpaceSize",function(){return pe}),n.d(t,"Spinner",function(){return be}),n.d(t,"Separator",function(){return ke});var r=n(5),o=n.n(r),i=n(23),a=n.n(i),s=n(25),l=n.n(s),c=n(14),u=n.n(c),p=n(26),d=n.n(p),f=n(27),h=n.n(f),m=n(17),g=n.n(m),v=n(10),y=n.n(v),b=n(1),w=n.n(b),k=n(0),x=n.n(k);function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var C,S=function Closeable(e){var t=function(t){d()(CloseableHOC,t);var n,r,i=(n=CloseableHOC,r=_isNativeReflectConstruct(),function _createSuperInternal(){var e,t=g()(n);if(r){var o=g()(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return h()(this,e)});function CloseableHOC(){var e;a()(this,CloseableHOC);for(var t=arguments.length,n=new Array(t),r=0;ri.width?p="calc(50% - ".concat(l/2,"px)"):p+l>i.width&&(p=i.width-l-4)<2&&(p=2);var d=o.y-i.y+(o.height||20)+1+6;if(!r&&d+u>i.height){var f=o.y-i.y-u-1;f>0&&(d=f)}var h="block";return(d<0||d>i.height)&&(h="none"),{popupPosition:{top:d,left:p,display:h}}},se=function(e){d()(Popup,e);var t,n,r=(t=Popup,n=Popup_isNativeReflectConstruct(),function _createSuperInternal(){var e,r=g()(t);if(n){var o=g()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return h()(this,e)});function Popup(){var e;a()(this,Popup);for(var t=arguments.length,n=new Array(t),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),i=n(0),a=n(90),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=Object(a.a)(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),c=n(11),u=n(42),p=n(40),d=l,f=function testOmitPropsOnComponent(e){return"theme"!==e&&"innerRef"!==e},h=function getDefaultShouldForwardProp(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f};function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t-1&&this.listeners.splice(t,1)},dispatch:function(e){this.listeners.forEach(function(t){t(e)})}})[0],s=p(f,t);return a.createElement(m.Provider,{value:{config:s,dispatcher:i,licenseKey:r}},o)},v=(m.Consumer,function(){return h({},Object(a.useContext)(m))}),y=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0})),!1!==s?a.createElement(j,{onChange:r,selectedBlockType:o(),options:c}):a.createElement(q,{onChange:r,selectedBlockType:o(),options:c})}},V=n(2),W=65535,H=Math.pow(2,16);function recoverIndex(e){return e&W}function recoverOffset(e){return(e-(e&W))/H}var $=function MapResult(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},K=function StepMap(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};K.prototype.recover=function recover(e){var t=0,n=recoverIndex(e);if(!this.inverted)for(var r=0;re)break;var l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){var p=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return p;var d=e==(t<0?s:u)?null:a/3+(e-s)*H;return new $(p,t<0?e!=s:e!=u,d)}r+=c-l}return n?e+r:new $(e+r)},K.prototype.touches=function touches(e,t){for(var n=0,r=recoverIndex(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1},K.prototype.forEach=function forEach(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},J.prototype.invert=function invert(){var e=new J;return e.appendMappingInverted(this),e},J.prototype.map=function map(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;no&&a0},G.prototype.addStep=function addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(G.prototype,X);var Z=Object.create(null),Y=function Step(){};Y.prototype.apply=function apply(e){return mustOverride()},Y.prototype.getMap=function getMap(){return K.empty},Y.prototype.invert=function invert(e){return mustOverride()},Y.prototype.map=function map(e){return mustOverride()},Y.prototype.merge=function merge(e){return null},Y.prototype.toJSON=function toJSON(){return mustOverride()},Y.fromJSON=function fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Z[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},Y.jsonID=function jsonID(e,t){if(e in Z)throw new RangeError("Duplicate use of step JSON ID "+e);return Z[e]=t,t.prototype.jsonID=e,t};var Q=function StepResult(e,t){this.doc=e,this.failed=t};Q.ok=function ok(e){return new Q(e,null)},Q.fail=function fail(e){return new Q(null,e)},Q.fromReplace=function fromReplace(e,t,n,r){try{return Q.ok(e.replace(t,n,r))}catch(e){if(e instanceof V.ReplaceError)return Q.fail(e.message);throw e}};var ee=function(e){function ReplaceStep(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(ReplaceStep.__proto__=e),ReplaceStep.prototype=Object.create(e&&e.prototype),ReplaceStep.prototype.constructor=ReplaceStep,ReplaceStep.prototype.apply=function apply(e){return this.structure&&contentBetween(e,this.from,this.to)?Q.fail("Structure replace would overwrite content"):Q.fromReplace(e,this.from,this.to,this.slice)},ReplaceStep.prototype.getMap=function getMap(){return new K([this.from,this.to-this.from,this.slice.size])},ReplaceStep.prototype.invert=function invert(e){return new ReplaceStep(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},ReplaceStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted?null:new ReplaceStep(t.pos,Math.max(t.pos,n.pos),this.slice)},ReplaceStep.prototype.merge=function merge(e){if(!(e instanceof ReplaceStep)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?V.Slice.empty:new V.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ReplaceStep(e.from,this.to,t,this.structure)}var n=this.slice.size+e.slice.size==0?V.Slice.empty:new V.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ReplaceStep(this.from,this.to+(e.to-e.from),n,this.structure)},ReplaceStep.prototype.toJSON=function toJSON(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},ReplaceStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ReplaceStep(t.from,t.to,V.Slice.fromJSON(e,t.slice),!!t.structure)},ReplaceStep}(Y);Y.jsonID("replace",ee);var te=function(e){function ReplaceAroundStep(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(ReplaceAroundStep.__proto__=e),ReplaceAroundStep.prototype=Object.create(e&&e.prototype),ReplaceAroundStep.prototype.constructor=ReplaceAroundStep,ReplaceAroundStep.prototype.apply=function apply(e){if(this.structure&&(contentBetween(e,this.from,this.gapFrom)||contentBetween(e,this.gapTo,this.to)))return Q.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Q.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Q.fromReplace(e,this.from,this.to,n):Q.fail("Content does not fit in gap")},ReplaceAroundStep.prototype.getMap=function getMap(){return new K([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},ReplaceAroundStep.prototype.invert=function invert(e){var t=this.gapTo-this.gapFrom;return new ReplaceAroundStep(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},ReplaceAroundStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deleted&&n.deleted||rn.pos?null:new ReplaceAroundStep(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)},ReplaceAroundStep.prototype.toJSON=function toJSON(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},ReplaceAroundStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ReplaceAroundStep(t.from,t.to,t.gapFrom,t.gapTo,V.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)},ReplaceAroundStep}(Y);function contentBetween(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function canCut(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function liftTarget(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(st;p--)d||n.index(p)>0?(d=!0,c=V.Fragment.from(n.node(p).copy(c)),u++):s--;for(var f=V.Fragment.empty,h=0,m=o,g=!1;m>t;m--)g||r.after(m+1)=0;r--)n=V.Fragment.from(t[r].type.create(t[r].attrs,n));var o=e.start,i=e.end;return this.step(new te(o,i,o,i,new V.Slice(n,0,0),t.length,!0))},G.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&canChangeType(o.doc,o.mapping.slice(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var a=o.mapping.slice(i),s=a.map(t,1),l=a.map(t+e.nodeSize,1);return o.step(new te(s,l,s+1,l-1,new V.Slice(V.Fragment.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}}),this},G.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new te(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new V.Slice(V.Fragment.from(i),0,0),1,!0))},G.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=V.Fragment.empty,i=V.Fragment.empty,a=r.depth,s=r.depth-t,l=t-1;a>s;a--,l--){o=V.Fragment.from(r.node(a).copy(o));var c=n&&n[l];i=V.Fragment.from(c?c.type.create(c.attrs,i):r.node(a).copy(i))}return this.step(new ee(e,e,new V.Slice(o.append(i),t,t),!0))},G.prototype.join=function(e,t){void 0===t&&(t=1);var n=new ee(e-t,e+t,V.Slice.empty,!0);return this.step(n)};var ne=function(e){function AddMarkStep(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(AddMarkStep.__proto__=e),AddMarkStep.prototype=Object.create(e&&e.prototype),AddMarkStep.prototype.constructor=AddMarkStep,AddMarkStep.prototype.apply=function apply(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new V.Slice(mapFragment(n.content,function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e},o),n.openStart,n.openEnd);return Q.fromReplace(e,this.from,this.to,i)},AddMarkStep.prototype.invert=function invert(){return new re(this.from,this.to,this.mark)},AddMarkStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new AddMarkStep(t.pos,n.pos,this.mark)},AddMarkStep.prototype.merge=function merge(e){if(e instanceof AddMarkStep&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new AddMarkStep(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},AddMarkStep.prototype.toJSON=function toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},AddMarkStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new AddMarkStep(t.from,t.to,e.markFromJSON(t.mark))},AddMarkStep}(Y);Y.jsonID("addMark",ne);var re=function(e){function RemoveMarkStep(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(RemoveMarkStep.__proto__=e),RemoveMarkStep.prototype=Object.create(e&&e.prototype),RemoveMarkStep.prototype.constructor=RemoveMarkStep,RemoveMarkStep.prototype.apply=function apply(e){var t=this,n=e.slice(this.from,this.to),r=new V.Slice(mapFragment(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))}),n.openStart,n.openEnd);return Q.fromReplace(e,this.from,this.to,r)},RemoveMarkStep.prototype.invert=function invert(){return new ne(this.from,this.to,this.mark)},RemoveMarkStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new RemoveMarkStep(t.pos,n.pos,this.mark)},RemoveMarkStep.prototype.merge=function merge(e){if(e instanceof RemoveMarkStep&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new RemoveMarkStep(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},RemoveMarkStep.prototype.toJSON=function toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},RemoveMarkStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new RemoveMarkStep(t.from,t.to,e.markFromJSON(t.mark))},RemoveMarkStep}(Y);function replaceStep(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=V.Slice.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return fitsTrivially(o,i,r)?new ee(t,n,r):new oe(o,i,r).fit()}function fitsTrivially(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Y.jsonID("removeMark",re),G.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var p=Math.max(l,e),d=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h=0;d--)this.step(o[d]);return this},G.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=V.Slice.empty);var r=replaceStep(this.doc,e,t,n);return r&&this.step(r),this},G.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new V.Slice(V.Fragment.from(n),0,0))},G.prototype.delete=function(e,t){return this.replace(e,t,V.Slice.empty)},G.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var oe=function Fitter(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=V.Fragment.empty;for(var i=e.depth;i>0;i--)this.placed=V.Fragment.from(e.node(i).copy(this.placed))},ie={depth:{configurable:!0}};function dropFromFragment(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(dropFromFragment(e.firstChild.content,t-1,n)))}function addToFragment(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(addToFragment(e.lastChild.content,t-1,n)))}function contentAt(e,t){for(var n=0;n1&&(r=r.replaceChild(0,closeNodeStart(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(V.Fragment.empty,!0)))),e.copy(r)}function contentAfterFits(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!invalidMarks(n,i.content,a)?s:null}function invalidMarks(e,t,n){for(var r=n;rr){var a=o.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(V.Fragment.empty,!0))}return e}function coveredDepths(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(ot.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}ie.depth.get=function(){return this.frontier.length-1},oe.prototype.fit=function fit(){for(;this.unplaced.size;){var fit=this.findFittable();fit?this.placeNodes(fit):this.openMore()||this.dropNode()}var e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;for(var o=this.placed,i=n.depth,a=r.depth;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;var s=new V.Slice(o,i,a);return e>-1?new te(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new ee(n.pos,r.pos,s):void 0},oe.prototype.findFittable=function findFittable(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=contentAt(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],a=i.type,s=i.match,l=void 0,c=void 0;if(1==e&&(r?s.matchType(r.type)||(c=s.fillBefore(V.Fragment.from(r),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&r&&(l=s.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:l};if(n&&s.matchType(n.type))break}},oe.prototype.openMore=function openMore(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=contentAt(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new V.Slice(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)},oe.prototype.dropNode=function dropNode(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=contentAt(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new V.Slice(dropFromFragment(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new V.Slice(dropFromFragment(t,n,1),n,r)},oe.prototype.placeNodes=function placeNodes(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a1||0==c||v.content.size)&&(f=y,p.push(closeNodeStart(v.mark(h.allowedMarks(v.marks)),1==u?c:0,u==l.childCount?g:-1)))}var b=u==l.childCount;b||(g=-1),b&&g<0&&r&&r.type==this.frontier[this.depth].type?this.closeFrontierNode():this.frontier[n].match=f;for(var w=0,k=l;w1&&r==this.$to.end(--n);)++r;return r},oe.prototype.findCloseLevel=function findCloseLevel(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t=0;s--){var l=this.frontier[s],c=l.match,u=contentAfterFits(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},oe.prototype.close=function close(e){var close=this.findCloseLevel(e);if(!close)return null;for(;this.depth>close.depth;)this.closeFrontierNode();close.fit.childCount&&(this.placed=addToFragment(this.placed,close.depth,close.fit)),e=close.move;for(var t=close.depth+1;t<=e.depth;t++){var n=e.node(t),r=n.type.contentMatch.fillBefore(n.content,!0,e.index(t));this.openFrontierNode(n.type,n.attrs,r)}return e},oe.prototype.openFrontierNode=function openFrontierNode(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=addToFragment(this.placed,this.depth,V.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},oe.prototype.closeFrontierNode=function closeFrontierNode(){var e=this.frontier.pop().match.fillBefore(V.Fragment.empty,!0);e.childCount&&(this.placed=addToFragment(this.placed,this.frontier.length,e))},Object.defineProperties(oe.prototype,ie),G.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(fitsTrivially(r,o,n))return this.step(new ee(e,t,n));var i=coveredDepths(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var a=-(r.depth+1);i.unshift(a);for(var s=r.depth,l=r.pos-1;s>0;s--,l--){var c=r.node(s).type.spec;if(c.defining||c.isolating)break;i.indexOf(s)>-1?a=s:r.before(s)==l&&i.splice(1,0,-s)}for(var u=i.indexOf(a),p=[],d=n.openStart,f=n.content,h=0;;h++){var m=f.firstChild;if(p.push(m),h==n.openStart)break;f=m.content}d>0&&p[d-1].type.spec.defining&&r.node(u).type!=p[d-1].type?d-=1:d>=2&&p[d-1].isTextblock&&p[d-2].type.spec.defining&&r.node(u).type!=p[d-2].type&&(d-=2);for(var g=n.openStart;g>=0;g--){var v=(g+d+1)%(n.openStart+1),y=p[v];if(y)for(var b=0;b=0&&(this.replace(e,t,n),!(this.steps.length>S));E--){var _=i[E];E<0||(e=r.before(_),t=o.after(_))}return this},G.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=insertPoint(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new V.Slice(V.Fragment.from(n),0,0))},G.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=coveredDepths(n,r),i=0;i0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var ae,se,le=n(24),ce=function(e){var t=e.selection,n=e.schema.nodes.blockquote;return Object(le.findParentNodeOfType)(n)(t)},ue=new O.PluginKey("blockquote"),pe=new O.Plugin({key:ue,state:{init:function(e,t){return{blockquoteNode:ce(t)}},apply:function(e,t,n,r){return{blockquoteNode:ce(r)}}}}),de=function(e,t){var n=e.tr,r=e.selection;return!!ue.getState(e).blockquoteNode&&(t(n.split(r.$to.pos)),!0)},fe=function(e,t){var n=e.tr,r=ue.getState(e).blockquoteNode,o=n.doc.resolve(r.start),i=n.doc.resolve(r.start+r.node.nodeSize-r.depth-1),a=o.blockRange(i);if(a){var s=liftTarget(a);null!==s&&void 0!==s&&t(n.lift(a,s).scrollIntoView())}return!0},he=function(e,t){var n=e.tr,r=e.selection,o=e.schema.nodes,i=o.blockquote,a=o.paragraph,s=r.$from,l=r.$to,c=s.blockRange(l);if(c){var u=c&&findWrapping(c,i);u&&n.wrap(c,u).scrollIntoView()}else n.replaceRangeWith(l.pos+1,l.pos+1,i.createAndFill(a.create())),n.setSelection(O.Selection.near(n.doc.resolve(e.selection.to+1))).scrollIntoView();return t(n),!0},me=function(e,t){return ue.getState(e).blockquoteNode?fe(e,t):he(e,t)},ge={insertBlockquote:{key:"Mod-'",label:"Blockquote"}},ve=T.nodes.blockquote,ye={KeymapInfo:ge,keymaps:function(){return{Enter:function(e,t){return de(e,t)},"Mod-'":function(e,t){return me(e,t)}}},name:"blockquote",pmPlugin:pe,schema:{nodes:{blockquote:ve}},styles:function(){return"\n .ProseMirror blockquote {\n box-sizing: border-box;\n padding-left: 16px;\n border-left: 2px solid rgb(223, 225, 230);\n margin: 1.143rem 0px 0px;\n }\n"},toolbarComponent:function(){var e=x().pmstate;if(!e)return null;var t=e.pmview;if(!t)return null;var n,r=(n=t.state,!!ue.getState(n).blockquoteNode);return a.createElement(L.ToolbarButton,{onClick:function(){var e=t.state,n=t.dispatch;me(e,n)},selected:r,title:B(ge.insertBlockquote)},a.createElement(L.Icon,{name:"blockquote",selected:r}))}},be=n(22),we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=t?Le.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Le.prototype.get=function get(e){if(!(e<0||e>=this.length))return this.getInner(e)},Le.prototype.forEach=function forEach(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Le.prototype.map=function map(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},Le.from=function from(e){return e instanceof Le?e:e&&e.length?new Ne(e):Le.empty};var Ne=function(e){function Leaf(t){e.call(this),this.values=t}e&&(Leaf.__proto__=e),Leaf.prototype=Object.create(e&&e.prototype),Leaf.prototype.constructor=Leaf;var t={length:{configurable:!0},depth:{configurable:!0}};return Leaf.prototype.flatten=function flatten(){return this.values},Leaf.prototype.sliceInner=function sliceInner(e,t){return 0==e&&t==this.length?this:new Leaf(this.values.slice(e,t))},Leaf.prototype.getInner=function getInner(e){return this.values[e]},Leaf.prototype.forEachInner=function forEachInner(e,t,n,r){for(var o=t;o=n;o--)if(!1===e(this.values[o],r+o))return!1},Leaf.prototype.leafAppend=function leafAppend(e){if(this.length+e.length<=200)return new Leaf(this.values.concat(e.flatten()))},Leaf.prototype.leafPrepend=function leafPrepend(e){if(this.length+e.length<=200)return new Leaf(e.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(Leaf.prototype,t),Leaf}(Le);Le.empty=new Ne([]);var Fe=function(e){function Append(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(Append.__proto__=e),Append.prototype=Object.create(e&&e.prototype),Append.prototype.constructor=Append,Append.prototype.flatten=function flatten(){return this.left.flatten().concat(this.right.flatten())},Append.prototype.getInner=function getInner(e){return eo&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},Append.prototype.forEachInvertedInner=function forEachInvertedInner(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},Append.prototype.leafAppend=function leafAppend(e){var t=this.right.leafAppend(e);if(t)return new Append(this.left,t)},Append.prototype.leafPrepend=function leafPrepend(e){var t=this.left.leafPrepend(e);if(t)return new Append(t,this.right)},Append.prototype.appendInner=function appendInner(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new Append(this.left,new Append(this.right,e)):new Append(this,e)},Append}(Le),je=Le,Ie=n(15),Be=function Branch(e,t){this.items=e,this.eventCount=t};function cutOffEvents(e,t){var n;return e.forEach(function(e,r){if(e.selection&&0==t--)return n=r,!1}),e.slice(n)}Be.prototype.popEvent=function popEvent(e,t){var n=this;if(0==this.eventCount)return null;for(var r,o,i=this.items.length;;i--){if(this.items.get(i-1).selection){--i;break}}t&&(r=this.remapping(i,this.items.length),o=r.maps.length);var a,s,l=e.tr,c=[],u=[];return this.items.forEach(function(e,t){if(!e.step)return r||(r=n.remapping(i,t+1),o=r.maps.length),o--,void u.push(e);if(r){u.push(new qe(e.map));var p,d=e.step.map(r.slice(o));d&&l.maybeStep(d).doc&&(p=l.mapping.maps[l.mapping.maps.length-1],c.push(new qe(p,null,null,c.length+u.length))),o--,p&&r.appendMap(p,o)}else l.maybeStep(e.step);return e.selection?(a=r?e.selection.map(r.slice(o)):e.selection,s=new Be(n.items.slice(0,i).append(u.reverse().concat(c)),n.eventCount-1),!1):void 0},this.items.length,0),{remaining:s,transform:l,selection:a}},Be.prototype.addTransform=function addTransform(e,t,n,r){for(var o=[],i=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null,l=0;lUe&&(a=cutOffEvents(a,d),i-=d),new Be(a.append(o),i)},Be.prototype.remapping=function remapping(e,t){var n=new Ie.a;return this.items.forEach(function(t,r){var o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,o)},e,t),n},Be.prototype.addMaps=function addMaps(e){return 0==this.eventCount?this:new Be(this.items.append(e.map(function(e){return new qe(e)})),this.eventCount)},Be.prototype.rebased=function rebased(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(function(e){e.selection&&a--},r);var s=t;this.items.forEach(function(t){var r=o.getMirror(--s);if(null!=r){i=Math.min(i,r);var l=o.maps[r];if(t.step){var c=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(o.slice(s+1,r));u&&a++,n.push(new qe(l,c,u))}else n.push(new qe(l))}},r);for(var l=[],c=t;c500&&(p=p.compress(this.items.length-n.length)),p},Be.prototype.emptyItemCount=function emptyItemCount(){var e=0;return this.items.forEach(function(t){t.step||e++}),e},Be.prototype.compress=function compress(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach(function(i,a){if(a>=e)r.push(i),i.selection&&o++;else if(i.step){var s=i.step.map(t.slice(n)),l=s&&s.getMap();if(n--,l&&t.appendMap(l,n),s){var c=i.selection&&i.selection.map(t.slice(n));c&&o++;var u,p=new qe(l.invert(),s,c),d=r.length-1;(u=r.length&&r[d].merge(p))?r[d]=u:r.push(p)}}else i.map&&n--},this.items.length,0),new Be(je.from(r.reverse()),o)},Be.empty=new Be(je.empty,0);var qe=function Item(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};qe.prototype.merge=function merge(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new qe(t.getMap().invert(),t,this.selection)}};var ze=function HistoryState(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},Ue=20;function applyTransaction(e,t,n,r){var o,i=n.getMeta(He);if(i)return i.historyState;n.getMeta($e)&&(e=new ze(e.done,e.undone,null,0));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(He))return a.getMeta(He).redo?new ze(e.done.addTransform(n,null,r,mustPreserveItems(t)),e.undone,rangesFor(n.mapping.maps[n.steps.length-1]),e.prevTime):new ze(e.done,e.undone.addTransform(n,null,r,mustPreserveItems(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new ze(e.done.rebased(n,o),e.undone.rebased(n,o),mapRanges(e.prevRanges,n.mapping),e.prevTime):new ze(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),mapRanges(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!a&&(e.prevTime<(n.time||0)-r.newGroupDelay||!isAdjacentTo(n,e.prevRanges)),l=a?mapRanges(e.prevRanges,n.mapping):rangesFor(n.mapping.maps[n.steps.length-1]);return new ze(e.done.addTransform(n,s?t.selection.getBookmark():null,r,mustPreserveItems(t)),Be.empty,l,n.time)}function isAdjacentTo(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach(function(e,r){for(var o=0;o=t[o]&&(n=!0)}),n}function rangesFor(e){var t=[];return e.forEach(function(e,n,r,o){return t.push(r,o)}),t}function mapRanges(e,t){if(!e)return null;for(var n=[],r=0;r img {\n width: auto;\n }\n }\n\n .nib-image-resize-lt {\n height: 10px;\n width: 10px;\n\n position: absolute;\n left: -5px;\n top: -5px;\n\n background-color: "+t.color.highlight.primary+";\n cursor: nwse-resize;\n }\n\n .nib-image-resize-rb {\n background-color: "+t.color.highlight.primary+";\n bottom: 0px;\n cursor: nwse-resize;\n \n height: 10px;\n position: absolute;\n right: -5px;\n width: 10px;\n }\n\n .nib-image-resize-lb {\n background-color: "+t.color.highlight.primary+";\n bottom: 0px;\n cursor: nesw-resize;\n \n height: 10px;\n left: -5px;\n position: absolute;\n width: 10px;\n }\n\n .nib-image-resize-rt {\n background-color: "+t.color.highlight.primary+";\n cursor: nesw-resize;\n\n height: 10px;\n position: absolute;\n right: -5px;\n top: -5px;\n width: 10px;\n }\n"},st=function(e){var t=x().pmstate;if(!t)return null;var n=Object(a.useState)(""),r=n[0],o=n[1],i=Object(a.useState)(!1),s=i[0],l=i[1],c=function(){if(r){var n=e.hideModal,o=t.pmview,i=o.state,a=o.dispatch,s=i.selection,c=s.$from,u=s.$to,p=i.schema.nodes.image;a(i.tr.replaceRangeWith(c.pos,u.pos,p.create({src:r}))),n(),o.focus()}else l(!0)},u=e.hideModal;return a.createElement(L.Modal,{hideModal:u,title:"Image",render:function(){return a.createElement(lt,null,a.createElement(ut,null,"Enter url or upload"),a.createElement(ct,null,a.createElement(dt,{placeholder:"Url",autoFocus:!0,value:r,onChange:function(e){return t=e.target.value,o(t),void l(s&&!t);var t},error:s}),a.createElement(pt,{src:r},r&&a.createElement(ht,{src:r,alt:"uploaded_image"})),a.createElement(ft,null,a.createElement(L.PrimaryButton,{onClick:c},"Insert"),a.createElement(L.Space,{size:L.SpaceSize.xl}),a.createElement(L.PrimaryButton,{onClick:u},"Cancel"))))}})},lt=C.a.div({},function(){return{padding:"0px 24px 10px",height:"100%"}}),ct=C.a.div({alignItems:"center",display:"flex",flexDirection:"column",height:"95%"}),ut=C.a.div({},function(e){return{fontSize:e.theme.constants.fontSize.large}}),pt=C.a.span({alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",height:"55%",width:"35%",minWidth:200,margin:"28px auto 0 auto",padding:20,backgroundRepeat:"no-repeat",backgroundSize:"contain"},function(e){var t=e.theme;return{border:e.src?"1px dashed "+t.constants.color.highlight.primary:"1px dashed "+t.constants.color.border.primary}}),dt=Object(C.a)(L.Input)({},function(){return{width:"75%",maxWidth:400,"> input":{width:"100%",margin:"0 auto"}}}),ft=C.a.div({display:"flex",marginTop:20}),ht=C.a.img({height:"auto",width:"auto",maxHeight:"100%",maxWidth:"100%"}),mt={KeymapInfo:ot,keymaps:function(){return{"Mod-p":rt}},name:"image",schema:it,pmPlugin:tt,styles:at,toolbarComponent:function(){var e=x().pmstate;if(!e)return null;var t=e.pmview;if(!t)return null;var n=nt(t.state);return a.createElement(a.Fragment,null,a.createElement(L.ToolbarButton,{disabled:n,onClick:function(){var e=t.state;(0,t.dispatch)(e.tr.setMeta("show-image-modal",!0))},title:B(ot.image)},a.createElement(L.Icon,{name:"image",selected:n})),et.getState(t.state).showImageModal&&a.createElement(st,{hideModal:function(){var e=t.state;(0,t.dispatch)(e.tr.setMeta("show-image-modal",!1))}}))}},gt=function(e,t){return function(n,r){var o=n.schema.marks[e];return Object(S.d)(o,t)(n,r)}},vt={strong:{key:"Mod-B",label:"Bold"},em:{key:"Mod-I",label:"Italic"},underline:{key:"Mod-U",label:"Underline"},strike:{key:"Mod-Shift-S",label:"Strikethrough"},code:{key:"Mod-Shift-M",label:"Code"}},yt=function(){for(var e=0,t=0,n=arguments.length;t=0){var n=!!d[t].isInSet(c);e.push(a.createElement(a.Fragment,{key:"inlinestyle-"+t},a.createElement(L.ToolbarButton,{name:t,onClick:s,selected:n,title:B(vt[t])},a.createElement(L.Icon,{name:Rt[t],selected:n}))))}return e},[]),f.indexOf("subsup")>=0&&a.createElement(a.Fragment,null,a.createElement(L.ToolbarButton,{name:"sup",onClick:function(){l("sup","sub")},selected:u,title:"Superscript"},a.createElement(L.Icon,{name:"sup",selected:u})),a.createElement(L.ToolbarButton,{name:"sub",onClick:function(){l("sub","sup")},selected:p,title:"Subscript"},a.createElement(L.Icon,{name:"sub",selected:p}))),f.indexOf("code")>=0&&a.createElement(L.ToolbarButton,{name:"code",onClick:function(){var e=n.pmview,t=e.state,r=e.dispatch,i=t.schema,a=t.selection,s=t.tr,l=a.$from,c=a.$to,u=i.marks,p=u.code;if(p.isInSet(o()))s.removeMark(l.pos,c.pos,p).setStoredMarks([]);else{Object.values(u).forEach(function(e){s.removeMark(l.pos,c.pos,e)});var d=p.create();s.addMark(l.pos,c.pos,d).setStoredMarks([d])}r(s)},selected:!!d.code.isInSet(c),title:B(vt.code)},a.createElement(L.Icon,{name:"code",selected:!!d.code.isInSet(c)})))}},At=function(){return(At=Object.assign||function(e){for(var t,n=1,r=arguments.length;n div:first-of-type":{marginBottom:8}}),zt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ut={name:"edit_link",getMarker:function(e){return e.current&&e.current.getElementsByClassName("nib-edit-link-marker")[0]},component:function(e){var t=e.editorWrapper,n=e.marker,r=x().pmstate;if(!r)return null;var o=r.pmview;if(!o)return null;var i=function(){var e=o.state,t=Tt.getState(e);return t&&t.link},s=i();if(!s)return null;var l=Object(a.useState)(i().href),c=l[0],u=l[1],p=function(){var e=i(),t=o.state;(0,o.dispatch)(t.tr.setSelection(O.TextSelection.create(t.tr.doc,e.to)).removeMark(e.from,e.to,t.schema.marks.link).addMark(e.from,e.to,t.schema.marks.link.create({href:c}))),f(),o.focus()},d=function(){var e=i(),t=o.state;(0,o.dispatch)(t.tr.removeMark(e.from,e.to,t.schema.marks.link)),o.focus(),f()},f=function(){var e=o.state;(0,o.dispatch)(e.tr.setMeta("show-edit-link-toolbar",!1))};return a.createElement(L.Popup,{onEscKeyPress:f,onClickOutsideEditor:f,editorWrapper:t,marker:n,render:function(){return a.createElement(Vt,null,a.createElement(L.Input,{placeholder:"Url",name:"href",onChange:function(e){return u(e.target.value)},defaultValue:s.href}),a.createElement(L.ToolbarButton,{onClick:p},a.createElement(L.Icon,{name:"check"})),a.createElement(L.ToolbarButton,{onClick:d},a.createElement(L.Icon,{name:"linkOff"})))}})}},Vt=C.a.div(Je||(Je=zt(["\n align-items: center;\n display: flex;\n padding: 4;\n ","\n"],["\n align-items: center;\n display: flex;\n padding: 4;\n ","\n"])),function(e){var t=e.theme.constants;return"\n border-radius: "+t.borderRadius+";\n font-size: "+t.fontSize.medium+";\n "}),Wt=T.marks.link,Ht={KeymapInfo:Ft,keymaps:function(){return{"Mod-k":Nt}},name:"link",pmPlugin:Pt,popups:[It,Ut],schema:{marks:{link:Wt}},toolbarComponent:function(){var e=x().pmstate;if(!e)return null;var t=e.pmview;if(!t)return null;var n=Lt(t.state);return a.createElement("span",{className:"nib-link-marker"},a.createElement(L.ToolbarButton,{name:"link",onClick:function(){t.hasFocus||t.focus();var e=t.state,n=t.dispatch;!0===Tt.getState(e).showAddLinkToolbar?n(e.tr.setMeta("show-add-link-toolbar",!1)):n(e.tr.setMeta("show-add-link-toolbar",!0))},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},disabled:n,title:B(Ft.link)},a.createElement(L.Icon,{name:"link",selected:n})))}};function wrapInList(e,t){return function(n,r){var o=n.selection,i=o.$from,a=o.$to,s=i.blockRange(a),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==i.index(s.depth-1))return!1;var u=n.doc.resolve(s.start-2);c=new V.NodeRange(u,u,s.depth),s.endIndex=0;a--)i=V.Fragment.from(n[a].type.create(n[a].attrs,i));e.step(new Ie.b(t.start-(r?2:0),t.end,t.start,t.end,new V.Slice(i,0,0),n.length,!0));for(var s=0,l=0;ls;a--)i-=o.child(a).nodeSize,r.delete(i-1,i+1);var l=r.doc.resolve(n.start),c=l.nodeAfter,u=0==n.startIndex,p=n.endIndex==o.childCount,d=l.node(-1),f=l.index(-1);if(!d.canReplace(f+(u?0:1),f+1,c.content.append(p?V.Fragment.empty:V.Fragment.from(o))))return!1;var h=l.pos,m=h+c.nodeSize;return r.step(new Ie.b(h-(u?1:0),m+(p?1:0),h+1,m-1,new V.Slice((u?V.Fragment.empty:V.Fragment.from(o.copy(V.Fragment.empty))).append(p?V.Fragment.empty:V.Fragment.from(o.copy(V.Fragment.empty))),u?0:1,p?0:1),u?0:1)),t(r.scrollIntoView()),!0}var $t,Kt,Jt,Gt=function(e,t,n){for(var r=e.selection.$from.depth;r>1;)liftListItem(n)(e,t),r-=2;return!0},Xt=function(e,t,n){return S.a(wrapInList(n),function(e,t){return e.type===t.type&&e.type===n})(e,t)},Zt=function(e,t){return function(n,r){var o=n.selection.$anchor,i=n.schema.nodes,a=o.node(o.depth-2),s=a&&a.type.name,l=o.node(o.depth-1);return(l&&l.type.name)===i.listItem.name?s!==e?(liftListItem(i.listItem)(n,r),Xt(t.state,r,i[e])):Gt(n,r,i.listItem):Xt(n,r,i[e])}},Yt={orderedList:{key:"Mod-Shift-7",label:"Numbered List"},bulletList:{key:"Mod-Shift-8",label:"Bullet List"}},Qt=function(e){var t=e.schema.nodes,n=t.bulletList,r=t.orderedList,o=e.selection.$from.node(-2);if(o&&(o.type===n||o.type===r))return o.type},en=new O.PluginKey("list"),tn=new O.Plugin({key:en,state:{init:function(e,t){return{selectedListType:Qt(t)}},apply:function(e,t,n,r){return e.docChanged||n.selection!==r.selection?{selectedListType:Qt(r)}:t}}}),nn=T.nodes.heading,rn=T.nodes.bulletList,on=T.nodes.listItem,an=T.nodes.orderedList,sn={KeymapInfo:Yt,keymaps:function(e){return{"Mod-Shift-7":function(t,n){return Zt("orderedList",e())(t,n)},"Mod-Shift-8":function(t,n){return Zt("bulletList",e())(t,n)},Enter:function(e,t){return function(e,t){var n,r=e.selection.$anchor,o=e.schema.nodes,i=r.node(r.depth-1);return i.type===o.listItem&&(i.textContent.length>0?(n=o.listItem,function(e,t){var r=e.selection,o=r.$from,i=r.$to,a=r.node;if(a&&a.isBlock||o.depth<2||!o.sameParent(i))return!1;var s=o.node(-1);if(s.type!=n)return!1;if(0==o.parent.content.size&&o.node(-1).childCount==o.indexAfter(-1)){if(2==o.depth||o.node(-3).type!=n||o.index(-2)!=o.node(-2).childCount-1)return!1;if(t){for(var l=V.Fragment.empty,c=o.index(-1)>0,u=o.depth-(c?1:2);u>=o.depth-3;u--)l=V.Fragment.from(o.node(u).copy(l));l=l.append(V.Fragment.from(n.createAndFill()));var p=e.tr.replace(o.before(c?null:-1),o.after(-3),new V.Slice(l,c?3:2,2));p.setSelection(e.selection.constructor.near(p.doc.resolve(o.pos+(c?3:2)))),t(p.scrollIntoView())}return!0}var d=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,f=e.tr.delete(o.pos,i.pos),h=d&&[null,{type:d}];return!!Object(Ie.f)(f.doc,o.pos,2,h)&&(t&&t(f.split(o.pos,2,h).scrollIntoView()),!0)})(e,t):liftListItem(o.listItem)(e,t))}(e,t)},Tab:function(e,t){return(n=e.schema.nodes.listItem,function(e,t){var r=e.selection,o=r.$from,i=r.$to,a=o.blockRange(i,function(e){return e.childCount&&e.firstChild.type==n});if(!a)return!1;var s=a.startIndex;if(0==s)return!1;var l=a.parent,c=l.child(s-1);if(c.type!=n)return!1;if(t){var u=c.lastChild&&c.lastChild.type==l.type,p=V.Fragment.from(u?n.create():null),d=new V.Slice(V.Fragment.from(n.create(null,V.Fragment.from(l.type.create(null,p)))),u?3:1,0),f=a.start,h=a.end;t(e.tr.step(new Ie.b(f-(u?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0})(e,t);var n},"Shift-Tab":function(e,t){return liftListItem(e.schema.nodes.listItem)(e,t)}}},name:"list",pmPlugin:tn,schema:{nodes:{heading:nn,bulletList:rn,listItem:on,orderedList:an}},styles:function(){return'\n .ProseMirror li {\n position: relative;\n }\n\n /* Make sure li selections wrap around markers */\n\n li.ProseMirror - selectednode {\n outline: none;\n }\n\n li.ProseMirror - selectednode: after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n }\n'},toolbarComponent:function(){var e=x().pmstate;if(!e)return null;var t=e.pmview;if(!t)return null;var n=function(e){var n=e.currentTarget.getAttribute("name"),r=t.state,o=t.dispatch;Zt(n,t)(r,o)},r=function(){var e=t.state,n=en.getState(e),r=n&&n.selectedListType;return r&&r.name}(),o="bulletList"===r,i="orderedList"===r;return a.createElement(a.Fragment,null,a.createElement(L.ToolbarButton,{name:"bulletList",onClick:n,selected:o,title:B(Yt.bulletList)},a.createElement(L.Icon,{name:"listBulleted",selected:o})),a.createElement(L.ToolbarButton,{name:"orderedList",onClick:n,selected:i,title:B(Yt.orderedList)},a.createElement(L.Icon,{name:"listNumbered",selected:i})))}},ln={block:U,blockquote:ye,common:xe,color:De,history:Ze,image:mt,inline:Mt,link:Ht,list:sn},cn=function(e){return e.trim().split(" ").filter(function(e){return"help"!==e}).map(function(e){return ln[e]})},un=function(e,t){var n=cn(e).filter(function(e){return e.KeymapInfo}).map(function(e){return{name:e.name,keymaps:e.KeymapInfo&&Object.values(e.KeymapInfo)}});return t&&t.forEach(function(e){var t=e.name,r=e.KeymapInfo;r&&n.push({name:t,keymaps:Object.values(r)})}),n.push({name:"help",keymaps:Object.values(Pe)}),n},pn=function(e){var t="⌘";"Windows"===I()&&(t="^");var n=e.replace("Mod",t);return n=(n=(n=n.replace(/-/g," + ")).replace("Shift","⇧")).replace("Alt","⌥")},dn=function(){for(var e=0,t=0,n=arguments.length;t=0||n.some(function(t){return t.name===e})||"history"===e});return Rn(o,n).map(function(e){return{name:e.name,toolbarComponent:e.toolbarComponent}})},Ln=function(){return(Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&c.push(jn),c),d=Object(a.useState)(Dn(i,p,r,[])),f=d[0],h=d[1];if(Object(a.useEffect)(function(){h(Dn(i,p,r,f||[]))},[i]),!f.length)return null;var m=f[f.length-1],g=m.PopupComponent,y=m.marker,b=f.filter(function(e){return"table_menu"===e.name||"cell_menu"===e.name});return a.createElement(a.Fragment,null,a.createElement(g,{pmstate:i,editorWrapper:r,marker:y,theme:o}),b.map(function(e){var t=e.PopupComponent,n=e.marker;return a.createElement(t,{key:"popup_"+e.name,pmstate:i,editorWrapper:r,marker:n,theme:o})}))}),qn=Object(s.withTheme)(function(e){var t=e.editorWrapper,n=e.plugins,r=e.theme,o=x().pmstate;return a.createElement(a.Fragment,null,n.map(function(e){return e.toolbar&&e.toolbar.map(function(n,i){return a.createElement(n,{key:"plugin-toolbar-"+e.name+"-"+i,editorWrapper:t,pmstate:o,theme:r})})}))}),zn=function(){return(zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0,s=e.addons;return Object(a.useEffect)(function(){var t=e.licenseKey,n=null===s||void 0===s?void 0:s.filter(function(e){return"video"!==e.name&&"table"!==e.name});n&&n.length&&pr.get("https://licencecheck.herokuapp.com/licenceCheck",{params:{licenseKey:t,plugins:n.map(function(e){return e.name})}}).then(function(e){"FAIL"===e.data.status&&r(!0)})},[e.licenseKey]),a.createElement(or,{ref:o},n&&a.createElement(dr,null,"Please get license to use advance plugins !"),i&&a.createElement(Wn,{editorWrapper:o,addons:s}),a.createElement(ar,ur({},e)),a.createElement(Bn,{editorWrapper:o,addons:s}),a.createElement(lr,{addons:s}),s&&a.createElement(qn,{editorWrapper:o,plugins:s}))},hr=function(){return(hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne)break;var u=this.ranges[l+o],p=this.ranges[l+s],d=c+u;if(e<=d){var f=c+r+((u?e==c?-1:e==d?1:t:t)<0?0:p);if(n)return f;var h=e==(t<0?c:d)?null:l/3+(e-c)*i;return new a(f,t<0?e!=c:e!=d,h)}r+=p-u}return n?e+r:new a(e+r)},s.prototype.touches=function touches(e,t){for(var n=0,r=recoverIndex(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1},s.prototype.forEach=function forEach(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},l.prototype.invert=function invert(){var e=new l;return e.appendMappingInverted(this),e},l.prototype.map=function map(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;no&&s0},c.prototype.addStep=function addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(c.prototype,u);var p=Object.create(null),d=function Step(){};d.prototype.apply=function apply(e){return mustOverride()},d.prototype.getMap=function getMap(){return s.empty},d.prototype.invert=function invert(e){return mustOverride()},d.prototype.map=function map(e){return mustOverride()},d.prototype.merge=function merge(e){return null},d.prototype.toJSON=function toJSON(){return mustOverride()},d.fromJSON=function fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=p[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},d.jsonID=function jsonID(e,t){if(e in p)throw new RangeError("Duplicate use of step JSON ID "+e);return p[e]=t,t.prototype.jsonID=e,t};var f=function StepResult(e,t){this.doc=e,this.failed=t};f.ok=function ok(e){return new f(e,null)},f.fail=function fail(e){return new f(null,e)},f.fromReplace=function fromReplace(e,t,n,o){try{return f.ok(e.replace(t,n,o))}catch(e){if(e instanceof r.ReplaceError)return f.fail(e.message);throw e}};var h=function(e){function ReplaceStep(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(ReplaceStep.__proto__=e),ReplaceStep.prototype=Object.create(e&&e.prototype),ReplaceStep.prototype.constructor=ReplaceStep,ReplaceStep.prototype.apply=function apply(e){return this.structure&&contentBetween(e,this.from,this.to)?f.fail("Structure replace would overwrite content"):f.fromReplace(e,this.from,this.to,this.slice)},ReplaceStep.prototype.getMap=function getMap(){return new s([this.from,this.to-this.from,this.slice.size])},ReplaceStep.prototype.invert=function invert(e){return new ReplaceStep(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},ReplaceStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted?null:new ReplaceStep(t.pos,Math.max(t.pos,n.pos),this.slice)},ReplaceStep.prototype.merge=function merge(e){if(!(e instanceof ReplaceStep)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ReplaceStep(e.from,this.to,t,this.structure)}var n=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ReplaceStep(this.from,this.to+(e.to-e.from),n,this.structure)},ReplaceStep.prototype.toJSON=function toJSON(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},ReplaceStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ReplaceStep(t.from,t.to,r.Slice.fromJSON(e,t.slice),!!t.structure)},ReplaceStep}(d);d.jsonID("replace",h);var m=function(e){function ReplaceAroundStep(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(ReplaceAroundStep.__proto__=e),ReplaceAroundStep.prototype=Object.create(e&&e.prototype),ReplaceAroundStep.prototype.constructor=ReplaceAroundStep,ReplaceAroundStep.prototype.apply=function apply(e){if(this.structure&&(contentBetween(e,this.from,this.gapFrom)||contentBetween(e,this.gapTo,this.to)))return f.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return f.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?f.fromReplace(e,this.from,this.to,n):f.fail("Content does not fit in gap")},ReplaceAroundStep.prototype.getMap=function getMap(){return new s([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},ReplaceAroundStep.prototype.invert=function invert(e){var t=this.gapTo-this.gapFrom;return new ReplaceAroundStep(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},ReplaceAroundStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deleted&&n.deleted||rn.pos?null:new ReplaceAroundStep(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)},ReplaceAroundStep.prototype.toJSON=function toJSON(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},ReplaceAroundStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ReplaceAroundStep(t.from,t.to,t.gapFrom,t.gapTo,r.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)},ReplaceAroundStep}(d);function contentBetween(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function canCut(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function liftTarget(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(ni;s--,l--){var c=o.node(s),u=o.index(s);if(c.type.spec.isolating)return!1;var p=c.content.cutByIndex(u,c.childCount),d=r&&r[l]||c;if(d!=c&&(p=p.replaceChild(0,d.type.create(d.attrs))),!c.canReplace(u+1,c.childCount)||!d.type.validContent(p))return!1}var f=o.indexAfter(i),h=r&&r[0];return o.node(i).canReplaceWith(f,f,h?h.type:o.node(i+1).type)}function canJoin(e,t){var n=e.resolve(t),r=n.index();return joinable(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function joinable(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function joinPoint(e,t,n){void 0===n&&(n=-1);for(var r=e.resolve(t),o=r.depth;;o--){var i=void 0,a=void 0,s=r.index(o);if(o==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(o+1),s++,a=r.node(o).maybeChild(s)):(i=r.node(o).maybeChild(s-1),a=r.node(o+1)),i&&!i.isTextblock&&joinable(i,a)&&r.node(o).canReplace(s,s+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}}function insertPoint(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0);if(1==a?r.node(s).canReplace(c,c,o):r.node(s).contentMatchAt(c).findWrapping(o.firstChild.type))return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function mapFragment(e,t,n){for(var o=[],i=0;it;d--)f||n.index(d)>0?(f=!0,u=r.Fragment.from(n.node(d).copy(u)),p++):l--;for(var h=r.Fragment.empty,g=0,v=i,y=!1;v>t;v--)y||o.after(v+1)=0;o--)n=r.Fragment.from(t[o].type.create(t[o].attrs,n));var i=e.start,a=e.end;return this.step(new m(i,a,i,a,new r.Slice(n,0,0),t.length,!0))},c.prototype.setBlockType=function(e,t,n,o){var i=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var a=this.steps.length;return this.doc.nodesBetween(e,t,function(e,t){if(e.isTextblock&&!e.hasMarkup(n,o)&&canChangeType(i.doc,i.mapping.slice(a).map(t),n)){i.clearIncompatible(i.mapping.slice(a).map(t,1),n);var s=i.mapping.slice(a),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return i.step(new m(l,c,l+1,c-1,new r.Slice(r.Fragment.from(n.create(o,null,e.marks)),0,0),1,!0)),!1}}),this},c.prototype.setNodeMarkup=function(e,t,n,o){var i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);var a=t.create(n,null,o||i.marks);if(i.isLeaf)return this.replaceWith(e,e+i.nodeSize,a);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new m(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new r.Slice(r.Fragment.from(a),0,0),1,!0))},c.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var o=this.doc.resolve(e),i=r.Fragment.empty,a=r.Fragment.empty,s=o.depth,l=o.depth-t,c=t-1;s>l;s--,c--){i=r.Fragment.from(o.node(s).copy(i));var u=n&&n[c];a=r.Fragment.from(u?u.type.create(u.attrs,a):o.node(s).copy(a))}return this.step(new h(e,e,new r.Slice(i.append(a),t,t),!0))},c.prototype.join=function(e,t){void 0===t&&(t=1);var n=new h(e-t,e+t,r.Slice.empty,!0);return this.step(n)};var g=function(e){function AddMarkStep(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(AddMarkStep.__proto__=e),AddMarkStep.prototype=Object.create(e&&e.prototype),AddMarkStep.prototype.constructor=AddMarkStep,AddMarkStep.prototype.apply=function apply(e){var t=this,n=e.slice(this.from,this.to),o=e.resolve(this.from),i=o.node(o.sharedDepth(this.to)),a=new r.Slice(mapFragment(n.content,function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e},i),n.openStart,n.openEnd);return f.fromReplace(e,this.from,this.to,a)},AddMarkStep.prototype.invert=function invert(){return new v(this.from,this.to,this.mark)},AddMarkStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new AddMarkStep(t.pos,n.pos,this.mark)},AddMarkStep.prototype.merge=function merge(e){if(e instanceof AddMarkStep&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new AddMarkStep(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},AddMarkStep.prototype.toJSON=function toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},AddMarkStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new AddMarkStep(t.from,t.to,e.markFromJSON(t.mark))},AddMarkStep}(d);d.jsonID("addMark",g);var v=function(e){function RemoveMarkStep(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(RemoveMarkStep.__proto__=e),RemoveMarkStep.prototype=Object.create(e&&e.prototype),RemoveMarkStep.prototype.constructor=RemoveMarkStep,RemoveMarkStep.prototype.apply=function apply(e){var t=this,n=e.slice(this.from,this.to),o=new r.Slice(mapFragment(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))}),n.openStart,n.openEnd);return f.fromReplace(e,this.from,this.to,o)},RemoveMarkStep.prototype.invert=function invert(){return new g(this.from,this.to,this.mark)},RemoveMarkStep.prototype.map=function map(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new RemoveMarkStep(t.pos,n.pos,this.mark)},RemoveMarkStep.prototype.merge=function merge(e){if(e instanceof RemoveMarkStep&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new RemoveMarkStep(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},RemoveMarkStep.prototype.toJSON=function toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},RemoveMarkStep.fromJSON=function fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new RemoveMarkStep(t.from,t.to,e.markFromJSON(t.mark))},RemoveMarkStep}(d);function replaceStep(e,t,n,o){if(void 0===n&&(n=t),void 0===o&&(o=r.Slice.empty),t==n&&!o.size)return null;var i=e.resolve(t),a=e.resolve(n);return fitsTrivially(i,a,o)?new h(t,n,o):new y(i,a,o).fit()}function fitsTrivially(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}d.jsonID("removeMark",v),c.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var p=Math.max(l,e),d=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h=0;f--)this.step(i[f]);return this},c.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=r.Slice.empty);var o=replaceStep(this.doc,e,t,n);return o&&this.step(o),this},c.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new r.Slice(r.Fragment.from(n),0,0))},c.prototype.delete=function(e,t){return this.replace(e,t,r.Slice.empty)},c.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var y=function Fitter(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var o=0;o<=e.depth;o++){var i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}this.placed=r.Fragment.empty;for(var a=e.depth;a>0;a--)this.placed=r.Fragment.from(e.node(a).copy(this.placed))},b={depth:{configurable:!0}};function dropFromFragment(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(dropFromFragment(e.firstChild.content,t-1,n)))}function addToFragment(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(addToFragment(e.lastChild.content,t-1,n)))}function contentAt(e,t){for(var n=0;n1&&(o=o.replaceChild(0,closeNodeStart(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.Fragment.empty,!0)))),e.copy(o)}function contentAfterFits(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!invalidMarks(n,i.content,a)?s:null}function invalidMarks(e,t,n){for(var r=n;ro){var s=i.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(r.Fragment.empty,!0))}return e}function coveredDepths(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(ot.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}b.depth.get=function(){return this.frontier.length-1},y.prototype.fit=function fit(){for(;this.unplaced.size;){var fit=this.findFittable();fit?this.placeNodes(fit):this.openMore()||this.dropNode()}var e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;for(var i=this.placed,a=n.depth,s=o.depth;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;var l=new r.Slice(i,a,s);return e>-1?new m(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new h(n.pos,o.pos,l):void 0},y.prototype.findFittable=function findFittable(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,o=(t?(n=contentAt(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,i=this.depth;i>=0;i--){var a=this.frontier[i],s=a.type,l=a.match,c=void 0,u=void 0;if(1==e&&(o?l.matchType(o.type)||(u=l.fillBefore(r.Fragment.from(o),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:i,parent:n,inject:u};if(2==e&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:i,parent:n,wrap:c};if(n&&l.matchType(n.type))break}},y.prototype.openMore=function openMore(){var e=this.unplaced,t=e.content,n=e.openStart,o=e.openEnd,i=contentAt(t,n);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new r.Slice(t,n+1,Math.max(o,i.size+n>=t.size-o?n+1:0)),!0)},y.prototype.dropNode=function dropNode(){var e=this.unplaced,t=e.content,n=e.openStart,o=e.openEnd,i=contentAt(t,n);if(i.childCount<=1&&n>0){var a=t.size-n<=n+i.size;this.unplaced=new r.Slice(dropFromFragment(t,n-1,1),n-1,a?n-1:o)}else this.unplaced=new r.Slice(dropFromFragment(t,n,1),n,o)},y.prototype.placeNodes=function placeNodes(e){for(var t=e.sliceDepth,n=e.frontierDepth,o=e.parent,i=e.inject,a=e.wrap;this.depth>n;)this.closeFrontierNode();if(a)for(var s=0;s1||0==u||y.content.size)&&(h=b,d.push(closeNodeStart(y.mark(m.allowedMarks(y.marks)),1==p?u:0,p==c.childCount?v:-1)))}var w=p==c.childCount;w||(v=-1),this.placed=addToFragment(this.placed,n,r.Fragment.from(d)),this.frontier[n].match=h,w&&v<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var k=0,x=c;k1&&r==this.$to.end(--n);)++r;return r},y.prototype.findCloseLevel=function findCloseLevel(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t=0;s--){var l=this.frontier[s],c=l.match,u=contentAfterFits(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},y.prototype.close=function close(e){var close=this.findCloseLevel(e);if(!close)return null;for(;this.depth>close.depth;)this.closeFrontierNode();close.fit.childCount&&(this.placed=addToFragment(this.placed,close.depth,close.fit)),e=close.move;for(var t=close.depth+1;t<=e.depth;t++){var n=e.node(t),r=n.type.contentMatch.fillBefore(n.content,!0,e.index(t));this.openFrontierNode(n.type,n.attrs,r)}return e},y.prototype.openFrontierNode=function openFrontierNode(e,t,n){var o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=addToFragment(this.placed,this.depth,r.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},y.prototype.closeFrontierNode=function closeFrontierNode(){var e=this.frontier.pop().match.fillBefore(r.Fragment.empty,!0);e.childCount&&(this.placed=addToFragment(this.placed,this.frontier.length,e))},Object.defineProperties(y.prototype,b),c.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var o=this.doc.resolve(e),i=this.doc.resolve(t);if(fitsTrivially(o,i,n))return this.step(new h(e,t,n));var a=coveredDepths(o,this.doc.resolve(t));0==a[a.length-1]&&a.pop();var s=-(o.depth+1);a.unshift(s);for(var l=o.depth,c=o.pos-1;l>0;l--,c--){var u=o.node(l).type.spec;if(u.defining||u.isolating)break;a.indexOf(l)>-1?s=l:o.before(l)==c&&a.splice(1,0,-l)}for(var p=a.indexOf(s),d=[],f=n.openStart,m=n.content,g=0;;g++){var v=m.firstChild;if(d.push(v),g==n.openStart)break;m=v.content}f>0&&d[f-1].type.spec.defining&&o.node(p).type!=d[f-1].type?f-=1:f>=2&&d[f-1].isTextblock&&d[f-2].type.spec.defining&&o.node(p).type!=d[f-2].type&&(f-=2);for(var y=n.openStart;y>=0;y--){var b=(y+f+1)%(n.openStart+1),w=d[b];if(w)for(var k=0;k=0&&(this.replace(e,t,n),!(this.steps.length>_));O--){var R=a[O];O<0||(e=o.before(R),t=i.after(R))}return this},c.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var o=insertPoint(this.doc,e,n.type);null!=o&&(e=t=o)}return this.replaceRange(e,t,new r.Slice(r.Fragment.from(n),0,0))},c.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=coveredDepths(n,r),i=0;i0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)}},function(e,t,n){"use strict";var r=n(9),o=n.n(r),i=n(0),a=n.n(i);n(381);t.a=function(e){var t=e.content,n=e.label,r=void 0===n?"Click to view JSON output":n,s=e.expanded,l=Object(i.useState)(s),c=o()(l,2),u=c[0],p=c[1];return a.a.createElement("div",null,a.a.createElement("button",{type:"button",onClick:function onClick(){return p(!u)},className:"nib-link_btn"},r),a.a.createElement("pre",{className:u?"nib-pre":"nib-pre nib-pre_collpased"},"string"!=typeof t?JSON.stringify(t,null,4):t))}},function(e,t){function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(t)}e.exports=_getPrototypeOf},function(e,t){e.exports=function requireInRuntime(e,t){if(!(t in e))throw new Error('require() statements can be added only by editing a Markdown example file: require("'+t+'")');return e[t]}},function(e,t){e.exports=function evalInContext(e,t,n){return new Function("require","state","setState",e+n).bind(null,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return z}),n.d(t,"d",function(){return N}),n.d(t,"e",function(){return L}),n.d(t,"f",function(){return V}),n.d(t,"g",function(){return F}),n.d(t,"h",function(){return U}),n.d(t,"i",function(){return W}),n.d(t,"j",function(){return R}),n.d(t,"k",function(){return y}),n.d(t,"l",function(){return m}),n.d(t,"m",function(){return I}),n.d(t,"n",function(){return f}),n.d(t,"o",function(){return k}),n.d(t,"p",function(){return $}),n.d(t,"q",function(){return K}),n.d(t,"r",function(){return J}),n.d(t,"s",function(){return v}),n.d(t,"t",function(){return Q}),n.d(t,"u",function(){return ee}),n.d(t,"v",function(){return te}),n.d(t,"w",function(){return O}),n.d(t,"x",function(){return re}),n.d(t,"y",function(){return exportedEqual}),n.d(t,"z",function(){return ne});var r=n(0),o=n(11),i=n(33),a=n(1),s=n.n(a),l=n(31),c=n(45),u=n(118),p=n.n(u);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Object(l.c)(c,E,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&Object(l.c)(c,E,160),{placement:"bottom",maxHeight:a?x-b:S-b};if("auto"===o||a){var O=t,R=a?k:C;return R>=r&&(O=Math.min(R-b-s.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return Object(l.l)(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&Object(l.c)(c,_,160),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&k>=r){var M=t;return(!a&&C>=r||a&&k>=r)&&(M=a?k-w:C-w),i&&Object(l.c)(c,_,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return u}function alignToControl(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}var d=function coercePlacement(e){return"auto"===e?"bottom":e},f=function menuCSS(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return(t={label:"menu"})[alignToControl(n)]="100%",t.backgroundColor=a.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=i.menuGutter,t.marginTop=i.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},h=function(e){function MenuPlacer(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0||(o[n]=e[n]);return o}var M={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},A=function Svg(e){var t=e.size,n=_objectWithoutPropertiesLoose(e,["size"]);return Object(o.jsx)("svg",_extends$2({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:M},n))},T=function CrossIcon(e){return Object(o.jsx)(A,_extends$2({size:20},e),Object(o.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},D=function DownChevron(e){return Object(o.jsx)(A,_extends$2({size:20},e),Object(o.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},P=function baseCSS(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},L=P,N=P,F=function indicatorSeparatorCSS(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},j=Object(o.keyframes)(_templateObject()),I=function loadingIndicatorCSS(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},B=function LoadingDot(e){var t=e.delay,n=e.offset;return Object(o.jsx)("span",{css:Object(c.a)({animation:j+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},q=function LoadingIndicator(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,a=e.isRtl;return Object(o.jsx)("div",_extends$2({},i,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Object(o.jsx)(B,{delay:0,offset:a}),Object(o.jsx)(B,{delay:160,offset:!0}),Object(o.jsx)(B,{delay:320,offset:!a}))};function _extends$3(){return(_extends$3=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function _extends$4(){return(_extends$4=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var W=function inputCSS(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},H=function inputStyle(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function _extends$6(){return(_extends$6=Object.assign||function(e){for(var t=1;tl.bottom-getSide(r,"bottom")&&(u=t.bottom-l.bottom+getSide(o,"bottom")),t.leftl.right-getSide(r,"right")&&(c=t.right-l.right+getSide(o,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var p=a.scrollLeft,d=a.scrollTop;u&&(a.scrollTop+=u),c&&(a.scrollLeft+=c);var h=a.scrollLeft-p,m=a.scrollTop-d;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}if(s)break}}function storeScrollPos(e){for(var t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top),i=(r.left+r.right)/2,a=o+1;a=o-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:scrollStack(e.dom)}}function scrollStack(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=f(e));return t}function restoreScrollStack(e,t){for(var n=0;n=s){a=Math.max(d.bottom,a),s=Math.min(d.top,s);var f=d.left>t.left?d.left-t.left:d.right=(d.left+d.right)/2?1:0));continue}}!n&&(t.left>=d.right&&t.top>=d.top||t.left>=d.left&&t.top>=d.bottom)&&(i=c+1)}}return n&&3==n.nodeType?findOffsetInText(n,r):!n||o&&1==n.nodeType?{node:e,offset:i}:findOffsetInNode(n,r)}function findOffsetInText(e,t){for(var n=e.nodeValue.length,r=document.createRange(),o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function inRect(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function targetKludge(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,i,a)}function posFromCaret(e,t,n,r){for(var o=-1,i=t;i!=e.dom;){var a=e.docView.nearestDesc(i,!0);if(!a)return null;if(a.node.isBlock&&a.parent){var s=a.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)o=a.posBefore;else{if(!(s.right-1?o:e.docView.posFromDOM(t,n)}function elementFromPoint(e,t,n){var r=e.childNodes.length;if(r&&n.topt.top&&i++}o==e.dom&&i==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=i&&1==o.nodeType&&"BR"==o.childNodes[i-1].nodeName||(u=posFromCaret(e,o,i,t))}null==u&&(u=posFromElement(e,p,t));var m=e.docView.nearestDesc(p,!0);return{pos:u,inside:m?m.posAtStart-m.border:-1}}function singleRect(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function coordsAtPos(e,t,n){var r=e.docView.domFromPos(t),o=r.node,i=r.offset,s=e.state.doc.resolve(t),l=s.parent.inlineContent,c=a.webkit||a.gecko;if(3==o.nodeType&&c&&w.test(o.nodeValue)){var u=singleRect(m(o,i,i),n);if(a.gecko&&i&&/\s/.test(o.nodeValue[i-1])&&i=0&&i==nodeSize(o)&&o!=h;)i=d(o)+1,o=o.parentNode}if(3==o.nodeType)return n<0?flattenV(singleRect(m(o,i-1,i),1),!1):flattenV(singleRect(m(o,i,i+1),-1),!0);if(!l){if(i&&(n<0||i==nodeSize(o))){var g=o.childNodes[i-1];if(1==g.nodeType)return flattenH(g.getBoundingClientRect(),!1)}if(i=0)}if(i&&(n<0||i==nodeSize(o))){var y=o.childNodes[i-1],b=3==y.nodeType?m(y,nodeSize(y)-(c?0:1)):1==y.nodeType&&"BR"!=y.nodeName?y:null;if(b)return flattenV(singleRect(b,1),!1)}if(i=0)}function flattenV(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function flattenH(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function withFlushedState(e,t,n){var r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function endOfTextblockVertical(e,t,n){var r=t.selection,o="up"==n?r.$anchor.min(r.$head):r.$anchor.max(r.$head);return withFlushedState(e,t,function(){for(var t=e.docView.domFromPos(o.pos).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=coordsAtPos(e,o.pos,1),a=t.firstChild;a;a=a.nextSibling){var s=void 0;if(1==a.nodeType)s=a.getClientRects();else{if(3!=a.nodeType)continue;s=m(a,0,a.nodeValue.length).getClientRects()}for(var l=0;lc.top&&("up"==n?c.bottomi.bottom-1))return!1}}return!0})}var k=/[\u0590-\u08ac]/;function endOfTextblockHorizontal(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=getSelection();return k.test(r.parent.textContent)&&s.modify?withFlushedState(e,t,function(){var t=s.getRangeAt(0),o=s.focusNode,i=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||o==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l}):"left"==n||"backward"==n?i:a}var x=null,C=null,S=!1;function endOfTextblock(e,t,n){return x==t&&C==n?S:(x=t,C=n,S="up"==n||"down"==n?endOfTextblockVertical(e,t,n):endOfTextblockHorizontal(e,t,n))}var E=function ViewDesc(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},_={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};E.prototype.matchesWidget=function matchesWidget(){return!1},E.prototype.matchesMark=function matchesMark(){return!1},E.prototype.matchesNode=function matchesNode(){return!1},E.prototype.matchesHack=function matchesHack(){return!1},_.beforePosition.get=function(){return!1},E.prototype.parseRule=function parseRule(){return null},E.prototype.stopEvent=function stopEvent(){return!1},_.size.get=function(){for(var e=0,t=0;t0:s)?this.posAtEnd:this.posAtStart},E.prototype.nearestDesc=function nearestDesc(e,t){for(var n=!0,r=e;r;r=r.parentNode){var o=this.getDesc(r);if(o&&(!t||o.node)){if(!n||!o.nodeDOM||(1==o.nodeDOM.nodeType?o.nodeDOM.contains(1==e.nodeType?e:e.parentNode):o.nodeDOM==e))return o;n=!1}}},E.prototype.getDesc=function getDesc(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},E.prototype.posFromDOM=function posFromDOM(e,t,n){for(var r=e;r;r=r.parentNode){var o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1},E.prototype.descAt=function descAt(e){for(var t=0,n=0;t=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=a;u>0;u--){var p=this.children[u-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){r=d(p.dom)+1;break}e-=p.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(var f=a+1;fl&&it){var y=p;p=d,d=y}var b=document.createRange();b.setEnd(d.node,d.offset),b.setStart(p.node,p.offset),f.removeAllRanges(),f.addRange(b)}}},E.prototype.ignoreMutation=function ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type},_.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},E.prototype.markDirty=function markDirty(e,t){for(var n=0,r=0;r=n:en){var a=n+o.border,s=i-o.border;if(e>=a&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=a||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-a,t-a):o.dirty=3);o.dirty=3}n=i}this.dirty=2},E.prototype.markParentsDirty=function markParentsDirty(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty0&&(o=replaceNodes(o,0,e,n));for(var a=0;a=0&&!s&&l.syncToMarks(a==n.node.childCount?o.Mark.none:n.node.child(a).marks,r,e),l.placeWidget(t,e,i)},function(t,n,o,a){l.syncToMarks(t.marks,r,e),l.findNodeMatch(t,n,o,a)||l.updateNextNode(t,n,o,e,a)||l.addNode(t,n,o,e,i),i+=t.nodeSize}),l.syncToMarks(O,r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),renderDescs(this.contentDOM,this.children,e),a.ios&&iosHacks(this.dom))},NodeViewDesc.prototype.localCompositionNode=function localCompositionNode(e,t){var n=e.state.selection,o=n.from,i=n.to;if(!(!(e.state.selection instanceof r.TextSelection)||ot+this.node.content.size)){var a=e.root.getSelection(),s=nearbyTextNode(a.focusNode,a.focusOffset);if(s&&this.dom.contains(s.parentNode)){var l=s.nodeValue,c=findTextInFragment(this.node.content,l,o-t,i-t);return c<0?null:{node:s,pos:c,text:l}}}},NodeViewDesc.prototype.protectLocalComposition=function protectLocalComposition(e,t){var n=t.node,r=t.pos,o=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var a=new M(this,i,n,o);e.compositionNodes.push(a),this.children=replaceNodes(this.children,r,r+o.length,e,a)}},NodeViewDesc.prototype.update=function update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)},NodeViewDesc.prototype.updateInner=function updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},NodeViewDesc.prototype.updateOuterDeco=function updateOuterDeco(e){if(!sameOuterDeco(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=patchOuterDeco(this.dom,this.nodeDOM,computeOuterDeco(this.outerDeco,this.node,t),computeOuterDeco(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},NodeViewDesc.prototype.selectNode=function selectNode(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},NodeViewDesc.prototype.deselectNode=function deselectNode(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},Object.defineProperties(NodeViewDesc.prototype,t),NodeViewDesc}(E);function docViewDesc(e,t,n,r,o){return applyOuterDeco(r,t,e),new T(null,e,t,n,r,r,r,o,0)}var D=function(e){function TextViewDesc(t,n,r,o,i,a,s){e.call(this,t,n,r,o,i,null,a,s)}return e&&(TextViewDesc.__proto__=e),TextViewDesc.prototype=Object.create(e&&e.prototype),TextViewDesc.prototype.constructor=TextViewDesc,TextViewDesc.prototype.parseRule=function parseRule(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},TextViewDesc.prototype.update=function update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)},TextViewDesc.prototype.inParent=function inParent(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},TextViewDesc.prototype.domFromPos=function domFromPos(e){return{node:this.nodeDOM,offset:e}},TextViewDesc.prototype.localPosFromDOM=function localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},TextViewDesc.prototype.ignoreMutation=function ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type},TextViewDesc.prototype.slice=function slice(e,t,n){var r=this.node.cut(e,t),o=document.createTextNode(r.text);return new TextViewDesc(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)},TextViewDesc}(T),P=function(e){function BRHackViewDesc(){e.apply(this,arguments)}return e&&(BRHackViewDesc.__proto__=e),BRHackViewDesc.prototype=Object.create(e&&e.prototype),BRHackViewDesc.prototype.constructor=BRHackViewDesc,BRHackViewDesc.prototype.parseRule=function parseRule(){return{ignore:!0}},BRHackViewDesc.prototype.matchesHack=function matchesHack(){return 0==this.dirty},BRHackViewDesc}(E),L=function(e){function CustomNodeViewDesc(t,n,r,o,i,a,s,l,c,u){e.call(this,t,n,r,o,i,a,s,c,u),this.spec=l}return e&&(CustomNodeViewDesc.__proto__=e),CustomNodeViewDesc.prototype=Object.create(e&&e.prototype),CustomNodeViewDesc.prototype.constructor=CustomNodeViewDesc,CustomNodeViewDesc.prototype.update=function update(t,n,r,o){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,r,o),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,o)},CustomNodeViewDesc.prototype.selectNode=function selectNode(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},CustomNodeViewDesc.prototype.deselectNode=function deselectNode(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},CustomNodeViewDesc.prototype.setSelection=function setSelection(t,n,r,o){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,o)},CustomNodeViewDesc.prototype.destroy=function destroy(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},CustomNodeViewDesc.prototype.stopEvent=function stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},CustomNodeViewDesc.prototype.ignoreMutation=function ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},CustomNodeViewDesc}(T);function renderDescs(e,t,n){for(var r=e.firstChild,o=!1,i=0;i0&&o>=0;o--){var i=t[o],a=i.node;if(a){if(a!=e.child(r-1))break;n.push(i),--r}}return{nodes:n.reverse(),offset:r}}function compareSide(e,t){return e.type.side-t.type.side}function iterDeco(e,t,n,r){var o=t.locals(e),i=0;if(0!=o.length)for(var a=0,s=[],l=null,c=0;;){if(ai;)s.push(o[a++]);var g=i+f.nodeSize;if(f.isText){var v=g;a0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=nodeSize(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t=n){var u=l.lastIndexOf(t,r-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}function replaceNodes(e,t,n,r,o){for(var i=[],a=0,s=0;a=n||u<=t?i.push(l):(cn&&i.push(l.slice(n-c,l.size,r)))}return i}function selectionFromDOM(e,t){var n=e.root.getSelection(),o=e.state.doc;if(!n.focusNode)return null;var i=e.docView.nearestDesc(n.focusNode),a=i&&0==i.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var l,c,u=o.resolve(s);if(y(n)){for(l=u;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&r.NodeSelection.isSelectable(i.node)&&i.parent&&(!i.node.isInline||!isOnEdge(n.focusNode,n.focusOffset,i.dom))){var p=i.posBefore;c=new r.NodeSelection(s==p?u:o.resolve(p))}}else{var d=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(d<0)return null;l=o.resolve(d)}c||(c=selectionBetween(e,l,u,"pointer"==t||e.state.selection.head=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},F.prototype.destroyBetween=function destroyBetween(e,t){if(e!=t){for(var n=e;n>1,i=Math.min(o,e.length);r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{var l=A.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}},F.prototype.findNodeMatch=function findNodeMatch(e,t,n,r){var o=-1,i=r<0?void 0:this.getPreMatch(r),a=this.top.children;if(i&&i.matchesNode(e,t,n))o=a.indexOf(i);else for(var s=this.index,l=Math.min(a.length,s+5);s-1&&s+this.preMatchOffset!=o)return!1;var l=a.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&sameOuterDeco(t,a.outerDeco)))&&a.update(e,t,n,r))return this.destroyBetween(this.index,i),a.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},F.prototype.addNode=function addNode(e,t,n,r,o){this.top.children.splice(this.index++,0,T.create(this.top,e,t,n,r,o)),this.changed=!0},F.prototype.placeWidget=function placeWidget(e,t,n){var r=this.index0?o.max(i):o.min(i),s=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return s&&r.Selection.findFrom(s,t)}function apply(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function selectHorizontally(e,t,n){var o=e.state.selection;if(!(o instanceof r.TextSelection)){if(o instanceof r.NodeSelection&&o.node.isInline)return apply(e,new r.TextSelection(t>0?o.$to:o.$from));var i=moveSelectionBlock(e.state,t);return!!i&&apply(e,i)}if(!o.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var s=moveSelectionBlock(e.state,t);return!!(s&&s instanceof r.NodeSelection)&&apply(e,s)}if(!(a.mac&&n.indexOf("m")>-1)){var l,c=o.$head,u=c.textOffset?null:t<0?c.nodeBefore:c.nodeAfter;if(!u||u.isText)return!1;var p=t<0?c.pos-u.nodeSize:c.pos;return!!(u.isAtom||(l=e.docView.descAt(p))&&!l.contentDOM)&&(r.NodeSelection.isSelectable(u)?apply(e,new r.NodeSelection(t<0?e.state.doc.resolve(c.pos-u.nodeSize):c)):!!a.webkit&&apply(e,new r.TextSelection(e.state.doc.resolve(t<0?p:p+u.nodeSize))))}}function nodeLen(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function isIgnorable(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function skipIgnoredNodesLeft(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var o,i,s=!1;for(a.gecko&&1==n.nodeType&&r0){if(1!=n.nodeType)break;var l=n.childNodes[r-1];if(isIgnorable(l))o=n,i=--r;else{if(3!=l.nodeType)break;r=(n=l).nodeValue.length}}else{if(isBlockNode(n))break;for(var c=n.previousSibling;c&&isIgnorable(c);)o=n.parentNode,i=d(c),c=c.previousSibling;if(c)r=nodeLen(n=c);else{if((n=n.parentNode)==e.dom)break;r=0}}s?setSelFocus(e,t,n,r):o&&setSelFocus(e,t,o,i)}}function skipIgnoredNodesRight(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var o,i,a=nodeLen(n);;)if(r-1)return!1;if(a.mac&&n.indexOf("m")>-1)return!1;var i=o.$from,s=o.$to;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var l=moveSelectionBlock(e.state,t);if(l&&l instanceof r.NodeSelection)return apply(e,l)}if(!i.parent.inlineContent){var c=r.Selection.findFrom(t<0?i:s,t);return!c||apply(e,c)}return!1}function stopNativeHorizontalDelete(e,t){if(!(e.state.selection instanceof r.TextSelection))return!0;var n=e.state.selection,o=n.$head,i=n.$anchor,a=n.empty;if(!o.sameParent(i))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!o.textOffset&&(t<0?o.nodeBefore:o.nodeAfter);if(s&&!s.isText){var l=e.state.tr;return t<0?l.delete(o.pos-s.nodeSize,o.pos):l.delete(o.pos,o.pos+s.nodeSize),e.dispatch(l),!0}return!1}function switchEditable(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function safariDownArrowBug(e){if(a.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var o=n.firstChild;switchEditable(e,o,!0),setTimeout(function(){return switchEditable(e,o,!1)},20)}}}function getMods(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function captureKeyDown(e,t){var n=t.keyCode,r=getMods(t);return 8==n||a.mac&&72==n&&"c"==r?stopNativeHorizontalDelete(e,-1)||skipIgnoredNodesLeft(e):46==n||a.mac&&68==n&&"c"==r?stopNativeHorizontalDelete(e,1)||skipIgnoredNodesRight(e):13==n||27==n||(37==n?selectHorizontally(e,-1,r)||skipIgnoredNodesLeft(e):39==n?selectHorizontally(e,1,r)||skipIgnoredNodesRight(e):38==n?selectVertically(e,-1,r)||skipIgnoredNodesLeft(e):40==n?safariDownArrowBug(e)||selectVertically(e,1,r)||skipIgnoredNodesRight(e):r==(a.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function parseBetween(e,t,n){var r=e.docView.parseRange(t,n),i=r.node,s=r.fromOffset,l=r.toOffset,c=r.from,u=r.to,p=e.root.getSelection(),d=null,f=p.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(d=[{node:f,offset:p.anchorOffset}],y(p)||d.push({node:p.focusNode,offset:p.focusOffset})),a.chrome&&8===e.lastKeyCode)for(var h=l;h>s;h--){var m=i.childNodes[h-1],g=m.pmViewDesc;if("BR"==m.nodeType&&!g){l=h;break}if(!g||g.size)break}var v=e.state.doc,b=e.someProp("domParser")||o.DOMParser.fromSchema(e.state.schema),w=v.resolve(c),k=null,x=b.parse(i,{topNode:w.parent,topMatch:w.parent.contentMatchAt(w.index()),topOpen:!0,from:s,to:l,preserveWhitespace:!w.parent.type.spec.code||"full",editableContent:!0,findPositions:d,ruleFromNode:ruleFromNode,context:w});if(d&&null!=d[0].pos){var C=d[0].pos,S=d[1]&&d[1].pos;null==S&&(S=C),k={anchor:C+c,head:S+c}}return{doc:x,sel:k,from:c,to:u}}function ruleFromNode(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(a.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||a.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function readDOMChange(e,t,n,o,i){if(t<0){var s=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,l=selectionFromDOM(e,s);if(l&&!e.state.selection.eq(l)){var c=e.state.tr.setSelection(l);"pointer"==s?c.setMeta("pointer",!0):"key"==s&&c.scrollIntoView(),e.dispatch(c)}}else{var u=e.state.doc.resolve(t),p=u.sharedDepth(n);t=u.before(p+1),n=e.state.doc.resolve(n).after(p+1);var d,f,h=e.state.selection,m=parseBetween(e,t,n),g=e.state.doc,v=g.slice(m.from,m.to);8===e.lastKeyCode&&Date.now()-100e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),a.ie&&a.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>m.from&&"  "==m.doc.textBetween(y.start-m.from-1,y.start-m.from+1)&&(y.start--,y.endA--,y.endB--);var w,k=m.doc.resolveNoCache(y.start-m.from),x=m.doc.resolveNoCache(y.endB-m.from),C=k.sameParent(x)&&k.parent.inlineContent;if((a.ios&&e.lastIOSEnter>Date.now()-225&&(!C||i.some(function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))||!C&&k.posy.start&&looksLikeJoin(g,y.start,y.endA,k,x)&&e.someProp("handleKeyDown",function(t){return t(e,keyEvent(8,"Backspace"))}))a.android&&a.chrome&&e.domObserver.suppressSelectionUpdates();else{a.android&&!C&&k.start()!=x.start()&&0==x.parentOffset&&k.depth==x.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==y.endA&&(y.endB-=2,x=m.doc.resolveNoCache(y.endB-m.from),setTimeout(function(){e.someProp("handleKeyDown",function(t){return t(e,keyEvent(13,"Enter"))})},20));var S,E,_,O,R=y.start,M=y.endA;if(C)if(k.pos==x.pos)a.ie&&a.ie_version<=11&&0==k.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(function(){return selectionToDOM(e)},20)),S=e.state.tr.delete(R,M),E=g.resolve(y.start).marksAcross(g.resolve(y.endA));else if(y.endA==y.endB&&(O=g.resolve(y.start))&&(_=isMarkChange(k.parent.content.cut(k.parentOffset,x.parentOffset),O.parent.content.cut(O.parentOffset,y.endA-O.start()))))S=e.state.tr,"add"==_.type?S.addMark(R,M,_.mark):S.removeMark(R,M,_.mark);else if(k.parent.child(k.index()).isText&&k.index()==x.index()-(x.textOffset?0:1)){var A=k.parent.textBetween(k.parentOffset,x.parentOffset);if(e.someProp("handleTextInput",function(t){return t(e,R,M,A)}))return;S=e.state.tr.insertText(A,R,M)}if(S||(S=e.state.tr.replace(R,M,m.doc.slice(y.start-m.from,y.endB-m.from))),m.sel){var T=resolveSelection(e,S.doc,m.sel);T&&!(a.chrome&&a.android&&e.composing&&T.empty&&(T.head==R||T.head==S.mapping.map(M)-1)||a.ie&&T.empty&&T.head==R)&&S.setSelection(T)}E&&S.ensureMarks(E),e.dispatch(S.scrollIntoView())}}}function resolveSelection(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:selectionBetween(e,t.resolve(n.anchor),t.resolve(n.head))}function isMarkChange(e,t){for(var n,r,i,a=e.firstChild.marks,s=t.firstChild.marks,l=a,c=s,u=0;un||skipClosingAndOpening(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,o++;return o}function findDiff(e,t,n,r,o){var i=e.findDiffStart(t,n);if(null==i)return null;var a=e.findDiffEnd(t,n+e.size,n+t.size),s=a.a,l=a.b;"end"==o&&(r-=s+Math.max(0,i-Math.min(s,l))-i);if(s=s?i-r:0)+(l-s),s=i;else if(l=l?i-r:0)+(s-l),l=i}return{start:i,endA:s,endB:l}}function serializeForClipboard(e,t){for(var n=[],r=t.content,i=t.openStart,a=t.openEnd;i>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,a--;var s=r.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),r=s.content}var l=e.someProp("clipboardSerializer")||o.DOMSerializer.fromSchema(e.state.schema),c=detachedDoc(),u=c.createElement("div");u.appendChild(l.serializeFragment(r,{document:c}));for(var p,d=u.firstChild;d&&1==d.nodeType&&(p=I[d.nodeName.toLowerCase()]);){for(var f=p.length-1;f>=0;f--){for(var h=c.createElement(p[f]);u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h)}d=u.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",i+" "+a+" "+JSON.stringify(n)),{dom:u,text:e.someProp("clipboardTextSerializer",function(e){return e(t)})||t.content.textBetween(0,t.content.size,"\n\n")}}function parseFromClipboard(e,t,n,r,i){var a,s,l=i.parent.type.spec.code;if(!n&&!t)return null;var c=t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",function(e){t=e(t,l||r)}),l)return new o.Slice(o.Fragment.from(e.state.schema.text(t)),0,0);var u=e.someProp("clipboardTextParser",function(e){return e(t,i,r)});u?s=u:(a=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach(function(e){a.appendChild(document.createElement("p")).textContent=e}))}else e.someProp("transformPastedHTML",function(e){n=e(n)}),a=readHTML(n);var p=a&&a.querySelector("[data-pm-slice]"),d=p&&/^(\d+) (\d+) (.*)/.exec(p.getAttribute("data-pm-slice"));if(!s){var f=e.someProp("clipboardParser")||e.someProp("domParser")||o.DOMParser.fromSchema(e.state.schema);s=f.parseSlice(a,{preserveWhitespace:!(!c&&!d),context:i})}return s=d?addContext(closeSlice(s,+d[1],+d[2]),d[3]):o.Slice.maxOpen(normalizeSiblings(s.content,i),!1),e.someProp("transformPasted",function(e){s=e(s)}),s}function normalizeSiblings(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),i=void 0,a=[];if(e.forEach(function(e){if(a){var t,n=r.findWrapping(e.type);if(!n)return a=null;if(t=a.length&&i.length&&addToSibling(n,i,e,a[a.length-1],0))a[a.length-1]=t;else{a.length&&(a[a.length-1]=closeRight(a[a.length-1],i.length));var o=withWrappers(e,n);a.push(o),r=r.matchType(o.type,o.attrs),i=n}}}),a)return{v:o.Fragment.from(a)}},r=t.depth;r>=0;r--){var i=n(r);if(i)return i.v}return e}function withWrappers(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,o.Fragment.from(e));return e}function addToSibling(e,t,n,r,i){if(i=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||a<=i).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(o.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function closeSlice(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=detachedDoc().createElement("div"),o=/(?:]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=o&&I[o[1].toLowerCase()])&&(e=n.map(function(e){return"<"+e+">"}).join("")+e+n.map(function(e){return""}).reverse().join(""),i=n.length),r.innerHTML=e;for(var a=0;a=0;l-=2){var c=r.nodes[n[l]];if(!c||c.hasRequiredAttrs())break;i=o.Fragment.from(c.create(n[l+1],i)),a++,s++}return new o.Slice(i,a,s)}var q={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},z=a.ie&&a.ie_version<=11,U=function SelectionState(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};U.prototype.set=function set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},U.prototype.eq=function eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var V=function DOMObserver(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver(function(e){for(var t=0;te.target.nodeValue.length})?n.flushSoon():n.flush()}),this.currentSelection=new U,z&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};V.prototype.flushSoon=function flushSoon(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(function(){e.flushingSoon=-1,e.flush()},20))},V.prototype.forceFlush=function forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},V.prototype.start=function start(){this.observer&&this.observer.observe(this.view.dom,q),z&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},V.prototype.stop=function stop(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&hasSelection(this.view)&&!this.ignoreSelectionChange(t),r=-1,o=-1,i=!1,s=[];if(this.view.editable)for(var l=0;l1){var u=s.filter(function(e){return"BR"==e.nodeName});if(2==u.length){var p=u[0],d=u[1];p.parentNode&&p.parentNode.parentNode==d.parentNode?d.remove():p.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,o),checkCSS(this.view)),this.handleDOMChange(r,o,i,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||selectionToDOM(this.view))}},V.prototype.registerMutation=function registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){var r=e.previousSibling,o=e.nextSibling;if(a.ie&&a.ie_version<=11&&e.addedNodes.length)for(var i=0;ii.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)}))return{v:!0}},s=i.depth+1;s>0;s--){var l=a(s);if(l)return l.v}return!1}function updateSelection(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function selectClickedLeaf(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&r.NodeSelection.isSelectable(o))&&(updateSelection(e,new r.NodeSelection(n),"pointer"),!0)}function selectClickedNode(e,t){if(-1==t)return!1;var n,o,i=e.state.selection;i instanceof r.NodeSelection&&(n=i.node);for(var a=e.state.doc.resolve(t),s=a.depth+1;s>0;s--){var l=s>a.depth?a.nodeAfter:a.node(s);if(r.NodeSelection.isSelectable(l)){o=n&&i.$from.depth>0&&s>=i.$from.depth&&a.before(i.$from.depth+1)==i.$from.pos?a.before(i.$from.depth):a.before(s);break}}return null!=o&&(updateSelection(e,r.NodeSelection.create(e.state.doc,o),"pointer"),!0)}function handleSingleClick(e,t,n,r,o){return runHandlerOnContext(e,"handleClickOn",t,n,r)||e.someProp("handleClick",function(n){return n(e,t,r)})||(o?selectClickedNode(e,n):selectClickedLeaf(e,n))}function handleDoubleClick(e,t,n,r){return runHandlerOnContext(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",function(n){return n(e,t,r)})}function handleTripleClick(e,t,n,r){return runHandlerOnContext(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",function(n){return n(e,t,r)})||defaultTripleClick(e,n)}function defaultTripleClick(e,t){var n=e.state.doc;if(-1==t)return!!n.inlineContent&&(updateSelection(e,r.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var o=n.resolve(t),i=o.depth+1;i>0;i--){var a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)updateSelection(e,r.TextSelection.create(n,s+1,s+1+a.content.size),"pointer");else{if(!r.NodeSelection.isSelectable(a))continue;updateSelection(e,r.NodeSelection.create(n,s),"pointer")}return!0}}function forceDOMFlush(e){return endComposition(e)}$.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!inOrNearComposition(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!a.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",function(n){return n(e,t)})||captureKeyDown(e,t)?t.preventDefault():setSelectionOrigin(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout(function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",function(t){return t(e,keyEvent(13,"Enter"))}),e.lastIOSEnter=0)},200)}},$.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},$.keypress=function(e,t){if(!(inOrNearComposition(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||a.mac&&t.metaKey))if(e.someProp("handleKeyPress",function(n){return n(e,t)}))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof r.TextSelection&&n.$from.sameParent(n.$to))){var o=String.fromCharCode(t.charCode);e.someProp("handleTextInput",function(t){return t(e,n.$from.pos,n.$to.pos,o)})||e.dispatch(e.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}}};var K=a.mac?"metaKey":"ctrlKey";H.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=forceDOMFlush(e),r=Date.now(),o="singleClick";r-e.lastClick.time<500&&isNear(t,e.lastClick)&&!t[K]&&("singleClick"==e.lastClick.type?o="doubleClick":"doubleClick"==e.lastClick.type&&(o="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:o};var i=e.posAtCoords(eventCoords(t));i&&("singleClick"==o?e.mouseDown=new J(e,i,t,n):("doubleClick"==o?handleDoubleClick:handleTripleClick)(e,i.pos,i.inside,t)?t.preventDefault():setSelectionOrigin(e,"pointer"))};var J=function MouseDown(e,t,n,o){var i,s,l=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=o,this.selectNode=n[K],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{var c=e.state.doc.resolve(t.pos);i=c.parent,s=c.depth?c.before():0}this.mightDrag=null;var u=o?null:n.target,p=u?e.docView.nearestDesc(u,!0):null;this.target=p?p.dom:null,(i.type.spec.draggable&&!1!==i.type.spec.selectable||e.state.selection instanceof r.NodeSelection&&s==e.state.selection.from)&&(this.mightDrag={node:i,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&a.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(function(){return l.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),setSelectionOrigin(e,"pointer")};function inOrNearComposition(e,t){return!!e.composing||!!(a.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}J.prototype.done=function done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null},J.prototype.up=function up(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(eventCoords(e))),this.allowDefault||!t?setSelectionOrigin(this.view,"pointer"):handleSingleClick(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||a.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||a.chrome&&!(this.view.state.selection instanceof r.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(updateSelection(this.view,r.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):setSelectionOrigin(this.view,"pointer")}},J.prototype.move=function move(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),setSelectionOrigin(this.view,"pointer")},H.touchdown=function(e){forceDOMFlush(e),setSelectionOrigin(e,"pointer")},H.contextmenu=function(e){return forceDOMFlush(e)};var G=a.android?5e3:-1;function scheduleComposeEnd(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout(function(){return endComposition(e)},t))}function clearComposition(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function endComposition(e,t){if(e.domObserver.forceFlush(),clearComposition(e),t||e.docView.dirty){var n=selectionFromDOM(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}function captureCopy(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}}$.compositionstart=$.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(function(e){return!1===e.type.spec.inclusive})))e.markCursor=e.state.storedMarks||n.marks(),endComposition(e,!0),e.markCursor=null;else if(endComposition(e),a.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),o=r.focusNode,i=r.focusOffset;o&&1==o.nodeType&&0!=i;){var s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(3==s.nodeType){r.collapse(s,s.nodeValue.length);break}o=s,i=-1}e.composing=!0}scheduleComposeEnd(e,G)},$.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,scheduleComposeEnd(e,20))};var X=a.ie&&a.ie_version<15||a.ios&&a.webkit_version<604;function sliceSingleNode(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function capturePaste(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?doPaste(e,r.value,null,t):doPaste(e,r.textContent,r.innerHTML,t)},50)}}function doPaste(e,t,n,r){var i=parseFromClipboard(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",function(t){return t(e,r,i||o.Slice.empty)})&&i){var a=sliceSingleNode(i),s=a?e.state.tr.replaceSelectionWith(a,e.shiftKey):e.state.tr.replaceSelection(i);e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}H.copy=$.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var o=X?null:t.clipboardData,i=serializeForClipboard(e,n.content()),a=i.dom,s=i.text;o?(t.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",s)):captureCopy(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},$.paste=function(e,t){var n=X?null:t.clipboardData,r=n&&n.getData("text/html"),o=n&&n.getData("text/plain");n&&(r||o||n.files.length)?(doPaste(e,o,r,t),t.preventDefault()):capturePaste(e,t)};var Z=function Dragging(e,t){this.slice=e,this.move=t},Y=a.mac?"altKey":"ctrlKey";for(var Q in H.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var o=e.state.selection,i=o.empty?null:e.posAtCoords(eventCoords(t));if(i&&i.pos>=o.from&&i.pos<=(o instanceof r.NodeSelection?o.to-1:o.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var a=e.docView.nearestDesc(t.target,!0);if(!a||!a.node.type.spec.draggable||a==e.docView)return;e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,a.posBefore)))}var s=e.state.selection.content(),l=serializeForClipboard(e,s),c=l.dom,u=l.text;t.dataTransfer.clearData(),t.dataTransfer.setData(X?"Text":"text/html",c.innerHTML),X||t.dataTransfer.setData("text/plain",u),e.dragging=new Z(s,!t[Y])}},H.dragend=function(e){var t=e.dragging;window.setTimeout(function(){e.dragging==t&&(e.dragging=null)},50)},$.dragover=$.dragenter=function(e,t){return t.preventDefault()},$.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var a=e.posAtCoords(eventCoords(t));if(a){var s=e.state.doc.resolve(a.pos);if(s){var l=n&&n.slice||parseFromClipboard(e,t.dataTransfer.getData(X?"Text":"text/plain"),X?null:t.dataTransfer.getData("text/html"),!1,s),c=n&&!t[Y];if(e.someProp("handleDrop",function(n){return n(e,t,l||o.Slice.empty,c)}))t.preventDefault();else if(l){t.preventDefault();var u=l?Object(i.g)(e.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);var p=e.state.tr;c&&p.deleteSelection();var d=p.mapping.map(u),f=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,h=p.doc;if(f?p.replaceRangeWith(d,d,l.content.firstChild):p.replaceRange(d,d,l),!p.doc.eq(h)){var m=p.doc.resolve(d);if(f&&r.NodeSelection.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))p.setSelection(new r.NodeSelection(m));else{var g=p.mapping.map(u);p.mapping.maps[p.mapping.maps.length-1].forEach(function(e,t,n,r){return g=r}),p.setSelection(selectionBetween(e,m,p.doc.resolve(g)))}e.focus(),e.dispatch(p.setMeta("uiEvent","drop"))}}}}}},H.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&selectionToDOM(e)},20))},H.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},H.beforeinput=function(e,t){if(a.chrome&&a.android&&"deleteContentBackward"==t.inputType){var n=e.domChangeCount;setTimeout(function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",function(t){return t(e,keyEvent(8,"Backspace"))}))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}},50)}},$)H[Q]=$[Q];function compareObjs(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var ee=function WidgetType(e,t){this.spec=t||ae,this.side=this.spec.side||0,this.toDOM=e};ee.prototype.map=function map(e,t,n,r){var o=e.mapResult(t.from+r,this.side<0?-1:1),i=o.pos;return o.deleted?null:new re(i-n,i-n,this)},ee.prototype.valid=function valid(){return!0},ee.prototype.eq=function eq(e){return this==e||e instanceof ee&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&compareObjs(this.spec,e.spec))};var te=function InlineType(e,t){this.spec=t||ae,this.attrs=e};te.prototype.map=function map(e,t,n,r){var o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new re(o,i,this)},te.prototype.valid=function valid(e,t){return t.from=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;se){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,o)}},se.prototype.map=function map(e,t,n){return this==le||0==e.maps.length?this:this.mapInner(e,t,0,0,n||ae)},se.prototype.mapInner=function mapInner(e,t,n,r,o){for(var i,a=0;aa&&c.to=e){this.children[o]==e&&(n=this.children[o+2]);break}for(var i=e+1,a=i+t.content.size,s=0;si&&l.type instanceof te){var c=Math.max(i,l.from)-i,u=Math.min(a,l.to)-i;cl+i||(t>=s[a]+i?s[a+1]=-1:n>=o&&(c=r-n-(t-e))&&(s[a]+=c,s[a+1]+=c))}},c=0;c=r.content.size){u=!0;continue}var h=n.map(e[p+1]+i,-1)-o,m=r.content.findIndex(f),g=m.index,v=m.offset,y=r.maybeChild(g);if(y&&v==f&&v+y.nodeSize==h){var b=s[p+2].mapInner(n,y,d+1,e[p]+i+1,a);b!=le?(s[p]=f,s[p+1]=h,s[p+2]=b):(s[p+1]=-2,u=!0)}else u=!0}if(u){var w=buildTree(mapAndGatherRemainingDecorations(s,e,t||[],n,o,i,a),r,0,a);t=w.local;for(var k=0;kn&&a.to0;)t++;e.splice(t,0,n)}function viewDecorations(e){var t=[];return e.someProp("decorations",function(n){var r=n(e.state);r&&r!=le&&t.push(r)}),e.cursorWrapper&&t.push(se.create(e.state.doc,[e.cursorWrapper.deco])),ce.from(t)}ce.prototype.forChild=function forChild(e,t){if(t.isLeaf)return se.empty;for(var n=[],r=0;ro.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,u,c);!d&&e.selection.eq(o.selection)||(s=!0);var f,h,m,v,y,b,w,k,x,C,S,E="preserve"==p&&s&&null==this.dom.style.overflowAnchor&&storeScrollPos(this);if(s){this.domObserver.stop();var _=d&&(a.ie||a.chrome)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&(v=o.selection,y=e.selection,b=Math.min(v.$anchor.sharedDepth(v.head),y.$anchor.sharedDepth(y.head)),v.$anchor.start(b)!=y.$anchor.start(b));if(d){var O=a.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!i&&this.docView.update(e.doc,u,c,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=docViewDesc(e.doc,u,c,this.dom,this)),O&&!this.trackWrites&&(_=!0)}_||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(f=this,h=f.docView.domFromPos(f.state.selection.anchor),m=f.root.getSelection(),g(h.node,h.offset,m.anchorNode,m.anchorOffset)))?selectionToDOM(this,_):(syncNodeSelection(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(o),"reset"==p)this.dom.scrollTop=0;else if("to selection"==p){var R=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",function(e){return e(n)})||(e.selection instanceof r.NodeSelection?scrollRectIntoView(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),R):scrollRectIntoView(this,this.coordsAtPos(e.selection.head,1),R))}else E&&(k=(w=E).refDOM,x=w.refTop,C=w.stack,S=k?k.getBoundingClientRect().top:0,restoreScrollStack(C,0==S?0:S-x))},ue.prototype.destroyPluginViews=function destroyPluginViews(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},ue.prototype.updatePluginViews=function updatePluginViews(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1;return function(n){var o=r.Selection.findFrom(n.doc.resolve(e),t,!0);return o?n.setSelection(o):n}},c=function isSelectableNode(e){return e.type&&e.type.spec.selectable},u=function shouldSelectNode(e){return c(e)&&e.type.isLeaf},p=function setSelection(e,t,n){return u(e)?n.setSelection(new r.NodeSelection(n.doc.resolve(t))):l(t)(n)},d=function safeInsert(e,t,n){return function(r){var o="number"==typeof t,i=r.selection.$from,l=o?r.doc.resolve(t):f(r.selection)?r.doc.resolve(i.pos+1):i,u=l.parent;if(f(r.selection)&&n&&r!==(r=s(e)(r)))return r;if(k(u)&&r!==(r=a(u.type,e)(r))){var d=c(e)?l.before(l.depth):l.pos;return p(e,d,r)}if(w(l,e)){r.insert(l.pos,e);var h=o?l.pos:c(e)?r.selection.$anchor.pos-1:r.selection.$anchor.pos;return m(p(e,h,r))}for(var g=l.depth;g>0;g--){var v=l.after(g),y=r.doc.resolve(v);if(w(y,e))return r.insert(v,e),m(p(e,v,r))}return r}},f=function isNodeSelection(e){return e instanceof r.NodeSelection},h=function equalNodeType(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e},m=function cloneTr(e){return Object.assign(Object.create(e),e).setTime(Date.now())},g=function replaceNodeAtPos(e,t){return function(n){var r=n.doc.nodeAt(e),o=n.doc.resolve(e);if(v(o,t)){var i=(n=n.replaceWith(e,e+r.nodeSize,t)).selection.$from.pos-1;return n=l(Math.max(i,0),-1)(n),n=l(n.selection.$from.start())(n),m(n)}return n}},v=function canReplace(e,t){var n=e.node(e.depth);return n&&n.type.validContent(t instanceof o.Fragment?t:o.Fragment.from(t))},y=function removeNodeAtPos(e){return function(t){var n=t.doc.nodeAt(e);return m(t.delete(e,e+n.nodeSize))}},b=function tableNodeTypes(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;var t={};return Object.keys(e.nodes).forEach(function(n){var r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t},w=function canInsert(e,t){var n=e.index();return t instanceof o.Fragment?e.parent.canReplace(n,n,t):t instanceof o.Node&&e.parent.canReplaceWith(n,n,t.type)},k=function isEmptyParagraph(e){return!e||"paragraph"===e.type.name&&2===e.nodeSize},x=function findTableClosestToPos(e){return P(e,function predicate(e){return e.type.spec.tableRole&&/table/i.test(e.type.spec.tableRole)})},C=function createCell(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?e.createChecked(null,t):e.createAndFill()},S=function isRectSelected(e){return function(t){for(var n=i.TableMap.get(t.$anchorCell.node(-1)),r=t.$anchorCell.start(-1),o=n.cellsInRect(e),a=n.cellsInRect(n.rectBetween(t.$anchorCell.pos-r,t.$headCell.pos-r)),s=0,l=o.length;sn[0]?-1:1,i=e.splice(t[0],t.length),a=i.length%2==0?1:0,s=void 0;return s=-1===r&&1===o?n[0]-1:1===r&&-1===o?n[n.length-1]-a+1:-1===o?n[0]:n[n.length-1]-a,e.splice.apply(e,[s,0].concat(i)),e},T=function checkInvalidMovements(e,t,n,r){var o="Target position is invalid, you can't move the "+r+" "+e+" to "+t+", the target can't be split. You could use tryToFit option.";if(1===(e>t?-1:1)){if(-1!==n.slice(0,n.length-1).indexOf(t))throw new Error(o)}else if(-1!==n.slice(1).indexOf(t))throw new Error(o);return!0},D=function findParentNode(e){return function(t){var n=t.$from;return P(n,e)}},P=function findParentNodeClosestToPos(e,t){for(var n=e.depth;n>0;n--){var r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}},L=function findParentDomRef(e,t){return function(n){var r=D(e)(n);if(r)return I(r.pos,t)}},N=function hasParentNode(e){return function(t){return!!D(e)(t)}},F=function findParentNodeOfType(e){return function(t){return D(function(t){return h(e,t)})(t)}},j=function findPositionOfNodeBefore(e){var t=e.$from.nodeBefore,n=r.Selection.findFrom(e.$from,-1);if(n&&t){var o=F(t.type)(n);return o?o.pos:n.$from.pos}},I=function findDomRefAtPos(e,t){var n=t(e),r=n.node.childNodes[n.offset];return n.node.nodeType===Node.TEXT_NODE?n.node.parentNode:r&&r.nodeType!==Node.TEXT_NODE?r:n.node},B=function flatten(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)throw new Error('Invalid "node" parameter');var n=[];return e.descendants(function(e,r){if(n.push({node:e,pos:r}),!t)return!1}),n},q=function findChildren(e,t,n){if(!e)throw new Error('Invalid "node" parameter');if(!t)throw new Error('Invalid "predicate" parameter');return B(e,n).filter(function(e){return t(e.node)})},z=function findChildrenByType(e,t,n){return q(e,function(e){return e.type===t},n)};function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0&&t<=r.width-1){var o=r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height});return e.concat(o.map(function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}}))}},[])}}},$=function getCellsInRow(e){return function(t){var n=U(t);if(n){var r=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce(function(e,t){if(t>=0&&t<=r.height-1){var o=r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1});return e.concat(o.map(function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}}))}},[])}}},K=function select(e){return function(t,n){return function(r){var o=U(r.selection),a="row"===e;if(o){var s=i.TableMap.get(o.node);if(t>=0&&t<(a?s.height:s.width)){var l=a?0:t,c=a?t:0,u=a?s.width:t+1,p=a?t+1:s.height;if(n){var d=te(r.selection.$from);if(!d)return r;var f=s.findCell(d.pos-o.start);a?(c=Math.min(c,f.top),p=Math.max(p,f.bottom)):(l=Math.min(l,f.left),u=Math.max(u,f.right))}var h=s.cellsInRect({left:l,top:c,right:a?u:l+1,bottom:a?c+1:p}),g=p-c==1?h:s.cellsInRect({left:a?l:u-1,top:a?p-1:c,right:u,bottom:p}),v=o.start+h[0],y=o.start+g[g.length-1],b=r.doc.resolve(v),w=r.doc.resolve(y);return m(r.setSelection(new i.CellSelection(w,b)))}}return r}}},J=K("column"),G=K("row"),X=function cloneRowAt(e){return function(t){var n=U(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.height){for(var o=n.node,a=b(o.type.schema),s=n.start,l=0;l1&&n+o>e})(t);f.push.apply(f,_toConsumableArray(r))},m=e;m>=0;m--)h(m);f.length&&f.forEach(function(e){t=ee(e,{rowspan:e.node.attrs.rowspan+1})(t)})}return d(a.row.create(c.attrs,u),s)(t)}}return t}},Z=function removeColumnAt(e){return function(t){var n=U(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.width)return Q(t);if(e>=0&&e<=r.width)return i.removeColumn(t,{map:r,tableStart:n.start,table:n.node},e),m(t)}return t}},Y=function removeRowAt(e){return function(t){var n=U(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.height)return Q(t);if(e>=0&&e<=r.height)return i.removeRow(t,{map:r,tableStart:n.start,table:n.node},e),m(t)}return t}},Q=function removeTable(e){for(var t=e.selection.$from,n=t.depth;n>0;n--){if("table"===t.node(n).type.spec.tableRole)return m(e.delete(t.before(n),t.after(n)))}return e},ee=function setCellAttrs(e,t){return function(n){return e?(n.setNodeMarkup(e.pos,null,Object.assign({},e.node.attrs,t)),m(n)):n}},te=function findCellClosestToPos(e){return P(e,function predicate(e){return e.type.spec.tableRole&&/cell/i.test(e.type.spec.tableRole)})},ne=function findCellRectClosestToPos(e){var t=te(e);if(t){var n=x(e),r=i.TableMap.get(n.node),o=t.pos-n.start;return r.rectBetween(o,o)}},re=function filterCellsInRow(e,t){return function(n){var r=[],o=$(e)(n.selection);if(o)for(var i=o.length-1;i>=0;i--)t(o[i],n)&&r.push(o[i]);return r}},oe=function getSelectionRangeInColumn(e){return function(t){for(var n=e,r=e,o=function _loop2(e){var o=H(e)(t.selection);o&&o.forEach(function(t){var o=t.node.attrs.colspan+e-1;o>=n&&(n=e),o>r&&(r=o)})},i=e;i>=0;i--)o(i);var a=function _loop3(e){var n=H(e)(t.selection);n&&n.forEach(function(t){var n=t.node.attrs.colspan+e-1;t.node.attrs.colspan>1&&n>r&&(r=n)})};for(i=e;i<=r;i++)a(i);var s=[];for(i=n;i<=r;i++){var l=H(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=H(n)(t.selection),u=$(0)(t.selection),p=t.doc.resolve(c[c.length-1].pos),d=void 0,f=r;f>=n;f--){var h=H(f)(t.selection);if(h&&h.length){for(var m=u.length-1;m>=0;m--)if(u[m].pos===h[0].pos){d=h[0];break}if(d)break}}return{$anchor:p,$head:t.doc.resolve(d.pos),indexes:s}}},ie=function getSelectionRangeInRow(e){return function(t){for(var n=e,r=e,o=function _loop4(e){$(e)(t.selection).forEach(function(t){var o=t.node.attrs.rowspan+e-1;o>=n&&(n=e),o>r&&(r=o)})},i=e;i>=0;i--)o(i);var a=function _loop5(e){$(e)(t.selection).forEach(function(t){var n=t.node.attrs.rowspan+e-1;t.node.attrs.rowspan>1&&n>r&&(r=n)})};for(i=e;i<=r;i++)a(i);var s=[];for(i=n;i<=r;i++){var l=$(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=$(n)(t.selection),u=H(0)(t.selection),p=t.doc.resolve(c[c.length-1].pos),d=void 0,f=r;f>=n;f--){var h=$(f)(t.selection);if(h&&h.length){for(var m=u.length-1;m>=0;m--)if(u[m].pos===h[0].pos){d=h[0];break}if(d)break}}return{$anchor:p,$head:t.doc.resolve(d.pos),indexes:s}}};t.isNodeSelection=f,t.canInsert=w,t.convertTableNodeToArrayOfRows=_,t.convertArrayOfRowsToTableNode=O,t.findParentNode=D,t.findParentNodeClosestToPos=P,t.findParentDomRef=L,t.hasParentNode=N,t.findParentNodeOfType=F,t.findParentNodeOfTypeClosestToPos=function findParentNodeOfTypeClosestToPos(e,t){return P(e,function(e){return h(t,e)})},t.hasParentNodeOfType=function hasParentNodeOfType(e){return function(t){return N(function(t){return h(e,t)})(t)}},t.findParentDomRefOfType=function findParentDomRefOfType(e,t){return function(n){return L(function(t){return h(e,t)},t)(n)}},t.findSelectedNodeOfType=function findSelectedNodeOfType(e){return function(t){if(f(t)){var n=t.node,r=t.$from;if(h(e,n))return{node:n,pos:r.pos,depth:r.depth}}}},t.findPositionOfNodeBefore=j,t.findDomRefAtPos=I,t.flatten=B,t.findChildren=q,t.findTextNodes=function findTextNodes(e,t){return q(e,function(e){return e.isText},t)},t.findInlineNodes=function findInlineNodes(e,t){return q(e,function(e){return e.isInline},t)},t.findBlockNodes=function findBlockNodes(e,t){return q(e,function(e){return e.isBlock},t)},t.findChildrenByAttr=function findChildrenByAttr(e,t,n){return q(e,function(e){return!!t(e.attrs)},n)},t.findChildrenByType=z,t.findChildrenByMark=function findChildrenByMark(e,t,n){return q(e,function(e){return t.isInSet(e.marks)},n)},t.contains=function contains(e,t){return!!z(e,t).length},t.findTable=U,t.isCellSelection=V,t.getSelectionRect=function getSelectionRect(e){if(V(e)){var t=e.$anchorCell.start(-1);return i.TableMap.get(e.$anchorCell.node(-1)).rectBetween(e.$anchorCell.pos-t,e.$headCell.pos-t)}},t.isColumnSelected=function isColumnSelected(e){return function(t){if(V(t)){var n=i.TableMap.get(t.$anchorCell.node(-1));return S({left:e,right:e+1,top:0,bottom:n.height})(t)}return!1}},t.isRowSelected=function isRowSelected(e){return function(t){if(V(t)){var n=i.TableMap.get(t.$anchorCell.node(-1));return S({left:0,right:n.width,top:e,bottom:e+1})(t)}return!1}},t.isTableSelected=W,t.getCellsInColumn=H,t.getCellsInRow=$,t.getCellsInTable=function getCellsInTable(e){var t=U(e);if(t){var n=i.TableMap.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(function(e){var n=t.node.nodeAt(e),r=e+t.start;return{pos:r,start:r+1,node:n}})}},t.selectColumn=J,t.selectRow=G,t.selectTable=function selectTable(e){var t=U(e.selection);if(t){var n=i.TableMap.get(t.node).map;if(n&&n.length){var r=t.start+n[0],o=t.start+n[n.length-1],a=e.doc.resolve(r),s=e.doc.resolve(o);return m(e.setSelection(new i.CellSelection(s,a)))}}return e},t.emptyCell=function emptyCell(e,t){return function(n){if(e){var r=b(t).cell.createAndFill().content;if(!e.node.content.eq(r))return n.replaceWith(e.pos+1,e.pos+e.node.nodeSize,r),m(n)}return n}},t.addColumnAt=function addColumnAt(e){return function(t){var n=U(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.width)return m(i.addColumn(t,{map:r,tableStart:n.start,table:n.node},e))}return t}},t.moveRow=function moveRow(e,t,n){return function(r){var o=Object.assign({tryToFit:!1,direction:0},n),i=U(r.selection);if(!i)return r;var a=ie(e)(r).indexes,s=ie(t)(r).indexes;if(a.indexOf(t)>-1)return r;!o.tryToFit&&s.length>1&&T(e,t,s,"row");var l=M(i,a,s,o.direction);return m(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.moveColumn=function moveColumn(e,t,n){return function(r){var o=Object.assign({tryToFit:!1,direction:0},n),i=U(r.selection);if(!i)return r;var a=oe(e)(r).indexes,s=oe(t)(r).indexes;if(a.indexOf(t)>-1)return r;!o.tryToFit&&s.length>1&&T(e,t,s,"column");var l=R(i,a,s,o.direction);return m(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.addRowAt=function addRowAt(e,t){return function(n){var r=U(n.selection);if(r){var o=i.TableMap.get(r.node),a=e-1;if(t&&a>=0)return m(X(a)(n));if(e>=0&&e<=o.height)return m(i.addRow(n,{map:o,tableStart:r.start,table:r.node},e))}return n}},t.cloneRowAt=X,t.removeColumnAt=Z,t.removeRowAt=Y,t.removeTable=Q,t.removeSelectedColumns=function removeSelectedColumns(e){var t=e.selection;if(W(t))return Q(e);if(V(t)){var n=U(t);if(n){var r=i.TableMap.get(n.node),o=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==o.left&&o.right==r.width)return!1;for(var a=Object.assign({},o,{map:r,table:n.node,tableStart:n.start}),s=a.right-1;i.removeColumn(e,a,s),s!==a.left;s--)a.table=a.tableStart?e.doc.nodeAt(a.tableStart-1):e.doc,a.map=i.TableMap.get(a.table);return m(e)}}return e},t.removeSelectedRows=function removeSelectedRows(e){var t=e.selection;if(W(t))return Q(e);if(V(t)){var n=U(t);if(n){var r=i.TableMap.get(n.node),o=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==o.top&&o.bottom==r.height)return!1;for(var a=Object.assign({},o,{map:r,table:n.node,tableStart:n.start}),s=a.bottom-1;i.removeRow(e,a,s),s!==a.top;s--)a.table=a.tableStart?e.doc.nodeAt(a.tableStart-1):e.doc,a.map=i.TableMap.get(a.table);return m(e)}}return e},t.removeColumnClosestToPos=function removeColumnClosestToPos(e){return function(t){var n=ne(e);return n?Z(n.left)(l(e.pos)(t)):t}},t.removeRowClosestToPos=function removeRowClosestToPos(e){return function(t){var n=ne(e);return n?Y(n.top)(l(e.pos)(t)):t}},t.forEachCellInColumn=function forEachCellInColumn(e,t,n){return function(o){var i=H(e)(o.selection);if(i){for(var a=i.length-1;a>=0;a--)o=t(i[a],o);if(n){var s=o.doc.resolve(o.mapping.map(i[i.length-1].pos));o.setSelection(r.Selection.near(s))}return m(o)}return o}},t.forEachCellInRow=function forEachCellInRow(e,t,n){return function(o){var i=$(e)(o.selection);if(i){for(var a=i.length-1;a>=0;a--)o=t(i[a],o);if(n){var s=o.doc.resolve(o.mapping.map(i[i.length-1].pos));o.setSelection(r.Selection.near(s))}}return o}},t.setCellAttrs=ee,t.createTable=function createTable(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=b(e),a=i.cell,s=i.header_cell,l=i.row,c=i.table,u=[],p=[],d=0;d=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:v-b});break}for(var w=o+b*t,k=0;kr&&(i+=c.attrs.colspan)}for(var u=0;u1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}function findBadColWidths(e,t,n){e.problems||(e.problems=[]);for(var r=0,o={};r0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function cellWrapping(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}function isInTable(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function selectionCell(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:cellAround(t.$head)||cellNear(t.$head)}function cellNear(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(var o=e.nodeBefore,i=e.pos;o;o=o.lastChild,i--){var a=o.type.spec.tableRole;if("cell"==a||"header_cell"==a)return e.doc.resolve(i-o.nodeSize)}}function pointsAtCell(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function moveCellForward(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function inSameTable(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function findCell(e){return h.get(e.node(-1)).findCell(e.pos-e.start(-1))}function colCount(e){return h.get(e.node(-1)).colCount(e.pos-e.start(-1))}function nextCell(e,t,n){var r=e.start(-1),o=h.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==o?null:e.node(0).resolve(r+o)}function setAttr(e,t,n){var r={};for(var o in e)r[o]=e[o];return r[t]=n,r}function removeColSpan(e,t,n){void 0===n&&(n=1);var r=setAttr(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(function(e){return e>0})||(r.colwidth=null)),r}function addColSpan(e,t,n){void 0===n&&(n=1);var r=setAttr(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(var o=0;o0||g>0){var v=f.attrs;m>0&&(v=removeColSpan(v,0,m)),g>0&&(v=removeColSpan(v,v.colspan-g,g)),f=d.leftr.bottom){var y=setAttr(f.attrs,"rowspan",Math.min(d.bottom,r.bottom)-Math.max(d.top,r.top));f=d.top0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount},CellSelection.colSelection=function colSelection(e,t){void 0===t&&(t=e);var n=h.get(e.node(-1)),r=e.start(-1),o=n.findCell(e.pos-r),i=n.findCell(t.pos-r),a=e.node(0);return o.top<=i.top?(o.top>0&&(e=a.resolve(r+n.map[o.left])),i.bottom0&&(t=a.resolve(r+n.map[i.left])),o.bottom0)return!1;var o=n+this.$anchorCell.nodeAfter.attrs.colspan,i=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,i)==e.width},CellSelection.prototype.eq=function eq(e){return e instanceof CellSelection&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},CellSelection.rowSelection=function rowSelection(e,t){void 0===t&&(t=e);var n=h.get(e.node(-1)),r=e.start(-1),o=n.findCell(e.pos-r),i=n.findCell(t.pos-r),a=e.node(0);return o.left<=i.left?(o.left>0&&(e=a.resolve(r+n.map[o.top*n.width])),i.right0&&(t=a.resolve(r+n.map[i.top*n.width])),o.right=0&&!(t.after(i+1)=0&&!(n.before(a+1)>n.start(a));a--,o--);return r==o&&/row|table/.test(t.node(i).type.spec.tableRole)}function isTextSelectionAcrossCells(e){for(var t,n,r=e.$from,o=e.$to,i=r.depth;i>0;i--){var a=r.node(i);if("cell"===a.type.spec.tableRole||"header_cell"===a.type.spec.tableRole){t=a;break}}for(var s=o.depth;s>0;s--){var l=o.node(s);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===o.parentOffset}function normalizeSelection(e,t,n){var r,o,a=(t||e).selection,s=(t||e).doc;if(a instanceof i.NodeSelection&&(o=a.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)r=g.create(s,a.from);else if("row"==o){var l=s.resolve(a.from+1);r=g.rowSelection(l,l)}else if(!n){var c=h.get(a.node),u=a.from+1,p=u+c.map[c.width*c.height-1];r=g.create(s,u+1,p)}}else a instanceof i.TextSelection&&isCellBoundarySelection(a)?r=i.TextSelection.create(s,a.from):a instanceof i.TextSelection&&isTextSelectionAcrossCells(a)&&(r=i.TextSelection.create(s,a.$from.start(),a.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}function pastedCells(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,r=e.openEnd;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;var o=t.firstChild,i=o.type.spec.tableRole,s=o.type.schema,l=[];if("row"==i)for(var c=0;c=0;i--)for(var s=o.child(i).attrs,l=s.rowspan,c=s.colspan,u=r;u=t.length&&t.push(a.Fragment.empty),n[f]t&&(h=h.type.create(removeColSpan(h.attrs,h.attrs.colspan,d+h.attrs.colspan-t),h.content)),p.push(h),d+=h.attrs.colspan;for(var m=1;mn&&(x=x.type.create(setAttr(x.attrs,"rowspan",Math.max(1,n-x.attrs.rowspan)),x.content)),b.push(x)}g.push(a.Fragment.from(b))}i=g,o=n}return{width:r,height:o,rows:i}}function growTable(e,t,n,r,o,i,s){var l,c,u=tableNodeTypes(e.doc.type.schema);if(o>t.width)for(var p=0,d=0;pt.height){for(var v=[],y=0,b=(t.height-1)*t.width;y=t.width)&&n.nodeAt(t.map[b+y]).type==u.header_cell;v.push(w?c||(c=u.header_cell.createAndFill()):l||(l=u.cell.createAndFill()))}for(var k=u.row.create(null,a.Fragment.from(v)),x=[],C=t.height;C=0;o--){var a=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:a.childCount))return null;if("cell"==a.type.spec.tableRole||"header_cell"==a.type.spec.tableRole){var s=r.before(o),l="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function domInCell(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function cellUnderMouse(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?cellAround(e.state.doc.resolve(n.pos)):null}var b=new i.PluginKey("fix-tables");function changedDescendants(e,t,n,r){var o=e.childCount,i=t.childCount;e:for(var a=0,s=0;a0){var C="cell";w.firstChild&&(C=w.firstChild.type.spec.tableRole);for(var S=[],E=0;E0?-1:0;columnIsHeader(r,i,n+a)&&(a=0==n||n==r.width?null:0);for(var s=0;s0&&n0&&r.map[l-1]==c||n0?-1:0;rowIsHeader(r,i,n+c)&&(c=0==n||n==r.height?null:0);for(var u=0,p=r.width*n;u0&&n0&&d==r.map[p-r.width]){var f=o.nodeAt(d).attrs;e.setNodeMarkup(e.mapping.slice(c).map(d+i),null,setAttr(f,"rowspan",f.rowspan-1)),u+=f.colspan-1}else if(n0&&o[a]==o[a-1]||t.right0&&o[i]==o[i-n]||t.bottom1&&(a=setAttr(a,"rowspan",1)),a.colspan>1&&(a=setAttr(a,"colspan",1));for(var c,u=selectedRect(t),p=t.tr,d=0;d=0;r--){var i=e.node(-1).child(r);if(i.childCount)return o-1-i.lastChild.nodeSize;o-=i.nodeSize}}else{if(e.index()0;r--){if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}var C=function TableView(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),updateColumns(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function updateColumns(e,t,n,r,o,i){for(var a=0,s=!0,l=t.firstChild,c=e.firstChild,u=0,p=0;u-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function mousemove(e,r){handleMouseMove(e,r,t,n,o)},mouseleave:function mouseleave(e){handleMouseLeave(e)},mousedown:function mousedown(e,t){handleMouseDown$1(e,t,n)}},decorations:function decorations(e){var t=S.getState(e);if(t.activeHandle>-1)return handleDecorations(e,t.activeHandle)},nodeViews:{}}})}var E=function ResizeState(e,t){this.activeHandle=e,this.dragging=t};function handleMouseMove(e,t,n,r,o){var i=S.getState(e.state);if(!i.dragging){var a=domCellAround(t.target),s=-1;if(a){var l=a.getBoundingClientRect(),c=l.left,u=l.right;t.clientX-c<=n?s=edgeCell(e,t,"left"):u-t.clientX<=n&&(s=edgeCell(e,t,"right"))}if(s!=i.activeHandle){if(!o&&-1!==s){var p=e.state.doc.resolve(s),d=p.node(-1),f=h.get(d),m=p.start(-1);if(f.colCount(p.pos-m)+p.nodeAfter.attrs.colspan-1==f.width-1)return}updateHandle(e,s)}}}function handleMouseLeave(e){var t=S.getState(e.state);t.activeHandle>-1&&!t.dragging&&updateHandle(e,-1)}function handleMouseDown$1(e,t,n){var r=S.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;var o=e.state.doc.nodeAt(r.activeHandle),i=currentColWidth(e,r.activeHandle,o.attrs);function finish(t){window.removeEventListener("mouseup",finish),window.removeEventListener("mousemove",move);var r=S.getState(e.state);r.dragging&&(updateColumnWidth(e,r.activeHandle,draggedWidth(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(S,{setDragging:null})))}function move(t){if(!t.which)return finish(t);var r=S.getState(e.state),o=draggedWidth(r.dragging,t,n);displayColumnWidth(e,r.activeHandle,o,n)}return e.dispatch(e.state.tr.setMeta(S,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",finish),window.addEventListener("mousemove",move),t.preventDefault(),!0}function currentColWidth(e,t,n){var r=n.colspan,o=n.colwidth,i=o&&o[o.length-1];if(i)return i;var a=e.domAtPos(t),s=a.node.childNodes[a.offset].offsetWidth,l=r;if(o)for(var c=0;c-1&&e.docChanged){var r=e.mapping.map(t.activeHandle,-1);pointsAtCell(e.doc.resolve(r))||(r=null),t=new E(r,t.dragging)}return t}},function(t,n,r){"use strict";r.d(n,"a",function(){return tt});var o=r(1),i=r.n(o),a=r(0),s=r.n(a),u=r(181),p=r.n(u),h=Object.assign||function(e){for(var t,n=1;n",lt:"<",nbsp:" ",quot:"“"},y=["style","script"],w=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,k=/mailto:/i,x=/\n{2,}$/,C=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,S=/^ *> ?/gm,E=/^ {2,}\n/,_=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,O=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,R=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,M=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,A=/^(?:\n *)*\n/,T=/\r\n?/g,D=/^\[\^([^\]]+)](:.*)\n/,P=/^\[\^([^\]]+)]/,L=/\f/g,N=/^\s*?\[(x|\s)\]/,F=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,I=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,B=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,q=/&([a-z]+);/g,z=/^/,U=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,V=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,W=/^\{.*\}$/,H=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,$=/^<([^ >]+@[^ >]+)>/,K=/^<([^ >]+:\/[^ >]+)>/,J=/ *\n+$/,G=/(?:^|\n)( *)$/,X=/-([a-z])?/gi,Z=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Y=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Q=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,ee=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,te=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ne=/(\[|\])/g,re=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,oe=/\t/g,ie=/^ *\| */,ae=/(^ *\||\| *$)/g,se=/ *$/,le=/^ *:-+: *$/,ce=/^ *:-+ *$/,ue=/^ *-+: *$/,pe=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,de=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,fe=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,he=/^\\([^0-9A-Za-z\s])/,me=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ge=/(^\n+|\n+$|\s+$)/g,ve=/^([ \t]*)/,ye=/\\([^0-9A-Z\s])/gi,be=/^( *)((?:[*+-]|\d+\.)) +/,we=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,ke=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,xe=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Ce=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Se=[C,R,O,F,I,B,z,V,we,ke,Z,Y];function containsBlockSyntax(e){return Se.some(function(t){return t.test(e)})}function slugify(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function parseTableAlignCapture(e){return ue.test(e)?"right":le.test(e)?"center":ce.test(e)?"left":null}function parseTableRow(e,t,n){var r=n.inTable;n.inTable=!0;var o=t(e.trim(),n);n.inTable=r;var i=[[]];return o.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==o.length-1&&i.push([]):("text"===e.type&&(null==o[t+1]||"tableSeparator"===o[t+1].type)&&(e.content=e.content.replace(se,"")),i[i.length-1].push(e))}),i}function parseTableAlign(e){return e.replace(ae,"").split("|").map(parseTableAlignCapture)}function parseTableCells(e,t,n){return e.trim().split("\n").map(function(e){return parseTableRow(e,t,n)})}function parseTable(e,t,n){n.inline=!0;var r=parseTableRow(e[1],t,n),o=parseTableAlign(e[2]),i=parseTableCells(e[3],t,n);return n.inline=!1,{align:o,cells:i,header:r,type:"table"}}function getTableStyle(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function normalizeAttributeKey(e){return-1!==e.indexOf("-")&&null===e.match(U)&&(e=e.replace(X,function(e,t){return t.toUpperCase()})),e}function attributeValueToJSXPropValue(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){var n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=t.slice(n.length+1).trim(),e},{}):"href"===e?sanitizeUrl(t):(t.match(W)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}function normalizeWhitespace(e){return e.replace(T,"\n").replace(L,"").replace(oe," ")}function parserFor(e){function b(n,r){for(var o=[],i="";n;)for(var a=0;a2?i-2:0),s=2;s1?o=d(t?"span":"div",{key:"outer"},r):1===r.length?"string"==typeof(o=r[0])&&(o=d("span",{key:"outer"},o)):o=d("span",{key:"outer"}),o}function e(e){var t=e.match(w);return t?t.reduce(function(e,t,n){var r=t.indexOf("=");if(-1!==r){var o=normalizeAttributeKey(t.slice(0,r)).trim(),i=p()(t.slice(r+1).trim()),a=g[o]||o,l=e[a]=attributeValueToJSXPropValue(o,i);(B.test(l)||V.test(l))&&(e[a]=s.a.cloneElement(c(l.trim()),{key:n}))}else"style"!==t&&(e[g[t]||t]=!0);return e},{}):void 0}(n=n||{}).overrides=n.overrides||{},n.slugify=n.slugify||slugify,n.namedCodesToUnicode=n.namedCodesToUnicode?h({},v,n.namedCodesToUnicode):v;var r=n.createElement||s.a.createElement;var o=[],i={},a={blockQuote:{match:blockRegex(C),order:_e,parse:function d(e,t,n){return{content:t(e[0].replace(S,""),n)}},react:function e(t,n,r){return d("blockquote",{key:r.key},n(t.content,r))}},breakLine:{match:anyScopeRegex(E),order:_e,parse:captureNothing,react:function e(t,n,r){return d("br",{key:r.key})}},breakThematic:{match:blockRegex(_),order:_e,parse:captureNothing,react:function e(t,n,r){return d("hr",{key:r.key})}},codeBlock:{match:blockRegex(R),order:Ee,parse:function c(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(t,n,r){return d("pre",{key:r.key},d("code",{className:t.lang?"lang-"+t.lang:""},t.content))}},codeFenced:{match:blockRegex(O),order:Ee,parse:function b(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(M),order:Re,parse:function b(e){return{content:e[2]}},react:function e(t,n,r){return d("code",{key:r.key},t.content)}},footnote:{match:blockRegex(D),order:Ee,parse:function b(e){return o.push({footnote:e[2],identifier:e[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(P),order:_e,parse:function c(e){return{content:e[1],target:"#"+n.slugify(e[1])}},react:function e(t,n,r){return d("a",{key:r.key,href:sanitizeUrl(t.target)},d("sup",{key:r.key},t.content))}},gfmTask:{match:inlineRegex(N),order:_e,parse:function b(e){return{completed:"x"===e[1].toLowerCase()}},react:function e(t,n,r){return d("input",{checked:t.completed,key:r.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(F),order:_e,parse:function e(t,r,o){return{content:parseInline(r,t[2],o),id:n.slugify(t[2]),level:t[1].length}},react:function f(e,t,n){return d("h"+e.level,{id:e.id,key:n.key},t(e.content,n))}},headingSetext:{match:blockRegex(I),order:Ee,parse:function d(e,t,n){return{content:parseInline(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:anyScopeRegex(z),order:_e,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(Ce),order:_e,parse:function b(e){return{alt:e[1],target:unescapeUrl(e[2]),title:e[3]}},react:function e(t,n,r){return d("img",{key:r.key,alt:t.alt||void 0,title:t.title||void 0,src:sanitizeUrl(t.target)})}},link:{match:inlineRegex(xe),order:Re,parse:function d(e,t,n){return{content:parseSimpleInline(t,e[1],n),target:unescapeUrl(e[2]),title:e[3]}},react:function e(t,n,r){return d("a",{key:r.key,href:sanitizeUrl(t.target),title:t.title},n(t.content,r))}},linkAngleBraceStyleDetector:{match:inlineRegex(K),order:Ee,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(H),order:Ee,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex($),order:Ee,parse:function d(e){var t=e[1],n=e[1];return k.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function f(e,t,n){var r=G.exec(n),o=t._list||!t.inline;return r&&o?(e=r[1]+e,ke.exec(e)):null},order:_e,parse:function j(e,t,n){var r=e[2],o=r.length>1,i=o?+r:void 0,a=e[0].replace(x,"\n").match(we),s=!1;return{items:a.map(function(e,r){var o=be.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),l=e.replace(i,"").replace(be,""),c=r===a.length-1,u=-1!==l.indexOf("\n\n")||c&&s;s=u;var p,d=n.inline,f=n._list;n._list=!0,u?(n.inline=!1,p=l.replace(J,"\n\n")):(n.inline=!0,p=l.replace(J,""));var h=t(p,n);return n.inline=d,n._list=f,h}),ordered:o,start:i}},react:function f(e,t,n){return d(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return d("li",{key:r},t(e,n))}))}},newlineCoalescer:{match:blockRegex(A),order:Re,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Y),order:Re,parse:parseCaptureInline,react:function e(t,n,r){return d("p",{key:r.key},n(t.content,r))}},ref:{match:inlineRegex(Q),order:Ee,parse:function b(e){return i[e[1]]={target:e[2],title:e[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(ee),order:Ee,parse:function b(e){return{alt:e[1]||void 0,ref:e[2]}},react:function e(t,n,r){return d("img",{key:r.key,alt:t.alt,src:sanitizeUrl(i[t.ref].target),title:i[t.ref].title})}},refLink:{match:inlineRegex(te),order:Ee,parse:function d(e,t,n){return{content:t(e[1],n),fallbackContent:t(e[0].replace(ne,"\\$1"),n),ref:e[2]}},react:function e(t,n,r){return i[t.ref]?d("a",{key:r.key,href:sanitizeUrl(i[t.ref].target),title:i[t.ref].title},n(t.content,r)):d("span",{key:r.key},n(t.fallbackContent,r))}},table:{match:blockRegex(Z),order:_e,parse:parseTable,react:function f(e,t,n){return d("table",{key:n.key},d("thead",null,d("tr",null,e.header.map(function(r,o){return d("th",{key:o,style:getTableStyle(e,o)},t(r,n))}))),d("tbody",null,e.cells.map(function(r,o){return d("tr",{key:o},r.map(function(r,o){return d("td",{key:o,style:getTableStyle(e,o)},t(r,n))}))})))}},tableSeparator:{match:function c(e,t){return t.inTable?ie.exec(e):null},order:_e,parse:function a(){return{type:"tableSeparator"}},react:function a(){return" | "}},text:{match:anyScopeRegex(me),order:Me,parse:function c(e){return{content:e[0].replace(q,function(e,t){return n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e})}},react:function b(e){return e.content}},textBolded:{match:simpleInlineRegex(pe),order:Oe,parse:function d(e,t,n){return{content:t(e[2],n)}},react:function e(t,n,r){return d("strong",{key:r.key},n(t.content,r))}},textEmphasized:{match:simpleInlineRegex(de),order:Re,parse:function d(e,t,n){return{content:t(e[2],n)}},react:function e(t,n,r){return d("em",{key:r.key},n(t.content,r))}},textEscaped:{match:simpleInlineRegex(he),order:_e,parse:function b(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(fe),order:Re,parse:parseCaptureInline,react:function e(t,n,r){return d("del",{key:r.key},n(t.content,r))}}};!0!==n.disableParsingRawHTML&&(a.htmlBlock={match:anyScopeRegex(B),order:_e,parse:function l(t,n,r){var o=t[3].match(ve)[1],i=new RegExp("^"+o,"gm"),a=t[3].replace(i,""),s=containsBlockSyntax(a)?parseBlock:parseInline,c=t[1].toLowerCase(),u=-1!==y.indexOf(c);return{attrs:e(t[2]),content:u?t[3]:s(n,a,r),noInnerParse:u,tag:u?c:t[1]}},react:function e(t,n,r){return d(t.tag,h({key:r.key},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},a.htmlSelfClosing={match:anyScopeRegex(V),order:_e,parse:function b(t){return{attrs:e(t[2]||""),tag:t[1]}},react:function e(t,n,r){return d(t.tag,h({},t.attrs,{key:r.key}))}});var u=parserFor(a),m=reactFor(ruleOutput(a)),T=c(function(e){return e.replace(/)/g,"")}(t));return o.length&&T.props.children.push(d("footer",{key:"footer"},o.map(function(e){return d("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,m(u(e.footnote,{inline:!0})))}))),T}var Ae=r(100),Te=r(43),De=r(60),Pe=r(8),Le=r(62);function MarkdownHeadingRenderer(e){var t=e.classes,n=e.level,r=e.children;return s.a.createElement("div",{className:t.spacing},s.a.createElement(Le.a,{level:n},r))}MarkdownHeadingRenderer.propTypes={classes:i.a.object.isRequired,level:i.a.oneOf([1,2,3,4,5,6]).isRequired,children:i.a.node};var Ne=Object(Pe.a)(function styles(e){return{spacing:{marginBottom:e.space[2]}}})(MarkdownHeadingRenderer),Fe=r(28),je=r.n(Fe);function ListRenderer(e){var t=e.classes,n=e.ordered,r=e.children,o=n?"ol":"ul",i=je()(t.list,n&&t.ordered);return s.a.createElement(o,{className:i},a.Children.map(r,function(e){return Object(a.cloneElement)(e,{className:t.li})}))}ListRenderer.propTypes={classes:i.a.object.isRequired,ordered:i.a.bool,children:i.a.node.isRequired},ListRenderer.defaultProps={ordered:!1};var Ie=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontFamily;return{list:{marginTop:0,marginBottom:t[2],paddingLeft:t[3],fontSize:"inherit"},ordered:{listStyleType:"decimal"},li:{color:n.base,fontFamily:r.base,fontSize:"inherit",lineHeight:1.5,listStyleType:"inherit"}}})(ListRenderer);function BlockquoteRenderer(e){var t=e.classes,n=e.className,r=e.children,o=je()(t.blockquote,n);return s.a.createElement("blockquote",{className:o},r)}BlockquoteRenderer.propTypes={classes:i.a.object.isRequired,className:i.a.string,children:i.a.node.isRequired};var Be=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily;return{blockquote:{margin:[[t[2],t[4]]],padding:0,color:n.base,fontFamily:o.base,fontSize:r.base,lineHeight:1.5}}})(BlockquoteRenderer);function PreRenderer(e){var t=e.classes,n=e.children;return s.a.createElement("pre",{className:t.pre},n)}PreRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var qe=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily,i=e.borderRadius;return{pre:{fontFamily:o.base,fontSize:r.small,lineHeight:1.5,color:n.base,whiteSpace:"pre",backgroundColor:n.codeBackground,padding:[[t[1],t[2]]],border:[[1,n.border,"solid"]],borderRadius:i,marginTop:0,marginBottom:t[2]}}})(PreRenderer),ze=r(41),Ue=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function CheckboxRenderer(e){var t=e.classes,n=CheckboxRenderer_objectWithoutProperties(e,["classes"]);return s.a.createElement("input",Ue({},n,{type:"checkbox",className:t.input}))}CheckboxRenderer.propTypes={classes:i.a.object.isRequired};var Ve=Object(Pe.a)(function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}})(CheckboxRenderer);function HrRenderer(e){var t=e.classes;return s.a.createElement("hr",{className:t.hr})}HrRenderer.propTypes={classes:i.a.object.isRequired};var We=Object(Pe.a)(function styles(e){var t=e.space;return{hr:{borderBottom:[[1,e.color.border,"solid"]],marginTop:0,marginBottom:t[2]}}})(HrRenderer);function DetailsRenderer(e){var t=e.classes,n=e.children;return s.a.createElement("details",{className:t.details},n)}DetailsRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var He=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily;return{details:{marginBottom:t[2],fontFamily:o.base,fontSize:r.base,color:n.base}}})(DetailsRenderer);function DetailsSummaryRenderer(e){var t=e.classes,n=e.children;return s.a.createElement("summary",{className:t.summary},n)}DetailsSummaryRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var $e=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily;return{summary:{marginBottom:t[1],fontFamily:o.base,fontSize:r.base,color:n.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",n.linkHover]],outlineOffset:2}}}})(DetailsSummaryRenderer);function TableRenderer(e){var t=e.classes,n=e.children;return s.a.createElement("table",{className:t.table},n)}TableRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var Ke=Object(Pe.a)(function styles(e){return{table:{marginTop:0,marginBottom:e.space[2],borderCollapse:"collapse"}}})(TableRenderer);function TableHeadRenderer(e){var t=e.classes,n=e.children;return s.a.createElement("thead",{className:t.thead},n)}TableHeadRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var Je=Object(Pe.a)(function styles(e){return{thead:{borderBottom:[[1,e.color.border,"solid"]]}}})(TableHeadRenderer);function TableBodyRenderer(e){var t=e.children;return s.a.createElement("tbody",null,t)}TableBodyRenderer.propTypes={children:i.a.node.isRequired};var Ge=TableBodyRenderer;function TableRowRenderer(e){var t=e.children;return s.a.createElement("tr",null,t)}TableRowRenderer.propTypes={children:i.a.node.isRequired};var Xe=TableRowRenderer;function TableCellRenderer(e){var t=e.classes,n=e.header,r=e.children;return n?s.a.createElement("th",{className:t.th},r):s.a.createElement("td",{className:t.td},r)}TableCellRenderer.propTypes={classes:i.a.object.isRequired,header:i.a.bool,children:i.a.node.isRequired},TableCellRenderer.defaultProps={header:!1};var Ze=Object(Pe.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily;return{td:{padding:[[t[0],t[2],t[0],0]],fontFamily:o.base,fontSize:r.base,color:n.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}})(TableCellRenderer),Ye=Object.assign||function(e){for(var t=1;t-1}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){isDocumentElement(e)?window.scrollTo(0,t):e.scrollTop=t}function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}function animatedScrollTo(e,t,n,o){void 0===n&&(n=200),void 0===o&&(o=r);var i=getScrollTop(e),a=t-i,s=10,l=0;!function animateScroll(){var t,r=a*((t=(t=l+=s)/n-1)*t*t+1)+i;scrollTo(e,r),ln.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function findCutAfter(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1=0;d--)p=o.Fragment.from(a[d].create(null,p));p=o.Fragment.from(l.copy(p));var f=e.tr.step(new r.b(t.pos-1,u,t.pos,u,new o.Slice(p,1,0),a.length,!0)),h=u+2*a.length;Object(r.e)(f.doc,h)&&f.join(h),n(f.scrollIntoView())}return!0}var m=i.Selection.findFrom(t,1),g=m&&m.$from.blockRange(m.$to),v=g&&Object(r.j)(g);return null!=v&&v>=t.depth&&(n&&n(e.tr.lift(g,v).scrollIntoView()),!0)}function setBlockType(e,t){return function(n,r){var o=n.selection,i=o.from,a=o.to,s=!1;return n.doc.nodesBetween(i,a,function(r,o){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var i=n.doc.resolve(o),a=i.index();s=i.parent.canReplaceWith(a,a+1,e)}}),!!s&&(r&&r(n.tr.setBlockType(i,a,e,t).scrollIntoView()),!0)}}function markApplies(e,t,n){for(var r=function(r){var o=t[r],i=o.$from,a=o.$to,s=0==i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,a.pos,function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)}),s)return{v:!0}},o=0;o=0;b--)Object(r.e)(n.doc,l[b])&&n.join(l[b]);e(n)}}function autoJoin(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,r){return e(n,r&&wrapDispatchForJoin(r,t))}}function chainCommands(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,r){for(var o=0;o0))return!1;var a=findCutBefore(o);if(!a){var s=o.blockRange(),l=s&&Object(r.j)(s);return null!=l&&(t&&t(e.tr.lift(s,l).scrollIntoView()),!0)}var c=a.nodeBefore;if(!c.type.spec.isolating&&deleteBarrier(e,a,t))return!0;if(0==o.parent.content.size&&(textblockAt(c,"end")||i.NodeSelection.isSelectable(c))){if(t){var u=e.tr.deleteRange(o.before(),o.after());u.setSelection(textblockAt(c,"end")?i.Selection.findFrom(u.doc.resolve(u.mapping.map(a.pos,-1)),-1):i.NodeSelection.create(u.doc,a.pos-c.nodeSize)),t(u.scrollIntoView())}return!0}return!(!c.isAtom||a.depth!=o.depth-1||(t&&t(e.tr.delete(a.pos-c.nodeSize,a.pos).scrollIntoView()),0))},function selectNodeBackward(e,t,n){var r=e.selection,o=r.$head,a=o;if(!r.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;a=findCutBefore(o)}var s=a&&a.nodeBefore;return!(!s||!i.NodeSelection.isSelectable(s)||(t&&t(e.tr.setSelection(i.NodeSelection.create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),0))}),s=chainCommands(deleteSelection,function joinForward(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("forward",e):r.parentOffset1&&n.after()!=n.end(-1)){var o=n.before();if(Object(r.f)(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}var i=n.blockRange(),a=i&&Object(r.j)(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},splitBlock),"Mod-Enter":function exitCode(e,t){var n=e.selection,r=n.$head,o=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(o))return!1;var a=r.node(-1),s=r.indexAfter(-1),l=defaultBlockAt(a.contentMatchAt(s));if(!a.canReplaceWith(s,s,l))return!1;if(t){var c=r.after(),u=e.tr.replaceWith(c,c,l.createAndFill());u.setSelection(i.Selection.near(u.doc.resolve(c),1)),t(u.scrollIntoView())}return!0},Backspace:a,"Mod-Backspace":a,Delete:s,"Mod-Delete":s,"Mod-a":function selectAll(e,t){return t&&t(e.tr.setSelection(new i.AllSelection(e.doc))),!0}},c={"Ctrl-h":l.Backspace,"Alt-Backspace":l["Mod-Backspace"],"Ctrl-d":l.Delete,"Ctrl-Alt-Backspace":l["Mod-Delete"],"Alt-Delete":l["Mod-Delete"],"Alt-d":l["Mod-Delete"]};for(var u in l)c[u]=l[u];var p=("undefined"!=typeof navigator?/Mac/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?c:l},function(e,t,n){"use strict";var r=n(157),o=Object.prototype.toString;function isArray(e){return"[object Array]"===o.call(e)}function isUndefined(e){return void 0===e}function isObject(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===o.call(e)}function forEach(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),isArray(e))for(var n=0,r=e.length;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(90),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function isCustomProperty(e){return 45===e.charCodeAt(1)},c=function isProcessableValue(e){return null!=e&&"boolean"!=typeof e},u=Object(i.a)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),p=function processStyleValue(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return d={name:t,styles:n,next:d},t})}return 1===o[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)d={name:o.name,styles:o.styles,next:d},o=o.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var i=d,a=n(e);return d=i,handleInterpolation(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function TextRenderer(e){var t,n=e.classes,r=e.semantic,i=e.size,a=e.color,s=e.underlined,l=e.children,p=_objectWithoutProperties(e,["classes","semantic","size","color","underlined","children"]),d=r||"span",f=c()(n.text,n[i+"Size"],n[a+"Color"],(_defineProperty(t={},n[r],r),_defineProperty(t,n.isUnderlined,s),t));return o.a.createElement(d,u({},p,{className:f}),l)}TextRenderer.propTypes={classes:a.a.object.isRequired,semantic:a.a.oneOf(["em","strong"]),size:a.a.oneOf(["inherit","small","base","text"]),color:a.a.oneOf(["base","light"]),underlined:a.a.bool,children:a.a.node.isRequired},TextRenderer.defaultProps={size:"inherit",color:"base",underlined:!1};var p=Object(s.a)(function styles(e){var t=e.fontFamily,n=e.fontSize,r=e.color;return{text:{fontFamily:t.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:n.small},baseSize:{fontSize:n.base},textSize:{fontSize:n.text},baseColor:{color:r.base},lightColor:{color:r.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",r.lightest]]}}})(TextRenderer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(40);t.a=function css(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&p.splice(t,1)}function createStyleElement(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),addAttrs(t,e.attrs),insertStyleElement(e,t),t}function createLinkElement(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",addAttrs(t,e.attrs),insertStyleElement(e,t),t}function addAttrs(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function addStyle(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=createStyleElement(t)),r=applyToSingletonTag.bind(null,n,a,!1),o=applyToSingletonTag.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=createLinkElement(t),r=updateLink.bind(null,n,t),o=function(){removeStyleElement(n),n.href&&URL.revokeObjectURL(n.href)}):(n=createStyleElement(t),r=applyToTag.bind(null,n),o=function(){removeStyleElement(n)});return r(e),function updateStyle(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=listToStyles(e,t);return addStylesToDom(n,t),function update(e){for(var r=[],o=0;o1)for(var n=1;n").concat(o,"")},a=0;a";for(var s="",l=!1,c=0;c");var d="";p.length>1&&(d=Object.keys(p[1]).reduce(function(e,t){return"".concat(e," ").concat(t,'="').concat(p[1][t],'"')},d)),d.length&&(d=" ".concat(d)),l&&(d="".concat(d,' style="text-align: center;"'));var f=p[0];s="<".concat(f).concat(d,">").concat(s,"")}return s};t.a={convertToHTML:function convertToHTML(e,t){if("{}"===JSON.stringify(t))return"";var n=e.nodeFromJSON(t);return o(n,-1)},convertFromHTML:function convertFromHTML(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"

";if(!document)throw new Error("Document object is required to convert from html.");var n=document.createElement("div");document.body.appendChild(n),n.innerHTML=t;var o=r.DOMParser.fromSchema(e).parse(n);return document.body.removeChild(n),{doc:o.toJSON(),selection:{type:"text",anchor:0,head:0}}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(41),l=n(8),c=n(28),u=n.n(c);function NameRenderer(e){var t,n,r,i=e.classes,a=e.children,l=e.deprecated,c=u()(i.name,(t={},n=i.isDeprecated,r=l,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));return o.a.createElement("span",{className:c},o.a.createElement(s.a,null,a))}NameRenderer.propTypes={classes:a.a.object.isRequired,children:a.a.node.isRequired,deprecated:a.a.bool};var p=Object(l.a)(function styles(e){var t=e.fontSize,n=e.color;return{name:{fontSize:t.small,color:n.name},isDeprecated:{color:n.light,textDecoration:"line-through"}}})(NameRenderer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function ArgumentRenderer(e){var t=e.classes,n=e.name,r=e.type,i=e.description,a=e.returns,s=e.block,p=_objectWithoutProperties(e,["classes","name","type","description","returns","block"]),h=r&&"OptionalType"===r.type,m=p.default;return h&&(r=r.expression),o.a.createElement(d.a,f({className:s&&t.block},p),a&&"Returns",n&&o.a.createElement("span",null,o.a.createElement(c.a,null,n),r&&":"),r&&o.a.createElement(u.a,null,r.name,h&&"?",!!m&&"="+m),r&&i&&" — ",i&&o.a.createElement(l.a,{text:""+i,inline:!0}))}ArgumentRenderer.propTypes={classes:a.a.object.isRequired,name:a.a.string,type:a.a.object,default:a.a.string,description:a.a.string,returns:a.a.bool,block:a.a.bool};var h=Object(s.a)(function styles(e){return{block:{marginBottom:e.space[2]}}})(ArgumentRenderer)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(8);function ParaRenderer(e){var t=e.classes,n=e.semantic,r=e.children,i=n||"div";return o.a.createElement(i,{className:t.para},r)}ParaRenderer.propTypes={classes:a.a.object.isRequired,semantic:a.a.oneOf(["p"]),children:a.a.node.isRequired};var l=Object(s.a)(function styles(e){var t=e.space,n=e.color,r=e.fontFamily;return{para:{marginTop:0,marginBottom:t[2],color:n.base,fontFamily:r.base,fontSize:"inherit",lineHeight:1.5}}})(ParaRenderer)},function(e,t,n){"use strict";n.d(t,"a",function(){return JsDoc});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(30),l=n(182),c=n.n(l),u=function plural(e,t){return 1===e.length?t:t+"s"},p=function list(e){return e.map(function(e){return e.description}).join(", ")},d=function paragraphs(e){return e.map(function(e){return e.description}).join("\n\n")},f={deprecated:function deprecated(e){return"**Deprecated:** "+e[0].description},see:function see(e){return d(e)},link:function link(e){return d(e)},author:function author(e){return u(e,"Author")+": "+p(e)},version:function version(e){return"Version: "+e[0].description},since:function since(e){return"Since: "+e[0].description}};function getMarkdown(e){return c()(f,function(t,n){return e[n]&&t(e[n])}).filter(Boolean).join("\n\n")}function JsDoc(e){var t=getMarkdown(e);return t?o.a.createElement(s.a,{text:t}):null}JsDoc.propTypes={deprecated:a.a.array,see:a.a.array,link:a.a.array,author:a.a.array,version:a.a.array,since:a.a.array}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(5),o=n.n(r),i=n(6),a=n.n(i),s=n(0),l=n.n(s),c=n(1),u=n.n(c),p=n(84),d=n(8);function HeadingRenderer(e){var t=e.classes,n=e.level,r=e.children,i=a()(e,["classes","level","children"]),s="h".concat(n),c=Object(p.a)(t.heading,t["heading".concat(n)]);return l.a.createElement(s,o()({},i,{className:c}),r)}HeadingRenderer.propTypes={classes:u.a.object.isRequired,level:u.a.oneOf([1,2,3,4,5,6]).isRequired,children:u.a.node};var f=Object(d.a)(function styles(e){var t=e.color,n=e.fontFamily,r=e.fontSize;return{heading:{margin:0,color:t.base,fontFamily:n.base,fontWeight:"normal"},heading1:{fontSize:"36px",margin:"16px 0"},heading2:{fontSize:"36px",marginTop:16},heading3:{fontSize:r.h3},heading4:{fontSize:r.h4},heading5:{fontSize:r.h5,fontWeight:"bold"},heading6:{fontSize:r.h6,fontStyle:"italic"}}})(HeadingRenderer)},function(e,t,n){var r=n(145),o=n(146),i=n(78),a=n(38),s=n(51),l=n(79),c=n(77),u=n(80),p="[object Map]",d="[object Set]",f=Object.prototype.hasOwnProperty;e.exports=function isEmpty(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if(t==p||t==d)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ts)&&(F=(B=B.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(s,"$1"+e.trim());case 58:return e.trim()+t.replace(s,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102n.charCodeAt(0)&&(n=n.trim()),n=[n],01&&(n=[t.shift()],t.forEach(function(e,t){if(i){var a="separator-"+(e.key||t);o=r.cloneElement(o,{key:a})}return n.push(o,e)})),r.createElement(e.inline?"span":"div",{className:e.className},n)}Group.propTypes={children:o.node,inline:o.bool,separator:o.node,className:o.string},Group.defaultProps={separator:" "},e.exports=Group},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function toCssValue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],a=n.jss,s=(0,i.default)(t),l=a.plugins.onCreateRule(e,s,n);if(l)return l;"@"===e[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",e);return new o.default(e,s,n)};var r=_interopRequireDefault(n(49)),o=_interopRequireDefault(n(58)),i=_interopRequireDefault(n(206));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(235),o=n(236),i=n(237),a=n(238),s=n(239);function ListCache(e){var t=-1,n=null==e?0:e.length;for(this.clear();++te)return!1;if((n+=t[r+1])>=e)return!0}}function isIdentifierStart(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&isInAstralSet(e,p)))}function isIdentifierChar(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&(isInAstralSet(e,p)||isInAstralSet(e,d)))))}var f=function TokenType(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function binop(e,t){return new f(e,{beforeExpr:!0,binop:t})}var h={beforeExpr:!0},m={startsExpr:!0},g={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,g[e]=new f(e,t)}var v={num:new f("num",m),regexp:new f("regexp",m),string:new f("string",m),name:new f("name",m),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",h),semi:new f(";",h),colon:new f(":",h),dot:new f("."),question:new f("?",h),arrow:new f("=>",h),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",h),backQuote:new f("`",m),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new f("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",h),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",h),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",h),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",m),_if:kw("if"),_return:kw("return",h),_switch:kw("switch"),_throw:kw("throw",h),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",m),_super:kw("super",m),_class:kw("class",m),_extends:kw("extends",h),_export:kw("export"),_import:kw("import"),_null:kw("null",m),_true:kw("true",m),_false:kw("false",m),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},y=/\r\n?|\n|\u2028|\u2029/,b=new RegExp(y.source,"g");function isNewLine(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var w=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,k=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,x=Object.prototype,C=x.hasOwnProperty,S=x.toString;function has(e,t){return C.call(e,t)}var E=Array.isArray||function(e){return"[object Array]"===S.call(e)},_=function Position(e,t){this.line=e,this.column=t};_.prototype.offset=function offset(e){return new _(this.line,this.column+e)};var O=function SourceLocation(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function getLineInfo(e,t){for(var n=1,r=0;;){b.lastIndex=r;var o=b.exec(e);if(!(o&&o.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),E(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return E(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),t}function pushComment(e,t){return function(n,r,o,i,a,s){var l={type:n?"Block":"Line",value:r,start:o,end:i};e.locations&&(l.loc=new O(this,a,s)),e.ranges&&(l.range=[o,i]),t.push(l)}}var M={};function keywordRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var A=function Parser(e,t,n){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=keywordRegexp(i[e.ecmaVersion>=6?6:5]);var o="";if(!e.allowReserved){for(var a=e.ecmaVersion;!(o=r[a]);a--);"module"===e.sourceType&&(o+=" await")}this.reservedWords=keywordRegexp(o);var s=(o?o+" ":"")+r.strict;this.reservedWordsStrict=keywordRegexp(s),this.reservedWordsStrictBind=keywordRegexp(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};A.prototype.isKeyword=function isKeyword(e){return this.keywords.test(e)},A.prototype.isReservedWord=function isReservedWord(e){return this.reservedWords.test(e)},A.prototype.extend=function extend(e,t){this[e]=t(this[e])},A.prototype.loadPlugins=function loadPlugins(e){for(var t in e){var n=M[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},A.prototype.parse=function parse(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var T=A.prototype,D=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}T.strictDirective=function(e){for(;;){k.lastIndex=e,e+=k.exec(this.input)[0].length;var t=D.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!0;e+=t[0].length}},T.eat=function(e){return this.type===e&&(this.next(),!0)},T.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc},T.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},T.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},T.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||y.test(this.input.slice(this.lastTokEnd,this.start))},T.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},T.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},T.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},T.expect=function(e){this.eat(e)||this.unexpected()},T.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},T.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},T.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},T.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var L={kind:"loop"},N={kind:"switch"};P.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;k.lastIndex=this.pos;var e=k.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123===n)return!0;if(isIdentifierStart(n,!0)){for(var r=t+1;isIdentifierChar(this.input.charCodeAt(r),!0);)++r;var o=this.input.slice(t,r);if(!a.test(o))return!0}return!1},P.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;k.lastIndex=this.pos;var e=k.exec(this.input),t=this.pos+e[0].length;return!(y.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&isIdentifierChar(this.input.charAt(t+8)))},P.parseStatement=function(e,t,n){var r,o=this.type,i=this.startNode();switch(this.isLet()&&(o=v._var,r="let"),o){case v._break:case v._continue:return this.parseBreakContinueStatement(i,o.keyword);case v._debugger:return this.parseDebuggerStatement(i);case v._do:return this.parseDoStatement(i);case v._for:return this.parseForStatement(i);case v._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1);case v._class:return e||this.unexpected(),this.parseClass(i,!0);case v._if:return this.parseIfStatement(i);case v._return:return this.parseReturnStatement(i);case v._switch:return this.parseSwitchStatement(i);case v._throw:return this.parseThrowStatement(i);case v._try:return this.parseTryStatement(i);case v._const:case v._var:return r=r||this.value,e||"var"===r||this.unexpected(),this.parseVarStatement(i,r);case v._while:return this.parseWhileStatement(i);case v._with:return this.parseWithStatement(i);case v.braceL:return this.parseBlock();case v.semi:return this.parseEmptyStatement(i);case v._export:case v._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===v._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(i,!0);var a=this.value,s=this.parseExpression();return o===v.name&&"Identifier"===s.type&&this.eat(v.colon)?this.parseLabeledStatement(i,a,s):this.parseExpressionStatement(i,s)}},P.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},P.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(L),this.enterLexicalScope(),this.expect(v.parenL),this.type===v.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===v._var||this.type===v._const||n){var r=this.startNode(),o=n?"let":this.value;return this.next(),this.parseVar(r,!0,o),this.finishNode(r,"VariableDeclaration"),!(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==o&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var i=new DestructuringErrors,a=this.parseExpression(!0,i);return this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,i),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(i,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},P.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},P.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type===v._function),e.alternate=this.eat(v._else)?this.parseStatement(!this.strict&&this.type===v._function):null,this.finishNode(e,"IfStatement")},P.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},P.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(N),this.enterLexicalScope();for(var n=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var r=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},P.parseThrowStatement=function(e){return this.next(),y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var F=[];P.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();this.next(),this.eat(v.parenL)?(t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(v.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterLexicalScope()),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},P.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},P.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(L),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},P.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},P.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},P.parseLabeledStatement=function(e,t,n){for(var r=0,o=this.labels;r=0;a--){var s=this.labels[a];if(s.statementStart!==e.start)break;s.statementStart=this.start,s.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"===e.body.type||"VariableDeclaration"===e.body.type&&"var"!==e.body.kind||"FunctionDeclaration"===e.body.type&&(this.strict||e.body.generator||e.body.async))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},P.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},P.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(v.braceL),e&&this.enterLexicalScope();!this.eat(v.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},P.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},P.parseForIn=function(e,t){var n=this.type===v._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},P.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(v.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===v._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(v.comma))break}return e},P.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},P.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!==v.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,this.inModule&&!this.inFunction?"let":"var"));var o=this.inGenerator,i=this.inAsync,a=this.yieldPos,s=this.awaitPos,l=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=o,this.inAsync=i,this.yieldPos=a,this.awaitPos=s,this.inFunction=l,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},P.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},P.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(v.braceL);!this.eat(v.braceR);){var o=this.parseClassMember(n);o&&"MethodDefinition"===o.type&&"constructor"===o.kind&&(r&&this.raise(o.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},P.parseClassMember=function(e){var t=this;if(this.eat(v.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var o=t.start,i=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===v.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(o,i),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var o=this.eat(v.star),i=!1;o||(this.options.ecmaVersion>=8&&r("async",!0)?(i=!0,o=this.options.ecmaVersion>=9&&this.eat(v.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),o&&this.raise(a.start,"Constructor can't be a generator"),i&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,o,i),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},P.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},P.parseClassId=function(e,t){e.id=this.type===v.name?this.parseIdent():!0===t?this.unexpected():null},P.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts():null},P.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.expectContextual("from"),this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(v._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===v._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===v._class){var o=this.startNode();e.declaration=this.parseClass(o,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,a=e.specifiers;i=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,o=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,o=e.key;switch(o.type){case"Identifier":r=o.name;break;case"Literal":r=String(o.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===i&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=o.start:this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(o.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[i]=!0}}},I.parseExpression=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===v.comma){var i=this.startNodeAt(n,r);for(i.expressions=[o];this.eat(v.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return o},I.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,o=-1,i=-1;t?(o=t.parenthesizedAssign,i=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new DestructuringErrors,r=!0);var a=this.start,s=this.startLoc;this.type!==v.parenL&&this.type!==v.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,a,s)),this.type.isAssign){var c=this.startNodeAt(a,s);return c.operator=this.value,c.left=this.type===v.eq?this.toAssignable(l,!1,t):l,r||DestructuringErrors.call(t),t.shorthandAssign=-1,this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),o>-1&&(t.parenthesizedAssign=o),i>-1&&(t.trailingComma=i),l},I.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(v.question)){var i=this.startNodeAt(n,r);return i.test=o,i.consequent=this.parseMaybeAssign(),this.expect(v.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return o},I.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?o:o.start===n&&"ArrowFunctionExpression"===o.type?o:this.parseExprOp(o,n,r,-1,e)},I.parseExprOp=function(e,t,n,r,o){var i=this.type.binop;if(null!=i&&(!o||this.type!==v._in)&&i>r){var a=this.type===v.logicalOR||this.type===v.logicalAND,s=this.value;this.next();var l=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),l,c,i,o),p=this.buildBinary(t,n,e,u,s,a);return this.parseExprOp(p,t,n,r,o)}return e},I.buildBinary=function(e,t,n,r,o,i){var a=this.startNodeAt(e,t);return a.left=n,a.operator=o,a.right=r,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},I.parseMaybeUnary=function(e,t){var n,r=this.start,o=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var i=this.startNode(),a=this.type===v.incDec;i.operator=this.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(i.argument):this.strict&&"delete"===i.operator&&"Identifier"===i.argument.type?this.raiseRecoverable(i.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(i,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,o);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(v.starstar)?this.buildBinary(r,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},I.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),o="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||o)return r;var i=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},I.parseSubscripts=function(e,t,n,r){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),i=void 0;;)if((i=this.eat(v.bracketL))||this.eat(v.dot)){var a=this.startNodeAt(t,n);a.object=e,a.property=i?this.parseExpression():this.parseIdent(!0),a.computed=!!i,i&&this.expect(v.bracketR),e=this.finishNode(a,"MemberExpression")}else if(!r&&this.eat(v.parenL)){var s=new DestructuringErrors,l=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var u=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,s);if(o&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=l,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),u,!0);this.checkExpressionErrors(s,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=c||this.awaitPos;var p=this.startNodeAt(t,n);p.callee=e,p.arguments=u,e=this.finishNode(p,"CallExpression")}else{if(this.type!==v.backQuote)return e;var d=this.startNodeAt(t,n);d.tag=e,d.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(d,"TaggedTemplateExpression")}},I.parseExprAtom=function(e){var t,n=this.potentialArrowAt===this.start;switch(this.type){case v._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL&&this.unexpected(),this.finishNode(t,"Super");case v._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case v.name:var r=this.start,o=this.startLoc,i=this.containsEsc,a=this.parseIdent(this.type!==v.name);if(this.options.ecmaVersion>=8&&!i&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.parseFunction(this.startNodeAt(r,o),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(r,o),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===v.name&&!i)return a=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,o),[a],!0)}return a;case v.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(t=this.startNode()).value=this.type===v._null?null:this.type===v._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case v.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case v.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case v.braceL:return this.parseObj(!1,e);case v._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();default:this.unexpected()}},I.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},I.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},I.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,a=this.start,s=this.startLoc,l=[],c=!0,u=!1,p=new DestructuringErrors,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(c?c=!1:this.expect(v.comma),o&&this.afterTrailingComma(v.parenR,!0)){u=!0;break}if(this.type===v.ellipsis){i=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var h=this.start,m=this.startLoc;if(this.expect(v.parenR),e&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((t=this.startNodeAt(a,s)).expressions=l,this.finishNodeAt(t,"SequenceExpression",h,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},I.parseParenItem=function(e){return e},I.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var B=[];I.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(v.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,o=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,o,!0),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=B,this.finishNode(e,"NewExpression")},I.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===v.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===v.backQuote,this.finishNode(n,"TemplateElement")},I.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(v.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},I.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!y.test(this.input.slice(this.lastTokEnd,this.start))},I.parseObj=function(e,t){var n=this.startNode(),r=!0,o={};for(n.properties=[],this.next();!this.eat(v.braceR);){if(r)r=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,o,t),n.properties.push(i)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},I.parseProperty=function(e,t){var n,r,o,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===v.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===v.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(n=this.eat(v.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,o,i,t,s),this.finishNode(a,"Property")},I.parsePropertyValue=function(e,t,n,r,o,i,a,s){if((n||r)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===v.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===v.comma||this.type===v.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(o,i,e.key):this.type===v.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,i,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},I.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent(!0)},I.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},I.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,o=this.inAsync,i=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(v.parenL),n.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=o,this.yieldPos=i,this.awaitPos=a,this.inFunction=s,this.finishNode(n,"FunctionExpression")},I.parseArrowExpression=function(e,t,n){var r=this.inGenerator,o=this.inAsync,i=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=o,this.yieldPos=i,this.awaitPos=a,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},I.parseFunctionBody=function(e,t){var n=t&&this.type!==v.braceL,r=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var i=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!i||(o=this.strictDirective(this.end))&&i&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!r&&!o&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},I.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,o=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},K.updateContext=function(e){var t,n=this.type;n.keyword&&e===v.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},v.parenR.updateContext=v.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===$.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},v.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?$.b_stat:$.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push($.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(e){var t=e===v._if||e===v._for||e===v._with||e===v._while;this.context.push(t?$.p_stat:$.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=v._class.updateContext=function(e){e.beforeExpr&&e!==v.semi&&e!==v._else&&(e!==v.colon&&e!==v.braceL||this.curContext()!==$.b_stat)?this.context.push($.f_expr):this.context.push($.f_stat),this.exprAllowed=!1},v.backQuote.updateContext=function(){this.curContext()===$.q_tmpl?this.context.pop():this.context.push($.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(e){if(e===v._function){var t=this.context.length-1;this.context[t]===$.f_expr?this.context[t]=$.f_expr_gen:this.context[t]=$.f_gen}this.exprAllowed=!0},v.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==v.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var J={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(J.$LONE,J.General_Category),J.gc=J.General_Category,J.sc=J.Script_Extensions=J.scx=J.Script;var G=A.prototype,X=function RegExpValidationState(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString$1(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function isSyntaxCharacter(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function isRegExpIdentifierStart(e){return isIdentifierStart(e,!0)||36===e||95===e}function isRegExpIdentifierPart(e){return isIdentifierChar(e,!0)||36===e||95===e||8204===e||8205===e}function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}function isCharacterClassEscape(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||95===e}function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}function isDecimalDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function isOctalDigit(e){return e>=48&&e<=55}X.prototype.reset=function reset(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},X.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},X.prototype.at=function at(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);if(!this.switchU||r<=55295||r>=57344||e+1>=n)return r;var o=t.charCodeAt(e+1);return o>=56320&&o<=57343?(r<<10)+o-56613888:r},X.prototype.nextIndex=function nextIndex(e){var t=this.source,n=t.length;if(e>=n)return n;var r,o=t.charCodeAt(e);return!this.switchU||o<=55295||o>=57344||e+1>=n||(r=t.charCodeAt(e+1))<56320||r>57343?e+1:e+2},X.prototype.current=function current(){return this.at(this.pos)},X.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},X.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},X.prototype.eat=function eat(e){return this.current()===e&&(this.advance(),!0)},G.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},G.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},G.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},G.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},G.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},G.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return-1!==o&&o=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},G.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},G.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},G.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},G.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!isSyntaxCharacter(n);)e.advance();return e.pos!==t},G.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},G.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},G.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},G.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=codePointToString$1(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=codePointToString$1(e.lastIntValue);return!0}return!1},G.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),isRegExpIdentifierStart(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},G.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),isRegExpIdentifierPart(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},G.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},G.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},G.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},G.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},G.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},G.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},G.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},G.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},G.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=1024*(r-55296)+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},G.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},G.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},G.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},G.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o),!0}return!1},G.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){J.hasOwnProperty(t)&&-1!==J[t].indexOf(n)||e.raise("Invalid property name")},G.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===J.$LONE.indexOf(t)&&e.raise("Invalid property name")},G.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},G.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},G.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},G.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},G.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},G.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||isOctalDigit(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},G.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},G.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},G.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},G.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;isDecimalDigit(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},G.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;isHexDigit(n=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(n),e.advance();return e.pos!==t},G.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},G.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},G.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}Y.next=function(){this.options.onToken&&this.options.onToken(new Z(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Y.getToken=function(){return this.next(),new Z(this)},"undefined"!=typeof Symbol&&(Y[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===v.eof,value:t}}}}),Y.curContext=function(){return this.context[this.context.length-1]},Y.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Y.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Y.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Y.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(b.lastIndex=n;(e=b.exec(this.input))&&e.index8&&e<14||e>=5760&&w.test(String.fromCharCode(e))))break e;++this.pos}}},Y.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Y.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},Y.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},Y.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,n+1):this.finishOp(r,n)},Y.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},Y.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},Y.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(v.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},Y.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(v.assign,n+1):this.finishOp(v.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(v.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Y.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},Y.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 63:return++this.pos,this.finishToken(v.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(v.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},Y.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Y.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(y.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var o=this.input.slice(n,this.pos);++this.pos;var i=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(i);var s=this.regexpState||(this.regexpState=new X(this));s.reset(n,o,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(o,a)}catch(e){}return this.finishToken(v.regexp,{pattern:o,flags:a,value:l})},Y.readInt=function(e,t){for(var n=this.pos,r=0,o=0,i=null==t?1/0:t;o=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},Y.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,t)},Y.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=this.input.slice(t,this.pos),i=n?parseInt(o,8):parseFloat(o);return this.finishToken(v.num,i)},Y.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Y.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(isNewLine(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(v.string,t)};var Q={};Y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Q)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Y.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Q;this.raise(e,t)},Y.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==v.template&&this.type!==v.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e)):36===n?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(isNewLine(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Y.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},Y.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Y.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pose.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)return;l[o]="set-cookie"===o?(l[o]?l[o]:[]).concat([a]):l[o]?l[o]+", "+a:a}}),l):l):null,u={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:c,config:e,request:i};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(z("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,u),i=null}},i.onabort=function(){i&&(n(z("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(z("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(z(t,e,"ECONNABORTED",i)),i=null},T.isStandardBrowserEnv()){var p=H,d=(e.withCredentials||V(u))&&e.xsrfCookieName?p.read(e.xsrfCookieName):void 0;d&&(o[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&T.forEach(o,function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)}),T.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(i.abort(),n(e),i=null)}),void 0===r&&(r=null),i.send(r)})}),J),transformRequest:[function(e,t){return I(t,"Accept"),I(t,"Content-Type"),T.isFormData(e)||T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e)?e:T.isArrayBufferView(e)?e.buffer:T.isURLSearchParams(e)?(P(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):T.isObject(e)?(P(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};T.forEach(["delete","get","head"],function(e){G.headers[e]={}}),T.forEach(["post","put","patch"],function(e){G.headers[e]=T.merge($)});var Q=G;function O(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var ee=function(e){return O(e),e.headers=e.headers||{},e.data=N(e.data,e.headers,e.transformRequest),e.headers=T.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),T.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||Q.adapter)(e).then(function(t){return O(e),t.data=N(t.data,t.headers,e.transformResponse),t},function(t){return j(t)||(O(e),t&&t.response&&(t.response.data=N(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},te=function(e,t){t=t||{};var n={},r=["url","method","params","data"],o=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];T.forEach(r,function(e){void 0!==t[e]&&(n[e]=t[e])}),T.forEach(o,function(r){T.isObject(t[r])?n[r]=T.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:T.isObject(e[r])?n[r]=T.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])}),T.forEach(i,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var a=r.concat(o).concat(i),s=Object.keys(t).filter(function(e){return-1===a.indexOf(e)});return T.forEach(s,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n};function K(e){this.defaults=e,this.interceptors={request:new L,response:new L}}K.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=te(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[ee,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},K.prototype.getUri=function(e){return e=te(this.defaults,e),D(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},T.forEach(["delete","get","head","options"],function(e){K.prototype[e]=function(t,n){return this.request(T.merge(n||{},{method:e,url:t}))}}),T.forEach(["post","put","patch"],function(e){K.prototype[e]=function(t,n,r){return this.request(T.merge(r||{},{method:e,url:t,data:n}))}});var ne=K;function q(e){this.message=e}q.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},q.prototype.__CANCEL__=!0;var re=q;function gg(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new re(e),t(n.reason))})}gg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},gg.source=function(){var e;return{token:new gg(function(t){e=t}),cancel:e}};var oe=gg;function Cg(e){var t=new ne(e),n=_(ne.prototype.request,t);return T.extend(n,ne.prototype,t),T.extend(n,t),n}var ie=Cg(Q);ie.Axios=ne,ie.create=function(e){return Cg(te(ie.defaults,e))},ie.Cancel=re,ie.CancelToken=oe,ie.isCancel=j,ie.all=function(e){return Promise.all(e)},ie.spread=function(e){return function(t){return e.apply(null,t)}};var ae=ie,se=ie;ae.default=se;var le=ae,ce=function(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"},ue=function g(e,t,r){var o=this;n(this,g),this.update=function(e){if(e.attrs.height!==o.prevHeight&&o.resizeHandles.length)return o.prevHeight=e.attrs.height,o.image.style="height:".concat(e.attrs.height,";outline:2px solid #2962ff"),!0;if(e.attrs.link.href!==o.linkHref)return e.attrs.link.href?(o.anchor=document.createElement("a"),o.anchor.href=e.attrs.link.href,o.anchor.appendChild(o.image),o.anchor.className="nib-image-anchor",o.imageWrapper.appendChild(o.anchor)):o.imageWrapper.appendChild(o.image),o.linkHref=e.attrs.link.href,!0;if(e.attrs.wrap!==o.wrap||e.attrs.alignment!==o.alignment){if(o.wrap=e.attrs.wrap,o.alignment=e.attrs.alignment,o.resetStyles(),e.attrs.wrap)return o.dom.classList.add("nib-image-outer-block"),o.imageWrapper.classList.add("nib-image-wrap-".concat(o.wrap)),!0;e.attrs.alignment&&(o.dom.classList.add("nib-image-outer-flex"),o.dom.style.justifyContent=ce(e.attrs.alignment))}return!0},this.selectNode=function(){o.image&&o.imageWrapper.classList.add("nib-selected-image-wrapper"),o.addResizeHandles()},this.deselectNode=function(){o.image&&o.imageWrapper.classList.remove("nib-selected-image-wrapper"),o.cleanupResizeHandles()},this.destroy=function(){o.cleanupResizeHandles(),o.imageWrapper.removeChild(o.image),o.dom.removeChild(o.imageWrapper)},this.resetStyles=function(){o.dom.classList.remove("nib-image-outer-flex"),o.dom.classList.remove("nib-image-outer-block"),o.dom.style.justifyContent="",o.imageWrapper.classList.remove("nib-image-wrap-left"),o.imageWrapper.classList.remove("nib-image-wrap-right")},this.addResizeHandles=function(){[{className:"nib-image-resize-lt",dir:-1},{className:"nib-image-resize-rt",dir:-1},{className:"nib-image-resize-lb",dir:1},{className:"nib-image-resize-rb",dir:1}].forEach(function(e){var t=e.className,n=e.dir,r=document.createElement("div");r.className=t,r.setAttribute("data-dir",n),o.imageWrapper.appendChild(r),r.addEventListener("mousedown",o.handleResizeHandleMouseDown),r.addEventListener("click",o.clickHandler),o.resizeHandles.push(r)}),o.image.style.outline="2px solid #2962ff",window.addEventListener("mouseup",o.handleResizeHandleMouseUp)},this.cleanupResizeHandles=function(){o.image.style.outline="none",o.resizeHandles.forEach(function(e){e.removeEventListener("mousedown",o.handleResizeHandleMouseDown),o.imageWrapper.removeChild(e)}),window.removeEventListener("mousemove",o.handleResizeHandleMouseMove),o.resizeHandles=[]},this.handleResizeHandleMouseUp=function(){o.resizing&&(o.resizing=!1,o.dir=void 0)},this.clickHandler=function(e){e.stopPropagation(),e.preventDefault()},this.handleResizeHandleMouseDown=function(e){o.resizing||(o.clickHandler(e),o.resizing=!0,o.dir=parseInt(e.target.getAttribute("data-dir"),10),o.prevPoint=e.clientY,window.addEventListener("mousemove",o.handleResizeHandleMouseMove))},this.handleResizeHandleMouseMove=function(e){if(o.resizing){o.clickHandler(e);var t=o.view,n=t.state,r=t.dispatch,i=o.image.getBoundingClientRect();o.imageHeight=i.height;var a=o.imageHeight+(e.clientY-o.prevPoint)*o.dir;o.prevPoint=e.clientY;var s=n.selection,l=n.tr,c=s.from,p=s.node;r(l.setNodeMarkup(c,void 0,u(u({},p.attrs),{},{height:"".concat(a,"px")})))}},this.node=e,this.view=t,this.getPos=r,this.linkHref="",this.dom=document.createElement("div"),this.dom.className="nib-image-outer-wrapper",this.dom.tabIndex=-1,this.dom.style.justifyContent=ce(e.attrs.alignment),this.imageWrapper=document.createElement("div"),this.imageWrapper.className="nib-image-wrapper",this.dom.appendChild(this.imageWrapper),this.image=document.createElement("img"),this.image.src=e.attrs.src,this.image.style="height:".concat(e.attrs.height,";"),e.attrs.link.href?(this.anchor=document.createElement("a"),this.anchor.href=e.attrs.link.href,this.anchor.appendChild(this.image),this.anchor.className="nib-image-anchor",this.imageWrapper.appendChild(this.anchor)):this.imageWrapper.appendChild(this.image),this.prevHeight=e.attrs.height,this.alignment=e.attrs.alignment,this.wrap=e.attrs.wrap,this.wrap?(this.dom.classList.add("nib-image-outer-block"),this.imageWrapper.classList.add("nib-image-wrap-".concat(this.wrap))):(this.dom.classList.add("nib-image-outer-flex"),this.alignment&&(this.dom.style.justifyContent=ce(e.attrs.alignment))),this.resizeHandles=[]},pe=function(e,t,n){var r=e.selection,o=e.tr,i=r.from,a=r.node;t(o.setNodeMarkup(i,void 0,u(u({},a.attrs),{},{wrap:void 0,alignment:n})))},de=function(e,t,n){var r=e.selection,o=e.tr,i=r.from,a=r.node;t(o.setNodeMarkup(i,void 0,u(u({},a.attrs),{},{alignment:void 0,wrap:n})))},fe=function(e,t,n){var r=e.selection,o=e.tr,i=r.from,a=r.node;t(o.setNodeMarkup(i,void 0,u(u({},a.attrs),{},{link:{href:n}})))},he=function(e,t,n){var r=t.files[0];return!!r&&(n(r).then(function(t){var n=t.src;!function(e,t,n){var r=e.selection,o=r.$from,i=r.$to,a=e.schema.nodes.advanceImage;t(e.tr.replaceRangeWith(o.pos,i.pos,a.create({src:n})))}(e.state,e.dispatch,n),e.focus()}),!0)},me=new c.PluginKey("advance-image"),ge=function(e){return me.getState(e).isImageSelected},ve=function(e,t){return!ge(e)&&(t(e.tr.setMeta("show-image-modal",!0)),!0)},ye=function(){return{"Mod-p":ve}},be={image:{key:"Mod-P",label:"Insert Image"}},we={nodes:{advanceImage:f.nodes.advanceImage}},ke=function(e){var t=e.constants;return"\n .nib-image-outer-wrapper {\n width: 100%;\n &:focus {\n outline: none;\n }\n }\n\n .nib-image-outer-flex {\n display: inline-flex;\n justify-content: center;\n }\n\n .nib-image-outer-block {\n display: block;\n }\n\n .nib-image-wrapper {\n display: inline-block;\n position: relative;\n > img {\n width: auto;\n }\n }\n\n .nib-image-wrap-left {\n float: left;\n margin-right: 10px;\n }\n\n .nib-image-wrap-right {\n float: right;\n margin-left: 10px;\n }\n\n .nib-image-resize-lt {\n height: 10px;\n width: 10px;\n\n position: absolute;\n left: -5px;\n top: -5px;\n\n background-color: ".concat(t.color.highlight.primary,";\n cursor: nwse-resize;\n }\n\n .nib-image-resize-rb {\n background-color: ").concat(t.color.highlight.primary,";\n bottom: 0px;\n cursor: nwse-resize;\n \n height: 10px;\n position: absolute;\n right: -5px;\n width: 10px;\n }\n\n .nib-image-resize-lb {\n background-color: ").concat(t.color.highlight.primary,";\n bottom: 0px;\n cursor: nesw-resize;\n \n height: 10px;\n left: -5px;\n position: absolute;\n width: 10px;\n }\n\n .nib-image-resize-rt {\n background-color: ").concat(t.color.highlight.primary,";\n cursor: nesw-resize;\n\n height: 10px;\n position: absolute;\n right: -5px;\n top: -5px;\n width: 10px;\n }\n\n .nib-image-anchor {\n display: block;\n pointer-events: none;\n }\n")},xe=function(e){var t="Windows"===function(){for(var e=navigator.userAgent,t=[{s:"Windows",r:/Win16/},{s:"Windows",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows",r:/(Windows 98|Win98)/},{s:"Windows",r:/Windows CE/},{s:"Windows",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows",r:/Windows NT 5.2/},{s:"Windows",r:/Windows NT 6.0/},{s:"Windows",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/}],n=Object.keys(t),r=0;r=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:Le}},je=Ee,Ie=function(e){return"theme"!==e&&"innerRef"!==e},Be=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?je:Ie};function Kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t input":{width:"100%",margin:"0 auto"}}},""),Ge=qe("label",{target:"e1kw4jck6",label:"StyledLabel"})("",function(){return{height:"75%",width:"100%"}},""),Xe=qe("input",{target:"e1kw4jck7",label:"FileUploadInput"})({name:"1hyfx7x",styles:"display:none;"}),Ze=qe(k.Spinner,{target:"e1kw4jck8",label:"StyledSpinner"})("z-index:1;margin-top:10px;",function(e){return{visibility:e?"visible":"hidden"}},""),Ye=qe("div",{target:"e1kw4jck9",label:"ButtonSection"})({name:"1wcba0h",styles:"display:flex;margin-top:20px;"}),Qe=qe("span",{target:"e1kw4jck10",label:"ImageWrapper"})({name:"jqdfq9",styles:"margin:20px;position:absolute;top:0;left:0;height:calc(100% - 40px);width:calc(100% - 40px);display:flex;justify-content:center;align-items:center;"}),et=qe("img",{target:"e1kw4jck11",label:"StyledImage"})({name:"1p9pqha",styles:"height:auto;width:auto;max-height:100%;max-width:100%;"}),tt=function(e){var t=e.pmstate,n=e.setShowLinkAdd;if(!t)return null;var r=t.pmview;if(!r)return null;if(me.getState(r.state).license_missing)return null;var o=m(b.useState(""),2),i=o[0],a=o[1],s=function(){var e=r.state,t=r.dispatch;fe(e,t,i),n(!1),r.focus()},l=function(e){"Enter"===e.key&&s()};return w.createElement(nt,null,w.createElement(k.Input,{placeholder:"Href",name:"href",onChange:function(e){return a(e.target.value)},onKeyPress:l,value:i}),w.createElement(k.PrimaryButton,{onKeyPress:l,onClick:s},"Add"),w.createElement(k.PrimaryButton,{onClick:function(){n(!1),r.focus()}},"Cancel"))};tt.propTypes={pmstate:v.object.isRequired,setShowLinkAdd:v.func.isRequired};var nt=qe("div",{target:"ej0k4ld0",label:"Wrapper"})("align-items:center;display:flex;",function(e){var t=e.theme.constants;return{borderRadius:t.borderRadius,fontSize:t.fontSize.medium}},""),rt=function(e){var t=e.pmstate,n=e.setShowLinkEdit;if(!t)return null;var r=t.pmview;if(!r)return null;if(me.getState(r.state).license_missing)return null;var o=r.state.selection.node,i=m(b.useState(o.attrs.link.href),2),a=i[0],s=i[1],l=function(){var e=r.state,t=r.dispatch;fe(e,t,a),n(!1),r.focus()};return w.createElement(ot,null,w.createElement(k.Input,{placeholder:"Href",name:"href",onChange:function(e){return s(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&l()},value:a}),w.createElement(k.PrimaryButton,{onClick:l},"Update"),w.createElement(k.PrimaryButton,{onClick:function(){var e=r.state,t=r.dispatch;fe(e,t,""),n(!1),r.focus()}},"Unlink"))};rt.propTypes={pmstate:v.object.isRequired,setShowLinkEdit:v.func.isRequired};var ot=qe("div",{target:"e1bedx3y0",label:"Wrapper"})("align-items:center;display:flex;",function(e){var t=e.theme.constants;return{borderRadius:t.borderRadius,fontSize:t.fontSize.medium}},""),it=[{title:"Align Left",name:"alignLeft",icon:"alignLeft"},{title:"Align Center",name:"alignCenter",icon:"alignCenter"},{title:"Align Right",name:"alignRight",icon:"alignRight"},{title:"Wrap Left",name:"wrapLeft",icon:"wrapLeft"},{title:"Wrap Right",name:"wrapRight",icon:"wrapRight"},{title:"Link Image",name:"linkImage",icon:"link"},{title:"Delete Image",name:"deleteImage",icon:"trash"}],at=function(e){var t=e.pmstate,n=e.editorWrapper,r=e.marker,o=e.theme,i=t.pmview,a=m(b.useState(""),2),s=a[0],l=a[1],c=m(b.useState(""),2),u=c[0],p=c[1],d=function(e){var t,n=i.state,r=i.dispatch,o=e.currentTarget.name;"deleteImage"===o?function(e,t){var n=e.selection.$to;t(e.tr.delete(n.pos-1,n.pos))}(n,r):"alignLeft"===o?pe(n,r,"left"):"alignRight"===o?pe(n,r,"right"):"alignCenter"===o?pe(n,r,"center"):"wrapLeft"===o?de(n,r,"left"):"wrapRight"===o?de(n,r,"right"):"linkImage"===o&&((t=i.state.selection.node).attrs.link&&t.attrs.link.href?p(!0):l(!0)),i.focus()};if(i){var f=i.state;if(me.getState(f).license_missing)return null}return w.createElement(S.ThemeProvider,{theme:o},w.createElement(k.Popup,{onEscKeyPress:function(){},onClickOutsideEditor:function(){},editorWrapper:n,marker:r,render:function(){return w.createElement("div",null,w.createElement(lt,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},it.map(function(e){var t=e.title,n=e.name,r=e.icon;return w.createElement(k.ToolbarButton,{key:"image_menu_option-".concat(n),onClick:d,name:n,title:t},w.createElement(k.Icon,{name:r}))})),s&&w.createElement(tt,{pmstate:t,setShowLinkAdd:l}),u&&w.createElement(rt,{pmstate:t,setShowLinkEdit:p}))}}))};at.propTypes={pmstate:v.object.isRequired,editorWrapper:v.object.isRequired,marker:v.object.isRequired,theme:v.object.isRequired};var st={name:"image_menu",getMarker:function(e){if(e){var t=document.getElementsByClassName("nib-selected-image-wrapper");return t.length&&t[0]}},condition:function(e){if(e)return me.getState(e.state).isImageSelected},component:at},lt=qe("div",{target:"e1rwti4j0",label:"Wrapper"})("align-items:center;display:flex;",function(e){var t=e.theme.constants;return{borderRadius:t.borderRadius,fontSize:t.fontSize.medium}},""),ct=function(){function g(e){var t,r;n(this,g),this.KeymapInfo=be,this.keymaps=ye,this.name="advance-image",this.popups=[st],this.schema=we,this.styles=ke,this.toolbarComponent=void 0,this.view=void 0,this.toolbarComponent=(t=e,(r=function(e){a(C,b.PureComponent);var r=W(C);function C(){var e;n(this,C);for(var t=arguments.length,o=new Array(t),i=0;i=0)return;l[o]="set-cookie"===o?(l[o]?l[o]:[]).concat([a]):l[o]?l[o]+", "+a:a}}),l):l):null,u={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:c,config:e,request:i};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(B("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,u),i=null}},i.onabort=function(){i&&(n(B("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(B("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(B(t,e,"ECONNABORTED",i)),i=null},M.isStandardBrowserEnv()){var p=V,d=(e.withCredentials||U(u))&&e.xsrfCookieName?p.read(e.xsrfCookieName):void 0;d&&(o[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&M.forEach(o,function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)}),M.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(i.abort(),n(e),i=null)}),void 0===r&&(r=null),i.send(r)})}),$),transformRequest:[function(e,t){return j(t,"Accept"),j(t,"Content-Type"),M.isFormData(e)||M.isArrayBuffer(e)||M.isBuffer(e)||M.isStream(e)||M.isFile(e)||M.isBlob(e)?e:M.isArrayBufferView(e)?e.buffer:M.isURLSearchParams(e)?(J(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):M.isObject(e)?(J(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};M.forEach(["delete","get","head"],function(e){K.headers[e]={}}),M.forEach(["post","put","patch"],function(e){K.headers[e]=M.merge(W)});var G=K;function _(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var X=function(e){return _(e),e.headers=e.headers||{},e.data=N(e.data,e.headers,e.transformRequest),e.headers=M.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),M.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||G.adapter)(e).then(function(t){return _(e),t.data=N(t.data,t.headers,e.transformResponse),t},function(t){return F(t)||(_(e),t&&t.response&&(t.response.data=N(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},Z=function(e,t){t=t||{};var n={},r=["url","method","params","data"],o=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];M.forEach(r,function(e){void 0!==t[e]&&(n[e]=t[e])}),M.forEach(o,function(r){M.isObject(t[r])?n[r]=M.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:M.isObject(e[r])?n[r]=M.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])}),M.forEach(i,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var a=r.concat(o).concat(i),s=Object.keys(t).filter(function(e){return-1===a.indexOf(e)});return M.forEach(s,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n};function H(e){this.defaults=e,this.interceptors={request:new L,response:new L}}H.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Z(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[X,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},H.prototype.getUri=function(e){return e=Z(this.defaults,e),T(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},M.forEach(["delete","get","head","options"],function(e){H.prototype[e]=function(t,n){return this.request(M.merge(n||{},{method:e,url:t}))}}),M.forEach(["post","put","patch"],function(e){H.prototype[e]=function(t,n,r){return this.request(M.merge(r||{},{method:e,url:t,data:n}))}});var Y=H;function D(e){this.message=e}D.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},D.prototype.__CANCEL__=!0;var Q=D;function P(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new Q(e),t(n.reason))})}P.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},P.source=function(){var e;return{token:new P(function(t){e=t}),cancel:e}};var ee=P;function q(e){var t=new Y(e),n=O(Y.prototype.request,t);return M.extend(n,Y.prototype,t),M.extend(n,t),n}var te=q(G);te.Axios=Y,te.create=function(e){return q(Z(te.defaults,e))},te.Cancel=Q,te.CancelToken=ee,te.isCancel=F,te.all=function(e){return Promise.all(e)},te.spread=function(e){return function(t){return e.apply(null,t)}};var re=te,ie=te;re.default=ie;var ae=re,se=Math.pow(2,16);function ne(e,t){return e+t*se}function oe(e){return 65535&e}var ue=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},pe=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};pe.prototype.recover=function(e){var t=0,n=oe(e);if(!this.inverted)for(var r=0;re)break;var l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){var p=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return p;var d=ne(a/3,e-s);return new ue(p,t<0?e!=s:e!=u,d)}r+=c-l}return n?e+r:new ue(e+r)},pe.prototype.touches=function(e,t){for(var n=0,r=oe(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1},pe.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},de.prototype.invert=function(){var e=new de;return e.appendMappingInverted(this),e},de.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;ni&&c0},fe.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(fe.prototype,he);var me=Object.create(null),ge=function(){};ge.prototype.apply=function(e){return le()},ge.prototype.getMap=function(){return pe.empty},ge.prototype.invert=function(e){return le()},ge.prototype.map=function(e){return le()},ge.prototype.merge=function(e){return null},ge.prototype.toJSON=function(){return le()},ge.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=me[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},ge.jsonID=function(e,t){if(e in me)throw new RangeError("Duplicate use of step JSON ID "+e);return me[e]=t,t.prototype.jsonID=e,t};var be=function(e,t){this.doc=e,this.failed=t};be.ok=function(e){return new be(e,null)},be.fail=function(e){return new be(null,e)},be.fromReplace=function(e,t,n,r){try{return be.ok(e.replace(t,n,r))}catch(e){if(e instanceof a.ReplaceError)return be.fail(e.message);throw e}};var Ce=function(e){function t(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&ve(e,this.from,this.to)?be.fail("Structure replace would overwrite content"):be.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new pe([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?a.Slice.empty:new a.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var r=this.slice.size+e.slice.size==0?a.Slice.empty:new a.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),r,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,a.Slice.fromJSON(e,n.slice),!!n.structure)},t}(ge);ge.jsonID("replace",Ce);var Se=function(e){function t(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(ve(e,this.from,this.gapFrom)||ve(e,this.gapTo,this.to)))return be.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return be.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?be.fromReplace(e,this.from,this.to,n):be.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new pe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||or.pos?null:new t(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,a.Slice.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(ge);function ve(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function ye(e,t,n){for(var r=[],o=0;ot;d--)f||n.index(d)>0?(f=!0,u=a.Fragment.from(n.node(d).copy(u)),p++):l--;for(var h=a.Fragment.empty,m=0,g=o,v=!1;g>t;g--)v||r.after(g+1)=0;r--)n=a.Fragment.from(t[r].type.create(t[r].attrs,n));var o=e.start,i=e.end;return this.step(new Se(o,i,o,i,new a.Slice(n,0,0),t.length,!0))},fe.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var s=o.mapping.slice(i),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return o.step(new Se(l,c,l+1,c-1,new a.Slice(a.Fragment.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}}),this},fe.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Se(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new a.Slice(a.Fragment.from(i),0,0),1,!0))},fe.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=a.Fragment.empty,i=a.Fragment.empty,s=r.depth,l=r.depth-t,c=t-1;s>l;s--,c--){o=a.Fragment.from(r.node(s).copy(o));var u=n&&n[c];i=a.Fragment.from(u?u.type.create(u.attrs,i):r.node(s).copy(i))}return this.step(new Ce(e,e,new a.Slice(o.append(i),t,t),!0))},fe.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Ce(e-t,e+t,a.Slice.empty,!0);return this.step(n)};var Ee=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new a.Slice(ye(n.content,function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e},o),n.openStart,n.openEnd);return be.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new _e(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(ge);ge.jsonID("addMark",Ee);var _e=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new a.Slice(ye(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))}),n.openStart,n.openEnd);return be.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new Ee(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(ge);function we(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}ge.jsonID("removeMark",_e),fe.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var p=Math.max(l,e),d=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h=0;f--)this.step(o[f]);return this},fe.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=a.Slice.empty);var r=function(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=a.Slice.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return we(o,i,r)?new Ce(t,n,r):new Oe(o,i,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},fe.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new a.Slice(a.Fragment.from(n),0,0))},fe.prototype.delete=function(e,t){return this.replace(e,t,a.Slice.empty)},fe.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var Oe=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=a.Fragment.empty;for(var i=e.depth;i>0;i--)this.placed=a.Fragment.from(e.node(i).copy(this.placed))},Re={depth:{configurable:!0}};function ke(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(ke(e.firstChild.content,t-1,n)))}function Ae(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Ae(e.lastChild.content,t-1,n)))}function Xe(e,t){for(var n=0;n1&&(r=r.replaceChild(0,xe(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(a.Fragment.empty,!0)))),e.copy(r)}function Ne(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(var r=a;rr){var s=o.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(a.Fragment.empty,!0))}return e}function Ze(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(ot.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}Re.depth.get=function(){return this.frontier.length-1},Oe.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=t<0?this.$to:r.doc.resolve(t);if(this.close(o)){for(var i=this.placed,s=r.depth,l=o.depth;s&&l&&1==i.childCount;)i=i.firstChild.content,s--,l--;var c=new a.Slice(i,s,l);if(t>-1)return new Se(r.pos,t,this.$to.pos,this.$to.end(),c,n);if(c.size||r.pos!=this.$to.pos)return new Ce(r.pos,o.pos,c)}return null},Oe.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=Xe(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],s=i.type,l=i.match,c=void 0,u=void 0;if(1==e&&(r?l.matchType(r.type)||(u=l.fillBefore(a.Fragment.from(r),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:u};if(2==e&&r&&(c=l.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:c};if(n&&l.matchType(n.type))break}},Oe.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=Xe(t,n);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new a.Slice(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),0))},Oe.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=Xe(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new a.Slice(ke(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new a.Slice(ke(t,n,1),n,r)},Oe.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var s=0;s1||0==u||y.content.size)&&(h=b,d.push(xe(y.mark(m.allowedMarks(y.marks)),1==p?u:0,p==c.childCount?v:-1)))}var w=p==c.childCount;w||(v=-1),w&&v<0&&r&&r.type==this.frontier[this.depth].type?this.closeFrontierNode():this.frontier[n].match=h;for(var k=0,x=c;k1&&r==this.$to.end(--n);)++r;return r},Oe.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=Ne(e,t,n.type,r,!1);if(o){for(var i=t-1;i>=0;i--){var a=this.frontier[i],s=a.match,l=Ne(e,i,a.type,s,!0);if(!l||l.childCount)continue e}return{depth:t,fit:o}}}},Oe.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return!1;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Ae(this.placed,t.depth,t.fit));for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return!0},Oe.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ae(this.placed,this.depth,a.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},Oe.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(a.Fragment.empty,!0);e.childCount&&(this.placed=Ae(this.placed,this.frontier.length,e))},Object.defineProperties(Oe.prototype,Re),fe.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(we(r,o,n))return this.step(new Ce(e,t,n));var i=Ze(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var s=-(r.depth+1);i.unshift(s);for(var l=r.depth,c=r.pos-1;l>0;l--,c--){var u=r.node(l).type.spec;if(u.defining||u.isolating)break;i.indexOf(l)>-1?s=l:r.before(l)==c&&i.splice(1,0,-l)}for(var p=i.indexOf(s),d=[],f=n.openStart,h=n.content,m=0;;m++){var g=h.firstChild;if(d.push(g),m==n.openStart)break;h=g.content}f>0&&d[f-1].type.spec.defining&&r.node(p).type!=d[f-1].type?f-=1:f>=2&&d[f-1].isTextblock&&d[f-2].type.spec.defining&&r.node(p).type!=d[f-2].type&&(f-=2);for(var v=n.openStart;v>=0;v--){var y=(v+f+1)%(n.openStart+1),b=d[y];if(b)for(var w=0;w=0&&(this.replace(e,t,n),!(this.steps.length>E));_--){var O=i[_];_<0||(e=r.before(O),t=o.after(O))}return this},fe.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var Me={replace:1,replaceAround:2,removeMark:3,addMark:4},De={1:"replace",2:"replaceAround",3:"removeMark",4:"addMark"},Pe=function(){function e(t,n,r,o,i){u(this,e),this.id=t,this.data=n,this.time=r,this.steps=o,this.maps=i}return h(e,[{key:"serialize",value:function(){var e=this.id,t=this.data,n=this.time,r=this.steps,o=this.maps;return{id:e,data:t,time:n,steps:r.map(function(e){var t=e.toJSON(),n=t.stepType,r=t.from,o=t.to;return[Me[n],r,o]}),maps:o.map(function(e){return e.ranges})}}}],[{key:"fromSerialized",value:function(t,n){var r=n.id,o=n.data,i=n.time,a=n.steps,s=n.maps;return new e(r,o,i,a.map(function(e){return ge.fromJSON(t.schema,{stepType:De[e[0]],from:e[1],to:e[2]})}),s.map(function(e){return new pe(e)}))}}]),e}(),Le=function e(t,n,r){u(this,e),this.from=t,this.to=n,this.commit=r},Fe=function(e,t,n){for(var r=[],o=t.maps[0].ranges,i=0;io[0]?(r.push(new Le(s,o[0],a.commit)),r.push(new Le(o[0]+o[2],l,a.commit))):s=a)){for(var s,l=0;lt)break}else if(s.to>t){if(s.fromn?o.splice(l,0,c):o[l]=c,l+=1}break}l+=1}for(s=o[l];s;){if(s.commit===r){if(s.from>=a)break;i=Math.min(i,s.from),a=Math.min(a,s.to),o.splice(l,1)}else{if(s.from>=a)break;if(s.to>a){o[l]=new Le(a,s.to,r);break}o.splice(l,1)}s=o[l]}o.splice(l,0,new Le(i,a,r))}}(r,i.map(o,1),i.map(a,-1),n)}),u=e+=1},u=0;u=e.head&&n[r].from=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:ot}},st=He,lt=function(e){return"theme"!==e&&"innerRef"!==e},ct=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?st:lt};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t0},component:function(e){return p.createElement(dt,e)}},ht=ut("div",{target:"e1h4f94f0",label:"Wrapper"})("align-items:center;display:flex;",function(e){var t=e.theme.constants;return{backgroundColor:t.color.backgroundHighlight.secondary,borderRadius:t.borderRadius,fontSize:t.fontSize.medium}},""),mt=ut(k.Popup,{target:"e1h4f94f1",label:"StyledPopup"})({border:"none",marginTop:-8},function(e){return{backgroundColor:e.theme.constants.color.backgroundHighlight.secondary}},""),gt=function(e){return function(t){var n=t.constants.color.backgroundHighlight.primary;return"\n .nib-highlighted-commit-marker {\n background-color: ".concat(e||n,";\n }\n")}};t.exports=function e(t){var n=this;u(this,e),this.name="track",this.view=void 0,this.styles=gt,this.popups=[ft],this.viewUpdateCallback=function(e){n.view=e},this.init=function(e){return function(e,t){e&&(0,e.dispatch)(e.state.tr.setMeta("set-commits",t))}(n.view,e)},this.doCommit=function(e){return function(e,t){e&&(0,e.dispatch)(e.state.tr.setMeta("add-commit",t))}(n.view,e)},this.highlightCommit=function(e){return function(e,t){e&&(0,e.dispatch)(e.state.tr.setMeta("highlight-commit",t))}(n.view,e)},this.resetHighlight=function(){var e;(e=n.view)&&(0,e.dispatch)(e.state.tr.setMeta("reset-highlight-commit",!0))},this.revertCommit=function(e,t){return function(e,t,n){if(!e)return{state:"FAILED"};var r=e.dispatch,o=e.state,i=Be.getState(o),a=i.commits,s=i.uncommittedSteps,l=a.find(function(e){return e.id===t});if(t<0)return{state:"FAILED",message:"INVALID_COMMIT"};if(s.length>0)return{state:"FAILED",message:"UNCOMMITTED_CHANGES"};for(var c=a.slice(t),u=new de(c.reduce(function(e,t){return e.concat(t.maps)},[])),p=o.tr,d=l.steps.length-1;d>=0;d-=1){var f=l.steps[d].map(u.slice(d+1));f&&p.maybeStep(f).doc&&u.appendMap(f.getMap(),d)}return p.docChanged&&r(p.setMeta("add-commit",n)),{state:"SUCCESS"}}(n.view,e,t)},this.getCommitAtSelection=function(){return t=(e=n.view.state).selection,r=Be.getState(e),je(t,r);var e,t,r},this.getState=function(){return function(e){if(!e)return{commits:[],hasUncommittedSteps:!1,highlightedCommit:void 0};var t=e.state,n=Be.getState(t);return n.license_missing?void 0:{commits:n.commits,hasUncommittedSteps:n.uncommittedSteps.length>0,highlightedCommit:ze.getState(e.state).commit}}(n.view)},this.getSerializableState=function(){return function(e){if(!e)return{commits:[]};var t=e.state,n=Be.getState(t);return n.license_missing?void 0:{commits:n.commits.map(function(e){return e.serialize()})}}(n.view)},this.updateLicenseInfo=function(e,t){ae.get("https://licencecheck.herokuapp.com/licenceCheck",{params:{licenseKey:t,plugins:["track"]}}).then(function(t){if("FAIL"===t.data.status){var r=n.view;(0,r.dispatch)(r.state.tr.setMeta("track_license_missing",!0));var o=document.createElement("span");o.style="\n width: 100% !important;\n background-color: rgba(213, 0, 0, 0.8) !important;\n height: 30px !important;\n position: absolute !important;\n top: 0 !important;\n margin-left: -4px !important;\n color: white !important;\n text-align: center;\n font-size: 18px !important;\n line-height: 1.5;\n ",o.innerText="Please get license to use advance plugins !",e.appendChild(o)}})},this.pmPlugins=[qe,Ue],this.styles=gt(t)}}).call(this,r(48))},function(e,t,n){(function(a){e.exports=function(S,E,R,T){"use strict";var D="default"in S?S.default:S;function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n>1}},se.from=function(e){if(e instanceof se)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new se(t)};var qt=se,Ut=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;nthis.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=r+this.child(n).nodeSize;if(e<=o)return o==e||0"},Ut.prototype.toStringInner=function(){return this.content.join(", ")},Ut.prototype.toJSON=function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null},Ut.fromJSON=function(e,t){if(!t)return Ut.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ut(t.map(e.nodeFromJSON))},Ut.fromArray=function(e){if(!e.length)return Ut.empty;for(var t,n=0,r=0;rthis.type.rank&&((t=t||e.slice(0,r)).push(this),n=!0),t&&t.push(o)}}return t=t||e.slice(),n||t.push(this),t},he.prototype.removeFromSet=function(e){for(var t=0;te.depth)throw new ge("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ge("Inconsistent open depths");return function e(t,n,r,o){var i=t.index(o),a=t.node(o);if(i==n.index(o)&&on?i++:e.textOffset&&(Ce(e.nodeAfter,r),i++));for(var s=i;so&&ve(e,t,o+1),a=r.depth>o&&ve(n,r,o+1),s=[];return ye(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(Ie(i,a),Ce(Ge(i,xe(e,t,n,r,o+1)),s)):(i&&Ce(Ge(i,Ae(e,t,o+1)),s),ye(t,n,o,s),a&&Ce(Ge(a,Ae(n,r,o+1)),s)),ye(r,null,o,s),new Ut(s)}function Ae(e,t,n){var r=[];return ye(null,e,n,r),e.depth>n&&Ce(Ge(ve(e,t,n+1),Ae(e,t,n+1)),r),ye(t,null,n,r),new Ut(r)}function Be(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),o=n-1;0<=o;o--)r=t.node(o).copy(Ut.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}function Ze(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n}Qt.size.get=function(){return this.content.size-this.openStart-this.openEnd},Kt.prototype.insertAt=function(e,t){var n=function e(t,n,r,o){var i=t.findIndex(n),a=i.index,s=i.offset,l=t.maybeChild(a);if(s==n||l.isText)return o&&!o.canReplace(a,a,r)?null:t.cut(0,n).append(r).append(t.cut(n));var c=e(l.content,n-s-1,r);return c&&t.replaceChild(a,l.copy(c))}(this.content,e+this.openStart,t,null);return n&&new Kt(n,this.openStart,this.openEnd)},Kt.prototype.removeBetween=function(e,t){return new Kt(function e(t,n,r){var o=t.findIndex(n),i=o.index,a=o.offset,s=t.maybeChild(i),l=t.findIndex(r),c=l.index,u=l.offset;if(a==n||s.isText){if(u!=r&&!t.child(c).isText)throw new RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=c)throw new RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-a-1,r-a-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},Kt.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},Kt.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},Kt.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return 0=e)return t;return 0},Ze.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.posthis.pos?e:this},Ze.prototype.min=function(e){return e.pos>1},He.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[1+t]}},He.prototype.toString=function(){var t=[];return function e(n){t.push(n);for(var r=1;r"+t.indexOf(e.next[o+1]);return r}).join("\n")},Object.defineProperties(He.prototype,wn),He.empty=new He(!0);var kn=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.unshift()},Sn={next:{configurable:!0}};function ze(e){for(var t=[];t.push(Me(e)),e.eat("|"););return 1==t.length?t[0]:{type:"choice",exprs:t}}function Me(e){for(var t=[];t.push(De(e)),e.next&&")"!=e.next&&"|"!=e.next;);return 1==t.length?t[0]:{type:"seq",exprs:t}}function De(e){for(var t=function(e){if(e.eat("(")){var t=ze(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var i in n){var a=n[i];-1e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var i=o.getAttrs(t);if(!1===i)continue;o.attrs=i}return o}}},it.schemaRules=function(t){var n,r=[];function o(e){for(var t=null==e.priority?50:e.priority,n=0;ni.length)&&(n=o,!(t=i).length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var a=0;athis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},Tn.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},Tn.prototype.sync=function(e){for(var t=this.open;0<=t;t--)if(this.nodes[t]==e)return void(this.open=t)},Tn.prototype.addPendingMark=function(e){this.pendingMarks.push(e)},Tn.prototype.removePendingMark=function(e){var t=this.pendingMarks.lastIndexOf(e);if(-1n.pos?null:new i(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)},i.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},i.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new i(t.from,t.to,t.gapFrom,t.gapTo,Kt.fromJSON(e,t.slice),t.insert,!!t.structure)},i}(Zt);function Wt(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;0=n.pos?null:new r(t.pos,n.pos,this.mark)},r.prototype.merge=function(e){if(e instanceof r&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new r(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},r.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},r.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new r(t.from,t.to,e.markFromJSON(t.mark))},r}(Zt);Zt.jsonID("addMark",zn);var Un=function(e){function r(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new Kt(St(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))}),n.openStart,n.openEnd);return wt.fromReplace(e,this.from,this.to,r)},r.prototype.invert=function(){return new zn(this.from,this.to,this.mark)},r.prototype.map=function(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new r(t.pos,n.pos,this.mark)},r.prototype.merge=function(e){if(e instanceof r&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new r(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},r.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},r.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new r(t.from,t.to,e.markFromJSON(t.mark))},r}(Zt);function Yt(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=Kt.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);if(zt(o,i,r))return new Bn(t,n,r);var a,s,l,c,u=function(e,t){for(var n=new Vn(e),r=1;t.size&&r<=3;r++){var o=n.placeSlice(t.content,t.openStart,t.openEnd,r);3==r&&o!=t&&o.size&&(r=0),t=o}for(;n.open.length;)n.closeNode();return n.placed}(o,r),p=(s=function e(t,n,r,o){var i=Ut.empty,a=0,s=r[n];if(t.depth>n){var l=e(t,n+1,r,o||s);a=l.openEnd+1,i=Ut.from(t.node(n+1).copy(l.content))}return s&&(i=i.append(s.content),a=s.openEnd),o&&(i=i.append(t.node(n).contentMatchAt(t.indexAfter(n)).fillBefore(Ut.empty,!0)),a=0),{content:i,openEnd:a}}(a=o,0,u,!1),l=s.content,c=s.openEnd,new Kt(l,a.depth,c||0)),d=Jt(o,i,p);if(!d)return null;if(p.size!=d.size&&function(e,t,n){if(!t.parent.isTextblock)return!1;var r,o=n.openEnd?function(e,t){for(var n=1;no&&(e=e.addToEnd(function e(t,n){var r=t.node(n),o=r.contentMatchAt(0).fillBefore(r.content,!0,t.index(n));return t.depth>n&&(o=o.addToEnd(e(t,n+1))),r.copy(o)}(r,o+1))),e}function Jt(e,t,n){var r=Ot(n.content,e.node(0),e,t,0,n.openStart,n.openEnd);return r?function(e,t,n){for(;0t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}Vn.prototype.placeSlice=function(e,t,n,r,o){if(0c;)this.closeNode();for(var d=0;dc;)this.closeNode();a=a.mark(u.parent.type.allowedMarks(a.marks)),t&&(a=Dt(a,t,l?n:0),t=0),this.addNode(u,a,l?n:0),u.match=f,l&&(n=0),s=!0;break}if(!s)break}return 1S));E--){var _=i[E];E<0||(e=r.before(_),t=o.after(_))}return this},xt.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=Vt(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new Kt(Ut.from(n),0,0))},xt.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=jt(n,r),i=0;in.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var Wn=Object.freeze({AddMarkStep:zn,MapResult:vt,Mapping:yt,RemoveMarkStep:Un,ReplaceAroundStep:qn,ReplaceStep:Bn,Step:Zt,StepMap:Ct,StepResult:wt,Transform:xt,TransformError:Gt,canJoin:function(e,t){var n=e.resolve(t),r=n.index();return Rt(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)},canSplit:function(e,t,n,r){void 0===n&&(n=1);var o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var s=o.depth-1,l=n-2;ir.height&&(i=r.height-182),{right:4,top:i}}function xn(e,t){for(var n=e.head,r=0;r=n)return t[r]}In.prototype.get=function(e){return e.config.pluginsByKey[this.key]},In.prototype.getState=function(e){return e[this.key]};var Br=Object.freeze({AllSelection:Rr,EditorState:dn,NodeSelection:vr,Plugin:fn,PluginKey:In,Selection:Kn,SelectionRange:Yn,TextSelection:Qn,Transaction:Dr}),zr=new In("comment");function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xn(e,t){return e(t={exports:{}},t.exports),t.exports}var Ur=Xn(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var r={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var o=/Edge\/(\d+)/.exec(navigator.userAgent),i=/MSIE \d/.test(navigator.userAgent),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);r.mac=/Mac/.test(navigator.platform);var c=r.ie=!!(i||s||o);r.ie_version=i?document.documentMode||6:s?+s[1]:o?+o[1]:null,r.gecko=!c&&/gecko\/(\d+)/i.test(navigator.userAgent),r.gecko_version=r.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var p=!c&&/Chrome\/(\d+)/.exec(navigator.userAgent);r.chrome=!!p,r.chrome_version=p&&+p[1],r.ios=!c&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),r.android=/Android \d/.test(navigator.userAgent),r.webkit=!c&&"WebkitAppearance"in document.documentElement.style,r.safari=/Apple Computer/.test(navigator.vendor),r.webkit_version=r.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}function I(e){var t=e.parentNode;return t&&11==t.nodeType?t.host:t}function v(e,t,n,r){return n&&(a(e,t,n,r,-1)||a(e,t,n,r,1))}var g=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},b=function(e,t,n){var r=document.createRange();return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},C=/^(img|br|input|textarea|hr)$/i;function a(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:y(e))){var i=e.parentNode;if(1!=i.nodeType||(a=e.pmViewDesc)&&a.node&&a.node.isBlock||C.test(e.nodeName)||"false"==e.contentEditable)return!1;t=g(e)+(o<0?0:1),e=i}else{if(1!=e.nodeType)return!1;e=e.childNodes[t+(o<0?-1:0)],t=o<0?y(e):0}}var a}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}var S=function(e){var t=e.isCollapsed;return t&&r.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function k(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function h(e,t){return"number"==typeof e?e:e[t]}function G(e,t,n){for(var r,o=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument,s=a.defaultView,l=n||e.dom;l;l=I(l))if(1==l.nodeType){var c=l==a.body||1!=l.nodeType,u=c?{left:0,right:(r=s).innerWidth,top:0,bottom:r.innerHeight}:l.getBoundingClientRect(),p=0,d=0;if(t.topu.bottom-h(o,"bottom")&&(d=t.bottom-u.bottom+h(i,"bottom")),t.leftu.right-h(o,"right")&&(p=t.right-u.right+h(i,"right")),(p||d)&&(c?s.scrollBy(p,d):(d&&(l.scrollTop+=d),p&&(l.scrollLeft+=p))),c)break}}function f(e,t){for(var n,r,o=2e8,i=0,a=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=b(l).getClientRects()}for(var p=0;p=s){a=Math.max(d.bottom,a),s=Math.min(d.top,s);var h=d.left>t.left?d.left-t.left:d.right=(d.left+d.right)/2?1:0));continue}}!n&&(t.left>=d.right&&t.top>=d.top||t.left>=d.left&&t.top>=d.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||o&&1==n.nodeType?{node:e,offset:i}:f(n,r)}function m(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function u(e,t){var n,r,o=e.root;if(o.caretPositionFromPoint){var i=o.caretPositionFromPoint(t.left,t.top);i&&(n=i.offsetNode,r=i.offset)}if(!n&&o.caretRangeFromPoint){var a=o.caretRangeFromPoint(t.left,t.top);a&&(n=a.startContainer,r=a.startOffset)}var s,l,c,u,p=o.elementFromPoint(t.left,t.top+1);if(!p||!e.dom.contains(1!=p.nodeType?p.parentNode:p)){var d=e.dom.getBoundingClientRect();if(!m(t,d))return null;if(!(p=function e(t,n,r){var o=t.childNodes.length;if(o&&r.topn.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(s=function(e,t,n,r){for(var o=-1,i=t;i!=e.dom;){var a=e.docView.nearestDesc(i,!0);if(!a)return null;if(a.node.isBlock&&a.parent){var s=a.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)o=a.posBefore;else{if(!(s.right(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,i,a)}(e,p,t));var h=e.docView.nearestDesc(p,!0);return{pos:s,inside:h?h.posAtStart-h.border:-1}}function x(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function l(e,t){var n=e.docView.domFromPos(t),o=n.node,i=n.offset;if(3==o.nodeType&&(r.chrome||r.gecko)){var a=x(b(o,i,i),0);if(r.gecko&&i&&/\s/.test(o.nodeValue[i-1])&&iu.top&&("up"==i?u.bottomn.bottom-1))return!1}}return!0})):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=getSelection();return E.test(r.parent.textContent)&&s.modify?d(e,t,function(){var t=s.getRangeAt(0),o=s.focusNode,i=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||o==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l}):"left"==n||"backward"==n?i:a}(e,t,n));var r,o,i,a,s}function w(e,t,n,r){this.parent=e,this.children=t,((this.dom=n).pmViewDesc=this).contentDOM=r,this.dirty=0}var D={beforePosition:{},size:{},border:{},posBefore:{},posAtStart:{},posAfter:{},posAtEnd:{},contentLost:{}};w.prototype.matchesWidget=function(){return!1},w.prototype.matchesMark=function(){return!1},w.prototype.matchesNode=function(){return!1},w.prototype.matchesHack=function(){return!1},D.beforePosition.get=function(){return!1},w.prototype.parseRule=function(){return null},w.prototype.stopEvent=function(){return!1},D.size.get=function(){for(var e=0,t=0;tt+this.node.content.size)){var i=e.root.getSelection(),a=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&0t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=y(e)}else{if(!(1==e.nodeType&&t=r)return c+u;if(r=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},ye.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n>1,a=Math.min(i,e.length);or.index&&(r.changed=!0,r.destroyBetween(r.index,s)),r.top=r.top.children[r.index];else{var c=B.create(r.top,e[i],t,n);r.top.children.splice(r.index,0,c),r.top=c,r.changed=!0}r.index=0,i++}},ye.prototype.findNodeMatch=function(e,t,n,r){var o=-1,i=r<0?void 0:this.getPreMatch(r),a=this.top.children;if(i&&i.matchesNode(e,t,n))o=a.indexOf(i);else for(var s=this.index,l=Math.min(a.length,s+5);sDate.now()-50?e.lastSelectionOrigin:null,a=function(e,t){var n,r,o=e.root.getSelection(),i=e.state.doc,a=e.docView.nearestDesc(o.focusNode),s=a&&0==a.size,l=e.docView.posFromDOM(o.focusNode,o.focusOffset),c=i.resolve(l);if(S(o)){for(n=c;a&&!a.node;)a=a.parent;if(a&&a.node.isAtom&&Br.NodeSelection.isSelectable(a.node)&&a.parent){var u=a.posBefore;r=new Br.NodeSelection(l==u?c:i.resolve(u))}}else n=i.resolve(e.docView.posFromDOM(o.anchorNode,o.anchorOffset));return r=r||Be(e,n,c,"pointer"==t||e.state.selection.heade.state.selection.from&&g.start<=e.state.selection.from+2?g.start=e.state.selection.from:g.endA=e.state.selection.to-2&&(g.endB+=e.state.selection.to-g.endA,g.endA=e.state.selection.to));var v,y=f.doc.resolveNoCache(g.start-f.from),b=f.doc.resolveNoCache(g.endB-f.from);if(!(!y.sameParent(b)&&y.posg.start&&function(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||Ne(r,!0,!1)n||Ne(a,!0,!1)t.content.size?null:Be(e,t.resolve(n.anchor),t.resolve(n.head))}function Ne(e,t,n){for(var r=e.depth,o=t?e.end():e.pos;0]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=(ze=ze||document.implementation.createHTMLDocument("title")).createElement("div"),o=/(?:]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=o&&Le[o[1].toLowerCase()])&&(e=n.map(function(e){return"<"+e+">"}).join("")+e+n.map(function(e){return""}).reverse().join(""),i=n.length),r.innerHTML=e;for(var a=0;ai.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)}))return{v:!0}},s=i.depth+1;0i.depth?i.nodeAfter:i.node(a);if(Br.NodeSelection.isSelectable(s)){r=n&&0=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(a);break}}return null!=r&&(Qe(e,Br.NodeSelection.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&Br.NodeSelection.isSelectable(r))&&(Qe(e,new Br.NodeSelection(n),"pointer"),!0)}(e,n))}function _e(e,t,n,r){return Ue(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",function(n){return n(e,t,r)})||function(e,t){var n=e.state.doc;if(-1==t)return!!n.inlineContent&&(Qe(e,Br.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var r=n.resolve(t),o=r.depth+1;0r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(i.inlineContent)Qe(e,Br.TextSelection.create(n,a+1,a+1+i.content.size),"pointer");else{if(!Br.NodeSelection.isSelectable(i))continue;Qe(e,Br.NodeSelection.create(n,a),"pointer")}return!0}}(e,n)}function qe(e){return rt(e)}Ye.keydown=function(e,t){e.shiftKey=16==t.keyCode||t.shiftKey,tt(e,t)||(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),e.someProp("handleKeyDown",function(n){return n(e,t)})||ve(e,t)?t.preventDefault():De(e,"key"))},Ye.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Ye.keypress=function(e,t){if(!(tt(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||r.mac&&t.metaKey))if(e.someProp("handleKeyPress",function(n){return n(e,t)}))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof Br.TextSelection&&n.$from.sameParent(n.$to))){var o=String.fromCharCode(t.charCode);e.someProp("handleTextInput",function(t){return t(e,n.$from.pos,n.$to.pos,o)})||e.dispatch(e.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}}};var et=r.mac?"metaKey":"ctrlKey";Je.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n,r,o,i,a=qe(e),s=Date.now(),l="singleClick";s-e.lastClick.time<500&&(n=t,r=e.lastClick,o=r.x-n.clientX,i=r.y-n.clientY,o*o+i*i<100)&&!t[et]&&("singleClick"==e.lastClick.type?l="doubleClick":"doubleClick"==e.lastClick.type&&(l="tripleClick")),e.lastClick={time:s,x:t.clientX,y:t.clientY,type:l};var c=e.posAtCoords(Pe(t));c&&("singleClick"==l?e.mouseDown=new nt(e,c,t,a):("doubleClick"==l?function(e,t,n,r){return Ue(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",function(n){return n(e,t,r)})}:_e)(e,c.pos,c.inside,t)?t.preventDefault():De(e,"pointer"))};var nt=function(e,t,n,o){var i,a,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=o,this.selectNode=n[et],this.allowDefault=n.shiftKey,-1=r.from&&o.pos<=(r instanceof Br.NodeSelection?r.to-1:r.to)))if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(Br.NodeSelection.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var i=e.docView.nearestDesc(t.target,!0);if(!i||!i.node.type.spec.draggable||i==e.docView)return;e.dispatch(e.state.tr.setSelection(Br.NodeSelection.create(e.state.doc,i.posBefore)))}var a=e.state.selection.content(),s=We(e,a),l=s.dom,c=s.text;t.dataTransfer.clearData(),t.dataTransfer.setData(at?"Text":"text/html",l.innerHTML),at||t.dataTransfer.setData("text/plain",c),e.dragging=new ct(a,!t[ut])}},Je.dragend=function(e){window.setTimeout(function(){return e.dragging=null},50)},Ye.dragover=Ye.dragenter=function(e,t){return t.preventDefault()},Ye.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var r=e.posAtCoords(Pe(t));if(r){var o=e.state.doc.resolve(r.pos);if(o){var i=n&&n.slice||ke(e,t.dataTransfer.getData(at?"Text":"text/plain"),at?null:t.dataTransfer.getData("text/html"),!1,o);if(i&&(t.preventDefault(),!e.someProp("handleDrop",function(r){return r(e,t,i,n&&n.move)}))){var a=i?Wn.dropPoint(e.state.doc,o.pos,i):o.pos;null==a&&(a=o.pos);var s=e.state.tr;n&&n.move&&s.deleteSelection();var l=s.mapping.map(a),c=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,u=s.doc;if(c?s.replaceRangeWith(l,l,i.content.firstChild):s.replaceRange(l,l,i),!s.doc.eq(u)){var p=s.doc.resolve(l);c&&Br.NodeSelection.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild)?s.setSelection(new Br.NodeSelection(p)):s.setSelection(Be(e,p,s.doc.resolve(s.mapping.map(a)))),e.focus(),e.dispatch(s.setMeta("uiEvent","drop"))}}}}}},Je.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0)},Je.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.focused=!1)},Je.beforeinput=function(e,t){if(r.chrome&&r.android&&"deleteContentBackward"==t.inputType){var n=e.domChangeCount;setTimeout(function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",function(t){return t(e,k(8,"Backspace"))}))){var t=e.state.selection.$cursor;t&&0=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;se){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,o)}},Ct.prototype.map=function(e,t,n){return this==Et||0==e.maps.length?this:this.mapInner(e,t,0,0,n||bt)},Ct.prototype.mapInner=function(e,t,n,r,o){for(var i,a=0;a=s[a]+i?s[a+1]=-1:(c=r-n-(t-e)+(i-o))&&(s[a]+=c,s[a+1]+=c))}},c=0;c=r.content.size){u=!0;continue}var h=n.map(e[p+1]+i,-1)-o,m=r.content.findIndex(f),g=m.index,v=m.offset,y=r.maybeChild(g);if(y&&v==f&&v+y.nodeSize==h){var b=s[p+2].mapInner(n,y,d+1,s[p]+i+1,a);b!=Et?(s[p]=f,s[p+1]=h,s[p+2]=b):(s[p+1]=-2,u=!0)}else u=!0}if(u){var w=At(function(e,t,n,r,o,i,a){function u(e,t){for(var i=0;ia&&c.to=e){this.children[o]==e&&(n=this.children[o+2]);break}for(var i=e+1,a=i+t.content.size,s=0;si&&l.type instanceof pt){var c=Math.max(i,l.from)-i,u=Math.min(a,l.to)-i;cn&&a.too.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,p,u),h=f||!e.selection.eq(o.selection),m="preserve"==d&&h&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top),i=e.dom.ownerDocument,a=(r.left+r.right)/2,s=o+1;s=o-20){t=l,n=c.top;break}}}for(var u=[],p=e.dom;p&&(u.push({dom:p,top:p.scrollTop,left:p.scrollLeft}),p!=i.body);p=I(p));return{refDOM:t,refTop:n,stack:u}}(this);if(h){this.domObserver.stop();var g=!1;if(f){var y=r.chrome&&Vt(this.root);!i&&this.docView.update(e.doc,p,u,this)||(this.docView.destroy(),this.docView=O(e.doc,p,u,this.dom,this)),y&&(g=!this.composing&&function(e,t){var n=Vt(t);if(!n||3==n[0].nodeType)return!1;for(var r=0;r>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bo}}function Fo(e){return"theme"!==e&&"innerRef"!==e}function No(e){return"string"==typeof e&&96i.width?p="calc(50% - ".concat(l/2,"px)"):p+l>i.width&&(p=i.width-l-4)<2&&(p=2);var d=o.y-i.y+(o.height||20)+1+6;if(!r&&d+u>i.height){var f=o.y-i.y-u-1;0i.height)&&(h="none"),{popupPosition:{top:d,left:p,display:h}}}so.string,so.string,Ro("div",{target:"e2akd720",label:"InputWrapper"})("align-items:center;display:flex;line-height:1;",function(e){return v({},e.wrapper)},""),Ro("input",{target:"e2akd721",label:"StyledInput"})("height:20px;width:180px;margin:0 12px 0 0;padding:4px;border-top:none;border-left:none;border-right:none;",function(e){var t=e.theme,n=t.constants,r=t.input,o=e.error;return v({borderBottom:"1px solid ".concat(o?"".concat(n.color.error.primary," !important"):n.color.border.secondary),backgroundColor:n.color.background.primary,color:n.color.text.primary,fontSize:n.fontSize.medium,"&:focus":{borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:"1px solid ".concat(n.color.highlight.primary),outline:"none"},"&::placeholder":{fontSize:n.color.text.secondary}},r.input({theme:n}))},""),(function(){function i(){var e,t;u(this,i);for(var n=arguments.length,r=new Array(n),o=0;or.bottom?fr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-ii.length-1&&(a=i.length-1):"last"===t&&(a=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Ii(i[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ni):$o({},Ni,this.props.theme):Ni}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,s=o.isRtl,l=o.options,c=this.state.selectValue,u=this.hasValue();return{cx:function(e,t,n){var r,o,i=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat((r=e,(o=a)?"-"===o[0]?r+o:r+"__"+o:r)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,i),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:a,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(-1'))}catch(e){t("Unable to get embed details ".concat(e.message))}})}};function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var T=function(e){v()(VideoModal,e);var t,n,r=(t=VideoModal,n=_isNativeReflectConstruct(),function _createSuperInternal(){var e,r=k()(t);if(n){var o=k()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b()(this,e)});function VideoModal(){var e;s()(this,VideoModal);for(var t=arguments.length,n=new Array(t),i=0;i input":{width:"100%",margin:"0 auto"}}}),F=R.a.div({display:"flex",marginTop:20}),j=R.a.span({height:280,width:"100%",maxWidth:500,marginTop:20,padding:20,"> iframe":{width:"100%",height:280}},function(e){var t=e.theme.constants,n=e.videoSrc;return{border:"1px dashed ".concat(n?t.color.highlight.primary:t.color.border.primary)}}),I=T;function ToolbarComponent_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var B=function(e){v()(ToolbarComponent,e);var t,n,r=(t=ToolbarComponent,n=ToolbarComponent_isNativeReflectConstruct(),function _createSuperInternal(){var e,r=k()(t);if(n){var o=k()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b()(this,e)});function ToolbarComponent(){var e;s()(this,ToolbarComponent);for(var t=arguments.length,n=new Array(t),i=0;i",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),l="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=i&&(l||+i[1]<57)||s&&l,p=0;p<10;p++)r[48+p]=r[96+p]=String(p);for(p=1;p<=24;p++)r[p+111]="F"+p;for(p=65;p<=90;p++)r[p]=String.fromCharCode(p+32),o[p]=String.fromCharCode(p);for(var d in r)o.hasOwnProperty(d)||(o[d]=r[d]);function keyName(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(a||c)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var f=n(3),h="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);function normalizeKeyName(e){var t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(var s=0;s127)&&(o=r[n.keyCode])&&o!=i){var l=t[modifiers(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){var c=t[modifiers(i,n,!0)];if(c&&c(e.state,e.dispatch,e))return!0}return!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(59),l=n(62),c=n(8),u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function LinkRenderer(e){var t=e.classes,n=e.children,r=_objectWithoutProperties(e,["classes","children"]);return o.a.createElement("a",u({},r,{className:l()(t.link,r.className)}),n)}LinkRenderer.propTypes={children:a.a.node,className:a.a.string,classes:a.a.object.isRequired};var p=Object(c.a)(function styles(e){var t=e.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:t.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:t.linkHover,cursor:"pointer"}}}})(LinkRenderer)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(8);function TableRenderer(e){var t=e.classes,n=e.columns,r=e.rows,i=e.getRowKey;return o.a.createElement("table",{className:t.table},o.a.createElement("thead",{className:t.tableHead},o.a.createElement("tr",null,n.map(function(e){var n=e.caption;return o.a.createElement("th",{key:n,className:t.cellHeading},n)}))),o.a.createElement("tbody",null,r.map(function(e){return o.a.createElement("tr",{key:i(e)},n.map(function(n,r){var i=n.render;return o.a.createElement("td",{key:r,className:t.cell},i(e))}))})))}TableRenderer.propTypes={classes:a.a.object.isRequired,columns:a.a.arrayOf(a.a.shape({caption:a.a.string.isRequired,render:a.a.func.isRequired})).isRequired,rows:a.a.arrayOf(a.a.object).isRequired,getRowKey:a.a.func.isRequired};var l=Object(s.a)(function styles(e){var t=e.space,n=e.color,r=e.fontFamily,o=e.fontSize;return{table:{width:"100%",borderCollapse:"collapse",marginBottom:t[4]},tableHead:{borderBottom:[[1,n.border,"solid"]]},cellHeading:{color:n.base,paddingRight:t[2],paddingBottom:t[1],textAlign:"left",fontFamily:r.base,fontWeight:"bold",fontSize:o.small,whiteSpace:"nowrap"},cell:{color:n.base,paddingRight:t[2],paddingTop:t[1],paddingBottom:t[1],verticalAlign:"top",fontFamily:r.base,fontSize:o.small,"&:last-child":{isolate:!1,width:"99%",paddingRight:0},"& p:last-child":{isolate:!1,marginBottom:0}}}})(TableRenderer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function toCss(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="";if(!t)return o;var i=n.indent,a=void 0===i?0:i,s=t.fallbacks;if(a++,s)if(Array.isArray(s))for(var l=0;l-1&&e%1==0&&e<=n}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function isIndex(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=function IconBase(e,t){var n=e.children,i=e.color,a=e.size,s=e.style,l=e.width,c=e.height,u=_objectWithoutProperties(e,["children","color","size","style","width","height"]),p=t.reactIconBase,d=void 0===p?{}:p,f=a||d.size||"1em";return o.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:c||f,width:l||f},d,u,{style:r({verticalAlign:"middle",color:i||d.color},d.style||{},s)}))};a.propTypes={color:i.default.string,size:i.default.oneOfType([i.default.string,i.default.number]),width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),style:i.default.object},a.contextTypes={reactIconBase:i.default.shape(a.propTypes)},t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var r=n(204);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function get(){return _interopRequireDefault(r).default}});var o=n(69);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function get(){return _interopRequireDefault(o).default}});var i=n(123);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function get(){return _interopRequireDefault(i).default}});var a=n(205);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function get(){return _interopRequireDefault(a).default}});var s=n(64);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function get(){return _interopRequireDefault(s).default}});var l=n(103);Object.defineProperty(t,"sheets",{enumerable:!0,get:function get(){return _interopRequireDefault(l).default}});var c=n(126);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function get(){return _interopRequireDefault(c).default}});var u=_interopRequireDefault(n(211));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var p=t.create=function create(e){return new u.default(e)};t.default=p()},function(e,t,n){var r=n(107),o="Expected a function";function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(memoize.Cache||r),n}memoize.Cache=r,e.exports=memoize},function(e,t,n){var r=n(149);e.exports=function get(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],u=function cleanInputProps(e){return c.forEach(function(t){return delete e[t]}),e},p=function copyStyles(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function generateId(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function AutosizeInput(e){_classCallCheck(this,AutosizeInput);var t=_possibleConstructorReturn(this,(AutosizeInput.__proto__||Object.getPrototypeOf(AutosizeInput)).call(this,e));return t.inputRef=function(e){t.input=e,"function"==typeof t.props.inputRef&&t.props.inputRef(e)},t.placeHolderSizerRef=function(e){t.placeHolderSizer=e},t.sizerRef=function(e){t.sizer=e},t.state={inputWidth:e.minWidth,inputId:e.id||f()},t}return _inherits(AutosizeInput,i.Component),o(AutosizeInput,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||f()})}},{key:"componentDidUpdate",value:function componentDidUpdate(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1}},{key:"copyInputStyles",value:function copyInputStyles(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function updateInputWidth(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)=0||(o[n]=e[n]);return o}function DummyInput(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,_objectWithoutPropertiesLoose(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(a.jsx)("input",_extends$2({ref:t},n,{css:Object(u.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var v=function(e){var t,n;function NodeResolver(){return e.apply(this,arguments)||this}n=e,(t=NodeResolver).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=NodeResolver.prototype;return r.componentDidMount=function componentDidMount(){this.props.innerRef(Object(s.findDOMNode)(this))},r.componentWillUnmount=function componentWillUnmount(){this.props.innerRef(null)},r.render=function render(){return this.props.children},NodeResolver}(r.Component),y=["boxSizing","height","overflow","paddingRight","position"],b={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var w=!(!window.document||!window.document.createElement),k=0,x=function(e){var t,n;function ScrollLock(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0||(o[n]=e[n]);return o}var E=function(e){var t,n;function ScrollCaptor(){for(var t,n=arguments.length,r=new Array(n),o=0;o0,h=u-p-c,m=!1;h>n&&t.isBottom&&(i&&i(e),t.isBottom=!1),f&&t.isTop&&(s&&s(e),t.isTop=!1),f&&n>h?(o&&!t.isBottom&&o(e),d.scrollTop=u,m=!0,t.isBottom=!0):!f&&-n>c&&(a&&!t.isTop&&a(e),d.scrollTop=0,m=!0,t.isTop=!0),m&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=ScrollCaptor).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=ScrollCaptor.prototype;return r.componentDidMount=function componentDidMount(){this.startListening(this.scrollTarget)},r.componentWillUnmount=function componentWillUnmount(){this.stopListening(this.scrollTarget)},r.startListening=function startListening(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},r.stopListening=function stopListening(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},r.render=function render(){return o.a.createElement(v,{innerRef:this.getScrollTarget},this.props.children)},ScrollCaptor}(r.Component);function ScrollCaptorSwitch(e){var t=e.isEnabled,n=void 0===t||t,r=_objectWithoutPropertiesLoose$1(e,["isEnabled"]);return n?o.a.createElement(E,r):r.children}var _=function instructionsAriaMessage(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,o=n.isMulti,i=n.label,a=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(a?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(i||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},O=function valueEventAriaMessage(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},R=function valueFocusAriaMessage(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."},M=function optionFocusAriaMessage(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."},A=function resultsAriaMessage(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."},T=function isOptionDisabled(e){return!!e.isDisabled};var D={clearIndicator:c.d,container:c.b,control:c.c,dropdownIndicator:c.e,group:c.h,groupHeading:c.f,indicatorsContainer:c.j,indicatorSeparator:c.g,input:c.i,loadingIndicator:c.m,loadingMessage:c.k,menu:c.n,menuList:c.l,menuPortal:c.o,multiValue:c.p,multiValueLabel:c.q,multiValueRemove:c.r,noOptionsMessage:c.s,option:c.t,placeholder:c.u,singleValue:c.v,valueContainer:c.w};var P={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _extends$4(){return(_extends$4=Object.assign||function(e){for(var t=1;t-1}}(),formatGroupLabel:function formatGroupLabel(e){return e.label},getOptionLabel:function getOptionLabel(e){return e.label},getOptionValue:function getOptionValue(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:T,loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(l.d)(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},N=1,F=function(e){var t,n;function Select(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Object(c.x)({components:e})},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,_extends$4({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var o=n.props,i=o.closeMenuOnSelect,a=o.isMulti;n.onInputChange("",{action:"set-value"}),i&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,i=n.state.selectValue;if(o)if(n.isOptionSelected(e,i)){var a=n.getOptionValue(e);n.setValue(i.filter(function(e){return n.getOptionValue(e)!==a}),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(i,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter(function(e){return n.getOptionValue(e)!==r});n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=D[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:O(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:_(t,_extends$4({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(l.j)(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)n.removeValue(m);else{if(!o)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&i&&n.clearValue();break;case" ":if(a)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,o=void 0===r?"":r,i=function toOption(e,r){var i=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:l,data:e},o))){var c=i?void 0:function(){return n.onOptionHover(e)},u=i?void 0:function(){return n.selectOption(e)},p=n.getElementId("option")+"-"+r;return{innerProps:{id:p,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:l}}};return e.options.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map(function(t,n){var o=i(t,r+"-"+n);return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var a=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:a,data:t,options:o})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})};var r=t.value;n.cacheComponents=i(n.cacheComponents,c.y).bind(_assertThisInitialized(_assertThisInitialized(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++N);var o=Object(l.e)(r);n.buildMenuOptions=i(n.buildMenuOptions,function(e,t){var n=e,r=n[0],o=n[1],i=t,a=i[0],s=i[1];return Object(c.y)(o,s)&&Object(c.y)(r.inputValue,a.inputValue)&&Object(c.y)(r.options,a.options)}).bind(_assertThisInitialized(_assertThisInitialized(n)));var a=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=a,n.state.selectValue=o,n}n=e,(t=Select).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=Select.prototype;return r.componentDidMount=function componentDidMount(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},r.UNSAFE_componentWillReceiveProps=function UNSAFE_componentWillReceiveProps(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=Object(l.e)(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},c=this.getNextFocusedValue(a),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:u,focusedValue:c})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},r.componentDidUpdate=function componentDidUpdate(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(l.f)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)},r.componentWillUnmount=function componentWillUnmount(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},r.onMenuOpen=function onMenuOpen(){this.props.onMenuOpen()},r.onMenuClose=function onMenuClose(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},r.onInputChange=function onInputChange(e,t){this.props.onInputChange(e,t)},r.focusInput=function focusInput(){this.inputRef&&this.inputRef.focus()},r.blurInput=function blurInput(){this.inputRef&&this.inputRef.blur()},r.openMenu=function openMenu(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props.isMulti,s="first"===e?0:i.focusable.length-1;if(!a){var l=i.focusable.indexOf(r[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[s]},function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})})},r.focusValue=function focusValue(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=i.length-1,c=-1;if(i.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s0?a-1:o.length-1:"down"===e?i=(a+1)%o.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:T(o[i])}})}},r.getTheme=function getTheme(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(P):_extends$4({},P,this.props.theme):P},r.getCommonProps=function getCommonProps(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,s=o.isRtl,c=o.options,u=this.state.selectValue,p=this.hasValue();return{cx:l.h.bind(null,i),clearValue:e,getStyles:t,getValue:function getValue(){return u},hasValue:p,isMulti:a,isRtl:s,options:c,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}},r.getNextFocusedValue=function getNextFocusedValue(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r-1?t:e[0]},r.hasValue=function hasValue(){return this.state.selectValue.length>0},r.hasOptions=function hasOptions(){return!!this.state.menuOptions.render.length},r.countOptions=function countOptions(){return this.state.menuOptions.focusable.length},r.isClearable=function isClearable(){var e=this.props,isClearable=e.isClearable,t=e.isMulti;return void 0===isClearable?t:isClearable},r.isOptionDisabled=function isOptionDisabled(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},r.isOptionSelected=function isOptionSelected(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})},r.filterOption=function filterOption(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},r.formatOptionLabel=function formatOptionLabel(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},r.formatGroupLabel=function formatGroupLabel(e){return this.props.formatGroupLabel(e)},r.startListeningComposition=function startListeningComposition(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},r.stopListeningComposition=function stopListeningComposition(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},r.startListeningToTouch=function startListeningToTouch(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},r.stopListeningToTouch=function stopListeningToTouch(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},r.constructAriaLiveMessage=function constructAriaLiveMessage(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,l=i.inputValue,c=i.screenReaderStatus;return(r?R({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&s?M({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"")+" "+A({inputValue:l,screenReaderMessage:c({count:this.countOptions()})})+" "+t},r.renderInput=function renderInput(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=this.components.Input,c=this.state.inputIsHidden,u=r||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return o.a.createElement(DummyInput,_extends$4({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:l.k,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""},p));var d=this.commonProps,f=d.cx,h=d.theme,m=d.selectProps;return o.a.createElement(s,_extends$4({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,theme:h,type:"text",value:i},p))},r.renderPlaceholderOrValue=function renderPlaceholderOrValue(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,p=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!p)return h?null:o.a.createElement(l,_extends$4({},c,{key:"placeholder",isDisabled:d,isFocused:b}),m);if(f)return v.map(function(t,s){var l=t===y;return o.a.createElement(n,_extends$4({},c,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:s,removeProps:{onClick:function onClick(){return e.removeValue(t)},onTouchEnd:function onTouchEnd(){return e.removeValue(t)},onMouseDown:function onMouseDown(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var w=v[0];return o.a.createElement(s,_extends$4({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))},r.renderClearIndicator=function renderClearIndicator(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,_extends$4({},t,{innerProps:s,isFocused:a}))},r.renderLoadingIndicator=function renderLoadingIndicator(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.a.createElement(e,_extends$4({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))},r.renderIndicatorSeparator=function renderIndicatorSeparator(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.a.createElement(n,_extends$4({},r,{isDisabled:i,isFocused:a}))},r.renderDropdownIndicator=function renderDropdownIndicator(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,_extends$4({},t,{innerProps:i,isDisabled:n,isFocused:r}))},r.renderMenu=function renderMenu(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state,h=f.focusedOption,m=f.menuOptions,g=this.props,v=g.captureMenuScroll,y=g.inputValue,b=g.isLoading,w=g.loadingMessage,k=g.minMenuHeight,x=g.maxMenuHeight,C=g.menuIsOpen,E=g.menuPlacement,_=g.menuPosition,O=g.menuPortalTarget,R=g.menuShouldBlockScroll,M=g.menuShouldScrollIntoView,A=g.noOptionsMessage,T=g.onMenuScrollToTop,D=g.onMenuScrollToBottom;if(!C)return null;var P,L=function render(t){var n=h===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(p,_extends$4({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=m.render.map(function(t){if("group"===t.type){t.type;var i=_objectWithoutPropertiesLoose$2(t,["type"]),a=t.key+"-heading";return o.a.createElement(n,_extends$4({},d,i,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return L(e)}))}if("option"===t.type)return L(t)});else if(b){var N=w({inputValue:y});if(null===N)return null;P=o.a.createElement(l,d,N)}else{var F=A({inputValue:y});if(null===F)return null;P=o.a.createElement(u,d,F)}var j={minMenuHeight:k,maxMenuHeight:x,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:M},I=o.a.createElement(c.a,_extends$4({},d,j),function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.a.createElement(i,_extends$4({},d,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.a.createElement(ScrollCaptorSwitch,{isEnabled:v,onTopArrive:T,onBottomArrive:D},o.a.createElement(S,{isEnabled:R},o.a.createElement(a,_extends$4({},d,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:l}),P))))});return O||"fixed"===_?o.a.createElement(s,_extends$4({},d,{appendTo:O,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),I):I},r.renderFormField=function renderFormField(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return o.a.createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return o.a.createElement("input",{key:"i-"+n,name:a,type:"hidden",value:e.getOptionValue(t)})}):o.a.createElement("input",{name:a,type:"hidden"});return o.a.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:a,type:"hidden",value:u})}},r.renderLiveRegion=function renderLiveRegion(){return this.state.isFocused?o.a.createElement(g,{"aria-live":"polite"},o.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},r.render=function render(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.a.createElement(r,_extends$4({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),o.a.createElement(t,_extends$4({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:u}),o.a.createElement(i,_extends$4({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,_extends$4({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},Select}(r.Component);F.defaultProps=L;n(118);function stateManager_04f734a2_browser_esm_extends(){return(stateManager_04f734a2_browser_esm_extends=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var j={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},I=n(67);r.Component;var B=function manageState(e){var t,n;return n=t=function(t){var n,r;function StateManager(){for(var e,n=arguments.length,r=new Array(n),o=0;o1?n-1:0),o=1;o=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)}},{key:"reset",value:function reset(){this.registry=[]}},{key:"remove",value:function remove(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function toString(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}},{key:"index",get:function get(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),SheetsRegistry}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(207));t.default=function(e){return e&&e[r.default]&&e===e[r.default]()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function linkRule(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=_interopRequireDefault(n(49)),o=(_interopRequireDefault(n(127)),_interopRequireDefault(n(210)));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,n){(e+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var i="c",a="";return n&&(i=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(a+=n.options.jss.id)),""+i+o.default+a+e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t-1)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_6__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value)));if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value))},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:javascript_stringify__WEBPACK_IMPORTED_MODULE_3___default()(object,null,2)},"Shape")}catch(e){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_6__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value)))}return prop.required?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light"},"Required"):""}function renderDescription(e){var t=e.description,n=e.tags,r=void 0===n?{}:n,o=renderExtra(e),i=[].concat(_toConsumableArray(r.arg||[]),_toConsumableArray(r.argument||[]),_toConsumableArray(r.param||[])),a=r.return&&r.return[0]||r.returns&&r.returns[0];return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",null,t&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Markdown__WEBPACK_IMPORTED_MODULE_8__.a,{text:t}),o&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Para__WEBPACK_IMPORTED_MODULE_12__.a,null,o),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_JsDoc__WEBPACK_IMPORTED_MODULE_7__.a,r),i.length>0&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Arguments__WEBPACK_IMPORTED_MODULE_4__.a,{args:i,heading:!0}),a&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Argument__WEBPACK_IMPORTED_MODULE_5__.a,_extends({},a,{returns:!0})))}function renderExtra(e){var t=Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(e);if(!t)return null;switch(t.name){case"enum":return renderEnum(e);case"union":return renderUnion(e);case"shape":return renderShape(e.type.value);case"arrayOf":case"objectOf":return"shape"===t.value.name?renderShape(e.type.value.value):null;default:return null}}function renderUnion(e){var t=Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(e);if(!Array.isArray(t.value))return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",null,t.value);var n=t.value.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,{key:e.name+"-"+t},renderType(e))});return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",null,"One of type:"," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_group__WEBPACK_IMPORTED_MODULE_2___default.a,{separator:", ",inline:!0},n))}function renderName(e){var t=e.name,n=e.tags,r=void 0===n?{}:n;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Name__WEBPACK_IMPORTED_MODULE_9__.a,{deprecated:!!r.deprecated},t)}function renderTypeColumn(e){return e.flowType?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,null,renderFlowType(Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(e))):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,null,renderType(Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(e)))}function getRowKey(e){return e.name}var columns=[{caption:"Prop name",render:renderName},{caption:"Type",render:renderTypeColumn},{caption:"Default",render:renderDefault},{caption:"Description",render:renderDescription}];function PropsRenderer(e){var t=e.props;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Table__WEBPACK_IMPORTED_MODULE_13__.a,{columns:columns,rows:t,getRowKey:getRowKey})}PropsRenderer.propTypes={props:prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired}},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(293),o=n(294),i=n(295);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(r)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),r=!0}}function slowToString(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,n);case"utf8":case"utf-8":return utf8Slice(this,t,n);case"ascii":return asciiSlice(this,t,n);case"latin1":case"binary":return latin1Slice(this,t,n);case"base64":return base64Slice(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bidirectionalIndexOf(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Buffer.from(t,r)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,n,r,o);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):arrayIndexOf(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function read(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var u=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,p=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=p}return decodeCodePointsArray(r)}t.Buffer=Buffer,t.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,n){return from(null,e,t,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,n){return alloc(null,e,t,n)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)},Buffer.compare=function compare(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},Buffer.prototype.compare=function compare(e,t,n,r,o){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return hexWrite(this,e,t,n);case"utf8":case"utf-8":return utf8Write(this,e,t,n);case"ascii":return asciiWrite(this,e,t,n);case"latin1":case"binary":return latin1Write(this,e,t,n);case"base64":return base64Write(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var a=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=a)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,o,i){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function objectWriteUInt32(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function checkIEEE754(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,t,n,r,i){return i||checkIEEE754(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,i){return i||checkIEEE754(e,0,n,8),o.write(e,t,n,r,52,8),n+8}Buffer.prototype.slice=function slice(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Buffer.prototype.readIntBE=function readIntBE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Buffer.prototype.readInt8=function readInt8(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,t){t||checkOffset(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(e,t){t||checkOffset(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,t){return t||checkOffset(e,4,this.length),o.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,t){return t||checkOffset(e,4,this.length),o.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){return t||checkOffset(e,8,this.length),o.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){return t||checkOffset(e,8,this.length),o.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,n,r){(e=+e,t|=0,n|=0,r)||checkInt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Buffer.prototype.writeUInt8=function writeUInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function writeIntLE(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);checkInt(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Buffer.prototype.writeIntBE=function writeIntBE(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);checkInt(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Buffer.prototype.writeInt8=function writeInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,n){return writeFloat(this,e,t,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,n){return writeFloat(this,e,t,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,n){return writeDouble(this,e,t,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,n){return writeDouble(this,e,t,!1,n)},Buffer.prototype.copy=function copy(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function asciiToBytes(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function base64ToBytes(e){return r.toByteArray(base64clean(e))}function blitBuffer(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(44))},function(e,t){e.exports=function arrayMap(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++nd))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++g=t||n<0||v&&e-m>=p}function timerExpired(){var e=o();if(shouldInvoke(e))return trailingEdge(e);f=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){return f=void 0,y&&c?invokeFunc(e):(c=u=void 0,d)}function debounced(){var e=o(),n=shouldInvoke(e);if(c=arguments,u=this,h=e,n){if(void 0===f)return leadingEdge(h);if(v)return clearTimeout(f),f=setTimeout(timerExpired,t),invokeFunc(h)}return void 0===f&&(f=setTimeout(timerExpired,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,p=(v="maxWait"in n)?s(i(n.maxWait)||0,t):p,y="trailing"in n?!!n.trailing:y),debounced.cancel=function cancel(){void 0!==f&&clearTimeout(f),m=0,c=h=u=f=void 0},debounced.flush=function flush(){return void 0===f?d:trailingEdge(o())},debounced}},function(e,t,n){var r=n(341),o=n(39),i=n(82),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function toNumber(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Nib is a simple, elegant and light-weight text editor. Nib is built on top of prosemirror, a framework for text editor. It is great work by author Marijn Haverbeke.\n\nNib not only has good rich text editing capabilities but also addresses complex editing requirements like tracking changes made to a document, adding comments in document, collaborative editing and more...'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:'\n Document created with React Styleguidist.\n'}]},function(e,t,n){var r=n(156);e.exports=function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function forEachMethodNoData(e){a.headers[e]={}}),r.forEach(["post","put","patch"],function forEachMethodWithData(e){a.headers[e]=r.merge(i)}),e.exports=a}).call(this,n(48))},function(e,t,n){"use strict";var r=n(35),o=n(370),i=n(372),a=n(158),s=n(373),l=n(376),c=n(377),u=n(162);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,n){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var g=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function handleLoad(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}},f.onabort=function handleAbort(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function handleError(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||c(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(d,function setRequestHeader(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function onCanceled(e){f&&(f.abort(),n(e),f=null)}),p||(p=null),f.send(p)})}},function(e,t,n){"use strict";var r=n(371);e.exports=function createError(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(35);e.exports=function mergeConfig(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(e[o],t[o])}r.forEach(o,function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))}),r.forEach(i,mergeDeepProperties),r.forEach(a,function defaultToConfig2(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(void 0,t[o])}),r.forEach(s,function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))});var l=o.concat(i).concat(a).concat(s),c=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return-1===l.indexOf(e)});return r.forEach(c,mergeDeepProperties),n}},function(e,t,n){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},function(e,t,n){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function forEachMethodNoData(e){a.headers[e]={}}),r.forEach(["post","put","patch"],function forEachMethodWithData(e){a.headers[e]=r.merge(i)}),e.exports=a}).call(this,n(48))},function(e,t,n){"use strict";var r=n(36),o=n(435),i=n(437),a=n(166),s=n(438),l=n(441),c=n(442),u=n(170);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,n){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var g=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function handleLoad(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}},f.onabort=function handleAbort(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function handleError(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||c(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(d,function setRequestHeader(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function onCanceled(e){f&&(f.abort(),n(e),f=null)}),p||(p=null),f.send(p)})}},function(e,t,n){"use strict";var r=n(436);e.exports=function createError(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(36);e.exports=function mergeConfig(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(e[o],t[o])}r.forEach(o,function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))}),r.forEach(i,mergeDeepProperties),r.forEach(a,function defaultToConfig2(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(void 0,t[o])}),r.forEach(s,function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))});var l=o.concat(i).concat(a).concat(s),c=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return-1===l.indexOf(e)});return r.forEach(c,mergeDeepProperties),n}},function(e,t,n){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},function(e,t,n){"use strict";function symbolObservablePonyfill(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return symbolObservablePonyfill})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=[],r=void 0,o=void 0,i=function setSelector(){o.selector=n.join(",\n")},a=d(i);return{onProcessRule:function onProcessRule(i,l){if(!l||l===r||"style"!==i.type)return;if(!p(i,l,e))return;o||(r=i.options.jss.createStyleSheet(null,s),o=r.addRule("reset",c(e.reset)),r.attach());var u=i.selector;-1===n.indexOf(u)&&(n.push(u),t=a())},onProcessSheet:function onProcessSheet(){!t&&n.length&&i()}}};var i=_interopRequireDefault(n(224)),a=_interopRequireDefault(n(225));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={meta:"jss-isolate",index:-1/0,link:!0},l={inherited:i.default,all:a.default},c=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherited";if("string"==typeof e)return l[e];if("object"===(void 0===e?"undefined":o(e))){if(Array.isArray(e)){var t=e[0],n=e[1];return r({},l[t],n)}return r({},i.default,e)}return i.default},u={keyframes:!0,conditional:!0},p=function shouldIsolate(e,t,n){var r=e.options.parent;if(r&&u[r.type])return!1;var o=null==n.isolate||n.isolate;return null!=t.options.isolate&&(o=t.options.isolate),null!=e.style.isolate&&(o=e.style.isolate,delete e.style.isolate),"string"==typeof o?o===e.key:o},d=function createDebounced(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Date.now();return function(){var r=Date.now();return!(r-n0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function onProcessStyle(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=iterate(r,t[r],e);return t},onChangeValue:function onChangeValue(t,n){return iterate(n,t,e)}}};var o=addCamelCasedVersion(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(227)).default);function iterate(e,t,n){if(!t)return t;var i=t,a=void 0===t?"undefined":r(t);switch("object"===a&&Array.isArray(t)&&(a="array"),a){case"object":if("fallbacks"===e){for(var s in t)t[s]=iterate(s,t[s],n);break}for(var l in t)t[l]=iterate(e+"-"+l,t[l],n);break;case"array":for(var c=0;c-1)return registerClass(e,t.split(" "));var o=e.options.parent;if("$"===t[0]){var i=o.getRule(t.substr(1));return i?i===e?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(o.classes[e.key]+=" "+o.classes[i.key],!0):((0,r.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}return e.options.parent.classes[e.key]+=" "+t,!0}},function(e,t,n){(function(t){e.exports=function(){var e=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'",'"':'\\"',"\\":"\\\\"};function escapeChar(e){var t=n[e];return t||"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}var r={};"break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ").map(function(e){r[e]=!0});var o=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function isValidVariableName(e){return!r[e]&&o.test(e)}function toGlobalVariable(e){return"Function("+stringify("return this;")+")()"}function toPath(e){for(var t="",n=0;n-1)return void d.push(l.slice(),p[r]);u.push(e),p.push(l.slice())}if(!(l.length>o||s--<=0))return t(e,n,next)}:function(e,t){var r=c.indexOf(e);if(!(r>-1||l.length>o||s--<=0)){c.push(e);var e=t(e,n,next);return c.pop(),e}};if("function"==typeof t){var h=f;f=function(e,n){return h(e,function(e,r,o){return t(e,r,function(e){return n(e,r,o)})})}}var m=f(e,stringify);if(d.length){for(var g=n?"\n":"",v=n?" = ":"=",y=";"+g,h=n?"(function () {":"(function(){",b=["var x"+v+m],w=0;w",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},a=/^[\da-fA-F]+$/,s=/^\d+$/,l="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var c=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function injectDynamicImport(e){var t=e.tokTypes;function parseDynamicImport(){var e=this.startNode();return this.next(),this.type!==t.parenL&&this.unexpected(),this.finishNode(e,n)}function peekNext(){return this.input[this.pos]}return t._import.startsExpr=!0,e.plugins.dynamicImport=function dynamicImportPlugin(e){e.extend("parseStatement",function(e){return function parseStatement(){var n=this.startNode();if(this.type===t._import&&peekNext.call(this)===t.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var o=arguments.length,i=Array(o),a=0;at)return{line:n+1,column:t-i,char:n};i=a}throw new Error("Could not determine location of character")}function repeat(e,t){for(var n="";t--;)n+=e;return n}function getSnippet(e,t,n){void 0===n&&(n=1);var r=Math.max(t.line-5,0),o=t.line,i=String(o).length,a=e.split("\n").slice(r,o),s=a[a.length-1].slice(0,t.column).replace(/\t/g," ").length,l=a.map(function(e,t){return n=i,(o=String(t+r+1))+repeat(" ",n-o.length)+" : "+e.replace(/\t/g," ");var n,o}).join("\n");return l+="\n"+repeat(" ",i+3+s)+repeat("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return f[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n1&&(u=t(i),s.push(function(t,n,s){e.prependRight(o.start,(a?"":n+"var ")+u+" = "),e.overwrite(o.start,r=o.start+1,i),e.appendLeft(r,s),e.overwrite(o.start,r=o.start+1,(a?"":n+"var ")+u+" = "+i+s),e.move(o.start,r,t)})),destructureObjectPattern(e,t,n,o,u,a,s);break;case"ArrayPattern":if(e.remove(r,r=o.start),o.elements.filter(Boolean).length>1){var p=t(i);s.push(function(t,n,s){e.prependRight(o.start,(a?"":n+"var ")+p+" = "),e.overwrite(o.start,r=o.start+1,i,{contentOnly:!0}),e.appendLeft(r,s),e.move(o.start,r,t)}),o.elements.forEach(function(o,i){o&&("RestElement"===o.type?handleProperty(e,t,n,r,o.argument,p+".slice("+i+")",a,s):handleProperty(e,t,n,r,o,p+"["+i+"]",a,s),r=o.end)})}else{var d=findIndex(o.elements,Boolean),f=o.elements[d];"RestElement"===f.type?handleProperty(e,t,n,r,f.argument,i+".slice("+d+")",a,s):handleProperty(e,t,n,r,f,i+"["+d+"]",a,s),r=f.end}e.remove(r,o.end);break;default:throw new Error("Unexpected node type in destructuring ("+o.type+")")}}var g=function(e){function BlockStatement(){e.apply(this,arguments)}return e&&(BlockStatement.__proto__=e),BlockStatement.prototype=Object.create(e&&e.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(t){return e.createdDeclarations.push(t)}}),this.parentIsFunction&&this.parent.params.forEach(function(t){e.scope.addDeclaration(t,"param")})},BlockStatement.prototype.initialise=function initialise(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(t){return t.initialise(e)}),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var e=this.program.magicString.original,t=this.synthetic||!this.body.length,n=t?this.start:this.body[0].start;n&&"\n"!==e[n];)n-=1;for(this.indentation="";;){var r=e[n+=1];if(" "!==r&&"\t"!==r)break;this.indentation+=r}for(var o=this.program.magicString.getIndentString(),i=this.parent;i;)"constructor"!==i.kind||i.parent.parent.superClass||(this.indentation=this.indentation.replace(o,"")),i=i.parent;t&&(this.indentation+=o)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,n){var r,o,i=this,a=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(e,n,r){var o=n+"var "+i.argumentsAlias+" = arguments"+r;t.appendLeft(e,o)}),this.thisAlias&&s.push(function(e,n,r){var o=n+"var "+i.thisAlias+" = this"+r;t.appendLeft(e,o)}),this.argumentsArrayAlias&&s.push(function(e,n,r){var o=i.scope.createIdentifier("i"),s=n+"var "+o+" = arguments.length, "+i.argumentsArrayAlias+" = Array("+o+");\n"+a+"while ( "+o+"-- ) "+i.argumentsArrayAlias+"["+o+"] = arguments["+o+"]"+r;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,n,a,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,n,a,s),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(t),e.prototype.transpile.call(this,t,n),this.createdDeclarations.length&&s.push(function(e,n,r){var o=n+"var "+i.createdDeclarations.join(", ")+r;t.appendLeft(e,o)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var l=this.body[0];s.length?(t.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),t.prependRight(l.start,"\n"+a+"return "),t.appendLeft(l.end,";\n")):n.arrow&&(t.prependRight(l.start,"{ return "),t.appendLeft(l.end,"; }"))}else s.length&&t.prependRight(this.start,"{").appendLeft(this.end,"}");o=this.body[0],r=o&&"ExpressionStatement"===o.type&&"Literal"===o.expression.type&&"use strict"===o.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var c="\n"+a,u=";";s.forEach(function(e,t){t===s.length-1&&(u=";\n"),e(r,c,u)})},BlockStatement.prototype.transpileParameters=function transpileParameters(e,t,n,r,o){var i=this;e.forEach(function(a){if("AssignmentPattern"===a.type&&"Identifier"===a.left.type)n.defaultParameter&&o.push(function(e,n,r){var o=n+"if ( "+a.left.name+" === void 0 ) "+a.left.name;t.prependRight(a.left.end,o).move(a.left.end,a.right.end,e).appendLeft(a.right.end,r)});else if("RestElement"===a.type)n.spreadRest&&o.push(function(n,o,s){var l=e[e.length-2];if(l)t.remove(l?l.end:a.start,a.end);else{for(var c=a.start,u=a.end;/\s/.test(t.original[c-1]);)c-=1;for(;/\s/.test(t.original[u]);)u+=1;t.remove(c,u)}var p=a.argument.name,d=i.scope.createIdentifier("len"),f=e.length-1;f?t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length - "+f+";\n"+r+"while ( "+d+"-- > 0 ) "+p+"[ "+d+" ] = arguments[ "+d+" + "+f+" ]"+s):t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length;\n"+r+"while ( "+d+"-- ) "+p+"[ "+d+" ] = arguments[ "+d+" ]"+s)});else if("Identifier"!==a.type&&n.parameterDestructuring){var s=i.scope.createIdentifier("ref");destructure(t,function(e){return i.scope.createIdentifier(e)},function(e){var t=e.name;return i.scope.resolveName(t)},a,s,!1,o),t.prependRight(a.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(e){var t=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var r=0,o=t.scope.blockScopedDeclarations[n];r0},ArrowFunctionExpression}(p);function checkConst(e,t){var n=t.findDeclaration(e.name);if(n&&"const"===n.kind)throw new h(e.name+" is read-only",e)}var b=function(e){function AssignmentExpression(){e.apply(this,arguments)}return e&&(AssignmentExpression.__proto__=e),AssignmentExpression.prototype=Object.create(e&&e.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(t){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,t)},AssignmentExpression.prototype.transpile=function transpile(t,n){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(t,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(t,n),e.prototype.transpile.call(this,t,n)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(e){var t=this,n=this.findScope(!0),r=this.findScope(!1),o=n.createDeclaration("assign");e.appendRight(this.left.end,"("+o),e.appendLeft(this.right.end,", ");var i=[];destructure(e,function(e){return n.createDeclaration(e)},function(e){var t=r.resolveName(e.name);return checkConst(e,r),t},this.left,o,!0,i);var a=", ";i.forEach(function(e,n){n===i.length-1&&(a=""),e(t.end,"",a)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+o+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(e){for(var t,n=this.findScope(!1),r=this.left.end;"*"!==e.original[r];)r+=1;e.remove(r,r+2);var o=this.left.unparenthesize();if("Identifier"===o.type)t=n.resolveName(o.name);else if("MemberExpression"===o.type){var i,a,s=!1,l=!1,c=this.findNearest(/(?:Statement|Declaration)$/),u=c.getIndentation();"Identifier"===o.property.type?a=o.computed?n.resolveName(o.property.name):o.property.name:(a=n.createDeclaration("property"),l=!0),"Identifier"===o.object.type?i=n.resolveName(o.object.name):(i=n.createDeclaration("object"),s=!0),o.start===c.start?s&&l?(e.prependRight(c.start,i+" = "),e.overwrite(o.object.end,o.property.start,";\n"+u+a+" = "),e.overwrite(o.property.end,o.end,";\n"+u+i+"["+a+"]")):s?(e.prependRight(c.start,i+" = "),e.appendLeft(o.object.end,";\n"+u),e.appendLeft(o.object.end,i)):l&&(e.prependRight(o.property.start,a+" = "),e.appendLeft(o.property.end,";\n"+u),e.move(o.property.start,o.property.end,this.start),e.appendLeft(o.object.end,"["+a+"]"),e.remove(o.object.end,o.property.start),e.remove(o.property.end,o.end)):(s&&l?(e.prependRight(o.start,"( "+i+" = "),e.overwrite(o.object.end,o.property.start,", "+a+" = "),e.overwrite(o.property.end,o.end,", "+i+"["+a+"]")):s?(e.prependRight(o.start,"( "+i+" = "),e.appendLeft(o.object.end,", "+i)):l&&(e.prependRight(o.property.start,"( "+a+" = "),e.appendLeft(o.property.end,", "),e.move(o.property.start,o.property.end,o.start),e.overwrite(o.object.end,o.property.start,"["+a+"]"),e.remove(o.property.end,o.end)),l&&e.appendLeft(this.end," )")),t=i+(o.computed||l?"["+a+"]":"."+a)}e.prependRight(this.right.start,"Math.pow( "+t+", "),e.appendLeft(this.right.end," )")},AssignmentExpression}(p),w=function(e){function BinaryExpression(){e.apply(this,arguments)}return e&&(BinaryExpression.__proto__=e),BinaryExpression.prototype=Object.create(e&&e.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(t,n){"**"===this.operator&&n.exponentiation&&(t.prependRight(this.start,"Math.pow( "),t.overwrite(this.left.end,this.right.start,", "),t.appendLeft(this.end," )")),e.prototype.transpile.call(this,t,n)},BinaryExpression}(p),k=/(?:For(?:In|Of)?|While)Statement/,x=function(e){function BreakStatement(){e.apply(this,arguments)}return e&&(BreakStatement.__proto__=e),BreakStatement.prototype=Object.create(e&&e.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var e=this.findNearest(k),t=this.findNearest("SwitchCase");e&&(!t||e.depth>t.depth)&&(e.canBreak=!0,this.loop=e)},BreakStatement.prototype.transpile=function transpile(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(p),C=function(e){function CallExpression(){e.apply(this,arguments)}return e&&(CallExpression.__proto__=e),CallExpression.prototype=Object.create(e&&e.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(t){if(t.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),r=this.arguments.length;r--;){var o=this.arguments[r];"SpreadElement"===o.type&&isArguments(o.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}e.prototype.initialise.call(this,t)},CallExpression.prototype.transpile=function transpile(t,n){if(n.spreadRest&&this.arguments.length){var r,o=!1,i=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===i.type&&(t.remove(i.start,i.argument.start),o=!0):o=spread(t,this.arguments,i.start,this.argumentsArrayAlias),o){var a=null;if("Super"===this.callee.type?a=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(a=this.callee.object),a||"MemberExpression"!==this.callee.type)r="void 0";else if("Identifier"===this.callee.object.type)r=this.callee.object.name;else{r=this.findScope(!0).createDeclaration("ref");var s=this.callee.object;t.prependRight(s.start,"("+r+" = "),t.appendLeft(s.end,")")}t.appendLeft(this.callee.end,".apply"),a?(a.noCall=!0,this.arguments.length>1&&("SpreadElement"!==i.type&&t.prependRight(i.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(i.start,r+", "):("SpreadElement"===i.type?t.appendLeft(i.start,r+", "):t.appendLeft(i.start,r+", [ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(t,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,t,n)},CallExpression}(p),S=function(e){function ClassBody(){e.apply(this,arguments)}return e&&(ClassBody.__proto__=e),ClassBody.prototype=Object.create(e&&e.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(t,n,r,o){var i=this;if(n.classes){var a=this.parent.name,s=t.getIndentString(),l=this.getIndentation()+(r?s:""),c=l+s,u=findIndex(this.body,function(e){return"constructor"===e.kind}),p=this.body[u],d="",h="";if(this.body.length?(t.remove(this.start,this.body[0].start),t.remove(this.body[this.body.length-1].end,this.end)):t.remove(this.start,this.end),p){p.value.body.isConstructorBody=!0;var m=this.body[u-1],g=this.body[u+1];u>0&&(t.remove(m.end,p.start),t.move(p.start,g?g.start:this.end-1,this.body[0].start)),r||t.appendLeft(p.end,";")}var v=!1!==this.program.options.namedFunctionExpressions,y=v||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+o+" ) "+a+".__proto__ = "+o+";\n"+l+a+".prototype = Object.create( "+o+" && "+o+".prototype );\n"+l+a+".prototype.constructor = "+a+";";if(p)d+="\n\n"+l+b;else d+=(b="function "+a+" () {"+(o?"\n"+c+o+".apply(this, arguments);\n"+l+"}":"}")+(r?"":";")+(this.body.length?"\n\n"+l:"")+b)+"\n\n"+l}else if(!p){var w="function "+(y?a+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(w+=";"),this.body.length&&(w+="\n\n"+l),d+=w}var k,x,C=this.findScope(!1),S=[],E=[];if(this.body.forEach(function(e,n){if("constructor"!==e.kind){if(e.static){var r=" "==t.original[e.start+6]?7:6;t.remove(e.start,e.start+r)}var o,s="method"!==e.kind,c=e.key.name;(f[c]||e.value.body.scope.references[c])&&(c=C.createIdentifier(c));var p=!1;if(e.computed||"Literal"!==e.key.type||(p=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");t.remove(e.start,e.key.start),e.static?(~E.indexOf(e.key.name)||E.push(e.key.name),x||(x=C.createIdentifier("staticAccessors")),o=""+x):(~S.indexOf(e.key.name)||S.push(e.key.name),k||(k=C.createIdentifier("prototypeAccessors")),o=""+k)}else o=e.static?""+a:a+".prototype";e.computed||(o+="."),(u>0&&n===u+1||0===n&&u===i.body.length-1)&&(o="\n\n"+l+o);var d=e.key.end;if(e.computed)if(p)t.prependRight(e.key.start,"["),t.appendLeft(e.key.end,"]");else{for(;"]"!==t.original[d];)d+=1;d+=1}var h=e.computed||s||!v?"":c+" ",m=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+h;t.remove(d,e.value.start),t.prependRight(e.value.start,m),t.appendLeft(e.end,";"),e.value.generator&&t.remove(e.start,e.key.start),t.prependRight(e.start,o)}else{var g=y?" "+a:"";t.overwrite(e.key.start,e.key.end,"function"+g)}}),S.length||E.length){var _=[],O=[];S.length&&(_.push("var "+k+" = { "+S.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),O.push("Object.defineProperties( "+a+".prototype, "+k+" );")),E.length&&(_.push("var "+x+" = { "+E.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),O.push("Object.defineProperties( "+a+", "+x+" );")),p&&(d+="\n\n"+l),d+=_.join("\n"+l),p||(d+="\n\n"+l),h+="\n\n"+l+O.join("\n"+l)}p?t.appendLeft(p.end,d):t.prependRight(this.start,d),t.appendLeft(this.end,h)}e.prototype.transpile.call(this,t,n)},ClassBody}(p);function deindent(e,t){var n=e.start,r=e.end,o=t.getIndentString(),i=o.length,a=n-i;e.program.indentExclusions[a]||t.original.slice(a,n)!==o||t.remove(a,n);for(var s,l=new RegExp(o+"\\S","g"),c=t.original.slice(n,r);s=l.exec(c);){var u=n+s.index;e.program.indentExclusions[u]||t.remove(u,u+i)}}var E=function(e){function ClassDeclaration(){e.apply(this,arguments)}return e&&(ClassDeclaration.__proto__=e),ClassDeclaration.prototype=Object.create(e&&e.prototype),ClassDeclaration.prototype.constructor=ClassDeclaration,ClassDeclaration.prototype.initialise=function initialise(t){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),e.prototype.initialise.call(this,t)},ClassDeclaration.prototype.transpile=function transpile(e,t){if(t.classes){this.superClass||deindent(this.body,e);var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),o=r+e.getIndentString(),i="ExportDefaultDeclaration"===this.parent.type;i&&e.remove(this.parent.start,this.start);var a=this.start;this.id?(e.overwrite(a,this.id.start,"var "),a=this.id.end):e.prependLeft(a,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(a,this.superClass.start),e.appendLeft(a," = (function ("+n+") {\n"+o)):(e.overwrite(a,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+o)):a===this.body.start?e.appendLeft(a," = "):e.overwrite(a,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,n);var s=i?"\n\n"+r+"export default "+this.name+";":"";this.superClass?(e.appendLeft(this.end,"\n\n"+o+"return "+this.name+";\n"+r+"}("),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"));"+s)):s&&e.prependRight(this.end,s)}else this.body.transpile(e,t,!1,null)},ClassDeclaration}(p),_=function(e){function ClassExpression(){e.apply(this,arguments)}return e&&(ClassExpression.__proto__=e),ClassExpression.prototype=Object.create(e&&e.prototype),ClassExpression.prototype.constructor=ClassExpression,ClassExpression.prototype.initialise=function initialise(t){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),e.prototype.initialise.call(this,t)},ClassExpression.prototype.transpile=function transpile(e,t){if(t.classes){var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),o=r+e.getIndentString();this.superClass?(e.remove(this.start,this.superClass.start),e.remove(this.superClass.end,this.body.start),e.appendLeft(this.start,"(function ("+n+") {\n"+o)):e.overwrite(this.start,this.body.start,"(function () {\n"+o),this.body.transpile(e,t,!0,n);var i="\n\n"+o+"return "+this.name+";\n"+r+"}(";this.superClass?(e.appendLeft(this.end,i),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"))")):e.appendLeft(this.end,"\n\n"+o+"return "+this.name+";\n"+r+"}())")}else this.body.transpile(e,t,!1)},ClassExpression}(p),O=function(e){function ContinueStatement(){e.apply(this,arguments)}return e&&(ContinueStatement.__proto__=e),ContinueStatement.prototype=Object.create(e&&e.prototype),ContinueStatement.prototype.constructor=ContinueStatement,ContinueStatement.prototype.transpile=function transpile(e){if(this.findNearest(k).shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(p),R=function(e){function ExportDefaultDeclaration(){e.apply(this,arguments)}return e&&(ExportDefaultDeclaration.__proto__=e),ExportDefaultDeclaration.prototype=Object.create(e&&e.prototype),ExportDefaultDeclaration.prototype.constructor=ExportDefaultDeclaration,ExportDefaultDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(p),M=function(e){function ExportNamedDeclaration(){e.apply(this,arguments)}return e&&(ExportNamedDeclaration.__proto__=e),ExportNamedDeclaration.prototype=Object.create(e&&e.prototype),ExportNamedDeclaration.prototype.constructor=ExportNamedDeclaration,ExportNamedDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(p),A=function(e){function LoopStatement(){e.apply(this,arguments)}return e&&(LoopStatement.__proto__=e),LoopStatement.prototype=Object.create(e&&e.prototype),LoopStatement.prototype.constructor=LoopStatement,LoopStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},LoopStatement.prototype.initialise=function initialise(t){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),e.prototype.initialise.call(this,t),t.letConst)for(var n=Object.keys(this.body.scope.declarations),r=n.length;r--;){for(var o=n[r],i=this.body.scope.declarations[o],a=i.instances.length;a--;){var s=i.instances[a].findNearest(/Function/);if(s&&s.depth>this.depth){this.shouldRewriteAsFunction=!0;break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(t,n){var r="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var o=this.getIndentation(),i=o+t.getIndentString(),a=this.args?" "+this.args.join(", ")+" ":"",s=this.params?" "+this.params.join(", ")+" ":"",l=this.findScope(!0),c=l.createIdentifier("loop"),u="var "+c+" = function ("+s+") "+(this.body.synthetic?"{\n"+o+t.getIndentString():""),p=(this.body.synthetic?"\n"+o+"}":"")+";\n\n"+o;if(t.prependRight(this.body.start,u),t.appendLeft(this.body.end,p),t.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var d=l.createIdentifier("returned"),f="{\n"+i+"var "+d+" = "+c+"("+a+");\n";this.canBreak&&(f+="\n"+i+"if ( "+d+" === 'break' ) break;"),this.canReturn&&(f+="\n"+i+"if ( "+d+" ) return "+d+".v;"),f+="\n"+o+"}",t.prependRight(this.body.end,f)}else{var h=c+"("+a+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+i+h+"\n"+o+"}"):t.prependRight(this.body.end,h)}}else r&&(t.appendLeft(this.body.start,"{ "),t.prependRight(this.body.end," }"));e.prototype.transpile.call(this,t,n)},LoopStatement}(p),T=function(e){function ForStatement(){e.apply(this,arguments)}return e&&(ForStatement.__proto__=e),ForStatement.prototype=Object.create(e&&e.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForStatement.prototype.transpile=function transpile(t,n){var r=this,o=this.getIndentation()+t.getIndentString();if(this.shouldRewriteAsFunction){var i="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],a=this.aliases;this.args=i.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=i.map(function(e){return e in r.aliases?r.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return a[e].outer+" = "+a[e].inner+";"});if(s.length)if(this.body.synthetic)t.appendLeft(this.body.body[0].end,"; "+s.join(" "));else{var l=this.body.body[this.body.body.length-1];t.appendLeft(l.end,"\n\n"+o+s.join("\n"+o))}}e.prototype.transpile.call(this,t,n)},ForStatement}(A),D=function(e){function ForInStatement(){e.apply(this,arguments)}return e&&(ForInStatement.__proto__=e),ForInStatement.prototype=Object.create(e&&e.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForInStatement.prototype.transpile=function transpile(t,n){var r=this,o="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var i=o?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=i.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=i.map(function(e){return e in r.aliases?r.aliases[e].inner:e})}e.prototype.transpile.call(this,t,n);var a=o?this.left.declarations[0].id:this.left;"Identifier"!==a.type&&this.destructurePattern(t,a,o)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,n){var r=this.findScope(!0),o=this.getIndentation()+e.getIndentString(),i=r.createIdentifier("ref"),a=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,a),e.prependRight(t.end,n?i:"var "+i);var s=[];destructure(e,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},t,i,!1,s);var l=";\n"+o;s.forEach(function(e,t){t===s.length-1&&(l=";\n\n"+o),e(a,"",l)})},ForInStatement}(A),P=function(e){function ForOfStatement(){e.apply(this,arguments)}return e&&(ForOfStatement.__proto__=e),ForOfStatement.prototype=Object.create(e&&e.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(t){if(t.forOf&&!t.dangerousForOf)throw new h("for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing",this);e.prototype.initialise.call(this,t)},ForOfStatement.prototype.transpile=function transpile(t,n){if(e.prototype.transpile.call(this,t,n),n.dangerousForOf)if(this.body.body[0]){var r=this.findScope(!0),o=this.getIndentation(),i=o+t.getIndentString(),a=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+i),t.appendLeft(this.body.body[0].end,"\n"+o+"}"));var l=this.body.body[0].start;t.remove(this.left.end,this.right.start),t.move(this.left.start,this.left.end,l),t.prependRight(this.right.start,"var "+a+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+a+" < "+s+".length; "+a+" += 1");var c="VariableDeclaration"===this.left.type,u=c?this.left.declarations[0].id:this.left;if("Identifier"!==u.type){var p=[],d=r.createIdentifier("ref");destructure(t,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},u,d,!c,p);var f=";\n"+i;p.forEach(function(e,t){t===p.length-1&&(f=";\n\n"+i),e(l,"",f)}),c?(t.appendLeft(this.left.start+this.left.kind.length+1,d),t.appendLeft(this.left.end," = "+s+"["+a+"];\n"+i)):t.appendLeft(this.left.end,"var "+d+" = "+s+"["+a+"];\n"+i)}else t.appendLeft(this.left.end," = "+s+"["+a+"];\n\n"+i)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(t.remove(this.start,this.left.start),t.appendLeft(this.left.end,";"),t.remove(this.left.end,this.end)):t.remove(this.start,this.end)},ForOfStatement}(A),L=function(e){function FunctionDeclaration(){e.apply(this,arguments)}return e&&(FunctionDeclaration.__proto__=e),FunctionDeclaration.prototype=Object.create(e&&e.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t)},FunctionDeclaration.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n),n.trailingFunctionCommas&&this.params.length&&removeTrailingComma(t,this.params[this.params.length-1].end)},FunctionDeclaration}(p),N=function(e){function FunctionExpression(){e.apply(this,arguments)}return e&&(FunctionExpression.__proto__=e),FunctionExpression.prototype=Object.create(e&&e.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t);var n,r=this.parent;if(t.conciseMethodProperty&&"Property"===r.type&&"init"===r.kind&&r.method&&"Identifier"===r.key.type?n=r.key.name:t.classes&&"MethodDefinition"===r.type&&"method"===r.kind&&"Identifier"===r.key.type?n=r.key.name:this.id&&"Identifier"===this.id.type&&(n=this.id.alias||this.id.name),n)for(var o=0,i=this.params;ot.depth&&(this.alias=t.getArgumentsAlias()),r&&r.body.contains(this)&&r.depth>t.depth&&(this.alias=t.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.transpile=function transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(p),j=function(e){function IfStatement(){e.apply(this,arguments)}return e&&(IfStatement.__proto__=e),IfStatement.prototype=Object.create(e&&e.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(t){e.prototype.initialise.call(this,t)},IfStatement.prototype.transpile=function transpile(t,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(t.appendLeft(this.consequent.start,"{ "),t.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(t.appendLeft(this.alternate.start,"{ "),t.prependRight(this.alternate.end," }")),e.prototype.transpile.call(this,t,n)},IfStatement}(p),I=function(e){function ImportDeclaration(){e.apply(this,arguments)}return e&&(ImportDeclaration.__proto__=e),ImportDeclaration.prototype=Object.create(e&&e.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(t){if(t.moduleImport)throw new h("import is not supported",this);e.prototype.initialise.call(this,t)},ImportDeclaration}(p),B=function(e){function ImportDefaultSpecifier(){e.apply(this,arguments)}return e&&(ImportDefaultSpecifier.__proto__=e),ImportDefaultSpecifier.prototype=Object.create(e&&e.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportDefaultSpecifier}(p),q=function(e){function ImportSpecifier(){e.apply(this,arguments)}return e&&(ImportSpecifier.__proto__=e),ImportSpecifier.prototype=Object.create(e&&e.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportSpecifier}(p),z=function(e){function JSXAttribute(){e.apply(this,arguments)}return e&&(JSXAttribute.__proto__=e),JSXAttribute.prototype=Object.create(e&&e.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(t,n){var r,o=this.name,i=o.start,a=o.name,s=this.value?this.value.start:this.name.end;t.overwrite(i,s,(/-/.test(r=a)?"'"+r+"'":r)+": "+(this.value?"":"true")),e.prototype.transpile.call(this,t,n)},JSXAttribute}(p);var U=function(e){function JSXClosingElement(){e.apply(this,arguments)}return e&&(JSXClosingElement.__proto__=e),JSXClosingElement.prototype=Object.create(e&&e.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];(r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))||this.parent.openingElement.attributes.length)&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingElement}(p);var V=function(e){function JSXClosingFragment(){e.apply(this,arguments)}return e&&(JSXClosingFragment.__proto__=e),JSXClosingFragment.prototype=Object.create(e&&e.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingFragment}(p);function normalise(e,t){return e=e.replace(/\u00a0/g," "),t&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}var W=function(e){function JSXElement(){e.apply(this,arguments)}return e&&(JSXElement.__proto__=e),JSXElement.prototype=Object.create(e&&e.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n);var r=this.children.filter(function(e){return"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))});if(r.length){var o,i=this.openingElement.end;for(o=0;o0&&(u.start===i?t.prependRight(i,", "):t.overwrite(i,u.start,", ")),c&&"JSXSpreadAttribute"!==u.type){var p=this.attributes[a-1],d=this.attributes[a+1];p&&"JSXSpreadAttribute"!==p.type||t.prependRight(u.start,"{ "),d&&"JSXSpreadAttribute"!==d.type||t.appendLeft(u.end," }")}i=u.end}if(c)if(1===o)l=r?"',":",";else{if(!this.program.options.objectAssign)throw new h("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);l=r?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",s=")"}else l=r?"', {":", {",s=" }";t.prependRight(this.name.end,l),s&&t.appendLeft(this.attributes[o-1].end,s)}else t.appendLeft(this.name.end,r?"', null":", null"),i=this.name.end;this.selfClosing?t.overwrite(i,this.end,this.attributes.length?")":" )"):t.remove(i,this.end)},JSXOpeningElement}(p),J=function(e){function JSXOpeningFragment(){e.apply(this,arguments)}return e&&(JSXOpeningFragment.__proto__=e),JSXOpeningFragment.prototype=Object.create(e&&e.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(e){e.overwrite(this.start,this.end,this.program.jsx+"( React.Fragment, null")},JSXOpeningFragment}(p),G=function(e){function JSXSpreadAttribute(){e.apply(this,arguments)}return e&&(JSXSpreadAttribute.__proto__=e),JSXSpreadAttribute.prototype=Object.create(e&&e.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(t,n){t.remove(this.start,this.argument.start),t.remove(this.argument.end,this.end),e.prototype.transpile.call(this,t,n)},JSXSpreadAttribute}(p),X=createCommonjsModule(function(e,t){ +/*! + * regjsgen 0.3.0 + * Copyright 2014-2016 Benjamin Tan + * Available under MIT license + */ +(function(){var n={function:!0,object:!0},r=n[typeof window]&&window||this,o=n.object&&t,i=n.object&&e&&!e.nodeType&&e,a=o&&i&&"object"==typeof l&&l;!a||a.global!==a&&a.window!==a&&a.self!==a||(r=a);var s=Object.prototype.hasOwnProperty,c=String.fromCharCode,u=Math.floor;function fromCodePoint(){var e,t,n=[],r=-1,o=arguments.length;if(!o)return"";for(var i="";++r1114111||u(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(r+1==o||n.length>16384)&&(i+=c.apply(null,n),n.length=0)}return i}var p={};function assertType(e,t){if(-1==t.indexOf("|")){if(e==t)return;throw Error("Invalid node type: "+e+"; expected type: "+t)}if(!(t=s.call(p,t)?p[t]:p[t]=RegExp("^(?:"+t+")$")).test(e))throw Error("Invalid node type: "+e+"; expected types: "+t)}function generate(e){var t=e.type;if(s.call(d,t))return d[t](e);throw Error("Invalid node type: "+t)}function generateAtom(e){return assertType(e.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value"),generate(e)}function generateClassAtom(e){return assertType(e.type,"anchor|characterClassEscape|characterClassRange|dot|value"),generate(e)}function generateTerm(e){return assertType(e.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value"),generate(e)}var d={alternative:function generateAlternative(e){assertType(e.type,"alternative");for(var t=e.body,n=-1,r=t.length,o="";++n=55296&&r<=56319&&(t=lookahead().charCodeAt(0))>=56320&&t<=57343?createValue("symbol",1024*(r-55296)+t-56320+65536,++s-2,s):createValue("symbol",r,s-1,s)}function createDisjunction(e,t,n){return addRaw({type:"disjunction",body:e,range:[t,n]})}function createGroup(e,t,n,r){return addRaw({type:"group",behavior:e,body:t,range:[n,r]})}function createQuantifier(e,t,n,r){return null==r&&(n=s-1,r=s),addRaw({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[n,r]})}function createAlternative(e,t,n){return addRaw({type:"alternative",body:e,range:[t,n]})}function createCharacterClass(e,t,n,r){return addRaw({type:"characterClass",body:e,negative:t,range:[n,r]})}function createClassRange(e,t,n,r){return e.codePoint>t.codePoint&&bail("invalid range in character class",e.raw+"-"+t.raw,n,r),addRaw({type:"characterClassRange",min:e,max:t,range:[n,r]})}function flattenBody(e){return"alternative"===e.type?e.body:[e]}function incr(t){t=t||1;var n=e.substring(s,s+t);return s+=t||1,n}function skip(e){match(e)||bail("character",e)}function match(t){if(e.indexOf(t,s)===s)return incr(t.length)}function lookahead(){return e[s]}function current(t){return e.indexOf(t,s)===s}function next(t){return e[s+1]===t}function matchReg(t){var n=e.substring(s).match(t);return n&&(n.range=[],n.range[0]=s,incr(n[0].length),n.range[1]=s),n}function parseDisjunction(){var e=[],t=s;for(e.push(parseAlternative());match("|");)e.push(parseAlternative());return 1===e.length?e[0]:createDisjunction(e,t,s)}function parseAlternative(){for(var e,t=[],n=s;e=parseTerm();)t.push(e);return 1===t.length?t[0]:createAlternative(t,n,s)}function parseTerm(){if(s>=e.length||current("|")||current(")"))return null;var t=match("^")?createAnchor("start",1):match("$")?createAnchor("end",1):match("\\b")?createAnchor("boundary",2):match("\\B")?createAnchor("not-boundary",2):parseGroup("(?=","lookahead","(?!","negativeLookahead");if(t)return t;var n,r=(n=matchReg(/^[^^$\\.*+?(){[|]/))?createCharacter(n):match(".")?addRaw({type:"dot",range:[s-1,s]}):match("\\")?((n=parseAtomEscape())||bail("atomEscape"),n):(n=parseCharacterClass())?n:parseGroup("(?:","ignore","(","normal");r||bail("Expected atom");var o=parseQuantifier()||!1;return o?(o.body=flattenBody(r),updateRawStart(o,r.range[0]),o):r}function parseGroup(e,t,n,r){var a=null,l=s;if(match(e))a=t;else{if(!match(n))return!1;a=r}var c=parseDisjunction();c||bail("Expected disjunction"),skip(")");var u=createGroup(a,flattenBody(c),l,s);return"normal"==a&&i&&o++,u}function parseQuantifier(){var e,t,n,r,o=s;return match("*")?t=createQuantifier(0):match("+")?t=createQuantifier(1):match("?")?t=createQuantifier(0,1):(e=matchReg(/^\{([0-9]+)\}/))?t=createQuantifier(n=parseInt(e[1],10),n,e.range[0],e.range[1]):(e=matchReg(/^\{([0-9]+),\}/))?t=createQuantifier(n=parseInt(e[1],10),void 0,e.range[0],e.range[1]):(e=matchReg(/^\{([0-9]+),([0-9]+)\}/))&&((n=parseInt(e[1],10))>(r=parseInt(e[2],10))&&bail("numbers out of order in {} quantifier","",o,s),t=createQuantifier(n,r,e.range[0],e.range[1])),t&&match("?")&&(t.greedy=!1,t.range[1]+=1),t}function parseUnicodeSurrogatePairEscape(e){var t,n;if(a&&"unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&¤t("\\")&&next("u")){var r=s;s++;var o=parseClassEscape();"unicodeEscape"==o.kind&&(n=o.codePoint)>=56320&&n<=57343?(e.range[1]=o.range[1],e.codePoint=1024*(t-55296)+n-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",addRaw(e)):s=r}return e}function parseClassEscape(){return parseAtomEscape(!0)}function parseAtomEscape(e){var t,n=s;if(t=parseDecimalEscape())return t;if(e){if(match("b"))return createEscaped("singleEscape",8,"\\b");match("B")&&bail("\\B not possible inside of CharacterClass","",n)}return t=parseCharacterEscape()}function parseDecimalEscape(){var e,t,n;if(e=matchReg(/^(?!0)\d+/)){t=e[0];var i=parseInt(e[0],10);return i<=o?(n=e[0],addRaw({type:"reference",matchIndex:parseInt(n,10),range:[s-1-n.length,s]})):(r.push(i),incr(-e[0].length),(e=matchReg(/^[0-7]{1,3}/))?createEscaped("octal",parseInt(e[0],8),e[0],1):updateRawStart(e=createCharacter(matchReg(/^[89]/)),e.range[0]-1))}return(e=matchReg(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?createEscaped("null",0,"0",t.length+1):createEscaped("octal",parseInt(t,8),t,1)):!!(e=matchReg(/^[dDsSwW]/))&&addRaw({type:"characterClassEscape",value:e[0],range:[s-2,s]})}function parseCharacterEscape(){var e,t,r,o;if(e=matchReg(/^[fnrtv]/)){var i=0;switch(e[0]){case"t":i=9;break;case"n":i=10;break;case"v":i=11;break;case"f":i=12;break;case"r":i=13}return createEscaped("singleEscape",i,"\\"+e[0])}return(e=matchReg(/^c([a-zA-Z])/))?createEscaped("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=matchReg(/^x([0-9a-fA-F]{2})/))?createEscaped("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=matchReg(/^u([0-9a-fA-F]{4})/))?parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(e[1],16),e[1],2)):a&&(e=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):n.unicodePropertyEscape&&a&&(e=matchReg(/^([pP])\{([^\}]+)\}/))?addRaw({type:"unicodePropertyEscape",negative:"P"===e[1],value:e[2],range:[e.range[0]-1,e.range[1]],raw:e[0]}):(r=lookahead(),o=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),36===r||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||92===r||r>=128&&o.test(String.fromCharCode(r))?match("‌")?createEscaped("identifier",8204,"‌"):match("‍")?createEscaped("identifier",8205,"‍"):null:createEscaped("identifier",(t=incr()).charCodeAt(0),t,1))}function parseCharacterClass(){var e,t=s;return(e=matchReg(/^\[\^/))?(e=parseClassRanges(),skip("]"),createCharacterClass(e,!0,t,s)):match("[")?(e=parseClassRanges(),skip("]"),createCharacterClass(e,!1,t,s)):null}function parseClassRanges(){var e,t;return current("]")?[]:((t=parseClassAtom())||bail("classAtom"),(e=current("]")?[t]:parseHelperClassRanges(t))||bail("nonEmptyClassRanges"),e)}function parseHelperClassRanges(e){var t,n,r;if(current("-")&&!next("]")){skip("-"),(r=parseClassAtom())||bail("classAtom"),n=s;var o=parseClassRanges();return o||bail("classRanges"),t=e.range[0],"empty"===o.type?[createClassRange(e,r,t,n)]:[createClassRange(e,r,t,n)].concat(o)}return(r=parseNonemptyClassRangesNoDash())||bail("nonEmptyClassRangesNoDash"),[e].concat(r)}function parseNonemptyClassRangesNoDash(){var e=parseClassAtom();return e||bail("classAtom"),current("]")?e:parseHelperClassRanges(e)}function parseClassAtom(){return match("-")?createCharacter("-"):(e=matchReg(/^[^\\\]-]/))?createCharacter(e[0]):match("\\")?((e=parseClassEscape())||bail("classEscape"),parseUnicodeSurrogatePairEscape(e)):void 0;var e}function bail(t,n,r,o){r=null==r?s:r,o=null==o?r:o;var i=Math.max(0,r-10),a=Math.min(o+10,e.length),l=" "+e.substring(i,a),c=" "+new Array(r-i+1).join(" ")+"^";throw SyntaxError(t+" at position "+r+(n?": "+n:"")+"\n"+l+"\n"+c)}n||(n={});var r=[],o=0,i=!0,a=-1!==(t||"").indexOf("u"),s=0;""===(e=String(e))&&(e="(?:)");var l=parseDisjunction();l.range[1]!==e.length&&bail("Could not parse entire input - got stuck","",l.range[1]);for(var c=0;c=n&&tn)return e;if(t<=r&&n>=o)e.splice(i,2);else{if(t>=r&&n=r&&t<=o)e[i+1]=t;else if(n>=r&&n<=o)return e[i]=n+1,e;i+=2}}return e},x=function(e,t){var n,r,o=0,i=null,a=e.length;if(t<0||t>1114111)throw RangeError(s);for(;o=n&&tt)return e.splice(null!=i?i+2:0,0,t,t+1),e;if(t==r)return t+1==e[o+2]?(e.splice(o,4,n,e[o+3]),e):(e[o+1]=t+1,e);i=o,o+=2}return e.push(t,t+1),e},C=function(e,t){for(var n,r,o=0,i=e.slice(),a=t.length;o1114111||n<0||n>1114111)throw RangeError(s);for(var r,o,i=0,l=!1,c=e.length;in)return e;r>=t&&r<=n&&(o>t&&o-1<=n?(e.splice(i,2),i-=2):(e.splice(i-1,2),i-=2))}else{if(r==n+1)return e[i]=t,e;if(r>n)return e.splice(i,0,t,n+1),e;if(t>=r&&t=r&&t=o&&(e[i]=t,e[i+1]=n+1,l=!0)}i+=2}return l||e.push(t,n+1),e},_=function(e,t){var n=0,r=e.length,o=e[n],i=e[r-1];if(r>=2&&(ti))return!1;for(;n=o&&t=40&&e<=43||e>=45&&e<=47||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+L(e):e>=32&&e<=126?L(e):e<=255?"\\x"+g(v(e),2):"\\u"+g(v(e),4)},F=function(e){return e<=65535?N(e):"\\u{"+e.toString(16).toUpperCase()+"}"},j=function(e){var t=e.length,n=e.charCodeAt(0);return n>=55296&&n<=56319&&t>1?1024*(n-55296)+e.charCodeAt(1)-56320+65536:n},I=function(e){var t,n,r="",o=0,i=e.length;if(M(e))return N(e[0]);for(;o=55296&&n<=56319&&(i.push(t,55296),r.push(55296,n+1)),n>=56320&&n<=57343&&(i.push(t,55296),r.push(55296,56320),o.push(56320,n+1)),n>57343&&(i.push(t,55296),r.push(55296,56320),o.push(56320,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),a.push(65536,n+1)))):t>=55296&&t<=56319?(n>=55296&&n<=56319&&r.push(t,n+1),n>=56320&&n<=57343&&(r.push(t,56320),o.push(56320,n+1)),n>57343&&(r.push(t,56320),o.push(56320,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),a.push(65536,n+1)))):t>=56320&&t<=57343?(n>=56320&&n<=57343&&o.push(t,n+1),n>57343&&(o.push(t,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),a.push(65536,n+1)))):t>57343&&t<=65535?n<=65535?i.push(t,n+1):(i.push(t,65536),a.push(65536,n+1)):a.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:o,bmp:i,astral:a}},z=function(e){for(var t,n,r,o,i,a,s=[],l=[],c=!1,u=-1,p=e.length;++u1&&(e=y.call(arguments)),this instanceof $?(this.data=[],e?this.add(e):this):(new $).add(e)};$.version="1.3.3";var K=$.prototype;!function(e,t){var n;for(n in t)p.call(t,n)&&(e[n]=t[n])}(K,{add:function(e){var t=this;return null==e?t:e instanceof $?(t.data=C(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),h(e)?(d(e,function(e){t.add(e)}),t):(t.data=x(t.data,m(e)?e:j(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof $?(t.data=S(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),h(e)?(d(e,function(e){t.remove(e)}),t):(t.data=w(t.data,m(e)?e:j(e)),t))},addRange:function(e,t){return this.data=E(this.data,m(e)?e:j(e),m(t)?t:j(t)),this},removeRange:function(e,t){var n=m(e)?e:j(e),r=m(t)?t:j(t);return this.data=k(this.data,n,r),this},intersection:function(e){var t=e instanceof $?A(e.data):e;return this.data=O(this.data,t),this},contains:function(e){return _(this.data,m(e)?e:j(e))},clone:function(){var e=new $;return e.data=this.data.slice(0),e},toString:function(e){var t=H(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(c,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&-1!=e.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")},valueOf:function(){return A(this.data)}}),K.toArray=K.valueOf,r&&!r.nodeType?o?o.exports=$:r.regenerate=$:n.regenerate=$}(l)}),Q=new Set(["General_Category","Script","Script_Extensions","Alphabetic","Any","ASCII","ASCII_Hex_Digit","Assigned","Bidi_Control","Bidi_Mirrored","Case_Ignorable","Cased","Changes_When_Casefolded","Changes_When_Casemapped","Changes_When_Lowercased","Changes_When_NFKC_Casefolded","Changes_When_Titlecased","Changes_When_Uppercased","Dash","Default_Ignorable_Code_Point","Deprecated","Diacritic","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Grapheme_Base","Grapheme_Extend","Hex_Digit","ID_Continue","ID_Start","Ideographic","IDS_Binary_Operator","IDS_Trinary_Operator","Join_Control","Logical_Order_Exception","Lowercase","Math","Noncharacter_Code_Point","Pattern_Syntax","Pattern_White_Space","Quotation_Mark","Radical","Regional_Indicator","Sentence_Terminal","Soft_Dotted","Terminal_Punctuation","Unified_Ideograph","Uppercase","Variation_Selector","White_Space","XID_Continue","XID_Start"]),ee=new Map([["scx","Script_Extensions"],["sc","Script"],["gc","General_Category"],["AHex","ASCII_Hex_Digit"],["Alpha","Alphabetic"],["Bidi_C","Bidi_Control"],["Bidi_M","Bidi_Mirrored"],["Cased","Cased"],["CI","Case_Ignorable"],["CWCF","Changes_When_Casefolded"],["CWCM","Changes_When_Casemapped"],["CWKCF","Changes_When_NFKC_Casefolded"],["CWL","Changes_When_Lowercased"],["CWT","Changes_When_Titlecased"],["CWU","Changes_When_Uppercased"],["Dash","Dash"],["Dep","Deprecated"],["DI","Default_Ignorable_Code_Point"],["Dia","Diacritic"],["Ext","Extender"],["Gr_Base","Grapheme_Base"],["Gr_Ext","Grapheme_Extend"],["Hex","Hex_Digit"],["IDC","ID_Continue"],["Ideo","Ideographic"],["IDS","ID_Start"],["IDSB","IDS_Binary_Operator"],["IDST","IDS_Trinary_Operator"],["Join_C","Join_Control"],["LOE","Logical_Order_Exception"],["Lower","Lowercase"],["Math","Math"],["NChar","Noncharacter_Code_Point"],["Pat_Syn","Pattern_Syntax"],["Pat_WS","Pattern_White_Space"],["QMark","Quotation_Mark"],["Radical","Radical"],["RI","Regional_Indicator"],["SD","Soft_Dotted"],["STerm","Sentence_Terminal"],["Term","Terminal_Punctuation"],["UIdeo","Unified_Ideograph"],["Upper","Uppercase"],["VS","Variation_Selector"],["WSpace","White_Space"],["space","White_Space"],["XIDC","XID_Continue"],["XIDS","XID_Start"]]),te=function(e){if(Q.has(e))return e;if(ee.has(e))return ee.get(e);throw new Error("Unknown property: "+e)},ne=new Map([["General_Category",new Map([["C","Other"],["Cc","Control"],["cntrl","Control"],["Cf","Format"],["Cn","Unassigned"],["Co","Private_Use"],["Cs","Surrogate"],["L","Letter"],["LC","Cased_Letter"],["Ll","Lowercase_Letter"],["Lm","Modifier_Letter"],["Lo","Other_Letter"],["Lt","Titlecase_Letter"],["Lu","Uppercase_Letter"],["M","Mark"],["Combining_Mark","Mark"],["Mc","Spacing_Mark"],["Me","Enclosing_Mark"],["Mn","Nonspacing_Mark"],["N","Number"],["Nd","Decimal_Number"],["digit","Decimal_Number"],["Nl","Letter_Number"],["No","Other_Number"],["P","Punctuation"],["punct","Punctuation"],["Pc","Connector_Punctuation"],["Pd","Dash_Punctuation"],["Pe","Close_Punctuation"],["Pf","Final_Punctuation"],["Pi","Initial_Punctuation"],["Po","Other_Punctuation"],["Ps","Open_Punctuation"],["S","Symbol"],["Sc","Currency_Symbol"],["Sk","Modifier_Symbol"],["Sm","Math_Symbol"],["So","Other_Symbol"],["Z","Separator"],["Zl","Line_Separator"],["Zp","Paragraph_Separator"],["Zs","Space_Separator"],["Other","Other"],["Control","Control"],["Format","Format"],["Unassigned","Unassigned"],["Private_Use","Private_Use"],["Surrogate","Surrogate"],["Letter","Letter"],["Cased_Letter","Cased_Letter"],["Lowercase_Letter","Lowercase_Letter"],["Modifier_Letter","Modifier_Letter"],["Other_Letter","Other_Letter"],["Titlecase_Letter","Titlecase_Letter"],["Uppercase_Letter","Uppercase_Letter"],["Mark","Mark"],["Spacing_Mark","Spacing_Mark"],["Enclosing_Mark","Enclosing_Mark"],["Nonspacing_Mark","Nonspacing_Mark"],["Number","Number"],["Decimal_Number","Decimal_Number"],["Letter_Number","Letter_Number"],["Other_Number","Other_Number"],["Punctuation","Punctuation"],["Connector_Punctuation","Connector_Punctuation"],["Dash_Punctuation","Dash_Punctuation"],["Close_Punctuation","Close_Punctuation"],["Final_Punctuation","Final_Punctuation"],["Initial_Punctuation","Initial_Punctuation"],["Other_Punctuation","Other_Punctuation"],["Open_Punctuation","Open_Punctuation"],["Symbol","Symbol"],["Currency_Symbol","Currency_Symbol"],["Modifier_Symbol","Modifier_Symbol"],["Math_Symbol","Math_Symbol"],["Other_Symbol","Other_Symbol"],["Separator","Separator"],["Line_Separator","Line_Separator"],["Paragraph_Separator","Paragraph_Separator"],["Space_Separator","Space_Separator"]])],["Script",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])],["Script_Extensions",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])]]),re=function(e,t){var n=ne.get(e);if(!n)throw new Error("Unknown property `"+e+"`.");var r=n.get(t);if(r)return r;throw new Error("Unknown value `"+t+"` for property `"+e+"`.")},oe=new Map([[75,8490],[83,383],[107,8490],[115,383],[181,924],[197,8491],[223,7838],[229,8491],[383,83],[452,453],[453,452],[455,456],[456,455],[458,459],[459,458],[497,498],[498,497],[618,42926],[669,42930],[837,8126],[914,976],[917,1013],[920,1012],[921,8126],[922,1008],[924,181],[928,982],[929,1009],[931,962],[934,981],[937,8486],[952,1012],[962,931],[969,8486],[976,914],[977,1012],[981,934],[982,928],[1008,922],[1009,929],[1012,[920,977,952]],[1013,917],[1042,7296],[1044,7297],[1054,7298],[1057,7299],[1058,7301],[1066,7302],[1074,7296],[1076,7297],[1086,7298],[1089,7299],[1090,[7300,7301]],[1098,7302],[1122,7303],[1123,7303],[5024,43888],[5025,43889],[5026,43890],[5027,43891],[5028,43892],[5029,43893],[5030,43894],[5031,43895],[5032,43896],[5033,43897],[5034,43898],[5035,43899],[5036,43900],[5037,43901],[5038,43902],[5039,43903],[5040,43904],[5041,43905],[5042,43906],[5043,43907],[5044,43908],[5045,43909],[5046,43910],[5047,43911],[5048,43912],[5049,43913],[5050,43914],[5051,43915],[5052,43916],[5053,43917],[5054,43918],[5055,43919],[5056,43920],[5057,43921],[5058,43922],[5059,43923],[5060,43924],[5061,43925],[5062,43926],[5063,43927],[5064,43928],[5065,43929],[5066,43930],[5067,43931],[5068,43932],[5069,43933],[5070,43934],[5071,43935],[5072,43936],[5073,43937],[5074,43938],[5075,43939],[5076,43940],[5077,43941],[5078,43942],[5079,43943],[5080,43944],[5081,43945],[5082,43946],[5083,43947],[5084,43948],[5085,43949],[5086,43950],[5087,43951],[5088,43952],[5089,43953],[5090,43954],[5091,43955],[5092,43956],[5093,43957],[5094,43958],[5095,43959],[5096,43960],[5097,43961],[5098,43962],[5099,43963],[5100,43964],[5101,43965],[5102,43966],[5103,43967],[5104,5112],[5105,5113],[5106,5114],[5107,5115],[5108,5116],[5109,5117],[5112,5104],[5113,5105],[5114,5106],[5115,5107],[5116,5108],[5117,5109],[7296,[1042,1074]],[7297,[1044,1076]],[7298,[1054,1086]],[7299,[1057,1089]],[7300,[7301,1090]],[7301,[1058,7300,1090]],[7302,[1066,1098]],[7303,[1122,1123]],[7304,[42570,42571]],[7776,7835],[7835,7776],[7838,223],[8064,8072],[8065,8073],[8066,8074],[8067,8075],[8068,8076],[8069,8077],[8070,8078],[8071,8079],[8072,8064],[8073,8065],[8074,8066],[8075,8067],[8076,8068],[8077,8069],[8078,8070],[8079,8071],[8080,8088],[8081,8089],[8082,8090],[8083,8091],[8084,8092],[8085,8093],[8086,8094],[8087,8095],[8088,8080],[8089,8081],[8090,8082],[8091,8083],[8092,8084],[8093,8085],[8094,8086],[8095,8087],[8096,8104],[8097,8105],[8098,8106],[8099,8107],[8100,8108],[8101,8109],[8102,8110],[8103,8111],[8104,8096],[8105,8097],[8106,8098],[8107,8099],[8108,8100],[8109,8101],[8110,8102],[8111,8103],[8115,8124],[8124,8115],[8126,[837,921]],[8131,8140],[8140,8131],[8179,8188],[8188,8179],[8486,[937,969]],[8490,75],[8491,[197,229]],[42570,7304],[42571,7304],[42926,618],[42930,669],[42931,43859],[42932,42933],[42933,42932],[42934,42935],[42935,42934],[43859,42931],[43888,5024],[43889,5025],[43890,5026],[43891,5027],[43892,5028],[43893,5029],[43894,5030],[43895,5031],[43896,5032],[43897,5033],[43898,5034],[43899,5035],[43900,5036],[43901,5037],[43902,5038],[43903,5039],[43904,5040],[43905,5041],[43906,5042],[43907,5043],[43908,5044],[43909,5045],[43910,5046],[43911,5047],[43912,5048],[43913,5049],[43914,5050],[43915,5051],[43916,5052],[43917,5053],[43918,5054],[43919,5055],[43920,5056],[43921,5057],[43922,5058],[43923,5059],[43924,5060],[43925,5061],[43926,5062],[43927,5063],[43928,5064],[43929,5065],[43930,5066],[43931,5067],[43932,5068],[43933,5069],[43934,5070],[43935,5071],[43936,5072],[43937,5073],[43938,5074],[43939,5075],[43940,5076],[43941,5077],[43942,5078],[43943,5079],[43944,5080],[43945,5081],[43946,5082],[43947,5083],[43948,5084],[43949,5085],[43950,5086],[43951,5087],[43952,5088],[43953,5089],[43954,5090],[43955,5091],[43956,5092],[43957,5093],[43958,5094],[43959,5095],[43960,5096],[43961,5097],[43962,5098],[43963,5099],[43964,5100],[43965,5101],[43966,5102],[43967,5103],[66560,66600],[66561,66601],[66562,66602],[66563,66603],[66564,66604],[66565,66605],[66566,66606],[66567,66607],[66568,66608],[66569,66609],[66570,66610],[66571,66611],[66572,66612],[66573,66613],[66574,66614],[66575,66615],[66576,66616],[66577,66617],[66578,66618],[66579,66619],[66580,66620],[66581,66621],[66582,66622],[66583,66623],[66584,66624],[66585,66625],[66586,66626],[66587,66627],[66588,66628],[66589,66629],[66590,66630],[66591,66631],[66592,66632],[66593,66633],[66594,66634],[66595,66635],[66596,66636],[66597,66637],[66598,66638],[66599,66639],[66600,66560],[66601,66561],[66602,66562],[66603,66563],[66604,66564],[66605,66565],[66606,66566],[66607,66567],[66608,66568],[66609,66569],[66610,66570],[66611,66571],[66612,66572],[66613,66573],[66614,66574],[66615,66575],[66616,66576],[66617,66577],[66618,66578],[66619,66579],[66620,66580],[66621,66581],[66622,66582],[66623,66583],[66624,66584],[66625,66585],[66626,66586],[66627,66587],[66628,66588],[66629,66589],[66630,66590],[66631,66591],[66632,66592],[66633,66593],[66634,66594],[66635,66595],[66636,66596],[66637,66597],[66638,66598],[66639,66599],[66736,66776],[66737,66777],[66738,66778],[66739,66779],[66740,66780],[66741,66781],[66742,66782],[66743,66783],[66744,66784],[66745,66785],[66746,66786],[66747,66787],[66748,66788],[66749,66789],[66750,66790],[66751,66791],[66752,66792],[66753,66793],[66754,66794],[66755,66795],[66756,66796],[66757,66797],[66758,66798],[66759,66799],[66760,66800],[66761,66801],[66762,66802],[66763,66803],[66764,66804],[66765,66805],[66766,66806],[66767,66807],[66768,66808],[66769,66809],[66770,66810],[66771,66811],[66776,66736],[66777,66737],[66778,66738],[66779,66739],[66780,66740],[66781,66741],[66782,66742],[66783,66743],[66784,66744],[66785,66745],[66786,66746],[66787,66747],[66788,66748],[66789,66749],[66790,66750],[66791,66751],[66792,66752],[66793,66753],[66794,66754],[66795,66755],[66796,66756],[66797,66757],[66798,66758],[66799,66759],[66800,66760],[66801,66761],[66802,66762],[66803,66763],[66804,66764],[66805,66765],[66806,66766],[66807,66767],[66808,66768],[66809,66769],[66810,66770],[66811,66771],[68736,68800],[68737,68801],[68738,68802],[68739,68803],[68740,68804],[68741,68805],[68742,68806],[68743,68807],[68744,68808],[68745,68809],[68746,68810],[68747,68811],[68748,68812],[68749,68813],[68750,68814],[68751,68815],[68752,68816],[68753,68817],[68754,68818],[68755,68819],[68756,68820],[68757,68821],[68758,68822],[68759,68823],[68760,68824],[68761,68825],[68762,68826],[68763,68827],[68764,68828],[68765,68829],[68766,68830],[68767,68831],[68768,68832],[68769,68833],[68770,68834],[68771,68835],[68772,68836],[68773,68837],[68774,68838],[68775,68839],[68776,68840],[68777,68841],[68778,68842],[68779,68843],[68780,68844],[68781,68845],[68782,68846],[68783,68847],[68784,68848],[68785,68849],[68786,68850],[68800,68736],[68801,68737],[68802,68738],[68803,68739],[68804,68740],[68805,68741],[68806,68742],[68807,68743],[68808,68744],[68809,68745],[68810,68746],[68811,68747],[68812,68748],[68813,68749],[68814,68750],[68815,68751],[68816,68752],[68817,68753],[68818,68754],[68819,68755],[68820,68756],[68821,68757],[68822,68758],[68823,68759],[68824,68760],[68825,68761],[68826,68762],[68827,68763],[68828,68764],[68829,68765],[68830,68766],[68831,68767],[68832,68768],[68833,68769],[68834,68770],[68835,68771],[68836,68772],[68837,68773],[68838,68774],[68839,68775],[68840,68776],[68841,68777],[68842,68778],[68843,68779],[68844,68780],[68845,68781],[68846,68782],[68847,68783],[68848,68784],[68849,68785],[68850,68786],[71840,71872],[71841,71873],[71842,71874],[71843,71875],[71844,71876],[71845,71877],[71846,71878],[71847,71879],[71848,71880],[71849,71881],[71850,71882],[71851,71883],[71852,71884],[71853,71885],[71854,71886],[71855,71887],[71856,71888],[71857,71889],[71858,71890],[71859,71891],[71860,71892],[71861,71893],[71862,71894],[71863,71895],[71864,71896],[71865,71897],[71866,71898],[71867,71899],[71868,71900],[71869,71901],[71870,71902],[71871,71903],[71872,71840],[71873,71841],[71874,71842],[71875,71843],[71876,71844],[71877,71845],[71878,71846],[71879,71847],[71880,71848],[71881,71849],[71882,71850],[71883,71851],[71884,71852],[71885,71853],[71886,71854],[71887,71855],[71888,71856],[71889,71857],[71890,71858],[71891,71859],[71892,71860],[71893,71861],[71894,71862],[71895,71863],[71896,71864],[71897,71865],[71898,71866],[71899,71867],[71900,71868],[71901,71869],[71902,71870],[71903,71871],[125184,125218],[125185,125219],[125186,125220],[125187,125221],[125188,125222],[125189,125223],[125190,125224],[125191,125225],[125192,125226],[125193,125227],[125194,125228],[125195,125229],[125196,125230],[125197,125231],[125198,125232],[125199,125233],[125200,125234],[125201,125235],[125202,125236],[125203,125237],[125204,125238],[125205,125239],[125206,125240],[125207,125241],[125208,125242],[125209,125243],[125210,125244],[125211,125245],[125212,125246],[125213,125247],[125214,125248],[125215,125249],[125216,125250],[125217,125251],[125218,125184],[125219,125185],[125220,125186],[125221,125187],[125222,125188],[125223,125189],[125224,125190],[125225,125191],[125226,125192],[125227,125193],[125228,125194],[125229,125195],[125230,125196],[125231,125197],[125232,125198],[125233,125199],[125234,125200],[125235,125201],[125236,125202],[125237,125203],[125238,125204],[125239,125205],[125240,125206],[125241,125207],[125242,125208],[125243,125209],[125244,125210],[125245,125211],[125246,125212],[125247,125213],[125248,125214],[125249,125215],[125250,125216],[125251,125217]]),ie={REGULAR:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,65535)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535)],["w",Y(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)]]),UNICODE:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,1114111)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",Y(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)]]),UNICODE_IGNORE_CASE:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,1114111)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",Y(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,382).addRange(384,8489).addRange(8491,1114111)]])},ae=createCommonjsModule(function(e){var t=X.generate,n=Z.parse,r=Y().addRange(0,1114111),o=Y().addRange(0,65535),i=r.clone().remove(10,13,8232,8233),a=i.clone().intersection(o),s=function(e,t,n){return t?n?ie.UNICODE_IGNORE_CASE.get(e):ie.UNICODE.get(e):ie.REGULAR.get(e)},l=function(e,t){try{return commonjsRequire()}catch(n){throw new Error("Failed to recognize value `"+t+"` for property `"+e+"`.")}},c=function(e){try{var t=re("General_Category",e);return l("General_Category",t)}catch(e){}var n=te(e);return l(n)},u=function(e,t){var n,o=e.split("="),i=o[0];if(1==o.length)n=c(i);else{var a=te(i),s=re(a,o[1]);n=l(a,s)}return t?r.clone().remove(n):n.clone()};Y.prototype.iuAddRange=function(e,t){do{var n=f(e);n&&this.add(n)}while(++e<=t);return this};var p=function(e,t){var r=n(t,g.useUnicodeFlag?"u":"");switch(r.type){case"characterClass":case"group":case"value":break;default:r=d(r,t)}Object.assign(e,r)},d=function(e,t){return{type:"group",behavior:"ignore",body:[e],raw:"(?:"+t+")"}},f=function(e){return oe.get(e)||!1},h=function(e,t){for(var n=Y(),i=0,a=e.body;iA&&t.remove(A,_.value.start),t.prependLeft(A," = ")):t.overwrite(_.start,_.key.end+1,"["+t.slice(_.start,_.key.end)+"] = "),!_.method||!_.computed&&n.conciseMethodProperty||(_.value.generator&&t.remove(_.start,_.key.start),t.prependRight(_.value.start,"function"+(_.value.generator?"*":"")+" "))}else"SpreadElement"===_.type?v&&E>0&&(k||(k=this.properties[E-1]),t.appendLeft(k.end,", "+v+" )"),k=null,v=null):(!S&&i&&(t.prependRight(_.start,"{"),t.appendLeft(_.end,"}")),C=!0);if(S&&("SpreadElement"===_.type||_.computed)){var T=C?this.properties[this.properties.length-1].end:this.end-1;","==t.original[T]&&++T;var D=t.slice(T,w);t.prependLeft(O,D),t.remove(T,w),S=!1}var P=_.end;if(Ethis.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(e)},ReturnStatement.prototype.transpile=function transpile(e,t){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&e.prependRight(this.argument.start,"{ v: "),this.argument.transpile(e,t),n&&e.appendLeft(this.argument.end," }")):n&&e.appendLeft(this.start+6," {}")},ReturnStatement}(p),SpreadElement:function(e){function SpreadElement(){e.apply(this,arguments)}return e&&(SpreadElement.__proto__=e),SpreadElement.prototype=Object.create(e&&e.prototype),SpreadElement.prototype.constructor=SpreadElement,SpreadElement.prototype.transpile=function transpile(t,n){"ObjectExpression"==this.parent.type&&(t.remove(this.start,this.argument.start),t.remove(this.argument.end,this.end)),e.prototype.transpile.call(this,t,n)},SpreadElement}(p),Super:function(e){function Super(){e.apply(this,arguments)}return e&&(Super.__proto__=e),Super.prototype=Object.create(e&&e.prototype),Super.prototype.constructor=Super,Super.prototype.initialise=function initialise(e){if(e.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new h("use of super outside class method",this);var t=this.findNearest("ClassBody").parent;if(this.superClassName=t.superClass&&(t.superClass.name||"superclass"),!this.superClassName)throw new h("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new h("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new h("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var n=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),o=this.findNearest(k);r&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias()),o&&o.body.contains(this)&&o.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},Super.prototype.transpile=function transpile(e,t){if(t.classes){var n=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";e.overwrite(this.start,this.end,n,{storeName:!0,contentOnly:!0});var r=this.isCalled?this.parent:this.parent.parent;if(r&&"CallExpression"===r.type){this.noCall||e.appendLeft(r.callee.end,".call");var o=this.thisAlias||"this";r.arguments.length?e.appendLeft(r.arguments[0].start,o+", "):e.appendLeft(r.end-1,""+o)}}},Super}(p),TaggedTemplateExpression:function(e){function TaggedTemplateExpression(){e.apply(this,arguments)}return e&&(TaggedTemplateExpression.__proto__=e),TaggedTemplateExpression.prototype=Object.create(e&&e.prototype),TaggedTemplateExpression.prototype.constructor=TaggedTemplateExpression,TaggedTemplateExpression.prototype.initialise=function initialise(t){if(t.templateString&&!t.dangerousTaggedTemplateString)throw new h("Tagged template strings are not supported. Use `transforms: { templateString: false }` to skip transformation and disable this error, or `transforms: { dangerousTaggedTemplateString: true }` if you know what you're doing",this);e.prototype.initialise.call(this,t)},TaggedTemplateExpression.prototype.transpile=function transpile(t,n){if(n.templateString&&n.dangerousTaggedTemplateString){var r=this.quasi.expressions.concat(this.quasi.quasis).sort(function(e,t){return e.start-t.start}),o=this.program.body.scope,i=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)}).join(", "),a=this.program.templateLiteralQuasis[i];a||(a=o.createIdentifier("templateObject"),t.prependRight(this.program.prependAt,"var "+a+" = Object.freeze(["+i+"]);\n"),this.program.templateLiteralQuasis[i]=a),t.overwrite(this.tag.end,r[0].start,"("+a);var s=r[0].start;r.forEach(function(e){"TemplateElement"===e.type?t.remove(s,e.end):t.overwrite(s,e.start,", "),s=e.end}),t.overwrite(s,this.end,")")}e.prototype.transpile.call(this,t,n)},TaggedTemplateExpression}(p),TemplateElement:function(e){function TemplateElement(){e.apply(this,arguments)}return e&&(TemplateElement.__proto__=e),TemplateElement.prototype=Object.create(e&&e.prototype),TemplateElement.prototype.constructor=TemplateElement,TemplateElement.prototype.initialise=function initialise(){this.program.indentExclusionElements.push(this)},TemplateElement}(p),TemplateLiteral:function(e){function TemplateLiteral(){e.apply(this,arguments)}return e&&(TemplateLiteral.__proto__=e),TemplateLiteral.prototype=Object.create(e&&e.prototype),TemplateLiteral.prototype.constructor=TemplateLiteral,TemplateLiteral.prototype.transpile=function transpile(t,n){if(e.prototype.transpile.call(this,t,n),n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var r=this.expressions.concat(this.quasis).sort(function(e,t){return e.start-t.start||e.end-t.end}).filter(function(e,t){return"TemplateElement"!==e.type||(!!e.value.raw||!t)});if(r.length>=3){var o=r[0],i=r[2];"TemplateElement"===o.type&&""===o.value.raw&&"TemplateElement"===i.type&&r.shift()}var a=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);a&&t.appendRight(this.start,"(");var s=this.start;r.forEach(function(e,n){var r=0===n?a?"(":"":" + ";if("TemplateElement"===e.type)t.overwrite(s,e.end,r+JSON.stringify(e.value.cooked));else{var o="Identifier"!==e.type;o&&(r+="("),t.remove(s,e.start),r&&t.prependRight(e.start,r),o&&t.appendLeft(e.end,")")}s=e.end}),a&&t.appendLeft(s,")"),t.overwrite(s,this.end,"",{contentOnly:!0})}},TemplateLiteral}(p),ThisExpression:function(e){function ThisExpression(){e.apply(this,arguments)}return e&&(ThisExpression.__proto__=e),ThisExpression.prototype=Object.create(e&&e.prototype),ThisExpression.prototype.constructor=ThisExpression,ThisExpression.prototype.initialise=function initialise(e){if(e.arrow){var t=this.findLexicalBoundary(),n=this.findNearest("ArrowFunctionExpression"),r=this.findNearest(k);(n&&n.depth>t.depth||r&&r.body.contains(this)&&r.depth>t.depth||r&&r.right&&r.right.contains(this))&&(this.alias=t.getThisAlias())}},ThisExpression.prototype.transpile=function transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},ThisExpression}(p),UpdateExpression:function(e){function UpdateExpression(){e.apply(this,arguments)}return e&&(UpdateExpression.__proto__=e),UpdateExpression.prototype=Object.create(e&&e.prototype),UpdateExpression.prototype.constructor=UpdateExpression,UpdateExpression.prototype.initialise=function initialise(t){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.argument.name]=!0)}e.prototype.initialise.call(this,t)},UpdateExpression.prototype.transpile=function transpile(t,n){"Identifier"===this.argument.type&&checkConst(this.argument,this.findScope(!1)),e.prototype.transpile.call(this,t,n)},UpdateExpression}(p),VariableDeclaration:function(e){function VariableDeclaration(){e.apply(this,arguments)}return e&&(VariableDeclaration.__proto__=e),VariableDeclaration.prototype=Object.create(e&&e.prototype),VariableDeclaration.prototype.constructor=VariableDeclaration,VariableDeclaration.prototype.initialise=function initialise(e){this.scope=this.findScope("var"===this.kind),this.declarations.forEach(function(t){return t.initialise(e)})},VariableDeclaration.prototype.transpile=function transpile(e,t){var n=this,r=this.getIndentation(),o=this.kind;if(t.letConst&&"var"!==o&&(o="var",e.overwrite(this.start,this.start+this.kind.length,o,{contentOnly:!0,storeName:!0})),t.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var i,a=this.start;this.declarations.forEach(function(o,s){if(o.transpile(e,t),"Identifier"===o.id.type)s>0&&"Identifier"!==n.declarations[s-1].id.type&&e.overwrite(a,o.id.start,"var ");else{var l=k.test(n.parent.type);0===s?e.remove(a,o.id.start):e.overwrite(a,o.id.start,";\n"+r);var c="Identifier"===o.init.type&&!o.init.rewritten,u=c?o.init.alias||o.init.name:o.findScope(!0).createIdentifier("ref");a=o.start;var p=[];c?e.remove(o.id.end,o.end):p.push(function(t,n,r){e.prependRight(o.id.end,"var "+u),e.appendLeft(o.init.end,""+r),e.move(o.id.end,o.end,t)});var d=o.findScope(!1);destructure(e,function(e){return d.createIdentifier(e)},function(e){var t=e.name;return d.resolveName(t)},o.id,u,l,p);var f=l?"var ":"",h=l?", ":";\n"+r;p.forEach(function(e,t){s===n.declarations.length-1&&t===p.length-1&&(h=l?"":";"),e(o.start,0===t?f:"",h)})}a=o.end,i="Identifier"!==o.id.type}),i&&this.end>a&&e.overwrite(a,this.end,"",{contentOnly:!0})}else this.declarations.forEach(function(n){n.transpile(e,t)})},VariableDeclaration}(p),VariableDeclarator:function(e){function VariableDeclarator(){e.apply(this,arguments)}return e&&(VariableDeclarator.__proto__=e),VariableDeclarator.prototype=Object.create(e&&e.prototype),VariableDeclarator.prototype.constructor=VariableDeclarator,VariableDeclarator.prototype.initialise=function initialise(t){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),e.prototype.initialise.call(this,t)},VariableDeclarator.prototype.transpile=function transpile(e,t){if(!this.init&&t.letConst&&"var"!==this.parent.kind){var n=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||e.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(e,t),this.init&&this.init.transpile(e,t)},VariableDeclarator.prototype.isLeftDeclaratorOfLoop=function isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},VariableDeclarator}(p),WhileStatement:A},le={Program:["body"],Literal:[]},ce={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function wrap(e,t){if(e)if("length"in e)for(var n=e.length;n--;)wrap(e[n],t);else if(!e.__wrapped){e.__wrapped=!0,le[e.type]||(le[e.type]=Object.keys(e).filter(function(t){return"object"==typeof e[t]}));var r=ce[e.type];if(r&&"BlockStatement"!==e[r].type){var o=e[r];e[r]={start:o.start,end:o.end,type:"BlockStatement",body:[o],synthetic:!0}}e.parent=t,e.program=t.program||t,e.depth=t.depth+1,e.keys=le[e.type],e.indentation=void 0;for(var i=0,a=le[e.type];i...",!0,!0),t.jsxName=new e.TokenType("jsxName"),t.jsxText=new e.TokenType("jsxText",{beforeExpr:!0}),t.jsxTagStart=new e.TokenType("jsxTagStart"),t.jsxTagEnd=new e.TokenType("jsxTagEnd"),t.jsxTagStart.updateContext=function(){this.context.push(n.j_expr),this.context.push(n.j_oTag),this.exprAllowed=!1},t.jsxTagEnd.updateContext=function(e){var r=this.context.pop();r===n.j_oTag&&e===t.slash||r===n.j_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===n.j_expr):this.exprAllowed=!0};var r=e.Parser.prototype;function getQualifiedJSXName(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property):void 0:e}return r.jsx_readToken=function(){for(var n="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var o=this.input.charCodeAt(this.pos);switch(o){case 60:case 123:return this.pos===this.start?60===o&&this.exprAllowed?(++this.pos,this.finishToken(t.jsxTagStart)):this.getTokenFromCode(o):(n+=this.input.slice(r,this.pos),this.finishToken(t.jsxText,n));case 38:n+=this.input.slice(r,this.pos),n+=this.jsx_readEntity(),r=this.pos;break;default:e.isNewLine(o)?(n+=this.input.slice(r,this.pos),n+=this.jsx_readNewLine(!0),r=this.pos):++this.pos}}},r.jsx_readNewLine=function(e){var t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t},r.jsx_readString=function(n){for(var r="",o=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===n)break;38===i?(r+=this.input.slice(o,this.pos),r+=this.jsx_readEntity(),o=this.pos):e.isNewLine(i)?(r+=this.input.slice(o,this.pos),r+=this.jsx_readNewLine(!1),o=this.pos):++this.pos}return r+=this.input.slice(o,this.pos++),this.finishToken(t.string,r)},r.jsx_readEntity=function(){var e,t="",n=0,r=this.input[this.pos];"&"!==r&&this.raise(this.pos,"Entity must start with an ampersand");for(var o=++this.pos;this.pos")}return r.openingElement=i,r.closingElement=a,r.children=o,this.type===t.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,i.name?"JSXElement":"JSXFragment")},r.jsx_parseText=function(e){var t=this.parseLiteral(e);return t.type="JSXText",t},r.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},e.plugins.jsx=function(r,o){o&&("object"!=typeof o&&(o={}),r.options.plugins.jsx={allowNamespaces:!1!==o.allowNamespaces,allowNamespacedObjects:!!o.allowNamespacedObjects},r.extend("parseExprAtom",function(e){return function(n){return this.type===t.jsxText?this.jsx_parseText(this.value):this.type===t.jsxTagStart?this.jsx_parseElement():e.call(this,n)}}),r.extend("readToken",function(r){return function(o){var i=this.curContext();if(i===n.j_expr)return this.jsx_readToken();if(i===n.j_oTag||i===n.j_cTag){if(e.isIdentifierStart(o))return this.jsx_readWord();if(62==o)return++this.pos,this.finishToken(t.jsxTagEnd);if((34===o||39===o)&&i==n.j_oTag)return this.jsx_readString(o)}return 60===o&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(t.jsxTagStart)):r.call(this,o)}}),r.extend("updateContext",function(e){return function(r){if(this.type==t.braceL){var o=this.curContext();o==n.j_oTag?this.context.push(n.b_expr):o==n.j_expr?this.context.push(n.b_tmpl):e.call(this,r),this.exprAllowed=!0}else{if(this.type!==t.slash||r!==t.jsxTagStart)return e.call(this,r);this.context.length-=2,this.context.push(n.j_cTag),this.exprAllowed=!1}}}))},e},u].reduce(function(e,t){return t(e)},o).parse,fe=["dangerousTaggedTemplateString","dangerousForOf"];function target(e){var t=Object.keys(e).length?1048575:262144;Object.keys(e).forEach(function(n){var r=ue[n];if(!r)throw new Error("Unknown environment '"+n+"'. Please raise an issue at https://github.com/Rich-Harris/buble/issues");var o=e[n];if(!(o in r))throw new Error("Support data exists for the following versions of "+n+": "+Object.keys(r).join(", ")+". Please raise an issue at https://github.com/Rich-Harris/buble/issues");var i=r[o];t&=i});var n=Object.create(null);return pe.forEach(function(e,r){n[e]=!(t&1<=r.length)return"\t";var o=r.reduce(function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(o+1).join(" ")}function getRelativePath(e,t){var n=e.split(/[\/\\]/),r=t.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var o=n.length;o--;)n[o]="..";return n.concat(r).join("/")}SourceMap.prototype={toString:function toString(){return JSON.stringify(this)},toUrl:function toUrl(){return"data:application/json;charset=utf-8;base64,"+i(this.toString())}};var a=Object.prototype.toString;function isObject(e){return"[object Object]"===a.call(e)}function getLocator(e){var t=0,n=e.split("\n").map(function(e,n){var r=t+e.length+1,o={start:t,end:r,line:n};return t=r,o}),r=0;function rangeContains(e,t){return e.start<=t&&t=t.end?1:-1;t;){if(rangeContains(t,e))return getLocation(t,e);t=n[r+=o]}}}function Mappings(e){var t=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,i=0;this.raw=[];var a=this.raw[r]=[],s=null;this.addEdit=function(e,n,r,o,l){n.length?a.push([i,e,o.line,o.column,l]):s&&a.push(s),t.advance(n),s=null},this.addUneditedChunk=function(n,o,l,c,u){for(var p=o.start,d=!0;p=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],o=this.byEnd[t],i=r.previous,a=o.next,s=this.byStart[n];if(!s&&o===this.lastChunk)return this;var l=s?s.previous:this.lastChunk;return i&&(i.next=a),a&&(a.previous=i),l&&(l.next=r),s&&(s.previous=o),r.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=l,o.next=s||null,l||(this.firstChunk=r),s||(this.lastChunk=o),this},overwrite:function overwrite(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(l.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),l.storeName=!0),r={storeName:!0});var o=void 0!==r&&r.storeName,i=void 0!==r&&r.contentOnly;if(o){var a=this.original.slice(e,t);this.storedNames[a]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(n,o,i),s!==c){for(var u=s.next;u!==c;)u.edit("",!1),u=u.next;u.edit("",!1)}}else{var p=new Chunk(e,t,"").edit(n,o);c.next=p,p.previous=c}return this},prepend:function prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},prependLeft:function prependLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},prependRight:function prependRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},remove:function remove(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},slice:function slice(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var o=r;r;){!r.intro||o===r&&r.start!==e||(n+=r.intro);var i=r.start=t;if(i&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var a=o===r?e-r.start:0,s=i?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(a,s),!r.outro||i&&r.end!==t||(n+=r.outro),i)break;r=r.next}return n},snip:function snip(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},_split:function _split(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},_splitChunk:function _splitChunk(e,t){if(e.edited&&e.content.length){var n=getLocator(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},toString:function toString(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},trimLines:function trimLines(){return this.trim("[\\r\\n]")},trim:function trim(e){return this.trimStart(e).trimEnd(e)},trimEnd:function trimEnd(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return this;var n=this.lastChunk;do{var r=n.end,o=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return this;n=n.previous}while(n);return this},trimStart:function trimStart(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return this;var n=this.firstChunk;do{var r=n.end,o=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return this;n=n.next}while(n);return this}};var c=Object.prototype.hasOwnProperty;function Bundle(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}Bundle.prototype={addSource:function addSource(e){if(e instanceof MagicString$1)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!isObject(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(t){c.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(c.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},append:function append(e,t){return this.addSource({content:new MagicString$1(e),separator:t&&t.separator||""}),this},clone:function clone(){var e=new Bundle({intro:this.intro,separator:this.separator});return this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}),e},generateMap:function generateMap(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var r=new Mappings(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(e,o){o>0&&r.advance(t.separator);var i=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,a=e.content,s=getLocator(a.original);a.intro&&r.advance(a.intro),a.firstChunk.eachNext(function(t){var o=s(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(i,t.content,t.original,o,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(i,t,a.original,o,a.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),a.outro&&r.advance(a.outro)}),new SourceMap({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?getRelativePath(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:n,mappings:r.encode()})},getIndentString:function getIndentString(){var e={};return this.sources.forEach(function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(t,n){return e[t]-e[n]})[0]||"\t"},indent:function indent(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,o){var i=void 0!==r.separator?r.separator:t.separator,a=n||o>0&&/\r?\n$/.test(i);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:a}),n="\n"===r.content.toString().slice(0,-1)}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,n){return n>0?e+t:t})),this},prepend:function prepend(e){return this.intro=e+this.intro,this},toString:function toString(){var e=this,t=this.sources.map(function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()}).join("");return this.intro+t},trimLines:function trimLines(){return this.trim("[\\r\\n]")},trim:function trim(e){return this.trimStart(e).trimEnd(e)},trimStart:function trimStart(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r]))break;n.content.trimStart(e),r+=1}while(""===n.content.toString())}return this},trimEnd:function trimEnd(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r])){this.intro=this.intro.replace(n,"");break}t.content.trimEnd(e),r-=1}while(""===t.content.toString());return this}},t.a=MagicString$1}).call(this,n(141).Buffer,n(48))},function(e,t,n){"use strict";n.d(t,"a",function(){return encode});var r={},o={};function encode(e){var t;if("number"==typeof e)t=encodeInteger(e);else{t="";for(var n=0;n>=5)>0&&(n|=32),t+=o[n]}while(e>0);return t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){r[e]=t,o[t]=e})},function(e,t){e.exports=function clipboardCopy(e){if(navigator.clipboard)return navigator.clipboard.writeText(e);var t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre";var n=document.createElement("iframe");n.sandbox="allow-same-origin",document.body.appendChild(n);var r=n.contentWindow;r.document.body.appendChild(t);var o=r.getSelection();o||(r=window,o=r.getSelection(),document.body.appendChild(t));var i=r.document.createRange();o.removeAllRanges(),i.selectNode(t),o.addRange(i);var a=!1;try{a=r.document.execCommand("copy")}catch(e){}return o.removeAllRanges(),r.document.body.removeChild(t),document.body.removeChild(n),a?Promise.resolve():Promise.reject()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}(i.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:e,request:i};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(_("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,o),i=null}},i.onabort=function(){i&&(n(_("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(_("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(_(t,e,"ECONNABORTED",i)),i=null},b.isStandardBrowserEnv()){var p=M,d=(e.withCredentials||R(u))&&e.xsrfCookieName?p.read(e.xsrfCookieName):void 0;d&&(o[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&b.forEach(o,function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)}),b.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(i.abort(),n(e),i=null)}),void 0===r&&(r=null),i.send(r)})}),T),transformRequest:[function(e,t){return E(t,"Accept"),E(t,"Content-Type"),b.isFormData(e)||b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)?e:b.isArrayBufferView(e)?e.buffer:b.isURLSearchParams(e)?(q(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):b.isObject(e)?(q(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};b.forEach(["delete","get","head"],function(e){D.headers[e]={}}),b.forEach(["post","put","patch"],function(e){D.headers[e]=b.merge(A)});var P=D;function S(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var L=function(e){return S(e),e.headers=e.headers||{},e.data=x(e.data,e.headers,e.transformRequest),e.headers=b.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),b.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||P.adapter)(e).then(function(t){return S(e),t.data=x(t.data,t.headers,e.transformResponse),t},function(t){return C(t)||(S(e),t&&t.response&&(t.response.data=x(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},j=function(e,t){t=t||{};var n={},r=["url","method","params","data"],o=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];b.forEach(r,function(e){void 0!==t[e]&&(n[e]=t[e])}),b.forEach(o,function(r){b.isObject(t[r])?n[r]=b.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:b.isObject(e[r])?n[r]=b.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])}),b.forEach(i,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var a=r.concat(o).concat(i),s=Object.keys(t).filter(function(e){return-1===a.indexOf(e)});return b.forEach(s,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n};function F(e){this.defaults=e,this.interceptors={request:new k,response:new k}}F.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=j(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[L,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},F.prototype.getUri=function(e){return e=j(this.defaults,e),w(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},b.forEach(["delete","get","head","options"],function(e){F.prototype[e]=function(t,n){return this.request(b.merge(n||{},{method:e,url:t}))}}),b.forEach(["post","put","patch"],function(e){F.prototype[e]=function(t,n,r){return this.request(b.merge(r||{},{method:e,url:t,data:n}))}});var I=F;function z(e){this.message=e}z.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},z.prototype.__CANCEL__=!0;var U=z;function N(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new U(e),t(n.reason))})}N.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},N.source=function(){var e;return{token:new N(function(t){e=t}),cancel:e}};var V=N;function B(e){var t=new I(e),n=v(I.prototype.request,t);return b.extend(n,I.prototype,t),b.extend(n,t),n}var W=B(P);W.Axios=I,W.create=function(e){return B(j(W.defaults,e))},W.Cancel=U,W.CancelToken=V,W.isCancel=C,W.all=function(e){return Promise.all(e)},W.spread=function(e){return function(t){return e.apply(null,t)}};var H=W,$=W;H.default=$;var G,Z=H,Y=(G=Object.freeze({__proto__:null,Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌",default:{Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}}))&&G.default||G,Q=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ee={};function J(e,t,n){var r,o,i,a,s,l="";for("string"!=typeof t&&(n=t,t=J.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,r=ee[e];if(r)return r;for(r=ee[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}J.defaultChars=";/?:@&=+$,-_.!~*'()#",J.componentChars="-_.!~*'()";var te=J,ne={};function K(e,t){var n;return"string"!=typeof t&&(t=K.defaultChars),n=function(e){var t,n,r=ne[e];if(r)return r;for(r=ne[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&o)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c})}K.defaultChars=";/?:@&=+$,#",K.componentChars="";var re=K;function X(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var oe=/^([a-z0-9.+-]+:)/i,ie=/:[0-9]*$/,ae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,se=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),le=["'"].concat(se),ce=["%","/","?",";","#"].concat(le),ue=["/","?","#"],pe=/^[+a-z0-9A-Z_-]{0,63}$/,de=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fe={javascript:!0,"javascript:":!0},he={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};X.prototype.parse=function(e,t){var n,r,o,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=ae.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=oe.exec(s);if(c&&(o=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||c&&fe[c]||(s=s.substr(2),this.slashes=!0)),!fe[c]&&(a||c&&!he[c])){var u,p,d=-1;for(n=0;n127?v+="x":v+=g[y];if(!v.match(pe)){var w=m.slice(0,n),k=m.slice(n+1),x=g.match(de);x&&(w.push(x[1]),k.unshift(x[2])),k.length&&(s=k.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=s.indexOf("#");-1!==C&&(this.hash=s.substr(C),s=s.slice(0,C));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),he[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},X.prototype.parseHost=function(e){var t=ie.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var me={encode:te,decode:re,format:function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")},parse:function(e,t){if(e&&e instanceof X)return e;var n=new X;return n.parse(e,t),n}},ge=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=/[\0-\x1F\x7F-\x9F]/,ye=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,be={Any:ge,Cc:ve,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:Q,Z:ye},we=function(e,t){return function(e,t){var r=Object.prototype.hasOwnProperty;function n(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var i=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(i.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=/[&<>"]/,u=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function h(e){return p[e]}var d=/[.?*+^$[\]\\(){}|-]/g;t.lib={},t.lib.mdurl=me,t.lib.ucmicro=be,t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=n,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(i,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,function(e,t,r){return t||function(e,t){var r=0;return n(Y,t)?Y[t]:35===t.charCodeAt(0)&&l.test(t)&&o(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(r):e}(e,r)})},t.isValidEntityCode=o,t.fromCodePoint=s,t.escapeHtml=function(e){return c.test(e)?e.replace(u,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return Q.test(e)},t.escapeRE=function(e){return e.replace(d,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(t={exports:{}},t.exports),t.exports}(),ke=(we.lib,we.assign,we.isString,we.has,we.unescapeMd,we.unescapeAll,we.isValidEntityCode,we.fromCodePoint,we.escapeHtml,we.arrayReplaceAt,we.isSpace,we.isWhiteSpace,we.isMdAsciiPunct,we.isPunctChar,we.escapeRE,we.normalizeReference,we.unescapeAll),Se=we.unescapeAll,Ee={parseLinkLabel:function(e,t,n){var r,o,i,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos=n)return s;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return s;for(t++,40===o&&(o=41);t"+Me(e[t].content)+""},Ae.code_block=function(e,t,n,r,o){var i=e[t];return""+Me(e[t].content)+"\n"},Ae.fence=function(e,t,n,r,o){var i,a,s,l,c=e[t],u=c.info?Re(c.info).trim():"",p="";return u&&(p=u.split(/\s+/g)[0]),0===(i=n.highlight&&n.highlight(c.content,p)||Me(c.content)).indexOf(""+i+"\n"):"
"+i+"
\n"},Ae.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},Ae.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},Ae.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},Ae.text=function(e,t){return Me(e[t].content)},Ae.html_block=function(e,t){return e[t].content},Ae.html_inline=function(e,t){return e[t].content},Ce.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},Ce.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a/i.test(e)}var Ie=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,qe=/\((c|tm|r|p)\)/i,ze=/\((c|tm|r|p)\)/gi,Ue={c:"©",r:"®",p:"§",tm:"™"};function Ne(e,t){return Ue[t.toLowerCase()]}function Oe(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(ze,Ne)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Be(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Ie.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var Ve=we.isWhiteSpace,We=we.isPunctChar,$e=we.isMdAsciiPunct,Xe=/['"]/,Ye=/['"]/g;function Ge(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function He(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,w,k,x;for(w=[],n=0;n=0&&!(w[y].level<=l);y--);if(w.length=y+1,"text"===r.type){a=0,s=(o=r.content).length;e:for(;a=0)u=o.charCodeAt(i.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if("text"===e[y].type){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(p=32,a=48&&u<=57&&(v=g=!1),g&&v&&(g=!1,v=f),g||v){if(v)for(y=w.length-1;y>=0&&(c=w[y],!(w[y].level=0&&(n=this.attrs[t][1]),n},Ze.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var Qe=Ze;function Je(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Je.prototype.Token=Qe;var tt=Je,nt=[["normalize",function(e){var t;t=(t=e.src.replace(Le,"\n")).replace(Fe,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n=0;t--)if("link_close"!==(a=o[t]).type){if("html_inline"===a.type&&(y=a.content,/^\s]/i.test(y)&&f>0&&f--,Te(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(c=a.content,v=e.md.linkify.match(c),s=[],d=a.level,p=0,l=0;lp&&((i=new e.Token("text","",0)).content=c.slice(p,u),i.level=d,s.push(i)),(i=new e.Token("link_open","a",1)).attrs=[["href",m]],i.level=d++,i.markup="linkify",i.info="auto",s.push(i),(i=new e.Token("text","",0)).content=g,i.level=d,s.push(i),(i=new e.Token("link_close","a",-1)).level=--d,i.markup="linkify",i.info="auto",s.push(i),p=v[l].lastIndex);p=0;t--)"inline"===e.tokens[t].type&&(qe.test(e.tokens[t].content)&&Oe(e.tokens[t].children),Ie.test(e.tokens[t].content)&&Be(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Xe.test(e.tokens[t].content)&&He(e.tokens[t].children,e)}]];function Ke(){this.ruler=new Pe;for(var e=0;e=i)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=i)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-r>=10)return-1}return o`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",St="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Et={HTML_TAG_RE:new RegExp("^(?:"+xt+"|"+St+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),HTML_OPEN_CLOSE_TAG_RE:new RegExp("^(?:"+xt+"|"+St+")")},_t=Et.HTML_OPEN_CLOSE_TAG_RE,Ot=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(_t.source+"\\s*$"),/^$/,!1]],Rt=we.isSpace;function mr(e,t,n,r){var o,i,a,s,l,c,u,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,a=s=c=u=0,l=(i=this.src).length;s0&&this.level++,this.tokens.push(r),r},mr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},mr.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Rt(this.src.charCodeAt(--e)))return e+1;return e},mr.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},mr.prototype.getLines=function(e,t,n,r){var o,i,a,s,l,c,u,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;pn?new Array(i-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")},mr.prototype.Token=Qe;var Mt=mr,Tt=[["table",function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,h,m;if(t+2>n)return!1;if(l=t+1,e.sCount[l]=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(o=e.src.charCodeAt(a++))&&45!==o&&58!==o)return!1;for(;a=4)return!1;if((u=(c=rr(i.replace(/^\||\|$/g,""))).length)>d.length)return!1;if(r)return!0;for((p=e.push("table_open","table",1)).map=h=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s=4);l++){for(c=rr(i.replace(/^\||\|$/g,"")),p=e.push("tr_open","tr",1),s=0;s=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!0),i.map=[t,e.line],!0}],["fence",function(e,t,n,r){var o,i,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(o=e.src.charCodeAt(d))&&96!==o)return!1;if(l=d,(i=(d=e.skipChars(d,o))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===o&&a.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(d=e.skipChars(d,o))-l=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(s=d=e.sCount[t]+E-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(E)?(E++,s++,d++,o=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[t]+d)%4==3?(E++,s++,d++,o=!1):o=!0):b=!1,f=[e.bMarks[t]],e.bMarks[t]=E;E<_&&(i=e.src.charCodeAt(E),ut(i));)9===i?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,E++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),c=E>=_,v=[e.sCount[t]],e.sCount[t]=d-s,y=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",C=!1,p=t+1;p=(_=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(E++)||C){if(c)break;for(w=!1,a=0,l=k.length;a=_,h.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=d-s,y.push(e.tShift[p]),e.tShift[p]=E-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=u=[t,0],e.md.block.tokenize(e,t,p),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=g,u[1]=e.line,a=0;a=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(i=1;l=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(D=!0),(_=ar(e,t))>=0){if(u=!0,R=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(R,_-R-1)),D&&1!==g)return!1}else{if(!((_=sr(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(_)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(_-1),r)return!0;for(h=e.tokens.length,u?(T=e.push("ordered_list_open","ol",1),1!==g&&(T.attrs=[["start",g]])):T=e.push("bullet_list_open","ul",1),T.map=f=[t,0],T.markup=String.fromCharCode(m),y=t,O=!1,A=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";y=v?1:b-c)>4&&(l=1),s=c+l,(T=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),T.map=p=[t,0],S=e.tight,C=e.tShift[t],x=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=i-e.bMarks[t],e.sCount[t]=b,i>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!O||(P=!1),O=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=C,e.sCount[t]=x,e.tight=S,(T=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,p[1]=y,i=e.bMarks[t],y>=n)break;if(e.sCount[y]=4)break;for(M=!1,a=0,d=A.length;a=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k3||e.sCount[C]<0)){for(v=!1,c=0,u=y.length;c=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=c)return!1;for(i=1,o=e.src.charCodeAt(++l);35===o&&l6||ll&&kt(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,(s=e.push("heading_open","h"+String(i),1)).markup="########".slice(0,i),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(i),-1)).markup="########".slice(0,i)),0))},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,o,i,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(o=!1,i=0,a=h.length;i=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),o=0;o3||e.sCount[l]<0)){for(r=!1,o=0,i=c.length;o=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r?@[]^_`{|}~-".split("").forEach(function(e){Nt[e.charCodeAt(0)]=1});var jt={tokenize:function(e,t){var n,r,o,i,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(o=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(e.push("text","",0).content=i,o--),n=0;n=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",(i=e.tokens[o.token]).type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}var It={tokenize:function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n/,Wt=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/,Ht=Et.HTML_TAG_RE,$t=we.has,Kt=we.isValidEntityCode,Jt=we.fromCodePoint,Gt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Xt=/^&([a-z][a-z0-9]{1,31});/i;function Vr(e,t){var n,r,o,i,a,s,l,c,u={},p=t.length;for(n=0;na;r-=i.jump+1)if((i=t[r]).marker===o.marker&&(-1===s&&(s=r),i.open&&i.end<0&&i.level===o.level&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3==0&&(i.length%3==0&&o.length%3==0||(l=!0)),!l))){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,o.jump=n-r+c,o.open=!1,i.end=n,i.jump=c,i.close=!1,s=-1;break}-1!==s&&(u[o.marker][(o.length||0)%3]=s)}}var Zt=we.isWhiteSpace,Yt=we.isPunctChar,Qt=we.isMdAsciiPunct;function Zr(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}Zr.prototype.pushPending=function(){var e=new Qe("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Zr.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new Qe(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Zr.prototype.scanDelims=function(e,t){var n,r,o,i,a,s,l,c,u,p=e,d=!0,f=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o=f)return!1;for(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(p=e.md.normalizeLink(l.str),e.md.validateLink(p)?s=l.pos:p=""),h=s;s=f||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s=0?o=e.src.slice(h,s++):s=i+1):s=i+1,o||(o=e.src.slice(a,i)),!(c=e.env.references[Bt(o)]))return e.pos=d,!1;p=c.href,u=c.title}return t||(e.pos=a,e.posMax=i,e.push("link_open","a",1).attrs=n=[["href",p]],u&&n.push(["title",u]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0}],["image",function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)=v)return!1;for(h=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?l=u.pos:m=""),h=l;l=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l=0?i=e.src.slice(h,l++):l=a+1):l=a+1,i||(i=e.src.slice(s,a)),!(c=e.env.references[zt(i)]))return e.pos=g,!1;m=c.href,p=c.title}return t||(o=e.src.slice(s,a),e.md.inline.parse(o,e.md,e.env,f=[]),(d=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],d.children=f,d.content=o,p&&n.push(["title",p])),e.pos=l,e.posMax=v,!0}],["autolink",function(e,t){var n,r,o,i,a,s,l=e.pos;return!(60!==e.src.charCodeAt(l)||(n=e.src.slice(l)).indexOf(">")<0||(Wt.test(n)?(i=(r=n.match(Wt))[0].slice(1,-1),a=e.md.normalizeLink(i),!e.md.validateLink(a)||(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=r[0].length,0)):!Vt.test(n)||(i=(o=n.match(Vt))[0].slice(1,-1),a=e.md.normalizeLink("mailto:"+i),!e.md.validateLink(a)||(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,0))))}],["html_inline",function(e,t){var n,r,o,i=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(i)||i+2>=o||33!==(n=e.src.charCodeAt(i+1))&&63!==n&&47!==n&&!function(e){var t=32|n;return t>=97&&t<=122}()||!(r=e.src.slice(i).match(Ht))||(t||(e.push("html_inline","",0).content=e.src.slice(i,i+r[0].length)),e.pos+=r[0].length,0)))}],["entity",function(e,t){var n,r,o=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+10&&r++,"text"===o[t].type&&t+1=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Yr.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},sn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function st(e){var t=e.re=function(e){var t={};return t.src_Any=ge.source,t.src_Cc=ve.source,t.src_Z=ye.source,t.src_P=Q.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var o=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Xr(n))return"[object RegExp]"!==Xr(n.validate)?et(n.validate)?r.validate=n.validate:s(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(et(n.normalize)?r.normalize=n.normalize:n.normalize?s(t,n):r.normalize=function(e,t){t.normalize(e)});"[object String]"!==Xr(n)?s(t,n):o.push(t)}}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var i=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(rt).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function at(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function it(e,t){var n=new at(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function ct(e,t){if(!(this instanceof ct))return new ct(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||on.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Qr({},on,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Qr({},an,e),this.__compiled__={},this.__tlds__=sn,this.__tlds_replaced__=!1,this.re={},st(this)}ct.prototype.add=function(e,t){return this.__schemas__[e]=t,st(this),this},ct.prototype.set=function(e){return this.__opts__=Qr(this.__opts__,e),this},ct.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},ct.prototype.pretest=function(e){return this.re.pretest.test(e)},ct.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},ct.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(it(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(it(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},ct.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),st(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,st(this),this)},ct.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},ct.prototype.onCompile=function(){};var ln=ct,cn={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},un=/^(vbscript|javascript|file|data):/,pn=/^data:image\/(gif|png|jpeg|webp);/;function ft(e){var t=e.trim().toLowerCase();return!un.test(t)||!!pn.test(t)}var dn=["http:","https:","mailto:"];function gt(e){var t=me.parse(e,!0);if(t.hostname&&(!t.protocol||dn.indexOf(t.protocol)>=0))try{t.hostname=m.toASCII(t.hostname)}catch(e){}return me.encode(me.format(t))}function mt(e){var t=me.parse(e,!0);if(t.hostname&&(!t.protocol||dn.indexOf(t.protocol)>=0))try{t.hostname=m.toUnicode(t.hostname)}catch(e){}return me.decode(me.format(t))}function bt(e,t){if(!(this instanceof bt))return new bt(e,t);t||we.isString(e)||(t=e||{},e="default"),this.inline=new rn,this.block=new Dt,this.core=new ot,this.renderer=new De,this.linkify=new ln,this.validateLink=ft,this.normalizeLink=gt,this.normalizeLinkText=mt,this.utils=we,this.helpers=we.assign({},Ee),this.options={},this.configure(e),t&&this.set(t)}bt.prototype.set=function(e){return we.assign(this.options,e),this},bt.prototype.configure=function(e){var t,n=this;if(we.isString(e)&&!(e=cn[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},bt.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},bt.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},bt.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},bt.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},bt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},bt.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},bt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var fn=bt,mn=new f.Schema({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:function(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:function(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:function(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:function(e){return{params:e.getAttribute("data-params")||""}}}],toDOM:function(e){return["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")}}}],toDOM:function(e){return["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:function(e){return{tight:e.hasAttribute("data-tight")}}}],toDOM:function(e){return["ul",{"data-tight":e.attrs.tight?"true":null},0]}},list_item:{content:"paragraph block*",defining:!0,parseDOM:[{tag:"li"}],toDOM:function(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:function(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM:function(e){return["img",e.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:function(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:function(e){return"italic"==e&&null}}],toDOM:function(){return["em"]}},strong:{parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-weight",getAttrs:function(e){return/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}}],toDOM:function(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:function(e){return["a",e.attrs]}},code:{parseDOM:[{tag:"code"}],toDOM:function(){return["code"]}}}}),gn=function(e,t){this.schema=e,this.stack=[{type:e.topNodeType,content:[]}],this.marks=f.Mark.none,this.tokenHandlers=t};function yt(e,t){return e.getAttrs?e.getAttrs(t):e.attrs instanceof Function?e.attrs(t):e.attrs}function wt(e){return"code_inline"==e||"code_block"==e||"fence"==e}function At(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function Ct(){}gn.prototype.top=function(){return this.stack[this.stack.length-1]},gn.prototype.push=function(e){this.stack.length&&this.top().content.push(e)},gn.prototype.addText=function(e){if(e){var t,n=this.top().content,r=n[n.length-1],o=this.schema.text(e,this.marks);r&&(t=function(e,t){if(e.isText&&t.isText&&f.Mark.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(r,o))?n[n.length-1]=t:n.push(o)}},gn.prototype.openMark=function(e){this.marks=e.addToSet(this.marks)},gn.prototype.closeMark=function(e){this.marks=e.removeFromSet(this.marks)},gn.prototype.parseTokens=function(e){for(var t=0;t1){var t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(var r=1;ry?s=s.slice(0,y).concat(v).concat(s.slice(y,g)).concat(s.slice(g+1,m)):y>g&&(s=s.slice(0,g).concat(s.slice(g+1,y)).concat(v).concat(s.slice(y,m)));continue e}}}for(var w=0;w0&&t>0?" `":"`",a=0;a0&&t<0&&(i+=" "),i}var ir=new yn({blockquote:function(e,t){e.wrapBlock("> ",null,t,function(){return e.renderContent(t)})},heading:function(e,t){e.write("".concat(e.repeat("#",t.attrs.level)," ")),e.renderInline(t),e.closeBlock(t)},bulletList:function(e,t){e.renderList(t," ",function(){return"".concat(t.attrs.bullet||"*"," ")})},orderedList:function(e,t){var n=t.attrs.order||1,r=String(n+t.childCount-1).length,o=e.repeat(" ",r+2);e.renderList(t,o,function(t){var o=String(n+t);return"".concat(e.repeat(" ",r-o.length)+o,". ")})},listItem:function(e,t){e.renderContent(t)},paragraph:function(e,t){e.renderInline(t),e.closeBlock(t)},image:function(e,t){e.write("![".concat(e.esc(t.attrs.alt||""),"](").concat(e.esc(t.attrs.src)).concat(t.attrs.title?" ".concat(e.quote(t.attrs.title)):"",")"))},hardBreak:function(e,t,n,r){for(var o=r+1;o":"](".concat(e.esc(t.attrs.href)).concat(t.attrs.title?" ".concat(e.quote(t.attrs.title)):"",")")}},code:{open:function(e,t,n,r){return hn(n.child(r),-1)},close:function(e,t,n,r){return hn(n.child(r-1),1)},escape:!1}});e.exports=function e(t){var n=this,r=t.licenseKey;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.validLicense=!1,this.convertToMarkdown=function(e){if(!n.validLicense)throw Error("Please get license to use advance plugins !");if("{}"===JSON.stringify(e))return"";var t=tr.nodeFromJSON(e);return ir.serialize(t)},this.convertFromMarkdown=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!n.validLicense)throw Error("Please get license to use advance plugins !");return nr.parse(e)},r&&(this.validLicense=!0),Z.get("https://licencecheck.herokuapp.com/licenceCheck",{licenseKey:r,plugin:"markdown-converter"}).then(function(e){"FAIL"===e.data.status&&(n.validLicense=!1)})}}).call(this,n(48))},function(t,o,a){"use strict";var s=a(3),u=a(2),d=a(22);function r(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=function(e,t,n){this.step=e,this.inverted=t,this.origin=n},h=function(e,t){this.version=e,this.unconfirmed=t},v=new s.PluginKey("collab");function p(e){return void 0===e&&(e={}),e={version:e.version||0,clientID:null==e.clientID?Math.floor(4294967295*Math.random()):e.clientID},new s.Plugin({key:v,state:{init:function(){return new h(e.version,[])},apply:function(e,t){return e.getMeta(v)||(e.docChanged?new h(t.version,t.unconfirmed.concat(function(e){for(var t=[],n=0;n=0;r--)n.step(e[r].inverted);for(var o=0;oe)break;var l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){var p=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);return n?p:new b(p,t<0?e!=s:e!=u,e==(t<0?s:u)?null:a/3+(e-s)*y)}r+=c-l}return n?e+r:new b(e+r)},w.prototype.touches=function(e,t){for(var n=0,r=l(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;ae)break;var c=this.ranges[a+o];if(e<=s+c&&a==3*r)return!0;n+=this.ranges[a+i]-c}return!1},w.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},k.prototype.invert=function(){var e=new k;return e.appendMappingInverted(this),e},k.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;no&&a0},x.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(x.prototype,S);var E=Object.create(null),O=function(){};O.prototype.apply=function(e){return g()},O.prototype.getMap=function(){return w.empty},O.prototype.invert=function(e){return g()},O.prototype.map=function(e){return g()},O.prototype.merge=function(e){return null},O.prototype.toJSON=function(){return g()},O.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=E[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},O.jsonID=function(e,t){if(e in E)throw new RangeError("Duplicate use of step JSON ID "+e);return E[e]=t,t.prototype.jsonID=e,t};var M=function(e,t){this.doc=e,this.failed=t};M.ok=function(e){return new M(e,null)},M.fail=function(e){return new M(null,e)},M.fromReplace=function(e,t,n,r){try{return M.ok(e.replace(t,n,r))}catch(e){if(e instanceof u.ReplaceError)return M.fail(e.message);throw e}};var A=function(e){function n(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.apply=function(e){return this.structure&&C(e,this.from,this.to)?M.fail("Structure replace would overwrite content"):M.fromReplace(e,this.from,this.to,this.slice)},n.prototype.getMap=function(){return new w([this.from,this.to-this.from,this.slice.size])},n.prototype.invert=function(e){return new n(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},n.prototype.map=function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted?null:new n(t.pos,Math.max(t.pos,r.pos),this.slice)},n.prototype.merge=function(e){if(!(e instanceof n)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?u.Slice.empty:new u.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new n(e.from,this.to,t,this.structure)}var r=this.slice.size+e.slice.size==0?u.Slice.empty:new u.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new n(this.from,this.to+(e.to-e.from),r,this.structure)},n.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},n.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new n(t.from,t.to,u.Slice.fromJSON(e,t.slice),!!t.structure)},n}(O);O.jsonID("replace",A);var T=function(e){function n(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.apply=function(e){if(this.structure&&(C(e,this.from,this.gapFrom)||C(e,this.gapTo,this.to)))return M.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return M.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?M.fromReplace(e,this.from,this.to,n):M.fail("Content does not fit in gap")},n.prototype.getMap=function(){return new w([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},n.prototype.invert=function(e){var t=this.gapTo-this.gapFrom;return new n(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},n.prototype.map=function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deleted&&r.deleted||or.pos?null:new n(t.pos,r.pos,o,i,this.slice,this.insert,this.structure)},n.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},n.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new n(t.from,t.to,t.gapFrom,t.gapTo,u.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)},n}(O);function C(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function F(e,t,n){for(var r=[],o=0;ot;d--)f||n.index(d)>0?(f=!0,c=u.Fragment.from(n.node(d).copy(c)),p++):s--;for(var h=u.Fragment.empty,m=0,g=o,v=!1;g>t;g--)v||r.after(g+1)=0;r--)n=u.Fragment.from(t[r].type.create(t[r].attrs,n));var o=e.start,i=e.end;return this.step(new T(o,i,o,i,new u.Slice(n,0,0),t.length,!0))},x.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var a=o.mapping.slice(i),s=a.map(t,1),l=a.map(t+e.nodeSize,1);return o.step(new T(s,l,s+1,l-1,new u.Slice(u.Fragment.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}}),this},x.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new T(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new u.Slice(u.Fragment.from(i),0,0),1,!0))},x.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=u.Fragment.empty,i=u.Fragment.empty,a=r.depth,s=r.depth-t,l=t-1;a>s;a--,l--){o=u.Fragment.from(r.node(a).copy(o));var c=n&&n[l];i=u.Fragment.from(c?c.type.create(c.attrs,i):r.node(a).copy(i))}return this.step(new A(e,e,new u.Slice(o.append(i),t,t),!0))},x.prototype.join=function(e,t){void 0===t&&(t=1);var n=new A(e-t,e+t,u.Slice.empty,!0);return this.step(n)};var P=function(e){function n(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new u.Slice(F(n.content,function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e},o),n.openStart,n.openEnd);return M.fromReplace(e,this.from,this.to,i)},n.prototype.invert=function(){return new L(this.from,this.to,this.mark)},n.prototype.map=function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)},n.prototype.merge=function(e){if(e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},n.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},n.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))},n}(O);O.jsonID("addMark",P);var L=function(e){function n(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new u.Slice(F(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))}),n.openStart,n.openEnd);return M.fromReplace(e,this.from,this.to,r)},n.prototype.invert=function(){return new P(this.from,this.to,this.mark)},n.prototype.map=function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)},n.prototype.merge=function(e){if(e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},n.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},n.fromJSON=function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))},n}(O);function N(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}O.jsonID("removeMark",L),x.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var p=Math.max(l,e),d=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h=0;f--)this.step(o[f]);return this},x.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=u.Slice.empty);var r=function(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=u.Slice.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return N(o,i,r)?new A(t,n,r):new B(o,i,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},x.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new u.Slice(u.Fragment.from(n),0,0))},x.prototype.delete=function(e,t){return this.replace(e,t,u.Slice.empty)},x.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var B=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=u.Fragment.empty;for(var i=e.depth;i>0;i--)this.placed=u.Fragment.from(e.node(i).copy(this.placed))},q={depth:{configurable:!0}};function R(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(R(e.firstChild.content,t-1,n)))}function z(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(z(e.lastChild.content,t-1,n)))}function I(e,t){for(var n=0;n1&&(r=r.replaceChild(0,D(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(u.Fragment.empty,!0)))),e.copy(r)}function J(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(var r=a;rr){var a=o.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(u.Fragment.empty,!0))}return e}function j(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(ot.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}q.depth.get=function(){return this.frontier.length-1},B.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;for(var i=this.placed,a=r.depth,s=o.depth;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;var l=new u.Slice(i,a,s);return t>-1?new T(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new A(r.pos,o.pos,l):void 0},B.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=I(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],a=i.type,s=i.match,l=void 0,c=void 0;if(1==e&&(r?s.matchType(r.type)||(c=s.fillBefore(u.Fragment.from(r),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&r&&(l=s.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:l};if(n&&s.matchType(n.type))break}},B.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=I(t,n);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new u.Slice(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),0))},B.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=I(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new u.Slice(R(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new u.Slice(R(t,n,1),n,r)},B.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a1||0==c||y.content.size)&&(h=b,d.push(D(y.mark(m.allowedMarks(y.marks)),1==p?c:0,p==l.childCount?v:-1)))}var w=p==l.childCount;w||(v=-1),w&&v<0&&r&&r.type==this.frontier[this.depth].type?this.closeFrontierNode():this.frontier[n].match=h;for(var k=0,x=l;k1&&r==this.$to.end(--n);)++r;return r},B.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t=0;s--){var l=this.frontier[s],c=l.match,u=J(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},B.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=z(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e},B.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=z(this.placed,this.depth,u.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},B.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(u.Fragment.empty,!0);e.childCount&&(this.placed=z(this.placed,this.frontier.length,e))},Object.defineProperties(B.prototype,q),x.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(N(r,o,n))return this.step(new A(e,t,n));var i=j(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var a=-(r.depth+1);i.unshift(a);for(var s=r.depth,l=r.pos-1;s>0;s--,l--){var c=r.node(s).type.spec;if(c.defining||c.isolating)break;i.indexOf(s)>-1?a=s:r.before(s)==l&&i.splice(1,0,-s)}for(var p=i.indexOf(a),d=[],f=n.openStart,h=n.content,m=0;;m++){var g=h.firstChild;if(d.push(g),m==n.openStart)break;h=g.content}f>0&&d[f-1].type.spec.defining&&r.node(p).type!=d[f-1].type?f-=1:f>=2&&d[f-1].isTextblock&&d[f-2].type.spec.defining&&r.node(p).type!=d[f-2].type&&(f-=2);for(var v=n.openStart;v>=0;v--){var y=(v+f+1)%(n.openStart+1),b=d[y];if(b)for(var w=0;w=0&&(this.replace(e,t,n),!(this.steps.length>E));O--){var R=i[O];O<0||(e=r.before(R),t=o.after(R))}return this},x.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var U=new s.PluginKey("collaborative"),V=new s.Plugin({key:U,state:{init:function(){return{deco:d.DecorationSet.empty}},apply:function(e,t,n,r){var o=e.getMeta("collab-users-update");if(o){var i=[];return o.filter(function(e){return e.selection}).forEach(function(t){var n=t.name,r=t.color,o=t.selection;try{if(e.doc.nodeSize>o.head){var a=s.Selection.near(e.doc.resolve(o.head)),l=document.createElement("span");l.className="nib-user-selection";var c=document.createElement("span");c.className="nib-user-name",c.innerText=n[0],c.style.backgroundColor=r,l.appendChild(c);var u=document.createElement("span");u.className="nib-user-name-full",u.innerText=n,u.style.backgroundColor=r,l.appendChild(u);var p,f,h=document.createElement("span");h.className="nib-user-cursor",h.style.backgroundColor=r,l.appendChild(h),i.push(d.Decoration.widget(a.head,l,{key:"key-".concat(n,"-").concat(a.head)})),a.anchor!==a.head&&(a.anchor0&&(this.refs[t]--,0===this.refs[t]&&this.sheets[t].detach()):(0,o.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function get(){return this.keys.length}}]),SheetsManager}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function cloneStyle(e){if(null==e)return e;var t=void 0===e?"undefined":r(e);if("string"===t||"number"===t||"function"===t)return e;if(i(e))return e.map(cloneStyle);if((0,o.default)(e))return e;var n={};for(var a in e){var s=e[a];"object"!==(void 0===s?"undefined":r(s))?n[a]=s:n[a]=cloneStyle(s)}return n};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(124));var i=Array.isArray},function(e,t,n){"use strict";n.r(t),function(e,r){var o,i=n(173);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.default=a}.call(this,n(44),n(208)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});e.CSS;t.default=function(e){return e}}).call(this,n(44))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==e[n]&&(e[n]=0),t.default=e[n]++}).call(this,n(44))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?v.default:g.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function createStyleSheet(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!=typeof n&&(n=0===d.default.index?0:d.default.index+1);var r=new s.default(e,o({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function removeStyleSheet(e){return e.detach(),d.default.remove(e),this}},{key:"createRule",value:function createRule(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":r(e))&&(n=t,t=e,e=void 0);var o=n;o.jss=this,o.Renderer=this.options.Renderer,o.generateClassName||(o.generateClassName=this.generateClassName),o.classes||(o.classes={});var i=(0,m.default)(e,t,o);return!o.selector&&i instanceof f.default&&(i.selector="."+o.generateClassName(i)),this.plugins.onProcessRule(i),i}},{key:"use",value:function use(){for(var e=this,t=arguments.length,n=Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),KeyframesRule}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),ConditionalRule}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)},function(e){if(e.type===u)return e.selectorText;if(e.type===p){var t=e.name;if(t)return"@keyframes "+t;var n=e.cssText;return"@"+c(n,n.indexOf("keyframes"))}return c(e.cssText)});function setSelector(e,t){return e.selectorText=t,e.selectorText===t}var f,h,m=l(function(){return document.head||document.getElementsByTagName("head")[0]}),g=(f=void 0,h=!1,function(e){var t={};f||(f=document.createElement("style"));for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function findHighestSheet(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function findCommentNode(e){for(var t=m(),n=0;n0){var n=findHigherSheet(t,e);if(n)return n.renderer.element;if(n=findHighestSheet(t,e))return n.renderer.element.nextElementSibling}var r=e.insertionPoint;if(r&&"string"==typeof r){var a=findCommentNode(r);if(a)return a.nextSibling;(0,o.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}function insertStyle(e,t){var n=t.insertionPoint,r=findPrevNode(t);if(r){var i=r.parentNode;i&&i.insertBefore(e,r)}else if(n&&"number"==typeof n.nodeType){var a=n,s=a.parentNode;s?s.insertBefore(e,a.nextSibling):(0,o.default)(!1,"[JSS] Insertion point is not in the DOM.")}else m().insertBefore(e,r)}var v=l(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),y=function(){function DomRenderer(e){_classCallCheck(this,DomRenderer),this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.getKey=d,this.getUnescapedKeysMap=g,this.hasInsertedRules=!1,e&&i.default.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||document.createElement("style"),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var a=v();a&&this.element.setAttribute("nonce",a)}return r(DomRenderer,[{key:"attach",value:function attach(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),insertStyle(this.element,this.sheet.options))}},{key:"detach",value:function detach(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function deploy(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function insertRule(e,t){var n=this.element.sheet,r=n.cssRules,i=e.toString();if(t||(t=r.length),!i)return!1;try{n.insertRule(i,t)}catch(t){return(0,o.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return this.hasInsertedRules=!0,r[t]}},{key:"deleteRule",value:function deleteRule(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)}},{key:"indexOf",value:function indexOf(e){for(var t=this.element.sheet.cssRules,n=0;nt}return!1}function B(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new B(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new B(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new B(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new B(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){R[e]=new B(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new B(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new B(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new B(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new B(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function pa(e){return e[1].toUpperCase()}function qa(e,t,n,r){var o=R.hasOwnProperty(t)?R[t]:null;(null!==o?0===o.type:!r&&(2--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Na(e):""}function Qa(e){switch(e.tag){case 5:return Na(e.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return e=Pa(e.type,!1);case 11:return e=Pa(e.type.render,!1);case 22:return e=Pa(e.type._render,!1);case 1:return e=Pa(e.type,!0);default:return""}}function Ra(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L:return"Fragment";case P:return"Portal";case F:return"Profiler";case N:return"StrictMode";case U:return"Suspense";case V:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case q:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case z:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case W:return Ra(e.type);case K:return Ra(e._render);case $:t=e._payload,e=e._init;try{return Ra(e(t))}catch(e){}}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ta(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ua(e){var t=Ta(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ta(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Xa(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ya(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Za(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Sa(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $a(e,t){null!=(t=t.checked)&&qa(e,"checked",t,!1)}function ab(e,t){$a(e,t);var n=Sa(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?bb(e,t.type,n):t.hasOwnProperty("defaultValue")&&bb(e,t.type,Sa(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function cb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function bb(e,t,n){"number"===t&&Xa(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function db(e){var t="";return i.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function eb(e,t){return e=a({children:void 0},t),(t=db(t.children))&&(e.children=t),e}function fb(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(y(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function ib(e,t){var n=Sa(t.value),r=Sa(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lb(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,pe,de=(pe=function(e,t){if(e.namespaceURI!==le.svg||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return pe(e,t)})}:pe);function pb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function sb(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function tb(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=sb(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){ye.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var be=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(y(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(y(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(y(62))}}function wb(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,xe=null,Se=null;function Bb(e){if(e=Cb(e)){if("function"!=typeof we)throw Error(y(280));var t=e.stateNode;t&&(t=Db(t),we(e.stateNode,e.type,t))}}function Eb(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Fb(){if(xe){var e=xe,t=Se;if(Se=xe=null,Bb(e),t)for(e=0;e(r=31-kt(r))?0:1<n;n++)t.push(e);return t}function $c(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-kt(t)]=n}var kt=Math.clz32?Math.clz32:function ad(e){return 0===e?32:31-(xt(e)/Ct|0)|0},xt=Math.log,Ct=Math.LN2;var St=s.unstable_UserBlockingPriority,Et=s.unstable_runWithPriority,_t=!0;function gd(e,t,n,r){Re||Ib();var o=hd,i=Re;Re=!0;try{Hb(o,e,t,n,r)}finally{(Re=i)||Mb()}}function id(e,t,n,r){Et(St,hd.bind(null,e,t,n,r))}function hd(e,t,n,r){var o;if(_t)if((o=0==(4&t))&&0=en),rn=String.fromCharCode(32),on=!1;function ge(e,t){switch(e){case"keyup":return-1!==Yt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var an=!1;function je(e,t){switch(e){case"compositionend":return he(t);case"keypress":return 32!==t.which?null:(on=!0,rn);case"textInput":return(e=t.data)===rn&&on?null:e;default:return null}}function ke(e,t){if(an)return"compositionend"===e||!Qt&&ge(e,t)?(e=nd(),Mt=Rt=Ot=null,an=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ke(r)}}function Me(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Me(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ne(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Xa((e=t.contentWindow).document)}return t}function Oe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=v&&"documentMode"in document&&11>=document.documentMode,vn=null,yn=null,bn=null,wn=!1;function Ue(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wn||null==vn||vn!==Xa(r)||("selectionStart"in(r=vn)&&Oe(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},bn&&Je(bn,r)||(bn=r,0<(r=oe(yn,"onSelect")).length&&(t=new Lt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vn)))}Pc("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pc("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pc(bt,2);for(var kn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xn=0;xnjn||(e.current=Fn[jn],Fn[jn]=null,jn--)}function I(e,t){Fn[++jn]=e.current,e.current=t}var In={},Bn=Bf(In),qn=Bf(!1),zn=In;function Ef(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ff(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Gf(){H(qn),H(Bn)}function Hf(e,t,n){if(Bn.current!==In)throw Error(y(168));I(Bn,t),I(qn,n)}function If(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(y(108,Ra(t)||"Unknown",o));return a({},n,r)}function Jf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,zn=Bn.current,I(Bn,e),I(qn,qn.current),!0}function Kf(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=If(e,t,zn),r.__reactInternalMemoizedMergedChildContext=e,H(qn),H(Bn),I(Bn,e)):H(qn),I(qn,n)}var Un=null,Vn=null,Wn=s.unstable_runWithPriority,Hn=s.unstable_scheduleCallback,$n=s.unstable_cancelCallback,Kn=s.unstable_shouldYield,Jn=s.unstable_requestPaint,Gn=s.unstable_now,Xn=s.unstable_getCurrentPriorityLevel,Zn=s.unstable_ImmediatePriority,Yn=s.unstable_UserBlockingPriority,Qn=s.unstable_NormalPriority,er=s.unstable_LowPriority,tr=s.unstable_IdlePriority,nr={},rr=void 0!==Jn?Jn:function(){},or=null,ir=null,ar=!1,sr=Gn(),lr=1e4>sr?Gn:function(){return Gn()-sr};function eg(){switch(Xn()){case Zn:return 99;case Yn:return 98;case Qn:return 97;case er:return 96;case tr:return 95;default:throw Error(y(332))}}function fg(e){switch(e){case 99:return Zn;case 98:return Yn;case 97:return Qn;case 96:return er;case 95:return tr;default:throw Error(y(332))}}function gg(e,t){return e=fg(e),Wn(e,t)}function hg(e,t,n){return e=fg(e),Hn(e,t,n)}function ig(){if(null!==ir){var e=ir;ir=null,$n(e)}jg()}function jg(){if(!ar&&null!==or){ar=!0;var e=0;try{var t=or;gg(99,function(){for(;el?(u=s,s=null):u=s.sibling;var h=p(e,s,r[l],o);if(null===h){null===s&&(s=u);break}t&&s&&null===h.alternate&&b(e,s),n=f(h,n,l),null===a?i=h:a.sibling=h,a=h,s=u}if(l===r.length)return c(e,s),i;if(null===s){for(;ll?(u=s,s=null):u=s.sibling;var m=p(e,s,h.value,o);if(null===m){null===s&&(s=u);break}t&&s&&null===m.alternate&&b(e,s),n=f(m,n,l),null===a?i=m:a.sibling=m,a=m,s=u}if(h.done)return c(e,s),i;if(null===s){for(;!h.done;l++,h=r.next())null!==(h=A(e,h.value,o))&&(n=f(h,n,l),null===a?i=h:a.sibling=h,a=h);return i}for(s=d(e,s);!h.done;l++,h=r.next())null!==(h=C(s,e,l,h.value,o))&&(t&&null!==h.alternate&&s.delete(null===h.key?l:h.key),n=f(h,n,l),null===a?i=h:a.sibling=h,a=h);return t&&s.forEach(function(t){return b(e,t)}),i}return function(t,n,r,o){var i="object"==typeof r&&null!==r&&r.type===L&&null===r.key;i&&(r=r.props.children);var a="object"==typeof r&&null!==r;if(a)switch(r.$$typeof){case D:e:{for(a=r.key,i=n;null!==i;){if(i.key===a){switch(i.tag){case 7:if(r.type===L){c(t,i.sibling),(n=e(i,r.props.children)).return=t,t=n;break e}break;default:if(i.elementType===r.type){c(t,i.sibling),(n=e(i,r.props)).ref=Qg(t,i,r),n.return=t,t=n;break e}}c(t,i);break}b(t,i),i=i.sibling}r.type===L?((n=Xg(r.props.children,t.mode,o,r.key)).return=t,t=n):((o=Vg(r.type,r.key,r.props,null,t.mode,o)).ref=Qg(t,n,r),o.return=t,t=o)}return g(t);case P:e:{for(i=r.key;null!==n;){if(n.key===i){if(4===n.tag&&n.stateNode.containerInfo===r.containerInfo&&n.stateNode.implementation===r.implementation){c(t,n.sibling),(n=e(n,r.children||[])).return=t,t=n;break e}c(t,n);break}b(t,n),n=n.sibling}(n=Wg(r,t.mode,o)).return=t,t=n}return g(t)}if("string"==typeof r||"number"==typeof r)return r=""+r,null!==n&&6===n.tag?(c(t,n.sibling),(n=e(n,r)).return=t,t=n):(c(t,n),(n=Ug(r,t.mode,o)).return=t,t=n),g(t);if(vr(r))return x(t,n,r,o);if(La(r))return w(t,n,r,o);if(a&&Rg(t,r),void 0===r&&!i)switch(t.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,Ra(t.type)||"Component"))}return c(t,n)}}var yr=Sg(!0),br=Sg(!1),wr={},kr=Bf(wr),xr=Bf(wr),Cr=Bf(wr);function dh(e){if(e===wr)throw Error(y(174));return e}function eh(e,t){switch(I(Cr,t),I(xr,e),I(kr,wr),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mb(null,"");break;default:t=mb(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}H(kr),I(kr,t)}function fh(){H(kr),H(xr),H(Cr)}function gh(e){dh(Cr.current);var t=dh(kr.current),n=mb(t,e.type);t!==n&&(I(xr,e),I(kr,n))}function hh(e){xr.current===e&&(H(kr),H(xr))}var Sr=Bf(0);function ih(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Er=null,_r=null,Or=!1;function mh(e,t){var n=nh(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function oh(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ph(e){if(Or){var t=_r;if(t){var n=t;if(!oh(e,t)){if(!(t=rf(n.nextSibling))||!oh(e,t))return e.flags=-1025&e.flags|2,Or=!1,void(Er=e);mh(Er,n)}Er=e,_r=rf(t.firstChild)}else e.flags=-1025&e.flags|2,Or=!1,Er=e}}function qh(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Er=e}function rh(e){if(e!==Er)return!1;if(!Or)return qh(e),Or=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!nf(t,e.memoizedProps))for(t=_r;t;)mh(e,t),t=rf(t.nextSibling);if(qh(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(y(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_r=rf(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_r=null}}else _r=Er?rf(e.stateNode.nextSibling):null;return!0}function sh(){_r=Er=null,Or=!1}var Rr=[];function uh(){for(var e=0;ei))throw Error(y(301));i+=1,Lr=Pr=null,t.updateQueue=null,Mr.current=qr,e=n(r,o)}while(Fr)}if(Mr.current=jr,t=null!==Pr&&null!==Pr.next,Tr=0,Lr=Pr=Dr=null,Nr=!1,t)throw Error(y(300));return e}function Hh(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Lr?Dr.memoizedState=Lr=e:Lr=Lr.next=e,Lr}function Ih(){if(null===Pr){var e=Dr.alternate;e=null!==e?e.memoizedState:null}else e=Pr.next;var t=null===Lr?Dr.memoizedState:Lr.next;if(null!==t)Lr=t,Pr=e;else{if(null===e)throw Error(y(310));e={memoizedState:(Pr=e).memoizedState,baseState:Pr.baseState,baseQueue:Pr.baseQueue,queue:Pr.queue,next:null},null===Lr?Dr.memoizedState=Lr=e:Lr=Lr.next=e}return Lr}function Jh(e,t){return"function"==typeof t?t(e):t}function Kh(e){var t=Ih(),n=t.queue;if(null===n)throw Error(y(311));n.lastRenderedReducer=e;var r=Pr,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=a=i=null,l=o;do{var c=l.lane;if((Tr&c)===c)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(a=s=u,i=r):s=s.next=u,Dr.lanes|=c,lo|=c}l=l.next}while(null!==l&&l!==o);null===s?i=r:s.next=a,hn(r,t.memoizedState)||(Ur=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Lh(e){var t=Ih(),n=t.queue;if(null===n)throw Error(y(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);hn(i,t.memoizedState)||(Ur=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Mh(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Tr&e)===e)&&(t._workInProgressVersionPrimary=r,Rr.push(t))),e)return n(t._source);throw Rr.push(t),Error(y(350))}function Nh(e,t,n,r){var o=eo;if(null===o)throw Error(y(349));var i=t._getVersion,a=i(t._source),s=Mr.current,l=s.useState(function(){return Mh(o,t,n)}),c=l[1],u=l[0];l=Lr;var p=e.memoizedState,d=p.refs,f=d.getSnapshot,h=p.source;p=p.subscribe;var m=Dr;return e.memoizedState={refs:d,source:t,subscribe:r},s.useEffect(function(){d.getSnapshot=n,d.setSnapshot=c;var e=i(t._source);if(!hn(a,e)){e=n(t._source),hn(u,e)||(c(e),e=Ig(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,s=e;0n?98:n,function(){e(!0)}),gg(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Dn]=t,e[Pn]=r,Vr(e,t,!1,!1),t.stateNode=e,s=wb(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;oho&&(t.flags|=64,i=!0,Fi(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=ih(s))){if(t.flags|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Fi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Or)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*lr()-r.renderingStartTime>ho&&1073741824!==n&&(t.flags|=64,i=!0,Fi(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=lr(),n.sibling=null,t=Sr.current,I(Sr,i?1&t|2:1&t),n):null;case 23:case 24:return Ki(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(y(156,t.tag))}function Li(e){switch(e.tag){case 1:Ff(e.type)&&Gf();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(fh(),H(qn),H(Bn),uh(),0!=(64&(t=e.flags)))throw Error(y(285));return e.flags=-4097&t|64,e;case 5:return hh(e),null;case 13:return H(Sr),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return H(Sr),null;case 4:return fh(),null;case 10:return rg(e),null;case 23:case 24:return Ki(),null;default:return null}}function Mi(e,t){try{var n="",r=t;do{n+=Qa(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function Ni(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}Vr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wr=function(){},Hr=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,dh(kr.current);var i,s=null;switch(n){case"input":o=Ya(e,o),r=Ya(e,r),s=[];break;case"option":o=eb(e,o),r=eb(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=gb(e,o),r=gb(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jf)}for(u in vb(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(m.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(m.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&G("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===J?c.toString():(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},$r=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jr="function"==typeof WeakMap?WeakMap:Map;function Pi(e,t,n){(n=zg(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vo||(vo=!0,yo=r),Ni(0,t)},n}function Si(e,t,n){(n=zg(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Ni(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===bo?bo=new Set([this]):bo.add(this),Ni(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Gr="function"==typeof WeakSet?WeakSet:Set;function Vi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Wi(e,t)}else t.current=null}function Xi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:lg(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qf(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(y(163))}function Yi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Zi(n,e),$i(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:lg(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Eg(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Eg(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&mf(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Cc(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163))}function aj(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=sb("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bj(e,t){if(Vn&&"function"==typeof Vn.onCommitFiberUnmount)try{Vn.onCommitFiberUnmount(Un,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Zi(t,n);else{r=t;try{o()}catch(e){Wi(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Vi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Wi(t,e)}break;case 5:Vi(t);break;case 4:cj(e,t)}}function dj(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ej(e){return 5===e.tag||3===e.tag||4===e.tag}function fj(e){e:{for(var t=e.return;null!==t;){if(ej(t))break e;t=t.return}throw Error(y(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(y(161))}16&n.flags&&(pb(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ej(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?gj(e,n,t):hj(e,n,t)}function gj(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=jf));else if(4!==r&&null!==(e=e.child))for(gj(e,t,n),e=e.sibling;null!==e;)gj(e,t,n),e=e.sibling}function hj(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(hj(e,t,n),e=e.sibling;null!==e;)hj(e,t,n),e=e.sibling}function cj(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(y(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var a=e,s=o,l=s;;)if(bj(a,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(a=n,s=o.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bj(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ij(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Pn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&$a(n,r),wb(e,o),t=wb(e,r),o=0;oo&&(o=a),n&=~i}if(n=o,10<(n=(120>(n=lr()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xr(n/1960))-n)){e.timeoutHandle=Rn(Uj.bind(null,e),n);break}Uj(e);break;case 5:Uj(e);break;default:throw Error(y(329))}}return Mj(e,lr()),e.callbackNode===t?Nj.bind(null,e):null}function Ii(e,t){for(t&=~uo,t&=~co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==io&&(io=2),l=Mi(l,s),d=a;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,Bg(d,Pi(0,i,t));break e;case 1:i=l;var k=d.type,x=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===bo||!bo.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,Bg(d,Si(d,i,t));break e}}d=d.return}while(null!==d)}Zj(n)}catch(e){t=e,to===n&&null!==n&&(to=n=n.return);continue}break}}function Pj(){var e=Zr.current;return Zr.current=jr,null===e?jr:e}function Tj(e,t){var n=Qr;Qr|=16;var r=Pj();for(eo===e&&no===t||Qj(e,t);;)try{ak();break}catch(t){Sj(e,t)}if(qg(),Qr=n,Zr.current=r,null!==to)throw Error(y(261));return eo=null,no=0,io}function ak(){for(;null!==to;)bk(to)}function Rj(){for(;null!==to&&!Kn();)bk(to)}function bk(e){var t=mo(e.alternate,e,ro);e.memoizedProps=e.pendingProps,null===t?Zj(e):to=t,Yr.current=null}function Zj(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Gi(n,t,ro)))return void(to=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&ro)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=x,x=s),s=Le(b,x),i=Le(b,a),s&&i&&(1!==k.rangeCount||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==i.node||k.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),k.removeAllRanges(),x>a?(k.addRange(w),k.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;blr()-fo?Qj(e,0):uo|=n),Mj(e,t)}function lj(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===eg()?1:2:(0===Mo&&(Mo=so),0===(t=Yc(62914560&~Mo))&&(t=4194304))),n=Hg(),null!==(e=Kj(e,t))&&($c(e,t,n),Mj(e,n))}function ik(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function nh(e,t,n,r){return new ik(e,t,n,r)}function ji(e){return!(!(e=e.prototype)||!e.isReactComponent)}function hk(e){if("function"==typeof e)return ji(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===z)return 11;if(e===W)return 14}return 2}function Tg(e,t){var n=e.alternate;return null===n?((n=nh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vg(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)ji(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case L:return Xg(n.children,o,i,t);case X:a=8,o|=16;break;case N:a=8,o|=1;break;case F:return(e=nh(12,n,t,8|o)).elementType=F,e.type=F,e.lanes=i,e;case U:return(e=nh(13,n,t,o)).type=U,e.elementType=U,e.lanes=i,e;case V:return(e=nh(19,n,t,o)).elementType=V,e.lanes=i,e;case Z:return vi(n,o,i,t);case Y:return(e=nh(24,n,t,o)).elementType=Y,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:a=10;break e;case q:a=9;break e;case z:a=11;break e;case W:a=14;break e;case $:a=16,r=null;break e;case K:a=22;break e}throw Error(y(130,null==e?e:typeof e,""))}return(t=nh(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Xg(e,t,n,r){return(e=nh(7,e,r,t)).lanes=n,e}function vi(e,t,n,r){return(e=nh(23,e,r,t)).elementType=Z,e.lanes=n,e}function Ug(e,t,n){return(e=nh(6,e,null,t)).lanes=n,e}function Wg(e,t,n){return(t=nh(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jk(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.mutableSourceEagerHydrationData=null}function kk(e,t,n){var r=3=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0I(a,n))void 0!==l&&0>I(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>I(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],S=[],E=1,_=null,O=3,R=!1,M=!1,A=!1;function T(e){for(var t=J(S);null!==t;){if(null===t.callback)K(S);else{if(!(t.startTime<=e))break;K(S),t.sortIndex=t.expirationTime,H(C,t)}t=J(S)}}function U(e){if(A=!1,T(e),!M)if(null!==J(C))M=!0,r(V);else{var t=J(S);null!==t&&o(U,t.startTime-e)}}function V(e,n){M=!1,A&&(A=!1,i()),R=!0;var r=O;try{for(T(n),_=J(C);null!==_&&(!(_.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=_.callback;if("function"==typeof a){_.callback=null,O=_.priorityLevel;var s=a(_.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?_.callback=s:_===J(C)&&K(C),T(n)}else K(C);_=J(C)}if(null!==_)var l=!0;else{var c=J(S);null!==c&&o(U,c.startTime-n),l=!1}return l}finally{_=null,O=r,R=!1}}var D=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||R||(M=!0,r(V))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return J(C)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0s?(e.sortIndex=a,H(S,e),null===J(C)&&e===J(S)&&(A?i():A=!0,o(U,a-s))):(e.sortIndex=l,H(C,e),M||R||(M=!0,r(V))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},function(e,t,n){"use strict";var r=n(233);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(104),o=n(131),i=n(133),a=n(264),s=n(39),l=n(138),c=n(137);e.exports=function baseMerge(e,t,n,u,p){e!==t&&i(t,function(i,l){if(p||(p=new r),s(i))a(e,t,l,n,baseMerge,u,p);else{var d=u?u(c(e,l),i,l+"",e,t,p):void 0;void 0===d&&(d=i),o(e,l,d)}},l)}},function(e,t){e.exports=function listCacheClear(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(72),o=Array.prototype.splice;e.exports=function listCacheDelete(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(72);e.exports=function listCacheGet(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(72);e.exports=function listCacheHas(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(72);e.exports=function listCacheSet(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(71);e.exports=function stackClear(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function stackDelete(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function stackGet(e){return this.__data__.get(e)}},function(e,t){e.exports=function stackHas(e){return this.__data__.has(e)}},function(e,t,n){var r=n(71),o=n(105),i=n(107),a=200;e.exports=function stackSet(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(65),o=n(51),i=n(110),a=n(39);e.exports=function isIterateeCall(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";t.byteLength=function byteLength(e){var t=getLens(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function toByteArray(e){var t,n,r=getLens(e),a=r[0],s=r[1],l=new i(_byteLength(e,a,s)),c=0,u=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function fromByteArray(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function _byteLength(e,t,n){return 3*(t+n)/4-n}function encodeChunk(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,u=-7,p=n?o-1:0,d=n?-1:1,f=e[t+p];for(p+=d,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+p],p+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(t*l-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}},function(e,t,n){var r=n(298);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(46)(!1)).push([e.i,"/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */\n\n/* Tomorrow Comment */\n.hljs-comment,\n.hljs-quote {\n color: #8e908c;\n}\n\n/* Tomorrow Red */\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n color: #c82829;\n}\n\n/* Tomorrow Orange */\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n color: #f5871f;\n}\n\n/* Tomorrow Yellow */\n.hljs-attribute {\n color: #eab700;\n}\n\n/* Tomorrow Green */\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n color: #718c00;\n}\n\n/* Tomorrow Blue */\n.hljs-title,\n.hljs-section {\n color: #4271ae;\n}\n\n/* Tomorrow Purple */\n.hljs-keyword,\n.hljs-selector-tag {\n color: #8959a8;\n}\n\n.hljs {\n display: block;\n overflow-x: auto;\n background: white;\n color: #4d4d4c;\n padding: 0.5em;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(301),o=n(323),i=n(148);e.exports=function baseMatches(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(104),o=n(143),i=1,a=2;e.exports=function baseIsMatch(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var p=n[l];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++l li {\n margin: 8px 0 8px 0 !important;\n}\nnav ul {\n padding-left: 8px !important;\n}\n',""])},function(e,t,n){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(342),o=/^\s+/;e.exports=function baseTrim(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function trimmedEndIndex(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(112),o=n(51),i=n(81);e.exports=function createFind(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(345),o=n(112),i=n(346),a=Math.max;e.exports=function findIndex(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t){e.exports=function baseFindIndex(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i\n\nLicensed features, [licensing details](#/License):\n\n- Table\n- Advance image\n- Video\n- Adding custom plugins\n- Markdown converter\n- Track changes\n- Comments\n- Collaborative editing\n- Access to Nib drive for saving images"}]},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r);n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'### Installing package\n\nPackage can be installed using npm or yarn commands\n\n```js\nnpm i nib-core --save\nyarn add nib-core\n```\n\n
\n
\n\n### Writing editor component\n\n```js\nimport React from \'react\';\nimport Editor from \'nib-core\';\n\nconst MyEditor = () => <Editor />;\n```\n\n
\n
\n\n### Using nib editor in a non-react application\n\nNib editor component can be used in non-react code as below:\n\nHTML:\n\n```html\n<div id="editor" />\n```\n\n
\n\nJAVASCRIPT:\n\n```js\nimport React from \'react\';\nimport ReactDOM from \'react-dom\';\n\nconst MyEditor = () => <Editor />;\nReactDOM.render(<MyEditor />, document.getElementById(\'editor\'));\n```\n\n
\n\nProps as detailed [here](http://www.nibedit.com/index.html#/Props) can be used to configure / customise editor behaviour.'}]},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r);n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Props supported by the editor.\n\n| S.No. | Name | Description |\n| ----- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| 1 | addons | array of plugins for adding functionality to core editor |\n| 2 | autoFocus | to focus editor by default |\n| 3 | config | configuring the plugin, toolbar etc in editor, here are default configurations |\n| 4 | defaultValue | value to initialize editor content |\n| 5 | licenseKey | license key for nib editor |\n| 6 | onChange | callback which is called on any change in the editor |\n| 7 | styleConfig | used to do more detailed style changes in the editor, here is the default |\n| 8 | spellCheck | boolean property to enable default browser spellCheck in the editor |\n| 9 | theme | theming of the editor, here is default theme |'}]},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r);n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Access to Nib's AWS S3 bucket is available with commercial license of Nib. This is used to upload assets like images in editor.\n

\nCheck license details [here](#/License)."}]},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r);n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Basic editor features of Nib and open source these are freely available. But advance features are not open-source, to use any of the following advance features, license is required. A trial period of one month is not charged. Get in touch at contact@nibedit.com for license.\n\nAdvance features include:\n\n1. Tables demo\n2. Advance image demo\n3. Video demo\n4. Custom plugins demo\n5. Markdown converter demo\n6. Tracking changes demo\n7. Comments demo\n8. Collaborative editing demo\n9. Nib drive details\n\nYou can also contact for any support or consulting around Nib.'}]},function(e,t){e.exports=function _arrayWithHoles(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";e.exports=n(360)},function(e,t,n){"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case d:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case c:return e;default:return t}}case i:return t}}}function A(e){return z(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return A(e)||z(e)===p},t.isConcurrentMode=A,t.isContextConsumer=function(e){return z(e)===u},t.isContextProvider=function(e){return z(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return z(e)===f},t.isFragment=function(e){return z(e)===a},t.isLazy=function(e){return z(e)===v},t.isMemo=function(e){return z(e)===g},t.isPortal=function(e){return z(e)===i},t.isProfiler=function(e){return z(e)===l},t.isStrictMode=function(e){return z(e)===s},t.isSuspense=function(e){return z(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===w||e.$$typeof===k||e.$$typeof===y)},t.typeOf=z},function(e,t){function _setPrototypeOf(t,n){return e.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(t,n)}e.exports=_setPrototypeOf},function(e,t){function _typeof(t){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=_typeof=function _typeof(e){return typeof e}:e.exports=_typeof=function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}e.exports=_typeof},function(e,t,n){e.exports=n(364)},function(e,t,n){"use strict";var r=n(35),o=n(157),i=n(365),a=n(163);function createInstance(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=createInstance(n(160));s.Axios=i,s.create=function create(e){return createInstance(a(s.defaults,e))},s.Cancel=n(164),s.CancelToken=n(378),s.isCancel=n(159),s.all=function all(e){return Promise.all(e)},s.spread=n(379),s.isAxiosError=n(380),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(35),o=n(158),i=n(366),a=n(367),s=n(163);function Axios(e){this.defaults=e,this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=Axios},function(e,t,n){"use strict";var r=n(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})},e.exports=InterceptorManager},function(e,t,n){"use strict";var r=n(35),o=n(368),i=n(159),a=n(160);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=o(t.data,t.headers,e.transformResponse),t},function onAdapterRejection(t){return i(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(35);e.exports=function transformData(e,t,n){return r.forEach(n,function transform(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(35);e.exports=function normalizeHeaderName(e,t){r.forEach(e,function processHeader(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(162);e.exports=function settle(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function enhanceError(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},function(e,t,n){"use strict";var r=n(374),o=n(375);e.exports=function buildFullPath(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(35),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function parser(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var n=r.isString(t)?resolveURL(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function isURLSameOrigin(){return!0}},function(e,t,n){"use strict";var r=n(164);function CancelToken(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function promiseExecutor(e){t=e});var n=this;e(function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}},e.exports=CancelToken},function(e,t,n){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function isAxiosError(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){var r=n(382);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(46)(!1)).push([e.i,".nib-pre {\n font-size: 13px;\n line-height: 1.5;\n color: #212121;\n white-space: pre;\n background-color: #f5f5f5;\n padding: 8px 16px;\n border: 1px #e8e8e8 solid;\n border-radius: 3px;\n margin-top: 10px;\n margin-bottom: 16px;\n}\n.nib-pre_collpased {\n height: 0;\n padding: 0;\n overflow: hidden;\n border: none;\n}\n.nib-link_btn {\n font-size: 14px;\n text-decoration: underline;\n border: none;\n cursor: pointer;\n}\n.nib-link_btn:focus {\n outline: none;\n}\n",""])},function(e,t,n){e.exports={description:"\n",displayName:"Basic",methods:[],doclets:{},tags:{},visibleName:"1. Basic",examples:n(384)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Very basic editor with only text editing enabled. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){e.exports={description:"\n",displayName:"Block",methods:[],doclets:{},tags:{},visibleName:"2. Block",examples:n(386)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Grouped in dropdown (default) Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\nUngrouped"},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ---------------------- | ----------- |\n| 1 | Cmd-Alt-0 / Ctrl-Alt-0 | paragraph |\n| 2 | Cmd-Alt-1 / Ctrl-Alt-1 | heading 1 |\n| 3 | Cmd-Alt-2 / Ctrl-Alt-2 | heading 2 |\n| 4 | Cmd-Alt-3 / Ctrl-Alt-3 | heading 3 |\n| 5 | Cmd-Alt-4 / Ctrl-Alt-4 | heading 4 |\n| 6 | Cmd-Alt-5 / Ctrl-Alt-5 | heading 5 |\n| 7 | Cmd-Alt-6 / Ctrl-Alt-6 | heading 6 |"}]},function(e,t,n){e.exports={description:"\n",displayName:"Inline",methods:[],doclets:{},tags:{},visibleName:"3. Inline",examples:n(388)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with inline formatting options enabled. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | -------------------------- | -------------- |\n| 1 | Cmd-b / Ctrl-b | bold |\n| 2 | Cmd-i / Ctrl-i | italic |\n| 3 | Cmd-u / Ctrl-u | underline |\n| 4 | Cmd-Shift-u / Ctrl-Shift-u | strike through |\n| 5 | Cmd-Shift-m / Ctrl-Shift-m | code |"}]},function(e,t,n){e.exports={description:"\n",displayName:"Color",methods:[],doclets:{},tags:{},visibleName:"4. Color",examples:n(390)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with color formatting options - text color, background color enabled Code. Color options can be changed by overriding the defaults [here](https://github.com/nib-edit/Nib/blob/master/packages/core/src/config/editor.js).'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){e.exports={description:"\n",displayName:"Link",methods:[],doclets:{},tags:{},visibleName:"5. Link",examples:n(392)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with Link option enabled. Click the toolbar option to see link creation popup, and click the link to see link editing popup. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | -------------------------- |\n| 1 | Cmd-k / Ctrl-k | show modal for adding link |"}]},function(e,t,n){e.exports={description:"\n",displayName:"Blockquote",methods:[],doclets:{},tags:{},visibleName:"6. Blockquote",examples:n(394)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with blockquote option enabled. Code'},{type:"code",content:"
",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | ----------------- |\n| 1 | Cmd-' | Insert blockquote |"}]},function(e,t,n){e.exports={description:"\n",displayName:"List",methods:[],doclets:{},tags:{},visibleName:"7. List",examples:n(396)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with list option enabled. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | -------------------------- | ------------ |\n| 1 | Cmd-Shift-7 / Ctrl-Shift-7 | ordered list |\n| 2 | Cmd-Shift-8 / Ctrl-Shift-8 | bullet list |\n| 3 | Tab | indent |\n| 4 | Shift-Tab | outdent |"}]},function(e,t,n){e.exports={description:"\n",displayName:"Image",methods:[],doclets:{},tags:{},visibleName:"8. Image",examples:n(398)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with images option enabled. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | ------------ |\n| 1 | Cmd-p | Insert image |"}]},function(e,t,n){e.exports={description:"\n",displayName:"History",methods:[],doclets:{},tags:{},visibleName:"9. History",examples:n(400)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with history option enabled. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | -------------------------- | ----------- |\n| 1 | Cmd-z / Ctrl-z | undo |\n| 2 | Cmd-Shift-z / Ctrl-Shift-z | redo |"}]},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r),i=n(0),a=n.n(i),s=n(12),l=n(16);t.default=function Help(){var e=Object(i.useState)(),t=o()(e,2),n=t[0],r=t[1];return a.a.createElement("div",null,a.a.createElement(s.a,{config:{plugins:{options:"block inline help"},toolbar:{options:"top",top:{options:"block inline help"}}},onChange:r}),a.a.createElement(l.a,{content:n}))}},function(e,t,n){e.exports={description:"\n",displayName:"Help",methods:[],doclets:{},tags:{},visibleName:"10. Help",examples:n(403)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with help option enabled. Click `?` icon to the right to see available keyboard shortcuts. Code'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | -------------- |\n| 1 | Cmd-/ | Open help menu |"}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(12),a={doc:{type:"doc",content:[{type:"paragraph",content:[{type:"text",marks:[{type:"em"}],text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}]}]},selection:{type:"text",anchor:207,head:200}};t.default=function InlineToolbar(){return o.a.createElement("div",{spellCheck:!1,style:{color:"#0000e4"}},o.a.createElement(i.a,{config:{plugins:{options:"block inline link"},toolbar:{options:"inline",inline:{options:"block inline link",block:{options:"p h1 h2",grouped:!1}}}},autoFocus:!0,defaultValue:a,styleConfig:{wrapper:function wrapper(){return{color:"#0000e4",borderTop:"none",borderBottom:"none",borderLeft:"none",borderRight:"none"}},editor:function editor(){return{color:"#0000e4"}}},onChange:function onChange(e){console.log(JSON.stringify(e))}}))}},function(e,t,n){e.exports={description:"\n",displayName:"InlineToolbar",methods:[],doclets:{},tags:{},visibleName:"11. Inline toolbar",examples:n(406)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with inline toolbar which is visible only when there is selection. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){e.exports={description:"\n",displayName:"Themed",methods:[],doclets:{},tags:{},visibleName:"12. Themed",examples:n(408)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Themed editor. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){e.exports={description:"\n",displayName:"FullPage",methods:[],doclets:{},tags:{},visibleName:"13. Full Page",examples:n(410)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'The editor can be used as full page editor with some style changes. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r),i=n(12),a=n(0),s=n.n(a),l=n(56),c=n(2),u=n(13),p=(n(412),new c.Schema({nodes:u.nodes,marks:u.marks}));t.default=function ConvertFromHTMLDemo(){var e=Object(a.useState)('

Hey Nib Editor is rad

'),t=o()(e,2),n=t[0],r=t[1],c=Object(a.useState)(),u=o()(c,2),d=u[0],f=u[1],h=l.a.convertFromHTML(p,n);return Object(a.useEffect)(function(){d&&f(!1)},[d]),s.a.createElement("div",null,s.a.createElement("textarea",{placeholder:"Enter HTML",className:"nib-html_textarea",value:n,onChange:function onChange(e){return r(e.target.value)}}),s.a.createElement("button",{className:"docs_btn nib-html_btn",type:"button",onClick:function onClick(){return f(!0)}},"Update Editor"),!d&&s.a.createElement(i.a,{config:{toolbar:{options:"top"}},defaultValue:h}))}},function(e,t,n){var r=n(413);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(46)(!1)).push([e.i,".nib-html_btn {\n margin: 20px 0;\n display: block;\n}\n.nib-html_textarea {\n width: 75%;\n height: 150px;\n border: 1px solid #e0e0e0;\n resize: none;\n font-size: 14px;\n}\n.nib-html_textarea:focus {\n outline: none;\n}\n",""])},function(e,t,n){e.exports={description:"\n",displayName:"ConvertFromHTMLDemo",methods:[],doclets:{},tags:{},visibleName:"14. Convert from HTML",examples:n(415)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Convert HTML string to editor content. This can not be used at server side. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){var r=n(417);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(47)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(46)(!1)).push([e.i,".nib-html_wrapper {\n position: relative;\n text-align: left;\n border: 1px solid #e0e0e0;\n border-radius: 2px;\n background-color: #ffffff;\n color: #212121;\n font-size: 14px;\n padding: 4px;\n}\n.nib-html_wrapper table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n}\n.nib-html_wrapper th {\n border: 1px solid #e0e0e0;\n background-color: #efefef;\n}\n.nib-html_wrapper td {\n border: 1px solid #e0e0e0;\n}\n.nib-html_wrapper h1 {\n display: block;\n font-size: 2em;\n margin-block-start: 0.67em;\n margin-block-end: 0.67em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n font-weight: bold;\n}\n",""])},function(e,t,n){e.exports={description:"\n",displayName:"ConvertToHTMLDemo",methods:[],doclets:{},tags:{},visibleName:"15. Convert to HTML",examples:n(419)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Convert content to HTML string. Code'},{type:"code",content:"",settings:{},evalInContext:i}]},function(e,t,n){var r=n(156);e.exports=function _arrayWithoutHoles(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){e.exports={description:"\n",displayName:"Table",methods:[],doclets:{},tags:{},visibleName:"16. Table",examples:n(424)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with table option enabled. Click a cell to see cell menu and table menu. Code. [License](#/License).\n
'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | ------------------- |\n| 1 | Cmd-T | Insert table |\n| 2 | Tab | Go to next cell |\n| 3 | Shift-Tab | Go to previous cell |"}]},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r);n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Demo of different uses of Nib Editor."}]},function(e,t,n){e.exports={description:"\n",displayName:"AdvanceImageComponent",methods:[],doclets:{},tags:{},visibleName:"2. Advance Image",examples:n(427)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with advance images option enabled. Code. [License](#/License).\n\nFeatures supported by advance image plugin:\n\n1. Image upload, Nib\'s drive can also be used to save images.\n2. Image resize.\n3. Image drag-drop and copy-paste.\n4. Image alignment.\n\n
'},{type:"code",content:"",settings:{},evalInContext:i},{type:"markdown",content:"
\n
\n\n### Keyboard shortcuts\n\n| S.No. | Keyboard Shortcut | Description |\n| ----- | ----------------- | ------------ |\n| 1 | Cmd-p | Insert image |"}]},function(e,t,n){e.exports=n(429)},function(e,t,n){"use strict";var r=n(36),o=n(165),i=n(430),a=n(171);function createInstance(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=createInstance(n(168));s.Axios=i,s.create=function create(e){return createInstance(a(s.defaults,e))},s.Cancel=n(172),s.CancelToken=n(443),s.isCancel=n(167),s.all=function all(e){return Promise.all(e)},s.spread=n(444),s.isAxiosError=n(445),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(36),o=n(166),i=n(431),a=n(432),s=n(171);function Axios(e){this.defaults=e,this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=Axios},function(e,t,n){"use strict";var r=n(36);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})},e.exports=InterceptorManager},function(e,t,n){"use strict";var r=n(36),o=n(433),i=n(167),a=n(168);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=o(t.data,t.headers,e.transformResponse),t},function onAdapterRejection(t){return i(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(36);e.exports=function transformData(e,t,n){return r.forEach(n,function transform(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(36);e.exports=function normalizeHeaderName(e,t){r.forEach(e,function processHeader(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(170);e.exports=function settle(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function enhanceError(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(36);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},function(e,t,n){"use strict";var r=n(439),o=n(440);e.exports=function buildFullPath(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(36),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function parser(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(36);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var n=r.isString(t)?resolveURL(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function isURLSameOrigin(){return!0}},function(e,t,n){"use strict";var r=n(172);function CancelToken(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function promiseExecutor(e){t=e});var n=this;e(function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}},e.exports=CancelToken},function(e,t,n){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function isAxiosError(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){e.exports={description:"\n",displayName:"Video",methods:[],doclets:{},tags:{},visibleName:"3. Video",examples:n(447)}},function(e,t,n){var r={react:n(0)},o=n(18).bind(null,r),i=n(19).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'Editor with video option enabled. Code. [License](#/License).\n\nCurrently video can be added only using url, upload support is not available. The editor takes care of finding embed URL of videos from Youtube or Vimeo, for other sources URL provided gets included as is into an iFrame source.\n
'},{type:"code",content:"