diff --git a/docs/build/1.3620de2a.js b/docs/build/1.2c24619d.js similarity index 99% rename from docs/build/1.3620de2a.js rename to docs/build/1.2c24619d.js index 2ace6ae7..f6587aa5 100644 --- a/docs/build/1.3620de2a.js +++ b/docs/build/1.2c24619d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1323: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};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 Display(e,t,r){var o=this;this.input=r,o.scrollbarFiller=elt("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=elt("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=eltP("div",null,"CodeMirror-code"),o.selectionDiv=elt("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=elt("div",null,"CodeMirror-cursors"),o.measure=elt("div",null,"CodeMirror-measure"),o.lineMeasure=elt("div",null,"CodeMirror-measure"),o.lineSpace=eltP("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var i=eltP("div",[o.lineSpace],"CodeMirror-lines");o.mover=elt("div",[i],null,"position: relative"),o.sizer=elt("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=elt("div",null,null,"position: absolute; height: "+O+"px; width: 1px;"),o.gutters=elt("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=elt("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=elt("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}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=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=F&&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=F&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}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 B=null;function getBidiPartAt(e,t,n){var r;B=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:B=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:B=o)}return null!=r?r:B}var z=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){V(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 U,j,G=function(){if(a&&s<9)return!1;var e=elt("div");return"draggable"in e||"dragDrop"in e}();function zeroWidthElement(e){if(null==U){var t=elt("span","​");removeChildrenAndAdd(e,elt("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(U=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=U?elt("span","​"):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function hasBadBidiRects(e){if(null!=j)return j;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)&&(j=r.right-n.right<3)}var _,K=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/)},q=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)},X="oncopy"in(_=elt("div"))||(_.setAttribute("oncopy","return;"),"function"==typeof _.oncopy),Y=null;function hasBadZoomedRects(e){if(null!=Y)return Y;var t=removeChildrenAndAdd(e,elt("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return Y=Math.abs(n.left-r.left)>1}var $={},Z={};function defineMode(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$[e]=t}function resolveMode(e){if("string"==typeof e&&Z.hasOwnProperty(e))e=Z[e];else if(e&&"string"==typeof e.name&&Z.hasOwnProperty(e.name)){var t=Z[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=$[t.name];if(!n)return getMode(e,"text/plain");var r=n(e,t);if(J.hasOwnProperty(t.name)){var o=J[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 J={};function extendMode(e,t){var n=J.hasOwnProperty(e)?J[e]:J[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 Q=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};Q.prototype.eol=function(){return this.pos>=this.string.length},Q.prototype.sol=function(){return this.pos==this.lineStart},Q.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Q.prototype.next=function(){if(this.post},Q.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Q.prototype.skipToEnd=function(){this.pos=this.string.length},Q.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Q.prototype.backUp=function(e){this.pos-=e},Q.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},Q.prototype.current=function(){return this.string.slice(this.start,this.pos)},Q.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Q.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Q.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ee=function(e,t){this.state=e,this.lookAhead=t},te=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 te(r,!0,t);var i=findStartLine(e,t,n),a=i>r.first&&getLine(r,i-1).stateAfter,s=a?te.fromSaved(r,a,i):new te(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.")}te.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},te.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}},te.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},te.fromSaved=function(e,t,n){return t instanceof ee?new te(e,copyState(e.mode,t.state),n,t.lookAhead):new te(e,copyState(e.mode,t),n)},te.prototype.save=function(e){var t=!1!==e?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};var ne=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 Q(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 ee?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 ee)||r+o.lookAhead1&&!/ /.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=d=s="",p=null,v=1/0;for(var y=[],b=void 0,x=0;xf||w.collapsed&&C.to==f&&C.from==f)?(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&&!d&&(d=w.title),w.collapsed&&(!p||compareCollapsedMarkers(p.marker,w)<0)&&(p=C)):C.from>f&&v>C.from&&(v=C.from)}if(b)for(var S=0;S=h)break;for(var L=Math.min(h,v);;){if(m){var M=f+m.length;if(!p){var T=M>L?m.slice(0,L-f):m;t.addToken(t,T,a?a+l:l,u,f+T.length==v?c:"",d,s)}if(M>=L){m=m.slice(L-f),f=L;break}f=M,u=""}m=o.slice(i,i=n[g++]),a=interpretTokenStyle(n[g++],t.cm.options)}}else for(var O=1;O2&&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=B,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=!0),i}function coordsChar(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return PosWithInfo(r.first,0,null,!0,-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,!0,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?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}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");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]);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)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=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;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval(function(){return 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||u<-.005)&&(updateLineHeight(o.line,i),updateWidgetHeight(o.line),o.rest))for(var d=0;d=a&&(i=lineAtHeight(t,heightAtLine(getLine(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}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;a(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.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=displayWidth(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),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.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.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),V(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),V(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),V(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:null,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.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)F&&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(!F||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)){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)),F&&(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&&e.options.lineWrapping&&t.oldDisplayWidth!=displayWidth(e)||(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)))&&updateDisplayIfNeeded(e,t);r=!1){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.display.gutters.offsetWidth;e.display.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 updateGutters(e){var t=e.display.gutters,n=e.options.gutters;removeChildren(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}fe.prototype.signal=function(e,t){hasHandler(e,t)&&this.events.push(arguments)},fe.prototype.finish=function(){for(var e=0;es.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 c=l.find(r<0?1:-1),u=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=movePos(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(u=cmp(c,n))&&(r<0?u<0:u>0))return skipAtomicInner(e,c,t,r,o)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=movePos(e,d,r,d.line==t.line?i:null)),d?skipAtomicInner(e,d,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)}}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");F=!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&&V(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(I=!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.title||i.startStyle||i.endStyle||i.css)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 u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),setSelectionNoUndo(t.doc,simpleSelection(n,n)),d)for(var p=0;p=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){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||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),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(),V(o.wrapper.ownerDocument,"mouseup",c),V(o.wrapper.ownerDocument,"mousemove",u),V(o.scroller,"dragstart",d),V(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,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,V(o.wrapper.ownerDocument,"mousemove",f),V(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(t){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.options.gutters[l];return signal(e,n,e,u,d,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 guttersChanged(e){updateGutters(e),regChange(e),alignHorizontally(e)}function dragDropChanged(e,t,n){var r=n&&n!=Be;if(!t!=!r){var o=e.display.dragFunctions,i=t?V: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),setGuttersForLineNumbers(t);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);for(var c in i.wrapper.CodeMirror=this,updateGutters(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(bind(onFocus,this),20):onBlur(this),Re)Re.hasOwnProperty(c)&&Re[c](n,t[c],Be);maybeUpdateLineNumberWidth(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}V(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)}}),V(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),V(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()}),V(t.scroller,"touchcancel",finishTouch),V(t.scroller,"scroll",function(){t.scroller.clientHeight&&(updateScrollTop(e,t.scroller.scrollTop),setScrollLeft(e,t.scroller.scrollLeft,!0),signal(e,"scroll",e))}),V(t.scroller,"mousewheel",function(t){return onScrollWheel(e,t)}),V(t.scroller,"DOMMouseScroll",function(t){return onScrollWheel(e,t)}),V(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();V(o,"keyup",function(t){return onKeyUp.call(e,t)}),V(o,"keydown",operation(e,onKeyDown)),V(o,"keypress",operation(e,onKeyPress)),V(o,"focus",function(t){return onFocus(e,t)}),V(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(p1)if(Ue&&Ue.text.join("\n")==t){if(r.ranges.length%Ue.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),f=p.to();p.empty()&&(n&&n>0?h=Pos(h.line,h.ch-n):e.state.overwrite&&!s?f=Pos(f.line,Math.min(getLine(i,f.line).text.length,f.ch+lst(l).length)):s&&Ue&&Ue.lineWise&&Ue.text.join("\n")==t&&(h=f=Pos(h.line,0))),a=e.curOp.updateInput;var g={from:h,to:f,text:c?c[d%c.length]:l,origin:o||(s?"paste":e.state.cutIncoming?"cut":"+input")};makeChange(e.doc,g),signalLater(e,"inputRead",e,g)}t&&!s&&triggerElectric(e,t),ensureCursorVisible(e),e.curOp.updateInput=a,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;r=e.first+e.size||(t=new Pos(a,t.ch,t.sticky),!(s=getLine(e,a)))))return!1;t=endOfLine(o,e.cm,s,t.line,n)}else t=i;return!0}if("char"==r)moveOnce();else if("column"==r)moveOnce(!0);else if("word"==r||"group"==r)for(var l=null,c="group"==r,u=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||moveOnce(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",h=isWordChar(p,u)?"w":c&&"\n"==p?"n":!c||/\s/.test(p)?null:"p";if(!c||d||h||(h="s"),l&&l!=h){n<0&&(n=1,moveOnce(),t.sticky="after");break}if(h&&(l=h),n>0&&!moveOnce(!d))break}var f=skipAtomic(e,t,i,a,!0);return equalCursorPos(i,f)&&(f.hitSide=!0),f}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=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),V(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),V(o,"paste",function(e){signalDOMEvent(r,e)||handlePaste(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),V(o,"cut",prepareCopyCut),V(o,"copy",prepareCopyCut),V(e.scroller,"paste",function(t){eventInWidget(e,t)||signalDOMEvent(r,t)||(r.state.pasteIncoming=!0,n.focus())}),V(e.lineSpace,"selectstart",function(t){eventInWidget(e,t)||e_preventDefault(t)}),V(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"})}}),V(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.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||q(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,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=o.style.cssText,h=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var f,g=t.wrapper.getBoundingClientRect();if(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&&(f=window.scrollY),r.input.focus(),l&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=!0,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)};V(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=!1,t.wrapper.style.cssText=h,o.style.cssText=p,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},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-\u200f\u2028\u2029\ufeff]/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("rtlMoveVisually",!x),option("wholeLineUpdateBefore",!0),option("theme","default",function(e){themeChanged(e),guttersChanged(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){setGuttersForLineNumbers(e.options),guttersChanged(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){setGuttersForLineNumbers(e.options),guttersChanged(e)},!0),option("firstLineNumber",1,guttersChanged,!0),option("lineNumberFormatter",function(e){return e},guttersChanged,!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("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)&&estimateLineHeights(this),signal(this,"refresh",this)}),swapDoc:methodOp(function(e){var t=this.doc;return t.cm=null,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){Z[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&&(V(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(t){t.save=save,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,save(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(off(e.form,"submit",save),"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=V,e.wheelEventPixels=wheelEventPixels,e.Doc=ke,e.splitLines=K,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=$,e.mimeModes=Z,e.resolveMode=resolveMode,e.getMode=getMode,e.modeExtensions=J,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=Q,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.41.0",CodeMirror}()},1324: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(1323),n(1326),n(1327))},1326: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)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(1323))},1327: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+(?:[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-f]+|o[0-7]+|b[01]+)n?/i))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)return e.skipToEnd(),ret("error","error");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))),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))return;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"),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(typeexpr,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):c&&"namespace"==t?(m.marked="keyword",cont(pushlex("form"),expression,block,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(")"),expression,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(expression):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){return"async"==e?(m.marked="property",cont(objprop)):"variable"==e||"keyword"==m.style?(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))):"number"==e||"string"==e?(m.marked=s?"property":m.style+" property",cont(afterprop)):"jsonld-keyword"==e?cont(afterprop):c&&isModifier(t)?(m.marked="keyword",cont(objprop)):"["==e?cont(expression,maybetype,expect("]"),afterprop):"spread"==e?cont(expressionNoComma,afterprop):"*"==t?(m.marked="keyword",cont(objprop)):":"==e?pass(afterprop):void 0;var n}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():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?cont(typeprop):":"==e?cont(typeexpr):"["==e?cont(expression,maybetype,expect("]"),typeprop):void 0}function typearg(e,t){return"variable"==e&&m.stream.match(/^\s*[?:]/,!1)||"?"==t?cont(typearg):":"==e?cont(typeexpr):pass(typeexpr)}function afterType(e,t){return"<"==t?cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType):"|"==t||"."==e||"&"==t?cont(typeexpr):"["==e?cont(expect("]"),afterType):"extends"==t||"implements"==t?(m.marked="keyword",cont(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():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,expect(")"),poplex):void 0}function forspec1(e){return"var"==e?cont(vardef,expect(";"),forspec2):";"==e?cont(forspec2):"variable"==e?cont(formaybeinof):pass(expression,expect(";"),forspec2)}function formaybeinof(e,t){return"in"==t||"of"==t?(m.marked="keyword",cont(expression)):cont(maybeoperatorComma,forspec2)}function forspec2(e,t){return";"==e?cont(forspec3):"in"==t||"of"==t?(m.marked="keyword",cont(expression)):pass(expression,expect(";"),forspec3)}function forspec3(e){")"!=e&&cont(expression)}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 funarg(e,t){return"@"==t&&cont(expression,funarg),"spread"==e?cont(funarg):c&&isModifier(t)?(m.marked="keyword",cont(funarg)):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(c?classfield:functiondef,classBody)):"["==e?cont(expression,maybetype,expect("]"),c?classfield:functiondef,classBody):"*"==t?(m.marked="keyword",cont(classBody)):";"==e?cont(classBody):"}"==e?cont():"@"==t?cont(expression,classBody):void 0}function classfield(e,t){return"?"==t?cont(classfield):":"==e?cont(typeexpr,maybeAssign):"="==t?cont(expressionNoComma):pass(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)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(1323))},1328:function(e,t,n){var r=n(1329);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},1329:function(e,t,n){(e.exports=n(7)(!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 {\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: -20px;\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 /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\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: 30px 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}\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: -30px;\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 {\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 {\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",""])},1330:function(e,t,n){var r=n(1331);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},1331:function(e,t,n){(e.exports=n(7)(!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 { text-decoration: underline; color: white !important; }\n",""])},1332: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(4),l=n(135),c=n.n(l),u=n(1324),d=(n(1325),Object.assign||function(e){for(var t=1;t=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};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 Display(e,t,r){var o=this;this.input=r,o.scrollbarFiller=elt("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=elt("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=eltP("div",null,"CodeMirror-code"),o.selectionDiv=elt("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=elt("div",null,"CodeMirror-cursors"),o.measure=elt("div",null,"CodeMirror-measure"),o.lineMeasure=elt("div",null,"CodeMirror-measure"),o.lineSpace=eltP("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var i=eltP("div",[o.lineSpace],"CodeMirror-lines");o.mover=elt("div",[i],null,"position: relative"),o.sizer=elt("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=elt("div",null,null,"position: absolute; height: "+O+"px; width: 1px;"),o.gutters=elt("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=elt("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=elt("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}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=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=F&&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=F&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}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 B=null;function getBidiPartAt(e,t,n){var r;B=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:B=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:B=o)}return null!=r?r:B}var z=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){V(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 U,j,G=function(){if(a&&s<9)return!1;var e=elt("div");return"draggable"in e||"dragDrop"in e}();function zeroWidthElement(e){if(null==U){var t=elt("span","​");removeChildrenAndAdd(e,elt("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(U=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=U?elt("span","​"):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function hasBadBidiRects(e){if(null!=j)return j;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)&&(j=r.right-n.right<3)}var _,K=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/)},q=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)},X="oncopy"in(_=elt("div"))||(_.setAttribute("oncopy","return;"),"function"==typeof _.oncopy),Y=null;function hasBadZoomedRects(e){if(null!=Y)return Y;var t=removeChildrenAndAdd(e,elt("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return Y=Math.abs(n.left-r.left)>1}var $={},Z={};function defineMode(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$[e]=t}function resolveMode(e){if("string"==typeof e&&Z.hasOwnProperty(e))e=Z[e];else if(e&&"string"==typeof e.name&&Z.hasOwnProperty(e.name)){var t=Z[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=$[t.name];if(!n)return getMode(e,"text/plain");var r=n(e,t);if(J.hasOwnProperty(t.name)){var o=J[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 J={};function extendMode(e,t){var n=J.hasOwnProperty(e)?J[e]:J[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 Q=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};Q.prototype.eol=function(){return this.pos>=this.string.length},Q.prototype.sol=function(){return this.pos==this.lineStart},Q.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Q.prototype.next=function(){if(this.post},Q.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Q.prototype.skipToEnd=function(){this.pos=this.string.length},Q.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Q.prototype.backUp=function(e){this.pos-=e},Q.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},Q.prototype.current=function(){return this.string.slice(this.start,this.pos)},Q.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Q.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Q.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ee=function(e,t){this.state=e,this.lookAhead=t},te=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 te(r,!0,t);var i=findStartLine(e,t,n),a=i>r.first&&getLine(r,i-1).stateAfter,s=a?te.fromSaved(r,a,i):new te(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.")}te.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},te.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}},te.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},te.fromSaved=function(e,t,n){return t instanceof ee?new te(e,copyState(e.mode,t.state),n,t.lookAhead):new te(e,copyState(e.mode,t),n)},te.prototype.save=function(e){var t=!1!==e?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};var ne=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 Q(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 ee?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 ee)||r+o.lookAhead1&&!/ /.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=d=s="",p=null,v=1/0;for(var y=[],b=void 0,x=0;xf||w.collapsed&&C.to==f&&C.from==f)?(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&&!d&&(d=w.title),w.collapsed&&(!p||compareCollapsedMarkers(p.marker,w)<0)&&(p=C)):C.from>f&&v>C.from&&(v=C.from)}if(b)for(var S=0;S=h)break;for(var L=Math.min(h,v);;){if(m){var M=f+m.length;if(!p){var T=M>L?m.slice(0,L-f):m;t.addToken(t,T,a?a+l:l,u,f+T.length==v?c:"",d,s)}if(M>=L){m=m.slice(L-f),f=L;break}f=M,u=""}m=o.slice(i,i=n[g++]),a=interpretTokenStyle(n[g++],t.cm.options)}}else for(var O=1;O2&&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=B,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=!0),i}function coordsChar(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return PosWithInfo(r.first,0,null,!0,-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,!0,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?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}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");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]);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)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=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;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval(function(){return 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||u<-.005)&&(updateLineHeight(o.line,i),updateWidgetHeight(o.line),o.rest))for(var d=0;d=a&&(i=lineAtHeight(t,heightAtLine(getLine(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}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;a(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.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=displayWidth(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),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.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.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),V(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),V(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),V(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:null,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.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)F&&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(!F||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)){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)),F&&(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&&e.options.lineWrapping&&t.oldDisplayWidth!=displayWidth(e)||(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)))&&updateDisplayIfNeeded(e,t);r=!1){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.display.gutters.offsetWidth;e.display.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 updateGutters(e){var t=e.display.gutters,n=e.options.gutters;removeChildren(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}fe.prototype.signal=function(e,t){hasHandler(e,t)&&this.events.push(arguments)},fe.prototype.finish=function(){for(var e=0;es.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 c=l.find(r<0?1:-1),u=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=movePos(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(u=cmp(c,n))&&(r<0?u<0:u>0))return skipAtomicInner(e,c,t,r,o)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=movePos(e,d,r,d.line==t.line?i:null)),d?skipAtomicInner(e,d,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)}}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");F=!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&&V(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(I=!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.title||i.startStyle||i.endStyle||i.css)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 u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),setSelectionNoUndo(t.doc,simpleSelection(n,n)),d)for(var p=0;p=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){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||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),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(),V(o.wrapper.ownerDocument,"mouseup",c),V(o.wrapper.ownerDocument,"mousemove",u),V(o.scroller,"dragstart",d),V(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,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,V(o.wrapper.ownerDocument,"mousemove",f),V(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(t){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.options.gutters[l];return signal(e,n,e,u,d,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 guttersChanged(e){updateGutters(e),regChange(e),alignHorizontally(e)}function dragDropChanged(e,t,n){var r=n&&n!=Be;if(!t!=!r){var o=e.display.dragFunctions,i=t?V: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),setGuttersForLineNumbers(t);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);for(var c in i.wrapper.CodeMirror=this,updateGutters(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(bind(onFocus,this),20):onBlur(this),Re)Re.hasOwnProperty(c)&&Re[c](n,t[c],Be);maybeUpdateLineNumberWidth(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}V(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)}}),V(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),V(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()}),V(t.scroller,"touchcancel",finishTouch),V(t.scroller,"scroll",function(){t.scroller.clientHeight&&(updateScrollTop(e,t.scroller.scrollTop),setScrollLeft(e,t.scroller.scrollLeft,!0),signal(e,"scroll",e))}),V(t.scroller,"mousewheel",function(t){return onScrollWheel(e,t)}),V(t.scroller,"DOMMouseScroll",function(t){return onScrollWheel(e,t)}),V(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();V(o,"keyup",function(t){return onKeyUp.call(e,t)}),V(o,"keydown",operation(e,onKeyDown)),V(o,"keypress",operation(e,onKeyPress)),V(o,"focus",function(t){return onFocus(e,t)}),V(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(p1)if(Ue&&Ue.text.join("\n")==t){if(r.ranges.length%Ue.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),f=p.to();p.empty()&&(n&&n>0?h=Pos(h.line,h.ch-n):e.state.overwrite&&!s?f=Pos(f.line,Math.min(getLine(i,f.line).text.length,f.ch+lst(l).length)):s&&Ue&&Ue.lineWise&&Ue.text.join("\n")==t&&(h=f=Pos(h.line,0))),a=e.curOp.updateInput;var g={from:h,to:f,text:c?c[d%c.length]:l,origin:o||(s?"paste":e.state.cutIncoming?"cut":"+input")};makeChange(e.doc,g),signalLater(e,"inputRead",e,g)}t&&!s&&triggerElectric(e,t),ensureCursorVisible(e),e.curOp.updateInput=a,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;r=e.first+e.size||(t=new Pos(a,t.ch,t.sticky),!(s=getLine(e,a)))))return!1;t=endOfLine(o,e.cm,s,t.line,n)}else t=i;return!0}if("char"==r)moveOnce();else if("column"==r)moveOnce(!0);else if("word"==r||"group"==r)for(var l=null,c="group"==r,u=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||moveOnce(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",h=isWordChar(p,u)?"w":c&&"\n"==p?"n":!c||/\s/.test(p)?null:"p";if(!c||d||h||(h="s"),l&&l!=h){n<0&&(n=1,moveOnce(),t.sticky="after");break}if(h&&(l=h),n>0&&!moveOnce(!d))break}var f=skipAtomic(e,t,i,a,!0);return equalCursorPos(i,f)&&(f.hitSide=!0),f}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=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),V(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),V(o,"paste",function(e){signalDOMEvent(r,e)||handlePaste(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),V(o,"cut",prepareCopyCut),V(o,"copy",prepareCopyCut),V(e.scroller,"paste",function(t){eventInWidget(e,t)||signalDOMEvent(r,t)||(r.state.pasteIncoming=!0,n.focus())}),V(e.lineSpace,"selectstart",function(t){eventInWidget(e,t)||e_preventDefault(t)}),V(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"})}}),V(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.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||q(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,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=o.style.cssText,h=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var f,g=t.wrapper.getBoundingClientRect();if(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&&(f=window.scrollY),r.input.focus(),l&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=!0,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)};V(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=!1,t.wrapper.style.cssText=h,o.style.cssText=p,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},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-\u200f\u2028\u2029\ufeff]/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("rtlMoveVisually",!x),option("wholeLineUpdateBefore",!0),option("theme","default",function(e){themeChanged(e),guttersChanged(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){setGuttersForLineNumbers(e.options),guttersChanged(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){setGuttersForLineNumbers(e.options),guttersChanged(e)},!0),option("firstLineNumber",1,guttersChanged,!0),option("lineNumberFormatter",function(e){return e},guttersChanged,!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("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)&&estimateLineHeights(this),signal(this,"refresh",this)}),swapDoc:methodOp(function(e){var t=this.doc;return t.cm=null,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){Z[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&&(V(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(t){t.save=save,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,save(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(off(e.form,"submit",save),"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=V,e.wheelEventPixels=wheelEventPixels,e.Doc=ke,e.splitLines=K,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=$,e.mimeModes=Z,e.resolveMode=resolveMode,e.getMode=getMode,e.modeExtensions=J,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=Q,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.41.0",CodeMirror}()},1324: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(1323),n(1326),n(1327))},1326: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)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(1323))},1327: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+(?:[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-f]+|o[0-7]+|b[01]+)n?/i))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)return e.skipToEnd(),ret("error","error");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))),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))return;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"),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(typeexpr,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):c&&"namespace"==t?(m.marked="keyword",cont(pushlex("form"),expression,block,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(")"),expression,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(expression):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){return"async"==e?(m.marked="property",cont(objprop)):"variable"==e||"keyword"==m.style?(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))):"number"==e||"string"==e?(m.marked=s?"property":m.style+" property",cont(afterprop)):"jsonld-keyword"==e?cont(afterprop):c&&isModifier(t)?(m.marked="keyword",cont(objprop)):"["==e?cont(expression,maybetype,expect("]"),afterprop):"spread"==e?cont(expressionNoComma,afterprop):"*"==t?(m.marked="keyword",cont(objprop)):":"==e?pass(afterprop):void 0;var n}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():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?cont(typeprop):":"==e?cont(typeexpr):"["==e?cont(expression,maybetype,expect("]"),typeprop):void 0}function typearg(e,t){return"variable"==e&&m.stream.match(/^\s*[?:]/,!1)||"?"==t?cont(typearg):":"==e?cont(typeexpr):pass(typeexpr)}function afterType(e,t){return"<"==t?cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType):"|"==t||"."==e||"&"==t?cont(typeexpr):"["==e?cont(expect("]"),afterType):"extends"==t||"implements"==t?(m.marked="keyword",cont(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():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,expect(")"),poplex):void 0}function forspec1(e){return"var"==e?cont(vardef,expect(";"),forspec2):";"==e?cont(forspec2):"variable"==e?cont(formaybeinof):pass(expression,expect(";"),forspec2)}function formaybeinof(e,t){return"in"==t||"of"==t?(m.marked="keyword",cont(expression)):cont(maybeoperatorComma,forspec2)}function forspec2(e,t){return";"==e?cont(forspec3):"in"==t||"of"==t?(m.marked="keyword",cont(expression)):pass(expression,expect(";"),forspec3)}function forspec3(e){")"!=e&&cont(expression)}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 funarg(e,t){return"@"==t&&cont(expression,funarg),"spread"==e?cont(funarg):c&&isModifier(t)?(m.marked="keyword",cont(funarg)):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(c?classfield:functiondef,classBody)):"["==e?cont(expression,maybetype,expect("]"),c?classfield:functiondef,classBody):"*"==t?(m.marked="keyword",cont(classBody)):";"==e?cont(classBody):"}"==e?cont():"@"==t?cont(expression,classBody):void 0}function classfield(e,t){return"?"==t?cont(classfield):":"==e?cont(typeexpr,maybeAssign):"="==t?cont(expressionNoComma):pass(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)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(1323))},1328:function(e,t,n){var r=n(1329);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},1329:function(e,t,n){(e.exports=n(7)(!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 {\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: -20px;\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 /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\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: 30px 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}\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: -30px;\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 {\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 {\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",""])},1330:function(e,t,n){var r=n(1331);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},1331:function(e,t,n){(e.exports=n(7)(!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 { text-decoration: underline; color: white !important; }\n",""])},1332: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(4),l=n(136),c=n.n(l),u=n(1324),d=(n(1325),Object.assign||function(e){for(var t=1;t=0&&p.splice(t,1)}function createStyleElement(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=getNonce();n&&(e.attrs.nonce=n)}return 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 getNonce(){return n.nc}function addStyle(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var i=u++;n=c||(c=createStyleElement(t)),r=applyToSingletonTag.bind(null,n,i,!1),o=applyToSingletonTag.bind(null,n,i,!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=i()),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;o",lt:"<",nbsp:" ",quot:"“"},g=["style","script"],y=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,w=/mailto:/i,x=/\n{2,}$/,E=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_=/^ *> ?/gm,O=/^ {2,}\n/,C=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,S=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,I=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,P=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,T=/^(?:\n *)*\n/,A=/\r\n?/g,R=/^\[\^(.*)\](:.*)\n/,M=/^\[\^(.*)\]/,L=/\f/g,B=/^\s*?\[(x|\s)\]/,z=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,V=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N=/^ *<([A-Za-z][^ >\/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/,H=/&([a-z]+);/g,D=/^/,F=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,W=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,q=/^\{.*\}$/,U=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,X=/^<([^ >]+@[^ >]+)>/,G=/^<([^ >]+:\/[^ >]+)>/,K=/ *\n+$/,$=/(?:^|\n)( *)$/,J=/-([a-z])?/gi,Y=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Q=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Z=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,ee=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,te=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ne=/(\[|\])/g,re=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,oe=/\t/g,ae=/(^ *\||\| *$)/g,ie=/^ *:-+: *$/,se=/^ *:-+ *$/,le=/^ *-+: *$/,ce=/ *\| */,ue=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,pe=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,de=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,he=/^\\([^0-9A-Za-z\s])/,fe=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,me=/(^\n+|(\n|\s)+$)/g,ve=/^([ \t]*)/,ge=/\\([^0-9A-Z\s])/gi,ye=/^( *)((?:[*+-]|\d+\.)) +/,be=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,we=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,xe=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,ke=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Ee=[E,I,S,z,V,N,D,W,be,we,Y,Q];function containsBlockSyntax(e){return Ee.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 le.test(e)?"right":ie.test(e)?"center":se.test(e)?"left":null}function parseTableHeader(e,t,n){return e[1].replace(ae,"").trim().split(ce).map(function(e){return t(e,n)})}function parseTableAlign(e){return e[2].replace(ae,"").trim().split(ce).map(parseTableAlignCapture)}function parseTableCells(e,t,n){return e[3].replace(ae,"").trim().split("\n").map(function(e){return e.replace(ae,"").split(ce).map(function(e){return t(e.trim(),n)})})}function parseTable(e,t,n){n.inline=!0;var r=parseTableHeader(e,t,n),o=parseTableAlign(e),a=parseTableCells(e,t,n);return n.inline=!1,{align:o,cells:a,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(F)&&(e=e.replace(J,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(":")),r=n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()});return e[r]=t.slice(n.length+1).trim(),e},{}):(t.match(q)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}function normalizeWhitespace(e){return e.replace(A,"\n").replace(L,"").replace(oe," ")}function parserFor(e){function b(n,r){for(var o=[],a="";n;)for(var i=0;i2?a-2:0),s=2;s1?o=d(t?"span":"div",null,r):1===r.length?"string"==typeof(o=r[0])&&(o=d("span",null,o)):o=d("span",null),o}function e(e){var t=e.match(y);return t?t.reduce(function(e,t,n){var r=t.indexOf("=");if(-1!==r){var o=normalizeAttributeKey(t.slice(0,r)).trim(),a=u()(t.slice(r+1).trim()),i=m[o]||o,l=e[i]=attributeValueToJSXPropValue(o,a);(N.test(l)||W.test(l))&&(e[i]=s.a.cloneElement(c(l.trim()),{key:n}))}else e[m[t]||t]=!0;return e},{}):void 0}(n=n||{}).overrides=n.overrides||{},n.slugify=n.slugify||slugify;var r=n.createElement||s.a.createElement;var o=[],a={},i={blockQuote:{match:blockRegex(E),order:Oe,parse:function d(e,t,n){return{content:t(e[0].replace(_,""),n)}},react:function e(t,n,r){return d("blockquote",{key:r.key},n(t.content,r))}},breakLine:{match:anyScopeRegex(O),order:Oe,parse:captureNothing,react:function e(t,n,r){return d("br",{key:r.key})}},breakThematic:{match:blockRegex(C),order:Oe,parse:captureNothing,react:function e(t,n,r){return d("hr",{key:r.key})}},codeBlock:{match:blockRegex(I),order:_e,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(S),order:_e,parse:function b(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(P),order:Se,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(R),order:_e,parse:function b(e){return o.push({footnote:e[2],identifier:e[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(M),order:Oe,parse:function b(e){return{content:e[1],target:"#"+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(B),order:Oe,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(z),order:Oe,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(V),order:_e,parse:function d(e,t,n){return{content:parseInline(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlBlock:{match:anyScopeRegex(N),order:Oe,parse:function k(t,n,r){var o=t[3].match(ve)[1],a=new RegExp("^"+o,"gm"),i=t[3].replace(a,""),s=containsBlockSyntax(i)?parseBlock:parseInline,l=-1!==g.indexOf(t[1]);return{attrs:e(t[2]),content:l?t[3]:s(n,i,r),noInnerParse:l,tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({key:r.key},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},htmlComment:{match:anyScopeRegex(D),order:Oe,parse:function a(){return{}},react:renderNothing},htmlSelfClosing:{match:anyScopeRegex(W),order:Oe,parse:function b(t){return{attrs:e(t[2]||""),tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({},t.attrs,{key:r.key}))}},image:{match:simpleInlineRegex(ke),order:Oe,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:Se,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(G),order:_e,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(U),order:_e,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(X),order:_e,parse:function d(e){var t=e[1],n=e[1];return w.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=$.exec(n),o=t._list||!t.inline;return r&&o?(e=r[1]+e,we.exec(e)):null},order:Oe,parse:function j(e,t,n){var r=e[2],o=r.length>1,a=o?+r:void 0,i=e[0].replace(x,"\n").match(be),s=!1;return{items:i.map(function(e,r){var o=ye.exec(e)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),l=e.replace(a,"").replace(ye,""),c=r===i.length-1,u=-1!==l.indexOf("\n\n")||c&&s;s=u;var p,d=n.inline,h=n._list;n._list=!0,u?(n.inline=!1,p=l.replace(K,"\n\n")):(n.inline=!0,p=l.replace(K,""));var f=t(p,n);return n.inline=d,n._list=h,f}),ordered:o,start:a}},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(T),order:Se,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Q),order:Se,parse:parseCaptureInline,react:function e(t,n,r){return d("p",{key:r.key},n(t.content,r))}},ref:{match:inlineRegex(Z),order:_e,parse:function b(e){return a[e[1]]={target:e[2],title:e[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(ee),order:_e,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(a[t.ref].target),title:a[t.ref].title})}},refLink:{match:inlineRegex(te),order:_e,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 a[t.ref]?d("a",{key:r.key,href:sanitizeUrl(a[t.ref].target),title:a[t.ref].title},n(t.content,r)):d("span",null,n(t.fallbackContent,r))}},table:{match:blockRegex(Y),order:Oe,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))}))})))}},text:{match:anyScopeRegex(fe),order:Ie,parse:function b(e){return{content:e[0].replace(H,function(e,t){return v[t]?v[t]:e})}},react:function b(e){return e.content}},textBolded:{match:simpleInlineRegex(ue),order:Ce,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(pe),order:Se,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:Oe,parse:function b(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(de),order:Se,parse:parseCaptureInline,react:function e(t,n,r){return d("del",{key:r.key},n(t.content,r))}}},l=parserFor(i),h=reactFor(ruleOutput(i)),j=c(t);return o.length&&j.props.children.push(d("footer",null,o.map(function(e){return d("div",{id:e.identifier,key:e.identifier},e.identifier,h(l(e.footnote,{inline:!0})))}))),j}var je=r(59),Pe=r(16),Te=r(27),Ae=r(4),Re=r(29);function MarkdownHeadingRenderer(e){var t=e.classes,n=e.level,r=e.children;return s.a.createElement("div",{className:t.spacing},s.a.createElement(Re.a,{level:n},r))}MarkdownHeadingRenderer.propTypes={classes:a.a.object.isRequired,level:a.a.oneOf([1,2,3,4,5,6]).isRequired,children:a.a.node};var Me=Object(Ae.a)(function styles(e){return{spacing:{marginBottom:e.space[2]}}})(MarkdownHeadingRenderer),Le=r(5),Be=r.n(Le);function ListRenderer(e){var t=e.classes,n=e.ordered,r=e.children,o=n?"ol":"ul",a=Be()(t.list,n&&t.ordered);return s.a.createElement(o,{className:a},i.Children.map(r,function(e){return Object(i.cloneElement)(e,{className:t.li})}))}ListRenderer.propTypes={classes:a.a.object.isRequired,ordered:a.a.bool,children:a.a.node.isRequired},ListRenderer.defaultProps={ordered:!1};var ze=Object(Ae.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=Be()(t.blockquote,n);return s.a.createElement("blockquote",{className:o},r)}BlockquoteRenderer.propTypes={classes:a.a.object.isRequired,className:a.a.string,children:a.a.node.isRequired};var Ve=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ne=Object(Ae.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily,a=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:a,marginTop:0,marginBottom:t[2]}}})(PreRenderer),He=r(32),De=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",De({},n,{type:"checkbox",className:t.input}))}CheckboxRenderer.propTypes={classes:a.a.object.isRequired};var Fe=Object(Ae.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:a.a.object.isRequired};var We=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var qe=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ue=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Xe=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ge=Object(Ae.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:a.a.node.isRequired};var Ke=TableBodyRenderer;function TableRowRenderer(e){var t=e.children;return s.a.createElement("tr",null,t)}TableRowRenderer.propTypes={children:a.a.node.isRequired};var $e=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:a.a.object.isRequired,header:a.a.bool,children:a.a.node.isRequired},TableCellRenderer.defaultProps={header:!1};var Je=Object(Ae.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=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function TextRenderer(e){var t,n=e.classes,r=e.semantic,a=e.size,i=e.color,s=e.underlined,l=e.children,p=_objectWithoutProperties(e,["classes","semantic","size","color","underlined","children"]),d=r||"span",h=c()(n.text,n[a+"Size"],n[i+"Color"],(_defineProperty(t={},n[r],r),_defineProperty(t,n.isUnderlined,s),t));return o.a.createElement(d,u({},p,{className:h}),l)}TextRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["em","strong"]),size:i.a.oneOf(["inherit","small","base","text"]),color:i.a.oneOf(["base","light"]),underlined:i.a.bool,children:i.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);n.d(t,"a",function(){return p})},function(e,t,n){"use strict";e.exports=function(){}},function(e,t){e.exports=function isObjectLike(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(67),o=n(71);e.exports=function isArrayLike(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function TypeRenderer(e){var t=e.classes,n=e.children;return o.a.createElement("span",{className:t.type},n)}TypeRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var l=Object(s.a)(function styles(e){var t=e.fontFamily,n=e.fontSize,r=e.color;return{type:{fontFamily:t.monospace,fontSize:n.small,color:r.type}}})(TypeRenderer);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";(function(e){var r=n(105),o=n.n(r),a=n(54),i=n.n(a),s=n(0),l=n.n(s),c=n(156),u=n(61),p=n(31),d=(n(1),n(12),n(170)),h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w=function(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},x=function(e){return"object"===(void 0===e?"undefined":f(e))&&e.constructor===Object},k=Object.freeze([]),E=Object.freeze({});function isFunction(e){return"function"==typeof e}function getComponentName(e){return e.displayName||e.name||"Component"}function isStyledComponent(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&e.env.SC_ATTR||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,C="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1;var S=function(e){function StyledComponentsError(t){m(this,StyledComponentsError);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0&&-1!==n.slice(0,t).indexOf(z)&&n.slice(t-z.length,t)!==z?"."+B:e};A.use([function selfReferenceReplacementPlugin(e,t,n){2===e&&n.length&&n[0].lastIndexOf(z)>0&&(n[0]=n[0].replace(V,N))},L,M]),T.use([L,M]);var H=function splitByRules(e){return T("",e)};function stringifyRules(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(P,""),a=t&&n?n+" "+t+" { "+o+" }":o;return B=r,z=t,V=new RegExp("\\"+z+"\\b","g"),A(n||!t?"":t,a)}var D=function(){return n.nc},F=function addNameForId(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},W=function resetIdNames(e,t){e[t]=Object.create(null)},q=function hasNameForId(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},U=function stringifyNames(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},X=function cloneNames(e){var t=Object.create(null);for(var n in e)t[n]=g({},e[n]);return t},G=function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;nr;o-=1)e.deleteRule(o)},J=function makeTextMarker(e){return"\n/* sc-component-id: "+e+" */\n"},Y=function addUpUntilIndex(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},Q=function makeStyleTag(e,t,n){var r=document.createElement("style");r.setAttribute(_,""),r.setAttribute("data-styled-version","4.1.3");var o=D();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new S(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r},Z=function wrapAsHtmlTag(e,t){return function(n){var r=D();return""}},ee=function wrapAsElement(e,t){return function(){var n,r=((n={})[_]=U(t),n["data-styled-version"]="4.1.3",n),o=D();return o&&(r.nonce=o),l.a.createElement("style",g({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},te=function getIdsFromMarkersFactory(e){return function(){return Object.keys(e)}},ne=function makeSpeedyTag(e,t){var n=Object.create(null),r=Object.create(null),o=[],a=void 0!==t,i=!1,s=function insertMarker(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),W(n,e),r[e])},l=function css(){var t=G(e).cssRules,n="";for(var a in r){n+=J(a);for(var i=r[a],s=Y(o,i),l=s-o[i];l0&&(i=!0,t().insertRules(r+"-import",f)),o[u]+=h,F(n,r,c)},removeRules:function removeRules(s){var l=r[s];if(void 0!==l){var c=o[l],u=G(e),p=Y(o,l)-1;$(u,p,c),o[l]=0,W(n,s),a&&i&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ee(l,n),toHTML:Z(l,n)}},re=function makeTextNode(e){return document.createTextNode(J(e))},oe=function makeBrowserTag(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,a=!1,i=function insertMarker(t){var o=r[t];return void 0!==o?o:(r[t]=re(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function css(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function clone(){throw new S(5)},css:s,getIds:te(r),hasNameForId:q(n),insertMarker:i,insertRules:function insertRules(e,r,s){for(var l=i(e),c=[],u=r.length,p=0;p0&&(a=!0,t().insertRules(e+"-import",c))},removeRules:function removeRules(i){var s=r[i];if(void 0!==s){var l=re(i);e.replaceChild(l,s),r[i]=l,W(n,i),o&&a&&t().removeRules(i+"-import")}},sealed:!1,styleTag:e,toElement:ee(s,n),toHTML:Z(s,n)}},ae=function makeServerTag(e,t){var n=void 0===e?Object.create(null):e,r=void 0===t?Object.create(null):t,o=function insertMarker(e){var t=r[e];return void 0!==t?t:r[e]=[""]},a=function css(){var e="";for(var t in r){var n=r[t][0];n&&(e+=J(t)+n)}return e};return{clone:function clone(){var e=X(n),t=Object.create(null);for(var o in r)t[o]=[r[o][0]];return makeServerTag(e,t)},css:a,getIds:te(r),hasNameForId:q(n),insertMarker:o,insertRules:function insertRules(e,t,r){o(e)[0]+=t.join(" "),F(n,e,r)},removeRules:function removeRules(e){var t=r[e];void 0!==t&&(t[0]="",W(n,e))},sealed:!1,styleTag:null,toElement:ee(a,n),toHTML:Z(a,n)}},ie=function makeTag(e,t,n,r,o){if(O&&!n){var a=Q(e,t,r);return C?oe(a,o):ne(a,o)}return ae()},se=function rehydrate(e,t,n){for(var r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:O?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,StyleSheet),this.getImportRuleTag=function(){var t=e.importRuleTag;if(void 0!==t)return t;var n=e.tags[0];return e.importRuleTag=ie(e.target,n?n.styleTag:null,e.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=n,this.target=n?null:t,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return StyleSheet.prototype.rehydrate=function rehydrate$$1(){if(!O||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+_+'][data-styled-version="4.1.3"]'),o=r.length;if(!o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];pe=new StyleSheet(void 0,e).rehydrate()},StyleSheet.prototype.clone=function clone(){var e=new StyleSheet(this.target,this.forceServer);return this.clones.push(e),e.tags=this.tags.map(function(t){for(var n=t.getIds(),r=t.clone(),o=0;o1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(u.isValidElementType)(t))throw new S(1,String(t));var r=function templateFunction(){return e(t,n,css.apply(void 0,arguments))};return r.withConfig=function(r){return constructWithOptions(e,t,g({},n,r))},r.attrs=function(r){return constructWithOptions(e,t,g({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function murmurhash(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>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>>>15)>>>0}var ye=52,be=function getAlphabeticChar(e){return String.fromCharCode(e+(e>25?39:97))};function generateAlphabeticName(e){var t="",n=void 0;for(n=e;n>ye;n=Math.floor(n/ye))t=be(n%ye)+t;return be(n%ye)+t}function hasFunctionObjectKey(e){for(var t in e)if(isFunction(e[t]))return!0;return!1}function isStaticRules(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ce=/(^-|-$)/g;function escape(e){return e.replace(Oe,"-").replace(Ce,"")}function isTag(e){return"string"==typeof e&&!0}function generateDisplayName(e){return isTag(e)?"styled."+e:"Styled("+getComponentName(e)+")"}var Se={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},je=((we={})[u.ForwardRef]={$$typeof:!0,render:!0},we),Pe=Object.defineProperty,Te=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Re=void 0===Ae?function(){return[]}:Ae,Me=Object.getOwnPropertyDescriptor,Le=Object.getPrototypeOf,Be=Object.prototype,ze=Array.prototype;function hoistNonReactStatics(e,t,n){if("string"!=typeof t){var r=Le(t);r&&r!==Be&&hoistNonReactStatics(e,r,n);for(var o=ze.concat(Te(t),Re(t)),a=je[e.$$typeof]||Se,i=je[t.$$typeof]||Se,s=o.length,l=void 0,c=void 0;s--;)if(c=o[s],!(Ie[c]||n&&n[c]||i&&i[c]||a&&a[c])&&(l=Me(t,c)))try{Pe(e,c,l)}catch(e){}return e}return e}var Ve=Object(s.createContext)(),Ne=Ve.Consumer,He=(function(e){function ThemeProvider(t){m(this,ThemeProvider);var n=w(this,e.call(this,t));return n.getContext=Object(p.a)(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}y(ThemeProvider,e),ThemeProvider.prototype.render=function render(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},ThemeProvider.prototype.renderInner=function renderInner(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},l.a.Children.only(this.props.children))},ThemeProvider.prototype.getTheme=function getTheme(e,t){if(isFunction(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":f(e)))throw new S(8);return g({},t,e)},ThemeProvider.prototype.getContext=function getContext(e,t){return this.getTheme(e,t)}}(s.Component),function(){function ServerStyleSheet(){m(this,ServerStyleSheet),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}ServerStyleSheet.prototype.seal=function seal(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},ServerStyleSheet.prototype.collectStyles=function collectStyles(e){if(this.sealed)throw new S(2);return l.a.createElement(Fe,{sheet:this.instance},e)},ServerStyleSheet.prototype.getStyleTags=function getStyleTags(){return this.seal(),this.instance.toHTML()},ServerStyleSheet.prototype.getStyleElement=function getStyleElement(){return this.seal(),this.instance.toReactElements()},ServerStyleSheet.prototype.interleaveWithNodeStream=function interleaveWithNodeStream(e){throw new S(3)}}(),Object(s.createContext)()),De=He.Consumer,Fe=function(e){function StyleSheetManager(t){m(this,StyleSheetManager);var n=w(this,e.call(this,t));return n.getContext=Object(p.a)(n.getContext),n}return y(StyleSheetManager,e),StyleSheetManager.prototype.getContext=function getContext(e,t){if(e)return e;if(t)return new de(t);throw new S(4)},StyleSheetManager.prototype.render=function render(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.a.createElement(He.Provider,{value:this.getContext(n,r)},t)},StyleSheetManager}(s.Component),We=(new Set,{});function generateId(e,t,n){var r="string"!=typeof t?"sc":escape(t),o=(We[r]||0)+1;We[r]=o;var a=r+"-"+e.generateName(r+o);return n?n+"-"+a:a}var qe=function(e){function StyledComponent(){m(this,StyledComponent);var t=w(this,e.call(this));return t.attrs={},t.renderOuter=t.renderOuter.bind(t),t.renderInner=t.renderInner.bind(t),t}return y(StyledComponent,e),StyledComponent.prototype.render=function render(){return l.a.createElement(De,null,this.renderOuter)},StyledComponent.prototype.renderOuter=function renderOuter(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ne,null,this.renderInner)},StyledComponent.prototype.renderInner=function renderInner(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,o=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,i=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):void 0!==e?this.generateAndInjectStyles(_e(this.props,e,r),this.props):this.generateAndInjectStyles(this.props.theme||E,this.props);var c=this.props.as||this.attrs.as||i,u=isTag(c),p={},h=g({},this.attrs,this.props),f=void 0;for(f in h)"forwardedComponent"!==f&&"as"!==f&&("forwardedRef"===f?p.ref=h[f]:u&&!Object(d.a)(f)||(p[f]=h[f]));return this.props.style&&this.attrs.style&&(p.style=g({},this.attrs.style,this.props.style)),p.className=Array.prototype.concat(o,this.props.className,a,this.attrs.className,l).filter(Boolean).join(" "),Object(s.createElement)(c,p)},StyledComponent.prototype.buildExecutionContext=function buildExecutionContext(e,t,n){var r=this,o=g({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,a=!1,i=void 0,s=void 0;for(s in isFunction(n)&&(n=n(o),a=!0),n)i=n[s],a||!isFunction(i)||(t=i)&&t.prototype&&t.prototype.isReactComponent||isStyledComponent(i)||(i=i(o)),r.attrs[s]=i,o[s]=i}),o):o},StyledComponent.prototype.generateAndInjectStyles=function generateAndInjectStyles(e,t){var n=t.forwardedComponent,r=n.attrs,o=n.componentStyle;n.warnTooManyClasses;return o.isStatic&&!r.length?o.generateAndInjectStyles(E,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},StyledComponent}(s.Component);function createStyledComponent(e,t,n){var r=isStyledComponent(e),o=!isTag(e),a=t.displayName,i=void 0===a?generateDisplayName(e):a,s=t.componentId,c=void 0===s?generateId(Ee,t.displayName,t.parentComponentId):s,u=t.ParentComponent,p=void 0===u?qe:u,d=t.attrs,h=void 0===d?k:d,f=t.displayName&&t.componentId?escape(t.displayName)+"-"+t.componentId:t.componentId||c,m=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=new Ee(r?e.componentStyle.rules.concat(n):n,m,f),y=l.a.forwardRef(function(e,t){return l.a.createElement(p,g({},e,{forwardedComponent:y,forwardedRef:t}))});return y.attrs=m,y.componentStyle=v,y.displayName=i,y.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,y.styledComponentId=f,y.target=r?e.target:e,y.withComponent=function withComponent(e){var r=t.componentId,o=b(t,["componentId"]),a=r&&r+"-"+(isTag(e)?e:escape(getComponentName(e)));return createStyledComponent(e,g({},o,{attrs:m,componentId:a,ParentComponent:p}),n)},y.toString=function(){return"."+y.styledComponentId},o&&hoistNonReactStatics(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Ue=function styled(e){return constructWithOptions(createStyledComponent,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ue[e]=Ue(e)});!function(){function GlobalStyle(e,t){m(this,GlobalStyle),this.rules=e,this.componentId=t,this.isStatic=isStaticRules(e,k),de.master.hasId(t)||de.master.deferredInject(t,[])}GlobalStyle.prototype.createStyles=function createStyles(e,t){var n=stringifyRules(flatten(this.rules,e,t),"");t.inject(this.componentId,n)},GlobalStyle.prototype.removeStyles=function removeStyles(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},GlobalStyle.prototype.renderStyles=function renderStyles(e,t){this.removeStyles(t),this.createStyles(e,t)}}();O&&(window.scCGSHMRCache={});t.a=Ue}).call(this,n(37))},function(e,t,n){var r=n(218),o=n(223);e.exports=function getNative(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(42),o=n(219),a=n(220),i="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function baseGetTag(e){return null==e?void 0===e?s:i:l&&l in Object(e)?o(e):a(e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4),l=n(5),c=n.n(l);function NameRenderer(e){var t,n,r,a=e.classes,i=e.children,s=e.deprecated,l=c()(a.name,(t={},n=a.isDeprecated,r=s,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));return o.a.createElement("code",{className:l},i)}NameRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired,deprecated:i.a.bool};var u=Object(s.a)(function styles(e){var t=e.fontFamily,n=e.fontSize,r=e.color;return{name:{fontFamily:t.monospace,fontSize:n.small,color:r.name},isDeprecated:{color:r.light,textDecoration:"line-through"}}})(NameRenderer);n.d(t,"a",function(){return u})},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,a=e.description,i=e.returns,s=e.block,p=_objectWithoutProperties(e,["classes","name","type","description","returns","block"]),f=r&&"OptionalType"===r.type,m=p.default;return f&&(r=r.expression),o.a.createElement(d.a,h({className:s&&t.block},p),i&&"Returns",n&&o.a.createElement("span",null,o.a.createElement(c.a,null,n),r&&":"),r&&o.a.createElement(u.a,null,r.name,f&&"?",!!m&&"="+m),r&&a&&" — ",a&&o.a.createElement(l.a,{text:""+a,inline:!0}))}ArgumentRenderer.propTypes={classes:i.a.object.isRequired,name:i.a.string,type:i.a.object,default:i.a.string,description:i.a.string,returns:i.a.bool,block:i.a.bool};var f=Object(s.a)(function styles(e){return{block:{marginBottom:e.space[2]}}})(ArgumentRenderer);n.d(t,"a",function(){return f})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function ParaRenderer(e){var t=e.classes,n=e.semantic,r=e.children,a=n||"div";return o.a.createElement(a,{className:t.para},r)}ParaRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["p"]),children:i.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);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(9),l=n(149),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")},h={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()(h,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:i.a.array,see:i.a.array,link:i.a.array,author:i.a.array,version:i.a.array,since:i.a.array},n.d(t,"a",function(){return JsDoc})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=n(4),u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function HeadingRenderer(e){var t=e.classes,n=e.level,r=e.children,a=_objectWithoutProperties(e,["classes","level","children"]),i="h"+n,s=l()(t.heading,t["heading"+n]);return o.a.createElement(i,u({},a,{className:s}),r)}HeadingRenderer.propTypes={classes:i.a.object.isRequired,level:i.a.oneOf([1,2,3,4,5,6]).isRequired,children:i.a.node};var p=Object(c.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:r.h1},heading2:{fontSize:r.h2},heading3:{fontSize:r.h3},heading4:{fontSize:r.h4},heading5:{fontSize:r.h5,fontWeight:"bold"},heading6:{fontSize:r.h6,fontStyle:"italic"}}})(HeadingRenderer);n.d(t,"a",function(){return p})},function(e,t,n){var r=n(129),o=n(130),a=n(46),i=n(14),s=n(19),l=n(47),c=n(45),u=n(48),p="[object Map]",d="[object Set]",h=Object.prototype.hasOwnProperty;e.exports=function isEmpty(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(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(h.call(e,n))return!1;return!0}},function(e,t,n){"use strict";var r=function simpleIsEqual(e,t){return e===t};t.a=function index(e,t){var n;void 0===t&&(t=r);var o,a=[],i=!1,s=function isNewArgEqualToLast(e,n){return t(e,a[n])};return function result(){for(var t=arguments.length,r=new Array(t),l=0;l1&&(n=[t.shift()],t.forEach(function(e,t){if(a){var i="separator-"+(e.key||t);o=r.cloneElement(o,{key:i})}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){var n,r,o=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function runClearTimeout(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var a,i=[],s=!1,l=-1;function cleanUpNextTick(){s&&a&&(s=!1,a.length?i=a.concat(i):l=-1,i.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=i.length;t;){for(a=i,i=[];++l1)for(var n=1;n1&&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],i=n.jss,s=(0,a.default)(t),l=i.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(17)),o=_interopRequireDefault(n(25)),a=_interopRequireDefault(n(179));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(208),o=n(209),a=n(210),i=n(211),s=n(212);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 h=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 h(e,{beforeExpr:!0,binop:t})}var f={beforeExpr:!0},m={startsExpr:!0},v={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,v[e]=new h(e,t)}var g={num:new h("num",m),regexp:new h("regexp",m),string:new h("string",m),name:new h("name",m),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",f),semi:new h(";",f),colon:new h(":",f),dot:new h("."),question:new h("?",f),arrow:new h("=>",f),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",f),backQuote:new h("`",m),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{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 h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new h("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",f),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",f),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",f),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",m),_if:kw("if"),_return:kw("return",f),_switch:kw("switch"),_throw:kw("throw",f),_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",f),_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]/,x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,E=k.hasOwnProperty,_=k.toString;function has(e,t){return E.call(e,t)}var O=Array.isArray||function(e){return"[object Array]"===_.call(e)},C=function Position(e,t){this.line=e,this.column=t};C.prototype.offset=function offset(e){return new C(this.line,this.column+e)};var S=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),O(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return O(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),t}function pushComment(e,t){return function(n,r,o,a,i,s){var l={type:n?"Block":"Line",value:r,start:o,end:a};e.locations&&(l.loc=new S(this,i,s)),e.ranges&&(l.range=[o,a]),t.push(l)}}var j={};function keywordRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var P=function Parser(e,t,n){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=keywordRegexp(a[e.ecmaVersion>=6?6:5]);var o="";if(!e.allowReserved){for(var i=e.ecmaVersion;!(o=r[i]);i--);"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=g.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};P.prototype.isKeyword=function isKeyword(e){return this.keywords.test(e)},P.prototype.isReservedWord=function isReservedWord(e){return this.reservedWords.test(e)},P.prototype.extend=function extend(e,t){this[e]=t(this[e])},P.prototype.loadPlugins=function loadPlugins(e){for(var t in e){var n=j[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},P.prototype.parse=function parse(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var T=P.prototype,A=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}T.strictDirective=function(e){for(;;){x.lastIndex=e,e+=x.exec(this.input)[0].length;var t=A.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===g.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===g.eof||this.type===g.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(g.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 M={kind:"loop"},L={kind:"switch"};R.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;x.lastIndex=this.pos;var e=x.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(!i.test(o))return!0}return!1},R.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;x.lastIndex=this.pos;var e=x.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)))},R.parseStatement=function(e,t,n){var r,o=this.type,a=this.startNode();switch(this.isLet()&&(o=g._var,r="let"),o){case g._break:case g._continue:return this.parseBreakContinueStatement(a,o.keyword);case g._debugger:return this.parseDebuggerStatement(a);case g._do:return this.parseDoStatement(a);case g._for:return this.parseForStatement(a);case g._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case g._class:return e||this.unexpected(),this.parseClass(a,!0);case g._if:return this.parseIfStatement(a);case g._return:return this.parseReturnStatement(a);case g._switch:return this.parseSwitchStatement(a);case g._throw:return this.parseThrowStatement(a);case g._try:return this.parseTryStatement(a);case g._const:case g._var:return r=r||this.value,e||"var"===r||this.unexpected(),this.parseVarStatement(a,r);case g._while:return this.parseWhileStatement(a);case g._with:return this.parseWithStatement(a);case g.braceL:return this.parseBlock();case g.semi:return this.parseEmptyStatement(a);case g._export:case g._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===g._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var i=this.value,s=this.parseExpression();return o===g.name&&"Identifier"===s.type&&this.eat(g.colon)?this.parseLabeledStatement(a,i,s):this.parseExpressionStatement(a,s)}},R.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(g.semi)||this.insertSemicolon()?e.label=null:this.type!==g.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(g.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},R.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(M),this.enterLexicalScope(),this.expect(g.parenL),this.type===g.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===g._var||this.type===g._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===g._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===g._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new DestructuringErrors,i=this.parseExpression(!0,a);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(i,!1,a),this.checkLVal(i),this.parseForIn(e,i)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,i))},R.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},R.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type===g._function),e.alternate=this.eat(g._else)?this.parseStatement(!this.strict&&this.type===g._function):null,this.finishNode(e,"IfStatement")},R.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},R.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(g.braceL),this.labels.push(L),this.enterLexicalScope();for(var n=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var r=this.type===g._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(g.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")},R.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 B=[];R.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===g._catch){var t=this.startNode();this.next(),this.eat(g.parenL)?(t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(g.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(g._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},R.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},R.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(M),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},R.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")},R.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},R.parseLabeledStatement=function(e,t,n){for(var r=0,o=this.labels;r=0;i--){var s=this.labels[i];if(s.statementStart!==e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,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")},R.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},R.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(g.braceL),e&&this.enterLexicalScope();!this.eat(g.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},R.parseFor=function(e,t){return e.init=t,this.expect(g.semi),e.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),e.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},R.parseForIn=function(e,t){var n=this.type===g._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(g.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},R.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(g.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===g._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(g.comma))break}return e},R.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},R.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!==g.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,this.inModule&&!this.inFunction?"let":"var"));var o=this.inGenerator,a=this.inAsync,i=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===g.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=o,this.inAsync=a,this.yieldPos=i,this.awaitPos=s,this.inFunction=l,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},R.parseFunctionParams=function(e){this.expect(g.parenL),e.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},R.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(g.braceL);!this.eat(g.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")},R.parseClassMember=function(e){var t=this;if(this.eat(g.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var o=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===g.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(o,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var o=this.eat(g.star),a=!1;o||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,o=this.options.ecmaVersion>=9&&this.eat(g.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var i=n.key;return n.computed||n.static||!("Identifier"===i.type&&"constructor"===i.name||"Literal"===i.type&&"constructor"===i.value)?n.static&&"Identifier"===i.type&&"prototype"===i.name&&this.raise(i.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(i.start,"Constructor can't have get/set modifier"),o&&this.raise(i.start,"Constructor can't be a generator"),a&&this.raise(i.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,o,a),"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},R.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},R.parseClassId=function(e,t){e.id=this.type===g.name?this.parseIdent():!0===t?this.unexpected():null},R.parseClassSuper=function(e){e.superClass=this.eat(g._extends)?this.parseExprSubscripts():null},R.parseExport=function(e,t){if(this.next(),this.eat(g.star))return this.expectContextual("from"),this.type!==g.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(g._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===g._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===g._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!==g.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,i=e.specifiers;a=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 a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=o.start:this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[r="$"+r];if(i)("init"===a?this.strict&&i.init||i.get||i.set:i.init||i[a])&&this.raiseRecoverable(o.start,"Redefinition of property");else i=t[r]={init:!1,get:!1,set:!1};i[a]=!0}}},V.parseExpression=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===g.comma){var a=this.startNodeAt(n,r);for(a.expressions=[o];this.eat(g.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return o},V.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,o=-1,a=-1;t?(o=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new DestructuringErrors,r=!0);var i=this.start,s=this.startLoc;this.type!==g.parenL&&this.type!==g.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,i,s)),this.type.isAssign){var c=this.startNodeAt(i,s);return c.operator=this.value,c.left=this.type===g.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),a>-1&&(t.trailingComma=a),l},V.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(g.question)){var a=this.startNodeAt(n,r);return a.test=o,a.consequent=this.parseMaybeAssign(),this.expect(g.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return o},V.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)},V.parseExprOp=function(e,t,n,r,o){var a=this.type.binop;if(null!=a&&(!o||this.type!==g._in)&&a>r){var i=this.type===g.logicalOR||this.type===g.logicalAND,s=this.value;this.next();var l=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),l,c,a,o),p=this.buildBinary(t,n,e,u,s,i);return this.parseExprOp(p,t,n,r,o)}return e},V.buildBinary=function(e,t,n,r,o,a){var i=this.startNodeAt(e,t);return i.left=n,i.operator=o,i.right=r,this.finishNode(i,a?"LogicalExpression":"BinaryExpression")},V.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 a=this.startNode(),i=this.type===g.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),i?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,i?"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(g.starstar)?this.buildBinary(r,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},V.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 a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},V.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),a=void 0;;)if((a=this.eat(g.bracketL))||this.eat(g.dot)){var i=this.startNodeAt(t,n);i.object=e,i.property=a?this.parseExpression():this.parseIdent(!0),i.computed=!!a,a&&this.expect(g.bracketR),e=this.finishNode(i,"MemberExpression")}else if(!r&&this.eat(g.parenL)){var s=new DestructuringErrors,l=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var u=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,s);if(o&&!this.canInsertSemicolon()&&this.eat(g.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!==g.backQuote)return e;var d=this.startNodeAt(t,n);d.tag=e,d.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(d,"TaggedTemplateExpression")}},V.parseExprAtom=function(e){var t,n=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(t,"Super");case g._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case g.name:var r=this.start,o=this.startLoc,a=this.containsEsc,i=this.parseIdent(this.type!==g.name);if(this.options.ecmaVersion>=8&&!a&&"async"===i.name&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(r,o),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(r,o),[i],!1);if(this.options.ecmaVersion>=8&&"async"===i.name&&this.type===g.name&&!a)return i=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(g.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,o),[i],!0)}return i;case g.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return(t=this.startNode()).value=this.type===g._null?null:this.type===g._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case g.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 g.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(g.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case g.braceL:return this.parseObj(!1,e);case g._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();default:this.unexpected()}},V.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")},V.parseParenExpression=function(){this.expect(g.parenL);var e=this.parseExpression();return this.expect(g.parenR),e},V.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,i=this.start,s=this.startLoc,l=[],c=!0,u=!1,p=new DestructuringErrors,d=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;){if(c?c=!1:this.expect(g.comma),o&&this.afterTrailingComma(g.parenR,!0)){u=!0;break}if(this.type===g.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(g.parenR),e&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=h,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,l.length>1?((t=this.startNodeAt(i,s)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,r);return v.expression=t,this.finishNode(v,"ParenthesizedExpression")}return t},V.parseParenItem=function(e){return e},V.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var N=[];V.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.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(g.parenL)?e.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):e.arguments=N,this.finishNode(e,"NewExpression")},V.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===g.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===g.backQuote,this.finishNode(n,"TemplateElement")},V.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===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(g.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},V.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!y.test(this.input.slice(this.lastTokEnd,this.start))},V.parseObj=function(e,t){var n=this.startNode(),r=!0,o={};for(n.properties=[],this.next();!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,o,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},V.parseProperty=function(e,t){var n,r,o,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===g.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,t),this.type===g.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,a=this.startLoc),e||(n=this.eat(g.star)));var s=this.containsEsc;return this.parsePropertyName(i),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(i,t)):r=!1,this.parsePropertyValue(i,e,n,r,o,a,t,s),this.finishNode(i,"Property")},V.parsePropertyValue=function(e,t,n,r,o,a,i,s){if((n||r)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===g.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===g.comma||this.type===g.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(o,a,e.key):this.type===g.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,a,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")}},V.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(g.bracketR),e.key;e.computed=!1}return e.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(!0)},V.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},V.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,o=this.inAsync,a=this.yieldPos,i=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(g.parenL),n.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=o,this.yieldPos=a,this.awaitPos=i,this.inFunction=s,this.finishNode(n,"FunctionExpression")},V.parseArrowExpression=function(e,t,n){var r=this.inGenerator,o=this.inAsync,a=this.yieldPos,i=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=a,this.awaitPos=i,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},V.parseFunctionBody=function(e,t){var n=t&&this.type!==g.braceL,r=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var i=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=i}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},V.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},G.updateContext=function(e){var t,n=this.type;n.keyword&&e===g.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},g.parenR.updateContext=g.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===X.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},g.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?X.b_stat:X.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(X.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(e){var t=e===g._if||e===g._for||e===g._with||e===g._while;this.context.push(t?X.p_stat:X.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(e){e.beforeExpr&&e!==g.semi&&e!==g._else&&(e!==g.colon&&e!==g.braceL||this.curContext()!==X.b_stat)?this.context.push(X.f_expr):this.context.push(X.f_stat),this.exprAllowed=!1},g.backQuote.updateContext=function(){this.curContext()===X.q_tmpl?this.context.pop():this.context.push(X.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(e){if(e===g._function){var t=this.context.length-1;this.context[t]===X.f_expr?this.context[t]=X.f_expr_gen:this.context[t]=X.f_gen}this.exprAllowed=!0},g.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==g.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var K={$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(K.$LONE,K.General_Category),K.gc=K.General_Category,K.sc=K.Script_Extensions=K.scx=K.Script;var $=P.prototype,J=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}J.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},J.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},J.prototype.at=function at(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},J.prototype.nextIndex=function nextIndex(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},J.prototype.current=function current(){return this.at(this.pos)},J.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},J.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},J.prototype.eat=function eat(e){return this.current()===e&&(this.advance(),!0)},$.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},$.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},$.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},$.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},$.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},$.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)},$.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},$.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},$.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!isSyntaxCharacter(n);)e.advance();return e.pos!==t},$.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)},$.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")}},$.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},$.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},$.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)},$.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)},$.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)},$.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},$.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},$.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)},$.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},$.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},$.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)},$.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},$.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 a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-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},$.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)},$.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},$.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},$.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},$.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){K.hasOwnProperty(t)&&-1!==K[t].indexOf(n)||e.raise("Invalid property name")},$.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===K.$LONE.indexOf(t)&&e.raise("Invalid property name")},$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},$.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},$.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},$.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},$.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")}}},$.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)},$.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)},$.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},$.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},$.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},$.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},$.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},$.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},$.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}Q.next=function(){this.options.onToken&&this.options.onToken(new Y(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new Y(this)},"undefined"!=typeof Symbol&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===g.eof,value:t}}}}),Q.curContext=function(){return this.context[this.context.length-1]},Q.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(g.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Q.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}}},Q.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)},Q.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(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?g.star:g.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=g.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(g.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?g.logicalOR:g.logicalAND,2):61===t?this.finishOp(g.assign,2):this.finishOp(124===e?g.bitwiseOR:g.bitwiseAND,1)},Q.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},Q.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(g.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},Q.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(g.assign,n+1):this.finishOp(g.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(g.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(g.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(61===e?g.eq:g.prefix,1)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 63:return++this.pos,this.finishToken(g.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.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(g.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.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 a=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new J(this));s.reset(n,o,i),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(o,i)}catch(e){}return this.finishToken(g.regexp,{pattern:o,flags:i,value:l})},Q.readInt=function(e,t){for(var n=this.pos,r=0,o=0,a=null==t?1/0:t;o=97?i-97+10:i>=65?i-65+10:i>=48&&i<=57?i-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},Q.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(g.num,t)},Q.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),a=n?parseInt(o,8):parseFloat(o);return this.finishToken(g.num,a)},Q.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},Q.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(g.string,t)};var Z={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Z)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Z;this.raise(e,t)},Q.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!==g.template&&this.type!==g.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(g.template,e)):36===n?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.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}},Q.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)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Q.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos=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:i.a.node,className:i.a.string,classes:i.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);n.d(t,"a",function(){return p})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function TableRenderer(e){var t=e.classes,n=e.columns,r=e.rows,a=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:a(e)},n.map(function(n,r){var a=n.render;return o.a.createElement("td",{key:r,className:t.cell},a(e))}))})))}TableRenderer.propTypes={classes:i.a.object.isRequired,columns:i.a.arrayOf(i.a.shape({caption:i.a.string.isRequired,render:i.a.func.isRequired})).isRequired,rows:i.a.arrayOf(i.a.object).isRequired,getRowKey:i.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);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";e.exports=n(315)},function(e,t,n){"use strict";var r=_interopRequireDefault(n(394)),o=_interopRequireDefault(n(399)),a=_interopRequireDefault(n(139)),i=_interopRequireDefault(n(137));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:r.default}},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 a=n.indent,i=void 0===a?0:a,s=t.fallbacks;if(i++,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 i=function IconBase(e,t){var n=e.children,a=e.color,i=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,h=i||d.size||"1em";return o.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:c||h,width:l||h},d,u,{style:r({verticalAlign:"middle",color:a||d.color},d.style||{},s)}))};i.propTypes={color:a.default.string,size:a.default.oneOfType([a.default.string,a.default.number]),width:a.default.oneOfType([a.default.string,a.default.number]),height:a.default.oneOfType([a.default.string,a.default.number]),style:a.default.object},i.contextTypes={reactIconBase:a.default.shape(i.propTypes)},t.default=i,e.exports=t.default},function(e,t,n){var r=n(427),o=36e5,a=6e4,i=2,s=/[T ]/,l=/:/,c=/^(\d{2})$/,u=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],p=/^(\d{4})/,d=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],h=/^-(\d{2})$/,f=/^-?(\d{3})$/,m=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,g=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,x=/([Z+-].*)$/,k=/^(Z)$/,E=/^([+-])(\d{2})$/,_=/^([+-])(\d{2}):?(\d{2})$/;function splitDateString(e){var t,n={},r=e.split(s);if(l.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]),t){var o=x.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function parseYear(e,t){var n,r=u[t],o=d[t];if(n=p.exec(e)||o.exec(e)){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=c.exec(e)||r.exec(e)){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}function parseDate(e,t){if(null===t)return null;var n,r,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=h.exec(e))return r=new Date(0),o=parseInt(n[1],10)-1,r.setUTCFullYear(t,o),r;if(n=f.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(t,0,a),r}if(n=m.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var i=parseInt(n[2],10);return r.setUTCFullYear(t,o,i),r}return(n=v.exec(e))?dayOfISOYear(t,parseInt(n[1],10)-1):(n=g.exec(e))?dayOfISOYear(t,parseInt(n[1],10)-1,parseInt(n[2],10)-1):null}function parseTime(e){var t,n,r;if(t=y.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*o;if(t=b.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*o+r*a;if(t=w.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return n%24*o+r*a+1e3*i}return null}function dayOfISOYear(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}e.exports=function parse(e,t){if(r(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?i:Number(n);var o=splitDateString(e),s=parseYear(o.date,n),l=s.year,c=parseDate(s.restDateString,l);if(c){var u,p=c.getTime(),d=0;return o.time&&(d=parseTime(o.time)),o.timezone?(h=o.timezone,u=(f=k.exec(h))?0:(f=E.exec(h))?(m=60*parseInt(f[2],10),"+"===f[1]?-m:m):(f=_.exec(h))?(m=60*parseInt(f[2],10)+parseInt(f[3],10),"+"===f[1]?-m:m):0):(u=new Date(p+d).getTimezoneOffset(),u=new Date(p+d+u*a).getTimezoneOffset()),new Date(p+d+u*a)}var h,f,m;return new Date(e)}},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(177);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function get(){return _interopRequireDefault(r).default}});var o=n(38);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function get(){return _interopRequireDefault(o).default}});var a=n(107);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function get(){return _interopRequireDefault(a).default}});var i=n(178);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function get(){return _interopRequireDefault(i).default}});var s=n(33);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function get(){return _interopRequireDefault(s).default}});var l=n(64);Object.defineProperty(t,"sheets",{enumerable:!0,get:function get(){return _interopRequireDefault(l).default}});var c=n(110);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function get(){return _interopRequireDefault(c).default}});var u=_interopRequireDefault(n(184));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(68),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],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(memoize.Cache||r),n}memoize.Cache=r,e.exports=memoize},function(e,t,n){var r=n(133);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";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(311);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function ButtonGroup(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]),a=["wds-button-group",t].filter(function(e){return e}).join(" ");return o.a.createElement("div",_extends({className:a},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(313);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function Button(e){var t=e.className,n=e.href,r=e.text,a=e.secondary,i=e.square,s=e.fullwidth,l=e.children,c=_objectWithoutProperties(e,["className","href","text","secondary","square","fullwidth","children"]),u=["wds-button",t,a?"wds-is-secondary":"",i?"wds-is-square":"",r?"wds-is-text":"",s?"wds-is-fullwidth":""].filter(function(e){return e}).join(" ");return n?o.a.createElement("a",_extends({href:n,className:u},c),l):o.a.createElement("button",_extends({className:u},c),l)};s.propTypes={children:i.a.node,className:i.a.string,disabled:i.a.bool,fullwidth:i.a.bool,href:i.a.string,onClick:i.a.func,secondary:i.a.bool,square:i.a.bool,text:i.a.bool},s.defaultProps={children:null,className:"",disabled:!1,fullwidth:!1,href:null,secondary:!1,square:!1,text:!1,onClick:function onClick(){}},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(346);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function Icon(e){var t=e.name,n=e.className,r=e.small,a=e.tiny,i=_objectWithoutProperties(e,["name","className","small","tiny"]),s=["wds-icon",n,r||/-small$/.test(t)?"wds-icon-small":"",a||/-tiny$/.test(t)?"wds-icon-tiny":""].filter(function(e){return e}).join(" ");return o.a.createElement("svg",_extends({className:s},i),o.a.createElement("use",{xlinkHref:"#wds-icons-".concat(t)}))};s.propTypes={className:i.a.string,name:i.a.string.isRequired,small:i.a.bool,tiny:i.a.bool},s.defaultProps={className:"",small:!1,tiny:!1},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(359);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FandomContentWell(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-fandom-content-well ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=(n(401),function Spinner(e){var t=e.className,n=e.size,r=e.stroke,a=e.block,i=e.inline,s={width:n,height:n},l=(n-r)/2,c=l+r/2,u=2*Math.PI*l,p=["fandom-spinner"];return a&&p.push("is-block"),i&&p.push("is-inline"),t&&p.push(t),o.a.createElement("div",{className:p.join(" "),style:s},o.a.createElement("svg",{width:n,height:n,viewBox:"0 0 ".concat(n," ").concat(n),xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("g",{transform:"translate(".concat(c,", ").concat(c,")")},o.a.createElement("circle",{fill:"none",strokeWidth:r,strokeDasharray:u,strokeDashoffset:u,strokeLinecap:"round",r:l}))))});s.propTypes={block:i.a.bool,className:i.a.string,inline:i.a.bool,size:i.a.oneOfType([i.a.string,i.a.number]),stroke:i.a.oneOfType([i.a.string,i.a.number])},s.defaultProps={className:"",size:30,stroke:2,block:!1,inline:!1},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=(n(415),function SwitchWrapper(e){var t=e.children,n=e.className,r=l()("switch-wrapper",n);return o.a.createElement("div",{className:r},t)});c.propTypes={children:i.a.node.isRequired,className:i.a.string},c.defaultProps={className:void 0},t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=(n(417),function SwitchItem(e){var t=e.active,n=e.children,r=e.className,a=e.onClick,i=l()("switch-item",r,{"switch-item__active":t});return o.a.createElement("button",{type:"button",className:i,onClick:a},n)});c.propTypes={active:i.a.bool,children:i.a.node.isRequired,className:i.a.string,onClick:i.a.func},c.defaultProps={active:!1,className:void 0,onClick:void 0},t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"user-avatar-a",d:"M12 11c-.965 0-1.75-.785-1.75-1.75S11.035 7.5 12 7.5s1.75.785 1.75 1.75S12.965 11 12 11m0-5.5a3.754 3.754 0 0 0-3.75 3.75A3.754 3.754 0 0 0 12 13a3.754 3.754 0 0 0 3.75-3.75A3.754 3.754 0 0 0 12 5.5m7.679 12.914c-1.987-2.104-4.727-3.289-7.679-3.289-2.953 0-5.692 1.185-7.679 3.289A9.955 9.955 0 0 1 2 12C2 6.486 6.486 2 12 2s10 4.486 10 10a9.956 9.956 0 0 1-2.321 6.414M12 22a9.995 9.995 0 0 1-6.25-2.187c1.613-1.719 3.844-2.688 6.25-2.688s4.637.969 6.249 2.688A9.993 9.993 0 0 1 12 22m0-22C5.383 0 0 5.383 0 12c0 3.268 1.294 6.33 3.651 8.63l.012.013A12 12 0 0 0 12 24h.036a12.008 12.008 0 0 0 8.306-3.363C22.701 18.341 24 15.273 24 12c0-6.617-5.383-12-12-12"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#user-avatar-a"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#E3BD00",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.567 7.523L10.41 7.21l-.964-1.954c-.17-.341-.728-.341-.897 0L7.585 7.21l-2.157.313a.5.5 0 0 0-.277.853l1.561 1.521-.368 2.148a.5.5 0 0 0 .725.527l1.928-1.014 1.93 1.014a.5.5 0 0 0 .725-.526l-.369-2.148 1.561-1.521a.501.501 0 0 0-.277-.854z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#999",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{d:"M9.05 6.75l-3.9 3.9c-.1.1-.15.2-.15.35v1.5c0 .3.2.5.5.5H7c.15 0 .25-.05.35-.15l3.9-3.9-2.2-2.2zm3.8-.1l-1.5-1.5c-.2-.2-.5-.2-.7 0l-.9.9 2.2 2.2.9-.9c.2-.2.2-.5 0-.7z",fill:"#FFF"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#999",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.821 8.232c0 1.782-1.754 3.232-3.91 3.232a4.71 4.71 0 0 1-.98-.104l-1.832.727a.328.328 0 0 1-.319-.043.323.323 0 0 1-.126-.293l.171-1.533C5.292 9.653 5 8.953 5 8.232 5 6.45 6.754 5 8.91 5c2.157 0 3.911 1.45 3.911 3.232z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.821 8.232c0 1.782-1.754 3.232-3.91 3.232a4.71 4.71 0 0 1-.98-.104l-1.832.727a.328.328 0 0 1-.319-.043.323.323 0 0 1-.126-.293l.171-1.533C5.292 9.653 5 8.953 5 8.232 5 6.45 6.754 5 8.91 5c2.157 0 3.911 1.45 3.911 3.232z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("g",{fill:"#FFF"},o.a.createElement("path",{d:"M7.667 5h2.667v8H7.667z"}),o.a.createElement("path",{d:"M13 7.667v2.667H5V7.667z"}))))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M1.661 5.96c.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9s1.247-2.04 1.661-3.04z"}),o.a.createElement("path",{fill:"#FFF",d:"M11.234 4L9.06 6.055 6.89 4.008 4 6.445V9.14L8.995 14 14 9.14l-.01-2.688L11.235 4zM5.245 6.703l1.608-1.356 3.739 3.526-1.484 1.485-3.863-3.655zm4.542.038l1.466-1.385L12.764 6.7l-1.467 1.468-1.51-1.426zM5 8.717v-.87l3.401 3.22-.487.486L5 8.717zm3.63 3.533l4.366-4.369.002.836-4.003 3.89-.365-.357z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M8.767 12.856a.268.268 0 0 0 .465 0l3.735-6.453A.268.268 0 0 0 12.735 6h-1.616a.268.268 0 0 0-.232.134L9 9.397l-.289-.5-1.596-2.763A.268.268 0 0 0 6.884 6H5.268a.268.268 0 0 0-.232.403l3.73 6.453z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 12 12"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"close-tiny",d:"M7.426 6.001l4.278-4.279A1.008 1.008 0 1 0 10.278.296L6 4.574 1.723.296A1.008 1.008 0 1 0 .295 1.722l4.278 4.28-4.279 4.277a1.008 1.008 0 1 0 1.427 1.426L6 7.427l4.278 4.278a1.006 1.006 0 0 0 1.426 0 1.008 1.008 0 0 0 0-1.426L7.425 6.001z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#close-tiny"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 18 18"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"alert-small",d:"M2.618 15.995L9 3.199l6.382 12.796H2.618zm15.276.554l-8-16.04C9.555-.17 8.445-.17 8.105.51l-8 16.04A1.003 1.003 0 0 0 1 18h16c.347 0 .668-.18.85-.476a.998.998 0 0 0 .044-.975zM8 7.975V9.98a1 1 0 1 0 2 0V7.975a1 1 0 1 0-2 0m1.71 4.3c-.05-.04-.1-.09-.16-.12a.567.567 0 0 0-.17-.09.61.61 0 0 0-.19-.06.999.999 0 0 0-.9.27c-.09.101-.16.201-.21.33a1.01 1.01 0 0 0-.08.383c0 .26.11.52.29.711.19.18.44.291.71.291.06 0 .13-.01.19-.02a.635.635 0 0 0 .19-.06.59.59 0 0 0 .17-.09c.06-.04.11-.08.16-.12.18-.192.29-.452.29-.712 0-.132-.03-.261-.08-.382a.94.94 0 0 0-.21-.33"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#alert-small"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M6 16a.997.997 0 0 1-.707-.293l-5-5a.999.999 0 1 1 1.414-1.414L6 13.586 16.293 3.293a.999.999 0 1 1 1.414 1.414l-11 11A.997.997 0 0 1 6 16",fillRule:"evenodd"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("path",{fillRule:"evenodd",d:"M11.049 5.335a1.144 1.144 0 0 1 1.616 1.616l-2.048 2.05 2.048 2.047A1.145 1.145 0 0 1 11.857 13c-.293 0-.585-.112-.808-.334l-2.05-2.05-2.048 2.05a1.146 1.146 0 0 1-1.616 0 1.145 1.145 0 0 1 0-1.618L7.383 9 5.335 6.951A1.143 1.143 0 0 1 6.95 5.335L9 7.384l2.05-2.05zM16 11.899V6.1L11.9 2H6.1L2 6.1V11.9L6.1 16h5.8l4.1-4.101zm1.708-6.92c.186.187.292.442.292.707v6.628c0 .265-.106.52-.292.707l-4.687 4.686a1.001 1.001 0 0 1-.707.293H5.686c-.264 0-.52-.106-.707-.293L.292 13.02A1.003 1.003 0 0 1 0 12.314V5.686c0-.265.106-.52.292-.707L4.98.292A1 1 0 0 1 5.686 0h6.628a1 1 0 0 1 .707.292l4.687 4.687z"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 18 18"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"flag-small",d:"M3 11h10.586l-3.293-3.293a.999.999 0 0 1 0-1.414L13.586 3H3v8zm-1 7a1 1 0 0 1-1-1V1a1 1 0 0 1 2 0h13a1.002 1.002 0 0 1 .707 1.707L12.414 7l4.293 4.293A1 1 0 0 1 16 13H3v4a1 1 0 0 1-1 1z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#flag-small"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M10.5 18C6.364 18 3 14.636 3 10.5S6.364 3 10.5 3 18 6.364 18 10.5 14.636 18 10.5 18m12.207 3.293l-4.823-4.822A9.455 9.455 0 0 0 20 10.5C20 5.262 15.738 1 10.5 1S1 5.262 1 10.5 5.262 20 10.5 20c2.26 0 4.338-.793 5.97-2.115l4.823 4.822a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"dropdown-a",d:"M12 17c-.41 0-.82-.147-1.131-.44l-6.4-6a1.432 1.432 0 0 1-.347-1.635C4.368 8.365 4.954 8 5.6 8h12.8c.646 0 1.23.364 1.478.925s.11 1.207-.347 1.635l-6.4 6c-.312.293-.721.44-1.131.44z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#dropdown-a"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){var r=n(207),o=n(257)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,a=/zoo|gra/,i=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,f=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,v=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,x=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,O=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,I=/([^-])(image-set\()/,j="-webkit-",P="-moz-",T="-ms-",A=59,R=125,M=123,L=40,B=41,z=91,V=93,N=10,H=13,D=9,F=64,W=32,q=38,U=45,X=95,G=42,K=44,$=58,J=39,Y=34,Q=47,Z=62,ee=43,te=126,ne=0,re=12,oe=11,ae=107,ie=109,se=115,le=112,ce=111,ue=105,pe=99,de=100,he=112,fe=1,me=1,ve=0,ge=1,ye=1,be=1,we=0,xe=0,ke=0,Ee=[],_e=[],Oe=0,Ce=null,Se=-2,je=-1,Ae=0,Be=1,ze=2,Ve=3,Ne=0,De=1,Fe="",We="",qe="";function He(e,t,o,a,i){for(var s,l,u=0,p=0,d=0,h=0,g=0,y=0,b=0,w=0,k=0,_=0,O=0,C=0,S=0,I=0,X=0,we=0,_e=0,Ce=0,Se=0,je=o.length,Te=je-1,Re="",Ue="",Xe="",Ge="",$e="",Je="";X0&&(Ue=Ue.replace(r,"")),Ue.trim().length>0)){switch(b){case W:case D:case A:case H:case N:break;default:Ue+=o.charAt(X)}b=A}if(1===_e)switch(b){case M:case R:case A:case Y:case J:case L:case B:case K:_e=0;case D:case H:case N:case W:break;default:for(_e=0,Se=X,g=b,X--,b=A;Se0&&(++X,b=g);case M:Se=je}}switch(b){case M:for(g=(Ue=Ue.trim()).charCodeAt(0),O=1,Se=++X;X0&&(Ue=Ue.replace(r,"")),y=Ue.charCodeAt(1)){case de:case ie:case se:case U:s=t;break;default:s=Ee}if(Se=(Xe=He(t,s,Xe,y,i+1)).length,ke>0&&0===Se&&(Se=Ue.length),Oe>0&&(s=Ie(Ee,Ue,Ce),l=Pe(Ve,Xe,s,t,me,fe,Se,y,i,a),Ue=s.join(""),void 0!==l&&0===(Se=(Xe=l.trim()).length)&&(y=0,Xe="")),Se>0)switch(y){case se:Ue=Ue.replace(E,Me);case de:case ie:case U:Xe=Ue+"{"+Xe+"}";break;case ae:Xe=(Ue=Ue.replace(f,"$1 $2"+(De>0?Fe:"")))+"{"+Xe+"}",Xe=1===ye||2===ye&&Le("@"+Xe,3)?"@"+j+Xe+"@"+Xe:"@"+Xe;break;default:Xe=Ue+Xe,a===he&&(Ge+=Xe,Xe="")}else Xe="";break;default:Xe=He(t,Ie(t,Ue,Ce),Xe,a,i+1)}$e+=Xe,C=0,_e=0,I=0,we=0,Ce=0,S=0,Ue="",Xe="",b=o.charCodeAt(++X);break;case R:case A:if((Se=(Ue=(we>0?Ue.replace(r,""):Ue).trim()).length)>1)switch(0===I&&((g=Ue.charCodeAt(0))===U||g>96&&g<123)&&(Se=(Ue=Ue.replace(" ",":")).length),Oe>0&&void 0!==(l=Pe(Be,Ue,t,e,me,fe,Ge.length,a,i,a))&&0===(Se=(Ue=l.trim()).length)&&(Ue="\0\0"),g=Ue.charCodeAt(0),y=Ue.charCodeAt(1),g){case ne:break;case F:if(y===ue||y===pe){Je+=Ue+o.charAt(X);break}default:if(Ue.charCodeAt(Se-1)===$)break;Ge+=Ke(Ue,g,y,Ue.charCodeAt(2))}C=0,_e=0,I=0,we=0,Ce=0,Ue="",b=o.charCodeAt(++X)}}switch(b){case H:case N:if(p+h+d+u+xe===0)switch(_){case B:case J:case Y:case F:case te:case Z:case G:case ee:case Q:case U:case $:case K:case A:case M:case R:break;default:I>0&&(_e=1)}p===Q?p=0:ge+C===0&&a!==ae&&Ue.length>0&&(we=1,Ue+="\0"),Oe*Ne>0&&Pe(Ae,Ue,t,e,me,fe,Ge.length,a,i,a),fe=1,me++;break;case A:case R:if(p+h+d+u===0){fe++;break}default:switch(fe++,Re=o.charAt(X),b){case D:case W:if(h+u+p===0)switch(w){case K:case $:case D:case W:Re="";break;default:b!==W&&(Re=" ")}break;case ne:Re="\\0";break;case re:Re="\\f";break;case oe:Re="\\v";break;case q:h+p+u===0&&ge>0&&(Ce=1,we=1,Re="\f"+Re);break;case 108:if(h+p+u+ve===0&&I>0)switch(X-I){case 2:w===le&&o.charCodeAt(X-3)===$&&(ve=w);case 8:k===ce&&(ve=k)}break;case $:h+p+u===0&&(I=X);break;case K:p+d+h+u===0&&(we=1,Re+="\r");break;case Y:case J:0===p&&(h=h===b?0:0===h?b:h);break;case z:h+p+d===0&&u++;break;case V:h+p+d===0&&u--;break;case B:h+p+u===0&&d--;break;case L:if(h+p+u===0){if(0===C)switch(2*w+3*k){case 533:break;default:O=0,C=1}d++}break;case F:p+d+h+u+I+S===0&&(S=1);break;case G:case Q:if(h+u+d>0)break;switch(p){case 0:switch(2*b+3*o.charCodeAt(X+1)){case 235:p=Q;break;case 220:Se=X,p=G}break;case G:b===Q&&w===G&&Se+2!==X&&(33===o.charCodeAt(Se+2)&&(Ge+=o.substring(Se,X+1)),Re="",p=0)}}if(0===p){if(ge+h+u+S===0&&a!==ae&&b!==A)switch(b){case K:case te:case Z:case ee:case B:case L:if(0===C){switch(w){case D:case W:case N:case H:Re+="\0";break;default:Re="\0"+Re+(b===K?"":"\0")}we=1}else switch(b){case L:I+7===X&&108===w&&(I=0),C=++O;break;case B:0==(C=--O)&&(we=1,Re+="\0")}break;case D:case W:switch(w){case ne:case M:case R:case A:case K:case re:case D:case W:case N:case H:break;default:0===C&&(we=1,Re+="\0")}}Ue+=Re,b!==W&&b!==D&&(_=b)}}k=w,w=b,X++}if(Se=Ge.length,ke>0&&0===Se&&0===$e.length&&0===t[0].length==0&&(a!==ie||1===t.length&&(ge>0?We:qe)===t[0])&&(Se=t.join(",").length+2),Se>0){if(s=0===ge&&a!==ae?function(e){for(var t,n,o=0,a=e.length,i=Array(a);o1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==u)switch(d){case G:case te:case Z:case ee:case W:case L:break;default:t=" "}switch(h){case q:n=t+We;case te:case Z:case ee:case W:case B:case L:break;case z:n=t+n+We;break;case $:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,p-1);break}default:(u<1||s[u-1].length<1)&&(n=t+We+n)}break;case K:t="";default:n=p>1&&n.indexOf(":")>0?t+n.replace(x,"$1"+We+"$2"):t+n+We}l+=n}i[o]=l.replace(r,"").trim()}return i}(t):t,Oe>0&&void 0!==(l=Pe(ze,Ge,s,e,me,fe,Se,a,i,a))&&0===(Ge=l).length)return Je+Ge+$e;if(Ge=s.join(",")+"{"+Ge+"}",ye*ve!=0){switch(2!==ye||Le(Ge,2)||(ve=0),ve){case ce:Ge=Ge.replace(v,":"+P+"$1")+Ge;break;case le:Ge=Ge.replace(m,"::"+j+"input-$1")+Ge.replace(m,"::"+P+"$1")+Ge.replace(m,":"+T+"input-$1")+Ge}ve=0}}return Je+Ge+$e}function Ie(e,t,n){var r=t.trim().split(u),o=r,a=r.length,i=e.length;switch(i){case 0:case 1:for(var s=0,l=0===i?"":e[0]+" ";s0&&ge>0)return o.replace(d,"$1").replace(p,"$1"+qe);break;default:return e.trim()+o.replace(p,"$1"+e.trim())}default:if(n*ge>0&&o.indexOf("\f")>0)return o.replace(p,(e.charCodeAt(0)===$?"":"$1")+e.trim())}return e+o}function Ke(e,t,n,r){var c,u=0,p=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*De){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:for(var a=o.split((o="",s)),i=0,n=0,t=a.length;iF&&p<90||p>96&&p<123||p===X||p===U&&c.charCodeAt(1)!==U))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Fe}}u[n++]=c}o+=(0===i?"":",")+u.join(" ")}}return o=r+o+";",1===ye||2===ye&&Le(o,1)?j+o+o:o}(p);if(0===ye||2===ye&&!Le(p,1))return p;switch(d){case 1015:return 97===p.charCodeAt(10)?j+p+p:p;case 951:return 116===p.charCodeAt(3)?j+p+p:p;case 963:return 110===p.charCodeAt(5)?j+p+p:p;case 1009:if(100!==p.charCodeAt(4))break;case 969:case 942:return j+p+p;case 978:return j+p+P+p+p;case 1019:case 983:return j+p+P+p+T+p+p;case 883:return p.charCodeAt(8)===U?j+p+p:p.indexOf("image-set(",11)>0?p.replace(I,"$1"+j+"$2")+p:p;case 932:if(p.charCodeAt(4)===U)switch(p.charCodeAt(5)){case 103:return j+"box-"+p.replace("-grow","")+j+p+T+p.replace("grow","positive")+p;case 115:return j+p+T+p.replace("shrink","negative")+p;case 98:return j+p+T+p.replace("basis","preferred-size")+p}return j+p+T+p+p;case 964:return j+p+T+"flex-"+p+p;case 1023:if(99!==p.charCodeAt(8))break;return c=p.substring(p.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),j+"box-pack"+c+j+p+T+"flex-pack"+c+p;case 1005:return a.test(p)?p.replace(o,":"+j)+p.replace(o,":"+P)+p:p;case 1e3:switch(u=(c=p.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=p.replace(k,"tb");break;case 232:c=p.replace(k,"tb-rl");break;case 220:c=p.replace(k,"lr");break;default:return p}return j+p+T+c+p;case 1017:if(-1===p.indexOf("sticky",9))return p;case 975:switch(u=(p=e).length-10,d=(c=(33===p.charCodeAt(u)?p.substring(0,u):p).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:p=p.replace(c,j+c)+";"+p;break;case 207:case 102:p=p.replace(c,j+(d>102?"inline-":"")+"box")+";"+p.replace(c,j+c)+";"+p.replace(c,T+c+"box")+";"+p}return p+";";case 938:if(p.charCodeAt(5)===U)switch(p.charCodeAt(6)){case 105:return c=p.replace("-items",""),j+p+j+"box-"+c+T+"flex-"+c+p;case 115:return j+p+T+"flex-item-"+p.replace(O,"")+p;default:return j+p+T+"flex-line-pack"+p.replace("align-content","").replace(O,"")+p}break;case 973:case 989:if(p.charCodeAt(3)!==U||122===p.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):p.replace(c,j+c)+p.replace(c,P+c.replace("fill-",""))+p;break;case 962:if(p=j+p+(102===p.charCodeAt(5)?T+p:"")+p,n+r===211&&105===p.charCodeAt(13)&&p.indexOf("transform",10)>0)return p.substring(0,p.indexOf(";",27)+1).replace(i,"$1"+j+"$2")+p}return p}function Le(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Ce(2!==t?r:r.replace(C,"$1"),o,t)}function Me(e,t){var n=Ke(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function Pe(e,t,n,r,o,a,i,s,l,c){for(var u,p=0,d=t;p0&&(Fe=o.replace(h,a===z?"":"-")),a=1,1===ge?qe=o:We=o;var i,s=[qe];Oe>0&&void 0!==(i=Pe(je,n,s,s,me,fe,0,0,0,0))&&"string"==typeof i&&(n=i);var l=He(Ee,s,n,0,0);return Oe>0&&void 0!==(i=Pe(Se,l,s,s,me,fe,l.length,0,0,0))&&"string"!=typeof(l=i)&&(a=0),Fe="",qe="",We="",ve=0,me=1,fe=1,we*a==0?l:l.replace(r,"").replace(g,"").replace(y,"$1").replace(b,"$1").replace(w," ")}return Te.use=function e(t){switch(t){case void 0:case null:Oe=_e.length=0;break;default:if("function"==typeof t)_e[Oe++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n=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(180));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(17)),o=(_interopRequireDefault(n(111)),_interopRequireDefault(n(183)));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 a="c",i="";return n&&(a=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(i+=n.options.jss.id)),""+a+o.default+i+e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&p.splice(t,1)}function createStyleElement(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=getNonce();n&&(e.attrs.nonce=n)}return 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 getNonce(){return n.nc}function addStyle(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var i=u++;n=c||(c=createStyleElement(t)),r=applyToSingletonTag.bind(null,n,i,!1),o=applyToSingletonTag.bind(null,n,i,!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=i()),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;o",lt:"<",nbsp:" ",quot:"“"},g=["style","script"],y=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,w=/mailto:/i,x=/\n{2,}$/,E=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_=/^ *> ?/gm,O=/^ {2,}\n/,C=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,S=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,I=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,P=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,T=/^(?:\n *)*\n/,A=/\r\n?/g,R=/^\[\^(.*)\](:.*)\n/,M=/^\[\^(.*)\]/,L=/\f/g,B=/^\s*?\[(x|\s)\]/,z=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,V=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N=/^ *<([A-Za-z][^ >\/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/,H=/&([a-z]+);/g,D=/^/,F=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,W=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,q=/^\{.*\}$/,U=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,X=/^<([^ >]+@[^ >]+)>/,G=/^<([^ >]+:\/[^ >]+)>/,K=/ *\n+$/,$=/(?:^|\n)( *)$/,J=/-([a-z])?/gi,Y=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Q=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Z=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,ee=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,te=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ne=/(\[|\])/g,re=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,oe=/\t/g,ae=/(^ *\||\| *$)/g,ie=/^ *:-+: *$/,se=/^ *:-+ *$/,le=/^ *-+: *$/,ce=/ *\| */,ue=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,pe=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,de=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,he=/^\\([^0-9A-Za-z\s])/,fe=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,me=/(^\n+|(\n|\s)+$)/g,ve=/^([ \t]*)/,ge=/\\([^0-9A-Z\s])/gi,ye=/^( *)((?:[*+-]|\d+\.)) +/,be=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,we=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,xe=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,ke=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Ee=[E,I,S,z,V,N,D,W,be,we,Y,Q];function containsBlockSyntax(e){return Ee.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 le.test(e)?"right":ie.test(e)?"center":se.test(e)?"left":null}function parseTableHeader(e,t,n){return e[1].replace(ae,"").trim().split(ce).map(function(e){return t(e,n)})}function parseTableAlign(e){return e[2].replace(ae,"").trim().split(ce).map(parseTableAlignCapture)}function parseTableCells(e,t,n){return e[3].replace(ae,"").trim().split("\n").map(function(e){return e.replace(ae,"").split(ce).map(function(e){return t(e.trim(),n)})})}function parseTable(e,t,n){n.inline=!0;var r=parseTableHeader(e,t,n),o=parseTableAlign(e),a=parseTableCells(e,t,n);return n.inline=!1,{align:o,cells:a,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(F)&&(e=e.replace(J,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(":")),r=n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()});return e[r]=t.slice(n.length+1).trim(),e},{}):(t.match(q)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}function normalizeWhitespace(e){return e.replace(A,"\n").replace(L,"").replace(oe," ")}function parserFor(e){function b(n,r){for(var o=[],a="";n;)for(var i=0;i2?a-2:0),s=2;s1?o=d(t?"span":"div",null,r):1===r.length?"string"==typeof(o=r[0])&&(o=d("span",null,o)):o=d("span",null),o}function e(e){var t=e.match(y);return t?t.reduce(function(e,t,n){var r=t.indexOf("=");if(-1!==r){var o=normalizeAttributeKey(t.slice(0,r)).trim(),a=u()(t.slice(r+1).trim()),i=m[o]||o,l=e[i]=attributeValueToJSXPropValue(o,a);(N.test(l)||W.test(l))&&(e[i]=s.a.cloneElement(c(l.trim()),{key:n}))}else e[m[t]||t]=!0;return e},{}):void 0}(n=n||{}).overrides=n.overrides||{},n.slugify=n.slugify||slugify;var r=n.createElement||s.a.createElement;var o=[],a={},i={blockQuote:{match:blockRegex(E),order:Oe,parse:function d(e,t,n){return{content:t(e[0].replace(_,""),n)}},react:function e(t,n,r){return d("blockquote",{key:r.key},n(t.content,r))}},breakLine:{match:anyScopeRegex(O),order:Oe,parse:captureNothing,react:function e(t,n,r){return d("br",{key:r.key})}},breakThematic:{match:blockRegex(C),order:Oe,parse:captureNothing,react:function e(t,n,r){return d("hr",{key:r.key})}},codeBlock:{match:blockRegex(I),order:_e,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(S),order:_e,parse:function b(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(P),order:Se,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(R),order:_e,parse:function b(e){return o.push({footnote:e[2],identifier:e[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(M),order:Oe,parse:function b(e){return{content:e[1],target:"#"+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(B),order:Oe,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(z),order:Oe,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(V),order:_e,parse:function d(e,t,n){return{content:parseInline(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlBlock:{match:anyScopeRegex(N),order:Oe,parse:function k(t,n,r){var o=t[3].match(ve)[1],a=new RegExp("^"+o,"gm"),i=t[3].replace(a,""),s=containsBlockSyntax(i)?parseBlock:parseInline,l=-1!==g.indexOf(t[1]);return{attrs:e(t[2]),content:l?t[3]:s(n,i,r),noInnerParse:l,tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({key:r.key},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},htmlComment:{match:anyScopeRegex(D),order:Oe,parse:function a(){return{}},react:renderNothing},htmlSelfClosing:{match:anyScopeRegex(W),order:Oe,parse:function b(t){return{attrs:e(t[2]||""),tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({},t.attrs,{key:r.key}))}},image:{match:simpleInlineRegex(ke),order:Oe,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:Se,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(G),order:_e,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(U),order:_e,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(X),order:_e,parse:function d(e){var t=e[1],n=e[1];return w.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=$.exec(n),o=t._list||!t.inline;return r&&o?(e=r[1]+e,we.exec(e)):null},order:Oe,parse:function j(e,t,n){var r=e[2],o=r.length>1,a=o?+r:void 0,i=e[0].replace(x,"\n").match(be),s=!1;return{items:i.map(function(e,r){var o=ye.exec(e)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),l=e.replace(a,"").replace(ye,""),c=r===i.length-1,u=-1!==l.indexOf("\n\n")||c&&s;s=u;var p,d=n.inline,h=n._list;n._list=!0,u?(n.inline=!1,p=l.replace(K,"\n\n")):(n.inline=!0,p=l.replace(K,""));var f=t(p,n);return n.inline=d,n._list=h,f}),ordered:o,start:a}},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(T),order:Se,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Q),order:Se,parse:parseCaptureInline,react:function e(t,n,r){return d("p",{key:r.key},n(t.content,r))}},ref:{match:inlineRegex(Z),order:_e,parse:function b(e){return a[e[1]]={target:e[2],title:e[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(ee),order:_e,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(a[t.ref].target),title:a[t.ref].title})}},refLink:{match:inlineRegex(te),order:_e,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 a[t.ref]?d("a",{key:r.key,href:sanitizeUrl(a[t.ref].target),title:a[t.ref].title},n(t.content,r)):d("span",null,n(t.fallbackContent,r))}},table:{match:blockRegex(Y),order:Oe,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))}))})))}},text:{match:anyScopeRegex(fe),order:Ie,parse:function b(e){return{content:e[0].replace(H,function(e,t){return v[t]?v[t]:e})}},react:function b(e){return e.content}},textBolded:{match:simpleInlineRegex(ue),order:Ce,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(pe),order:Se,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:Oe,parse:function b(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(de),order:Se,parse:parseCaptureInline,react:function e(t,n,r){return d("del",{key:r.key},n(t.content,r))}}},l=parserFor(i),h=reactFor(ruleOutput(i)),j=c(t);return o.length&&j.props.children.push(d("footer",null,o.map(function(e){return d("div",{id:e.identifier,key:e.identifier},e.identifier,h(l(e.footnote,{inline:!0})))}))),j}var je=r(59),Pe=r(16),Te=r(27),Ae=r(4),Re=r(29);function MarkdownHeadingRenderer(e){var t=e.classes,n=e.level,r=e.children;return s.a.createElement("div",{className:t.spacing},s.a.createElement(Re.a,{level:n},r))}MarkdownHeadingRenderer.propTypes={classes:a.a.object.isRequired,level:a.a.oneOf([1,2,3,4,5,6]).isRequired,children:a.a.node};var Me=Object(Ae.a)(function styles(e){return{spacing:{marginBottom:e.space[2]}}})(MarkdownHeadingRenderer),Le=r(5),Be=r.n(Le);function ListRenderer(e){var t=e.classes,n=e.ordered,r=e.children,o=n?"ol":"ul",a=Be()(t.list,n&&t.ordered);return s.a.createElement(o,{className:a},i.Children.map(r,function(e){return Object(i.cloneElement)(e,{className:t.li})}))}ListRenderer.propTypes={classes:a.a.object.isRequired,ordered:a.a.bool,children:a.a.node.isRequired},ListRenderer.defaultProps={ordered:!1};var ze=Object(Ae.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=Be()(t.blockquote,n);return s.a.createElement("blockquote",{className:o},r)}BlockquoteRenderer.propTypes={classes:a.a.object.isRequired,className:a.a.string,children:a.a.node.isRequired};var Ve=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ne=Object(Ae.a)(function styles(e){var t=e.space,n=e.color,r=e.fontSize,o=e.fontFamily,a=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:a,marginTop:0,marginBottom:t[2]}}})(PreRenderer),He=r(32),De=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",De({},n,{type:"checkbox",className:t.input}))}CheckboxRenderer.propTypes={classes:a.a.object.isRequired};var Fe=Object(Ae.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:a.a.object.isRequired};var We=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var qe=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ue=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Xe=Object(Ae.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:a.a.object.isRequired,children:a.a.node.isRequired};var Ge=Object(Ae.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:a.a.node.isRequired};var Ke=TableBodyRenderer;function TableRowRenderer(e){var t=e.children;return s.a.createElement("tr",null,t)}TableRowRenderer.propTypes={children:a.a.node.isRequired};var $e=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:a.a.object.isRequired,header:a.a.bool,children:a.a.node.isRequired},TableCellRenderer.defaultProps={header:!1};var Je=Object(Ae.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=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function TextRenderer(e){var t,n=e.classes,r=e.semantic,a=e.size,i=e.color,s=e.underlined,l=e.children,p=_objectWithoutProperties(e,["classes","semantic","size","color","underlined","children"]),d=r||"span",h=c()(n.text,n[a+"Size"],n[i+"Color"],(_defineProperty(t={},n[r],r),_defineProperty(t,n.isUnderlined,s),t));return o.a.createElement(d,u({},p,{className:h}),l)}TextRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["em","strong"]),size:i.a.oneOf(["inherit","small","base","text"]),color:i.a.oneOf(["base","light"]),underlined:i.a.bool,children:i.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);n.d(t,"a",function(){return p})},function(e,t,n){"use strict";e.exports=function(){}},function(e,t){e.exports=function isObjectLike(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(67),o=n(71);e.exports=function isArrayLike(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function TypeRenderer(e){var t=e.classes,n=e.children;return o.a.createElement("span",{className:t.type},n)}TypeRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var l=Object(s.a)(function styles(e){var t=e.fontFamily,n=e.fontSize,r=e.color;return{type:{fontFamily:t.monospace,fontSize:n.small,color:r.type}}})(TypeRenderer);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";(function(e){var r=n(106),o=n.n(r),a=n(54),i=n.n(a),s=n(0),l=n.n(s),c=n(157),u=n(61),p=n(31),d=(n(1),n(12),n(171)),h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w=function(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},x=function(e){return"object"===(void 0===e?"undefined":f(e))&&e.constructor===Object},k=Object.freeze([]),E=Object.freeze({});function isFunction(e){return"function"==typeof e}function getComponentName(e){return e.displayName||e.name||"Component"}function isStyledComponent(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&e.env.SC_ATTR||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,C="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1;var S=function(e){function StyledComponentsError(t){m(this,StyledComponentsError);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0&&-1!==n.slice(0,t).indexOf(z)&&n.slice(t-z.length,t)!==z?"."+B:e};A.use([function selfReferenceReplacementPlugin(e,t,n){2===e&&n.length&&n[0].lastIndexOf(z)>0&&(n[0]=n[0].replace(V,N))},L,M]),T.use([L,M]);var H=function splitByRules(e){return T("",e)};function stringifyRules(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(P,""),a=t&&n?n+" "+t+" { "+o+" }":o;return B=r,z=t,V=new RegExp("\\"+z+"\\b","g"),A(n||!t?"":t,a)}var D=function(){return n.nc},F=function addNameForId(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},W=function resetIdNames(e,t){e[t]=Object.create(null)},q=function hasNameForId(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},U=function stringifyNames(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},X=function cloneNames(e){var t=Object.create(null);for(var n in e)t[n]=g({},e[n]);return t},G=function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;nr;o-=1)e.deleteRule(o)},J=function makeTextMarker(e){return"\n/* sc-component-id: "+e+" */\n"},Y=function addUpUntilIndex(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},Q=function makeStyleTag(e,t,n){var r=document.createElement("style");r.setAttribute(_,""),r.setAttribute("data-styled-version","4.1.3");var o=D();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new S(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r},Z=function wrapAsHtmlTag(e,t){return function(n){var r=D();return""}},ee=function wrapAsElement(e,t){return function(){var n,r=((n={})[_]=U(t),n["data-styled-version"]="4.1.3",n),o=D();return o&&(r.nonce=o),l.a.createElement("style",g({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},te=function getIdsFromMarkersFactory(e){return function(){return Object.keys(e)}},ne=function makeSpeedyTag(e,t){var n=Object.create(null),r=Object.create(null),o=[],a=void 0!==t,i=!1,s=function insertMarker(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),W(n,e),r[e])},l=function css(){var t=G(e).cssRules,n="";for(var a in r){n+=J(a);for(var i=r[a],s=Y(o,i),l=s-o[i];l0&&(i=!0,t().insertRules(r+"-import",f)),o[u]+=h,F(n,r,c)},removeRules:function removeRules(s){var l=r[s];if(void 0!==l){var c=o[l],u=G(e),p=Y(o,l)-1;$(u,p,c),o[l]=0,W(n,s),a&&i&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ee(l,n),toHTML:Z(l,n)}},re=function makeTextNode(e){return document.createTextNode(J(e))},oe=function makeBrowserTag(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,a=!1,i=function insertMarker(t){var o=r[t];return void 0!==o?o:(r[t]=re(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function css(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function clone(){throw new S(5)},css:s,getIds:te(r),hasNameForId:q(n),insertMarker:i,insertRules:function insertRules(e,r,s){for(var l=i(e),c=[],u=r.length,p=0;p0&&(a=!0,t().insertRules(e+"-import",c))},removeRules:function removeRules(i){var s=r[i];if(void 0!==s){var l=re(i);e.replaceChild(l,s),r[i]=l,W(n,i),o&&a&&t().removeRules(i+"-import")}},sealed:!1,styleTag:e,toElement:ee(s,n),toHTML:Z(s,n)}},ae=function makeServerTag(e,t){var n=void 0===e?Object.create(null):e,r=void 0===t?Object.create(null):t,o=function insertMarker(e){var t=r[e];return void 0!==t?t:r[e]=[""]},a=function css(){var e="";for(var t in r){var n=r[t][0];n&&(e+=J(t)+n)}return e};return{clone:function clone(){var e=X(n),t=Object.create(null);for(var o in r)t[o]=[r[o][0]];return makeServerTag(e,t)},css:a,getIds:te(r),hasNameForId:q(n),insertMarker:o,insertRules:function insertRules(e,t,r){o(e)[0]+=t.join(" "),F(n,e,r)},removeRules:function removeRules(e){var t=r[e];void 0!==t&&(t[0]="",W(n,e))},sealed:!1,styleTag:null,toElement:ee(a,n),toHTML:Z(a,n)}},ie=function makeTag(e,t,n,r,o){if(O&&!n){var a=Q(e,t,r);return C?oe(a,o):ne(a,o)}return ae()},se=function rehydrate(e,t,n){for(var r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:O?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,StyleSheet),this.getImportRuleTag=function(){var t=e.importRuleTag;if(void 0!==t)return t;var n=e.tags[0];return e.importRuleTag=ie(e.target,n?n.styleTag:null,e.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=n,this.target=n?null:t,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return StyleSheet.prototype.rehydrate=function rehydrate$$1(){if(!O||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+_+'][data-styled-version="4.1.3"]'),o=r.length;if(!o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];pe=new StyleSheet(void 0,e).rehydrate()},StyleSheet.prototype.clone=function clone(){var e=new StyleSheet(this.target,this.forceServer);return this.clones.push(e),e.tags=this.tags.map(function(t){for(var n=t.getIds(),r=t.clone(),o=0;o1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(u.isValidElementType)(t))throw new S(1,String(t));var r=function templateFunction(){return e(t,n,css.apply(void 0,arguments))};return r.withConfig=function(r){return constructWithOptions(e,t,g({},n,r))},r.attrs=function(r){return constructWithOptions(e,t,g({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function murmurhash(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>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>>>15)>>>0}var ye=52,be=function getAlphabeticChar(e){return String.fromCharCode(e+(e>25?39:97))};function generateAlphabeticName(e){var t="",n=void 0;for(n=e;n>ye;n=Math.floor(n/ye))t=be(n%ye)+t;return be(n%ye)+t}function hasFunctionObjectKey(e){for(var t in e)if(isFunction(e[t]))return!0;return!1}function isStaticRules(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ce=/(^-|-$)/g;function escape(e){return e.replace(Oe,"-").replace(Ce,"")}function isTag(e){return"string"==typeof e&&!0}function generateDisplayName(e){return isTag(e)?"styled."+e:"Styled("+getComponentName(e)+")"}var Se={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},je=((we={})[u.ForwardRef]={$$typeof:!0,render:!0},we),Pe=Object.defineProperty,Te=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Re=void 0===Ae?function(){return[]}:Ae,Me=Object.getOwnPropertyDescriptor,Le=Object.getPrototypeOf,Be=Object.prototype,ze=Array.prototype;function hoistNonReactStatics(e,t,n){if("string"!=typeof t){var r=Le(t);r&&r!==Be&&hoistNonReactStatics(e,r,n);for(var o=ze.concat(Te(t),Re(t)),a=je[e.$$typeof]||Se,i=je[t.$$typeof]||Se,s=o.length,l=void 0,c=void 0;s--;)if(c=o[s],!(Ie[c]||n&&n[c]||i&&i[c]||a&&a[c])&&(l=Me(t,c)))try{Pe(e,c,l)}catch(e){}return e}return e}var Ve=Object(s.createContext)(),Ne=Ve.Consumer,He=(function(e){function ThemeProvider(t){m(this,ThemeProvider);var n=w(this,e.call(this,t));return n.getContext=Object(p.a)(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}y(ThemeProvider,e),ThemeProvider.prototype.render=function render(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},ThemeProvider.prototype.renderInner=function renderInner(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},l.a.Children.only(this.props.children))},ThemeProvider.prototype.getTheme=function getTheme(e,t){if(isFunction(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":f(e)))throw new S(8);return g({},t,e)},ThemeProvider.prototype.getContext=function getContext(e,t){return this.getTheme(e,t)}}(s.Component),function(){function ServerStyleSheet(){m(this,ServerStyleSheet),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}ServerStyleSheet.prototype.seal=function seal(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},ServerStyleSheet.prototype.collectStyles=function collectStyles(e){if(this.sealed)throw new S(2);return l.a.createElement(Fe,{sheet:this.instance},e)},ServerStyleSheet.prototype.getStyleTags=function getStyleTags(){return this.seal(),this.instance.toHTML()},ServerStyleSheet.prototype.getStyleElement=function getStyleElement(){return this.seal(),this.instance.toReactElements()},ServerStyleSheet.prototype.interleaveWithNodeStream=function interleaveWithNodeStream(e){throw new S(3)}}(),Object(s.createContext)()),De=He.Consumer,Fe=function(e){function StyleSheetManager(t){m(this,StyleSheetManager);var n=w(this,e.call(this,t));return n.getContext=Object(p.a)(n.getContext),n}return y(StyleSheetManager,e),StyleSheetManager.prototype.getContext=function getContext(e,t){if(e)return e;if(t)return new de(t);throw new S(4)},StyleSheetManager.prototype.render=function render(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.a.createElement(He.Provider,{value:this.getContext(n,r)},t)},StyleSheetManager}(s.Component),We=(new Set,{});function generateId(e,t,n){var r="string"!=typeof t?"sc":escape(t),o=(We[r]||0)+1;We[r]=o;var a=r+"-"+e.generateName(r+o);return n?n+"-"+a:a}var qe=function(e){function StyledComponent(){m(this,StyledComponent);var t=w(this,e.call(this));return t.attrs={},t.renderOuter=t.renderOuter.bind(t),t.renderInner=t.renderInner.bind(t),t}return y(StyledComponent,e),StyledComponent.prototype.render=function render(){return l.a.createElement(De,null,this.renderOuter)},StyledComponent.prototype.renderOuter=function renderOuter(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ne,null,this.renderInner)},StyledComponent.prototype.renderInner=function renderInner(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,o=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,i=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):void 0!==e?this.generateAndInjectStyles(_e(this.props,e,r),this.props):this.generateAndInjectStyles(this.props.theme||E,this.props);var c=this.props.as||this.attrs.as||i,u=isTag(c),p={},h=g({},this.attrs,this.props),f=void 0;for(f in h)"forwardedComponent"!==f&&"as"!==f&&("forwardedRef"===f?p.ref=h[f]:u&&!Object(d.a)(f)||(p[f]=h[f]));return this.props.style&&this.attrs.style&&(p.style=g({},this.attrs.style,this.props.style)),p.className=Array.prototype.concat(o,this.props.className,a,this.attrs.className,l).filter(Boolean).join(" "),Object(s.createElement)(c,p)},StyledComponent.prototype.buildExecutionContext=function buildExecutionContext(e,t,n){var r=this,o=g({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,a=!1,i=void 0,s=void 0;for(s in isFunction(n)&&(n=n(o),a=!0),n)i=n[s],a||!isFunction(i)||(t=i)&&t.prototype&&t.prototype.isReactComponent||isStyledComponent(i)||(i=i(o)),r.attrs[s]=i,o[s]=i}),o):o},StyledComponent.prototype.generateAndInjectStyles=function generateAndInjectStyles(e,t){var n=t.forwardedComponent,r=n.attrs,o=n.componentStyle;n.warnTooManyClasses;return o.isStatic&&!r.length?o.generateAndInjectStyles(E,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},StyledComponent}(s.Component);function createStyledComponent(e,t,n){var r=isStyledComponent(e),o=!isTag(e),a=t.displayName,i=void 0===a?generateDisplayName(e):a,s=t.componentId,c=void 0===s?generateId(Ee,t.displayName,t.parentComponentId):s,u=t.ParentComponent,p=void 0===u?qe:u,d=t.attrs,h=void 0===d?k:d,f=t.displayName&&t.componentId?escape(t.displayName)+"-"+t.componentId:t.componentId||c,m=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=new Ee(r?e.componentStyle.rules.concat(n):n,m,f),y=l.a.forwardRef(function(e,t){return l.a.createElement(p,g({},e,{forwardedComponent:y,forwardedRef:t}))});return y.attrs=m,y.componentStyle=v,y.displayName=i,y.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,y.styledComponentId=f,y.target=r?e.target:e,y.withComponent=function withComponent(e){var r=t.componentId,o=b(t,["componentId"]),a=r&&r+"-"+(isTag(e)?e:escape(getComponentName(e)));return createStyledComponent(e,g({},o,{attrs:m,componentId:a,ParentComponent:p}),n)},y.toString=function(){return"."+y.styledComponentId},o&&hoistNonReactStatics(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Ue=function styled(e){return constructWithOptions(createStyledComponent,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ue[e]=Ue(e)});!function(){function GlobalStyle(e,t){m(this,GlobalStyle),this.rules=e,this.componentId=t,this.isStatic=isStaticRules(e,k),de.master.hasId(t)||de.master.deferredInject(t,[])}GlobalStyle.prototype.createStyles=function createStyles(e,t){var n=stringifyRules(flatten(this.rules,e,t),"");t.inject(this.componentId,n)},GlobalStyle.prototype.removeStyles=function removeStyles(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},GlobalStyle.prototype.renderStyles=function renderStyles(e,t){this.removeStyles(t),this.createStyles(e,t)}}();O&&(window.scCGSHMRCache={});t.a=Ue}).call(this,n(37))},function(e,t,n){var r=n(219),o=n(224);e.exports=function getNative(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(42),o=n(220),a=n(221),i="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function baseGetTag(e){return null==e?void 0===e?s:i:l&&l in Object(e)?o(e):a(e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4),l=n(5),c=n.n(l);function NameRenderer(e){var t,n,r,a=e.classes,i=e.children,s=e.deprecated,l=c()(a.name,(t={},n=a.isDeprecated,r=s,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));return o.a.createElement("code",{className:l},i)}NameRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired,deprecated:i.a.bool};var u=Object(s.a)(function styles(e){var t=e.fontFamily,n=e.fontSize,r=e.color;return{name:{fontFamily:t.monospace,fontSize:n.small,color:r.name},isDeprecated:{color:r.light,textDecoration:"line-through"}}})(NameRenderer);n.d(t,"a",function(){return u})},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,a=e.description,i=e.returns,s=e.block,p=_objectWithoutProperties(e,["classes","name","type","description","returns","block"]),f=r&&"OptionalType"===r.type,m=p.default;return f&&(r=r.expression),o.a.createElement(d.a,h({className:s&&t.block},p),i&&"Returns",n&&o.a.createElement("span",null,o.a.createElement(c.a,null,n),r&&":"),r&&o.a.createElement(u.a,null,r.name,f&&"?",!!m&&"="+m),r&&a&&" — ",a&&o.a.createElement(l.a,{text:""+a,inline:!0}))}ArgumentRenderer.propTypes={classes:i.a.object.isRequired,name:i.a.string,type:i.a.object,default:i.a.string,description:i.a.string,returns:i.a.bool,block:i.a.bool};var f=Object(s.a)(function styles(e){return{block:{marginBottom:e.space[2]}}})(ArgumentRenderer);n.d(t,"a",function(){return f})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function ParaRenderer(e){var t=e.classes,n=e.semantic,r=e.children,a=n||"div";return o.a.createElement(a,{className:t.para},r)}ParaRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["p"]),children:i.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);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(9),l=n(150),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")},h={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()(h,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:i.a.array,see:i.a.array,link:i.a.array,author:i.a.array,version:i.a.array,since:i.a.array},n.d(t,"a",function(){return JsDoc})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=n(4),u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function HeadingRenderer(e){var t=e.classes,n=e.level,r=e.children,a=_objectWithoutProperties(e,["classes","level","children"]),i="h"+n,s=l()(t.heading,t["heading"+n]);return o.a.createElement(i,u({},a,{className:s}),r)}HeadingRenderer.propTypes={classes:i.a.object.isRequired,level:i.a.oneOf([1,2,3,4,5,6]).isRequired,children:i.a.node};var p=Object(c.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:r.h1},heading2:{fontSize:r.h2},heading3:{fontSize:r.h3},heading4:{fontSize:r.h4},heading5:{fontSize:r.h5,fontWeight:"bold"},heading6:{fontSize:r.h6,fontStyle:"italic"}}})(HeadingRenderer);n.d(t,"a",function(){return p})},function(e,t,n){var r=n(130),o=n(131),a=n(46),i=n(14),s=n(19),l=n(47),c=n(45),u=n(48),p="[object Map]",d="[object Set]",h=Object.prototype.hasOwnProperty;e.exports=function isEmpty(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(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(h.call(e,n))return!1;return!0}},function(e,t,n){"use strict";var r=function simpleIsEqual(e,t){return e===t};t.a=function index(e,t){var n;void 0===t&&(t=r);var o,a=[],i=!1,s=function isNewArgEqualToLast(e,n){return t(e,a[n])};return function result(){for(var t=arguments.length,r=new Array(t),l=0;l1&&(n=[t.shift()],t.forEach(function(e,t){if(a){var i="separator-"+(e.key||t);o=r.cloneElement(o,{key:i})}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){var n,r,o=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function runClearTimeout(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var a,i=[],s=!1,l=-1;function cleanUpNextTick(){s&&a&&(s=!1,a.length?i=a.concat(i):l=-1,i.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=i.length;t;){for(a=i,i=[];++l1)for(var n=1;n1&&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],i=n.jss,s=(0,a.default)(t),l=i.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(17)),o=_interopRequireDefault(n(25)),a=_interopRequireDefault(n(180));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(209),o=n(210),a=n(211),i=n(212),s=n(213);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 h=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 h(e,{beforeExpr:!0,binop:t})}var f={beforeExpr:!0},m={startsExpr:!0},v={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,v[e]=new h(e,t)}var g={num:new h("num",m),regexp:new h("regexp",m),string:new h("string",m),name:new h("name",m),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",f),semi:new h(";",f),colon:new h(":",f),dot:new h("."),question:new h("?",f),arrow:new h("=>",f),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",f),backQuote:new h("`",m),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{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 h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new h("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",f),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",f),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",f),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",m),_if:kw("if"),_return:kw("return",f),_switch:kw("switch"),_throw:kw("throw",f),_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",f),_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]/,x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,E=k.hasOwnProperty,_=k.toString;function has(e,t){return E.call(e,t)}var O=Array.isArray||function(e){return"[object Array]"===_.call(e)},C=function Position(e,t){this.line=e,this.column=t};C.prototype.offset=function offset(e){return new C(this.line,this.column+e)};var S=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),O(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return O(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),t}function pushComment(e,t){return function(n,r,o,a,i,s){var l={type:n?"Block":"Line",value:r,start:o,end:a};e.locations&&(l.loc=new S(this,i,s)),e.ranges&&(l.range=[o,a]),t.push(l)}}var j={};function keywordRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var P=function Parser(e,t,n){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=keywordRegexp(a[e.ecmaVersion>=6?6:5]);var o="";if(!e.allowReserved){for(var i=e.ecmaVersion;!(o=r[i]);i--);"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=g.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};P.prototype.isKeyword=function isKeyword(e){return this.keywords.test(e)},P.prototype.isReservedWord=function isReservedWord(e){return this.reservedWords.test(e)},P.prototype.extend=function extend(e,t){this[e]=t(this[e])},P.prototype.loadPlugins=function loadPlugins(e){for(var t in e){var n=j[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},P.prototype.parse=function parse(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var T=P.prototype,A=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}T.strictDirective=function(e){for(;;){x.lastIndex=e,e+=x.exec(this.input)[0].length;var t=A.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===g.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===g.eof||this.type===g.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(g.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 M={kind:"loop"},L={kind:"switch"};R.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;x.lastIndex=this.pos;var e=x.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(!i.test(o))return!0}return!1},R.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;x.lastIndex=this.pos;var e=x.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)))},R.parseStatement=function(e,t,n){var r,o=this.type,a=this.startNode();switch(this.isLet()&&(o=g._var,r="let"),o){case g._break:case g._continue:return this.parseBreakContinueStatement(a,o.keyword);case g._debugger:return this.parseDebuggerStatement(a);case g._do:return this.parseDoStatement(a);case g._for:return this.parseForStatement(a);case g._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case g._class:return e||this.unexpected(),this.parseClass(a,!0);case g._if:return this.parseIfStatement(a);case g._return:return this.parseReturnStatement(a);case g._switch:return this.parseSwitchStatement(a);case g._throw:return this.parseThrowStatement(a);case g._try:return this.parseTryStatement(a);case g._const:case g._var:return r=r||this.value,e||"var"===r||this.unexpected(),this.parseVarStatement(a,r);case g._while:return this.parseWhileStatement(a);case g._with:return this.parseWithStatement(a);case g.braceL:return this.parseBlock();case g.semi:return this.parseEmptyStatement(a);case g._export:case g._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===g._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var i=this.value,s=this.parseExpression();return o===g.name&&"Identifier"===s.type&&this.eat(g.colon)?this.parseLabeledStatement(a,i,s):this.parseExpressionStatement(a,s)}},R.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(g.semi)||this.insertSemicolon()?e.label=null:this.type!==g.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(g.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},R.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(M),this.enterLexicalScope(),this.expect(g.parenL),this.type===g.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===g._var||this.type===g._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===g._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===g._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new DestructuringErrors,i=this.parseExpression(!0,a);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(i,!1,a),this.checkLVal(i),this.parseForIn(e,i)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,i))},R.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},R.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type===g._function),e.alternate=this.eat(g._else)?this.parseStatement(!this.strict&&this.type===g._function):null,this.finishNode(e,"IfStatement")},R.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},R.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(g.braceL),this.labels.push(L),this.enterLexicalScope();for(var n=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var r=this.type===g._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(g.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")},R.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 B=[];R.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===g._catch){var t=this.startNode();this.next(),this.eat(g.parenL)?(t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(g.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(g._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},R.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},R.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(M),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},R.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")},R.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},R.parseLabeledStatement=function(e,t,n){for(var r=0,o=this.labels;r=0;i--){var s=this.labels[i];if(s.statementStart!==e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,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")},R.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},R.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(g.braceL),e&&this.enterLexicalScope();!this.eat(g.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},R.parseFor=function(e,t){return e.init=t,this.expect(g.semi),e.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),e.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},R.parseForIn=function(e,t){var n=this.type===g._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(g.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},R.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(g.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===g._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(g.comma))break}return e},R.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},R.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!==g.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,this.inModule&&!this.inFunction?"let":"var"));var o=this.inGenerator,a=this.inAsync,i=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===g.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=o,this.inAsync=a,this.yieldPos=i,this.awaitPos=s,this.inFunction=l,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},R.parseFunctionParams=function(e){this.expect(g.parenL),e.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},R.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(g.braceL);!this.eat(g.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")},R.parseClassMember=function(e){var t=this;if(this.eat(g.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var o=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===g.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(o,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var o=this.eat(g.star),a=!1;o||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,o=this.options.ecmaVersion>=9&&this.eat(g.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var i=n.key;return n.computed||n.static||!("Identifier"===i.type&&"constructor"===i.name||"Literal"===i.type&&"constructor"===i.value)?n.static&&"Identifier"===i.type&&"prototype"===i.name&&this.raise(i.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(i.start,"Constructor can't have get/set modifier"),o&&this.raise(i.start,"Constructor can't be a generator"),a&&this.raise(i.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,o,a),"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},R.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},R.parseClassId=function(e,t){e.id=this.type===g.name?this.parseIdent():!0===t?this.unexpected():null},R.parseClassSuper=function(e){e.superClass=this.eat(g._extends)?this.parseExprSubscripts():null},R.parseExport=function(e,t){if(this.next(),this.eat(g.star))return this.expectContextual("from"),this.type!==g.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(g._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===g._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===g._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!==g.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,i=e.specifiers;a=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 a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=o.start:this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[r="$"+r];if(i)("init"===a?this.strict&&i.init||i.get||i.set:i.init||i[a])&&this.raiseRecoverable(o.start,"Redefinition of property");else i=t[r]={init:!1,get:!1,set:!1};i[a]=!0}}},V.parseExpression=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===g.comma){var a=this.startNodeAt(n,r);for(a.expressions=[o];this.eat(g.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return o},V.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,o=-1,a=-1;t?(o=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new DestructuringErrors,r=!0);var i=this.start,s=this.startLoc;this.type!==g.parenL&&this.type!==g.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,i,s)),this.type.isAssign){var c=this.startNodeAt(i,s);return c.operator=this.value,c.left=this.type===g.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),a>-1&&(t.trailingComma=a),l},V.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(g.question)){var a=this.startNodeAt(n,r);return a.test=o,a.consequent=this.parseMaybeAssign(),this.expect(g.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return o},V.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)},V.parseExprOp=function(e,t,n,r,o){var a=this.type.binop;if(null!=a&&(!o||this.type!==g._in)&&a>r){var i=this.type===g.logicalOR||this.type===g.logicalAND,s=this.value;this.next();var l=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),l,c,a,o),p=this.buildBinary(t,n,e,u,s,i);return this.parseExprOp(p,t,n,r,o)}return e},V.buildBinary=function(e,t,n,r,o,a){var i=this.startNodeAt(e,t);return i.left=n,i.operator=o,i.right=r,this.finishNode(i,a?"LogicalExpression":"BinaryExpression")},V.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 a=this.startNode(),i=this.type===g.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),i?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,i?"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(g.starstar)?this.buildBinary(r,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},V.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 a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},V.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),a=void 0;;)if((a=this.eat(g.bracketL))||this.eat(g.dot)){var i=this.startNodeAt(t,n);i.object=e,i.property=a?this.parseExpression():this.parseIdent(!0),i.computed=!!a,a&&this.expect(g.bracketR),e=this.finishNode(i,"MemberExpression")}else if(!r&&this.eat(g.parenL)){var s=new DestructuringErrors,l=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var u=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,s);if(o&&!this.canInsertSemicolon()&&this.eat(g.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!==g.backQuote)return e;var d=this.startNodeAt(t,n);d.tag=e,d.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(d,"TaggedTemplateExpression")}},V.parseExprAtom=function(e){var t,n=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(t,"Super");case g._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case g.name:var r=this.start,o=this.startLoc,a=this.containsEsc,i=this.parseIdent(this.type!==g.name);if(this.options.ecmaVersion>=8&&!a&&"async"===i.name&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(r,o),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(r,o),[i],!1);if(this.options.ecmaVersion>=8&&"async"===i.name&&this.type===g.name&&!a)return i=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(g.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,o),[i],!0)}return i;case g.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return(t=this.startNode()).value=this.type===g._null?null:this.type===g._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case g.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 g.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(g.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case g.braceL:return this.parseObj(!1,e);case g._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();default:this.unexpected()}},V.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")},V.parseParenExpression=function(){this.expect(g.parenL);var e=this.parseExpression();return this.expect(g.parenR),e},V.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,i=this.start,s=this.startLoc,l=[],c=!0,u=!1,p=new DestructuringErrors,d=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;){if(c?c=!1:this.expect(g.comma),o&&this.afterTrailingComma(g.parenR,!0)){u=!0;break}if(this.type===g.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(g.parenR),e&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=h,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,l.length>1?((t=this.startNodeAt(i,s)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,r);return v.expression=t,this.finishNode(v,"ParenthesizedExpression")}return t},V.parseParenItem=function(e){return e},V.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var N=[];V.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.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(g.parenL)?e.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):e.arguments=N,this.finishNode(e,"NewExpression")},V.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===g.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===g.backQuote,this.finishNode(n,"TemplateElement")},V.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===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(g.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},V.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!y.test(this.input.slice(this.lastTokEnd,this.start))},V.parseObj=function(e,t){var n=this.startNode(),r=!0,o={};for(n.properties=[],this.next();!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,o,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},V.parseProperty=function(e,t){var n,r,o,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===g.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,t),this.type===g.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,a=this.startLoc),e||(n=this.eat(g.star)));var s=this.containsEsc;return this.parsePropertyName(i),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(i,t)):r=!1,this.parsePropertyValue(i,e,n,r,o,a,t,s),this.finishNode(i,"Property")},V.parsePropertyValue=function(e,t,n,r,o,a,i,s){if((n||r)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===g.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===g.comma||this.type===g.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(o,a,e.key):this.type===g.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,a,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")}},V.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(g.bracketR),e.key;e.computed=!1}return e.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(!0)},V.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},V.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,o=this.inAsync,a=this.yieldPos,i=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(g.parenL),n.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=o,this.yieldPos=a,this.awaitPos=i,this.inFunction=s,this.finishNode(n,"FunctionExpression")},V.parseArrowExpression=function(e,t,n){var r=this.inGenerator,o=this.inAsync,a=this.yieldPos,i=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=a,this.awaitPos=i,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},V.parseFunctionBody=function(e,t){var n=t&&this.type!==g.braceL,r=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var i=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=i}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},V.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},G.updateContext=function(e){var t,n=this.type;n.keyword&&e===g.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},g.parenR.updateContext=g.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===X.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},g.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?X.b_stat:X.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(X.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(e){var t=e===g._if||e===g._for||e===g._with||e===g._while;this.context.push(t?X.p_stat:X.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(e){e.beforeExpr&&e!==g.semi&&e!==g._else&&(e!==g.colon&&e!==g.braceL||this.curContext()!==X.b_stat)?this.context.push(X.f_expr):this.context.push(X.f_stat),this.exprAllowed=!1},g.backQuote.updateContext=function(){this.curContext()===X.q_tmpl?this.context.pop():this.context.push(X.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(e){if(e===g._function){var t=this.context.length-1;this.context[t]===X.f_expr?this.context[t]=X.f_expr_gen:this.context[t]=X.f_gen}this.exprAllowed=!0},g.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==g.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var K={$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(K.$LONE,K.General_Category),K.gc=K.General_Category,K.sc=K.Script_Extensions=K.scx=K.Script;var $=P.prototype,J=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}J.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},J.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},J.prototype.at=function at(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},J.prototype.nextIndex=function nextIndex(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},J.prototype.current=function current(){return this.at(this.pos)},J.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},J.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},J.prototype.eat=function eat(e){return this.current()===e&&(this.advance(),!0)},$.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},$.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},$.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},$.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},$.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},$.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)},$.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},$.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},$.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!isSyntaxCharacter(n);)e.advance();return e.pos!==t},$.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)},$.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")}},$.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},$.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},$.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)},$.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)},$.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)},$.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},$.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},$.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)},$.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},$.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},$.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)},$.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},$.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 a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-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},$.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)},$.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},$.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},$.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},$.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){K.hasOwnProperty(t)&&-1!==K[t].indexOf(n)||e.raise("Invalid property name")},$.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===K.$LONE.indexOf(t)&&e.raise("Invalid property name")},$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},$.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString$1(t),e.advance();return""!==e.lastStringValue},$.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},$.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},$.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")}}},$.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)},$.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)},$.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},$.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},$.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},$.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},$.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},$.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},$.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}Q.next=function(){this.options.onToken&&this.options.onToken(new Y(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new Y(this)},"undefined"!=typeof Symbol&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===g.eof,value:t}}}}),Q.curContext=function(){return this.context[this.context.length-1]},Q.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(g.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Q.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}}},Q.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)},Q.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(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?g.star:g.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=g.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(g.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?g.logicalOR:g.logicalAND,2):61===t?this.finishOp(g.assign,2):this.finishOp(124===e?g.bitwiseOR:g.bitwiseAND,1)},Q.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},Q.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(g.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},Q.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(g.assign,n+1):this.finishOp(g.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(g.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(g.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(61===e?g.eq:g.prefix,1)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 63:return++this.pos,this.finishToken(g.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.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(g.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.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 a=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new J(this));s.reset(n,o,i),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(o,i)}catch(e){}return this.finishToken(g.regexp,{pattern:o,flags:i,value:l})},Q.readInt=function(e,t){for(var n=this.pos,r=0,o=0,a=null==t?1/0:t;o=97?i-97+10:i>=65?i-65+10:i>=48&&i<=57?i-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},Q.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(g.num,t)},Q.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),a=n?parseInt(o,8):parseFloat(o);return this.finishToken(g.num,a)},Q.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},Q.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(g.string,t)};var Z={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Z)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Z;this.raise(e,t)},Q.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!==g.template&&this.type!==g.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(g.template,e)):36===n?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.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}},Q.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)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Q.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos=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:i.a.node,className:i.a.string,classes:i.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);n.d(t,"a",function(){return p})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(4);function TableRenderer(e){var t=e.classes,n=e.columns,r=e.rows,a=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:a(e)},n.map(function(n,r){var a=n.render;return o.a.createElement("td",{key:r,className:t.cell},a(e))}))})))}TableRenderer.propTypes={classes:i.a.object.isRequired,columns:i.a.arrayOf(i.a.shape({caption:i.a.string.isRequired,render:i.a.func.isRequired})).isRequired,rows:i.a.arrayOf(i.a.object).isRequired,getRowKey:i.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);n.d(t,"a",function(){return l})},function(e,t,n){"use strict";e.exports=n(316)},function(e,t,n){"use strict";var r=_interopRequireDefault(n(396)),o=_interopRequireDefault(n(401)),a=_interopRequireDefault(n(140)),i=_interopRequireDefault(n(138));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:r.default}},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 a=n.indent,i=void 0===a?0:a,s=t.fallbacks;if(i++,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 i=function IconBase(e,t){var n=e.children,a=e.color,i=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,h=i||d.size||"1em";return o.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:c||h,width:l||h},d,u,{style:r({verticalAlign:"middle",color:a||d.color},d.style||{},s)}))};i.propTypes={color:a.default.string,size:a.default.oneOfType([a.default.string,a.default.number]),width:a.default.oneOfType([a.default.string,a.default.number]),height:a.default.oneOfType([a.default.string,a.default.number]),style:a.default.object},i.contextTypes={reactIconBase:a.default.shape(i.propTypes)},t.default=i,e.exports=t.default},function(e,t,n){var r=n(429),o=36e5,a=6e4,i=2,s=/[T ]/,l=/:/,c=/^(\d{2})$/,u=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],p=/^(\d{4})/,d=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],h=/^-(\d{2})$/,f=/^-?(\d{3})$/,m=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,g=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,x=/([Z+-].*)$/,k=/^(Z)$/,E=/^([+-])(\d{2})$/,_=/^([+-])(\d{2}):?(\d{2})$/;function splitDateString(e){var t,n={},r=e.split(s);if(l.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]),t){var o=x.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function parseYear(e,t){var n,r=u[t],o=d[t];if(n=p.exec(e)||o.exec(e)){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=c.exec(e)||r.exec(e)){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}function parseDate(e,t){if(null===t)return null;var n,r,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=h.exec(e))return r=new Date(0),o=parseInt(n[1],10)-1,r.setUTCFullYear(t,o),r;if(n=f.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(t,0,a),r}if(n=m.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var i=parseInt(n[2],10);return r.setUTCFullYear(t,o,i),r}return(n=v.exec(e))?dayOfISOYear(t,parseInt(n[1],10)-1):(n=g.exec(e))?dayOfISOYear(t,parseInt(n[1],10)-1,parseInt(n[2],10)-1):null}function parseTime(e){var t,n,r;if(t=y.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*o;if(t=b.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*o+r*a;if(t=w.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return n%24*o+r*a+1e3*i}return null}function dayOfISOYear(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}e.exports=function parse(e,t){if(r(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?i:Number(n);var o=splitDateString(e),s=parseYear(o.date,n),l=s.year,c=parseDate(s.restDateString,l);if(c){var u,p=c.getTime(),d=0;return o.time&&(d=parseTime(o.time)),o.timezone?(h=o.timezone,u=(f=k.exec(h))?0:(f=E.exec(h))?(m=60*parseInt(f[2],10),"+"===f[1]?-m:m):(f=_.exec(h))?(m=60*parseInt(f[2],10)+parseInt(f[3],10),"+"===f[1]?-m:m):0):(u=new Date(p+d).getTimezoneOffset(),u=new Date(p+d+u*a).getTimezoneOffset()),new Date(p+d+u*a)}var h,f,m;return new Date(e)}},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(178);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function get(){return _interopRequireDefault(r).default}});var o=n(38);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function get(){return _interopRequireDefault(o).default}});var a=n(108);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function get(){return _interopRequireDefault(a).default}});var i=n(179);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function get(){return _interopRequireDefault(i).default}});var s=n(33);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function get(){return _interopRequireDefault(s).default}});var l=n(64);Object.defineProperty(t,"sheets",{enumerable:!0,get:function get(){return _interopRequireDefault(l).default}});var c=n(111);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function get(){return _interopRequireDefault(c).default}});var u=_interopRequireDefault(n(185));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(68),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],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(memoize.Cache||r),n}memoize.Cache=r,e.exports=memoize},function(e,t,n){var r=n(134);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";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(312);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function ButtonGroup(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]),a=["wds-button-group",t].filter(function(e){return e}).join(" ");return o.a.createElement("div",_extends({className:a},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(314);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function Button(e){var t=e.className,n=e.href,r=e.text,a=e.secondary,i=e.square,s=e.fullwidth,l=e.children,c=_objectWithoutProperties(e,["className","href","text","secondary","square","fullwidth","children"]),u=["wds-button",t,a?"wds-is-secondary":"",i?"wds-is-square":"",r?"wds-is-text":"",s?"wds-is-fullwidth":""].filter(function(e){return e}).join(" ");return n?o.a.createElement("a",_extends({href:n,className:u},c),l):o.a.createElement("button",_extends({className:u},c),l)};s.propTypes={children:i.a.node,className:i.a.string,disabled:i.a.bool,fullwidth:i.a.bool,href:i.a.string,onClick:i.a.func,secondary:i.a.bool,square:i.a.bool,text:i.a.bool},s.defaultProps={children:null,className:"",disabled:!1,fullwidth:!1,href:null,secondary:!1,square:!1,text:!1,onClick:function onClick(){}},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(358);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FandomContentWell(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-fandom-content-well ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=(n(403),function Spinner(e){var t=e.className,n=e.size,r=e.stroke,a=e.block,i=e.inline,s={width:n,height:n},l=(n-r)/2,c=l+r/2,u=2*Math.PI*l,p=["fandom-spinner"];return a&&p.push("is-block"),i&&p.push("is-inline"),t&&p.push(t),o.a.createElement("div",{className:p.join(" "),style:s},o.a.createElement("svg",{width:n,height:n,viewBox:"0 0 ".concat(n," ").concat(n),xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("g",{transform:"translate(".concat(c,", ").concat(c,")")},o.a.createElement("circle",{fill:"none",strokeWidth:r,strokeDasharray:u,strokeDashoffset:u,strokeLinecap:"round",r:l}))))});s.propTypes={block:i.a.bool,className:i.a.string,inline:i.a.bool,size:i.a.oneOfType([i.a.string,i.a.number]),stroke:i.a.oneOfType([i.a.string,i.a.number])},s.defaultProps={className:"",size:30,stroke:2,block:!1,inline:!1},t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=(n(417),function SwitchWrapper(e){var t=e.children,n=e.className,r=l()("switch-wrapper",n);return o.a.createElement("div",{className:r},t)});c.propTypes={children:i.a.node.isRequired,className:i.a.string},c.defaultProps={className:void 0},t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(5),l=n.n(s),c=(n(419),function SwitchItem(e){var t=e.active,n=e.children,r=e.className,a=e.onClick,i=l()("switch-item",r,{"switch-item__active":t});return o.a.createElement("button",{type:"button",className:i,onClick:a},n)});c.propTypes={active:i.a.bool,children:i.a.node.isRequired,className:i.a.string,onClick:i.a.func},c.defaultProps={active:!1,className:void 0,onClick:void 0},t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"user-avatar-a",d:"M12 11c-.965 0-1.75-.785-1.75-1.75S11.035 7.5 12 7.5s1.75.785 1.75 1.75S12.965 11 12 11m0-5.5a3.754 3.754 0 0 0-3.75 3.75A3.754 3.754 0 0 0 12 13a3.754 3.754 0 0 0 3.75-3.75A3.754 3.754 0 0 0 12 5.5m7.679 12.914c-1.987-2.104-4.727-3.289-7.679-3.289-2.953 0-5.692 1.185-7.679 3.289A9.955 9.955 0 0 1 2 12C2 6.486 6.486 2 12 2s10 4.486 10 10a9.956 9.956 0 0 1-2.321 6.414M12 22a9.995 9.995 0 0 1-6.25-2.187c1.613-1.719 3.844-2.688 6.25-2.688s4.637.969 6.249 2.688A9.993 9.993 0 0 1 12 22m0-22C5.383 0 0 5.383 0 12c0 3.268 1.294 6.33 3.651 8.63l.012.013A12 12 0 0 0 12 24h.036a12.008 12.008 0 0 0 8.306-3.363C22.701 18.341 24 15.273 24 12c0-6.617-5.383-12-12-12"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#user-avatar-a"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#E3BD00",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.567 7.523L10.41 7.21l-.964-1.954c-.17-.341-.728-.341-.897 0L7.585 7.21l-2.157.313a.5.5 0 0 0-.277.853l1.561 1.521-.368 2.148a.5.5 0 0 0 .725.527l1.928-1.014 1.93 1.014a.5.5 0 0 0 .725-.526l-.369-2.148 1.561-1.521a.501.501 0 0 0-.277-.854z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#999",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{d:"M9.05 6.75l-3.9 3.9c-.1.1-.15.2-.15.35v1.5c0 .3.2.5.5.5H7c.15 0 .25-.05.35-.15l3.9-3.9-2.2-2.2zm3.8-.1l-1.5-1.5c-.2-.2-.5-.2-.7 0l-.9.9 2.2 2.2.9-.9c.2-.2.2-.5 0-.7z",fill:"#FFF"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#999",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.821 8.232c0 1.782-1.754 3.232-3.91 3.232a4.71 4.71 0 0 1-.98-.104l-1.832.727a.328.328 0 0 1-.319-.043.323.323 0 0 1-.126-.293l.171-1.533C5.292 9.653 5 8.953 5 8.232 5 6.45 6.754 5 8.91 5c2.157 0 3.911 1.45 3.911 3.232z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M12.821 8.232c0 1.782-1.754 3.232-3.91 3.232a4.71 4.71 0 0 1-.98-.104l-1.832.727a.328.328 0 0 1-.319-.043.323.323 0 0 1-.126-.293l.171-1.533C5.292 9.653 5 8.953 5 8.232 5 6.45 6.754 5 8.91 5c2.157 0 3.911 1.45 3.911 3.232z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("g",{fill:"#FFF"},o.a.createElement("path",{d:"M7.667 5h2.667v8H7.667z"}),o.a.createElement("path",{d:"M13 7.667v2.667H5V7.667z"}))))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M1.661 5.96c.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9s1.247-2.04 1.661-3.04z"}),o.a.createElement("path",{fill:"#FFF",d:"M11.234 4L9.06 6.055 6.89 4.008 4 6.445V9.14L8.995 14 14 9.14l-.01-2.688L11.235 4zM5.245 6.703l1.608-1.356 3.739 3.526-1.484 1.485-3.863-3.655zm4.542.038l1.466-1.385L12.764 6.7l-1.467 1.468-1.51-1.426zM5 8.717v-.87l3.401 3.22-.487.486L5 8.717zm3.63 3.533l4.366-4.369.002.836-4.003 3.89-.365-.357z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#00B7E0",d:"M0 9c0-1.149 1.247-2.04 1.661-3.04.43-1.035.195-2.544.975-3.324.78-.78 2.29-.546 3.324-.975C6.96 1.247 7.851 0 9 0s2.04 1.247 3.04 1.661c1.035.43 2.544.195 3.324.975.78.78.546 2.29.975 3.324C16.753 6.96 18 7.851 18 9s-1.247 2.04-1.661 3.04c-.43 1.035-.195 2.544-.975 3.324-.78.78-2.29.546-3.324.975C11.04 16.753 10.149 18 9 18s-2.04-1.247-3.04-1.661c-1.035-.43-2.544-.195-3.324-.975-.78-.78-.546-2.29-.975-3.324C1.247 11.04 0 10.149 0 9"}),o.a.createElement("path",{fill:"#FFF",d:"M8.767 12.856a.268.268 0 0 0 .465 0l3.735-6.453A.268.268 0 0 0 12.735 6h-1.616a.268.268 0 0 0-.232.134L9 9.397l-.289-.5-1.596-2.763A.268.268 0 0 0 6.884 6H5.268a.268.268 0 0 0-.232.403l3.73 6.453z"})))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 12 12"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"close-tiny",d:"M7.426 6.001l4.278-4.279A1.008 1.008 0 1 0 10.278.296L6 4.574 1.723.296A1.008 1.008 0 1 0 .295 1.722l4.278 4.28-4.279 4.277a1.008 1.008 0 1 0 1.427 1.426L6 7.427l4.278 4.278a1.006 1.006 0 0 0 1.426 0 1.008 1.008 0 0 0 0-1.426L7.425 6.001z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#close-tiny"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 18 18"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"alert-small",d:"M2.618 15.995L9 3.199l6.382 12.796H2.618zm15.276.554l-8-16.04C9.555-.17 8.445-.17 8.105.51l-8 16.04A1.003 1.003 0 0 0 1 18h16c.347 0 .668-.18.85-.476a.998.998 0 0 0 .044-.975zM8 7.975V9.98a1 1 0 1 0 2 0V7.975a1 1 0 1 0-2 0m1.71 4.3c-.05-.04-.1-.09-.16-.12a.567.567 0 0 0-.17-.09.61.61 0 0 0-.19-.06.999.999 0 0 0-.9.27c-.09.101-.16.201-.21.33a1.01 1.01 0 0 0-.08.383c0 .26.11.52.29.711.19.18.44.291.71.291.06 0 .13-.01.19-.02a.635.635 0 0 0 .19-.06.59.59 0 0 0 .17-.09c.06-.04.11-.08.16-.12.18-.192.29-.452.29-.712 0-.132-.03-.261-.08-.382a.94.94 0 0 0-.21-.33"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#alert-small"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M6 16a.997.997 0 0 1-.707-.293l-5-5a.999.999 0 1 1 1.414-1.414L6 13.586 16.293 3.293a.999.999 0 1 1 1.414 1.414l-11 11A.997.997 0 0 1 6 16",fillRule:"evenodd"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},n),o.a.createElement("path",{fillRule:"evenodd",d:"M11.049 5.335a1.144 1.144 0 0 1 1.616 1.616l-2.048 2.05 2.048 2.047A1.145 1.145 0 0 1 11.857 13c-.293 0-.585-.112-.808-.334l-2.05-2.05-2.048 2.05a1.146 1.146 0 0 1-1.616 0 1.145 1.145 0 0 1 0-1.618L7.383 9 5.335 6.951A1.143 1.143 0 0 1 6.95 5.335L9 7.384l2.05-2.05zM16 11.899V6.1L11.9 2H6.1L2 6.1V11.9L6.1 16h5.8l4.1-4.101zm1.708-6.92c.186.187.292.442.292.707v6.628c0 .265-.106.52-.292.707l-4.687 4.686a1.001 1.001 0 0 1-.707.293H5.686c-.264 0-.52-.106-.707-.293L.292 13.02A1.003 1.003 0 0 1 0 12.314V5.686c0-.265.106-.52.292-.707L4.98.292A1 1 0 0 1 5.686 0h6.628a1 1 0 0 1 .707.292l4.687 4.687z"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 18 18"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"flag-small",d:"M3 11h10.586l-3.293-3.293a.999.999 0 0 1 0-1.414L13.586 3H3v8zm-1 7a1 1 0 0 1-1-1V1a1 1 0 0 1 2 0h13a1.002 1.002 0 0 1 .707 1.707L12.414 7l4.293 4.293A1 1 0 0 1 16 13H3v4a1 1 0 0 1-1 1z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#flag-small"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 12 12"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"dropdown-tiny-a",d:"M6 8.8a.798.798 0 0 1-.565-.234l-3.2-3.2A.8.8 0 0 1 2.8 4h6.4a.8.8 0 0 1 .566 1.366l-3.2 3.2A.798.798 0 0 1 6 8.8z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#dropdown-tiny-a"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M11.707 3.293a.999.999 0 0 0-1.414 0L6 7.586 1.707 3.293A.999.999 0 1 0 .293 4.707l5 5a.997.997 0 0 0 1.414 0l5-5a.999.999 0 0 0 0-1.414",fillRule:"evenodd"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M10.5 18C6.364 18 3 14.636 3 10.5S6.364 3 10.5 3 18 6.364 18 10.5 14.636 18 10.5 18m12.207 3.293l-4.823-4.822A9.455 9.455 0 0 0 20 10.5C20 5.262 15.738 1 10.5 1S1 5.262 1 10.5 5.262 20 10.5 20c2.26 0 4.338-.793 5.97-2.115l4.823 4.822a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=e=>{let{styles:t={}}=e,n=_objectWithoutProperties(e,["styles"]);return o.a.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n),o.a.createElement("defs",null,o.a.createElement("path",{id:"dropdown-a",d:"M12 17c-.41 0-.82-.147-1.131-.44l-6.4-6a1.432 1.432 0 0 1-.347-1.635C4.368 8.365 4.954 8 5.6 8h12.8c.646 0 1.23.364 1.478.925s.11 1.207-.347 1.635l-6.4 6c-.312.293-.721.44-1.131.44z"})),o.a.createElement("use",{fillRule:"evenodd",xlinkHref:"#dropdown-a"}))};t.default=function(e){return o.a.createElement(i,e)}},function(e,t,n){var r=n(208),o=n(258)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,a=/zoo|gra/,i=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,f=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,v=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,x=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,O=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,I=/([^-])(image-set\()/,j="-webkit-",P="-moz-",T="-ms-",A=59,R=125,M=123,L=40,B=41,z=91,V=93,N=10,H=13,D=9,F=64,W=32,q=38,U=45,X=95,G=42,K=44,$=58,J=39,Y=34,Q=47,Z=62,ee=43,te=126,ne=0,re=12,oe=11,ae=107,ie=109,se=115,le=112,ce=111,ue=105,pe=99,de=100,he=112,fe=1,me=1,ve=0,ge=1,ye=1,be=1,we=0,xe=0,ke=0,Ee=[],_e=[],Oe=0,Ce=null,Se=-2,je=-1,Ae=0,Be=1,ze=2,Ve=3,Ne=0,De=1,Fe="",We="",qe="";function He(e,t,o,a,i){for(var s,l,u=0,p=0,d=0,h=0,g=0,y=0,b=0,w=0,k=0,_=0,O=0,C=0,S=0,I=0,X=0,we=0,_e=0,Ce=0,Se=0,je=o.length,Te=je-1,Re="",Ue="",Xe="",Ge="",$e="",Je="";X0&&(Ue=Ue.replace(r,"")),Ue.trim().length>0)){switch(b){case W:case D:case A:case H:case N:break;default:Ue+=o.charAt(X)}b=A}if(1===_e)switch(b){case M:case R:case A:case Y:case J:case L:case B:case K:_e=0;case D:case H:case N:case W:break;default:for(_e=0,Se=X,g=b,X--,b=A;Se0&&(++X,b=g);case M:Se=je}}switch(b){case M:for(g=(Ue=Ue.trim()).charCodeAt(0),O=1,Se=++X;X0&&(Ue=Ue.replace(r,"")),y=Ue.charCodeAt(1)){case de:case ie:case se:case U:s=t;break;default:s=Ee}if(Se=(Xe=He(t,s,Xe,y,i+1)).length,ke>0&&0===Se&&(Se=Ue.length),Oe>0&&(s=Ie(Ee,Ue,Ce),l=Pe(Ve,Xe,s,t,me,fe,Se,y,i,a),Ue=s.join(""),void 0!==l&&0===(Se=(Xe=l.trim()).length)&&(y=0,Xe="")),Se>0)switch(y){case se:Ue=Ue.replace(E,Me);case de:case ie:case U:Xe=Ue+"{"+Xe+"}";break;case ae:Xe=(Ue=Ue.replace(f,"$1 $2"+(De>0?Fe:"")))+"{"+Xe+"}",Xe=1===ye||2===ye&&Le("@"+Xe,3)?"@"+j+Xe+"@"+Xe:"@"+Xe;break;default:Xe=Ue+Xe,a===he&&(Ge+=Xe,Xe="")}else Xe="";break;default:Xe=He(t,Ie(t,Ue,Ce),Xe,a,i+1)}$e+=Xe,C=0,_e=0,I=0,we=0,Ce=0,S=0,Ue="",Xe="",b=o.charCodeAt(++X);break;case R:case A:if((Se=(Ue=(we>0?Ue.replace(r,""):Ue).trim()).length)>1)switch(0===I&&((g=Ue.charCodeAt(0))===U||g>96&&g<123)&&(Se=(Ue=Ue.replace(" ",":")).length),Oe>0&&void 0!==(l=Pe(Be,Ue,t,e,me,fe,Ge.length,a,i,a))&&0===(Se=(Ue=l.trim()).length)&&(Ue="\0\0"),g=Ue.charCodeAt(0),y=Ue.charCodeAt(1),g){case ne:break;case F:if(y===ue||y===pe){Je+=Ue+o.charAt(X);break}default:if(Ue.charCodeAt(Se-1)===$)break;Ge+=Ke(Ue,g,y,Ue.charCodeAt(2))}C=0,_e=0,I=0,we=0,Ce=0,Ue="",b=o.charCodeAt(++X)}}switch(b){case H:case N:if(p+h+d+u+xe===0)switch(_){case B:case J:case Y:case F:case te:case Z:case G:case ee:case Q:case U:case $:case K:case A:case M:case R:break;default:I>0&&(_e=1)}p===Q?p=0:ge+C===0&&a!==ae&&Ue.length>0&&(we=1,Ue+="\0"),Oe*Ne>0&&Pe(Ae,Ue,t,e,me,fe,Ge.length,a,i,a),fe=1,me++;break;case A:case R:if(p+h+d+u===0){fe++;break}default:switch(fe++,Re=o.charAt(X),b){case D:case W:if(h+u+p===0)switch(w){case K:case $:case D:case W:Re="";break;default:b!==W&&(Re=" ")}break;case ne:Re="\\0";break;case re:Re="\\f";break;case oe:Re="\\v";break;case q:h+p+u===0&&ge>0&&(Ce=1,we=1,Re="\f"+Re);break;case 108:if(h+p+u+ve===0&&I>0)switch(X-I){case 2:w===le&&o.charCodeAt(X-3)===$&&(ve=w);case 8:k===ce&&(ve=k)}break;case $:h+p+u===0&&(I=X);break;case K:p+d+h+u===0&&(we=1,Re+="\r");break;case Y:case J:0===p&&(h=h===b?0:0===h?b:h);break;case z:h+p+d===0&&u++;break;case V:h+p+d===0&&u--;break;case B:h+p+u===0&&d--;break;case L:if(h+p+u===0){if(0===C)switch(2*w+3*k){case 533:break;default:O=0,C=1}d++}break;case F:p+d+h+u+I+S===0&&(S=1);break;case G:case Q:if(h+u+d>0)break;switch(p){case 0:switch(2*b+3*o.charCodeAt(X+1)){case 235:p=Q;break;case 220:Se=X,p=G}break;case G:b===Q&&w===G&&Se+2!==X&&(33===o.charCodeAt(Se+2)&&(Ge+=o.substring(Se,X+1)),Re="",p=0)}}if(0===p){if(ge+h+u+S===0&&a!==ae&&b!==A)switch(b){case K:case te:case Z:case ee:case B:case L:if(0===C){switch(w){case D:case W:case N:case H:Re+="\0";break;default:Re="\0"+Re+(b===K?"":"\0")}we=1}else switch(b){case L:I+7===X&&108===w&&(I=0),C=++O;break;case B:0==(C=--O)&&(we=1,Re+="\0")}break;case D:case W:switch(w){case ne:case M:case R:case A:case K:case re:case D:case W:case N:case H:break;default:0===C&&(we=1,Re+="\0")}}Ue+=Re,b!==W&&b!==D&&(_=b)}}k=w,w=b,X++}if(Se=Ge.length,ke>0&&0===Se&&0===$e.length&&0===t[0].length==0&&(a!==ie||1===t.length&&(ge>0?We:qe)===t[0])&&(Se=t.join(",").length+2),Se>0){if(s=0===ge&&a!==ae?function(e){for(var t,n,o=0,a=e.length,i=Array(a);o1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==u)switch(d){case G:case te:case Z:case ee:case W:case L:break;default:t=" "}switch(h){case q:n=t+We;case te:case Z:case ee:case W:case B:case L:break;case z:n=t+n+We;break;case $:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,p-1);break}default:(u<1||s[u-1].length<1)&&(n=t+We+n)}break;case K:t="";default:n=p>1&&n.indexOf(":")>0?t+n.replace(x,"$1"+We+"$2"):t+n+We}l+=n}i[o]=l.replace(r,"").trim()}return i}(t):t,Oe>0&&void 0!==(l=Pe(ze,Ge,s,e,me,fe,Se,a,i,a))&&0===(Ge=l).length)return Je+Ge+$e;if(Ge=s.join(",")+"{"+Ge+"}",ye*ve!=0){switch(2!==ye||Le(Ge,2)||(ve=0),ve){case ce:Ge=Ge.replace(v,":"+P+"$1")+Ge;break;case le:Ge=Ge.replace(m,"::"+j+"input-$1")+Ge.replace(m,"::"+P+"$1")+Ge.replace(m,":"+T+"input-$1")+Ge}ve=0}}return Je+Ge+$e}function Ie(e,t,n){var r=t.trim().split(u),o=r,a=r.length,i=e.length;switch(i){case 0:case 1:for(var s=0,l=0===i?"":e[0]+" ";s0&&ge>0)return o.replace(d,"$1").replace(p,"$1"+qe);break;default:return e.trim()+o.replace(p,"$1"+e.trim())}default:if(n*ge>0&&o.indexOf("\f")>0)return o.replace(p,(e.charCodeAt(0)===$?"":"$1")+e.trim())}return e+o}function Ke(e,t,n,r){var c,u=0,p=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*De){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:for(var a=o.split((o="",s)),i=0,n=0,t=a.length;iF&&p<90||p>96&&p<123||p===X||p===U&&c.charCodeAt(1)!==U))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Fe}}u[n++]=c}o+=(0===i?"":",")+u.join(" ")}}return o=r+o+";",1===ye||2===ye&&Le(o,1)?j+o+o:o}(p);if(0===ye||2===ye&&!Le(p,1))return p;switch(d){case 1015:return 97===p.charCodeAt(10)?j+p+p:p;case 951:return 116===p.charCodeAt(3)?j+p+p:p;case 963:return 110===p.charCodeAt(5)?j+p+p:p;case 1009:if(100!==p.charCodeAt(4))break;case 969:case 942:return j+p+p;case 978:return j+p+P+p+p;case 1019:case 983:return j+p+P+p+T+p+p;case 883:return p.charCodeAt(8)===U?j+p+p:p.indexOf("image-set(",11)>0?p.replace(I,"$1"+j+"$2")+p:p;case 932:if(p.charCodeAt(4)===U)switch(p.charCodeAt(5)){case 103:return j+"box-"+p.replace("-grow","")+j+p+T+p.replace("grow","positive")+p;case 115:return j+p+T+p.replace("shrink","negative")+p;case 98:return j+p+T+p.replace("basis","preferred-size")+p}return j+p+T+p+p;case 964:return j+p+T+"flex-"+p+p;case 1023:if(99!==p.charCodeAt(8))break;return c=p.substring(p.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),j+"box-pack"+c+j+p+T+"flex-pack"+c+p;case 1005:return a.test(p)?p.replace(o,":"+j)+p.replace(o,":"+P)+p:p;case 1e3:switch(u=(c=p.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=p.replace(k,"tb");break;case 232:c=p.replace(k,"tb-rl");break;case 220:c=p.replace(k,"lr");break;default:return p}return j+p+T+c+p;case 1017:if(-1===p.indexOf("sticky",9))return p;case 975:switch(u=(p=e).length-10,d=(c=(33===p.charCodeAt(u)?p.substring(0,u):p).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:p=p.replace(c,j+c)+";"+p;break;case 207:case 102:p=p.replace(c,j+(d>102?"inline-":"")+"box")+";"+p.replace(c,j+c)+";"+p.replace(c,T+c+"box")+";"+p}return p+";";case 938:if(p.charCodeAt(5)===U)switch(p.charCodeAt(6)){case 105:return c=p.replace("-items",""),j+p+j+"box-"+c+T+"flex-"+c+p;case 115:return j+p+T+"flex-item-"+p.replace(O,"")+p;default:return j+p+T+"flex-line-pack"+p.replace("align-content","").replace(O,"")+p}break;case 973:case 989:if(p.charCodeAt(3)!==U||122===p.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):p.replace(c,j+c)+p.replace(c,P+c.replace("fill-",""))+p;break;case 962:if(p=j+p+(102===p.charCodeAt(5)?T+p:"")+p,n+r===211&&105===p.charCodeAt(13)&&p.indexOf("transform",10)>0)return p.substring(0,p.indexOf(";",27)+1).replace(i,"$1"+j+"$2")+p}return p}function Le(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Ce(2!==t?r:r.replace(C,"$1"),o,t)}function Me(e,t){var n=Ke(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function Pe(e,t,n,r,o,a,i,s,l,c){for(var u,p=0,d=t;p0&&(Fe=o.replace(h,a===z?"":"-")),a=1,1===ge?qe=o:We=o;var i,s=[qe];Oe>0&&void 0!==(i=Pe(je,n,s,s,me,fe,0,0,0,0))&&"string"==typeof i&&(n=i);var l=He(Ee,s,n,0,0);return Oe>0&&void 0!==(i=Pe(Se,l,s,s,me,fe,l.length,0,0,0))&&"string"!=typeof(l=i)&&(a=0),Fe="",qe="",We="",ve=0,me=1,fe=1,we*a==0?l:l.replace(r,"").replace(g,"").replace(y,"$1").replace(b,"$1").replace(w," ")}return Te.use=function e(t){switch(t){case void 0:case null:Oe=_e.length=0;break;default:if("function"==typeof t)_e[Oe++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n=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(181));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(17)),o=(_interopRequireDefault(n(112)),_interopRequireDefault(n(184)));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 a="c",i="";return n&&(a=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(i+=n.options.jss.id)),""+a+o.default+i+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),a=[].concat(_toConsumableArray(r.arg||[]),_toConsumableArray(r.argument||[]),_toConsumableArray(r.param||[])),i=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),a.length>0&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Arguments__WEBPACK_IMPORTED_MODULE_4__.a,{args:a,heading:!0}),i&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Argument__WEBPACK_IMPORTED_MODULE_5__.a,_extends({},i,{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){ +*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,s=toObject(e),l=1;l-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),a=[].concat(_toConsumableArray(r.arg||[]),_toConsumableArray(r.argument||[]),_toConsumableArray(r.param||[])),i=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),a.length>0&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Arguments__WEBPACK_IMPORTED_MODULE_4__.a,{args:a,heading:!0}),i&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Argument__WEBPACK_IMPORTED_MODULE_5__.a,_extends({},i,{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(266),o=n(267),a=n(268);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 a,i=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;i=2,s/=2,l/=2,n/=2}function read(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var u=!0,p=0;po&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i239?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&(a=e[o+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&c)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&i)<<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,a=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(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),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 a=!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(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var i=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=i)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,o,a){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,a=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,a=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function checkIEEE754(e,t,n,r,o,a){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,a){return a||checkIEEE754(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,a){return a||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)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?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,a=0;++a=(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,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},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,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&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 a=0,i=1,s=0;for(this[t]=255&e;++a>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 a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>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(a<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(a=t;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function asciiToBytes(e){for(var t=[],n=0;n>8,o=n%256,a.push(o),a.push(r);return a}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(13))},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 f=u.get(e);if(f&&u.get(t))return f==t;var m=-1,v=!0,g=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m=t||n<0||g&&e-m>=p}function timerExpired(){var e=o();if(shouldInvoke(e))return trailingEdge(e);h=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){return h=void 0,y&&c?invokeFunc(e):(c=u=void 0,d)}function debounced(){var e=o(),n=shouldInvoke(e);if(c=arguments,u=this,f=e,n){if(void 0===h)return leadingEdge(f);if(g)return h=setTimeout(timerExpired,t),invokeFunc(f)}return void 0===h&&(h=setTimeout(timerExpired,t)),d}return t=a(t)||0,r(n)&&(v=!!n.leading,p=(g="maxWait"in n)?s(a(n.maxWait)||0,t):p,y="trailing"in n?!!n.trailing:y),debounced.cancel=function cancel(){void 0!==h&&clearTimeout(h),m=0,c=f=u=h=void 0},debounced.flush=function flush(){return void 0===h?d:trailingEdge(o())},debounced}},function(e,t,n){var r=n(15),o=n(50),a=NaN,i=/^\s+|\s+$/g,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(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");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){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),o=_interopRequireDefault(n(0)),a=_interopRequireDefault(n(12)),i=n(52);n(138);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s="unmounted";t.UNMOUNTED=s;var l="exited";t.EXITED=l;var c="entering";t.ENTERING=c;var u="entered";t.ENTERED=u;t.EXITING="exiting";var p=function(e){var t,n;function Transition(t,n){var r;r=e.call(this,t,n)||this;var o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=l,r.appearStatus=c):o=u:o=t.unmountOnExit||t.mountOnEnter?s:l,r.state={status:o},r.nextCallback=null,r}n=e,(t=Transition).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=Transition.prototype;return r.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(e,t){return e.in&&t.status===s?{status:l}:null},r.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function componentDidUpdate(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==u&&(t=c):n!==c&&n!==u||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},r.getTimeouts=function getTimeouts(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},r.updateStatus=function updateStatus(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},r.performEnter=function performEnter(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:u},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:u},function(){n.props.onEntered(e)})},r.performExit=function performExit(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},r.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function safeSetState(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function setNextCallback(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function onTransitionEnd(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function render(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=_objectWithoutPropertiesLoose(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},Transition}(o.default.Component);function noop(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function transitionGroup(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var d=(0,i.polyfill)(p);t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.transitionTimeout=function transitionTimeout(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},t.classNamesShape=t.timeoutsShape=void 0;var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]);t.timeoutsShape=o;var a=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})]);t.classNamesShape=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=_interopRequireDefault(n(1)),o=_interopRequireDefault(n(0)),a=n(52),i=n(400);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=[],r=void 0,o=void 0,a=function setSelector(){o.selector=n.join(",\n")},i=d(a);return{onProcessRule:function onProcessRule(a,l){if(!l||l===r||"style"!==a.type)return;if(!p(a,l,e))return;o||(r=a.options.jss.createStyleSheet(null,s),o=r.addRule("reset",c(e.reset)),r.attach());var u=a.selector;-1===n.indexOf(u)&&(n.push(u),t=i())},onProcessSheet:function onProcessSheet(){!t&&n.length&&a()}}};var a=_interopRequireDefault(n(197)),i=_interopRequireDefault(n(198));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={meta:"jss-isolate",index:-1/0,link:!0},l={inherited:a.default,all:i.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({},a.default,e)}return a.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(200)).default);function iterate(e,t,n){if(!t)return t;var a=t,i=void 0===t?"undefined":r(t);switch("object"===i&&Array.isArray(t)&&(i="array"),i){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 a=o.getRule(t.substr(1));return a?a===e?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(o.classes[e.key]+=" "+o.classes[a.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 f=h;h=function(e,n){return f(e,function(e,r,o){return t(e,r,function(e){return n(e,r,o)})})}}var m=h(e,stringify);if(d.length){for(var v=n?"\n":"",g=n?" = ":"=",y=";"+v,f=n?"(function () {":"(function(){",b=["var x"+g+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:"♦"},i=/^[\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,a=Array(o),i=0;it)return{line:n+1,column:t-a,char:n};a=i}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,a=String(o).length,i=e.split("\n").slice(r,o),s=i[i.length-1].slice(0,t.column).replace(/\t/g," ").length,l=i.map(function(e,t){return n=a,(o=String(t+r+1))+repeat(" ",n-o.length)+" : "+e.replace(/\t/g," ");var n,o}).join("\n");return l+="\n"+repeat(" ",a+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 h[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n1&&(u=t(a),s.push(function(t,n,s){e.prependRight(o.start,(i?"":n+"var ")+u+" = "),e.overwrite(o.start,r=o.start+1,a),e.appendLeft(r,s),e.overwrite(o.start,r=o.start+1,(i?"":n+"var ")+u+" = "+a+s),e.move(o.start,r,t)})),destructureObjectPattern(e,t,n,o,u,i,s);break;case"ArrayPattern":if(e.remove(r,r=o.start),o.elements.filter(Boolean).length>1){var p=t(a);s.push(function(t,n,s){e.prependRight(o.start,(i?"":n+"var ")+p+" = "),e.overwrite(o.start,r=o.start+1,a,{contentOnly:!0}),e.appendLeft(r,s),e.move(o.start,r,t)}),o.elements.forEach(function(o,a){o&&("RestElement"===o.type?handleProperty(e,t,n,r,o.argument,p+".slice("+a+")",i,s):handleProperty(e,t,n,r,o,p+"["+a+"]",i,s),r=o.end)})}else{var d=findIndex(o.elements,Boolean),h=o.elements[d];"RestElement"===h.type?handleProperty(e,t,n,r,h.argument,a+".slice("+d+")",i,s):handleProperty(e,t,n,r,h,a+"["+d+"]",i,s),r=h.end}e.remove(r,o.end);break;default:throw new Error("Unexpected node type in destructuring ("+o.type+")")}}var v=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(),a=this.parent;a;)"constructor"!==a.kind||a.parent.parent.superClass||(this.indentation=this.indentation.replace(o,"")),a=a.parent;t&&(this.indentation+=o)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,n){var r,o,a=this,i=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(e,n,r){var o=n+"var "+a.argumentsAlias+" = arguments"+r;t.appendLeft(e,o)}),this.thisAlias&&s.push(function(e,n,r){var o=n+"var "+a.thisAlias+" = this"+r;t.appendLeft(e,o)}),this.argumentsArrayAlias&&s.push(function(e,n,r){var o=a.scope.createIdentifier("i"),s=n+"var "+o+" = arguments.length, "+a.argumentsArrayAlias+" = Array("+o+");\n"+i+"while ( "+o+"-- ) "+a.argumentsArrayAlias+"["+o+"] = arguments["+o+"]"+r;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,n,i,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,n,i,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 "+a.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"+i+"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"+i,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 a=this;e.forEach(function(i){if("AssignmentPattern"===i.type&&"Identifier"===i.left.type)n.defaultParameter&&o.push(function(e,n,r){var o=n+"if ( "+i.left.name+" === void 0 ) "+i.left.name;t.prependRight(i.left.end,o).move(i.left.end,i.right.end,e).appendLeft(i.right.end,r)});else if("RestElement"===i.type)n.spreadRest&&o.push(function(n,o,s){var l=e[e.length-2];if(l)t.remove(l?l.end:i.start,i.end);else{for(var c=i.start,u=i.end;/\s/.test(t.original[c-1]);)c-=1;for(;/\s/.test(t.original[u]);)u+=1;t.remove(c,u)}var p=i.argument.name,d=a.scope.createIdentifier("len"),h=e.length-1;h?t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length - "+h+";\n"+r+"while ( "+d+"-- > 0 ) "+p+"[ "+d+" ] = arguments[ "+d+" + "+h+" ]"+s):t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length;\n"+r+"while ( "+d+"-- ) "+p+"[ "+d+" ] = arguments[ "+d+" ]"+s)});else if("Identifier"!==i.type&&n.parameterDestructuring){var s=a.scope.createIdentifier("ref");destructure(t,function(e){return a.scope.createIdentifier(e)},function(e){var t=e.name;return a.scope.resolveName(t)},i,s,!1,o),t.prependRight(i.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 f(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 a=[];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,a);var i=", ";a.forEach(function(e,n){n===a.length-1&&(i=""),e(t.end,"",i)}),"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 a,i,s=!1,l=!1,c=this.findNearest(/(?:Statement|Declaration)$/),u=c.getIndentation();"Identifier"===o.property.type?i=o.computed?n.resolveName(o.property.name):o.property.name:(i=n.createDeclaration("property"),l=!0),"Identifier"===o.object.type?a=n.resolveName(o.object.name):(a=n.createDeclaration("object"),s=!0),o.start===c.start?s&&l?(e.prependRight(c.start,a+" = "),e.overwrite(o.object.end,o.property.start,";\n"+u+i+" = "),e.overwrite(o.property.end,o.end,";\n"+u+a+"["+i+"]")):s?(e.prependRight(c.start,a+" = "),e.appendLeft(o.object.end,";\n"+u),e.appendLeft(o.object.end,a)):l&&(e.prependRight(o.property.start,i+" = "),e.appendLeft(o.property.end,";\n"+u),e.move(o.property.start,o.property.end,this.start),e.appendLeft(o.object.end,"["+i+"]"),e.remove(o.object.end,o.property.start),e.remove(o.property.end,o.end)):(s&&l?(e.prependRight(o.start,"( "+a+" = "),e.overwrite(o.object.end,o.property.start,", "+i+" = "),e.overwrite(o.property.end,o.end,", "+a+"["+i+"]")):s?(e.prependRight(o.start,"( "+a+" = "),e.appendLeft(o.object.end,", "+a)):l&&(e.prependRight(o.property.start,"( "+i+" = "),e.appendLeft(o.property.end,", "),e.move(o.property.start,o.property.end,o.start),e.overwrite(o.object.end,o.property.start,"["+i+"]"),e.remove(o.property.end,o.end)),l&&e.appendLeft(this.end," )")),t=a+(o.computed||l?"["+i+"]":"."+i)}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),x=/(?:For(?:In|Of)?|While)Statement/,k=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(x),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 f("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(p),E=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,a=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===a.type&&(t.remove(a.start,a.argument.start),o=!0):o=spread(t,this.arguments,a.start,this.argumentsArrayAlias),o){var i=null;if("Super"===this.callee.type?i=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(i=this.callee.object),i||"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"),i?(i.noCall=!0,this.arguments.length>1&&("SpreadElement"!==a.type&&t.prependRight(a.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(a.start,r+", "):("SpreadElement"===a.type?t.appendLeft(a.start,r+", "):t.appendLeft(a.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),_=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 a=this;if(n.classes){var i=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="",f="";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],v=this.body[u+1];u>0&&(t.remove(m.end,p.start),t.move(p.start,v?v.start:this.end-1,this.body[0].start)),r||t.appendLeft(p.end,";")}var g=!1!==this.program.options.namedFunctionExpressions,y=g||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+o+" ) "+i+".__proto__ = "+o+";\n"+l+i+".prototype = Object.create( "+o+" && "+o+".prototype );\n"+l+i+".prototype.constructor = "+i+";";if(p)d+="\n\n"+l+b;else d+=(b="function "+i+" () {"+(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?i+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(w+=";"),this.body.length&&(w+="\n\n"+l),d+=w}var x,k,E=this.findScope(!1),_=[],O=[];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;(h[c]||e.value.body.scope.references[c])&&(c=E.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?(~O.indexOf(e.key.name)||O.push(e.key.name),k||(k=E.createIdentifier("staticAccessors")),o=""+k):(~_.indexOf(e.key.name)||_.push(e.key.name),x||(x=E.createIdentifier("prototypeAccessors")),o=""+x)}else o=e.static?""+i:i+".prototype";e.computed||(o+="."),(u>0&&n===u+1||0===n&&u===a.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 f=e.computed||s||!g?"":c+" ",m=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+f;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 v=y?" "+i:"";t.overwrite(e.key.start,e.key.end,"function"+v)}}),_.length||O.length){var C=[],S=[];_.length&&(C.push("var "+x+" = { "+_.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+i+".prototype, "+x+" );")),O.length&&(C.push("var "+k+" = { "+O.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+i+", "+k+" );")),p&&(d+="\n\n"+l),d+=C.join("\n"+l),p||(d+="\n\n"+l),f+="\n\n"+l+S.join("\n"+l)}p?t.appendLeft(p.end,d):t.prependRight(this.start,d),t.appendLeft(this.end,f)}e.prototype.transpile.call(this,t,n)},ClassBody}(p);function deindent(e,t){var n=e.start,r=e.end,o=t.getIndentString(),a=o.length,i=n-a;e.program.indentExclusions[i]||t.original.slice(i,n)!==o||t.remove(i,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+a)}}var O=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(),a="ExportDefaultDeclaration"===this.parent.type;a&&e.remove(this.parent.start,this.start);var i=this.start;this.id?(e.overwrite(i,this.id.start,"var "),i=this.id.end):e.prependLeft(i,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(i,this.superClass.start),e.appendLeft(i," = (function ("+n+") {\n"+o)):(e.overwrite(i,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+o)):i===this.body.start?e.appendLeft(i," = "):e.overwrite(i,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,n);var s=a?"\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),C=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 a="\n\n"+o+"return "+this.name+";\n"+r+"}(";this.superClass?(e.appendLeft(this.end,a),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),S=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(x).shouldRewriteAsFunction){if(this.label)throw new f("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(p),I=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 f("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(p),j=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 f("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(p),P=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],a=this.body.scope.declarations[o],i=a.instances.length;i--;){var s=a.instances[i].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(),a=o+t.getIndentString(),i=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"),h="{\n"+a+"var "+d+" = "+c+"("+i+");\n";this.canBreak&&(h+="\n"+a+"if ( "+d+" === 'break' ) break;"),this.canReturn&&(h+="\n"+a+"if ( "+d+" ) return "+d+".v;"),h+="\n"+o+"}",t.prependRight(this.body.end,h)}else{var f=c+"("+i+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+a+f+"\n"+o+"}"):t.prependRight(this.body.end,f)}}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 a="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],i=this.aliases;this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return i[e].outer+" = "+i[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}(P),A=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 a=o?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e})}e.prototype.transpile.call(this,t,n);var i=o?this.left.declarations[0].id:this.left;"Identifier"!==i.type&&this.destructurePattern(t,i,o)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,n){var r=this.findScope(!0),o=this.getIndentation()+e.getIndentString(),a=r.createIdentifier("ref"),i=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,i),e.prependRight(t.end,n?a:"var "+a);var s=[];destructure(e,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},t,a,!1,s);var l=";\n"+o;s.forEach(function(e,t){t===s.length-1&&(l=";\n\n"+o),e(i,"",l)})},ForInStatement}(P),R=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 f("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(),a=o+t.getIndentString(),i=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+a),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 "+i+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+i+" < "+s+".length; "+i+" += 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 h=";\n"+a;p.forEach(function(e,t){t===p.length-1&&(h=";\n\n"+a),e(l,"",h)}),c?(t.appendLeft(this.left.start+this.left.kind.length+1,d),t.appendLeft(this.left.end," = "+s+"["+i+"];\n"+a)):t.appendLeft(this.left.end,"var "+d+" = "+s+"["+i+"];\n"+a)}else t.appendLeft(this.left.end," = "+s+"["+i+"];\n\n"+a)}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}(P),M=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 f("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),L=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 f("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,a=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),z=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),V=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 f("import is not supported",this);e.prototype.initialise.call(this,t)},ImportDeclaration}(p),N=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),H=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),D=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,a=o.start,i=o.name,s=this.value?this.value.start:this.name.end;t.overwrite(a,s,(/-/.test(r=i)?"'"+r+"'":r)+": "+(this.value?"":"true")),e.prototype.transpile.call(this,t,n)},JSXAttribute}(p);var F=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 W=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 q=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,a=this.openingElement.end;for(o=0;o0&&(u.start===a?t.prependRight(a,", "):t.overwrite(a,u.start,", ")),c&&"JSXSpreadAttribute"!==u.type){var p=this.attributes[i-1],d=this.attributes[i+1];p&&"JSXSpreadAttribute"!==p.type||t.prependRight(u.start,"{ "),d&&"JSXSpreadAttribute"!==d.type||t.appendLeft(u.end," }")}a=u.end}if(c)if(1===o)l=r?"',":",";else{if(!this.program.options.objectAssign)throw new f("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"),a=this.name.end;this.selfClosing?t.overwrite(a,this.end,this.attributes.length?")":" )"):t.remove(a,this.end)},JSXOpeningElement}(p),K=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),$=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),J=createCommonjsModule(function(e,t){ +var r=n(267),o=n(268),a=n(269);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 a,i=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;i=2,s/=2,l/=2,n/=2}function read(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var u=!0,p=0;po&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i239?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&(a=e[o+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&c)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&i)<<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,a=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(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),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 a=!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(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var i=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=i)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,o,a){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,a=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,a=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function checkIEEE754(e,t,n,r,o,a){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,a){return a||checkIEEE754(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,a){return a||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)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?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,a=0;++a=(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,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},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,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&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 a=0,i=1,s=0;for(this[t]=255&e;++a>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 a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>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(a<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(a=t;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function asciiToBytes(e){for(var t=[],n=0;n>8,o=n%256,a.push(o),a.push(r);return a}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(13))},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 f=u.get(e);if(f&&u.get(t))return f==t;var m=-1,v=!0,g=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m=t||n<0||g&&e-m>=p}function timerExpired(){var e=o();if(shouldInvoke(e))return trailingEdge(e);h=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){return h=void 0,y&&c?invokeFunc(e):(c=u=void 0,d)}function debounced(){var e=o(),n=shouldInvoke(e);if(c=arguments,u=this,f=e,n){if(void 0===h)return leadingEdge(f);if(g)return h=setTimeout(timerExpired,t),invokeFunc(f)}return void 0===h&&(h=setTimeout(timerExpired,t)),d}return t=a(t)||0,r(n)&&(v=!!n.leading,p=(g="maxWait"in n)?s(a(n.maxWait)||0,t):p,y="trailing"in n?!!n.trailing:y),debounced.cancel=function cancel(){void 0!==h&&clearTimeout(h),m=0,c=f=u=h=void 0},debounced.flush=function flush(){return void 0===h?d:trailingEdge(o())},debounced}},function(e,t,n){var r=n(15),o=n(50),a=NaN,i=/^\s+|\s+$/g,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(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");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){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),o=_interopRequireDefault(n(0)),a=_interopRequireDefault(n(12)),i=n(52);n(139);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s="unmounted";t.UNMOUNTED=s;var l="exited";t.EXITED=l;var c="entering";t.ENTERING=c;var u="entered";t.ENTERED=u;t.EXITING="exiting";var p=function(e){var t,n;function Transition(t,n){var r;r=e.call(this,t,n)||this;var o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=l,r.appearStatus=c):o=u:o=t.unmountOnExit||t.mountOnEnter?s:l,r.state={status:o},r.nextCallback=null,r}n=e,(t=Transition).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=Transition.prototype;return r.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(e,t){return e.in&&t.status===s?{status:l}:null},r.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function componentDidUpdate(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==u&&(t=c):n!==c&&n!==u||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},r.getTimeouts=function getTimeouts(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},r.updateStatus=function updateStatus(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},r.performEnter=function performEnter(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:u},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:u},function(){n.props.onEntered(e)})},r.performExit=function performExit(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},r.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function safeSetState(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function setNextCallback(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function onTransitionEnd(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function render(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=_objectWithoutPropertiesLoose(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},Transition}(o.default.Component);function noop(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function transitionGroup(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var d=(0,i.polyfill)(p);t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.transitionTimeout=function transitionTimeout(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},t.classNamesShape=t.timeoutsShape=void 0;var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]);t.timeoutsShape=o;var a=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})]);t.classNamesShape=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=_interopRequireDefault(n(1)),o=_interopRequireDefault(n(0)),a=n(52),i=n(402);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=[],r=void 0,o=void 0,a=function setSelector(){o.selector=n.join(",\n")},i=d(a);return{onProcessRule:function onProcessRule(a,l){if(!l||l===r||"style"!==a.type)return;if(!p(a,l,e))return;o||(r=a.options.jss.createStyleSheet(null,s),o=r.addRule("reset",c(e.reset)),r.attach());var u=a.selector;-1===n.indexOf(u)&&(n.push(u),t=i())},onProcessSheet:function onProcessSheet(){!t&&n.length&&a()}}};var a=_interopRequireDefault(n(198)),i=_interopRequireDefault(n(199));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={meta:"jss-isolate",index:-1/0,link:!0},l={inherited:a.default,all:i.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({},a.default,e)}return a.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(201)).default);function iterate(e,t,n){if(!t)return t;var a=t,i=void 0===t?"undefined":r(t);switch("object"===i&&Array.isArray(t)&&(i="array"),i){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 a=o.getRule(t.substr(1));return a?a===e?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(o.classes[e.key]+=" "+o.classes[a.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 f=h;h=function(e,n){return f(e,function(e,r,o){return t(e,r,function(e){return n(e,r,o)})})}}var m=h(e,stringify);if(d.length){for(var v=n?"\n":"",g=n?" = ":"=",y=";"+v,f=n?"(function () {":"(function(){",b=["var x"+g+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:"♦"},i=/^[\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,a=Array(o),i=0;it)return{line:n+1,column:t-a,char:n};a=i}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,a=String(o).length,i=e.split("\n").slice(r,o),s=i[i.length-1].slice(0,t.column).replace(/\t/g," ").length,l=i.map(function(e,t){return n=a,(o=String(t+r+1))+repeat(" ",n-o.length)+" : "+e.replace(/\t/g," ");var n,o}).join("\n");return l+="\n"+repeat(" ",a+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 h[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n1&&(u=t(a),s.push(function(t,n,s){e.prependRight(o.start,(i?"":n+"var ")+u+" = "),e.overwrite(o.start,r=o.start+1,a),e.appendLeft(r,s),e.overwrite(o.start,r=o.start+1,(i?"":n+"var ")+u+" = "+a+s),e.move(o.start,r,t)})),destructureObjectPattern(e,t,n,o,u,i,s);break;case"ArrayPattern":if(e.remove(r,r=o.start),o.elements.filter(Boolean).length>1){var p=t(a);s.push(function(t,n,s){e.prependRight(o.start,(i?"":n+"var ")+p+" = "),e.overwrite(o.start,r=o.start+1,a,{contentOnly:!0}),e.appendLeft(r,s),e.move(o.start,r,t)}),o.elements.forEach(function(o,a){o&&("RestElement"===o.type?handleProperty(e,t,n,r,o.argument,p+".slice("+a+")",i,s):handleProperty(e,t,n,r,o,p+"["+a+"]",i,s),r=o.end)})}else{var d=findIndex(o.elements,Boolean),h=o.elements[d];"RestElement"===h.type?handleProperty(e,t,n,r,h.argument,a+".slice("+d+")",i,s):handleProperty(e,t,n,r,h,a+"["+d+"]",i,s),r=h.end}e.remove(r,o.end);break;default:throw new Error("Unexpected node type in destructuring ("+o.type+")")}}var v=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(),a=this.parent;a;)"constructor"!==a.kind||a.parent.parent.superClass||(this.indentation=this.indentation.replace(o,"")),a=a.parent;t&&(this.indentation+=o)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,n){var r,o,a=this,i=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(e,n,r){var o=n+"var "+a.argumentsAlias+" = arguments"+r;t.appendLeft(e,o)}),this.thisAlias&&s.push(function(e,n,r){var o=n+"var "+a.thisAlias+" = this"+r;t.appendLeft(e,o)}),this.argumentsArrayAlias&&s.push(function(e,n,r){var o=a.scope.createIdentifier("i"),s=n+"var "+o+" = arguments.length, "+a.argumentsArrayAlias+" = Array("+o+");\n"+i+"while ( "+o+"-- ) "+a.argumentsArrayAlias+"["+o+"] = arguments["+o+"]"+r;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,n,i,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,n,i,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 "+a.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"+i+"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"+i,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 a=this;e.forEach(function(i){if("AssignmentPattern"===i.type&&"Identifier"===i.left.type)n.defaultParameter&&o.push(function(e,n,r){var o=n+"if ( "+i.left.name+" === void 0 ) "+i.left.name;t.prependRight(i.left.end,o).move(i.left.end,i.right.end,e).appendLeft(i.right.end,r)});else if("RestElement"===i.type)n.spreadRest&&o.push(function(n,o,s){var l=e[e.length-2];if(l)t.remove(l?l.end:i.start,i.end);else{for(var c=i.start,u=i.end;/\s/.test(t.original[c-1]);)c-=1;for(;/\s/.test(t.original[u]);)u+=1;t.remove(c,u)}var p=i.argument.name,d=a.scope.createIdentifier("len"),h=e.length-1;h?t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length - "+h+";\n"+r+"while ( "+d+"-- > 0 ) "+p+"[ "+d+" ] = arguments[ "+d+" + "+h+" ]"+s):t.prependRight(n,o+"var "+p+" = [], "+d+" = arguments.length;\n"+r+"while ( "+d+"-- ) "+p+"[ "+d+" ] = arguments[ "+d+" ]"+s)});else if("Identifier"!==i.type&&n.parameterDestructuring){var s=a.scope.createIdentifier("ref");destructure(t,function(e){return a.scope.createIdentifier(e)},function(e){var t=e.name;return a.scope.resolveName(t)},i,s,!1,o),t.prependRight(i.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 f(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 a=[];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,a);var i=", ";a.forEach(function(e,n){n===a.length-1&&(i=""),e(t.end,"",i)}),"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 a,i,s=!1,l=!1,c=this.findNearest(/(?:Statement|Declaration)$/),u=c.getIndentation();"Identifier"===o.property.type?i=o.computed?n.resolveName(o.property.name):o.property.name:(i=n.createDeclaration("property"),l=!0),"Identifier"===o.object.type?a=n.resolveName(o.object.name):(a=n.createDeclaration("object"),s=!0),o.start===c.start?s&&l?(e.prependRight(c.start,a+" = "),e.overwrite(o.object.end,o.property.start,";\n"+u+i+" = "),e.overwrite(o.property.end,o.end,";\n"+u+a+"["+i+"]")):s?(e.prependRight(c.start,a+" = "),e.appendLeft(o.object.end,";\n"+u),e.appendLeft(o.object.end,a)):l&&(e.prependRight(o.property.start,i+" = "),e.appendLeft(o.property.end,";\n"+u),e.move(o.property.start,o.property.end,this.start),e.appendLeft(o.object.end,"["+i+"]"),e.remove(o.object.end,o.property.start),e.remove(o.property.end,o.end)):(s&&l?(e.prependRight(o.start,"( "+a+" = "),e.overwrite(o.object.end,o.property.start,", "+i+" = "),e.overwrite(o.property.end,o.end,", "+a+"["+i+"]")):s?(e.prependRight(o.start,"( "+a+" = "),e.appendLeft(o.object.end,", "+a)):l&&(e.prependRight(o.property.start,"( "+i+" = "),e.appendLeft(o.property.end,", "),e.move(o.property.start,o.property.end,o.start),e.overwrite(o.object.end,o.property.start,"["+i+"]"),e.remove(o.property.end,o.end)),l&&e.appendLeft(this.end," )")),t=a+(o.computed||l?"["+i+"]":"."+i)}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),x=/(?:For(?:In|Of)?|While)Statement/,k=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(x),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 f("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(p),E=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,a=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===a.type&&(t.remove(a.start,a.argument.start),o=!0):o=spread(t,this.arguments,a.start,this.argumentsArrayAlias),o){var i=null;if("Super"===this.callee.type?i=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(i=this.callee.object),i||"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"),i?(i.noCall=!0,this.arguments.length>1&&("SpreadElement"!==a.type&&t.prependRight(a.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(a.start,r+", "):("SpreadElement"===a.type?t.appendLeft(a.start,r+", "):t.appendLeft(a.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),_=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 a=this;if(n.classes){var i=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="",f="";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],v=this.body[u+1];u>0&&(t.remove(m.end,p.start),t.move(p.start,v?v.start:this.end-1,this.body[0].start)),r||t.appendLeft(p.end,";")}var g=!1!==this.program.options.namedFunctionExpressions,y=g||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+o+" ) "+i+".__proto__ = "+o+";\n"+l+i+".prototype = Object.create( "+o+" && "+o+".prototype );\n"+l+i+".prototype.constructor = "+i+";";if(p)d+="\n\n"+l+b;else d+=(b="function "+i+" () {"+(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?i+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(w+=";"),this.body.length&&(w+="\n\n"+l),d+=w}var x,k,E=this.findScope(!1),_=[],O=[];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;(h[c]||e.value.body.scope.references[c])&&(c=E.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?(~O.indexOf(e.key.name)||O.push(e.key.name),k||(k=E.createIdentifier("staticAccessors")),o=""+k):(~_.indexOf(e.key.name)||_.push(e.key.name),x||(x=E.createIdentifier("prototypeAccessors")),o=""+x)}else o=e.static?""+i:i+".prototype";e.computed||(o+="."),(u>0&&n===u+1||0===n&&u===a.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 f=e.computed||s||!g?"":c+" ",m=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+f;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 v=y?" "+i:"";t.overwrite(e.key.start,e.key.end,"function"+v)}}),_.length||O.length){var C=[],S=[];_.length&&(C.push("var "+x+" = { "+_.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+i+".prototype, "+x+" );")),O.length&&(C.push("var "+k+" = { "+O.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+i+", "+k+" );")),p&&(d+="\n\n"+l),d+=C.join("\n"+l),p||(d+="\n\n"+l),f+="\n\n"+l+S.join("\n"+l)}p?t.appendLeft(p.end,d):t.prependRight(this.start,d),t.appendLeft(this.end,f)}e.prototype.transpile.call(this,t,n)},ClassBody}(p);function deindent(e,t){var n=e.start,r=e.end,o=t.getIndentString(),a=o.length,i=n-a;e.program.indentExclusions[i]||t.original.slice(i,n)!==o||t.remove(i,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+a)}}var O=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(),a="ExportDefaultDeclaration"===this.parent.type;a&&e.remove(this.parent.start,this.start);var i=this.start;this.id?(e.overwrite(i,this.id.start,"var "),i=this.id.end):e.prependLeft(i,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(i,this.superClass.start),e.appendLeft(i," = (function ("+n+") {\n"+o)):(e.overwrite(i,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+o)):i===this.body.start?e.appendLeft(i," = "):e.overwrite(i,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,n);var s=a?"\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),C=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 a="\n\n"+o+"return "+this.name+";\n"+r+"}(";this.superClass?(e.appendLeft(this.end,a),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),S=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(x).shouldRewriteAsFunction){if(this.label)throw new f("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(p),I=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 f("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(p),j=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 f("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(p),P=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],a=this.body.scope.declarations[o],i=a.instances.length;i--;){var s=a.instances[i].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(),a=o+t.getIndentString(),i=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"),h="{\n"+a+"var "+d+" = "+c+"("+i+");\n";this.canBreak&&(h+="\n"+a+"if ( "+d+" === 'break' ) break;"),this.canReturn&&(h+="\n"+a+"if ( "+d+" ) return "+d+".v;"),h+="\n"+o+"}",t.prependRight(this.body.end,h)}else{var f=c+"("+i+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+a+f+"\n"+o+"}"):t.prependRight(this.body.end,f)}}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 a="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],i=this.aliases;this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return i[e].outer+" = "+i[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}(P),A=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 a=o?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e})}e.prototype.transpile.call(this,t,n);var i=o?this.left.declarations[0].id:this.left;"Identifier"!==i.type&&this.destructurePattern(t,i,o)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,n){var r=this.findScope(!0),o=this.getIndentation()+e.getIndentString(),a=r.createIdentifier("ref"),i=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,i),e.prependRight(t.end,n?a:"var "+a);var s=[];destructure(e,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},t,a,!1,s);var l=";\n"+o;s.forEach(function(e,t){t===s.length-1&&(l=";\n\n"+o),e(i,"",l)})},ForInStatement}(P),R=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 f("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(),a=o+t.getIndentString(),i=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+a),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 "+i+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+i+" < "+s+".length; "+i+" += 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 h=";\n"+a;p.forEach(function(e,t){t===p.length-1&&(h=";\n\n"+a),e(l,"",h)}),c?(t.appendLeft(this.left.start+this.left.kind.length+1,d),t.appendLeft(this.left.end," = "+s+"["+i+"];\n"+a)):t.appendLeft(this.left.end,"var "+d+" = "+s+"["+i+"];\n"+a)}else t.appendLeft(this.left.end," = "+s+"["+i+"];\n\n"+a)}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}(P),M=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 f("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),L=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 f("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,a=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),z=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),V=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 f("import is not supported",this);e.prototype.initialise.call(this,t)},ImportDeclaration}(p),N=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),H=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),D=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,a=o.start,i=o.name,s=this.value?this.value.start:this.name.end;t.overwrite(a,s,(/-/.test(r=i)?"'"+r+"'":r)+": "+(this.value?"":"true")),e.prototype.transpile.call(this,t,n)},JSXAttribute}(p);var F=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 W=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 q=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,a=this.openingElement.end;for(o=0;o0&&(u.start===a?t.prependRight(a,", "):t.overwrite(a,u.start,", ")),c&&"JSXSpreadAttribute"!==u.type){var p=this.attributes[i-1],d=this.attributes[i+1];p&&"JSXSpreadAttribute"!==p.type||t.prependRight(u.start,"{ "),d&&"JSXSpreadAttribute"!==d.type||t.appendLeft(u.end," }")}a=u.end}if(c)if(1===o)l=r?"',":",";else{if(!this.program.options.objectAssign)throw new f("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"),a=this.name.end;this.selfClosing?t.overwrite(a,this.end,this.attributes.length?")":" )"):t.remove(a,this.end)},JSXOpeningElement}(p),K=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),$=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),J=createCommonjsModule(function(e,t){ /*! * regjsgen 0.3.0 * Copyright 2014-2016 Benjamin Tan @@ -29,14 +29,14 @@ var r=n(266),o=n(267),a=n(268);function kMaxLength(){return Buffer.TYPED_ARRAY_S */ (function(){var n={function:!0,object:!0},r=n[typeof window]&&window||this,o=n.object&&t,a=n.object&&e&&!e.nodeType&&e,i=o&&a&&"object"==typeof l&&l;!i||i.global!==i&&i.window!==i&&i.self!==i||(r=i);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 a="";++r1114111||u(i)!=i)throw RangeError("Invalid code point: "+i);i<=65535?n.push(i):(e=55296+((i-=65536)>>10),t=i%1024+56320,n.push(e,t)),(r+1==o||n.length>16384)&&(a+=c.apply(null,n),n.length=0)}return a}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 i=null,l=s;if(match(e))i=t;else{if(!match(n))return!1;i=r}var c=parseDisjunction();c||bail("Expected disjunction"),skip(")");var u=createGroup(i,flattenBody(c),l,s);return"normal"==i&&a&&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(i&&"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 a=parseInt(e[0],10);return a<=o?(n=e[0],addRaw({type:"reference",matchIndex:parseInt(n,10),range:[s-1-n.length,s]})):(r.push(a),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 a=0;switch(e[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return createEscaped("singleEscape",a,"\\"+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)):i&&(e=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):n.unicodePropertyEscape&&i&&(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 a=Math.max(0,r-10),i=Math.min(o+10,e.length),l=" "+e.substring(a,i),c=" "+new Array(r-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+r+(n?": "+n:"")+"\n"+l+"\n"+c)}n||(n={});var r=[],o=0,a=!0,i=-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(a,2);else{if(t>=r&&n=r&&t<=o)e[a+1]=t;else if(n>=r&&n<=o)return e[a]=n+1,e;a+=2}}return e},k=function(e,t){var n,r,o=0,a=null,i=e.length;if(t<0||t>1114111)throw RangeError(s);for(;o=n&&tt)return e.splice(null!=a?a+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);a=o,o+=2}return e.push(t,t+1),e},E=function(e,t){for(var n,r,o=0,a=e.slice(),i=t.length;o1114111||n<0||n>1114111)throw RangeError(s);for(var r,o,a=0,l=!1,c=e.length;an)return e;r>=t&&r<=n&&(o>t&&o-1<=n?(e.splice(a,2),a-=2):(e.splice(a-1,2),a-=2))}else{if(r==n+1)return e[a]=t,e;if(r>n)return e.splice(a,0,t,n+1),e;if(t>=r&&t=r&&t=o&&(e[a]=t,e[a+1]=n+1,l=!0)}a+=2}return l||e.push(t,n+1),e},C=function(e,t){var n=0,r=e.length,o=e[n],a=e[r-1];if(r>=2&&(ta))return!1;for(;n=o&&t=40&&e<=43||e>=45&&e<=47||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+M(e):e>=32&&e<=126?M(e):e<=255?"\\x"+v(g(e),2):"\\u"+v(g(e),4)},B=function(e){return e<=65535?L(e):"\\u{"+e.toString(16).toUpperCase()+"}"},z=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},V=function(e){var t,n,r="",o=0,a=e.length;if(j(e))return L(e[0]);for(;o=55296&&n<=56319&&(a.push(t,55296),r.push(55296,n+1)),n>=56320&&n<=57343&&(a.push(t,55296),r.push(55296,56320),o.push(56320,n+1)),n>57343&&(a.push(t,55296),r.push(55296,56320),o.push(56320,57344),n<=65535?a.push(57344,n+1):(a.push(57344,65536),i.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?a.push(57344,n+1):(a.push(57344,65536),i.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?a.push(57344,n+1):(a.push(57344,65536),i.push(65536,n+1)))):t>57343&&t<=65535?n<=65535?a.push(t,n+1):(a.push(t,65536),i.push(65536,n+1)):i.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:o,bmp:a,astral:i}},D=function(e){for(var t,n,r,o,a,i,s=[],l=[],c=!1,u=-1,p=e.length;++u1&&(e=y.call(arguments)),this instanceof X?(this.data=[],e?this.add(e):this):(new X).add(e)};X.version="1.3.3";var G=X.prototype;!function(e,t){var n;for(n in t)p.call(t,n)&&(e[n]=t[n])}(G,{add:function(e){var t=this;return null==e?t:e instanceof X?(t.data=E(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),f(e)?(d(e,function(e){t.add(e)}),t):(t.data=k(t.data,m(e)?e:z(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof X?(t.data=_(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),f(e)?(d(e,function(e){t.remove(e)}),t):(t.data=w(t.data,m(e)?e:z(e)),t))},addRange:function(e,t){return this.data=O(this.data,m(e)?e:z(e),m(t)?t:z(t)),this},removeRange:function(e,t){var n=m(e)?e:z(e),r=m(t)?t:z(t);return this.data=x(this.data,n,r),this},intersection:function(e){var t=e instanceof X?P(e.data):e;return this.data=S(this.data,t),this},contains:function(e){return C(this.data,m(e)?e:z(e))},clone:function(){var e=new X;return e.data=this.data.slice(0),e},toString:function(e){var t=U(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 P(this.data)}}),G.toArray=G.valueOf,r&&!r.nodeType?o?o.exports=X:r.regenerate=X:n.regenerate=X}(l)}),Z=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(Z.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]]),ae={REGULAR:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,65535)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)]]),UNICODE:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,1114111)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)]]),UNICODE_IGNORE_CASE:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,1114111)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,382).addRange(384,8489).addRange(8491,1114111)]])},ie=createCommonjsModule(function(e){var t=J.generate,n=Y.parse,r=Q().addRange(0,1114111),o=Q().addRange(0,65535),a=r.clone().remove(10,13,8232,8233),i=a.clone().intersection(o),s=function(e,t,n){return t?n?ae.UNICODE_IGNORE_CASE.get(e):ae.UNICODE.get(e):ae.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("="),a=o[0];if(1==o.length)n=c(a);else{var i=te(a),s=re(i,o[1]);n=l(i,s)}return t?r.clone().remove(n):n.clone()};Q.prototype.iuAddRange=function(e,t){do{var n=h(e);n&&this.add(n)}while(++e<=t);return this};var p=function(e,t){var r=n(t,v.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+")"}},h=function(e){return oe.get(e)||!1},f=function(e,t){for(var n=Q(),a=0,i=e.body;aP&&t.remove(P,C.value.start),t.prependLeft(P," = ")):t.overwrite(C.start,C.key.end+1,"["+t.slice(C.start,C.key.end)+"] = "),!C.method||!C.computed&&n.conciseMethodProperty||(C.value.generator&&t.remove(C.start,C.key.start),t.prependRight(C.value.start,"function"+(C.value.generator?"*":"")+" "))}else"SpreadElement"===C.type?g&&O>0&&(x||(x=this.properties[O-1]),t.appendLeft(x.end,", "+g+" )"),x=null,g=null):(!_&&a&&(t.prependRight(C.start,"{"),t.appendLeft(C.end,"}")),E=!0);if(_&&("SpreadElement"===C.type||C.computed)){var T=E?this.properties[this.properties.length-1].end:this.end-1;","==t.original[T]&&++T;var A=t.slice(T,w);t.prependLeft(S,A),t.remove(T,w),_=!1}var R=C.end;if(Othis.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 f("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 f("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 f("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new f("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var n=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),o=this.findNearest(x);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 f("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,a=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)}).join(", "),i=this.program.templateLiteralQuasis[a];i||(i=o.createIdentifier("templateObject"),t.prependRight(this.program.prependAt,"var "+i+" = Object.freeze(["+a+"]);\n"),this.program.templateLiteralQuasis[a]=i),t.overwrite(this.tag.end,r[0].start,"("+i);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],a=r[2];"TemplateElement"===o.type&&""===o.value.raw&&"TemplateElement"===a.type&&r.shift()}var i=!(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);i&&t.appendRight(this.start,"(");var s=this.start;r.forEach(function(e,n){var r=0===n?i?"(":"":" + ";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}),i&&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(x);(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 a,i=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(i,o.id.start,"var ");else{var l=x.test(n.parent.type);0===s?e.remove(i,o.id.start):e.overwrite(i,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");i=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 h=l?"var ":"",f=l?", ":";\n"+r;p.forEach(function(e,t){s===n.declarations.length-1&&t===p.length-1&&(f=l?"":";"),e(o.start,0===t?h:"",f)})}i=o.end,a="Identifier"!==o.id.type}),a&&this.end>i&&e.overwrite(i,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:P},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 a=0,i=le[e.type];a...",!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 a=this.input.charCodeAt(this.pos);if(a===n)break;38===a?(r+=this.input.slice(o,this.pos),r+=this.jsx_readEntity(),o=this.pos):e.isNewLine(a)?(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=a,r.closingElement=i,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,a.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 a=this.curContext();if(a===n.j_expr)return this.jsx_readToken();if(a===n.j_oTag||a===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)&&a==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,he=["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 a=r[o];t&=a});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,"+a(this.toString())}};var i=Object.prototype.toString;function isObject(e){return"[object Object]"===i.call(e)}function getLocator(e){var t=e.split("\n"),n=0,r=t.map(function(e,t){var r=n+e.length+1,o={start:n,end:r,line:t};return n=r,o}),o=0;function rangeContains(e,t){return e.start<=t&&t=t.end?1:-1;t;){if(rangeContains(t,e))return getLocation(t,e);t=r[o+=n]}}}function Mappings(e){var t=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,a=0;this.raw=[];var i=this.raw[r]=[],s=null;this.addEdit=function(e,n,r,o,l){n.length?i.push([a,e,o.line,o.column,l]):s&&i.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],a=r.previous,i=o.next,s=this.byStart[n];if(!s&&o===this.lastChunk)return this;var l=s?s.previous:this.lastChunk;return a&&(a.next=i),i&&(i.previous=a),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,a=void 0!==r&&r.contentOnly;if(o){var i=this.original.slice(e,t);this.storedNames[i]=!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,a),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 a=r.start=t;if(a&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var i=o===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(i,s),!r.outro||a&&r.end!==t||(n+=r.outro),a)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 a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,i=e.content,s=getLocator(i.original);i.intro&&r.advance(i.intro),i.firstChunk.eachNext(function(t){var o=s(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(a,t.content,t.original,o,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(a,t,i.original,o,i.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),i.outro&&r.advance(i.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 a=void 0!==r.separator?r.separator:t.separator,i=n||o>0&&/\r?\n$/.test(a);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:i}),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(125).Buffer,n(37))},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,n){"use strict";t.a={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}},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 a=r.document.createRange();o.removeAllRanges(),a.selectNode(t),o.addRange(a);var i=!1;try{i=r.document.execCommand("copy")}catch(e){}return o.removeAllRanges(),r.document.body.removeChild(t),document.body.removeChild(n),i?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'},function(e,t,n){var r=n(76),o=0;e.exports=function uniqueId(e){var t=++o;return r(e)+t}},function(e,t,n){(function(t){for(var r=n(393),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],l=o["cancel"+i]||o["cancelRequest"+i],c=0;!s&&c=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),h=function generateId(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},f=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||h()},t}return _inherits(AutosizeInput,a.Component),o(AutosizeInput,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||h()})}},{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?(f=o(e),m=o(t)):(f=o(t),m=o(e));var y=Math[u.partialMethod?String(u.partialMethod):"floor"],b=a(m,f),w=m.getTimezoneOffset()-f.getTimezoneOffset(),x=y(b/60)-w;if("s"===(v=u.unit?String(u.unit):x<1?"s":x<60?"m":x1y",other:">{{count}}y"},almostXYears:{one:"<1y",other:"<{{count}}y"}};return{localize:function localize(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){"use strict";var r=function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},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,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};var a=function murmurhash2_32_gc(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>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)};var i=function stylis_min(e){function M(e,r,o,a,i){for(var s,p,h,f,m,v=0,g=0,E=0,O=0,S=0,I=0,j=h=s=0,T=0,A=0,R=0,B=0,z=o.length,V=z-1,N="",D="",F="",W="";Ts)&&(B=(N=N.replace(" ",":")).length),0<_&&void 0!==(m=H(1,N,r,e,b,y,D.length,a,i,a))&&0===(B=(N=m.trim()).length)&&(N="\0\0"),s=N.charCodeAt(0),p=N.charCodeAt(1),s){case 0:break;case 64:if(105===p||99===p){W+=N+o.charAt(T);break}default:58!==N.charCodeAt(B-1)&&(D+=P(N,s,p,N.charCodeAt(2)))}R=A=j=s=0,N="",p=o.charCodeAt(++T)}}switch(p){case 13:case 10:47===g?g=0:0===1+s&&107!==a&&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],0<_){var r=H(-1,t,n,n,b,y,0,0,0,0);void 0!==r&&"string"==typeof r&&(t=r)}var o=M(k,n,t,0,0);return 0<_&&void 0!==(r=H(-2,o,n,n,b,y,o.length,0,0,0))&&(o=r),w=0,y=b=1,o}var t=/^\0+/g,n=/[\0\r\f]/g,r=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,i=/,\r+?/g,s=/([\t\r\n ])*\f?&/g,l=/@(k\w+)\s*(\S*)\s*/,c=/::(place)/g,u=/:(read-only)/g,p=/[svh]\w+-[tblr]{2}/,d=/\(\s*(.*)\s*\)/g,h=/([\s\S]*?);/g,f=/-self|flex-/g,m=/[^]*?(:[rp][el]a[\w-]+)[^]*/,v=/stretch|:\s*\w+\-(?:conte|avail)/,g=/([^-])(image-set\()/,y=1,b=1,w=0,x=1,k=[],E=[],_=0,O=null,C=0;return B.use=function T(e){switch(e){case void 0:case null:_=E.length=0;break;default:switch(e.constructor){case Array:for(var t=0,n=e.length;t1?o-1:0),i=1;i=n&&tn)return e;if(t<=r&&n>=o)e.splice(a,2);else{if(t>=r&&n=r&&t<=o)e[a+1]=t;else if(n>=r&&n<=o)return e[a]=n+1,e;a+=2}}return e},k=function(e,t){var n,r,o=0,a=null,i=e.length;if(t<0||t>1114111)throw RangeError(s);for(;o=n&&tt)return e.splice(null!=a?a+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);a=o,o+=2}return e.push(t,t+1),e},E=function(e,t){for(var n,r,o=0,a=e.slice(),i=t.length;o1114111||n<0||n>1114111)throw RangeError(s);for(var r,o,a=0,l=!1,c=e.length;an)return e;r>=t&&r<=n&&(o>t&&o-1<=n?(e.splice(a,2),a-=2):(e.splice(a-1,2),a-=2))}else{if(r==n+1)return e[a]=t,e;if(r>n)return e.splice(a,0,t,n+1),e;if(t>=r&&t=r&&t=o&&(e[a]=t,e[a+1]=n+1,l=!0)}a+=2}return l||e.push(t,n+1),e},C=function(e,t){var n=0,r=e.length,o=e[n],a=e[r-1];if(r>=2&&(ta))return!1;for(;n=o&&t=40&&e<=43||e>=45&&e<=47||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+M(e):e>=32&&e<=126?M(e):e<=255?"\\x"+v(g(e),2):"\\u"+v(g(e),4)},B=function(e){return e<=65535?L(e):"\\u{"+e.toString(16).toUpperCase()+"}"},z=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},V=function(e){var t,n,r="",o=0,a=e.length;if(j(e))return L(e[0]);for(;o=55296&&n<=56319&&(a.push(t,55296),r.push(55296,n+1)),n>=56320&&n<=57343&&(a.push(t,55296),r.push(55296,56320),o.push(56320,n+1)),n>57343&&(a.push(t,55296),r.push(55296,56320),o.push(56320,57344),n<=65535?a.push(57344,n+1):(a.push(57344,65536),i.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?a.push(57344,n+1):(a.push(57344,65536),i.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?a.push(57344,n+1):(a.push(57344,65536),i.push(65536,n+1)))):t>57343&&t<=65535?n<=65535?a.push(t,n+1):(a.push(t,65536),i.push(65536,n+1)):i.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:o,bmp:a,astral:i}},D=function(e){for(var t,n,r,o,a,i,s=[],l=[],c=!1,u=-1,p=e.length;++u1&&(e=y.call(arguments)),this instanceof X?(this.data=[],e?this.add(e):this):(new X).add(e)};X.version="1.3.3";var G=X.prototype;!function(e,t){var n;for(n in t)p.call(t,n)&&(e[n]=t[n])}(G,{add:function(e){var t=this;return null==e?t:e instanceof X?(t.data=E(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),f(e)?(d(e,function(e){t.add(e)}),t):(t.data=k(t.data,m(e)?e:z(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof X?(t.data=_(t.data,e.data),t):(arguments.length>1&&(e=y.call(arguments)),f(e)?(d(e,function(e){t.remove(e)}),t):(t.data=w(t.data,m(e)?e:z(e)),t))},addRange:function(e,t){return this.data=O(this.data,m(e)?e:z(e),m(t)?t:z(t)),this},removeRange:function(e,t){var n=m(e)?e:z(e),r=m(t)?t:z(t);return this.data=x(this.data,n,r),this},intersection:function(e){var t=e instanceof X?P(e.data):e;return this.data=S(this.data,t),this},contains:function(e){return C(this.data,m(e)?e:z(e))},clone:function(){var e=new X;return e.data=this.data.slice(0),e},toString:function(e){var t=U(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 P(this.data)}}),G.toArray=G.valueOf,r&&!r.nodeType?o?o.exports=X:r.regenerate=X:n.regenerate=X}(l)}),Z=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(Z.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]]),ae={REGULAR:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,65535)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)]]),UNICODE:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,1114111)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)]]),UNICODE_IGNORE_CASE:new Map([["d",Q().addRange(48,57)],["D",Q().addRange(0,47).addRange(58,1114111)],["s",Q(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Q().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",Q(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Q(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,382).addRange(384,8489).addRange(8491,1114111)]])},ie=createCommonjsModule(function(e){var t=J.generate,n=Y.parse,r=Q().addRange(0,1114111),o=Q().addRange(0,65535),a=r.clone().remove(10,13,8232,8233),i=a.clone().intersection(o),s=function(e,t,n){return t?n?ae.UNICODE_IGNORE_CASE.get(e):ae.UNICODE.get(e):ae.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("="),a=o[0];if(1==o.length)n=c(a);else{var i=te(a),s=re(i,o[1]);n=l(i,s)}return t?r.clone().remove(n):n.clone()};Q.prototype.iuAddRange=function(e,t){do{var n=h(e);n&&this.add(n)}while(++e<=t);return this};var p=function(e,t){var r=n(t,v.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+")"}},h=function(e){return oe.get(e)||!1},f=function(e,t){for(var n=Q(),a=0,i=e.body;aP&&t.remove(P,C.value.start),t.prependLeft(P," = ")):t.overwrite(C.start,C.key.end+1,"["+t.slice(C.start,C.key.end)+"] = "),!C.method||!C.computed&&n.conciseMethodProperty||(C.value.generator&&t.remove(C.start,C.key.start),t.prependRight(C.value.start,"function"+(C.value.generator?"*":"")+" "))}else"SpreadElement"===C.type?g&&O>0&&(x||(x=this.properties[O-1]),t.appendLeft(x.end,", "+g+" )"),x=null,g=null):(!_&&a&&(t.prependRight(C.start,"{"),t.appendLeft(C.end,"}")),E=!0);if(_&&("SpreadElement"===C.type||C.computed)){var T=E?this.properties[this.properties.length-1].end:this.end-1;","==t.original[T]&&++T;var A=t.slice(T,w);t.prependLeft(S,A),t.remove(T,w),_=!1}var R=C.end;if(Othis.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 f("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 f("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 f("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new f("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var n=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),o=this.findNearest(x);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 f("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,a=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)}).join(", "),i=this.program.templateLiteralQuasis[a];i||(i=o.createIdentifier("templateObject"),t.prependRight(this.program.prependAt,"var "+i+" = Object.freeze(["+a+"]);\n"),this.program.templateLiteralQuasis[a]=i),t.overwrite(this.tag.end,r[0].start,"("+i);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],a=r[2];"TemplateElement"===o.type&&""===o.value.raw&&"TemplateElement"===a.type&&r.shift()}var i=!(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);i&&t.appendRight(this.start,"(");var s=this.start;r.forEach(function(e,n){var r=0===n?i?"(":"":" + ";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}),i&&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(x);(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 a,i=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(i,o.id.start,"var ");else{var l=x.test(n.parent.type);0===s?e.remove(i,o.id.start):e.overwrite(i,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");i=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 h=l?"var ":"",f=l?", ":";\n"+r;p.forEach(function(e,t){s===n.declarations.length-1&&t===p.length-1&&(f=l?"":";"),e(o.start,0===t?h:"",f)})}i=o.end,a="Identifier"!==o.id.type}),a&&this.end>i&&e.overwrite(i,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:P},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 a=0,i=le[e.type];a...",!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 a=this.input.charCodeAt(this.pos);if(a===n)break;38===a?(r+=this.input.slice(o,this.pos),r+=this.jsx_readEntity(),o=this.pos):e.isNewLine(a)?(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=a,r.closingElement=i,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,a.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 a=this.curContext();if(a===n.j_expr)return this.jsx_readToken();if(a===n.j_oTag||a===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)&&a==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,he=["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 a=r[o];t&=a});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,"+a(this.toString())}};var i=Object.prototype.toString;function isObject(e){return"[object Object]"===i.call(e)}function getLocator(e){var t=e.split("\n"),n=0,r=t.map(function(e,t){var r=n+e.length+1,o={start:n,end:r,line:t};return n=r,o}),o=0;function rangeContains(e,t){return e.start<=t&&t=t.end?1:-1;t;){if(rangeContains(t,e))return getLocation(t,e);t=r[o+=n]}}}function Mappings(e){var t=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,a=0;this.raw=[];var i=this.raw[r]=[],s=null;this.addEdit=function(e,n,r,o,l){n.length?i.push([a,e,o.line,o.column,l]):s&&i.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],a=r.previous,i=o.next,s=this.byStart[n];if(!s&&o===this.lastChunk)return this;var l=s?s.previous:this.lastChunk;return a&&(a.next=i),i&&(i.previous=a),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,a=void 0!==r&&r.contentOnly;if(o){var i=this.original.slice(e,t);this.storedNames[i]=!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,a),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 a=r.start=t;if(a&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var i=o===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(i,s),!r.outro||a&&r.end!==t||(n+=r.outro),a)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 a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,i=e.content,s=getLocator(i.original);i.intro&&r.advance(i.intro),i.firstChunk.eachNext(function(t){var o=s(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(a,t.content,t.original,o,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(a,t,i.original,o,i.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),i.outro&&r.advance(i.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 a=void 0!==r.separator?r.separator:t.separator,i=n||o>0&&/\r?\n$/.test(a);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:i}),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(126).Buffer,n(37))},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,n){"use strict";t.a={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}},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 a=r.document.createRange();o.removeAllRanges(),a.selectNode(t),o.addRange(a);var i=!1;try{i=r.document.execCommand("copy")}catch(e){}return o.removeAllRanges(),r.document.body.removeChild(t),document.body.removeChild(n),i?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'},function(e,t,n){var r=n(76),o=0;e.exports=function uniqueId(e){var t=++o;return r(e)+t}},function(e,t,n){(function(t){for(var r=n(395),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],l=o["cancel"+i]||o["cancelRequest"+i],c=0;!s&&c=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),h=function generateId(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},f=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||h()},t}return _inherits(AutosizeInput,a.Component),o(AutosizeInput,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||h()})}},{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?(f=o(e),m=o(t)):(f=o(t),m=o(e));var y=Math[u.partialMethod?String(u.partialMethod):"floor"],b=a(m,f),w=m.getTimezoneOffset()-f.getTimezoneOffset(),x=y(b/60)-w;if("s"===(v=u.unit?String(u.unit):x<1?"s":x<60?"m":x1y",other:">{{count}}y"},almostXYears:{one:"<1y",other:"<{{count}}y"}};return{localize:function localize(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){"use strict";var r=function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},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,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};var a=function murmurhash2_32_gc(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>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)};var i=function stylis_min(e){function M(e,r,o,a,i){for(var s,p,h,f,m,v=0,g=0,E=0,O=0,S=0,I=0,j=h=s=0,T=0,A=0,R=0,B=0,z=o.length,V=z-1,N="",D="",F="",W="";Ts)&&(B=(N=N.replace(" ",":")).length),0<_&&void 0!==(m=H(1,N,r,e,b,y,D.length,a,i,a))&&0===(B=(N=m.trim()).length)&&(N="\0\0"),s=N.charCodeAt(0),p=N.charCodeAt(1),s){case 0:break;case 64:if(105===p||99===p){W+=N+o.charAt(T);break}default:58!==N.charCodeAt(B-1)&&(D+=P(N,s,p,N.charCodeAt(2)))}R=A=j=s=0,N="",p=o.charCodeAt(++T)}}switch(p){case 13:case 10:47===g?g=0:0===1+s&&107!==a&&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],0<_){var r=H(-1,t,n,n,b,y,0,0,0,0);void 0!==r&&"string"==typeof r&&(t=r)}var o=M(k,n,t,0,0);return 0<_&&void 0!==(r=H(-2,o,n,n,b,y,o.length,0,0,0))&&(o=r),w=0,y=b=1,o}var t=/^\0+/g,n=/[\0\r\f]/g,r=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,i=/,\r+?/g,s=/([\t\r\n ])*\f?&/g,l=/@(k\w+)\s*(\S*)\s*/,c=/::(place)/g,u=/:(read-only)/g,p=/[svh]\w+-[tblr]{2}/,d=/\(\s*(.*)\s*\)/g,h=/([\s\S]*?);/g,f=/-self|flex-/g,m=/[^]*?(:[rp][el]a[\w-]+)[^]*/,v=/stretch|:\s*\w+\-(?:conte|avail)/,g=/([^-])(image-set\()/,y=1,b=1,w=0,x=1,k=[],E=[],_=0,O=null,C=0;return B.use=function T(e){switch(e){case void 0:case null:_=E.length=0;break;default:switch(e.constructor){case Array:for(var t=0,n=e.length;t1?o-1:0),i=1;i0&&(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=a},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(a(e))return e.map(cloneStyle);if((0,o.default)(e))return e;var n={};for(var i in e){var s=e[i];"object"!==(void 0===s?"undefined":r(s))?n[i]=s:n[i]=cloneStyle(s)}return n};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(108));var a=Array.isArray},function(e,t,n){"use strict";n.r(t),function(e,r){var o,a=n(140);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.default=i}.call(this,n(13),n(181)(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(13))},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(13))},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?g.default:v.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 a=(0,m.default)(e,t,o);return!o.selector&&a instanceof h.default&&(a.selector="."+o.generateClassName(a)),this.plugins.onProcessRule(a),a}},{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=i},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=i},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 h,f,m=l(function(){return document.head||document.getElementsByTagName("head")[0]}),v=(h=void 0,f=!1,function(e){var t={};h||(h=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 i=findCommentNode(r);if(i)return i.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 a=r.parentNode;a&&a.insertBefore(e,r)}else if(n&&"number"==typeof n.nodeType){var i=n,s=i.parentNode;s?s.insertBefore(e,i.nextSibling):(0,o.default)(!1,"[JSS] Insertion point is not in the DOM.")}else m().insertBefore(e,r)}var g=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=v,this.hasInsertedRules=!1,e&&a.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 i=g();i&&this.element.setAttribute("nonce",i)}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,a=e.toString();if(t||(t=r.length),!a)return!1;try{n.insertRule(a,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;n0&&(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=a},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(a(e))return e.map(cloneStyle);if((0,o.default)(e))return e;var n={};for(var i in e){var s=e[i];"object"!==(void 0===s?"undefined":r(s))?n[i]=s:n[i]=cloneStyle(s)}return n};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(109));var a=Array.isArray},function(e,t,n){"use strict";n.r(t),function(e,r){var o,a=n(141);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.default=i}.call(this,n(13),n(182)(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(13))},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(13))},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?g.default:v.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 a=(0,m.default)(e,t,o);return!o.selector&&a instanceof h.default&&(a.selector="."+o.generateClassName(a)),this.plugins.onProcessRule(a),a}},{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=i},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=i},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 h,f,m=l(function(){return document.head||document.getElementsByTagName("head")[0]}),v=(h=void 0,f=!1,function(e){var t={};h||(h=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 i=findCommentNode(r);if(i)return i.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 a=r.parentNode;a&&a.insertBefore(e,r)}else if(n&&"number"==typeof n.nodeType){var i=n,s=i.parentNode;s?s.insertBefore(e,i.nextSibling):(0,o.default)(!1,"[JSS] Insertion point is not in the DOM.")}else m().insertBefore(e,r)}var g=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=v,this.hasInsertedRules=!1,e&&a.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 i=g();i&&this.element.setAttribute("nonce",i)}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,a=e.toString();if(t||(t=r.length),!a)return!1;try{n.insertRule(a,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;nthis.eventPool.length&&this.eventPool.push(e)}function jb(e){e.eventPool=[],e.getPooled=kb,e.release=lb}i(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=hb)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=hb)},persist:function(){this.isPersistent=hb},isPersistent:ib,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ib,this._dispatchInstances=this._dispatchListeners=null}}),A.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},A.extend=function(e){function b(){}function c(){return t.apply(this,arguments)}var t=this;b.prototype=t.prototype;var n=new b;return i(n,c.prototype),c.prototype=n,c.prototype.constructor=c,c.Interface=i({},t.Interface,e),c.extend=t.extend,jb(c),c},jb(A);var _e=A.extend({data:null}),Se=A.extend({data:null}),Ie=[9,13,27,32],Te=$&&"CompositionEvent"in window,Ae=null;$&&"documentMode"in document&&(Ae=document.documentMode);var ze=$&&"TextEvent"in window&&!Ae,He=$&&(!Te||Ae&&8=Ae),De=String.fromCharCode(32),qe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ke=!1;function wb(e,t){switch(e){case"keyup":return-1!==Ie.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xb(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Je=!1;function zb(e,t){switch(e){case"compositionend":return xb(t);case"keypress":return 32!==t.which?null:(Ke=!0,De);case"textInput":return(e=t.data)===De&&Ke?null:e;default:return null}}function Ab(e,t){if(Je)return"compositionend"===e||!Te&&wb(e,t)?(e=gb(),Ee=ke=be=null,Je=!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&&1t}return!1}function E(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ct[e]=new E(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ct[t]=new E(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new E(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new E(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ct[e]=new E(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new E(e,3,!0,e,null)}),["capture","download"].forEach(function(e){Ct[e]=new E(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){Ct[e]=new E(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){Ct[e]=new E(e,5,!1,e.toLowerCase(),null)});var St=/[\-:]([a-z])/g;function xc(e){return e[1].toUpperCase()}function yc(e,t,n,r){var o=Ct.hasOwnProperty(t)?Ct[t]:null;(null!==o?0===o.type:!r&&(2an.length&&an.push(e)}}}var ln={},cn=0,un="_reactListenersID"+(""+Math.random()).slice(2);function Od(e){return Object.prototype.hasOwnProperty.call(e,un)||(e[un]=cn++,ln[e[un]]={}),ln[e[un]]}function Pd(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 Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n,r=Qd(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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=Qd(r)}}function Sd(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Sd(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Td(){for(var e=window,t=Pd();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Pd(e.document)}return t}function Ud(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 pn=$&&"documentMode"in document&&11>=document.documentMode,dn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},hn=null,fn=null,mn=null,vn=!1;function ae(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return vn||null==hn||hn!==Pd(n)?null:("selectionStart"in(n=hn)&&Ud(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},mn&&jd(mn,n)?null:(mn=n,(e=A.getPooled(dn.select,fn,e,t)).type="select",e.target=hn,Ra(e),e))}var gn={eventTypes:dn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=Od(a),o=R.onSelect;for(var i=0;i=n.length||t("93"),n=n[0]),r=n),null==r&&(r="")),e._wrapperState={initialValue:zc(r)}}function ie(e,t){var n=zc(t.value),r=zc(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 je(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}W.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),V=La,N=Ja,D=Ka,W.injectEventPluginsByName({SimpleEventPlugin:rn,EnterLeaveEventPlugin:Ft,ChangeEventPlugin:At,SelectEventPlugin:gn,BeforeInputEventPlugin:et});var yn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function le(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 me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var bn,wn=void 0,xn=(bn=function(e,t){if(e.namespaceURI!==yn.svg||"innerHTML"in e)e.innerHTML=t;else{for((wn=wn||document.createElement("div")).innerHTML=""+t+"",t=wn.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 bn(e,t)})}:bn);function pe(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 kn={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},En=["Webkit","ms","Moz","O"];function se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kn.hasOwnProperty(e)&&kn[e]?(""+t).trim():t+"px"}function te(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=se(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(kn).forEach(function(e){En.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kn[t]=kn[e]})});var _n=i({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 ve(e,n){n&&(_n[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML)&&t("137",e,""),null!=n.dangerouslySetInnerHTML&&(null!=n.children&&t("60"),"object"==typeof n.dangerouslySetInnerHTML&&"__html"in n.dangerouslySetInnerHTML||t("61")),null!=n.style&&"object"!=typeof n.style&&t("62",""))}function we(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 xe(e,t){var n=Od(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var r=0;rPn||(e.current=jn[Pn],jn[Pn]=null,Pn--)}function I(e,t){jn[++Pn]=e.current,e.current=t}var Tn={},An={current:Tn},Rn={current:!1},Mn=Tn;function Le(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function L(e){return null!=(e=e.childContextTypes)}function Me(e){H(Rn),H(An)}function Ne(e){H(Rn),H(An)}function Oe(e,n,r){An.current!==Tn&&t("168"),I(An,n),I(Rn,r)}function Pe(e,n,r){var o=e.stateNode;if(e=n.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())a in e||t("108",mc(n)||"Unknown",a);return i({},r,o)}function Qe(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Tn,Mn=An.current,I(An,t),I(Rn,Rn.current),!0}function Re(e,n,r){var o=e.stateNode;o||t("169"),r?(n=Pe(e,n,Mn),o.__reactInternalMemoizedMergedChildContext=n,H(Rn),H(An),I(An,n)):H(Rn),I(Rn,r)}var Ln=null,Bn=null;function Ue(e){return function(t){try{return e(t)}catch(e){}}}function Ve(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ln=Ue(function(e){return t.onCommitFiberRoot(n,e)}),Bn=Ue(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function We(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.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function M(e,t,n,r){return new We(e,t,n,r)}function Xe(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ye(e){if("function"==typeof e)return Xe(e)?1:0;if(null!=e){if((e=e.$$typeof)===gt)return 11;if(e===bt)return 14}return 2}function Ze(e,t){var n=e.alternate;return null===n?((n=M(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $e(e,n,r,o,a,i){var s=2;if(o=e,"function"==typeof e)Xe(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case pt:return af(r.children,a,i,n);case vt:return bf(r,3|a,i,n);case dt:return bf(r,2|a,i,n);case ht:return(e=M(12,r,n,4|a)).elementType=ht,e.type=ht,e.expirationTime=i,e;case yt:return(e=M(13,r,n,a)).elementType=yt,e.type=yt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ft:s=10;break e;case mt:s=9;break e;case gt:s=11;break e;case bt:s=14;break e;case wt:s=16,o=null;break e}t("130",null==e?e:typeof e,"")}return(n=M(s,r,n,a)).elementType=e,n.type=o,n.expirationTime=i,n}function af(e,t,n,r){return(e=M(7,e,r,t)).expirationTime=n,e}function bf(e,t,n,r){return e=M(8,e,r,t),t=0==(1&t)?dt:vt,e.elementType=t,e.type=t,e.expirationTime=n,e}function cf(e,t,n){return(e=M(6,e,null,t)).expirationTime=n,e}function df(e,t,n){return(t=M(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ef(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:nt&&(e.latestPendingTime=t),ff(t,e)}function gf(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:nt&&(e.latestSuspendedTime=t),ff(t,e)}function hf(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ff(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,a=t.latestPingedTime;0===(o=0!==o?o:a)&&(0===e||re&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}var zn=!1;function kf(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function lf(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function mf(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function nf(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function of(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=kf(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=kf(e.memoizedState),o=n.updateQueue=kf(n.memoizedState)):r=e.updateQueue=lf(o):null===o&&(o=n.updateQueue=lf(r));null===o||r===o?nf(r,t):null===r.lastUpdate||null===o.lastUpdate?(nf(r,t),nf(o,t)):(nf(r,t),o.lastUpdate=t)}function pf(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=kf(e.memoizedState):qf(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function qf(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=lf(t)),t}function rf(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:zn=!0}return r}function sf(e,t,n,r,o){zn=!1;for(var a=(t=qf(e,t)).baseState,i=null,s=0,l=t.firstUpdate,c=a;null!==l;){var u=l.expirationTime;ul?(u=s,s=null):u=s.sibling;var p=x(e,s,r[l],o);if(null===p){null===s&&(s=u);break}n&&s&&null===p.alternate&&b(e,s),t=f(p,t,l),null===i?a=p:i.sibling=p,i=p,s=u}if(l===r.length)return c(e,s),a;if(null===s){for(;lu?(p=l,l=null):p=l.sibling;var m=x(e,l,h.value,a);if(null===m){l||(l=p);break}n&&l&&null===m.alternate&&b(e,l),r=f(m,r,u),null===s?i=m:s.sibling=m,s=m,l=p}if(h.done)return c(e,l),i;if(null===l){for(;!h.done;u++,h=o.next())null!==(h=q(e,h.value,a))&&(r=f(h,r,u),null===s?i=h:s.sibling=h,s=h);return i}for(l=d(e,l);!h.done;u++,h=o.next())null!==(h=z(l,e,u,h.value,a))&&(n&&null!==h.alternate&&l.delete(null===h.key?u:h.key),r=f(h,r,u),null===s?i=h:s.sibling=h,s=h);return n&&l.forEach(function(t){return b(e,t)}),i}return function(n,r,o,a){var i="object"==typeof o&&null!==o&&o.type===pt&&null===o.key;i&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case ct:e:{for(s=o.key,i=r;null!==i;){if(i.key===s){if(7===i.tag?o.type===pt:i.elementType===o.type){c(n,i.sibling),(r=e(i,o.type===pt?o.props.children:o.props)).ref=$f(n,i,o),r.return=n,n=r;break e}c(n,i);break}b(n,i),i=i.sibling}o.type===pt?((r=af(o.props.children,n.mode,a,o.key)).return=n,n=r):((a=$e(o.type,o.key,o.props,null,n.mode,a)).ref=$f(n,r,o),a.return=n,n=a)}return g(n);case ut:e:{for(i=o.key;null!==r;){if(r.key===i){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){c(n,r.sibling),(r=e(r,o.children||[])).return=n,n=r;break e}c(n,r);break}b(n,r),r=r.sibling}(r=df(o,n.mode,a)).return=n,n=r}return g(n)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(c(n,r.sibling),(r=e(r,o)).return=n,n=r):(c(n,r),(r=cf(o,n.mode,a)).return=n,n=r),g(n);if($n(o))return B(n,r,o,a);if(lc(o))return Q(n,r,o,a);if(s&&ag(n,o),void 0===o&&!i)switch(n.tag){case 1:case 0:t("152",(a=n.type).displayName||a.name||"Component")}return c(n,r)}}var Jn=bg(!0),Yn=bg(!1),Qn=null,Zn=null,er=!1;function hg(e,t){var n=M(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ig(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);default:return!1}}function jg(e){if(er){var t=Zn;if(t){var n=t;if(!ig(e,t)){if(!(t=Fe(n))||!ig(e,t))return e.effectTag|=2,er=!1,void(Qn=e);hg(Qn,n)}Qn=e,Zn=Ge(t)}else e.effectTag|=2,er=!1,Qn=e}}function kg(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Qn=e}function lg(e){if(e!==Qn)return!1;if(!er)return kg(e),er=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ce(t,e.memoizedProps))for(t=Zn;t;)hg(e,t),t=Fe(t);return kg(e),Zn=Qn?Fe(e.stateNode):null,!0}function mg(){Zn=Qn=null,er=!1}var tr=it.ReactCurrentOwner;function P(e,t,n,r){t.child=null===e?Yn(t,null,n,r):Jn(t,e.child,n,r)}function og(e,t,n,r,o){n=n.render;var a=t.ref;return Cf(t),r=n(r,a),t.effectTag|=1,P(e,t,r,o),t.child}function pg(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Xe(i)||void 0!==i.defaultProps||null!==n.compare?((e=$e(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,qg(e,t,i,r,o,a))}return i=e.child,o=r?xg(e,n,r):null!==(n=rg(e,n,r))?n.sibling:null}return rg(e,n,r)}switch(n.expirationTime=0,n.tag){case 2:o=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps;var a=Le(n,An.current);if(Cf(n),a=o(e,a),n.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(n.tag=1,L(o)){var i=!0;Qe(n)}else i=!1;n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var s=o.getDerivedStateFromProps;"function"==typeof s&&Pf(n,o,s,e),a.updater=Kn,n.stateNode=a,a._reactInternalFiber=n,Yf(n,o,e,r),n=vg(null,n,o,!0,i,r)}else n.tag=0,P(null,n,a,r),n=n.child;return n;case 16:switch(a=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),i=n.pendingProps,e=Mf(a),n.type=e,a=n.tag=Ye(e),i=O(e,i),s=void 0,a){case 0:s=sg(null,n,e,i,r);break;case 1:s=ug(null,n,e,i,r);break;case 11:s=og(null,n,e,i,r);break;case 14:s=pg(null,n,e,O(e.type,i),o,r);break;default:t("283",e)}return s;case 0:return o=n.type,a=n.pendingProps,sg(e,n,o,a=n.elementType===o?a:O(o,a),r);case 1:return o=n.type,a=n.pendingProps,ug(e,n,o,a=n.elementType===o?a:O(o,a),r);case 3:return wg(n),null===(o=n.updateQueue)&&t("282"),a=null!==(a=n.memoizedState)?a.element:null,sf(n,o,n.pendingProps,null,r),(o=n.memoizedState.element)===a?(mg(),n=rg(e,n,r)):(a=n.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(Zn=Ge(n.stateNode.containerInfo),Qn=n,a=er=!0),a?(n.effectTag|=2,n.child=Yn(n,null,o,r)):(P(e,n,o,r),mg()),n=n.child),n;case 5:return Kf(n),null===e&&jg(n),o=n.type,a=n.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,Ce(o,a)?s=null:null!==i&&Ce(o,i)&&(n.effectTag|=16),tg(e,n),1!==r&&1&n.mode&&a.hidden?(n.expirationTime=1,n=null):(P(e,n,s,r),n=n.child),n;case 6:return null===e&&jg(n),null;case 13:return xg(e,n,r);case 4:return If(n,n.stateNode.containerInfo),o=n.pendingProps,null===e?n.child=Jn(n,null,o,r):P(e,n,o,r),n.child;case 11:return o=n.type,a=n.pendingProps,og(e,n,o,a=n.elementType===o?a:O(o,a),r);case 7:return P(e,n,n.pendingProps,r),n.child;case 8:case 12:return P(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(o=n.type._context,a=n.pendingProps,s=n.memoizedProps,Af(n,i=a.value),null!==s){var l=s.value;if(0===(i=l===i&&(0!==l||1/l==1/i)||l!=l&&i!=i?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(s.children===a.children&&!Rn.current){n=rg(e,n,r);break e}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===o&&0!=(l.observedBits&i)){if(1===s.tag){var c=mf(r);c.tag=2,of(s,c)}s.expirationTime<\/script>",p=a.removeChild(a.firstChild)):"string"==typeof h.is?p=p.createElement(a,{is:h.is}):(p=p.createElement(a),"select"===a&&h.multiple&&(p.multiple=!0)):p=p.createElementNS(u,a),(a=p)[X]=d,a[K]=l,nr(a,n,!1,!1),h=a;var f=c,m=we(p=s,d=l);switch(p){case"iframe":case"object":G("load",h),c=d;break;case"video":case"audio":for(c=0;cl&&(l=a),(c=s.childExpirationTime)>l&&(l=c),s=s.sibling;n.childExpirationTime=l}if(null!==pr)return pr;null!==r&&0==(1024&r.effectTag)&&(null===r.firstEffect&&(r.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=e.firstEffect),r.lastEffect=e.lastEffect),1=f?d=0:(-1===d||f component higher in the tree to provide a loading indicator or placeholder to display."+nc(c))}mr=!0,u=vf(u,c),s=l;do{switch(s.tag){case 3:c=u,s.effectTag|=2048,s.expirationTime=i,pf(s,i=Pg(s,c,i));break e;case 1:if(c=u,l=s.type,p=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==p&&"function"==typeof p.componentDidCatch&&(null===wr||!wr.has(p)))){s.effectTag|=2048,s.expirationTime=i,pf(s,i=Rg(s,c,i));break e}}s=s.return}while(null!==s)}pr=eh(a);continue}o=!0,Qg(n)}}break}if(ur=!1,Dn=Hn=Nn=sr.currentDispatcher=null,o)dr=null,e.finishedWork=null;else if(null!==pr)e.finishedWork=null;else{if(null===(o=e.current.alternate)&&t("281"),dr=null,mr){if(a=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==a&&an?0:n)):(e.pendingCommitExpirationTime=r,e.finishedWork=o)}}function Jg(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===wr||!wr.has(r)))return of(n,e=Rg(n,e=vf(t,e),1073741823)),void Tf(n,1073741823);break;case 3:return of(n,e=Pg(n,e=vf(t,e),1073741823)),void Tf(n,1073741823)}n=n.return}3===e.tag&&(of(e,n=Pg(e,n=vf(t,e),1073741823)),Tf(e,1073741823))}function Rf(e,t){return 0!==cr?e=cr:ur?e=gr?1073741823:hr:1&t.mode?(e=Rr?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==dr&&e===hr&&--e):e=1073741823,Rr&&(0===Ir||e=a){a=o=r,e.didError=!1;var i=e.latestPingedTime;(0===i||i>a)&&(e.latestPingedTime=a),ff(a,e)}else ef(e,o=Rf(o=Qf(),t));0!=(1&t.mode)&&e===dr&&hr===r&&(dr=null),mh(t,o),0==(1&t.mode)&&(mh(n,o),1===n.tag&&null!==n.stateNode&&((t=mf(o)).tag=2,of(n,t))),0!==(n=e.expirationTime)&&nh(e,n)}function mh(e,t){e.expirationTimehr&&dh(),ef(e,n),ur&&!gr&&dr===e||nh(e,e.expirationTime),Nr>Vr&&(Nr=0,t("185")))}function qh(e,t,n,r,o){var a=cr;cr=1073741823;try{return e(t,n,r,o)}finally{cr=a}}var xr=null,kr=null,Er=0,_r=void 0,Or=!1,Cr=null,Sr=0,Ir=0,jr=!1,Pr=null,Tr=!1,Ar=!1,Rr=!1,Mr=null,Lr=s.unstable_now(),Br=1073741822-(Lr/10|0),zr=Br,Vr=50,Nr=0,Hr=null;function Dh(){Br=1073741822-((s.unstable_now()-Lr)/10|0)}function Eh(e,t){if(0!==Er){if(te.expirationTime&&(e.expirationTime=t),Or||(Tr?Ar&&(Cr=e,Sr=1073741823,Jh(e,1073741823,!1)):1073741823===t?Kh(1073741823,!1):Eh(e,t))}function Ih(){var e=0,n=null;if(null!==kr)for(var r=kr,o=xr;null!==o;){var a=o.expirationTime;if(0===a){if((null===r||null===kr)&&t("244"),o===o.nextScheduledRoot){xr=kr=o.nextScheduledRoot=null;break}if(o===xr)xr=a=o.nextScheduledRoot,kr.nextScheduledRoot=a,o.nextScheduledRoot=null;else{if(o===kr){(kr=r).nextScheduledRoot=xr,o.nextScheduledRoot=null;break}r.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=r.nextScheduledRoot}else{if(a>e&&(e=a,n=o),o===kr)break;if(1073741823===e)break;r=o,o=o.nextScheduledRoot}}Cr=n,Sr=e}var Dr=!1;function hh(){return!!Dr||!!s.unstable_shouldYield()&&(Dr=!0)}function Fh(){try{if(!hh()&&null!==xr){Dh();var e=xr;do{var t=e.expirationTime;0!==t&&Br<=t&&(e.nextExpirationTimeToWorkOn=Br),e=e.nextScheduledRoot}while(e!==xr)}Kh(0,!0)}finally{Dr=!1}}function Kh(e,t){if(Ih(),t)for(Dh(),zr=Br;null!==Cr&&0!==Sr&&e<=Sr&&!(Dr&&Br>Sr);)Jh(Cr,Sr,Br>Sr),Ih(),Dh(),zr=Br;else for(;null!==Cr&&0!==Sr&&e<=Sr;)Jh(Cr,Sr,!1),Ih();if(t&&(Er=0,_r=null),0!==Sr&&Eh(Cr,Sr),Nr=0,Hr=null,null!==Mr)for(e=Mr,Mr=null,t=0;t=r&&(null===Mr?Mr=[o]:Mr.push(o),o._defer))return e.finishedWork=n,void(e.expirationTime=0);e.finishedWork=null,e===Hr?Nr++:(Hr=e,Nr=0),gr=ur=!0,e.current===n&&t("177"),0===(r=e.pendingCommitExpirationTime)&&t("261"),e.pendingCommitExpirationTime=0,o=n.expirationTime;var a=n.childExpirationTime;if(o=a>o?a:o,e.didError=!1,0===o?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(a=e.latestPendingTime)&&(a>o?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>o&&(e.earliestPendingTime=e.latestPendingTime)),0===(a=e.earliestSuspendedTime)?ef(e,o):oa&&ef(e,o)),ff(0,e),sr.current=null,1b&&(w=b,b=y,y=w),w=Rd(E,y),x=Rd(E,b),w&&x&&(1!==C.rangeCount||C.anchorNode!==w.node||C.anchorOffset!==w.offset||C.focusNode!==x.node||C.focusOffset!==x.offset)&&((_=_.createRange()).setStart(w.node,w.offset),C.removeAllRanges(),y>b?(C.addRange(_),C.extend(x.node,x.offset)):(_.setEnd(x.node,x.offset),C.addRange(_))))),_=[];for(C=E;C=C.parentNode;)1===C.nodeType&&_.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<_.length;E++)(C=_[E]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(Cn=null,sn=!!On,On=null,e.current=n,vr=o;null!==vr;){o=!1,E=void 0;try{for(_=r;null!==vr;){var S=vr.effectTag;if(36&S){var I=vr.alternate;switch(y=_,(C=vr).tag){case 0:case 11:case 15:break;case 1:var j=C.stateNode;if(4&C.effectTag)if(null===I)j.componentDidMount();else{var P=C.elementType===C.type?I.memoizedProps:O(C.type,I.memoizedProps);j.componentDidUpdate(P,I.memoizedState,j.__reactInternalSnapshotBeforeUpdate)}var T=C.updateQueue;null!==T&&tf(0,T,j);break;case 3:var A=C.updateQueue;if(null!==A){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}tf(0,A,b)}break;case 5:var R=C.stateNode;null===I&&4&C.effectTag&&Be(C.type,C.memoizedProps)&&R.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:t("163")}}if(128&S){var M=vr.ref;if(null!==M){var L=vr.stateNode;switch(vr.tag){case 5:var B=L;break;default:B=L}"function"==typeof M?M(B):M.current=B}}vr=vr.nextEffect}}catch(e){o=!0,E=e}o&&(null===vr&&t("178"),Jg(vr,E),null!==vr&&(vr=vr.nextEffect))}ur=gr=!1,"function"==typeof Ln&&Ln(n.stateNode),S=n.expirationTime,0===(n=(n=n.childExpirationTime)>S?n:S)&&(wr=null),e.expirationTime=n,e.finishedWork=null}function Qg(e){null===Cr&&t("246"),Cr.expirationTime=0,jr||(jr=!0,Pr=e)}function Nh(e,t){var n=Tr;Tr=!0;try{return e(t)}finally{(Tr=n)||Or||Kh(1073741823,!1)}}function Oh(e,t){if(Tr&&!Ar){Ar=!0;try{return e(t)}finally{Ar=!1}}return e(t)}function Ph(e,t,n){if(Rr)return e(t,n);Tr||Or||0===Ir||(Kh(Ir,!1),Ir=0);var r=Rr,o=Tr;Tr=Rr=!0;try{return e(t,n)}finally{Rr=r,(Tr=o)||Or||Kh(1073741823,!1)}}function Qh(e,n,r,o,a){var i=n.current;e:if(r){t:{2===kd(r=r._reactInternalFiber)&&1===r.tag||t("170");var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(L(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);t("171"),s=void 0}if(1===r.tag){var l=r.type;if(L(l)){r=Pe(r,l,s);break e}}r=s}else r=Tn;return null===n.context?n.context=r:n.pendingContext=r,n=a,(a=mf(o)).payload={element:e},null!==(n=void 0===n?null:n)&&(a.callback=n),Sf(),of(i,a),Tf(i,o),o}function Rh(e,t,n,r){var o=t.current;return Qh(e,t,n,o=Rf(Qf(),o),r)}function Sh(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Uh(e,t,n){var r=3=lr&&(t=lr-1),this._expirationTime=lr=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Wh(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Xh(e,t,n){e={current:t=M(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Yh(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zh(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xh(e,!1,t)}function $h(e,n,r,o,a){Yh(r)||t("200");var i=r._reactRootContainer;if(i){if("function"==typeof a){var s=a;a=function(){var e=Sh(i._internalRoot);s.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,n,a):i.render(n,a)}else{if(i=r._reactRootContainer=Zh(r,o),"function"==typeof a){var l=a;a=function(){var e=Sh(i._internalRoot);l.call(e)}}Oh(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,n,a):i.render(n,a)})}return Sh(i._internalRoot)}function ai(e,n){var r=2=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Kb=Nh,Lb=Ph,Mb=function(){Or||0===Ir||(Kh(Ir,!1),Ir=0)};var Fr={createPortal:ai,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternalFiber;return void 0===n&&("function"==typeof e.render?t("188"):t("268",Object.keys(e))),e=null===(e=nd(n))?null:e.stateNode},hydrate:function(e,t,n){return $h(null,e,t,!0,n)},render:function(e,t,n){return $h(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,n,r,o){return(null==e||void 0===e._reactInternalFiber)&&t("38"),$h(e,n,r,!1,o)},unmountComponentAtNode:function(e){return Yh(e)||t("40"),!!e._reactRootContainer&&(Oh(function(){$h(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return ai.apply(void 0,arguments)},unstable_batchedUpdates:Nh,unstable_interactiveUpdates:Ph,flushSync:function(e,n){Or&&t("187");var r=Tr;Tr=!0;try{return qh(e,n)}finally{Tr=r,Kh(1073741823,!1)}},unstable_flushControlled:function(e){var t=Tr;Tr=!0;try{qh(e)}finally{(Tr=t)||Or||Kh(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Ja,Ka,La,W.injectEventPluginsByName,j,Ra,function(e){za(e,Qa)},Ib,Jb,Jd,Ea]},unstable_createRoot:function(e,n){return Yh(e)||t("299","unstable_createRoot"),new Xh(e,!0,null!=n&&!0===n.hydrate)}};!function(e){var t=e.findFiberByHostInstance;Ve(i({},e,{findHostInstanceByFiber:function(e){return null===(e=nd(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:Ia,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var Wr={default:Fr},qr=Wr&&Fr||Wr;n.exports=qr.default||qr},function(e,t,n){"use strict"; + */var a=o(0),i=o(113),s=o(204);function ca(e,t,n,r,o,a,i,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],c=0;(e=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}function t(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rthis.eventPool.length&&this.eventPool.push(e)}function jb(e){e.eventPool=[],e.getPooled=kb,e.release=lb}i(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=hb)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=hb)},persist:function(){this.isPersistent=hb},isPersistent:ib,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ib,this._dispatchInstances=this._dispatchListeners=null}}),A.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},A.extend=function(e){function b(){}function c(){return t.apply(this,arguments)}var t=this;b.prototype=t.prototype;var n=new b;return i(n,c.prototype),c.prototype=n,c.prototype.constructor=c,c.Interface=i({},t.Interface,e),c.extend=t.extend,jb(c),c},jb(A);var _e=A.extend({data:null}),Se=A.extend({data:null}),Ie=[9,13,27,32],Te=$&&"CompositionEvent"in window,Ae=null;$&&"documentMode"in document&&(Ae=document.documentMode);var ze=$&&"TextEvent"in window&&!Ae,He=$&&(!Te||Ae&&8=Ae),De=String.fromCharCode(32),qe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ke=!1;function wb(e,t){switch(e){case"keyup":return-1!==Ie.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xb(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Je=!1;function zb(e,t){switch(e){case"compositionend":return xb(t);case"keypress":return 32!==t.which?null:(Ke=!0,De);case"textInput":return(e=t.data)===De&&Ke?null:e;default:return null}}function Ab(e,t){if(Je)return"compositionend"===e||!Te&&wb(e,t)?(e=gb(),Ee=ke=be=null,Je=!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&&1t}return!1}function E(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ct[e]=new E(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ct[t]=new E(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new E(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new E(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ct[e]=new E(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new E(e,3,!0,e,null)}),["capture","download"].forEach(function(e){Ct[e]=new E(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){Ct[e]=new E(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){Ct[e]=new E(e,5,!1,e.toLowerCase(),null)});var St=/[\-:]([a-z])/g;function xc(e){return e[1].toUpperCase()}function yc(e,t,n,r){var o=Ct.hasOwnProperty(t)?Ct[t]:null;(null!==o?0===o.type:!r&&(2an.length&&an.push(e)}}}var ln={},cn=0,un="_reactListenersID"+(""+Math.random()).slice(2);function Od(e){return Object.prototype.hasOwnProperty.call(e,un)||(e[un]=cn++,ln[e[un]]={}),ln[e[un]]}function Pd(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 Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n,r=Qd(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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=Qd(r)}}function Sd(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Sd(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Td(){for(var e=window,t=Pd();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Pd(e.document)}return t}function Ud(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 pn=$&&"documentMode"in document&&11>=document.documentMode,dn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},hn=null,fn=null,mn=null,vn=!1;function ae(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return vn||null==hn||hn!==Pd(n)?null:("selectionStart"in(n=hn)&&Ud(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},mn&&jd(mn,n)?null:(mn=n,(e=A.getPooled(dn.select,fn,e,t)).type="select",e.target=hn,Ra(e),e))}var gn={eventTypes:dn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=Od(a),o=R.onSelect;for(var i=0;i=n.length||t("93"),n=n[0]),r=n),null==r&&(r="")),e._wrapperState={initialValue:zc(r)}}function ie(e,t){var n=zc(t.value),r=zc(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 je(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}W.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),V=La,N=Ja,D=Ka,W.injectEventPluginsByName({SimpleEventPlugin:rn,EnterLeaveEventPlugin:Ft,ChangeEventPlugin:At,SelectEventPlugin:gn,BeforeInputEventPlugin:et});var yn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function le(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 me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var bn,wn=void 0,xn=(bn=function(e,t){if(e.namespaceURI!==yn.svg||"innerHTML"in e)e.innerHTML=t;else{for((wn=wn||document.createElement("div")).innerHTML=""+t+"",t=wn.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 bn(e,t)})}:bn);function pe(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 kn={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},En=["Webkit","ms","Moz","O"];function se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kn.hasOwnProperty(e)&&kn[e]?(""+t).trim():t+"px"}function te(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=se(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(kn).forEach(function(e){En.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kn[t]=kn[e]})});var _n=i({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 ve(e,n){n&&(_n[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML)&&t("137",e,""),null!=n.dangerouslySetInnerHTML&&(null!=n.children&&t("60"),"object"==typeof n.dangerouslySetInnerHTML&&"__html"in n.dangerouslySetInnerHTML||t("61")),null!=n.style&&"object"!=typeof n.style&&t("62",""))}function we(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 xe(e,t){var n=Od(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var r=0;rPn||(e.current=jn[Pn],jn[Pn]=null,Pn--)}function I(e,t){jn[++Pn]=e.current,e.current=t}var Tn={},An={current:Tn},Rn={current:!1},Mn=Tn;function Le(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function L(e){return null!=(e=e.childContextTypes)}function Me(e){H(Rn),H(An)}function Ne(e){H(Rn),H(An)}function Oe(e,n,r){An.current!==Tn&&t("168"),I(An,n),I(Rn,r)}function Pe(e,n,r){var o=e.stateNode;if(e=n.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())a in e||t("108",mc(n)||"Unknown",a);return i({},r,o)}function Qe(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Tn,Mn=An.current,I(An,t),I(Rn,Rn.current),!0}function Re(e,n,r){var o=e.stateNode;o||t("169"),r?(n=Pe(e,n,Mn),o.__reactInternalMemoizedMergedChildContext=n,H(Rn),H(An),I(An,n)):H(Rn),I(Rn,r)}var Ln=null,Bn=null;function Ue(e){return function(t){try{return e(t)}catch(e){}}}function Ve(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ln=Ue(function(e){return t.onCommitFiberRoot(n,e)}),Bn=Ue(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function We(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.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function M(e,t,n,r){return new We(e,t,n,r)}function Xe(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ye(e){if("function"==typeof e)return Xe(e)?1:0;if(null!=e){if((e=e.$$typeof)===gt)return 11;if(e===bt)return 14}return 2}function Ze(e,t){var n=e.alternate;return null===n?((n=M(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $e(e,n,r,o,a,i){var s=2;if(o=e,"function"==typeof e)Xe(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case pt:return af(r.children,a,i,n);case vt:return bf(r,3|a,i,n);case dt:return bf(r,2|a,i,n);case ht:return(e=M(12,r,n,4|a)).elementType=ht,e.type=ht,e.expirationTime=i,e;case yt:return(e=M(13,r,n,a)).elementType=yt,e.type=yt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ft:s=10;break e;case mt:s=9;break e;case gt:s=11;break e;case bt:s=14;break e;case wt:s=16,o=null;break e}t("130",null==e?e:typeof e,"")}return(n=M(s,r,n,a)).elementType=e,n.type=o,n.expirationTime=i,n}function af(e,t,n,r){return(e=M(7,e,r,t)).expirationTime=n,e}function bf(e,t,n,r){return e=M(8,e,r,t),t=0==(1&t)?dt:vt,e.elementType=t,e.type=t,e.expirationTime=n,e}function cf(e,t,n){return(e=M(6,e,null,t)).expirationTime=n,e}function df(e,t,n){return(t=M(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ef(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:nt&&(e.latestPendingTime=t),ff(t,e)}function gf(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:nt&&(e.latestSuspendedTime=t),ff(t,e)}function hf(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ff(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,a=t.latestPingedTime;0===(o=0!==o?o:a)&&(0===e||re&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}var zn=!1;function kf(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function lf(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function mf(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function nf(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function of(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=kf(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=kf(e.memoizedState),o=n.updateQueue=kf(n.memoizedState)):r=e.updateQueue=lf(o):null===o&&(o=n.updateQueue=lf(r));null===o||r===o?nf(r,t):null===r.lastUpdate||null===o.lastUpdate?(nf(r,t),nf(o,t)):(nf(r,t),o.lastUpdate=t)}function pf(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=kf(e.memoizedState):qf(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function qf(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=lf(t)),t}function rf(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:zn=!0}return r}function sf(e,t,n,r,o){zn=!1;for(var a=(t=qf(e,t)).baseState,i=null,s=0,l=t.firstUpdate,c=a;null!==l;){var u=l.expirationTime;ul?(u=s,s=null):u=s.sibling;var p=x(e,s,r[l],o);if(null===p){null===s&&(s=u);break}n&&s&&null===p.alternate&&b(e,s),t=f(p,t,l),null===i?a=p:i.sibling=p,i=p,s=u}if(l===r.length)return c(e,s),a;if(null===s){for(;lu?(p=l,l=null):p=l.sibling;var m=x(e,l,h.value,a);if(null===m){l||(l=p);break}n&&l&&null===m.alternate&&b(e,l),r=f(m,r,u),null===s?i=m:s.sibling=m,s=m,l=p}if(h.done)return c(e,l),i;if(null===l){for(;!h.done;u++,h=o.next())null!==(h=q(e,h.value,a))&&(r=f(h,r,u),null===s?i=h:s.sibling=h,s=h);return i}for(l=d(e,l);!h.done;u++,h=o.next())null!==(h=z(l,e,u,h.value,a))&&(n&&null!==h.alternate&&l.delete(null===h.key?u:h.key),r=f(h,r,u),null===s?i=h:s.sibling=h,s=h);return n&&l.forEach(function(t){return b(e,t)}),i}return function(n,r,o,a){var i="object"==typeof o&&null!==o&&o.type===pt&&null===o.key;i&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case ct:e:{for(s=o.key,i=r;null!==i;){if(i.key===s){if(7===i.tag?o.type===pt:i.elementType===o.type){c(n,i.sibling),(r=e(i,o.type===pt?o.props.children:o.props)).ref=$f(n,i,o),r.return=n,n=r;break e}c(n,i);break}b(n,i),i=i.sibling}o.type===pt?((r=af(o.props.children,n.mode,a,o.key)).return=n,n=r):((a=$e(o.type,o.key,o.props,null,n.mode,a)).ref=$f(n,r,o),a.return=n,n=a)}return g(n);case ut:e:{for(i=o.key;null!==r;){if(r.key===i){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){c(n,r.sibling),(r=e(r,o.children||[])).return=n,n=r;break e}c(n,r);break}b(n,r),r=r.sibling}(r=df(o,n.mode,a)).return=n,n=r}return g(n)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(c(n,r.sibling),(r=e(r,o)).return=n,n=r):(c(n,r),(r=cf(o,n.mode,a)).return=n,n=r),g(n);if($n(o))return B(n,r,o,a);if(lc(o))return Q(n,r,o,a);if(s&&ag(n,o),void 0===o&&!i)switch(n.tag){case 1:case 0:t("152",(a=n.type).displayName||a.name||"Component")}return c(n,r)}}var Jn=bg(!0),Yn=bg(!1),Qn=null,Zn=null,er=!1;function hg(e,t){var n=M(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ig(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);default:return!1}}function jg(e){if(er){var t=Zn;if(t){var n=t;if(!ig(e,t)){if(!(t=Fe(n))||!ig(e,t))return e.effectTag|=2,er=!1,void(Qn=e);hg(Qn,n)}Qn=e,Zn=Ge(t)}else e.effectTag|=2,er=!1,Qn=e}}function kg(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Qn=e}function lg(e){if(e!==Qn)return!1;if(!er)return kg(e),er=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ce(t,e.memoizedProps))for(t=Zn;t;)hg(e,t),t=Fe(t);return kg(e),Zn=Qn?Fe(e.stateNode):null,!0}function mg(){Zn=Qn=null,er=!1}var tr=it.ReactCurrentOwner;function P(e,t,n,r){t.child=null===e?Yn(t,null,n,r):Jn(t,e.child,n,r)}function og(e,t,n,r,o){n=n.render;var a=t.ref;return Cf(t),r=n(r,a),t.effectTag|=1,P(e,t,r,o),t.child}function pg(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Xe(i)||void 0!==i.defaultProps||null!==n.compare?((e=$e(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,qg(e,t,i,r,o,a))}return i=e.child,o=r?xg(e,n,r):null!==(n=rg(e,n,r))?n.sibling:null}return rg(e,n,r)}switch(n.expirationTime=0,n.tag){case 2:o=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps;var a=Le(n,An.current);if(Cf(n),a=o(e,a),n.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(n.tag=1,L(o)){var i=!0;Qe(n)}else i=!1;n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var s=o.getDerivedStateFromProps;"function"==typeof s&&Pf(n,o,s,e),a.updater=Kn,n.stateNode=a,a._reactInternalFiber=n,Yf(n,o,e,r),n=vg(null,n,o,!0,i,r)}else n.tag=0,P(null,n,a,r),n=n.child;return n;case 16:switch(a=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),i=n.pendingProps,e=Mf(a),n.type=e,a=n.tag=Ye(e),i=O(e,i),s=void 0,a){case 0:s=sg(null,n,e,i,r);break;case 1:s=ug(null,n,e,i,r);break;case 11:s=og(null,n,e,i,r);break;case 14:s=pg(null,n,e,O(e.type,i),o,r);break;default:t("283",e)}return s;case 0:return o=n.type,a=n.pendingProps,sg(e,n,o,a=n.elementType===o?a:O(o,a),r);case 1:return o=n.type,a=n.pendingProps,ug(e,n,o,a=n.elementType===o?a:O(o,a),r);case 3:return wg(n),null===(o=n.updateQueue)&&t("282"),a=null!==(a=n.memoizedState)?a.element:null,sf(n,o,n.pendingProps,null,r),(o=n.memoizedState.element)===a?(mg(),n=rg(e,n,r)):(a=n.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(Zn=Ge(n.stateNode.containerInfo),Qn=n,a=er=!0),a?(n.effectTag|=2,n.child=Yn(n,null,o,r)):(P(e,n,o,r),mg()),n=n.child),n;case 5:return Kf(n),null===e&&jg(n),o=n.type,a=n.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,Ce(o,a)?s=null:null!==i&&Ce(o,i)&&(n.effectTag|=16),tg(e,n),1!==r&&1&n.mode&&a.hidden?(n.expirationTime=1,n=null):(P(e,n,s,r),n=n.child),n;case 6:return null===e&&jg(n),null;case 13:return xg(e,n,r);case 4:return If(n,n.stateNode.containerInfo),o=n.pendingProps,null===e?n.child=Jn(n,null,o,r):P(e,n,o,r),n.child;case 11:return o=n.type,a=n.pendingProps,og(e,n,o,a=n.elementType===o?a:O(o,a),r);case 7:return P(e,n,n.pendingProps,r),n.child;case 8:case 12:return P(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(o=n.type._context,a=n.pendingProps,s=n.memoizedProps,Af(n,i=a.value),null!==s){var l=s.value;if(0===(i=l===i&&(0!==l||1/l==1/i)||l!=l&&i!=i?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(s.children===a.children&&!Rn.current){n=rg(e,n,r);break e}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===o&&0!=(l.observedBits&i)){if(1===s.tag){var c=mf(r);c.tag=2,of(s,c)}s.expirationTime<\/script>",p=a.removeChild(a.firstChild)):"string"==typeof h.is?p=p.createElement(a,{is:h.is}):(p=p.createElement(a),"select"===a&&h.multiple&&(p.multiple=!0)):p=p.createElementNS(u,a),(a=p)[X]=d,a[K]=l,nr(a,n,!1,!1),h=a;var f=c,m=we(p=s,d=l);switch(p){case"iframe":case"object":G("load",h),c=d;break;case"video":case"audio":for(c=0;cl&&(l=a),(c=s.childExpirationTime)>l&&(l=c),s=s.sibling;n.childExpirationTime=l}if(null!==pr)return pr;null!==r&&0==(1024&r.effectTag)&&(null===r.firstEffect&&(r.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=e.firstEffect),r.lastEffect=e.lastEffect),1=f?d=0:(-1===d||f component higher in the tree to provide a loading indicator or placeholder to display."+nc(c))}mr=!0,u=vf(u,c),s=l;do{switch(s.tag){case 3:c=u,s.effectTag|=2048,s.expirationTime=i,pf(s,i=Pg(s,c,i));break e;case 1:if(c=u,l=s.type,p=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==p&&"function"==typeof p.componentDidCatch&&(null===wr||!wr.has(p)))){s.effectTag|=2048,s.expirationTime=i,pf(s,i=Rg(s,c,i));break e}}s=s.return}while(null!==s)}pr=eh(a);continue}o=!0,Qg(n)}}break}if(ur=!1,Dn=Hn=Nn=sr.currentDispatcher=null,o)dr=null,e.finishedWork=null;else if(null!==pr)e.finishedWork=null;else{if(null===(o=e.current.alternate)&&t("281"),dr=null,mr){if(a=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==a&&an?0:n)):(e.pendingCommitExpirationTime=r,e.finishedWork=o)}}function Jg(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===wr||!wr.has(r)))return of(n,e=Rg(n,e=vf(t,e),1073741823)),void Tf(n,1073741823);break;case 3:return of(n,e=Pg(n,e=vf(t,e),1073741823)),void Tf(n,1073741823)}n=n.return}3===e.tag&&(of(e,n=Pg(e,n=vf(t,e),1073741823)),Tf(e,1073741823))}function Rf(e,t){return 0!==cr?e=cr:ur?e=gr?1073741823:hr:1&t.mode?(e=Rr?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==dr&&e===hr&&--e):e=1073741823,Rr&&(0===Ir||e=a){a=o=r,e.didError=!1;var i=e.latestPingedTime;(0===i||i>a)&&(e.latestPingedTime=a),ff(a,e)}else ef(e,o=Rf(o=Qf(),t));0!=(1&t.mode)&&e===dr&&hr===r&&(dr=null),mh(t,o),0==(1&t.mode)&&(mh(n,o),1===n.tag&&null!==n.stateNode&&((t=mf(o)).tag=2,of(n,t))),0!==(n=e.expirationTime)&&nh(e,n)}function mh(e,t){e.expirationTimehr&&dh(),ef(e,n),ur&&!gr&&dr===e||nh(e,e.expirationTime),Nr>Vr&&(Nr=0,t("185")))}function qh(e,t,n,r,o){var a=cr;cr=1073741823;try{return e(t,n,r,o)}finally{cr=a}}var xr=null,kr=null,Er=0,_r=void 0,Or=!1,Cr=null,Sr=0,Ir=0,jr=!1,Pr=null,Tr=!1,Ar=!1,Rr=!1,Mr=null,Lr=s.unstable_now(),Br=1073741822-(Lr/10|0),zr=Br,Vr=50,Nr=0,Hr=null;function Dh(){Br=1073741822-((s.unstable_now()-Lr)/10|0)}function Eh(e,t){if(0!==Er){if(te.expirationTime&&(e.expirationTime=t),Or||(Tr?Ar&&(Cr=e,Sr=1073741823,Jh(e,1073741823,!1)):1073741823===t?Kh(1073741823,!1):Eh(e,t))}function Ih(){var e=0,n=null;if(null!==kr)for(var r=kr,o=xr;null!==o;){var a=o.expirationTime;if(0===a){if((null===r||null===kr)&&t("244"),o===o.nextScheduledRoot){xr=kr=o.nextScheduledRoot=null;break}if(o===xr)xr=a=o.nextScheduledRoot,kr.nextScheduledRoot=a,o.nextScheduledRoot=null;else{if(o===kr){(kr=r).nextScheduledRoot=xr,o.nextScheduledRoot=null;break}r.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=r.nextScheduledRoot}else{if(a>e&&(e=a,n=o),o===kr)break;if(1073741823===e)break;r=o,o=o.nextScheduledRoot}}Cr=n,Sr=e}var Dr=!1;function hh(){return!!Dr||!!s.unstable_shouldYield()&&(Dr=!0)}function Fh(){try{if(!hh()&&null!==xr){Dh();var e=xr;do{var t=e.expirationTime;0!==t&&Br<=t&&(e.nextExpirationTimeToWorkOn=Br),e=e.nextScheduledRoot}while(e!==xr)}Kh(0,!0)}finally{Dr=!1}}function Kh(e,t){if(Ih(),t)for(Dh(),zr=Br;null!==Cr&&0!==Sr&&e<=Sr&&!(Dr&&Br>Sr);)Jh(Cr,Sr,Br>Sr),Ih(),Dh(),zr=Br;else for(;null!==Cr&&0!==Sr&&e<=Sr;)Jh(Cr,Sr,!1),Ih();if(t&&(Er=0,_r=null),0!==Sr&&Eh(Cr,Sr),Nr=0,Hr=null,null!==Mr)for(e=Mr,Mr=null,t=0;t=r&&(null===Mr?Mr=[o]:Mr.push(o),o._defer))return e.finishedWork=n,void(e.expirationTime=0);e.finishedWork=null,e===Hr?Nr++:(Hr=e,Nr=0),gr=ur=!0,e.current===n&&t("177"),0===(r=e.pendingCommitExpirationTime)&&t("261"),e.pendingCommitExpirationTime=0,o=n.expirationTime;var a=n.childExpirationTime;if(o=a>o?a:o,e.didError=!1,0===o?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(a=e.latestPendingTime)&&(a>o?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>o&&(e.earliestPendingTime=e.latestPendingTime)),0===(a=e.earliestSuspendedTime)?ef(e,o):oa&&ef(e,o)),ff(0,e),sr.current=null,1b&&(w=b,b=y,y=w),w=Rd(E,y),x=Rd(E,b),w&&x&&(1!==C.rangeCount||C.anchorNode!==w.node||C.anchorOffset!==w.offset||C.focusNode!==x.node||C.focusOffset!==x.offset)&&((_=_.createRange()).setStart(w.node,w.offset),C.removeAllRanges(),y>b?(C.addRange(_),C.extend(x.node,x.offset)):(_.setEnd(x.node,x.offset),C.addRange(_))))),_=[];for(C=E;C=C.parentNode;)1===C.nodeType&&_.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<_.length;E++)(C=_[E]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(Cn=null,sn=!!On,On=null,e.current=n,vr=o;null!==vr;){o=!1,E=void 0;try{for(_=r;null!==vr;){var S=vr.effectTag;if(36&S){var I=vr.alternate;switch(y=_,(C=vr).tag){case 0:case 11:case 15:break;case 1:var j=C.stateNode;if(4&C.effectTag)if(null===I)j.componentDidMount();else{var P=C.elementType===C.type?I.memoizedProps:O(C.type,I.memoizedProps);j.componentDidUpdate(P,I.memoizedState,j.__reactInternalSnapshotBeforeUpdate)}var T=C.updateQueue;null!==T&&tf(0,T,j);break;case 3:var A=C.updateQueue;if(null!==A){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}tf(0,A,b)}break;case 5:var R=C.stateNode;null===I&&4&C.effectTag&&Be(C.type,C.memoizedProps)&&R.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:t("163")}}if(128&S){var M=vr.ref;if(null!==M){var L=vr.stateNode;switch(vr.tag){case 5:var B=L;break;default:B=L}"function"==typeof M?M(B):M.current=B}}vr=vr.nextEffect}}catch(e){o=!0,E=e}o&&(null===vr&&t("178"),Jg(vr,E),null!==vr&&(vr=vr.nextEffect))}ur=gr=!1,"function"==typeof Ln&&Ln(n.stateNode),S=n.expirationTime,0===(n=(n=n.childExpirationTime)>S?n:S)&&(wr=null),e.expirationTime=n,e.finishedWork=null}function Qg(e){null===Cr&&t("246"),Cr.expirationTime=0,jr||(jr=!0,Pr=e)}function Nh(e,t){var n=Tr;Tr=!0;try{return e(t)}finally{(Tr=n)||Or||Kh(1073741823,!1)}}function Oh(e,t){if(Tr&&!Ar){Ar=!0;try{return e(t)}finally{Ar=!1}}return e(t)}function Ph(e,t,n){if(Rr)return e(t,n);Tr||Or||0===Ir||(Kh(Ir,!1),Ir=0);var r=Rr,o=Tr;Tr=Rr=!0;try{return e(t,n)}finally{Rr=r,(Tr=o)||Or||Kh(1073741823,!1)}}function Qh(e,n,r,o,a){var i=n.current;e:if(r){t:{2===kd(r=r._reactInternalFiber)&&1===r.tag||t("170");var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(L(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);t("171"),s=void 0}if(1===r.tag){var l=r.type;if(L(l)){r=Pe(r,l,s);break e}}r=s}else r=Tn;return null===n.context?n.context=r:n.pendingContext=r,n=a,(a=mf(o)).payload={element:e},null!==(n=void 0===n?null:n)&&(a.callback=n),Sf(),of(i,a),Tf(i,o),o}function Rh(e,t,n,r){var o=t.current;return Qh(e,t,n,o=Rf(Qf(),o),r)}function Sh(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Uh(e,t,n){var r=3=lr&&(t=lr-1),this._expirationTime=lr=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Wh(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Xh(e,t,n){e={current:t=M(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Yh(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zh(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xh(e,!1,t)}function $h(e,n,r,o,a){Yh(r)||t("200");var i=r._reactRootContainer;if(i){if("function"==typeof a){var s=a;a=function(){var e=Sh(i._internalRoot);s.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,n,a):i.render(n,a)}else{if(i=r._reactRootContainer=Zh(r,o),"function"==typeof a){var l=a;a=function(){var e=Sh(i._internalRoot);l.call(e)}}Oh(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,n,a):i.render(n,a)})}return Sh(i._internalRoot)}function ai(e,n){var r=2=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Kb=Nh,Lb=Ph,Mb=function(){Or||0===Ir||(Kh(Ir,!1),Ir=0)};var Fr={createPortal:ai,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternalFiber;return void 0===n&&("function"==typeof e.render?t("188"):t("268",Object.keys(e))),e=null===(e=nd(n))?null:e.stateNode},hydrate:function(e,t,n){return $h(null,e,t,!0,n)},render:function(e,t,n){return $h(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,n,r,o){return(null==e||void 0===e._reactInternalFiber)&&t("38"),$h(e,n,r,!1,o)},unmountComponentAtNode:function(e){return Yh(e)||t("40"),!!e._reactRootContainer&&(Oh(function(){$h(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return ai.apply(void 0,arguments)},unstable_batchedUpdates:Nh,unstable_interactiveUpdates:Ph,flushSync:function(e,n){Or&&t("187");var r=Tr;Tr=!0;try{return qh(e,n)}finally{Tr=r,Kh(1073741823,!1)}},unstable_flushControlled:function(e){var t=Tr;Tr=!0;try{qh(e)}finally{(Tr=t)||Or||Kh(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Ja,Ka,La,W.injectEventPluginsByName,j,Ra,function(e){za(e,Qa)},Ib,Jb,Jd,Ea]},unstable_createRoot:function(e,n){return Yh(e)||t("299","unstable_createRoot"),new Xh(e,!0,null!=n&&!0===n.hydrate)}};!function(e){var t=e.findFiberByHostInstance;Ve(i({},e,{findHostInstanceByFiber:function(e){return null===(e=nd(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:Ia,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var Wr={default:Fr},qr=Wr&&Fr||Wr;n.exports=qr.default||qr},function(e,t,n){"use strict"; /** @license React v16.6.1 * react.production.min.js * @@ -52,7 +52,7 @@ var r=n(266),o=n(267),a=n(268);function kMaxLength(){return Buffer.TYPED_ARRAY_S * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(112),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function aa(e,t,n,r,o,a,i,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],c=0;(e=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}function D(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rC.length&&C.push(e)}function T(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case i:s=!0}}if(s)return n(r,e,""===t?"."+U(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;lC.length&&C.push(e)}function T(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case i:s=!0}}if(s)return n(r,e,""===t?"."+U(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l=t){n=e;break}e=e.next}while(e!==o);null===n?n=o:n===o&&(o=s,p()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function v(){if(-1===s&&null!==o&&1===o.priorityLevel){c=!0;try{do{u()}while(null!==o&&1===o.priorityLevel)}finally{c=!1,null!==o?p():d=!1}}}function t(e){c=!0;var t=a;a=e;try{if(e)for(;null!==o;){var r=n.unstable_now();if(!(o.expirationTime<=r))break;do{u()}while(null!==o&&o.expirationTime<=r)}else if(null!==o)do{u()}while(null!==o&&!y())}finally{c=!1,a=t,null!==o?p():d=!1,v()}}var h,f,m,g,y,b=Date,w="function"==typeof setTimeout?setTimeout:void 0,x="function"==typeof clearTimeout?clearTimeout:void 0,k="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function E(e){h=k(function(t){x(f),e(t)}),f=w(function(){_(h),e(n.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var O=performance;n.unstable_now=function(){return O.now()}}else n.unstable_now=function(){return b.now()};if("undefined"!=typeof window&&window._schedMock){var C=window._schedMock;m=C[0],g=C[1],y=C[2]}else if("undefined"==typeof window||"function"!=typeof window.addEventListener){var S=null,I=-1,j=function(e,t){if(null!==S){var n=S;S=null;try{I=t,n(e)}finally{I=-1}}};m=function(e,t){-1!==I?setTimeout(m,0,e,t):(S=e,setTimeout(j,t,!0,t),setTimeout(j,1073741823,!1,1073741823))},g=function(){S=null},y=function(){return!1},n.unstable_now=function(){return-1===I?0:I}}else{"undefined"!=typeof console&&("function"!=typeof k&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var P=null,T=!1,A=-1,R=!1,M=!1,L=0,B=33,z=33;y=function(){return L<=n.unstable_now()};var V="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===V){T=!1,e=P;var t=A;P=null,A=-1;var r=n.unstable_now(),o=!1;if(0>=L-r){if(!(-1!==t&&t<=r))return R||(R=!0,E(N)),P=e,void(A=t);o=!0}if(null!==e){M=!0;try{e(o)}finally{M=!1}}}},!1);var N=function(e){if(null!==P){E(N);var t=e-L+z;tt&&(t=8),z=tt?window.postMessage(V,"*"):R||(R=!0,E(N))},g=function(){P=null,T=!1,A=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=s;i=e,s=n.unstable_now();try{return t()}finally{i=r,s=o,v()}},n.unstable_scheduleCallback=function(e,t){var r=-1!==s?s:n.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=r+t.timeout;else switch(i){case 1:t=r+-1;break;case 2:t=r+250;break;case 5:t=r+1073741823;break;case 4:t=r+1e4;break;default:t=r+5e3}if(e={callback:e,priorityLevel:i,expirationTime:t,next:null,previous:null},null===o)o=e.next=e.previous=e,p();else{r=null;var a=o;do{if(a.expirationTime>t){r=a;break}a=a.next}while(a!==o);null===r?r=o:r===o&&(o=e,p()),(t=r.previous).next=r.previous=e,e.next=r,e.previous=t}return e},n.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)o=null;else{e===o&&(o=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=i;return function(){var r=i,o=s;i=t,s=n.unstable_now();try{return e.apply(this,arguments)}finally{i=r,s=o,v()}}},n.unstable_getCurrentPriorityLevel=function(){return i},n.unstable_shouldYield=function(){return!a&&(null!==o&&o.expirationTime-1}},function(e,t,n){var r=n(41);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(40);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(40),o=n(66),a=n(68),i=200;e.exports=function stackSet(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=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(34),o=n(19),a=n(72),i=n(15);e.exports=function isIterateeCall(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(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){for(var t,n=getLens(e),r=n[0],i=n[1],s=new a(_byteLength(e,r,i)),l=0,c=i>0?r-4:r,u=0;u>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===i&&(t=o[e.charCodeAt(u)]<<2|o[e.charCodeAt(u+1)]>>4,s[l++]=255&t);1===i&&(t=o[e.charCodeAt(u)]<<10|o[e.charCodeAt(u+1)]<<4|o[e.charCodeAt(u+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function fromByteArray(e){for(var t,n=e.length,o=n%3,a=[],i=0,s=n-o;is?s:i+16383));1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=i.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,a,i=[],s=t;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var a,i,s=8*o-r-1,l=(1<>1,u=-7,p=n?o-1:0,d=n?-1:1,h=e[t+p];for(p+=d,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(i=a&(1<<-u)-1,a>>=-u,u+=r;u>0;i=256*i+e[t+p],p+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),a-=c}return(h?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,s,l,c=8*a-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,f=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,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(i++,l/=2),i+p>=u?(s=0,i=u):i+p>=1?(s=(t*l-1)*Math.pow(2,o),i+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&s,h+=f,s/=256,o-=8);for(i=i<0;e[n+h]=255&i,h+=f,i/=256,c-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(270);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!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,a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(273),o=n(295),a=n(132);e.exports=function baseMatches(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(65),o=n(127),a=1,i=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 .wds-button:not(.wds-is-secondary):not(:last-child) {\n border-right-color: #fff; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:first-child) {\n border-left-color: #fff; }\n .wds-button-group > .wds-dropdown:not(:last-child) .wds-button {\n border-right-color: #fff; }\n .wds-button-group > .wds-dropdown:not(:first-child) .wds-button {\n border-left-color: #fff; }\n .wds-button-group > .wds-button {\n border-radius: 0;\n height: auto;\n margin-left: auto;\n margin-right: -1px;\n padding: 7px 12px; }\n .wds-button-group > .wds-button:first-child {\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .wds-button-group > .wds-button:last-child {\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; }\n .wds-button-group > .wds-button:hover {\n z-index: 1; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:last-child) {\n border-right-width: 1px;\n border-right-style: solid; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:first-child) {\n border-left-width: 1px;\n border-left-style: solid; }\n .wds-button-group > .wds-dropdown:first-child .wds-button {\n border-radius: 0;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .wds-button-group > .wds-dropdown:last-child .wds-button {\n border-radius: 0;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; }\n .wds-button-group > .wds-dropdown:not(:last-child) .wds-button {\n border-right-width: 1px;\n border-right-style: solid; }\n .wds-button-group > .wds-dropdown:not(:first-child) .wds-button {\n border-left-width: 1px;\n border-left-style: solid; }\n",""])},function(e,t,n){var r=n(314);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-button {\n color: #fff;\n background: none;\n align-items: center;\n border-style: solid;\n border-width: 1px;\n border-radius: 3px;\n box-sizing: content-box;\n cursor: default;\n display: inline-flex;\n font-size: 12px;\n font-weight: 600;\n justify-content: center;\n letter-spacing: .15px;\n line-height: 16px;\n margin: 0;\n min-height: 18px;\n outline: none;\n padding: 7px 18px;\n text-decoration: none;\n text-transform: uppercase;\n transition-duration: 300ms;\n transition-property: background-color, border-color, color;\n vertical-align: top;\n -webkit-appearance: none; }\n .wds-button:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #00b7e0; }\n .wds-button:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #00647a;\n border-color: #00647a; }\n .wds-button:not(.wds-is-text) {\n border-color: #00b7e0; }\n .wds-button.wds-is-secondary {\n border-color: #00b7e0;\n color: #00b7e0; }\n .wds-button.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-secondary:active, .wds-button.wds-is-secondary.wds-is-active {\n border-color: #00647a;\n color: #00647a; }\n .wds-button.wds-is-text {\n color: #00b7e0; }\n .wds-button.wds-is-text:focus:not(:disabled), .wds-button.wds-is-text:hover:not(:disabled), .wds-button.wds-is-text:active, .wds-button.wds-is-text.wds-is-active {\n color: #00647a; }\n button.wds-button, a.wds-button {\n cursor: pointer; }\n .wds-button:disabled {\n cursor: default;\n opacity: .5;\n pointer-events: none; }\n .wds-button:focus:not(:disabled), .wds-button:hover:not(:disabled), .wds-button:active, .wds-button.wds-is-active {\n text-decoration: none; }\n .wds-button.wds-is-full-width {\n display: flex; }\n .wds-button.wds-is-square {\n height: 36px;\n min-width: 36px;\n width: 36px;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n padding: 0; }\n .wds-button.wds-is-text {\n border: 0; }\n .wds-button .wds-icon {\n align-self: center;\n pointer-events: none; }\n .wds-button .wds-icon:not(:only-child):first-child {\n margin-right: 6px; }\n .wds-button .wds-icon:not(:only-child):last-child {\n margin-left: 6px; }\n .wds-button .wds-list {\n color: #1a1a1a;\n font-weight: normal;\n letter-spacing: normal;\n text-transform: none;\n text-align: left; }\n .wds-button .wds-dropdown__content {\n top: calc(100% + 1px); }\n\n.wds-button.wds-is-facebook-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #3b5998; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #718dc8;\n border-color: #718dc8; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text) {\n border-color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-secondary {\n border-color: #3b5998;\n color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-secondary:active, .wds-button.wds-is-facebook-color.wds-is-secondary.wds-is-active {\n border-color: #718dc8;\n color: #718dc8; }\n .wds-button.wds-is-facebook-color.wds-is-text {\n color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-text:active, .wds-button.wds-is-facebook-color.wds-is-text.wds-is-active {\n color: #718dc8; }\n\n.wds-button.wds-is-googleplus-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #dd4b39; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #96271a;\n border-color: #96271a; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text) {\n border-color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-secondary {\n border-color: #dd4b39;\n color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-secondary:active, .wds-button.wds-is-googleplus-color.wds-is-secondary.wds-is-active {\n border-color: #96271a;\n color: #96271a; }\n .wds-button.wds-is-googleplus-color.wds-is-text {\n color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-text:active, .wds-button.wds-is-googleplus-color.wds-is-text.wds-is-active {\n color: #96271a; }\n\n.wds-button.wds-is-line-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #00c300; }\n .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #005d00;\n border-color: #005d00; }\n .wds-button.wds-is-line-color:not(.wds-is-text) {\n border-color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-secondary {\n border-color: #00c300;\n color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-line-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-line-color.wds-is-secondary:active, .wds-button.wds-is-line-color.wds-is-secondary.wds-is-active {\n border-color: #005d00;\n color: #005d00; }\n .wds-button.wds-is-line-color.wds-is-text {\n color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-line-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-line-color.wds-is-text:active, .wds-button.wds-is-line-color.wds-is-text.wds-is-active {\n color: #005d00; }\n\n.wds-button.wds-is-linkedin-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #0077b5; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #1cb1ff;\n border-color: #1cb1ff; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text) {\n border-color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-secondary {\n border-color: #0077b5;\n color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-secondary:active, .wds-button.wds-is-linkedin-color.wds-is-secondary.wds-is-active {\n border-color: #1cb1ff;\n color: #1cb1ff; }\n .wds-button.wds-is-linkedin-color.wds-is-text {\n color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-text:active, .wds-button.wds-is-linkedin-color.wds-is-text.wds-is-active {\n color: #1cb1ff; }\n\n.wds-button.wds-is-instagram-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #e02d69; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #92153f;\n border-color: #92153f; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text) {\n border-color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-secondary {\n border-color: #e02d69;\n color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-secondary:active, .wds-button.wds-is-instagram-color.wds-is-secondary.wds-is-active {\n border-color: #92153f;\n color: #92153f; }\n .wds-button.wds-is-instagram-color.wds-is-text {\n color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-text:active, .wds-button.wds-is-instagram-color.wds-is-text.wds-is-active {\n color: #92153f; }\n\n.wds-button.wds-is-meneame-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff6400; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #993c00;\n border-color: #993c00; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text) {\n border-color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-secondary {\n border-color: #ff6400;\n color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-secondary:active, .wds-button.wds-is-meneame-color.wds-is-secondary.wds-is-active {\n border-color: #993c00;\n color: #993c00; }\n .wds-button.wds-is-meneame-color.wds-is-text {\n color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-text:active, .wds-button.wds-is-meneame-color.wds-is-text.wds-is-active {\n color: #993c00; }\n\n.wds-button.wds-is-nk-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #4077a7; }\n .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #7fa9ce;\n border-color: #7fa9ce; }\n .wds-button.wds-is-nk-color:not(.wds-is-text) {\n border-color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-secondary {\n border-color: #4077a7;\n color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-nk-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-nk-color.wds-is-secondary:active, .wds-button.wds-is-nk-color.wds-is-secondary.wds-is-active {\n border-color: #7fa9ce;\n color: #7fa9ce; }\n .wds-button.wds-is-nk-color.wds-is-text {\n color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-nk-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-nk-color.wds-is-text:active, .wds-button.wds-is-nk-color.wds-is-text.wds-is-active {\n color: #7fa9ce; }\n\n.wds-button.wds-is-odnoklassniki-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #933e00;\n border-color: #933e00; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text) {\n border-color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-secondary {\n border-color: #f96900;\n color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:active, .wds-button.wds-is-odnoklassniki-color.wds-is-secondary.wds-is-active {\n border-color: #933e00;\n color: #933e00; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-text {\n color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-text:active, .wds-button.wds-is-odnoklassniki-color.wds-is-text.wds-is-active {\n color: #933e00; }\n\n.wds-button.wds-is-reddit-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff4500; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #992900;\n border-color: #992900; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text) {\n border-color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-secondary {\n border-color: #ff4500;\n color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-secondary:active, .wds-button.wds-is-reddit-color.wds-is-secondary.wds-is-active {\n border-color: #992900;\n color: #992900; }\n .wds-button.wds-is-reddit-color.wds-is-text {\n color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-text:active, .wds-button.wds-is-reddit-color.wds-is-text.wds-is-active {\n color: #992900; }\n\n.wds-button.wds-is-tumblr-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #34465d; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #59779e;\n border-color: #59779e; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text) {\n border-color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-secondary {\n border-color: #34465d;\n color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-secondary:active, .wds-button.wds-is-tumblr-color.wds-is-secondary.wds-is-active {\n border-color: #59779e;\n color: #59779e; }\n .wds-button.wds-is-tumblr-color.wds-is-text {\n color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-text:active, .wds-button.wds-is-tumblr-color.wds-is-text.wds-is-active {\n color: #59779e; }\n\n.wds-button.wds-is-twitter-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #1da1f2; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #0967a0;\n border-color: #0967a0; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text) {\n border-color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-secondary {\n border-color: #1da1f2;\n color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-secondary:active, .wds-button.wds-is-twitter-color.wds-is-secondary.wds-is-active {\n border-color: #0967a0;\n color: #0967a0; }\n .wds-button.wds-is-twitter-color.wds-is-text {\n color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-text:active, .wds-button.wds-is-twitter-color.wds-is-text.wds-is-active {\n color: #0967a0; }\n\n.wds-button.wds-is-vkontakte-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #587ca3; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #99b0c8;\n border-color: #99b0c8; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text) {\n border-color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-secondary {\n border-color: #587ca3;\n color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-secondary:active, .wds-button.wds-is-vkontakte-color.wds-is-secondary.wds-is-active {\n border-color: #99b0c8;\n color: #99b0c8; }\n .wds-button.wds-is-vkontakte-color.wds-is-text {\n color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-text:active, .wds-button.wds-is-vkontakte-color.wds-is-text.wds-is-active {\n color: #99b0c8; }\n\n.wds-button.wds-is-wykop-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #fb803f; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #d04b04;\n border-color: #d04b04; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text) {\n border-color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-secondary {\n border-color: #fb803f;\n color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-secondary:active, .wds-button.wds-is-wykop-color.wds-is-secondary.wds-is-active {\n border-color: #d04b04;\n color: #d04b04; }\n .wds-button.wds-is-wykop-color.wds-is-text {\n color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-text:active, .wds-button.wds-is-wykop-color.wds-is-text.wds-is-active {\n color: #d04b04; }\n\n.wds-button.wds-is-weibo-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff8140; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #d94a00;\n border-color: #d94a00; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text) {\n border-color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-secondary {\n border-color: #ff8140;\n color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-secondary:active, .wds-button.wds-is-weibo-color.wds-is-secondary.wds-is-active {\n border-color: #d94a00;\n color: #d94a00; }\n .wds-button.wds-is-weibo-color.wds-is-text {\n color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-text:active, .wds-button.wds-is-weibo-color.wds-is-text.wds-is-active {\n color: #d94a00; }\n\n.wds-button.wds-is-youtube-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #cd201f; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #e86a6a;\n border-color: #e86a6a; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text) {\n border-color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-secondary {\n border-color: #cd201f;\n color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-secondary:active, .wds-button.wds-is-youtube-color.wds-is-secondary.wds-is-active {\n border-color: #e86a6a;\n color: #e86a6a; }\n .wds-button.wds-is-youtube-color.wds-is-text {\n color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-text:active, .wds-button.wds-is-youtube-color.wds-is-text.wds-is-active {\n color: #e86a6a; }\n\n.wds-button.wds-is-fullwidth {\n box-sizing: border-box;\n width: 100%; }\n",""])},function(e,t,n){"use strict"; + */Object.defineProperty(n,"__esModule",{value:!0});var o=null,a=!1,i=3,s=-1,l=-1,c=!1,d=!1;function p(){if(!c){var e=o.expirationTime;d?g():d=!0,m(t,e)}}function u(){var e=o,t=o.next;if(o===t)o=null;else{var n=o.previous;o=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var r=i,a=l;i=e,l=t;try{var s=n()}finally{i=r,l=a}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===o)o=s.next=s.previous=s;else{n=null,e=o;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==o);null===n?n=o:n===o&&(o=s,p()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function v(){if(-1===s&&null!==o&&1===o.priorityLevel){c=!0;try{do{u()}while(null!==o&&1===o.priorityLevel)}finally{c=!1,null!==o?p():d=!1}}}function t(e){c=!0;var t=a;a=e;try{if(e)for(;null!==o;){var r=n.unstable_now();if(!(o.expirationTime<=r))break;do{u()}while(null!==o&&o.expirationTime<=r)}else if(null!==o)do{u()}while(null!==o&&!y())}finally{c=!1,a=t,null!==o?p():d=!1,v()}}var h,f,m,g,y,b=Date,w="function"==typeof setTimeout?setTimeout:void 0,x="function"==typeof clearTimeout?clearTimeout:void 0,k="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function E(e){h=k(function(t){x(f),e(t)}),f=w(function(){_(h),e(n.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var O=performance;n.unstable_now=function(){return O.now()}}else n.unstable_now=function(){return b.now()};if("undefined"!=typeof window&&window._schedMock){var C=window._schedMock;m=C[0],g=C[1],y=C[2]}else if("undefined"==typeof window||"function"!=typeof window.addEventListener){var S=null,I=-1,j=function(e,t){if(null!==S){var n=S;S=null;try{I=t,n(e)}finally{I=-1}}};m=function(e,t){-1!==I?setTimeout(m,0,e,t):(S=e,setTimeout(j,t,!0,t),setTimeout(j,1073741823,!1,1073741823))},g=function(){S=null},y=function(){return!1},n.unstable_now=function(){return-1===I?0:I}}else{"undefined"!=typeof console&&("function"!=typeof k&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var P=null,T=!1,A=-1,R=!1,M=!1,L=0,B=33,z=33;y=function(){return L<=n.unstable_now()};var V="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===V){T=!1,e=P;var t=A;P=null,A=-1;var r=n.unstable_now(),o=!1;if(0>=L-r){if(!(-1!==t&&t<=r))return R||(R=!0,E(N)),P=e,void(A=t);o=!0}if(null!==e){M=!0;try{e(o)}finally{M=!1}}}},!1);var N=function(e){if(null!==P){E(N);var t=e-L+z;tt&&(t=8),z=tt?window.postMessage(V,"*"):R||(R=!0,E(N))},g=function(){P=null,T=!1,A=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=s;i=e,s=n.unstable_now();try{return t()}finally{i=r,s=o,v()}},n.unstable_scheduleCallback=function(e,t){var r=-1!==s?s:n.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=r+t.timeout;else switch(i){case 1:t=r+-1;break;case 2:t=r+250;break;case 5:t=r+1073741823;break;case 4:t=r+1e4;break;default:t=r+5e3}if(e={callback:e,priorityLevel:i,expirationTime:t,next:null,previous:null},null===o)o=e.next=e.previous=e,p();else{r=null;var a=o;do{if(a.expirationTime>t){r=a;break}a=a.next}while(a!==o);null===r?r=o:r===o&&(o=e,p()),(t=r.previous).next=r.previous=e,e.next=r,e.previous=t}return e},n.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)o=null;else{e===o&&(o=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=i;return function(){var r=i,o=s;i=t,s=n.unstable_now();try{return e.apply(this,arguments)}finally{i=r,s=o,v()}}},n.unstable_getCurrentPriorityLevel=function(){return i},n.unstable_shouldYield=function(){return!a&&(null!==o&&o.expirationTime-1}},function(e,t,n){var r=n(41);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(40);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(40),o=n(66),a=n(68),i=200;e.exports=function stackSet(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=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(34),o=n(19),a=n(72),i=n(15);e.exports=function isIterateeCall(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(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){for(var t,n=getLens(e),r=n[0],i=n[1],s=new a(_byteLength(e,r,i)),l=0,c=i>0?r-4:r,u=0;u>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===i&&(t=o[e.charCodeAt(u)]<<2|o[e.charCodeAt(u+1)]>>4,s[l++]=255&t);1===i&&(t=o[e.charCodeAt(u)]<<10|o[e.charCodeAt(u+1)]<<4|o[e.charCodeAt(u+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function fromByteArray(e){for(var t,n=e.length,o=n%3,a=[],i=0,s=n-o;is?s:i+16383));1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=i.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,a,i=[],s=t;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var a,i,s=8*o-r-1,l=(1<>1,u=-7,p=n?o-1:0,d=n?-1:1,h=e[t+p];for(p+=d,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(i=a&(1<<-u)-1,a>>=-u,u+=r;u>0;i=256*i+e[t+p],p+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),a-=c}return(h?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,s,l,c=8*a-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,f=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,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(i++,l/=2),i+p>=u?(s=0,i=u):i+p>=1?(s=(t*l-1)*Math.pow(2,o),i+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&s,h+=f,s/=256,o-=8);for(i=i<0;e[n+h]=255&i,h+=f,i/=256,c-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(271);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!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,a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(274),o=n(296),a=n(133);e.exports=function baseMatches(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(65),o=n(128),a=1,i=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 .wds-button:not(.wds-is-secondary):not(:last-child) {\n border-right-color: #fff; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:first-child) {\n border-left-color: #fff; }\n .wds-button-group > .wds-dropdown:not(:last-child) .wds-button {\n border-right-color: #fff; }\n .wds-button-group > .wds-dropdown:not(:first-child) .wds-button {\n border-left-color: #fff; }\n .wds-button-group > .wds-button {\n border-radius: 0;\n height: auto;\n margin-left: auto;\n margin-right: -1px;\n padding: 7px 12px; }\n .wds-button-group > .wds-button:first-child {\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .wds-button-group > .wds-button:last-child {\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; }\n .wds-button-group > .wds-button:hover {\n z-index: 1; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:last-child) {\n border-right-width: 1px;\n border-right-style: solid; }\n .wds-button-group > .wds-button:not(.wds-is-secondary):not(:first-child) {\n border-left-width: 1px;\n border-left-style: solid; }\n .wds-button-group > .wds-dropdown:first-child .wds-button {\n border-radius: 0;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .wds-button-group > .wds-dropdown:last-child .wds-button {\n border-radius: 0;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; }\n .wds-button-group > .wds-dropdown:not(:last-child) .wds-button {\n border-right-width: 1px;\n border-right-style: solid; }\n .wds-button-group > .wds-dropdown:not(:first-child) .wds-button {\n border-left-width: 1px;\n border-left-style: solid; }\n",""])},function(e,t,n){var r=n(315);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-button {\n color: #fff;\n background: none;\n align-items: center;\n border-style: solid;\n border-width: 1px;\n border-radius: 3px;\n box-sizing: content-box;\n cursor: default;\n display: inline-flex;\n font-size: 12px;\n font-weight: 600;\n justify-content: center;\n letter-spacing: .15px;\n line-height: 16px;\n margin: 0;\n min-height: 18px;\n outline: none;\n padding: 7px 18px;\n text-decoration: none;\n text-transform: uppercase;\n transition-duration: 300ms;\n transition-property: background-color, border-color, color;\n vertical-align: top;\n -webkit-appearance: none; }\n .wds-button:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #00b7e0; }\n .wds-button:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #00647a;\n border-color: #00647a; }\n .wds-button:not(.wds-is-text) {\n border-color: #00b7e0; }\n .wds-button.wds-is-secondary {\n border-color: #00b7e0;\n color: #00b7e0; }\n .wds-button.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-secondary:active, .wds-button.wds-is-secondary.wds-is-active {\n border-color: #00647a;\n color: #00647a; }\n .wds-button.wds-is-text {\n color: #00b7e0; }\n .wds-button.wds-is-text:focus:not(:disabled), .wds-button.wds-is-text:hover:not(:disabled), .wds-button.wds-is-text:active, .wds-button.wds-is-text.wds-is-active {\n color: #00647a; }\n button.wds-button, a.wds-button {\n cursor: pointer; }\n .wds-button:disabled {\n cursor: default;\n opacity: .5;\n pointer-events: none; }\n .wds-button:focus:not(:disabled), .wds-button:hover:not(:disabled), .wds-button:active, .wds-button.wds-is-active {\n text-decoration: none; }\n .wds-button.wds-is-full-width {\n display: flex; }\n .wds-button.wds-is-square {\n height: 36px;\n min-width: 36px;\n width: 36px;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n padding: 0; }\n .wds-button.wds-is-text {\n border: 0; }\n .wds-button .wds-icon {\n align-self: center;\n pointer-events: none; }\n .wds-button .wds-icon:not(:only-child):first-child {\n margin-right: 6px; }\n .wds-button .wds-icon:not(:only-child):last-child {\n margin-left: 6px; }\n .wds-button .wds-list {\n color: #1a1a1a;\n font-weight: normal;\n letter-spacing: normal;\n text-transform: none;\n text-align: left; }\n .wds-button .wds-dropdown__content {\n top: calc(100% + 1px); }\n\n.wds-button.wds-is-facebook-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #3b5998; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-facebook-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #718dc8;\n border-color: #718dc8; }\n .wds-button.wds-is-facebook-color:not(.wds-is-text) {\n border-color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-secondary {\n border-color: #3b5998;\n color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-secondary:active, .wds-button.wds-is-facebook-color.wds-is-secondary.wds-is-active {\n border-color: #718dc8;\n color: #718dc8; }\n .wds-button.wds-is-facebook-color.wds-is-text {\n color: #3b5998; }\n .wds-button.wds-is-facebook-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-facebook-color.wds-is-text:active, .wds-button.wds-is-facebook-color.wds-is-text.wds-is-active {\n color: #718dc8; }\n\n.wds-button.wds-is-googleplus-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #dd4b39; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-googleplus-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #96271a;\n border-color: #96271a; }\n .wds-button.wds-is-googleplus-color:not(.wds-is-text) {\n border-color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-secondary {\n border-color: #dd4b39;\n color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-secondary:active, .wds-button.wds-is-googleplus-color.wds-is-secondary.wds-is-active {\n border-color: #96271a;\n color: #96271a; }\n .wds-button.wds-is-googleplus-color.wds-is-text {\n color: #dd4b39; }\n .wds-button.wds-is-googleplus-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-googleplus-color.wds-is-text:active, .wds-button.wds-is-googleplus-color.wds-is-text.wds-is-active {\n color: #96271a; }\n\n.wds-button.wds-is-line-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #00c300; }\n .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-line-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #005d00;\n border-color: #005d00; }\n .wds-button.wds-is-line-color:not(.wds-is-text) {\n border-color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-secondary {\n border-color: #00c300;\n color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-line-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-line-color.wds-is-secondary:active, .wds-button.wds-is-line-color.wds-is-secondary.wds-is-active {\n border-color: #005d00;\n color: #005d00; }\n .wds-button.wds-is-line-color.wds-is-text {\n color: #00c300; }\n .wds-button.wds-is-line-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-line-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-line-color.wds-is-text:active, .wds-button.wds-is-line-color.wds-is-text.wds-is-active {\n color: #005d00; }\n\n.wds-button.wds-is-linkedin-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #0077b5; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-linkedin-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #1cb1ff;\n border-color: #1cb1ff; }\n .wds-button.wds-is-linkedin-color:not(.wds-is-text) {\n border-color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-secondary {\n border-color: #0077b5;\n color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-secondary:active, .wds-button.wds-is-linkedin-color.wds-is-secondary.wds-is-active {\n border-color: #1cb1ff;\n color: #1cb1ff; }\n .wds-button.wds-is-linkedin-color.wds-is-text {\n color: #0077b5; }\n .wds-button.wds-is-linkedin-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-linkedin-color.wds-is-text:active, .wds-button.wds-is-linkedin-color.wds-is-text.wds-is-active {\n color: #1cb1ff; }\n\n.wds-button.wds-is-instagram-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #e02d69; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-instagram-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #92153f;\n border-color: #92153f; }\n .wds-button.wds-is-instagram-color:not(.wds-is-text) {\n border-color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-secondary {\n border-color: #e02d69;\n color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-secondary:active, .wds-button.wds-is-instagram-color.wds-is-secondary.wds-is-active {\n border-color: #92153f;\n color: #92153f; }\n .wds-button.wds-is-instagram-color.wds-is-text {\n color: #e02d69; }\n .wds-button.wds-is-instagram-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-instagram-color.wds-is-text:active, .wds-button.wds-is-instagram-color.wds-is-text.wds-is-active {\n color: #92153f; }\n\n.wds-button.wds-is-meneame-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff6400; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-meneame-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #993c00;\n border-color: #993c00; }\n .wds-button.wds-is-meneame-color:not(.wds-is-text) {\n border-color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-secondary {\n border-color: #ff6400;\n color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-secondary:active, .wds-button.wds-is-meneame-color.wds-is-secondary.wds-is-active {\n border-color: #993c00;\n color: #993c00; }\n .wds-button.wds-is-meneame-color.wds-is-text {\n color: #ff6400; }\n .wds-button.wds-is-meneame-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-meneame-color.wds-is-text:active, .wds-button.wds-is-meneame-color.wds-is-text.wds-is-active {\n color: #993c00; }\n\n.wds-button.wds-is-nk-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #4077a7; }\n .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-nk-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #7fa9ce;\n border-color: #7fa9ce; }\n .wds-button.wds-is-nk-color:not(.wds-is-text) {\n border-color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-secondary {\n border-color: #4077a7;\n color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-nk-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-nk-color.wds-is-secondary:active, .wds-button.wds-is-nk-color.wds-is-secondary.wds-is-active {\n border-color: #7fa9ce;\n color: #7fa9ce; }\n .wds-button.wds-is-nk-color.wds-is-text {\n color: #4077a7; }\n .wds-button.wds-is-nk-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-nk-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-nk-color.wds-is-text:active, .wds-button.wds-is-nk-color.wds-is-text.wds-is-active {\n color: #7fa9ce; }\n\n.wds-button.wds-is-odnoklassniki-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #933e00;\n border-color: #933e00; }\n .wds-button.wds-is-odnoklassniki-color:not(.wds-is-text) {\n border-color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-secondary {\n border-color: #f96900;\n color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-secondary:active, .wds-button.wds-is-odnoklassniki-color.wds-is-secondary.wds-is-active {\n border-color: #933e00;\n color: #933e00; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-text {\n color: #f96900; }\n .wds-button.wds-is-odnoklassniki-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-odnoklassniki-color.wds-is-text:active, .wds-button.wds-is-odnoklassniki-color.wds-is-text.wds-is-active {\n color: #933e00; }\n\n.wds-button.wds-is-reddit-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff4500; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-reddit-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #992900;\n border-color: #992900; }\n .wds-button.wds-is-reddit-color:not(.wds-is-text) {\n border-color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-secondary {\n border-color: #ff4500;\n color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-secondary:active, .wds-button.wds-is-reddit-color.wds-is-secondary.wds-is-active {\n border-color: #992900;\n color: #992900; }\n .wds-button.wds-is-reddit-color.wds-is-text {\n color: #ff4500; }\n .wds-button.wds-is-reddit-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-reddit-color.wds-is-text:active, .wds-button.wds-is-reddit-color.wds-is-text.wds-is-active {\n color: #992900; }\n\n.wds-button.wds-is-tumblr-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #34465d; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-tumblr-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #59779e;\n border-color: #59779e; }\n .wds-button.wds-is-tumblr-color:not(.wds-is-text) {\n border-color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-secondary {\n border-color: #34465d;\n color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-secondary:active, .wds-button.wds-is-tumblr-color.wds-is-secondary.wds-is-active {\n border-color: #59779e;\n color: #59779e; }\n .wds-button.wds-is-tumblr-color.wds-is-text {\n color: #34465d; }\n .wds-button.wds-is-tumblr-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-tumblr-color.wds-is-text:active, .wds-button.wds-is-tumblr-color.wds-is-text.wds-is-active {\n color: #59779e; }\n\n.wds-button.wds-is-twitter-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #1da1f2; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-twitter-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #0967a0;\n border-color: #0967a0; }\n .wds-button.wds-is-twitter-color:not(.wds-is-text) {\n border-color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-secondary {\n border-color: #1da1f2;\n color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-secondary:active, .wds-button.wds-is-twitter-color.wds-is-secondary.wds-is-active {\n border-color: #0967a0;\n color: #0967a0; }\n .wds-button.wds-is-twitter-color.wds-is-text {\n color: #1da1f2; }\n .wds-button.wds-is-twitter-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-twitter-color.wds-is-text:active, .wds-button.wds-is-twitter-color.wds-is-text.wds-is-active {\n color: #0967a0; }\n\n.wds-button.wds-is-vkontakte-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #587ca3; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-vkontakte-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #99b0c8;\n border-color: #99b0c8; }\n .wds-button.wds-is-vkontakte-color:not(.wds-is-text) {\n border-color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-secondary {\n border-color: #587ca3;\n color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-secondary:active, .wds-button.wds-is-vkontakte-color.wds-is-secondary.wds-is-active {\n border-color: #99b0c8;\n color: #99b0c8; }\n .wds-button.wds-is-vkontakte-color.wds-is-text {\n color: #587ca3; }\n .wds-button.wds-is-vkontakte-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-vkontakte-color.wds-is-text:active, .wds-button.wds-is-vkontakte-color.wds-is-text.wds-is-active {\n color: #99b0c8; }\n\n.wds-button.wds-is-wykop-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #fb803f; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-wykop-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #d04b04;\n border-color: #d04b04; }\n .wds-button.wds-is-wykop-color:not(.wds-is-text) {\n border-color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-secondary {\n border-color: #fb803f;\n color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-secondary:active, .wds-button.wds-is-wykop-color.wds-is-secondary.wds-is-active {\n border-color: #d04b04;\n color: #d04b04; }\n .wds-button.wds-is-wykop-color.wds-is-text {\n color: #fb803f; }\n .wds-button.wds-is-wykop-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-wykop-color.wds-is-text:active, .wds-button.wds-is-wykop-color.wds-is-text.wds-is-active {\n color: #d04b04; }\n\n.wds-button.wds-is-weibo-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #ff8140; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-weibo-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #d94a00;\n border-color: #d94a00; }\n .wds-button.wds-is-weibo-color:not(.wds-is-text) {\n border-color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-secondary {\n border-color: #ff8140;\n color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-secondary:active, .wds-button.wds-is-weibo-color.wds-is-secondary.wds-is-active {\n border-color: #d94a00;\n color: #d94a00; }\n .wds-button.wds-is-weibo-color.wds-is-text {\n color: #ff8140; }\n .wds-button.wds-is-weibo-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-weibo-color.wds-is-text:active, .wds-button.wds-is-weibo-color.wds-is-text.wds-is-active {\n color: #d94a00; }\n\n.wds-button.wds-is-youtube-color {\n color: #fff;\n background: none; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary) {\n background-color: #cd201f; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):focus:not(:disabled), .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):hover:not(:disabled), .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary):active, .wds-button.wds-is-youtube-color:not(.wds-is-text):not(.wds-is-secondary).wds-is-active {\n background-color: #e86a6a;\n border-color: #e86a6a; }\n .wds-button.wds-is-youtube-color:not(.wds-is-text) {\n border-color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-secondary {\n border-color: #cd201f;\n color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-secondary:focus:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-secondary:hover:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-secondary:active, .wds-button.wds-is-youtube-color.wds-is-secondary.wds-is-active {\n border-color: #e86a6a;\n color: #e86a6a; }\n .wds-button.wds-is-youtube-color.wds-is-text {\n color: #cd201f; }\n .wds-button.wds-is-youtube-color.wds-is-text:focus:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-text:hover:not(:disabled), .wds-button.wds-is-youtube-color.wds-is-text:active, .wds-button.wds-is-youtube-color.wds-is-text.wds-is-active {\n color: #e86a6a; }\n\n.wds-button.wds-is-fullwidth {\n box-sizing: border-box;\n width: 100%; }\n",""])},function(e,t,n){"use strict"; /** @license React v16.6.1 * react-is.production.min.js * @@ -68,4 +68,4 @@ var r=n(266),o=n(267),a=n(268);function kMaxLength(){return Buffer.TYPED_ARRAY_S * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=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,p=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116;function u(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case h:case i:case l:case s:return e;default:switch(e=e&&e.$$typeof){case p:case f:case c:return e;default:return t}}case a:return t}}}function v(e){return u(e)===h}t.typeOf=u,t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=p,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Profiler=l,t.Portal=a,t.StrictMode=s,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===h||e===l||e===s||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===p||e.$$typeof===f)},t.isAsyncMode=function(e){return v(e)||u(e)===d},t.isConcurrentMode=v,t.isContextConsumer=function(e){return u(e)===p},t.isContextProvider=function(e){return u(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return u(e)===f},t.isFragment=function(e){return u(e)===i},t.isProfiler=function(e){return u(e)===l},t.isPortal=function(e){return u(e)===a},t.isStrictMode=function(e){return u(e)===s}},function(e,t,n){var r=n(74),o=n(19),a=n(49);e.exports=function createFind(e){return function(t,n,i){var s=Object(t);if(!o(t)){var l=r(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,i);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(318),o=n(74),a=n(319),i=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:a(n);return l<0&&(l=i(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,a=n+(r?1:-1);r?a--:++a//artifactory.wikia-inc.com/artifactory/api/npm/wikia-npm/\n```\n\n### 1.2. Add the package to `package.json`\n\n```js\n$> yarn add @wikia/react-common\n```\n\nor\n\n```js\n$> npm i @wikia/react-common\n```\n\n## 2. Use it in the code\n\n```js\nimport Button from \'@wikia/react-common/components/Button\';\nimport IconAdd from \'@wikia/react-common/icons/IconAdd\';\n\n...\n\n<div>\n <Button>\n <IconAdd />\n Camera\n </Button>\n</div>\n```\n\n## 3. Add the CSS to your build\n\nMake sure you include the CSS in your styles.\n\n```scss\n@import "~@wikia/react-common/components/Icon.css";\n@import "~@wikia/react-common/components/Button.css";\n```'}]},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r);n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"## **[IMPORTANT]** Artifactory Setup\n\nThis setup will work for both `yarn` and `npm`. If you run into issues consult [Artifactory NPM Docs](https://www.jfrog.com/confluence/display/RTF/Npm+Registry) first\n\n1. Verify you can login to [Artifactory Wikia](https://artifactory.wikia-inc.com/artifactory/webapp/#/home)\n2. Change wikia scoped packages to use artifactory\n - `$> npm config set @wikia:registry https://artifactory.wikia-inc.com/artifactory/api/npm/wikia-npm/`\n3. Login\n - `$> npm login --scope=@wikia`\n - Use artifactory login and artifactory API key for password by going to \"Edit Profile\" in artifactory web ui\n\n## General guidelines\n\n- ES6 React components with [`prop-types`](https://github.com/facebook/prop-types) saved in `.js` file.\n- Use function syntax if possible, use nesting and flat files.\n- 100% lint and coverage and no regressions\n- use [Jest](https://facebook.github.io/jest/) as a general testing framework and for testing component's rendering\n- use [Enzyme](https://github.com/airbnb/enzyme) for testing interactions\n- use [Sinon](http://sinonjs.org/) for testing callbacks\n\n## Step-by-step guide for components\n\n1. Assuming the new component's name is `ComponentA` all it's files will be in `/source/components/ComponentA/` directory.\n2. Create component in `ComponentA/index.js`.\n3. Add component to `/source/components/index.js`.\n4. Add component to `/config/styleguide.config.json`.\n5. (optionally) create styles in `ComponentA/styles.s?css` and import them in `ComponentA/index.js`.\n6. Document the usage and props in JSDocs in `ComponentA/index.js`.\n7. Add example or examples in `ComponentA/README.md`.\n8. Add unit test in `ComponentA/index.spec.js`, aim for 100% coverage and all the test cases.\n9. Create new Pull Request.\n10. Code will be merged to `master` only if there are no regressions and after a successful CR.\n11. When the code is merged to `master`, release new version of the styleguide with one of the release commands.\n\n### HOCS\n\n1. Higher order components (hoc) can be added by following the guide\n\n**Note**: The one difference will be to use `js static` in the readme to prevent rendering as styleguidist doesn't have access to the hoc\n\n## Development server\n\n```js\n> yarn dev\n```\n\n## Tests\n\nThe easiest way is to run the full suite:\n\n```js\n> yarn ci\n```\n\nIt will run linting (ESLint, Stylelint), Jest and will output coverage report.\n\n### Watch\n\nThere's a command for watching Jest tests:\n\n```js\n> yarn test:watch\n```\n\n## Build\n\nRunning the build is as simple as:\n\n```js\n> yarn build\n```\n\nThis will run few build commands in sequence:\n\n1. Remove every generated file and directory from the `dist/` directory (equivalent of `yarn clean`).\n2. Build the library outputting built ES5 files to the `dist/` (`yarn lib:build`).\n3. Build the styleguide in the `docs/` directory; it contains the build styleguide that will appear on the GitHub pages (`yarn styleguide:build`).\n\n## Release\n\nAfter PR is merged into `master` branch create new release. You should use [SemVer](http://semver.org/) using one of the following commands.\n\nThe script will automatically pull newest `master` branch, build the documentation, create new release version in the `package.json`, create GitHub tag and push this tag to GitHub. After pushing the new tag it will publish the package to artifactory.\n\n### Default release; bugfixes, no new features and no breaking changes\n\n```js\n> yarn release\n```\n\n### New features, but no breaking changes\n\n```js\n> yarn release:minor\n```\n\n### Breaking changes, regardless how small\n\n```js\n> yarn release:major\n```"}]},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r);n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:'This is system that controlls the state of site notifications, allows to add them via actions, and outputs them to a component.\n\nIt supports plaintext messages and automatically handles dismissing actions when the ⨯ icon is clicked on the notification.\n\n## Requirements\n\nThe BannerNotification system requires:\n\n- `redux` (and `react-redux`)\n- `immutable`\n\n## Installation\n\nThere are few parts that need to be plugged into place:\n\n### Reducer\n\nThe reducer/store need to be included in Redux.\n\nExample:\n\n```js\nimport { BannerNotificationsStore } from \'@wikia/react-common/systems/BannerNotifications\';\nimport { combineReducers } from \'redux\';\n\nconst rootReducer = combineReducers({\n BannerNotificationsStore,\n});\n\nexport default rootReducer;\n```\n\n### Component\n\nThe component that connects to the Redux state needs to be included on the page somewhere so the notifications are visible.\n\n```js\nimport React from \'react\';\nimport PropTypes from \'prop-types\';\nimport FandomContentWell from \'@wikia/react-common/components/FandomContentWell\';\nimport { BannerNotificationsComponent } from \'@wikia/react-common/systems/BannerNotifications\';\n\nclass PageLayout extends React.Component {\n static propTypes = {\n children: PropTypes.node.isRequired,\n }\n\n render() {\n return (\n <FandomContentWell>\n <BannerNotificationsComponent />\n {children}\n </FandomContentWell>\n );\n }\n}\n\nexport default PageLayout;\n```\n\n**NOTE**: Remember to also include styles!\n\n```css\n@import "~@wikia/react-common/systems/BannerNotifications.css";\n```\n\n## API\n\nBannerNotifications system exports few actions that should be used to add new notifications:\n\n- `addAlert(text, [id])`\n- `addWarning(text, [id])`\n- `addSuccess(text, [id])`\n- `addMessage(text, [id])`\n\nThe `id` is optional and it\'s needed only when the notification needs to be manually removed with `removeNotfication(id)` action. If omitted its value is assigned automatically.\n\nTypes of notifications are shown in [components/BannerNotification](https://wikia.github.io/react-common/#bannernotification) section.\n\nExample usage in thunk:\n\n```js\nimport axios from \'axios\';\nimport { addAlert } from \'@wikia/react-common/systems/BannerNotifications\';\n\nexport const loadData = () => (\n async dispatch => {\n try {\n const response = await axios({\n method: \'get\',\n url: `/api/get-data`,\n });\n //...\n } catch (error) {\n dispatch(addAlert(\'Error loading data from the server\'));\n console.error(error);\n }\n }\n);\n```'}]},function(e,t,n){var r=n(328);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-avatar {\n display: inline-block;\n position: relative; }\n .wds-avatar a {\n height: 100%;\n width: 100%; }\n\n.wds-avatar__image {\n height: 100%;\n min-width: 100%;\n width: 100%;\n display: inline-block;\n border-radius: 50%;\n box-sizing: border-box; }\n\n.wds-avatar__badge {\n line-height: 0;\n position: absolute; }\n .wds-avatar__badge svg {\n height: 100%;\n min-width: 100%;\n width: 100%; }\n\n.wds-avatar {\n height: 48px;\n min-width: 48px;\n width: 48px; }\n .wds-avatar a {\n color: #bed1cf; }\n .wds-avatar a:hover {\n color: #bed1cf; }\n .wds-avatar .wds-avatar__image {\n background-color: #fff;\n fill: #bed1cf; }\n .wds-avatar .wds-avatar__image:hover {\n fill: #bed1cf; }\n .wds-avatar img.wds-avatar__image {\n border: solid 3px #bed1cf; }\n .wds-avatar img.wds-avatar__image:hover {\n border-color: #bed1cf; }\n .wds-avatar .wds-avatar__badge {\n height: 20.1872px;\n min-width: 20.1872px;\n width: 20.1872px;\n left: -4.48604px;\n top: -5.76777px; }\n",""])},function(e,t,n){e.exports={description:"",displayName:"getAvatarImage",methods:[],doclets:{},examples:n(330)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"",settings:{},evalInContext:a},{type:"markdown",content:"Avatar with badges"},{type:"code",content:'
\n \n \n \n \n \n \n \n
',settings:{},evalInContext:a}]},function(e,t,n){var r=n(332);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-banner-notification {\n background-color: #fff;\n color: #999;\n display: flex;\n transition: opacity 0.4s; }\n .wds-banner-notification.wds-is-transparent {\n opacity: 0; }\n .wds-banner-notification__container {\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2); }\n .wds-banner-notification__icon {\n align-items: center;\n color: #fff;\n display: flex;\n justify-content: center;\n width: 48px; }\n .wds-alert .wds-banner-notification__icon {\n background-color: #d71035; }\n .wds-warning .wds-banner-notification__icon {\n background-color: #dfec24; }\n .wds-success .wds-banner-notification__icon {\n background-color: #4cda9a; }\n .wds-message .wds-banner-notification__icon {\n background-color: #460084; }\n .wds-banner-notification__text {\n color: #666;\n flex: 1;\n font-size: 14px;\n line-height: 1.29;\n padding: 13px 12px; }\n .wds-banner-notification__close {\n box-sizing: content-box;\n cursor: pointer;\n padding: 18px; }\n .wds-banner-notification + .wds-banner-notification .wds-banner-notification__close,\n .wds-banner-notification + .wds-banner-notification .wds-banner-notification__text {\n border-top: 1px solid #ccc; }\n\n.wds-banner-notification__close {\n fill: currentColor;\n height: 12px;\n width: 12px; }\n\n.wds-banner-notification__icon-mark {\n fill: currentColor;\n height: 18px;\n width: 18px; }\n",""])},function(e,t,n){e.exports={description:"",displayName:"getIcon",methods:[],doclets:{},examples:n(334)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"By default its rendered without close button:"},{type:"code",content:"",settings:{},evalInContext:a},{type:"markdown",content:"But it can be rendered with close buttton:"},{type:"code",content:" alert('Click')} />",settings:{},evalInContext:a},{type:"markdown",content:"Or with extra HTML:"},{type:"code",content:" alert('Click')}>\n This is a text with a link\n",settings:{},evalInContext:a}]},function(e,t,n){e.exports={description:"Component used to create notifications. For full functionality it needs some\napp logic to handle the array of messages - adding/removing.\n\nSee the following:\n\n- [https://github.com/Wikia/f2/blob/master/frontend/react-app/curationTools/containers/Notifications.jsx](https://github.com/Wikia/f2/blob/master/frontend/react-app/curationTools/containers/Notifications.jsx \"https://github.com/Wikia/f2/blob/master/frontend/react-app/curationTools/containers/Notifications.jsx\")\n- [https://github.com/Wikia/f2/tree/master/frontend/react-app/curationTools/reducers/notifications](https://github.com/Wikia/f2/tree/master/frontend/react-app/curationTools/reducers/notifications \"https://github.com/Wikia/f2/tree/master/frontend/react-app/curationTools/reducers/notifications\")\n\nThe `messages` prop is an array of `bannerNotificationsMessageType` objects with the following props:\n\n- `id`: unique string that's send as the param of the `onClose` function\n- `type`: one of: `'alert'`, `'warning'`, `'success'` or `'message'`.\n- `text`: text that is going to be displayed on the notification\n- `permanent`: a boolean flag - if present the close button won't be displayed on the notification\n\n`bannerNotificationsMessageType` is exported along with `BannerNotification`\n",displayName:"BannerNotifications",methods:[],props:[{type:{name:"arrayOf",value:{name:"custom",raw:"messageType"}},required:!0,description:"An array of `bannerNotificationsMessageType` objects",tags:{},name:"messages"},{type:{name:"func"},required:!0,description:"Action invoked when close button is clicked",tags:{},name:"onClose"},{type:{name:"string"},required:!1,description:"An additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(336)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"By default it renders nothing:"},{type:"code",content:" {}} />",settings:{},evalInContext:a},{type:"markdown",content:"But with proper data it can display all the messages:"},{type:"code",content:"const messages4 = [\n {\n type: 'message',\n text: 'this is a permanent message',\n id: '1',\n permanent: true,\n },\n {\n type: 'success',\n text: 'this is a success',\n id: '2',\n },\n {\n type: 'warning',\n text: 'this is a warning',\n id: '3',\n },\n {\n type: 'alert',\n text: 'this is an alert',\n id: '4',\n },\n];
\n\t {}} />\n
",settings:{},evalInContext:a}]},function(e,t,n){e.exports={description:"Basic button component\n",displayName:"Button",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"bool"},required:!1,description:"Disabled attribute for the `",settings:{},evalInContext:a},{type:"markdown",content:"Different styles:"},{type:"code",content:"
\n\t\n\t\n\t\n\t\n
",settings:{},evalInContext:a},{type:"markdown",content:"Full width:"},{type:"code",content:"",settings:{},evalInContext:a}]},function(e,t,n){e.exports={description:"Button group component\n",displayName:"ButtonGroup",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(340)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Regular buttons:"},{type:"code",content:"\n\t\n\t\n\t\n\t\n",settings:{},evalInContext:a},{type:"markdown",content:"Secondary buttons:"},{type:"code",content:"\n\t\n\t\n\t\n\t\n",settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(342);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function ContentWell(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-content-well ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){var r=n(343);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-content-well {\n box-sizing: border-box; }\n @media only screen and (max-width: 767px) {\n .wds-content-well {\n margin: 0 18px; } }\n @media only screen and (min-width: 768px) {\n .wds-content-well {\n margin: 0 auto; } }\n @media only screen and (min-width: 768px) and (max-width: 1023px) {\n .wds-content-well {\n width: 732px; } }\n @media only screen and (min-width: 1024px) and (max-width: 1279px) {\n .wds-content-well {\n width: 988px; } }\n @media only screen and (min-width: 1280px) and (max-width: 1499px) {\n .wds-content-well {\n width: 1244px; } }\n @media only screen and (min-width: 1500px) {\n .wds-content-well {\n width: 1464px; } }\n",""])},function(e,t,n){e.exports={description:"ContentWell wraps `children` in `wds-content-well` CSS mixin.\n",displayName:"ContentWell",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(345)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Open this example in the new page to see the difference:"},{type:"code",content:'\n\t
ContentWell
\n
',settings:{},evalInContext:a}]},function(e,t,n){var r=n(347);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-icon {\n fill: currentColor;\n height: 24px;\n min-width: 24px;\n width: 24px; }\n .wds-icon-small {\n height: 18px;\n min-width: 18px;\n width: 18px; }\n .wds-icon-tiny {\n height: 12px;\n min-width: 12px;\n width: 12px; }\n",""])},function(e,t,n){var r=n(349);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-dropdown {\n display: inline-block;\n position: relative; }\n .wds-dropdown__toggle {\n cursor: default;\n position: relative; }\n .wds-dropdown__content {\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n display: none;\n left: 50%;\n min-width: 70%;\n padding: 7px 0;\n position: absolute;\n top: 100%;\n transform: translateX(-50%);\n z-index: 1; }\n .wds-dropdown__content.wds-is-right-aligned {\n left: auto;\n right: 0;\n transform: none; }\n .wds-dropdown__content.wds-is-left-aligned {\n left: 0;\n transform: none; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list {\n background-image: radial-gradient(farthest-side at 50% 0, rgba(26, 26, 26, 0.12), transparent), radial-gradient(farthest-side at 50% 100%, rgba(26, 26, 26, 0.12), transparent);\n background-position: 0 0, 0 100%;\n background-repeat: no-repeat;\n background-size: 100% 9px;\n max-height: 270px;\n overflow-y: auto;\n position: relative;\n z-index: 1; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::after, .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::before {\n background-color: #fff;\n content: '';\n display: block;\n height: 30px;\n margin: 0 0 -30px;\n position: relative;\n z-index: -1; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::after {\n background-color: #fff;\n margin: -29px 0 0; }\n .wds-dropdown__content.wds-is-not-scrollable .wds-list {\n position: relative; }\n .wds-dropdown__content .wds-list {\n padding: 0; }\n .wds-dropdown__content .wds-list > li {\n margin: 0 9px;\n padding-left: 9px;\n padding-right: 9px;\n white-space: nowrap; }\n .wds-dropdown__content .wds-list.wds-is-linked > li {\n padding: 0; }\n .wds-dropdown__content .wds-list.wds-is-linked > li > a {\n color: #39424d;\n padding-left: 9px;\n padding-right: 9px;\n text-decoration: none;\n transition-duration: 0.2s;\n transition-property: background-color, color; }\n .wds-dropdown__content .wds-list.wds-is-linked > li:hover > a:not(.wds-button), .wds-dropdown__content .wds-list.wds-is-linked > li.wds-is-selected > a:not(.wds-button) {\n background-color: rgba(0, 172, 172, 0.1);\n color: #00acac; }\n .wds-dropdown::before, .wds-dropdown::after {\n bottom: -1px;\n content: '';\n display: none;\n height: 0;\n left: 50%;\n pointer-events: none;\n position: absolute;\n width: 0;\n z-index: 2; }\n .wds-dropdown::after {\n border: 8px solid transparent;\n border-bottom-color: #fff;\n margin-left: -8px; }\n .wds-dropdown::before {\n border: 9px solid transparent;\n border-bottom-color: #ccc;\n margin-left: -9px; }\n .wds-dropdown.wds-is-active:not(.wds-no-chevron)::before, .wds-dropdown.wds-is-active:not(.wds-no-chevron)::after, .wds-dropdown:not(.wds-is-touch-device):hover:not(.wds-no-chevron)::before, .wds-dropdown:not(.wds-is-touch-device):hover:not(.wds-no-chevron)::after {\n display: block; }\n .wds-dropdown.wds-is-active .wds-dropdown__content, .wds-dropdown:not(.wds-is-touch-device):hover .wds-dropdown__content {\n display: inline-block; }\n .wds-dropdown.wds-is-active .wds-dropdown__toggle-chevron, .wds-dropdown:not(.wds-is-touch-device):hover .wds-dropdown__toggle-chevron {\n transform: rotate(180deg); }\n .wds-dropdown.wds-is-active.wds-has-shadow::before, .wds-dropdown.wds-is-active.wds-has-dark-shadow::before, .wds-dropdown:not(.wds-is-touch-device):hover.wds-has-shadow::before, .wds-dropdown:not(.wds-is-touch-device):hover.wds-has-dark-shadow::before {\n display: none; }\n .wds-dropdown.wds-has-shadow .wds-dropdown__content {\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.2); }\n .wds-dropdown.wds-has-dark-shadow .wds-dropdown__content {\n box-shadow: 0 0 20px 0 rgba(26, 26, 26, 0.3); }\n .wds-dropdown.wds-has-shadow .wds-dropdown__content, .wds-dropdown.wds-has-dark-shadow .wds-dropdown__content {\n border: 0; }\n .wds-dropdown.wds-is-flipped::before, .wds-dropdown.wds-is-flipped::after {\n bottom: unset;\n top: -1px; }\n .wds-dropdown.wds-is-flipped::before {\n border-bottom-color: transparent;\n border-top-color: #ccc; }\n .wds-dropdown.wds-is-flipped::after {\n border-bottom-color: transparent;\n border-top-color: #fff; }\n .wds-dropdown.wds-is-flipped .wds-dropdown__content {\n bottom: 100%;\n top: unset; }\n\n.wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 {\n margin-right: 0; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 > a {\n padding-right: 18px;\n display: flex;\n justify-content: space-between; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-chevron {\n transform: rotate(-90deg);\n margin-left: 18px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-sticked-to-parent {\n position: relative; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-sticked-to-parent .wds-dropdown-level-2__content {\n top: auto;\n bottom: -8px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-level-2__content {\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n display: none;\n left: 100%;\n padding: 7px 0;\n position: absolute;\n top: -8px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-level-2__content .wds-list.wds-is-linked > li > a {\n font-size: 12px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-active .wds-dropdown-level-2__content, .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2:not(.wds-is-touch-device):hover .wds-dropdown-level-2__content {\n display: block; }\n",""])},function(e,t,n){e.exports={description:"Basic Dropdown component\n",displayName:"Dropdown",methods:[],props:[{type:{name:"node"},required:!0,description:"React Component to display as a dropdown toggle",tags:{},name:"toggle"},{type:{name:"bool"},required:!1,description:"Whether or nor not dropdown should automatically flip when it's near the bottom of the viewport",defaultValue:{value:"false",computed:!1},tags:{},name:"canFlip"},{type:{name:"node"},required:!1,description:"React Component to display as the Dropdown Content",defaultValue:{value:"null",computed:!1},tags:{},name:"children"},{type:{name:"bool"},required:!1,description:"Should dropdown content be scrollable",defaultValue:{value:"false",computed:!1},tags:{},name:"contentScrollable"},{type:{name:"bool"},required:!1,description:"Should dropdown content be left-aligned with the dropdown toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"dropdownLeftAligned"},{type:{name:"bool"},required:!1,description:"Should dropdown content be right-aligned with the dropdown toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"dropdownRightAligned"},{type:{name:"bool"},required:!1,description:"Whether or not dropdown should have a drop shadow (darker than the one produced by hasShadow)",defaultValue:{value:"false",computed:!1},tags:{},name:"hasDarkShadow"},{type:{name:"bool"},required:!1,description:"Whether or not dropdown should have a slight drop shadow",defaultValue:{value:"false",computed:!1},tags:{},name:"hasShadow"},{type:{name:"bool"},required:!1,description:"is active",defaultValue:{value:"false",computed:!1},tags:{},name:"isActive"},{type:{name:"bool"},required:!1,description:"Is it a nested dropdown",defaultValue:{value:"false",computed:!1},tags:{},name:"isLevel2"},{type:{name:"bool"},required:!1,description:"if the top of nested dropdown content should be positioned at the same height as toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"isStickedToParent"},{type:{name:"bool"},required:!1,description:"Should chevron on the top of dropdown content be hidden",defaultValue:{value:"false",computed:!1},tags:{},name:"noChevron"},{type:{name:"func"},required:!1,description:"HTML classes to add to toggle",defaultValue:{value:"null",computed:!1},tags:{},name:"onClose"},{type:{name:"shape",value:{href:{name:"string",required:!1}}},required:!1,description:"HTML attributes to add to toggle",defaultValue:{value:"{}",computed:!1},tags:{},name:"toggleAttrs"},{type:{name:"string"},required:!1,description:"HTML classes to add to toggle",defaultValue:{value:"''",computed:!1},tags:{},name:"toggleClassName"}],doclets:{},tags:{},examples:n(351)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"\n

I am a text inside dropdown!

\n
",settings:{},evalInContext:a},{type:"markdown",content:"Nested dropdown:"},{type:"code",content:'\n

I am a text inside dropdown!

\n \n

I am a text inside dropdown!

\n

I am a text inside dropdown!

\n
\n

I am a text inside dropdown!

\n
',settings:{},evalInContext:a}]},function(e,t,n){var r=n(353);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".expandable-text__expand {\n /* unstyle button */\n background: none;\n border: 0;\n cursor: pointer;\n display: inline;\n font: inherit;\n line-height: inherit;\n margin: 0;\n padding: 0; }\n .expandable-text__expand:active {\n outline: 0; }\n",""])},function(e,t,n){e.exports={description:"ExpandableText component can be used to temporarily limit text showed to the user.\nIt has a button used to fully expand the text.\nIf the source text is shorter than the limit the button do not show.\n\nBoth button label and string used to ellipsis has to be configured.\nButton and the text itself can be syled with classes passed to the component.\n",displayName:"ExpandableText",methods:[],props:[{type:{name:"number"},required:!0,description:"Additional class name",tags:{},name:"characterLimit"},{type:{name:"string"},required:!0,description:"Label used on the expand button",tags:{},name:"expandLabel"},{type:{name:"string"},required:!0,description:"Full text to display",tags:{},name:"text"},{type:{name:"string"},required:!1,description:"Character limit",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"string"},required:!1,description:"Ellipsis (defaults to `…`)",defaultValue:{value:"'\\u2026'",computed:!1},tags:{},name:"ellipsis"},{type:{name:"string"},required:!1,description:"Additional class name for the expand button",defaultValue:{value:"''",computed:!1},tags:{},name:"expandClassName"}],doclets:{},tags:{},examples:n(355)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"",settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FandomBackgroundImage(e){var t=e.className,n=e.width,r=_objectWithoutProperties(e,["className","width"]),a=Math.floor(9*n/16);return o.a.createElement("svg",_extends({className:t,width:n,height:a,viewBox:"0 0 322 182",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r),o.a.createElement("defs",null,o.a.createElement("path",{id:"fandom-background-image-a",d:"M0 0h322v181.125H0z"})),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("mask",{id:"fandom-background-image-b",fill:"#fff"},o.a.createElement("use",{xlinkHref:"#fandom-background-image-a"})),o.a.createElement("use",{fill:"#00D6D6",xlinkHref:"#fandom-background-image-a"}),o.a.createElement("g",{fill:"#002A32",opacity:".07",mask:"url(#fandom-background-image-b)"},o.a.createElement("path",{d:"M220.746 101.305c0 1.17-.457 2.29-1.27 3.122l-53.435 54.578c-.9.908-1.81 1.315-2.94 1.315-1.17 0-2.2-.444-3.07-1.32l-3.77-3.607a1.695 1.695 0 0 1-.03-2.402l61.67-62.86c1.05-1.07 2.86-.32 2.86 1.19v10zm-68.525 41.157l-3.05 2.783a2.52 2.52 0 0 1-3.48-.078l-40.66-40.454a5.465 5.465 0 0 1-1.6-3.86v-7.56c0-2.722 3.26-4.094 5.19-2.18l43.17 42.947c.75.756 2.02 2.315 2.02 4.2 0 1.2-.27 2.902-1.56 4.202zm-36.34-78.29l13.99-14.086a1.66 1.66 0 0 1 2.36 0l46.85 47.188c5.02 5.053 5.02 13.244 0 18.296l-13.98 14.082a1.66 1.66 0 0 1-2.36 0l-46.84-47.19c-2.41-2.43-3.74-5.678-3.74-9.148 0-3.465 1.33-6.712 3.74-9.14zm55.43 8.07l14.62-14.726c2.85-2.867 6.82-4.218 10.93-3.647 2.88.4 5.5 1.9 7.56 3.98l14.81 14.91c.65.65.65 1.72 0 2.38L196.7 97.81a1.663 1.663 0 0 1-2.363 0L171.31 74.62a1.692 1.692 0 0 1 0-2.38zm58.14-2.797l-32.61-33.408a3.422 3.422 0 0 0-4.9-.01l-25.86 26.298a5.097 5.097 0 0 1-7.26.02l-25.86-26.02a3.424 3.424 0 0 0-4.85-.018L94.8 69.367a6.024 6.024 0 0 0-1.8 4.296v31.307c0 1.6.63 3.135 1.755 4.267l64.92 65.363a3.425 3.425 0 0 0 4.87-.002l64.862-65.363a6.055 6.055 0 0 0 1.753-4.265V73.673c0-1.58-.617-3.1-1.718-4.228z"}),o.a.createElement("path",{d:"M248.557 243.388a6.624 6.624 0 0 1-1.886 4.632l-79.28 80.987c-1.34 1.347-2.69 1.95-4.37 1.95-1.73 0-3.26-.66-4.55-1.958l-5.59-5.36a2.517 2.517 0 0 1-.06-3.57l91.51-93.29c1.56-1.59 4.25-.48 4.25 1.75v14.83zm-101.68 61.07l-4.536 4.13a3.735 3.735 0 0 1-5.16-.115l-60.34-60.03a8.074 8.074 0 0 1-2.37-5.727V231.5c0-4.04 4.84-6.077 7.69-3.237l64.05 63.727c1.12 1.123 3 3.436 3 6.232 0 1.78-.4 4.308-2.31 6.237zm-53.93-116.17l20.752-20.903a2.46 2.46 0 0 1 3.5 0l69.51 70.02c7.44 7.5 7.44 19.653 0 27.15l-20.74 20.895c-.97.975-2.54.975-3.51 0l-69.51-70.022c-3.58-3.606-5.55-8.426-5.55-13.575 0-5.142 1.97-9.96 5.54-13.565zm82.255 11.972l21.692-21.85c4.23-4.254 10.117-6.26 16.212-5.41 4.276.594 8.16 2.83 11.21 5.905l21.965 22.125c.97.975.97 2.555 0 3.532l-33.4 33.648c-.96.973-2.54.973-3.5 0l-34.16-34.42a2.505 2.505 0 0 1 0-3.53zm86.26-4.148l-48.38-49.573a5.084 5.084 0 0 0-7.278-.02l-38.37 39.02a7.565 7.565 0 0 1-10.774.03l-38.38-38.62a5.088 5.088 0 0 0-7.2-.03l-49.43 49.06a8.978 8.978 0 0 0-2.65 6.37v46.45c0 2.372.936 4.65 2.605 6.33l96.33 96.99a5.088 5.088 0 0 0 7.23 0l96.244-96.99a9.015 9.015 0 0 0 2.6-6.33v-46.44c0-2.35-.92-4.6-2.55-6.277zM74.452-61.735c0-1.733.68-3.397 1.887-4.63l79.28-80.988c1.34-1.347 2.69-1.95 4.37-1.95 1.73 0 3.26.66 4.55 1.958l5.59 5.352c1.01.963 1.03 2.57.06 3.565l-91.5 93.286c-1.56 1.59-4.25.477-4.25-1.755v-14.838zm101.68-61.07l4.537-4.13a3.735 3.735 0 0 1 5.16.115l60.34 60.03a8.078 8.078 0 0 1 2.37 5.728v11.215c0 4.04-4.84 6.077-7.69 3.237l-64.05-63.727c-1.12-1.123-3-3.436-3-6.232 0-1.78.4-4.3 2.31-6.23zm53.93 116.17L209.31 14.268a2.464 2.464 0 0 1-3.504 0l-69.517-70.02c-7.45-7.498-7.45-19.653 0-27.15l20.74-20.895a2.46 2.46 0 0 1 3.5 0l69.51 70.023c3.58 3.605 5.55 8.426 5.55 13.574 0 5.142-1.97 9.96-5.54 13.565zM147.81-18.607l-21.692 21.85c-4.23 4.255-10.117 6.26-16.212 5.412-4.276-.595-8.16-2.832-11.21-5.906L76.728-19.38a2.507 2.507 0 0 1 0-3.532l33.403-33.646a2.472 2.472 0 0 1 3.51 0l34.17 34.418c.97.976.97 2.557 0 3.53zM61.55-14.46l48.38 49.576a5.086 5.086 0 0 0 7.278.013l38.37-39.02a7.556 7.556 0 0 1 10.774-.03l38.38 38.61a5.079 5.079 0 0 0 7.2.02l49.43-49.06a8.984 8.984 0 0 0 2.65-6.38v-46.45a8.97 8.97 0 0 0-2.605-6.33l-96.33-96.99a5.088 5.088 0 0 0-7.23 0L61.6-73.5a8.986 8.986 0 0 0-2.6 6.327v46.44c0 2.348.915 4.6 2.55 6.274zM8.612 177.558a6.624 6.624 0 0 1-4.632-1.886l-80.987-79.285c-1.347-1.338-1.95-2.688-1.95-4.37 0-1.734.66-3.266 1.958-4.557l5.36-5.59a2.515 2.515 0 0 1 3.57-.058l93.29 91.505c1.59 1.558.48 4.243-1.75 4.243H8.62zm-61.07-101.68l-4.13-4.536a3.74 3.74 0 0 1 .115-5.164L3.557 5.83a8.074 8.074 0 0 1 5.726-2.378H20.5c4.04 0 6.077 4.837 3.237 7.69L-39.99 75.2c-1.123 1.113-3.436 2.993-6.232 2.993-1.78 0-4.308-.402-6.237-2.317zm116.17-53.93L84.615 42.7a2.464 2.464 0 0 1 0 3.504l-70.02 69.517c-7.5 7.45-19.653 7.45-27.15 0L-33.45 94.98a2.468 2.468 0 0 1 0-3.507L36.572 21.96c3.606-3.58 8.426-5.55 13.575-5.55 5.142 0 9.96 1.967 13.565 5.54zM51.74 104.202l21.85 21.692c4.254 4.23 6.26 10.117 5.41 16.212-.594 4.276-2.83 8.16-5.905 11.21L50.97 175.282c-.975.97-2.555.97-3.532 0L13.79 141.878a2.47 2.47 0 0 1 0-3.507l34.42-34.16a2.505 2.505 0 0 1 3.53 0zm4.148 86.26l49.573-48.38c2.05-2 2.06-5.272.02-7.278l-39.02-38.37a7.565 7.565 0 0 1-.03-10.774l38.62-38.38c2-1.987 2.01-5.202.03-7.2L56.01-9.35A8.997 8.997 0 0 0 49.63-12H3.174a8.974 8.974 0 0 0-6.33 2.605l-96.99 96.33a5.086 5.086 0 0 0 .002 7.23l96.99 96.244a9.009 9.009 0 0 0 6.328 2.6h46.44a9 9 0 0 0 6.274-2.55zM313.735 3.452c1.733 0 3.397.68 4.63 1.887l80.988 79.28c1.347 1.34 1.95 2.69 1.95 4.37 0 1.73-.66 3.26-1.958 4.55l-5.352 5.59a2.511 2.511 0 0 1-3.565.06l-93.286-91.5c-1.59-1.56-.477-4.25 1.755-4.25h14.838zm61.07 101.68l4.13 4.537a3.735 3.735 0 0 1-.115 5.16l-60.03 60.34a8.078 8.078 0 0 1-5.728 2.37h-11.215c-4.04 0-6.077-4.84-3.237-7.69l63.727-64.06c1.123-1.12 3.436-3 6.232-3 1.78 0 4.3.4 6.23 2.312zm-116.17 53.93l-20.903-20.75a2.466 2.466 0 0 1 0-3.505l70.02-69.517c7.498-7.444 19.653-7.444 27.15 0l20.895 20.743c.975.97.975 2.54 0 3.507l-70.023 69.515c-3.605 3.578-8.426 5.55-13.574 5.55-5.142 0-9.96-1.968-13.565-5.542zm11.972-82.254l-21.85-21.692c-4.255-4.23-6.26-10.117-5.412-16.212.595-4.276 2.832-8.16 5.906-11.21L271.38 5.73a2.507 2.507 0 0 1 3.532 0l33.646 33.402c.975.968.975 2.54 0 3.507L274.14 76.8a2.508 2.508 0 0 1-3.53 0zm-4.148-86.26l-49.58 48.38a5.084 5.084 0 0 0-.02 7.278l39.02 38.37a7.574 7.574 0 0 1 .03 10.774l-38.61 38.38a5.088 5.088 0 0 0-.03 7.2l49.05 49.43a8.978 8.978 0 0 0 6.37 2.65h46.46c2.37 0 4.65-.936 6.33-2.605l96.99-96.33a5.08 5.08 0 0 0-.01-7.23L325.5-9.4a8.986 8.986 0 0 0-6.327-2.6h-46.44c-2.348 0-4.6.915-6.274 2.55z"}))))};s.propTypes={className:i.a.string,width:i.a.number},s.defaultProps={className:"",width:322},t.default=s},function(e,t,n){e.exports={description:"An image background that can be used as a sample image.\n",displayName:"FandomBackgroundImage",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"number"},required:!1,description:"Image width",defaultValue:{value:"322",computed:!1},tags:{},name:"width"}],doclets:{},tags:{},examples:n(358)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"",settings:{},evalInContext:a},{type:"markdown",content:"Custom width and className:"},{type:"code",content:"
\n\t\n
",settings:{},evalInContext:a}]},function(e,t,n){var r=n(360);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-fandom-content-well {\n box-sizing: border-box; }\n @media only screen and (max-width: 767px) {\n .wds-fandom-content-well {\n margin: 0 18px; } }\n @media only screen and (min-width: 768px) {\n .wds-fandom-content-well {\n margin: 0 auto; } }\n @media only screen and (min-width: 768px) and (max-width: 1023px) {\n .wds-fandom-content-well {\n width: 732px; } }\n @media only screen and (min-width: 1024px) and (max-width: 1279px) {\n .wds-fandom-content-well {\n width: 988px; } }\n @media only screen and (min-width: 1280px) {\n .wds-fandom-content-well {\n width: 1244px; } }\n",""])},function(e,t,n){e.exports={description:"FandomContentWell wraps `children` in `wds-content-well($use-xxlarge-breakpoint: false)` CSS mixin.\n",displayName:"FandomContentWell",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(362)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Open this example in the new page to see the difference:"},{type:"code",content:'\n\t
FandomContentWell
\n
',settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(364);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function Fieldset(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-fieldset ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){var r=n(365);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".wds-fieldset {\n background-color: #fff;\n border: 0;\n display: flex;\n flex-direction: column;\n margin-bottom: 6px;\n padding: 16px 0; }\n",""])},function(e,t,n){e.exports={description:"",displayName:"Fieldset",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},examples:n(367)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:'
\n\t\n\t\n
',settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(369);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FloatingButton(e){var t=e.className,n=e.href,r=e.children,a=_objectWithoutProperties(e,["className","href","children"]),i=["wds-floating-button",t].filter(function(e){return e}).join(" ");return n?o.a.createElement("a",_extends({href:n,className:i},a),r):o.a.createElement("button",_extends({className:i},a),r)};s.propTypes={children:i.a.node,className:i.a.string,disabled:i.a.bool,href:i.a.string,onClick:i.a.func},s.defaultProps={children:null,className:"",disabled:!1,href:null,onClick:function onClick(){}},t.default=s},function(e,t,n){var r=n(370);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-floating-button {\n align-items: center;\n background: #fff;\n border-radius: 50%;\n border: 0;\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.2);\n display: flex;\n height: 36px;\n justify-content: center;\n margin: 0;\n outline: none;\n padding: 0;\n transition-duration: 300ms;\n transition-property: box-shadow;\n width: 36px; }\n .wds-floating-button:not([disabled]), .wds-floating-button:not(.wds-is-disabled) {\n cursor: pointer; }\n .wds-floating-button:not([disabled]):hover, .wds-floating-button:not(.wds-is-disabled):hover {\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.4); }\n\n.wds-floating-button-group {\n display: inline-flex; }\n .wds-floating-button-group.wds-is-vertical {\n flex-flow: column; }\n .wds-floating-button-group:not(.wds-is-vertical) > .wds-floating-button:not(:first-child) {\n margin-left: 8px; }\n .wds-floating-button-group.wds-is-vertical > .wds-floating-button:not(:first-child) {\n margin-top: 8px; }\n",""])},function(e,t,n){e.exports={description:"Floating button (icons-only)\n",displayName:"FloatingButton",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"bool"},required:!1,description:"Disabled attribute for the `
",settings:{},evalInContext:a},{type:"markdown",content:"Different styles:"},{type:"code",content:"
\n\t\n\t\n\t\n\t\n
",settings:{},evalInContext:a},{type:"markdown",content:"Full width:"},{type:"code",content:"",settings:{},evalInContext:a}]},function(e,t,n){e.exports={description:"Button group component\n",displayName:"ButtonGroup",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(341)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Regular buttons:"},{type:"code",content:"\n\t\n\t\n\t\n\t\n",settings:{},evalInContext:a},{type:"markdown",content:"Secondary buttons:"},{type:"code",content:"\n\t\n\t\n\t\n\t\n",settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(343);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function ContentWell(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-content-well ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){var r=n(344);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-content-well {\n box-sizing: border-box; }\n @media only screen and (max-width: 767px) {\n .wds-content-well {\n margin: 0 18px; } }\n @media only screen and (min-width: 768px) {\n .wds-content-well {\n margin: 0 auto; } }\n @media only screen and (min-width: 768px) and (max-width: 1023px) {\n .wds-content-well {\n width: 732px; } }\n @media only screen and (min-width: 1024px) and (max-width: 1279px) {\n .wds-content-well {\n width: 988px; } }\n @media only screen and (min-width: 1280px) and (max-width: 1499px) {\n .wds-content-well {\n width: 1244px; } }\n @media only screen and (min-width: 1500px) {\n .wds-content-well {\n width: 1464px; } }\n",""])},function(e,t,n){e.exports={description:"ContentWell wraps `children` in `wds-content-well` CSS mixin.\n",displayName:"ContentWell",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(346)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Open this example in the new page to see the difference:"},{type:"code",content:'\n\t
ContentWell
\n
',settings:{},evalInContext:a}]},function(e,t,n){var r=n(348);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-dropdown {\n display: inline-block;\n position: relative; }\n .wds-dropdown__toggle {\n cursor: default;\n position: relative; }\n .wds-dropdown__content {\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n display: none;\n left: 50%;\n min-width: 70%;\n padding: 7px 0;\n position: absolute;\n top: 100%;\n transform: translateX(-50%);\n z-index: 1; }\n .wds-dropdown__content.wds-is-right-aligned {\n left: auto;\n right: 0;\n transform: none; }\n .wds-dropdown__content.wds-is-left-aligned {\n left: 0;\n transform: none; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list {\n background-image: radial-gradient(farthest-side at 50% 0, rgba(26, 26, 26, 0.12), transparent), radial-gradient(farthest-side at 50% 100%, rgba(26, 26, 26, 0.12), transparent);\n background-position: 0 0, 0 100%;\n background-repeat: no-repeat;\n background-size: 100% 9px;\n max-height: 270px;\n overflow-y: auto;\n position: relative;\n z-index: 1; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::after, .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::before {\n background-color: #fff;\n content: '';\n display: block;\n height: 30px;\n margin: 0 0 -30px;\n position: relative;\n z-index: -1; }\n .wds-dropdown__content:not(.wds-is-not-scrollable) .wds-list::after {\n background-color: #fff;\n margin: -29px 0 0; }\n .wds-dropdown__content.wds-is-not-scrollable .wds-list {\n position: relative; }\n .wds-dropdown__content .wds-list {\n padding: 0; }\n .wds-dropdown__content .wds-list > li {\n margin: 0 9px;\n padding-left: 9px;\n padding-right: 9px;\n white-space: nowrap; }\n .wds-dropdown__content .wds-list.wds-is-linked > li {\n padding: 0; }\n .wds-dropdown__content .wds-list.wds-is-linked > li > a {\n color: #39424d;\n padding-left: 9px;\n padding-right: 9px;\n text-decoration: none;\n transition-duration: 0.2s;\n transition-property: background-color, color; }\n .wds-dropdown__content .wds-list.wds-is-linked > li:hover > a:not(.wds-button), .wds-dropdown__content .wds-list.wds-is-linked > li.wds-is-selected > a:not(.wds-button) {\n background-color: rgba(0, 172, 172, 0.1);\n color: #00acac; }\n .wds-dropdown::before, .wds-dropdown::after {\n bottom: -1px;\n content: '';\n display: none;\n height: 0;\n left: 50%;\n pointer-events: none;\n position: absolute;\n width: 0;\n z-index: 2; }\n .wds-dropdown::after {\n border: 8px solid transparent;\n border-bottom-color: #fff;\n margin-left: -8px; }\n .wds-dropdown::before {\n border: 9px solid transparent;\n border-bottom-color: #ccc;\n margin-left: -9px; }\n .wds-dropdown.wds-is-active:not(.wds-no-chevron)::before, .wds-dropdown.wds-is-active:not(.wds-no-chevron)::after, .wds-dropdown:not(.wds-is-touch-device):hover:not(.wds-no-chevron)::before, .wds-dropdown:not(.wds-is-touch-device):hover:not(.wds-no-chevron)::after {\n display: block; }\n .wds-dropdown.wds-is-active .wds-dropdown__content, .wds-dropdown:not(.wds-is-touch-device):hover .wds-dropdown__content {\n display: inline-block; }\n .wds-dropdown.wds-is-active .wds-dropdown__toggle-chevron, .wds-dropdown:not(.wds-is-touch-device):hover .wds-dropdown__toggle-chevron {\n transform: rotate(180deg); }\n .wds-dropdown.wds-is-active.wds-has-shadow::before, .wds-dropdown.wds-is-active.wds-has-dark-shadow::before, .wds-dropdown:not(.wds-is-touch-device):hover.wds-has-shadow::before, .wds-dropdown:not(.wds-is-touch-device):hover.wds-has-dark-shadow::before {\n display: none; }\n .wds-dropdown.wds-has-shadow .wds-dropdown__content {\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.2); }\n .wds-dropdown.wds-has-dark-shadow .wds-dropdown__content {\n box-shadow: 0 0 20px 0 rgba(26, 26, 26, 0.3); }\n .wds-dropdown.wds-has-shadow .wds-dropdown__content, .wds-dropdown.wds-has-dark-shadow .wds-dropdown__content {\n border: 0; }\n .wds-dropdown.wds-is-flipped::before, .wds-dropdown.wds-is-flipped::after {\n bottom: unset;\n top: -1px; }\n .wds-dropdown.wds-is-flipped::before {\n border-bottom-color: transparent;\n border-top-color: #ccc; }\n .wds-dropdown.wds-is-flipped::after {\n border-bottom-color: transparent;\n border-top-color: #fff; }\n .wds-dropdown.wds-is-flipped .wds-dropdown__content {\n bottom: 100%;\n top: unset; }\n\n.wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 {\n margin-right: 0; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 > a {\n padding-right: 18px;\n display: flex;\n justify-content: space-between; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-chevron {\n transform: rotate(-90deg);\n margin-left: 18px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-sticked-to-parent {\n position: relative; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-sticked-to-parent .wds-dropdown-level-2__content {\n top: auto;\n bottom: -8px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-level-2__content {\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n display: none;\n left: 100%;\n padding: 7px 0;\n position: absolute;\n top: -8px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-level-2__content .wds-list.wds-is-linked > li > a {\n font-size: 12px; }\n .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2.wds-is-active .wds-dropdown-level-2__content, .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2:not(.wds-is-touch-device):hover .wds-dropdown-level-2__content {\n display: block; }\n",""])},function(e,t,n){e.exports={description:"Basic Dropdown component\n",displayName:"Dropdown",methods:[],props:[{type:{name:"node"},required:!0,description:"React Component to display as a dropdown toggle",tags:{},name:"toggle"},{type:{name:"bool"},required:!1,description:"Whether or nor not dropdown should automatically flip when it's near the bottom of the viewport",defaultValue:{value:"false",computed:!1},tags:{},name:"canFlip"},{type:{name:"node"},required:!1,description:"React Component to display as the Dropdown Content",defaultValue:{value:"null",computed:!1},tags:{},name:"children"},{type:{name:"bool"},required:!1,description:"Should dropdown content be scrollable",defaultValue:{value:"false",computed:!1},tags:{},name:"contentScrollable"},{type:{name:"bool"},required:!1,description:"Should dropdown content be left-aligned with the dropdown toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"dropdownLeftAligned"},{type:{name:"bool"},required:!1,description:"Should dropdown content be right-aligned with the dropdown toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"dropdownRightAligned"},{type:{name:"bool"},required:!1,description:"Whether or not dropdown should have a drop shadow (darker than the one produced by hasShadow)",defaultValue:{value:"false",computed:!1},tags:{},name:"hasDarkShadow"},{type:{name:"bool"},required:!1,description:"Whether or not dropdown should have a slight drop shadow",defaultValue:{value:"false",computed:!1},tags:{},name:"hasShadow"},{type:{name:"enum",value:[{value:"'dropdown-tiny'",computed:!1},{value:"'menu-control-tiny'",computed:!1}]},required:!1,description:"The icon to use for the dropdown chevron",defaultValue:{value:"'menu-control-tiny'",computed:!1},tags:{},name:"iconName"},{type:{name:"bool"},required:!1,description:"is active",defaultValue:{value:"false",computed:!1},tags:{},name:"isActive"},{type:{name:"bool"},required:!1,description:"Is it a nested dropdown",defaultValue:{value:"false",computed:!1},tags:{},name:"isLevel2"},{type:{name:"bool"},required:!1,description:"if the top of nested dropdown content should be positioned at the same height as toggle",defaultValue:{value:"false",computed:!1},tags:{},name:"isStickedToParent"},{type:{name:"bool"},required:!1,description:"Should chevron on the top of dropdown content be hidden",defaultValue:{value:"false",computed:!1},tags:{},name:"noChevron"},{type:{name:"func"},required:!1,description:"HTML classes to add to toggle",defaultValue:{value:"null",computed:!1},tags:{},name:"onClose"},{type:{name:"shape",value:{href:{name:"string",required:!1}}},required:!1,description:"HTML attributes to add to toggle",defaultValue:{value:"{}",computed:!1},tags:{},name:"toggleAttrs"},{type:{name:"string"},required:!1,description:"HTML classes to add to toggle",defaultValue:{value:"''",computed:!1},tags:{},name:"toggleClassName"}],doclets:{},tags:{},examples:n(350)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"\n

I am a text inside dropdown!

\n
",settings:{},evalInContext:a},{type:"markdown",content:"Dropdown using dropdown-tiny chevron:"},{type:"code",content:'\n

I am a text inside dropdown!

\n
',settings:{},evalInContext:a},{type:"markdown",content:"Nested dropdown:"},{type:"code",content:'\n

I am a text inside dropdown!

\n \n

I am a text inside dropdown!

\n

I am a text inside dropdown!

\n
\n

I am a text inside dropdown!

\n
',settings:{},evalInContext:a}]},function(e,t,n){var r=n(352);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".expandable-text__expand {\n /* unstyle button */\n background: none;\n border: 0;\n cursor: pointer;\n display: inline;\n font: inherit;\n line-height: inherit;\n margin: 0;\n padding: 0; }\n .expandable-text__expand:active {\n outline: 0; }\n",""])},function(e,t,n){e.exports={description:"ExpandableText component can be used to temporarily limit text showed to the user.\nIt has a button used to fully expand the text.\nIf the source text is shorter than the limit the button do not show.\n\nBoth button label and string used to ellipsis has to be configured.\nButton and the text itself can be syled with classes passed to the component.\n",displayName:"ExpandableText",methods:[],props:[{type:{name:"number"},required:!0,description:"Additional class name",tags:{},name:"characterLimit"},{type:{name:"string"},required:!0,description:"Label used on the expand button",tags:{},name:"expandLabel"},{type:{name:"string"},required:!0,description:"Full text to display",tags:{},name:"text"},{type:{name:"string"},required:!1,description:"Character limit",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"string"},required:!1,description:"Ellipsis (defaults to `…`)",defaultValue:{value:"'\\u2026'",computed:!1},tags:{},name:"ellipsis"},{type:{name:"string"},required:!1,description:"Additional class name for the expand button",defaultValue:{value:"''",computed:!1},tags:{},name:"expandClassName"}],doclets:{},tags:{},examples:n(354)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"",settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FandomBackgroundImage(e){var t=e.className,n=e.width,r=_objectWithoutProperties(e,["className","width"]),a=Math.floor(9*n/16);return o.a.createElement("svg",_extends({className:t,width:n,height:a,viewBox:"0 0 322 182",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r),o.a.createElement("defs",null,o.a.createElement("path",{id:"fandom-background-image-a",d:"M0 0h322v181.125H0z"})),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("mask",{id:"fandom-background-image-b",fill:"#fff"},o.a.createElement("use",{xlinkHref:"#fandom-background-image-a"})),o.a.createElement("use",{fill:"#00D6D6",xlinkHref:"#fandom-background-image-a"}),o.a.createElement("g",{fill:"#002A32",opacity:".07",mask:"url(#fandom-background-image-b)"},o.a.createElement("path",{d:"M220.746 101.305c0 1.17-.457 2.29-1.27 3.122l-53.435 54.578c-.9.908-1.81 1.315-2.94 1.315-1.17 0-2.2-.444-3.07-1.32l-3.77-3.607a1.695 1.695 0 0 1-.03-2.402l61.67-62.86c1.05-1.07 2.86-.32 2.86 1.19v10zm-68.525 41.157l-3.05 2.783a2.52 2.52 0 0 1-3.48-.078l-40.66-40.454a5.465 5.465 0 0 1-1.6-3.86v-7.56c0-2.722 3.26-4.094 5.19-2.18l43.17 42.947c.75.756 2.02 2.315 2.02 4.2 0 1.2-.27 2.902-1.56 4.202zm-36.34-78.29l13.99-14.086a1.66 1.66 0 0 1 2.36 0l46.85 47.188c5.02 5.053 5.02 13.244 0 18.296l-13.98 14.082a1.66 1.66 0 0 1-2.36 0l-46.84-47.19c-2.41-2.43-3.74-5.678-3.74-9.148 0-3.465 1.33-6.712 3.74-9.14zm55.43 8.07l14.62-14.726c2.85-2.867 6.82-4.218 10.93-3.647 2.88.4 5.5 1.9 7.56 3.98l14.81 14.91c.65.65.65 1.72 0 2.38L196.7 97.81a1.663 1.663 0 0 1-2.363 0L171.31 74.62a1.692 1.692 0 0 1 0-2.38zm58.14-2.797l-32.61-33.408a3.422 3.422 0 0 0-4.9-.01l-25.86 26.298a5.097 5.097 0 0 1-7.26.02l-25.86-26.02a3.424 3.424 0 0 0-4.85-.018L94.8 69.367a6.024 6.024 0 0 0-1.8 4.296v31.307c0 1.6.63 3.135 1.755 4.267l64.92 65.363a3.425 3.425 0 0 0 4.87-.002l64.862-65.363a6.055 6.055 0 0 0 1.753-4.265V73.673c0-1.58-.617-3.1-1.718-4.228z"}),o.a.createElement("path",{d:"M248.557 243.388a6.624 6.624 0 0 1-1.886 4.632l-79.28 80.987c-1.34 1.347-2.69 1.95-4.37 1.95-1.73 0-3.26-.66-4.55-1.958l-5.59-5.36a2.517 2.517 0 0 1-.06-3.57l91.51-93.29c1.56-1.59 4.25-.48 4.25 1.75v14.83zm-101.68 61.07l-4.536 4.13a3.735 3.735 0 0 1-5.16-.115l-60.34-60.03a8.074 8.074 0 0 1-2.37-5.727V231.5c0-4.04 4.84-6.077 7.69-3.237l64.05 63.727c1.12 1.123 3 3.436 3 6.232 0 1.78-.4 4.308-2.31 6.237zm-53.93-116.17l20.752-20.903a2.46 2.46 0 0 1 3.5 0l69.51 70.02c7.44 7.5 7.44 19.653 0 27.15l-20.74 20.895c-.97.975-2.54.975-3.51 0l-69.51-70.022c-3.58-3.606-5.55-8.426-5.55-13.575 0-5.142 1.97-9.96 5.54-13.565zm82.255 11.972l21.692-21.85c4.23-4.254 10.117-6.26 16.212-5.41 4.276.594 8.16 2.83 11.21 5.905l21.965 22.125c.97.975.97 2.555 0 3.532l-33.4 33.648c-.96.973-2.54.973-3.5 0l-34.16-34.42a2.505 2.505 0 0 1 0-3.53zm86.26-4.148l-48.38-49.573a5.084 5.084 0 0 0-7.278-.02l-38.37 39.02a7.565 7.565 0 0 1-10.774.03l-38.38-38.62a5.088 5.088 0 0 0-7.2-.03l-49.43 49.06a8.978 8.978 0 0 0-2.65 6.37v46.45c0 2.372.936 4.65 2.605 6.33l96.33 96.99a5.088 5.088 0 0 0 7.23 0l96.244-96.99a9.015 9.015 0 0 0 2.6-6.33v-46.44c0-2.35-.92-4.6-2.55-6.277zM74.452-61.735c0-1.733.68-3.397 1.887-4.63l79.28-80.988c1.34-1.347 2.69-1.95 4.37-1.95 1.73 0 3.26.66 4.55 1.958l5.59 5.352c1.01.963 1.03 2.57.06 3.565l-91.5 93.286c-1.56 1.59-4.25.477-4.25-1.755v-14.838zm101.68-61.07l4.537-4.13a3.735 3.735 0 0 1 5.16.115l60.34 60.03a8.078 8.078 0 0 1 2.37 5.728v11.215c0 4.04-4.84 6.077-7.69 3.237l-64.05-63.727c-1.12-1.123-3-3.436-3-6.232 0-1.78.4-4.3 2.31-6.23zm53.93 116.17L209.31 14.268a2.464 2.464 0 0 1-3.504 0l-69.517-70.02c-7.45-7.498-7.45-19.653 0-27.15l20.74-20.895a2.46 2.46 0 0 1 3.5 0l69.51 70.023c3.58 3.605 5.55 8.426 5.55 13.574 0 5.142-1.97 9.96-5.54 13.565zM147.81-18.607l-21.692 21.85c-4.23 4.255-10.117 6.26-16.212 5.412-4.276-.595-8.16-2.832-11.21-5.906L76.728-19.38a2.507 2.507 0 0 1 0-3.532l33.403-33.646a2.472 2.472 0 0 1 3.51 0l34.17 34.418c.97.976.97 2.557 0 3.53zM61.55-14.46l48.38 49.576a5.086 5.086 0 0 0 7.278.013l38.37-39.02a7.556 7.556 0 0 1 10.774-.03l38.38 38.61a5.079 5.079 0 0 0 7.2.02l49.43-49.06a8.984 8.984 0 0 0 2.65-6.38v-46.45a8.97 8.97 0 0 0-2.605-6.33l-96.33-96.99a5.088 5.088 0 0 0-7.23 0L61.6-73.5a8.986 8.986 0 0 0-2.6 6.327v46.44c0 2.348.915 4.6 2.55 6.274zM8.612 177.558a6.624 6.624 0 0 1-4.632-1.886l-80.987-79.285c-1.347-1.338-1.95-2.688-1.95-4.37 0-1.734.66-3.266 1.958-4.557l5.36-5.59a2.515 2.515 0 0 1 3.57-.058l93.29 91.505c1.59 1.558.48 4.243-1.75 4.243H8.62zm-61.07-101.68l-4.13-4.536a3.74 3.74 0 0 1 .115-5.164L3.557 5.83a8.074 8.074 0 0 1 5.726-2.378H20.5c4.04 0 6.077 4.837 3.237 7.69L-39.99 75.2c-1.123 1.113-3.436 2.993-6.232 2.993-1.78 0-4.308-.402-6.237-2.317zm116.17-53.93L84.615 42.7a2.464 2.464 0 0 1 0 3.504l-70.02 69.517c-7.5 7.45-19.653 7.45-27.15 0L-33.45 94.98a2.468 2.468 0 0 1 0-3.507L36.572 21.96c3.606-3.58 8.426-5.55 13.575-5.55 5.142 0 9.96 1.967 13.565 5.54zM51.74 104.202l21.85 21.692c4.254 4.23 6.26 10.117 5.41 16.212-.594 4.276-2.83 8.16-5.905 11.21L50.97 175.282c-.975.97-2.555.97-3.532 0L13.79 141.878a2.47 2.47 0 0 1 0-3.507l34.42-34.16a2.505 2.505 0 0 1 3.53 0zm4.148 86.26l49.573-48.38c2.05-2 2.06-5.272.02-7.278l-39.02-38.37a7.565 7.565 0 0 1-.03-10.774l38.62-38.38c2-1.987 2.01-5.202.03-7.2L56.01-9.35A8.997 8.997 0 0 0 49.63-12H3.174a8.974 8.974 0 0 0-6.33 2.605l-96.99 96.33a5.086 5.086 0 0 0 .002 7.23l96.99 96.244a9.009 9.009 0 0 0 6.328 2.6h46.44a9 9 0 0 0 6.274-2.55zM313.735 3.452c1.733 0 3.397.68 4.63 1.887l80.988 79.28c1.347 1.34 1.95 2.69 1.95 4.37 0 1.73-.66 3.26-1.958 4.55l-5.352 5.59a2.511 2.511 0 0 1-3.565.06l-93.286-91.5c-1.59-1.56-.477-4.25 1.755-4.25h14.838zm61.07 101.68l4.13 4.537a3.735 3.735 0 0 1-.115 5.16l-60.03 60.34a8.078 8.078 0 0 1-5.728 2.37h-11.215c-4.04 0-6.077-4.84-3.237-7.69l63.727-64.06c1.123-1.12 3.436-3 6.232-3 1.78 0 4.3.4 6.23 2.312zm-116.17 53.93l-20.903-20.75a2.466 2.466 0 0 1 0-3.505l70.02-69.517c7.498-7.444 19.653-7.444 27.15 0l20.895 20.743c.975.97.975 2.54 0 3.507l-70.023 69.515c-3.605 3.578-8.426 5.55-13.574 5.55-5.142 0-9.96-1.968-13.565-5.542zm11.972-82.254l-21.85-21.692c-4.255-4.23-6.26-10.117-5.412-16.212.595-4.276 2.832-8.16 5.906-11.21L271.38 5.73a2.507 2.507 0 0 1 3.532 0l33.646 33.402c.975.968.975 2.54 0 3.507L274.14 76.8a2.508 2.508 0 0 1-3.53 0zm-4.148-86.26l-49.58 48.38a5.084 5.084 0 0 0-.02 7.278l39.02 38.37a7.574 7.574 0 0 1 .03 10.774l-38.61 38.38a5.088 5.088 0 0 0-.03 7.2l49.05 49.43a8.978 8.978 0 0 0 6.37 2.65h46.46c2.37 0 4.65-.936 6.33-2.605l96.99-96.33a5.08 5.08 0 0 0-.01-7.23L325.5-9.4a8.986 8.986 0 0 0-6.327-2.6h-46.44c-2.348 0-4.6.915-6.274 2.55z"}))))};s.propTypes={className:i.a.string,width:i.a.number},s.defaultProps={className:"",width:322},t.default=s},function(e,t,n){e.exports={description:"An image background that can be used as a sample image.\n",displayName:"FandomBackgroundImage",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"number"},required:!1,description:"Image width",defaultValue:{value:"322",computed:!1},tags:{},name:"width"}],doclets:{},tags:{},examples:n(357)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:"",settings:{},evalInContext:a},{type:"markdown",content:"Custom width and className:"},{type:"code",content:"
\n\t\n
",settings:{},evalInContext:a}]},function(e,t,n){var r=n(359);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-fandom-content-well {\n box-sizing: border-box; }\n @media only screen and (max-width: 767px) {\n .wds-fandom-content-well {\n margin: 0 18px; } }\n @media only screen and (min-width: 768px) {\n .wds-fandom-content-well {\n margin: 0 auto; } }\n @media only screen and (min-width: 768px) and (max-width: 1023px) {\n .wds-fandom-content-well {\n width: 732px; } }\n @media only screen and (min-width: 1024px) and (max-width: 1279px) {\n .wds-fandom-content-well {\n width: 988px; } }\n @media only screen and (min-width: 1280px) {\n .wds-fandom-content-well {\n width: 1244px; } }\n",""])},function(e,t,n){e.exports={description:"FandomContentWell wraps `children` in `wds-content-well($use-xxlarge-breakpoint: false)` CSS mixin.\n",displayName:"FandomContentWell",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},tags:{},examples:n(361)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Open this example in the new page to see the difference:"},{type:"code",content:'\n\t
FandomContentWell
\n
',settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(363);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function Fieldset(e){var t=e.className,n=e.children,r=_objectWithoutProperties(e,["className","children"]);return o.a.createElement("div",_extends({className:"wds-fieldset ".concat(t)},r),n)};s.propTypes={children:i.a.node,className:i.a.string},s.defaultProps={children:null,className:""},t.default=s},function(e,t,n){var r=n(364);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".wds-fieldset {\n background-color: #fff;\n border: 0;\n display: flex;\n flex-direction: column;\n margin-bottom: 6px;\n padding: 16px 0; }\n",""])},function(e,t,n){e.exports={description:"",displayName:"Fieldset",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],doclets:{},examples:n(366)}},function(e,t,n){var r={react:n(0)},o=n(2).bind(null,r),a=n(3).bind(null,"var React = require('react');",o);e.exports=[{type:"markdown",content:"Defaults:"},{type:"code",content:'
\n\t\n\t\n
',settings:{},evalInContext:a}]},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a);n(368);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function FloatingButton(e){var t=e.className,n=e.href,r=e.children,a=_objectWithoutProperties(e,["className","href","children"]),i=["wds-floating-button",t].filter(function(e){return e}).join(" ");return n?o.a.createElement("a",_extends({href:n,className:i},a),r):o.a.createElement("button",_extends({className:i},a),r)};s.propTypes={children:i.a.node,className:i.a.string,disabled:i.a.bool,href:i.a.string,onClick:i.a.func},s.defaultProps={children:null,className:"",disabled:!1,href:null,onClick:function onClick(){}},t.default=s},function(e,t,n){var r=n(369);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n/**\n* Implemenation taken from http://www.antimath.info/css/sass-sqrt-function/\n*/\n/**\n* Implementation taken from http://alienryderflex.com/hsp.html\n*/\n.wds-floating-button {\n align-items: center;\n background: #fff;\n border-radius: 50%;\n border: 0;\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.2);\n display: flex;\n height: 36px;\n justify-content: center;\n margin: 0;\n outline: none;\n padding: 0;\n transition-duration: 300ms;\n transition-property: box-shadow;\n width: 36px; }\n .wds-floating-button:not([disabled]), .wds-floating-button:not(.wds-is-disabled) {\n cursor: pointer; }\n .wds-floating-button:not([disabled]):hover, .wds-floating-button:not(.wds-is-disabled):hover {\n box-shadow: 0 0 10px 0 rgba(26, 26, 26, 0.4); }\n\n.wds-floating-button-group {\n display: inline-flex; }\n .wds-floating-button-group.wds-is-vertical {\n flex-flow: column; }\n .wds-floating-button-group:not(.wds-is-vertical) > .wds-floating-button:not(:first-child) {\n margin-left: 8px; }\n .wds-floating-button-group.wds-is-vertical > .wds-floating-button:not(:first-child) {\n margin-top: 8px; }\n",""])},function(e,t,n){e.exports={description:"Floating button (icons-only)\n",displayName:"FloatingButton",methods:[],props:[{type:{name:"string"},required:!1,description:"Additional class name",defaultValue:{value:"''",computed:!1},tags:{},name:"className"},{type:{name:"bool"},required:!1,description:"Disabled attribute for the `