From 35a20eb5f297f8e92f7d8aa0e7be6244d9f6b436 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Tue, 3 Dec 2019 10:47:51 +0100 Subject: [PATCH] fix(explorer): Security update for JS dependencies --- assets/explorer/.babelrc | 3 +- assets/explorer/dist/bundle.min.js | 37 +- assets/explorer/package.json | 10 +- assets/explorer/webpack.config.babel.js | 37 +- assets/explorer/yarn.lock | 2317 +++++++++++++++-------- 5 files changed, 1540 insertions(+), 864 deletions(-) diff --git a/assets/explorer/.babelrc b/assets/explorer/.babelrc index 9b7d435ad..532f844b0 100644 --- a/assets/explorer/.babelrc +++ b/assets/explorer/.babelrc @@ -1,3 +1,4 @@ { - "presets": ["es2015", "stage-0", "react"] + "presets": ["es2015", "stage-0", "react"], + "plugins": ["syntax-dynamic-import"] } diff --git a/assets/explorer/dist/bundle.min.js b/assets/explorer/dist/bundle.min.js index 7f367c439..f1faa121a 100644 --- a/assets/explorer/dist/bundle.min.js +++ b/assets/explorer/dist/bundle.min.js @@ -1 +1,36 @@ -!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.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=134)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var i=n(152);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=n(79);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=n(76);Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return a.printError}});var u=n(153);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return u.formatError}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return u(e)||l(e)||f(e)||d(e)||m(e)||g(e)||b(e)||E(e)}function a(e){return o(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL type."),e}function u(e){return(0,Z.default)(e,se)}function s(e){return u(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Scalar type."),e}function l(e){return(0,Z.default)(e,le)}function c(e){return l(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Object type."),e}function f(e){return(0,Z.default)(e,ce)}function p(e){return f(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Interface type."),e}function d(e){return(0,Z.default)(e,fe)}function h(e){return d(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Union type."),e}function m(e){return(0,Z.default)(e,pe)}function v(e){return m(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Enum type."),e}function g(e){return(0,Z.default)(e,de)}function y(e){return g(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Input Object type."),e}function b(e){return(0,Z.default)(e,A)}function T(e){return b(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL List type."),e}function E(e){return(0,Z.default)(e,P)}function _(e){return E(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL Non-Null type."),e}function k(e){return u(e)||m(e)||g(e)||F(e)&&k(e.ofType)}function C(e){return k(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL input type."),e}function N(e){return u(e)||l(e)||f(e)||d(e)||m(e)||F(e)&&N(e.ofType)}function S(e){return N(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL output type."),e}function w(e){return u(e)||m(e)}function O(e){return w(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL leaf type."),e}function L(e){return l(e)||f(e)||d(e)}function x(e){return L(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL composite type."),e}function D(e){return f(e)||d(e)}function I(e){return D(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL abstract type."),e}function A(e){if(!(this instanceof A))return new A(e);this.ofType=a(e)}function P(e){if(!(this instanceof P))return new P(e);this.ofType=j(e)}function F(e){return b(e)||E(e)}function M(e){return F(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL wrapping type."),e}function R(e){return o(e)&&!E(e)}function j(e){return R(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL nullable type."),e}function V(e){if(e)return E(e)?e.ofType:e}function U(e){return u(e)||l(e)||f(e)||d(e)||m(e)||g(e)}function G(e){return U(e)||(0,te.default)(0,"Expected "+e+" to be a GraphQL named type."),e}function B(e){if(e){for(var t=e;F(t);)t=t.ofType;return t}}function Q(e){return"function"==typeof e?e():e}function q(e,t){var n=Q(t)||[];return Array.isArray(n)||(0,te.default)(0,e.name+" interfaces must be an Array or a function which returns an Array."),n}function K(e,t){var n=Q(t)||{};H(n)||(0,te.default)(0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var r=Object.create(null);return Object.keys(n).forEach(function(t){var i=n[t];H(i)||(0,te.default)(0,e.name+"."+t+" field config must be an object"),i.hasOwnProperty("isDeprecated")&&(0,te.default)(0,e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var o=J({},i,{isDeprecated:!!i.deprecationReason,name:t});z(o.resolve)||(0,te.default)(0,e.name+"."+t+" field resolver must be a function if provided, but got: "+o.resolve+".");var a=i.args;a?(H(a)||(0,te.default)(0,e.name+"."+t+" args must be an object with argument names as keys."),o.args=Object.keys(a).map(function(e){var t=a[e];return{name:e,description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,astNode:t.astNode}})):o.args=[],r[t]=o}),r}function H(e){return e&&"object"===(void 0===e?"undefined":$(e))&&!Array.isArray(e)}function z(e){return null==e||"function"==typeof e}function W(e,t){var n=Q(t)||[];return Array.isArray(n)||(0,te.default)(0,"Must provide Array of types or a function which returns such an array for Union "+e.name+"."),n}function Y(e,t){return H(t)||(0,te.default)(0,e.name+" values must be an object with value names as keys."),Object.keys(t).map(function(n){var r=t[n];return H(r)||(0,te.default)(0,e.name+"."+n+' must refer to an object with a "value" key representing an internal value but got: '+r+"."),r.hasOwnProperty("isDeprecated")&&(0,te.default)(0,e.name+"."+n+' should provide "deprecationReason" instead of "isDeprecated".'),{name:n,description:r.description,isDeprecated:!!r.deprecationReason,deprecationReason:r.deprecationReason,astNode:r.astNode,value:r.hasOwnProperty("value")?r.value:n}})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isType=o,t.assertType=a,t.isScalarType=u,t.assertScalarType=s,t.isObjectType=l,t.assertObjectType=c,t.isInterfaceType=f,t.assertInterfaceType=p,t.isUnionType=d,t.assertUnionType=h,t.isEnumType=m,t.assertEnumType=v,t.isInputObjectType=g,t.assertInputObjectType=y,t.isListType=b,t.assertListType=T,t.isNonNullType=E,t.assertNonNullType=_,t.isInputType=k,t.assertInputType=C,t.isOutputType=N,t.assertOutputType=S,t.isLeafType=w,t.assertLeafType=O,t.isCompositeType=L,t.assertCompositeType=x,t.isAbstractType=D,t.assertAbstractType=I,t.GraphQLList=A,t.GraphQLNonNull=P,t.isWrappingType=F,t.assertWrappingType=M,t.isNullableType=R,t.assertNullableType=j,t.getNullableType=V,t.isNamedType=U,t.assertNamedType=G,t.getNamedType=B;var X=n(50),Z=r(X),ee=n(9),te=r(ee),ne=n(11),re=r(ne),ie=n(6),oe=n(75),ae=A.prototype;ae.toString=ae.toJSON=ae.inspect=function(){return"["+this.ofType+"]"};var ue=P.prototype;ue.toString=ue.toJSON=ue.inspect=function(){return this.ofType+"!"};var se=t.GraphQLScalarType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this._scalarConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name."),"function"!=typeof t.serialize&&(0,te.default)(0,this.name+' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'),(t.parseValue||t.parseLiteral)&&("function"!=typeof t.parseValue||"function"!=typeof t.parseLiteral)&&(0,te.default)(0,this.name+' must provide both "parseValue" and "parseLiteral" functions.')}return e.prototype.serialize=function(e){return(0,this._scalarConfig.serialize)(e)},e.prototype.parseValue=function(e){var t=this._scalarConfig.parseValue;if(!(0,re.default)(e))return t?t(e):e},e.prototype.parseLiteral=function(e,t){var n=this._scalarConfig.parseLiteral;return n?n(e,t):(0,oe.valueFromASTUntyped)(e,t)},e.prototype.toString=function(){return this.name},e}();se.prototype.toJSON=se.prototype.inspect=se.prototype.toString;var le=t.GraphQLObjectType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this.isTypeOf=t.isTypeOf,this._typeConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name."),t.isTypeOf&&"function"!=typeof t.isTypeOf&&(0,te.default)(0,this.name+' must provide "isTypeOf" as a function.')}return e.prototype.getFields=function(){return this._fields||(this._fields=K(this,this._typeConfig.fields))},e.prototype.getInterfaces=function(){return this._interfaces||(this._interfaces=q(this,this._typeConfig.interfaces))},e.prototype.toString=function(){return this.name},e}();le.prototype.toJSON=le.prototype.inspect=le.prototype.toString;var ce=t.GraphQLInterfaceType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this.resolveType=t.resolveType,this._typeConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name."),t.resolveType&&"function"!=typeof t.resolveType&&(0,te.default)(0,this.name+' must provide "resolveType" as a function.')}return e.prototype.getFields=function(){return this._fields||(this._fields=K(this,this._typeConfig.fields))},e.prototype.toString=function(){return this.name},e}();ce.prototype.toJSON=ce.prototype.inspect=ce.prototype.toString;var fe=t.GraphQLUnionType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this.resolveType=t.resolveType,this._typeConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name."),t.resolveType&&"function"!=typeof t.resolveType&&(0,te.default)(0,this.name+' must provide "resolveType" as a function.')}return e.prototype.getTypes=function(){return this._types||(this._types=W(this,this._typeConfig.types))},e.prototype.toString=function(){return this.name},e}();fe.prototype.toJSON=fe.prototype.inspect=fe.prototype.toString;var pe=t.GraphQLEnumType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this._enumConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name.")}return e.prototype.getValues=function(){return this._values||(this._values=Y(this,this._enumConfig.values))},e.prototype.getValue=function(e){return this._getNameLookup()[e]},e.prototype.serialize=function(e){var t=this._getValueLookup().get(e);if(t)return t.name},e.prototype.parseValue=function(e){if("string"==typeof e){var t=this._getNameLookup()[e];if(t)return t.value}},e.prototype.parseLiteral=function(e){if(e.kind===ie.Kind.ENUM){var t=this._getNameLookup()[e.value];if(t)return t.value}},e.prototype._getValueLookup=function(){if(!this._valueLookup){var e=new Map;this.getValues().forEach(function(t){e.set(t.value,t)}),this._valueLookup=e}return this._valueLookup},e.prototype._getNameLookup=function(){if(!this._nameLookup){var e=Object.create(null);this.getValues().forEach(function(t){e[t.name]=t}),this._nameLookup=e}return this._nameLookup},e.prototype.toString=function(){return this.name},e}();pe.prototype.toJSON=pe.prototype.inspect=pe.prototype.toString;var de=t.GraphQLInputObjectType=function(){function e(t){i(this,e),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this._typeConfig=t,"string"!=typeof t.name&&(0,te.default)(0,"Must provide name.")}return e.prototype.getFields=function(){return this._fields||(this._fields=this._defineFieldMap())},e.prototype._defineFieldMap=function(){var e=this,t=Q(this._typeConfig.fields)||{};H(t)||(0,te.default)(0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var n=Object.create(null);return Object.keys(t).forEach(function(r){var i=J({},t[r],{name:r});i.hasOwnProperty("resolve")&&(0,te.default)(0,e.name+"."+r+" field type has a resolve property, but Input Types cannot define resolvers."),n[r]=i}),n},e.prototype.toString=function(){return this.name},e}();de.prototype.toJSON=de.prototype.toString,de.prototype.inspect=de.prototype.toString},function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function o(e,t){return E.call(e,t)}function a(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function u(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return(55296>e||e>57343)&&((64976>e||e>65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&((0>e||e>8)&&(11!==e&&((14>e||e>31)&&((127>e||e>159)&&e<=1114111))))))}function l(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return o(S,t)?S[t]:35===t.charCodeAt(0)&&N.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),s(n))?l(n):e}function f(e){return 0>e.indexOf("\\")?e:e.replace(_,"$1")}function p(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(C,function(e,t,n){return t||c(e,n)})}function d(e){return L[e]}function h(e){return w.test(e)?e.replace(O,d):e}function m(e){return e.replace(x,"\\$&")}function v(e){switch(e){case 9:case 32:return!0}return!1}function g(e){if(e>=8192&&8202>=e)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(e){return D.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function T(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var E=Object.prototype.hasOwnProperty,_=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,k=/&([a-z#][a-z0-9]{1,31});/gi,C=RegExp(_.source+"|"+k.source,"gi"),N=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,S=n(110),w=/[&<>"]/,O=/[&<>"]/g,L={"&":"&","<":"<",">":">",'"':"""},x=/[.?*+^$[\]\\(){}|-]/g,D=n(64);t.lib={},t.lib.mdurl=n(111),t.lib.ucmicro=n(189),t.assign=a,t.isString=i,t.has=o,t.unescapeMd=f,t.unescapeAll=p,t.isValidEntityCode=s,t.fromCodePoint=l,t.escapeHtml=h,t.arrayReplaceAt=u,t.isSpace=v,t.isWhiteSpace=g,t.isMdAsciiPunct=b,t.isPunctChar=y,t.escapeRE=m,t.normalizeReference=T},function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return 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;t.length>o;++o)i.appendChild(t[o]);return i}function i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function u(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function s(t,n){for(var r=t.split(" "),i=0;r.length>i;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function l(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var u=e.indexOf("\t",o);if(0>u||u>=t)return a+(t-o);a+=u-o,a+=n-a%n,o=u+1}}function p(e,t){for(var n=0;e.length>n;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=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(;e>=Wa.length;)Wa.push(m(Wa)+" ");return Wa[e]}function m(e){return e[e.length-1]}function v(e,t){for(var n=[],r=0;e.length>r;r++)n[r]=t(e[r],r);return n}function g(e,t,n){for(var r=0,i=n(t);e.length>r&&n(e[r])<=i;)r++;e.splice(r,0,t)}function y(){}function b(e,t){var n;return Object.create?n=Object.create(e):(y.prototype=e,n=new y),t&&c(t,n),n}function T(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Ya.test(e))}function E(e,t){return t?!(-1>=t.source.indexOf("\\w")||!T(e))||t.test(e):T(e)}function _(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&$a.test(e)}function C(e,t,n){for(;(0>n?t>0:e.length>t)&&k(e.charAt(t));)t+=n;return t}function N(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=0>r?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function S(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;e.length>o;++o){var a=e[o];(n>a.from&&a.to>t||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 w(e,t,n){var r;Ja=null;for(var i=0;e.length>i;++i){var o=e[i];if(t>o.from&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ja=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ja=i)}return null!=r?r:Ja}function O(e,t){var n=e.order;return null==n&&(n=e.order=Xa(e.text,t)),n}function L(e,t){return e._handlers&&e._handlers[t]||Za}function x(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=p(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function D(e,t){var n=L(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;n.length>i;++i)n[i].apply(null,r)}function I(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),D(e,n||t.type,e,t),j(t)||t.codemirrorIgnore}function A(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;t.length>r;++r)-1==p(n,t[r])&&n.push(t[r])}function P(e,t){return L(e,t).length>0}function F(e){e.prototype.on=function(e,t){eu(this,e,t)},e.prototype.off=function(e,t){x(this,e,t)}}function M(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function R(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function j(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function V(e){M(e),R(e)}function U(e){return e.target||e.srcElement}function G(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Da&&e.ctrlKey&&1==t&&(t=3),t}function B(e){if(null==Ga){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ga=1>=t.offsetWidth&&t.offsetHeight>2&&!(ba&&8>Ta))}var i=Ga?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Q(e){if(null!=Ba)return Ba;var r=n(e,document.createTextNode("AخA")),i=Fa(r,0,1).getBoundingClientRect(),o=Fa(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Ba=3>o.right-i.right)}function q(e){if(null!=ou)return ou;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=Fa(t,0,1).getBoundingClientRect();return ou=Math.abs(i.left-o.left)>1}function K(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),au[e]=t}function H(e,t){uu[e]=t}function z(e){if("string"==typeof e&&uu.hasOwnProperty(e))e=uu[e];else if(e&&"string"==typeof e.name&&uu.hasOwnProperty(e.name)){var t=uu[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 z("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return z("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function W(e,t){t=z(t);var n=au[t.name];if(!n)return W(e,"text/plain");var r=n(e,t);if(su.hasOwnProperty(t.name)){var i=su[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 Y(e,t){c(t,su.hasOwnProperty(e)?su[e]:su[e]={})}function $(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 J(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 X(e,t,n){return!e.startState||e.startState(t,n)}function Z(e,t){if(0>(t-=e.first)||t>=e.size)throw 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(o>t){n=i;break}t-=o}return n.lines[t]}function ee(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function te(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function ne(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function re(e){if(null==e.parent)return null;for(var t=e.parent,n=p(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function ie(e,t){var n=e.first;e:do{for(var r=0;e.children.length>r;++r){var i=e.children[r],o=i.height;if(o>t){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;e.lines.length>a;++a){var u=e.lines[a],s=u.height;if(s>t)break;t-=s}return n+a}function oe(e,t){return t>=e.first&&e.first+e.size>t}function ae(e,t){return e.lineNumberFormatter(t+e.firstLineNumber)+""}function ue(e,t,n){if(void 0===n&&(n=null),!(this instanceof ue))return new ue(e,t,n);this.line=e,this.ch=t,this.sticky=n}function se(e,t){return e.line-t.line||e.ch-t.ch}function le(e,t){return e.sticky==t.sticky&&0==se(e,t)}function ce(e){return ue(e.line,e.ch)}function fe(e,t){return 0>se(e,t)?t:e}function pe(e,t){return 0>se(e,t)?e:t}function de(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function he(e,t){if(e.first>t.line)return ue(e.first,0);var n=e.first+e.size-1;return t.line>n?ue(n,Z(e,n).text.length):me(t,Z(e,t.line).text.length)}function me(e,t){var n=e.ch;return null==n||n>t?ue(e.line,t):0>n?ue(e.line,0):e}function ve(e,t){for(var n=[],r=0;t.length>r;r++)n[r]=he(e,t[r]);return n}function ge(e,t,n,r){var i=[e.state.modeGen],o={};Ne(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,u=0;e.state.overlays.length>u;++u)!function(r){n.baseTokens=i;var u=e.state.overlays[r],s=1,l=0;n.state=!0,Ne(e,t.text,u.mode,n,function(e,t){for(var n=s;e>l;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(u.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;s>n;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ye(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=be(e,re(t)),i=t.text.length>e.options.maxHighlightLength&&$(e.doc.mode,r.state),o=ge(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 be(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new fu(r,!0,t);var o=Se(e,t,n),a=o>r.first&&Z(r,o-1).stateAfter,u=a?fu.fromSaved(r,a,o):new fu(r,X(r.mode),o);return r.iter(o,t,function(n){Te(e,n.text,u);var r=u.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&i.viewTo>r?u.save():null,u.nextLine()}),n&&(r.modeFrontier=u.line),u}function Te(e,t,n,r){var i=e.doc.mode,o=new lu(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Ee(i,n.state);!o.eol();)_e(i,o,n.state),o.start=o.pos}function Ee(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=J(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _e(e,t,n,r){for(var i=0;10>i;i++){r&&(r[0]=J(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw Error("Mode "+e.name+" failed to advance stream.")}function ke(e,t,n,r){var i,o=e.doc,a=o.mode;t=he(o,t);var u,s=Z(o,t.line),l=be(e,t.line,n),c=new lu(s.text,e.options.tabSize,l);for(r&&(u=[]);(r||t.ch>c.pos)&&!c.eol();)c.start=c.pos,i=_e(a,c,l.state),r&&u.push(new pu(c,i,$(o.mode,l.state)));return r?u:new pu(c,i,l.state)}function Ce(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ne(e,t,n,r,i,o,a){var u=n.flattenSpans;null==u&&(u=e.options.flattenSpans);var s,l=0,c=null,f=new lu(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Ce(Ee(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(u=!1,a&&Te(e,t,r,f.pos),f.pos=t.length,s=null):s=Ce(_e(n,f,r.state,p),o),p){var d=p[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!u||c!=s){for(;f.start>l;)l=Math.min(f.start,l+5e3),i(l,c);c=s}f.start=f.pos}for(;f.pos>l;){var h=Math.min(f.pos,l+5e3);i(h,c),l=h}}function Se(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),u=t;u>a;--u){if(o.first>=u)return o.first;var s=Z(o,u-1),l=s.stateAfter;if(l&&(!n||o.modeFrontier>=u+(l instanceof cu?l.lookAhead:0)))return u;var c=f(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=u-1,r=c)}return i}function we(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier>=t-10){for(var n=e.first,r=t-1;r>n;r--){var i=Z(e,r).stateAfter;if(i&&(!(i instanceof cu)||t>r+i.lookAhead)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}function Oe(){du=!0}function Le(){hu=!0}function xe(e,t,n){this.marker=e,this.from=t,this.to=n}function De(e,t){if(e)for(var n=0;e.length>n;++n){var r=e[n];if(r.marker==t)return r}}function Ie(e,t){for(var n,r=0;e.length>r;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ae(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Pe(e,t,n){var r;if(e)for(var i=0;e.length>i;++i){var o=e[i],a=o.marker,u=null==o.from||(a.inclusiveLeft?t>=o.from:t>o.from);if(u||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new xe(a,o.from,s?null:o.to))}}return r}function Fe(e,t,n){var r;if(e)for(var i=0;e.length>i;++i){var o=e[i],a=o.marker,u=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(u||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?t>=o.from:t>o.from);(r||(r=[])).push(new xe(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Me(e,t){if(t.full)return null;var n=oe(e,t.from.line)&&Z(e,t.from.line).markedSpans,r=oe(e,t.to.line)&&Z(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==se(t.from,t.to),u=Pe(n,i,a),s=Fe(r,o,a),l=1==t.text.length,c=m(t.text).length+(l?i:0);if(u)for(var f=0;u.length>f;++f){var p=u[f];if(null==p.to){var d=De(s,p.marker);d?l&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(s)for(var h=0;s.length>h;++h){var v=s[h];if(null!=v.to&&(v.to+=c),null==v.from){var g=De(u,v.marker);g||(v.from=c,l&&(u||(u=[])).push(v))}else v.from+=c,l&&(u||(u=[])).push(v)}u&&(u=Re(u)),s&&s!=u&&(s=Re(s));var y=[u];if(!l){var b,T=t.text.length-2;if(T>0&&u)for(var E=0;u.length>E;++E)null==u[E].to&&(b||(b=[])).push(new xe(u[E].marker,null,null));for(var _=0;T>_;++_)y.push(b);y.push(s)}return y}function Re(e){for(var t=0;e.length>t;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function je(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;e.markedSpans.length>t;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=p(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;r.length>o;++o)for(var a=r[o],u=a.find(0),s=0;i.length>s;++s){var l=i[s];if(se(l.to,u.from)>=0&&0>=se(l.from,u.to)){var c=[s,1],f=se(l.from,u.from),d=se(l.to,u.to);(0>f||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:u.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:u.to,to:l.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Ve(e){var t=e.markedSpans;if(t){for(var n=0;t.length>n;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ue(e,t){if(t){for(var n=0;t.length>n;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ge(e){return e.inclusiveLeft?-1:0}function Be(e){return e.inclusiveRight?1:0}function Qe(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=se(r.from,i.from)||Ge(e)-Ge(t);if(o)return-o;var a=se(r.to,i.to)||Be(e)-Be(t);return a||t.id-e.id}function qe(e,t){var n,r=hu&&e.markedSpans;if(r)for(var i=void 0,o=0;r.length>o;++o)i=r[o],!i.marker.collapsed||null!=(t?i.from:i.to)||n&&Qe(n,i.marker)>=0||(n=i.marker);return n}function Ke(e){return qe(e,!0)}function He(e){return qe(e,!1)}function ze(e,t){var n,r=hu&&e.markedSpans;if(r)for(var i=0;r.length>i;++i){var o=r[i];!o.marker.collapsed||null!=o.from&&o.from>=t||null!=o.to&&t>=o.to||n&&Qe(n,o.marker)>=0||(n=o.marker)}return n}function We(e,t,n,r,i){var o=Z(e,t),a=hu&&o.markedSpans;if(a)for(var u=0;a.length>u;++u){var s=a[u];if(s.marker.collapsed){var l=s.marker.find(0),c=se(l.from,n)||Ge(s.marker)-Ge(i),f=se(l.to,r)||Be(s.marker)-Be(i);if((0>c||f>0)&&(c>0||0>f)&&(0>=c&&(s.marker.inclusiveRight&&i.inclusiveLeft?se(l.to,n)>=0:se(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?0>=se(l.from,r):0>se(l.from,r))))return!0}}}function Ye(e){for(var t;t=Ke(e);)e=t.find(-1,!0).line;return e}function $e(e){for(var t;t=He(e);)e=t.find(1,!0).line;return e}function Je(e){for(var t,n;t=He(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Xe(e,t){var n=Z(e,t),r=Ye(n);return n==r?t:re(r)}function Ze(e,t){if(t>e.lastLine())return t;var n,r=Z(e,t);if(!et(e,r))return t;for(;n=He(r);)r=n.find(1,!0).line;return re(r)+1}function et(e,t){var n=hu&&t.markedSpans;if(n)for(var r=void 0,i=0;n.length>i;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&tt(e,t,r))return!0}}function tt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return tt(e,r.line,De(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;t.markedSpans.length>o;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&tt(e,t,i))return!0}function nt(e){e=Ye(e);for(var t=0,n=e.parent,r=0;n.lines.length>r;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;o.children.length>a;++a){var u=o.children[a];if(u==n)break;t+=u.height}return t}function rt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Ke(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=He(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function it(e){var t=e.display,n=e.doc;t.maxLine=Z(n,n.first),t.maxLineLength=rt(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=rt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function ot(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ve(e),Ue(e,n);var i=r?r(e):1;i!=e.height&&ne(e,i)}function at(e){e.parent=null,Ve(e)}function ut(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?yu:gu;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function st(e,t){var n=i("span",null,null,Ea?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;(t.rest?t.rest.length:0)>=o;o++){var a=o?t.rest[o-1]:t.line,u=void 0;r.pos=0,r.addToken=ct,Q(e.display.measure)&&(u=O(a,e.doc.direction))&&(r.addToken=pt(r.addToken,u)),r.map=[];ht(a,r,ye(e,a,t!=e.display.externalMeasured&&re(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=s(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=s(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(B(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Ea){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return D(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=s(r.pre.className,r.textClass||"")),r}function lt(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ct(e,t,n,i,o,a,u){if(t){var s,l=e.splitSpaces?ft(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){s=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var d=c.exec(t),m=d?d.index-p:t.length-p;if(m){var v=document.createTextNode(l.slice(p,p+m));s.appendChild(ba&&9>Ta?r("span",[v]):v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!d)break;p+=m+1;var g=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;g=s.appendChild(r("span",h(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(g=s.appendChild(r("span","\r"==d[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",d[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(d[0]),g.setAttribute("cm-text",d[0]),s.appendChild(ba&&9>Ta?r("span",[g]):g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,s=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,s),ba&&9>Ta&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||i||o||f||a){var T=n||"";i&&(T+=i),o&&(T+=o);var E=r("span",[s],T,a);if(u)for(var _ in u)u.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&E.setAttribute(_,u[_]);return e.content.appendChild(E)}e.content.appendChild(s)}}function ft(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;e.length>i;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function pt(e,t){return function(n,r,i,o,a,u,s){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,p=0;t.length>p&&(f=t[p],f.to<=l||l=c)return e(n,r,i,o,a,u,s);e(n,r.slice(0,f.to-l),i,o,null,u,s),o=null,r=r.slice(f.to-l),l=f.to}}}function dt(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,u,s,l,c,f,p,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){s=l=c=u="",p=null,f=null,g=1/0;for(var y=[],b=void 0,T=0;r.length>T;++T){var E=r[T],_=E.marker;if("bookmark"==_.type&&E.from==h&&_.widgetNode)y.push(_);else if(h>=E.from&&(null==E.to||E.to>h||_.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,l=""),_.className&&(s+=" "+_.className),_.css&&(u=(u?u+";":"")+_.css),_.startStyle&&E.from==h&&(c+=" "+_.startStyle),_.endStyle&&E.to==g&&(b||(b=[])).push(_.endStyle,E.to),_.title&&((p||(p={})).title=_.title),_.attributes)for(var k in _.attributes)(p||(p={}))[k]=_.attributes[k];!_.collapsed||f&&Qe(f.marker,_)>=0||(f=E)}else E.from>h&&g>E.from&&(g=E.from)}if(b)for(var C=0;b.length>C;C+=2)b[C+1]==g&&(l+=" "+b[C]);if(!f||f.from==h)for(var N=0;y.length>N;++N)dt(t,0,y[N]);if(f&&(f.from||0)==h){if(dt(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var w=h+v.length;if(!f){var O=w>S?v.slice(0,S-h):v;t.addToken(t,O,a?a+s:s,c,h+O.length==g?l:"",u,p)}if(w>=S){v=v.slice(S-h),h=S;break}h=w,c=""}v=i.slice(o,o=n[m++]),a=ut(n[m++],t.cm.options)}}else for(var L=1;n.length>L;L+=2)t.addToken(t,i.slice(o,o=n[L]),ut(n[L+1],t.cm.options))}function mt(e,t,n){this.line=t,this.rest=Je(t),this.size=this.rest?re(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=et(e,t)}function vt(e,t,n){for(var r,i=[],o=t;n>o;o=r){var a=new mt(e.doc,Z(e.doc,o),o);r=o+a.size,i.push(a)}return i}function gt(e){bu?bu.ops.push(e):e.ownsGroup=bu={ops:[e],delayedCallbacks:[]}}function yt(e){var t=e.delayedCallbacks,n=0;do{for(;t.length>n;n++)t[n].call(null);for(var r=0;e.ops.length>r;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityHandlers.length>i.cursorActivityCalled;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(t.length>n)}function bt(e,t){var n=e.ownsGroup;if(n)try{yt(n)}finally{bu=null,t(n)}}function Tt(e,t){var n=L(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);bu?r=bu.delayedCallbacks:Tu?r=Tu:(r=Tu=[],setTimeout(Et,0));for(var o=0;n.length>o;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function Et(){var e=Tu;Tu=null;for(var t=0;e.length>t;++t)e[t]()}function _t(e,t,n,r){for(var i=0;t.changes.length>i;i++){var o=t.changes[i];"text"==o?St(e,t):"gutter"==o?Ot(e,t,n,r):"class"==o?wt(e,t):"widget"==o&&Lt(e,t,r)}t.changes=null}function kt(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ba&&8>Ta&&(e.node.style.zIndex=2)),e.node}function Ct(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=kt(t);t.background=i.insertBefore(r("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}function Nt(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):st(e,t)}function St(e,t){var n=t.text.className,r=Nt(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,wt(e,t)):n&&(t.text.className=n)}function wt(e,t){Ct(e,t),t.line.wrapClass?kt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className=""),t.text.className=(t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass)||""}function Ot(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=kt(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var u=kt(t),s=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),u.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(r("div",ae(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var l=0;e.display.gutterSpecs.length>l;++l){var c=e.display.gutterSpecs[l].className,f=a.hasOwnProperty(c)&&a[c];f&&s.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Lt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Dt(e,t,n)}function xt(e,t,n,r){var i=Nt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),wt(e,t),Ot(e,t,n,r),Dt(e,t,r),t.node}function Dt(e,t,n){if(It(e,t.line,t,n,!0),t.rest)for(var r=0;t.rest.length>r;r++)It(e,t.rest[r],t,n,!1)}function It(e,t,n,i,o){if(t.widgets)for(var a=kt(n),u=0,s=t.widgets;s.length>u;++u){var l=s[u],c=r("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),At(l,c,n,i),e.display.input.setUneditable(c),o&&l.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),Tt(l,"redraw")}}function At(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Pt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Ft(e,t){for(var n=U(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Mt(e){return e.lineSpace.offsetTop}function Rt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Vt(e){return Qa-e.display.nativeBarWidth}function Ut(e){return e.display.scroller.clientWidth-Vt(e)-e.display.barWidth}function Gt(e){return e.display.scroller.clientHeight-Vt(e)-e.display.barHeight}function Bt(e,t,n){var r=e.options.lineWrapping,i=r&&Ut(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),u=0;a.length-1>u;u++){var s=a[u],l=a[u+1];Math.abs(s.bottom-l.bottom)>2&&o.push((s.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;e.rest.length>r;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;e.rest.length>i;i++)if(re(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function qt(e,t){t=Ye(t);var r=re(t),i=e.display.externalMeasured=new mt(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 Wt(e,zt(e,t),n,r)}function Ht(e,t){if(t>=e.display.viewFrom&&e.display.viewTo>t)return e.display.view[Sn(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&n.lineN+n.size>t?n:void 0}function zt(e,t){var n=re(t),r=Ht(e,n);r&&!r.text?r=null:r&&r.changes&&(_t(e,r,n,En(e)),e.curOp.forceUpdate=!0),r||(r=qt(e,t));var i=Qt(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Wt(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Bt(e,t.view,t.rect),t.hasHeights=!0),o=Jt(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Yt(e,t,n){for(var r,i,o,a,u,s,l=0;e.length>l;l+=3)if(u=e[l],s=e[l+1],u>t?(i=0,o=1,a="left"):s>t?(i=t-u,o=i+1):(l==e.length-3||t==s&&e[l+3]>t)&&(o=s-u,i=o-1,s>t||(a="right")),null!=i){if(r=e[l+2],u==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==s-u)for(;e.length-3>l&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:u,coverEnd:s}}function $t(e,t){var n=Eu;if("left"==t)for(var r=0;e.length>r&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Jt(e,t,n,r){var i,o=Yt(t.map,n,r),a=o.node,u=o.start,s=o.end,l=o.collapse;if(3==a.nodeType){for(var c=0;4>c;c++){for(;u&&k(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverEnd>o.coverStart+s&&k(t.line.text.charAt(o.coverStart+s));)++s;if(i=ba&&9>Ta&&0==u&&s==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():$t(Fa(a,u,s).getClientRects(),r),i.left||i.right||0==u)break;s=u,u-=1,l="right"}ba&&11>Ta&&(i=Xt(e.display.measure,i))}else{u>0&&(l=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ba&&9>Ta&&!u&&(!i||!i.left&&!i.right)){var p=a.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Tn(e.display),top:p.top,bottom:p.bottom}:Eu}for(var d=i.top-t.rect.top,h=i.bottom-t.rect.top,m=(d+h)/2,v=t.view.measure.heights,g=0;v.length-1>g&&v[g]<=m;g++);var y=g?v[g-1]:0,b=v[g],T={left:("right"==l?i.right:i.left)-t.rect.left,right:("left"==l?i.left:i.right)-t.rect.left,top:y,bottom:b};return i.left||i.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=d,T.rbottom=h),T}function Xt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!q(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function Zt(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;e.rest.length>t;t++)e.measure.caches[t]={}}function en(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;e.display.view.length>n;n++)Zt(e.display.view[n])}function tn(e){en(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function nn(){return ka&&La?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function rn(){return ka&&La?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function on(e){var t=0;if(e.widgets)for(var n=0;e.widgets.length>n;++n)e.widgets[n].above&&(t+=Pt(e.widgets[n]));return t}function an(e,t,n,r,i){if(!i){var o=on(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=nt(t);if("local"==r?a+=Mt(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var u=e.display.lineSpace.getBoundingClientRect();a+=u.top+("window"==r?0:rn());var s=u.left+("window"==r?0:nn());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function un(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=nn(),i-=rn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function sn(e,t,n,r,i){return r||(r=Z(e.doc,t.line)),an(e,r,Kt(e,r,t.ch,i),n)}function ln(e,t,n,r,i,o){function a(t,a){var u=Wt(e,i,t,a?"right":"left",o);return a?u.left=u.right:u.right=u.left,an(e,r,u,n)}function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}r=r||Z(e.doc,t.line),i||(i=zt(e,r));var s=O(r,e.doc.direction),l=t.ch,c=t.sticky;if(r.text.length>l?l>0||(l=0,c="after"):(l=r.text.length,c="before"),!s)return a("before"==c?l-1:l,"before"==c);var f=w(s,l,c),p=Ja,d=u(l,f,"before"==c);return null!=p&&(d.other=u(l,p,"before"!=c)),d}function cn(e,t){var n=0;t=he(e.doc,t),e.options.lineWrapping||(n=Tn(e.display)*t.ch);var r=Z(e.doc,t.line),i=nt(r)+Mt(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function fn(e,t,n,r,i){var o=ue(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function pn(e,t,n){var r=e.doc;if(0>(n+=e.display.viewOffset))return fn(r.first,0,null,!0,-1);var i=ie(r,n),o=r.first+r.size-1;if(i>o)return fn(r.first+r.size-1,Z(r,o).text.length,null,!0,1);0>t&&(t=0);for(var a=Z(r,i);;){var u=vn(e,a,i,t,n),s=ze(a,u.ch+(u.xRel>0?1:0));if(!s)return u;var l=s.find(1);if(l.line==i)return l;a=Z(r,i=l.line)}}function dn(e,t,n,r){r-=on(t);var i=t.text.length,o=N(function(t){return Wt(e,n,t-1).bottom<=r},i,0);return i=N(function(t){return Wt(e,n,t).top>r},o,i),{begin:o,end:i}}function hn(e,t,n,r){return n||(n=zt(e,t)),dn(e,t,n,an(e,t,Wt(e,n,r),"line").top)}function mn(e,t,n,r){return e.bottom>n&&(e.top>n||(r?e.left:e.right)>t)}function vn(e,t,n,r,i){i-=nt(t);var o=zt(e,t),a=on(t),u=0,s=t.text.length,l=!0,c=O(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?yn:gn)(e,t,n,o,c,r,i);l=1!=f.level,u=l?f.from:f.to-1,s=l?f.to:f.from-1}var p,d,h=null,m=null,v=N(function(t){var n=Wt(e,o,t);return n.top+=a,n.bottom+=a,!!mn(n,r,i,!1)&&(n.top>i||n.left>r||(h=t,m=n),!0)},u,s),g=!1;if(m){var y=m.right-r>r-m.left,b=y==l;v=h+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{l||v!=s&&v!=u||v++,d=0==v?"after":v==t.text.length?"before":Wt(e,o,v-(l?1:0)).bottom+a<=i==l?"after":"before";var T=ln(e,ue(n,v,d),"line",t,o);p=T.left,g=T.top>i||i>=T.bottom}return v=C(t.text,v,1),fn(n,v,d,g,r-p)}function gn(e,t,n,r,i,o,a){var u=N(function(u){var s=i[u],l=1!=s.level;return mn(ln(e,ue(n,l?s.to:s.from,l?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[u];if(u>0){var l=1!=s.level,c=ln(e,ue(n,l?s.from:s.to,l?"after":"before"),"line",t,r);mn(c,o,a,!0)&&c.top>a&&(s=i[u-1])}return s}function yn(e,t,n,r,i,o,a){var u=dn(e,t,r,a),s=u.begin,l=u.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;i.length>p;p++){var d=i[p];if(l>d.from&&d.to>s){var h=1!=d.level,m=Wt(e,r,h?Math.min(l,d.to)-1:Math.max(s,d.from)).right,v=o>m?o-m+1e9:m-o;c&&v>=f||(c=d,f=v)}}return c||(c=i[i.length-1]),s>c.from&&(c={from:s,to:c.to,level:c.level}),c.to>l&&(c={from:c.from,to:l,level:c.level}),c}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==vu){vu=r("pre");for(var i=0;49>i;++i)vu.appendChild(document.createTextNode("x")),vu.appendChild(r("br"));vu.appendChild(document.createTextNode("x"))}n(e.measure,vu);var o=vu.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function Tn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx");n(e.measure,r("pre",[t]));var i=t.getBoundingClientRect(),o=(i.right-i.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function En(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var u=e.display.gutterSpecs[a].className;n[u]=o.offsetLeft+o.clientLeft+i,r[u]=o.clientWidth}return{fixedPos:_n(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function _n(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/Tn(e.display)-3);return function(i){if(et(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;i.widgets.length>a;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Cn(e){var t=e.doc,n=kn(e);t.iter(function(e){var t=n(e);t!=e.height&&ne(e,t)})}function Nn(e,t,n,r){var i=e.display;if(!n&&"true"==U(t).getAttribute("cm-not-content"))return null;var o,a,u=i.lineSpace.getBoundingClientRect();try{o=t.clientX-u.left,a=t.clientY-u.top}catch(t){return null}var s,l=pn(e,o,a);if(r&&1==l.xRel&&(s=Z(e.doc,l.line).text).length==l.ch){var c=f(s,s.length,e.options.tabSize)-s.length;l=ue(l.line,Math.max(0,Math.round((o-jt(e.display).left)/Tn(e.display))-c))}return l}function Sn(e,t){if(t>=e.display.viewTo)return null;if(0>(t-=e.display.viewFrom))return null;for(var n=e.display.view,r=0;n.length>r;r++)if(0>(t-=n[r].size))return r}function wn(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&i.viewTo>n&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,i.viewTo>t)if(i.viewFromi.viewFrom?Ln(e):(i.viewFrom+=r,i.viewTo+=r);else hu&&Xe(e.doc,t)n?l.lineN+=r:l.lineN+l.size>t&&(i.externalMeasured=null))}function On(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&i.lineN+i.size>t&&(r.externalMeasured=null),t>=r.viewFrom&&r.viewTo>t){var o=r.view[Sn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==p(a,n)&&a.push(n)}}}function Ln(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xn(e,t,n,r){var i,o=Sn(e,t),a=e.display.view;if(!hu||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var u=e.display.viewFrom,s=0;o>s;s++)u+=a[s].size;if(u!=t){if(r>0){if(o==a.length-1)return null;i=u+a[o].size-t,o++}else i=u-t;t+=i,n+=i}for(;Xe(e.doc,n)!=n;){if(o==(0>r?0:a.length-1))return null;n+=r*a[o-(0>r?1:0)].size,o+=r}return{index:o,lineN:n}}function Dn(e,t,n){var r=e.display;0!=r.view.length&&r.viewTo>t&&n>r.viewFrom?(r.viewFrom>t?r.view=vt(e,t,r.viewFrom).concat(r.view):t>r.viewFrom&&(r.view=r.view.slice(Sn(e,t))),r.viewFrom=t,n>r.viewTo?r.view=r.view.concat(vt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Sn(e,n)))):(r.view=vt(e,t,n),r.viewFrom=t),r.viewTo=n}function In(e){for(var t=e.display.view,n=0,r=0;t.length>r;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function An(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Pn(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;n.sel.ranges.length>a;a++)if(t||a!=n.sel.primIndex){var u=n.sel.ranges[a];if(u.from().line=e.display.viewFrom){var s=u.empty();(s||e.options.showCursorWhenSelecting)&&Fn(e,u.head,i),s||Rn(e,u,o)}}return r}function Fn(e,t,n){var i=ln(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=n.appendChild(r("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Mn(e,t){return e.top-t.top||e.left-t.left}function Rn(e,t,n){function i(e,t,n,i){0>t&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return sn(e,ue(t,n),"div",d,r)}function a(t,n,r){var i=hn(e,d,null,t),a="ltr"==n==("after"==r)?"left":"right";return o("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),a)[a]}var s,l,d=Z(u,t),h=d.text.length,m=O(d,u.direction);return S(m,n||0,null==r?h:r,function(e,t,u,d){var v="ltr"==u,g=o(e,v?"left":"right"),y=o(t-1,v?"right":"left"),b=null==n&&0==e,T=null==r&&t==h,E=0==d,_=!m||d==m.length-1;if(3g.bottom&&i(c,g.bottom,null,y.top),i(N,y.top,S-N,y.bottom)}else{var w=(p?b:T)&&E,O=(p?T:b)&&_,L=w?c:(v?g:y).left;i(L,g.top,(O?f:(v?y:g).right)-L,g.bottom)}s&&Mn(g,s)>=0||(s=g),0>Mn(y,s)&&(s=y),l&&Mn(g,l)>=0||(l=g),0>Mn(y,l)&&(l=y)}),{start:s,end:l}}var a=e.display,u=e.doc,s=document.createDocumentFragment(),l=jt(e.display),c=l.left,f=Math.max(a.sizerWidth,Ut(e)-a.sizer.offsetLeft)-l.right,p="ltr"==u.direction,d=t.from(),h=t.to();if(d.line==h.line)o(d.line,d.ch,h.ch);else{var m=Z(u,d.line),v=Z(u,h.line),g=Ye(m)==Ye(v),y=o(d.line,d.ch,g?m.text.length+1:null).end,b=o(h.line,g?0:null,h.ch).start;g&&(b.top-2>y.top?(i(y.right,y.top,null,y.bottom),i(c,b.top,b.left,b.bottom)):i(y.right,y.top,b.left-y.right,y.bottom)),b.top>y.bottom&&i(c,y.bottom,null,b.top)}n.appendChild(s)}function jn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):0>e.options.cursorBlinkRate&&(t.cursorDiv.style.visibility="hidden")}}function Vn(e){e.state.focused||(e.display.input.focus(),Gn(e))}function Un(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Bn(e))},100)}function Gn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(D(e,"focus",e,t),e.state.focused=!0,u(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Ea&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),jn(e))}function Bn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(D(e,"blur",e,t),e.state.focused=!1,ja(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;t.view.length>r;r++){var i=t.view[r],o=e.options.lineWrapping,a=void 0,u=0;if(!i.hidden){if(ba&&8>Ta){var s=i.node.offsetTop+i.node.offsetHeight;a=s-n,n=s}else{var l=i.node.getBoundingClientRect();a=l.bottom-l.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-l.left-1)}var c=i.line.height-a;if((c>.005||-.005>c)&&(ne(i.line,a),qn(i.line),i.rest))for(var f=0;i.rest.length>f;f++)qn(i.rest[f]);if(u>e.display.sizerWidth){var p=Math.ceil(u/Tn(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function qn(e){if(e.widgets)for(var t=0;e.widgets.length>t;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Kn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Mt(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=ie(t,r),a=ie(t,i);if(n&&n.ensure){var u=n.ensure.from.line,s=n.ensure.to.line;o>u?(o=u,a=ie(t,nt(Z(t,u))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())t.top+i.top?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!wa){var a=r("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Mt(e.display))+"px;\n height: "+(t.bottom-t.top+Vt(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 zn(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(t=t.ch?ue(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?ue(t.line,t.ch+1,"before"):t);for(var o=0;5>o;o++){var a=!1,u=ln(e,t),s=n&&n!=t?ln(e,n):u;i={left:Math.min(u.left,s.left),top:Math.min(u.top,s.top)-r,right:Math.max(u.left,s.left),bottom:Math.max(u.bottom,s.bottom)+r};var l=Yn(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(nr(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(ir(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function Wn(e,t){var n=Yn(e,t);null!=n.scrollTop&&nr(e,n.scrollTop),null!=n.scrollLeft&&ir(e,n.scrollLeft)}function Yn(e,t){var n=e.display,r=bn(e.display);0>t.top&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Gt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var u=e.doc.height+Rt(n),s=r>t.top,l=t.bottom>u-r;if(i>t.top)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(l?u:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Ut(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),10>t.left?a.scrollLeft=0:f>t.left?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function $n(e,t){null!=t&&(er(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Jn(e){er(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Xn(e,t,n){null==t&&null==n||er(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Zn(e,t){er(e),e.curOp.scrollToPos=t}function er(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;tr(e,cn(e,t.from),cn(e,t.to),t.margin)}}function tr(e,t,n,r){var i=Yn(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});Xn(e,i.scrollLeft,i.scrollTop)}function nr(e,t){2>Math.abs(e.doc.scrollTop-t)||(ma||Or(e,{top:t}),rr(e,t,!0),ma&&Or(e),Er(e,100))}function rr(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 ir(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:2>Math.abs(e.doc.scrollLeft-t))&&!r||(e.doc.scrollLeft=t,Ir(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function or(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Rt(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+Vt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function ar(e,t){t||(t=or(e));var n=e.display.barWidth,r=e.display.barHeight;ur(e,t);for(var i=0;4>i&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Qn(e),ur(e,or(e)),n=e.display.barWidth,r=e.display.barHeight}function ur(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 sr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ja(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),eu(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?ir(e,t):nr(e,t)},e),e.display.scrollbars.addClass&&u(e.display.wrapper,e.display.scrollbars.addClass)}function lr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Nu},gt(e.curOp)}function cr(e){var t=e.curOp;t&&bt(t,function(e){for(var t=0;e.ops.length>t;t++)e.ops[t].cm.curOp=null;fr(e)})}function fr(e){for(var t=e.ops,n=0;t.length>n;n++)pr(t[n]);for(var r=0;t.length>r;r++)dr(t[r]);for(var i=0;t.length>i;i++)hr(t[i]);for(var o=0;t.length>o;o++)mr(t[o]);for(var a=0;t.length>a;a++)vr(t[a])}function pr(e){var t=e.cm,n=t.display;kr(t),e.updateMaxLine&&it(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(n.viewFrom>e.scrollToPos.from.line||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Su(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function dr(e){e.updatedDisplay=e.mustUpdate&&Sr(e.cm,e.update)}function hr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Qn(t),e.barMeasure=or(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+Vt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function mr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",t.doc.scrollLeft>e.maxScrollLeft&&ir(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ar(t,e.barMeasure),e.updatedDisplay&&Dr(t,e.barMeasure),e.selectionChanged&&jn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Vn(e.cm)}function vr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&wr(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&rr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&ir(t,e.scrollLeft,!0,!0),e.scrollToPos){Hn(t,zn(t,he(r,e.scrollToPos.from),he(r,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;i.length>a;++a)i[a].lines.length||D(i[a],"hide");if(o)for(var u=0;o.length>u;++u)o[u].lines.length&&D(o[u],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&D(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function gr(e,t){if(e.curOp)return t();lr(e);try{return t()}finally{cr(e)}}function yr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);lr(e);try{return t.apply(e,arguments)}finally{cr(e)}}}function br(e){return function(){if(this.curOp)return e.apply(this,arguments);lr(this);try{return e.apply(this,arguments)}finally{cr(this)}}}function Tr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);lr(t);try{return e.apply(this,arguments)}finally{cr(t)}}}function Er(e,t){e.display.viewTo>e.doc.highlightFrontier&&e.state.highlight.set(t,l(_r,e))}function _r(e){var t=e.doc;if(e.display.viewTo>t.highlightFrontier){var n=+new Date+e.options.workTime,r=be(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.linee.options.maxHighlightLength||Te(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();else{var a=o.styles,u=o.text.length>e.options.maxHighlightLength?$(t.mode,r.state):null,s=ge(e,o,r,!0);u&&(r.state=u),o.styles=s.styles;var l=o.styleClasses,c=s.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&a.length>p;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}if(+new Date>n)return Er(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&gr(e,function(){for(var t=0;i.length>t;t++)On(e,i[t],"text")})}}function kr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Vt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Vt(e)+"px",t.scrollbarsClipped=!0)}function Cr(e){if(e.hasFocus())return null;var t=a();if(!t||!o(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&o(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Nr(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Sr(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return Ln(e),!1;if(!(n.force||r.viewFrom>n.visible.from||n.visible.to>r.viewTo||null!=r.updateLineNumbers&&r.viewTo>r.updateLineNumbers||r.renderedView!=r.view||0!=In(e)))return!1;Ar(e)&&(Ln(e),n.dims=En(e));var o=i.first+i.size,a=Math.max(n.visible.from-e.options.viewportMargin,i.first),u=Math.min(o,n.visible.to+e.options.viewportMargin);a>r.viewFrom&&20>a-r.viewFrom&&(a=Math.max(i.first,r.viewFrom)),r.viewTo>u&&20>r.viewTo-u&&(u=Math.min(o,r.viewTo)),hu&&(a=Xe(e.doc,a),u=Ze(e.doc,u));var s=a!=r.viewFrom||u!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;Dn(e,a,u),r.viewOffset=nt(Z(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=In(e);if(!(s||0!=l||n.force||r.renderedView!=r.view||null!=r.updateLineNumbers&&r.viewTo>r.updateLineNumbers))return!1;var c=Cr(e);return l>4&&(r.lineDiv.style.display="none"),Lr(e,r.updateLineNumbers,n.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Nr(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,Er(e,400)),r.updateLineNumbers=null,!0}function wr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Rt(e.display)-Gt(e),n.top)}),t.visible=Kn(e.display,e.doc,n),e.display.viewFrom>t.visible.from||t.visible.to>e.display.viewTo))&&Sr(e,t);r=!1){Qn(e);var i=or(e);An(e),ar(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 Su(e,t);if(Sr(e,n)){Qn(e),wr(e,n);var r=or(e);An(e),ar(e,r),Dr(e,r),n.finish()}}function Lr(e,n,r){function i(t){var n=t.nextSibling;return Ea&&Da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,u=o.lineDiv,s=u.firstChild,l=o.view,c=o.viewFrom,f=0;l.length>f;f++){var d=l[f];if(d.hidden);else if(d.node&&d.node.parentNode==u){for(;s!=d.node;)s=i(s);var h=a&&null!=n&&c>=n&&d.lineNumber;d.changes&&(p(d.changes,"gutter")>-1&&(h=!1),_t(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ae(e.options,c)))),s=d.node.nextSibling}else{var m=xt(e,d,c,r);u.insertBefore(m,s)}c+=d.size}for(;s;)s=i(s)}function xr(e){e.sizer.style.marginLeft=e.gutters.offsetWidth+"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+Vt(e)+"px"}function Ir(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=_n(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;n.length>a;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var u=n[a].alignable;if(u)for(var s=0;u.length>s;s++)u[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ar(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ae(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,u=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-u)+1,i.lineNumWidth=i.lineNumInnerWidth+u,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",xr(e.display),!0}return!1}function Pr(e,t){for(var n=[],r=!1,i=0;e.length>i;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Fr(e){var n=e.gutters,i=e.gutterSpecs;t(n),e.lineGutter=null;for(var o=0;i.length>o;++o){var a=i[o],u=a.className,s=a.style,l=n.appendChild(r("div",null,"CodeMirror-gutter "+u));s&&(l.style.cssText=s),"CodeMirror-linenumbers"==u&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}n.style.display=i.length?"":"none",xr(e)}function Mr(e){Fr(e.display),wn(e),Ir(e)}function Rr(e,t,n,o){var a=this;this.input=n,a.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=i("div",null,"CodeMirror-code"),a.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=r("div",null,"CodeMirror-cursors"),a.measure=r("div",null,"CodeMirror-measure"),a.lineMeasure=r("div",null,"CodeMirror-measure"),a.lineSpace=i("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none"),a.mover=r("div",[i("div",[a.lineSpace],"CodeMirror-lines")],null,"position: relative"),a.sizer=r("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=r("div",null,null,"position: absolute; height: "+Qa+"px; width: 1px;"),a.gutters=r("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=r("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=r("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),ba&&8>Ta&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),Ea||ma&&xa||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Pr(o.gutters,o.lineNumbers),Fr(a),n.init(a)}function jr(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 Vr(e){var t=jr(e);return t.x*=Ou,t.y*=Ou,t}function Ur(e,t){var n=jr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,u=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&u||i&&s){if(i&&Da&&Ea)e:for(var l=t.target,c=o.view;l!=a;l=l.parentNode)for(var f=0;c.length>f;f++)if(c[f].node==l){e.display.currentWheelTarget=l;break e}if(r&&!ma&&!Ca&&null!=Ou)return i&&s&&nr(e,Math.max(0,a.scrollTop+i*Ou)),ir(e,Math.max(0,a.scrollLeft+r*Ou)),(!i||i&&s)&&M(t),void(o.wheelStartX=null);if(i&&null!=Ou){var p=i*Ou,d=e.doc.scrollTop,h=d+o.wrapper.clientHeight;0>p?d=Math.max(0,d+p-50):h=Math.min(e.doc.height,h+p+50),Or(e,{top:d,bottom:h})}20>wu&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Ou=(Ou*wu+n)/(wu+1),++wu)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function Gr(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return se(e.from(),t.from())}),n=p(t,i);for(var o=1;t.length>o;o++){var a=t[o],u=t[o-1],s=se(u.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var l=pe(u.from(),a.from()),c=fe(u.to(),a.to()),f=u.empty()?a.from()==a.head:u.from()==u.head;o>n||--n,t.splice(--o,2,new xu(f?c:l,f?l:c))}}return new Lu(t,n)}function Br(e,t){return new Lu([new xu(e,t||e)],0)}function Qr(e){return e.text?ue(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function qr(e,t){if(0>se(e,t.from))return e;if(0>=se(e,t.to))return Qr(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+=Qr(t).ch-t.to.ch),ue(n,r)}function Kr(e,t){for(var n=[],r=0;e.sel.ranges.length>r;r++){var i=e.sel.ranges[r];n.push(new xu(qr(i.anchor,t),qr(i.head,t)))}return Gr(e.cm,n,e.sel.primIndex)}function Hr(e,t,n){return e.line==t.line?ue(n.line,e.ch-t.ch+n.ch):ue(n.line+(e.line-t.line),e.ch)}function zr(e,t,n){for(var r=[],i=ue(e.first,0),o=i,a=0;t.length>a;a++){var u=t[a],s=Hr(u.from,i,o),l=Hr(Qr(u),i,o);if(i=u.to,o=l,"around"==n){var c=e.sel.ranges[a],f=0>se(c.head,c.anchor);r[a]=new xu(f?l:s,f?s:l)}else r[a]=new xu(s,s)}return new Lu(r,e.sel.primIndex)}function Wr(e){e.doc.mode=W(e.options,e.doc.modeOption),Yr(e)}function Yr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Er(e,100),e.state.modeGen++,e.curOp&&wn(e)}function $r(e,t){return 0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Jr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){ot(e,n,i,r),Tt(e,"change",e,t)}function a(e,t){for(var n=[],o=e;t>o;++o)n.push(new mu(l[o],i(o),r));return n}var u=t.from,s=t.to,l=t.text,c=Z(e,u.line),f=Z(e,s.line),p=m(l),d=i(l.length-1),h=s.line-u.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if($r(e,t)){var v=a(0,l.length-1);o(f,f.text,d),h&&e.remove(u.line,h),v.length&&e.insert(u.line,v)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,u.ch)+p+c.text.slice(s.ch),d);else{var g=a(1,l.length-1);g.push(new mu(p+c.text.slice(s.ch),d,r)),o(c,c.text.slice(0,u.ch)+l[0],i(0)),e.insert(u.line+1,g)}else if(1==l.length)o(c,c.text.slice(0,u.ch)+l[0]+f.text.slice(s.ch),i(0)),e.remove(u.line+1,h);else{o(c,c.text.slice(0,u.ch)+l[0],i(0)),o(f,p+f.text.slice(s.ch),d);var y=a(1,l.length-1);h>1&&e.remove(u.line+1,h-1),e.insert(u.line+1,y)}Tt(e,"change",e,t)}function Xr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;e.linked.length>a;++a){var u=e.linked[a];if(u.doc!=i){var s=o&&u.sharedHist;n&&!s||(t(u.doc,s),r(u.doc,e,s))}}}r(e,null,!0)}function Zr(e,t){if(t.cm)throw Error("This document is already in use.");e.doc=t,t.cm=e,Cn(e),Wr(e),ei(e),e.options.lineWrapping||it(e),e.options.mode=t.modeOption,wn(e)}function ei(e){("rtl"==e.doc.direction?u:ja)(e.display.lineDiv,"CodeMirror-rtl")}function ti(e){gr(e,function(){ei(e),wn(e)})}function ni(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ri(e,t){var n={from:ce(t.from),to:Qr(t),text:ee(e,t.from,t.to)};return ci(e,n,t.from.line,t.to.line+1),Xr(e,function(e){return ci(e,n,t.from.line,t.to.line+1)},!0),n}function ii(e){for(;e.length;){if(!m(e).ranges)break;e.pop()}}function oi(e,t){return t?(ii(e.done),m(e.done)):e.done.length&&!m(e.done).ranges?m(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0}function ai(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,u=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=oi(i,i.lastOp==r)))a=m(o.changes),0==se(t.from,t.to)&&0==se(t.from,a.to)?a.to=Qr(t):o.changes.push(ri(e,t));else{var s=m(i.done);for(s&&s.ranges||li(e.sel,i.done),o={changes:[ri(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=u,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||D(e,"historyAdded")}function ui(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 si(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||ui(e,o,m(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&&ii(i.undone)}function li(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ci(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 fi(e){if(!e)return null;for(var t,n=0;e.length>n;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function pi(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;t.text.length>i;++i)r.push(fi(n[i]));return r}function di(e,t){var n=pi(e,t),r=Me(e,t);if(!n)return r;if(!r)return n;for(var i=0;n.length>i;++i){var o=n[i],a=r[i];if(o&&a)e:for(var u=0;a.length>u;++u){for(var s=a[u],l=0;o.length>l;++l)if(o[l].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function hi(e,t,n){for(var r=[],i=0;e.length>i;++i){var o=e[i];if(o.ranges)r.push(n?Lu.prototype.deepCopy.call(o):o);else{var a=o.changes,u=[];r.push({changes:u});for(var s=0;a.length>s;++s){var l=a[s],c=void 0;if(u.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&p(t,+c[1])>-1&&(m(u)[f]=l[f],delete l[f])}}}return r}function mi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=0>se(t,i);o!=0>se(n,i)?(i=t,t=n):o!=0>se(t,n)&&(t=n)}return new xu(i,t)}return new xu(n||t,t)}function vi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),_i(e,new Lu([mi(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;e.sel.ranges.length>o;o++)r[o]=mi(e.sel.ranges[o],t[o],null,i);_i(e,Gr(e.cm,r,e.sel.primIndex),n)}function yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,_i(e,Gr(e.cm,i,e.sel.primIndex),r)}function bi(e,t,n,r){_i(e,Br(t,n),r)}function Ti(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;t.length>r;r++)n.ranges[r]=new xu(he(e,t[r].anchor),he(e,t[r].head))},origin:n&&n.origin};return D(e,"beforeSelectionChange",e,r),e.cm&&D(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Gr(e.cm,r.ranges,r.ranges.length-1):t}function Ei(e,t,n){var r=e.history.done,i=m(r);i&&i.ranges?(r[r.length-1]=t,ki(e,t,n)):_i(e,t,n)}function _i(e,t,n){ki(e,t,n),si(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ki(e,t,n){(P(e,"beforeSelectionChange")||e.cm&&P(e.cm,"beforeSelectionChange"))&&(t=Ti(e,t,n)),Ci(e,Si(e,t,n&&n.bias||(0>se(t.primary().head,e.sel.primary().head)?-1:1),!0)),n&&!1===n.scroll||!e.cm||Jn(e.cm)}function Ci(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,A(e.cm)),Tt(e,"cursorActivity",e))}function Ni(e){Ci(e,Si(e,e.sel,null,!1))}function Si(e,t,n,r){for(var i,o=0;t.ranges.length>o;o++){var a=t.ranges[o],u=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Oi(e,a.anchor,u&&u.anchor,n,r),l=Oi(e,a.head,u&&u.head,n,r);(i||s!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new xu(s,l))}return i?Gr(e.cm,i,t.primIndex):t}function wi(e,t,n,r,i){var o=Z(e,t.line);if(o.markedSpans)for(var a=0;o.markedSpans.length>a;++a){var u=o.markedSpans[a],s=u.marker,l="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,c="selectRight"in s?!s.selectRight:s.inclusiveRight;if(!(null!=u.from&&(l?u.from>t.ch:u.from>=t.ch)||null!=u.to&&(c?t.ch>u.to:t.ch>=u.to))){if(i&&(D(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var f=s.find(0>r?1:-1),p=void 0;if((0>r?c:l)&&(f=Li(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=se(f,n))&&(0>r?0>p:p>0))return wi(e,f,t,r,i)}var d=s.find(0>r?-1:1);return(0>r?l:c)&&(d=Li(e,d,r,d.line==t.line?o:null)),d?wi(e,d,t,r,i):null}}return t}function Oi(e,t,n,r,i){var o=r||1,a=wi(e,t,n,o,i)||!i&&wi(e,t,n,o,!0)||wi(e,t,n,-o,i)||!i&&wi(e,t,n,-o,!0);return a||(e.cantEdit=!0,ue(e.first,0))}function Li(e,t,n,r){return 0>n&&0==t.ch?t.line>e.first?he(e,ue(t.line-1)):null:n>0&&t.ch==(r||Z(e,t.line)).text.length?e.first+e.size-1>t.line?ue(t.line+1,0):null:new ue(t.line,t.ch+n)}function xi(e){e.setSelection(ue(e.firstLine(),0),ue(e.lastLine()),Ka)}function Di(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=he(e,t)),n&&(r.to=he(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),D(e,"beforeChange",e,r),e.cm&&D(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ii(e,t,n){if(e.cm){if(!e.cm.curOp)return yr(e.cm,Ii)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(P(e,"beforeChange")||e.cm&&P(e.cm,"beforeChange"))||(t=Di(e,t,!0))){var r=du&&!n&&je(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Ai(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ai(e,t)}}function Ai(e,t){if(1!=t.text.length||""!=t.text[0]||0!=se(t.from,t.to)){var n=Kr(e,t);ai(e,t,n,e.cm?e.cm.curOp.id:NaN),Mi(e,t,n,Me(e,t));var r=[];Xr(e,function(e,n){n||-1!=p(r,e.history)||(Gi(e.history,t),r.push(e.history)),Mi(e,t,null,Me(e,t))})}}function Pi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,u="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,l=0;u.length>l&&(i=u[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=u.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=u.pop(),!i.ranges){if(r)return void u.push(i);break}if(li(i,s),n&&!i.equals(e.sel))return void _i(e,i,{clearRedo:!1});a=i}var c=[];li(a,s),s.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=P(e,"beforeChange")||e.cm&&P(e.cm,"beforeChange"),d=i.changes.length-1;d>=0;--d){var h=function(n){var r=i.changes[n];if(r.origin=t,f&&!Di(e,r,!1))return u.length=0,{};c.push(ri(e,r));var o=n?Kr(e,r):m(u);Mi(e,r,o,di(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Qr(r)});var a=[];Xr(e,function(e,t){t||-1!=p(a,e.history)||(Gi(e.history,r),a.push(e.history)),Mi(e,r,null,di(e,r))})}(d);if(h)return h.v}}}}function Fi(e,t){if(0!=t&&(e.first+=t,e.sel=new Lu(v(e.sel.ranges,function(e){return new xu(ue(e.anchor.line+t,e.anchor.ch),ue(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){wn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;n.viewTo>r;r++)On(e.cm,r,"gutter")}}function Mi(e,t,n,r){if(e.cm&&!e.cm.curOp)return yr(e.cm,Mi)(e,t,n,r);if(e.first>t.to.line)return void Fi(e,t.text.length-1-(t.to.line-t.from.line));if(t.from.line<=e.lastLine()){if(e.first>t.from.line){var i=t.text.length-1-(e.first-t.from.line);Fi(e,i),t={from:ue(e.first,0),to:ue(t.to.line+i,t.to.ch),text:[m(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ue(o,Z(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ee(e,t.from,t.to),n||(n=Kr(e,t)),e.cm?Ri(e.cm,t,r):Jr(e,t,r),ki(e,n,Ka)}}function Ri(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,u=!1,s=o.line;e.options.lineWrapping||(s=re(Ye(Z(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return u=!0,!0})),r.sel.contains(t.from,t.to)>-1&&A(e),Jr(r,t,n,kn(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=rt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,u=!1)}),u&&(e.curOp.updateMaxLine=!0)),we(r,o.line),Er(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?wn(e):o.line!=a.line||1!=t.text.length||$r(e.doc,t)?wn(e,o.line,a.line+1,l):On(e,o.line,"text");var c=P(e,"changes"),f=P(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Tt(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function ji(e,t,n,r,i){var o;r||(r=n),0>se(r,n)&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Ii(e,{from:n,to:r,text:t,origin:i})}function Vi(e,t,n,r){e.line>n?e.line+=r:e.line>t&&(e.line=t,e.ch=0)}function Ui(e,t,n,r){for(var i=0;e.length>i;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var u=0;o.ranges.length>u;u++)Vi(o.ranges[u].anchor,t,n,r),Vi(o.ranges[u].head,t,n,r)}else{for(var s=0;o.changes.length>s;++s){var l=o.changes[s];if(l.from.line>n)l.from=ue(l.from.line+r,l.from.ch),l.to=ue(l.to.line+r,l.to.ch);else if(l.to.line>=t){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Gi(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Ui(e.done,n,r,i),Ui(e.undone,n,r,i)}function Bi(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Z(e,de(e,t)):i=re(t),null==i?null:(r(o,i)&&e.cm&&On(e.cm,i,n),o)}function Qi(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;e.length>r;++r)e[r].parent=t,n+=e[r].height;this.height=n}function qi(e){var t=this;this.children=e;for(var n=0,r=0,i=0;e.length>i;++i){var o=e[i];n+=o.chunkSize(),r+=o.height,o.parent=t}this.size=n,this.height=r,this.parent=null}function Ki(e,t,n){nt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&$n(e,n)}function Hi(e,t,n,r){var i=new Du(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Bi(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!et(e,t)){var r=nt(t)0||0==u&&!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(We(e,t.line,t,n,a)||t.line!=n.line&&We(e,n.line,t,n,a))throw Error("Inserting collapsed marker partially overlapping an existing one");Le()}a.addToHistory&&ai(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,f=e.cm;if(e.iter(l,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&Ye(e)==f.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&ne(e,0),Ae(e,new xe(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){et(e,t)&&ne(t,0)}),a.clearOnEnter&&eu(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(Oe(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Iu,a.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),a.collapsed)wn(f,t.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var p=t.line;n.line>=p;p++)On(f,p,"text");a.atomic&&Ni(f.doc),Tt(f,"markerAdded",f,a)}return a}function Wi(e,t,n,r,i){r=c(r),r.shared=!1;var o=[zi(e,t,n,r,i)],a=o[0],u=r.widgetNode;return Xr(e,function(e){u&&(r.widgetNode=u.cloneNode(!0)),o.push(zi(e,he(e,t),he(e,n),r,i));for(var s=0;e.linked.length>s;++s)if(e.linked[s].isParent)return;a=m(o)}),new Pu(o,a)}function Yi(e){return e.findMarks(ue(e.first,0),e.clipPos(ue(e.lastLine())),function(e){return e.parent})}function $i(e,t){for(var n=0;t.length>n;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(se(o,a)){var u=zi(e,o,a,r.primary,r.primary.type);r.markers.push(u),u.parent=r}}}function Ji(e){for(var t=0;e.length>t;t++)!function(t){var n=e[t],r=[n.primary.doc];Xr(n.primary.doc,function(e){return r.push(e)});for(var i=0;n.markers.length>i;i++){var o=n.markers[i];-1==p(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function Xi(e){var t=this;if(to(t),!I(t,e)&&!Ft(t.display,e)){M(e),ba&&(Ru=+new Date);var n=Nn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,u=0;i>u;++u)!function(e,r){if(!t.options.allowDropFileTypes||-1!=p(t.options.allowDropFileTypes,e.type)){var u=new FileReader;u.onload=yr(t,function(){var e=u.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){n=he(t.doc,n);var s={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ii(t.doc,s),Ei(t.doc,Br(n,Qr(s)))}}),u.readAsText(e)}}(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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 l;if(t.state.draggingText&&!t.state.draggingText.copy&&(l=t.listSelections()),ki(t.doc,Br(n,n)),l)for(var c=0;l.length>c;++c)ji(t.doc,"",l[c].anchor,l[c].head,"drag");t.replaceSelection(s,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Zi(e,t){if(ba&&(!e.state.draggingText||100>+new Date-Ru))return void V(t);if(!I(e,t)&&!Ft(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Na)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ca&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),Ca&&n.parentNode.removeChild(n)}}function eo(e,t){var i=Nn(e,t);if(i){var o=document.createDocumentFragment();Fn(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}function to(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function no(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;t.length>r;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;n.length>t;t++)e(n[t])})}}function ro(){ju||(io(),ju=!0)}function io(){var e;eu(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,no(oo)},100))}),eu(window,"blur",function(){return no(Bn)})}function oo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}function ao(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,a=0;t.length-1>a;a++){var u=t[a];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else{if(!/^s(hift)?$/i.test(u))throw Error("Unrecognized modifier name: "+u);i=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function uo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=v(n.split(" "),ao),o=0;i.length>o;o++){var a=void 0,u=void 0;o==i.length-1?(u=i.join(" "),a=r):(u=i.slice(0,o+1).join(" "),a="...");var s=t[u];if(s){if(s!=a)throw Error("Inconsistent bindings for "+u)}else t[u]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function so(e,t,n,r){t=po(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return so(e,t.fallthrough,n,r);for(var o=0;t.fallthrough.length>o;o++){var a=so(e,t.fallthrough[o],n,r);if(a)return a}}}function lo(e){var t="string"==typeof e?e:Vu[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function co(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(Ma?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(Ma?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function fo(e,t){if(Ca&&34==e.keyCode&&e.char)return!1;var n=Vu[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),co(n,e,t))}function po(e){return"string"==typeof e?Qu[e]:e}function ho(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;n.length>i;i++){for(var o=t(n[i]);r.length&&0>=se(o.from,m(r).to);){var a=r.pop();if(0>se(a.from,o.from)){o.from=a.from;break}}r.push(o)}gr(e,function(){for(var t=r.length-1;t>=0;t--)ji(e.doc,"",r[t].from,r[t].to,"+delete");Jn(e)})}function mo(e,t,n){var r=C(e.text,t+n,n);return 0>r||r>e.text.length?null:r}function vo(e,t,n){var r=mo(e,t.ch,n);return null==r?null:new ue(t.line,r,0>n?"after":"before")}function go(e,t,n,r,i){if(e){var o=O(n,t.doc.direction);if(o){var a,u=0>i?m(o):o[0],s=0>i==(1==u.level),l=s?"after":"before";if(u.level>0||"rtl"==t.doc.direction){var c=zt(t,n);a=0>i?n.text.length-1:0;var f=Wt(t,c,a).top;a=N(function(e){return Wt(t,c,e).top==f},0>i==(1==u.level)?u.from:u.to-1,a),"before"==l&&(a=mo(n,a,1))}else a=0>i?u.to:u.from;return new ue(r,a,l)}}return new ue(r,0>i?n.text.length:0,0>i?"before":"after")}function yo(e,t,n,r){var i=O(t,e.doc.direction);if(!i)return vo(t,n,r);t.text.length>n.ch?n.ch>0||(n.ch=0,n.sticky="after"):(n.ch=t.text.length,n.sticky="before");var o=w(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:n.ch>a.from))return vo(t,n,r);var u,s=function(e,n){return mo(t,e instanceof ue?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(u=u||zt(e,t),hn(e,t,u,n)):{begin:0,end:t.text.length}},c=l("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==0>r,p=s(n,f?1:-1);if(!(null==p||(f?p>a.to||p>c.end:a.from>p||c.begin>p))){return new ue(n.line,p,f?"before":"after")}}var d=function(e,t,r){for(var o=function(e,t){return t?new ue(n.line,s(e,1),"before"):new ue(n.line,e,"after")};e>=0&&i.length>e;e+=t){var a=i[e],u=t>0==(1!=a.level),l=u?r.begin:s(r.end,-1);if(l>=a.from&&a.to>l)return o(l,u);if((l=u?a.from:s(a.to,-1))>=r.begin&&r.end>l)return o(l,u)}},h=d(o+r,r,c);if(h)return h;var m=r>0?c.end:s(c.begin,-1);return null==m||r>0&&m==t.text.length||!(h=d(r>0?0:i.length-1,r,l(m)))?null:h}function bo(e,t){var n=Z(e.doc,t),r=Ye(n);return r!=n&&(t=re(r)),go(!0,e,r,t,1)}function To(e,t){var n=Z(e.doc,t),r=$e(n);return r!=n&&(t=re(r)),go(!0,e,n,t,-1)}function Eo(e,t){var n=bo(e,t.line),r=Z(e.doc,n.line),i=O(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/));return ue(n.line,t.line==n.line&&o>=t.ch&&t.ch?0:o,n.sticky)}return n}function _o(e,t,n){if("string"==typeof t&&!(t=qu[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)!=qa}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ko(e,t,n){for(var r=0;e.state.keyMaps.length>r;r++){var i=so(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&so(t,e.options.extraKeys,n,e)||so(t,e.options.keyMap,n,e)}function Co(e,t,n,r){var i=e.state.keySeq;if(i){if(lo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ku.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),No(e,i+" "+t,n,r))return!0}return No(e,t,n,r)}function No(e,t,n,r){var i=ko(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Tt(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(M(n),jn(e)),!!i}function So(e,t){var n=fo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Co(e,"Shift-"+n,t,function(t){return _o(e,t,!0)})||Co(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return _o(e,t)}):Co(e,n,t,function(t){return _o(e,t)}))}function wo(e,t,n){return Co(e,"'"+n+"'",t,function(t){return _o(e,t,!0)})}function Oo(e){var t=this;if(t.curOp.focus=a(),!I(t,e)){ba&&11>Ta&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=So(t,e);Ca&&(Hu=r?n:null,!r&&88==n&&!iu&&(Da?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Lo(t)}}function Lo(e){function t(e){18!=e.keyCode&&e.altKey||(ja(n,"CodeMirror-crosshair"),x(document,"keyup",t),x(document,"mouseover",t))}var n=e.display.lineDiv;u(n,"CodeMirror-crosshair"),eu(document,"keyup",t),eu(document,"mouseover",t)}function xo(e){16==e.keyCode&&(this.doc.sel.shift=!1),I(this,e)}function Do(e){var t=this;if(!(Ft(t.display,e)||I(t,e)||e.ctrlKey&&!e.altKey||Da&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(Ca&&n==Hu)return Hu=null,void M(e);if(!Ca||e.which&&e.which>=10||!So(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(wo(t,e,i)||t.display.input.onKeyPress(e))}}}function Io(e,t){var n=+new Date;return Yu&&Yu.compare(n,e,t)?(Wu=Yu=null,"triple"):Wu&&Wu.compare(n,e,t)?(Yu=new zu(n,e,t),Wu=null,"double"):(Wu=new zu(n,e,t),Yu=null,"single")}function Ao(e){var t=this,n=t.display;if(!(I(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Ft(n,e))return void(Ea||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Bo(t,e)){var r=Nn(t,e),i=G(e),o=r?Io(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&Po(t,i,r,o,e)||(1==i?r?Mo(t,r,o,e):U(e)==n.scroller&&M(e):2==i?(r&&vi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(Ra?t.display.input.onContextMenu(e):Un(t)))}}}function Po(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,Co(e,co(o,i),i,function(t){if("string"==typeof t&&(t=qu[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=qa}finally{e.state.suppressEdits=!1}return r})}function Fo(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){i.unit=(Ia?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=Da?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(Da?n.altKey:n.ctrlKey)),i}function Mo(e,t,n,r){ba?setTimeout(l(Vn,e),0):e.curOp.focus=a();var i,o=Fo(e,n,r),u=e.doc.sel;e.options.dragDrop&&tu&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(0>se((i=u.ranges[i]).from(),t)||t.xRel>0)&&(se(i.to(),t)>0||0>t.xRel)?Ro(e,r,t,o):Vo(e,r,t,o)}function Ro(e,t,n,r){var i=e.display,o=!1,a=yr(e,function(t){Ea&&(i.scroller.draggable=!1),e.state.draggingText=!1,x(i.wrapper.ownerDocument,"mouseup",a),x(i.wrapper.ownerDocument,"mousemove",u),x(i.scroller,"dragstart",s),x(i.scroller,"drop",a),o||(M(t),r.addNew||vi(e.doc,n,null,null,r.extend),Ea||ba&&9==Ta?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};Ea&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),eu(i.wrapper.ownerDocument,"mouseup",a),eu(i.wrapper.ownerDocument,"mousemove",u),eu(i.scroller,"dragstart",s),eu(i.scroller,"drop",a),Un(e),setTimeout(function(){return i.input.focus()},20)}function jo(e,t,n){if("char"==n)return new xu(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new xu(ue(t.line,0),he(e.doc,ue(t.line+1,0)));var r=n(e,t);return new xu(r.from,r.to)}function Vo(e,t,n,r){function i(t){if(0!=se(g,t))if(g=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(Z(l,n.line).text,n.ch,o),u=f(Z(l,t.line).text,t.ch,o),s=Math.min(a,u),m=Math.max(a,u),v=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));y>=v;v++){var b=Z(l,v).text,T=d(b,s,o);s==m?i.push(new xu(ue(v,T),ue(v,T))):b.length>T&&i.push(new xu(ue(v,T),ue(v,d(b,m,o))))}i.length||i.push(new xu(n,n)),_i(l,Gr(e,h.ranges.slice(0,p).concat(i),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var E,_=c,k=jo(e,t,r.unit),C=_.anchor;se(k.anchor,C)>0?(E=k.head,C=pe(_.from(),k.anchor)):(E=k.anchor,C=fe(_.to(),k.head));var N=h.ranges.slice(0);N[p]=Uo(e,new xu(he(l,C),E)),_i(l,Gr(e,N,p),Ha)}}function o(t){var n=++b,u=Nn(e,t,!0,"rectangle"==r.unit);if(u)if(0!=se(u,g)){e.curOp.focus=a(),i(u);var c=Kn(s,l);c.to>u.line&&u.line>=c.from||setTimeout(yr(e,function(){b==n&&o(t)}),150)}else{var f=y.top>t.clientY?-20:t.clientY>y.bottom?20:0;f&&setTimeout(yr(e,function(){b==n&&(s.scroller.scrollTop+=f,o(t))}),50)}}function u(t){e.state.selectingText=!1,b=1/0,t&&(M(t),s.input.focus()),x(s.wrapper.ownerDocument,"mousemove",T),x(s.wrapper.ownerDocument,"mouseup",E),l.history.lastSelOrigin=null}var s=e.display,l=e.doc;M(t);var c,p,h=l.sel,m=h.ranges;if(r.addNew&&!r.extend?(p=l.sel.contains(n),c=p>-1?m[p]:new xu(n,n)):(c=l.sel.primary(),p=l.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new xu(n,n)),n=Nn(e,t,!0,!0),p=-1;else{var v=jo(e,n,r.unit);c=r.extend?mi(c,v.anchor,v.head,r.extend):v}r.addNew?-1==p?(p=m.length,_i(l,Gr(e,m.concat([c]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"char"==r.unit&&!r.extend?(_i(l,Gr(e,m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),h=l.sel):yi(l,p,c,Ha):(p=0,_i(l,new Lu([c],0),Ha),h=l.sel);var g=n,y=s.wrapper.getBoundingClientRect(),b=0,T=yr(e,function(e){0!==e.buttons&&G(e)?o(e):u(e)}),E=yr(e,u);e.state.selectingText=E,eu(s.wrapper.ownerDocument,"mousemove",T),eu(s.wrapper.ownerDocument,"mouseup",E)}function Uo(e,t){var n=t.anchor,r=t.head,i=Z(e.doc,n.line);if(0==se(n,r)&&n.sticky==r.sticky)return t;var o=O(i);if(!o)return t;var a=w(o,n.ch,n.sticky),u=o[a];if(u.from!=n.ch&&u.to!=n.ch)return t;var s=a+(u.from==n.ch==(1!=u.level)?0:1);if(0==s||s==o.length)return t;var l;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=w(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==u.level?-1:1);l=c==s-1||c==s?0>f:f>0}var p=o[s+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new xu(new ue(n.line,h,m),r)}function Go(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&&M(t);var a=e.display,u=a.lineDiv.getBoundingClientRect();if(o>u.bottom||!P(e,n))return j(t);o-=u.top-a.viewOffset;for(var s=0;e.display.gutterSpecs.length>s;++s){var l=a.gutters.childNodes[s];if(l&&l.getBoundingClientRect().right>=i){return D(e,n,e,ie(e.doc,o),e.display.gutterSpecs[s].className,t),j(t)}}}function Bo(e,t){return Go(e,t,"gutterClick",!0)}function Qo(e,t){Ft(e.display,t)||qo(e,t)||I(e,t,"contextmenu")||Ra||e.display.input.onContextMenu(t)}function qo(e,t){return!!P(e,"gutterContextMenu")&&Go(e,t,"gutterContextMenu",!1)}function Ko(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 Ho(e,t,n){if(!t!=!(n&&n!=$u)){var r=e.display.dragFunctions,i=t?eu:x;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 zo(e){e.options.lineWrapping?(u(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ja(e.display.wrapper,"CodeMirror-wrap"),it(e)),Cn(e),wn(e),tn(e),setTimeout(function(){return ar(e)},100)}function Wo(e,t){var n=this;if(!(this instanceof Wo))return new Wo(e,t);this.options=t=t?c(t):{},c(Ju,t,!1);var r=t.value;"string"==typeof r?r=new Mu(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Wo.inputStyles[t.inputStyle](this),o=this.display=new Rr(e,r,i,t);o.wrapper.CodeMirror=this,Ko(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sr(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 Ua,keySeq:null,specialChars:null},t.autofocus&&!xa&&o.input.focus(),ba&&11>Ta&&setTimeout(function(){return n.display.input.reset(!0)},20),Yo(this),ro(),lr(this),this.curOp.forceUpdate=!0,Zr(this,r),t.autofocus&&!xa||this.hasFocus()?setTimeout(l(Gn,this),20):Bn(this);for(var a in Xu)Xu.hasOwnProperty(a)&&Xu[a](n,t[a],$u);Ar(this),t.finishInit&&t.finishInit(this);for(var u=0;Zu.length>u;++u)Zu[u](n);cr(this),Ea&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Yo(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),a=i.activeTouch,a.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return 1>=t.radiusX&&1>=t.radiusY}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var i=e.display;eu(i.scroller,"mousedown",yr(e,Ao)),ba&&11>Ta?eu(i.scroller,"dblclick",yr(e,function(t){if(!I(e,t)){var n=Nn(e,t);if(n&&!Bo(e,t)&&!Ft(e.display,t)){M(t);var r=e.findWordAt(n);vi(e.doc,r.anchor,r.head)}}})):eu(i.scroller,"dblclick",function(t){return I(e,t)||M(t)}),eu(i.scroller,"contextmenu",function(t){return Qo(e,t)});var o,a={end:0};eu(i.scroller,"touchstart",function(t){if(!I(e,t)&&!n(t)&&!Bo(e,t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end>300?null:a},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),eu(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),eu(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!Ft(i,n)&&null!=o.left&&!o.moved&&300>new Date-o.start){var a,u=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new xu(u,u):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(u):new xu(ue(u.line,0),he(e.doc,ue(u.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),M(n)}t()}),eu(i.scroller,"touchcancel",t),eu(i.scroller,"scroll",function(){i.scroller.clientHeight&&(nr(e,i.scroller.scrollTop),ir(e,i.scroller.scrollLeft,!0),D(e,"scroll",e))}),eu(i.scroller,"mousewheel",function(t){return Ur(e,t)}),eu(i.scroller,"DOMMouseScroll",function(t){return Ur(e,t)}),eu(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){I(e,t)||V(t)},over:function(t){I(e,t)||(eo(e,t),V(t))},start:function(t){return Zi(e,t)},drop:yr(e,Xi),leave:function(t){I(e,t)||to(e)}};var u=i.input.getField();eu(u,"keyup",function(t){return xo.call(e,t)}),eu(u,"keydown",yr(e,Oo)),eu(u,"keypress",yr(e,Do)),eu(u,"focus",function(t){return Gn(e,t)}),eu(u,"blur",function(t){return Bn(e,t)})}function $o(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=be(e,t).state:n="prev");var a=e.options.tabSize,u=Z(o,t),s=f(u.text,null,a);u.stateAfter&&(u.stateAfter=null);var l,c=u.text.match(/^\s*/)[0];if(r||/\S/.test(u.text)){if("smart"==n&&((l=o.mode.indent(i,u.text.slice(c.length),u.text))==qa||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?f(Z(o,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var p="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(l/a);m;--m)d+=a,p+="\t";if(l>d&&(p+=h(l-d)),p!=c)return ji(o,p,ue(t,0),ue(t,c.length),"+input"),u.stateAfter=null,!0;for(var v=0;o.sel.ranges.length>v;v++){var g=o.sel.ranges[v];if(g.head.line==t&&c.length>g.head.ch){var y=ue(t,c.length);yi(o,v,new xu(y,y));break}}}function Jo(e){es=e}function Xo(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,u="paste"==i||e.state.pasteIncoming>a,s=nu(t),l=null;if(u&&r.ranges.length>1)if(es&&es.text.join("\n")==t){if(r.ranges.length%es.text.length==0){l=[];for(var c=0;es.text.length>c;c++)l.push(o.splitLines(es.text[c]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=v(s,function(e){return[e]}));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),g=d.to();d.empty()&&(n&&n>0?h=ue(h.line,h.ch-n):e.state.overwrite&&!u?g=ue(g.line,Math.min(Z(o,g.line).text.length,g.ch+m(s).length)):u&&es&&es.lineWise&&es.text.join("\n")==t&&(h=g=ue(h.line,0)));var y={from:h,to:g,text:l?l[p%l.length]:s,origin:i||(u?"paste":e.state.cutIncoming>a?"cut":"+input")};Ii(e.doc,y),Tt(e,"inputRead",e,y)}t&&!u&&ea(e,t),Jn(e),2>e.curOp.updateInput&&(e.curOp.updateInput=f),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||gr(t,function(){return Xo(t,n,0,null,"paste")}),!0}function ea(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 u=0;o.electricChars.length>u;u++)if(t.indexOf(o.electricChars.charAt(u))>-1){a=$o(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Z(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=$o(e,i.head.line,"smart"));a&&Tt(e,"electricInput",e,i.head.line)}}}function ta(e){for(var t=[],n=[],r=0;e.doc.sel.ranges.length>r;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ue(i,0),head:ue(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function na(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function ra(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ea?e.style.width="1000px":e.setAttribute("wrap","off"),Oa&&(e.style.border="1px solid black"),na(e),t}function ia(e,t,n,r,i){function o(){var r=t.line+n;return r>=e.first&&e.first+e.size>r&&(t=new ue(r,t.ch,t.sticky),l=Z(e,r))}function a(r){var a;if(null==(a=i?yo(e.cm,l,t,n):vo(l,t,n))){if(r||!o())return!1;t=go(i,e.cm,l,t.line,n)}else t=a;return!0}var u=t,s=n,l=Z(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,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;0<=n||a(!d);d=!1){var h=l.text.charAt(t.ch)||"\n",m=E(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||m||(m="s"),c&&c!=m){0>n&&(n=1,a(),t.sticky="after");break}if(m&&(c=m),n>0&&!a(!d))break}var v=Oi(e,t,u,s,!0);return le(u,v)&&(v.hitSide=!0),v}function oa(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(u-.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 l;l=pn(e,a,i),l.outside;){if(0>n?0>=i:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}function aa(e,t){var n=Ht(e,t.line);if(!n||n.hidden)return null;var r=Z(e.doc,t.line),i=Qt(n,r,t.line),o=O(r,e.doc.direction),a="left";if(o){a=w(o,t.ch)%2?"right":"left"}var u=Yt(i.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function ua(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sa(e,t){return t&&(e.bad=!0),e}function la(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(){c&&(l+=f,p&&(l+=f),c=p=!1)}function u(e){e&&(a(),l+=e)}function s(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var l,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(ue(r,0),ue(i+1,0),o(+d));return void(h.length&&(l=h[0].find(0))&&u(ee(e.doc,l.from,l.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&a();for(var v=0;t.childNodes.length>v;v++)s(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(p=!0),m&&(c=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var l="",c=!1,f=e.doc.lineSeparator(),p=!1;s(t),t!=n;)t=t.nextSibling,p=!1;return l}function ca(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return sa(e.clipPos(ue(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;e.display.view.length>i;i++){var o=e.display.view[i];if(o.node==r)return fa(o,t,n)}}function fa(e,t,n){function r(t,n,r){for(var i=-1;(f?f.length:0)>i;i++)for(var o=0>i?c.map:f[i],a=0;o.length>a;a+=3){var u=o[a+2];if(u==t||u==n){var s=re(0>i?e.line:e.rest[i]),l=o[a]+r;return(0>r||u!=t)&&(l=o[a+(r?1:0)]),ue(s,l)}}}var i=e.text.firstChild,a=!1;if(!t||!o(i,t))return sa(ue(re(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[n],n=0,!t)){var u=e.rest?m(e.rest):e.line;return sa(ue(re(u),u.text.length),a)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=i;)l=l.parentNode;var c=e.measure,f=c.maps,p=r(s,l,n);if(p)return sa(p,a);for(var d=l.nextSibling,h=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(p=r(d,d.firstChild,0))return sa(ue(p.line,p.ch-h),a);h+=d.textContent.length}for(var v=l.previousSibling,g=n;v;v=v.previousSibling){if(p=r(v,v.firstChild,-1))return sa(ue(p.line,p.ch+g),a);g+=v.textContent.length}}function pa(e,t){function n(){e.value=s.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(eu(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var u=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=u}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(x(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Wo(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}var da=navigator.userAgent,ha=navigator.platform,ma=/gecko\/\d/i.test(da),va=/MSIE \d/.test(da),ga=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(da),ya=/Edge\/(\d+)/.exec(da),ba=va||ga||ya,Ta=ba&&(va?document.documentMode||6:+(ya||ga)[1]),Ea=!ya&&/WebKit\//.test(da),_a=Ea&&/Qt\/\d+\.\d+/.test(da),ka=!ya&&/Chrome\//.test(da),Ca=/Opera\//.test(da),Na=/Apple Computer/.test(navigator.vendor),Sa=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(da),wa=/PhantomJS/.test(da),Oa=!ya&&/AppleWebKit/.test(da)&&/Mobile\/\w+/.test(da),La=/Android/.test(da),xa=Oa||La||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(da),Da=Oa||/Mac/.test(ha),Ia=/\bCrOS\b/.test(da),Aa=/win/i.test(ha),Pa=Ca&&da.match(/Version\/(\d*\.\d*)/);Pa&&(Pa=+Pa[1]),Pa&&Pa>=15&&(Ca=!1,Ea=!0);var Fa,Ma=Da&&(_a||Ca&&(null==Pa||12.11>Pa)),Ra=ma||ba&&Ta>=9,ja=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:"")}};Fa=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 Va=function(e){e.select()};Oa?Va=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ba&&(Va=function(e){try{e.select()}catch(e){}});var Ua=function(){this.id=null};Ua.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ga,Ba,Qa=30,qa={toString:function(){return"CodeMirror.Pass"}},Ka={scroll:!1},Ha={origin:"*mouse"},za={origin:"+move"},Wa=[""],Ya=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,$a=/[\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]/,Ja=null,Xa=function(){function e(e){return e>247?1424>e||e>1524?1536>e||e>1785?1774>e||e>2220?8192>e||e>8203?8204==e?"b":"L":"w":"r":r.charAt(e-1536):"R":n.charAt(e)}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]/,u=/[Lb1n]/,s=/[1n]/;return function(n,r){var l="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],p=0;c>p;++p)f.push(e(n.charCodeAt(p)));for(var d=0,h=l;c>d;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var g=0,y=l;c>g;++g){var b=f[g];"1"==b&&"r"==y?f[g]="n":a.test(b)&&(y=b,"r"==b&&(f[g]="R"))}for(var T=1,E=f[0];c-1>T;++T){var _=f[T];"+"==_&&"1"==E&&"1"==f[T+1]?f[T]="1":","!=_||E!=f[T+1]||"1"!=E&&"n"!=E||(f[T]=E),E=_}for(var k=0;c>k;++k){var C=f[k];if(","==C)f[k]="N";else if("%"==C){var N=void 0;for(N=k+1;c>N&&"%"==f[N];++N);for(var S=k&&"!"==f[k-1]||c>N&&"1"==f[N]?"1":"N",w=k;N>w;++w)f[w]=S;k=N-1}}for(var O=0,L=l;c>O;++O){var x=f[O];"L"==L&&"1"==x?f[O]="L":a.test(x)&&(L=x)}for(var D=0;c>D;++D)if(o.test(f[D])){var I=void 0;for(I=D+1;c>I&&o.test(f[I]);++I);for(var A="L"==(D?f[D-1]:l),P="L"==(c>I?f[I]:l),F=A==P?A?"L":"R":l,M=D;I>M;++M)f[M]=F;D=I-1}for(var R,j=[],V=0;c>V;)if(u.test(f[V])){var U=V;for(++V;c>V&&u.test(f[V]);++V);j.push(new t(0,U,V))}else{var G=V,B=j.length;for(++V;c>V&&"L"!=f[V];++V);for(var Q=G;V>Q;)if(s.test(f[Q])){Q>G&&j.splice(B,0,new t(1,G,Q));var q=Q;for(++Q;V>Q&&s.test(f[Q]);++Q);j.splice(B,0,new t(2,q,Q)),G=Q}else++Q;V>G&&j.splice(B,0,new t(1,G,V))}return"ltr"==r&&(1==j[0].level&&(R=n.match(/^\s+/))&&(j[0].from=R[0].length,j.unshift(new t(0,0,R[0].length))),1==m(j).level&&(R=n.match(/\s+$/))&&(m(j).to-=R[0].length,j.push(new t(0,c-R[0].length,c)))),"rtl"==r?j.reverse():j}}(),Za=[],eu=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Za).concat(n)}},tu=function(){if(ba&&9>Ta)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),nu=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;r>=t;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ru=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},iu=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),ou=null,au={},uu={},su={},lu=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};lu.prototype.eol=function(){return this.pos>=this.string.length},lu.prototype.sol=function(){return this.pos==this.lineStart},lu.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lu.prototype.next=function(){if(this.string.length>this.pos)return this.string.charAt(this.pos++)},lu.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},lu.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},lu.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},lu.prototype.skipToEnd=function(){this.pos=this.string.length},lu.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},lu.prototype.backUp=function(e){this.pos-=e},lu.prototype.column=function(){return this.start>this.lastColumnPos&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},lu.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},lu.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?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},lu.prototype.current=function(){return this.string.slice(this.start,this.pos)},lu.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},lu.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},lu.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var cu=function(e,t){this.state=e,this.lookAhead=t},fu=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};fu.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},fu.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;e>=this.baseTokens[this.baseTokenPos];)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},fu.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fu.fromSaved=function(e,t,n){return t instanceof cu?new fu(e,$(e.mode,t.state),n,t.lookAhead):new fu(e,$(e.mode,t),n)},fu.prototype.save=function(e){var t=!1!==e?$(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cu(t,this.maxLookAhead):t};var pu=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},du=!1,hu=!1,mu=function(e,t,n){this.text=e,Ue(this,t),this.height=n?n(this):1};mu.prototype.lineNo=function(){return re(this)},F(mu);var vu,gu={},yu={},bu=null,Tu=null,Eu={left:0,right:0,top:0,bottom:0},_u=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");i.tabIndex=o.tabIndex=-1,e(i),e(o),eu(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),eu(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ba&&8>Ta&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_u.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}},_u.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_u.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_u.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=Da&&!Sa?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ua,this.disableVert=new Ua},_u.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)},_u.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ku=function(){};ku.prototype.update=function(){return{bottom:0,right:0}},ku.prototype.setScrollLeft=function(){},ku.prototype.setScrollTop=function(){},ku.prototype.clear=function(){};var Cu={native:_u,null:ku},Nu=0,Su=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Kn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=En(e),this.events=[]};Su.prototype.signal=function(e,t){P(e,t)&&this.events.push(arguments)},Su.prototype.finish=function(){for(var e=this,t=0;this.events.length>t;t++)D.apply(null,e.events[t])};var wu=0,Ou=null;ba?Ou=-.53:ma?Ou=15:ka?Ou=-.7:Na&&(Ou=-1/3);var Lu=function(e,t){this.ranges=e,this.primIndex=t};Lu.prototype.primary=function(){return this.ranges[this.primIndex]},Lu.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;this.ranges.length>n;n++){var r=t.ranges[n],i=e.ranges[n];if(!le(r.anchor,i.anchor)||!le(r.head,i.head))return!1}return!0},Lu.prototype.deepCopy=function(){for(var e=this,t=[],n=0;this.ranges.length>n;n++)t[n]=new xu(ce(e.ranges[n].anchor),ce(e.ranges[n].head));return new Lu(t,this.primIndex)},Lu.prototype.somethingSelected=function(){for(var e=this,t=0;this.ranges.length>t;t++)if(!e.ranges[t].empty())return!0;return!1},Lu.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;this.ranges.length>r;r++){var i=n.ranges[r];if(se(t,i.from())>=0&&0>=se(e,i.to()))return r}return-1};var xu=function(e,t){this.anchor=e,this.head=t};xu.prototype.from=function(){return pe(this.anchor,this.head)},xu.prototype.to=function(){return fe(this.anchor,this.head)},xu.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Qi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;i>r;++r){var o=n.lines[r];n.height-=o.height,at(o),Tt(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;t.length>i;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;i>e;++e)if(n(r.lines[e]))return!0}},qi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;this.children.length>r;++r){var i=n.children[r],o=i.chunkSize();if(o>e){var a=Math.min(t,o-e),u=i.height;if(i.removeInner(e,a),n.height-=u-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(25>this.size-t&&(this.children.length>1||!(this.children[0]instanceof Qi))){var s=[];this.collapse(s),this.children=[new Qi(s)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;this.children.length>n;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;this.children.length>i;++i){var o=r.children[i],a=o.chunkSize();if(a>=e){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var u=o.lines.length%25+25,s=u;o.lines.length>s;){var l=new Qi(o.lines.slice(s,s+=25));o.height-=l.height,r.children.splice(++i,0,l),l.parent=r}o.lines=o.lines.slice(0,u),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(this.children.length>10){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new qi(t);if(e.parent){e.size-=n.size,e.height-=n.height;e.parent.children.splice(p(e.parent.children,e)+1,0,n)}else{var r=new qi(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;this.children.length>i;++i){var o=r.children[i],a=o.chunkSize();if(a>e){var u=Math.min(t,a-e);if(o.iterN(e,u,n))return!0;if(0==(t-=u))break;e=0}else e-=a}}};var Du=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};Du.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=re(r);if(null!=i&&n){for(var o=0;n.length>o;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var a=Pt(this);ne(r,Math.max(0,r.height-a)),t&&(gr(t,function(){Ki(t,r,-a),On(t,i,"widget")}),Tt(t,"lineWidgetCleared",t,this,i))}},Du.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Pt(this)-t;i&&(et(this.doc,r)||ne(r,r.height+i),n&&gr(n,function(){n.curOp.forceUpdate=!0,Ki(n,r,i),Tt(n,"lineWidgetChanged",n,e,re(r))}))},F(Du);var Iu=0,Au=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Iu};Au.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&lr(t),P(this,"clear")){var r=this.find();r&&Tt(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;this.lines.length>a;++a){var u=e.lines[a],s=De(u.markedSpans,e);t&&!e.collapsed?On(t,re(u),"text"):t&&(null!=s.to&&(o=re(u)),null!=s.from&&(i=re(u))),u.markedSpans=Ie(u.markedSpans,s),null==s.from&&e.collapsed&&!et(e.doc,u)&&t&&ne(u,bn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;this.lines.length>l;++l){var c=Ye(e.lines[l]),f=rt(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&wn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ni(t.doc)),t&&Tt(t,"markerCleared",t,this,i,o),n&&cr(t),this.parent&&this.parent.clear()}},Au.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;this.lines.length>o;++o){var a=n.lines[o],u=De(a.markedSpans,n);if(null!=u.from&&(r=ue(t?a:re(a),u.from),-1==e))return r;if(null!=u.to&&(i=ue(t?a:re(a),u.to),1==e))return i}return r&&{from:r,to:i}},Au.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&gr(r,function(){var i=t.line,o=re(t.line),a=Ht(r,o);if(a&&(Zt(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!et(n.doc,i)&&null!=n.height){var u=n.height;n.height=null;var s=Pt(n)-u;s&&ne(i,i.height+s)}Tt(r,"markerChanged",r,e)})},Au.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=p(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Au.prototype.detachLine=function(e){if(this.lines.splice(p(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},F(Au);var Pu=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;e.length>r;++r)e[r].parent=n};Pu.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;this.markers.length>t;++t)e.markers[t].clear();Tt(this,"clear")}},Pu.prototype.find=function(e,t){return this.primary.find(e,t)},F(Pu);var Fu=0,Mu=function(e,t,n,r,i){if(!(this instanceof Mu))return new Mu(e,t,n,r,i);null==n&&(n=0),qi.call(this,[new Qi([new mu("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ue(n,0);this.sel=Br(o),this.history=new ni(null),this.id=++Fu,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Jr(this,{from:o,to:o,text:e}),_i(this,Br(o),Ka)};Mu.prototype=b(qi.prototype,{constructor:Mu,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;t.length>r;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=te(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Tr(function(e){var t=ue(this.first,0),n=this.first+this.size-1;Ii(this,{from:t,to:ue(n,Z(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Xn(this.cm,0,0),_i(this,Br(t),Ka)}),replaceRange:function(e,t,n,r){t=he(this,t),n=n?he(this,n):t,ji(this,e,t,n,r)},getRange:function(e,t,n){var r=ee(this,he(this,e),he(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(oe(this,e))return Z(this,e)},getLineNumber:function(e){return re(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Z(this,e)),Ye(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return he(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Tr(function(e,t,n){bi(this,he(this,"number"==typeof e?ue(e,t||0):e),null,n)}),setSelection:Tr(function(e,t,n){bi(this,he(this,e),he(this,t||e),n)}),extendSelection:Tr(function(e,t,n){vi(this,he(this,e),t&&he(this,t),n)}),extendSelections:Tr(function(e,t){gi(this,ve(this,e),t)}),extendSelectionsBy:Tr(function(e,t){gi(this,ve(this,v(this.sel.ranges,e)),t)}),setSelections:Tr(function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;e.length>o;o++)i[o]=new xu(he(r,e[o].anchor),he(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),_i(this,Gr(this.cm,i,t),n)}}),addSelection:Tr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new xu(he(this,e),he(this,t||e))),_i(this,Gr(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;r.length>i;i++){var o=ee(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;r.length>i;i++){var o=ee(t,r[i].from(),r[i].to());!1!==e&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;this.sel.ranges.length>i;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Tr(function(e,t,n){for(var r=this,i=[],o=this.sel,a=0;o.ranges.length>a;a++){var u=o.ranges[a];i[a]={from:u.from(),to:u.to(),text:r.splitLines(e[a]),origin:n}}for(var s=t&&"end"!=t&&zr(this,i,t),l=i.length-1;l>=0;l--)Ii(r,i[l]);s?Ei(this,s):this.cm&&Jn(this.cm)}),undo:Tr(function(){Pi(this,"undo")}),redo:Tr(function(){Pi(this,"redo")}),undoSelection:Tr(function(){Pi(this,"undo",!0)}),redoSelection:Tr(function(){Pi(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;e.done.length>r;r++)e.done[r].ranges||++t;for(var i=0;e.undone.length>i;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new ni(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:hi(this.history.done),undone:hi(this.history.undone)}},setHistory:function(e){var t=this.history=new ni(this.history.maxGeneration);t.done=hi(e.done.slice(0),null,!0),t.undone=hi(e.undone.slice(0),null,!0)},setGutterMarker:Tr(function(e,t,n){return Bi(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&_(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Tr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Bi(t,n,"gutter",function(){return n.gutterMarkers[e]=null,_(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!oe(this,e))return null;if(t=e,!(e=Z(this,e)))return null}else if(null==(t=re(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Tr(function(t,n,r){return Bi(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:Tr(function(t,n,r){return Bi(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var u=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&u!=o.length?" ":"")+o.slice(u)||null}return!0})}),addLineWidget:Tr(function(e,t,n){return Hi(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return zi(this,he(this,e),he(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=he(this,e),zi(this,e,e,n,"bookmark")},findMarksAt:function(e){e=he(this,e);var t=[],n=Z(this,e.line).markedSpans;if(n)for(var r=0;n.length>r;++r){var i=n[r];null!=i.from&&i.from>e.ch||null!=i.to&&e.ch>i.to||t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=he(this,e),t=he(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 u=0;a.length>u;u++){var s=a[u];null!=s.to&&i==e.line&&e.ch>=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;n.length>r;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),he(this,ue(n,t))},indexFromPos:function(e){e=he(this,e);var t=e.ch;if(this.first>e.line||0>e.ch)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Mu(te(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&n>e.to&&(n=e.to);var r=new Mu(te(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],$i(r,Yi(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Wo&&(e=e.doc),this.linked)for(var n=0;this.linked.length>n;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Ji(Yi(t));break}}if(e.history==this.history){var i=[e.id];Xr(e,function(e){return i.push(e.id)},!0),e.history=new ni(null),e.history.done=hi(this.history.done,i),e.history.undone=hi(this.history.undone,i)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):nu(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Tr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ti(this.cm))})}),Mu.prototype.eachLine=Mu.prototype.iter;for(var Ru=0,ju=!1,Vu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uu=0;10>Uu;Uu++)Vu[Uu+48]=Vu[Uu+96]=Uu+"";for(var Gu=65;90>=Gu;Gu++)Vu[Gu]=String.fromCharCode(Gu);for(var Bu=1;12>=Bu;Bu++)Vu[Bu+111]=Vu[Bu+63235]="F"+Bu;var Qu={};Qu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Qu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Qu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Qu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Qu.default=Da?Qu.macDefault:Qu.pcDefault;var qu={selectAll:xi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ka)},killLine:function(e){return ho(e,function(t){if(t.empty()){var n=Z(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.linei;i++){var o=n[i].from();t.push(h(r-f(e.getLine(o.line),o.ch,r)%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return gr(e,function(){for(var t=e.listSelections(),n=[],r=0;t.length>r;r++)if(t[r].empty()){var i=t[r].head,o=Z(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ue(i.line,i.ch-1)),i.ch>0)i=new ue(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ue(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Z(e.doc,i.line-1).text;a&&(i=new ue(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ue(i.line-1,a.length-1),i,"+transpose"))}n.push(new xu(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return gr(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;t.length>r;r++)e.indentLine(t[r].from().line,null,!0);Jn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},Ku=new Ua,Hu=null,zu=function(e,t,n){this.time=e,this.pos=t,this.button=n};zu.prototype.compare=function(e,t,n){return this.time+400>e&&0==se(t,this.pos)&&n==this.button};var Wu,Yu,$u={toString:function(){return"CodeMirror.Init"}},Ju={},Xu={};Wo.defaults=Ju,Wo.optionHandlers=Xu;var Zu=[];Wo.defineInitHook=function(e){return Zu.push(e)};var es=null,ts=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ua,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ts.prototype.init=function(e){function t(e){if(!I(i,e)){if(i.somethingSelected())Jo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Jo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ka),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=es.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=ra(),u=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),u.value=es.text.join("\n");var s=document.activeElement;Va(u),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;na(o,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),eu(o,"paste",function(e){I(i,e)||Zo(e,i)||Ta>11||setTimeout(yr(i,function(){return n.updateFromDOM()}),20)}),eu(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),eu(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),eu(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),eu(o,"touchstart",function(){return r.forceCompositionEnd()}),eu(o,"input",function(){n.composing||n.readFromDOMSoon()}),eu(o,"copy",t),eu(o,"cut",t)},ts.prototype.prepareSelection=function(){var e=Pn(this.cm,!1);return e.focus=this.cm.state.focused,e},ts.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ts.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ts.prototype.showPrimarySelection=function(){var e=this.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||t.display.viewFrom>i.line)return void e.removeAllRanges();var o=ca(t,e.anchorNode,e.anchorOffset),a=ca(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=se(pe(o,a),r)||0!=se(fe(o,a),i)){var u=t.display.view,s=r.line>=t.display.viewFrom&&aa(t,r)||{node:u[0].measure.map[2],offset:0},l=t.display.viewTo>i.line&&aa(t,i);if(!l){var c=u[u.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;l={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!s||!l)return void e.removeAllRanges();var p,d=e.rangeCount&&e.getRangeAt(0);try{p=Fa(s.node,s.offset,l.offset,l.node)}catch(e){}p&&(!ma&&t.state.focused?(e.collapse(s.node,s.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),d&&null==e.anchorNode?e.addRange(d):ma&&this.startGracePeriod()),this.rememberSelection()}},ts.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ts.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},ts.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ts.prototype.selectionInEditor=function(){var e=this.getSelection();return!!e.rangeCount&&o(this.div,e.getRangeAt(0).commonAncestorContainer)},ts.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},ts.prototype.blur=function(){this.div.blur()},ts.prototype.getField=function(){return this.div},ts.prototype.supportsTouch=function(){return!0},ts.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():gr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},ts.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ts.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(La&&ka&&this.cm.display.gutterSpecs.length&&ua(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ca(t,e.anchorNode,e.anchorOffset),r=ca(t,e.focusNode,e.focusOffset);n&&r&&gr(t,function(){_i(t.doc,Br(n,r),Ka),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},ts.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(0==r.ch&&r.line>e.firstLine()&&(r=ue(r.line-1,Z(e.doc,r.line-1).length)),i.ch==Z(e.doc,i.line).text.length&&i.liner.line||i.line>t.viewTo-1)return!1;var o,a,u;r.line==t.viewFrom||0==(o=Sn(e,r.line))?(a=re(t.view[0].line),u=t.view[0].node):(a=re(t.view[o].line),u=t.view[o-1].node.nextSibling);var s,l,c=Sn(e,i.line);if(c==t.view.length-1?(s=t.viewTo-1,l=t.lineDiv.lastChild):(s=re(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!u)return!1;for(var f=e.doc.splitLines(la(e,u,l,a,s)),p=ee(e.doc,ue(a,0),ue(s,Z(e.doc,s).text.length));f.length>1&&p.length>1;)if(m(f)==m(p))f.pop(),p.pop(),s--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),a++}for(var d=0,h=0,v=f[0],g=p[0],y=Math.min(v.length,g.length);y>d&&v.charCodeAt(d)==g.charCodeAt(d);)++d;for(var b=m(f),T=m(p),E=Math.min(b.length-(1==f.length?d:0),T.length-(1==p.length?d:0));E>h&&b.charCodeAt(b.length-h-1)==T.charCodeAt(T.length-h-1);)++h;if(1==f.length&&1==p.length&&a==r.line)for(;d&&d>r.ch&&b.charCodeAt(b.length-h-1)==T.charCodeAt(T.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=ue(a,d),k=ue(s,p.length?m(p).length-h:0);return f.length>1||f[0]||se(_,k)?(ji(e.doc,f,_,k,"+input"),!0):void 0},ts.prototype.ensurePolled=function(){this.forceCompositionEnd()},ts.prototype.reset=function(){this.forceCompositionEnd()},ts.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ts.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))},ts.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||gr(this.cm,function(){return wn(e.cm)})},ts.prototype.setUneditable=function(e){e.contentEditable="false"},ts.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||yr(this.cm,Xo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ts.prototype.readOnlyChanged=function(e){this.div.contentEditable=("nocursor"!=e)+""},ts.prototype.onContextMenu=function(){},ts.prototype.resetPosition=function(){},ts.prototype.needsContentAttribute=!0;var ns=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ua,this.hasSelection=!1,this.composing=null};ns.prototype.init=function(e){function t(e){if(!I(i,e)){if(i.somethingSelected())Jo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Jo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ka):(r.prevInput="",o.value=t.text.join("\n"),Va(o))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}var n=this,r=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Oa&&(o.style.width="0px"),eu(o,"input",function(){ba&&Ta>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),eu(o,"paste",function(e){I(i,e)||Zo(e,i)||(i.state.pasteIncoming=+new Date,r.fastPoll())}),eu(o,"cut",t),eu(o,"copy",t),eu(e.scroller,"paste",function(t){if(!Ft(e,t)&&!I(i,t)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void r.focus();var n=new Event("paste");n.clipboardData=t.clipboardData,o.dispatchEvent(n)}}),eu(e.lineSpace,"selectstart",function(t){Ft(e,t)||M(t)}),eu(o,"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"})}}),eu(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},ns.prototype.createField=function(){this.wrapper=ra(),this.textarea=this.wrapper.firstChild},ns.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Pn(e);if(e.options.moveInputWithCursor){var i=ln(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},ns.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")},ns.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&&Va(this.textarea),ba&&Ta>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ba&&Ta>=9&&(this.hasSelection=null))}},ns.prototype.getField=function(){return this.textarea},ns.prototype.supportsTouch=function(){return!1},ns.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!xa||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},ns.prototype.blur=function(){this.textarea.blur()},ns.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ns.prototype.receivedFocus=function(){this.slowPoll()},ns.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ns.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)},ns.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||ru(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(ba&&Ta>=9&&this.hasSelection===i||Da&&/[\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,u=Math.min(r.length,i.length);u>a&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return gr(t,function(){Xo(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||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},ns.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ns.prototype.onKeyPress=function(){ba&&Ta>=9&&(this.hasSelection=null),this.fastPoll()},ns.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==n&&(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=l,ba&&9>Ta&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=a.selectionStart)){(!ba||ba&&9>Ta)&&t();var e=0,u=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?yr(i,xi)(i):10>e++?o.detectingSelectAll=setTimeout(u,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(u,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea;r.contextMenuPending&&r.contextMenuPending();var u=Nn(i,e),s=o.scroller.scrollTop;if(u&&!Ca){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(u)&&yr(i,_i)(i.doc,Br(u),Ka);var l=a.style.cssText,c=r.wrapper.style.cssText,f=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",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: "+(ba?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(Ea&&(p=window.scrollY),o.input.focus(),Ea&&window.scrollTo(null,p),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=n,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),ba&&Ta>=9&&t(),Ra){V(e);var d=function(){x(window,"mouseup",d),setTimeout(n,20)};eu(window,"mouseup",d)}else setTimeout(n,50)}},ns.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},ns.prototype.setUneditable=function(){},ns.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=$u&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=$u,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Wr(e)},!0),t("indentUnit",2,Wr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Yr(e),tn(e),wn(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(ue(r,o))}r++});for(var i=n.length-1;i>=0;i--)ji(e.doc,t,n[i],ue(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=$u&&e.refresh()}),t("specialCharPlaceholder",lt,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",xa?"contenteditable":"textarea",function(){throw 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("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),t("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),t("rtlMoveVisually",!Aa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Ko(e),Mr(e)},!0),t("keyMap","default",function(e,t,n){var r=po(t),i=n!=$u&&po(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,zo,!0),t("gutters",[],function(e,t){e.display.gutterSpecs=Pr(t,e.options.lineNumbers),Mr(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?_n(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return ar(e)},!0),t("scrollbarStyle","native",function(e){sr(e),ar(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Pr(e.options.gutters,t),Mr(e)},!0),t("firstLineNumber",1,Mr,!0),t("lineNumberFormatter",function(e){return e},Mr,!0),t("showCursorWhenSelecting",!1,An,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("selectionsMayTouch",!1),t("readOnly",!1,function(e,t){"nocursor"==t&&(Bn(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,Ho),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,An,!0),t("singleCursorHeightPerLine",!0,An,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Yr,!0),t("addModeClass",!1,Yr,!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,Yr,!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),t("phrases",null)}(Wo),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)&&yr(this,t[e])(this,n,i),D(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"](po(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;t.length>n;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:br(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw Error("Overlays may not be stateful.");g(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,wn(this)}),removeOverlay:br(function(e){for(var t=this,n=this.state.overlays,r=0;n.length>r;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void wn(t)}}),indentLine:br(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),oe(this.doc,e)&&$o(this,e,t,n)}),indentSelection:br(function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;n.length>i;i++){var o=n[i];if(o.empty())o.head.line>r&&($o(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&Jn(t));else{var a=o.from(),u=o.to(),s=Math.max(r,a.line);r=Math.min(t.lastLine(),u.line-(u.ch?0:1))+1;for(var l=s;r>l;++l)$o(t,l,e);var c=t.doc.sel.ranges;0==a.ch&&n.length==c.length&&c[i].from().ch>0&&yi(t.doc,i,new xu(a,c[i].to()),Ka)}}}),getTokenAt:function(e,t){return ke(this,e,t)},getLineTokens:function(e,t){return ke(this,ue(e),t,!0)},getTokenTypeAt:function(e){e=he(this.doc,e);var t,n=ye(this,Z(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(o>(a?n[2*a-1]:0)){if(n[2*a+1]>=o){t=n[2*a+2];break}r=a+1}else i=a}var u=t?t.indexOf("overlay "):-1;return 0>u?t:0==u?null:t.slice(0,u-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],a=this.getModeAt(e);if("string"==typeof a[t])o[a[t]]&&i.push(o[a[t]]);else if(a[t])for(var u=0;a[t].length>u;u++){var s=o[a[t][u]];s&&i.push(s)}else a.helperType&&o[a.helperType]?i.push(o[a.helperType]):o[a.name]&&i.push(o[a.name]);for(var l=0;o._global.length>l;l++){var c=o._global[l];c.pred(a,r)&&-1==p(i,c.val)&&i.push(c.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=de(n,null==e?n.first+n.size-1:e),be(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?he(this.doc,e):e?r.from():r.to(),ln(this,n,t||"page")},charCoords:function(e,t){return sn(this,he(this.doc,e),t||"page")},coordsChar:function(e,t){return e=un(this,e,t||"page"),pn(this,e.left,e.top)},lineAtHeight:function(e,t){return e=un(this,{top:e,left:0},t||"page").top,ie(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;this.doc.first>e?e=this.doc.first:e>o&&(e=o,i=!0),r=Z(this.doc,e)}else r=e;return an(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-nt(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return Tn(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=ln(this,he(this.doc,e));var a=e.bottom,u=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),l=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),u+t.offsetWidth>l&&(u=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(u=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&Wn(this,{left:u,top:a,right:u+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:br(Oo),triggerOnKeyPress:br(Do),triggerOnKeyUp:xo,triggerOnMouseDown:br(Ao),execCommand:function(e){if(qu.hasOwnProperty(e))return qu[e].call(null,this)},triggerElectric:br(function(e){ea(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;0>t&&(o=-1,t=-t);for(var a=he(this.doc,e),u=0;t>u&&(a=ia(i.doc,a,o,n,r),!a.hitSide);++u);return a},moveH:br(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?ia(n.doc,r.head,e,t,n.options.rtlMoveVisually):0>e?r.from():r.to()},za)}),deleteH:br(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ho(this,function(n){var i=ia(r,n.head,e,t,!1);return 0>e?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=this,o=1,a=r;0>t&&(o=-1,t=-t);for(var u=he(this.doc,e),s=0;t>s;++s){var l=ln(i,u,"div");if(null==a?a=l.left:l.left=a,u=oa(i,l,o,n),u.hitSide)break}return u},moveV:br(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return 0>e?a.from():a.to();var u=ln(n,a.head,"div");null!=a.goalColumn&&(u.left=a.goalColumn),i.push(u.left);var s=oa(n,u,e,t);return"page"==t&&a==r.sel.primary()&&$n(n,sn(n,s,"div").top-u.top),s},za),i.length)for(var a=0;r.sel.ranges.length>a;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=Z(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;for(var a=n.charAt(r),u=E(a,o)?function(e){return E(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!E(e)};r>0&&u(n.charAt(r-1));)--r;for(;n.length>i&&u(n.charAt(i));)++i}return new xu(ue(e.line,r),ue(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?u(this.display.cursorDiv,"CodeMirror-overwrite"):ja(this.display.cursorDiv,"CodeMirror-overwrite"),D(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:br(function(e,t){Xn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Vt(this)-this.display.barHeight,width:e.scrollWidth-Vt(this)-this.display.barWidth,clientHeight:Gt(this),clientWidth:Ut(this)}},scrollIntoView:br(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ue(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Zn(this,e):tr(this,e.from,e.to,e.margin)}),setSize:br(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(e+"")?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&en(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;e.widgets.length>t;t++)if(e.widgets[t].noHScroll){On(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,D(this,"refresh",this)}),operation:function(e){return gr(this,e)},startOperation:function(){return lr(this)},endOperation:function(){return cr(this)},refresh:br(function(){var e=this.display.cachedTextHeight;wn(this),this.curOp.forceUpdate=!0,tn(this),Xn(this,this.doc.scrollLeft,this.doc.scrollTop),xr(this.display),(null==e||Math.abs(e-bn(this.display))>.5)&&Cn(this),D(this,"refresh",this)}),swapDoc:br(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Zr(this,e),tn(this),this.display.input.reset(),Xn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},F(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})}}(Wo);var rs="iter insert remove copy getEditor constructor".split(" ");for(var is in Mu.prototype)Mu.prototype.hasOwnProperty(is)&&0>p(rs,is)&&(Wo.prototype[is]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mu.prototype[is]));return F(Mu),Wo.inputStyles={textarea:ns,contenteditable:ts},Wo.defineMode=function(e){Wo.defaults.mode||"null"==e||(Wo.defaults.mode=e),K.apply(this,arguments)},Wo.defineMIME=H,Wo.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Wo.defineMIME("text/plain","null"),Wo.defineExtension=function(e,t){Wo.prototype[e]=t},Wo.defineDocExtension=function(e,t){Mu.prototype[e]=t},Wo.fromTextArea=pa,function(e){e.off=x,e.on=eu,e.wheelEventPixels=Vr,e.Doc=Mu,e.splitLines=nu,e.countColumn=f,e.findColumn=d,e.isWordChar=T,e.Pass=qa,e.signal=D,e.Line=mu,e.changeEnd=Qr,e.scrollbarModel=Cu,e.Pos=ue,e.cmpPos=se,e.modes=au,e.mimeModes=uu,e.resolveMode=z,e.getMode=W,e.modeExtensions=su,e.extendMode=Y,e.copyState=$,e.startState=X,e.innerMode=J,e.commands=qu,e.keyMap=Qu,e.keyName=fo,e.isModifierKey=lo,e.lookupKey=so,e.normalizeKeyMap=uo,e.StringStream=lu,e.SharedTextMarker=Pu,e.TextMarker=Au,e.LineWidget=Du,e.e_preventDefault=M,e.e_stopPropagation=R,e.e_stop=V,e.addClass=u,e.contains=o,e.rmClass=ja,e.keyNames=Vu}(Wo),Wo.version="5.48.2",Wo})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(151);n.n(r);n.o(r,"graphql")&&n.d(t,"graphql",function(){return r.graphql}),n.o(r,"graphqlSync")&&n.d(t,"graphqlSync",function(){return r.graphqlSync});var i=n(157);n.n(i);n.o(i,"GraphQLSchema")&&n.d(t,"GraphQLSchema",function(){return i.GraphQLSchema}),n.o(i,"GraphQLScalarType")&&n.d(t,"GraphQLScalarType",function(){return i.GraphQLScalarType}),n.o(i,"GraphQLObjectType")&&n.d(t,"GraphQLObjectType",function(){return i.GraphQLObjectType}),n.o(i,"GraphQLInterfaceType")&&n.d(t,"GraphQLInterfaceType",function(){return i.GraphQLInterfaceType}),n.o(i,"GraphQLUnionType")&&n.d(t,"GraphQLUnionType",function(){return i.GraphQLUnionType}),n.o(i,"GraphQLEnumType")&&n.d(t,"GraphQLEnumType",function(){return i.GraphQLEnumType}),n.o(i,"GraphQLInputObjectType")&&n.d(t,"GraphQLInputObjectType",function(){return i.GraphQLInputObjectType}),n.o(i,"GraphQLList")&&n.d(t,"GraphQLList",function(){return i.GraphQLList}),n.o(i,"GraphQLNonNull")&&n.d(t,"GraphQLNonNull",function(){return i.GraphQLNonNull}),n.o(i,"GraphQLDirective")&&n.d(t,"GraphQLDirective",function(){return i.GraphQLDirective}),n.o(i,"TypeKind")&&n.d(t,"TypeKind",function(){return i.TypeKind}),n.o(i,"specifiedScalarTypes")&&n.d(t,"specifiedScalarTypes",function(){return i.specifiedScalarTypes}),n.o(i,"GraphQLInt")&&n.d(t,"GraphQLInt",function(){return i.GraphQLInt}),n.o(i,"GraphQLFloat")&&n.d(t,"GraphQLFloat",function(){return i.GraphQLFloat}),n.o(i,"GraphQLString")&&n.d(t,"GraphQLString",function(){return i.GraphQLString}),n.o(i,"GraphQLBoolean")&&n.d(t,"GraphQLBoolean",function(){return i.GraphQLBoolean}),n.o(i,"GraphQLID")&&n.d(t,"GraphQLID",function(){return i.GraphQLID}),n.o(i,"specifiedDirectives")&&n.d(t,"specifiedDirectives",function(){return i.specifiedDirectives}),n.o(i,"GraphQLIncludeDirective")&&n.d(t,"GraphQLIncludeDirective",function(){return i.GraphQLIncludeDirective}),n.o(i,"GraphQLSkipDirective")&&n.d(t,"GraphQLSkipDirective",function(){return i.GraphQLSkipDirective}),n.o(i,"GraphQLDeprecatedDirective")&&n.d(t,"GraphQLDeprecatedDirective",function(){return i.GraphQLDeprecatedDirective}),n.o(i,"DEFAULT_DEPRECATION_REASON")&&n.d(t,"DEFAULT_DEPRECATION_REASON",function(){return i.DEFAULT_DEPRECATION_REASON}),n.o(i,"SchemaMetaFieldDef")&&n.d(t,"SchemaMetaFieldDef",function(){return i.SchemaMetaFieldDef}),n.o(i,"TypeMetaFieldDef")&&n.d(t,"TypeMetaFieldDef",function(){return i.TypeMetaFieldDef}),n.o(i,"TypeNameMetaFieldDef")&&n.d(t,"TypeNameMetaFieldDef",function(){return i.TypeNameMetaFieldDef}),n.o(i,"introspectionTypes")&&n.d(t,"introspectionTypes",function(){return i.introspectionTypes}),n.o(i,"__Schema")&&n.d(t,"__Schema",function(){return i.__Schema}),n.o(i,"__Directive")&&n.d(t,"__Directive",function(){return i.__Directive}),n.o(i,"__DirectiveLocation")&&n.d(t,"__DirectiveLocation",function(){return i.__DirectiveLocation}),n.o(i,"__Type")&&n.d(t,"__Type",function(){return i.__Type}),n.o(i,"__Field")&&n.d(t,"__Field",function(){return i.__Field}),n.o(i,"__InputValue")&&n.d(t,"__InputValue",function(){return i.__InputValue}),n.o(i,"__EnumValue")&&n.d(t,"__EnumValue",function(){return i.__EnumValue}),n.o(i,"__TypeKind")&&n.d(t,"__TypeKind",function(){return i.__TypeKind}),n.o(i,"isSchema")&&n.d(t,"isSchema",function(){return i.isSchema}),n.o(i,"isDirective")&&n.d(t,"isDirective",function(){return i.isDirective}),n.o(i,"isType")&&n.d(t,"isType",function(){return i.isType}),n.o(i,"isScalarType")&&n.d(t,"isScalarType",function(){return i.isScalarType}),n.o(i,"isObjectType")&&n.d(t,"isObjectType",function(){return i.isObjectType}),n.o(i,"isInterfaceType")&&n.d(t,"isInterfaceType",function(){return i.isInterfaceType}),n.o(i,"isUnionType")&&n.d(t,"isUnionType",function(){return i.isUnionType}),n.o(i,"isEnumType")&&n.d(t,"isEnumType",function(){return i.isEnumType}),n.o(i,"isInputObjectType")&&n.d(t,"isInputObjectType",function(){return i.isInputObjectType}),n.o(i,"isListType")&&n.d(t,"isListType",function(){return i.isListType}),n.o(i,"isNonNullType")&&n.d(t,"isNonNullType",function(){return i.isNonNullType}),n.o(i,"isInputType")&&n.d(t,"isInputType",function(){return i.isInputType}),n.o(i,"isOutputType")&&n.d(t,"isOutputType",function(){return i.isOutputType}),n.o(i,"isLeafType")&&n.d(t,"isLeafType",function(){return i.isLeafType}),n.o(i,"isCompositeType")&&n.d(t,"isCompositeType",function(){return i.isCompositeType}),n.o(i,"isAbstractType")&&n.d(t,"isAbstractType",function(){return i.isAbstractType}),n.o(i,"isWrappingType")&&n.d(t,"isWrappingType",function(){return i.isWrappingType}),n.o(i,"isNullableType")&&n.d(t,"isNullableType",function(){return i.isNullableType}),n.o(i,"isNamedType")&&n.d(t,"isNamedType",function(){return i.isNamedType}),n.o(i,"isSpecifiedScalarType")&&n.d(t,"isSpecifiedScalarType",function(){return i.isSpecifiedScalarType}),n.o(i,"isIntrospectionType")&&n.d(t,"isIntrospectionType",function(){return i.isIntrospectionType}),n.o(i,"isSpecifiedDirective")&&n.d(t,"isSpecifiedDirective",function(){return i.isSpecifiedDirective}),n.o(i,"assertType")&&n.d(t,"assertType",function(){return i.assertType}),n.o(i,"assertScalarType")&&n.d(t,"assertScalarType",function(){return i.assertScalarType}),n.o(i,"assertObjectType")&&n.d(t,"assertObjectType",function(){return i.assertObjectType}),n.o(i,"assertInterfaceType")&&n.d(t,"assertInterfaceType",function(){return i.assertInterfaceType}),n.o(i,"assertUnionType")&&n.d(t,"assertUnionType",function(){return i.assertUnionType}),n.o(i,"assertEnumType")&&n.d(t,"assertEnumType",function(){return i.assertEnumType}),n.o(i,"assertInputObjectType")&&n.d(t,"assertInputObjectType",function(){return i.assertInputObjectType}),n.o(i,"assertListType")&&n.d(t,"assertListType",function(){return i.assertListType}),n.o(i,"assertNonNullType")&&n.d(t,"assertNonNullType",function(){return i.assertNonNullType}),n.o(i,"assertInputType")&&n.d(t,"assertInputType",function(){return i.assertInputType}),n.o(i,"assertOutputType")&&n.d(t,"assertOutputType",function(){return i.assertOutputType}),n.o(i,"assertLeafType")&&n.d(t,"assertLeafType",function(){return i.assertLeafType}),n.o(i,"assertCompositeType")&&n.d(t,"assertCompositeType",function(){return i.assertCompositeType}),n.o(i,"assertAbstractType")&&n.d(t,"assertAbstractType",function(){return i.assertAbstractType}),n.o(i,"assertWrappingType")&&n.d(t,"assertWrappingType",function(){return i.assertWrappingType}),n.o(i,"assertNullableType")&&n.d(t,"assertNullableType",function(){return i.assertNullableType}),n.o(i,"assertNamedType")&&n.d(t,"assertNamedType",function(){return i.assertNamedType}),n.o(i,"getNullableType")&&n.d(t,"getNullableType",function(){return i.getNullableType}),n.o(i,"getNamedType")&&n.d(t,"getNamedType",function(){return i.getNamedType}),n.o(i,"validateSchema")&&n.d(t,"validateSchema",function(){return i.validateSchema}),n.o(i,"assertValidSchema")&&n.d(t,"assertValidSchema",function(){return i.assertValidSchema});var o=n(158);n.n(o);n.o(o,"Source")&&n.d(t,"Source",function(){return o.Source}),n.o(o,"getLocation")&&n.d(t,"getLocation",function(){return o.getLocation}),n.o(o,"parse")&&n.d(t,"parse",function(){return o.parse}),n.o(o,"parseValue")&&n.d(t,"parseValue",function(){return o.parseValue}),n.o(o,"parseType")&&n.d(t,"parseType",function(){return o.parseType}),n.o(o,"print")&&n.d(t,"print",function(){return o.print}),n.o(o,"visit")&&n.d(t,"visit",function(){return o.visit}),n.o(o,"visitInParallel")&&n.d(t,"visitInParallel",function(){return o.visitInParallel}),n.o(o,"visitWithTypeInfo")&&n.d(t,"visitWithTypeInfo",function(){return o.visitWithTypeInfo}),n.o(o,"getVisitFn")&&n.d(t,"getVisitFn",function(){return o.getVisitFn}),n.o(o,"Kind")&&n.d(t,"Kind",function(){return o.Kind}),n.o(o,"TokenKind")&&n.d(t,"TokenKind",function(){return o.TokenKind}),n.o(o,"DirectiveLocation")&&n.d(t,"DirectiveLocation",function(){return o.DirectiveLocation}),n.o(o,"BREAK")&&n.d(t,"BREAK",function(){return o.BREAK});var a=n(159);n.n(a);n.o(a,"execute")&&n.d(t,"execute",function(){return a.execute}),n.o(a,"defaultFieldResolver")&&n.d(t,"defaultFieldResolver",function(){return a.defaultFieldResolver}),n.o(a,"responsePathAsArray")&&n.d(t,"responsePathAsArray",function(){return a.responsePathAsArray}),n.o(a,"getDirectiveValues")&&n.d(t,"getDirectiveValues",function(){return a.getDirectiveValues});var u=n(160);n.n(u);n.o(u,"subscribe")&&n.d(t,"subscribe",function(){return u.subscribe}),n.o(u,"createSourceEventStream")&&n.d(t,"createSourceEventStream",function(){return u.createSourceEventStream});var s=n(163);n.n(s);n.o(s,"validate")&&n.d(t,"validate",function(){return s.validate}),n.o(s,"ValidationContext")&&n.d(t,"ValidationContext",function(){return s.ValidationContext}),n.o(s,"specifiedRules")&&n.d(t,"specifiedRules",function(){return s.specifiedRules}),n.o(s,"FieldsOnCorrectTypeRule")&&n.d(t,"FieldsOnCorrectTypeRule",function(){return s.FieldsOnCorrectTypeRule}),n.o(s,"FragmentsOnCompositeTypesRule")&&n.d(t,"FragmentsOnCompositeTypesRule",function(){return s.FragmentsOnCompositeTypesRule}),n.o(s,"KnownArgumentNamesRule")&&n.d(t,"KnownArgumentNamesRule",function(){return s.KnownArgumentNamesRule}),n.o(s,"KnownDirectivesRule")&&n.d(t,"KnownDirectivesRule",function(){return s.KnownDirectivesRule}),n.o(s,"KnownFragmentNamesRule")&&n.d(t,"KnownFragmentNamesRule",function(){return s.KnownFragmentNamesRule}),n.o(s,"KnownTypeNamesRule")&&n.d(t,"KnownTypeNamesRule",function(){return s.KnownTypeNamesRule}),n.o(s,"LoneAnonymousOperationRule")&&n.d(t,"LoneAnonymousOperationRule",function(){return s.LoneAnonymousOperationRule}),n.o(s,"NoFragmentCyclesRule")&&n.d(t,"NoFragmentCyclesRule",function(){return s.NoFragmentCyclesRule}),n.o(s,"NoUndefinedVariablesRule")&&n.d(t,"NoUndefinedVariablesRule",function(){return s.NoUndefinedVariablesRule}),n.o(s,"NoUnusedFragmentsRule")&&n.d(t,"NoUnusedFragmentsRule",function(){return s.NoUnusedFragmentsRule}),n.o(s,"NoUnusedVariablesRule")&&n.d(t,"NoUnusedVariablesRule",function(){return s.NoUnusedVariablesRule}),n.o(s,"OverlappingFieldsCanBeMergedRule")&&n.d(t,"OverlappingFieldsCanBeMergedRule",function(){return s.OverlappingFieldsCanBeMergedRule}),n.o(s,"PossibleFragmentSpreadsRule")&&n.d(t,"PossibleFragmentSpreadsRule",function(){return s.PossibleFragmentSpreadsRule}),n.o(s,"ProvidedNonNullArgumentsRule")&&n.d(t,"ProvidedNonNullArgumentsRule",function(){return s.ProvidedNonNullArgumentsRule}),n.o(s,"ScalarLeafsRule")&&n.d(t,"ScalarLeafsRule",function(){return s.ScalarLeafsRule}),n.o(s,"SingleFieldSubscriptionsRule")&&n.d(t,"SingleFieldSubscriptionsRule",function(){return s.SingleFieldSubscriptionsRule}),n.o(s,"UniqueArgumentNamesRule")&&n.d(t,"UniqueArgumentNamesRule",function(){return s.UniqueArgumentNamesRule}),n.o(s,"UniqueDirectivesPerLocationRule")&&n.d(t,"UniqueDirectivesPerLocationRule",function(){return s.UniqueDirectivesPerLocationRule}),n.o(s,"UniqueFragmentNamesRule")&&n.d(t,"UniqueFragmentNamesRule",function(){return s.UniqueFragmentNamesRule}),n.o(s,"UniqueInputFieldNamesRule")&&n.d(t,"UniqueInputFieldNamesRule",function(){return s.UniqueInputFieldNamesRule}),n.o(s,"UniqueOperationNamesRule")&&n.d(t,"UniqueOperationNamesRule",function(){return s.UniqueOperationNamesRule}),n.o(s,"UniqueVariableNamesRule")&&n.d(t,"UniqueVariableNamesRule",function(){return s.UniqueVariableNamesRule}),n.o(s,"ValuesOfCorrectTypeRule")&&n.d(t,"ValuesOfCorrectTypeRule",function(){return s.ValuesOfCorrectTypeRule}),n.o(s,"VariablesAreInputTypesRule")&&n.d(t,"VariablesAreInputTypesRule",function(){return s.VariablesAreInputTypesRule}),n.o(s,"VariablesDefaultValueAllowedRule")&&n.d(t,"VariablesDefaultValueAllowedRule",function(){return s.VariablesDefaultValueAllowedRule}),n.o(s,"VariablesInAllowedPositionRule")&&n.d(t,"VariablesInAllowedPositionRule",function(){return s.VariablesInAllowedPositionRule});var l=n(0);n.n(l);n.o(l,"GraphQLError")&&n.d(t,"GraphQLError",function(){return l.GraphQLError}),n.o(l,"formatError")&&n.d(t,"formatError",function(){return l.formatError}),n.o(l,"printError")&&n.d(t,"printError",function(){return l.printError});var c=n(164);n.n(c);n.o(c,"getIntrospectionQuery")&&n.d(t,"getIntrospectionQuery",function(){return c.getIntrospectionQuery}),n.o(c,"introspectionQuery")&&n.d(t,"introspectionQuery",function(){return c.introspectionQuery}),n.o(c,"getOperationAST")&&n.d(t,"getOperationAST",function(){return c.getOperationAST}),n.o(c,"introspectionFromSchema")&&n.d(t,"introspectionFromSchema",function(){return c.introspectionFromSchema}),n.o(c,"buildClientSchema")&&n.d(t,"buildClientSchema",function(){return c.buildClientSchema}),n.o(c,"buildASTSchema")&&n.d(t,"buildASTSchema",function(){return c.buildASTSchema}),n.o(c,"buildSchema")&&n.d(t,"buildSchema",function(){return c.buildSchema}),n.o(c,"getDescription")&&n.d(t,"getDescription",function(){return c.getDescription}),n.o(c,"extendSchema")&&n.d(t,"extendSchema",function(){return c.extendSchema}),n.o(c,"lexicographicSortSchema")&&n.d(t,"lexicographicSortSchema",function(){return c.lexicographicSortSchema}),n.o(c,"printSchema")&&n.d(t,"printSchema",function(){return c.printSchema}),n.o(c,"printIntrospectionSchema")&&n.d(t,"printIntrospectionSchema",function(){return c.printIntrospectionSchema}),n.o(c,"printType")&&n.d(t,"printType",function(){return c.printType}),n.o(c,"typeFromAST")&&n.d(t,"typeFromAST",function(){return c.typeFromAST}),n.o(c,"valueFromAST")&&n.d(t,"valueFromAST",function(){return c.valueFromAST}),n.o(c,"valueFromASTUntyped")&&n.d(t,"valueFromASTUntyped",function(){return c.valueFromASTUntyped}),n.o(c,"astFromValue")&&n.d(t,"astFromValue",function(){return c.astFromValue}),n.o(c,"TypeInfo")&&n.d(t,"TypeInfo",function(){return c.TypeInfo}),n.o(c,"coerceValue")&&n.d(t,"coerceValue",function(){return c.coerceValue}),n.o(c,"isValidJSValue")&&n.d(t,"isValidJSValue",function(){return c.isValidJSValue}),n.o(c,"isValidLiteralValue")&&n.d(t,"isValidLiteralValue",function(){return c.isValidLiteralValue}),n.o(c,"concatAST")&&n.d(t,"concatAST",function(){return c.concatAST}),n.o(c,"separateOperations")&&n.d(t,"separateOperations",function(){return c.separateOperations}),n.o(c,"isEqualType")&&n.d(t,"isEqualType",function(){return c.isEqualType}),n.o(c,"isTypeSubTypeOf")&&n.d(t,"isTypeSubTypeOf",function(){return c.isTypeSubTypeOf}),n.o(c,"doTypesOverlap")&&n.d(t,"doTypesOverlap",function(){return c.doTypesOverlap}),n.o(c,"assertValidName")&&n.d(t,"assertValidName",function(){return c.assertValidName}),n.o(c,"isValidNameError")&&n.d(t,"isValidNameError",function(){return c.isValidNameError}),n.o(c,"findBreakingChanges")&&n.d(t,"findBreakingChanges",function(){return c.findBreakingChanges}),n.o(c,"findDangerousChanges")&&n.d(t,"findDangerousChanges",function(){return c.findDangerousChanges}),n.o(c,"BreakingChangeType")&&n.d(t,"BreakingChangeType",function(){return c.BreakingChangeType}),n.o(c,"DangerousChangeType")&&n.d(t,"DangerousChangeType",function(){return c.DangerousChangeType}),n.o(c,"findDeprecatedUsages")&&n.d(t,"findDeprecatedUsages",function(){return c.findDeprecatedUsages})},function(e,t,n){"use strict";e.exports=n(135)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",VARIABLE:"Variable",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension",DIRECTIVE_DEFINITION:"DirectiveDefinition"})},function(e,t,n){e.exports=n(149)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return(0,m.default)(e,T)}function a(e,t){if(!t)return e;if((0,l.isWrappingType)(t))return a(e,t.ofType);if(e[t.name])return e[t.name]!==t&&(0,g.default)(0,'Schema must contain unique named types but contains multiple types named "'+t.name+'".'),e;e[t.name]=t;var n=e;return(0,l.isUnionType)(t)&&(n=t.getTypes().reduce(a,n)),(0,l.isObjectType)(t)&&(n=t.getInterfaces().reduce(a,n)),((0,l.isObjectType)(t)||(0,l.isInterfaceType)(t))&&(0,b.default)(t.getFields()).forEach(function(e){if(e.args){var t=e.args.map(function(e){return e.type});n=t.reduce(a,n)}n=a(n,e.type)}),(0,l.isInputObjectType)(t)&&(0,b.default)(t.getFields()).forEach(function(e){n=a(n,e.type)}),n}function u(e,t){return(0,c.isDirective)(t)?t.args.reduce(function(e,t){return a(e,t.type)},e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isSchema=o;var l=n(1),c=n(12),f=n(10),p=n(21),d=r(p),h=n(50),m=r(h),v=n(9),g=r(v),y=n(15),b=r(y),T=t.GraphQLSchema=function(){function e(t){var n=this;i(this,e),t&&t.assumeValid?this.__validationErrors=[]:("object"!==(void 0===t?"undefined":s(t))&&(0,g.default)(0,"Must provide configuration object."),t.types&&!Array.isArray(t.types)&&(0,g.default)(0,'"types" must be Array if provided but got: '+t.types+"."),t.directives&&!Array.isArray(t.directives)&&(0,g.default)(0,'"directives" must be Array if provided but got: '+t.directives+"."),t.allowedLegacyNames&&!Array.isArray(t.allowedLegacyNames)&&(0,g.default)(0,'"allowedLegacyNames" must be Array if provided but got: '+t.allowedLegacyNames+".")),this.__allowedLegacyNames=t.allowedLegacyNames,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=t.directives||c.specifiedDirectives,this.astNode=t.astNode;var r=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),f.__Schema],o=t.types;o&&(r=r.concat(o));var p=Object.create(null);p=r.reduce(a,p),p=this._directives.reduce(u,p),this._typeMap=p,this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];(0,l.isObjectType)(t)&&t.getInterfaces().forEach(function(e){if((0,l.isInterfaceType)(e)){var r=n._implementations[e.name];r?r.push(t):n._implementations[e.name]=[t]}})})}return e.prototype.getQueryType=function(){return this._queryType},e.prototype.getMutationType=function(){return this._mutationType},e.prototype.getSubscriptionType=function(){return this._subscriptionType},e.prototype.getTypeMap=function(){return this._typeMap},e.prototype.getType=function(e){return this.getTypeMap()[e]},e.prototype.getPossibleTypes=function(e){return(0,l.isUnionType)(e)?e.getTypes():this._implementations[e.name]},e.prototype.isPossibleType=function(e,t){var n=this._possibleTypeMap;if(n||(this._possibleTypeMap=n=Object.create(null)),!n[e.name]){var r=this.getPossibleTypes(e);Array.isArray(r)||(0,g.default)(0,"Could not find possible implementing types for "+e.name+" in schema. Check that schema.types is defined and is an array of all possible types in the schema."),n[e.name]=r.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return!!n[e.name][t.name]},e.prototype.getDirectives=function(){return this._directives},e.prototype.getDirective=function(e){return(0,d.default)(this.getDirectives(),function(t){return t.name===e})},e}()},function(e,t){"use strict";function n(e,t){if(!e)throw Error(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,f.isNamedType)(e)&&(e.name===h.name||e.name===m.name||e.name===v.name||e.name===g.name||e.name===y.name||e.name===b.name||e.name===T.name||e.name===_.name)}Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0,t.isIntrospectionType=i;var o=n(11),a=r(o),u=n(15),s=r(u),l=n(52),c=n(16),f=n(1),p=n(14),d=n(20),h=t.__Schema=new f.GraphQLObjectType({name:"__Schema",isIntrospection:!0,description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:(0,f.GraphQLNonNull)((0,f.GraphQLList)((0,f.GraphQLNonNull)(g))),resolve:function(e){return(0,s.default)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:(0,f.GraphQLNonNull)(g),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:g,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:g,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:(0,f.GraphQLNonNull)((0,f.GraphQLList)((0,f.GraphQLNonNull)(m))),resolve:function(e){return e.getDirectives()}}}}}),m=t.__Directive=new f.GraphQLObjectType({name:"__Directive",isIntrospection:!0,description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:(0,f.GraphQLNonNull)(p.GraphQLString)},description:{type:p.GraphQLString},locations:{type:(0,f.GraphQLNonNull)((0,f.GraphQLList)((0,f.GraphQLNonNull)(v)))},args:{type:(0,f.GraphQLNonNull)((0,f.GraphQLList)((0,f.GraphQLNonNull)(b))),resolve:function(e){return e.args||[]}},onOperation:{deprecationReason:"Use `locations`.",type:(0,f.GraphQLNonNull)(p.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(d.DirectiveLocation.QUERY)||-1!==e.locations.indexOf(d.DirectiveLocation.MUTATION)||-1!==e.locations.indexOf(d.DirectiveLocation.SUBSCRIPTION)}},onFragment:{deprecationReason:"Use `locations`.",type:(0,f.GraphQLNonNull)(p.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(d.DirectiveLocation.FRAGMENT_SPREAD)||-1!==e.locations.indexOf(d.DirectiveLocation.INLINE_FRAGMENT)||-1!==e.locations.indexOf(d.DirectiveLocation.FRAGMENT_DEFINITION)}},onField:{deprecationReason:"Use `locations`.",type:(0,f.GraphQLNonNull)(p.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(d.DirectiveLocation.FIELD)}}}}}),v=t.__DirectiveLocation=new f.GraphQLEnumType({name:"__DirectiveLocation",isIntrospection:!0,description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:d.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:d.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:d.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:d.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:d.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:d.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:d.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},SCHEMA:{value:d.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:d.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:d.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:d.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:d.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:d.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:d.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:d.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:d.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:d.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:d.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),g=t.__Type=new f.GraphQLObjectType({name:"__Type",isIntrospection:!0,description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:(0,f.GraphQLNonNull)(_),resolve:function(e){if((0,f.isScalarType)(e))return E.SCALAR;if((0,f.isObjectType)(e))return E.OBJECT;if((0,f.isInterfaceType)(e))return E.INTERFACE;if((0,f.isUnionType)(e))return E.UNION;if((0,f.isEnumType)(e))return E.ENUM;if((0,f.isInputObjectType)(e))return E.INPUT_OBJECT;if((0,f.isListType)(e))return E.LIST;if((0,f.isNonNullType)(e))return E.NON_NULL;throw Error("Unknown kind of type: "+e)}},name:{type:p.GraphQLString},description:{type:p.GraphQLString},fields:{type:(0,f.GraphQLList)((0,f.GraphQLNonNull)(y)),args:{includeDeprecated:{type:p.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,f.isObjectType)(e)||(0,f.isInterfaceType)(e)){var r=(0,s.default)(e.getFields());return n||(r=r.filter(function(e){return!e.deprecationReason})),r}return null}},interfaces:{type:(0,f.GraphQLList)((0,f.GraphQLNonNull)(g)),resolve:function(e){if((0,f.isObjectType)(e))return e.getInterfaces()}},possibleTypes:{type:(0,f.GraphQLList)((0,f.GraphQLNonNull)(g)),resolve:function(e,t,n,r){var i=r.schema;if((0,f.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:(0,f.GraphQLList)((0,f.GraphQLNonNull)(T)),args:{includeDeprecated:{type:p.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,f.isEnumType)(e)){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:(0,f.GraphQLList)((0,f.GraphQLNonNull)(b)),resolve:function(e){if((0,f.isInputObjectType)(e))return(0,s.default)(e.getFields())}},ofType:{type:g}}}}),y=t.__Field=new f.GraphQLObjectType({name:"__Field",isIntrospection:!0,description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:(0,f.GraphQLNonNull)(p.GraphQLString)},description:{type:p.GraphQLString},args:{type:(0,f.GraphQLNonNull)((0,f.GraphQLList)((0,f.GraphQLNonNull)(b))),resolve:function(e){return e.args||[]}},type:{type:(0,f.GraphQLNonNull)(g)},isDeprecated:{type:(0,f.GraphQLNonNull)(p.GraphQLBoolean)},deprecationReason:{type:p.GraphQLString}}}}),b=t.__InputValue=new f.GraphQLObjectType({name:"__InputValue",isIntrospection:!0,description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:(0,f.GraphQLNonNull)(p.GraphQLString)},description:{type:p.GraphQLString},type:{type:(0,f.GraphQLNonNull)(g)},defaultValue:{type:p.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return(0,a.default)(e.defaultValue)?null:(0,c.print)((0,l.astFromValue)(e.defaultValue,e.type))}}}}}),T=t.__EnumValue=new f.GraphQLObjectType({name:"__EnumValue",isIntrospection:!0,description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:(0,f.GraphQLNonNull)(p.GraphQLString)},description:{type:p.GraphQLString},isDeprecated:{type:(0,f.GraphQLNonNull)(p.GraphQLBoolean)},deprecationReason:{type:p.GraphQLString}}}}),E=t.TypeKind={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},_=t.__TypeKind=new f.GraphQLEnumType({name:"__TypeKind",isIntrospection:!0,description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.SchemaMetaFieldDef={name:"__schema",type:(0,f.GraphQLNonNull)(h),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}},t.TypeMetaFieldDef={name:"__type",type:g,description:"Request the type information of a single type.",args:[{name:"name",type:(0,f.GraphQLNonNull)(p.GraphQLString)}],resolve:function(e,t,n,r){return r.schema.getType(t.name)}},t.TypeNameMetaFieldDef={name:"__typename",type:(0,f.GraphQLNonNull)(p.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}},t.introspectionTypes=[h,m,v,g,y,b,T,_]},function(e,t){"use strict";function n(e){return void 0===e||e!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return(0,c.default)(e,h)}function a(e){return b.some(function(t){return t.name===e.name})}Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedDirectives=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=void 0,t.isDirective=o,t.isSpecifiedDirective=a;var u=n(1),s=n(14),l=n(50),c=r(l),f=n(9),p=r(f),d=n(20),h=t.GraphQLDirective=function e(t){i(this,e),this.name=t.name,this.description=t.description,this.locations=t.locations,this.astNode=t.astNode,t.name||(0,p.default)(0,"Directive must be named."),Array.isArray(t.locations)||(0,p.default)(0,"Must provide locations for directive.");var n=t.args;n?(Array.isArray(n)&&(0,p.default)(0,"@"+t.name+" args must be an object with argument names as keys."),this.args=Object.keys(n).map(function(e){var t=n[e];return{name:e,description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,astNode:t.astNode}})):this.args=[]},m=t.GraphQLIncludeDirective=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[d.DirectiveLocation.FIELD,d.DirectiveLocation.FRAGMENT_SPREAD,d.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,u.GraphQLNonNull)(s.GraphQLBoolean),description:"Included when true."}}}),v=t.GraphQLSkipDirective=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[d.DirectiveLocation.FIELD,d.DirectiveLocation.FRAGMENT_SPREAD,d.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,u.GraphQLNonNull)(s.GraphQLBoolean),description:"Skipped when true."}}}),g=t.DEFAULT_DEPRECATION_REASON="No longer supported",y=t.GraphQLDeprecatedDirective=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[d.DirectiveLocation.FIELD_DEFINITION,d.DirectiveLocation.ENUM_VALUE],args:{reason:{type:s.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",defaultValue:g}}}),b=t.specifiedDirectives=[m,v,y]},function(e,t,n){"use strict";function r(e,t){var n=void 0;if(t.kind===i.Kind.LIST_TYPE)return(n=r(e,t.type))&&(0,o.GraphQLList)(n);if(t.kind===i.Kind.NON_NULL_TYPE)return(n=r(e,t.type))&&(0,o.GraphQLNonNull)(n);if(t.kind===i.Kind.NAMED_TYPE)return e.getType(t.name.value);throw Error("Unexpected type kind: "+t.kind+".")}Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=r;var i=n(6),o=n(1)},function(e,t,n){"use strict";function r(e){if(""===e)throw new TypeError("Int cannot represent non 32-bit signed integer value: (empty string)");var t=+e;if(t!==t||t>l||c>t)throw new TypeError("Int cannot represent non 32-bit signed integer value: "+e);var n=Math.floor(t);if(n!==t)throw new TypeError("Int cannot represent non-integer value: "+e);return n}function i(e){if(""===e)throw new TypeError("Float cannot represent non numeric value: (empty string)");var t=+e;if(t===t)return t;throw new TypeError("Float cannot represent non numeric value: "+e)}function o(e){if(Array.isArray(e))throw new TypeError("String cannot represent an array value: ["+e+"]");return e+""}function a(e){return(0,u.isNamedType)(e)&&(e.name===d.name||e.name===f.name||e.name===p.name||e.name===h.name||e.name===m.name)}Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedScalarTypes=t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0,t.isSpecifiedScalarType=a;var u=n(1),s=n(6),l=2147483647,c=-2147483648,f=t.GraphQLInt=new u.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",serialize:r,parseValue:r,parseLiteral:function(e){if(e.kind===s.Kind.INT){var t=parseInt(e.value,10);if(l>=t&&t>=c)return t}}}),p=t.GraphQLFloat=new u.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:i,parseValue:i,parseLiteral:function(e){return e.kind===s.Kind.FLOAT||e.kind===s.Kind.INT?parseFloat(e.value):void 0}}),d=t.GraphQLString=new u.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:o,parseValue:o,parseLiteral:function(e){return e.kind===s.Kind.STRING?e.value:void 0}}),h=t.GraphQLBoolean=new u.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Boolean,parseValue:Boolean,parseLiteral:function(e){return e.kind===s.Kind.BOOLEAN?e.value:void 0}}),m=t.GraphQLID=new u.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:String,parseValue:String,parseLiteral:function(e){return e.kind===s.Kind.STRING||e.kind===s.Kind.INT?e.value:void 0}});t.specifiedScalarTypes=[d,f,p,h,m]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})}},function(e,t,n){"use strict";function r(e){return(0,c.visit)(e,{leave:f})}function i(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function a(e){return e&&0!==e.length?"{\n"+s(o(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function s(e){return e&&" "+e.replace(/\n/g,"\n ")}function l(e,t){var n=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'+(t?n:s(n))+'\n"""':'"""'+n.replace(/"$/,'"\n')+'"""'}Object.defineProperty(t,"__esModule",{value:!0}),t.print=r;var c=n(19),f={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?o([t,o([n,r]),i,a]," "):a},VariableDefinition:function(e){return e.variable+": "+e.type+u(" = ",e.defaultValue)},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return o([u("",t,": ")+n+u("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",u("on ",t),o(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment "+t+u("(",o(r,", "),")")+" on "+n+" "+u("",o(i," ")," ")+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?l(n,"description"===t):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),a(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:i(function(e){return o(["scalar",e.name,o(e.directives," ")]," ")}),ObjectTypeDefinition:i(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")}),FieldDefinition:i(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+u("(",o(n,", "),")")+": "+r+u(" ",o(i," "))}),InputValueDefinition:i(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")}),InterfaceTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.fields;return o(["interface",t,o(n," "),a(r)]," ")}),UnionTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")}),EnumTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),a(r)]," ")}),EnumValueDefinition:i(function(e){return o([e.name,o(e.directives," ")]," ")}),InputObjectTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),a(r)]," ")}),ScalarTypeExtension:function(e){return o(["extend scalar",e.name,o(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["extend type",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["extend interface",t,o(n," "),a(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return o(["extend union",t,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return o(["extend enum",t,o(n," "),a(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["extend input",t,o(n," "),a(r)]," ")},DirectiveDefinition:i(function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+u("(",o(n,", "),")")+" on "+o(r," | ")})}},function(e,t,n){"use strict";function r(e,t,n,i,a,u,s){var l=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,c=n;if(!c&&l){var f=l[0];c=f&&f.loc&&f.loc.source}var p=i;!p&&l&&(p=l.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),p&&0===p.length&&(p=void 0);var d=void 0;i&&n?d=i.map(function(e){return(0,o.getLocation)(n,e)}):l&&(d=l.reduce(function(e,t){return t.loc&&e.push((0,o.getLocation)(t.loc.source,t.loc.start)),e},[])),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:l||void 0},source:{value:c||void 0},positions:{value:p||void 0},originalError:{value:u},extensions:{value:s||u&&u.extensions}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=r;var i=n(76),o=n(53);r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"},toString:{value:function(){return(0,i.printError)(this)}}})},function(e,t){"use strict";function n(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=void 0,o=Array.isArray(e),l=[e],c=-1,f=[],p=void 0,d=void 0,h=void 0,m=[],v=[],g=e;do{c++;var y=c===l.length,b=y&&0!==f.length;if(y){if(d=0===v.length?void 0:m[m.length-1],p=h,h=v.pop(),b){if(o)p=p.slice();else{var T={};for(var E in p)p.hasOwnProperty(E)&&(T[E]=p[E]);p=T}for(var _=0,k=0;f.length>k;k++){var C=f[k][0],N=f[k][1];o&&(C-=_),o&&null===N?(p.splice(C,1),_++):p[C]=N}}c=i.index,l=i.keys,f=i.edits,o=i.inArray,i=i.prev}else{if(d=h?o?c:l[c]:void 0,null===(p=h?h[d]:g)||void 0===p)continue;h&&m.push(d)}var S=void 0;if(!Array.isArray(p)){if(!r(p))throw Error("Invalid AST Node: "+JSON.stringify(p));var w=a(t,p.kind,y);if(w){if((S=w.call(t,p,d,h,m,v))===s)break;if(!1===S){if(!y){m.pop();continue}}else if(void 0!==S&&(f.push([d,S]),!y)){if(!r(S)){m.pop();continue}p=S}}}void 0===S&&b&&f.push([d,p]),y?m.pop():(i={inArray:o,index:c,keys:l,edits:f,prev:i},o=Array.isArray(p),l=o?p:n[p.kind]||[],c=-1,f=[],h&&v.push(h),h=p)}while(void 0!==i);return 0!==f.length&&(g=f[f.length-1][1]),g}function r(e){return!(!e||"string"!=typeof e.kind)}function i(e){var t=Array(e.length);return{enter:function(n){for(var r=0;e.length>r;r++)if(!t[r]){var i=a(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===s)t[r]=s;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;e.length>r;r++)if(t[r])t[r]===n&&(t[r]=null);else{var i=a(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===s)t[r]=s;else if(void 0!==o&&!1!==o)return o}}}}}function o(e,t){return{enter:function(n){e.enter(n);var i=a(t,n.kind,!1);if(i){var o=i.apply(t,arguments);return void 0!==o&&(e.leave(n),r(o)&&e.enter(o)),o}},leave:function(n){var r=a(t,n.kind,!0),i=void 0;return r&&(i=r.apply(t,arguments)),e.leave(n),i}}}function a(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}Object.defineProperty(t,"__esModule",{value:!0}),t.visit=n,t.visitInParallel=i,t.visitWithTypeInfo=o,t.getVisitFn=a;var u=t.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"]},s=t.BREAK={}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},function(e,t){"use strict";function n(e,t){for(var n=0;e.length>n;n++)if(t(e[n]))return e[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30);Object.defineProperty(t,"getDefinitionState",{enumerable:!0,get:function(){return r.getDefinitionState}}),Object.defineProperty(t,"getFieldDef",{enumerable:!0,get:function(){return r.getFieldDef}}),Object.defineProperty(t,"forEachState",{enumerable:!0,get:function(){return r.forEachState}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return r.objectValues}}),Object.defineProperty(t,"hintList",{enumerable:!0,get:function(){return r.hintList}});var i=n(23);Object.defineProperty(t,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return i.getAutocompleteSuggestions}});var o=n(32);Object.defineProperty(t,"LANGUAGE",{enumerable:!0,get:function(){return o.LANGUAGE}}),Object.defineProperty(t,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(t,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForDefinitionNode}});var a=n(33);Object.defineProperty(t,"getDiagnostics",{enumerable:!0,get:function(){return a.getDiagnostics}}),Object.defineProperty(t,"validateQuery",{enumerable:!0,get:function(){return a.validateQuery}});var u=n(44);Object.defineProperty(t,"getOutline",{enumerable:!0,get:function(){return u.getOutline}});var s=n(34);Object.defineProperty(t,"getHoverInformation",{enumerable:!0,get:function(){return s.getHoverInformation}});var l=n(45);Object.defineProperty(t,"GraphQLLanguageService",{enumerable:!0,get:function(){return l.GraphQLLanguageService}})},function(e,t,n){"use strict";function r(e,t,n,r){var s=r||f(t,n),p="Invalid"===s.state.kind?s.state.prevState:s.state;if(!p)return[];var d=p.kind,m=p.step,v=h(e,s.state);if("Document"===d)return(0,b.hintList)(s,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===d||"Field"===d||"AliasedField"===d)return i(s,v,e);if("Arguments"===d||"Argument"===d&&0===m){var g=v.argDefs;if(g)return(0,b.hintList)(s,g.map(function(e){return{label:e.name,detail:e.type+"",documentation:e.description}}))}if(("ObjectValue"===d||"ObjectField"===d&&0===m)&&v.objectFieldDefs){var y=(0,b.objectValues)(v.objectFieldDefs);return(0,b.hintList)(s,y.map(function(e){return{label:e.name,detail:e.type+"",documentation:e.description}}))}return"EnumValue"===d||"ListValue"===d&&1===m||"ObjectField"===d&&2===m||"Argument"===d&&2===m?o(s,v):"TypeCondition"===d&&1===m||"NamedType"===d&&null!=p.prevState&&"TypeCondition"===p.prevState.kind?a(s,v,e):"FragmentSpread"===d&&1===m?u(s,v,e,t):"VariableDefinition"===d&&2===m||"ListType"===d&&1===m||"NamedType"===d&&p.prevState&&("VariableDefinition"===p.prevState.kind||"ListType"===p.prevState.kind)?l(s,e):"Directive"===d?c(s,p,e):[]}function i(e,t,n){if(t.parentType){var r=t.parentType,i=r.getFields instanceof Function?(0,b.objectValues)(r.getFields()):[];return(0,g.isAbstractType)(r)&&i.push(g.TypeNameMetaFieldDef),r===n.getQueryType()&&i.push(g.SchemaMetaFieldDef,g.TypeMetaFieldDef),(0,b.hintList)(e,i.map(function(e){return{label:e.name,detail:e.type+"",documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}return[]}function o(e,t){var n=(0,g.getNamedType)(t.inputType);if(n instanceof g.GraphQLEnumType){var r=n.getValues();return(0,b.hintList)(e,r.map(function(e){return{label:e.name,detail:n+"",documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}return n===g.GraphQLBoolean?(0,b.hintList)(e,[{label:"true",detail:g.GraphQLBoolean+"",documentation:"Not false."},{label:"false",detail:g.GraphQLBoolean+"",documentation:"Not true."}]):[]}function a(e,t,n){var r=void 0;if(t.parentType)if((0,g.isAbstractType)(t.parentType)){var i=(0,g.assertAbstractType)(t.parentType),o=n.getPossibleTypes(i),a=Object.create(null);o.forEach(function(e){e.getInterfaces().forEach(function(e){a[e.name]=e})}),r=o.concat((0,b.objectValues)(a))}else r=[t.parentType];else{var u=n.getTypeMap();r=(0,b.objectValues)(u).filter(g.isCompositeType)}return(0,b.hintList)(e,r.map(function(e){var t=(0,g.getNamedType)(e);return{label:e+"",documentation:t&&t.description||""}}))}function u(e,t,n,r){var i=n.getTypeMap(),o=(0,b.getDefinitionState)(e.state),a=s(r),u=a.filter(function(e){return i[e.typeCondition.name.value]&&!(o&&"FragmentDefinition"===o.kind&&o.name===e.name.value)&&(0,g.isCompositeType)(t.parentType)&&(0,g.isCompositeType)(i[e.typeCondition.name.value])&&(0,g.doTypesOverlap)(n,t.parentType,i[e.typeCondition.name.value])});return(0,b.hintList)(e,u.map(function(e){return{label:e.name.value,detail:i[e.typeCondition.name.value]+"",documentation:"fragment "+e.name.value+" on "+e.typeCondition.name.value}}))}function s(e){var t=[];return p(e,function(e,n){"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},selectionSet:{kind:"SelectionSet",selections:[]},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}function l(e,t){var n=t.getTypeMap(),r=(0,b.objectValues)(n).filter(g.isInputType);return(0,b.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description}}))}function c(e,t,n){if(t.prevState&&t.prevState.kind){var r=n.getDirectives().filter(function(e){return d(t.prevState,e)});return(0,b.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description||""}}))}return[]}function f(e,t){var n=null,r=null,i=null,o=p(e,function(e,o,a,u){if(u===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=v({},o),i=e.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function p(e,t){for(var n=e.split("\n"),r=(0,y.onlineParser)(),i=r.startState(),o="",a=new y.CharacterStream(""),u=0;n.length>u;u++){for(a=new y.CharacterStream(n[u]);!a.eol();){o=r.token(a,i);if("BREAK"===t(a,i,o,u))break}t(a,i,o,u),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}function d(e,t){if(!e||!e.kind)return!1;var n=e.kind,r=t.locations;switch(n){case"Query":return-1!==r.indexOf("QUERY");case"Mutation":return-1!==r.indexOf("MUTATION");case"Subscription":return-1!==r.indexOf("SUBSCRIPTION");case"Field":case"AliasedField":return-1!==r.indexOf("FIELD");case"FragmentDefinition":return-1!==r.indexOf("FRAGMENT_DEFINITION");case"FragmentSpread":return-1!==r.indexOf("FRAGMENT_SPREAD");case"InlineFragment":return-1!==r.indexOf("INLINE_FRAGMENT");case"SchemaDef":return-1!==r.indexOf("SCHEMA");case"ScalarDef":return-1!==r.indexOf("SCALAR");case"ObjectTypeDef":return-1!==r.indexOf("OBJECT");case"FieldDef":return-1!==r.indexOf("FIELD_DEFINITION");case"InterfaceDef":return-1!==r.indexOf("INTERFACE");case"UnionDef":return-1!==r.indexOf("UNION");case"EnumDef":return-1!==r.indexOf("ENUM");case"EnumValue":return-1!==r.indexOf("ENUM_VALUE");case"InputDef":return-1!==r.indexOf("INPUT_OBJECT");case"InputValueDef":switch(e.prevState&&e.prevState.kind){case"ArgumentsDef":return-1!==r.indexOf("ARGUMENT_DEFINITION");case"InputDef":return-1!==r.indexOf("INPUT_FIELD_DEFINITION")}}return!1}function h(e,t){var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,u=void 0,s=void 0,l=void 0,c=void 0;return(0,b.forEachState)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":c=e.getQueryType();break;case"Mutation":c=e.getMutationType();break;case"Subscription":c=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(c=e.getType(t.type));break;case"Field":case"AliasedField":c&&t.name?(a=l?(0,b.getFieldDef)(e,l,t.name):null,c=a?a.type:null):a=null;break;case"SelectionSet":l=(0,g.getNamedType)(c);break;case"Directive":i=t.name?e.getDirective(t.name):null;break;case"Arguments":if(t.prevState)switch(t.prevState.kind){case"Field":r=a&&a.args;break;case"Directive":r=i&&i.args;break;case"AliasedField":var f=t.prevState&&t.prevState.name;if(!f){r=null;break}var p=l?(0,b.getFieldDef)(e,l,f):null;if(!p){r=null;break}r=p.args;break;default:r=null}else r=null;break;case"Argument":if(r)for(var d=0;r.length>d;d++)if(r[d].name===t.name){n=r[d];break}u=n&&n.type;break;case"EnumValue":var h=(0,g.getNamedType)(u);o=h instanceof g.GraphQLEnumType?m(h.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var v=(0,g.getNullableType)(u);u=v instanceof g.GraphQLList?v.ofType:null;break;case"ObjectValue":var y=(0,g.getNamedType)(u);s=y instanceof g.GraphQLInputObjectType?y.getFields():null;break;case"ObjectField":var T=t.name&&s?s[t.name]:null;u=T&&T.type;break;case"NamedType":t.name&&(c=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:u,objectFieldDefs:s,parentType:l,type:c}}function m(e,t){for(var n=0;e.length>n;n++)if(t(e[n]))return e[n];return null}Object.defineProperty(t,"__esModule",{value:!0});var v=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getAutocompleteSuggestions=r,t.getTokenAtPosition=f,t.getTypeInfo=h;var g=n(4),y=n(31),b=n(30)},function(e,t,n){"use strict";function r(e){return!!u(e)}function i(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function o(e){return Object(e)===e&&(i(e)||r(e))}function a(e){var t=u(e);if(t)return t.call(e)}function u(e){if(null!=e){var t=y&&e[y]||e["@@iterator"];if("function"==typeof t)return t}}function s(e){if(null!=e){var t=a(e);if(t)return t;if(i(e))return new l(e)}}function l(e){this._o=e,this._i=0}function c(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,o=a(e);if(o){for(var u;!(u=o.next()).done;)if(t.call(n,u.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(i(e))for(;e.length>r;r++)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}}function f(e){return!!d(e)}function p(e){var t=d(e);if(t)return t.call(e)}function d(e){if(null!=e){var t=T&&e[T]||e["@@asyncIterator"];if("function"==typeof t)return t}}function h(e){if(null!=e){var t=p(e);if(t)return t;var n=s(e);if(n)return new m(n)}}function m(e){this._i=e}function v(e,t,n){var r=h(e);if(r){var i=0;return new Promise(function(o,a){function u(){return r.next().then(function(r){return r.done?o():Promise.resolve(t.call(n,r.value,i++,e)).then(u).catch(a),null}).catch(a),null}u()})}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"$$iterator",function(){return b}),t.isIterable=r,t.isArrayLike=i,t.isCollection=o,t.getIterator=a,t.getIteratorMethod=u,t.createIterator=s,t.forEach=c,n.d(t,"$$asyncIterator",function(){return E}),t.isAsyncIterable=f,t.getAsyncIterator=p,t.getAsyncIteratorMethod=d,t.createAsyncIterator=h,t.forAwaitEach=v;var g="function"==typeof Symbol?Symbol:void 0,y=g&&g.iterator,b=y||"@@iterator";l.prototype[b]=function(){return this},l.prototype.next=function(){return void 0!==this._o&&this._o.length>this._i?{value:this._o[this._i++],done:!1}:(this._o=void 0,{value:void 0,done:!0})};var T=g&&g.asyncIterator,E=T||"@@asyncIterator";m.prototype[E]=function(){return this},m.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})}},function(e,t,n){"use strict";function r(e,t){var n="string"==typeof e?new Te.Source(e):e;if(!(n instanceof Te.Source))throw new TypeError("Must provide Source. Received: "+n);return u((0,_e.createLexer)(n,t||{}))}function i(e,t){var n="string"==typeof e?new Te.Source(e):e,r=(0,_e.createLexer)(n,t||{});me(r,_e.TokenKind.SOF);var i=C(r,!1);return me(r,_e.TokenKind.EOF),i}function o(e,t){var n="string"==typeof e?new Te.Source(e):e,r=(0,_e.createLexer)(n,t||{});me(r,_e.TokenKind.SOF);var i=A(r);return me(r,_e.TokenKind.EOF),i}function a(e){var t=me(e,_e.TokenKind.NAME);return{kind:ke.Kind.NAME,value:t.value,loc:fe(e,t)}}function u(e){var t=e.token;me(e,_e.TokenKind.SOF);var n=[];do{n.push(s(e))}while(!he(e,_e.TokenKind.EOF));return{kind:ke.Kind.DOCUMENT,definitions:n,loc:fe(e,t)}}function s(e){if(de(e,_e.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return l(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return F(e)}else{if(de(e,_e.TokenKind.BRACE_L))return l(e);if(M(e))return F(e)}throw ge(e)}function l(e){if(de(e,_e.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return c(e);case"fragment":return _(e)}else if(de(e,_e.TokenKind.BRACE_L))return c(e);throw ge(e)}function c(e){var t=e.token;if(de(e,_e.TokenKind.BRACE_L))return{kind:ke.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:m(e),loc:fe(e,t)};var n=f(e),r=void 0;return de(e,_e.TokenKind.NAME)&&(r=a(e)),{kind:ke.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:p(e),directives:D(e,!1),selectionSet:m(e),loc:fe(e,t)}}function f(e){var t=me(e,_e.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw ge(e,t)}function p(e){return de(e,_e.TokenKind.PAREN_L)?be(e,_e.TokenKind.PAREN_L,d,_e.TokenKind.PAREN_R):[]}function d(e){var t=e.token;return{kind:ke.Kind.VARIABLE_DEFINITION,variable:h(e),type:(me(e,_e.TokenKind.COLON),A(e)),defaultValue:he(e,_e.TokenKind.EQUALS)?C(e,!0):void 0,loc:fe(e,t)}}function h(e){var t=e.token;return me(e,_e.TokenKind.DOLLAR),{kind:ke.Kind.VARIABLE,name:a(e),loc:fe(e,t)}}function m(e){var t=e.token;return{kind:ke.Kind.SELECTION_SET,selections:be(e,_e.TokenKind.BRACE_L,v,_e.TokenKind.BRACE_R),loc:fe(e,t)}}function v(e){return de(e,_e.TokenKind.SPREAD)?E(e):g(e)}function g(e){var t=e.token,n=a(e),r=void 0,i=void 0;return he(e,_e.TokenKind.COLON)?(r=n,i=a(e)):i=n,{kind:ke.Kind.FIELD,alias:r,name:i,arguments:y(e,!1),directives:D(e,!1),selectionSet:de(e,_e.TokenKind.BRACE_L)?m(e):void 0,loc:fe(e,t)}}function y(e,t){var n=t?T:b;return de(e,_e.TokenKind.PAREN_L)?be(e,_e.TokenKind.PAREN_L,n,_e.TokenKind.PAREN_R):[]}function b(e){var t=e.token;return{kind:ke.Kind.ARGUMENT,name:a(e),value:(me(e,_e.TokenKind.COLON),C(e,!1)),loc:fe(e,t)}}function T(e){var t=e.token;return{kind:ke.Kind.ARGUMENT,name:a(e),value:(me(e,_e.TokenKind.COLON),S(e)),loc:fe(e,t)}}function E(e){var t=e.token;if(me(e,_e.TokenKind.SPREAD),de(e,_e.TokenKind.NAME)&&"on"!==e.token.value)return{kind:ke.Kind.FRAGMENT_SPREAD,name:k(e),directives:D(e,!1),loc:fe(e,t)};var n=void 0;return"on"===e.token.value&&(e.advance(),n=P(e)),{kind:ke.Kind.INLINE_FRAGMENT,typeCondition:n,directives:D(e,!1),selectionSet:m(e),loc:fe(e,t)}}function _(e){var t=e.token;return ve(e,"fragment"),e.options.experimentalFragmentVariables?{kind:ke.Kind.FRAGMENT_DEFINITION,name:k(e),variableDefinitions:p(e),typeCondition:(ve(e,"on"),P(e)),directives:D(e,!1),selectionSet:m(e),loc:fe(e,t)}:{kind:ke.Kind.FRAGMENT_DEFINITION,name:k(e),typeCondition:(ve(e,"on"),P(e)),directives:D(e,!1),selectionSet:m(e),loc:fe(e,t)}}function k(e){if("on"===e.token.value)throw ge(e);return a(e)}function C(e,t){var n=e.token;switch(n.kind){case _e.TokenKind.BRACKET_L:return O(e,t);case _e.TokenKind.BRACE_L:return L(e,t);case _e.TokenKind.INT:return e.advance(),{kind:ke.Kind.INT,value:n.value,loc:fe(e,n)};case _e.TokenKind.FLOAT:return e.advance(),{kind:ke.Kind.FLOAT,value:n.value,loc:fe(e,n)};case _e.TokenKind.STRING:case _e.TokenKind.BLOCK_STRING:return N(e);case _e.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:ke.Kind.BOOLEAN,value:"true"===n.value,loc:fe(e,n)}):"null"===n.value?(e.advance(),{kind:ke.Kind.NULL,loc:fe(e,n)}):(e.advance(),{kind:ke.Kind.ENUM,value:n.value,loc:fe(e,n)});case _e.TokenKind.DOLLAR:if(!t)return h(e)}throw ge(e)}function N(e){var t=e.token;return e.advance(),{kind:ke.Kind.STRING,value:t.value,block:t.kind===_e.TokenKind.BLOCK_STRING,loc:fe(e,t)}}function S(e){return C(e,!0)}function w(e){return C(e,!1)}function O(e,t){var n=e.token;return{kind:ke.Kind.LIST,values:ye(e,_e.TokenKind.BRACKET_L,t?S:w,_e.TokenKind.BRACKET_R),loc:fe(e,n)}}function L(e,t){var n=e.token;me(e,_e.TokenKind.BRACE_L);for(var r=[];!he(e,_e.TokenKind.BRACE_R);)r.push(x(e,t));return{kind:ke.Kind.OBJECT,fields:r,loc:fe(e,n)}}function x(e,t){var n=e.token;return{kind:ke.Kind.OBJECT_FIELD,name:a(e),value:(me(e,_e.TokenKind.COLON),C(e,t)),loc:fe(e,n)}}function D(e,t){for(var n=[];de(e,_e.TokenKind.AT);)n.push(I(e,t));return n}function I(e,t){var n=e.token;return me(e,_e.TokenKind.AT),{kind:ke.Kind.DIRECTIVE,name:a(e),arguments:y(e,t),loc:fe(e,n)}}function A(e){var t=e.token,n=void 0;return he(e,_e.TokenKind.BRACKET_L)?(n=A(e),me(e,_e.TokenKind.BRACKET_R),n={kind:ke.Kind.LIST_TYPE,type:n,loc:fe(e,t)}):n=P(e),he(e,_e.TokenKind.BANG)?{kind:ke.Kind.NON_NULL_TYPE,type:n,loc:fe(e,t)}:n}function P(e){var t=e.token;return{kind:ke.Kind.NAMED_TYPE,name:a(e),loc:fe(e,t)}}function F(e){var t=M(e)?e.lookahead():e.token;if(t.kind===_e.TokenKind.NAME)switch(t.value){case"schema":return j(e);case"scalar":return U(e);case"type":return G(e);case"interface":return z(e);case"union":return W(e);case"enum":return $(e);case"input":return Z(e);case"extend":return te(e);case"directive":return se(e)}throw ge(e,t)}function M(e){return de(e,_e.TokenKind.STRING)||de(e,_e.TokenKind.BLOCK_STRING)}function R(e){if(M(e))return N(e)}function j(e){var t=e.token;ve(e,"schema");var n=D(e,!0),r=be(e,_e.TokenKind.BRACE_L,V,_e.TokenKind.BRACE_R);return{kind:ke.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:fe(e,t)}}function V(e){var t=e.token,n=f(e);me(e,_e.TokenKind.COLON);var r=P(e);return{kind:ke.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:fe(e,t)}}function U(e){var t=e.token,n=R(e);ve(e,"scalar");var r=a(e),i=D(e,!0);return{kind:ke.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:fe(e,t)}}function G(e){var t=e.token,n=R(e);ve(e,"type");var r=a(e),i=B(e),o=D(e,!0),u=Q(e);return{kind:ke.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:u,loc:fe(e,t)}}function B(e){var t=[];if("implements"===e.token.value){e.advance(),he(e,_e.TokenKind.AMP);do{t.push(P(e))}while(he(e,_e.TokenKind.AMP)||e.options.allowLegacySDLImplementsInterfaces&&de(e,_e.TokenKind.NAME))}return t}function Q(e){return e.options.allowLegacySDLEmptyFields&&de(e,_e.TokenKind.BRACE_L)&&e.lookahead().kind===_e.TokenKind.BRACE_R?(e.advance(),e.advance(),[]):de(e,_e.TokenKind.BRACE_L)?be(e,_e.TokenKind.BRACE_L,q,_e.TokenKind.BRACE_R):[]}function q(e){var t=e.token,n=R(e),r=a(e),i=K(e);me(e,_e.TokenKind.COLON);var o=A(e),u=D(e,!0);return{kind:ke.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:u,loc:fe(e,t)}}function K(e){return de(e,_e.TokenKind.PAREN_L)?be(e,_e.TokenKind.PAREN_L,H,_e.TokenKind.PAREN_R):[]}function H(e){var t=e.token,n=R(e),r=a(e);me(e,_e.TokenKind.COLON);var i=A(e),o=void 0;he(e,_e.TokenKind.EQUALS)&&(o=S(e));var u=D(e,!0);return{kind:ke.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:u,loc:fe(e,t)}}function z(e){var t=e.token,n=R(e);ve(e,"interface");var r=a(e),i=D(e,!0),o=Q(e);return{kind:ke.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:fe(e,t)}}function W(e){var t=e.token,n=R(e);ve(e,"union");var r=a(e),i=D(e,!0),o=Y(e);return{kind:ke.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:fe(e,t)}}function Y(e){var t=[];if(he(e,_e.TokenKind.EQUALS)){he(e,_e.TokenKind.PIPE);do{t.push(P(e))}while(he(e,_e.TokenKind.PIPE))}return t}function $(e){var t=e.token,n=R(e);ve(e,"enum");var r=a(e),i=D(e,!0),o=J(e);return{kind:ke.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:fe(e,t)}}function J(e){return de(e,_e.TokenKind.BRACE_L)?be(e,_e.TokenKind.BRACE_L,X,_e.TokenKind.BRACE_R):[]}function X(e){var t=e.token,n=R(e),r=a(e),i=D(e,!0);return{kind:ke.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:fe(e,t)}}function Z(e){var t=e.token,n=R(e);ve(e,"input");var r=a(e),i=D(e,!0),o=ee(e);return{kind:ke.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:fe(e,t)}}function ee(e){return de(e,_e.TokenKind.BRACE_L)?be(e,_e.TokenKind.BRACE_L,H,_e.TokenKind.BRACE_R):[]}function te(e){var t=e.lookahead();if(t.kind===_e.TokenKind.NAME)switch(t.value){case"scalar":return ne(e);case"type":return re(e);case"interface":return ie(e);case"union":return oe(e);case"enum":return ae(e);case"input":return ue(e)}throw ge(e,t)}function ne(e){var t=e.token;ve(e,"extend"),ve(e,"scalar");var n=a(e),r=D(e,!0);if(0===r.length)throw ge(e);return{kind:ke.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:fe(e,t)}}function re(e){var t=e.token;ve(e,"extend"),ve(e,"type");var n=a(e),r=B(e),i=D(e,!0),o=Q(e);if(0===r.length&&0===i.length&&0===o.length)throw ge(e);return{kind:ke.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,loc:fe(e,t)}}function ie(e){var t=e.token;ve(e,"extend"),ve(e,"interface");var n=a(e),r=D(e,!0),i=Q(e);if(0===r.length&&0===i.length)throw ge(e);return{kind:ke.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:fe(e,t)}}function oe(e){var t=e.token;ve(e,"extend"),ve(e,"union");var n=a(e),r=D(e,!0),i=Y(e);if(0===r.length&&0===i.length)throw ge(e);return{kind:ke.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:fe(e,t)}}function ae(e){var t=e.token;ve(e,"extend"),ve(e,"enum");var n=a(e),r=D(e,!0),i=J(e);if(0===r.length&&0===i.length)throw ge(e);return{kind:ke.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:fe(e,t)}}function ue(e){var t=e.token;ve(e,"extend"),ve(e,"input");var n=a(e),r=D(e,!0),i=ee(e);if(0===r.length&&0===i.length)throw ge(e);return{kind:ke.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:fe(e,t)}}function se(e){var t=e.token,n=R(e);ve(e,"directive"),me(e,_e.TokenKind.AT);var r=a(e),i=K(e);ve(e,"on");var o=le(e);return{kind:ke.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,locations:o,loc:fe(e,t)}}function le(e){he(e,_e.TokenKind.PIPE);var t=[];do{t.push(ce(e))}while(he(e,_e.TokenKind.PIPE));return t}function ce(e){var t=e.token,n=a(e);if(Ce.DirectiveLocation.hasOwnProperty(n.value))return n;throw ge(e,t)}function fe(e,t){if(!e.options.noLocation)return new pe(t,e.lastToken,e.source)}function pe(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function de(e,t){return e.token.kind===t}function he(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function me(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,Ee.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,_e.getTokenDesc)(n))}function ve(e,t){var n=e.token;if(n.kind===_e.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,Ee.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,_e.getTokenDesc)(n))}function ge(e,t){var n=t||e.token;return(0,Ee.syntaxError)(e.source,n.start,"Unexpected "+(0,_e.getTokenDesc)(n))}function ye(e,t,n,r){me(e,t);for(var i=[];!he(e,r);)i.push(n(e));return i}function be(e,t,n,r){me(e,t);for(var i=[n(e)];!he(e,r);)i.push(n(e));return i}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=r,t.parseValue=i,t.parseType=o,t.parseConstValue=S,t.parseTypeReference=A,t.parseNamedType=P;var Te=n(78),Ee=n(0),_e=n(54),ke=n(6),Ce=n(20);pe.prototype.toJSON=pe.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){var r=n.name.value;return r===u.SchemaMetaFieldDef.name&&e.getQueryType()===t?u.SchemaMetaFieldDef:r===u.TypeMetaFieldDef.name&&e.getQueryType()===t?u.TypeMetaFieldDef:r===u.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?u.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0;var o=n(6),a=n(1),u=n(10),s=n(13),l=n(21),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.TypeInfo=function(){function e(t,n,o){r(this,e),this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n||i,o&&((0,a.isInputType)(o)&&this._inputTypeStack.push(o),(0,a.isCompositeType)(o)&&this._parentTypeStack.push(o),(0,a.isOutputType)(o)&&this._typeStack.push(o))}return e.prototype.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.prototype.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.prototype.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.prototype.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},e.prototype.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.prototype.getDirective=function(){return this._directive},e.prototype.getArgument=function(){return this._argument},e.prototype.getEnumValue=function(){return this._enumValue},e.prototype.enter=function(e){var t=this._schema;switch(e.kind){case o.Kind.SELECTION_SET:var n=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(n)?n:void 0);break;case o.Kind.FIELD:var r=this.getParentType(),i=void 0,u=void 0;r&&(i=this._getFieldDef(t,r,e))&&(u=i.type),this._fieldDefStack.push(i),this._typeStack.push((0,a.isOutputType)(u)?u:void 0);break;case o.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case o.Kind.OPERATION_DEFINITION:var l=void 0;"query"===e.operation?l=t.getQueryType():"mutation"===e.operation?l=t.getMutationType():"subscription"===e.operation&&(l=t.getSubscriptionType()),this._typeStack.push((0,a.isObjectType)(l)?l:void 0);break;case o.Kind.INLINE_FRAGMENT:case o.Kind.FRAGMENT_DEFINITION:var f=e.typeCondition,p=f?(0,s.typeFromAST)(t,f):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(p)?p:void 0);break;case o.Kind.VARIABLE_DEFINITION:var d=(0,s.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(d)?d:void 0);break;case o.Kind.ARGUMENT:var h=void 0,m=void 0,v=this.getDirective()||this.getFieldDef();v&&(h=(0,c.default)(v.args,function(t){return t.name===e.name.value}))&&(m=h.type),this._argument=h,this._inputTypeStack.push((0,a.isInputType)(m)?m:void 0);break;case o.Kind.LIST:var g=(0,a.getNullableType)(this.getInputType()),y=(0,a.isListType)(g)?g.ofType:g;this._inputTypeStack.push((0,a.isInputType)(y)?y:void 0);break;case o.Kind.OBJECT_FIELD:var b=(0,a.getNamedType)(this.getInputType()),T=void 0;if((0,a.isInputObjectType)(b)){var E=b.getFields()[e.name.value];E&&(T=E.type)}this._inputTypeStack.push((0,a.isInputType)(T)?T:void 0);break;case o.Kind.ENUM:var _=(0,a.getNamedType)(this.getInputType()),k=void 0;(0,a.isEnumType)(_)&&(k=_.getValue(e.value)),this._enumValue=k}},e.prototype.leave=function(e){switch(e.kind){case o.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case o.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case o.Kind.DIRECTIVE:this._directive=null;break;case o.Kind.OPERATION_DEFINITION:case o.Kind.INLINE_FRAGMENT:case o.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case o.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case o.Kind.ARGUMENT:this._argument=null,this._inputTypeStack.pop();break;case o.Kind.LIST:case o.Kind.OBJECT_FIELD:this._inputTypeStack.pop();break;case o.Kind.ENUM:this._enumValue=null}},e}()},function(e,t){"use strict";function n(e,t){for(var n=Object.create(null),i=t.length,o=e.length/2,a=0;i>a;a++){var u=r(e,t[a]);u>Math.max(o,t[a].length/2,1)||(n[t[a]]=u)}return Object.keys(n).sort(function(e,t){return n[e]-n[t]})}function r(e,t){if(e===t)return 0;var n=void 0,r=void 0,i=[],o=e.toLowerCase(),a=t.toLowerCase(),u=o.length,s=a.length;if(o===a)return 1;for(n=0;u>=n;n++)i[n]=[n];for(r=1;s>=r;r++)i[0][r]=r;for(n=1;u>=n;n++)for(r=1;s>=r;r++){var l=o[n-1]===a[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&o[n-1]===a[r-2]&&o[n-2]===a[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[u][s]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){!function(e){e(n(3))}(function(e){"use strict";function t(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function n(e,n){for(var r=t(e),i=r,o=0;n.length>o;o++)-1==i.indexOf(n.charAt(o))&&(i+=n.charAt(o));return r==i?e:RegExp(e.source,i)}function r(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function i(e,t,r){t=n(t,"g");for(var i=r.line,o=r.ch,a=e.lastLine();a>=i;i++,o=0){t.lastIndex=o;var u=e.getLine(i),s=t.exec(u);if(s)return{from:m(i,s.index),to:m(i,s.index+s[0].length),match:s}}}function o(e,t,o){if(!r(t))return i(e,t,o);t=n(t,"gm");for(var a,u=1,s=o.line,l=e.lastLine();l>=s;){for(var c=0;u>c&&s<=l;c++){var f=e.getLine(s++);a=null==a?f:a+"\n"+f}u*=2,t.lastIndex=o.ch;var p=t.exec(a);if(p){var d=a.slice(0,p.index).split("\n"),h=p[0].split("\n"),v=o.line+d.length-1,g=d[d.length-1].length;return{from:m(v,g),to:m(v+h.length-1,1==h.length?g+h[0].length:h[h.length-1].length),match:p}}}}function a(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if(n=i,(r=n.index+(n[0].length||1))==e.length)return n}}function u(e,t,r){t=n(t,"g");for(var i=r.line,o=r.ch,u=e.firstLine();i>=u;i--,o=-1){var s=e.getLine(i);o>-1&&(s=s.slice(0,o));var l=a(s,t);if(l)return{from:m(i,l.index),to:m(i,l.index+l[0].length),match:l}}}function s(e,t,r){t=n(t,"gm");for(var i,o=1,u=r.line,s=e.firstLine();u>=s;){for(var l=0;o>l;l++){var c=e.getLine(u--);i=null==i?c.slice(0,r.ch):c+"\n"+i}o*=2;var f=a(i,t);if(f){var p=i.slice(0,f.index).split("\n"),d=f[0].split("\n"),h=u+p.length,v=p[p.length-1].length;return{from:m(h,v),to:m(h+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:f}}}}function l(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,u=r(e.slice(0,a)).length;if(u==n)return a;u>n?o=a:i=a+1}}function c(e,t,n,r){if(!t.length)return null;var i=r?d:h,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,u=n.ch,s=e.lastLine()+1-o.length;s>=a;a++,u=0){var c=e.getLine(a).slice(u),f=i(c);if(1==o.length){var p=f.indexOf(o[0]);if(-1==p)continue e;var n=l(c,f,p,i)+u;return{from:m(a,l(c,f,p,i)+u),to:m(a,l(c,f,p+o[0].length,i)+u)}}var v=f.length-o[0].length;if(f.slice(v)==o[0]){for(var g=1;o.length-1>g;g++)if(i(e.getLine(a+g))!=o[g])continue e;var y=e.getLine(a+o.length-1),b=i(y),T=o[o.length-1];if(b.slice(0,T.length)==T)return{from:m(a,l(c,f,v,i)+u),to:m(a+o.length-1,l(y,b,T.length,i))}}}}function f(e,t,n,r){if(!t.length)return null;var i=r?d:h,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,u=n.ch,s=e.firstLine()-1+o.length;a>=s;a--,u=-1){var c=e.getLine(a);u>-1&&(c=c.slice(0,u));var f=i(c);if(1==o.length){var p=f.lastIndexOf(o[0]);if(-1==p)continue e;return{from:m(a,l(c,f,p,i)),to:m(a,l(c,f,p+o[0].length,i))}}var v=o[o.length-1];if(f.slice(0,v.length)==v){for(var g=1,n=a-o.length+1;o.length-1>g;g++)if(i(e.getLine(n+g))!=o[g])continue e;var y=e.getLine(a+1-o.length),b=i(y);if(b.slice(b.length-o[0].length)==o[0])return{from:m(a+1-o.length,l(y,b,y.length-o[0].length,i)),to:m(a,l(c,f,v.length,i))}}}}function p(e,t,r,a){this.atOccurrence=!1,this.doc=e,r=r?e.clipPos(r):m(0,0),this.pos={from:r,to:r};var l;"object"==typeof a?l=a.caseFold:(l=a,a=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?f:c)(e,t,r,l)}):(t=n(t,"gm"),this.matches=a&&!1===a.multiline?function(n,r){return(n?u:i)(e,t,r)}:function(n,r){return(n?s:o)(e,t,r)})}var d,h,m=e.Pos;String.prototype.normalize?(d=function(e){return e.normalize("NFD").toLowerCase()},h=function(e){return e.normalize("NFD")}):(d=function(e){return e.toLowerCase()},h=function(e){return e}),p.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=m(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(m(n.from.line-1))):n.to.ch=e.cmpPos(i.to(),this.getCursor("to"));)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})})},function(e,t,n){!function(e){e(n(3))}(function(e){function t(t,n,r){var i,o=t.getWrapperElement();return i=o.appendChild(document.createElement("div")),i.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){function a(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),n(this,null);var u,s=t(this,r,o.bottom),l=!1,c=this,f=s.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",function(e){o.onInput(e,f.value,a)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,a)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,a)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),a()),13==t.keyCode&&i(f.value,t))}),!1!==o.closeOnBlur&&e.on(f,"blur",a)):(u=s.getElementsByTagName("button")[0])&&(e.on(u,"click",function(){a(),c.focus()}),!1!==o.closeOnBlur&&e.on(u,"blur",a),u.focus()),a}),e.defineExtension("openConfirm",function(r,i,o){function a(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus())}n(this,null);var u=t(this,r,o&&o.bottom),s=u.getElementsByTagName("button"),l=!1,c=this,f=1;s[0].focus();for(var p=0;s.length>p;++p){var d=s[p];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),a(),t&&t(c)})}(i[p]),e.on(d,"blur",function(){--f,setTimeout(function(){f>0||a()},200)}),e.on(d,"focus",function(){++f})}}),e.defineExtension("openNotification",function(r,i){function o(){s||(s=!0,clearTimeout(a),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}n(this,o);var a,u=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;return e.on(u,"click",function(t){e.e_preventDefault(t),o()}),l&&(a=setTimeout(o,l)),o})})},function(e,t,n){"use strict";function r(e){var t=void 0;return o(e,function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function i(e,t,n){return n===h.SchemaMetaFieldDef.name&&e.getQueryType()===t?h.SchemaMetaFieldDef:n===h.TypeMetaFieldDef.name&&e.getQueryType()===t?h.TypeMetaFieldDef:n===h.TypeNameMetaFieldDef.name&&(0,d.isCompositeType)(t)?h.TypeNameMetaFieldDef:t.getFields&&"function"==typeof t.getFields?t.getFields()[n]:null}function o(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function a(e){for(var t=Object.keys(e),n=t.length,r=Array(n),i=0;n>i;++i)r[i]=e[t[i]];return r}function u(e,t){return s(t,c(e.string))}function s(e,t){return t?l(l(e.map(function(e){return{proximity:f(c(e.label),t),entry:e}}),function(e){return 2>=e.proximity}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length}).map(function(e){return e.entry}):l(e,function(e){return!e.isDeprecated})}function l(e,t){var n=e.filter(t);return 0===n.length?e:n}function c(e){return e.toLowerCase().replace(/\W/g,"")}function f(e,t){var n=p(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function p(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;o>=n;n++)i[n]=[n];for(r=1;a>=r;r++)i[0][r]=r;for(n=1;o>=n;n++)for(r=1;a>=r;r++){var u=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+u),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+u))}return i[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.getDefinitionState=r,t.getFieldDef=i,t.forEachState=o,t.objectValues=a,t.hintList=u;var d=n(4),h=n(10)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(242);Object.defineProperty(t,"CharacterStream",{enumerable:!0,get:function(){return r(i).default}});var o=n(123);Object.defineProperty(t,"LexRules",{enumerable:!0,get:function(){return o.LexRules}}),Object.defineProperty(t,"ParseRules",{enumerable:!0,get:function(){return o.ParseRules}}),Object.defineProperty(t,"isIgnored",{enumerable:!0,get:function(){return o.isIgnored}});var a=n(124);Object.defineProperty(t,"butNot",{enumerable:!0,get:function(){return a.butNot}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return a.list}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return a.opt}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return a.p}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return a.t}});var u=n(243);Object.defineProperty(t,"onlineParser",{enumerable:!0,get:function(){return r(u).default}})},function(e,t,n){"use strict";(function(e){function r(e,t){var n=t.loc;return(0,p.default)(n,"Expected ASTNode to have a location."),(0,c.locToRange)(e,n)}function i(e,t){var n=t.loc;return(0,p.default)(n,"Expected ASTNode to have a location."),(0,c.offsetToPosition)(e,n.start)}function o(t,n,i){var o,a,u;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(o=n.name.value,a=i.filter(function(e){var t=e.definition;return t.name&&t.name.value===o}),0!==a.length){s.next=5;break}return e.stderr.write("Definition not found for GraphQL type "+o),s.abrupt("return",{queryRange:[],definitions:[]});case 5:return u=a.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return l(t||"",n,r)}),s.abrupt("return",{definitions:u,queryRange:u.map(function(){return r(t,n)})});case 7:case"end":return s.stop()}},null,this)}function a(t,n,i){var o,a,u;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=n.name.value,a=i.filter(function(e){return e.definition.name.value===o}),0!==a.length){l.next=5;break}return e.stderr.write("Definition not found for GraphQL fragment "+o),l.abrupt("return",{queryRange:[],definitions:[]});case 5:return u=a.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return s(t||"",n,r)}),l.abrupt("return",{definitions:u,queryRange:u.map(function(){return r(t,n)})});case 7:case"end":return l.stop()}},null,this)}function u(e,t,n){return{definitions:[s(e,t,n)],queryRange:n.name?[r(t,n.name)]:[]}}function s(e,t,n){var o=n.name;return(0,p.default)(o,"Expected ASTNode to have a Name."),{path:e,position:i(t,n),range:r(t,n),name:o.value||"",language:d,projectRoot:e}}function l(e,t,n){var o=n.name;return(0,p.default)(o,"Expected ASTNode to have a Name."),{path:e,position:i(t,n),range:r(t,n),name:o.value||"",language:d,projectRoot:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE=void 0,t.getDefinitionQueryResultForNamedType=o,t.getDefinitionQueryResultForFragmentSpread=a,t.getDefinitionQueryResultForDefinitionNode=u;var c=n(43),f=n(126),p=function(e){return e&&e.__esModule?e:{default:e}}(f),d=t.LANGUAGE="GraphQL"}).call(t,n(51))},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],o=null;try{o=(0,f.parse)(e)}catch(t){var a=u(t.locations[0],e);return[{severity:h.ERROR,message:t.message,source:"GraphQL: Syntax",range:a}]}return i(o,t,n,r)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3];return t?o((0,d.validateWithCustomRules)(t,e,n,r),function(e){return a(e,h.ERROR,"Validation")}).concat(f.findDeprecatedUsages?o((0,f.findDeprecatedUsages)(t,e),function(e){return a(e,h.WARNING,"Deprecation")}):[]):[]}function o(e,t){return Array.prototype.concat.apply([],e.map(t))}function a(e,t,n){return e.nodes?e.nodes.map(function(r){var i="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;(0,c.default)(e.locations,"GraphQL validation error requires locations.");var o=e.locations[0],a=s(i),u=o.column+(a.end-a.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new d.Range(new d.Position(o.line-1,o.column-1),new d.Position(o.line-1,u))}}):[]}function u(e,t){var n=(0,p.onlineParser)(),r=n.startState(),i=t.split("\n");(0,c.default)(i.length>=e.line,"Query text must have more lines than where the error happened");for(var o=null,a=0;e.line>a;a++)for(o=new p.CharacterStream(i[a]);!o.eol();){var u=n.token(o,r);if("invalidchar"===u)break}(0,c.default)(o,"Expected Parser stream to be available.");var s=e.line-1,l=o.getStartOfToken(),f=o.getCurrentPosition();return new d.Range(new d.Position(s,l),new d.Position(s,f))}function s(e){var t=e,n=t.loc;return(0,c.default)(n,"Expected ASTNode to have a location."),n}Object.defineProperty(t,"__esModule",{value:!0}),t.SEVERITY=void 0,t.getDiagnostics=r,t.validateQuery=i,t.getRange=u;var l=n(126),c=function(e){return e&&e.__esModule?e:{default:e}}(l),f=n(4),p=n(31),d=n(43),h=t.SEVERITY={ERROR:1,WARNING:2,INFORMATION:3,HINT:4}},function(e,t,n){"use strict";function r(e,t,n,r){var o=r||(0,h.getTokenAtPosition)(t,n);if(!e||!o||!o.state)return[];var s=o.state,p=s.kind,d=s.step,m=(0,h.getTypeInfo)(e,o.state),v={schema:e};if("Field"===p&&0===d&&m.fieldDef||"AliasedField"===p&&2===d&&m.fieldDef){var g=[];return i(g,m,v),f(g,v,m.fieldDef),g.join("").trim()}if("Directive"===p&&1===d&&m.directiveDef){var y=[];return a(y,m,v),f(y,v,m.directiveDef),y.join("").trim()}if("Argument"===p&&0===d&&m.argDef){var b=[];return u(b,m,v),f(b,v,m.argDef),b.join("").trim()}if("EnumValue"===p&&m.enumValue&&m.enumValue.description){var T=[];return l(T,m,v),f(T,v,m.enumValue),T.join("").trim()}if("NamedType"===p&&m.type&&m.type.description){var E=[];return c(E,m,v,m.type),f(E,v,m.type),E.join("").trim()}}function i(e,t,n){o(e,t,n),s(e,t,n,t.type)}function o(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(c(e,t,n,t.parentType),d(e,".")),d(e,r)}}function a(e,t){if(t.directiveDef){d(e,"@"+t.directiveDef.name)}}function u(e,t,n){if(t.directiveDef?a(e,t,n):t.fieldDef&&o(e,t,n),t.argDef){var r=t.argDef.name;d(e,"("),d(e,r),s(e,t,n,t.inputType),d(e,")")}}function s(e,t,n,r){d(e,": "),c(e,t,n,r)}function l(e,t,n){if(t.enumValue){var r=t.enumValue.name;c(e,t,n,t.inputType),d(e,"."),d(e,r)}}function c(e,t,n,r){r&&(r instanceof m.GraphQLNonNull?(c(e,t,n,r.ofType),d(e,"!")):r instanceof m.GraphQLList?(d(e,"["),c(e,t,n,r.ofType),d(e,"]")):d(e,r.name))}function f(e,t,n){if(n){var r="string"==typeof n.description?n.description:null;r&&(d(e,"\n\n"),d(e,r)),p(e,t,n)}}function p(e,t,n){if(n){var r="string"==typeof n.deprecationReason?n.deprecationReason:null;r&&(d(e,"\n\n"),d(e,"Deprecated: "),d(e,r))}}function d(e,t){e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getHoverInformation=r;var h=n(23),m=n(4)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 a(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)}function u(e,t){return e instanceof d.GraphQLNonNull?c.default.createElement("span",null,u(e.ofType,t),"!"):e instanceof d.GraphQLList?c.default.createElement("span",null,"[",u(e.ofType,t),"]"):c.default.createElement("a",{className:"type-name",onClick:function(n){return t(e,n)}},e.name)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(5),c=r(l),f=n(7),p=r(f),d=n(4),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type}},{key:"render",value:function(){return u(this.props.type,this.props.onClick)}}]),t}(c.default.Component);h.propTypes={type:p.default.object,onClick:p.default.func},t.default=h},function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){if((0,F.isSchema)(e)||(0,V.default)(0,"Expected "+e+" to be a GraphQL schema."),e.__validationErrors)return e.__validationErrors;var t=new K(e);u(t),l(t),f(t);var n=t.getErrors();return e.__validationErrors=n,n}function a(e){var t=o(e);if(0!==t.length)throw Error(t.map(function(e){return e.message}).join("\n\n"))}function u(e){var t=e.schema,n=t.getQueryType();n?(0,I.isObjectType)(n)||e.reportError("Query root type must be Object type, it cannot be "+n+".",s(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var r=t.getMutationType();r&&!(0,I.isObjectType)(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+r+".",s(t,r,"mutation"));var i=t.getSubscriptionType();i&&!(0,I.isObjectType)(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+i+".",s(t,i,"subscription"))}function s(e,t,n){var r=e.astNode,i=r&&r.operationTypes.find(function(e){return e.operation===n});return i?i.type:t&&t.astNode}function l(e){e.schema.getDirectives().forEach(function(t){if(!(0,A.isDirective)(t))return void e.reportError("Expected directive but got: "+t+".",t&&t.astNode);c(e,t);var n=Object.create(null);t.args.forEach(function(r){var i=r.name;if(c(e,r),n[i])return void e.reportError("Argument @"+t.name+"("+i+":) can only be defined once.",O(t,i));n[i]=!0,(0,I.isInputType)(r.type)||e.reportError("The type of @"+t.name+"("+i+":) must be Input Type but got: "+r.type+".",L(t,i))})})}function c(e,t){if(!e.schema.__allowedLegacyNames||-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=(0,Q.isValidNameError)(t.name,t.astNode||void 0);n&&e.addError(n)}}function f(e){var t=e.schema.getTypeMap();(0,G.default)(t).forEach(function(t){if(!(0,I.isNamedType)(t))return void e.reportError("Expected GraphQL named type but got: "+t+".",t&&t.astNode);(0,P.isIntrospectionType)(t)||c(e,t),(0,I.isObjectType)(t)?(p(e,t),d(e,t)):(0,I.isInterfaceType)(t)?p(e,t):(0,I.isUnionType)(t)?m(e,t):(0,I.isEnumType)(t)?v(e,t):(0,I.isInputObjectType)(t)&&g(e,t)})}function p(e,t){var n=(0,G.default)(t.getFields());0===n.length&&e.reportError("Type "+t.name+" must define one or more fields.",b(t)),n.forEach(function(n){c(e,n);var r=k(t,n.name);if(r.length>1)return void e.reportError("Field "+t.name+"."+n.name+" can only be defined once.",r);(0,I.isOutputType)(n.type)||e.reportError("The type of "+t.name+"."+n.name+" must be Output Type but got: "+n.type+".",C(t,n.name));var i=Object.create(null);n.args.forEach(function(r){var o=r.name;c(e,r),i[o]&&e.reportError("Field argument "+t.name+"."+n.name+"("+o+":) can only be defined once.",S(t,n.name,o)),i[o]=!0,(0,I.isInputType)(r.type)||e.reportError("The type of "+t.name+"."+n.name+"("+o+":) must be Input Type but got: "+r.type+".",w(t,n.name,o))})})}function d(e,t){var n=Object.create(null);t.getInterfaces().forEach(function(r){return(0,I.isInterfaceType)(r)?n[r.name]?void e.reportError("Type "+t.name+" can only implement "+r.name+" once.",E(t,r)):(n[r.name]=!0,void h(e,t,r)):void e.reportError("Type "+t+" must only implement Interface types, it cannot implement "+r+".",T(t,r))})}function h(e,t,n){var r=t.getFields(),i=n.getFields();Object.keys(i).forEach(function(o){var a=r[o],u=i[o];if(!a)return void e.reportError("Interface field "+n.name+"."+o+" expected but "+t.name+" does not provide it.",[_(n,o),t.astNode]);(0,q.isTypeSubTypeOf)(e.schema,a.type,u.type)||e.reportError("Interface field "+n.name+"."+o+" expects type "+u.type+" but "+t.name+"."+o+" is type "+a.type+".",[C(n,o),C(t,o)]),u.args.forEach(function(r){var i=r.name,u=(0,R.default)(a.args,function(e){return e.name===i});if(!u)return void e.reportError("Interface field argument "+n.name+"."+o+"("+i+":) expected but "+t.name+"."+o+" does not provide it.",[N(n,o,i),_(t,o)]);(0,q.isEqualType)(r.type,u.type)||e.reportError("Interface field argument "+n.name+"."+o+"("+i+":) expects type "+r.type+" but "+t.name+"."+o+"("+i+":) is type "+u.type+".",[w(n,o,i),w(t,o,i)])}),a.args.forEach(function(r){var i=r.name;!(0,R.default)(u.args,function(e){return e.name===i})&&(0,I.isNonNullType)(r.type)&&e.reportError("Object field argument "+t.name+"."+o+"("+i+":) is of required type "+r.type+" but is not also provided by the Interface field "+n.name+"."+o+".",[w(t,o,i),_(n,o)])})})}function m(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type "+t.name+" must define one or more member types.",t.astNode);var r=Object.create(null);n.forEach(function(n){if(r[n.name])return void e.reportError("Union type "+t.name+" can only include type "+n.name+" once.",x(t,n.name));r[n.name]=!0,(0,I.isObjectType)(n)||e.reportError("Union type "+t.name+" can only include Object types, it cannot include "+n+".",x(t,n+""))})}function v(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type "+t.name+" must define one or more values.",t.astNode),n.forEach(function(n){var r=n.name,i=D(t,r);i&&i.length>1&&e.reportError("Enum type "+t.name+" can include value "+r+" only once.",i),c(e,n),"true"!==r&&"false"!==r&&"null"!==r||e.reportError("Enum type "+t.name+" cannot include value: "+r+".",n.astNode)})}function g(e,t){var n=(0,G.default)(t.getFields());0===n.length&&e.reportError("Input Object type "+t.name+" must define one or more fields.",t.astNode),n.forEach(function(n){c(e,n),(0,I.isInputType)(n.type)||e.reportError("The type of "+t.name+"."+n.name+" must be Input Type but got: "+n.type+".",n.astNode&&n.astNode.type)})}function y(e){return e.astNode?e.extensionASTNodes?[e.astNode].concat(e.extensionASTNodes):[e.astNode]:e.extensionASTNodes||[]}function b(e){return e.astNode?e.extensionASTNodes?[e.astNode].concat(e.extensionASTNodes):[e.astNode]:e.extensionASTNodes||[]}function T(e,t){return E(e,t)[0]}function E(e,t){for(var n=[],r=y(e),i=0;r.length>i;i++){var o=r[i];o&&o.interfaces&&o.interfaces.forEach(function(e){e.name.value===t.name&&n.push(e)})}return n}function _(e,t){return k(e,t)[0]}function k(e,t){for(var n=[],r=b(e),i=0;r.length>i;i++){var o=r[i];o&&o.fields&&o.fields.forEach(function(e){e.name.value===t&&n.push(e)})}return n}function C(e,t){var n=_(e,t);return n&&n.type}function N(e,t,n){return S(e,t,n)[0]}function S(e,t,n){var r=[],i=_(e,t);return i&&i.arguments&&i.arguments.forEach(function(e){e.name.value===n&&r.push(e)}),r}function w(e,t,n){var r=N(e,t,n);return r&&r.type}function O(e,t){var n=[],r=e.astNode;return r&&r.arguments&&r.arguments.forEach(function(e){e.name.value===t&&n.push(e)}),n}function L(e,t){var n=O(e,t)[0];return n&&n.type}function x(e,t){return e.astNode&&e.astNode.types&&e.astNode.types.filter(function(e){return e.name.value===t})}function D(e,t){return e.astNode&&e.astNode.values&&e.astNode.values.filter(function(e){return e.name.value===t})}Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchema=o,t.assertValidSchema=a;var I=n(1),A=n(12),P=n(10),F=n(8),M=n(21),R=r(M),j=n(9),V=r(j),U=n(15),G=r(U),B=n(17),Q=n(77),q=n(40),K=function(){function e(t){i(this,e),this._errors=[],this.schema=t}return e.prototype.reportError=function(e,t){var n=(Array.isArray(t)?t:[t]).filter(Boolean);this.addError(new B.GraphQLError(e,n))},e.prototype.addError=function(e){this._errors.push(e)},e.prototype.getErrors=function(){return this._errors},e}()},function(e,t){"use strict";function n(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e){return null===e||void 0===e||e!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e,t){return e===t||((0,a.isNonNullType)(e)&&(0,a.isNonNullType)(t)?r(e.ofType,t.ofType):!(!(0,a.isListType)(e)||!(0,a.isListType)(t))&&r(e.ofType,t.ofType))}function i(e,t,n){return t===n||((0,a.isNonNullType)(n)?!!(0,a.isNonNullType)(t)&&i(e,t.ofType,n.ofType):(0,a.isNonNullType)(t)?i(e,t.ofType,n):(0,a.isListType)(n)?!!(0,a.isListType)(t)&&i(e,t.ofType,n.ofType):!(0,a.isListType)(t)&&!!((0,a.isAbstractType)(n)&&(0,a.isObjectType)(t)&&e.isPossibleType(n,t)))}function o(e,t,n){return t===n||((0,a.isAbstractType)(t)?(0,a.isAbstractType)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n):!!(0,a.isAbstractType)(n)&&e.isPossibleType(n,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=r,t.isTypeSubTypeOf=i,t.doTypesOverlap=o;var a=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r,i,a,u){return 1===arguments.length?o(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):o(e,t,n,r,i,a,u)}function o(e,t,n,r,i,o,u){l(e,t,i);var s=c(e,t,n,r,i,o,u);return Array.isArray(s)?{errors:s}:a(s,f(s,s.operation,n))}function a(e,t){return(0,H.default)(t)?t.then(function(t){return a(e,t)}):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function u(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function s(e,t){return{prev:e,key:t}}function l(e,t,n){t||(0,U.default)(0,"Must provide document"),(0,oe.assertValidSchema)(e),n&&"object"!==(void 0===n?"undefined":M(n))&&(0,U.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function c(e,t,n,r,i,o,a){for(var u=[],s=void 0,l=!1,c=Object.create(null),f=0;t.definitions.length>f;f++){var p=t.definitions[f];switch(p.kind){case ee.Kind.OPERATION_DEFINITION:!o&&s?l=!0:(!o||p.name&&p.name.value===o)&&(s=p);break;case ee.Kind.FRAGMENT_DEFINITION:c[p.name.value]=p}}s?l&&u.push(new j.GraphQLError("Must provide operation name if query contains multiple operations.")):u.push(o?new j.GraphQLError('Unknown operation named "'+o+'".'):new j.GraphQLError("Must provide an operation."));var d=void 0;if(s){var h=(0,te.getVariableValues)(e,s.variableDefinitions||[],i||{});h.errors?u.push.apply(u,h.errors):d=h.coerced}return 0!==u.length?u:(s||(0,U.default)(0,"Has operation if no errors."),d||(0,U.default)(0,"Has variables if no errors."),{schema:e,fragments:c,rootValue:n,contextValue:r,operation:s,variableValues:d,fieldResolver:a||ue,errors:u})}function f(e,t,n){var r=p(e.schema,t),i=m(e,r,t.selectionSet,Object.create(null),Object.create(null));try{var o="mutation"===t.operation?d(e,r,n,void 0,i):h(e,r,n,void 0,i);return(0,H.default)(o)?o.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):o}catch(t){return e.errors.push(t),null}}function p(e,t){switch(t.operation){case"query":var n=e.getQueryType();if(!n)throw new j.GraphQLError("Schema does not define the required query root type.",[t]);return n;case"mutation":var r=e.getMutationType();if(!r)throw new j.GraphQLError("Schema is not configured for mutations.",[t]);return r;case"subscription":var i=e.getSubscriptionType();if(!i)throw new j.GraphQLError("Schema is not configured for subscriptions.",[t]);return i;default:throw new j.GraphQLError("Can only execute queries, mutations and subscriptions.",[t])}}function d(e,t,n,r,i){return(0,X.default)(Object.keys(i),function(o,a){var u=i[a],l=s(r,a),c=b(e,t,n,u,l);return void 0===c?o:(0,H.default)(c)?c.then(function(e){return o[a]=e,o}):(o[a]=c,o)},Object.create(null))}function h(e,t,n,r,i){var o=!1,a=Object.keys(i).reduce(function(a,u){var l=i[u],c=s(r,u),f=b(e,t,n,l,c);return void 0===f?a:(a[u]=f,!o&&(0,H.default)(f)&&(o=!0),a)},Object.create(null));return o?(0,$.default)(a):a}function m(e,t,n,r,i){for(var o=0;n.selections.length>o;o++){var a=n.selections[o];switch(a.kind){case ee.Kind.FIELD:if(!v(e,a))continue;var u=y(a);r[u]||(r[u]=[]),r[u].push(a);break;case ee.Kind.INLINE_FRAGMENT:if(!v(e,a)||!g(e,a,t))continue;m(e,t,a.selectionSet,r,i);break;case ee.Kind.FRAGMENT_SPREAD:var s=a.name.value;if(i[s]||!v(e,a))continue;i[s]=!0;var l=e.fragments[s];if(!l||!g(e,l,t))continue;m(e,t,l.selectionSet,r,i)}}return r}function v(e,t){var n=(0,te.getDirectiveValues)(ie.GraphQLSkipDirective,t,e.variableValues);if(n&&!0===n.if)return!1;var r=(0,te.getDirectiveValues)(ie.GraphQLIncludeDirective,t,e.variableValues);return!r||!1!==r.if}function g(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=(0,Z.typeFromAST)(e.schema,r);return i===n||!!(0,ne.isAbstractType)(i)&&e.schema.isPossibleType(i,n)}function y(e){return e.alias?e.alias.value:e.name.value}function b(e,t,n,r,i){var o=r[0],a=o.name.value,u=F(e.schema,t,a);if(u){var s=u.resolve||e.fieldResolver,l=T(e,u,r,t,i);return k(e,u.type,r,l,i,E(e,u,r,s,n,l))}}function T(e,t,n,r,i){return{fieldName:n[0].name.value,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function E(e,t,n,r,i,o){try{var a=(0,te.getArgumentValues)(t,n[0],e.variableValues),u=e.contextValue,s=r(i,a,u,o);return(0,H.default)(s)?s.then(void 0,_):s}catch(e){return _(e)}}function _(e){return e instanceof Error?e:Error(e||void 0)}function k(e,t,n,r,i,o){if((0,ne.isNonNullType)(t))return C(e,t,n,r,i,o);try{var a=C(e,t,n,r,i,o);return(0,H.default)(a)?a.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}function C(e,t,n,r,i,o){try{var a=N(e,t,n,r,i,o);return(0,H.default)(a)?a.then(void 0,function(e){return Promise.reject((0,j.locatedError)(_(e),n,u(i)))}):a}catch(e){throw(0,j.locatedError)(_(e),n,u(i))}}function N(e,t,n,r,i,o){if((0,H.default)(o))return o.then(function(o){return N(e,t,n,r,i,o)});if(o instanceof Error)throw o;if((0,ne.isNonNullType)(t)){var a=N(e,t.ofType,n,r,i,o);if(null===a)throw Error("Cannot return null for non-nullable field "+r.parentType.name+"."+r.fieldName+".");return a}if((0,q.default)(o))return null;if((0,ne.isListType)(t))return S(e,t,n,r,i,o);if((0,ne.isLeafType)(t))return w(t,o);if((0,ne.isAbstractType)(t))return O(e,t,n,r,i,o);if((0,ne.isObjectType)(t))return x(e,t,n,r,i,o);throw Error('Cannot complete value of unexpected type "'+t+'".')}function S(e,t,n,r,i,o){(0,R.isCollection)(o)||(0,U.default)(0,"Expected Iterable, but did not find one for field "+r.parentType.name+"."+r.fieldName+".");var a=t.ofType,u=!1,l=[];return(0,R.forEach)(o,function(t,o){var c=s(i,o),f=k(e,a,n,r,c,t);!u&&(0,H.default)(f)&&(u=!0),l.push(f)}),u?Promise.all(l):l}function w(e,t){e.serialize||(0,U.default)(0,"Missing serialize method on type");var n=e.serialize(t);if((0,B.default)(n))throw Error('Expected a value of type "'+e+'" but received: '+t);return n}function O(e,t,n,r,i,o){var a=t.resolveType?t.resolveType(o,e.contextValue,r):P(o,e.contextValue,r,t);return(0,H.default)(a)?a.then(function(a){return x(e,L(a,e,t,n,r,o),n,r,i,o)}):x(e,L(a,e,t,n,r,o),n,r,i,o)}function L(e,t,n,r,i,o){var a="string"==typeof e?t.schema.getType(e):e;if(!(0,ne.isObjectType)(a))throw new j.GraphQLError("Abstract type "+n.name+" must resolve to an Object type at runtime for field "+i.parentType.name+"."+i.fieldName+' with value "'+o+'", received "'+a+'". Either the '+n.name+' type should provide a "resolveType" function or each possible types should provide an "isTypeOf" function.',r);if(!t.schema.isPossibleType(n,a))throw new j.GraphQLError('Runtime Object type "'+a.name+'" is not a possible type for "'+n.name+'".',r);return a}function x(e,t,n,r,i,o){if(t.isTypeOf){var a=t.isTypeOf(o,e.contextValue,r);if((0,H.default)(a))return a.then(function(a){if(!a)throw D(t,o,n);return I(e,t,n,r,i,o)});if(!a)throw D(t,o,n)}return I(e,t,n,r,i,o)}function D(e,t,n){return new j.GraphQLError('Expected value of type "'+e.name+'" but got: '+t+".",n)}function I(e,t,n,r,i,o){return h(e,t,o,i,ae(e,t,n))}function A(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;n.length>o;o++){var a=n[o].selectionSet;a&&(r=m(e,t,a,r,i))}return r}function P(e,t,n,r){if(null!==e&&"object"===(void 0===e?"undefined":M(e))&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),o=[],a=0;i.length>a;a++){var u=i[a];if(u.isTypeOf){var s=u.isTypeOf(e,t,n);if((0,H.default)(s))o[a]=s;else if(s)return u}}return o.length?Promise.all(o).then(function(e){for(var t=0;e.length>t;t++)if(e[t])return i[t]}):void 0}function F(e,t,n){return n===re.SchemaMetaFieldDef.name&&e.getQueryType()===t?re.SchemaMetaFieldDef:n===re.TypeMetaFieldDef.name&&e.getQueryType()===t?re.TypeMetaFieldDef:n===re.TypeNameMetaFieldDef.name?re.TypeNameMetaFieldDef:t.getFields()[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFieldResolver=void 0;var M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.execute=i,t.responsePathAsArray=u,t.addPath=s,t.assertValidExecutionArguments=l,t.buildExecutionContext=c,t.getOperationRootType=p,t.collectFields=m,t.buildResolveInfo=T,t.resolveFieldValueOrError=E,t.getFieldDef=F;var R=n(24),j=n(0),V=n(9),U=r(V),G=n(11),B=r(G),Q=n(39),q=r(Q),K=n(107),H=r(K),z=n(154),W=r(z),Y=n(155),$=r(Y),J=n(156),X=r(J),Z=n(13),ee=n(6),te=n(61),ne=n(1),re=(n(8),n(10)),ie=n(12),oe=n(37),ae=(0,W.default)(A),ue=t.defaultFieldResolver=function(e,t,n,r){if("object"===(void 0===e?"undefined":M(e))||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){if(e){if((0,d.isNonNullType)(t)){if(e.kind===p.Kind.NULL)return;return i(e,t.ofType,n)}if(e.kind===p.Kind.NULL)return null;if(e.kind===p.Kind.VARIABLE){var r=e.name.value;if(!n||(0,l.default)(n[r]))return;return n[r]}if((0,d.isListType)(t)){var a=t.ofType;if(e.kind===p.Kind.LIST){for(var s=[],c=e.values,h=0;c.length>h;h++)if(o(c[h],n)){if((0,d.isNonNullType)(a))return;s.push(null)}else{var m=i(c[h],a,n);if((0,l.default)(m))return;s.push(m)}return s}var v=i(e,a,n);if((0,l.default)(v))return;return[v]}if((0,d.isInputObjectType)(t)){if(e.kind!==p.Kind.OBJECT)return;for(var g=Object.create(null),y=(0,u.default)(e.fields,function(e){return e.name.value}),b=(0,f.default)(t.getFields()),T=0;b.length>T;T++){var E=b[T],_=y[E.name];if(_&&!o(_.value,n)){var k=i(_.value,E.type,n);if((0,l.default)(k))return;g[E.name]=k}else if((0,l.default)(E.defaultValue)){if((0,d.isNonNullType)(E.type))return}else g[E.name]=E.defaultValue}return g}if((0,d.isEnumType)(t)){if(e.kind!==p.Kind.ENUM)return;var C=t.getValue(e.value);if(!C)return;return C.value}if((0,d.isScalarType)(t)){var N=void 0;try{N=t.parseLiteral(e,n)}catch(e){return}if((0,l.default)(N))return;return N}throw Error("Unknown type: "+t+".")}}function o(e,t){return e.kind===p.Kind.VARIABLE&&(!t||(0,l.default)(t[e.name.value]))}Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=i;var a=n(18),u=r(a),s=n(11),l=r(s),c=n(15),f=r(c),p=n(6),d=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(244);Object.defineProperty(t,"getASTNodeAtPosition",{enumerable:!0,get:function(){return r.getASTNodeAtPosition}}),Object.defineProperty(t,"pointToOffset",{enumerable:!0,get:function(){return r.pointToOffset}});var i=n(125);Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return i.Position}}),Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return i.Range}}),Object.defineProperty(t,"locToRange",{enumerable:!0,get:function(){return i.locToRange}}),Object.defineProperty(t,"offsetToPosition",{enumerable:!0,get:function(){return i.offsetToPosition}});var o=n(245);Object.defineProperty(t,"validateWithCustomRules",{enumerable:!0,get:function(){return o.validateWithCustomRules}})},function(e,t,n){"use strict";function r(e){var t=void 0;try{t=(0,s.parse)(e)}catch(e){return null}var n=i(e);return{outlineTrees:(0,s.visit)(t,{leave:function(e){return f.hasOwnProperty(e.kind)&&n[e.kind]?n[e.kind](e):null}})}}function i(e){var t=function(t){return{representativeName:t.name,startPosition:(0,l.offsetToPosition)(e,t.loc.start),endPosition:(0,l.offsetToPosition)(e,t.loc.end),children:t.selectionSet||[]}};return{Field:function(e){var n=e.alias?[o("plain",e.alias),o("plain",": ")]:[];return n.push(o("plain",e.name)),u({tokenizedText:n},t(e))},OperationDefinition:function(e){return u({tokenizedText:[o("keyword",e.operation),o("whitespace"," "),o("class-name",e.name)]},t(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return a(e.selections,function(e){return e.kind===c?e.selectionSet:e})},Name:function(e){return e.value},FragmentDefinition:function(e){return u({tokenizedText:[o("keyword","fragment"),o("whitespace"," "),o("class-name",e.name)]},t(e))},FragmentSpread:function(e){return u({tokenizedText:[o("plain","..."),o("class-name",e.name)]},t(e))},InlineFragment:function(e){return e.selectionSet}}}function o(e,t){return{kind:e,value:t}}function a(e,t){for(var n=[],r=0;e.length>r;r++){var i=t(e[r],r);Array.isArray(i)?n.push.apply(n,i):n.push(i)}return n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getOutline=r;var s=n(4),l=n(43),c=s.Kind.INLINE_FRAGMENT,f={Field:!0,OperationDefinition:!0,Document:!0,SelectionSet:!0,Name:!0,FragmentDefinition:!0,FragmentSpread:!0,InlineFragment:!0}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLanguageService=void 0;var i=n(4),o=n(23),a=n(34),u=n(33),s=n(32),l=n(43),c=i.Kind.FRAGMENT_DEFINITION,f=i.Kind.OBJECT_TYPE_DEFINITION,p=i.Kind.INTERFACE_TYPE_DEFINITION,d=i.Kind.ENUM_TYPE_DEFINITION,h=i.Kind.UNION_TYPE_DEFINITION,m=i.Kind.SCALAR_TYPE_DEFINITION,v=i.Kind.INPUT_OBJECT_TYPE_DEFINITION,g=i.Kind.SCALAR_TYPE_EXTENSION,y=i.Kind.OBJECT_TYPE_EXTENSION,b=i.Kind.INTERFACE_TYPE_EXTENSION,T=i.Kind.UNION_TYPE_EXTENSION,E=i.Kind.ENUM_TYPE_EXTENSION,_=i.Kind.INPUT_OBJECT_TYPE_EXTENSION,k=i.Kind.DIRECTIVE_DEFINITION,C=i.Kind.FRAGMENT_SPREAD,N=i.Kind.OPERATION_DEFINITION,S=i.Kind.NAMED_TYPE;t.GraphQLLanguageService=function(){function e(t){r(this,e),this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}return e.prototype.getDiagnostics=function(e,t,r){var o,a,s,l,c,C,N,S,w,O,L,x,D,I;return regeneratorRuntime.async(function(A){for(;;)switch(A.prev=A.next){case 0:o=!1,a=this._graphQLConfig.getConfigForFile(t),s=a.schemaPath,A.prev=3,l=(0,i.parse)(e),s&&t===s||(o=l.definitions.some(function(e){switch(e.kind){case f:case p:case d:case h:case m:case v:case g:case y:case b:case T:case E:case _:case k:return!0}return!1})),A.next=12;break;case 8:return A.prev=8,A.t0=A.catch(3),c=(0,u.getRange)(A.t0.locations[0],e),A.abrupt("return",[{severity:u.SEVERITY.ERROR,message:A.t0.message,source:"GraphQL: Syntax",range:c}]);case 12:return C=e,A.next=15,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(a));case 15:return N=A.sent,A.next=18,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependencies(e,N));case 18:S=A.sent,w=S.reduce(function(e,t){return e+" "+(0,i.print)(t.definition)},""),C=C+" "+w,O=null,A.prev=22,O=(0,i.parse)(C),A.next=29;break;case 26:return A.prev=26,A.t1=A.catch(22),A.abrupt("return",[]);case 29:return L=void 0,x=a.extensions.customValidationRules,x&&(D=n(127).resolve(""+x))&&(L=n(127)(""+D)(this._graphQLConfig)),A.next=34,regeneratorRuntime.awrap(this._graphQLCache.getSchema(a.projectName,o).catch(function(){return null}));case 34:if(I=A.sent){A.next=37;break}return A.abrupt("return",[]);case 37:return A.abrupt("return",(0,u.validateQuery)(O,I,L,r));case 38:case"end":return A.stop()}},null,this,[[3,8],[22,26]])},e.prototype.getAutocompleteSuggestions=function(e,t,n){var r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return r=this._graphQLConfig.getConfigForFile(n),a.next=3,regeneratorRuntime.awrap(this._graphQLCache.getSchema(r.projectName).catch(function(){return null}));case 3:if(!(i=a.sent)){a.next=6;break}return a.abrupt("return",(0,o.getAutocompleteSuggestions)(i,e,t));case 6:return a.abrupt("return",[]);case 7:case"end":return a.stop()}},null,this)},e.prototype.getHoverInformation=function(e,t,n){var r,i;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=this._graphQLConfig.getConfigForFile(n),o.next=3,regeneratorRuntime.awrap(this._graphQLCache.getSchema(r.projectName).catch(function(){return null}));case 3:if(!(i=o.sent)){o.next=6;break}return o.abrupt("return",(0,a.getHoverInformation)(i,e,t));case 6:return o.abrupt("return","");case 7:case"end":return o.stop()}},null,this)},e.prototype.getDefinition=function(e,t,n){var r,o,a;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:r=this._graphQLConfig.getConfigForFile(n),o=void 0,u.prev=2,o=(0,i.parse)(e),u.next=9;break;case 6:return u.prev=6,u.t0=u.catch(2),u.abrupt("return",null);case 9:if(!(a=(0,l.getASTNodeAtPosition)(e,o,t))){u.next=17;break}u.t1=a.kind,u.next=u.t1===C?14:u.t1===c?15:u.t1===N?15:u.t1===S?16:17;break;case 14:return u.abrupt("return",this._getDefinitionForFragmentSpread(e,o,a,n,r));case 15:return u.abrupt("return",(0,s.getDefinitionQueryResultForDefinitionNode)(n,e,a));case 16:return u.abrupt("return",this._getDefinitionForNamedType(e,o,a,n,r));case 17:return u.abrupt("return",null);case 18:case"end":return u.stop()}},null,this,[[2,6]])},e.prototype._getDefinitionForNamedType=function(e,t,n,r,i){var o,a,u,l,c,p;return regeneratorRuntime.async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,regeneratorRuntime.awrap(this._graphQLCache.getObjectTypeDefinitions(i));case 2:return o=h.sent,h.next=5,regeneratorRuntime.awrap(this._graphQLCache.getObjectTypeDependenciesForAST(t,o));case 5:return a=h.sent,u=t.definitions.filter(function(e){return e.kind===f||e.kind===v||e.kind===d}),l=u,c=l.map(function(t){return{filePath:r,content:e,definition:t}}),h.next=11,regeneratorRuntime.awrap((0,s.getDefinitionQueryResultForNamedType)(e,n,a.concat(c)));case 11:return p=h.sent,h.abrupt("return",p);case 13:case"end":return h.stop()}},null,this)},e.prototype._getDefinitionForFragmentSpread=function(e,t,n,r,i){var o,a,u,l,f,p;return regeneratorRuntime.async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(i));case 2:return o=d.sent,d.next=5,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependenciesForAST(t,o));case 5:return a=d.sent,u=t.definitions.filter(function(e){return e.kind===c}),l=u,f=l.map(function(t){return{filePath:r,content:e,definition:t}}),d.next=11,regeneratorRuntime.awrap((0,s.getDefinitionQueryResultForFragmentSpread)(e,n,a.concat(f)));case 11:return p=d.sent,d.abrupt("return",p);case 13:case"end":return d.stop()}},null,this)},e}()},function(e){"use strict";function t(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=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;10>n;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){for(var o,a,u=t(e),s=1;arguments.length>s;s++){o=Object(arguments[s]);for(var l in o)r.call(o,l)&&(u[l]=o[l]);if(n){a=n(o);for(var c=0;a.length>c;c++)i.call(o,a[c])&&(u[a[c]]=o[a[c]])}}return u}},function(e){"use strict";function t(e,t,r,i,o,a,u,s){if(n(t),!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,u,s],f=0;l=Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var n=function(){};e.exports=t},function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){}}r(),e.exports=n(136)},function(e){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,t,n){"use strict";(function(){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e instanceof t}}).call(t,n(51))},function(e){function t(){throw Error("setTimeout has not been defined")}function n(){throw Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===t||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function o(){h&&p&&(h=!1,p.length?d=p.concat(d):m=-1,d.length&&a())}function a(){if(!h){var e=r(o);h=!0;for(var t=d.length;t;){for(p=d,d=[];++m1)for(var n=1;arguments.length>n;n++)t[n-1]=arguments[n];d.push(new u(e,t)),1!==d.length||h||r(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(){return[]},f.binding=function(){throw Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if((0,h.isNonNullType)(t)){var n=i(e,t.ofType);return n&&n.kind===d.Kind.NULL?null:n}if(null===e)return{kind:d.Kind.NULL};if((0,c.default)(e))return null;if((0,h.isListType)(t)){var r=t.ofType;if((0,a.isCollection)(e)){var u=[];return(0,a.forEach)(e,function(e){var t=i(e,r);t&&u.push(t)}),{kind:d.Kind.LIST,values:u}}return i(e,r)}if((0,h.isInputObjectType)(t)){if(null===e||"object"!==(void 0===e?"undefined":o(e)))return null;var l=(0,p.default)(t.getFields()),f=[];return l.forEach(function(t){var n=i(e[t.name],t.type);n&&f.push({kind:d.Kind.OBJECT_FIELD,name:{kind:d.Kind.NAME,value:t.name},value:n})}),{kind:d.Kind.OBJECT,fields:f}}if((0,h.isScalarType)(t)||(0,h.isEnumType)(t)){var g=t.serialize(e);if((0,s.default)(g))return null;if("boolean"==typeof g)return{kind:d.Kind.BOOLEAN,value:g};if("number"==typeof g){var y=g+"";return v.test(y)?{kind:d.Kind.INT,value:y}:{kind:d.Kind.FLOAT,value:y}}if("string"==typeof g)return(0,h.isEnumType)(t)?{kind:d.Kind.ENUM,value:g}:t===m.GraphQLID&&v.test(g)?{kind:d.Kind.INT,value:g}:{kind:d.Kind.STRING,value:g};throw new TypeError("Cannot convert value to AST: "+g)}throw Error("Unknown type: "+t+".")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.astFromValue=i;var a=n(24),u=n(39),s=r(u),l=n(11),c=r(l),f=n(15),p=r(f),d=n(6),h=n(1),m=n(14),v=/^-?(0|[1-9][0-9]*)$/},function(e,t){"use strict";function n(e,t){for(var n=/\r\n|[\n\r]/g,r=1,i=t+1,o=void 0;(o=n.exec(e.body))&&t>o.index;)r+=1,i=t+1-(o.index+o[0].length);return{line:r,column:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=n},function(e,t,n){"use strict";function r(e,t){var n=new u(k.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i,lookahead:o}}function i(){return this.lastToken=this.token,this.token=this.lookahead()}function o(){var e=this.token;if(e.kind!==k.EOF)do{e=e.next||(e.next=l(this,e))}while(e.kind===k.COMMENT);return e}function a(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}function u(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function s(e){return isNaN(e)?k.EOF:127>e?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function l(e,t){var n=e.source,r=n.body,i=r.length,o=f(r,t.end,e),a=e.line,l=1+o-e.lineStart;if(o>=i)return new u(k.EOF,i,i,a,l,t);var h=C.call(r,o);if(32>h&&9!==h&&10!==h&&13!==h)throw(0,T.syntaxError)(n,o,"Cannot contain the invalid character "+s(h)+".");switch(h){case 33:return new u(k.BANG,o,o+1,a,l,t);case 35:return p(n,o,a,l,t);case 36:return new u(k.DOLLAR,o,o+1,a,l,t);case 38:return new u(k.AMP,o,o+1,a,l,t);case 40:return new u(k.PAREN_L,o,o+1,a,l,t);case 41:return new u(k.PAREN_R,o,o+1,a,l,t);case 46:if(46===C.call(r,o+1)&&46===C.call(r,o+2))return new u(k.SPREAD,o,o+3,a,l,t);break;case 58:return new u(k.COLON,o,o+1,a,l,t);case 61:return new u(k.EQUALS,o,o+1,a,l,t);case 64:return new u(k.AT,o,o+1,a,l,t);case 91:return new u(k.BRACKET_L,o,o+1,a,l,t);case 93:return new u(k.BRACKET_R,o,o+1,a,l,t);case 123:return new u(k.BRACE_L,o,o+1,a,l,t);case 124:return new u(k.PIPE,o,o+1,a,l,t);case 125:return new u(k.BRACE_R,o,o+1,a,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return b(n,o,a,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(n,o,h,a,l,t);case 34:return 34===C.call(r,o+1)&&34===C.call(r,o+2)?v(n,o,a,l,t):m(n,o,a,l,t)}throw(0,T.syntaxError)(n,o,c(h))}function c(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+s(e)+"."}function f(e,t,n){for(var r=e.length,i=t;r>i;){var o=C.call(e,i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===C.call(e,i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}function p(e,t,n,r,i){var o=e.body,a=void 0,s=t;do{a=C.call(o,++s)}while(null!==a&&(a>31||9===a));return new u(k.COMMENT,t,s,n,r,i,N.call(o,t+1,s))}function d(e,t,n,r,i,o){var a=e.body,l=n,c=t,f=!1;if(45===l&&(l=C.call(a,++c)),48===l){if((l=C.call(a,++c))>=48&&57>=l)throw(0,T.syntaxError)(e,c,"Invalid number, unexpected digit after 0: "+s(l)+".")}else c=h(e,c,l),l=C.call(a,c);return 46===l&&(f=!0,l=C.call(a,++c),c=h(e,c,l),l=C.call(a,c)),69!==l&&101!==l||(f=!0,l=C.call(a,++c),43!==l&&45!==l||(l=C.call(a,++c)),c=h(e,c,l)),new u(f?k.FLOAT:k.INT,t,c,r,i,o,N.call(a,t,c))}function h(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&57>=o){do{o=C.call(r,++i)}while(o>=48&&57>=o);return i}throw(0,T.syntaxError)(e,i,"Invalid number, expected digit but got: "+s(o)+".")}function m(e,t,n,r,i){for(var o=e.body,a=t+1,l=a,c=0,f="";o.length>a&&null!==(c=C.call(o,a))&&10!==c&&13!==c;){if(34===c)return f+=N.call(o,l,a),new u(k.STRING,t,a+1,n,r,i,f);if(32>c&&9!==c)throw(0,T.syntaxError)(e,a,"Invalid character within String: "+s(c)+".");if(++a,92===c){switch(f+=N.call(o,l,a-1),c=C.call(o,a)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var p=g(C.call(o,a+1),C.call(o,a+2),C.call(o,a+3),C.call(o,a+4));if(0>p)throw(0,T.syntaxError)(e,a,"Invalid character escape sequence: \\u"+o.slice(a+1,a+5)+".");f+=String.fromCharCode(p),a+=4;break;default:throw(0,T.syntaxError)(e,a,"Invalid character escape sequence: \\"+String.fromCharCode(c)+".")}++a,l=a}}throw(0,T.syntaxError)(e,a,"Unterminated string.")}function v(e,t,n,r,i){for(var o=e.body,a=t+3,l=a,c=0,f="";o.length>a&&null!==(c=C.call(o,a));){if(34===c&&34===C.call(o,a+1)&&34===C.call(o,a+2))return f+=N.call(o,l,a),new u(k.BLOCK_STRING,t,a+3,n,r,i,(0,_.default)(f));if(32>c&&9!==c&&10!==c&&13!==c)throw(0,T.syntaxError)(e,a,"Invalid character within String: "+s(c)+".");92===c&&34===C.call(o,a+1)&&34===C.call(o,a+2)&&34===C.call(o,a+3)?(f+=N.call(o,l,a)+'"""',a+=4,l=a):++a}throw(0,T.syntaxError)(e,a,"Unterminated string.")}function g(e,t,n,r){return y(e)<<12|y(t)<<8|y(n)<<4|y(r)}function y(e){return 48>e||e>57?65>e||e>70?97>e||e>102?-1:e-87:e-55:e-48}function b(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&null!==(l=C.call(o,s))&&(95===l||l>=48&&57>=l||l>=65&&90>=l||l>=97&&122>=l);)++s;return new u(k.NAME,t,s,n,r,i,N.call(o,t,s))}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=r,t.getTokenDesc=a;var T=n(0),E=n(80),_=function(e){return e&&e.__esModule?e:{default:e}}(E),k=t.TokenKind=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),C=String.prototype.charCodeAt,N=String.prototype.slice;u.prototype.toJSON=u.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t,n){"use strict";function r(e){return(0,o.default)(e.map(function(e){return'"'+e+'"'}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(56),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t){"use strict";function n(e){var t=e.slice(0,r);return t.reduce(function(e,n,r){return e+(t.length>2?", ":" ")+(r===t.length-1?"or ":"")+n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=5},function(e,t,n){"use strict";function r(e){return'Unknown fragment "'+e+'".'}function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new o.GraphQLError(r(n),[t.name]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=r,t.KnownFragmentNames=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return'Fragment "'+e+'" is never used.'}function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){var i=Object.create(null);t.forEach(function(t){e.getRecursivelyReferencedFragments(t).forEach(function(e){i[e.name.value]=!0})}),n.forEach(function(t){var n=t.name.value;!0!==i[n]&&e.reportError(new o.GraphQLError(r(n),[t]))})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unusedFragMessage=r,t.NoUnusedFragments=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return"Expected type "+e+", found "+t+(n?"; "+n:".")}function o(e,t,n){return"Field "+e+"."+t+" of required type "+n+" was not provided."}function a(e,t,n){return'Field "'+t+'" is not defined by type '+e+(n?"; "+n:".")}function u(e){return{NullValue:function(t){var n=e.getInputType();(0,p.isNonNullType)(n)&&e.reportError(new c.GraphQLError(i(n+"",(0,f.print)(t)),t))},ListValue:function(t){var n=(0,p.getNullableType)(e.getParentInputType());if(!(0,p.isListType)(n))return s(e,t),!1},ObjectValue:function(t){var n=(0,p.getNamedType)(e.getInputType());if(!(0,p.isInputObjectType)(n))return s(e,t),!1;var r=n.getFields(),i=(0,v.default)(t.fields,function(e){return e.name.value});Object.keys(r).forEach(function(a){var u=r[a].type;!i[a]&&(0,p.isNonNullType)(u)&&e.reportError(new c.GraphQLError(o(n.name,a,u+""),t))})},ObjectField:function(t){var n=(0,p.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,p.isInputObjectType)(n)){var r=(0,T.default)(t.name.value,Object.keys(n.getFields())),i=0!==r.length?"Did you mean "+(0,y.default)(r)+"?":void 0;e.reportError(new c.GraphQLError(a(n.name,t.name.value,i),t))}},EnumValue:function(t){var n=(0,p.getNamedType)(e.getInputType());(0,p.isEnumType)(n)?n.getValue(t.value)||e.reportError(new c.GraphQLError(i(n.name,(0,f.print)(t),l(n,t)),t)):s(e,t)},IntValue:function(t){return s(e,t)},FloatValue:function(t){return s(e,t)},StringValue:function(t){return s(e,t)},BooleanValue:function(t){return s(e,t)}}}function s(e,t){var n=e.getInputType();if(n){var r=(0,p.getNamedType)(n);if(!(0,p.isScalarType)(r))return void e.reportError(new c.GraphQLError(i(n+"",(0,f.print)(t),l(r,t)),t));try{var o=r.parseLiteral(t,void 0);(0,h.default)(o)&&e.reportError(new c.GraphQLError(i(n+"",(0,f.print)(t)),t))}catch(r){e.reportError(new c.GraphQLError(i(n+"",(0,f.print)(t),r.message),t,void 0,void 0,void 0,r))}}}function l(e,t){if((0,p.isEnumType)(e)){var n=(0,T.default)((0,f.print)(t),e.getValues().map(function(e){return e.name}));if(0!==n.length)return"Did you mean the enum value "+(0,y.default)(n)+"?"}}Object.defineProperty(t,"__esModule",{value:!0}),t.badValueMessage=i,t.requiredFieldMessage=o,t.unknownFieldMessage=a,t.ValuesOfCorrectType=u;var c=n(0),f=n(16),p=n(1),d=n(11),h=r(d),m=n(18),v=r(m),g=n(56),y=r(g),b=n(27),T=r(b)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=(n(0),n(19)),o=n(6),a=(n(8),n(26));t.default=function(){function e(t,n,i){r(this,e),this._schema=t,this._ast=n,this._typeInfo=i,this._errors=[],this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}return e.prototype.reportError=function(e){this._errors.push(e)},e.prototype.getErrors=function(){return this._errors},e.prototype.getSchema=function(){return this._schema},e.prototype.getDocument=function(){return this._ast},e.prototype.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===o.Kind.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},e.prototype.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=n.pop(),i=0;r.selections.length>i;i++){var a=r.selections[i];a.kind===o.Kind.FRAGMENT_SPREAD?t.push(a):a.selectionSet&&n.push(a.selectionSet)}this._fragmentSpreads.set(e,t)}return t},e.prototype.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=this.getFragmentSpreads(i),a=0;o.length>a;a++){var u=o[a].name.value;if(!0!==n[u]){n[u]=!0;var s=this.getFragment(u);s&&(t.push(s),r.push(s.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e.prototype.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new a.TypeInfo(this._schema);(0,i.visit)(e,(0,i.visitWithTypeInfo)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType()})}})),t=n,this._variableUsages.set(e,t)}return t},e.prototype.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=this.getRecursivelyReferencedFragments(e),r=0;n.length>r;r++)Array.prototype.push.apply(t,this.getVariableUsages(n[r]));this._recursiveVariableUsages.set(e,t)}return t},e.prototype.getType=function(){return this._typeInfo.getType()},e.prototype.getParentType=function(){return this._typeInfo.getParentType()},e.prototype.getInputType=function(){return this._typeInfo.getInputType()},e.prototype.getParentInputType=function(){return this._typeInfo.getParentInputType()},e.prototype.getFieldDef=function(){return this._typeInfo.getFieldDef()},e.prototype.getDirective=function(){return this._typeInfo.getDirective()},e.prototype.getArgument=function(){return this._typeInfo.getArgument()},e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){for(var r=[],i={},o=0;t.length>o;o++){var a=t[o],s=a.variable.name.value,l=(0,m.typeFromAST)(e,a.type);if((0,b.isInputType)(l)){var c=n[s];if((0,f.default)(c))(0,b.isNonNullType)(l)?r.push(new u.GraphQLError('Variable "$'+s+'" of required type "'+l+'" was not provided.',[a])):a.defaultValue&&(i[s]=(0,v.valueFromAST)(a.defaultValue,l));else{var p=(0,h.coerceValue)(c,l,a),d=p.errors;d?function(){var e='Variable "$'+s+'" got invalid value '+JSON.stringify(c)+"; ";d.forEach(function(t){t.message=e+t.message}),r.push.apply(r,d)}():i[s]=p.value}}else r.push(new u.GraphQLError('Variable "$'+s+'" expected value of type "'+(0,y.print)(a.type)+'" which cannot be used as an input type.',[a.type]))}return 0===r.length?{errors:void 0,coerced:i}:{errors:r,coerced:void 0}}function o(e,t,n){var r={},i=e.args,o=t.arguments;if(!i||!o)return r;for(var a=(0,d.default)(o,function(e){return e.name.value}),s=0;i.length>s;s++){var l=i[s],c=l.name,p=l.type,h=a[c],m=l.defaultValue;if(h)if(h.value.kind===g.Kind.VARIABLE){var T=h.value.name.value;if(n&&Object.prototype.hasOwnProperty.call(n,T)&&!(0,f.default)(n[T]))r[c]=n[T];else if((0,f.default)(m)){if((0,b.isNonNullType)(p))throw new u.GraphQLError('Argument "'+c+'" of required type "'+p+'" was provided the variable "$'+T+'" which was not provided a runtime value.',[h.value])}else r[c]=m}else{var E=h.value,_=(0,v.valueFromAST)(E,p,n);if((0,f.default)(_))throw new u.GraphQLError('Argument "'+c+'" has invalid value '+(0,y.print)(E)+".",[h.value]);r[c]=_}else if((0,f.default)(m)){if((0,b.isNonNullType)(p))throw new u.GraphQLError('Argument "'+c+'" of required type "'+p+'" was not provided.',[t])}else r[c]=m}return r}function a(e,t,n){var r=t.directives&&(0,l.default)(t.directives,function(t){return t.name.value===e.name});if(r)return o(e,r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.getVariableValues=i,t.getArgumentValues=o,t.getDirectiveValues=a;var u=n(0),s=n(21),l=r(s),c=n(11),f=r(c),p=n(18),d=r(p),h=n(62),m=n(13),v=n(42),g=n(6),y=n(16),b=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){if((0,_.isNonNullType)(t))return(0,v.default)(e)?a([l("Expected non-nullable type "+t+" not to be null",n,r)]):i(e,t.ofType,n,r);if((0,v.default)(e))return o(null);if((0,_.isScalarType)(t))try{var d=t.parseValue(e);return(0,h.default)(d)?a([l("Expected type "+t.name,n,r)]):o(d)}catch(e){return a([l("Expected type "+t.name,n,r,e.message,e)])}if((0,_.isEnumType)(t)){if("string"==typeof e){var m=t.getValue(e);if(m)return o(m.value)}var g=(0,T.default)(e+"",t.getValues().map(function(e){return e.name})),b=0!==g.length?"did you mean "+(0,y.default)(g)+"?":void 0;return a([l("Expected type "+t.name,n,r,b)])}if((0,_.isListType)(t)){var E=t.ofType;if((0,p.isCollection)(e)){var C=void 0,N=[];return(0,p.forEach)(e,function(e,t){var o=i(e,E,n,s(r,t));o.errors?C=u(C,o.errors):C||N.push(o.value)}),C?a(C):o(N)}var S=i(e,E,n);return S.errors?S:o([S.value])}if((0,_.isInputObjectType)(t)){if("object"!==(void 0===e?"undefined":f(e)))return a([l("Expected type "+t.name+" to be an object",n,r)]);var w=void 0,O={},L=t.getFields();for(var x in L)if(k.call(L,x)){var D=L[x],I=e[x];if((0,h.default)(I))(0,h.default)(D.defaultValue)?(0,_.isNonNullType)(D.type)&&(w=u(w,l("Field "+c(s(r,x))+" of required type "+D.type+" was not provided",n))):O[x]=D.defaultValue;else{var A=i(I,D.type,n,s(r,x));A.errors?w=u(w,A.errors):w||(O[x]=A.value)}}for(var P in e)if(k.call(e,P)&&!L[P]){var F=(0,T.default)(P,Object.keys(L)),M=0!==F.length?"did you mean "+(0,y.default)(F)+"?":void 0;w=u(w,l('Field "'+P+'" is not defined by type '+t.name,n,r,M))}return w?a(w):o(O)}throw Error("Unexpected type: "+t+".")}function o(e){return{errors:void 0,value:e}}function a(e){return{errors:e,value:void 0}}function u(e,t){return(e||[]).concat(t)}function s(e,t){return{prev:e,key:t}}function l(e,t,n,r,i){var o=c(n);return new E.GraphQLError(e+(o?" at "+o:"")+(r?"; "+r:"."),t,void 0,void 0,void 0,i)}function c(e){for(var t="",n=e;n;)t=("string"==typeof n.key?"."+n.key:"["+n.key+"]")+t,n=n.prev;return t?"value"+t:""}Object.defineProperty(t,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.coerceValue=i;var p=n(24),d=n(11),h=r(d),m=n(39),v=r(m),g=n(56),y=r(g),b=n(27),T=r(b),E=n(0),_=n(1),k=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";e.exports=n(183)},function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;this.__rules__.length>t;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn))})})},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(0>r){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(0>r){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},function(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(t=this.attrs,n=0,r=t.length;r>n;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];0>n?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return 0>t||(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);0>n?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},function(e,t,n){!function(e){e(n(3))}(function(e){function t(e){return e&&e.bracketRegex||/[(){}[\]]/}function n(e,n,i){var o=e.getLineHandle(n.line),a=n.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=t(i),f=!l&&a>=0&&c.test(o.text.charAt(a))&&s[o.text.charAt(a)]||c.test(o.text.charAt(a+1))&&s[o.text.charAt(++a)];if(!f)return null;var p=">"==f.charAt(1)?1:-1;if(i&&i.strict&&p>0!=(a==n.ch))return null;var d=e.getTokenTypeAt(u(n.line,a+1)),h=r(e,u(n.line,a+(p>0?1:0)),p,d||null,i);return null==h?null:{from:u(n.line,a),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:p>0}}function r(e,n,r,i,o){for(var a=o&&o.maxScanLineLength||1e4,l=o&&o.maxScanLines||1e3,c=[],f=t(o),p=r>0?Math.min(n.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,n.line-l),d=n.line;d!=p;d+=r){var h=e.getLine(d);if(h){var m=r>0?0:h.length-1,v=r>0?h.length:-1;if(a>=h.length)for(d==n.line&&(m=n.ch-(0>r?1:0));m!=v;m+=r){var g=h.charAt(m);if(f.test(g)&&(void 0===i||e.getTokenTypeAt(u(d,m+1))==i)){var y=s[g];if(y&&">"==y.charAt(1)==r>0)c.push(g);else{if(!c.length)return{pos:u(d,m),ch:g};c.pop()}}}}}return d-r!=(r>0?e.lastLine():e.firstLine())&&null}function i(e,t,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,o=[],s=e.listSelections(),l=0;s.length>l;l++){var c=s[l].empty()&&n(e,s[l].head,r);if(c&&e.getLine(c.from.line).length<=i){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";o.push(e.markText(c.from,u(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=i&&o.push(e.markText(c.to,u(c.to.line,c.to.ch+1),{className:f}))}}if(o.length){a&&e.state.focused&&e.focus();var p=function(){e.operation(function(){for(var e=0;o.length>e;e++)o[e].clear()})};if(!t)return p;setTimeout(p,800)}}function o(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=i(e,!1,e.state.matchBrackets)})}var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||8>document.documentMode),u=e.Pos,s={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",o),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",o))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,r){return(r||"boolean"==typeof t)&&(r?(r.strict=t,t=r):t=t?{strict:!0}:null),n(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,i){return r(this,e,t,n,i)})})},function(e,t,n){!function(e){e(n(3),n(240))}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function r(e,t){for(var n=e.findMarks(f(t,0),f(t+1,0)),r=0;n.length>r;++r)if(n[r].__isFold&&n[r].find().from.line==t)return n[r]}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,t,n){var o=e.state.foldGutter.options,a=t,u=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder");e.eachLine(t,n,function(t){var n=null;if(r(e,a))n=i(o.indicatorFolded);else{var l=f(a,0),c=s&&s(e,l);c&&c.to.line-c.from.line>=u&&(n=i(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++a})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function u(e,t,n){var i=e.state.foldGutter;if(i){var o=i.options;if(n==o.gutter){var a=r(e,t);a?a.clear():e.foldCode(f(t,0),o.rangeFinder)}}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){t.from>n.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&n.to>r&&o(e,r,r+1)}}e.defineOption("foldGutter",!1,function(r,i,o){o&&o!=e.Init&&(r.clearGutter(r.state.foldGutter.options.gutter),r.state.foldGutter=null,r.off("gutterClick",u),r.off("change",s),r.off("viewportChange",l),r.off("fold",c),r.off("unfold",c),r.off("swapDoc",s)),i&&(r.state.foldGutter=new t(n(i)),a(r),r.on("gutterClick",u),r.on("change",s),r.on("viewportChange",l),r.on("fold",c),r.on("unfold",c),r.on("swapDoc",s))});var f=e.Pos})},function(e,t,n){!function(e){e(n(3))}(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){function r(r){for(var u=n.ch,s=0;;){var l=u>0?a.lastIndexOf(r,u-1):-1;if(-1!=l){if(1==s&&n.ch>l)break;if(i=t.getTokenTypeAt(e.Pos(o,l+1)),!/^(comment|string)/.test(i))return l+1;u=l-1}else{if(1==s)break;s=1,u=a.length}}}var i,o=n.line,a=t.getLine(o),u="{",s="}",l=r("{");if(null==l&&(u="[",s="]",l=r("[")),null!=l){var c,f,p=1,d=t.lastLine();e:for(var h=o;d>=h;++h)for(var m=t.getLine(h),v=h==o?l:0;;){var g=m.indexOf(u,v),y=m.indexOf(s,v);if(0>g&&(g=m.length),0>y&&(y=m.length),(v=Math.min(g,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==i)if(v==g)++p;else if(!--p){c=h,f=v;break e}++v}if(null!=c&&o!=c)return{from:e.Pos(o,l),to:e.Pos(c,f)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);o>=i;++i){var a=t.getLine(i),u=a.indexOf(";");if(-1!=u)return{startCh:r.end,end:e.Pos(i,u)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var u=a.end;;){var s=r(u.line+1);if(null==s)break;u=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:u}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){if(null==r(a+1))break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})})},function(e,t,n){!function(e){e(n(3),n(29))}(function(e){"use strict";function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}function r(e,t){var n=+t;return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,function(t){if(t){var n;if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),+n[2]);else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*+n[1]/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})},function(e,t,n){!function(e){e(n(3),n(28),n(67))}(function(e){"use strict";function t(t,n,r){if(0>r&&0==n.ch)return t.clipPos(d(n.line-1));var i=t.getLine(n.line);if(r>0&&n.ch>=i.length)return t.clipPos(d(n.line+1,0));for(var o,a="start",u=n.ch,s=0>r?0:i.length,l=0;u!=s;u+=r,l++){var c=i.charAt(0>r?u-1:u),f="_"!=c&&e.isWordChar(c)?"w":"o";if("w"==f&&c.toUpperCase()==c&&(f="W"),"start"==a)"o"!=f&&(a="in",o=f);else if("in"==a&&o!=f){if("w"==o&&"W"==f&&0>r&&u--,"W"==o&&"w"==f&&r>0){o="w";continue}break}}return d(n.line,u)}function n(e,n){e.extendSelectionsBy(function(r){return e.display.shift||e.doc.extend||r.empty()?t(e.doc,r.head,n):0>n?r.from():r.to()})}function r(t,n){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,r=[],i=-1,o=0;e>o;o++){var a=t.listSelections()[o].head;if(a.line>i){var u=d(a.line+(n?0:1),0);t.replaceRange("\n",u,null,"+insertLine"),t.indentLine(u.line,null,!0),r.push({head:u,anchor:u}),i=a.line+1}}t.setSelections(r)}),t.execCommand("indentAuto")}function i(t,n){for(var r=n.ch,i=r,o=t.getLine(n.line);r&&e.isWordChar(o.charAt(r-1));)--r;for(;o.length>i&&e.isWordChar(o.charAt(i));)++i;return{from:d(n.line,r),to:d(n.line,i),word:o.slice(r,i)}}function o(e,t){for(var n=e.listSelections(),r=[],i=0;n.length>i;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),u=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,u.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var s={anchor:a,head:u};r.push(o),r.push(s)}e.setSelections(r)}function a(e,t,n){for(var r=0;e.length>r;r++)if(e[r].from()==t&&e[r].to()==n)return!0;return!1}function u(t){for(var n=t.listSelections(),r=[],i=0;n.length>i;i++){var o=n[i],a=o.head,u=t.scanForBracket(a,-1);if(!u)return!1;for(;;){var s=t.scanForBracket(a,1);if(!s)return!1;if(s.ch==h.charAt(h.indexOf(u.ch)+1)){var l=d(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(l,o.from())||0!=e.cmpPos(s.pos,o.to())){r.push({anchor:l,head:s.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}a=d(s.pos.line,s.pos.ch+1)}}return t.setSelections(r),!0}function s(t,n){if(t.isReadOnly())return e.Pass;for(var r,i=t.listSelections(),o=[],a=0;i.length>a;a++){var u=i[a];if(!u.empty()){for(var s=u.from().line,l=u.to().line;i.length-1>a&&i[a+1].from().line==l;)l=i[++a].to().line;i[a].to().ch||l--,o.push(s,l)}}o.length?r=!0:o.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],i=0;o.length>i;i+=2){var a=o[i],u=o[i+1],s=d(a,0),l=d(u),c=t.getRange(s,l,!1);n?c.sort():c.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),t>e?-1:e==t?0:1}),t.replaceRange(c,s,l),r&&e.push({anchor:s,head:d(u+1,0)})}r&&t.setSelections(e,0)})}function l(t,n){t.operation(function(){for(var r=t.listSelections(),o=[],a=[],u=0;r.length>u;u++){var s=r[u];s.empty()?(o.push(u),a.push("")):a.push(n(t.getRange(s.from(),s.to())))}t.replaceSelections(a,"around","case");for(var l,u=o.length-1;u>=0;u--){var s=r[o[u]];if(!l||0>=e.cmpPos(s.head,l)){var c=i(t,s.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function c(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=i(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function f(e,t){var n=c(e);if(n){var r=n.query,i=e.getSearchCursor(r,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(r,t?d(e.firstLine(),0):e.clipPos(d(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}var p=e.commands,d=e.Pos;p.goSubwordLeft=function(e){n(e,-1)},p.goSubwordRight=function(e){n(e,1)},p.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().linen||e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},p.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],r=0;t.length>r;r++)for(var i=t[r].from(),o=t[r].to(),a=i.line;o.line>=a;++a)o.line>i.line&&a==o.line&&0==o.ch||n.push({anchor:a==i.line?i:d(a,0),head:a==o.line?o:d(a)});e.setSelections(n,0)},p.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},p.selectLine=function(e){for(var t=e.listSelections(),n=[],r=0;t.length>r;r++){var i=t[r];n.push({anchor:d(i.from().line,0),head:d(i.to().line+1,0)})}e.setSelections(n)},p.insertLineAfter=function(e){return r(e,!1)},p.insertLineBefore=function(e){return r(e,!0)},p.selectNextOccurrence=function(t){var n=t.getCursor("from"),r=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,r)){var u=i(t,n);if(!u.word)return;t.setSelection(u.from,u.to),o=!0}else{var s=t.getRange(n,r),l=o?RegExp("\\b"+s+"\\b"):s,c=t.getSearchCursor(l,r),f=c.findNext();if(f||(c=t.getSearchCursor(l,d(t.firstLine(),0)),f=c.findNext()),!f||a(t.listSelections(),c.from(),c.to()))return e.Pass;t.addSelection(c.from(),c.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},p.addCursorToPrevLine=function(e){o(e,-1)},p.addCursorToNextLine=function(e){o(e,1)};var h="(){}[]";p.selectScope=function(e){u(e)||e.execCommand("selectAll")},p.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},p.goToBracket=function(t){t.extendSelectionsBy(function(n){var r=t.scanForBracket(n.head,1);if(r&&0!=e.cmpPos(r.pos,n.head))return r.pos;var i=t.scanForBracket(n.head,-1);return i&&d(i.pos.line,i.pos.ch+1)||n.head})},p.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.firstLine()-1,o=[],a=0;n.length>a;a++){var u=n[a],s=u.from().line-1,l=u.to().line;o.push({anchor:d(u.anchor.line-1,u.anchor.ch),head:d(u.head.line-1,u.head.ch)}),0!=u.to().ch||u.empty()||--l,s>i?r.push(s,l):r.length&&(r[r.length-1]=l),i=l}t.operation(function(){for(var e=0;r.length>e;e+=2){var n=r[e],i=r[e+1],a=t.getLine(n);t.replaceRange("",d(n,0),d(n+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+a,d(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",d(i,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()})},p.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.lastLine()+1,o=n.length-1;o>=0;o--){var a=n[o],u=a.to().line+1,s=a.from().line;0!=a.to().ch||a.empty()||u--,i>u?r.push(u,s):r.length&&(r[r.length-1]=s),i=s}t.operation(function(){for(var e=r.length-2;e>=0;e-=2){var n=r[e],i=r[e+1],o=t.getLine(n);n==t.lastLine()?t.replaceRange("",d(n-1),d(n),"+swapLine"):t.replaceRange("",d(n,0),d(n+1,0),"+swapLine"),t.replaceRange(o+"\n",d(i,0),null,"+swapLine")}t.scrollIntoView()})},p.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},p.joinLines=function(e){for(var t=e.listSelections(),n=[],r=0;t.length>r;r++){for(var i=t[r],o=i.from(),a=o.line,u=i.to().line;t.length-1>r&&t[r+1].from().line==u;)u=t[++r].to().line;n.push({start:a,end:u,anchor:!i.empty()&&o})}e.operation(function(){for(var t=0,r=[],i=0;n.length>i;i++){for(var o,a=n[i],u=a.anchor&&d(a.anchor.line-t,a.anchor.ch),s=a.start;a.end>=s;s++){var l=s-t;s==a.end&&(o=d(l,e.getLine(l).length+1)),ln;n++){var r=e.listSelections()[n];r.empty()?e.replaceRange(e.getLine(r.head.line)+"\n",d(r.head.line,0)):e.replaceRange(e.getRange(r.from(),r.to()),r.from())}e.scrollIntoView()})},p.sortLines=function(e){s(e,!0)},p.sortLinesInsensitive=function(e){s(e,!1)},p.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},p.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},p.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;t.length>r;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),u=0;a.length>u;u++)if(a[u].sublimeBookmark){a[u].clear();for(var s=0;n.length>s;s++)n[s]==a[u]&&n.splice(s--,1);break}u==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},p.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;t.length>n;n++)t[n].clear();t.length=0},p.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;t.length>r;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},p.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var n=t.listSelections(),r=t.getOption("indentUnit"),i=n.length-1;i>=0;i--){var o=n[i].head,a=t.getRange({line:o.line,ch:0},o),u=e.countColumn(a,null,t.getOption("tabSize")),s=t.findPosH(o,-1,"char",!1);if(a&&!/\S/.test(a)&&u%r==0){var l=new d(o.line,e.findColumn(a,u-r,r));l.ch!=o.ch&&(s=l)}t.replaceRange("",s,o,"+delete")}})},p.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,d(t[n].to().line),"+delete");e.scrollIntoView()})},p.upcaseAtCursor=function(e){l(e,function(e){return e.toUpperCase()})},p.downcaseAtCursor=function(e){l(e,function(e){return e.toLowerCase()})},p.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},p.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},p.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},p.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},p.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},p.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},p.findUnder=function(e){f(e,!0)},p.findUnderPrevious=function(e){f(e,!1)},p.findAllUnder=function(e){var t=c(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line>t.from.line||n.from().ch>t.from.ch||i++;e.setSelections(r,i)}};var m=e.keyMap;m.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(m.macSublime),m.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(m.pcSublime),m.sublime=m.default==m.macDefault?m.macSublime:m.pcSublime})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return a.default.createElement("span",{className:"arg"},a.default.createElement("span",{className:"arg-name"},t.name),": ",a.default.createElement(c.default,{type:t.type,onClick:n}),!1!==r&&a.default.createElement(p.default,{field:t}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),a=r(o),u=n(7),s=r(u),l=n(35),c=r(l),f=n(132),p=r(f);i.propTypes={arg:s.default.object.isRequired,onClickType:s.default.func.isRequired,showDefaultValue:s.default.bool}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 a(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});var u=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(5),l=r(s),c=n(7),f=r(c),p=n(63),d=r(p),h=new d.default,m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.markdown!==e.markdown}},{key:"render",value:function(){var e=this.props.markdown;return e?l.default.createElement("div",{className:this.props.className,dangerouslySetInnerHTML:{__html:h.render(e)}}):l.default.createElement("div",null)}}]),t}(l.default.Component);m.propTypes={markdown:f.default.string,className:f.default.string},t.default=m},function(e){"use strict";var t={};e.exports=t},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){switch(e.kind){case l.Kind.NULL:return null;case l.Kind.INT:return parseInt(e.value,10);case l.Kind.FLOAT:return parseFloat(e.value);case l.Kind.STRING:case l.Kind.ENUM:case l.Kind.BOOLEAN:return e.value;case l.Kind.LIST:return e.values.map(function(e){return i(e,t)});case l.Kind.OBJECT:return(0,a.default)(e.fields,function(e){return e.name.value},function(e){return i(e.value,t)});case l.Kind.VARIABLE:var n=e.name.value;return t&&!(0,s.default)(t[n])?t[n]:void 0}throw Error("Unexpected value kind: "+e.kind)}Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=i;var o=n(38),a=r(o),u=n(11),s=r(u),l=n(6)},function(e,t,n){"use strict";function r(e){var t=[];if(e.nodes)e.nodes.forEach(function(e){e.loc&&t.push(i(e.loc.source,(0,s.getLocation)(e.loc.source,e.loc.start)))});else if(e.source&&e.locations){var n=e.source;e.locations.forEach(function(e){t.push(i(n,e))})}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"}function i(e,t){var n=t.line,r=e.locationOffset.line-1,i=o(e,t),s=n+r,l=t.column+i,c=""+(s-1),f=""+s,p=""+(s+1),d=p.length,h=e.body.split(/\r\n|[\n\r]/g);return h[0]=a(e.locationOffset.column-1)+h[0],[e.name+" ("+s+":"+l+")",n>=2&&u(d,c)+": "+h[n-2],u(d,f)+": "+h[n-1],a(2+d+l-1)+"^",h.length>n&&u(d,p)+": "+h[n]].filter(Boolean).join("\n")}function o(e,t){return 1===t.line?e.locationOffset.column-1:0}function a(e){return Array(e+1).join(" ")}function u(e,t){return a(e-t.length)+t}Object.defineProperty(t,"__esModule",{value:!0}),t.printError=r;var s=n(53)},function(e,t,n){"use strict";function r(e){var t=i(e);if(t)throw t;return e}function i(e,t){return"string"!=typeof e&&(0,u.default)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1]?new o.GraphQLError('Name "'+e+'" must not begin with "__", which is reserved by GraphQL introspection.',t):s.test(e)?void 0:new o.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.',t)}Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=r,t.isValidNameError=i;var o=n(17),a=n(9),u=function(e){return e&&e.__esModule?e:{default:e}}(a),s=/^[_a-zA-Z][_a-zA-Z0-9]*$/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.Source=function e(t,n,i){r(this,e),this.body=t,this.name=n||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||(0,o.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,o.default)(0,"column in locationOffset is 1-indexed and must be positive")}},function(e,t,n){"use strict";function r(e,t,n){return e&&Array.isArray(e.path)?e:new i.GraphQLError(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=r;var i=n(17)},function(e,t){"use strict";function n(e){for(var t=e.split(/\r\n|[\n\r]/g),n=null,o=1;t.length>o;o++){var a=t[o],u=r(a);if(a.length>u&&(null===n||n>u)&&0===(n=u))break}if(n)for(var s=1;t.length>s;s++)t[s]=t[s].slice(n);for(;t.length>0&&i(t[0]);)t.shift();for(;t.length>0&&i(t[t.length-1]);)t.pop();return t.join("\n")}function r(e){for(var t=0;e.length>t&&(" "===e[t]||"\t"===e[t]);)t++;return t}function i(e){return r(e)===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){return t||(0,u.default)(0,"Must provide document"),(0,l.assertValidSchema)(e),o(e,r||new c.TypeInfo(e),t,n||f.specifiedRules)}function o(e,t,n,r){var i=new d.default(e,n,t),o=r.map(function(e){return e(i)});return(0,s.visit)(n,(0,s.visitWithTypeInfo)(t,(0,s.visitInParallel)(o))),i.getErrors()}Object.defineProperty(t,"__esModule",{value:!0}),t.validate=i;var a=n(9),u=r(a),s=(n(0),n(19)),l=(n(8),n(37)),c=n(26),f=n(82),p=n(60),d=r(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedRules=void 0;var r=n(83),i=n(84),o=n(85),a=n(86),u=n(87),s=n(88),l=n(89),c=n(90),f=n(91),p=n(92),d=n(57),h=n(58),m=n(93),v=n(94),g=n(95),y=n(96),b=n(97),T=n(98),E=n(99),_=n(100),k=n(101),C=n(59),N=n(102),S=n(103),w=n(104),O=n(105),L=n(106);t.specifiedRules=[r.ExecutableDefinitions,i.UniqueOperationNames,o.LoneAnonymousOperation,a.SingleFieldSubscriptions,u.KnownTypeNames,s.FragmentsOnCompositeTypes,l.VariablesAreInputTypes,c.ScalarLeafs,f.FieldsOnCorrectType,p.UniqueFragmentNames,d.KnownFragmentNames,h.NoUnusedFragments,m.PossibleFragmentSpreads,v.NoFragmentCycles,g.UniqueVariableNames,y.NoUndefinedVariables,b.NoUnusedVariables,T.KnownDirectives,E.UniqueDirectivesPerLocation,_.KnownArgumentNames,k.UniqueArgumentNames,C.ValuesOfCorrectType,N.ProvidedNonNullArguments,S.VariablesDefaultValueAllowed,w.VariablesInAllowedPosition,O.OverlappingFieldsCanBeMerged,L.UniqueInputFieldNames]},function(e,t,n){"use strict";function r(e){return"The "+e+" definition is not executable."}function i(e){return{Document:function(t){return t.definitions.forEach(function(t){t.kind!==a.Kind.OPERATION_DEFINITION&&t.kind!==a.Kind.FRAGMENT_DEFINITION&&e.reportError(new o.GraphQLError(r(t.kind===a.Kind.SCHEMA_DEFINITION?"schema":t.name.value),[t]))}),!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.nonExecutableDefinitionMessage=r,t.ExecutableDefinitions=i;var o=n(0),a=n(6)},function(e,t,n){"use strict";function r(e){return'There can be only one operation named "'+e+'".'}function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new o.GraphQLError(r(i.value),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateOperationNameMessage=r,t.UniqueOperationNames=i;var o=n(0)},function(e,t,n){"use strict";function r(){return"This anonymous operation must be the only defined operation."}function i(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===a.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new o.GraphQLError(r(),[n]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.anonOperationNotAloneMessage=r,t.LoneAnonymousOperation=i;var o=n(0),a=n(6)},function(e,t,n){"use strict";function r(e){return(e?'Subscription "'+e+'" ':"Anonymous Subscription ")+"must select only one top level field."}function i(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new o.GraphQLError(r(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.singleFieldOnlyMessage=r,t.SingleFieldSubscriptions=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n='Unknown type "'+e+'".';return t.length&&(n+=" Did you mean "+(0,c.default)(t)+"?"),n}function o(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),r=t.name.value;n.getType(r)||e.reportError(new a.GraphQLError(i(r,(0,s.default)(r,Object.keys(n.getTypeMap()))),[t]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownTypeMessage=i,t.KnownTypeNames=o;var a=n(0),u=n(27),s=r(u),l=n(55),c=r(l)},function(e,t,n){"use strict";function r(e){return'Fragment cannot condition on non composite type "'+e+'".'}function i(e,t){return'Fragment "'+e+'" cannot condition on non composite type "'+t+'".'}function o(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var i=(0,l.typeFromAST)(e.getSchema(),n);i&&!(0,s.isCompositeType)(i)&&e.reportError(new a.GraphQLError(r((0,u.print)(n)),[n]))}},FragmentDefinition:function(t){var n=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,s.isCompositeType)(n)&&e.reportError(new a.GraphQLError(i(t.name.value,(0,u.print)(t.typeCondition)),[t.typeCondition]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.inlineFragmentOnNonCompositeErrorMessage=r,t.fragmentOnNonCompositeErrorMessage=i,t.FragmentsOnCompositeTypes=o;var a=n(0),u=n(16),s=n(1),l=n(13)},function(e,t,n){"use strict";function r(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}function i(e){return{VariableDefinition:function(t){var n=(0,s.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,u.isInputType)(n)){e.reportError(new o.GraphQLError(r(t.variable.name.value,(0,a.print)(t.type)),[t.type]))}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=r,t.VariablesAreInputTypes=i;var o=n(0),a=n(16),u=n(1),s=n(13)},function(e,t,n){"use strict";function r(e,t){return'Field "'+e+'" must not have a selection since type "'+t+'" has no subfields.'}function i(e,t){return'Field "'+e+'" of type "'+t+'" must have a selection of subfields. Did you mean "'+e+' { ... }"?'}function o(e){return{Field:function(t){var n=e.getType(),o=t.selectionSet;n&&((0,u.isLeafType)((0,u.getNamedType)(n))?o&&e.reportError(new a.GraphQLError(r(t.name.value,n),[o])):o||e.reportError(new a.GraphQLError(i(t.name.value,n),[t])))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=r,t.requiredSubselectionMessage=i,t.ScalarLeafs=o;var a=n(0),u=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){var i='Cannot query field "'+e+'" on type "'+t+'".';if(0!==n.length){i+=" Did you mean to use an inline fragment on "+(0,p.default)(n)+"?"}else 0!==r.length&&(i+=" Did you mean "+(0,p.default)(r)+"?");return i}function o(e){return{Field:function(t){var n=e.getParentType();if(n){if(!e.getFieldDef()){var r=e.getSchema(),o=t.name.value,l=a(r,n,o),c=0!==l.length?[]:u(r,n,o);e.reportError(new s.GraphQLError(i(o,n.name,l,c),[t]))}}}}}function a(e,t,n){if((0,d.isAbstractType)(t)){var r=[],i=Object.create(null);e.getPossibleTypes(t).forEach(function(e){e.getFields()[n]&&(r.push(e.name),e.getInterfaces().forEach(function(e){e.getFields()[n]&&(i[e.name]=(i[e.name]||0)+1)}))});return Object.keys(i).sort(function(e,t){return i[t]-i[e]}).concat(r)}return[]}function u(e,t,n){if((0,d.isObjectType)(t)||(0,d.isInterfaceType)(t)){var r=Object.keys(t.getFields());return(0,c.default)(n,r)}return[]}Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=i,t.FieldsOnCorrectType=o;var s=n(0),l=n(27),c=r(l),f=n(55),p=r(f),d=n(1)},function(e,t,n){"use strict";function r(e){return'There can be only one fragment named "'+e+'".'}function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new o.GraphQLError(r(i),[t[i],n.name])):t[i]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=r,t.UniqueFragmentNames=i;var o=n(0)},function(e,t,n){"use strict";function r(e,t,n){return'Fragment "'+e+'" cannot be spread here as objects of type "'+t+'" can never be of type "'+n+'".'}function i(e,t){return'Fragment cannot be spread here as objects of type "'+e+'" can never be of type "'+t+'".'}function o(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();(0,c.isCompositeType)(n)&&(0,c.isCompositeType)(r)&&!(0,s.doTypesOverlap)(e.getSchema(),n,r)&&e.reportError(new u.GraphQLError(i(r,n),[t]))},FragmentSpread:function(t){var n=t.name.value,i=a(e,n),o=e.getParentType();i&&o&&!(0,s.doTypesOverlap)(e.getSchema(),i,o)&&e.reportError(new u.GraphQLError(r(n,o,i),[t]))}}}function a(e,t){var n=e.getFragment(t);if(n){var r=(0,l.typeFromAST)(e.getSchema(),n.typeCondition);if((0,c.isCompositeType)(r))return r}}Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=r,t.typeIncompatibleAnonSpreadMessage=i,t.PossibleFragmentSpreads=o;var u=n(0),s=n(40),l=n(13),c=n(1)},function(e,t,n){"use strict";function r(e,t){return'Cannot spread fragment "'+e+'" within itself'+(t.length?" via "+t.join(", "):"")+"."}function i(e){function t(u){var s=u.name.value;n[s]=!0;var l=e.getFragmentSpreads(u.selectionSet);if(0!==l.length){a[s]=i.length;for(var c=0;l.length>c;c++){var f=l[c],p=f.name.value,d=a[p];if(void 0===d){if(i.push(f),!n[p]){var h=e.getFragment(p);h&&t(h)}i.pop()}else{var m=i.slice(d);e.reportError(new o.GraphQLError(r(p,m.map(function(e){return e.name.value})),m.concat(f)))}}a[s]=void 0}}var n=Object.create(null),i=[],a=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return n[e.name.value]||t(e),!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.cycleErrorMessage=r,t.NoFragmentCycles=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return'There can be only one variable named "'+e+'".'}function i(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new o.GraphQLError(r(i),[t[i],n.variable.name])):t[i]=n.variable.name}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateVariableMessage=r,t.UniqueVariableNames=i;var o=n(0)},function(e,t,n){"use strict";function r(e,t){return t?'Variable "$'+e+'" is not defined by operation "'+t+'".':'Variable "$'+e+'" is not defined.'}function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){e.getRecursiveVariableUsages(n).forEach(function(i){var a=i.node,u=a.name.value;!0!==t[u]&&e.reportError(new o.GraphQLError(r(u,n.name&&n.name.value),[a,n]))})}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedVarMessage=r,t.NoUndefinedVariables=i;var o=n(0)},function(e,t,n){"use strict";function r(e,t){return t?'Variable "$'+e+'" is never used in operation "'+t+'".':'Variable "$'+e+'" is never used.'}function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var i=Object.create(null),a=n.name?n.name.value:null;e.getRecursiveVariableUsages(n).forEach(function(e){i[e.node.name.value]=!0}),t.forEach(function(t){var n=t.variable.name.value;!0!==i[n]&&e.reportError(new o.GraphQLError(r(n,a),[t]))})}},VariableDefinition:function(e){t.push(e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unusedVariableMessage=r,t.NoUnusedVariables=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return'Unknown directive "'+e+'".'}function i(e,t){return'Directive "'+e+'" may not be used on '+t+"."}function o(e){return{Directive:function(t,n,o,s,c){var f=(0,l.default)(e.getSchema().getDirectives(),function(e){return e.name===t.name.value});if(!f)return void e.reportError(new u.GraphQLError(r(t.name.value),[t]));var p=a(c);p&&-1===f.locations.indexOf(p)&&e.reportError(new u.GraphQLError(i(t.name.value,p),[t]))}}}function a(e){var t=e[e.length-1];if(!Array.isArray(t))switch(t.kind){case c.Kind.OPERATION_DEFINITION:switch(t.operation){case"query":return f.DirectiveLocation.QUERY;case"mutation":return f.DirectiveLocation.MUTATION;case"subscription":return f.DirectiveLocation.SUBSCRIPTION}break;case c.Kind.FIELD:return f.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return f.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return f.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return f.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.SCHEMA_DEFINITION:return f.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return f.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return f.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return f.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return f.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return f.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return f.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return f.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return f.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?f.DirectiveLocation.INPUT_FIELD_DEFINITION:f.DirectiveLocation.ARGUMENT_DEFINITION}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownDirectiveMessage=r,t.misplacedDirectiveMessage=i,t.KnownDirectives=o;var u=n(0),s=n(21),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(6),f=n(20)},function(e,t,n){"use strict";function r(e){return'The directive "'+e+'" can only be used once at this location.'}function i(e){return{enter:function(t){var n=t.directives;if(n){var i=Object.create(null);n.forEach(function(t){var n=t.name.value;i[n]?e.reportError(new o.GraphQLError(r(n),[i[n],t])):i[n]=t})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateDirectiveMessage=r,t.UniqueDirectivesPerLocation=i;var o=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){var i='Unknown argument "'+e+'" on field "'+t+'" of type "'+n+'".';return r.length&&(i+=" Did you mean "+(0,f.default)(r)+"?"),i}function o(e,t,n){var r='Unknown argument "'+e+'" on directive "@'+t+'".';return n.length&&(r+=" Did you mean "+(0,f.default)(n)+"?"),r}function a(e){return{Argument:function(t,n,r,a,s){if(!e.getArgument()){var c=s[s.length-1];if(c.kind===p.Kind.FIELD){var f=e.getFieldDef(),d=e.getParentType();f&&d&&e.reportError(new u.GraphQLError(i(t.name.value,f.name,d.name,(0,l.default)(t.name.value,f.args.map(function(e){return e.name}))),[t]))}else if(c.kind===p.Kind.DIRECTIVE){var h=e.getDirective();h&&e.reportError(new u.GraphQLError(o(t.name.value,h.name,(0,l.default)(t.name.value,h.args.map(function(e){return e.name}))),[t]))}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownArgMessage=i,t.unknownDirectiveArgMessage=o,t.KnownArgumentNames=a;var u=n(0),s=n(27),l=r(s),c=n(55),f=r(c),p=n(6)},function(e,t,n){"use strict";function r(e){return'There can be only one argument named "'+e+'".'}function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new o.GraphQLError(r(i),[t[i],n.name])):t[i]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateArgMessage=r,t.UniqueArgumentNames=i;var o=n(0)},function(e,t,n){"use strict";function r(e,t,n){return'Field "'+e+'" argument "'+t+'" of type "'+n+'" is required but not provided.'}function i(e,t,n){return'Directive "@'+e+'" argument "'+t+'" of type "'+n+'" is required but not provided.'}function o(e){return{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;var i=t.arguments||[],o=(0,s.default)(i,function(e){return e.name.value});n.args.forEach(function(n){!o[n.name]&&(0,l.isNonNullType)(n.type)&&e.reportError(new a.GraphQLError(r(t.name.value,n.name,n.type),[t]))})}},Directive:{leave:function(t){var n=e.getDirective();if(!n)return!1;var r=t.arguments||[],o=(0,s.default)(r,function(e){return e.name.value});n.args.forEach(function(n){!o[n.name]&&(0,l.isNonNullType)(n.type)&&e.reportError(new a.GraphQLError(i(t.name.value,n.name,n.type),[t]))})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=r,t.missingDirectiveArgMessage=i,t.ProvidedNonNullArguments=o;var a=n(0),u=n(18),s=function(e){return e&&e.__esModule?e:{default:e}}(u),l=n(1)},function(e,t,n){"use strict";function r(e,t,n){return'Variable "$'+e+'" of type "'+t+'" is required and will not use the default value. Perhaps you meant to use type "'+n+'".'}function i(e){return{VariableDefinition:function(t){var n=t.variable.name.value,i=t.defaultValue,u=e.getInputType();return(0,a.isNonNullType)(u)&&i&&e.reportError(new o.GraphQLError(r(n,u,u.ofType),[i])),!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultForRequiredVarMessage=r,t.VariablesDefaultValueAllowed=i;var o=n(0),a=n(1)},function(e,t,n){"use strict";function r(e,t,n){return'Variable "$'+e+'" of type "'+t+'" used in position expecting type "'+n+'".'}function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){e.getRecursiveVariableUsages(n).forEach(function(n){var i=n.node,u=n.type,c=i.name.value,f=t[c];if(f&&u){var p=e.getSchema(),d=(0,l.typeFromAST)(p,f.type);d&&!(0,s.isTypeSubTypeOf)(p,o(d,f),u)&&e.reportError(new a.GraphQLError(r(c,d,u),[f,i]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function o(e,t){return!t.defaultValue||(0,u.isNonNullType)(e)?e:(0,u.GraphQLNonNull)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.badVarPosMessage=r,t.VariablesInAllowedPosition=i;var a=n(0),u=n(1),s=n(40),l=n(13)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return'Fields "'+e+'" conflict because '+o(t)+". Use different aliases on the fields to fetch both if this was intentional."}function o(e){return Array.isArray(e)?e.map(function(e){return'subfields "'+e[0]+'" conflict because '+o(e[1])}).join(" and "):e}function a(e){var t=new L,n=new Map;return{SelectionSet:function(r){u(e,n,t,e.getParentType(),r).forEach(function(t){var n=t[0],r=n[0],o=n[1],a=t[1],u=t[2];return e.reportError(new _.GraphQLError(i(r,o),a.concat(u)))})}}}function u(e,t,n,r,i){var o=[],a=g(e,t,r,i),u=a[0],c=a[1];if(f(e,o,t,n,u),0!==c.length)for(var p=Object.create(null),d=0;c.length>d;d++){s(e,o,t,p,n,!1,u,c[d]);for(var h=d+1;c.length>h;h++)l(e,o,t,n,!1,c[d],c[h])}return o}function s(e,t,n,r,i,o,a,u){if(!r[u]){r[u]=!0;var l=e.getFragment(u);if(l){var c=y(e,n,l),f=c[0],d=c[1];if(a!==f){p(e,t,n,i,o,a,f);for(var h=0;d.length>h;h++)s(e,t,n,r,i,o,a,d[h])}}}}function l(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var u=e.getFragment(o),s=e.getFragment(a);if(u&&s){var c=y(e,n,u),f=c[0],d=c[1],h=y(e,n,s),m=h[0],v=h[1];p(e,t,n,r,i,f,m);for(var g=0;v.length>g;g++)l(e,t,n,r,i,o,v[g]);for(var b=0;d.length>b;b++)l(e,t,n,r,i,d[b],a)}}}function c(e,t,n,r,i,o,a,u){var c=[],f=g(e,t,i,o),d=f[0],h=f[1],m=g(e,t,a,u),v=m[0],y=m[1];if(p(e,c,t,n,r,d,v),0!==y.length)for(var b=Object.create(null),T=0;y.length>T;T++)s(e,c,t,b,n,r,d,y[T]);if(0!==h.length)for(var E=Object.create(null),_=0;h.length>_;_++)s(e,c,t,E,n,r,v,h[_]);for(var k=0;h.length>k;k++)for(var C=0;y.length>C;C++)l(e,c,t,n,r,h[k],y[C]);return c}function f(e,t,n,r,i){Object.keys(i).forEach(function(o){var a=i[o];if(a.length>1)for(var u=0;a.length>u;u++)for(var s=u+1;a.length>s;s++){var l=d(e,n,r,!1,o,a[u],a[s]);l&&t.push(l)}})}function p(e,t,n,r,i,o,a){Object.keys(o).forEach(function(u){var s=a[u];if(s)for(var l=o[u],c=0;l.length>c;c++)for(var f=0;s.length>f;f++){var p=d(e,n,r,i,u,l[c],s[f]);p&&t.push(p)}})}function d(e,t,n,r,i,o,a){var u=o[0],s=o[1],l=o[2],f=a[0],p=a[1],d=a[2],m=r||u!==f&&(0,w.isObjectType)(u)&&(0,w.isObjectType)(f),g=l&&l.type,y=d&&d.type;if(!m){var b=s.name.value,E=p.name.value;if(b!==E)return[[i,b+" and "+E+" are different fields"],[s],[p]];if(!h(s.arguments||[],p.arguments||[]))return[[i,"they have differing arguments"],[s],[p]]}if(g&&y&&v(g,y))return[[i,"they return conflicting types "+g+" and "+y],[s],[p]];var _=s.selectionSet,k=p.selectionSet;if(_&&k){return T(c(e,t,n,m,(0,w.getNamedType)(g),_,(0,w.getNamedType)(y),k),i,s,p)}}function h(e,t){return e.length===t.length&&e.every(function(e){var n=(0,C.default)(t,function(t){return t.name.value===e.name.value});return!!n&&m(e.value,n.value)})}function m(e,t){return!e&&!t||(0,S.print)(e)===(0,S.print)(t)}function v(e,t){return(0,w.isListType)(e)?!(0,w.isListType)(t)||v(e.ofType,t.ofType):!!(0,w.isListType)(t)||((0,w.isNonNullType)(e)?!(0,w.isNonNullType)(t)||v(e.ofType,t.ofType):!!(0,w.isNonNullType)(t)||!(!(0,w.isLeafType)(e)&&!(0,w.isLeafType)(t))&&e!==t)}function g(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);b(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function y(e,t,n){var r=t.get(n.selectionSet);return r||g(e,t,(0,O.typeFromAST)(e.getSchema(),n.typeCondition),n.selectionSet)}function b(e,t,n,r,i){for(var o=0;n.selections.length>o;o++){var a=n.selections[o];switch(a.kind){case N.Kind.FIELD:var u=a.name.value,s=void 0;((0,w.isObjectType)(t)||(0,w.isInterfaceType)(t))&&(s=t.getFields()[u]);var l=a.alias?a.alias.value:u;r[l]||(r[l]=[]),r[l].push([t,a,s]);break;case N.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case N.Kind.INLINE_FRAGMENT:var c=a.typeCondition;b(e,c?(0,O.typeFromAST)(e.getSchema(),c):t,a.selectionSet,r,i)}}}function T(e,t,n,r){if(e.length>0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){return e.concat(t[1])},[n]),e.reduce(function(e,t){return e.concat(t[2])},[r])]}function E(e,t,n,r){var i=e[t];i||(i=Object.create(null),e[t]=i),i[n]=r}Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=i,t.OverlappingFieldsCanBeMerged=a;var _=n(0),k=n(21),C=function(e){return e&&e.__esModule?e:{default:e}}(k),N=n(6),S=n(16),w=n(1),O=n(13),L=function(){function e(){r(this,e),this._data=Object.create(null)}return e.prototype.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},e.prototype.add=function(e,t,n){E(this._data,e,t,n),E(this._data,t,e,n)},e}()},function(e,t,n){"use strict";function r(e){return'There can be only one input field named "'+e+'".'}function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;return n[i]?e.reportError(new o.GraphQLError(r(i),[n[i],t.name])):n[i]=t.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateInputFieldMessage=r,t.UniqueInputFieldNames=i;var o=n(0)},function(e,t){"use strict";function n(e){return!(!e||"function"!=typeof e.then)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n "+(t?"description":"")+"\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n "+(t?"description":"")+"\n fields(includeDeprecated: true) {\n name\n "+(t?"description":"")+"\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n "+(t?"description":"")+"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n "+(t?"description":"")+"\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n "}Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=n;t.introspectionQuery=n()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t.kind===_.Kind.LIST_TYPE)return(0,k.GraphQLList)(o(e,t.type));if(t.kind===_.Kind.NON_NULL_TYPE){var n=o(e,t.type);return(0,k.GraphQLNonNull)((0,k.assertNullableType)(n))}return e}function a(e){for(var t=e;t.kind===_.Kind.LIST_TYPE||t.kind===_.Kind.NON_NULL_TYPE;)t=t.type;return t}function u(e,t){if(!e||e.kind!==_.Kind.DOCUMENT)throw Error("Must provide a document ast.");for(var n=void 0,r=[],i=Object.create(null),o=[],a=0;e.definitions.length>a;a++){var u=e.definitions[a];switch(u.kind){case _.Kind.SCHEMA_DEFINITION:if(n)throw Error("Must provide only one schema definition.");n=u;break;case _.Kind.SCALAR_TYPE_DEFINITION:case _.Kind.OBJECT_TYPE_DEFINITION:case _.Kind.INTERFACE_TYPE_DEFINITION:case _.Kind.ENUM_TYPE_DEFINITION:case _.Kind.UNION_TYPE_DEFINITION:case _.Kind.INPUT_OBJECT_TYPE_DEFINITION:var s=u.name.value;if(i[s])throw Error('Type "'+s+'" was defined more than once.');r.push(u),i[s]=u;break;case _.Kind.DIRECTIVE_DEFINITION:o.push(u)}}var l=n?function(e){var t={};return e.operationTypes.forEach(function(e){var n=e.type.name.value,r=e.operation;if(t[r])throw Error("Must provide only one "+r+" type in schema.");if(!i[n])throw Error("Specified "+r+' type "'+n+'" not found in document.');t[r]=e.type}),t}(n):{query:i.Query,mutation:i.Mutation,subscription:i.Subscription},c=new O(i,t,function(e){throw Error('Type "'+e.name.value+'" not found in document.')}),f=c.buildTypes(r),p=o.map(function(e){return c.buildDirective(e)});return p.some(function(e){return"skip"===e.name})||p.push(C.GraphQLSkipDirective),p.some(function(e){return"include"===e.name})||p.push(C.GraphQLIncludeDirective),p.some(function(e){return"deprecated"===e.name})||p.push(C.GraphQLDeprecatedDirective),new w.GraphQLSchema({query:l.query?c.buildType(l.query):null,mutation:l.mutation?c.buildType(l.mutation):null,subscription:l.subscription?c.buildType(l.subscription):null,types:f,directives:p,astNode:n,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}function s(e){var t=(0,E.getDirectiveValues)(C.GraphQLDeprecatedDirective,e);return t&&t.reason}function l(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=c(e);if(void 0!==n)return(0,y.default)("\n"+n)}}function c(e){var t=e.loc;if(t){for(var n=[],r=t.startToken.prev;r&&r.kind===b.TokenKind.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){n.push(r.value+""),r=r.prev}return n.reverse().join("\n")}}function f(e,t){return u((0,T.parse)(e,t),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ASTDefinitionBuilder=void 0,t.buildASTSchema=u,t.getDescription=l,t.buildSchema=f;var p=n(18),d=r(p),h=n(38),m=r(h),v=n(42),g=n(80),y=r(g),b=n(54),T=n(25),E=n(61),_=n(6),k=n(1),C=n(12),N=n(10),S=n(14),w=n(8),O=t.ASTDefinitionBuilder=function(){function e(t,n,r){i(this,e),this._typeDefinitionsMap=t,this._options=n,this._resolveType=r,this._cache=(0,d.default)(S.specifiedScalarTypes.concat(N.introspectionTypes),function(e){return e.name})}return e.prototype.buildTypes=function(e){var t=this;return e.map(function(e){return t.buildType(e)})},e.prototype.buildType=function(e){var t=e.name.value;if(!this._cache[t])if(e.kind===_.Kind.NAMED_TYPE){var n=this._typeDefinitionsMap[t];this._cache[t]=n?this._makeSchemaDef(n):this._resolveType(e)}else this._cache[t]=this._makeSchemaDef(e);return this._cache[t]},e.prototype._buildWrappedType=function(e){return o(this.buildType(a(e)),e)},e.prototype.buildDirective=function(e){return new C.GraphQLDirective({name:e.name.value,description:l(e,this._options),locations:e.locations.map(function(e){return e.value}),args:e.arguments&&this._makeInputValues(e.arguments),astNode:e})},e.prototype.buildField=function(e){return{type:this._buildWrappedType(e.type),description:l(e,this._options),args:e.arguments&&this._makeInputValues(e.arguments),deprecationReason:s(e),astNode:e}},e.prototype._makeSchemaDef=function(e){switch(e.kind){case _.Kind.OBJECT_TYPE_DEFINITION:return this._makeTypeDef(e);case _.Kind.INTERFACE_TYPE_DEFINITION:return this._makeInterfaceDef(e);case _.Kind.ENUM_TYPE_DEFINITION:return this._makeEnumDef(e);case _.Kind.UNION_TYPE_DEFINITION:return this._makeUnionDef(e);case _.Kind.SCALAR_TYPE_DEFINITION:return this._makeScalarDef(e);case _.Kind.INPUT_OBJECT_TYPE_DEFINITION:return this._makeInputObjectDef(e);default:throw Error('Type kind "'+e.kind+'" not supported.')}},e.prototype._makeTypeDef=function(e){var t=this,n=e.name.value,r=e.interfaces;return new k.GraphQLObjectType({name:n,description:l(e,this._options),fields:function(){return t._makeFieldDefMap(e)},interfaces:r?function(){return t.buildTypes(r)}:[],astNode:e})},e.prototype._makeFieldDefMap=function(e){var t=this;return e.fields?(0,m.default)(e.fields,function(e){return e.name.value},function(e){return t.buildField(e)}):{}},e.prototype._makeInputValues=function(e){var t=this;return(0,m.default)(e,function(e){return e.name.value},function(e){var n=t._buildWrappedType(e.type);return{type:n,description:l(e,t._options),defaultValue:(0,v.valueFromAST)(e.defaultValue,n),astNode:e}})},e.prototype._makeInterfaceDef=function(e){var t=this;return new k.GraphQLInterfaceType({name:e.name.value,description:l(e,this._options),fields:function(){return t._makeFieldDefMap(e)},astNode:e})},e.prototype._makeEnumDef=function(e){var t=this;return new k.GraphQLEnumType({name:e.name.value,description:l(e,this._options),values:e.values?(0,m.default)(e.values,function(e){return e.name.value},function(e){return{description:l(e,t._options),deprecationReason:s(e),astNode:e}}):{},astNode:e})},e.prototype._makeUnionDef=function(e){return new k.GraphQLUnionType({name:e.name.value,description:l(e,this._options),types:e.types?this.buildTypes(e.types):[],astNode:e})},e.prototype._makeScalarDef=function(e){return new k.GraphQLScalarType({name:e.name.value,description:l(e,this._options),astNode:e,serialize:function(e){return e}})},e.prototype._makeInputObjectDef=function(e){var t=this;return new k.GraphQLInputObjectType({name:e.name.value,description:l(e,this._options),fields:function(){return e.fields?t._makeInputValues(e.fields):{}},astNode:e})},e}()},function(e,t,n){"use strict";e.exports=n(184)},function(e,t,n){"use strict";e.exports.encode=n(185),e.exports.decode=n(186),e.exports.format=n(187),e.exports.parse=n(188)},function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),i=RegExp("^(?:"+t+"|"+n+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=i},function(e){"use strict";e.exports.tokenize=function(e,t){var n,r,i,o,a,u=e.pos,s=e.src.charCodeAt(u);if(t)return!1;if(126!==s)return!1;if(r=e.scanDelims(e.pos,!0),o=r.length,a=String.fromCharCode(s),2>o)return!1;for(o%2&&(i=e.push("text","",0),i.content=a,o--),n=0;o>n;n+=2)i=e.push("text","",0),i.content=a+a,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a=[],u=e.delimiters,s=e.delimiters.length;for(t=0;s>t;t++)r=u[t],126===r.marker&&-1!==r.end&&(i=u[r.end],o=e.tokens[r.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=e.tokens[i.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(t=a.pop(),n=t+1;e.tokens.length>n&&"s_close"===e.tokens[n].type;)n++;n--,t!==n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},function(e){"use strict";e.exports.tokenize=function(e,t){var n,r,i,o=e.pos,a=e.src.charCodeAt(o);if(t)return!1;if(95!==a&&42!==a)return!1;for(r=e.scanDelims(e.pos,42===a),n=0;r.length>n;n++)i=e.push("text","",0),i.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a,u=e.delimiters,s=e.delimiters.length;for(t=s-1;t>=0;t--)n=u[t],95!==n.marker&&42!==n.marker||-1!==n.end&&(r=u[n.end],a=t>0&&u[t-1].end===n.end+1&&u[t-1].token===n.token-1&&u[n.end+1].token===r.token+1&&u[t-1].marker===n.marker,o=String.fromCharCode(n.marker),i=e.tokens[n.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=e.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(e.tokens[u[t-1].token].content="",e.tokens[u[n.end+1].token].content="",t--))}},function(e,t,n){"use strict";function r(e,t,r){var o=n(3),a=void 0,u=void 0;o.on(t,"select",function(e,t){if(!a){var n=t.parentNode;a=document.createElement("div"),a.className="CodeMirror-hint-information",n.appendChild(a),u=document.createElement("div"),u.className="CodeMirror-hint-deprecation",n.appendChild(u);var o=void 0;n.addEventListener("DOMNodeRemoved",o=function(e){e.target===n&&(n.removeEventListener("DOMNodeRemoved",o),a=null,u=null,o=null)})}var l=e.description?s.render(e.description):"Self descriptive.",c=e.type?''+i(e.type)+"":"";if(a.innerHTML='
'+("

"===l.slice(0,3)?"

"+c+l.slice(3):c+l)+"

",e.isDeprecated){var f=e.deprecationReason?s.render(e.deprecationReason):"";u.innerHTML='Deprecated'+f,u.style.display="block"}else u.style.display="none";r&&r(a)})}function i(e){return e instanceof o.GraphQLNonNull?i(e.ofType)+"!":e instanceof o.GraphQLList?"["+i(e.ofType)+"]":''+e.name+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(4),a=n(63),u=function(e){return e&&e.__esModule?e:{default:e}}(a),s=new u.default},function(e,t,n){!function(e){e(n(3))}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,t,n){var r=e.options.hintOptions,i={};for(var o in h)i[o]=h[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function r(e){return"string"==typeof e?e:e.text}function i(e,t){function n(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:r;if(i)for(var a in i)i.hasOwnProperty(a)&&n(a,i[a]);var u=e.options.extraKeys;if(u)for(var a in u)u.hasOwnProperty(a)&&n(a,u[a]);return o}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var a=this,u=t.cm,s=u.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,p=this.hints=s.createElement("ul");p.className="CodeMirror-hints "+t.cm.options.theme,this.selectedHint=n.selectedHint||0;for(var d=n.list,h=0;d.length>h;++h){var m=p.appendChild(s.createElement("li")),v=d[h],g=c+(h!=this.selectedHint?"":" "+f);null!=v.className&&(g=v.className+" "+g),m.className=g,v.render?v.render(m,n,v):m.appendChild(s.createTextNode(v.displayText||r(v))),m.hintId=h}var y=t.options.container||s.body,b=u.cursorCoords(t.options.alignWithWord?n.from:null),T=b.left,E=b.bottom,_=!0,k=0,C=0;if(y!==s.body){var N=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(y).position),S=N?y:y.offsetParent,w=S.getBoundingClientRect(),O=s.body.getBoundingClientRect();k=w.left-O.left-S.scrollLeft,C=w.top-O.top-S.scrollTop}p.style.left=T-k+"px",p.style.top=E-C+"px";var L=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),x=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);y.appendChild(p);var D=p.getBoundingClientRect(),I=D.bottom-x,A=p.scrollHeight>p.clientHeight+1,P=u.getScrollInfo();if(I>0){var F=D.bottom-D.top;if(b.top-(b.bottom-D.top)-F>0)p.style.top=(E=b.top-F-C)+"px",_=!1;else if(F>x){p.style.height=x-5+"px",p.style.top=(E=b.bottom-D.top-C)+"px";var M=u.getCursor();n.from.ch!=M.ch&&(b=u.cursorCoords(M),p.style.left=(T=b.left-k)+"px",D=p.getBoundingClientRect())}}var R=D.right-L;if(R>0&&(D.right-D.left>L&&(p.style.width=L-5+"px",R-=D.right-D.left-L),p.style.left=(T=b.left-R-k)+"px"),A)for(var j=p.firstChild;j;j=j.nextSibling)j.style.paddingRight=u.display.nativeBarWidth+"px";if(u.addKeyMap(this.keyMap=i(t,{moveFocus:function(e,t){a.changeActive(a.selectedHint+e,t)},setFocus:function(e){a.changeActive(e)},menuSize:function(){return a.screenAmount()},length:d.length,close:function(){t.close()},pick:function(){a.pick()},data:n})),t.options.closeOnUnfocus){var V;u.on("blur",this.onBlur=function(){V=setTimeout(function(){t.close()},100)}),u.on("focus",this.onFocus=function(){clearTimeout(V)})}return u.on("scroll",this.onScroll=function(){var e=u.getScrollInfo(),n=u.getWrapperElement().getBoundingClientRect(),r=E+P.top-e.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(_||(i+=p.offsetHeight),n.top>=i||i>=n.bottom)return t.close();p.style.top=r+"px",p.style.left=T+P.left-e.left+"px"}),e.on(p,"dblclick",function(e){var t=o(p,e.target||e.srcElement);t&&null!=t.hintId&&(a.changeActive(t.hintId),a.pick())}),e.on(p,"click",function(e){var n=o(p,e.target||e.srcElement);n&&null!=n.hintId&&(a.changeActive(n.hintId),t.options.completeOnSingleClick&&a.pick())}),e.on(p,"mousedown",function(){setTimeout(function(){u.focus()},20)}),e.signal(n,"select",d[this.selectedHint],p.childNodes[this.selectedHint]),!0}function u(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;t.length>r;r++)t[r].supportsSelection&&n.push(t[r]);return n}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function l(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){function r(i){if(i==o.length)return t(null);s(o[i],e,n,function(e){e&&e.list.length>0?t(e):r(i+1)})}var o=u(e,i);r(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var c="CodeMirror-hint",f="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(r){r=n(this,this.getCursor("start"),r);var i=this.listSelections();if(1>=i.length){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(var o=0;i.length>o;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new t(this,r);a.options.hint&&(e.signal(this,"startCompletion",this),a.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var p=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},d=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(d(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||this.startPos.ch>e.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=p(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(this.data.list.length>t?0>t&&(t=n?0:this.data.list.length-1):t=n?this.data.list.length-1:0,this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+f,"")),r=this.hints.childNodes[this.selectedHint=t],r.className+=" "+f,this.hints.scrollTop>r.offsetTop?this.hints.scrollTop=r.offsetTop-3:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:l}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),u=i;i.ch>o.start&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var s=[],l=0;n.words.length>l;l++){var c=n.words[l];c.slice(0,r.length)==r&&s.push(c)}if(s.length)return{list:s,from:a,to:u}}),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)})},function(e,t,n){!function(e){e(n(3))}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:f[t]}function n(e){for(var t=0;e.length>t;t++){var n=e.charAt(t),i="'"+n+"'";d[i]||(d[i]=r(n))}}function r(e){return function(t){return s(t,e)}}function i(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),a=n.listSelections(),u=0;a.length>u;u++){if(!a[u].empty())return e.Pass;var s=l(n,a[u].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}for(var u=a.length-1;u>=0;u--){var c=a[u].head;n.replaceRange("",p(c.line,c.ch-1),p(c.line,c.ch+1),"+delete")}}function a(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),u=0;a.length>u;u++){if(!a[u].empty())return e.Pass;var s=l(n,a[u].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),n.execCommand("goCharLeft"),a=n.listSelections();for(var t=0;a.length>t;t++){var r=a[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}})}function u(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new p(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new p(t.head.line,t.head.ch+(n?1:-1))}}function s(n,r){var o=i(n);if(!o||n.getOption("disableInput"))return e.Pass;var a=t(o,"pairs"),s=a.indexOf(r);if(-1==s)return e.Pass;for(var l,f=t(o,"closeBefore"),d=t(o,"triples"),h=a.charAt(s+1)==r,m=n.listSelections(),v=s%2==0,g=0;m.length>g;g++){var y,b=m[g],T=b.head,E=n.getRange(T,p(T.line,T.ch+1));if(v&&!b.empty())y="surround";else if(!h&&v||E!=r)if(h&&T.ch>1&&d.indexOf(r)>=0&&n.getRange(p(T.line,T.ch-2),T)==r+r){if(T.ch>2&&/\bstring/.test(n.getTokenTypeAt(p(T.line,T.ch-2))))return e.Pass;y="addFour"}else if(h){var _=0==T.ch?" ":n.getRange(p(T.line,T.ch-1),T);if(e.isWordChar(E)||_==r||e.isWordChar(_))return e.Pass;y="both"}else{if(!v||0!==E.length&&!/\s/.test(E)&&-1>=f.indexOf(E))return e.Pass;y="both"}else y=h&&c(n,T)?"both":0>d.indexOf(r)||n.getRange(T,p(T.line,T.ch+3))!=r+r+r?"skip":"skipThree";if(l){if(l!=y)return e.Pass}else l=y}var k=s%2?a.charAt(s-1):r,C=s%2?r:a.charAt(s+1);n.operation(function(){if("skip"==l)n.execCommand("goCharRight");else if("skipThree"==l)for(var e=0;3>e;e++)n.execCommand("goCharRight");else if("surround"==l){for(var t=n.getSelections(),e=0;t.length>e;e++)t[e]=k+t[e]+C;n.replaceSelections(t,"around"),t=n.listSelections().slice();for(var e=0;t.length>e;e++)t[e]=u(t[e]);n.setSelections(t)}else"both"==l?(n.replaceSelection(k+C,null),n.triggerElectric(k+C),n.execCommand("goCharLeft")):"addFour"==l&&(n.replaceSelection(k+k+k+k,"before"),n.execCommand("goCharRight"))})}function l(e,t){var n=e.getRange(p(t.line,t.ch-1),p(t.line,t.ch+1));return 2==n.length?n:null}function c(e,t){var n=e.getTokenAt(p(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var f={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},p=e.Pos;e.defineOption("autoCloseBrackets",!1,function(r,i,o){o&&o!=e.Init&&(r.removeKeyMap(d),r.state.closeBrackets=null),i&&(n(t(i,"pairs")),r.state.closeBrackets=i,r.addKeyMap(d))});var d={Backspace:o,Enter:a};n(f.pairs+"`")})},function(e,t,n){!function(e){e(n(3),n(28),n(29))}(function(e){"use strict";function t(e,t){return"string"==typeof e?e=RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:i})}function u(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function s(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function l(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function c(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=l(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=c(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function p(t,n,i,o){var s=r(t);if(s.query)return d(t,n);var l=t.getSelection()||s.lastQuery;if(l instanceof RegExp&&"x^"==l.source&&(l=null),i&&t.openDialog){var c=null,p=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(f(t,s,n),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),d(t,r.shiftKey,function(e,n){var r;3>n.line&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((c=r).style.opacity=.4)}))};a(t,m(t),l,p,function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),u=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==u||"findPrev"==u||"findPersistentNext"==u||"findPersistentPrev"==u?(e.e_stop(n),f(t,r(t),i),t.execCommand(u)):"find"!=u&&"findPersistent"!=u||(e.e_stop(n),p(i,n))}),o&&l&&(f(t,s,l),d(t,n))}else u(t,m(t),"Search for:",l,function(e){e&&!s.query&&t.operation(function(){f(t,s,e),s.posFrom=s.posTo=t.getCursor(),d(t,n)})})}function d(t,n,i){t.operation(function(){var a=r(t),u=o(t,a.query,n?a.posFrom:a.posTo);(u.find(n)||(u=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),u.find(n)))&&(t.setSelection(u.from(),u.to()),t.scrollIntoView({from:u.from(),to:u.to()},20),a.posFrom=u.from(),a.posTo=u.to(),i&&i(u.from(),u.to()))})}function h(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function m(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function v(e){return' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function g(e){return''+e.phrase("With:")+' '}function y(e){return''+e.phrase("Replace?")+" "}function b(e,t,n){e.operation(function(){for(var r=o(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return i[t]}))}else r.replace(n)})}function T(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i=''+e.phrase(t?"Replace all:":"Replace:")+"";u(e,i+v(e),i,n,function(n){n&&(n=c(n),u(e,g(e),e.phrase("Replace with:"),"",function(r){if(r=l(r),t)b(e,n,r);else{h(e);var i=o(e,n,e.getCursor("from")),a=function(){var t,l=i.from();!(t=i.findNext())&&(i=o(e,n),!(t=i.findNext())||l&&i.from().line==l.line&&i.from().ch==l.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),s(e,y(e),e.phrase("Replace?"),[function(){u(t)},a,function(){b(e,n,r)}]))},u=function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),a()};a()}}))})}}e.commands.find=function(e){h(e),p(e)},e.commands.findPersistent=function(e){h(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=h,e.commands.replace=T,e.commands.replaceAll=function(e){T(e,!0)}})},function(e,t,n){!function(e){e(n(3))}(function(e){"use strict";function t(t,n){function r(t){if(!i.parentNode)return e.off(document,"mousemove",r);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}var i=document.createElement("div");return i.className="CodeMirror-lint-tooltip",i.appendChild(n.cloneNode(!0)),document.body.appendChild(i),e.on(document,"mousemove",r),r(t),null!=i.style.opacity&&(i.style.opacity=1),i}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(e){e.parentNode&&(null==e.style.opacity&&n(e),e.style.opacity=0,setTimeout(function(){n(e)},600))}function i(n,i,o){function a(){e.off(o,"mouseout",a),u&&(r(u),u=null)}var u=t(n,i),s=setInterval(function(){if(u)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!u)return clearInterval(s)},400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){g(e,t)},this.waitingFor=0}function a(e,t){return t instanceof Function?{getAnnotations:t}:(t&&!0!==t||(t={}),t)}function u(e){var t=e.state.lint;t.hasGutter&&e.clearGutter(y);for(var n=0;t.marked.length>n;++n)t.marked[n].clear();t.marked.length=0}function s(t,n,r,o){var a=document.createElement("div"),u=a;return a.className="CodeMirror-lint-marker-"+n,r&&(u=a.appendChild(document.createElement("div")),u.className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(u,"mouseover",function(e){i(e,t,u)}),a}function l(e,t){return"error"==e?e:t}function c(e){for(var t=[],n=0;e.length>n;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function f(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function p(t,n,r){function i(){a=-1,t.off("change",i)}var o=t.state.lint,a=++o.waitingFor;t.on("change",i),n(t.getValue(),function(n,r){t.off("change",i),o.waitingFor==a&&(r&&n instanceof e&&(n=r),t.operation(function(){h(t,n)}))},r,t)}function d(t){var n=t.state.lint,r=n.options,i=r.options||r,o=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(o)if(r.async||o.async)p(t,o,i);else{var a=o(t.getValue(),i,t);if(!a)return;a.then?a.then(function(e){t.operation(function(){h(t,e)})}):t.operation(function(){h(t,a)})}}function h(e,t){u(e);for(var n=e.state.lint,r=n.options,i=c(t),o=0;i.length>o;++o){var a=i[o];if(a){for(var p=null,d=n.hasGutter&&document.createDocumentFragment(),h=0;a.length>h;++h){var m=a[h],v=m.severity;v||(v="error"),p=l(p,v),r.formatAnnotation&&(m=r.formatAnnotation(m)),n.hasGutter&&d.appendChild(f(m)),m.to&&n.marked.push(e.markText(m.from,m.to,{className:"CodeMirror-lint-mark-"+v,__annotation:m}))}n.hasGutter&&e.setGutterMarker(o,y,s(d,p,a.length>1,n.options.tooltips))}}r.onUpdateLinting&&r.onUpdateLinting(t,i,e)}function m(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){d(e)},t.options.delay||500))}function v(e,t){for(var n=t.target||t.srcElement,r=document.createDocumentFragment(),o=0;e.length>o;o++){r.appendChild(f(e[o]))}i(t,r,n)}function g(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,a=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),u=[],s=0;a.length>s;++s){var l=a[s].__annotation;l&&u.push(l)}u.length&&v(u,t)}}var y="CodeMirror-lint-markers";e.defineOption("lint",!1,function(t,n,r){if(r&&r!=e.Init&&(u(t),!1!==t.state.lint.options.lintOnChange&&t.off("change",m),e.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),n){for(var i=t.getOption("gutters"),s=!1,l=0;i.length>l;++l)i[l]==y&&(s=!0);var c=t.state.lint=new o(t,a(t,n),s);!1!==c.options.lintOnChange&&t.on("change",m),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&e.on(t.getWrapperElement(),"mouseover",c.onMouseOver),d(t)}}),e.defineExtension("performLint",function(){this.state.lint&&d(this)})})},function(e,t,n){"use strict";function r(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function i(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var o=n(124);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Comment:/^#.*/},t.ParseRules={Document:[(0,o.list)("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[r("query"),(0,o.opt)(i("def")),(0,o.opt)("VariableDefinitions"),(0,o.list)("Directive"),"SelectionSet"],Mutation:[r("mutation"),(0,o.opt)(i("def")),(0,o.opt)("VariableDefinitions"),(0,o.list)("Directive"),"SelectionSet"],Subscription:[r("subscription"),(0,o.opt)(i("def")),(0,o.opt)("VariableDefinitions"),(0,o.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,o.p)("("),(0,o.list)("VariableDefinition"),(0,o.p)(")")],VariableDefinition:["Variable",(0,o.p)(":"),"Type",(0,o.opt)("DefaultValue")],Variable:[(0,o.p)("$","variable"),i("variable")],DefaultValue:[(0,o.p)("="),"Value"],SelectionSet:[(0,o.p)("{"),(0,o.list)("Selection"),(0,o.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[i("property"),(0,o.p)(":"),i("qualifier"),(0,o.opt)("Arguments"),(0,o.list)("Directive"),(0,o.opt)("SelectionSet")],Field:[i("property"),(0,o.opt)("Arguments"),(0,o.list)("Directive"),(0,o.opt)("SelectionSet")],Arguments:[(0,o.p)("("),(0,o.list)("Argument"),(0,o.p)(")")],Argument:[i("attribute"),(0,o.p)(":"),"Value"],FragmentSpread:[(0,o.p)("..."),i("def"),(0,o.list)("Directive")],InlineFragment:[(0,o.p)("..."),(0,o.opt)("TypeCondition"),(0,o.list)("Directive"),"SelectionSet"],FragmentDefinition:[r("fragment"),(0,o.opt)((0,o.butNot)(i("def"),[r("on")])),"TypeCondition",(0,o.list)("Directive"),"SelectionSet"],TypeCondition:[r("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Name","builtin")],NullValue:[(0,o.t)("Name","keyword")],EnumValue:[i("string-2")],ListValue:[(0,o.p)("["),(0,o.list)("Value"),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField"),(0,o.p)("}")],ObjectField:[i("attribute"),(0,o.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,o.p)("["),"Type",(0,o.p)("]"),(0,o.opt)((0,o.p)("!"))],NonNullType:["NamedType",(0,o.opt)((0,o.p)("!"))],NamedType:[function(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}("atom")],Directive:[(0,o.p)("@","meta"),i("meta"),(0,o.opt)("Arguments")],SchemaDef:[r("schema"),(0,o.list)("Directive"),(0,o.p)("{"),(0,o.list)("OperationTypeDef"),(0,o.p)("}")],OperationTypeDef:[i("keyword"),(0,o.p)(":"),i("atom")],ScalarDef:[r("scalar"),i("atom"),(0,o.list)("Directive")],ObjectTypeDef:[r("type"),i("atom"),(0,o.opt)("Implements"),(0,o.list)("Directive"),(0,o.p)("{"),(0,o.list)("FieldDef"),(0,o.p)("}")],Implements:[r("implements"),(0,o.list)("NamedType")],FieldDef:[i("property"),(0,o.opt)("ArgumentsDef"),(0,o.p)(":"),"Type",(0,o.list)("Directive")],ArgumentsDef:[(0,o.p)("("),(0,o.list)("InputValueDef"),(0,o.p)(")")],InputValueDef:[i("attribute"),(0,o.p)(":"),"Type",(0,o.opt)("DefaultValue"),(0,o.list)("Directive")],InterfaceDef:[r("interface"),i("atom"),(0,o.list)("Directive"),(0,o.p)("{"),(0,o.list)("FieldDef"),(0,o.p)("}")],UnionDef:[r("union"),i("atom"),(0,o.list)("Directive"),(0,o.p)("="),(0,o.list)("UnionMember",(0,o.p)("|"))],UnionMember:["NamedType"],EnumDef:[r("enum"),i("atom"),(0,o.list)("Directive"),(0,o.p)("{"),(0,o.list)("EnumValueDef"),(0,o.p)("}")],EnumValueDef:[i("string-2"),(0,o.list)("Directive")],InputDef:[r("input"),i("atom"),(0,o.list)("Directive"),(0,o.p)("{"),(0,o.list)("InputValueDef"),(0,o.p)("}")],ExtendDef:[r("extend"),"ObjectTypeDef"],DirectiveDef:[r("directive"),(0,o.p)("@","meta"),i("meta"),(0,o.opt)("ArgumentsDef"),r("on"),(0,o.list)("DirectiveLocation",(0,o.p)("|"))],DirectiveLocation:[i("string-2")]}},function(e,t){"use strict";function n(e){return{ofRule:e}}function r(e,t){return{ofRule:e,isList:!0,separator:t}}function i(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e}function o(e,t){return{style:t,match:function(t){return t.kind===e}}}function a(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.opt=n,t.list=r,t.butNot=i,t.t=o,t.p=a},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new a(r,t-i-1)}function i(e,t){var n=r(e,t.start),i=r(e,t.end);return new o(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.offsetToPosition=r,t.locToRange=i;var o=t.Range=function(){function e(t,r){var i=this;n(this,e),this.containsPosition=function(e){return i.start.line===e.line?e.character>=i.start.character:i.end.line===e.line?i.end.character>=e.character:e.line>=i.start.line&&i.end.line>=e.line},this.start=t,this.end=r}return e.prototype.setStart=function(e,t){this.start=new a(e,t)},e.prototype.setEnd=function(e,t){this.end=new a(e,t)},e}(),a=t.Position=function(){function e(t,r){var i=this;n(this,e),this.lessThanOrEqualTo=function(e){return e.line>i.line||i.line===e.line&&e.character>=i.character},this.line=t,this.character=r}return e.prototype.setLine=function(e){this.line=e},e.prototype.setCharacter=function(e){this.character=e},e}()},function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);o>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}function o(e){return Object.prototype.toString.call(e)}function a(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function u(e){if(_.isFunction(e)){if(N)return e.name;var t=""+e,n=t.match(w);return n&&n[1]}}function s(e,t){return"string"==typeof e?t>e.length?e:e.slice(0,t):e}function l(e){if(N||!_.isFunction(e))return _.inspect(e);var t=u(e);return"[Function"+(t?": "+t:"")+"]"}function c(e){return s(l(e.actual),128)+" "+e.operator+" "+s(l(e.expected),128)}function f(e,t,n,r,i){throw new S.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function p(e,t){e||f(e,!0,t,"==",S.ok)}function d(e,t,n,u){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(_.isDate(e)&&_.isDate(t))return e.getTime()===t.getTime();if(_.isRegExp(e)&&_.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(a(e)&&a(t)&&o(e)===o(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;u=u||{actual:[],expected:[]};var s=u.actual.indexOf(e);return-1!==s&&s===u.expected.indexOf(t)||(u.actual.push(e),u.expected.push(t),m(e,t,n,u))}return n?e===t:e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function m(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(_.isPrimitive(e)||_.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=h(e),o=h(t);if(i&&!o||!i&&o)return!1;if(i)return e=C.call(e),t=C.call(t),d(e,t,n);var a,u,s=O(e),l=O(t);if(s.length!==l.length)return!1;for(s.sort(),l.sort(),u=s.length-1;u>=0;u--)if(s[u]!==l[u])return!1;for(u=s.length-1;u>=0;u--)if(a=s[u],!d(e[a],t[a],n,r))return!1;return!0}function v(e,t,n){d(e,t,!0)&&f(e,t,n,"notDeepStrictEqual",v)}function g(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function y(e){var t;try{e()}catch(e){t=e}return t}function b(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=y(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&f(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!e&&_.isError(i),u=!e&&i&&!n;if((a&&o&&g(i,n)||u)&&f(i,n,"Got unwanted exception"+r),e&&i&&n&&!g(i,n)||!e&&i)throw i}function T(e,t){e||f(e,!0,t,"==",T)}var E=n(46),_=n(246),k=Object.prototype.hasOwnProperty,C=Array.prototype.slice,N=function(){return"foo"===function(){}.name}(),S=e.exports=p,w=/\s*function\s+([^\(\s]*)\s*/;S.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var t=e.stackStartFunction||f;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=Error();if(n.stack){var r=n.stack,i=u(t),o=r.indexOf("\n"+i);if(o>=0){r=r.substring(r.indexOf("\n",o+1)+1)}this.stack=r}}},_.inherits(S.AssertionError,Error),S.fail=f,S.ok=p,S.equal=function(e,t,n){e!=t&&f(e,t,n,"==",S.equal)},S.notEqual=function(e,t,n){e==t&&f(e,t,n,"!=",S.notEqual)},S.deepEqual=function(e,t,n){d(e,t,!1)||f(e,t,n,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(e,t,n){d(e,t,!0)||f(e,t,n,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(e,t,n){d(e,t,!1)&&f(e,t,n,"notDeepEqual",S.notDeepEqual)},S.notDeepStrictEqual=v,S.strictEqual=function(e,t,n){e!==t&&f(e,t,n,"===",S.strictEqual)},S.notStrictEqual=function(e,t,n){e===t&&f(e,t,n,"!==",S.notStrictEqual)},S.throws=function(e,t,n){b(!0,e,t,n)},S.doesNotThrow=function(e,t,n){b(!1,e,t,n)},S.ifError=function(e){if(e)throw e},S.strict=E(T,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict;var O=Object.keys||function(e){var t=[];for(var n in e)k.call(e,n)&&t.push(n);return t}}).call(t,n(49))},function(e,t,n){function r(e){return n(i(e))}function i(e){var t=o[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var o={".":22,"./":22,"./GraphQLLanguageService":45,"./GraphQLLanguageService.js":45,"./GraphQLLanguageService.js.flow":249,"./autocompleteUtils":30,"./autocompleteUtils.js":30,"./autocompleteUtils.js.flow":250,"./getAutocompleteSuggestions":23,"./getAutocompleteSuggestions.js":23,"./getAutocompleteSuggestions.js.flow":251,"./getDefinition":32,"./getDefinition.js":32,"./getDefinition.js.flow":252,"./getDiagnostics":33,"./getDiagnostics.js":33,"./getDiagnostics.js.flow":253,"./getHoverInformation":34,"./getHoverInformation.js":34,"./getHoverInformation.js.flow":254,"./getOutline":44,"./getOutline.js":44,"./getOutline.js.flow":255,"./index":22,"./index.js":22,"./index.js.flow":256};r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=127},function(e,t,n){"use strict";function r(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,l.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?i(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,a.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var r="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&i(e,n.parentType,t.prevState.name):null;n.argDefs=r&&r.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var u=0;n.argDefs.length>u;u++)if(n.argDefs[u].name===t.name){n.argDef=n.argDefs[u];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var s=(0,a.getNamedType)(n.inputType);n.enumValue=s instanceof a.GraphQLEnumType?o(s.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var l=(0,a.getNullableType)(n.inputType);n.inputType=l instanceof a.GraphQLList?l.ofType:null;break;case"ObjectValue":var c=(0,a.getNamedType)(n.inputType);n.objectFieldDefs=c instanceof a.GraphQLInputObjectType?c.getFields():null;break;case"ObjectField":var f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=f&&f.type;break;case"NamedType":n.type=e.getType(t.name)}}),n}function i(e,t,n){return n===u.SchemaMetaFieldDef.name&&e.getQueryType()===t?u.SchemaMetaFieldDef:n===u.TypeMetaFieldDef.name&&e.getQueryType()===t?u.TypeMetaFieldDef:n===u.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?u.TypeNameMetaFieldDef:t.getFields?t.getFields()[n]:void 0}function o(e,t){for(var n=0;e.length>n;n++)if(t(e[n]))return e[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(4),u=n(10),s=n(129),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t){"use strict";function n(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:s(e.fieldDef)?null:e.parentType}}function i(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function o(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:s(e.fieldDef)?null:e.parentType}}function a(e){return{kind:"EnumValue",value:e.enumValue,type:(0,l.getNamedType)(e.inputType)}}function u(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function s(e){return"__"===e.name.slice(0,2)}Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=r,t.getDirectiveReference=i,t.getArgumentReference=o,t.getEnumValueReference=a,t.getTypeReference=u;var l=n(4)},function(e,t,n){"use strict";function r(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function i(e){var t=e.state.info.options;return t&&t.hoverTime||500}function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if("SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),u=i(e);n.hoverTimeout=setTimeout(f,u);var s=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(f,u)},c=function t(){l.default.off(document,"mousemove",s),l.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},f=function(){l.default.off(document,"mousemove",s),l.default.off(e.getWrapperElement(),"mouseout",c),n.hoverTimeout=void 0,a(e,o)};l.default.on(document,"mousemove",s),l.default.on(e.getWrapperElement(),"mouseout",c)}}function a(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info,i=r.options,o=i.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,i,e,n);s&&u(e,t,s)}}}function u(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var i=r.getBoundingClientRect(),o=r.currentStyle||window.getComputedStyle(r),a=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),u=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),s=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(s=t.top-u),0>s&&(s=t.bottom);var c=Math.max(0,window.innerWidth-a-15);c>t.left&&(c=t.left),r.style.opacity=1,r.style.top=s+"px",r.style.left=c+"px";var f=void 0,p=function(){clearTimeout(f)},d=function(){clearTimeout(f),f=setTimeout(h,200)},h=function(){l.default.off(r,"mouseover",p),l.default.off(r,"mouseout",d),l.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity=0,setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r)},600)):r.parentNode&&r.parentNode.removeChild(r)};l.default.on(r,"mouseover",p),l.default.on(r,"mouseout",d),l.default.on(e.getWrapperElement(),"mouseout",d)}var s=n(3),l=function(e){return e&&e.__esModule?e:{default:e}}(s);l.default.defineOption("info",!1,function(e,t,n){if(n&&n!==l.default.Init){var i=e.state.info.onMouseOver;l.default.off(e.getWrapperElement(),"mouseover",i),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=r(t);a.onMouseOver=o.bind(null,e),l.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.field,n=t.type,r=t.defaultValue;return void 0!==r?a.default.createElement("span",null," = ",a.default.createElement("span",{className:"arg-default-value"},(0,l.print)((0,l.astFromValue)(r,n)))):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),a=r(o),u=n(7),s=r(u),l=n(4);i.propTypes={field:s.default.object.isRequired}},function(e,t){"use strict";function n(e,t){var n=void 0;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(5),o=r(i),a=n(48),u=r(a),s=n(145),l=r(s),c=n(146),f=r(c),p=n(147),d=r(p),h=n(4);l.default.behaviors.graphQLRenderExplorer={attach:function(e,t){var n=(0,f.default)("#graphql-explorer",e).once("graphql-explorer")[0]||void 0;if(void 0!==n){var r=(0,h.buildClientSchema)(t.graphqlIntrospectionData.data);u.default.render(o.default.createElement(d.default,{fetcher:function(e){return fetch(t.graphqlRequestUrl,{method:"post",credentials:"same-origin",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(function(e){return e.json()})},schema:r,query:t.graphqlQuery||void 0,variables:t.graphqlVariables||void 0}),n)}}}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;t>r;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function i(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||T}function o(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||T}function a(){}function u(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||T}function s(e,t,n,r,i,o,a){return{$$typeof:S,type:e,key:t,ref:n,props:a,_owner:o}}function l(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function c(e,t,n,r){if(D.length){var i=D.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function p(e,t,n,i){var o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===L)return n(i,e,""===t?"."+d(e,0):t),1;var a=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;e.length>u;u++){o=e[u];var s=t+d(o,u);a+=p(o,s,n,i)}else if("function"==typeof(s=O&&e[O]||e["@@iterator"]))for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=t+d(o,u++),a+=p(o,s,n,i);else"object"===o&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function d(e,t){return"object"==typeof e&&null!==e&&null!=e.key?l(e.key):t.toString(36)}function h(e,t){e.func.call(e.context,t,e.count++)}function m(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,b.thatReturnsArgument):null!=e&&(s.isValidElement(e)&&(e=s.cloneAndReplaceKey(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(x,"$&/")+"/")+n)),r.push(e))}function v(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(x,"$&/")+"/"),t=c(t,o,r,i),null==e||p(e,"",m,t),f(t)}var g=n(46),y=n(74);n(47);var b=n(36),T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=i.prototype;var E=o.prototype=new a;E.constructor=o,g(E,i.prototype),E.isPureReactComponent=!0;var _=u.prototype=new a;_.constructor=u,g(_,i.prototype),_.unstable_isAsyncReactComponent=!0,_.render=function(){return this.props.children};var k={Component:i,PureComponent:o,AsyncComponent:u},C={current:null},N=Object.prototype.hasOwnProperty,S="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,w={key:!0,ref:!0,__self:!0,__source:!0};s.createElement=function(e,t,n){var r,i={},o=null,a=null,u=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),u=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)N.call(t,r)&&!w.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(c>1){for(var f=Array(c),p=0;c>p;p++)f[p]=arguments[p+2];i.children=f}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return s(e,o,a,u,l,null,i)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){return s(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},s.cloneElement=function(e,t,n){var r=g({},e.props),i=e.key,o=e.ref,a=e._self,u=e._source,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=null),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(f in t)N.call(t,f)&&!w.hasOwnProperty(f)&&(r[f]=void 0===t[f]&&void 0!==c?c[f]:t[f])}var f=arguments.length-2;if(1===f)r.children=n;else if(f>1){c=Array(f);for(var p=0;f>p;p++)c[p]=arguments[p+2];r.children=c}return s(e.type,i,o,a,u,l,r)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===S};var O="function"==typeof Symbol&&Symbol.iterator,L="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,x=/\/+/g,D=[],I={forEach:function(e,t,n){if(null==e)return e;t=c(null,null,t,n),null==e||p(e,"",h,t),f(t)},map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},count:function(e){return null==e?0:p(e,"",b.thatReturnsNull,null)},toArray:function(e){var t=[];return v(e,t,null,b.thatReturnsArgument),t}};e.exports={Children:{map:I.map,forEach:I.forEach,count:I.count,toArray:I.toArray,only:function(e){return s.isValidElement(e)||r("143"),e}},Component:k.Component,PureComponent:k.PureComponent,unstable_AsyncComponent:k.AsyncComponent,createElement:s.createElement,cloneElement:s.cloneElement,isValidElement:s.isValidElement,createFactory:s.createFactory,version:"16.0.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:g}}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;t>r;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function i(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 o(){if(wt)for(var e in Ot){var t=Ot[e],n=wt.indexOf(e);if(n>-1||r("96",e),!Lt.plugins[n]){t.extractEvents||r("97",e),Lt.plugins[n]=t,n=t.eventTypes;for(var i in n){var o=void 0,u=n[i],s=t,l=i;Lt.eventNameDispatchConfigs.hasOwnProperty(l)&&r("99",l),Lt.eventNameDispatchConfigs[l]=u;var c=u.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&a(c[o],s,l);o=!0}else u.registrationName?(a(u.registrationName,s,l),o=!0):o=!1;o||r("98",i,e)}}}}function a(e,t,n){Lt.registrationNameModules[e]&&r("100",e),Lt.registrationNameModules[e]=t,Lt.registrationNameDependencies[e]=t.eventTypes[n].dependencies}function u(e,t){return(e&t)===t}function s(e){for(var t;t=e._renderedComponent;)e=t;return e}function l(e,t){e=s(e),e._hostNode=t,t[Bt]=e}function c(e,t){if(!(e._flags&Ut.hasCachedChildNodes)){var n=e._renderedChildren;t=t.firstChild;var i;e:for(i in n)if(n.hasOwnProperty(i)){var o=n[i],a=s(o)._domID;if(0!==a){for(;null!==t;t=t.nextSibling){var u=t,c=a;if(u.nodeType===Rt&&u.getAttribute(Vt)===""+c||u.nodeType===jt&&u.nodeValue===" react-text: "+c+" "||u.nodeType===jt&&u.nodeValue===" react-empty: "+c+" "){l(o,t);continue e}}r("32",a)}}e._flags|=Ut.hasCachedChildNodes}}function f(e){if(e[Bt])return e[Bt];for(var t=[];!e[Bt];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=e[Bt];if(n.tag===Ft||n.tag===Mt)return n;for(;e&&(n=e[Bt]);e=t.pop()){var r=n;t.length&&c(n,e)}return r}function p(e){if("function"==typeof e.getName)return e.getName();if("number"==typeof e.tag){if("string"==typeof(e=e.type))return e;if("function"==typeof e)return e.displayName||e.name}return null}function d(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&Yt)!==Wt)return 1;for(;t.return;)if(t=t.return,(t.effectTag&Yt)!==Wt)return 1}return t.tag===zt?2:3}function h(e){2!==d(e)&&r("188")}function m(e){var t=e.alternate;if(!t)return t=d(e),3===t&&r("188"),1===t?null:e;for(var n=e,i=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var u=o.child;u;){if(u===n)return h(o),e;if(u===i)return h(o),t;u=u.sibling}r("188")}if(n.return!==i.return)n=o,i=a;else{u=!1;for(var s=o.child;s;){if(s===n){u=!0,n=o,i=a;break}if(s===i){u=!0,i=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,i=o;break}if(s===i){u=!0,i=a,n=o;break}s=s.sibling}u||r("189")}}n.alternate!==i&&r("190")}return n.tag!==zt&&r("188"),n.stateNode.current===n?e:t}function v(e,t,n){Jt._hasCaughtError=!1,Jt._caughtError=null;var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){Jt._caughtError=e,Jt._hasCaughtError=!0}}function g(){if(Jt._hasRethrowError){var e=Jt._rethrowError;throw Jt._rethrowError=null,Jt._hasRethrowError=!1,e}}function y(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Zt.getNodeFromInstance(r),Xt.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function b(e){if(e=en.getInstanceFromNode(e))if("number"==typeof e.tag){tn&&"function"==typeof tn.restoreControlledState||r("194");var t=en.getFiberCurrentPropsFromNode(e.stateNode);tn.restoreControlledState(e.stateNode,e.type,t)}else"function"!=typeof e.restoreControlledState&&r("195"),e.restoreControlledState()}function T(e,t,n,r,i,o){return e(t,n,r,i,o)}function E(e,t){return e(t)}function _(e,t){return E(e,t)}function k(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===sn?e.parentNode:e}function C(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n=t;if("number"==typeof n.tag){for(;n.return;)n=n.return;n=n.tag!==ln?null:n.stateNode.containerInfo}else{for(;n._hostParent;)n=n._hostParent;n=qt.getNodeFromInstance(n).parentNode}if(!n)break;e.ancestors.push(t),t=qt.getClosestInstanceFromNode(n)}while(t);for(n=0;e.ancestors.length>n;n++)t=e.ancestors[n],fn._handleTopLevel(e.topLevelType,t,e.nativeEvent,k(e.nativeEvent))}function N(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function w(e,t){e&&(en.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function O(e){return w(e,!0)}function L(e){return w(e,!1)}function x(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||"button"!==t&&"input"!==t&&"select"!==t&&"textarea"!==t);default:return!1}}function D(e,t){if(!mt.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"==typeof n[t]),!n&&Nt&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function I(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 A(e){if(vn[e])return vn[e];if(!mn[e])return e;var t,n=mn[e];for(t in n)if(n.hasOwnProperty(t)&&t in gn)return vn[e]=n[t];return""}function P(e){return Object.prototype.hasOwnProperty.call(e,En)||(e[En]=Tn++,bn[e[En]]={}),bn[e[En]]}function F(e){return!!An.hasOwnProperty(e)||!In.hasOwnProperty(e)&&(Dn.test(e)?An[e]=!0:(In[e]=!0,!1))}function M(e){var t="";return ht.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}function R(e,t,n){if(e=e.options,t){t={};for(var r=0;n.length>r;r++)t["$"+n[r]]=!0;for(n=0;e.length>n;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r)}else{for(n=""+n,t=null,r=0;e.length>r;r++){if(e[r].value===n)return void(e[r].selected=!0);null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function j(e,t){t&&(Bn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,""),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",""))}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function G(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 B(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===zn)return void(n.nodeValue=t)}e.textContent=t}function Q(e,t){Jn(t,e.nodeType===Yn||e.nodeType===$n?e:e.ownerDocument)}function q(e,t){return e!==Tr&&e!==br||t!==Tr&&t!==br?e===yr&&t!==yr?-255:e!==yr&&t===yr?255:e-t:0}function K(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function H(e,t,n,r){null!==n?n.next=t:(t.next=e.first,e.first=t),null!==r?t.next=r:e.last=t}function z(e,t){t=t.priorityLevel;var n=null;if(null===e.last||0=q(e.priorityLevel,t);)n=e,e=e.next;else n=e.last;return n}function W(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=K()),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=K()):e=null,Er=r,_r=e!==r?e:null;var i=Er;n=_r;var o=z(i,t),a=null!==o?o.next:i.first;return null===n?(H(i,t,o,a),null):(r=z(n,t),e=null!==r?r.next:n.first,H(i,t,o,a),a===e&&null!==a||o===r&&null!==o?(null===r&&(n.first=t),null===e&&(n.last=null),null):(t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},H(n,t,r,e),t))}function Y(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function $(e,t,n){e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function J(e){return e.tag===Or&&null!=e.type.childContextTypes}function X(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",p(e)||"Unknown",o);return vt({},t,n)}function Z(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=Ur,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=Vr,this.alternate=null}function ee(e,t,n){var i=void 0;return"function"==typeof e?(i=e.prototype&&e.prototype.isReactComponent?new Z(Rr,t,n):new Z(Mr,t,n),i.type=e):"string"==typeof e?(i=new Z(jr,t,n),i.type=e):"object"==typeof e&&null!==e&&"number"==typeof e.tag?i=e:r("130",null==e?e:typeof e,""),i}function te(e){return null===e||void 0===e?null:(e=gi&&e[gi]||e["@@iterator"],"function"==typeof e?e:null)}function ne(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){t=t._owner;var i=void 0;t&&("number"==typeof t.tag?(t.tag!==si&&r("110"),i=t.stateNode):i=t.getPublicInstance()),i||r("147",n);var o=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===o?e.ref:(e=function(e){var t=i.refs===bt?i.refs={}:i.refs;null===e?delete t[o]:t[o]=e},e._stringRef=o,e)}"string"!=typeof n&&r("148"),t._owner||r("149",n)}return n}function re(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ie(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var i=n.lastEffect;null!==i?(i.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=vi}}function i(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(t,n){return e?(t=Zr(t,n),t.index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=hi,t.index=0,t.sibling=null,t)}function u(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,n>r?(e.effectTag=mi,n):r):(e.effectTag=mi,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=mi),e}function l(e,t,n,r){return null===t||t.tag!==li?(n=ni(n,e.internalContextTag,r),n.return=e,n):(t=a(t,r),t.pendingProps=n,t.return=e,t)}function c(e,t,n,r){return null===t||t.type!==n.type?(r=ei(n,e.internalContextTag,r),r.ref=ne(t,n),r.return=e,r):(r=a(t,r),r.ref=ne(t,n),r.pendingProps=n.props,r.return=e,r)}function f(e,t,n,r){return null===t||t.tag!==fi?(n=ri(n,e.internalContextTag,r),n.return=e,n):(t=a(t,r),t.pendingProps=n,t.return=e,t)}function p(e,t,n,r){return null===t||t.tag!==pi?(t=ii(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=a(t,r),t.type=n.value,t.return=e,t)}function d(e,t,n,r){return null===t||t.tag!==ci||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(n=oi(n,e.internalContextTag,r),n.return=e,n):(t=a(t,r),t.pendingProps=n.children||[],t.return=e,t)}function h(e,t,n,r){return null===t||t.tag!==di?(n=ti(n,e.internalContextTag,r),n.return=e,n):(t=a(t,r),t.pendingProps=n,t.return=e,t)}function m(e,t,n){if("string"==typeof t||"number"==typeof t)return t=ni(""+t,e.internalContextTag,n),t.return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case yi:return n=ei(t,e.internalContextTag,n),n.ref=ne(null,t),n.return=e,n;case $r:return t=ri(t,e.internalContextTag,n),t.return=e,t;case Jr:return n=ii(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case Xr:return t=oi(t,e.internalContextTag,n),t.return=e,t}if(ai(t)||te(t))return t=ti(t,e.internalContextTag,n),t.return=e,t;re(e,t)}return null}function v(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case yi:return n.key===i?c(e,t,n,r):null;case $r:return n.key===i?f(e,t,n,r):null;case Jr:return null===i?p(e,t,n,r):null;case Xr:return n.key===i?d(e,t,n,r):null}if(ai(n)||te(n))return null!==i?null:h(e,t,n,r);re(e,n)}return null}function g(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return e=e.get(n)||null,l(t,e,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case yi:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,i);case $r:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,i);case Jr:return e=e.get(n)||null,p(t,e,r,i);case Xr:return e=e.get(null===r.key?n:r.key)||null,d(t,e,r,i)}if(ai(r)||te(r))return e=e.get(n)||null,h(t,e,r,i);re(t,r)}return null}function y(e,r,a,s){for(var l=null,c=null,f=r,p=r=0,d=null;null!==f&&a.length>p;p++){f.index>p?(d=f,f=null):d=f.sibling;var h=v(e,f,a[p],s);if(null===h){null===f&&(f=d);break}t&&f&&null===h.alternate&&n(e,f),r=u(h,r,p),null===c?l=h:c.sibling=h,c=h,f=d}if(p===a.length)return i(e,f),l;if(null===f){for(;a.length>p;p++)(f=m(e,a[p],s))&&(r=u(f,r,p),null===c?l=f:c.sibling=f,c=f);return l}for(f=o(e,f);a.length>p;p++)(d=g(f,e,p,a[p],s))&&(t&&null!==d.alternate&&f.delete(null===d.key?p:d.key),r=u(d,r,p),null===c?l=d:c.sibling=d,c=d);return t&&f.forEach(function(t){return n(e,t)}),l}function b(e,a,s,l){var c=te(s);"function"!=typeof c&&r("150"),null==(s=c.call(s))&&r("151");for(var f=c=null,p=a,d=a=0,h=null,y=s.next();null!==p&&!y.done;d++,y=s.next()){p.index>d?(h=p,p=null):h=p.sibling;var b=v(e,p,y.value,l);if(null===b){p||(p=h);break}t&&p&&null===b.alternate&&n(e,p),a=u(b,a,d),null===f?c=b:f.sibling=b,f=b,p=h}if(y.done)return i(e,p),c;if(null===p){for(;!y.done;d++,y=s.next())null!==(y=m(e,y.value,l))&&(a=u(y,a,d),null===f?c=y:f.sibling=y,f=y);return c}for(p=o(e,p);!y.done;d++,y=s.next())null!==(y=g(p,e,d,y.value,l))&&(t&&null!==y.alternate&&p.delete(null===y.key?d:y.key),a=u(y,a,d),null===f?c=y:f.sibling=y,f=y);return t&&p.forEach(function(t){return n(e,t)}),c}return function(e,t,o,u){var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case yi:e:{var c=o.key;for(l=t;null!==l;){if(l.key===c){if(l.type===o.type){i(e,l.sibling),t=a(l,u),t.ref=ne(l,o),t.pendingProps=o.props,t.return=e,e=t;break e}i(e,l);break}n(e,l),l=l.sibling}u=ei(o,e.internalContextTag,u),u.ref=ne(t,o),u.return=e,e=u}return s(e);case $r:e:{for(l=o.key;null!==t;){if(t.key===l){if(t.tag===fi){i(e,t.sibling),t=a(t,u),t.pendingProps=o,t.return=e,e=t;break e}i(e,t);break}n(e,t),t=t.sibling}o=ri(o,e.internalContextTag,u),o.return=e,e=o}return s(e);case Jr:e:{if(null!==t){if(t.tag===pi){i(e,t.sibling),t=a(t,u),t.type=o.value,t.return=e,e=t;break e}i(e,t)}t=ii(o,e.internalContextTag,u),t.type=o.value,t.return=e,e=t}return s(e);case Xr:e:{for(l=o.key;null!==t;){if(t.key===l){if(t.tag===ci&&t.stateNode.containerInfo===o.containerInfo&&t.stateNode.implementation===o.implementation){i(e,t.sibling),t=a(t,u),t.pendingProps=o.children||[],t.return=e,e=t;break e}i(e,t);break}n(e,t),t=t.sibling}o=oi(o,e.internalContextTag,u),o.return=e,e=o}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==t&&t.tag===li?(i(e,t.sibling),t=a(t,u),t.pendingProps=o,t.return=e,e=t):(i(e,t),o=ni(o,e.internalContextTag,u),o.return=e,e=o),s(e);if(ai(o))return y(e,t,o,u);if(te(o))return b(e,t,o,u);if(l&&re(e,o),void 0===o)switch(e.tag){case si:case ui:o=e.type,r("152",o.displayName||o.name||"Component")}return i(e,t)}}function oe(e,t,n,i){function o(e,t){t.updater=a,e.stateNode=t,Kt.set(t,e)}var a={isMounted:Pi,enqueueSetState:function(n,r,i){n=Kt.get(n);var o=t(n,!1);Li(n,r,void 0===i?null:i,o),e(n,o)},enqueueReplaceState:function(n,r,i){n=Kt.get(n);var o=t(n,!1);xi(n,r,void 0===i?null:i,o),e(n,o)},enqueueForceUpdate:function(n,r){n=Kt.get(n);var i=t(n,!1);Di(n,void 0===r?null:r,i),e(n,i)}};return{adoptClassInstance:o,constructClassInstance:function(e,t){var n=e.type,r=wi(e),i=Oi(e),a=i?Si(e,r):bt;return t=new n(t,a),o(e,t),i&&Ni(e,r,a),t},mountClassInstance:function(e,t){var n=e.alternate,i=e.stateNode,o=i.state||null,u=e.pendingProps;u||r("158");var s=wi(e);i.props=u,i.state=o,i.refs=bt,i.context=Si(e,s),gr.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=Ci),"function"==typeof i.componentWillMount&&(s=i.state,i.componentWillMount(),s!==i.state&&a.enqueueReplaceState(i,i.state,null),null!==(s=e.updateQueue)&&(i.state=Ii(n,e,s,i,o,u,t))),"function"==typeof i.componentDidMount&&(e.effectTag|=ki)},updateClassInstance:function(e,t,o){var u=t.stateNode;u.props=t.memoizedProps,u.state=t.memoizedState;var s=t.memoizedProps,l=t.pendingProps;l||null==(l=s)&&r("159");var c=u.context,f=wi(t);if(f=Si(t,f),"function"!=typeof u.componentWillReceiveProps||s===l&&c===f||(c=u.state,u.componentWillReceiveProps(l,f),u.state!==c&&a.enqueueReplaceState(u,u.state,null)),c=t.memoizedState,o=null!==t.updateQueue?Ii(e,t,t.updateQueue,u,c,l,o):c,!(s!==l||c!==o||Ai()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof u.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=ki),!1;var p=l;if(null===s||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)p=!0;else{var d=t.stateNode,h=t.type;p="function"==typeof d.shouldComponentUpdate?d.shouldComponentUpdate(p,o,f):!h.prototype||!h.prototype.isPureReactComponent||(!Tt(s,p)||!Tt(c,o))}return p?("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(l,o,f),"function"==typeof u.componentDidUpdate&&(t.effectTag|=ki)):("function"!=typeof u.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=ki),n(t,l),i(t,o)),u.props=l,u.state=o,u.context=f,p}}}function ae(e,t,n,i,o){function a(e,t,n){u(e,t,n,t.pendingWorkPriority)}function u(e,t,n,r){t.child=null===e?Fi(t,t.child,n,r):e.child===t.child?Mi(t,t.child,n,r):Ri(t,t.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=lo)}function l(e,t,n,r){if(s(e,t),!n)return r&&Ki(t,!1),f(e,t);n=t.stateNode,co.current=t;var i=n.render();return t.effectTag|=oo,a(e,t,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&Ki(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?qi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qi(e,t.context,!1),g(e,t.containerInfo)}function f(e,t){return ji(e,t),t.child}function p(e,t){switch(t.tag){case Yi:c(t);break;case Wi:Qi(t);break;case Xi:g(t,t.stateNode.containerInfo)}return null}var d=e.shouldSetTextContent,h=e.useSyncScheduling,m=e.shouldDeprioritizeSubtree,v=t.pushHostContext,g=t.pushHostContainer,y=n.enterHydrationState,b=n.resetHydrationState,T=n.tryToClaimNextHydratableInstance;e=oe(i,o,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var E=e.adoptClassInstance,_=e.constructClassInstance,k=e.mountClassInstance,C=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===ro||t.pendingWorkPriority>n)return p(e,t);switch(t.tag){case Hi:null!==e&&r("155");var i=t.type,o=t.pendingProps,u=Gi(t);return u=Ui(t,u),i=i(o,u),t.effectTag|=oo,"object"==typeof i&&null!==i&&"function"==typeof i.render?(t.tag=Wi,o=Qi(t),E(t,i),k(t,n),t=l(e,t,!0,o)):(t.tag=zi,a(e,t,i),t.memoizedProps=o,t=t.child),t;case zi:e:{if(o=t.type,n=t.pendingProps,i=t.memoizedProps,Bi())null===n&&(n=i);else if(null===n||i===n){t=f(e,t);break e}i=Gi(t),i=Ui(t,i),o=o(n,i),t.effectTag|=oo,a(e,t,o),t.memoizedProps=n,t=t.child}return t;case Wi:return o=Qi(t),i=void 0,null===e?t.stateNode?r("153"):(_(t,t.pendingProps),k(t,n),i=!0):i=C(e,t,n),l(e,t,i,o);case Yi:return c(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=Vi(e,t,i,null,o,null,n),o===i?(b(),t=f(e,t)):(o=i.element,null!==e&&null!==e.child||!y(t)?(b(),a(e,t,o)):(t.effectTag|=ao,t.child=Fi(t,t.child,o,n)),t.memoizedState=i,t=t.child)):(b(),t=f(e,t)),t;case $i:v(t),null===e&&T(t),o=t.type;var N=t.memoizedProps;return i=t.pendingProps,null===i&&null===(i=N)&&r("154"),u=null!==e?e.memoizedProps:null,Bi()||null!==i&&N!==i?(N=i.children,d(o,i)?N=null:u&&d(o,u)&&(t.effectTag|=uo),s(e,t),n!==io&&!h&&m(o,i)?(t.pendingWorkPriority=io,t=null):(a(e,t,N),t.memoizedProps=i,t=t.child)):t=f(e,t),t;case Ji:return null===e&&T(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case eo:t.tag=Zi;case Zi:return n=t.pendingProps,Bi()?null===n&&null===(n=e&&e.memoizedProps)&&r("154"):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),o=n.children,i=t.pendingWorkPriority,t.stateNode=null===e?Fi(t,t.stateNode,o,i):e.child===t.child?Mi(t,t.stateNode,o,i):Ri(t,t.stateNode,o,i),t.memoizedProps=n,t.stateNode;case to:return null;case Xi:e:{if(g(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,o=t.pendingProps,Bi())null===o&&null==(o=e&&e.memoizedProps)&&r("154");else if(null===o||t.memoizedProps===o){t=f(e,t);break e}null===e?t.child=Ri(t,t.child,o,n):a(e,t,o),t.memoizedProps=o,t=t.child}return t;case no:e:{if(n=t.pendingProps,Bi())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=f(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 Wi:Qi(t);break;case Yi:c(t);break;default:r("157")}return t.effectTag|=so,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===ro||t.pendingWorkPriority>n?p(e,t):(t.firstEffect=null,t.lastEffect=null,u(e,t,null,n),t.tag===Wi&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function ue(e,t,n){var i=e.createInstance,o=e.createTextInstance,a=e.appendInitialChild,u=e.finalizeInitialChildren,s=e.prepareUpdate,l=t.getRootHostContainer,c=t.popHostContext,f=t.getHostContext,p=t.popHostContainer,d=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,m=n.popHydrationState;return{completeWork:function(e,t,n){var v=t.pendingProps;switch(null===v?v=t.memoizedProps:t.pendingWorkPriority===Lo&&n!==Lo||(t.pendingProps=null),t.tag){case vo:return null;case go:return po(t),null;case yo:return p(t),ho(t),v=t.stateNode,v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),null!==e&&null!==e.child||(m(t),t.effectTag&=~So),null;case bo:c(t),n=l();var g=t.type;if(null!==e&&null!=t.stateNode){var y=e.memoizedProps,b=t.stateNode,T=f();v=s(b,g,y,v,n,T),(t.updateQueue=v)&&(t.effectTag|=Oo),e.ref!==t.ref&&(t.effectTag|=wo)}else{if(!v)return null===t.stateNode&&r("166"),null;if(e=f(),m(t))d(t,n,e)&&(t.effectTag|=Oo);else{e=i(g,v,n,e,t);e:for(y=t.child;null!==y;){if(y.tag===bo||y.tag===To)a(e,y.stateNode);else if(y.tag!==Eo&&null!==y.child){y=y.child;continue}if(y===t)break e;for(;null===y.sibling;){if(null===y.return||y.return===t)break e;y=y.return}y=y.sibling}u(e,g,v,n)&&(t.effectTag|=Oo),t.stateNode=e}null!==t.ref&&(t.effectTag|=wo)}return null;case To:if(e&&null!=t.stateNode)e.memoizedProps!==v&&(t.effectTag|=Oo);else{if("string"!=typeof v)return null===t.stateNode&&r("166"),null;e=l(),n=f(),m(t)?h(t)&&(t.effectTag|=Oo):t.stateNode=o(v,e,n,t)}return null;case _o:(v=t.memoizedProps)||r("165"),t.tag=ko,n=[];e:for((g=t.stateNode)&&(g.return=t);null!==g;){if(g.tag===bo||g.tag===To||g.tag===Eo)r("164");else if(g.tag===Co)n.push(g.type);else if(null!==g.child){g.child.return=g,g=g.child;continue}for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}return g=v.handler,v=g(v.props,n),t.child=fo(t,null!==e?e.child:null,v,t.pendingWorkPriority);case ko:return t.tag=_o,null;case Co:case No:return null;case Eo:return t.effectTag|=Oo,p(t),null;case mo:r("167");default:r("156")}}}}function se(e){return function(t){try{return e(t)}catch(e){}}}function le(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function i(e){return e.tag===Fo||e.tag===Po||e.tag===Ro}function o(e){for(var t=e;;)if(u(t),null!==t.child&&t.tag!==Ro)t.child.return=t,t=t.child;else{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}}function a(e){for(var t=e,n=!1,i=void 0,a=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case Fo:i=n.stateNode,a=!1;break e;case Po:case Ro:i=n.stateNode.containerInfo,a=!0;break e}n=n.return}n=!0}if(t.tag===Fo||t.tag===Mo)o(t),a?g(i,t.stateNode):v(i,t.stateNode);else if(t.tag===Ro?i=t.stateNode.containerInfo:u(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,t.tag===Ro&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function u(e){switch("function"==typeof Uo&&Uo(e),e.tag){case Ao: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 Fo:n(e);break;case jo:o(e.stateNode);break;case Ro:a(e)}}var s=e.commitMount,l=e.commitUpdate,c=e.resetTextContent,f=e.commitTextUpdate,p=e.appendChild,d=e.appendChildToContainer,h=e.insertBefore,m=e.insertInContainerBefore,v=e.removeChild,g=e.removeChildFromContainer,y=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(i(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case Fo:t=n.stateNode,o=!1;break;case Po:case Ro:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}n.effectTag&qo&&(c(t),n.effectTag&=~qo);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||i(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==Fo&&n.tag!==Mo;){if(n.effectTag&Go)continue t;if(null===n.child||n.tag===Ro)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&Go)){n=n.stateNode;break e}}for(var a=e;;){if(a.tag===Fo||a.tag===Mo)n?o?m(t,a.stateNode,n):h(t,a.stateNode,n):o?d(t,a.stateNode):p(t,a.stateNode);else if(a.tag!==Ro&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(e){a(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 Ao:break;case Fo: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&&l(n,a,o,e,i,t)}break;case Mo:null===t.stateNode&&r("162"),n=t.memoizedProps,f(t.stateNode,null!==e?e.memoizedProps:n,n);break;case Po:case Ro:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case Ao:var n=t.stateNode;if(t.effectTag&Bo)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)}t.effectTag&Qo&&null!==t.updateQueue&&Vo(t,t.updateQueue,n);break;case Po:e=t.updateQueue,null!==e&&Vo(t,e,t.child&&t.child.stateNode);break;case Fo:n=t.stateNode,null===e&&t.effectTag&Bo&&s(n,t.type,t.memoizedProps,t);break;case Mo:case Ro:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case Fo:t(y(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function ce(e){function t(e){return e===Wo&&r("174"),e}var n=e.getChildHostContext,i=e.getRootHostContext,o=Ko(Wo),a=Ko(Wo),u=Ko(Wo);return{getHostContext:function(){return t(o.current)},getRootHostContainer:function(){return t(u.current)},popHostContainer:function(e){Ho(o,e),Ho(a,e),Ho(u,e)},popHostContext:function(e){a.current===e&&(Ho(o,e),Ho(a,e))},pushHostContainer:function(e,t){zo(u,t,e),t=i(t),zo(a,e,e),zo(o,t,e)},pushHostContext:function(e){var r=t(u.current),i=t(o.current);r=n(i,e.type,r),i!==r&&(zo(a,e,e),zo(o,r,e))},resetHostContainer:function(){o.current=Wo,u.current=Wo}}}function fe(e){function t(e,t){var n=ea();n.stateNode=t,n.return=e,n.effectTag=Xo,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case Yo:return a(t,e.type,e.pendingProps);case $o:return u(t,e.pendingProps);default:return!1}}function i(e){for(e=e.return;null!==e&&e.tag!==Yo&&e.tag!==Jo;)e=e.return;h=e}var o=e.shouldSetTextContent,a=e.canHydrateInstance,u=e.canHydrateTextInstance,s=e.getNextHydratableSibling,l=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,p=e.didNotHydrateInstance,d=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(a&&u&&s&&l&&c&&f&&p&&d&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var h=null,m=null,v=!1;return{enterHydrationState:function(e){return m=l(e.stateNode.containerInfo),h=e,v=!0},resetHydrationState:function(){m=h=null,v=!1},tryToClaimNextHydratableInstance:function(e){if(v){var r=m;if(r){if(!n(e,r)){if(!(r=s(r))||!n(e,r))return e.effectTag|=Zo,v=!1,void(h=e);t(h,m)}e.stateNode=r,h=e,m=l(r)}else e.effectTag|=Zo,v=!1,h=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!==h)return!1;if(!v)return i(e),v=!0,!1;var n=e.type;if(e.tag!==Yo||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=m;n;)t(e,n),n=s(n);return i(e),m=h?s(e.stateNode):null,!0}}}function pe(e){function t(){for(;null!==H&&H.current.pendingWorkPriority===ua;){H.isScheduled=!1;var e=H.nextScheduledRoot;if(H.nextScheduledRoot=null,H===z)return z=H=null,Q=ua,null;H=e}e=H;for(var t=null,n=ua;null!==e;)e.current.pendingWorkPriority!==ua&&(n===ua||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(Q=n,na(),Oa(),_(),B=ia(t.current,n),t!==ie&&(re=0,ie=t)):(Q=ua,ie=B=null)}function n(n){ee=!0,K=null;var i=n.stateNode;if(i.current===n&&r("177"),Q!==sa&&Q!==la||re++,ra.current=null,n.effectTag>ha)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var o=n.firstEffect}else o=n;else o=n.firstEffect;for(F(),q=o;null!==q;){var a=!1,u=void 0;try{for(;null!==q;){var s=q.effectTag;if(s&ba&&e.resetTextContent(q.stateNode),s&_a){var l=q.alternate;null!==l&&I(l)}switch(s&~(Ta|Ea|ba|_a|ha)){case ma:w(q),q.effectTag&=~ma;break;case ga:w(q),q.effectTag&=~ma,L(q.alternate,q);break;case va:L(q.alternate,q);break;case ya:te=!0,O(q),te=!1}q=q.nextEffect}}catch(e){a=!0,u=e}a&&(null===q&&r("178"),f(q,u),null!==q&&(q=q.nextEffect))}for(M(),i.current=n,q=o;null!==q;){i=!1,o=void 0;try{for(;null!==q;){var c=q.effectTag;if(c&(va|Ta)&&x(q.alternate,q),c&_a&&D(q),c&Ea)switch(a=q,u=void 0,null!==Y&&(u=Y.get(a),Y.delete(a),null==u&&null!==a.alternate&&(a=a.alternate,u=Y.get(a),Y.delete(a))),null==u&&r("184"),a.tag){case Sa:a.stateNode.componentDidCatch(u.error,{componentStack:u.componentStack});break;case ka:null===X&&(X=u.error);break;default:r("157")}var p=q.nextEffect;q.nextEffect=null,q=p}}catch(e){i=!0,o=e}i&&(null===q&&r("178"),f(q,o),null!==q&&(q=q.nextEffect))}ee=!1,"function"==typeof aa&&aa(n.stateNode),J&&(J.forEach(g),J=null),t()}function i(e){for(;;){var t=S(e.alternate,e,Q),n=e.return,r=e.sibling,i=e;if(i.pendingWorkPriority===ua||Q>=i.pendingWorkPriority){for(var o=wa(i),a=i.child;null!==a;)o=oa(o,a.pendingWorkPriority),a=a.sibling;i.pendingWorkPriority=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),e.effectTag>ha&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){K=e;break}e=n}return null}function o(e){var t=C(e.alternate,e,Q);return null===t&&(t=i(e)),ra.current=null,t}function a(e){var t=N(e.alternate,e,Q);return null===t&&(t=i(e)),ra.current=null,t}function u(e){c(pa,e)}function s(){if(null!==Y&&Y.size>0&&Q===la)for(;null!==B;){var e=B;if(null===(B=null!==Y&&(Y.has(e)||null!==e.alternate&&Y.has(e.alternate))?a(B):o(B))&&(null===K&&r("179"),R=la,n(K),R=Q,null===Y||0===Y.size||Q!==la))break}}function l(e,i){if(null!==K?(R=la,n(K),s()):null===B&&t(),Q!==ua&&e>=Q){R=Q;e:for(;;){if(la1){if(null===(B=o(B)))if(null===K&&r("179"),i.timeRemaining()>1){if(R=la,n(K),R=Q,s(),Q===ua||Q>e||ca>Q)break}else V=!0}else V=!0}else for(;!(null===B||null===(B=o(B))&&(null===K&&r("179"),R=la,n(K),R=Q,s(),Q===ua||Q>e||Q>la)););switch(Q){case sa:case la:if(e>=Q)continue e;break e;case ca:case fa:case pa:if(null===i)break e;if(!V&&e>=Q)continue e;break e;case ua:break e;default:r("181")}}}}function c(e,t){j&&r("182"),j=!0;var n=R,i=!1,o=null;try{l(e,t)}catch(e){i=!0,o=e}for(;i;){if(Z){X=o;break}var s=B;if(null===s)Z=!0;else{var c=f(s,o);if(null===c&&r("183"),!Z){try{i=c,o=e,c=t;for(var p=i;null!==s;){switch(s.tag){case Sa:ta(s);break;case Ca:E(s);break;case ka:T(s);break;case Na:T(s)}if(s===p||s.alternate===p)break;s=s.return}B=a(i),l(o,c)}catch(e){i=!0,o=e;continue}break}}}if(R=n,null!==t&&(W=!1),Q>la&&!W&&(A(u),W=!0),e=X,Z=V=j=!1,ie=$=Y=X=null,re=0,null!==e)throw e}function f(e,t){var n=ra.current=null,r=!1,i=!1,o=null;if(e.tag===ka)n=e,d(e)&&(Z=!0);else for(var a=e.return;null!==a&&null===n;){if(a.tag===Sa?"function"==typeof a.stateNode.componentDidCatch&&(r=!0,o=p(a),n=a,i=!0):a.tag===ka&&(n=a),d(a)){if(te||null!==J&&(J.has(a)||null!==a.alternate&&J.has(a.alternate)))return null;n=null,i=!1}a=a.return}if(null!==n){null===$&&($=new Set),$.add(n);var u="";a=e;do{e:switch(a.tag){case Qr:case qr:case Kr:case Hr:var s=a._debugOwner,l=a._debugSource,c=p(a),f=null;s&&(f=p(s)),s=l,c="\n in "+(c||"Unknown")+(s?" (at "+s.fileName.replace(/^.*[\\\/]/,"")+":"+s.lineNumber+")":f?" (created by "+f+")":"");break e;default:c=""}u+=c,a=a.return}while(a);return a=u,e=p(e),null===Y&&(Y=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:o,willRetry:i},Y.set(n,t),ee?(null===J&&(J=new Set),J.add(n)):g(n),n}return null===X&&(X=t),null}function d(e){return null!==$&&($.has(e)||null!==e.alternate&&$.has(e.alternate))}function h(e,t){return m(e,t,!1)}function m(e,t){re>ne&&(Z=!0,r("185")),!j&&Q>=t&&(B=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===ua||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===ua||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==ka)break;var i=e.stateNode;if(t===ua||i.isScheduled||(i.isScheduled=!0,z?z.nextScheduledRoot=i:H=i,z=i),!j)switch(t){case sa:G?c(sa,null):c(la,null);break;case la:U||r("186");break;default:W||(A(u),W=!0)}}e=e.return}}function v(e,t){var n=R;return n===ua&&(n=!P||e.internalContextTag&da||t?fa:sa),n===sa&&(j||U)?la:n}function g(e){m(e,la,!0)}var y=ce(e),b=fe(e),T=y.popHostContainer,E=y.popHostContext,_=y.resetHostContainer,k=ae(e,y,b,h,v),C=k.beginWork,N=k.beginFailedWork,S=ue(e,y,b).completeWork;y=le(e,f);var w=y.commitPlacement,O=y.commitDeletion,L=y.commitWork,x=y.commitLifeCycles,D=y.commitAttachRef,I=y.commitDetachRef,A=e.scheduleDeferredCallback,P=e.useSyncScheduling,F=e.prepareForCommit,M=e.resetAfterCommit,R=ua,j=!1,V=!1,U=!1,G=!1,B=null,Q=ua,q=null,K=null,H=null,z=null,W=!1,Y=null,$=null,J=null,X=null,Z=!1,ee=!1,te=!1,ne=1e3,re=0,ie=null;return{scheduleUpdate:h,getPriorityContext:v,batchedUpdates:function(e,t){var n=U;U=!0;try{return e(t)}finally{U=n,j||U||c(la,null)}},unbatchedUpdates:function(e){var t=G,n=U;G=U,U=!1;try{return e()}finally{U=n,G=t}},flushSync:function(e){var t=U,n=R;U=!0,R=sa;try{return e()}finally{U=t,R=n,j&&r("187"),c(la,null)}},deferredUpdates:function(e){var t=R;R=fa;try{return e()}finally{R=t}}}}function de(){r("196")}function he(e){return e?(e=Kt.get(e),"number"==typeof e.tag?de(e):e._processChildContext(e._context)):bt}function me(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ve(e,t){var n=me(e);e=0;for(var r;n;){if(n.nodeType===Fa){if(r=e+n.textContent.length,t>=e&&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=me(n)}}function ge(){return!Ma&&mt.canUseDOM&&(Ma="textContent"in document.documentElement?"textContent":"innerText"),Ma}function ye(){r("211")}function be(){r("212")}function Te(e){if(null==e)return null;if(e.nodeType===Ua)return e;var t=Kt.get(e);if(t)return"number"==typeof t.tag?ye(t):be(t);"function"==typeof e.render?r("188"):r("213",Object.keys(e))}function Ee(e){if(void 0!==e._hostParent)return e._hostParent;if("number"==typeof e.tag){do{e=e.return}while(e&&e.tag!==Ga);if(e)return e}return null}function _e(e,t){for(var n=0,r=e;r;r=Ee(r))n++;r=0;for(var i=t;i;i=Ee(i))r++;for(;n-r>0;)e=Ee(e),n--;for(;r-n>0;)t=Ee(t),r--;for(;n--;){if(e===t||e===t.alternate)return e;e=Ee(e),t=Ee(t)}return null}function ke(e,t,n){(t=Qa(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function Ce(e){e&&e.dispatchConfig.phasedRegistrationNames&&Ba.traverseTwoPhase(e._targetInst,ke,e)}function Ne(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?Ba.getParentInstance(t):null,Ba.traverseTwoPhase(t,ke,e)}}function Se(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Qa(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function we(e){e&&e.dispatchConfig.registrationName&&Se(e._targetInst,null,e)}function Oe(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?yt.thatReturnsTrue:yt.thatReturnsFalse,this.isPropagationStopped=yt.thatReturnsFalse,this}function Le(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function xe(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function De(e){e.eventPool=[],e.getPooled=Le,e.release=xe}function Ie(e,t,n,r){return Oe.call(this,e,t,n,r)}function Ae(e,t,n,r){return Oe.call(this,e,t,n,r)}function Pe(e,t){switch(e){case"topKeyUp":return-1!==$a.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Fe(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function Me(e,t){switch(e){case"topCompositionEnd":return Fe(t);case"topKeyPress":return 32!==t.which?null:(ou=!0,ru);case"topTextInput":return e=t.data,e===ru&&ou?null:e;default:return null}}function Re(e,t){if(au)return"topCompositionEnd"===e||!Ja&&Pe(e,t)?(e=za.getData(),za.reset(),au=!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&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return nu?null:t.data;default:return null}}function je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!su[e.type]:"textarea"===t}function Ve(e,t,n){return e=Oe.getPooled(lu.change,e,t,n),e.type="change",on.enqueueStateRestore(n),qa.accumulateTwoPhaseDispatches(e),e}function Ue(e){hn.enqueueEvents(e),hn.processEventQueue(!1)}function Ge(e){var t=qt.getNodeFromInstance(e);if(Qn.updateValueIfChanged(t))return e}function Be(e,t){if("topChange"===e)return t}function Qe(){cu&&(cu.detachEvent("onpropertychange",qe),fu=cu=null)}function qe(e){"value"===e.propertyName&&Ge(fu)&&(e=Ve(fu,e,k(e)),un.batchedUpdates(Ue,e))}function Ke(e,t,n){"topFocus"===e?(Qe(),cu=t,fu=n,cu.attachEvent("onpropertychange",qe)):"topBlur"===e&&Qe()}function He(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return Ge(fu)}function ze(e,t){if("topClick"===e)return Ge(t)}function We(e,t){if("topInput"===e||"topChange"===e)return Ge(t)}function Ye(e,t,n,r){return Oe.call(this,e,t,n,r)}function $e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hu[e])&&!!t[e]}function Je(){return $e}function Xe(e,t,n,r){return Oe.call(this,e,t,n,r)}function Ze(e,t){if(_u||null==bu||bu!==kt())return null;var n=bu;return"selectionStart"in n&&Va.hasSelectionCapabilities(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,Eu&&Tt(Eu,n)?null:(Eu=n,e=Oe.getPooled(yu.select,Tu,e,t),e.type="select",e.target=bu,qa.accumulateTwoPhaseDispatches(e),e)}function et(e,t,n,r){return Oe.call(this,e,t,n,r)}function tt(e,t,n,r){return Oe.call(this,e,t,n,r)}function nt(e,t,n,r){return Oe.call(this,e,t,n,r)}function rt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32>e&&13!==e?0:e}function it(e,t,n,r){return Oe.call(this,e,t,n,r)}function ot(e,t,n,r){return Oe.call(this,e,t,n,r)}function at(e,t,n,r){return Oe.call(this,e,t,n,r)}function ut(e,t,n,r){return Oe.call(this,e,t,n,r)}function st(e,t,n,r){return Oe.call(this,e,t,n,r)}function lt(e){return e[1].toUpperCase()}function ct(e){return!(!e||e.nodeType!==Gu&&e.nodeType!==Qu&&e.nodeType!==qu&&(e.nodeType!==Bu||" react-mount-point-unstable "!==e.nodeValue))}function ft(e){return!(!(e=e?e.nodeType===Qu?e.documentElement:e.firstChild:null)||e.nodeType!==Gu||!e.hasAttribute(Ku))}function pt(e,t,n,i,o){ct(n)||r("200");var a=n._reactRootContainer;if(a)ss.updateContainer(t,a,e,o);else{if(!i&&!ft(n))for(i=void 0;i=n.lastChild;)n.removeChild(i);var u=ss.createContainer(n);a=n._reactRootContainer=u,ss.unbatchedUpdates(function(){ss.updateContainer(t,u,e,o)})}return ss.getPublicRootInstance(a)}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return ct(t)||r("200"),Yr.createPortal(e,t,null,n)}var ht=n(5);n(47);var mt=n(137),vt=n(46),gt=n(138),yt=n(36),bt=n(74),Tt=n(139),Et=n(140),_t=n(143),kt=n(144);ht||r("227");var Ct,Nt,St={Namespaces:{html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},getIntrinsicNamespace:i,getChildNamespace:function(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?i(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}},wt=null,Ot={},Lt={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){wt&&r("101"),wt=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];Ot.hasOwnProperty(t)&&Ot[t]===i||(Ot[t]&&r("102",t),Ot[t]=i,n=!0)}n&&o()}},xt=Lt,Dt={children:!0,dangerouslySetInnerHTML:!0,autoFocus:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,style:!0},It={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=It,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},o=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var a in n){At.properties.hasOwnProperty(a)&&r("48",a);var s=a.toLowerCase(),l=n[a];s={attributeName:s,attributeNamespace:null,propertyName:a,mutationMethod:null,mustUseProperty:u(l,t.MUST_USE_PROPERTY),hasBooleanValue:u(l,t.HAS_BOOLEAN_VALUE),hasNumericValue:u(l,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:u(l,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:u(l,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:u(l,t.HAS_STRING_BOOLEAN_VALUE)},s.hasBooleanValue+s.hasNumericValue+s.hasOverloadedBooleanValue>1&&r("50",a),o.hasOwnProperty(a)&&(s.attributeName=o[a]),i.hasOwnProperty(a)&&(s.attributeNamespace=i[a]),e.hasOwnProperty(a)&&(s.mutationMethod=e[a]),At.properties[a]=s}}},At={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(At.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return At.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return At.properties.hasOwnProperty(e)?At.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(At.isReservedProp(e))return!0;var t=At.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:"data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e},isReservedProp:function(e){return Dt.hasOwnProperty(e)},injection:It},Pt=At,Ft=5,Mt=6,Rt=1,jt=8,Vt=Pt.ID_ATTRIBUTE_NAME,Ut={hasCachedChildNodes:1},Gt=Math.random().toString(36).slice(2),Bt="__reactInternalInstance$"+Gt,Qt="__reactEventHandlers$"+Gt,qt={getClosestInstanceFromNode:f,getInstanceFromNode:function(e){var t=e[Bt];return t?t.tag===Ft||t.tag===Mt?t:t._hostNode===e?t:null:(t=f(e),null!=t&&t._hostNode===e?t:null)},getNodeFromInstance:function(e){if(e.tag===Ft||e.tag===Mt)return e.stateNode;if(void 0===e._hostNode&&r("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||r("34"),e=e._hostParent;for(;t.length;e=t.pop())c(e,e._hostNode);return e._hostNode},precacheChildNodes:c,precacheNode:l,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Bt],e._hostNode=null)},precacheFiberNode:function(e,t){t[Bt]=e},getFiberCurrentPropsFromNode:function(e){return e[Qt]||null},updateFiberProps:function(e,t){e[Qt]=t}},Kt={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},Ht={ReactCurrentOwner:ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},zt=3,Wt=0,Yt=2,$t={isFiberMounted:function(e){return 2===d(e)},isMounted:function(e){return!!(e=Kt.get(e))&&2===d(e)},findCurrentFiberUsingSlowPath:m,findCurrentHostFiber:function(e){if(!(e=m(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){if(!(e=m(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}},Jt={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&r("197"),v=e.invokeGuardedCallback}},invokeGuardedCallback:function(){v.apply(Jt,arguments)},invokeGuardedCallbackAndCatchFirstError:function(){if(Jt.invokeGuardedCallback.apply(this,arguments),Jt.hasCaughtError()){var e=Jt.clearCaughtError();Jt._hasRethrowError||(Jt._hasRethrowError=!0,Jt._rethrowError=e)}},rethrowCaughtError:function(){return g.apply(Jt,arguments)},hasCaughtError:function(){return Jt._hasCaughtError},clearCaughtError:function(){if(Jt._hasCaughtError){var e=Jt._caughtError;return Jt._caughtError=null,Jt._hasCaughtError=!1,e}r("198")}},Xt=Jt,Zt={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)&&r("103"),e.currentTarget=t?Zt.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;n.length>i&&!e.isPropagationStopped();i++)y(e,t,n[i],r[i]);else n&&y(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(e){e:{var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;t.length>r&&!e.isPropagationStopped();r++)if(t[r](e,n[r])){t=n[r];break e}}else if(t&&t(e,n)){t=n;break e}t=null}return e._dispatchInstances=null,e._dispatchListeners=null,t},hasDispatches:function(e){return!!e._dispatchListeners},getFiberCurrentPropsFromNode:function(e){return Ct.getFiberCurrentPropsFromNode(e)},getInstanceFromNode:function(e){return Ct.getInstanceFromNode(e)},getNodeFromInstance:function(e){return Ct.getNodeFromInstance(e)},injection:{injectComponentTree:function(e){Ct=e}}},en=Zt,tn=null,nn=null,rn=null,on={injection:{injectFiberControlledHostComponent:function(e){tn=e}},enqueueStateRestore:function(e){nn?rn?rn.push(e):rn=[e]:nn=e},restoreStateIfNeeded:function(){if(nn){var e=nn,t=rn;if(rn=nn=null,b(e),t)for(e=0;t.length>e;e++)b(t[e])}}},an=!1,un={batchedUpdates:function(e,t){if(an)return T(_,e,t);an=!0;try{return T(_,e,t)}finally{an=!1,on.restoreStateIfNeeded()}},injection:{injectStackBatchedUpdates:function(e){T=e},injectFiberBatchedUpdates:function(e){E=e}}},sn=3,ln=3,cn=[],fn={_enabled:!0,_handleTopLevel:null,setHandleTopLevel:function(e){fn._handleTopLevel=e},setEnabled:function(e){fn._enabled=!!e},isEnabled:function(){return fn._enabled},trapBubbledEvent:function(e,t,n){return n?gt.listen(n,t,fn.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?gt.capture(n,t,fn.dispatchEvent.bind(null,e)):null},dispatchEvent:function(e,t){if(fn._enabled){var n=k(t);if(n=qt.getClosestInstanceFromNode(n),null===n||"number"!=typeof n.tag||$t.isFiberMounted(n)||(n=null),cn.length){var r=cn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{un.batchedUpdates(C,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>cn.length&&cn.push(e)}}}},pn=fn,dn=null,hn={injection:{injectEventPluginOrder:xt.injectEventPluginOrder,injectEventPluginsByName:xt.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var i=en.getFiberCurrentPropsFromNode(n);if(!i)return null;if(n=i[t],x(t,e.type,i))return null}else{if("string"==typeof(i=e._currentElement)||"number"==typeof i||!e._rootNodeID)return null;if(e=i.props,n=e[t],x(t,i.type,e))return null}return n&&"function"!=typeof n&&r("231",t,typeof n),n},extractEvents:function(e,t,n,r){for(var i,o=xt.plugins,a=0;o.length>a;a++){var u=o[a];u&&(u=u.extractEvents(e,t,n,r))&&(i=N(i,u))}return i},enqueueEvents:function(e){e&&(dn=N(dn,e))},processEventQueue:function(e){var t=dn;dn=null,e?S(t,O):S(t,L),dn&&r("95"),Xt.rethrowCaughtError()}};mt.canUseDOM&&(Nt=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var mn={animationend:I("Animation","AnimationEnd"),animationiteration:I("Animation","AnimationIteration"),animationstart:I("Animation","AnimationStart"),transitionend:I("Transition","TransitionEnd")},vn={},gn={};mt.canUseDOM&&(gn=document.createElement("div").style,"AnimationEvent"in window||(delete mn.animationend.animation,delete mn.animationiteration.animation,delete mn.animationstart.animation),"TransitionEvent"in window||delete mn.transitionend.transition);var yn={topAbort:"abort",topAnimationEnd:A("animationend")||"animationend",topAnimationIteration:A("animationiteration")||"animationiteration",topAnimationStart:A("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:A("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},bn={},Tn=0,En="_reactListenersID"+(""+Math.random()).slice(2),_n=vt({},{handleTopLevel:function(e,t,n,r){e=hn.extractEvents(e,t,n,r),hn.enqueueEvents(e),hn.processEventQueue(!1)}},{setEnabled:function(e){pn&&pn.setEnabled(e)},isEnabled:function(){return!(!pn||!pn.isEnabled())},listenTo:function(e,t){var n=P(t);e=xt.registrationNameDependencies[e];for(var r=0;e.length>r;r++){var i=e[r];n.hasOwnProperty(i)&&n[i]||("topWheel"===i?D("wheel")?pn.trapBubbledEvent("topWheel","wheel",t):D("mousewheel")?pn.trapBubbledEvent("topWheel","mousewheel",t):pn.trapBubbledEvent("topWheel","DOMMouseScroll",t):"topScroll"===i?pn.trapCapturedEvent("topScroll","scroll",t):"topFocus"===i||"topBlur"===i?(pn.trapCapturedEvent("topFocus","focus",t),pn.trapCapturedEvent("topBlur","blur",t),n.topBlur=!0,n.topFocus=!0):"topCancel"===i?(D("cancel",!0)&&pn.trapCapturedEvent("topCancel","cancel",t),n.topCancel=!0):"topClose"===i?(D("close",!0)&&pn.trapCapturedEvent("topClose","close",t),n.topClose=!0):yn.hasOwnProperty(i)&&pn.trapBubbledEvent(i,yn[i],t),n[i]=!0)}},isListeningToAllDependencies:function(e,t){t=P(t),e=xt.registrationNameDependencies[e];for(var n=0;e.length>n;n++){var r=e[n];if(!t.hasOwnProperty(r)||!t[r])return!1}return!0},trapBubbledEvent:function(e,t,n){return pn.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return pn.trapCapturedEvent(e,t,n)}}),kn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},Cn=["Webkit","ms","Moz","O"];Object.keys(kn).forEach(function(e){Cn.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kn[t]=kn[e]})});var Nn={isUnitlessNumber:kn,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}},Sn=Nn.isUnitlessNumber,wn=!1;if(mt.canUseDOM){var On=document.createElement("div").style;try{On.font=""}catch(e){wn=!0}}var Ln,xn={createDangerousStringForStyles:function(){},setValueForStyles:function(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];if(i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Sn.hasOwnProperty(i)&&Sn[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r)e.setProperty(n,i);else if(i)e[n]=i;else if(r=wn&&Nn.shorthandPropertyExpansions[n])for(var a in r)e[a]="";else e[n]=""}}},Dn=RegExp("^["+Pt.ATTRIBUTE_NAME_START_CHAR+"]["+Pt.ATTRIBUTE_NAME_CHAR+"]*$"),In={},An={},Pn={setAttributeForID:function(e,t){e.setAttribute(Pt.ID_ATTRIBUTE_NAME,t)},setAttributeForRoot:function(e){e.setAttribute(Pt.ROOT_ATTRIBUTE_NAME,"")},getValueForProperty:function(){},getValueForAttribute:function(){},setValueForProperty:function(e,t,n){var r=Pt.getPropertyInfo(t);if(r&&Pt.shouldSetAttribute(t,n)){var i=r.mutationMethod;i?i(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?Pn.deleteValueForProperty(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 Pn.setValueForAttribute(e,t,Pt.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){F(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=Pt.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Fn=Pn,Mn={getHostProps:function(e,t){var n=t.value,r=t.checked;return vt({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})},initWrapperState:function(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}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Fn.setValueForProperty(e,"checked",n||!1),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))},postMountWrapper:function(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)},restoreControlledState:function(e,t){Mn.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;n.length>t;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=qt.getFiberCurrentPropsFromNode(i);o||r("90"),Mn.updateWrapper(i,o)}}}}},Rn=Mn,jn={validateProps:function(){},postMountWrapper:function(e,t){null!=t.value&&e.setAttribute("value",t.value)},getHostProps:function(e,t){return e=vt({children:void 0},t),(t=M(t.children))&&(e.children=t),e}},Vn={getHostProps:function(e,t){return vt({},t,{value:void 0})},initWrapperState:function(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}},postMountWrapper:function(e,t){e.multiple=!!t.multiple;var n=t.value;null!=n?R(e,!!t.multiple,n):null!=t.defaultValue&&R(e,!!t.multiple,t.defaultValue)},postUpdateWrapper:function(e,t){e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!t.multiple;var r=t.value;null!=r?R(e,!!t.multiple,r):n!==!!t.multiple&&(null!=t.defaultValue?R(e,!!t.multiple,t.defaultValue):R(e,!!t.multiple,t.multiple?[]:""))},restoreControlledState:function(e,t){var n=t.value;null!=n&&R(e,!!t.multiple,n)}},Un={getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})},initWrapperState:function(e,t){var n=t.value,i=n;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(t.length>1&&r("93"),t=t[0]),n=""+t),null==n&&(n=""),i=n),e._wrapperState={initialValue:""+i}},updateWrapper:function(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)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Un.updateWrapper(e,t)}},Gn=Un,Bn=vt({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}),Qn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=U(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}},qn=St.Namespaces,Kn=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==qn.svg||"innerHTML"in e)e.innerHTML=t;else for(Ln=Ln||document.createElement("div"),Ln.innerHTML=""+t+"",t=Ln.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),Hn=/["'&<>]/,zn=3;mt.canUseDOM&&("textContent"in document.documentElement||(B=function(e,t){if(e.nodeType===zn)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=Hn.exec(t);if(n){var r,i="",o=0;for(r=n.index;t.length>r;r++){switch(t.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}o!==r&&(i+=t.substring(o,r)),o=r+1,i+=n}t=o!==r?i+t.substring(o,r):i}}Kn(e,t)}}));var Wn=B,Yn=9,$n=11,Jn=_n.listenTo,Xn=xt.registrationNameModules,Zn=St.Namespaces.html,er=St.getIntrinsicNamespace,tr={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"},nr={createElement:function(e,t,n,r){return n=n.nodeType===Yn?n:n.ownerDocument,r===Zn&&(r=er(e)),r===Zn?"script"===e?(e=n.createElement("div"),e.innerHTML="