From 07bf3b7ac4320bca2c325e9bc2c5d81fae28e5dd Mon Sep 17 00:00:00 2001 From: Ricky Vetter Date: Wed, 21 Feb 2018 03:24:52 -0800 Subject: [PATCH] clean up warnings and remove rebase dep --- bsconfig.json | 2 +- docs/Popup.bundle.js | 8 ++++---- package.json | 5 ++--- src/extension/background.re | 8 +++----- src/extension/common/protocol.re | 8 +++++--- src/extension/common/vendor/codeMirror.re | 8 ++++---- src/extension/content/convert/detect.re | 2 +- src/extension/content/convert/retrieve.re | 4 ++-- src/extension/content/convertPage.re | 8 +++----- src/extension/page.re | 6 ++---- src/extension/popup.re | 19 ++++++++++++------- src/extension/popup/popupCommon.re | 4 +--- src/refmt/refmt2.re | 1 - yarn.lock | 6 +----- 14 files changed, 41 insertions(+), 48 deletions(-) diff --git a/bsconfig.json b/bsconfig.json index 478dde6..b5e0454 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -3,7 +3,7 @@ "name" : "reason-tools", "version": "0.0.0", "reason" : {"react-jsx" : 2}, - "bs-dependencies": ["reason-react", "rebase"], + "bs-dependencies": ["reason-react"], "sources": { "dir": "src", "subdirs": [ diff --git a/docs/Popup.bundle.js b/docs/Popup.bundle.js index 542ff5c..93a3d92 100644 --- a/docs/Popup.bundle.js +++ b/docs/Popup.bundle.js @@ -1,9 +1,9 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=34)}([function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return p});var r=["Out_of_memory",0],i=["Sys_error",-1],o=["Failure",-2],a=["Invalid_argument",-3],l=["End_of_file",-4],u=["Division_by_zero",-5],s=["Not_found",-6],c=["Match_failure",-7],f=["Stack_overflow",-8],d=["Sys_blocked_io",-9],p=["Assert_failure",-10],h=["Undefined_recursive_module",-11];r.tag=248,i.tag=248,o.tag=248,a.tag=248,l.tag=248,u.tag=248,s.tag=248,c.tag=248,f.tag=248,d.tag=248,p.tag=248,h.tag=248},function(e,t,n){"use strict";function r(e,t){for(;;){var n=t,i=e,o=i.length,a=o||1,l=n.length,u=a-l|0;if(u){if(u<0){t=d.b(n,a,0|-u),e=i.apply(null,d.b(n,0,a));continue}return function(e,t){return function(n){return r(e,t.concat([n]))}}(i,n)}return i.apply(null,n)}}function i(e,t,n){if(n>7||n<0)return r(e,[t]);switch(n){case 0:case 1:return e(t);case 2:return function(n){return e(t,n)};case 3:return function(n,r){return e(t,n,r)};case 4:return function(n,r,i){return e(t,n,r,i)};case 5:return function(n,r,i,o){return e(t,n,r,i,o)};case 6:return function(n,r,i,o,a){return e(t,n,r,i,o,a)};case 7:return function(n,r,i,o,a,l){return e(t,n,r,i,o,a,l)}}}function o(e,t){var n=e.length;return 1===n?e(t):i(e,t,n)}function a(e,t,n,i){if(i>7||i<0)return r(e,[t,n]);switch(i){case 0:case 1:return r(e(t),[n]);case 2:return e(t,n);case 3:return function(r){return e(t,n,r)};case 4:return function(r,i){return e(t,n,r,i)};case 5:return function(r,i,o){return e(t,n,r,i,o)};case 6:return function(r,i,o,a){return e(t,n,r,i,o,a)};case 7:return function(r,i,o,a,l){return e(t,n,r,i,o,a,l)}}}function l(e,t,n){var r=e.length;return 2===r?e(t,n):a(e,t,n,r)}function u(e,t,n,i,o){var a=0;if(o>7||o<0)return r(e,[t,n,i]);switch(o){case 0:case 1:a=1;break;case 2:return r(e(t,n),[i]);case 3:return e(t,n,i);case 4:return function(r){return e(t,n,i,r)};case 5:return function(r,o){return e(t,n,i,r,o)};case 6:return function(r,o,a){return e(t,n,i,r,o,a)};case 7:return function(r,o,a,l){return e(t,n,i,r,o,a,l)}}return 1===a?r(e(t),[n,i]):void 0}function s(e,t,n,r){var i=e.length;return 3===i?e(t,n,r):u(e,t,n,r,i)}function c(e,t,n,i,o,a,l){var u=0;if(l>7||l<0)return r(e,[t,n,i,o,a]);switch(l){case 0:case 1:u=1;break;case 2:return r(e(t,n),[i,o,a]);case 3:return r(e(t,n,i),[o,a]);case 4:return r(e(t,n,i,o),[a]);case 5:return e(t,n,i,o,a);case 6:return function(r){return e(t,n,i,o,a,r)};case 7:return function(r,l){return e(t,n,i,o,a,r,l)}}return 1===u?r(e(t),[n,i,o,a]):void 0}function f(e,t,n,r,i,o){var a=e.length;return 5===a?e(t,n,r,i,o):c(e,t,n,r,i,o,a)}n.d(t,"b",function(){return o}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return f});var d=n(10)},function(e,t,n){"use strict";e.exports=n(75)},function(e,t,n){"use strict";function r(){return 0}function i(){return 0}function o(){return 0}function a(){return 0}function l(){return 1}function u(e){return e[2]}function s(){return"RenderNotImplemented"}function c(){return 0}function f(e,t){return 0}function d(){return 0}function p(e,t,n){var r=e.reasonProps;if(null==r){if(t)return[b.b(t[0],e)];throw[x.a,"A JS component called the Reason component "+n+" which didn't implement the JS->Reason React props conversion."]}return r}function h(e){return C.a({displayName:e,subscriptions:null,self:function(e,t){var n=this;return[n.handleMethod,n.reduceMethod,e,t,n.sendMethod]},transitionNextTotalState:function(e,t){if("number"==typeof t)return e;switch(0|t.tag){case 0:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:e.sideEffects};case 1:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:e.sideEffects};case 2:return{reasonState:e.reasonState,reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:[t[0],e.sideEffects]};case 3:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:[t[1],e.sideEffects]};case 4:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:[t[1],e.sideEffects]}}},getInitialState:function(){var t=this,n=p(t.props,t.jsPropsToReason,e);return{reasonState:b.b(n[0][10],0),reasonStateVersion:1,reasonStateVersionUsedToComputeSubelements:1,sideEffects:0}},componentDidMount:function(){var t=this,n=this,i=p(n.props,n.jsPropsToReason,e),o=i[0],a=n.state,l=a.reasonState,u=t.self(l,o[11]);if(o[13]!==d){var s=y.a(function(e){var t=e[1],n=b.b(e[0],0);return function(){return b.b(t,n)}},b.b(o[13],u));t.subscriptions=s}if(o[4]!==r){var c=b.b(o[4],u),f=t.transitionNextTotalState(a,c);return f.reasonStateVersion!==a.reasonStateVersion?n.setState(f):0}return 0},componentDidUpdate:function(t,n){var r=this,i=this,a=i.state,l=a.reasonState,u=i.props,s=p(u,i.jsPropsToReason,e),c=s[0];if(c[5]!==o){var f=+(t===u),d=0!==f?s:p(t,i.jsPropsToReason,e),h=n.reasonState,g=r.self(l,c[11]),m=g[0],v=g[1],y=d[0][11],w=g[4],x=[m,v,h,y,w];return b.b(c[5],[x,g])}return 0},componentWillUnmount:function(){var t=this,n=this,r=p(n.props,n.jsPropsToReason,e),i=r[0],o=n.state,l=o.reasonState;i[6]!==a&&b.b(i[6],t.self(l,i[11]));var u=t.subscriptions;return null==u?0:y.b(function(e){return b.b(e,0)},y.c(u))},componentWillUpdate:function(t,n){var r=this,o=this,a=p(t,o.jsPropsToReason,e),l=a[0];if(l[7]!==i){var u=o.props,s=+(t===u),c=0!==s?a:p(u,o.jsPropsToReason,e),f=o.state,d=f.reasonState,h=n.reasonState,g=r.self(h,l[11]),m=g[0],v=g[1],y=c[0][11],w=g[4],x=[m,v,d,y,w];return b.b(l[7],[x,g])}return 0},componentWillReceiveProps:function(t){var n=this,r=this,i=p(t,r.jsPropsToReason,e),o=i[0];if(o[3]!==u){var a=r.props,l=+(t===a),s=0!==l?i:p(a,r.jsPropsToReason,e),c=s[0];return r.setState(function(e,t){var r=e.reasonState,i=e.reasonStateVersion,a=n.self(r,c[11]),l=b.b(o[3],a),u=+(l!==r),s=0!==u?i+1|0:i;return s!==i?{reasonState:l,reasonStateVersion:s,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:l.sideEffects}:e})}return 0},shouldComponentUpdate:function(t,n,r){var i,o=this,a=this,u=a.props,s=+(t!==u),c=p(a.props,a.jsPropsToReason,e),f=+(t===u),d=0!==f?c:p(t,a.jsPropsToReason,e),h=d[0],g=n.reasonStateVersion,m=n.reasonStateVersionUsedToComputeSubelements,v=+(m!==g),w=s||v,x=n.reasonState,C=o.self(x,h[11]);if(w&&h[8]!==l){var k=a.state,S=k.reasonState,T=C[0],E=C[1],M=c[0][11],L=C[4],N=[T,E,S,M,L];i=b.b(h[8],[N,C])}else i=w;n.reasonStateVersionUsedToComputeSubelements=g;var O=y.c(n.sideEffects);return 0!==O&&(y.b(function(e){return b.b(e,C)},O),a.setState(function(e,t){var r=y.d(e.sideEffects)-y.d(n.sideEffects)|0,i=function(e,t,n){for(;;){var r=n,i=t,o=e;if(r){if(i>0){n=r[1],t=i-1|0,e=[r[0],o];continue}return y.c(o)}return y.c(o)}}(0,r,e.sideEffects);return{reasonState:e.reasonState,reasonStateVersion:e.reasonStateVersion,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:i}})),i},handleMethod:function(t){var n=this,r=this;return function(i){var o=r.state,a=o.reasonState,l=p(r.props,r.jsPropsToReason,e);return b.d(t,i,n.self(a,l[0][11]))}},updateMethod:function(t){var n=this,r=this;return function(i){var o=r.state,a=o.reasonState,l=p(r.props,r.jsPropsToReason,e),u=b.d(t,i,n.self(a,l[0][11]));if(u){var s=n.transitionNextTotalState(o,u);return s.reasonStateVersion!==o.reasonStateVersion?r.setState(s):0}return k}},sendMethod:function(t){var n=this,r=this,i=p(r.props,r.jsPropsToReason,e),o=i[0];if(o[12]!==f){var a=b.b(o[12],t);return r.setState(function(e,t){var r=e.reasonState,i=b.b(a,r);if(i){var o=n.transitionNextTotalState(e,i);return o.reasonStateVersion!==e.reasonStateVersion?o:k}return k})}return 0},reduceMethod:function(e,t){return this.sendMethod(b.b(e,t))},render:function(){var t=this,n=this,r=p(n.props,n.jsPropsToReason,e),i=r[0],o=n.state,a=o.reasonState;return b.b(i[9],t.self(a,i[11]))}})}function g(e){return[e,h(e),[0],u,r,o,a,i,l,s,c,0,f,d,0]}function m(e,t,n){var r=e?e[0]:void 0,i=t?t[0]:void 0,o=[n],a=n[14];return a?b.d(a[0],r,i):w.createElement(n[1],{key:r,ref:i,reasonProps:o})}function v(e,t,n){var r=[function(r,i){var o=e,a=t,l=n,u=r,s=i,c=Object.assign(Object.assign({},a),{ref:s,key:u}),f=[o,c].concat(l);return w.createElement.apply(null,f)}],i=E.slice();return i[14]=r,i}n.d(t,"c",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"a",function(){return m}),n.d(t,"d",function(){return v});var y=n(9),b=(n(15),n(1)),w=n(2),x=(n.n(w),n(0)),C=n(77),k=null,S=g,T=g,E=g("interop")},function(e,t,n){"use strict";function r(e,t){return t.tag=e,t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(){return a[0]+=1,a[0]}function i(e){var t=r(0),n=[e,t];return n.tag=248,n}function o(e){if(void 0===e)return 0;if(248===e.tag)return 1;var t=e[0];return void 0!==t?+(248===t.tag):0}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var a=[0]},function(e,t,n){"use strict";function r(e){return(255&e)<<24|(65280&e)<<8|(16711680&e)>>>8|(4278190080&e)>>>24}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var i=(n(0),Math.imul||function(e,t){return t|=0,((e>>16)*t<<16)+(65535&e)*t|0})},function(e,t,n){"use strict";function r(e,t){return et?e:t}n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"c",function(){return a});var l=r},function(e,t,n){"use strict";function r(e){if(e<0)throw[c.a,"String.create"];return new Array(e)}function i(e,t,n,r){if(n>0){for(var i=t,o=(n+t|0)-1|0;i<=o;++i)e[i]=r;return 0}return 0}function o(e,t,n,r,i){if(i>0){var o=e.length-t|0;if(i<=o){for(var a=0,l=i-1|0;a<=l;++a)n[r+a|0]=e.charCodeAt(t+a|0);return 0}for(var u=0,s=o-1|0;u<=s;++u)n[r+u|0]=e.charCodeAt(t+u|0);for(var c=o,f=i-1|0;c<=f;++c)n[r+c|0]=0;return 0}return 0}function a(e,t,n,r,i){if(i>0){if(e===n){var o=e,a=t,l=r,u=i;if(ac?c:s,d=f;d>=0;--d)o[l+d|0]=o[a+d|0];return 0}if(a>l){for(var p=(o.length-a|0)-1|0,h=u-1|0,g=p>h?h:p,m=0;m<=g;++m)o[l+m|0]=o[a+m|0];return 0}return 0}var v=e.length-t|0;if(i<=v){for(var y=0,b=i-1|0;y<=b;++y)n[r+y|0]=e[t+y|0];return 0}for(var w=0,x=v-1|0;w<=x;++w)n[r+w|0]=e[t+w|0];for(var C=v,k=i-1|0;C<=k;++C)n[r+C|0]=0;return 0}return 0}function l(e){for(var t=e.length,n=new Array(t),r=0,i=t-1|0;r<=i;++r)n[r]=e.charCodeAt(r);return n}function u(e){var t=e,n=e.length,r="",i=n;if(n<=4096&&n===t.length)return String.fromCharCode.apply(null,t);for(var o=0;i>0;){var l=i<1024?i:1024,u=new Array(l);a(t,o,u,0,l),r+=String.fromCharCode.apply(null,u),i=i-l|0,o=o+l|0}return r}function s(e,t){if(t<0||t>=e.length)throw[c.a,"index out of bounds"];return e.charCodeAt(t)}n.d(t,"e",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s});var c=n(0)},function(e,t,n){"use strict";function r(e){for(var t=0,n=e;;){var r=n,i=t;if(!r)return i;n=r[1],t=i+1|0}}function i(e,t){for(;;){var n=t,r=e;if(!r)return n;t=[r[0],n],e=r[1]}}function o(e){return i(e,0)}function a(e,t){return t?[s.b(e,t[0]),a(e,t[1])]:0}function l(e,t){for(;;){var n=t;if(!n)return 0;s.b(e,n[0]),t=n[1]}}function u(e){return function(t){for(var n=0,r=t;;){var o=r,a=n;if(!o)return i(a,0);var l=o[1],u=o[0];s.b(e,u)?(r=l,n=[u,a]):r=l}}}n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return f});var s=n(1),c=(n(16),n(49)),f=(n(0),c.a,u)},function(e,t,n){"use strict";function r(e,t,n){for(var r=new Array(n),i=0,o=t;i=e.length)throw[f.a,"index out of bounds"];return e[t]=n,0}function u(e,t){if(t<0||t>=e.length)throw[f.a,"index out of bounds"];return e[t]}function s(e,t){for(var n=new Array(e),r=0,i=e-1|0;r<=i;++r)n[r]=t;return n}function c(e,t,n,r,i){if(r<=t){for(var o=0,a=i-1|0;o<=a;++o)n[o+r|0]=e[o+t|0];return 0}for(var l=i-1|0;l>=0;--l)n[l+r|0]=e[l+t|0];return 0}n.d(t,"b",function(){return r}),n.d(t,"f",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return l});var f=n(0)},function(e,t,n){!function(t,n){e.exports=function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}function d(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function h(e){for(;$a.length<=e;)$a.push(g($a)+" ");return $a[e]}function g(e){return e[e.length-1]}function m(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||qa.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&w(e))||t.test(e):w(e)}function C(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Ya.test(e)}function S(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function E(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+Va+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),ya&&ba<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),wa||ha&&Na||(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,n.init(o)}function M(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 i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?I(n,M(e,n).text.length):B(t,M(e,t.line).text.length)}function B(e,t){var n=e.ch;return null==n||n>t?I(e.line,t):n<0?I(e.line,0):e}function j(e,t){for(var n=[],r=0;r=t:o.to>t);(r||(r=[])).push(new $(a,o.from,u?null:o.to))}}return r}function Z(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(l||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var x=0;x0)){var c=[u,1],f=R(s.from,l.from),p=R(s.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:s.from,to:l.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:l.to,to:s.to}),i.splice.apply(i,c),u+=c.length-3}}return i}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?R(s.to,n)>=0:R(s.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?R(s.from,r)<=0:R(s.from,r)<0)))return!0}}}function fe(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function de(e){for(var t;t=se(e);)e=t.find(1,!0).line;return e}function pe(e){for(var t,n;t=se(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function he(e,t){var n=M(e,t),r=fe(n);return n==r?t:P(r)}function ge(e,t){if(t>e.lastLine())return t;var n,r=M(e,t);if(!me(e,r))return t;for(;n=se(r);)r=n.find(1,!0).line;return P(r)+1}function me(e,t){var n=Qa&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function xe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}function Ce(e,t,n){var r;Za=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Za=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Za=i)}return null!=r?r:Za}function ke(e,t){var n=e.order;return null==n&&(n=e.order=Ja(e.text,t)),n}function Se(e,t){return e._handlers&&e._handlers[t]||el}function Te(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=d(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ee(e,t){var n=Se(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Oe(e){e.prototype.on=function(e,t){tl(this,e,t)},e.prototype.off=function(e,t){Te(this,e,t)}}function Pe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ae(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function De(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Pe(e),Ae(e)}function Ie(e){return e.target||e.srcElement}function Re(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Oa&&e.ctrlKey&&1==t&&(t=3),t}function Fe(e){if(null==za){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(za=t.offsetWidth<=1&&t.offsetHeight>2&&!(ya&&ba<8))}var i=za?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function He(e){if(null!=Ua)return Ua;var r=n(e,document.createTextNode("AخA")),i=_a(r,0,1).getBoundingClientRect(),o=_a(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Ua=o.right-i.right<3)}function We(e){if(null!=al)return al;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=_a(t,0,1).getBoundingClientRect();return al=Math.abs(i.left-o.left)>1}function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ll[e]=t}function Ue(e,t){ul[e]=t}function Ve(e){if("string"==typeof e&&ul.hasOwnProperty(e))e=ul[e];else if(e&&"string"==typeof e.name&&ul.hasOwnProperty(e.name)){var t=ul[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Ve(t);var n=ll[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(sl.hasOwnProperty(t.name)){var i=sl[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}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}function je(e,t){c(t,sl.hasOwnProperty(e)?sl[e]:sl[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(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 $e(e,t,n){return!e.startState||e.startState(t,n)}function qe(e,t,n,r){var i=[e.state.modeGen],o={};nt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=0;le&&i.splice(u,1,e,i[u+1],r),u+=2,s=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=qe(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.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 Xe(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new dl(r,!0,t);var o=rt(e,t,n),a=o>r.first&&M(r,o-1).stateAfter,l=a?dl.fromSaved(r,a,o):new dl(r,$e(r.mode),o);return r.iter(o,t,function(n){Qe(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function et(e,t,n,r){var i,o=e.doc,a=o.mode;t=V(o,t);var l,u=M(o,t.line),s=Xe(e,t.line,n),c=new cl(u.text,e.options.tabSize,s);for(r&&(l=[]);(r||c.pose.options.maxHighlightLength?(l=!1,a&&Qe(e,t,r,f.pos),f.pos=t.length,u=null):u=tt(Je(n,f,r.state,d),o),d){var p=d[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!l||c!=u){for(;sa;--l){if(l<=o.first)return o.first;var u=M(o,l-1),s=u.stateAfter;if(s&&(!n||l+(s instanceof fl?s.lookAhead:0)<=o.modeFrontier))return l;var c=f(u.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}function it(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=M(e,r).stateAfter;if(i&&(!(i instanceof fl)||r+i.lookAhead1&&!/ /.test(e))return e;for(var n=t,r="",i=0;is&&f.from<=s));d++);if(f.to>=c)return e(n,r,i,o,a,l,u);e(n,r.slice(0,f.to-s),i,o,null,l,u),o=null,r=r.slice(f.to-s),s=f.to}}}function pt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ht(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,u,s,c,f,d,p=i.length,h=0,g=1,m="",v=0;;){if(v==h){u=s=c=f=l="",d=null,v=1/0;for(var y=[],b=void 0,w=0;wh||C.collapsed&&x.to==h&&x.from==h)?(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,s=""),C.className&&(u+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&x.from==h&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&!f&&(f=C.title),C.collapsed&&(!d||ae(d.marker,C)<0)&&(d=x)):x.from>h&&v>x.from&&(v=x.from)}if(b)for(var k=0;k=p)break;for(var T=Math.min(p,v);;){if(m){var E=h+m.length;if(!d){var M=E>T?m.slice(0,T-h):m;t.addToken(t,M,a?a+u:u,c,h+M.length==v?s:"",f,l)}if(E>=T){m=m.slice(T-h),h=T;break}h=E,c=""}m=i.slice(o,o=n[g++]),a=lt(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((u.bottom+s.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Bt(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[i],cache:e.measure.caches[i],before:!0}}function jt(e,t){t=fe(t);var r=P(t),i=e.display.externalMeasured=new gt(e.doc,t,r);i.lineN=r;var o=i.built=ut(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Kt(e,t,n,r){return qt(e,$t(e,t),n,r)}function Gt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=u-l,i=o-1,t>=u&&(a="right")),null!=i){if(r=e[s+2],l==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&i==u-l)for(;s=0&&(n=e[i]).left==n.right;i--);return n}function Qt(e,t,n,r){var i,o=Yt(t.map,n,r),a=o.node,l=o.start,u=o.end,s=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;l&&k(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u0&&(s=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ya&&ba<9&&!l&&(!i||!i.left&&!i.right)){var d=a.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+wn(e.display),top:d.top,bottom:d.bottom}:wl}for(var p=i.top-t.rect.top,h=i.bottom-t.rect.top,g=(p+h)/2,m=t.view.measure.heights,v=0;v=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!u)return a("before"==c?s-1:s,"before"==c);var f=Ce(u,s,c),d=Za,p=l(s,f,"before"==c);return null!=d&&(p.other=l(s,d,"before"!=c)),p}function cn(e,t){var n=0;t=V(e.doc,t),e.options.lineWrapping||(n=wn(e.display)*t.ch);var r=M(e.doc,t.line),i=ye(r)+Rt(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function fn(e,t,n,r,i){var o=I(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function dn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return fn(r.first,0,null,!0,-1);var i=A(r,n),o=r.first+r.size-1;if(i>o)return fn(r.first+r.size-1,M(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=M(r,i);;){var l=mn(e,a,i,t,n),u=se(a),s=u&&u.find(0,!0);if(!u||!(l.ch>s.from.ch||l.ch==s.from.ch&&l.xRel>0))return l;i=P(a=s.to.line)}}function pn(e,t,n,r){r-=on(t);var i=t.text.length,o=T(function(t){return qt(e,n,t-1).bottom<=r},i,0);return i=T(function(t){return qt(e,n,t).top>r},o,i),{begin:o,end:i}}function hn(e,t,n,r){return n||(n=$t(e,t)),pn(e,t,n,an(e,t,qt(e,n,r),"line").top)}function gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function mn(e,t,n,r,i){i-=ye(t);var o=$t(e,t),a=on(t),l=0,u=t.text.length,s=!0,c=ke(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?yn:vn)(e,t,n,o,c,r,i);s=1!=f.level,l=s?f.from:f.to-1,u=s?f.to:f.from-1}var d,p,h=null,g=null,m=T(function(t){var n=qt(e,o,t);return n.top+=a,n.bottom+=a,!!gn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,g=n),!0)},l,u),v=!1;if(g){var y=r-g.left=w.bottom}return m=S(t.text,m,1),fn(n,m,p,v,r-d)}function vn(e,t,n,r,i,o,a){var l=T(function(l){var u=i[l],s=1!=u.level;return gn(sn(e,I(n,s?u.to:u.from,s?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),u=i[l];if(l>0){var s=1!=u.level,c=sn(e,I(n,s?u.from:u.to,s?"after":"before"),"line",t,r);gn(c,o,a,!0)&&c.top>a&&(u=i[l-1])}return u}function yn(e,t,n,r,i,o,a){var l=pn(e,t,r,a),u=l.begin,s=l.end;/\s/.test(t.text.charAt(s-1))&&s--;for(var c=null,f=null,d=0;d=s||p.to<=u)){var h=1!=p.level,g=qt(e,r,h?Math.min(s,p.to)-1:Math.max(u,p.from)).right,m=gm)&&(c=p,f=m)}}return c||(c=i[i.length-1]),c.froms&&(c={from:c.from,to:s,level:c.level}),c}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==gl){gl=r("pre");for(var i=0;i<49;++i)gl.appendChild(document.createTextNode("x")),gl.appendChild(r("br"));gl.appendChild(document.createTextNode("x"))}n(e.measure,gl);var o=gl.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function wn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function xn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Cn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Cn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kn(e){var t=bn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/wn(e.display)-3);return function(i){if(me(e.doc,i))return 0;var o=0;if(i.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||l.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 Dn(e){e.state.focused||(e.display.input.focus(),In(e))}function _n(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Rn(e))},100)}function In(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ee(e,"focus",e,t),e.state.focused=!0,l(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),wa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),An(e))}function Rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ee(e,"blur",e,t),e.state.focused=!1,Fa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||u<-.005)&&(O(i.line,o),Hn(i.line),i.rest))for(var s=0;s=a&&(o=A(t,ye(M(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function zn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Cn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Ea){var a=r("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Rt(e.display))+"px;\n height: "+(t.bottom-t.top+Wt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Bn(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(t=t.ch?I(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?I(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=sn(e,t),u=n&&n!=t?sn(e,n):l;i={left:Math.min(l.left,u.left),top:Math.min(l.top,u.top)-r,right:Math.max(l.left,u.left),bottom:Math.max(l.bottom,u.bottom)+r};var s=Kn(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=s.scrollTop&&(Zn(e,s.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=s.scrollLeft&&(er(e,s.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function jn(e,t){var n=Kn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&er(e,n.scrollLeft)}function Kn(e,t){var n=e.display,r=bn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ut(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Ft(n),u=t.topl-r;if(t.topi+o){var c=Math.min(t.top,(s?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=zt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function Gn(e,t){null!=t&&(Xn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function $n(e){Xn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function qn(e,t,n){null==t&&null==n||Xn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){Xn(e),e.curOp.scrollToPos=t}function Xn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Qn(e,cn(e,t.from),cn(e,t.to),t.margin))}function Qn(e,t,n,r){var i=Kn(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});qn(e,i.scrollLeft,i.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ha||Or(e,{top:t}),Jn(e,t,!0),ha&&Or(e),kr(e,100))}function Jn(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 er(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,zn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function tr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ft(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+Wt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function nr(e,t){t||(t=tr(e));var n=e.display.barWidth,r=e.display.barHeight;rr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Fn(e),rr(e,tr(e)),n=e.display.barWidth,r=e.display.barHeight}function rr(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=""}function ir(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Fa(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new kl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),tl(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?er(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&l(e.display.wrapper,e.display.scrollbars.addClass)}function or(e){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:++Sl},vt(e.curOp)}function ar(e){bt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Tl(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sr(e){e.updatedDisplay=e.mustUpdate&&Lr(e.cm,e.update)}function cr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Fn(t),e.barMeasure=tr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Kt(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+Wt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-zt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function fr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Qa&&he(e.doc,t)i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var o=wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var a=wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):br(e)}else{var l=wr(e,t,t,-1),u=wr(e,n,n+r,1);l&&u?(i.view=i.view.slice(0,l.index).concat(mt(e,l.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):br(e)}var s=i.externalMeasured;s&&(n=i.lineN&&t=r.viewTo)){var o=r.view[En(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==d(a,n)&&a.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function wr(e,t,n,r){var i,o=En(e,t),a=e.display.view;if(!Qa||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;he(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function xr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=mt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=mt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,En(e,n)))),r.viewTo=n}function Cr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Xe(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,u=qe(e,o,r,!0);l&&(r.state=l),o.styles=u.styles;var s=o.styleClasses,c=u.classes;c?o.styleClasses=c:s&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||s!=c&&(!s||!c||s.bgClass!=c.bgClass||s.textClass!=c.textClass),d=0;!f&&dn)return kr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&pr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Cr(e))return!1;Un(e)&&(br(e),n.dims=xn(e));var o=i.first+i.size,a=Math.max(n.visible.from-e.options.viewportMargin,i.first),l=Math.min(o,n.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(o,r.viewTo)),Qa&&(a=he(e.doc,a),l=ge(e.doc,l));var u=a!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;xr(e,a,l),r.viewOffset=ye(M(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Cr(e);if(!u&&0==s&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Er(e);return s>4&&(r.lineDiv.style.display="none"),Pr(e,r.updateLineNumbers,n.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Mr(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,kr(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=zt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ft(e.display)-Ut(e),n.top)}),t.visible=Wn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Lr(e,t);r=!1){Fn(e);var i=tr(e);Mn(e),nr(e,i),Dr(e,i),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 Or(e,t){var n=new Tl(e,t);if(Lr(e,n)){Fn(e),Nr(e,n);var r=tr(e);Mn(e),nr(e,r),Dr(e,r),n.finish()}}function Pr(e,n,r){function i(t){var n=t.nextSibling;return wa&&Oa&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,l=o.lineDiv,u=l.firstChild,s=o.view,c=o.viewFrom,f=0;f-1&&(h=!1),Ct(e,p,c,r)),h&&(t(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(_(e.options,c)))),u=p.node.nextSibling}else{var g=Ot(e,p,c,r);l.insertBefore(g,u)}c+=p.size}for(;u;)u=i(u)}function Ar(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Dr(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+Wt(e)+"px"}function _r(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Rr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Fr(e){var t=Rr(e);return t.x*=Ml,t.y*=Ml,t}function Hr(e,t){var n=Rr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&l||i&&u){if(i&&Oa&&wa)e:for(var s=t.target,c=o.view;s!=a;s=s.parentNode)for(var f=0;f=0){var a=z(o.from(),i.from()),l=W(o.to(),i.to()),u=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new Nl(u?l:a,u?a:l))}}return new Ll(e,t)}function zr(e,t){return new Ll([new Nl(e,t||e)],0)}function Ur(e){return e.text?I(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Vr(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return Ur(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+=Ur(t).ch-t.to.ch),I(n,r)}function Br(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,h-1),e.insert(l.line+1,y)}wt(e,"change",e,t)}function Xr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function ii(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>l-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=ri(i,i.lastOp==r)))a=g(o.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=Ur(t):o.changes.push(ti(e,t));else{var u=g(i.done);for(u&&u.ranges||li(e.sel,i.done),o={changes:[ti(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ee(e,"historyAdded")}function oi(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ai(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||oi(e,o,g(i.done),t))?i.done[i.done.length-1]=t:li(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ni(i.undone)}function li(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function si(e){if(!e)return null;for(var t,n=0;n-1&&(g(l)[f]=s[f],delete s[f])}}}return r}function pi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=R(t,i)<0;o!=R(n,i)<0?(i=t,t=n):o!=R(t,n)<0&&(t=n)}return new Nl(i,t)}return new Nl(n||t,t)}function hi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Ll([pi(e.sel.primary(),t,n,i)],0),r)}function gi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(Ee(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var s=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(s=Mi(e,s,-r,s&&s.line==t.line?o:null)),s&&s.line==t.line&&(c=R(s,n))&&(r<0?c<0:c>0))return Ti(e,s,t,r,i)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=Mi(e,f,r,f.line==t.line?o:null)),f?Ti(e,f,t,r,i):null}}return t}function Ei(e,t,n,r,i){var o=r||1;return Ti(e,t,n,o,i)||!i&&Ti(e,t,n,o,!0)||Ti(e,t,n,-o,i)||!i&&Ti(e,t,n,-o,!0)||(e.cantEdit=!0,I(e.first,0))}function Mi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?V(e,I(t.line-1)):null:n>0&&t.ch==(r||M(e,t.line)).text.length?t.line=0;--i)Pi(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Pi(e,t)}}function Pi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=Br(e,t);ii(e,t,n,e.cm?e.cm.curOp.id:NaN),_i(e,t,n,J(e,t));var r=[];Xr(e,function(e,n){n||-1!=d(r,e.history)||(Wi(e.history,t),r.push(e.history)),_i(e,t,null,J(e,t))})}}function Ai(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,u=0;u=0;--f){var p=function(n){var i=r.changes[n];if(i.origin=t,c&&!Ni(e,i,!1))return a.length=0,{};s.push(ti(e,i));var o=n?Br(e,i):g(a);_i(e,i,o,fi(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Ur(i)});var l=[];Xr(e,function(e,t){t||-1!=d(l,e.history)||(Wi(e.history,i),l.push(e.history)),_i(e,i,null,fi(e,i))})}(f);if(p)return p.v}}}}function Di(e,t){if(0!=t&&(e.first+=t,e.sel=new Ll(m(e.sel.ranges,function(e){return new Nl(I(e.anchor.line+t,e.anchor.ch),I(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:I(o,M(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=L(e,t.from,t.to),n||(n=Br(e,t)),e.cm?Ii(e.cm,t,r):Yr(e,t,r),xi(e,n,ja)}}function Ii(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,u=o.line;e.options.lineWrapping||(u=P(fe(M(r,o.line))),r.iter(u,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Le(e),Yr(r,t,n,kn(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),it(r,o.line),kr(e,400);var s=t.text.length-(a.line-o.line)-1;t.full?vr(e):o.line!=a.line||1!=t.text.length||qr(e.doc,t)?vr(e,o.line,a.line+1,s):yr(e,o.line,"text");var c=Ne(e,"changes"),f=Ne(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&wt(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Ri(e,t,n,r,i){if(r||(r=n),R(r,n)<0){var o;o=[r,n],n=o[0],r=o[1]}"string"==typeof t&&(t=e.splitLines(t)),Oi(e,{from:n,to:r,text:t,origin:i})}function Fi(e,t,n,r){n0||0==l&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ce(e,t.line,t,n,a)||t.line!=n.line&&ce(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&ii(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,s=t.line,f=e.cm;if(e.iter(s,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(u=!0),a.collapsed&&s!=t.line&&O(e,0),X(e,new $(a,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&O(t,0)}),a.clearOnEnter&&tl(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(K(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Pl,a.atomic=!0),f){if(u&&(f.curOp.updateMaxLine=!0),a.collapsed)vr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var d=t.line;d<=n.line;d++)yr(f,d,"text");a.atomic&&ki(f.doc),wt(f,"markerAdded",f,a)}return a}function Gi(e,t,n,r,i){r=c(r),r.shared=!1;var o=[Ki(e,t,n,r,i)],a=o[0],l=r.widgetNode;return Xr(e,function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(Ki(e,V(e,t),V(e,n),r,i));for(var u=0;u-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 s;if(t.state.draggingText&&!t.state.draggingText.copy&&(s=t.listSelections()),xi(t.doc,zr(n,n)),s)for(var c=0;c=0;t--)Ri(e.doc,"",r[t].from,r[t].to,"+delete");$n(e)})}function po(e,t,n){var r=S(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ho(e,t,n){var r=po(e,t.ch,n);return null==r?null:new I(t.line,r,n<0?"after":"before")}function go(e,t,n,r,i){if(e){var o=ke(n,t.doc.direction);if(o){var a,l=i<0?g(o):o[0],u=i<0==(1==l.level),s=u?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=$t(t,n);a=i<0?n.text.length-1:0;var f=qt(t,c,a).top;a=T(function(e){return qt(t,c,e).top==f},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=po(n,a,1))}else a=i<0?l.to:l.from;return new I(r,a,s)}}return new I(r,i<0?n.text.length:0,i<0?"before":"after")}function mo(e,t,n,r){var i=ke(t,e.doc.direction);if(!i)return ho(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 o=Ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var p=f?"before":"after";return new I(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new I(n.line,u(e,1),"before"):new I(n.line,e,"after")};e>=0&&e0==(1!=a.level),s=l?r.begin:u(r.end,-1);if(a.from<=s&&s0?c.end:u(c.begin,-1);return null==m||r>0&&m==t.text.length||!(g=h(r>0?0:i.length-1,r,s(m)))?null:g}function vo(e,t){var n=M(e.doc,t),r=fe(n);return r!=n&&(t=P(r)),go(!0,e,r,t,1)}function yo(e,t){var n=M(e.doc,t),r=de(n);return r!=n&&(t=P(r)),go(!0,e,n,t,-1)}function bo(e,t){var n=vo(e,t.line),r=M(e.doc,n.line),i=ke(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return I(n.line,a?0:o,n.sticky)}return n}function wo(e,t,n){if("string"==typeof t&&!(t=Bl[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Ba}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function xo(e,t,n){for(var r=0;r-1&&(R((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(R(i.to(),t)>0||t.xRel<0)?Io(e,r,t,o):Fo(e,r,t,o)}function Io(e,t,n,r){var i=e.display,o=!1,a=hr(e,function(t){wa&&(i.scroller.draggable=!1),e.state.draggingText=!1,Te(document,"mouseup",a),Te(document,"mousemove",l),Te(i.scroller,"dragstart",u),Te(i.scroller,"drop",a),o||(Pe(t),r.addNew||hi(e.doc,n,null,null,r.extend),wa||ya&&9==ba?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return o=!0};wa&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),tl(document,"mouseup",a),tl(document,"mousemove",l),tl(i.scroller,"dragstart",u),tl(i.scroller,"drop",a),_n(e),setTimeout(function(){return i.input.focus()},20)}function Ro(e,t,n){if("char"==n)return new Nl(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Nl(I(t.line,0),V(e.doc,I(t.line+1,0)));var r=n(e,t);return new Nl(r.from,r.to)}function Fo(e,t,n,r){function i(t){if(0!=R(v,t))if(v=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(M(s,n.line).text,n.ch,o),l=f(M(s,t.line).text,t.ch,o),u=Math.min(a,l),g=Math.max(a,l),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=M(s,m).text,w=p(b,u,o);u==g?i.push(new Nl(I(m,w),I(m,w))):b.length>w&&i.push(new Nl(I(m,w),I(m,p(b,g,o))))}i.length||i.push(new Nl(n,n)),wi(s,Wr(h.ranges.slice(0,d).concat(i),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,C=c,k=Ro(e,t,r.unit),S=C.anchor;R(k.anchor,S)>0?(x=k.head,S=z(C.from(),k.anchor)):(x=k.anchor,S=W(C.to(),k.head));var T=h.ranges.slice(0);T[d]=Ho(e,new Nl(V(s,S),x)),wi(s,Wr(T,d),Ka)}}function o(t){var n=++b,l=Tn(e,t,!0,"rectangle"==r.unit);if(l)if(0!=R(l,v)){e.curOp.focus=a(),i(l);var c=Wn(u,s);(l.line>=c.to||l.liney.bottom?20:0;f&&setTimeout(hr(e,function(){b==n&&(u.scroller.scrollTop+=f,o(t))}),50)}}function l(t){e.state.selectingText=!1,b=1/0,Pe(t),u.input.focus(),Te(document,"mousemove",w),Te(document,"mouseup",x),s.history.lastSelOrigin=null}var u=e.display,s=e.doc;Pe(t);var c,d,h=s.sel,g=h.ranges;if(r.addNew&&!r.extend?(d=s.sel.contains(n),c=d>-1?g[d]:new Nl(n,n)):(c=s.sel.primary(),d=s.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new Nl(n,n)),n=Tn(e,t,!0,!0),d=-1;else{var m=Ro(e,n,r.unit);c=r.extend?pi(c,m.anchor,m.head,r.extend):m}r.addNew?-1==d?(d=g.length,wi(s,Wr(g.concat([c]),d),{scroll:!1,origin:"*mouse"})):g.length>1&&g[d].empty()&&"char"==r.unit&&!r.extend?(wi(s,Wr(g.slice(0,d).concat(g.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),h=s.sel):mi(s,d,c,Ka):(d=0,wi(s,new Ll([c],0),Ka),h=s.sel);var v=n,y=u.wrapper.getBoundingClientRect(),b=0,w=hr(e,function(e){Re(e)?o(e):l(e)}),x=hr(e,l);e.state.selectingText=x,tl(document,"mousemove",w),tl(document,"mouseup",x)}function Ho(e,t){var n=t.anchor,r=t.head,i=M(e.doc,n.line);if(0==R(n,r)&&n.sticky==r.sticky)return t;var o=ke(i);if(!o)return t;var a=Ce(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var u=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;var s;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ce(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var d=o[u+(s?-1:0)],p=s==(1==d.level),h=p?d.from:d.to,g=p?"after":"before";return n.ch==h&&n.sticky==g?t:new Nl(new I(n.line,h,g),r)}function Wo(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Pe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Ne(e,n))return De(t);o-=l.top-a.viewOffset;for(var u=0;u=i)return Ee(e,n,e,A(e.doc,o),e.options.gutters[u],t),De(t)}}function zo(e,t){return Wo(e,t,"gutterClick",!0)}function Uo(e,t){It(e.display,t)||Vo(e,t)||Me(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Vo(e,t){return!!Ne(e,"gutterContextMenu")&&Wo(e,t,"gutterContextMenu",!1)}function Bo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),tn(e)}function jo(e){_r(e),vr(e),zn(e)}function Ko(e,t,n){if(!t!=!(n&&n!=Yl)){var r=e.display.dragFunctions,i=t?tl:Te;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Go(e){e.options.lineWrapping?(l(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Fa(e.display.wrapper,"CodeMirror-wrap"),we(e)),Sn(e),vr(e),tn(e),setTimeout(function(){return nr(e)},100)}function $o(e,t){var n=this;if(!(this instanceof $o))return new $o(e,t);this.options=t=t?c(t):{},c(Xl,t,!1),Ir(t);var r=t.value;"string"==typeof r&&(r=new Il(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var i=new $o.inputStyles[t.inputStyle](this),o=this.display=new E(e,r,i);o.wrapper.CodeMirror=this,_r(this),Bo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ir(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 Wa,keySeq:null,specialChars:null},t.autofocus&&!Na&&o.input.focus(),ya&&ba<11&&setTimeout(function(){return n.display.input.reset(!0)},20),qo(this),to(),or(this),this.curOp.forceUpdate=!0,Qr(this,r),t.autofocus&&!Na||this.hasFocus()?setTimeout(s(In,this),20):Rn(this);for(var a in Ql)Ql.hasOwnProperty(a)&&Ql[a](n,t[a],Yl);Un(this),t.finishInit&&t.finishInit(this);for(var l=0;l400}var i=e.display;tl(i.scroller,"mousedown",hr(e,Po)),ya&&ba<11?tl(i.scroller,"dblclick",hr(e,function(t){if(!Me(e,t)){var n=Tn(e,t);if(n&&!zo(e,t)&&!It(e.display,t)){Pe(t);var r=e.findWordAt(n);hi(e.doc,r.anchor,r.head)}}})):tl(i.scroller,"dblclick",function(t){return Me(e,t)||Pe(t)}),Ra||tl(i.scroller,"contextmenu",function(t){return Uo(e,t)});var o,a={end:0};tl(i.scroller,"touchstart",function(t){if(!Me(e,t)&&!n(t)&&!zo(e,t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),tl(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),tl(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!It(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,l=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new Nl(l,l):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(l):new Nl(I(l.line,0),V(e.doc,I(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Pe(n)}t()}),tl(i.scroller,"touchcancel",t),tl(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Zn(e,i.scroller.scrollTop),er(e,i.scroller.scrollLeft,!0),Ee(e,"scroll",e))}),tl(i.scroller,"mousewheel",function(t){return Hr(e,t)}),tl(i.scroller,"DOMMouseScroll",function(t){return Hr(e,t)}),tl(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Me(e,t)||_e(t)},over:function(t){Me(e,t)||(Zi(e,t),_e(t))},start:function(t){return Qi(e,t)},drop:hr(e,Xi),leave:function(t){Me(e,t)||Ji(e)}};var l=i.input.getField();tl(l,"keyup",function(t){return Lo.call(e,t)}),tl(l,"keydown",hr(e,Eo)),tl(l,"keypress",hr(e,No)),tl(l,"focus",function(t){return In(e,t)}),tl(l,"blur",function(t){return Rn(e,t)})}function Yo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Xe(e,t).state:n="prev");var a=e.options.tabSize,l=M(o,t),u=f(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var s,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((s=o.mode.indent(i,l.text.slice(c.length),l.text))==Ba||s>150)){if(!r)return;n="prev"}}else s=0,n="not";"prev"==n?s=t>o.first?f(M(o,t-1).text,null,a):0:"add"==n?s=u+e.options.indentUnit:"subtract"==n?s=u-e.options.indentUnit:"number"==typeof n&&(s=u+n),s=Math.max(0,s);var d="",p=0;if(e.options.indentWithTabs)for(var g=Math.floor(s/a);g;--g)p+=a,d+="\t";if(p1)if(Jl&&Jl.text.join("\n")==t){if(r.ranges.length%Jl.text.length==0){u=[];for(var s=0;s=0;f--){var d=r.ranges[f],p=d.from(),h=d.to();d.empty()&&(n&&n>0?p=I(p.line,p.ch-n):e.state.overwrite&&!a?h=I(h.line,Math.min(M(o,h.line).text.length,h.ch+g(l).length)):Jl&&Jl.lineWise&&Jl.text.join("\n")==t&&(p=h=I(p.line,0))),c=e.curOp.updateInput;var v={from:p,to:h,text:u?u[f%u.length]:l,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Oi(e.doc,v),wt(e,"inputRead",e,v)}t&&!a&&Jo(e,t),$n(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Zo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||pr(t,function(){return Qo(t,n,0,null,"paste")}),!0}function Jo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=Yo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(M(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Yo(e,i.head.line,"smart"));a&&wt(e,"electricInput",e,i.head.line)}}}function ea(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new I(r,t.ch,t.sticky),s=M(e,r))}function a(r){var a;if(null==(a=i?mo(e.cm,s,t,n):ho(s,t,n))){if(r||!o())return!1;t=go(i,e.cm,s,t.line,n)}else t=a;return!0}var l=t,u=n,s=M(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||a(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",g=x(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||g||(g="s"),c&&c!=g){n<0&&(n=1,a(),t.sticky="after");break}if(g&&(c=g),n>0&&!a(!p))break}var m=Ei(e,t,l,u,!0);return F(l,m)&&(m.hitSide=!0),m}function ia(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*bn(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var s;s=dn(e,a,i),s.outside;){if(n<0?i<=0:i>=o.height){s.hitSide=!0;break}i+=5*n}return s}function oa(e,t){var n=Gt(e,t.line);if(!n||n.hidden)return null;var r=M(e.doc,t.line),i=Bt(n,r,t.line),o=ke(r,e.doc.direction),a="left";o&&(a=Ce(o,t.ch)%2?"right":"left");var l=Yt(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function aa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function la(e,t){return t&&(e.bad=!0),e}function ua(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(){c&&(s+=f,c=!1)}function l(e){e&&(a(),s+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void l(n||t.textContent.replace(/\u200b/g,""));var s,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(I(r,0),I(i+1,0),o(+d));return void(p.length&&(s=p[0].find(0))&&l(L(e.doc,s.from,s.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p)$/i.test(t.nodeName);h&&a();for(var g=0;g=15&&(ka=!1,wa=!0);var _a,Ia=Oa&&(xa||ka&&(null==Da||Da<12.11)),Ra=ha||ya&&ba>=9,Fa=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};_a=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ha=function(e){e.select()};Ma?Ha=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ya&&(Ha=function(e){try{e.select()}catch(e){}});var Wa=function(){this.id=null};Wa.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var za,Ua,Va=30,Ba={toString:function(){return"CodeMirror.Pass"}},ja={scroll:!1},Ka={origin:"*mouse"},Ga={origin:"+move"},$a=[""],qa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ya=/[\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]/,Xa=!1,Qa=!1,Za=null,Ja=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,l=/[Lb1n]/,u=/[1n]/;return function(n,r){var s="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],d=0;d=this.string.length},cl.prototype.sol=function(){return this.pos==this.lineStart},cl.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cl.prototype.next=function(){if(this.post},cl.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},cl.prototype.skipToEnd=function(){this.pos=this.string.length},cl.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},cl.prototype.backUp=function(e){this.pos-=e},cl.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},cl.prototype.current=function(){return this.string.slice(this.start,this.pos)},cl.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},cl.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},cl.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var fl=function(e,t){this.state=e,this.lookAhead=t},dl=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};dl.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},dl.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},dl.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dl.fromSaved=function(e,t,n){return t instanceof fl?new dl(e,Ke(e.mode,t.state),n,t.lookAhead):new dl(e,Ke(e.mode,t),n)},dl.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fl(t,this.maxLookAhead):t};var pl=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},hl=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};hl.prototype.lineNo=function(){return P(this)},Oe(hl);var gl,ml={},vl={},yl=null,bl=null,wl={left:0,right:0,top:0,bottom:0},xl=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),tl(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),tl(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ya&&ba<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xl.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 i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"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 o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"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}},xl.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xl.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xl.prototype.zeroWidthHack=function(){var e=Oa&&!Ta?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Wa,this.disableVert=new Wa},xl.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},xl.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cl=function(){};Cl.prototype.update=function(){return{bottom:0,right:0}},Cl.prototype.setScrollLeft=function(){},Cl.prototype.setScrollTop=function(){},Cl.prototype.clear=function(){};var kl={native:xl,null:Cl},Sl=0,Tl=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Wn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=zt(e),this.force=n,this.dims=xn(e),this.events=[]};Tl.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Tl.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,i.to())<=0)return r}return-1};var Nl=function(e,t){this.anchor=e,this.head=t};Nl.prototype.from=function(){return z(this.anchor,this.head)},Nl.prototype.to=function(){return W(this.anchor,this.head)},Nl.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ui.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r1||!(this.children[0]instanceof Ui))){var u=[];this.collapse(u),this.children=[new Ui(u)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n50){for(var l=o.lines.length%25+25,u=l;u10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;it.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&vr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ki(t.doc)),t&&wt(t,"markerCleared",t,this,i,o),n&&ar(t),this.parent&&this.parent.clear()}},Al.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o=0;s--)Oi(r,i[s]);u?bi(this,u):this.cm&&$n(this.cm)}),undo:mr(function(){Ai(this,"undo")}),redo:mr(function(){Ai(this,"redo")}),undoSelection:mr(function(){Ai(this,"undo",!0)}),redoSelection:mr(function(){Ai(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(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=V(this,e),t=V(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i}),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-=o,++n}),V(this,I(n,t))},indexFromPos:function(e){e=V(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)i=new I(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),I(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=M(e.doc,i.line-1).text;a&&(i=new I(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),I(i.line-1,a.length-1),i,"+transpose"))}n.push(new Nl(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return pr(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;re&&0==R(t,this.pos)&&n==this.button};var $l,ql,Yl={toString:function(){return"CodeMirror.Init"}},Xl={},Ql={};$o.defaults=Xl,$o.optionHandlers=Ql;var Zl=[];$o.defineInitHook=function(e){return Zl.push(e)};var Jl=null,eu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Wa,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};eu.prototype.init=function(e){function t(e){if(!Me(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ea(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,ja),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Jl.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=na(),l=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Jl.text.join("\n");var u=document.activeElement;Ha(l),setTimeout(function(){i.display.lineSpace.removeChild(a),u.focus(),u==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;ta(o,i.options.spellcheck),tl(o,"paste",function(e){Me(i,e)||Zo(e,i)||ba<=11&&setTimeout(hr(i,function(){return n.updateFromDOM()}),20)}),tl(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),tl(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),tl(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),tl(o,"touchstart",function(){return r.forceCompositionEnd()}),tl(o,"input",function(){n.composing||n.readFromDOMSoon()}),tl(o,"copy",t),tl(o,"cut",t)},eu.prototype.prepareSelection=function(){var e=Ln(this.cm,!1);return e.focus=this.cm.state.focused,e},eu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},eu.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&oa(t,r)||{node:l[0].measure.map[2],offset:0},s=i.linee.firstLine()&&(r=I(r.line-1,M(e.doc,r.line-1).length)),i.ch==M(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||0==(o=En(e,r.line))?(a=P(t.view[0].line),l=t.view[0].node):(a=P(t.view[o].line),l=t.view[o-1].node.nextSibling);var u,s,c=En(e,i.line);if(c==t.view.length-1?(u=t.viewTo-1,s=t.lineDiv.lastChild):(u=P(t.view[c+1].line)-1,s=t.view[c+1].node.previousSibling),!l)return!1;for(var f=e.doc.splitLines(ua(e,l,s,a,u)),d=L(e.doc,I(a,0),I(u,M(e.doc,u).text.length));f.length>1&&d.length>1;)if(g(f)==g(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),a++}for(var p=0,h=0,m=f[0],v=d[0],y=Math.min(m.length,v.length);pr.ch&&b.charCodeAt(b.length-h-1)==w.charCodeAt(w.length-h-1);)p--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var C=I(a,p),k=I(u,d.length?g(d).length-h:0);return f.length>1||f[0]||R(C,k)?(Ri(e.doc,f,C,k,"+input"),!0):void 0},eu.prototype.ensurePolled=function(){this.forceCompositionEnd()},eu.prototype.reset=function(){this.forceCompositionEnd()},eu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},eu.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))},eu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||pr(this.cm,function(){return vr(e.cm)})},eu.prototype.setUneditable=function(e){e.contentEditable="false"},eu.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hr(this.cm,Qo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},eu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},eu.prototype.onContextMenu=function(){},eu.prototype.resetPosition=function(){},eu.prototype.needsContentAttribute=!0;var tu=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Wa,this.hasSelection=!1,this.composing=null};tu.prototype.init=function(e){function t(e){if(!Me(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ea(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,ja):(r.prevInput="",a.value=t.text.join("\n"),Ha(a))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm,o=this.wrapper=na(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),Ma&&(a.style.width="0px"),tl(a,"input",function(){ya&&ba>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),tl(a,"paste",function(e){Me(i,e)||Zo(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),tl(a,"cut",t),tl(a,"copy",t),tl(e.scroller,"paste",function(t){It(e,t)||Me(i,t)||(i.state.pasteIncoming=!0,r.focus())}),tl(e.lineSpace,"selectstart",function(t){It(e,t)||Pe(t)}),tl(a,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),tl(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},tu.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Ln(e);if(e.options.moveInputWithCursor){var i=sn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},tu.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tu.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&&Ha(this.textarea),ya&&ba>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ya&&ba>=9&&(this.hasSelection=null))}},tu.prototype.getField=function(){return this.textarea},tu.prototype.supportsTouch=function(){return!1},tu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Na||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},tu.prototype.blur=function(){this.textarea.blur()},tu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tu.prototype.receivedFocus=function(){this.slowPoll()},tu.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tu.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},tu.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||il(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(ya&&ba>=9&&this.hasSelection===i||Oa&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tu.prototype.onKeyPress=function(){ya&&ba>=9&&(this.hasSelection=null),this.fastPoll()},tu.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=s,ya&&ba<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=u),null!=a.selectionStart){(!ya||ya&&ba<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?hr(i,Li)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,l=Tn(i,e),u=o.scroller.scrollTop;if(l&&!ka){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(l)&&hr(i,wi)(i.doc,zr(l),ja);var s=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(ya?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(wa&&(d=window.scrollY),o.input.focus(),wa&&window.scrollTo(null,d),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),ya&&ba>=9&&t(),Ra){_e(e);var p=function(){Te(window,"mouseup",p),setTimeout(n,20)};tl(window,"mouseup",p)}else setTimeout(n,50)}},tu.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},tu.prototype.setUneditable=function(){},tu.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Yl&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Yl,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Gr(e)},!0),t("indentUnit",2,Gr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){$r(e),tn(e),vr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(I(r,o))}r++});for(var i=n.length-1;i>=0;i--)Ri(e.doc,t,n[i],I(n[i].line,n[i].ch+t.length))}}),t("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!=Yl&&e.refresh()}),t("specialCharPlaceholder",st,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Na?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Aa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Bo(e),jo(e)},!0),t("keyMap","default",function(e,t,n){var r=co(t),i=n!=Yl&&co(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Go,!0),t("gutters",[],function(e){Ir(e.options),jo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Cn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return nr(e)},!0),t("scrollbarStyle","native",function(e){ir(e),nr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Ir(e.options),jo(e)},!0),t("firstLineNumber",1,jo,!0),t("lineNumberFormatter",function(e){return e},jo,!0),t("showCursorWhenSelecting",!1,Mn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Rn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Ko),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Mn,!0),t("singleCursorHeightPerLine",!0,Mn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,$r,!0),t("addModeClass",!1,$r,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,$r,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}($o),function(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,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&hr(this,t[e])(this,n,i),Ee(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"](co(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nr&&(Yo(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&$n(t));else{var a=o.from(),l=o.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),l.line-(l.ch?0:1))+1;for(var s=u;s0&&mi(t.doc,i,new Nl(a,c[i].to()),ja)}}}),getTokenAt:function(e,t){return et(this,e,t)},getLineTokens:function(e,t){return et(this,I(e),t,!0)},getTokenTypeAt:function(e){e=V(this.doc,e);var t,n=Ye(this,M(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=M(this.doc,e)}else r=e;return an(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ye(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return wn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=sn(this,V(this.doc,e));var a=e.bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(o.wrapper.clientHeight,this.doc.height),s=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),l+t.offsetWidth>s&&(l=s-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&jn(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:gr(Eo),triggerOnKeyPress:gr(No),triggerOnKeyUp:Lo,triggerOnMouseDown:gr(Po),execCommand:function(e){if(Bl.hasOwnProperty(e))return Bl[e].call(null,this)},triggerElectric:gr(function(e){Jo(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=V(this.doc,e),l=0;l0&&l(n.charAt(r-1));)--r;for(;i.5)&&Sn(this),Ee(this,"refresh",this)}),swapDoc:gr(function(e){var t=this.doc;return t.cm=null,Qr(this,e),tn(this),this.display.input.reset(),qn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,t),t}),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}},Oe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}($o);var nu="iter insert remove copy getEditor constructor".split(" ");for(var ru in Il.prototype)Il.prototype.hasOwnProperty(ru)&&d(nu,ru)<0&&($o.prototype[ru]=function(e){return function(){return e.apply(this.doc,arguments)}}(Il.prototype[ru]));return Oe(Il),$o.inputStyles={textarea:tu,contenteditable:eu},$o.defineMode=function(e){$o.defaults.mode||"null"==e||($o.defaults.mode=e),ze.apply(this,arguments)},$o.defineMIME=Ue,$o.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$o.defineMIME("text/plain","null"),$o.defineExtension=function(e,t){$o.prototype[e]=t},$o.defineDocExtension=function(e,t){Il.prototype[e]=t},$o.fromTextArea=fa,function(e){e.off=Te,e.on=tl,e.wheelEventPixels=Fr,e.Doc=Il,e.splitLines=rl,e.countColumn=f,e.findColumn=p,e.isWordChar=w,e.Pass=Ba,e.signal=Ee,e.Line=hl,e.changeEnd=Ur,e.scrollbarModel=kl,e.Pos=I,e.cmpPos=R,e.modes=ll,e.mimeModes=ul,e.resolveMode=Ve,e.getMode=Be,e.modeExtensions=sl,e.extendMode=je,e.copyState=Ke,e.startState=$e,e.innerMode=Ge,e.commands=Bl,e.keyMap=Vl,e.keyName=so,e.isModifierKey=lo,e.lookupKey=ao,e.normalizeKeyMap=oo,e.StringStream=cl,e.SharedTextMarker=Dl,e.TextMarker=Al,e.LineWidget=Ol,e.e_preventDefault=Pe,e.e_stopPropagation=Ae,e.e_stop=_e,e.addClass=l,e.contains=o,e.rmClass=Fa,e.keyNames=Hl}($o),$o.version="5.34.0",$o}()}()},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";function r(e){if(e.tag)return[0,[e[0],"",""]];var t=e[0];return[1,[t[0],v.a(t[1]),v.a(t[2])]]}function i(e){var t=e[0];if(0!==t){if(1!==t)throw w;var n=e[1];return d.a(0,[[n[0],v.b(n[1]),v.b(n[2])]])}return d.a(1,[e[1][0]])}function o(e,t,n,r,o){var a=t?t[0]:3,l=n?n[0]:2,u=r?r[0]:3;return m.a("refmt:refmt",[h.a(h.b(e)),a,l,u],function(e){return p.b(o,i(e))})}function a(e){return m.b("refmt:refmt",function(t,n,i){return p.d(e,t,function(e){return p.b(i,r(e))})})}function l(e){return chrome.storage.local.get("disabled",function(t){return p.b(e,g.b[5](0,y.a(t.disabled)))}),0}function u(e){return chrome.storage.local.set({disabled:e}),0}function s(e){return chrome.storage.onChanged.addListener(function(t,n){var r=t.disabled;return void 0!==r?p.b(e,r.newValue):0}),0}function c(e){return chrome.storage.local.get("latestRefmtString",function(t){return p.b(e,y.b(t.latestRefmtString))}),0}function f(e){return chrome.storage.local.set({latestRefmtString:e}),0}n.d(t,"c",function(){return k}),n.d(t,"d",function(){return S}),n.d(t,"a",function(){return x}),n.d(t,"b",function(){return C});var d=n(4),p=n(1),h=n(33),g=n(23),m=n(30),v=n(37),y=n(47),b=n(5),w=b.a("Protocol.Refmt.DeserializationFail"),x=[w,r,i,o,a],C=[l,u,s,c,f],k=v.a,S=v.b;v.c},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"g",function(){return s});var r={display:"flex",overflow:"hidden",flex:"1",flexDirection:"row",justifyContent:"space-around"},i={display:"flex",paddingBottom:"1%",position:"relative",flexDirection:"column"},o={display:"flex",fontFamily:"sans-serif",fontSize:"3vh",maxHeight:"25px",minHeight:"16px",paddingTop:"0.5vh",paddingBottom:"0.5vh",width:"100%",alignItems:"center",flex:"1",justifyContent:"space-between"},a={backgroundColor:"rgba(0,0,0,0.8)",color:"white",display:"flex",fontFamily:"sans-serif",left:"50%",padding:"4vh 8vh 6vh",position:"absolute",top:"50%",zIndex:"10",borderRadius:"2vh",alignItems:"center",flexDirection:"column",justifyContent:"center",transform:"translate(-50%,-50%)"},l={color:"rgb(219, 76, 63)",cursor:"pointer",fontSize:"16px",lineHeight:"16px",paddingLeft:"1vw",textDecoration:"none"},u={cursor:"pointer",height:"16px",paddingLeft:"1vw",width:"16px"},s={flex:"1"}},function(e,t,n){"use strict";function r(e){for(var t=e.length-1|0,n=0;;){var r=n,i=t;if(i<0)return r;n=[e[i],r],t=i-1|0}}n.d(t,"a",function(){return r});var i=(n(1),n(18),n(10)),o=n(5);n(0),o.a("Array.Bottom"),i.f},function(e,t,n){"use strict";function r(e,t){for(;;){var n=t,a=e;if(a===n)return 0;var l=typeof a,u=typeof n;if("string"===l)return i.a(a,n);var s=+("number"===l),c=+("number"===u);if(0!==s)return 0!==c?i.b(a,n):-1;if(0!==c)return 1;if("boolean"===l||"undefined"===l||null===a){var f=a,d=n;return f===d?0:f=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="";1==(1&e)&&(n+=t),0!=(e>>>=1);)t+=t;return n}},function(e,t,n){"use strict";function r(e){return i.b(e)?e:[o,e]}n.d(t,"a",function(){return r});var i=n(5),o=i.a("Js_exn.Error")},function(e,t,n){"use strict";function r(e,t){if(t){var n=t[0],r=[0],i=[0];a.b(function(e){return r[0]=r[0]+1|0,i[0]=i[0]+e.length|0,0},t);var o=s.b(i[0]+u.a(e.length,r[0]-1|0)|0);s.f(n,0,o,0,n.length);var l=[n.length];return a.b(function(t){return s.f(e,0,o,l[0],e.length),l[0]=l[0]+e.length|0,s.f(t,0,o,l[0],t.length),l[0]=l[0]+t.length|0,0},t[1]),s.c(o)}return""}function i(e){var t=e-9|0;return t>4||t<0?23!==t?0:1:2!==t?1:0}function o(e){return""===e||!i(e.charCodeAt(0))&&!i(e.charCodeAt(e.length-1|0))?e:s.c(l.i(s.e(e)))}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var a=n(9),l=n(38),u=n(6),s=n(8);n(7).a,l.v,l.w},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* +!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=31)}([function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return p});var r=["Out_of_memory",0],i=["Sys_error",-1],o=["Failure",-2],a=["Invalid_argument",-3],l=["End_of_file",-4],s=["Division_by_zero",-5],u=["Not_found",-6],c=["Match_failure",-7],f=["Stack_overflow",-8],d=["Sys_blocked_io",-9],p=["Assert_failure",-10],h=["Undefined_recursive_module",-11];r.tag=248,i.tag=248,o.tag=248,a.tag=248,l.tag=248,s.tag=248,u.tag=248,c.tag=248,f.tag=248,d.tag=248,p.tag=248,h.tag=248},function(e,t,n){"use strict";function r(e,t){for(;;){var n=t,i=e,o=i.length,a=o||1,l=n.length,s=a-l|0;if(s){if(s<0){t=d.b(n,a,0|-s),e=i.apply(null,d.b(n,0,a));continue}return function(e,t){return function(n){return r(e,t.concat([n]))}}(i,n)}return i.apply(null,n)}}function i(e,t,n){if(n>7||n<0)return r(e,[t]);switch(n){case 0:case 1:return e(t);case 2:return function(n){return e(t,n)};case 3:return function(n,r){return e(t,n,r)};case 4:return function(n,r,i){return e(t,n,r,i)};case 5:return function(n,r,i,o){return e(t,n,r,i,o)};case 6:return function(n,r,i,o,a){return e(t,n,r,i,o,a)};case 7:return function(n,r,i,o,a,l){return e(t,n,r,i,o,a,l)}}}function o(e,t){var n=e.length;return 1===n?e(t):i(e,t,n)}function a(e,t,n,i){if(i>7||i<0)return r(e,[t,n]);switch(i){case 0:case 1:return r(e(t),[n]);case 2:return e(t,n);case 3:return function(r){return e(t,n,r)};case 4:return function(r,i){return e(t,n,r,i)};case 5:return function(r,i,o){return e(t,n,r,i,o)};case 6:return function(r,i,o,a){return e(t,n,r,i,o,a)};case 7:return function(r,i,o,a,l){return e(t,n,r,i,o,a,l)}}}function l(e,t,n){var r=e.length;return 2===r?e(t,n):a(e,t,n,r)}function s(e,t,n,i,o){var a=0;if(o>7||o<0)return r(e,[t,n,i]);switch(o){case 0:case 1:a=1;break;case 2:return r(e(t,n),[i]);case 3:return e(t,n,i);case 4:return function(r){return e(t,n,i,r)};case 5:return function(r,o){return e(t,n,i,r,o)};case 6:return function(r,o,a){return e(t,n,i,r,o,a)};case 7:return function(r,o,a,l){return e(t,n,i,r,o,a,l)}}return 1===a?r(e(t),[n,i]):void 0}function u(e,t,n,r){var i=e.length;return 3===i?e(t,n,r):s(e,t,n,r,i)}function c(e,t,n,i,o,a,l){var s=0;if(l>7||l<0)return r(e,[t,n,i,o,a]);switch(l){case 0:case 1:s=1;break;case 2:return r(e(t,n),[i,o,a]);case 3:return r(e(t,n,i),[o,a]);case 4:return r(e(t,n,i,o),[a]);case 5:return e(t,n,i,o,a);case 6:return function(r){return e(t,n,i,o,a,r)};case 7:return function(r,l){return e(t,n,i,o,a,r,l)}}return 1===s?r(e(t),[n,i,o,a]):void 0}function f(e,t,n,r,i,o){var a=e.length;return 5===a?e(t,n,r,i,o):c(e,t,n,r,i,o,a)}n.d(t,"b",function(){return o}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return f});var d=n(10)},function(e,t,n){"use strict";e.exports=n(75)},function(e,t,n){"use strict";function r(){return 0}function i(){return 0}function o(){return 0}function a(){return 0}function l(){return 1}function s(e){return e[2]}function u(){return"RenderNotImplemented"}function c(){return 0}function f(e,t){return 0}function d(){return 0}function p(e,t,n){var r=e.reasonProps;if(null==r){if(t)return[b.b(t[0],e)];throw[x.a,"A JS component called the Reason component "+n+" which didn't implement the JS->Reason React props conversion."]}return r}function h(e){return C.a({displayName:e,subscriptions:null,self:function(e,t){var n=this;return[n.handleMethod,n.reduceMethod,e,t,n.sendMethod]},transitionNextTotalState:function(e,t){if("number"==typeof t)return e;switch(0|t.tag){case 0:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:e.sideEffects};case 1:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:e.sideEffects};case 2:return{reasonState:e.reasonState,reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:[t[0],e.sideEffects]};case 3:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:[t[1],e.sideEffects]};case 4:return{reasonState:t[0],reasonStateVersion:e.reasonStateVersion+1|0,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements+1|0,sideEffects:[t[1],e.sideEffects]}}},getInitialState:function(){var t=this,n=p(t.props,t.jsPropsToReason,e);return{reasonState:b.b(n[0][10],0),reasonStateVersion:1,reasonStateVersionUsedToComputeSubelements:1,sideEffects:0}},componentDidMount:function(){var t=this,n=this,i=p(n.props,n.jsPropsToReason,e),o=i[0],a=n.state,l=a.reasonState,s=t.self(l,o[11]);if(o[13]!==d){var u=y.a(function(e){var t=e[1],n=b.b(e[0],0);return function(){return b.b(t,n)}},b.b(o[13],s));t.subscriptions=u}if(o[4]!==r){var c=b.b(o[4],s),f=t.transitionNextTotalState(a,c);return f.reasonStateVersion!==a.reasonStateVersion?n.setState(f):0}return 0},componentDidUpdate:function(t,n){var r=this,i=this,a=i.state,l=a.reasonState,s=i.props,u=p(s,i.jsPropsToReason,e),c=u[0];if(c[5]!==o){var f=+(t===s),d=0!==f?u:p(t,i.jsPropsToReason,e),h=n.reasonState,g=r.self(l,c[11]),m=g[0],v=g[1],y=d[0][11],w=g[4],x=[m,v,h,y,w];return b.b(c[5],[x,g])}return 0},componentWillUnmount:function(){var t=this,n=this,r=p(n.props,n.jsPropsToReason,e),i=r[0],o=n.state,l=o.reasonState;i[6]!==a&&b.b(i[6],t.self(l,i[11]));var s=t.subscriptions;return null==s?0:y.b(function(e){return b.b(e,0)},y.c(s))},componentWillUpdate:function(t,n){var r=this,o=this,a=p(t,o.jsPropsToReason,e),l=a[0];if(l[7]!==i){var s=o.props,u=+(t===s),c=0!==u?a:p(s,o.jsPropsToReason,e),f=o.state,d=f.reasonState,h=n.reasonState,g=r.self(h,l[11]),m=g[0],v=g[1],y=c[0][11],w=g[4],x=[m,v,d,y,w];return b.b(l[7],[x,g])}return 0},componentWillReceiveProps:function(t){var n=this,r=this,i=p(t,r.jsPropsToReason,e),o=i[0];if(o[3]!==s){var a=r.props,l=+(t===a),u=0!==l?i:p(a,r.jsPropsToReason,e),c=u[0];return r.setState(function(e,t){var r=e.reasonState,i=e.reasonStateVersion,a=n.self(r,c[11]),l=b.b(o[3],a),s=+(l!==r),u=0!==s?i+1|0:i;return u!==i?{reasonState:l,reasonStateVersion:u,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:l.sideEffects}:e})}return 0},shouldComponentUpdate:function(t,n,r){var i,o=this,a=this,s=a.props,u=+(t!==s),c=p(a.props,a.jsPropsToReason,e),f=+(t===s),d=0!==f?c:p(t,a.jsPropsToReason,e),h=d[0],g=n.reasonStateVersion,m=n.reasonStateVersionUsedToComputeSubelements,v=+(m!==g),w=u||v,x=n.reasonState,C=o.self(x,h[11]);if(w&&h[8]!==l){var k=a.state,S=k.reasonState,T=C[0],E=C[1],M=c[0][11],L=C[4],N=[T,E,S,M,L];i=b.b(h[8],[N,C])}else i=w;n.reasonStateVersionUsedToComputeSubelements=g;var O=y.c(n.sideEffects);return 0!==O&&(y.b(function(e){return b.b(e,C)},O),a.setState(function(e,t){var r=y.d(e.sideEffects)-y.d(n.sideEffects)|0,i=function(e,t,n){for(;;){var r=n,i=t,o=e;if(r){if(i>0){n=r[1],t=i-1|0,e=[r[0],o];continue}return y.c(o)}return y.c(o)}}(0,r,e.sideEffects);return{reasonState:e.reasonState,reasonStateVersion:e.reasonStateVersion,reasonStateVersionUsedToComputeSubelements:e.reasonStateVersionUsedToComputeSubelements,sideEffects:i}})),i},handleMethod:function(t){var n=this,r=this;return function(i){var o=r.state,a=o.reasonState,l=p(r.props,r.jsPropsToReason,e);return b.d(t,i,n.self(a,l[0][11]))}},updateMethod:function(t){var n=this,r=this;return function(i){var o=r.state,a=o.reasonState,l=p(r.props,r.jsPropsToReason,e),s=b.d(t,i,n.self(a,l[0][11]));if(s){var u=n.transitionNextTotalState(o,s);return u.reasonStateVersion!==o.reasonStateVersion?r.setState(u):0}return k}},sendMethod:function(t){var n=this,r=this,i=p(r.props,r.jsPropsToReason,e),o=i[0];if(o[12]!==f){var a=b.b(o[12],t);return r.setState(function(e,t){var r=e.reasonState,i=b.b(a,r);if(i){var o=n.transitionNextTotalState(e,i);return o.reasonStateVersion!==e.reasonStateVersion?o:k}return k})}return 0},reduceMethod:function(e,t){return this.sendMethod(b.b(e,t))},render:function(){var t=this,n=this,r=p(n.props,n.jsPropsToReason,e),i=r[0],o=n.state,a=o.reasonState;return b.b(i[9],t.self(a,i[11]))}})}function g(e){return[e,h(e),[0],s,r,o,a,i,l,u,c,0,f,d,0]}function m(e,t,n){var r=e?e[0]:void 0,i=t?t[0]:void 0,o=[n],a=n[14];return a?b.d(a[0],r,i):w.createElement(n[1],{key:r,ref:i,reasonProps:o})}function v(e,t,n){var r=[function(r,i){var o=e,a=t,l=n,s=r,u=i,c=Object.assign(Object.assign({},a),{ref:u,key:s}),f=[o,c].concat(l);return w.createElement.apply(null,f)}],i=E.slice();return i[14]=r,i}n.d(t,"c",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"a",function(){return m}),n.d(t,"d",function(){return v});var y=n(9),b=(n(15),n(1)),w=n(2),x=(n.n(w),n(0)),C=n(77),k=null,S=g,T=g,E=g("interop")},function(e,t,n){"use strict";function r(){return a[0]+=1,a[0]}function i(e){var t=r(0),n=[e,t];return n.tag=248,n}function o(e){if(void 0===e)return 0;if(248===e.tag)return 1;var t=e[0];return void 0!==t?+(248===t.tag):0}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var a=[0]},function(e,t,n){"use strict";function r(e,t){return t.tag=e,t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return(255&e)<<24|(65280&e)<<8|(16711680&e)>>>8|(4278190080&e)>>>24}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var i=(n(0),Math.imul||function(e,t){return t|=0,((e>>16)*t<<16)+(65535&e)*t|0})},function(e,t,n){"use strict";function r(e,t){return et?e:t}n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"c",function(){return a});var l=r},function(e,t,n){"use strict";function r(e){if(e<0)throw[c.a,"String.create"];return new Array(e)}function i(e,t,n,r){if(n>0){for(var i=t,o=(n+t|0)-1|0;i<=o;++i)e[i]=r;return 0}return 0}function o(e,t,n,r,i){if(i>0){var o=e.length-t|0;if(i<=o){for(var a=0,l=i-1|0;a<=l;++a)n[r+a|0]=e.charCodeAt(t+a|0);return 0}for(var s=0,u=o-1|0;s<=u;++s)n[r+s|0]=e.charCodeAt(t+s|0);for(var c=o,f=i-1|0;c<=f;++c)n[r+c|0]=0;return 0}return 0}function a(e,t,n,r,i){if(i>0){if(e===n){var o=e,a=t,l=r,s=i;if(ac?c:u,d=f;d>=0;--d)o[l+d|0]=o[a+d|0];return 0}if(a>l){for(var p=(o.length-a|0)-1|0,h=s-1|0,g=p>h?h:p,m=0;m<=g;++m)o[l+m|0]=o[a+m|0];return 0}return 0}var v=e.length-t|0;if(i<=v){for(var y=0,b=i-1|0;y<=b;++y)n[r+y|0]=e[t+y|0];return 0}for(var w=0,x=v-1|0;w<=x;++w)n[r+w|0]=e[t+w|0];for(var C=v,k=i-1|0;C<=k;++C)n[r+C|0]=0;return 0}return 0}function l(e){for(var t=e.length,n=new Array(t),r=0,i=t-1|0;r<=i;++r)n[r]=e.charCodeAt(r);return n}function s(e){var t=e,n=e.length,r="",i=n;if(n<=4096&&n===t.length)return String.fromCharCode.apply(null,t);for(var o=0;i>0;){var l=i<1024?i:1024,s=new Array(l);a(t,o,s,0,l),r+=String.fromCharCode.apply(null,s),i=i-l|0,o=o+l|0}return r}function u(e,t){if(t<0||t>=e.length)throw[c.a,"index out of bounds"];return e.charCodeAt(t)}n.d(t,"e",function(){return l}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return u});var c=n(0)},function(e,t,n){"use strict";function r(e){for(var t=0,n=e;;){var r=n,i=t;if(!r)return i;n=r[1],t=i+1|0}}function i(e,t){for(;;){var n=t,r=e;if(!r)return n;t=[r[0],n],e=r[1]}}function o(e){return i(e,0)}function a(e,t){return t?[u.b(e,t[0]),a(e,t[1])]:0}function l(e,t){for(;;){var n=t;if(!n)return 0;u.b(e,n[0]),t=n[1]}}function s(e){return function(t){for(var n=0,r=t;;){var o=r,a=n;if(!o)return i(a,0);var l=o[1],s=o[0];u.b(e,s)?(r=l,n=[s,a]):r=l}}}n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return f});var u=n(1),c=(n(16),n(48)),f=(n(0),c.a,s)},function(e,t,n){"use strict";function r(e,t,n){for(var r=new Array(n),i=0,o=t;i=e.length)throw[f.a,"index out of bounds"];return e[t]=n,0}function s(e,t){if(t<0||t>=e.length)throw[f.a,"index out of bounds"];return e[t]}function u(e,t){for(var n=new Array(e),r=0,i=e-1|0;r<=i;++r)n[r]=t;return n}function c(e,t,n,r,i){if(r<=t){for(var o=0,a=i-1|0;o<=a;++o)n[o+r|0]=e[o+t|0];return 0}for(var l=i-1|0;l>=0;--l)n[l+r|0]=e[l+t|0];return 0}n.d(t,"b",function(){return r}),n.d(t,"f",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return l});var f=n(0)},function(e,t,n){!function(t,n){e.exports=function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}function d(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function h(e){for(;$a.length<=e;)$a.push(g($a)+" ");return $a[e]}function g(e){return e[e.length-1]}function m(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||qa.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&w(e))||t.test(e):w(e)}function C(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Ya.test(e)}function S(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function E(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+Va+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),ya&&ba<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),wa||ha&&Na||(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,n.init(o)}function M(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 i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?I(n,M(e,n).text.length):B(t,M(e,t.line).text.length)}function B(e,t){var n=e.ch;return null==n||n>t?I(e.line,t):n<0?I(e.line,0):e}function j(e,t){for(var n=[],r=0;r=t:o.to>t);(r||(r=[])).push(new $(a,o.from,s?null:o.to))}}return r}function Z(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(l||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var x=0;x0)){var c=[s,1],f=R(u.from,l.from),p=R(u.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:l.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?R(u.to,n)>=0:R(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?R(u.from,r)<=0:R(u.from,r)<0)))return!0}}}function fe(e){for(var t;t=se(e);)e=t.find(-1,!0).line;return e}function de(e){for(var t;t=ue(e);)e=t.find(1,!0).line;return e}function pe(e){for(var t,n;t=ue(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function he(e,t){var n=M(e,t),r=fe(n);return n==r?t:P(r)}function ge(e,t){if(t>e.lastLine())return t;var n,r=M(e,t);if(!me(e,r))return t;for(;n=ue(r);)r=n.find(1,!0).line;return P(r)+1}function me(e,t){var n=Qa&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function xe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}function Ce(e,t,n){var r;Za=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Za=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Za=i)}return null!=r?r:Za}function ke(e,t){var n=e.order;return null==n&&(n=e.order=Ja(e.text,t)),n}function Se(e,t){return e._handlers&&e._handlers[t]||el}function Te(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=d(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ee(e,t){var n=Se(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Oe(e){e.prototype.on=function(e,t){tl(this,e,t)},e.prototype.off=function(e,t){Te(this,e,t)}}function Pe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ae(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function De(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Pe(e),Ae(e)}function Ie(e){return e.target||e.srcElement}function Re(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Oa&&e.ctrlKey&&1==t&&(t=3),t}function Fe(e){if(null==za){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(za=t.offsetWidth<=1&&t.offsetHeight>2&&!(ya&&ba<8))}var i=za?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function He(e){if(null!=Ua)return Ua;var r=n(e,document.createTextNode("AخA")),i=_a(r,0,1).getBoundingClientRect(),o=_a(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Ua=o.right-i.right<3)}function We(e){if(null!=al)return al;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=_a(t,0,1).getBoundingClientRect();return al=Math.abs(i.left-o.left)>1}function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ll[e]=t}function Ue(e,t){sl[e]=t}function Ve(e){if("string"==typeof e&&sl.hasOwnProperty(e))e=sl[e];else if(e&&"string"==typeof e.name&&sl.hasOwnProperty(e.name)){var t=sl[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Ve(t);var n=ll[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(ul.hasOwnProperty(t.name)){var i=ul[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}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}function je(e,t){c(t,ul.hasOwnProperty(e)?ul[e]:ul[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(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 $e(e,t,n){return!e.startState||e.startState(t,n)}function qe(e,t,n,r){var i=[e.state.modeGen],o={};nt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=0;le&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=qe(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.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 Xe(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new dl(r,!0,t);var o=rt(e,t,n),a=o>r.first&&M(r,o-1).stateAfter,l=a?dl.fromSaved(r,a,o):new dl(r,$e(r.mode),o);return r.iter(o,t,function(n){Qe(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function et(e,t,n,r){var i,o=e.doc,a=o.mode;t=V(o,t);var l,s=M(o,t.line),u=Xe(e,t.line,n),c=new cl(s.text,e.options.tabSize,u);for(r&&(l=[]);(r||c.pose.options.maxHighlightLength?(l=!1,a&&Qe(e,t,r,f.pos),f.pos=t.length,s=null):s=tt(Je(n,f,r.state,d),o),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||c!=s){for(;ua;--l){if(l<=o.first)return o.first;var s=M(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof fl?u.lookAhead:0)<=o.modeFrontier))return l;var c=f(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}function it(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=M(e,r).stateAfter;if(i&&(!(i instanceof fl)||r+i.lookAhead1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&f.from<=u));d++);if(f.to>=c)return e(n,r,i,o,a,l,s);e(n,r.slice(0,f.to-u),i,o,null,l,s),o=null,r=r.slice(f.to-u),u=f.to}}}function pt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ht(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,u,c,f,d,p=i.length,h=0,g=1,m="",v=0;;){if(v==h){s=u=c=f=l="",d=null,v=1/0;for(var y=[],b=void 0,w=0;wh||C.collapsed&&x.to==h&&x.from==h)?(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&x.from==h&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&!f&&(f=C.title),C.collapsed&&(!d||ae(d.marker,C)<0)&&(d=x)):x.from>h&&v>x.from&&(v=x.from)}if(b)for(var k=0;k=p)break;for(var T=Math.min(p,v);;){if(m){var E=h+m.length;if(!d){var M=E>T?m.slice(0,T-h):m;t.addToken(t,M,a?a+s:s,c,h+M.length==v?u:"",f,l)}if(E>=T){m=m.slice(T-h),h=T;break}h=E,c=""}m=i.slice(o,o=n[g++]),a=lt(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Bt(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[i],cache:e.measure.caches[i],before:!0}}function jt(e,t){t=fe(t);var r=P(t),i=e.display.externalMeasured=new gt(e.doc,t,r);i.lineN=r;var o=i.built=st(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Kt(e,t,n,r){return qt(e,$t(e,t),n,r)}function Gt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-l,i=o-1,t>=s&&(a="right")),null!=i){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==s-l)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Qt(e,t,n,r){var i,o=Yt(t.map,n,r),a=o.node,l=o.start,s=o.end,u=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;l&&k(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+s0&&(u=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ya&&ba<9&&!l&&(!i||!i.left&&!i.right)){var d=a.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+wn(e.display),top:d.top,bottom:d.bottom}:wl}for(var p=i.top-t.rect.top,h=i.bottom-t.rect.top,g=(p+h)/2,m=t.view.measure.heights,v=0;v=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);var f=Ce(s,u,c),d=Za,p=l(u,f,"before"==c);return null!=d&&(p.other=l(u,d,"before"!=c)),p}function cn(e,t){var n=0;t=V(e.doc,t),e.options.lineWrapping||(n=wn(e.display)*t.ch);var r=M(e.doc,t.line),i=ye(r)+Rt(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function fn(e,t,n,r,i){var o=I(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function dn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return fn(r.first,0,null,!0,-1);var i=A(r,n),o=r.first+r.size-1;if(i>o)return fn(r.first+r.size-1,M(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=M(r,i);;){var l=mn(e,a,i,t,n),s=ue(a),u=s&&s.find(0,!0);if(!s||!(l.ch>u.from.ch||l.ch==u.from.ch&&l.xRel>0))return l;i=P(a=u.to.line)}}function pn(e,t,n,r){r-=on(t);var i=t.text.length,o=T(function(t){return qt(e,n,t-1).bottom<=r},i,0);return i=T(function(t){return qt(e,n,t).top>r},o,i),{begin:o,end:i}}function hn(e,t,n,r){return n||(n=$t(e,t)),pn(e,t,n,an(e,t,qt(e,n,r),"line").top)}function gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function mn(e,t,n,r,i){i-=ye(t);var o=$t(e,t),a=on(t),l=0,s=t.text.length,u=!0,c=ke(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?yn:vn)(e,t,n,o,c,r,i);u=1!=f.level,l=u?f.from:f.to-1,s=u?f.to:f.from-1}var d,p,h=null,g=null,m=T(function(t){var n=qt(e,o,t);return n.top+=a,n.bottom+=a,!!gn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,g=n),!0)},l,s),v=!1;if(g){var y=r-g.left=w.bottom}return m=S(t.text,m,1),fn(n,m,p,v,r-d)}function vn(e,t,n,r,i,o,a){var l=T(function(l){var s=i[l],u=1!=s.level;return gn(un(e,I(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=1!=s.level,c=un(e,I(n,u?s.from:s.to,u?"after":"before"),"line",t,r);gn(c,o,a,!0)&&c.top>a&&(s=i[l-1])}return s}function yn(e,t,n,r,i,o,a){var l=pn(e,t,r,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||p.to<=s)){var h=1!=p.level,g=qt(e,r,h?Math.min(u,p.to)-1:Math.max(s,p.from)).right,m=gm)&&(c=p,f=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==gl){gl=r("pre");for(var i=0;i<49;++i)gl.appendChild(document.createTextNode("x")),gl.appendChild(r("br"));gl.appendChild(document.createTextNode("x"))}n(e.measure,gl);var o=gl.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function wn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function xn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Cn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Cn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kn(e){var t=bn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/wn(e.display)-3);return function(i){if(me(e.doc,i))return 0;var o=0;if(i.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||l.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 Dn(e){e.state.focused||(e.display.input.focus(),In(e))}function _n(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Rn(e))},100)}function In(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ee(e,"focus",e,t),e.state.focused=!0,l(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),wa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),An(e))}function Rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ee(e,"blur",e,t),e.state.focused=!1,Fa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||s<-.005)&&(O(i.line,o),Hn(i.line),i.rest))for(var u=0;u=a&&(o=A(t,ye(M(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function zn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Cn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Ea){var a=r("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Rt(e.display))+"px;\n height: "+(t.bottom-t.top+Wt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Bn(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(t=t.ch?I(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?I(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=un(e,t),s=n&&n!=t?un(e,n):l;i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var u=Kn(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Zn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(er(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function jn(e,t){var n=Kn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&er(e,n.scrollLeft)}function Kn(e,t){var n=e.display,r=bn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ut(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Ft(n),s=t.topl-r;if(t.topi+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=zt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function Gn(e,t){null!=t&&(Xn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function $n(e){Xn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function qn(e,t,n){null==t&&null==n||Xn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){Xn(e),e.curOp.scrollToPos=t}function Xn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Qn(e,cn(e,t.from),cn(e,t.to),t.margin))}function Qn(e,t,n,r){var i=Kn(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});qn(e,i.scrollLeft,i.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ha||Or(e,{top:t}),Jn(e,t,!0),ha&&Or(e),kr(e,100))}function Jn(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 er(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,zn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function tr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ft(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+Wt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function nr(e,t){t||(t=tr(e));var n=e.display.barWidth,r=e.display.barHeight;rr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Fn(e),rr(e,tr(e)),n=e.display.barWidth,r=e.display.barHeight}function rr(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=""}function ir(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Fa(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new kl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),tl(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?er(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&l(e.display.wrapper,e.display.scrollbars.addClass)}function or(e){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:++Sl},vt(e.curOp)}function ar(e){bt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Tl(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ur(e){e.updatedDisplay=e.mustUpdate&&Lr(e.cm,e.update)}function cr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Fn(t),e.barMeasure=tr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Kt(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+Wt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-zt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function fr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Qa&&he(e.doc,t)i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var o=wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var a=wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):br(e)}else{var l=wr(e,t,t,-1),s=wr(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(mt(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):br(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[En(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==d(a,n)&&a.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function wr(e,t,n,r){var i,o=En(e,t),a=e.display.view;if(!Qa||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;he(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function xr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=mt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=mt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,En(e,n)))),r.viewTo=n}function Cr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Xe(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,s=qe(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dn)return kr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&pr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Cr(e))return!1;Un(e)&&(br(e),n.dims=xn(e));var o=i.first+i.size,a=Math.max(n.visible.from-e.options.viewportMargin,i.first),l=Math.min(o,n.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(o,r.viewTo)),Qa&&(a=he(e.doc,a),l=ge(e.doc,l));var s=a!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;xr(e,a,l),r.viewOffset=ye(M(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=Cr(e);if(!s&&0==u&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Er(e);return u>4&&(r.lineDiv.style.display="none"),Pr(e,r.updateLineNumbers,n.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Mr(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,kr(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=zt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ft(e.display)-Ut(e),n.top)}),t.visible=Wn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Lr(e,t);r=!1){Fn(e);var i=tr(e);Mn(e),nr(e,i),Dr(e,i),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 Or(e,t){var n=new Tl(e,t);if(Lr(e,n)){Fn(e),Nr(e,n);var r=tr(e);Mn(e),nr(e,r),Dr(e,r),n.finish()}}function Pr(e,n,r){function i(t){var n=t.nextSibling;return wa&&Oa&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,l=o.lineDiv,s=l.firstChild,u=o.view,c=o.viewFrom,f=0;f-1&&(h=!1),Ct(e,p,c,r)),h&&(t(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(_(e.options,c)))),s=p.node.nextSibling}else{var g=Ot(e,p,c,r);l.insertBefore(g,s)}c+=p.size}for(;s;)s=i(s)}function Ar(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Dr(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+Wt(e)+"px"}function _r(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Rr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Fr(e){var t=Rr(e);return t.x*=Ml,t.y*=Ml,t}function Hr(e,t){var n=Rr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&l||i&&s){if(i&&Oa&&wa)e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode)for(var f=0;f=0){var a=z(o.from(),i.from()),l=W(o.to(),i.to()),s=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new Nl(s?l:a,s?a:l))}}return new Ll(e,t)}function zr(e,t){return new Ll([new Nl(e,t||e)],0)}function Ur(e){return e.text?I(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Vr(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return Ur(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+=Ur(t).ch-t.to.ch),I(n,r)}function Br(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,h-1),e.insert(l.line+1,y)}wt(e,"change",e,t)}function Xr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function ii(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>l-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=ri(i,i.lastOp==r)))a=g(o.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=Ur(t):o.changes.push(ti(e,t));else{var s=g(i.done);for(s&&s.ranges||li(e.sel,i.done),o={changes:[ti(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ee(e,"historyAdded")}function oi(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ai(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||oi(e,o,g(i.done),t))?i.done[i.done.length-1]=t:li(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ni(i.undone)}function li(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function si(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function ui(e){if(!e)return null;for(var t,n=0;n-1&&(g(l)[f]=u[f],delete u[f])}}}return r}function pi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=R(t,i)<0;o!=R(n,i)<0?(i=t,t=n):o!=R(t,n)<0&&(t=n)}return new Nl(i,t)}return new Nl(n||t,t)}function hi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Ll([pi(e.sel.primary(),t,n,i)],0),r)}function gi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(Ee(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(u=Mi(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=R(u,n))&&(r<0?c<0:c>0))return Ti(e,u,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=Mi(e,f,r,f.line==t.line?o:null)),f?Ti(e,f,t,r,i):null}}return t}function Ei(e,t,n,r,i){var o=r||1;return Ti(e,t,n,o,i)||!i&&Ti(e,t,n,o,!0)||Ti(e,t,n,-o,i)||!i&&Ti(e,t,n,-o,!0)||(e.cantEdit=!0,I(e.first,0))}function Mi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?V(e,I(t.line-1)):null:n>0&&t.ch==(r||M(e,t.line)).text.length?t.line=0;--i)Pi(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Pi(e,t)}}function Pi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=Br(e,t);ii(e,t,n,e.cm?e.cm.curOp.id:NaN),_i(e,t,n,J(e,t));var r=[];Xr(e,function(e,n){n||-1!=d(r,e.history)||(Wi(e.history,t),r.push(e.history)),_i(e,t,null,J(e,t))})}}function Ai(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,s=0;s=0;--f){var p=function(n){var i=r.changes[n];if(i.origin=t,c&&!Ni(e,i,!1))return a.length=0,{};u.push(ti(e,i));var o=n?Br(e,i):g(a);_i(e,i,o,fi(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Ur(i)});var l=[];Xr(e,function(e,t){t||-1!=d(l,e.history)||(Wi(e.history,i),l.push(e.history)),_i(e,i,null,fi(e,i))})}(f);if(p)return p.v}}}}function Di(e,t){if(0!=t&&(e.first+=t,e.sel=new Ll(m(e.sel.ranges,function(e){return new Nl(I(e.anchor.line+t,e.anchor.ch),I(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:I(o,M(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=L(e,t.from,t.to),n||(n=Br(e,t)),e.cm?Ii(e.cm,t,r):Yr(e,t,r),xi(e,n,ja)}}function Ii(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=P(fe(M(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Le(e),Yr(r,t,n,kn(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),it(r,o.line),kr(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?vr(e):o.line!=a.line||1!=t.text.length||qr(e.doc,t)?vr(e,o.line,a.line+1,u):yr(e,o.line,"text");var c=Ne(e,"changes"),f=Ne(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&wt(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Ri(e,t,n,r,i){if(r||(r=n),R(r,n)<0){var o;o=[r,n],n=o[0],r=o[1]}"string"==typeof t&&(t=e.splitLines(t)),Oi(e,{from:n,to:r,text:t,origin:i})}function Fi(e,t,n,r){n0||0==l&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ce(e,t.line,t,n,a)||t.line!=n.line&&ce(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&ii(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,f=e.cm;if(e.iter(u,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(s=!0),a.collapsed&&u!=t.line&&O(e,0),X(e,new $(a,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&O(t,0)}),a.clearOnEnter&&tl(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(K(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Pl,a.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),a.collapsed)vr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var d=t.line;d<=n.line;d++)yr(f,d,"text");a.atomic&&ki(f.doc),wt(f,"markerAdded",f,a)}return a}function Gi(e,t,n,r,i){r=c(r),r.shared=!1;var o=[Ki(e,t,n,r,i)],a=o[0],l=r.widgetNode;return Xr(e,function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(Ki(e,V(e,t),V(e,n),r,i));for(var s=0;s-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var s=e.dataTransfer.getData("Text");if(s){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),xi(t.doc,zr(n,n)),u)for(var c=0;c=0;t--)Ri(e.doc,"",r[t].from,r[t].to,"+delete");$n(e)})}function po(e,t,n){var r=S(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ho(e,t,n){var r=po(e,t.ch,n);return null==r?null:new I(t.line,r,n<0?"after":"before")}function go(e,t,n,r,i){if(e){var o=ke(n,t.doc.direction);if(o){var a,l=i<0?g(o):o[0],s=i<0==(1==l.level),u=s?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=$t(t,n);a=i<0?n.text.length-1:0;var f=qt(t,c,a).top;a=T(function(e){return qt(t,c,e).top==f},i<0==(1==l.level)?l.from:l.to-1,a),"before"==u&&(a=po(n,a,1))}else a=i<0?l.to:l.from;return new I(r,a,u)}}return new I(r,i<0?n.text.length:0,i<0?"before":"after")}function mo(e,t,n,r){var i=ke(t,e.doc.direction);if(!i)return ho(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 o=Ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var p=f?"before":"after";return new I(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new I(n.line,s(e,1),"before"):new I(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=l?r.begin:s(r.end,-1);if(a.from<=u&&u0?c.end:s(c.begin,-1);return null==m||r>0&&m==t.text.length||!(g=h(r>0?0:i.length-1,r,u(m)))?null:g}function vo(e,t){var n=M(e.doc,t),r=fe(n);return r!=n&&(t=P(r)),go(!0,e,r,t,1)}function yo(e,t){var n=M(e.doc,t),r=de(n);return r!=n&&(t=P(r)),go(!0,e,n,t,-1)}function bo(e,t){var n=vo(e,t.line),r=M(e.doc,n.line),i=ke(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return I(n.line,a?0:o,n.sticky)}return n}function wo(e,t,n){if("string"==typeof t&&!(t=Bl[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Ba}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function xo(e,t,n){for(var r=0;r-1&&(R((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(R(i.to(),t)>0||t.xRel<0)?Io(e,r,t,o):Fo(e,r,t,o)}function Io(e,t,n,r){var i=e.display,o=!1,a=hr(e,function(t){wa&&(i.scroller.draggable=!1),e.state.draggingText=!1,Te(document,"mouseup",a),Te(document,"mousemove",l),Te(i.scroller,"dragstart",s),Te(i.scroller,"drop",a),o||(Pe(t),r.addNew||hi(e.doc,n,null,null,r.extend),wa||ya&&9==ba?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};wa&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),tl(document,"mouseup",a),tl(document,"mousemove",l),tl(i.scroller,"dragstart",s),tl(i.scroller,"drop",a),_n(e),setTimeout(function(){return i.input.focus()},20)}function Ro(e,t,n){if("char"==n)return new Nl(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Nl(I(t.line,0),V(e.doc,I(t.line+1,0)));var r=n(e,t);return new Nl(r.from,r.to)}function Fo(e,t,n,r){function i(t){if(0!=R(v,t))if(v=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(M(u,n.line).text,n.ch,o),l=f(M(u,t.line).text,t.ch,o),s=Math.min(a,l),g=Math.max(a,l),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=M(u,m).text,w=p(b,s,o);s==g?i.push(new Nl(I(m,w),I(m,w))):b.length>w&&i.push(new Nl(I(m,w),I(m,p(b,g,o))))}i.length||i.push(new Nl(n,n)),wi(u,Wr(h.ranges.slice(0,d).concat(i),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,C=c,k=Ro(e,t,r.unit),S=C.anchor;R(k.anchor,S)>0?(x=k.head,S=z(C.from(),k.anchor)):(x=k.anchor,S=W(C.to(),k.head));var T=h.ranges.slice(0);T[d]=Ho(e,new Nl(V(u,S),x)),wi(u,Wr(T,d),Ka)}}function o(t){var n=++b,l=Tn(e,t,!0,"rectangle"==r.unit);if(l)if(0!=R(l,v)){e.curOp.focus=a(),i(l);var c=Wn(s,u);(l.line>=c.to||l.liney.bottom?20:0;f&&setTimeout(hr(e,function(){b==n&&(s.scroller.scrollTop+=f,o(t))}),50)}}function l(t){e.state.selectingText=!1,b=1/0,Pe(t),s.input.focus(),Te(document,"mousemove",w),Te(document,"mouseup",x),u.history.lastSelOrigin=null}var s=e.display,u=e.doc;Pe(t);var c,d,h=u.sel,g=h.ranges;if(r.addNew&&!r.extend?(d=u.sel.contains(n),c=d>-1?g[d]:new Nl(n,n)):(c=u.sel.primary(),d=u.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new Nl(n,n)),n=Tn(e,t,!0,!0),d=-1;else{var m=Ro(e,n,r.unit);c=r.extend?pi(c,m.anchor,m.head,r.extend):m}r.addNew?-1==d?(d=g.length,wi(u,Wr(g.concat([c]),d),{scroll:!1,origin:"*mouse"})):g.length>1&&g[d].empty()&&"char"==r.unit&&!r.extend?(wi(u,Wr(g.slice(0,d).concat(g.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),h=u.sel):mi(u,d,c,Ka):(d=0,wi(u,new Ll([c],0),Ka),h=u.sel);var v=n,y=s.wrapper.getBoundingClientRect(),b=0,w=hr(e,function(e){Re(e)?o(e):l(e)}),x=hr(e,l);e.state.selectingText=x,tl(document,"mousemove",w),tl(document,"mouseup",x)}function Ho(e,t){var n=t.anchor,r=t.head,i=M(e.doc,n.line);if(0==R(n,r)&&n.sticky==r.sticky)return t;var o=ke(i);if(!o)return t;var a=Ce(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==s||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ce(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==l.level?-1:1);u=c==s-1||c==s?f<0:f>0}var d=o[s+(u?-1:0)],p=u==(1==d.level),h=p?d.from:d.to,g=p?"after":"before";return n.ch==h&&n.sticky==g?t:new Nl(new I(n.line,h,g),r)}function Wo(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Pe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Ne(e,n))return De(t);o-=l.top-a.viewOffset;for(var s=0;s=i)return Ee(e,n,e,A(e.doc,o),e.options.gutters[s],t),De(t)}}function zo(e,t){return Wo(e,t,"gutterClick",!0)}function Uo(e,t){It(e.display,t)||Vo(e,t)||Me(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Vo(e,t){return!!Ne(e,"gutterContextMenu")&&Wo(e,t,"gutterContextMenu",!1)}function Bo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),tn(e)}function jo(e){_r(e),vr(e),zn(e)}function Ko(e,t,n){if(!t!=!(n&&n!=Yl)){var r=e.display.dragFunctions,i=t?tl:Te;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Go(e){e.options.lineWrapping?(l(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Fa(e.display.wrapper,"CodeMirror-wrap"),we(e)),Sn(e),vr(e),tn(e),setTimeout(function(){return nr(e)},100)}function $o(e,t){var n=this;if(!(this instanceof $o))return new $o(e,t);this.options=t=t?c(t):{},c(Xl,t,!1),Ir(t);var r=t.value;"string"==typeof r&&(r=new Il(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var i=new $o.inputStyles[t.inputStyle](this),o=this.display=new E(e,r,i);o.wrapper.CodeMirror=this,_r(this),Bo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ir(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 Wa,keySeq:null,specialChars:null},t.autofocus&&!Na&&o.input.focus(),ya&&ba<11&&setTimeout(function(){return n.display.input.reset(!0)},20),qo(this),to(),or(this),this.curOp.forceUpdate=!0,Qr(this,r),t.autofocus&&!Na||this.hasFocus()?setTimeout(u(In,this),20):Rn(this);for(var a in Ql)Ql.hasOwnProperty(a)&&Ql[a](n,t[a],Yl);Un(this),t.finishInit&&t.finishInit(this);for(var l=0;l400}var i=e.display;tl(i.scroller,"mousedown",hr(e,Po)),ya&&ba<11?tl(i.scroller,"dblclick",hr(e,function(t){if(!Me(e,t)){var n=Tn(e,t);if(n&&!zo(e,t)&&!It(e.display,t)){Pe(t);var r=e.findWordAt(n);hi(e.doc,r.anchor,r.head)}}})):tl(i.scroller,"dblclick",function(t){return Me(e,t)||Pe(t)}),Ra||tl(i.scroller,"contextmenu",function(t){return Uo(e,t)});var o,a={end:0};tl(i.scroller,"touchstart",function(t){if(!Me(e,t)&&!n(t)&&!zo(e,t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),tl(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),tl(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!It(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,l=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new Nl(l,l):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(l):new Nl(I(l.line,0),V(e.doc,I(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Pe(n)}t()}),tl(i.scroller,"touchcancel",t),tl(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Zn(e,i.scroller.scrollTop),er(e,i.scroller.scrollLeft,!0),Ee(e,"scroll",e))}),tl(i.scroller,"mousewheel",function(t){return Hr(e,t)}),tl(i.scroller,"DOMMouseScroll",function(t){return Hr(e,t)}),tl(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Me(e,t)||_e(t)},over:function(t){Me(e,t)||(Zi(e,t),_e(t))},start:function(t){return Qi(e,t)},drop:hr(e,Xi),leave:function(t){Me(e,t)||Ji(e)}};var l=i.input.getField();tl(l,"keyup",function(t){return Lo.call(e,t)}),tl(l,"keydown",hr(e,Eo)),tl(l,"keypress",hr(e,No)),tl(l,"focus",function(t){return In(e,t)}),tl(l,"blur",function(t){return Rn(e,t)})}function Yo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Xe(e,t).state:n="prev");var a=e.options.tabSize,l=M(o,t),s=f(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((u=o.mode.indent(i,l.text.slice(c.length),l.text))==Ba||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?f(M(o,t-1).text,null,a):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var d="",p=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/a);g;--g)p+=a,d+="\t";if(p1)if(Jl&&Jl.text.join("\n")==t){if(r.ranges.length%Jl.text.length==0){s=[];for(var u=0;u=0;f--){var d=r.ranges[f],p=d.from(),h=d.to();d.empty()&&(n&&n>0?p=I(p.line,p.ch-n):e.state.overwrite&&!a?h=I(h.line,Math.min(M(o,h.line).text.length,h.ch+g(l).length)):Jl&&Jl.lineWise&&Jl.text.join("\n")==t&&(p=h=I(p.line,0))),c=e.curOp.updateInput;var v={from:p,to:h,text:s?s[f%s.length]:l,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Oi(e.doc,v),wt(e,"inputRead",e,v)}t&&!a&&Jo(e,t),$n(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Zo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||pr(t,function(){return Qo(t,n,0,null,"paste")}),!0}function Jo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=Yo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(M(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Yo(e,i.head.line,"smart"));a&&wt(e,"electricInput",e,i.head.line)}}}function ea(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new I(r,t.ch,t.sticky),u=M(e,r))}function a(r){var a;if(null==(a=i?mo(e.cm,u,t,n):ho(u,t,n))){if(r||!o())return!1;t=go(i,e.cm,u,t.line,n)}else t=a;return!0}var l=t,s=n,u=M(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||a(!p);p=!1){var h=u.text.charAt(t.ch)||"\n",g=x(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||g||(g="s"),c&&c!=g){n<0&&(n=1,a(),t.sticky="after");break}if(g&&(c=g),n>0&&!a(!p))break}var m=Ei(e,t,l,s,!0);return F(l,m)&&(m.hitSide=!0),m}function ia(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*bn(e.display),3);i=(n>0?t.bottom:t.top)+n*s}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var u;u=dn(e,a,i),u.outside;){if(n<0?i<=0:i>=o.height){u.hitSide=!0;break}i+=5*n}return u}function oa(e,t){var n=Gt(e,t.line);if(!n||n.hidden)return null;var r=M(e.doc,t.line),i=Bt(n,r,t.line),o=ke(r,e.doc.direction),a="left";o&&(a=Ce(o,t.ch)%2?"right":"left");var l=Yt(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function aa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function la(e,t){return t&&(e.bad=!0),e}function sa(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(){c&&(u+=f,c=!1)}function l(e){e&&(a(),u+=e)}function s(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void l(n||t.textContent.replace(/\u200b/g,""));var u,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(I(r,0),I(i+1,0),o(+d));return void(p.length&&(u=p[0].find(0))&&l(L(e.doc,u.from,u.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p)$/i.test(t.nodeName);h&&a();for(var g=0;g=15&&(ka=!1,wa=!0);var _a,Ia=Oa&&(xa||ka&&(null==Da||Da<12.11)),Ra=ha||ya&&ba>=9,Fa=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};_a=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ha=function(e){e.select()};Ma?Ha=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ya&&(Ha=function(e){try{e.select()}catch(e){}});var Wa=function(){this.id=null};Wa.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var za,Ua,Va=30,Ba={toString:function(){return"CodeMirror.Pass"}},ja={scroll:!1},Ka={origin:"*mouse"},Ga={origin:"+move"},$a=[""],qa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ya=/[\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]/,Xa=!1,Qa=!1,Za=null,Ja=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,l=/[Lb1n]/,s=/[1n]/;return function(n,r){var u="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],d=0;d=this.string.length},cl.prototype.sol=function(){return this.pos==this.lineStart},cl.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cl.prototype.next=function(){if(this.post},cl.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},cl.prototype.skipToEnd=function(){this.pos=this.string.length},cl.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},cl.prototype.backUp=function(e){this.pos-=e},cl.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},cl.prototype.current=function(){return this.string.slice(this.start,this.pos)},cl.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},cl.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},cl.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var fl=function(e,t){this.state=e,this.lookAhead=t},dl=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};dl.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},dl.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},dl.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dl.fromSaved=function(e,t,n){return t instanceof fl?new dl(e,Ke(e.mode,t.state),n,t.lookAhead):new dl(e,Ke(e.mode,t),n)},dl.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fl(t,this.maxLookAhead):t};var pl=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},hl=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};hl.prototype.lineNo=function(){return P(this)},Oe(hl);var gl,ml={},vl={},yl=null,bl=null,wl={left:0,right:0,top:0,bottom:0},xl=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),tl(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),tl(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ya&&ba<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xl.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 i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"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 o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"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}},xl.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xl.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xl.prototype.zeroWidthHack=function(){var e=Oa&&!Ta?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Wa,this.disableVert=new Wa},xl.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},xl.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cl=function(){};Cl.prototype.update=function(){return{bottom:0,right:0}},Cl.prototype.setScrollLeft=function(){},Cl.prototype.setScrollTop=function(){},Cl.prototype.clear=function(){};var kl={native:xl,null:Cl},Sl=0,Tl=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Wn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=zt(e),this.force=n,this.dims=xn(e),this.events=[]};Tl.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Tl.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,i.to())<=0)return r}return-1};var Nl=function(e,t){this.anchor=e,this.head=t};Nl.prototype.from=function(){return z(this.anchor,this.head)},Nl.prototype.to=function(){return W(this.anchor,this.head)},Nl.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ui.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r1||!(this.children[0]instanceof Ui))){var s=[];this.collapse(s),this.children=[new Ui(s)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n50){for(var l=o.lines.length%25+25,s=l;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;it.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&vr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ki(t.doc)),t&&wt(t,"markerCleared",t,this,i,o),n&&ar(t),this.parent&&this.parent.clear()}},Al.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o=0;u--)Oi(r,i[u]);s?bi(this,s):this.cm&&$n(this.cm)}),undo:mr(function(){Ai(this,"undo")}),redo:mr(function(){Ai(this,"redo")}),undoSelection:mr(function(){Ai(this,"undo",!0)}),redoSelection:mr(function(){Ai(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(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=V(this,e),t=V(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),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-=o,++n}),V(this,I(n,t))},indexFromPos:function(e){e=V(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)i=new I(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),I(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=M(e.doc,i.line-1).text;a&&(i=new I(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),I(i.line-1,a.length-1),i,"+transpose"))}n.push(new Nl(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return pr(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;re&&0==R(t,this.pos)&&n==this.button};var $l,ql,Yl={toString:function(){return"CodeMirror.Init"}},Xl={},Ql={};$o.defaults=Xl,$o.optionHandlers=Ql;var Zl=[];$o.defineInitHook=function(e){return Zl.push(e)};var Jl=null,es=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Wa,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};es.prototype.init=function(e){function t(e){if(!Me(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ea(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,ja),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Jl.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=na(),l=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Jl.text.join("\n");var s=document.activeElement;Ha(l),setTimeout(function(){i.display.lineSpace.removeChild(a),s.focus(),s==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;ta(o,i.options.spellcheck),tl(o,"paste",function(e){Me(i,e)||Zo(e,i)||ba<=11&&setTimeout(hr(i,function(){return n.updateFromDOM()}),20)}),tl(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),tl(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),tl(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),tl(o,"touchstart",function(){return r.forceCompositionEnd()}),tl(o,"input",function(){n.composing||n.readFromDOMSoon()}),tl(o,"copy",t),tl(o,"cut",t)},es.prototype.prepareSelection=function(){var e=Ln(this.cm,!1);return e.focus=this.cm.state.focused,e},es.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},es.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&oa(t,r)||{node:l[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=I(r.line-1,M(e.doc,r.line-1).length)),i.ch==M(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||0==(o=En(e,r.line))?(a=P(t.view[0].line),l=t.view[0].node):(a=P(t.view[o].line),l=t.view[o-1].node.nextSibling);var s,u,c=En(e,i.line);if(c==t.view.length-1?(s=t.viewTo-1,u=t.lineDiv.lastChild):(s=P(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!l)return!1;for(var f=e.doc.splitLines(sa(e,l,u,a,s)),d=L(e.doc,I(a,0),I(s,M(e.doc,s).text.length));f.length>1&&d.length>1;)if(g(f)==g(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),a++}for(var p=0,h=0,m=f[0],v=d[0],y=Math.min(m.length,v.length);pr.ch&&b.charCodeAt(b.length-h-1)==w.charCodeAt(w.length-h-1);)p--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var C=I(a,p),k=I(s,d.length?g(d).length-h:0);return f.length>1||f[0]||R(C,k)?(Ri(e.doc,f,C,k,"+input"),!0):void 0},es.prototype.ensurePolled=function(){this.forceCompositionEnd()},es.prototype.reset=function(){this.forceCompositionEnd()},es.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},es.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))},es.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||pr(this.cm,function(){return vr(e.cm)})},es.prototype.setUneditable=function(e){e.contentEditable="false"},es.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hr(this.cm,Qo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},es.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},es.prototype.onContextMenu=function(){},es.prototype.resetPosition=function(){},es.prototype.needsContentAttribute=!0;var ts=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Wa,this.hasSelection=!1,this.composing=null};ts.prototype.init=function(e){function t(e){if(!Me(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ea(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,ja):(r.prevInput="",a.value=t.text.join("\n"),Ha(a))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm,o=this.wrapper=na(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),Ma&&(a.style.width="0px"),tl(a,"input",function(){ya&&ba>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),tl(a,"paste",function(e){Me(i,e)||Zo(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),tl(a,"cut",t),tl(a,"copy",t),tl(e.scroller,"paste",function(t){It(e,t)||Me(i,t)||(i.state.pasteIncoming=!0,r.focus())}),tl(e.lineSpace,"selectstart",function(t){It(e,t)||Pe(t)}),tl(a,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),tl(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},ts.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Ln(e);if(e.options.moveInputWithCursor){var i=un(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ts.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ts.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&&Ha(this.textarea),ya&&ba>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ya&&ba>=9&&(this.hasSelection=null))}},ts.prototype.getField=function(){return this.textarea},ts.prototype.supportsTouch=function(){return!1},ts.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Na||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},ts.prototype.blur=function(){this.textarea.blur()},ts.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ts.prototype.receivedFocus=function(){this.slowPoll()},ts.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ts.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},ts.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||il(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(ya&&ba>=9&&this.hasSelection===i||Oa&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ts.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ts.prototype.onKeyPress=function(){ya&&ba>=9&&(this.hasSelection=null),this.fastPoll()},ts.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=u,ya&&ba<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=a.selectionStart){(!ya||ya&&ba<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?hr(i,Li)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,l=Tn(i,e),s=o.scroller.scrollTop;if(l&&!ka){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(l)&&hr(i,wi)(i.doc,zr(l),ja);var u=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(ya?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(wa&&(d=window.scrollY),o.input.focus(),wa&&window.scrollTo(null,d),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),ya&&ba>=9&&t(),Ra){_e(e);var p=function(){Te(window,"mouseup",p),setTimeout(n,20)};tl(window,"mouseup",p)}else setTimeout(n,50)}},ts.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},ts.prototype.setUneditable=function(){},ts.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Yl&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Yl,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Gr(e)},!0),t("indentUnit",2,Gr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){$r(e),tn(e),vr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(I(r,o))}r++});for(var i=n.length-1;i>=0;i--)Ri(e.doc,t,n[i],I(n[i].line,n[i].ch+t.length))}}),t("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!=Yl&&e.refresh()}),t("specialCharPlaceholder",ut,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Na?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Aa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Bo(e),jo(e)},!0),t("keyMap","default",function(e,t,n){var r=co(t),i=n!=Yl&&co(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Go,!0),t("gutters",[],function(e){Ir(e.options),jo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Cn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return nr(e)},!0),t("scrollbarStyle","native",function(e){ir(e),nr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Ir(e.options),jo(e)},!0),t("firstLineNumber",1,jo,!0),t("lineNumberFormatter",function(e){return e},jo,!0),t("showCursorWhenSelecting",!1,Mn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Rn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Ko),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Mn,!0),t("singleCursorHeightPerLine",!0,Mn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,$r,!0),t("addModeClass",!1,$r,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,$r,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}($o),function(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,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&hr(this,t[e])(this,n,i),Ee(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"](co(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nr&&(Yo(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&$n(t));else{var a=o.from(),l=o.to(),s=Math.max(r,a.line);r=Math.min(t.lastLine(),l.line-(l.ch?0:1))+1;for(var u=s;u0&&mi(t.doc,i,new Nl(a,c[i].to()),ja)}}}),getTokenAt:function(e,t){return et(this,e,t)},getLineTokens:function(e,t){return et(this,I(e),t,!0)},getTokenTypeAt:function(e){e=V(this.doc,e);var t,n=Ye(this,M(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=M(this.doc,e)}else r=e;return an(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ye(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return wn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=un(this,V(this.doc,e));var a=e.bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&jn(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:gr(Eo),triggerOnKeyPress:gr(No),triggerOnKeyUp:Lo,triggerOnMouseDown:gr(Po),execCommand:function(e){if(Bl.hasOwnProperty(e))return Bl[e].call(null,this)},triggerElectric:gr(function(e){Jo(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=V(this.doc,e),l=0;l0&&l(n.charAt(r-1));)--r;for(;i.5)&&Sn(this),Ee(this,"refresh",this)}),swapDoc:gr(function(e){var t=this.doc;return t.cm=null,Qr(this,e),tn(this),this.display.input.reset(),qn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,t),t}),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}},Oe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}($o);var ns="iter insert remove copy getEditor constructor".split(" ");for(var rs in Il.prototype)Il.prototype.hasOwnProperty(rs)&&d(ns,rs)<0&&($o.prototype[rs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Il.prototype[rs]));return Oe(Il),$o.inputStyles={textarea:ts,contenteditable:es},$o.defineMode=function(e){$o.defaults.mode||"null"==e||($o.defaults.mode=e),ze.apply(this,arguments)},$o.defineMIME=Ue,$o.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$o.defineMIME("text/plain","null"),$o.defineExtension=function(e,t){$o.prototype[e]=t},$o.defineDocExtension=function(e,t){Il.prototype[e]=t},$o.fromTextArea=fa,function(e){e.off=Te,e.on=tl,e.wheelEventPixels=Fr,e.Doc=Il,e.splitLines=rl,e.countColumn=f,e.findColumn=p,e.isWordChar=w,e.Pass=Ba,e.signal=Ee,e.Line=hl,e.changeEnd=Ur,e.scrollbarModel=kl,e.Pos=I,e.cmpPos=R,e.modes=ll,e.mimeModes=sl,e.resolveMode=Ve,e.getMode=Be,e.modeExtensions=ul,e.extendMode=je,e.copyState=Ke,e.startState=$e,e.innerMode=Ge,e.commands=Bl,e.keyMap=Vl,e.keyName=uo,e.isModifierKey=lo,e.lookupKey=ao,e.normalizeKeyMap=oo,e.StringStream=cl,e.SharedTextMarker=Dl,e.TextMarker=Al,e.LineWidget=Ol,e.e_preventDefault=Pe,e.e_stopPropagation=Ae,e.e_stop=_e,e.addClass=l,e.contains=o,e.rmClass=Fa,e.keyNames=Hl}($o),$o.version="5.34.0",$o}()}()},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";function r(e){if(e.tag)return[0,[e[0],"",""]];var t=e[0];return[1,[t[0],v.a(t[1]),v.a(t[2])]]}function i(e){var t=e[0];if(0!==t){if(1!==t)throw w;var n=e[1];return d.a(0,[[n[0],v.b(n[1]),v.b(n[2])]])}return d.a(1,[e[1][0]])}function o(e,t,n,r,o){var a=t?t[0]:3,l=n?n[0]:2,s=r?r[0]:3;return g.a("refmt:refmt",[h.a(h.b(e)),a,l,s],function(e){return p.b(o,i(e))})}function a(e){return g.b("refmt:refmt",function(t,n,i){return p.d(e,t,function(e){return p.b(i,r(e))})})}function l(e){return chrome.storage.local.get("disabled",function(t){return p.b(e,m.a(0,y.a(t.disabled)))}),0}function s(e){return chrome.storage.local.set({disabled:e}),0}function u(e){return chrome.storage.onChanged.addListener(function(t,n){var r=t.disabled;return void 0!==r?p.b(e,r.newValue):0}),0}function c(e){return chrome.storage.local.get("latestRefmtString",function(t){return p.b(e,y.b(t.latestRefmtString))}),0}function f(e){return chrome.storage.local.set({latestRefmtString:e}),0}n.d(t,"c",function(){return k}),n.d(t,"d",function(){return S}),n.d(t,"a",function(){return x}),n.d(t,"b",function(){return C});var d=n(5),p=n(1),h=n(30),g=n(27),m=n(45),v=n(34),y=n(46),b=n(4),w=b.a("Protocol.Refmt.DeserializationFail"),x=[w,r,i,o,a],C=[l,s,u,c,f],k=v.a,S=v.b;v.c},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return s}),n.d(t,"g",function(){return u});var r={display:"flex",overflow:"hidden",flex:"1",flexDirection:"row",justifyContent:"space-around"},i={display:"flex",paddingBottom:"1%",position:"relative",flexDirection:"column"},o={display:"flex",fontFamily:"sans-serif",fontSize:"3vh",maxHeight:"25px",minHeight:"16px",paddingTop:"0.5vh",paddingBottom:"0.5vh",width:"100%",alignItems:"center",flex:"1",justifyContent:"space-between"},a={backgroundColor:"rgba(0,0,0,0.8)",color:"white",display:"flex",fontFamily:"sans-serif",left:"50%",padding:"4vh 8vh 6vh",position:"absolute",top:"50%",zIndex:"10",borderRadius:"2vh",alignItems:"center",flexDirection:"column",justifyContent:"center",transform:"translate(-50%,-50%)"},l={color:"rgb(219, 76, 63)",cursor:"pointer",fontSize:"16px",lineHeight:"16px",paddingLeft:"1vw",textDecoration:"none"},s={cursor:"pointer",height:"16px",paddingLeft:"1vw",width:"16px"},u={flex:"1"}},function(e,t,n){"use strict";function r(e){for(var t=e.length-1|0,n=0;;){var r=n,i=t;if(i<0)return r;n=[e[i],r],t=i-1|0}}n.d(t,"a",function(){return r});var i=(n(1),n(44),n(10)),o=n(4);n(0),o.a("Array.Bottom"),i.f},function(e,t,n){"use strict";function r(e,t){for(;;){var n=t,a=e;if(a===n)return 0;var l=typeof a,s=typeof n;if("string"===l)return i.a(a,n);var u=+("number"===l),c=+("number"===s);if(0!==u)return 0!==c?i.b(a,n):-1;if(0!==c)return 1;if("boolean"===l||"undefined"===l||null===a){var f=a,d=n;return f===d?0:f=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="";1==(1&e)&&(n+=t),0!=(e>>>=1);)t+=t;return n}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* object-assign (c) Sindre Sorhus @license MIT */ -var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){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,l,u=r(e),s=1;s1)for(var n=1;n=3&&3!==r?" ("+c.c(r)+")":"")),u.createElement("option",{value:"RE"},"RE"),u.createElement("option",{value:"ML"},"ML"),u.createElement("option",{value:"REO"},"RE v1"))}function i(e){var t=e[2],n=t[3][0];return n&&clearTimeout(n[0]),t[3][0]=[setTimeout(l.b(e[1],function(){return 2}),2500)],0}function o(e,t,n,o,y,b,w,x){var C=v.slice();return C[9]=function(i){var v=i[2],x=i[1];console.log(e);var C=function(e){var t=c.d(e.target.value);return a.a(0,[t])},k=function(e){var t=c.d(e.target.value);return a.a(1,[t])},S=function(e,t){var n=t[2];return l.a(w,[n[1]],[n[2]],e)};return u.createElement("div",{style:h.a},u.createElement("div",{style:h.b},u.createElement("h1",{style:h.c},g.a(0,0,p.a(t,r("in",l.b(x,C),v[1],t),[]))),g.a(0,0,s.a(e,[1],[function(e){return e.execCommand("selectAll"),0}],t,0,[l.b(i[0],S)],[]))),u.createElement("div",{style:h.b},u.createElement("h1",{style:h.c},g.a(0,0,p.a(o,r("out",l.b(x,k),v[2],o),[])),g.a(0,0,f.a(["share"],y,l.b(x,function(){return 0}),[h.d],[])),g.a(0,0,f.a(0,n,l.b(x,function(){return 1}),[h.d],[])),g.a(0,0,d.a(function(){return l.b(b,e)},[h.e],[]))),g.a(0,0,s.a(n,0,0,o,[1],0,[])),g.a(0,0,m.a(+(""!==v[0]),[v[0]],[h.f],[]))))},C[10]=function(){return["",3,3,[0]]},C[12]=function(t,n){if("number"!=typeof t){if(t.tag){var r=t[0];return a.a(3,[[n[0],n[1],r,n[3]],function(t){return l.a(w,[t[2][1]],[r],e)}])}var o=t[0];return a.a(3,[[n[0],o,n[2],n[3]],function(t){return l.a(w,[o],[t[2][2]],e)}])}switch(t){case 0:return a.a(3,[["Link copied to clipboard",n[1],n[2],n[3]],i]);case 1:return a.a(3,[["Text copied to clipboard",n[1],n[2],n[3]],i]);case 2:return a.a(0,[["",n[1],n[2],n[3]]])}},C}n.d(t,"a",function(){return o});var a=n(4),l=n(1),u=n(2),s=(n.n(u),n(27)),c=n(13),f=n(25),d=n(28),p=n(35),h=n(14),g=n(3),m=n(26),v=g.b("PopupWindow")},function(e,t,n){"use strict";function r(e){switch(e){case"ML":return 0;case"RE":return 1;case"REO":return 2;default:return 3}}function i(e){switch(e){case 0:return"ML";case 1:return"RE";case 2:return"REO";case 3:return"Unkown"}}function o(e){switch(e){case 0:return"implementation";case 1:return"interface";case 2:return"Unkown"}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o})},function(e,t,n){"use strict";function r(e,t){var n=D.b(e);return D.g(n,0,e,t),n}function i(e,t){for(var n=D.b(e),r=0,i=e-1|0;r<=i;++r)n[r]=P.b(t,r);return n}function o(e){var t=e.length,n=D.b(t);return D.d(e,0,n,0,t),n}function a(e,t,n){if(t<0||n<0||t>(e.length-n|0))throw[_.a,"String.sub / Bytes.sub"];var r=D.b(n);return D.d(e,t,r,0,n),r}function l(e,t,n,r){if(t<0||n<0||t>(e.length-n|0))throw[_.a,"String.fill / Bytes.fill"];return D.g(e,t,n,r)}function u(e,t,n,r,i){if(i<0||t<0||t>(e.length-i|0)||r<0||r>(n.length-i|0))throw[_.a,"String.blit / Bytes.blit_string"];return D.f(e,t,n,r,i)}function s(e,t){for(var n=0,r=t.length-1|0;n<=r;++n)P.b(e,t[n]);return 0}function c(e,t){for(var n=0,r=t.length-1|0;n<=r;++n)P.d(e,n,t[n]);return 0}function f(e){var t=e-9|0;return t>4||t<0?23!==t?0:1:2!==t?1:0}function d(e){for(var t=e.length,n=0;n=n&&f(e[r]);)r=r-1|0;return r>=n?a(e,n,1+(r-n|0)|0):I}function p(e){for(var t=0,n=0,r=e.length-1|0;n<=r;++n){var i,a=e[n];if(a>=32){var l=a-34|0;i=l>58||l<0?l>=93?4:1:l>57||l<1?2:1}else i=a>=11?13!==a?4:2:a>=8?2:4;t=t+i|0}if(t===e.length)return o(e);var u=D.b(t);t=0;for(var s=0,c=e.length-1|0;s<=c;++s){var f=e[s],d=0;if(f>=35)92!==f?f>=127?d=1:u[t]=f:d=2;else if(f>=32)f>=34?d=2:u[t]=f;else if(f>=14)d=1;else switch(f){case 8:u[t]=92,t=t+1|0,u[t]=98;break;case 9:u[t]=92,t=t+1|0,u[t]=116;break;case 10:u[t]=92,t=t+1|0,u[t]=110;break;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 11:case 12:d=1;break;case 13:u[t]=92,t=t+1|0,u[t]=114}switch(d){case 1:u[t]=92,t=t+1|0,u[t]=48+(f/100|0)|0,t=t+1|0,u[t]=48+(f/10|0)%10|0,t=t+1|0,u[t]=48+f%10|0;break;case 2:u[t]=92,t=t+1|0,u[t]=f}t=t+1|0}return u}function h(e,t){var n=t.length;if(n){for(var r=D.b(n),i=0,o=n-1|0;i<=o;++i)r[i]=P.b(e,t[i]);return r}return t}function g(e,t){var n=t.length;if(n){for(var r=D.b(n),i=0,o=n-1|0;i<=o;++i)r[i]=P.d(e,i,t[i]);return r}return t}function m(e){return h(O.a,e)}function v(e){return h(O.b,e)}function y(e,t){if(t.length){var n=o(t);return n[0]=P.b(e,t[0]),n}return t}function b(e){return y(O.a,e)}function w(e){return y(O.b,e)}function x(e,t,n,r){for(;;){var i=n;if(i>=t)throw _.d;if(e[i]===r)return i;n=i+1|0}}function C(e,t){return x(e,e.length,0,t)}function k(e,t,n){var r=e.length;if(t<0||t>r)throw[_.a,"String.index_from / Bytes.index_from"];return x(e,r,t,n)}function S(e,t,n){for(;;){var r=t;if(r<0)throw _.d;if(e[r]===n)return r;t=r-1|0}}function T(e,t){return S(e,e.length-1|0,t)}function E(e,t,n){if(t<-1||t>=e.length)throw[_.a,"String.rindex_from / Bytes.rindex_from"];return S(e,t,n)}function M(e,t,n){var r=e.length;if(t<0||t>r)throw[_.a,"String.contains_from / Bytes.contains_from"];try{return x(e,r,t,n),1}catch(e){if(e===_.d)return 0;throw e}}function L(e,t){return M(e,0,t)}function N(e,t,n){if(t<0||t>=e.length)throw[_.a,"String.rcontains_from / Bytes.rcontains_from"];try{return S(e,t,n),1}catch(e){if(e===_.d)return 0;throw e}}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"v",function(){return l}),n.d(t,"w",function(){return u}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return g}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return C}),n.d(t,"l",function(){return T}),n.d(t,"m",function(){return k}),n.d(t,"n",function(){return E}),n.d(t,"o",function(){return L}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return N}),n.d(t,"r",function(){return m}),n.d(t,"s",function(){return v}),n.d(t,"t",function(){return b}),n.d(t,"u",function(){return w});var O=n(45),P=(n(9),n(1)),A=n(16),D=(n(6),n(8)),_=(n(7),n(0)),I=[];A.a,D.c,D.e},function(e,t,n){"use strict";function r(e){throw[g.c,e]}function i(e){return e>=65?e>=97?e>=123?-1:e-87|0:e>=91?-1:e-55|0:e>57||e<48?-1:e-48|0}function o(e){switch(e){case 0:return 8;case 1:return 16;case 2:return 10;case 3:return 2}}function a(e){var t=1,n=2,r=0;"-"===e[r]&&(t=-1,r=r+1|0);var i=e.charCodeAt(r),o=e.charCodeAt(r+1|0);return 48===i&&(o>=89?98!==o?111!==o?120===o&&(n=1,r=r+2|0):(n=0,r=r+2|0):(n=3,r=r+2|0):66!==o?79!==o?o>=88&&(n=1,r=r+2|0):(n=0,r=r+2|0):(n=3,r=r+2|0)),[r,t,n]}function l(e){var t=a(e),n=t[0],r=o(t[2]),l=e.length,u=n=r)throw[g.c,"int_of_string"];var c=t[1]*function(t,n){for(;;){var o=n,a=t;if(o===l)return a;var u=e.charCodeAt(o);if(95!==u){var s=i(u);if(s<0||s>=r)throw[g.c,"int_of_string"];var c=r*a+s;if(c>4294967295)throw[g.c,"int_of_string"];n=o+1|0,t=c}else n=o+1|0}}(s,n+1|0),f=0|c;if(10===r&&c!==f)throw[g.c,"int_of_string"];return f}function u(e){return e>=65&&e<=90||e>=192&&e<=214||e>=216&&e<=222?e+32|0:e}function s(e){var t=e.length;if(t>31)throw[g.a,"format_int: format too long"];for(var n=["+","-"," ",0,2,0,0,0,1,-1,"f"],r=0;;){var i=r;if(i>=t)return n;var o=e.charCodeAt(i),a=0;if(o>=69)if(o>=88)if(o>=121)a=1;else switch(o-88|0){case 0:n[4]=1,n[7]=1,r=i+1|0;continue;case 13:case 14:case 15:a=5;break;case 12:case 17:a=4;break;case 23:n[4]=0,r=i+1|0;continue;case 29:n[4]=2,r=i+1|0;continue;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 16:case 18:case 19:case 20:case 21:case 22:case 24:case 25:case 26:case 27:case 28:case 30:case 31:a=1;break;case 32:n[4]=1,r=i+1|0;continue}else{if(!(o>=72)){n[5]=1,n[7]=1,n[10]=String.fromCharCode(u(o)),r=i+1|0;continue}a=1}else{var l=o-32|0;if(l>25||l<0)a=1;else switch(l){case 3:n[3]=1,r=i+1|0;continue;case 0:case 11:a=2;break;case 13:n[0]="-",r=i+1|0;continue;case 14:n[9]=0;for(var s=i+1|0;function(t){return function(){var n=e.charCodeAt(t)-48|0;return+(n>=0&&n<=9)}}(s)();)n[9]=(h.a(n[9],10)+e.charCodeAt(s)|0)-48|0,s=s+1|0;r=s;continue;case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 12:case 15:a=1;break;case 16:n[2]="0",r=i+1|0;continue;case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:a=3}}switch(a){case 1:r=i+1|0;continue;case 2:n[1]=String.fromCharCode(o),r=i+1|0;continue;case 3:n[6]=0;for(var c=i;function(t){return function(){var n=e.charCodeAt(t)-48|0;return+(n>=0&&n<=9)}}(c)();)n[6]=(h.a(n[6],10)+e.charCodeAt(c)|0)-48|0,c=c+1|0;r=c;continue;case 4:n[5]=1,n[4]=2,r=i+1|0;continue;case 5:n[5]=1,n[10]=String.fromCharCode(o),r=i+1|0;continue}}}function c(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],u=e[6],s=e[7],c=e[8],f=t.length;l&&(c<0||"-"!==r)&&(f=f+1|0),o&&(a?1===a&&(f=f+2|0):f=f+1|0);var d="";if("+"===n&&" "===i)for(var p=f,h=u-1|0;p<=h;++p)d+=i;if(l&&(c<0?d+="-":"-"!==r&&(d+=r)),o&&0===a&&(d+="0"),o&&1===a&&(d+="0x"),"+"===n&&"0"===i)for(var g=f,m=u-1|0;g<=m;++g)d+=i;if(d=s?d+t.toUpperCase():d+t,"-"===n)for(var v=f,y=u-1|0;v<=y;++v)d+=" ";return d}function f(e,t){var n=s(e),r=n[9]<0?6:n[9],i=t<0?(n[8]=-1,-t):t,o="";if(isNaN(i))o="nan",n[2]=" ";else if(isFinite(i)){var a=n[10];switch(a){case"e":o=i.toExponential(r);var l=o.length;"e"===o[l-3|0]&&(o=o.slice(0,l-1|0)+"0"+o.slice(l-1|0));break;case"f":o=i.toFixed(r);break;case"g":var u=0!==r?r:1;o=i.toExponential(u-1|0);var f=o.indexOf("e"),d=0|Number(o.slice(f+1|0));if(d<-4||i>=1e21||i.toFixed().length>u){for(var p=f-1|0;"0"===o[p];)p=p-1|0;"."===o[p]&&(p=p-1|0),o=o.slice(0,p+1|0)+o.slice(f);var h=o.length;"e"===o[h-3|0]&&(o=o.slice(0,h-1|0)+"0"+o.slice(h-1|0))}else{var g=u;if(d<0)g=g-(d+1|0)|0,o=i.toFixed(g);else for(;function(){return o=i.toFixed(g),+(o.length>(u+1|0))}();)g=g-1|0;if(0!==g){for(var m=o.length-1|0;"0"===o[m];)m=m-1|0;"."===o[m]&&(m=m-1|0),o=o.slice(0,m+1|0)}}}}else o="inf",n[2]=" ";return c(n,o)}function d(e){return p.d(m,e,r)}n.d(t,"a",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return l});var p=n(1),h=n(6),g=(n(40),n(17),n(0)),m=function(e,t){var n=+e;if(e.length>0&&n===n)return n;if(e=e.replace(/_/g,""),n=+e,e.length>0&&n===n||/^[+-]?nan$/i.test(e))return n;if(/^ *0x[0-9a-f_]+p[+-]?[0-9_]+/i.test(e)){var r=e.indexOf("p");r=-1==r?e.indexOf("P"):r;var i=+e.substring(r+1);return(n=+e.substring(0,r))*Math.pow(2,i)}return/^\+?inf(inity)?$/i.test(e)?1/0:/^-inf(inity)?$/i.test(e)?-1/0:void t("float_of_string")}},function(e,t,n){"use strict";function r(e){return+(0!=(2147483648&e))}function i(e,t){var n=t[1],i=e[1],o=i+n&4294967295,a=r(i)&&(r(n)||!r(o))||r(n)&&!r(o)?1:0;return[e[0]+t[0]+a&4294967295,o>>>0]}function o(e){return[-1^e[0],(-1^e[1])>>>0]}function a(e,t){return e[0]===t[0]?+(e[1]===t[1]):0}function l(e){return a(e,M)?M:i(o(e),N)}function u(e,t){if(t){var n=e[1];return t>=32?[n<<(t-32|0),0]:[n>>>(32-t|0)|e[0]<>>0]}return e}function s(e,t){if(t){var n=e[0];if(t<32)return[n>>t,(n<<(32-t|0)|e[1]>>>t)>>>0];var r=n>>(t-32|0);return[n>=0?0:-1,r>>>0]}return e}function c(e){return 0!==e[0]||0!==e[1]?0:1}function f(e,t){for(;;){var n,r=t,i=e,o=0,a=i[0],u=0,s=0,c=0;if(0!==a)c=4;else{if(0===i[1])return O;c=4}if(4===c)if(0!==r[0])s=3;else{if(0===r[1])return O;s=3}if(3===s&&(-2147483648!==a?u=2:0!==i[1]?u=2:(n=r[1],o=1)),2===u){var d=r[0],p=i[1],h=0;if(-2147483648!==d?h=3:0!==r[1]?h=3:(n=p,o=1),3===h){var g=r[1];if(a<0){if(d<0){t=l(r),e=l(i);continue}return l(f(l(i),r))}if(d<0)return l(f(i,l(r)));var m=a>>>16,v=65535&a,y=p>>>16,b=65535&p,w=d>>>16,x=65535&d,C=g>>>16,k=65535&g,S=0,T=0,E=0,L=b*k;return E=(L>>>16)+y*k,T=E>>>16,E=(65535&E)+b*C,T=T+(E>>>16)+v*k,S=T>>>16,T=(65535&T)+y*C,S+=T>>>16,T=(65535&T)+b*x,S+=T>>>16,T&=65535,S=S+(m*k+v*C+y*x+b*w)&65535,[T|S<<16,(65535&L|(65535&E)<<16)>>>0]}}if(1===o)return 0==(1&n)?O:M}}function d(e,t){return[e[0]|t[0],(e[1]|t[1])>>>0]}function p(e,t){var n=t[0],r=e[0];return r>n?1:r=t[1])}function h(e,t){return 1-a(e,t)}function g(e,t){return 1-p(e,t)}function m(e,t){return e[0]>t[0]?1:e[0]t[1])}function v(e){return 4294967296*e[0]+e[1]}function y(e){return isNaN(e)||!isFinite(e)?O:e<=_?M:e+1>=D?L:e<0?l(y(-e)):[e/A|0,(e%A|0)>>>0]}function b(e,t){for(;;){var n=t,r=e,o=r[0],d=0,h=0;if(0!==n[0])h=2;else{if(0===n[1])throw E.f;h=2}if(2===h)if(-2147483648!==o)if(0!==o)d=1;else{if(0===r[1])return O;d=1}else if(0!==r[1])d=1;else{if(a(n,N)||a(n,P))return r;if(a(n,M))return N;var g=n[0],w=s(r,1),x=u(b(w,n),1),C=0;if(0!==x[0])C=3;else{if(0===x[1])return g<0?N:l(N);C=3}if(3===C){var k=f(n,x),S=i(r,l(k));return i(x,b(S,n))}}if(1===d){var L=n[0],A=0;if(-2147483648!==L)A=2;else{if(0===n[1])return O;A=2}if(2===A){if(o<0){if(L<0){t=l(n),e=l(r);continue}return l(b(l(r),n))}if(L<0)return l(b(r,l(n)));for(var D=O,_=r;p(_,n);){for(var I=T.c(1,Math.floor(v(_)/v(n))),R=Math.ceil(Math.log(I)/Math.LN2),F=R<=48?1:Math.pow(2,R-48),H=y(I),W=f(H,n);W[0]<0||m(W,_);)I-=F,H=y(I),W=f(H,n);c(H)&&(H=N),D=i(D,H),_=i(_,l(W))}return D}}}}function w(e,t){var n=b(e,t);return[n,i(e,l(f(n,t)))]}function x(e){return[e<0?-1:0,e>>>0]}function C(e){var t=function(e){return(e>>>0).toString(16)},n=e[0],r=e[1],i=0;if(0!==n)i=1;else{if(0===r)return"0";i=1}if(1===i){if(0!==r){if(0!==n){var o=t(e[1]),a=8-o.length|0;return a<=0?t(e[0])+o:t(e[0])+(S.a(a,"0")+o)}return t(e[1])}return t(e[0])+"00000000"}}function k(e){return[2147483647&e[0],e[1]]}n.d(t,"a",function(){return x}),n.d(t,"e",function(){return i}),n.d(t,"j",function(){return l}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"h",function(){return a}),n.d(t,"i",function(){return h}),n.d(t,"b",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"l",function(){return w}),n.d(t,"m",function(){return C}),n.d(t,"k",function(){return k});var S=(n(6),n(17)),T=n(7),E=n(0),M=[-2147483648,0],L=[2147483647,1],N=[0,1],O=[0,0],P=[-1,4294967295],A=Math.pow(2,32),D=Math.pow(2,63),_=-Math.pow(2,63)},function(e,t,n){"use strict";(function(e){function r(){throw[f.c,"caml_ml_open_descriptor_in not implemented"]}function i(){throw[f.c,"caml_ml_open_descriptor_out not implemented"]}function o(e){return""!==e[0]?(c.d(e[1],e,e[0]),e[0]="",0):0}function a(t,n,r,i){var a=0===r&&i===n.length?n:n.slice(r,i);if(void 0!==e&&e.stdout&&e.stdout.write&&t===d)return e.stdout.write(a);var l=a.lastIndexOf("\n");return l<0?(t[0]=t[0]+a,0):(t[0]=t[0]+a.slice(0,l+1|0),o(t),t[0]=t[0]+a.slice(l+1|0),0)}function l(e,t){return a(e,String.fromCharCode(t),0,1)}function u(){throw[f.c,"caml_ml_input_char not implemnted"]}function s(){return[d,[p,0]]}n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"h",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return a}),n.d(t,"j",function(){return l}),n.d(t,"i",function(){return u}),n.d(t,"e",function(){return s});var c=n(1),f=n(0),d=["",function(t,n){var r=n.length-1|0;return void 0!==e&&e.stdout&&e.stdout.write?e.stdout.write(n):"\n"===n[r]?(console.log(n.slice(0,r)),0):(console.log(n),0)}],p=["",function(e,t){var n=t.length-1|0;return"\n"===t[n]?(console.log(t.slice(0,n)),0):(console.log(t),0)}],h=void 0}).call(t,n(22))},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){throw new Error(e)}},function(e,t,n){"use strict";(function(e){function r(t){var n=void 0===e?void 0:e;return void 0!==n?n.exit(t):0}n.d(t,"a",function(){return r}),n(0)}).call(t,n(22))},function(e,t,n){"use strict";function r(e,t){if("number"==typeof e)return t;switch(0|e.tag){case 0:return i.a(0,[r(e[0],t)]);case 1:return i.a(1,[r(e[0],t)]);case 2:return i.a(2,[e[0],r(e[1],t)]);case 3:return i.a(3,[e[0],r(e[1],t)]);case 4:return i.a(4,[e[0],e[1],e[2],r(e[3],t)]);case 5:return i.a(5,[e[0],e[1],e[2],r(e[3],t)]);case 6:return i.a(6,[e[0],e[1],e[2],r(e[3],t)]);case 7:return i.a(7,[e[0],e[1],e[2],r(e[3],t)]);case 8:return i.a(8,[e[0],e[1],e[2],r(e[3],t)]);case 9:return i.a(9,[r(e[0],t)]);case 10:return i.a(10,[r(e[0],t)]);case 11:return i.a(11,[e[0],r(e[1],t)]);case 12:return i.a(12,[e[0],r(e[1],t)]);case 13:return i.a(13,[e[0],e[1],r(e[2],t)]);case 14:return i.a(14,[e[0],e[1],r(e[2],t)]);case 15:return i.a(15,[r(e[0],t)]);case 16:return i.a(16,[r(e[0],t)]);case 17:return i.a(17,[e[0],r(e[1],t)]);case 18:return i.a(18,[e[0],r(e[1],t)]);case 19:return i.a(19,[r(e[0],t)]);case 20:return i.a(20,[e[0],e[1],r(e[2],t)]);case 21:return i.a(21,[e[0],r(e[1],t)]);case 22:return i.a(22,[r(e[0],t)]);case 23:return i.a(23,[e[0],r(e[1],t)]);case 24:return i.a(24,[e[0],e[1],r(e[2],t)])}}n.d(t,"a",function(){return r});var i=n(4)},function(e,t,n){"use strict";function r(e){return e>=65&&e<=90||e>=192&&e<=214||e>=216&&e<=222?e+32|0:e}function i(e){return e>=97&&e<=122||e>=224&&e<=246||e>=248&&e<=254?e-32|0:e}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n(8),n(0)},function(e,t,n){"use strict";function r(e){return!!e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return null===e||void 0===e?0:[e]}function i(e){return void 0===e?0:[e]}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function r(e){return e?e[0]:void 0}n.d(t,"a",function(){return i});var i=r},function(e,t,n){"use strict";function r(e,t){return e?[e[0],r(e[1],t)]:t}n.d(t,"a",function(){return r});var i=(n(1),n(41)),o=(n(43),n(39),n(8),n(5));n(42),n(0),n(44),o.a("Pervasives.Exit"),i.a,i.b,i.c,Number.MAX_VALUE,Number.MIN_VALUE,i.f,i.j,i.j,i.i,i.i},function(e,t,n){!function(e){!function(e){"use strict";e.defineMode("javascript",function(t,n){function r(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 i(e,t,n){return Ae=e,De=n,t}function o(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=a(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==n&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return i(n);if("="==n&&e.eat(">"))return i("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if("0"==n&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),i("number","number");if("0"==n&&e.eat(/b/i))return e.eatWhile(/[01]/i),i("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==n)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):Pe(e,t,1)?(r(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eat("="),i("operator","operator",e.current()));if("`"==n)return t.tokenize=u,u(e,t);if("#"==n)return e.skipToEnd(),i("error","error");if(Ue.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),i("operator","operator",e.current());if(We.test(n)){e.eatWhile(We);var o=e.current();if("."!=t.lastType){if(ze.propertyIsEnumerable(o)){var s=ze[o];return i(s.type,s.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\(\w]/,!1))return i("async","keyword",o)}return i("variable","variable",o)}}function a(e){return function(t,n){var r,a=!1;if(Re&&"@"==t.peek()&&t.match(Ve))return n.tokenize=o,i("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||a);)a=!a&&"\\"==r;return a||(n.tokenize=o),i("string","string")}}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=o;break}r="*"==n}return i("comment","comment")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=o;break}r=!r&&"\\"==n}return i("quasi","string-2",e.current())}function s(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(He){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),u=Be.indexOf(l);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(We.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}function c(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function f(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 d(e,t,n,r,i){var o=e.cc;for(Ke.state=e,Ke.stream=i,Ke.marked=null,Ke.cc=o,Ke.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():Fe?k:C)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Ke.marked?Ke.marked:"variable"==n&&f(e,r)?"variable-2":t}}function p(){for(var e=arguments.length-1;e>=0;e--)Ke.cc.push(arguments[e])}function h(){return p.apply(null,arguments),!0}function g(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var r=Ke.state;if(Ke.marked="def",r.context){if(t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;n.globalVars&&(r.globalVars={name:e,next:r.globalVars})}}function m(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function v(){Ke.state.context={prev:Ke.state.context,vars:Ke.state.localVars},Ke.state.localVars=Ge}function y(){Ke.state.localVars=Ke.state.context.vars,Ke.state.context=Ke.state.context.prev}function b(e,t){var n=function(){var n=Ke.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new c(r,Ke.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function w(){var e=Ke.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function x(e){function t(n){return n==e?h():";"==e?p():h(t)}return t}function C(e,t){return"var"==e?h(b("vardef",t.length),ne,x(";"),w):"keyword a"==e?h(b("form"),T,C,w):"keyword b"==e?h(b("form"),C,w):"keyword d"==e?Ke.stream.match(/^\s*$/,!1)?h():h(b("stat"),M,x(";"),w):"debugger"==e?h(x(";")):"{"==e?h(b("}"),j,w):";"==e?h():"if"==e?("else"==Ke.state.lexical.info&&Ke.state.cc[Ke.state.cc.length-1]==w&&Ke.state.cc.pop()(),h(b("form"),T,C,w,le)):"function"==e?h(pe):"for"==e?h(b("form"),ue,C,w):"class"==e||He&&"interface"==t?(Ke.marked="keyword",h(b("form"),me,w)):"variable"==e?He&&"declare"==t?(Ke.marked="keyword",h(C)):He&&("module"==t||"enum"==t||"type"==t)&&Ke.stream.match(/^\s*\w/,!1)?(Ke.marked="keyword","enum"==t?h(Le):"type"==t?h(q,x("operator"),q,x(";")):h(b("form"),re,x("{"),b("}"),j,w,w)):He&&"namespace"==t?(Ke.marked="keyword",h(b("form"),k,j,w)):h(b("stat"),F):"switch"==e?h(b("form"),T,x("{"),b("}","switch"),j,w,w):"case"==e?h(k,x(":")):"default"==e?h(x(":")):"catch"==e?h(b("form"),v,x("("),he,x(")"),C,w,y):"export"==e?h(b("stat"),we,w):"import"==e?h(b("stat"),Ce,w):"async"==e?h(C):"@"==t?h(k,C):p(b("stat"),k,x(";"),w)}function k(e,t){return E(e,t,!1)}function S(e,t){return E(e,t,!0)}function T(e){return"("!=e?p():h(b(")"),k,x(")"),w)}function E(e,t,n){if(Ke.state.fatArrowAt==Ke.stream.start){var r=n?D:A;if("("==e)return h(v,b(")"),V(he,")"),w,x("=>"),r,y);if("variable"==e)return p(v,re,x("=>"),r,y)}var i=n?N:L;return je.hasOwnProperty(e)?h(i):"function"==e?h(pe,i):"class"==e||He&&"interface"==t?(Ke.marked="keyword",h(b("form"),ge,w)):"keyword c"==e||"async"==e?h(n?S:k):"("==e?h(b(")"),M,x(")"),w,i):"operator"==e||"spread"==e?h(n?S:k):"["==e?h(b("]"),Me,w,i):"{"==e?B(W,"}",null,i):"quasi"==e?p(O,i):"new"==e?h(_(n)):h()}function M(e){return e.match(/[;\}\)\],]/)?p():p(k)}function L(e,t){return","==e?h(k):N(e,t,!1)}function N(e,t,n){var r=0==n?L:N,i=0==n?k:S;return"=>"==e?h(v,n?D:A,y):"operator"==e?/\+\+|--/.test(t)||He&&"!"==t?h(r):He&&"<"==t&&Ke.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?h(b(">"),V(q,">"),w,r):"?"==t?h(k,x(":"),i):h(i):"quasi"==e?p(O,r):";"!=e?"("==e?B(S,")","call",r):"."==e?h(H,r):"["==e?h(b("]"),M,x("]"),w,r):He&&"as"==t?(Ke.marked="keyword",h(q,r)):"regexp"==e?(Ke.state.lastType=Ke.marked="operator",Ke.stream.backUp(Ke.stream.pos-Ke.stream.start-1),h(i)):void 0:void 0}function O(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?h(O):h(k,P)}function P(e){if("}"==e)return Ke.marked="string-2",Ke.state.tokenize=u,h(O)}function A(e){return s(Ke.stream,Ke.state),p("{"==e?C:k)}function D(e){return s(Ke.stream,Ke.state),p("{"==e?C:S)}function _(e){return function(t){return"."==t?h(e?R:I):"variable"==t&&He?h(J,e?N:L):p(e?S:k)}}function I(e,t){if("target"==t)return Ke.marked="keyword",h(L)}function R(e,t){if("target"==t)return Ke.marked="keyword",h(N)}function F(e){return":"==e?h(w,C):p(L,x(";"),w)}function H(e){if("variable"==e)return Ke.marked="property",h()}function W(e,t){if("async"==e)return Ke.marked="property",h(W);if("variable"==e||"keyword"==Ke.style){if(Ke.marked="property","get"==t||"set"==t)return h(z);var n;return He&&Ke.state.fatArrowAt==Ke.stream.start&&(n=Ke.stream.match(/^\s*:\s*/,!1))&&(Ke.state.fatArrowAt=Ke.stream.pos+n[0].length),h(U)}return"number"==e||"string"==e?(Ke.marked=Re?"property":Ke.style+" property",h(U)):"jsonld-keyword"==e?h(U):He&&m(t)?(Ke.marked="keyword",h(W)):"["==e?h(k,K,x("]"),U):"spread"==e?h(S,U):"*"==t?(Ke.marked="keyword",h(W)):":"==e?p(U):void 0}function z(e){return"variable"!=e?p(U):(Ke.marked="property",h(pe))}function U(e){return":"==e?h(S):"("==e?p(pe):void 0}function V(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=Ke.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),h(function(n,r){return n==t||r==t?p():p(e)},r)}return i==t||o==t?h():h(x(t))}return function(n,i){return n==t||i==t?h():p(e,r)}}function B(e,t,n){for(var r=3;r"==e)return h(q)}function X(e,t){return"variable"==e||"keyword"==Ke.style?(Ke.marked="property",h(X)):"?"==t?h(X):":"==e?h(q):"["==e?h(k,K,x("]"),X):void 0}function Q(e){return"variable"==e?h(Q):":"==e?h(q):void 0}function Z(e,t){return"<"==t?h(b(">"),V(q,">"),w,Z):"|"==t||"."==e?h(q):"["==e?h(x("]"),Z):"extends"==t||"implements"==t?(Ke.marked="keyword",h(q)):void 0}function J(e,t){if("<"==t)return h(b(">"),V(q,">"),w,Z)}function ee(){return p(q,te)}function te(e,t){if("="==t)return h(q)}function ne(e,t){return"enum"==t?(Ke.marked="keyword",h(Le)):p(re,K,oe,ae)}function re(e,t){return He&&m(t)?(Ke.marked="keyword",h(re)):"variable"==e?(g(t),h()):"spread"==e?h(re):"["==e?B(re,"]"):"{"==e?B(ie,"}"):void 0}function ie(e,t){return"variable"!=e||Ke.stream.match(/^\s*:/,!1)?("variable"==e&&(Ke.marked="property"),"spread"==e?h(re):"}"==e?p():h(x(":"),re,oe)):(g(t),h(oe))}function oe(e,t){if("="==t)return h(S)}function ae(e){if(","==e)return h(ne)}function le(e,t){if("keyword b"==e&&"else"==t)return h(b("form","else"),C,w)}function ue(e){if("("==e)return h(b(")"),se,x(")"),w)}function se(e){return"var"==e?h(ne,x(";"),fe):";"==e?h(fe):"variable"==e?h(ce):p(k,x(";"),fe)}function ce(e,t){return"in"==t||"of"==t?(Ke.marked="keyword",h(k)):h(L,fe)}function fe(e,t){return";"==e?h(de):"in"==t||"of"==t?(Ke.marked="keyword",h(k)):p(k,x(";"),de)}function de(e){")"!=e&&h(k)}function pe(e,t){return"*"==t?(Ke.marked="keyword",h(pe)):"variable"==e?(g(t),h(pe)):"("==e?h(v,b(")"),V(he,")"),w,G,C,y):He&&"<"==t?h(b(">"),V(ee,">"),w,pe):void 0}function he(e,t){return"@"==t&&h(k,he),"spread"==e?h(he):He&&m(t)?(Ke.marked="keyword",h(he)):p(re,K,oe)}function ge(e,t){return"variable"==e?me(e,t):ve(e,t)}function me(e,t){if("variable"==e)return g(t),h(ve)}function ve(e,t){return"<"==t?h(b(">"),V(ee,">"),w,ve):"extends"==t||"implements"==t||He&&","==e?("implements"==t&&(Ke.marked="keyword"),h(He?q:k,ve)):"{"==e?h(b("}"),ye,w):void 0}function ye(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||He&&m(t))&&Ke.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ke.marked="keyword",h(ye)):"variable"==e||"keyword"==Ke.style?(Ke.marked="property",h(He?be:pe,ye)):"["==e?h(k,K,x("]"),He?be:pe,ye):"*"==t?(Ke.marked="keyword",h(ye)):";"==e?h(ye):"}"==e?h():"@"==t?h(k,ye):void 0}function be(e,t){return"?"==t?h(be):":"==e?h(q,oe):"="==t?h(S):p(pe)}function we(e,t){return"*"==t?(Ke.marked="keyword",h(Ee,x(";"))):"default"==t?(Ke.marked="keyword",h(k,x(";"))):"{"==e?h(V(xe,"}"),Ee,x(";")):p(C)}function xe(e,t){return"as"==t?(Ke.marked="keyword",h(x("variable"))):"variable"==e?p(S,xe):void 0}function Ce(e){return"string"==e?h():p(ke,Se,Ee)}function ke(e,t){return"{"==e?B(ke,"}"):("variable"==e&&g(t),"*"==t&&(Ke.marked="keyword"),h(Te))}function Se(e){if(","==e)return h(ke,Se)}function Te(e,t){if("as"==t)return Ke.marked="keyword",h(ke)}function Ee(e,t){if("from"==t)return Ke.marked="keyword",h(k)}function Me(e){return"]"==e?h():p(V(S,"]"))}function Le(){return p(b("form"),re,x("{"),b("}"),V(Ne,"}"),w,w)}function Ne(){return p(re,oe)}function Oe(e,t){return"operator"==e.lastType||","==e.lastType||Ue.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Pe(e,t,n){return t.tokenize==o&&/^(?: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)))}var Ae,De,_e=t.indentUnit,Ie=n.statementIndent,Re=n.jsonld,Fe=n.json||Re,He=n.typescript,We=n.wordCharacters||/[\w$\xa1-\uffff]/,ze=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),Ue=/[+\-*&%=<>!?|~^@]/,Ve=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Be="([{}])",je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ke={state:null,column:null,marked:null,cc:null},Ge={name:"this",next:{name:"arguments"}};return w.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new c((e||0)-_e,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},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(),s(e,t)),t.tokenize!=l&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==Ae?n:(t.lastType="operator"!=Ae||"++"!=De&&"--"!=De?Ae:"incdec",d(t,n,Ae,De,e))},indent:function(t,r){if(t.tokenize==l)return e.Pass;if(t.tokenize!=o)return 0;var i,a=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var s=t.cc.length-1;s>=0;--s){var c=t.cc[s];if(c==w)u=u.prev;else if(c!=le)break}for(;("stat"==u.type||"form"==u.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==L||i==N)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;Ie&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,d=a==f;return"vardef"==f?u.indented+("operator"==t.lastType||","==t.lastType?u.info+1:0):"form"==f&&"{"==a?u.indented:"form"==f?u.indented+_e:"stat"==f?u.indented+(Oe(t,r)?Ie||_e:0):"switch"!=u.info||d||0==n.doubleIndentSwitch?u.align?u.column+(d?0:1):u.indented+(d?0:_e):u.indented+(/^(?:case|default)\b/.test(r)?_e:2*_e)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Fe?null:"/*",blockCommentEnd:Fe?null:"*/",blockCommentContinue:Fe?null:" * ",lineComment:Fe?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Fe?"json":"javascript",jsonldMode:Re,jsonMode:Fe,expressionAllowed:Pe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=k&&t!=S||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(11))}()},function(e,t,n){!function(e){!function(e){"use strict";e.defineMode("mllike",function(e,t){function n(e,n){var l=e.next();if('"'===l)return n.tokenize=r,n.tokenize(e,n);if("{"===l&&e.eat("|"))return n.longString=!0,n.tokenize=o,n.tokenize(e,n);if("("===l&&e.eat("*"))return n.commentLevel++,n.tokenize=i,n.tokenize(e,n);if("~"===l||"?"===l)return e.eatWhile(/\w/),"variable-2";if("`"===l)return e.eatWhile(/\w/),"quote";if("/"===l&&t.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(l))return"0"===l&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===l&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===l&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(l))return"operator";if(/[\w\xa1-\uffff]/.test(l)){e.eatWhile(/[\w\xa1-\uffff]/);var u=e.current();return a.hasOwnProperty(u)?a[u]:"variable"}return null}function r(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if('"'===r&&!o){i=!0;break}o=!o&&"\\"===r}return i&&!o&&(t.tokenize=n),"string"}function i(e,t){for(var r,i;t.commentLevel>0&&null!=(i=e.next());)"("===r&&"*"===i&&t.commentLevel++,"*"===r&&")"===i&&t.commentLevel--,r=i;return t.commentLevel<=0&&(t.tokenize=n),"comment"}function o(e,t){for(var r,i;t.longString&&null!=(i=e.next());)"|"===r&&"}"===i&&(t.longString=!1),r=i;return t.longString||(t.tokenize=n),"string"}var a={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},l=t.extraWords||{};for(var u in l)l.hasOwnProperty(u)&&(a[u]=t.extraWords[u]);return{startState:function(){return{tokenize:n,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:t.slashComments?"//":null}}),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(11))}()},function(e,t,n){"use strict";function r(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function i(e,t){var n,i,l,u,s,c,f=!1;t||(t={}),n=t.debug||!1;try{if(l=o(),u=document.createRange(),s=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",document.body.appendChild(c),u.selectNode(c),s.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData("text",e),f=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=r("message"in t?t.message:a),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(u):s.removeAllRanges()),c&&document.body.removeChild(c),l()}return f}var o=n(78),a="Copy to clipboard: #{key}, Enter";e.exports=i},function(e,t,n){"use strict";var r=n(12),i={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=i},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!i(e)&&(i(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var i=n(59);e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(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}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=n(58);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var u=Object.assign||function(e){for(var t=1;tthis.eventPool.length&&this.eventPool.push(e)}function V(e){e.eventPool=[],e.getPooled=z,e.release=U}function B(e,t,n,r){return W.call(this,e,t,n,r)}function j(e,t,n,r){return W.call(this,e,t,n,r)}function K(e,t){switch(e){case"topKeyUp":return-1!==pr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function G(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function $(e,t){switch(e){case"topCompositionEnd":return G(t);case"topKeyPress":return 32!==t.which?null:(kr=!0,xr);case"topTextInput":return e=t.data,e===xr&&kr?null:e;default:return null}}function q(e,t){if(Sr)return"topCompositionEnd"===e||!hr&&K(e,t)?(e=F(),cr._root=null,cr._startText=null,cr._fallbackText=null,Sr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Vr.length&&Vr.push(e)}}}function De(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function _e(e){if($r[e])return $r[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in qr)return $r[e]=n[t];return""}function Ie(e){return Object.prototype.hasOwnProperty.call(e,Zr)||(e[Zr]=Qr++,Xr[e[Zr]]={}),Xr[e[Zr]]}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fe(e,t){var n=Re(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Re(n)}}function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function We(e,t){if(ii||null==ti||ti!==Sn())return null;var n=ti;return"selectionStart"in n&&He(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ri&&Tn(ri,n)?null:(ri=n,e=W.getPooled(ei.select,ni,e,t),e.type="select",e.target=ti,_(e),e)}function ze(e,t,n,r){return W.call(this,e,t,n,r)}function Ue(e,t,n,r){return W.call(this,e,t,n,r)}function Ve(e,t,n,r){return W.call(this,e,t,n,r)}function Be(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function je(e,t,n,r){return W.call(this,e,t,n,r)}function Ke(e,t,n,r){return W.call(this,e,t,n,r)}function Ge(e,t,n,r){return W.call(this,e,t,n,r)}function $e(e,t,n,r){return W.call(this,e,t,n,r)}function qe(e,t,n,r){return W.call(this,e,t,n,r)}function Ye(e){0>di||(e.current=fi[di],fi[di]=null,di--)}function Xe(e,t){di++,fi[di]=e.current,e.current=t}function Qe(e){return Je(e)?gi:pi.current}function Ze(e,t){var n=e.type.contextTypes;if(!n)return Ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Je(e)&&(Ye(hi,e),Ye(pi,e))}function tt(e,t,n){null!=pi.cursor&&r("168"),Xe(pi,t,e),Xe(hi,n,e)}function nt(e,t){var n=e.stateNode,i=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var o in n)o in i||r("108",xe(e)||"Unknown",o);return xn({},t,n)}function rt(e){if(!Je(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ln,gi=pi.current,Xe(pi,t,e),Xe(hi,hi.current,e),!0}function it(e,t){var n=e.stateNode;if(n||r("169"),t){var i=nt(e,gi);n.__reactInternalMemoizedMergedChildContext=i,Ye(hi,e),Ye(pi,e),Xe(pi,i,e)}else Ye(hi,e);Xe(hi,t,e)}function ot(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new ot(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function lt(e,t,n){var i=void 0,o=e.type,a=e.key;return"function"==typeof o?(i=o.prototype&&o.prototype.isReactComponent?new ot(2,a,t):new ot(0,a,t),i.type=o,i.pendingProps=e.props):"string"==typeof o?(i=new ot(5,a,t),i.type=o,i.pendingProps=e.props):"object"==typeof o&&null!==o&&"number"==typeof o.tag?(i=o,i.pendingProps=e.props):r("130",null==o?o:typeof o,""),i.expirationTime=n,i}function ut(e,t,n,r){return t=new ot(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function st(e,t,n){return t=new ot(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new ot(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ft(e,t,n){return e=new ot(9,null,t),e.expirationTime=n,e}function dt(e,t,n){return t=new ot(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pt(e){return function(t){try{return e(t)}catch(e){}}}function ht(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);mi=pt(function(e){return t.onCommitFiberRoot(n,e)}),vi=pt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function gt(e){"function"==typeof mi&&mi(e)}function mt(e){"function"==typeof vi&&vi(e)}function vt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function yt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=vt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=vt(null)):e=null,e=e!==r?e:null,null===e?yt(r,t):null===r.last||null===e.last?(yt(r,t),yt(e,t)):(yt(r,t),e.last=t)}function wt(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function xt(e,t,n,r,i,o){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,l=n.first,u=!1;null!==l;){var s=l.expirationTime;if(s>o){var c=n.expirationTime;(0===c||c>s)&&(n.expirationTime=s),u||(u=!0,n.baseState=e)}else u||(n.first=l.next,null===n.first&&(n.last=null)),l.isReplace?(e=wt(l,r,e,i),a=!0):(s=wt(l,r,e,i))&&(e=a?xn({},e,s):xn(e,s),a=!1),l.isForced&&(n.hasForceUpdate=!0),null!==l.callback&&(s=n.callbackList,null===s&&(s=n.callbackList=[]),s.push(l));l=l.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),u||(n.baseState=e),e}function Ct(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;ed?(p=f,f=null):p=f.sibling;var v=g(r,f,l[d],u);if(null===v){null===f&&(f=p);break}e&&f&&null===v.alternate&&t(r,f),o=a(v,o,d),null===c?s=v:c.sibling=v,c=v,f=p}if(d===l.length)return n(r,f),s;if(null===f){for(;dp?(v=d,d=null):v=d.sibling;var b=g(o,d,y.value,s);if(null===b){d||(d=v);break}e&&d&&null===b.alternate&&t(o,d),l=a(b,l,p),null===f?c=b:f.sibling=b,f=b,d=v}if(y.done)return n(o,d),c;if(null===d){for(;!y.done;p++,y=u.next())null!==(y=h(o,y.value,s))&&(l=a(y,l,p),null===f?c=y:f.sibling=y,f=y);return c}for(d=i(o,d);!y.done;p++,y=u.next())null!==(y=m(d,o,p,y.value,s))&&(e&&null!==y.alternate&&d.delete(null===y.key?p:y.key),l=a(y,l,p),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach(function(e){return t(o,e)}),c}return function(e,i,a,u){"object"==typeof a&&null!==a&&a.type===ki&&null===a.key&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case bi:e:{var c=a.key;for(s=i;null!==s;){if(s.key===c){if(10===s.tag?a.type===ki:s.type===a.type){n(e,s.sibling),i=o(s,a.type===ki?a.props.children:a.props,u),i.ref=Tt(s,a),i.return=e,e=i;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===ki?(i=ut(a.props.children,e.internalContextTag,u,a.key),i.return=e,e=i):(u=lt(a,e.internalContextTag,u),u.ref=Tt(i,a),u.return=e,e=u)}return l(e);case wi:e:{for(s=a.key;null!==i;){if(i.key===s){if(7===i.tag){n(e,i.sibling),i=o(i,a,u),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=ct(a,e.internalContextTag,u),i.return=e,e=i}return l(e);case xi:e:{if(null!==i){if(9===i.tag){n(e,i.sibling),i=o(i,null,u),i.type=a.value,i.return=e,e=i;break e}n(e,i)}i=ft(a,e.internalContextTag,u),i.type=a.value,i.return=e,e=i}return l(e);case Ci:e:{for(s=a.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[],u),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=dt(a,e.internalContextTag,u),i.return=e,e=i}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,a,u)):(n(e,i),i=st(a,e.internalContextTag,u)),i.return=e,e=i,l(e);if(Ti(a))return v(e,i,a,u);if(St(a))return y(e,i,a,u);if(s&&Et(e,a),void 0===a)switch(e.tag){case 2:case 1:u=e.type,r("152",u.displayName||u.name||"Component")}return n(e,i)}}function Lt(e,t,n,i,o){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Mi(t,null,n,r):Ei(t,e.child,n,r)}function l(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function u(e,t,n,r){if(l(e,t),!n)return r&&it(t,!1),c(e,t);n=t.stateNode,Ur.current=t;var i=n.render();return t.effectTag|=1,a(e,t,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&it(t,!0),t.child}function s(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),m(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function f(e,t){switch(t.tag){case 3:s(t);break;case 2:rt(t);break;case 4:m(t,t.stateNode.containerInfo)}return null}var d=e.shouldSetTextContent,p=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,g=t.pushHostContext,m=t.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=kt(i,o,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,x=e.constructClassInstance,C=e.mountClassInstance,k=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return f(e,t);switch(t.tag){case 0:null!==e&&r("155");var i=t.type,o=t.pendingProps,S=Qe(t);return S=Ze(t,S),i=i(o,S),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render?(t.tag=2,o=rt(t),w(t,i),C(t,n),t=u(e,t,!0,o)):(t.tag=1,a(e,t,i),t.memoizedProps=o,t=t.child),t;case 1:e:{if(o=t.type,n=t.pendingProps,i=t.memoizedProps,hi.current)null===n&&(n=i);else if(null===n||i===n){t=c(e,t);break e}i=Qe(t),i=Ze(t,i),o=o(n,i),t.effectTag|=1,a(e,t,o),t.memoizedProps=n,t=t.child}return t;case 2:return o=rt(t),i=void 0,null===e?t.stateNode?r("153"):(x(t,t.pendingProps),C(t,n),i=!0):i=k(e,t,n),u(e,t,i,o);case 3:return s(t),o=t.updateQueue,null!==o?(i=t.memoizedState,o=xt(e,t,o,null,null,n),i===o?(y(),t=c(e,t)):(i=o.element,S=t.stateNode,(null===e||null===e.child)&&S.hydrate&&v(t)?(t.effectTag|=2,t.child=Mi(t,null,i,n)):(y(),a(e,t,i)),t.memoizedState=o,t=t.child)):(y(),t=c(e,t)),t;case 5:g(t),null===e&&b(t),o=t.type;var T=t.memoizedProps;return i=t.pendingProps,null===i&&null===(i=T)&&r("154"),S=null!==e?e.memoizedProps:null,hi.current||null!==i&&T!==i?(T=i.children,d(o,i)?T=null:S&&d(o,S)&&(t.effectTag|=16),l(e,t),2147483647!==n&&!p&&h(o,i)?(t.expirationTime=2147483647,t=null):(a(e,t,T),t.memoizedProps=i,t=t.child)):t=c(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return o=t.pendingProps,hi.current?null===o&&null===(o=e&&e.memoizedProps)&&r("154"):null!==o&&t.memoizedProps!==o||(o=t.memoizedProps),i=o.children,t.stateNode=null===e?Mi(t,t.stateNode,i,n):Ei(t,t.stateNode,i,n),t.memoizedProps=o,t.stateNode;case 9:return null;case 4:e:{if(m(t,t.stateNode.containerInfo),o=t.pendingProps,hi.current)null===o&&null==(o=e&&e.memoizedProps)&&r("154");else if(null===o||t.memoizedProps===o){t=c(e,t);break e}null===e?t.child=Ei(t,null,o,n):a(e,t,o),t.memoizedProps=o,t=t.child}return t;case 10:e:{if(n=t.pendingProps,hi.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:s(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?f(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Mi(t,null,null,n):Ei(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function Nt(e,t,n){function i(e){e.effectTag|=4}var o=e.createInstance,a=e.createTextInstance,l=e.appendInitialChild,u=e.finalizeInitialChildren,s=e.prepareUpdate,c=e.persistence,f=t.getRootHostContainer,d=t.popHostContext,p=t.getHostContext,h=t.popHostContainer,g=n.prepareToHydrateHostInstance,m=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,w=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&i(t)},w=function(e,t,n,r){n!==r&&i(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Ye(hi,t),Ye(pi,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(v(t),t.effectTag&=-3),y(t),null;case 5:d(t),n=f();var x=t.type;if(null!==e&&null!=t.stateNode){var C=e.memoizedProps,k=t.stateNode,S=p();k=s(k,x,C,c,n,S),b(e,t,k,x,C,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode&&r("166"),null;if(e=p(),v(t))g(t,n,e)&&i(t);else{e=o(x,c,n,e,t);e:for(C=t.child;null!==C;){if(5===C.tag||6===C.tag)l(e,C.stateNode);else if(4!==C.tag&&null!==C.child){C.child.return=C,C=C.child;continue}if(C===t)break;for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}u(e,x,c,n)&&i(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)w(e,t,e.memoizedProps,c);else{if("string"!=typeof c)return null===t.stateNode&&r("166"),null;e=f(),n=p(),v(t)?m(t)&&i(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)||r("165"),t.tag=8,x=[];e:for((C=t.stateNode)&&(C.return=t);null!==C;){if(5===C.tag||6===C.tag||4===C.tag)r("247");else if(9===C.tag)x.push(C.type);else if(null!==C.child){C.child.return=C,C=C.child;continue}for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}return C=c.handler,c=C(c.props,x),t.child=Ei(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:r("167");default:r("156")}}}}function Ot(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function i(e){switch("function"==typeof mt&&mt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:o(e.stateNode);break;case 4:s&&l(e)}}function o(e){for(var t=e;;)if(i(t),null===t.child||s&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function l(e){for(var t=e,n=!1,a=void 0,l=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,l=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,l=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)o(t),l?b(a,t.stateNode):y(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:i(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var u=e.getPublicInstance,s=e.mutation;e=e.persistence,s||r(e?"235":"236");var c=s.commitMount,f=s.commitUpdate,d=s.resetTextContent,p=s.commitTextUpdate,h=s.appendChild,g=s.appendChildToContainer,m=s.insertBefore,v=s.insertInContainerBefore,y=s.removeChild,b=s.removeChildFromContainer;return{commitResetTextContent:function(e){d(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(d(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)n?i?v(t,o.stateNode,n):m(t,o.stateNode,n):i?g(t,o.stateNode):h(t,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(e){l(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&f(n,a,o,e,i,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,p(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var i=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(i,e)}null!==(t=t.updateQueue)&&Ct(t,n);break;case 3:null!==(n=t.updateQueue)&&Ct(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(u(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Pt(e){function t(e){return e===Li&&r("174"),e}var n=e.getChildHostContext,i=e.getRootHostContext,o={current:Li},a={current:Li},l={current:Li};return{getHostContext:function(){return t(o.current)},getRootHostContainer:function(){return t(l.current)},popHostContainer:function(e){Ye(o,e),Ye(a,e),Ye(l,e)},popHostContext:function(e){a.current===e&&(Ye(o,e),Ye(a,e))},pushHostContainer:function(e,t){Xe(l,t,e),t=i(t),Xe(a,e,e),Xe(o,t,e)},pushHostContext:function(e){var r=t(l.current),i=t(o.current);r=n(i,e.type,r),i!==r&&(Xe(a,e,e),Xe(o,r,e))},resetHostContainer:function(){o.current=Li,l.current=Li}}}function At(e){function t(e,t){var n=new ot(5,null,0);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 n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=l(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function i(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;d=e}var o=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,l=e.canHydrateTextInstance,u=e.getNextHydratableSibling,s=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=null,p=null,h=!1;return{enterHydrationState:function(e){return p=s(e.stateNode.containerInfo),d=e,h=!0},resetHydrationState:function(){p=d=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=p;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,h=!1,void(d=e);t(d,p)}d=e,p=s(r)}else e.effectTag|=2,h=!1,d=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==d)return!1;if(!h)return i(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=p;n;)t(e,n),n=u(n);return i(e),p=d?u(e.stateNode):null,!0}}}function Dt(e){function t(e){oe=Y=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,Ur.current=null,1a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1e))if(Z<=$)for(;null!==X;)X=s(X)?o(X):i(X);else for(;null!==X&&!C();)X=s(X)?o(X):i(X)}else if(!(0===Z||Z>e))if(Z<=$)for(;null!==X;)X=i(X);else for(;null!==X&&!C();)X=i(X)}function l(e,t){if(Y&&r("243"),Y=!0,e.isReadyForCommit=!1,e!==Q||t!==Z||null===X){for(;-1t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!Y&&n===Q&&twe&&r("185"),null===i.nextScheduledRoot)i.remainingExpirationTime=o,null===ue?(le=ue=i,i.nextScheduledRoot=i):(ue=ue.nextScheduledRoot=i,ue.nextScheduledRoot=le);else{var a=i.remainingExpirationTime;(0===a||ose)return;V(ce)}var t=z()-G;se=e,ce=U(b,{timeout:10*(e-2)-t})}function y(){var e=0,t=null;if(null!==ue)for(var n=ue,i=le;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===n||null===ue)&&r("244"),i===i.nextScheduledRoot){le=ue=i.nextScheduledRoot=null;break}if(i===le)le=o=i.nextScheduledRoot,ue.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===ue){ue=n,ue.nextScheduledRoot=le,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||oke)&&(he=!0)}function k(e){null===de&&r("246"),de.remainingExpirationTime=0,ge||(ge=!0,me=e)}var S=Pt(e),T=At(e),E=S.popHostContainer,M=S.popHostContext,L=S.resetHostContainer,N=Lt(e,S,T,p,d),O=N.beginWork,P=N.beginFailedWork,A=Nt(e,S,T).completeWork;S=Ot(e,u);var D=S.commitResetTextContent,_=S.commitPlacement,I=S.commitDeletion,R=S.commitWork,F=S.commitLifeCycles,H=S.commitAttachRef,W=S.commitDetachRef,z=e.now,U=e.scheduleDeferredCallback,V=e.cancelDeferredCallback,B=e.useSyncScheduling,j=e.prepareForCommit,K=e.resetAfterCommit,G=z(),$=2,q=0,Y=!1,X=null,Q=null,Z=0,J=null,ee=null,te=null,ne=null,re=null,ie=!1,oe=!1,ae=!1,le=null,ue=null,se=0,ce=-1,fe=!1,de=null,pe=0,he=!1,ge=!1,me=null,ve=null,ye=!1,be=!1,we=1e3,Ce=0,ke=1;return{computeAsyncExpiration:f,computeExpirationForFiber:d,scheduleWork:p,batchedUpdates:function(e,t){var n=ye;ye=!0;try{return e(t)}finally{(ye=n)||fe||w(1,null)}},unbatchedUpdates:function(e){if(ye&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ye;ye=!0;try{e:{var n=q;q=1;try{var i=e();break e}finally{q=n}i=void 0}return i}finally{ye=t,fe&&r("187"),w(1,null)}},deferredUpdates:function(e){var t=q;q=f();try{return e()}finally{q=t}}}}function _t(e){function t(e){return e=Ee(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=Dt(e);var i=e.computeAsyncExpiration,o=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new ot(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,l){var u=t.current;if(n){n=n._reactInternalFiber;var s;e:{for(2===Ce(n)&&2===n.tag||r("170"),s=n;3!==s.tag;){if(Je(s)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}(s=s.return)||r("171")}s=s.stateNode.context}n=Je(n)?nt(n,s):s}else n=Ln;null===t.context?t.context=n:t.pendingContext=n,t=l,t=void 0===t?null:t,l=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?i():o(u),bt(u,{expirationTime:l,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,l)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Me(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(xn({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function It(e,t,n){var r=3n||r.hasOverloadedBooleanValue&&!1===n?Wt(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(i=r.attributeNamespace)?e.setAttributeNS(i,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Ht(e,t,o(t,n)?n:null)}function Ht(e,t,n){Rt(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Wt(e,t){var n=a(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function zt(e,t){var n=t.value,r=t.checked;return xn({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function Ut(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Vt(e,t){null!=(t=t.checked)&&Ft(e,"checked",t)}function Bt(e,t){Vt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function jt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function Kt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}function Gt(e,t){return e=xn({children:void 0},t),(t=Kt(t.children))&&(e.children=t),e}function $t(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Qt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Zt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Jt(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 en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Zi.hasOwnProperty(i)&&Zi[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function rn(e,t,n){t&&(eo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!=typeof t.style&&r("62",n()))}function on(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 an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ie(e);t=Xn[t];for(var r=0;r<\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function un(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function sn(e,t,n,r){var i=on(t,n);switch(t){case"iframe":case"object":Oe("topLoad","load",e);var o=n;break;case"video":case"audio":for(o in ro)ro.hasOwnProperty(o)&&Oe(o,ro[o],e);o=n;break;case"source":Oe("topError","error",e),o=n;break;case"img":case"image":Oe("topError","error",e),Oe("topLoad","load",e),o=n;break;case"form":Oe("topReset","reset",e),Oe("topSubmit","submit",e),o=n;break;case"details":Oe("topToggle","toggle",e),o=n;break;case"input":Ut(e,n),o=zt(e,n),Oe("topInvalid","invalid",e),an(r,"onChange");break;case"option":o=Gt(e,n);break;case"select":qt(e,n),o=xn({},n,{value:void 0}),Oe("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":Xt(e,n),o=Yt(e,n),Oe("topInvalid","invalid",e),an(r,"onChange");break;default:o=n}rn(t,o,no);var a,l=o;for(a in l)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?nn(e,u,no):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Qi(e,u):"children"===a?"string"==typeof u?("textarea"!==t||""!==u)&&tn(e,u):"number"==typeof u&&tn(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?null!=u&&an(r,a):i?Ht(e,a,u):null!=u&&Ft(e,a,u))}switch(t){case"input":oe(e),jt(e,n);break;case"textarea":oe(e),Zt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?$t(e,!!n.multiple,t,!1):null!=n.defaultValue&&$t(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Cn)}}function cn(e,t,n,r,i){var o=null;switch(t){case"input":n=zt(e,n),r=zt(e,r),o=[];break;case"option":n=Gt(e,n),r=Gt(e,r),o=[];break;case"select":n=xn({},n,{value:void 0}),r=xn({},r,{value:void 0}),o=[];break;case"textarea":n=Yt(e,n),r=Yt(e,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=Cn)}rn(t,r,no);var a,l;e=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(l in t=n[a])t.hasOwnProperty(l)&&(e||(e={}),e[l]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(t=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&u!==t&&(null!=u||null!=t))if("style"===a)if(t){for(l in t)!t.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(e||(e={}),e[l]="");for(l in u)u.hasOwnProperty(l)&&t[l]!==u[l]&&(e||(e={}),e[l]=u[l])}else e||(o||(o=[]),o.push(a,e)),e=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,t=t?t.__html:void 0,null!=u&&t!==u&&(o=o||[]).push(a,""+u)):"children"===a?t===u||"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(Yn.hasOwnProperty(a)?(null!=u&&an(i,a),o||t===u||(o=[])):(o=o||[]).push(a,u))}return e&&(o=o||[]).push("style",e),o}function fn(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&Vt(e,i),on(n,r),r=on(n,i);for(var o=0;o1)for(var n=1;n=3&&3!==r?" ("+c.c(r)+")":"")),s.createElement("option",{value:"RE"},"RE"),s.createElement("option",{value:"ML"},"ML"),s.createElement("option",{value:"REO"},"RE v1"))}function i(e){var t=e[2],n=t[3][0];return n&&clearTimeout(n[0]),t[3][0]=[setTimeout(l.b(e[1],function(){return 2}),2500)],0}function o(e,t,n,o,y,b,w,x){var C=v.slice();return C[9]=function(i){var v=i[2],x=i[1];console.log(e);var C=function(e){var t=c.d(e.target.value);return a.a(0,[t])},k=function(e){var t=c.d(e.target.value);return a.a(1,[t])},S=function(e,t){var n=t[2];return l.a(w,[n[1]],[n[2]],e)};return s.createElement("div",{style:h.a},s.createElement("div",{style:h.b},s.createElement("h1",{style:h.c},g.a(0,0,p.a(t,r("in",l.b(x,C),v[1],t),[]))),g.a(0,0,u.a(e,[1],[function(e){return e.execCommand("selectAll"),0}],t,0,[l.b(i[0],S)],[]))),s.createElement("div",{style:h.b},s.createElement("h1",{style:h.c},g.a(0,0,p.a(o,r("out",l.b(x,k),v[2],o),[])),g.a(0,0,f.a(["share"],y,l.b(x,function(){return 0}),[h.d],[])),g.a(0,0,f.a(0,n,l.b(x,function(){return 1}),[h.d],[])),g.a(0,0,d.a(function(){return l.b(b,e)},[h.e],[]))),g.a(0,0,u.a(n,0,0,o,[1],0,[])),g.a(0,0,m.a(+(""!==v[0]),[v[0]],[h.f],[]))))},C[10]=function(){return["",3,3,[0]]},C[12]=function(t,n){if("number"!=typeof t){if(t.tag){var r=t[0];return a.a(3,[[n[0],n[1],r,n[3]],function(t){return l.a(w,[t[2][1]],[r],e)}])}var o=t[0];return a.a(3,[[n[0],o,n[2],n[3]],function(t){return l.a(w,[o],[t[2][2]],e)}])}switch(t){case 0:return a.a(3,[["Link copied to clipboard",n[1],n[2],n[3]],i]);case 1:return a.a(3,[["Text copied to clipboard",n[1],n[2],n[3]],i]);case 2:return a.a(0,[["",n[1],n[2],n[3]]])}},C}n.d(t,"a",function(){return o});var a=n(5),l=n(1),s=n(2),u=(n.n(s),n(24)),c=n(13),f=n(22),d=n(25),p=n(32),h=n(14),g=n(3),m=n(23),v=g.b("PopupWindow")},function(e,t,n){"use strict";function r(e){switch(e){case"ML":return 0;case"RE":return 1;case"REO":return 2;default:return 3}}function i(e){switch(e){case 0:return"ML";case 1:return"RE";case 2:return"REO";case 3:return"Unkown"}}function o(e){switch(e){case 0:return"implementation";case 1:return"interface";case 2:return"Unkown"}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o})},function(e,t,n){"use strict";function r(e,t){var n=D.b(e);return D.g(n,0,e,t),n}function i(e,t){for(var n=D.b(e),r=0,i=e-1|0;r<=i;++r)n[r]=P.b(t,r);return n}function o(e){var t=e.length,n=D.b(t);return D.d(e,0,n,0,t),n}function a(e,t,n){if(t<0||n<0||t>(e.length-n|0))throw[_.a,"String.sub / Bytes.sub"];var r=D.b(n);return D.d(e,t,r,0,n),r}function l(e,t,n,r){if(t<0||n<0||t>(e.length-n|0))throw[_.a,"String.fill / Bytes.fill"];return D.g(e,t,n,r)}function s(e,t,n,r,i){if(i<0||t<0||t>(e.length-i|0)||r<0||r>(n.length-i|0))throw[_.a,"String.blit / Bytes.blit_string"];return D.f(e,t,n,r,i)}function u(e,t){for(var n=0,r=t.length-1|0;n<=r;++n)P.b(e,t[n]);return 0}function c(e,t){for(var n=0,r=t.length-1|0;n<=r;++n)P.d(e,n,t[n]);return 0}function f(e){var t=e-9|0;return t>4||t<0?23!==t?0:1:2!==t?1:0}function d(e){for(var t=e.length,n=0;n=n&&f(e[r]);)r=r-1|0;return r>=n?a(e,n,1+(r-n|0)|0):I}function p(e){for(var t=0,n=0,r=e.length-1|0;n<=r;++n){var i,a=e[n];if(a>=32){var l=a-34|0;i=l>58||l<0?l>=93?4:1:l>57||l<1?2:1}else i=a>=11?13!==a?4:2:a>=8?2:4;t=t+i|0}if(t===e.length)return o(e);var s=D.b(t);t=0;for(var u=0,c=e.length-1|0;u<=c;++u){var f=e[u],d=0;if(f>=35)92!==f?f>=127?d=1:s[t]=f:d=2;else if(f>=32)f>=34?d=2:s[t]=f;else if(f>=14)d=1;else switch(f){case 8:s[t]=92,t=t+1|0,s[t]=98;break;case 9:s[t]=92,t=t+1|0,s[t]=116;break;case 10:s[t]=92,t=t+1|0,s[t]=110;break;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 11:case 12:d=1;break;case 13:s[t]=92,t=t+1|0,s[t]=114}switch(d){case 1:s[t]=92,t=t+1|0,s[t]=48+(f/100|0)|0,t=t+1|0,s[t]=48+(f/10|0)%10|0,t=t+1|0,s[t]=48+f%10|0;break;case 2:s[t]=92,t=t+1|0,s[t]=f}t=t+1|0}return s}function h(e,t){var n=t.length;if(n){for(var r=D.b(n),i=0,o=n-1|0;i<=o;++i)r[i]=P.b(e,t[i]);return r}return t}function g(e,t){var n=t.length;if(n){for(var r=D.b(n),i=0,o=n-1|0;i<=o;++i)r[i]=P.d(e,i,t[i]);return r}return t}function m(e){return h(O.a,e)}function v(e){return h(O.b,e)}function y(e,t){if(t.length){var n=o(t);return n[0]=P.b(e,t[0]),n}return t}function b(e){return y(O.a,e)}function w(e){return y(O.b,e)}function x(e,t,n,r){for(;;){var i=n;if(i>=t)throw _.d;if(e[i]===r)return i;n=i+1|0}}function C(e,t){return x(e,e.length,0,t)}function k(e,t,n){var r=e.length;if(t<0||t>r)throw[_.a,"String.index_from / Bytes.index_from"];return x(e,r,t,n)}function S(e,t,n){for(;;){var r=t;if(r<0)throw _.d;if(e[r]===n)return r;t=r-1|0}}function T(e,t){return S(e,e.length-1|0,t)}function E(e,t,n){if(t<-1||t>=e.length)throw[_.a,"String.rindex_from / Bytes.rindex_from"];return S(e,t,n)}function M(e,t,n){var r=e.length;if(t<0||t>r)throw[_.a,"String.contains_from / Bytes.contains_from"];try{return x(e,r,t,n),1}catch(e){if(e===_.d)return 0;throw e}}function L(e,t){return M(e,0,t)}function N(e,t,n){if(t<0||t>=e.length)throw[_.a,"String.rcontains_from / Bytes.rcontains_from"];try{return S(e,t,n),1}catch(e){if(e===_.d)return 0;throw e}}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"v",function(){return l}),n.d(t,"w",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return g}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return C}),n.d(t,"l",function(){return T}),n.d(t,"m",function(){return k}),n.d(t,"n",function(){return E}),n.d(t,"o",function(){return L}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return N}),n.d(t,"r",function(){return m}),n.d(t,"s",function(){return v}),n.d(t,"t",function(){return b}),n.d(t,"u",function(){return w});var O=n(42),P=(n(9),n(1)),A=n(16),D=(n(6),n(8)),_=(n(7),n(0)),I=[];A.a,D.c,D.e},function(e,t,n){"use strict";function r(e){throw[g.c,e]}function i(e){return e>=65?e>=97?e>=123?-1:e-87|0:e>=91?-1:e-55|0:e>57||e<48?-1:e-48|0}function o(e){switch(e){case 0:return 8;case 1:return 16;case 2:return 10;case 3:return 2}}function a(e){var t=1,n=2,r=0;"-"===e[r]&&(t=-1,r=r+1|0);var i=e.charCodeAt(r),o=e.charCodeAt(r+1|0);return 48===i&&(o>=89?98!==o?111!==o?120===o&&(n=1,r=r+2|0):(n=0,r=r+2|0):(n=3,r=r+2|0):66!==o?79!==o?o>=88&&(n=1,r=r+2|0):(n=0,r=r+2|0):(n=3,r=r+2|0)),[r,t,n]}function l(e){var t=a(e),n=t[0],r=o(t[2]),l=e.length,s=n=r)throw[g.c,"int_of_string"];var c=t[1]*function(t,n){for(;;){var o=n,a=t;if(o===l)return a;var s=e.charCodeAt(o);if(95!==s){var u=i(s);if(u<0||u>=r)throw[g.c,"int_of_string"];var c=r*a+u;if(c>4294967295)throw[g.c,"int_of_string"];n=o+1|0,t=c}else n=o+1|0}}(u,n+1|0),f=0|c;if(10===r&&c!==f)throw[g.c,"int_of_string"];return f}function s(e){return e>=65&&e<=90||e>=192&&e<=214||e>=216&&e<=222?e+32|0:e}function u(e){var t=e.length;if(t>31)throw[g.a,"format_int: format too long"];for(var n=["+","-"," ",0,2,0,0,0,1,-1,"f"],r=0;;){var i=r;if(i>=t)return n;var o=e.charCodeAt(i),a=0;if(o>=69)if(o>=88)if(o>=121)a=1;else switch(o-88|0){case 0:n[4]=1,n[7]=1,r=i+1|0;continue;case 13:case 14:case 15:a=5;break;case 12:case 17:a=4;break;case 23:n[4]=0,r=i+1|0;continue;case 29:n[4]=2,r=i+1|0;continue;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 16:case 18:case 19:case 20:case 21:case 22:case 24:case 25:case 26:case 27:case 28:case 30:case 31:a=1;break;case 32:n[4]=1,r=i+1|0;continue}else{if(!(o>=72)){n[5]=1,n[7]=1,n[10]=String.fromCharCode(s(o)),r=i+1|0;continue}a=1}else{var l=o-32|0;if(l>25||l<0)a=1;else switch(l){case 3:n[3]=1,r=i+1|0;continue;case 0:case 11:a=2;break;case 13:n[0]="-",r=i+1|0;continue;case 14:n[9]=0;for(var u=i+1|0;function(t){return function(){var n=e.charCodeAt(t)-48|0;return+(n>=0&&n<=9)}}(u)();)n[9]=(h.a(n[9],10)+e.charCodeAt(u)|0)-48|0,u=u+1|0;r=u;continue;case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 12:case 15:a=1;break;case 16:n[2]="0",r=i+1|0;continue;case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:a=3}}switch(a){case 1:r=i+1|0;continue;case 2:n[1]=String.fromCharCode(o),r=i+1|0;continue;case 3:n[6]=0;for(var c=i;function(t){return function(){var n=e.charCodeAt(t)-48|0;return+(n>=0&&n<=9)}}(c)();)n[6]=(h.a(n[6],10)+e.charCodeAt(c)|0)-48|0,c=c+1|0;r=c;continue;case 4:n[5]=1,n[4]=2,r=i+1|0;continue;case 5:n[5]=1,n[10]=String.fromCharCode(o),r=i+1|0;continue}}}function c(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],s=e[6],u=e[7],c=e[8],f=t.length;l&&(c<0||"-"!==r)&&(f=f+1|0),o&&(a?1===a&&(f=f+2|0):f=f+1|0);var d="";if("+"===n&&" "===i)for(var p=f,h=s-1|0;p<=h;++p)d+=i;if(l&&(c<0?d+="-":"-"!==r&&(d+=r)),o&&0===a&&(d+="0"),o&&1===a&&(d+="0x"),"+"===n&&"0"===i)for(var g=f,m=s-1|0;g<=m;++g)d+=i;if(d=u?d+t.toUpperCase():d+t,"-"===n)for(var v=f,y=s-1|0;v<=y;++v)d+=" ";return d}function f(e,t){var n=u(e),r=n[9]<0?6:n[9],i=t<0?(n[8]=-1,-t):t,o="";if(isNaN(i))o="nan",n[2]=" ";else if(isFinite(i)){var a=n[10];switch(a){case"e":o=i.toExponential(r);var l=o.length;"e"===o[l-3|0]&&(o=o.slice(0,l-1|0)+"0"+o.slice(l-1|0));break;case"f":o=i.toFixed(r);break;case"g":var s=0!==r?r:1;o=i.toExponential(s-1|0);var f=o.indexOf("e"),d=0|Number(o.slice(f+1|0));if(d<-4||i>=1e21||i.toFixed().length>s){for(var p=f-1|0;"0"===o[p];)p=p-1|0;"."===o[p]&&(p=p-1|0),o=o.slice(0,p+1|0)+o.slice(f);var h=o.length;"e"===o[h-3|0]&&(o=o.slice(0,h-1|0)+"0"+o.slice(h-1|0))}else{var g=s;if(d<0)g=g-(d+1|0)|0,o=i.toFixed(g);else for(;function(){return o=i.toFixed(g),+(o.length>(s+1|0))}();)g=g-1|0;if(0!==g){for(var m=o.length-1|0;"0"===o[m];)m=m-1|0;"."===o[m]&&(m=m-1|0),o=o.slice(0,m+1|0)}}}}else o="inf",n[2]=" ";return c(n,o)}function d(e){return p.d(m,e,r)}n.d(t,"a",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return l});var p=n(1),h=n(6),g=(n(37),n(17),n(0)),m=function(e,t){var n=+e;if(e.length>0&&n===n)return n;if(e=e.replace(/_/g,""),n=+e,e.length>0&&n===n||/^[+-]?nan$/i.test(e))return n;if(/^ *0x[0-9a-f_]+p[+-]?[0-9_]+/i.test(e)){var r=e.indexOf("p");r=-1==r?e.indexOf("P"):r;var i=+e.substring(r+1);return(n=+e.substring(0,r))*Math.pow(2,i)}return/^\+?inf(inity)?$/i.test(e)?1/0:/^-inf(inity)?$/i.test(e)?-1/0:void t("float_of_string")}},function(e,t,n){"use strict";function r(e){return+(0!=(2147483648&e))}function i(e,t){var n=t[1],i=e[1],o=i+n&4294967295,a=r(i)&&(r(n)||!r(o))||r(n)&&!r(o)?1:0;return[e[0]+t[0]+a&4294967295,o>>>0]}function o(e){return[-1^e[0],(-1^e[1])>>>0]}function a(e,t){return e[0]===t[0]?+(e[1]===t[1]):0}function l(e){return a(e,M)?M:i(o(e),N)}function s(e,t){if(t){var n=e[1];return t>=32?[n<<(t-32|0),0]:[n>>>(32-t|0)|e[0]<>>0]}return e}function u(e,t){if(t){var n=e[0];if(t<32)return[n>>t,(n<<(32-t|0)|e[1]>>>t)>>>0];var r=n>>(t-32|0);return[n>=0?0:-1,r>>>0]}return e}function c(e){return 0!==e[0]||0!==e[1]?0:1}function f(e,t){for(;;){var n,r=t,i=e,o=0,a=i[0],s=0,u=0,c=0;if(0!==a)c=4;else{if(0===i[1])return O;c=4}if(4===c)if(0!==r[0])u=3;else{if(0===r[1])return O;u=3}if(3===u&&(-2147483648!==a?s=2:0!==i[1]?s=2:(n=r[1],o=1)),2===s){var d=r[0],p=i[1],h=0;if(-2147483648!==d?h=3:0!==r[1]?h=3:(n=p,o=1),3===h){var g=r[1];if(a<0){if(d<0){t=l(r),e=l(i);continue}return l(f(l(i),r))}if(d<0)return l(f(i,l(r)));var m=a>>>16,v=65535&a,y=p>>>16,b=65535&p,w=d>>>16,x=65535&d,C=g>>>16,k=65535&g,S=0,T=0,E=0,L=b*k;return E=(L>>>16)+y*k,T=E>>>16,E=(65535&E)+b*C,T=T+(E>>>16)+v*k,S=T>>>16,T=(65535&T)+y*C,S+=T>>>16,T=(65535&T)+b*x,S+=T>>>16,T&=65535,S=S+(m*k+v*C+y*x+b*w)&65535,[T|S<<16,(65535&L|(65535&E)<<16)>>>0]}}if(1===o)return 0==(1&n)?O:M}}function d(e,t){return[e[0]|t[0],(e[1]|t[1])>>>0]}function p(e,t){var n=t[0],r=e[0];return r>n?1:r=t[1])}function h(e,t){return 1-a(e,t)}function g(e,t){return 1-p(e,t)}function m(e,t){return e[0]>t[0]?1:e[0]t[1])}function v(e){return 4294967296*e[0]+e[1]}function y(e){return isNaN(e)||!isFinite(e)?O:e<=_?M:e+1>=D?L:e<0?l(y(-e)):[e/A|0,(e%A|0)>>>0]}function b(e,t){for(;;){var n=t,r=e,o=r[0],d=0,h=0;if(0!==n[0])h=2;else{if(0===n[1])throw E.f;h=2}if(2===h)if(-2147483648!==o)if(0!==o)d=1;else{if(0===r[1])return O;d=1}else if(0!==r[1])d=1;else{if(a(n,N)||a(n,P))return r;if(a(n,M))return N;var g=n[0],w=u(r,1),x=s(b(w,n),1),C=0;if(0!==x[0])C=3;else{if(0===x[1])return g<0?N:l(N);C=3}if(3===C){var k=f(n,x),S=i(r,l(k));return i(x,b(S,n))}}if(1===d){var L=n[0],A=0;if(-2147483648!==L)A=2;else{if(0===n[1])return O;A=2}if(2===A){if(o<0){if(L<0){t=l(n),e=l(r);continue}return l(b(l(r),n))}if(L<0)return l(b(r,l(n)));for(var D=O,_=r;p(_,n);){for(var I=T.c(1,Math.floor(v(_)/v(n))),R=Math.ceil(Math.log(I)/Math.LN2),F=R<=48?1:Math.pow(2,R-48),H=y(I),W=f(H,n);W[0]<0||m(W,_);)I-=F,H=y(I),W=f(H,n);c(H)&&(H=N),D=i(D,H),_=i(_,l(W))}return D}}}}function w(e,t){var n=b(e,t);return[n,i(e,l(f(n,t)))]}function x(e){return[e<0?-1:0,e>>>0]}function C(e){var t=function(e){return(e>>>0).toString(16)},n=e[0],r=e[1],i=0;if(0!==n)i=1;else{if(0===r)return"0";i=1}if(1===i){if(0!==r){if(0!==n){var o=t(e[1]),a=8-o.length|0;return a<=0?t(e[0])+o:t(e[0])+(S.a(a,"0")+o)}return t(e[1])}return t(e[0])+"00000000"}}function k(e){return[2147483647&e[0],e[1]]}n.d(t,"a",function(){return x}),n.d(t,"e",function(){return i}),n.d(t,"j",function(){return l}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"h",function(){return a}),n.d(t,"i",function(){return h}),n.d(t,"b",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"l",function(){return w}),n.d(t,"m",function(){return C}),n.d(t,"k",function(){return k});var S=(n(6),n(17)),T=n(7),E=n(0),M=[-2147483648,0],L=[2147483647,1],N=[0,1],O=[0,0],P=[-1,4294967295],A=Math.pow(2,32),D=Math.pow(2,63),_=-Math.pow(2,63)},function(e,t,n){"use strict";(function(e){function r(){throw[f.c,"caml_ml_open_descriptor_in not implemented"]}function i(){throw[f.c,"caml_ml_open_descriptor_out not implemented"]}function o(e){return""!==e[0]?(c.d(e[1],e,e[0]),e[0]="",0):0}function a(t,n,r,i){var a=0===r&&i===n.length?n:n.slice(r,i);if(void 0!==e&&e.stdout&&e.stdout.write&&t===d)return e.stdout.write(a);var l=a.lastIndexOf("\n");return l<0?(t[0]=t[0]+a,0):(t[0]=t[0]+a.slice(0,l+1|0),o(t),t[0]=t[0]+a.slice(l+1|0),0)}function l(e,t){return a(e,String.fromCharCode(t),0,1)}function s(){throw[f.c,"caml_ml_input_char not implemnted"]}function u(){return[d,[p,0]]}n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"h",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return a}),n.d(t,"j",function(){return l}),n.d(t,"i",function(){return s}),n.d(t,"e",function(){return u});var c=n(1),f=n(0),d=["",function(t,n){var r=n.length-1|0;return void 0!==e&&e.stdout&&e.stdout.write?e.stdout.write(n):"\n"===n[r]?(console.log(n.slice(0,r)),0):(console.log(n),0)}],p=["",function(e,t){var n=t.length-1|0;return"\n"===t[n]?(console.log(t.slice(0,n)),0):(console.log(t),0)}],h=void 0}).call(t,n(20))},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){throw new Error(e)}},function(e,t,n){"use strict";(function(e){function r(t){var n=void 0===e?void 0:e;return void 0!==n?n.exit(t):0}n.d(t,"a",function(){return r}),n(0)}).call(t,n(20))},function(e,t,n){"use strict";function r(e,t){if("number"==typeof e)return t;switch(0|e.tag){case 0:return i.a(0,[r(e[0],t)]);case 1:return i.a(1,[r(e[0],t)]);case 2:return i.a(2,[e[0],r(e[1],t)]);case 3:return i.a(3,[e[0],r(e[1],t)]);case 4:return i.a(4,[e[0],e[1],e[2],r(e[3],t)]);case 5:return i.a(5,[e[0],e[1],e[2],r(e[3],t)]);case 6:return i.a(6,[e[0],e[1],e[2],r(e[3],t)]);case 7:return i.a(7,[e[0],e[1],e[2],r(e[3],t)]);case 8:return i.a(8,[e[0],e[1],e[2],r(e[3],t)]);case 9:return i.a(9,[r(e[0],t)]);case 10:return i.a(10,[r(e[0],t)]);case 11:return i.a(11,[e[0],r(e[1],t)]);case 12:return i.a(12,[e[0],r(e[1],t)]);case 13:return i.a(13,[e[0],e[1],r(e[2],t)]);case 14:return i.a(14,[e[0],e[1],r(e[2],t)]);case 15:return i.a(15,[r(e[0],t)]);case 16:return i.a(16,[r(e[0],t)]);case 17:return i.a(17,[e[0],r(e[1],t)]);case 18:return i.a(18,[e[0],r(e[1],t)]);case 19:return i.a(19,[r(e[0],t)]);case 20:return i.a(20,[e[0],e[1],r(e[2],t)]);case 21:return i.a(21,[e[0],r(e[1],t)]);case 22:return i.a(22,[r(e[0],t)]);case 23:return i.a(23,[e[0],r(e[1],t)]);case 24:return i.a(24,[e[0],e[1],r(e[2],t)])}}n.d(t,"a",function(){return r});var i=n(5)},function(e,t,n){"use strict";function r(e){return e>=65&&e<=90||e>=192&&e<=214||e>=216&&e<=222?e+32|0:e}function i(e){return e>=97&&e<=122||e>=224&&e<=246||e>=248&&e<=254?e-32|0:e}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n(8),n(0)},function(e,t,n){"use strict";function r(e){return!!e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return i.b(e)?e:[o,e]}n.d(t,"a",function(){return r});var i=n(4),o=i.a("Js_exn.Error")},function(e,t,n){"use strict";function r(e,t){return t?t[0]:e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return null===e||void 0===e?0:[e]}function i(e){return void 0===e?0:[e]}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function r(e){return e?e[0]:void 0}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){return e?[e[0],r(e[1],t)]:t}n.d(t,"a",function(){return r});var i=(n(1),n(38)),o=(n(40),n(36),n(8),n(4));n(39),n(0),n(41),o.a("Pervasives.Exit"),i.a,i.b,i.c,Number.MAX_VALUE,Number.MIN_VALUE,i.f,i.j,i.j,i.i,i.i},function(e,t,n){"use strict";function r(e,t){if(t){var n=t[0],r=[0],o=[0];i.b(function(e){return r[0]=r[0]+1|0,o[0]=o[0]+e.length|0,0},t);var s=l.b(o[0]+a.a(e.length,r[0]-1|0)|0);l.f(n,0,s,0,n.length);var u=[n.length];return i.b(function(t){return l.f(e,0,s,u[0],e.length),u[0]=u[0]+e.length|0,l.f(t,0,s,u[0],t.length),u[0]=u[0]+t.length|0,0},t[1]),l.c(s)}return""}n.d(t,"a",function(){return r});var i=n(9),o=n(35),a=n(6),l=n(8);n(7).a,o.v,o.w},function(e,t,n){!function(e){!function(e){"use strict";e.defineMode("javascript",function(t,n){function r(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 i(e,t,n){return Ae=e,De=n,t}function o(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=a(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==n&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return i(n);if("="==n&&e.eat(">"))return i("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if("0"==n&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),i("number","number");if("0"==n&&e.eat(/b/i))return e.eatWhile(/[01]/i),i("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==n)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):Pe(e,t,1)?(r(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eat("="),i("operator","operator",e.current()));if("`"==n)return t.tokenize=s,s(e,t);if("#"==n)return e.skipToEnd(),i("error","error");if(Ue.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),i("operator","operator",e.current());if(We.test(n)){e.eatWhile(We);var o=e.current();if("."!=t.lastType){if(ze.propertyIsEnumerable(o)){var u=ze[o];return i(u.type,u.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\(\w]/,!1))return i("async","keyword",o)}return i("variable","variable",o)}}function a(e){return function(t,n){var r,a=!1;if(Re&&"@"==t.peek()&&t.match(Ve))return n.tokenize=o,i("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||a);)a=!a&&"\\"==r;return a||(n.tokenize=o),i("string","string")}}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=o;break}r="*"==n}return i("comment","comment")}function s(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=o;break}r=!r&&"\\"==n}return i("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(He){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),s=Be.indexOf(l);if(s>=0&&s<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(We.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}function c(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function f(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 d(e,t,n,r,i){var o=e.cc;for(Ke.state=e,Ke.stream=i,Ke.marked=null,Ke.cc=o,Ke.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():Fe?k:C)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Ke.marked?Ke.marked:"variable"==n&&f(e,r)?"variable-2":t}}function p(){for(var e=arguments.length-1;e>=0;e--)Ke.cc.push(arguments[e])}function h(){return p.apply(null,arguments),!0}function g(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var r=Ke.state;if(Ke.marked="def",r.context){if(t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;n.globalVars&&(r.globalVars={name:e,next:r.globalVars})}}function m(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function v(){Ke.state.context={prev:Ke.state.context,vars:Ke.state.localVars},Ke.state.localVars=Ge}function y(){Ke.state.localVars=Ke.state.context.vars,Ke.state.context=Ke.state.context.prev}function b(e,t){var n=function(){var n=Ke.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new c(r,Ke.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function w(){var e=Ke.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function x(e){function t(n){return n==e?h():";"==e?p():h(t)}return t}function C(e,t){return"var"==e?h(b("vardef",t.length),ne,x(";"),w):"keyword a"==e?h(b("form"),T,C,w):"keyword b"==e?h(b("form"),C,w):"keyword d"==e?Ke.stream.match(/^\s*$/,!1)?h():h(b("stat"),M,x(";"),w):"debugger"==e?h(x(";")):"{"==e?h(b("}"),j,w):";"==e?h():"if"==e?("else"==Ke.state.lexical.info&&Ke.state.cc[Ke.state.cc.length-1]==w&&Ke.state.cc.pop()(),h(b("form"),T,C,w,le)):"function"==e?h(pe):"for"==e?h(b("form"),se,C,w):"class"==e||He&&"interface"==t?(Ke.marked="keyword",h(b("form"),me,w)):"variable"==e?He&&"declare"==t?(Ke.marked="keyword",h(C)):He&&("module"==t||"enum"==t||"type"==t)&&Ke.stream.match(/^\s*\w/,!1)?(Ke.marked="keyword","enum"==t?h(Le):"type"==t?h(q,x("operator"),q,x(";")):h(b("form"),re,x("{"),b("}"),j,w,w)):He&&"namespace"==t?(Ke.marked="keyword",h(b("form"),k,j,w)):h(b("stat"),F):"switch"==e?h(b("form"),T,x("{"),b("}","switch"),j,w,w):"case"==e?h(k,x(":")):"default"==e?h(x(":")):"catch"==e?h(b("form"),v,x("("),he,x(")"),C,w,y):"export"==e?h(b("stat"),we,w):"import"==e?h(b("stat"),Ce,w):"async"==e?h(C):"@"==t?h(k,C):p(b("stat"),k,x(";"),w)}function k(e,t){return E(e,t,!1)}function S(e,t){return E(e,t,!0)}function T(e){return"("!=e?p():h(b(")"),k,x(")"),w)}function E(e,t,n){if(Ke.state.fatArrowAt==Ke.stream.start){var r=n?D:A;if("("==e)return h(v,b(")"),V(he,")"),w,x("=>"),r,y);if("variable"==e)return p(v,re,x("=>"),r,y)}var i=n?N:L;return je.hasOwnProperty(e)?h(i):"function"==e?h(pe,i):"class"==e||He&&"interface"==t?(Ke.marked="keyword",h(b("form"),ge,w)):"keyword c"==e||"async"==e?h(n?S:k):"("==e?h(b(")"),M,x(")"),w,i):"operator"==e||"spread"==e?h(n?S:k):"["==e?h(b("]"),Me,w,i):"{"==e?B(W,"}",null,i):"quasi"==e?p(O,i):"new"==e?h(_(n)):h()}function M(e){return e.match(/[;\}\)\],]/)?p():p(k)}function L(e,t){return","==e?h(k):N(e,t,!1)}function N(e,t,n){var r=0==n?L:N,i=0==n?k:S;return"=>"==e?h(v,n?D:A,y):"operator"==e?/\+\+|--/.test(t)||He&&"!"==t?h(r):He&&"<"==t&&Ke.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?h(b(">"),V(q,">"),w,r):"?"==t?h(k,x(":"),i):h(i):"quasi"==e?p(O,r):";"!=e?"("==e?B(S,")","call",r):"."==e?h(H,r):"["==e?h(b("]"),M,x("]"),w,r):He&&"as"==t?(Ke.marked="keyword",h(q,r)):"regexp"==e?(Ke.state.lastType=Ke.marked="operator",Ke.stream.backUp(Ke.stream.pos-Ke.stream.start-1),h(i)):void 0:void 0}function O(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?h(O):h(k,P)}function P(e){if("}"==e)return Ke.marked="string-2",Ke.state.tokenize=s,h(O)}function A(e){return u(Ke.stream,Ke.state),p("{"==e?C:k)}function D(e){return u(Ke.stream,Ke.state),p("{"==e?C:S)}function _(e){return function(t){return"."==t?h(e?R:I):"variable"==t&&He?h(J,e?N:L):p(e?S:k)}}function I(e,t){if("target"==t)return Ke.marked="keyword",h(L)}function R(e,t){if("target"==t)return Ke.marked="keyword",h(N)}function F(e){return":"==e?h(w,C):p(L,x(";"),w)}function H(e){if("variable"==e)return Ke.marked="property",h()}function W(e,t){if("async"==e)return Ke.marked="property",h(W);if("variable"==e||"keyword"==Ke.style){if(Ke.marked="property","get"==t||"set"==t)return h(z);var n;return He&&Ke.state.fatArrowAt==Ke.stream.start&&(n=Ke.stream.match(/^\s*:\s*/,!1))&&(Ke.state.fatArrowAt=Ke.stream.pos+n[0].length),h(U)}return"number"==e||"string"==e?(Ke.marked=Re?"property":Ke.style+" property",h(U)):"jsonld-keyword"==e?h(U):He&&m(t)?(Ke.marked="keyword",h(W)):"["==e?h(k,K,x("]"),U):"spread"==e?h(S,U):"*"==t?(Ke.marked="keyword",h(W)):":"==e?p(U):void 0}function z(e){return"variable"!=e?p(U):(Ke.marked="property",h(pe))}function U(e){return":"==e?h(S):"("==e?p(pe):void 0}function V(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=Ke.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),h(function(n,r){return n==t||r==t?p():p(e)},r)}return i==t||o==t?h():h(x(t))}return function(n,i){return n==t||i==t?h():p(e,r)}}function B(e,t,n){for(var r=3;r"==e)return h(q)}function X(e,t){return"variable"==e||"keyword"==Ke.style?(Ke.marked="property",h(X)):"?"==t?h(X):":"==e?h(q):"["==e?h(k,K,x("]"),X):void 0}function Q(e){return"variable"==e?h(Q):":"==e?h(q):void 0}function Z(e,t){return"<"==t?h(b(">"),V(q,">"),w,Z):"|"==t||"."==e?h(q):"["==e?h(x("]"),Z):"extends"==t||"implements"==t?(Ke.marked="keyword",h(q)):void 0}function J(e,t){if("<"==t)return h(b(">"),V(q,">"),w,Z)}function ee(){return p(q,te)}function te(e,t){if("="==t)return h(q)}function ne(e,t){return"enum"==t?(Ke.marked="keyword",h(Le)):p(re,K,oe,ae)}function re(e,t){return He&&m(t)?(Ke.marked="keyword",h(re)):"variable"==e?(g(t),h()):"spread"==e?h(re):"["==e?B(re,"]"):"{"==e?B(ie,"}"):void 0}function ie(e,t){return"variable"!=e||Ke.stream.match(/^\s*:/,!1)?("variable"==e&&(Ke.marked="property"),"spread"==e?h(re):"}"==e?p():h(x(":"),re,oe)):(g(t),h(oe))}function oe(e,t){if("="==t)return h(S)}function ae(e){if(","==e)return h(ne)}function le(e,t){if("keyword b"==e&&"else"==t)return h(b("form","else"),C,w)}function se(e){if("("==e)return h(b(")"),ue,x(")"),w)}function ue(e){return"var"==e?h(ne,x(";"),fe):";"==e?h(fe):"variable"==e?h(ce):p(k,x(";"),fe)}function ce(e,t){return"in"==t||"of"==t?(Ke.marked="keyword",h(k)):h(L,fe)}function fe(e,t){return";"==e?h(de):"in"==t||"of"==t?(Ke.marked="keyword",h(k)):p(k,x(";"),de)}function de(e){")"!=e&&h(k)}function pe(e,t){return"*"==t?(Ke.marked="keyword",h(pe)):"variable"==e?(g(t),h(pe)):"("==e?h(v,b(")"),V(he,")"),w,G,C,y):He&&"<"==t?h(b(">"),V(ee,">"),w,pe):void 0}function he(e,t){return"@"==t&&h(k,he),"spread"==e?h(he):He&&m(t)?(Ke.marked="keyword",h(he)):p(re,K,oe)}function ge(e,t){return"variable"==e?me(e,t):ve(e,t)}function me(e,t){if("variable"==e)return g(t),h(ve)}function ve(e,t){return"<"==t?h(b(">"),V(ee,">"),w,ve):"extends"==t||"implements"==t||He&&","==e?("implements"==t&&(Ke.marked="keyword"),h(He?q:k,ve)):"{"==e?h(b("}"),ye,w):void 0}function ye(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||He&&m(t))&&Ke.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ke.marked="keyword",h(ye)):"variable"==e||"keyword"==Ke.style?(Ke.marked="property",h(He?be:pe,ye)):"["==e?h(k,K,x("]"),He?be:pe,ye):"*"==t?(Ke.marked="keyword",h(ye)):";"==e?h(ye):"}"==e?h():"@"==t?h(k,ye):void 0}function be(e,t){return"?"==t?h(be):":"==e?h(q,oe):"="==t?h(S):p(pe)}function we(e,t){return"*"==t?(Ke.marked="keyword",h(Ee,x(";"))):"default"==t?(Ke.marked="keyword",h(k,x(";"))):"{"==e?h(V(xe,"}"),Ee,x(";")):p(C)}function xe(e,t){return"as"==t?(Ke.marked="keyword",h(x("variable"))):"variable"==e?p(S,xe):void 0}function Ce(e){return"string"==e?h():p(ke,Se,Ee)}function ke(e,t){return"{"==e?B(ke,"}"):("variable"==e&&g(t),"*"==t&&(Ke.marked="keyword"),h(Te))}function Se(e){if(","==e)return h(ke,Se)}function Te(e,t){if("as"==t)return Ke.marked="keyword",h(ke)}function Ee(e,t){if("from"==t)return Ke.marked="keyword",h(k)}function Me(e){return"]"==e?h():p(V(S,"]"))}function Le(){return p(b("form"),re,x("{"),b("}"),V(Ne,"}"),w,w)}function Ne(){return p(re,oe)}function Oe(e,t){return"operator"==e.lastType||","==e.lastType||Ue.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Pe(e,t,n){return t.tokenize==o&&/^(?: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)))}var Ae,De,_e=t.indentUnit,Ie=n.statementIndent,Re=n.jsonld,Fe=n.json||Re,He=n.typescript,We=n.wordCharacters||/[\w$\xa1-\uffff]/,ze=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),Ue=/[+\-*&%=<>!?|~^@]/,Ve=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Be="([{}])",je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ke={state:null,column:null,marked:null,cc:null},Ge={name:"this",next:{name:"arguments"}};return w.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new c((e||0)-_e,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},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(),u(e,t)),t.tokenize!=l&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==Ae?n:(t.lastType="operator"!=Ae||"++"!=De&&"--"!=De?Ae:"incdec",d(t,n,Ae,De,e))},indent:function(t,r){if(t.tokenize==l)return e.Pass;if(t.tokenize!=o)return 0;var i,a=r&&r.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==w)s=s.prev;else if(c!=le)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==L||i==N)&&!/^[,\.=+\-*:?[\(]/.test(r));)s=s.prev;Ie&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+_e:"stat"==f?s.indented+(Oe(t,r)?Ie||_e:0):"switch"!=s.info||d||0==n.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:_e):s.indented+(/^(?:case|default)\b/.test(r)?_e:2*_e)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Fe?null:"/*",blockCommentEnd:Fe?null:"*/",blockCommentContinue:Fe?null:" * ",lineComment:Fe?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Fe?"json":"javascript",jsonldMode:Re,jsonMode:Fe,expressionAllowed:Pe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=k&&t!=S||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(11))}()},function(e,t,n){!function(e){!function(e){"use strict";e.defineMode("mllike",function(e,t){function n(e,n){var l=e.next();if('"'===l)return n.tokenize=r,n.tokenize(e,n);if("{"===l&&e.eat("|"))return n.longString=!0,n.tokenize=o,n.tokenize(e,n);if("("===l&&e.eat("*"))return n.commentLevel++,n.tokenize=i,n.tokenize(e,n);if("~"===l||"?"===l)return e.eatWhile(/\w/),"variable-2";if("`"===l)return e.eatWhile(/\w/),"quote";if("/"===l&&t.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(l))return"0"===l&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===l&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===l&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(l))return"operator";if(/[\w\xa1-\uffff]/.test(l)){e.eatWhile(/[\w\xa1-\uffff]/);var s=e.current();return a.hasOwnProperty(s)?a[s]:"variable"}return null}function r(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if('"'===r&&!o){i=!0;break}o=!o&&"\\"===r}return i&&!o&&(t.tokenize=n),"string"}function i(e,t){for(var r,i;t.commentLevel>0&&null!=(i=e.next());)"("===r&&"*"===i&&t.commentLevel++,"*"===r&&")"===i&&t.commentLevel--,r=i;return t.commentLevel<=0&&(t.tokenize=n),"comment"}function o(e,t){for(var r,i;t.longString&&null!=(i=e.next());)"|"===r&&"}"===i&&(t.longString=!1),r=i;return t.longString||(t.tokenize=n),"string"}var a={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},l=t.extraWords||{};for(var s in l)l.hasOwnProperty(s)&&(a[s]=t.extraWords[s]);return{startState:function(){return{tokenize:n,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:t.slashComments?"//":null}}),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(11))}()},function(e,t,n){"use strict";function r(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function i(e,t){var n,i,l,s,u,c,f=!1;t||(t={}),n=t.debug||!1;try{if(l=o(),s=document.createRange(),u=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",document.body.appendChild(c),s.selectNode(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData("text",e),f=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=r("message"in t?t.message:a),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),l()}return f}var o=n(78),a="Copy to clipboard: #{key}, Enter";e.exports=i},function(e,t,n){"use strict";var r=n(12),i={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=i},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!i(e)&&(i(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var i=n(59);e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(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}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=n(58);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var s=Object.assign||function(e){for(var t=1;tthis.eventPool.length&&this.eventPool.push(e)}function V(e){e.eventPool=[],e.getPooled=z,e.release=U}function B(e,t,n,r){return W.call(this,e,t,n,r)}function j(e,t,n,r){return W.call(this,e,t,n,r)}function K(e,t){switch(e){case"topKeyUp":return-1!==pr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function G(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function $(e,t){switch(e){case"topCompositionEnd":return G(t);case"topKeyPress":return 32!==t.which?null:(kr=!0,xr);case"topTextInput":return e=t.data,e===xr&&kr?null:e;default:return null}}function q(e,t){if(Sr)return"topCompositionEnd"===e||!hr&&K(e,t)?(e=F(),cr._root=null,cr._startText=null,cr._fallbackText=null,Sr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Vr.length&&Vr.push(e)}}}function De(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function _e(e){if($r[e])return $r[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in qr)return $r[e]=n[t];return""}function Ie(e){return Object.prototype.hasOwnProperty.call(e,Zr)||(e[Zr]=Qr++,Xr[e[Zr]]={}),Xr[e[Zr]]}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fe(e,t){var n=Re(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Re(n)}}function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function We(e,t){if(ii||null==ti||ti!==Sn())return null;var n=ti;return"selectionStart"in n&&He(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ri&&Tn(ri,n)?null:(ri=n,e=W.getPooled(ei.select,ni,e,t),e.type="select",e.target=ti,_(e),e)}function ze(e,t,n,r){return W.call(this,e,t,n,r)}function Ue(e,t,n,r){return W.call(this,e,t,n,r)}function Ve(e,t,n,r){return W.call(this,e,t,n,r)}function Be(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function je(e,t,n,r){return W.call(this,e,t,n,r)}function Ke(e,t,n,r){return W.call(this,e,t,n,r)}function Ge(e,t,n,r){return W.call(this,e,t,n,r)}function $e(e,t,n,r){return W.call(this,e,t,n,r)}function qe(e,t,n,r){return W.call(this,e,t,n,r)}function Ye(e){0>di||(e.current=fi[di],fi[di]=null,di--)}function Xe(e,t){di++,fi[di]=e.current,e.current=t}function Qe(e){return Je(e)?gi:pi.current}function Ze(e,t){var n=e.type.contextTypes;if(!n)return Ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Je(e)&&(Ye(hi,e),Ye(pi,e))}function tt(e,t,n){null!=pi.cursor&&r("168"),Xe(pi,t,e),Xe(hi,n,e)}function nt(e,t){var n=e.stateNode,i=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var o in n)o in i||r("108",xe(e)||"Unknown",o);return xn({},t,n)}function rt(e){if(!Je(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ln,gi=pi.current,Xe(pi,t,e),Xe(hi,hi.current,e),!0}function it(e,t){var n=e.stateNode;if(n||r("169"),t){var i=nt(e,gi);n.__reactInternalMemoizedMergedChildContext=i,Ye(hi,e),Ye(pi,e),Xe(pi,i,e)}else Ye(hi,e);Xe(hi,t,e)}function ot(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new ot(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function lt(e,t,n){var i=void 0,o=e.type,a=e.key;return"function"==typeof o?(i=o.prototype&&o.prototype.isReactComponent?new ot(2,a,t):new ot(0,a,t),i.type=o,i.pendingProps=e.props):"string"==typeof o?(i=new ot(5,a,t),i.type=o,i.pendingProps=e.props):"object"==typeof o&&null!==o&&"number"==typeof o.tag?(i=o,i.pendingProps=e.props):r("130",null==o?o:typeof o,""),i.expirationTime=n,i}function st(e,t,n,r){return t=new ot(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function ut(e,t,n){return t=new ot(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new ot(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ft(e,t,n){return e=new ot(9,null,t),e.expirationTime=n,e}function dt(e,t,n){return t=new ot(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pt(e){return function(t){try{return e(t)}catch(e){}}}function ht(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);mi=pt(function(e){return t.onCommitFiberRoot(n,e)}),vi=pt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function gt(e){"function"==typeof mi&&mi(e)}function mt(e){"function"==typeof vi&&vi(e)}function vt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function yt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=vt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=vt(null)):e=null,e=e!==r?e:null,null===e?yt(r,t):null===r.last||null===e.last?(yt(r,t),yt(e,t)):(yt(r,t),e.last=t)}function wt(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function xt(e,t,n,r,i,o){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,l=n.first,s=!1;null!==l;){var u=l.expirationTime;if(u>o){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),s||(s=!0,n.baseState=e)}else s||(n.first=l.next,null===n.first&&(n.last=null)),l.isReplace?(e=wt(l,r,e,i),a=!0):(u=wt(l,r,e,i))&&(e=a?xn({},e,u):xn(e,u),a=!1),l.isForced&&(n.hasForceUpdate=!0),null!==l.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(l));l=l.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),s||(n.baseState=e),e}function Ct(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;ed?(p=f,f=null):p=f.sibling;var v=g(r,f,l[d],s);if(null===v){null===f&&(f=p);break}e&&f&&null===v.alternate&&t(r,f),o=a(v,o,d),null===c?u=v:c.sibling=v,c=v,f=p}if(d===l.length)return n(r,f),u;if(null===f){for(;dp?(v=d,d=null):v=d.sibling;var b=g(o,d,y.value,u);if(null===b){d||(d=v);break}e&&d&&null===b.alternate&&t(o,d),l=a(b,l,p),null===f?c=b:f.sibling=b,f=b,d=v}if(y.done)return n(o,d),c;if(null===d){for(;!y.done;p++,y=s.next())null!==(y=h(o,y.value,u))&&(l=a(y,l,p),null===f?c=y:f.sibling=y,f=y);return c}for(d=i(o,d);!y.done;p++,y=s.next())null!==(y=m(d,o,p,y.value,u))&&(e&&null!==y.alternate&&d.delete(null===y.key?p:y.key),l=a(y,l,p),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach(function(e){return t(o,e)}),c}return function(e,i,a,s){"object"==typeof a&&null!==a&&a.type===ki&&null===a.key&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case bi:e:{var c=a.key;for(u=i;null!==u;){if(u.key===c){if(10===u.tag?a.type===ki:u.type===a.type){n(e,u.sibling),i=o(u,a.type===ki?a.props.children:a.props,s),i.ref=Tt(u,a),i.return=e,e=i;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===ki?(i=st(a.props.children,e.internalContextTag,s,a.key),i.return=e,e=i):(s=lt(a,e.internalContextTag,s),s.ref=Tt(i,a),s.return=e,e=s)}return l(e);case wi:e:{for(u=a.key;null!==i;){if(i.key===u){if(7===i.tag){n(e,i.sibling),i=o(i,a,s),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=ct(a,e.internalContextTag,s),i.return=e,e=i}return l(e);case xi:e:{if(null!==i){if(9===i.tag){n(e,i.sibling),i=o(i,null,s),i.type=a.value,i.return=e,e=i;break e}n(e,i)}i=ft(a,e.internalContextTag,s),i.type=a.value,i.return=e,e=i}return l(e);case Ci:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[],s),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=dt(a,e.internalContextTag,s),i.return=e,e=i}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,a,s)):(n(e,i),i=ut(a,e.internalContextTag,s)),i.return=e,e=i,l(e);if(Ti(a))return v(e,i,a,s);if(St(a))return y(e,i,a,s);if(u&&Et(e,a),void 0===a)switch(e.tag){case 2:case 1:s=e.type,r("152",s.displayName||s.name||"Component")}return n(e,i)}}function Lt(e,t,n,i,o){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Mi(t,null,n,r):Ei(t,e.child,n,r)}function l(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function s(e,t,n,r){if(l(e,t),!n)return r&&it(t,!1),c(e,t);n=t.stateNode,Ur.current=t;var i=n.render();return t.effectTag|=1,a(e,t,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&it(t,!0),t.child}function u(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),m(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function f(e,t){switch(t.tag){case 3:u(t);break;case 2:rt(t);break;case 4:m(t,t.stateNode.containerInfo)}return null}var d=e.shouldSetTextContent,p=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,g=t.pushHostContext,m=t.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=kt(i,o,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,x=e.constructClassInstance,C=e.mountClassInstance,k=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return f(e,t);switch(t.tag){case 0:null!==e&&r("155");var i=t.type,o=t.pendingProps,S=Qe(t);return S=Ze(t,S),i=i(o,S),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render?(t.tag=2,o=rt(t),w(t,i),C(t,n),t=s(e,t,!0,o)):(t.tag=1,a(e,t,i),t.memoizedProps=o,t=t.child),t;case 1:e:{if(o=t.type,n=t.pendingProps,i=t.memoizedProps,hi.current)null===n&&(n=i);else if(null===n||i===n){t=c(e,t);break e}i=Qe(t),i=Ze(t,i),o=o(n,i),t.effectTag|=1,a(e,t,o),t.memoizedProps=n,t=t.child}return t;case 2:return o=rt(t),i=void 0,null===e?t.stateNode?r("153"):(x(t,t.pendingProps),C(t,n),i=!0):i=k(e,t,n),s(e,t,i,o);case 3:return u(t),o=t.updateQueue,null!==o?(i=t.memoizedState,o=xt(e,t,o,null,null,n),i===o?(y(),t=c(e,t)):(i=o.element,S=t.stateNode,(null===e||null===e.child)&&S.hydrate&&v(t)?(t.effectTag|=2,t.child=Mi(t,null,i,n)):(y(),a(e,t,i)),t.memoizedState=o,t=t.child)):(y(),t=c(e,t)),t;case 5:g(t),null===e&&b(t),o=t.type;var T=t.memoizedProps;return i=t.pendingProps,null===i&&null===(i=T)&&r("154"),S=null!==e?e.memoizedProps:null,hi.current||null!==i&&T!==i?(T=i.children,d(o,i)?T=null:S&&d(o,S)&&(t.effectTag|=16),l(e,t),2147483647!==n&&!p&&h(o,i)?(t.expirationTime=2147483647,t=null):(a(e,t,T),t.memoizedProps=i,t=t.child)):t=c(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return o=t.pendingProps,hi.current?null===o&&null===(o=e&&e.memoizedProps)&&r("154"):null!==o&&t.memoizedProps!==o||(o=t.memoizedProps),i=o.children,t.stateNode=null===e?Mi(t,t.stateNode,i,n):Ei(t,t.stateNode,i,n),t.memoizedProps=o,t.stateNode;case 9:return null;case 4:e:{if(m(t,t.stateNode.containerInfo),o=t.pendingProps,hi.current)null===o&&null==(o=e&&e.memoizedProps)&&r("154");else if(null===o||t.memoizedProps===o){t=c(e,t);break e}null===e?t.child=Ei(t,null,o,n):a(e,t,o),t.memoizedProps=o,t=t.child}return t;case 10:e:{if(n=t.pendingProps,hi.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:u(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?f(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Mi(t,null,null,n):Ei(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function Nt(e,t,n){function i(e){e.effectTag|=4}var o=e.createInstance,a=e.createTextInstance,l=e.appendInitialChild,s=e.finalizeInitialChildren,u=e.prepareUpdate,c=e.persistence,f=t.getRootHostContainer,d=t.popHostContext,p=t.getHostContext,h=t.popHostContainer,g=n.prepareToHydrateHostInstance,m=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,w=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&i(t)},w=function(e,t,n,r){n!==r&&i(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Ye(hi,t),Ye(pi,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(v(t),t.effectTag&=-3),y(t),null;case 5:d(t),n=f();var x=t.type;if(null!==e&&null!=t.stateNode){var C=e.memoizedProps,k=t.stateNode,S=p();k=u(k,x,C,c,n,S),b(e,t,k,x,C,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode&&r("166"),null;if(e=p(),v(t))g(t,n,e)&&i(t);else{e=o(x,c,n,e,t);e:for(C=t.child;null!==C;){if(5===C.tag||6===C.tag)l(e,C.stateNode);else if(4!==C.tag&&null!==C.child){C.child.return=C,C=C.child;continue}if(C===t)break;for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}s(e,x,c,n)&&i(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)w(e,t,e.memoizedProps,c);else{if("string"!=typeof c)return null===t.stateNode&&r("166"),null;e=f(),n=p(),v(t)?m(t)&&i(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)||r("165"),t.tag=8,x=[];e:for((C=t.stateNode)&&(C.return=t);null!==C;){if(5===C.tag||6===C.tag||4===C.tag)r("247");else if(9===C.tag)x.push(C.type);else if(null!==C.child){C.child.return=C,C=C.child;continue}for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}return C=c.handler,c=C(c.props,x),t.child=Ei(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:r("167");default:r("156")}}}}function Ot(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function i(e){switch("function"==typeof mt&&mt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:o(e.stateNode);break;case 4:u&&l(e)}}function o(e){for(var t=e;;)if(i(t),null===t.child||u&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function l(e){for(var t=e,n=!1,a=void 0,l=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,l=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,l=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)o(t),l?b(a,t.stateNode):y(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:i(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var s=e.getPublicInstance,u=e.mutation;e=e.persistence,u||r(e?"235":"236");var c=u.commitMount,f=u.commitUpdate,d=u.resetTextContent,p=u.commitTextUpdate,h=u.appendChild,g=u.appendChildToContainer,m=u.insertBefore,v=u.insertInContainerBefore,y=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(e){d(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(d(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)n?i?v(t,o.stateNode,n):m(t,o.stateNode,n):i?g(t,o.stateNode):h(t,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(e){l(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&f(n,a,o,e,i,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,p(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var i=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(i,e)}null!==(t=t.updateQueue)&&Ct(t,n);break;case 3:null!==(n=t.updateQueue)&&Ct(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(s(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Pt(e){function t(e){return e===Li&&r("174"),e}var n=e.getChildHostContext,i=e.getRootHostContext,o={current:Li},a={current:Li},l={current:Li};return{getHostContext:function(){return t(o.current)},getRootHostContainer:function(){return t(l.current)},popHostContainer:function(e){Ye(o,e),Ye(a,e),Ye(l,e)},popHostContext:function(e){a.current===e&&(Ye(o,e),Ye(a,e))},pushHostContainer:function(e,t){Xe(l,t,e),t=i(t),Xe(a,e,e),Xe(o,t,e)},pushHostContext:function(e){var r=t(l.current),i=t(o.current);r=n(i,e.type,r),i!==r&&(Xe(a,e,e),Xe(o,r,e))},resetHostContainer:function(){o.current=Li,l.current=Li}}}function At(e){function t(e,t){var n=new ot(5,null,0);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 n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=l(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function i(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;d=e}var o=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,l=e.canHydrateTextInstance,s=e.getNextHydratableSibling,u=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=null,p=null,h=!1;return{enterHydrationState:function(e){return p=u(e.stateNode.containerInfo),d=e,h=!0},resetHydrationState:function(){p=d=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=p;if(r){if(!n(e,r)){if(!(r=s(r))||!n(e,r))return e.effectTag|=2,h=!1,void(d=e);t(d,p)}d=e,p=u(r)}else e.effectTag|=2,h=!1,d=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==d)return!1;if(!h)return i(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=p;n;)t(e,n),n=s(n);return i(e),p=d?s(e.stateNode):null,!0}}}function Dt(e){function t(e){oe=Y=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,Ur.current=null,1a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1e))if(Z<=$)for(;null!==X;)X=u(X)?o(X):i(X);else for(;null!==X&&!C();)X=u(X)?o(X):i(X)}else if(!(0===Z||Z>e))if(Z<=$)for(;null!==X;)X=i(X);else for(;null!==X&&!C();)X=i(X)}function l(e,t){if(Y&&r("243"),Y=!0,e.isReadyForCommit=!1,e!==Q||t!==Z||null===X){for(;-1t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!Y&&n===Q&&twe&&r("185"),null===i.nextScheduledRoot)i.remainingExpirationTime=o,null===se?(le=se=i,i.nextScheduledRoot=i):(se=se.nextScheduledRoot=i,se.nextScheduledRoot=le);else{var a=i.remainingExpirationTime;(0===a||oue)return;V(ce)}var t=z()-G;ue=e,ce=U(b,{timeout:10*(e-2)-t})}function y(){var e=0,t=null;if(null!==se)for(var n=se,i=le;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===n||null===se)&&r("244"),i===i.nextScheduledRoot){le=se=i.nextScheduledRoot=null;break}if(i===le)le=o=i.nextScheduledRoot,se.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===se){se=n,se.nextScheduledRoot=le,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||oke)&&(he=!0)}function k(e){null===de&&r("246"),de.remainingExpirationTime=0,ge||(ge=!0,me=e)}var S=Pt(e),T=At(e),E=S.popHostContainer,M=S.popHostContext,L=S.resetHostContainer,N=Lt(e,S,T,p,d),O=N.beginWork,P=N.beginFailedWork,A=Nt(e,S,T).completeWork;S=Ot(e,s);var D=S.commitResetTextContent,_=S.commitPlacement,I=S.commitDeletion,R=S.commitWork,F=S.commitLifeCycles,H=S.commitAttachRef,W=S.commitDetachRef,z=e.now,U=e.scheduleDeferredCallback,V=e.cancelDeferredCallback,B=e.useSyncScheduling,j=e.prepareForCommit,K=e.resetAfterCommit,G=z(),$=2,q=0,Y=!1,X=null,Q=null,Z=0,J=null,ee=null,te=null,ne=null,re=null,ie=!1,oe=!1,ae=!1,le=null,se=null,ue=0,ce=-1,fe=!1,de=null,pe=0,he=!1,ge=!1,me=null,ve=null,ye=!1,be=!1,we=1e3,Ce=0,ke=1;return{computeAsyncExpiration:f,computeExpirationForFiber:d,scheduleWork:p,batchedUpdates:function(e,t){var n=ye;ye=!0;try{return e(t)}finally{(ye=n)||fe||w(1,null)}},unbatchedUpdates:function(e){if(ye&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ye;ye=!0;try{e:{var n=q;q=1;try{var i=e();break e}finally{q=n}i=void 0}return i}finally{ye=t,fe&&r("187"),w(1,null)}},deferredUpdates:function(e){var t=q;q=f();try{return e()}finally{q=t}}}}function _t(e){function t(e){return e=Ee(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=Dt(e);var i=e.computeAsyncExpiration,o=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new ot(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,l){var s=t.current;if(n){n=n._reactInternalFiber;var u;e:{for(2===Ce(n)&&2===n.tag||r("170"),u=n;3!==u.tag;){if(Je(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}(u=u.return)||r("171")}u=u.stateNode.context}n=Je(n)?nt(n,u):u}else n=Ln;null===t.context?t.context=n:t.pendingContext=n,t=l,t=void 0===t?null:t,l=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?i():o(s),bt(s,{expirationTime:l,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(s,l)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Me(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(xn({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function It(e,t,n){var r=3n||r.hasOverloadedBooleanValue&&!1===n?Wt(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(i=r.attributeNamespace)?e.setAttributeNS(i,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Ht(e,t,o(t,n)?n:null)}function Ht(e,t,n){Rt(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Wt(e,t){var n=a(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function zt(e,t){var n=t.value,r=t.checked;return xn({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function Ut(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Vt(e,t){null!=(t=t.checked)&&Ft(e,"checked",t)}function Bt(e,t){Vt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function jt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function Kt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}function Gt(e,t){return e=xn({children:void 0},t),(t=Kt(t.children))&&(e.children=t),e}function $t(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Qt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Zt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Jt(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 en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Zi.hasOwnProperty(i)&&Zi[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function rn(e,t,n){t&&(eo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!=typeof t.style&&r("62",n()))}function on(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 an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ie(e);t=Xn[t];for(var r=0;r<\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function sn(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function un(e,t,n,r){var i=on(t,n);switch(t){case"iframe":case"object":Oe("topLoad","load",e);var o=n;break;case"video":case"audio":for(o in ro)ro.hasOwnProperty(o)&&Oe(o,ro[o],e);o=n;break;case"source":Oe("topError","error",e),o=n;break;case"img":case"image":Oe("topError","error",e),Oe("topLoad","load",e),o=n;break;case"form":Oe("topReset","reset",e),Oe("topSubmit","submit",e),o=n;break;case"details":Oe("topToggle","toggle",e),o=n;break;case"input":Ut(e,n),o=zt(e,n),Oe("topInvalid","invalid",e),an(r,"onChange");break;case"option":o=Gt(e,n);break;case"select":qt(e,n),o=xn({},n,{value:void 0}),Oe("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":Xt(e,n),o=Yt(e,n),Oe("topInvalid","invalid",e),an(r,"onChange");break;default:o=n}rn(t,o,no);var a,l=o;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?nn(e,s,no):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Qi(e,s):"children"===a?"string"==typeof s?("textarea"!==t||""!==s)&&tn(e,s):"number"==typeof s&&tn(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?null!=s&&an(r,a):i?Ht(e,a,s):null!=s&&Ft(e,a,s))}switch(t){case"input":oe(e),jt(e,n);break;case"textarea":oe(e),Zt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?$t(e,!!n.multiple,t,!1):null!=n.defaultValue&&$t(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Cn)}}function cn(e,t,n,r,i){var o=null;switch(t){case"input":n=zt(e,n),r=zt(e,r),o=[];break;case"option":n=Gt(e,n),r=Gt(e,r),o=[];break;case"select":n=xn({},n,{value:void 0}),r=xn({},r,{value:void 0}),o=[];break;case"textarea":n=Yt(e,n),r=Yt(e,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=Cn)}rn(t,r,no);var a,l;e=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(l in t=n[a])t.hasOwnProperty(l)&&(e||(e={}),e[l]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(t=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&s!==t&&(null!=s||null!=t))if("style"===a)if(t){for(l in t)!t.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(e||(e={}),e[l]="");for(l in s)s.hasOwnProperty(l)&&t[l]!==s[l]&&(e||(e={}),e[l]=s[l])}else e||(o||(o=[]),o.push(a,e)),e=s;else"dangerouslySetInnerHTML"===a?(s=s?s.__html:void 0,t=t?t.__html:void 0,null!=s&&t!==s&&(o=o||[]).push(a,""+s)):"children"===a?t===s||"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(a,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(Yn.hasOwnProperty(a)?(null!=s&&an(i,a),o||t===s||(o=[])):(o=o||[]).push(a,s))}return e&&(o=o||[]).push("style",e),o}function fn(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&Vt(e,i),on(n,r),r=on(n,i);for(var o=0;o=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",l),a.hasOwnProperty(l)&&(u.attributeName=a[l]),o.hasOwnProperty(l)&&(u.attributeNamespace=o[l]),e.hasOwnProperty(l)&&(u.mutationMethod=e[l]),Pn[l]=u}}},Pn={},An=On,Dn=An.MUST_USE_PROPERTY,_n=An.HAS_BOOLEAN_VALUE,In=An.HAS_NUMERIC_VALUE,Rn=An.HAS_POSITIVE_NUMERIC_VALUE,Fn=An.HAS_OVERLOADED_BOOLEAN_VALUE,Hn=An.HAS_STRING_BOOLEAN_VALUE,Wn={Properties:{allowFullScreen:_n,async:_n,autoFocus:_n,autoPlay:_n,capture:Fn,checked:Dn|_n,cols:Rn,contentEditable:Hn,controls:_n,default:_n,defer:_n,disabled:_n,download:Fn,draggable:Hn,formNoValidate:_n,hidden:_n,loop:_n,multiple:Dn|_n,muted:Dn|_n,noValidate:_n,open:_n,playsInline:_n,readOnly:_n,required:_n,reversed:_n,rows:Rn,rowSpan:In,scoped:_n,seamless:_n,selected:Dn|_n,size:Rn,start:In,span:Rn,spellCheck:Hn,style:0,tabIndex:0,itemScope:_n,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Hn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},zn=An.HAS_STRING_BOOLEAN_VALUE,Un={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Vn={Properties:{autoReverse:zn,externalResourcesRequired:zn,preserveAlpha:zn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Un.xlink,xlinkArcrole:Un.xlink,xlinkHref:Un.xlink,xlinkRole:Un.xlink,xlinkShow:Un.xlink,xlinkTitle:Un.xlink,xlinkType:Un.xlink,xmlBase:Un.xml,xmlLang:Un.xml,xmlSpace:Un.xml}},Bn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Bn,l);Vn.Properties[t]=0,Vn.DOMAttributeNames[t]=e}),An.injectDOMPropertyConfig(Wn),An.injectDOMPropertyConfig(Vn);var jn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&r("197"),u=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,i,o,a,l,s){u.apply(jn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,l,u){if(jn.invokeGuardedCallback.apply(this,arguments),jn.hasCaughtError()){var s=jn.clearCaughtError();jn._hasRethrowError||(jn._hasRethrowError=!0,jn._rethrowError=s)}},rethrowCaughtError:function(){return s.apply(jn,arguments)},hasCaughtError:function(){return jn._hasCaughtError},clearCaughtError:function(){if(jn._hasCaughtError){var e=jn._caughtError;return jn._caughtError=null,jn._hasCaughtError=!1,e}r("198")}},Kn=null,Gn={},$n=[],qn={},Yn={},Xn={},Qn=Object.freeze({plugins:$n,eventNameDispatchConfigs:qn,registrationNameModules:Yn,registrationNameDependencies:Xn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:p}),Zn=null,Jn=null,er=null,tr=null,nr={injectEventPluginOrder:d,injectEventPluginsByName:p},rr=Object.freeze({injection:nr,getListener:w,extractEvents:x,enqueueEvents:C,processEventQueue:k}),ir=Math.random().toString(36).slice(2),or="__reactInternalInstance$"+ir,ar="__reactEventHandlers$"+ir,lr=Object.freeze({precacheFiberNode:function(e,t){t[or]=e},getClosestInstanceFromNode:S,getInstanceFromNode:function(e){return e=e[or],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:T,getFiberCurrentPropsFromNode:E,updateFiberProps:function(e,t){e[ar]=t}}),ur=Object.freeze({accumulateTwoPhaseDispatches:_,accumulateTwoPhaseDispatchesSkipTarget:function(e){m(e,P)},accumulateEnterLeaveDispatches:I,accumulateDirectDispatches:function(e){m(e,D)}}),sr=null,cr={_root:null,_startText:null,_fallbackText:null},fr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),dr={type:null,target:null,currentTarget:Cn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};xn(W.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Cn.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Cn.thatReturnsTrue)},persist:function(){this.isPersistent=Cn.thatReturnsTrue},isPersistent:Cn.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=parseInt(vr.version(),10))}var yr,br=mr,wr=wn.canUseDOM&&(!hr||gr&&8=gr),xr=String.fromCharCode(32),Cr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},kr=!1,Sr=!1,Tr={eventTypes:Cr,extractEvents:function(e,t,n,r){var i;if(hr)e:{switch(e){case"topCompositionStart":var o=Cr.compositionStart;break e;case"topCompositionEnd":o=Cr.compositionEnd;break e;case"topCompositionUpdate":o=Cr.compositionUpdate;break e}o=void 0}else Sr?K(e,n)&&(o=Cr.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(o=Cr.compositionStart);return o?(wr&&(Sr||o!==Cr.compositionStart?o===Cr.compositionEnd&&Sr&&(i=F()):(cr._root=r,cr._startText=H(),Sr=!0)),o=B.getPooled(o,t,n,r),i?o.data=i:null!==(i=G(n))&&(o.data=i),_(o),i=o):i=null,(e=br?$(e,n):q(e,n))?(t=j.getPooled(Cr.beforeInput,t,n,r),t.data=e,_(t)):t=null,[i,t]}},Er=null,Mr=null,Lr=null,Nr={injectFiberControlledHostComponent:function(e){Er=e}},Or=Object.freeze({injection:Nr,enqueueStateRestore:X,restoreStateIfNeeded:Q}),Pr=!1,Ar={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};wn.canUseDOM&&(yr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Dr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},_r=null,Ir=null,Rr=!1;wn.canUseDOM&&(Rr=ne("input")&&(!document.documentMode||9=document.documentMode,ei={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ti=null,ni=null,ri=null,ii=!1,oi={eventTypes:ei,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Ie(o),i=Xn.onSelect;for(var a=0;a=Ui-e){if(!(-1!==Wi&&Wi<=e))return void(zi||(zi=!0,requestAnimationFrame(Ki)));Ri.didTimeout=!0}else Ri.didTimeout=!1;Wi=-1,e=Fi,Fi=null,null!==e&&e(Ri)}},!1);var Ki=function(e){zi=!1;var t=e-Ui+Bi;tt&&(t=8),Bi=t"+t+"",t=Xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Zi={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,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},Ji=["Webkit","ms","Moz","O"];Object.keys(Zi).forEach(function(e){Ji.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zi[t]=Zi[e]})});var eo=xn({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}),to=Yi.html,no=Cn.thatReturns(""),ro={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},io=Object.freeze({createElement:ln,createTextNode:un,setInitialProperties:sn,diffProperties:cn,updateProperties:fn,diffHydratedProperties:dn,diffHydratedText:pn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Bt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;tr&&(i=r,r=e,e=i),i=Fe(n,e);var o=Fe(n,r);if(i&&o&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(Mn(n),n=0;nI.length&&I.push(e)}function p(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case C:case k:case S:case T:a=!0}}if(a)return n(i,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l=s.hasBooleanValue+s.hasNumericValue+s.hasOverloadedBooleanValue||r("50",l),a.hasOwnProperty(l)&&(s.attributeName=a[l]),o.hasOwnProperty(l)&&(s.attributeNamespace=o[l]),e.hasOwnProperty(l)&&(s.mutationMethod=e[l]),Pn[l]=s}}},Pn={},An=On,Dn=An.MUST_USE_PROPERTY,_n=An.HAS_BOOLEAN_VALUE,In=An.HAS_NUMERIC_VALUE,Rn=An.HAS_POSITIVE_NUMERIC_VALUE,Fn=An.HAS_OVERLOADED_BOOLEAN_VALUE,Hn=An.HAS_STRING_BOOLEAN_VALUE,Wn={Properties:{allowFullScreen:_n,async:_n,autoFocus:_n,autoPlay:_n,capture:Fn,checked:Dn|_n,cols:Rn,contentEditable:Hn,controls:_n,default:_n,defer:_n,disabled:_n,download:Fn,draggable:Hn,formNoValidate:_n,hidden:_n,loop:_n,multiple:Dn|_n,muted:Dn|_n,noValidate:_n,open:_n,playsInline:_n,readOnly:_n,required:_n,reversed:_n,rows:Rn,rowSpan:In,scoped:_n,seamless:_n,selected:Dn|_n,size:Rn,start:In,span:Rn,spellCheck:Hn,style:0,tabIndex:0,itemScope:_n,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Hn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},zn=An.HAS_STRING_BOOLEAN_VALUE,Un={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Vn={Properties:{autoReverse:zn,externalResourcesRequired:zn,preserveAlpha:zn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Un.xlink,xlinkArcrole:Un.xlink,xlinkHref:Un.xlink,xlinkRole:Un.xlink,xlinkShow:Un.xlink,xlinkTitle:Un.xlink,xlinkType:Un.xlink,xmlBase:Un.xml,xmlLang:Un.xml,xmlSpace:Un.xml}},Bn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Bn,l);Vn.Properties[t]=0,Vn.DOMAttributeNames[t]=e}),An.injectDOMPropertyConfig(Wn),An.injectDOMPropertyConfig(Vn);var jn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&r("197"),s=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,i,o,a,l,u){s.apply(jn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,l,s){if(jn.invokeGuardedCallback.apply(this,arguments),jn.hasCaughtError()){var u=jn.clearCaughtError();jn._hasRethrowError||(jn._hasRethrowError=!0,jn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(jn,arguments)},hasCaughtError:function(){return jn._hasCaughtError},clearCaughtError:function(){if(jn._hasCaughtError){var e=jn._caughtError;return jn._caughtError=null,jn._hasCaughtError=!1,e}r("198")}},Kn=null,Gn={},$n=[],qn={},Yn={},Xn={},Qn=Object.freeze({plugins:$n,eventNameDispatchConfigs:qn,registrationNameModules:Yn,registrationNameDependencies:Xn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:p}),Zn=null,Jn=null,er=null,tr=null,nr={injectEventPluginOrder:d,injectEventPluginsByName:p},rr=Object.freeze({injection:nr,getListener:w,extractEvents:x,enqueueEvents:C,processEventQueue:k}),ir=Math.random().toString(36).slice(2),or="__reactInternalInstance$"+ir,ar="__reactEventHandlers$"+ir,lr=Object.freeze({precacheFiberNode:function(e,t){t[or]=e},getClosestInstanceFromNode:S,getInstanceFromNode:function(e){return e=e[or],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:T,getFiberCurrentPropsFromNode:E,updateFiberProps:function(e,t){e[ar]=t}}),sr=Object.freeze({accumulateTwoPhaseDispatches:_,accumulateTwoPhaseDispatchesSkipTarget:function(e){m(e,P)},accumulateEnterLeaveDispatches:I,accumulateDirectDispatches:function(e){m(e,D)}}),ur=null,cr={_root:null,_startText:null,_fallbackText:null},fr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),dr={type:null,target:null,currentTarget:Cn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};xn(W.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Cn.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Cn.thatReturnsTrue)},persist:function(){this.isPersistent=Cn.thatReturnsTrue},isPersistent:Cn.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=parseInt(vr.version(),10))}var yr,br=mr,wr=wn.canUseDOM&&(!hr||gr&&8=gr),xr=String.fromCharCode(32),Cr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},kr=!1,Sr=!1,Tr={eventTypes:Cr,extractEvents:function(e,t,n,r){var i;if(hr)e:{switch(e){case"topCompositionStart":var o=Cr.compositionStart;break e;case"topCompositionEnd":o=Cr.compositionEnd;break e;case"topCompositionUpdate":o=Cr.compositionUpdate;break e}o=void 0}else Sr?K(e,n)&&(o=Cr.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(o=Cr.compositionStart);return o?(wr&&(Sr||o!==Cr.compositionStart?o===Cr.compositionEnd&&Sr&&(i=F()):(cr._root=r,cr._startText=H(),Sr=!0)),o=B.getPooled(o,t,n,r),i?o.data=i:null!==(i=G(n))&&(o.data=i),_(o),i=o):i=null,(e=br?$(e,n):q(e,n))?(t=j.getPooled(Cr.beforeInput,t,n,r),t.data=e,_(t)):t=null,[i,t]}},Er=null,Mr=null,Lr=null,Nr={injectFiberControlledHostComponent:function(e){Er=e}},Or=Object.freeze({injection:Nr,enqueueStateRestore:X,restoreStateIfNeeded:Q}),Pr=!1,Ar={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};wn.canUseDOM&&(yr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Dr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},_r=null,Ir=null,Rr=!1;wn.canUseDOM&&(Rr=ne("input")&&(!document.documentMode||9=document.documentMode,ei={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ti=null,ni=null,ri=null,ii=!1,oi={eventTypes:ei,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Ie(o),i=Xn.onSelect;for(var a=0;a=Ui-e){if(!(-1!==Wi&&Wi<=e))return void(zi||(zi=!0,requestAnimationFrame(Ki)));Ri.didTimeout=!0}else Ri.didTimeout=!1;Wi=-1,e=Fi,Fi=null,null!==e&&e(Ri)}},!1);var Ki=function(e){zi=!1;var t=e-Ui+Bi;tt&&(t=8),Bi=t"+t+"",t=Xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Zi={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,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},Ji=["Webkit","ms","Moz","O"];Object.keys(Zi).forEach(function(e){Ji.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zi[t]=Zi[e]})});var eo=xn({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}),to=Yi.html,no=Cn.thatReturns(""),ro={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},io=Object.freeze({createElement:ln,createTextNode:sn,setInitialProperties:un,diffProperties:cn,updateProperties:fn,diffHydratedProperties:dn,diffHydratedText:pn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Bt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;tr&&(i=r,r=e,e=i),i=Fe(n,e);var o=Fe(n,r);if(i&&o&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(Mn(n),n=0;nI.length&&I.push(e)}function p(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case C:case k:case S:case T:a=!0}}if(a)return n(i,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l Error(error) + | ("Failure", error) => Protocol.Error(error) | (conversion, outText) => switch (conversion |> Js.String.split("to")) { | [|inLang, outLang|] when Protocol.languageOfString(outLang) != RefmtShared.UnknownLang => - Ok( + Protocol.Ok( Protocol.Refmt.{ outText, inLang: Protocol.languageOfString(inLang), outLang: Protocol.languageOfString(outLang) } ) - | _ => Error(outText) + | _ => Protocol.Error(outText) }; }; diff --git a/src/extension/common/protocol.re b/src/extension/common/protocol.re index 7dd683e..41521e5 100644 --- a/src/extension/common/protocol.re +++ b/src/extension/common/protocol.re @@ -1,7 +1,9 @@ -open Rebase; - open Common; +type result('a, 'e) = + | Ok('a) + | Error('e); + type language = RefmtShared.language; type codeType = RefmtShared.codeType; @@ -122,7 +124,7 @@ module Storage = { let queryDisabled = (callback: bool => unit) => Chrome.Storage.Local.get( "disabled", - (response) => response##disabled |> Js.Undefined.to_opt |> Option.getOr(false) |> callback + (response) => response##disabled |> Js.Undefined.toOption |> Js.Option.getWithDefault(false) |> callback ); let setDisabled = (value: bool) => Chrome.Storage.Local.set({"disabled": value}); let onDisabledChanged = (callback: bool => unit) => diff --git a/src/extension/common/vendor/codeMirror.re b/src/extension/common/vendor/codeMirror.re index bb1afd7..55609b0 100644 --- a/src/extension/common/vendor/codeMirror.re +++ b/src/extension/common/vendor/codeMirror.re @@ -20,14 +20,14 @@ let make = | Some(true) => Js.true_ | Some(false) | None => Js.false_ }, - "style": Js.Undefined.from_opt(style), - "value": Js.Undefined.from_opt(value), + "style": Js.Undefined.fromOption(style), + "value": Js.Undefined.fromOption(value), "onBeforeChange": (_editor, _data, value) => switch (onChange) { | Some(onChange) => onChange(value) | None => () }, - "editorDidMount": Js.Undefined.from_opt(editorDidMount), - "options": Js.Undefined.from_opt(options) + "editorDidMount": Js.Undefined.fromOption(editorDidMount), + "options": Js.Undefined.fromOption(options) }, children ); diff --git a/src/extension/content/convert/detect.re b/src/extension/content/convert/detect.re index b1021f4..b366c06 100644 --- a/src/extension/content/convert/detect.re +++ b/src/extension/content/convert/detect.re @@ -63,7 +63,7 @@ let isWhitelisted = () => getWhitelist() |> List.mem(getSignificantUrl()); let isBlacklisted = () => getBlacklist() |> List.mem(getSignificantUrl()); let shouldConvert = () => { - let cached: option(bool) = [%raw "window._rtShouldConvert"] |> Js.Undefined.to_opt; + let cached: option(bool) = [%raw "window._rtShouldConvert"] |> Js.Undefined.toOption; switch cached { | Some(shouldConvert) => shouldConvert | None => diff --git a/src/extension/content/convert/retrieve.re b/src/extension/content/convert/retrieve.re index f15d58d..4eba00f 100644 --- a/src/extension/content/convert/retrieve.re +++ b/src/extension/content/convert/retrieve.re @@ -15,12 +15,12 @@ type listing = { }; let getTypeTable = (pre) => - switch (Js.Null.to_opt(Element.nextElementSibling(pre))) { + switch (Js.Null.toOption(Element.nextElementSibling(pre))) { | None => None | Some(el) => if (Js.to_bool(DOMTokenList.contains(Element.classList(el), "typetable"))) { let text = Element.innerText(el); - switch (Js.Null.to_opt(Element.nextSibling(el))) { + switch (Js.Null.toOption(Element.nextSibling(el))) { | None => Some({el, text, remove: () => Element.remove(el)}) | Some(next) => if (Node.nodeType(next) == Node._TEXT_NODE) { diff --git a/src/extension/content/convertPage.re b/src/extension/content/convertPage.re index d3946d2..a968193 100644 --- a/src/extension/content/convertPage.re +++ b/src/extension/content/convertPage.re @@ -1,5 +1,3 @@ -open Rebase; - open LocalDom; open Common; @@ -18,7 +16,7 @@ let swapStyleSheets = (_) => { }; let readjustViewport = () => - if (! Str.isEmpty(Location.hash)) { + if (! (Location.hash == "")) { [%bs.raw {| window.location.href = window.location.href |}] }; @@ -31,8 +29,8 @@ let doListing = (mode, state, listing) => { text, (response) => { switch response { - | Error(_) => () /* TODO */ - | Ok({outText}) => Replace.replaceListing(els, outText, replace) + | Protocol.Error(_) => () /* TODO */ + | Protocol.Ok({outText}) => Replace.replaceListing(els, outText, replace) }; /* we're in an async callback, so keep track of when we're finished by keeping count */ state.remaining = state.remaining - 1; diff --git a/src/extension/page.re b/src/extension/page.re index 4ece061..f8ff339 100644 --- a/src/extension/page.re +++ b/src/extension/page.re @@ -1,7 +1,5 @@ open LocalDom; -open Rebase; - let onOpen: string => unit = [%bs.raw {| function (hash) { @@ -28,8 +26,8 @@ let refmt = ~outLang, (error) => switch error { - | Error(error) => cb(error, RefmtShared.UnknownLang, RefmtShared.UnknownLang) - | Ok({outText, inLang, outLang}) => cb(outText, inLang, outLang) + | Protocol.Error(error) => cb(error, RefmtShared.UnknownLang, RefmtShared.UnknownLang) + | Protocol.Ok({outText, inLang, outLang}) => cb(outText, inLang, outLang) } ); Protocol.Storage.setLatestInput(input) diff --git a/src/extension/popup.re b/src/extension/popup.re index b0b631f..b36a9da 100644 --- a/src/extension/popup.re +++ b/src/extension/popup.re @@ -1,20 +1,25 @@ -open Rebase; - open Core; open LocalDom; +let mapOrElse = (resolve, reject, item) => + switch (item) { + | Some(res) => resolve(res) + | None => reject() + }; + let getSelection = () => Promise.make( (resolve, reject) => Chrome.Tabs.executeScript( {"code": "window.getSelection().toString()"}, - (maybeMaybeArray) => + (maybeMaybeArray) => { maybeMaybeArray |> Js.Null_undefined.to_opt - |> Option.andThen((maybeArray) => Js.Array.findi((_, index) => index === 0, maybeArray)) - |> Option.andThen((s) => Str.isEmpty(s) ? None : Some(s)) - |> Option.mapOrElse(resolve, reject) + |> Js.Option.andThen([@bs](maybeArray) => Js.Array.findi((_, index) => index === 0, maybeArray)) + |> Js.Option.andThen([@bs](s) => s == "" ? None : Some(s)) + |> mapOrElse(resolve, reject); + } ) ); @@ -22,7 +27,7 @@ let getLatestInput = () => Promise.make( (resolve, reject) => Protocol.Storage.queryLatestInput( - (maybeInput) => maybeInput |> Option.mapOrElse(resolve, reject) + (maybeInput) => maybeInput |> mapOrElse(resolve, reject) ) ); diff --git a/src/extension/popup/popupCommon.re b/src/extension/popup/popupCommon.re index 15fccad..c4ed090 100644 --- a/src/extension/popup/popupCommon.re +++ b/src/extension/popup/popupCommon.re @@ -1,5 +1,3 @@ -open Rebase; - open Core; [%bs.raw {|require('../../../../../src/popup.html')|}]; @@ -32,7 +30,7 @@ let generateShareableLink = (text) => "https://reasonml.github.io/reason-tools/p let getInputFromUrl = () => { let text = LocalDom.Location.hash |> Js.String.sliceToEnd(~from=1) |> Util.atob; - if (Str.isEmpty(text)) { + if (text == "") { Promise.reject() } else { Promise.resolve(text) diff --git a/src/refmt/refmt2.re b/src/refmt/refmt2.re index 79e68fe..daa3503 100644 --- a/src/refmt/refmt2.re +++ b/src/refmt/refmt2.re @@ -1,4 +1,3 @@ -open Rebase; open RefmtShared; [@bs.module "../../../../src/refmt/refmt.js"] external parseREEx : string => ast = "parseRE"; diff --git a/yarn.lock b/yarn.lock index d8a0509..8f81dd2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -252,7 +252,7 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" -bs-platform@^2.1.0: +bs-platform@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-2.2.1.tgz#e22b82143a43a10630d7b2040aab87648b12190c" @@ -1575,10 +1575,6 @@ reason-react@^0.3.0: react ">=15.0.0 || >=16.0.0" react-dom ">=15.0.0 || >=16.0.0" -rebase@glennsl/rebase#v0.0.2: - version "0.0.1" - resolved "https://codeload.github.com/glennsl/rebase/tar.gz/a532b99a2978f8cbc4336344dcbc818d567b2149" - regex-cache@^0.4.2: version "0.4.4" resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd"