-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgraphiql.js
More file actions
14 lines (14 loc) · 717 KB
/
graphiql.js
File metadata and controls
14 lines (14 loc) · 717 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
window.GraphiQL=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}([function(e,t,n){"use strict";var r=n(26),i=n(2),o=n(19),a=n(30),s=n(20),u=n(4),c=n(18),l=n(28),f=n(15);function p(e){return e}var d=n(25),h=n(24),m=n(1),v=n(93);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(n,!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){return T(e)||_(e)||x(e)||C(e)||D(e)||A(e)||I(e)||R(e)}function E(e){if(!O(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL type."));return e}function T(e){return Object(l.a)(e,ae)}function w(e){if(!T(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Scalar type."));return e}function _(e){return Object(l.a)(e,se)}function k(e){if(!_(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Object type."));return e}function x(e){return Object(l.a)(e,he)}function S(e){if(!x(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Interface type."));return e}function C(e){return Object(l.a)(e,me)}function N(e){if(!C(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Union type."));return e}function D(e){return Object(l.a)(e,ye)}function j(e){if(!D(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Enum type."));return e}function A(e){return Object(l.a)(e,ge)}function L(e){if(!A(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Input Object type."));return e}function I(e){return Object(l.a)(e,W)}function F(e){if(!I(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL List type."));return e}function R(e){return Object(l.a)(e,Y)}function M(e){if(!R(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL Non-Null type."));return e}function P(e){return T(e)||D(e)||A(e)||J(e)&&P(e.ofType)}function V(e){if(!P(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL input type."));return e}function U(e){return T(e)||_(e)||x(e)||C(e)||D(e)||J(e)&&U(e.ofType)}function B(e){if(!U(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL output type."));return e}function q(e){return T(e)||D(e)}function K(e){if(!q(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL leaf type."));return e}function H(e){return _(e)||x(e)||C(e)}function z(e){if(!H(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL composite type."));return e}function G(e){return x(e)||C(e)}function Q(e){if(!G(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL abstract type."));return e}function W(e){if(!(this instanceof W))return new W(e);this.ofType=E(e)}function Y(e){if(!(this instanceof Y))return new Y(e);this.ofType=Z(e)}function J(e){return I(e)||R(e)}function $(e){if(!J(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL wrapping type."));return e}function X(e){return O(e)&&!R(e)}function Z(e){if(!X(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL nullable type."));return e}function ee(e){if(e)return R(e)?e.ofType:e}function te(e){return T(e)||_(e)||x(e)||C(e)||D(e)||A(e)}function ne(e){if(!te(e))throw new Error("Expected ".concat(Object(i.a)(e)," to be a GraphQL named type."));return e}function re(e){if(e){for(var t=e;J(t);)t=t.ofType;return t}}function ie(e){return"function"==typeof e?e():e}function oe(e){return e&&e.length>0?e:void 0}n.d(t,"S",(function(){return O})),n.d(t,"x",(function(){return E})),n.d(t,"R",(function(){return T})),n.d(t,"w",(function(){return w})),n.d(t,"N",(function(){return _})),n.d(t,"u",(function(){return k})),n.d(t,"H",(function(){return x})),n.d(t,"o",(function(){return S})),n.d(t,"T",(function(){return C})),n.d(t,"y",(function(){return N})),n.d(t,"E",(function(){return D})),n.d(t,"l",(function(){return j})),n.d(t,"F",(function(){return A})),n.d(t,"m",(function(){return L})),n.d(t,"J",(function(){return I})),n.d(t,"q",(function(){return F})),n.d(t,"L",(function(){return R})),n.d(t,"s",(function(){return M})),n.d(t,"G",(function(){return P})),n.d(t,"n",(function(){return V})),n.d(t,"O",(function(){return U})),n.d(t,"v",(function(){return B})),n.d(t,"I",(function(){return q})),n.d(t,"p",(function(){return K})),n.d(t,"D",(function(){return H})),n.d(t,"k",(function(){return z})),n.d(t,"C",(function(){return G})),n.d(t,"j",(function(){return Q})),n.d(t,"d",(function(){return W})),n.d(t,"e",(function(){return Y})),n.d(t,"U",(function(){return J})),n.d(t,"z",(function(){return $})),n.d(t,"M",(function(){return X})),n.d(t,"t",(function(){return Z})),n.d(t,"B",(function(){return ee})),n.d(t,"K",(function(){return te})),n.d(t,"r",(function(){return ne})),n.d(t,"A",(function(){return re})),n.d(t,"g",(function(){return ae})),n.d(t,"f",(function(){return se})),n.d(t,"i",(function(){return pe})),n.d(t,"P",(function(){return de})),n.d(t,"c",(function(){return he})),n.d(t,"h",(function(){return me})),n.d(t,"a",(function(){return ye})),n.d(t,"b",(function(){return ge})),n.d(t,"Q",(function(){return Oe})),W.prototype.toString=function(){return"["+String(this.ofType)+"]"},Object(h.a)(W),Object(d.a)(W),Y.prototype.toString=function(){return String(this.ofType)+"!"},Object(h.a)(Y),Object(d.a)(Y);var ae=function(){function e(e){var t=e.parseValue||p;this.name=e.name,this.description=e.description,this.serialize=e.serialize||p,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t(Object(v.a)(e))},this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),"string"==typeof e.name||Object(u.a)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||Object(u.a)(0,"".concat(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.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||Object(u.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(h.a)(ae),Object(d.a)(ae);var se=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ce.bind(void 0,e),this._interfaces=ue.bind(void 0,e),"string"==typeof e.name||Object(u.a)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||Object(u.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(i.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ue(e){var t=ie(e.interfaces)||[];return Array.isArray(t)||Object(u.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function ce(e){var t=ie(e.fields)||{};return le(t)||Object(u.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(a.a)(t,(function(t,n){le(t)||Object(u.a)(0,"".concat(e.name,".").concat(n," field config must be an object")),!("isDeprecated"in t)||Object(u.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||Object(u.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(i.a)(t.resolve),"."));var o=t.args||{};le(o)||Object(u.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var a=Object(r.a)(o).map((function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(s.a)(n.extensions),astNode:n.astNode}}));return g({},t,{name:n,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode})}))}function le(e){return Object(f.a)(e)&&!Array.isArray(e)}function fe(e){return Object(a.a)(e,(function(e){return{description:e.description,type:e.type,args:pe(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function pe(e){return Object(c.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function de(e){return R(e.type)&&void 0===e.defaultValue}Object(h.a)(se),Object(d.a)(se);var he=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ce.bind(void 0,e),"string"==typeof e.name||Object(u.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(u.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(i.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:fe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(h.a)(he),Object(d.a)(he);var me=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._types=ve.bind(void 0,e),"string"==typeof e.name||Object(u.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(u.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(i.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ve(e){var t=ie(e.types)||[];return Array.isArray(t)||Object(u.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(h.a)(me),Object(d.a)(me);var ye=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._values=(t=this.name,le(n=e.values)||Object(u.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(r.a)(n).map((function(e){var n=e[0],r=e[1];return le(r)||Object(u.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(i.a)(r),".")),!("isDeprecated"in r)||Object(u.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:"value"in r?r.value:n,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,extensions:r.extensions&&Object(s.a)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=Object(o.a)(this._values,(function(e){return e.name})),"string"==typeof e.name||Object(u.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===m.Kind.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=Object(c.a)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(h.a)(ye),Object(d.a)(ye);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=be.bind(void 0,e),"string"==typeof e.name||Object(u.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=Object(a.a)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function be(e){var t=ie(e.fields)||{};return le(t)||Object(u.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(a.a)(t,(function(t,n){return!("resolve"in t)||Object(u.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),g({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode})}))}function Oe(e){return R(e.type)&&void 0===e.defaultValue}Object(h.a)(ge),Object(d.a)(ge)},function(e,t,n){"use strict";n.r(t),n.d(t,"Kind",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",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",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",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"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(37);function i(e){return(i="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})(e)}var o=10,a=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var s=i.call(e);if(s!==e)return"string"==typeof s?s:u(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(o,e.length),r=e.length-n,i=[],s=0;s<n;++s)i.push(u(e[s],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+u(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(15),i=n(38),o=n(61);function a(e,t,n,o,s,u,c){var l=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,f=n;if(!f&&l){var p=l[0];f=p&&p.loc&&p.loc.source}var d,h=o;!h&&l&&(h=l.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),h&&0===h.length&&(h=void 0),o&&n?d=o.map((function(e){return Object(i.a)(n,e)})):l&&(d=l.reduce((function(e,t){return t.loc&&e.push(Object(i.a)(t.loc.source,t.loc.start)),e}),[]));var m=c;if(null==m&&null!=u){var v=u.extensions;Object(r.a)(v)&&(m=v)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:Boolean(d)},path:{value:s||void 0,enumerable:Boolean(s)},nodes:{value:l||void 0},source:{value:f||void 0},positions:{value:h||void 0},originalError:{value:u},extensions:{value:m||void 0,enumerable:Boolean(m)}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function s(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+Object(o.a)(i.loc))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++){var u=s[a];t+="\n\n"+Object(o.b)(e.source,u)}return t}a.prototype=Object.create(Error.prototype,{constructor:{value:a},name:{value:"GraphQLError"},toString:{value:function(){return s(this)}}})},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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,n){var r,i,o;r=[],i=function(){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,s){"object"===r(t)&&void 0!==e?e.exports=s():void 0===(o="function"==typeof(i=s)?i.call(t,n,t,e):i)||(e.exports=o)}(0,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),s=i||o||a,u=s&&(i?document.documentMode||6:+(a||o)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),f=!a&&/Chrome\//.test(e),p=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),v=!a&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),y=/Android/.test(e),g=v||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),O=/\bCrOS\b/.test(e),E=/win/i.test(t),T=p&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(p=!1,c=!0);var w=b&&(l||p&&(null==T||T<12.11)),_=n||s&&u>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var x,S=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return C(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function j(e,t,n,r){var i=D(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(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 L(){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 I(e,t){var n=e.className;k(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!k(n[r]).test(t)&&(t+=" "+n[r]);return t}x=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 R=function(e){e.select()};function M(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(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 s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}v?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(R=function(e){try{e.select()}catch(e){}});var U=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var q=30,K={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},z={origin:"*mouse"},G={origin:"+move"};function Q(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,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function Y(e){for(;W.length<=e;)W.push(J(W)+" ");return W[e]}function J(e){return e[e.length-1]}function $(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&P(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var le=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(u,c){var l="ltr"==c?"L":"R";if(0==u.length||"ltr"==c&&!n.test(u))return!1;for(var f,p=u.length,d=[],h=0;h<p;++h)d.push((f=u.charCodeAt(h))<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":8204==f?"b":"L");for(var m=0,v=l;m<p;++m){var y=d[m];"m"==y?d[m]=v:v=y}for(var g=0,b=l;g<p;++g){var O=d[g];"1"==O&&"r"==b?d[g]="n":i.test(O)&&(b=O,"r"==O&&(d[g]="R"))}for(var E=1,T=d[0];E<p-1;++E){var w=d[E];"+"==w&&"1"==T&&"1"==d[E+1]?d[E]="1":","!=w||T!=d[E+1]||"1"!=T&&"n"!=T||(d[E]=T),T=w}for(var _=0;_<p;++_){var k=d[_];if(","==k)d[_]="N";else if("%"==k){var x=void 0;for(x=_+1;x<p&&"%"==d[x];++x);for(var S=_&&"!"==d[_-1]||x<p&&"1"==d[x]?"1":"N",C=_;C<x;++C)d[C]=S;_=x-1}}for(var N=0,D=l;N<p;++N){var j=d[N];"L"==D&&"1"==j?d[N]="L":i.test(j)&&(D=j)}for(var A=0;A<p;++A)if(r.test(d[A])){var L=void 0;for(L=A+1;L<p&&r.test(d[L]);++L);for(var I="L"==(A?d[A-1]:l),F=I==("L"==(L<p?d[L]:l))?I?"L":"R":l,R=A;R<L;++R)d[R]=F;A=L-1}for(var M,P=[],V=0;V<p;)if(o.test(d[V])){var U=V;for(++V;V<p&&o.test(d[V]);++V);P.push(new s(0,U,V))}else{var B=V,q=P.length;for(++V;V<p&&"L"!=d[V];++V);for(var K=B;K<V;)if(a.test(d[K])){B<K&&P.splice(q,0,new s(1,B,K));var H=K;for(++K;K<V&&a.test(d[K]);++K);P.splice(q,0,new s(2,H,K)),B=K}else++K;B<V&&P.splice(q,0,new s(1,B,V))}return"ltr"==c&&(1==P[0].level&&(M=u.match(/^\s+/))&&(P[0].from=M[0].length,P.unshift(new s(0,0,M[0].length))),1==J(P).level&&(M=u.match(/\s+$/))&&(J(P).to-=M[0].length,P.push(new s(0,p-M[0].length,p)))),"rtl"==c?P.reverse():P}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=le(e.text,t)),n}var pe=[],de=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]||pe).concat(n)}};function he(e,t){return e._handlers&&e._handlers[t]||pe}function me(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=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=he(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function be(e,t){return he(e,t).length>0}function Oe(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Ee(e),Te(e)}function ke(e){return e.target||e.srcElement}function xe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Se,Ce,Ne=function(){if(s&&u<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Se){var t=D("span","");N(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&u<8))}var n=Se?D("span",""):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function je(e){if(null!=Ce)return Ce;var t=N(e,document.createTextNode("AخA")),n=x(t,0,1).getBoundingClientRect(),r=x(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Ce=r.right-n.right<3)}var Ae,Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){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/)},Ie=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)},Fe="oncopy"in(Ae=D("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),Re=null,Me={},Pe={};function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Me[e]=t}function Ue(e){if("string"==typeof e&&Pe.hasOwnProperty(e))e=Pe[e];else if(e&&"string"==typeof e.name&&Pe.hasOwnProperty(e.name)){var t=Pe[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Ue(t);var n=Me[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(qe.hasOwnProperty(t.name)){var i=qe[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}var qe={};function Ke(e,t){P(t,qe.hasOwnProperty(e)?qe[e]:qe[e]={})}function He(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 ze(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 Ge(e,t,n){return!e.startState||e.startState(t,n)}var Qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function We(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ye(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 Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function $e(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Xe(e){if(null==e.parent)return null;for(var t=e.parent,n=B(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 Ze(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function et(e,t){return t>=e.first&&t<e.first+e.size}function tt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function nt(e,t,n){if(void 0===n&&(n=null),!(this instanceof nt))return new nt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function rt(e,t){return e.line-t.line||e.ch-t.ch}function it(e,t){return e.sticky==t.sticky&&0==rt(e,t)}function ot(e){return nt(e.line,e.ch)}function at(e,t){return rt(e,t)<0?t:e}function st(e,t){return rt(e,t)<0?e:t}function ut(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ct(e,t){if(t.line<e.first)return nt(e.first,0);var n=e.first+e.size-1;return t.line>n?nt(n,We(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?nt(e.line,t):n<0?nt(e.line,0):e}(t,We(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ct(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.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},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Qe.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},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ft=function(e,t){this.state=e,this.lookAhead=t},pt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,n,r){var i=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],u=1,c=0;n.state=!0,Tt(e,t.text,s.mode,n,(function(e,t){for(var n=u;c<e;){var r=i[u];r>e&&i.splice(u,1,e,i[u+1],r),u+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;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=0;u<e.state.overlays.length;++u)s(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ht(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mt(e,Xe(t)),i=t.text.length>e.options.maxHighlightLength&&He(e.doc.mode,r.state),o=dt(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 mt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new pt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var u=We(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof ft?c.lookAhead:0)<=o.modeFrontier))return s;var l=V(u.text,null,e.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}(e,t,n),a=o>r.first&&We(r,o-1).stateAfter,s=a?pt.fromSaved(r,a,o):new pt(r,Ge(r.mode),o);return r.iter(o,t,(function(n){vt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function vt(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&yt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function yt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=ze(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=ze(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}pt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},pt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pt.fromSaved=function(e,t,n){return t instanceof ft?new pt(e,He(e.mode,t.state),n,t.lookAhead):new pt(e,He(e.mode,t),n)},pt.prototype.save=function(e){var t=!1!==e?He(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=We(a,(t=ct(a,t)).line),c=mt(e,t.line,n),l=new Qe(u.text,e.options.tabSize,c);for(r&&(o=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,i=gt(s,l,c.state),r&&o.push(new bt(l,i,He(a.mode,c.state)));return r?o:new bt(l,i,c.state)}function Et(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]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Tt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,c=0,l=null,f=new Qe(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Et(yt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&vt(e,t,r,f.pos),f.pos=t.length,u=null):u=Et(gt(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||l!=u){for(;c<f.start;)i(c=Math.min(f.start,c+5e3),l);l=u}f.start=f.pos}for(;c<f.pos;){var h=Math.min(f.pos,c+5e3);i(h,l),c=h}}var wt=!1,_t=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function xt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function St(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ct(e,t){if(t.full)return null;var n=et(e,t.from.line)&&We(e,t.from.line).markedSpans,r=et(e,t.to.line)&&We(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==rt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||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 kt(a,o.from,s?null:o.to))}}return r}(n,i,a),u=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,l=J(t.text).length+(c?i:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=xt(u,p.marker);d?c&&(p.to=null==d.to?null:d.to+l):p.to=i}}if(u)for(var h=0;h<u.length;++h){var m=u[h];null!=m.to&&(m.to+=l),null==m.from?xt(s,m.marker)||(m.from=l,c&&(s||(s=[])).push(m)):(m.from+=l,c&&(s||(s=[])).push(m))}s&&(s=Nt(s)),u&&u!=s&&(u=Nt(u));var v=[s];if(!c){var y,g=t.text.length-2;if(g>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(y||(y=[])).push(new kt(s[b].marker,null,null));for(var O=0;O<g;++O)v.push(y);v.push(u)}return v}function Nt(e){for(var t=0;t<e.length;++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 Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function jt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function At(e){return e.inclusiveLeft?-1:0}function Lt(e){return e.inclusiveRight?1:0}function It(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=rt(r.from,i.from)||At(e)-At(t);if(o)return-o;var a=rt(r.to,i.to)||Lt(e)-Lt(t);return a||t.id-e.id}function Ft(e,t){var n,r=_t&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||It(n,i.marker)<0)&&(n=i.marker);return n}function Rt(e){return Ft(e,!0)}function Mt(e){return Ft(e,!1)}function Pt(e,t){var n,r=_t&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||It(n,o.marker)<0)&&(n=o.marker)}return n}function Vt(e,t,n,r,i){var o=We(e,t),a=_t&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var c=u.marker.find(0),l=rt(c.from,n)||At(u.marker)-At(i),f=rt(c.to,r)||Lt(u.marker)-Lt(i);if(!(l>=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?rt(c.to,n)>=0:rt(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?rt(c.from,r)<=0:rt(c.from,r)<0)))return!0}}}function Ut(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=We(e,t),r=Ut(n);return n==r?t:Xe(r)}function qt(e,t){if(t>e.lastLine())return t;var n,r=We(e,t);if(!Kt(e,r))return t;for(;n=Mt(r);)r=n.find(1,!0).line;return Xe(r)+1}function Kt(e,t){var n=_t&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ht(e,t,r))return!0}}function Ht(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Ht(e,r.line,xt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ht(e,t,i))return!0}function zt(e){for(var t=0,n=(e=Ut(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Gt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Rt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Mt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Qt(e){var t=e.display,n=e.doc;t.maxLine=We(n,n.first),t.maxLineLength=Gt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Gt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Wt=function(e,t,n){this.text=e,jt(this,t),this.height=n?n(this):1};function Yt(e){e.parent=null,Dt(e)}Wt.prototype.lineNo=function(){return Xe(this)},Oe(Wt);var Jt={},$t={};function Xt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?$t:Jt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Zt(e,t){var n=j("span",null,null,c?"padding-right: .1px":null),r={pre:j("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=tn,je(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=nn(r.addToken,a)),r.map=[],on(o,r,ht(e,o,t!=e.display.externalMeasured&&Xe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(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(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function en(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function tn(e,t,n,r,i,o,a){if(t){var c,l=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){c=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(l.slice(d,d+m));s&&u<9?c.appendChild(D("span",[v])):c.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var y=void 0;if("\t"==h[0]){var g=e.cm.options.tabSize,b=g-e.col%g;(y=c.appendChild(D("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((y=c.appendChild(D("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((y=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),s&&u<9?c.appendChild(D("span",[y])):c.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),s&&u<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||i||p||o){var O=n||"";r&&(O+=r),i&&(O+=i);var E=D("span",[c],O,o);if(a)for(var T in a)a.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&E.setAttribute(T,a[T]);return e.content.appendChild(E)}e.content.appendChild(c)}}function nn(e,t){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,l=c+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>c&&f.from<=c);p++);if(f.to>=l)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-c),i,o,null,s,u),o=null,r=r.slice(f.to-c),c=f.to}}}function rn(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 on(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,c,l,f,p,d=i.length,h=0,m=1,v="",y=0;;){if(y==h){u=c=l=s="",p=null,f=null,y=1/0;for(var g=[],b=void 0,O=0;O<r.length;++O){var E=r[O],T=E.marker;if("bookmark"==T.type&&E.from==h&&T.widgetNode)g.push(T);else if(E.from<=h&&(null==E.to||E.to>h||T.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&y>E.to&&(y=E.to,c=""),T.className&&(u+=" "+T.className),T.css&&(s=(s?s+";":"")+T.css),T.startStyle&&E.from==h&&(l+=" "+T.startStyle),T.endStyle&&E.to==y&&(b||(b=[])).push(T.endStyle,E.to),T.title&&((p||(p={})).title=T.title),T.attributes)for(var w in T.attributes)(p||(p={}))[w]=T.attributes[w];T.collapsed&&(!f||It(f.marker,T)<0)&&(f=E)}else E.from>h&&y>E.from&&(y=E.from)}if(b)for(var _=0;_<b.length;_+=2)b[_+1]==y&&(c+=" "+b[_]);if(!f||f.from==h)for(var k=0;k<g.length;++k)rn(t,0,g[k]);if(f&&(f.from||0)==h){if(rn(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 x=Math.min(d,y);;){if(v){var S=h+v.length;if(!f){var C=S>x?v.slice(0,x-h):v;t.addToken(t,C,a?a+u:u,l,h+C.length==y?c:"",s,p)}if(S>=x){v=v.slice(x-h),h=x;break}h=S,l=""}v=i.slice(o,o=n[m++]),a=Xt(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,i.slice(o,o=n[N]),Xt(n[N+1],t.cm.options))}function an(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Mt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Xe(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Kt(e,t)}function sn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new an(e.doc,We(e.doc,o),o);r=o+a.size,i.push(a)}return i}var un=null,cn=null;function ln(e,t){var n=he(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);un?r=un.delayedCallbacks:cn?r=cn:(r=cn=[],setTimeout(fn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function fn(){var e=cn;cn=null;for(var t=0;t<e.length;++t)e[t]()}function pn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?mn(e,t):"gutter"==o?yn(e,t,n,r):"class"==o?vn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function dn(e){return e.node==e.text&&(e.node=D("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&u<8&&(e.node.style.zIndex=2)),e.node}function hn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Zt(e,t)}function mn(e,t){var n=t.text.className,r=hn(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,vn(e,t)):n&&(t.text.className=n)}function vn(e,t){!function(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 r=dn(t);t.background=r.insertBefore(D("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function yn(e,t,n,r){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 i=dn(t);t.gutterBackground=D("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=dn(t),s=t.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(D("div",tt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var c=e.display.gutterSpecs[u].className,l=o.hasOwnProperty(c)&&o[c];l&&s.appendChild(D("div",[l],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(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);On(e,t,n)}function bn(e,t,n,r){var i=hn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),vn(e,t),yn(e,t,n,r),On(e,t,r),t.node}function On(e,t,n){if(En(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)En(e,t.rest[r],t,n,!1)}function En(e,t,n,r,i){if(t.widgets)for(var o=dn(n),a=0,s=t.widgets;a<s.length;++a){var u=s[a],c=D("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Tn(u,c,n,r),e.display.input.setUneditable(c),i&&u.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),ln(u,"redraw")}}function Tn(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 wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),N(t.display.measure,D("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function _n(e,t){for(var n=ke(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 kn(e){return e.lineSpace.offsetTop}function xn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=N(e.measure,D("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Cn(e){return q-e.display.nativeBarWidth}function Nn(e){return e.display.scroller.clientWidth-Cn(e)-e.display.barWidth}function Dn(e){return e.display.scroller.clientHeight-Cn(e)-e.display.barHeight}function jn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Xe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function An(e,t,n,r){return Fn(e,In(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[pr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function In(e,t){var n=Xe(t),r=Ln(e,n);r&&!r.text?r=null:r&&r.changes&&(pn(e,r,n,sr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Xe(t=Ut(t)),r=e.display.externalMeasured=new an(e.doc,t,n);r.lineN=n;var i=r.built=Zt(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}(e,t));var i=jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Fn(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||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Nn(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(),s=0;s<a.length-1;s++){var u=a[s],c=a[s+1];Math.abs(u.bottom-c.bottom)>2&&o.push((u.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Pn(t.map,n,r),a=o.node,c=o.start,l=o.end,f=o.collapse;if(3==a.nodeType){for(var p=0;p<4;p++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+l<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+l));)++l;if((i=s&&u<9&&0==c&&l==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Vn(x(a,c,l).getClientRects(),r)).left||i.right||0==c)break;l=c,c-=1,f="right"}s&&u<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var t=N(e,D("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}(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}}(e.display.measure,i))}else{var d;c>0&&(f=r="right"),i=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==r?d.length-1:0]:a.getBoundingClientRect()}if(s&&u<9&&!c&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ar(e.display),top:h.top,bottom:h.bottom}:Mn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,y=(m+v)/2,g=t.view.measure.heights,b=0;b<g.length-1&&!(y<g[b]);b++);var O=b?g[b-1]:0,E=g[b],T={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:O,bottom:E};return i.left||i.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=m,T.rbottom=v),T}(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Mn={left:0,right:0,top:0,bottom:0};function Pn(e,t,n){for(var r,i,o,a,s,u,c=0;c<e.length;c+=3)if(s=e[c],u=e[c+1],t<s?(i=0,o=1,a="left"):t<u?o=1+(i=t-s):(c==e.length-3||t==u&&e[c+3]>t)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[c+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==u-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function Vn(e,t){var n=Mn;if("left"==t)for(var r=0;r<e.length&&(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 Un(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Un(e.display.view[t])}function qn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Kn(){return f&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hn(){return f&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function zn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=wn(e.widgets[n]));return t}function Gn(e,t,n,r,i){if(!i){var o=zn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=zt(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Hn());var u=s.left+("window"==r?0:Kn());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function Qn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Kn(),i-=Hn();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 Wn(e,t,n,r,i){return r||(r=We(e.doc,t.line)),Gn(e,r,An(e,r,t.ch,i),n)}function Yn(e,t,n,r,i,o){function a(t,a){var s=Fn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Gn(e,r,s,n)}r=r||We(e.doc,t.line),i||(i=In(e,r));var s=fe(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=ce(s,u,c),p=ue,d=l(u,f,"before"==c);return null!=p&&(d.other=l(u,p,"before"!=c)),d}function Jn(e,t){var n=0;t=ct(e.doc,t),e.options.lineWrapping||(n=ar(e.display)*t.ch);var r=We(e.doc,t.line),i=zt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function $n(e,t,n,r,i){var o=nt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Xn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return $n(r.first,0,null,-1,-1);var i=Ze(r,n),o=r.first+r.size-1;if(i>o)return $n(r.first+r.size-1,We(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=We(r,i);;){var s=nr(e,a,i,t,n),u=Pt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=We(r,i=c.line)}}function Zn(e,t,n,r){r-=zn(t);var i=t.text.length,o=se((function(t){return Fn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=se((function(t){return Fn(e,n,t).top>r}),o,i)}}function er(e,t,n,r){return n||(n=In(e,t)),Zn(e,t,n,Gn(e,t,Fn(e,n,r),"line").top)}function tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function nr(e,t,n,r,i){i-=zt(t);var o=In(e,t),a=zn(t),s=0,u=t.text.length,c=!0,l=fe(t,e.doc.direction);if(l){var f=(e.options.lineWrapping?ir:rr)(e,t,n,o,l,r,i);s=(c=1!=f.level)?f.from:f.to-1,u=c?f.to:f.from-1}var p,d,h=null,m=null,v=se((function(t){var n=Fn(e,o,t);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,u),y=!1;if(m){var g=r-m.left<m.right-r,b=g==c;v=h+(b?0:1),d=b?"after":"before",p=g?m.left:m.right}else{c||v!=u&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":Fn(e,o,v-(c?1:0)).bottom+a<=i==c?"after":"before";var O=Yn(e,nt(n,v,d),"line",t,o);p=O.left,y=i<O.top?-1:i>=O.bottom?1:0}return $n(n,v=ae(t.text,v,1),d,y,r-p)}function rr(e,t,n,r,i,o,a){var s=se((function(s){var u=i[s],c=1!=u.level;return tr(Yn(e,nt(n,c?u.to:u.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=Yn(e,nt(n,c?u.from:u.to,c?"after":"before"),"line",t,r);tr(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function ir(e,t,n,r,i,o,a){var s=Zn(e,t,r,a),u=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var l=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=c||d.to<=u)){var h=Fn(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(u,d.from)).right,m=h<o?o-h+1e9:h-o;(!l||f>m)&&(l=d,f=m)}}return l||(l=i[i.length-1]),l.from<u&&(l={from:u,to:l.to,level:l.level}),l.to>c&&(l={from:l.from,to:c,level:l.level}),l}function or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(D("br"));Rn.appendChild(document.createTextNode("x"))}N(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function sr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ur(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ur(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cr(e){var t=or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ar(e.display)-3);return function(i){if(Kt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=cr(e);t.iter((function(e){var t=n(e);t!=e.height&&$e(e,t)}))}function fr(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var u,c=Xn(e,o,a);if(r&&1==c.xRel&&(u=We(e.doc,c.line).text).length==c.ch){var l=V(u,u.length,e.options.tabSize)-u.length;c=nt(c.line,Math.max(0,Math.round((o-Sn(e.display).left)/ar(e.display))-l))}return c}function pr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(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&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)_t&&Bt(e.doc,t)<i.viewTo&&mr(e);else if(n<=i.viewFrom)_t&&qt(e.doc,n+r)>i.viewFrom?mr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)mr(e);else if(t<=i.viewFrom){var o=vr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):mr(e)}else if(n>=i.viewTo){var a=vr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):mr(e)}else{var s=vr(e,t,t,-1),u=vr(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(sn(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):mr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function hr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function mr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function vr(e,t,n,r){var i,o=pr(e,t),a=e.display.view;if(!_t||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function yr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function br(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;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var u=s.empty();(u||e.options.showCursorWhenSelecting)&&Or(e,s.head,i),u||Tr(e,s,o)}}return r}function Or(e,t,n){var r=Yn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(D("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Er(e,t){return e.top-t.top||e.left-t.left}function Tr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Sn(e.display),s=a.left,u=Math.max(r.sizerWidth,Nn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function l(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=We(i,t),p=f.text.length;function d(n,r){return Wn(e,nt(t,n),"div",f,r)}function h(t,n,r){var i=er(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=fe(f,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&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")}(m,n||0,null==r?p:r,(function(e,t,i,f){var v="ltr"==i,y=d(e,v?"left":"right"),g=d(t-1,v?"right":"left"),b=null==n&&0==e,O=null==r&&t==p,E=0==f,T=!m||f==m.length-1;if(g.top-y.top<=3){var w=(c?O:b)&&T,_=(c?b:O)&&E?s:(v?y:g).left,k=w?u:(v?g:y).right;l(_,y.top,k-_,y.bottom)}else{var x,S,C,N;v?(x=c&&b&&E?s:y.left,S=c?u:h(e,i,"before"),C=c?s:h(t,i,"after"),N=c&&O&&T?u:g.right):(x=c?h(e,i,"before"):s,S=!c&&b&&E?u:y.right,C=!c&&O&&T?s:g.left,N=c?h(t,i,"after"):u),l(x,y.top,S-x,y.bottom),y.bottom<g.top&&l(s,y.bottom,null,g.top),l(C,g.top,N-C,g.bottom)}(!o||Er(y,o)<0)&&(o=y),Er(g,o)<0&&(o=g),(!a||Er(y,a)<0)&&(a=y),Er(g,a)<0&&(a=g)})),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=We(i,p.line),m=We(i,d.line),v=Ut(h)==Ut(m),y=f(p.line,p.ch,v?h.text.length+1:null).end,g=f(d.line,v?0:null,d.ch).start;v&&(y.top<g.top-2?(l(y.right,y.top,null,y.bottom),l(s,g.top,g.left,g.bottom)):l(y.right,y.top,g.left-y.right,y.bottom)),y.bottom<g.top&&l(s,y.bottom,null,g.top)}n.appendChild(o)}function wr(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):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.state.focused||(e.display.input.focus(),xr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Sr(e))}),100)}function xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Cr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,a=void 0,c=0;if(!i.hidden){if(s&&u<8){var l=i.node.offsetTop+i.node.offsetHeight;a=l-n,n=l}else{var f=i.node.getBoundingClientRect();a=f.bottom-f.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var p=i.line.height-a;if((p>.005||p<-.005)&&($e(i.line,a),Nr(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Nr(i.rest[d]);if(c>e.display.sizerWidth){var h=Math.ceil(c/ar(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Nr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Dr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Ze(t,r),a=Ze(t,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=Ze(t,zt(We(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=Ze(t,zt(We(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function jr(e,t){var n=e.display,r=or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Dn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+xn(n),u=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var l=Math.min(t.top,(c?s:t.bottom)-o);l!=i&&(a.scrollTop=l)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Nn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?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 Ar(e,t){null!=t&&(Fr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Fr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Fr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Jn(e,t.from),Jn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=jr(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});Ir(e,i.scrollLeft,i.scrollTop)}function Mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Pr(e,t,!0),n&&li(e),oi(e,100))}function Pr(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 Vr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,di(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ur(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+xn(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+Cn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.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}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(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)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qr=function(){};function Kr(e,t){t||(t=Ur(e));var n=e.display.barWidth,r=e.display.barHeight;Hr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Cr(e),Hr(e,Ur(e)),n=e.display.barWidth,r=e.display.barHeight}function Hr(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=""}qr.prototype.update=function(){return{bottom:0,right:0}},qr.prototype.setScrollLeft=function(){},qr.prototype.setScrollTop=function(){},qr.prototype.clear=function(){};var zr={native:Br,null:qr};function Gr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new zr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(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?Vr(e,t):Mr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Qr=0;function Wr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Qr},t=e.curOp,un?un.ops.push(t):t.ownsGroup=un={ops:[t],delayedCallbacks:[]}}function Yr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{un=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Jr(t[n]);for(var r=0;r<t.length;r++)$r(t[r]);for(var i=0;i<t.length;i++)Xr(t[i]);for(var o=0;o<t.length;o++)Zr(t[o]);for(var a=0;a<t.length;a++)ei(t[a])}(e)}))}function Jr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Cn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Cn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Qt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new si(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function $r(e){e.updatedDisplay=e.mustUpdate&&ui(e.cm,e.update)}function Xr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Cr(t),e.barMeasure=Ur(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(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+Cn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Nn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Zr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Vr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Kr(t,e.barMeasure),e.updatedDisplay&&pi(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&_r(e.cm)}function ei(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&ci(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Pr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Vr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=D("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Cn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?nt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?nt(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Yn(e,t),u=n&&n!=t?Yn(e,n):s,c=jr(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),l=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(Mr(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(Vr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,ct(r,e.scrollToPos.from),ct(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ve(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ve(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ti(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{Yr(e)}}function ni(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{Yr(e)}}}function ri(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Yr(this)}}}function ii(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wr(t);try{return e.apply(this,arguments)}finally{Yr(t)}}}function oi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(ai,e))}function ai(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=mt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?He(t.mode,r.state):null,u=dt(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&vt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return oi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ti(e,(function(){for(var t=0;t<i.length;t++)hr(e,i[t],"text")}))}}var si=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Dr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Nn(e),this.force=n,this.dims=sr(e),this.events=[]};function ui(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return mr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==yr(e))return!1;hi(e)&&(mr(e),t.dims=sr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),_t&&(o=Bt(e.doc,o),a=qt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=sn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(pr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(sn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,pr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=zt(We(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=yr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=function(e){if(e.hasFocus())return null;var t=L();if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,l=r.viewFrom,f=0;f<u.length;f++){var p=u[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=t&&t<=l&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(d=!1),pn(e,p,l,n)),d&&(C(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(tt(e.options,l)))),a=p.node.nextSibling}else{var h=bn(e,p,l,n);o.insertBefore(h,a)}l+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),e.anchorNode&&A(document.body,e.anchorNode)&&A(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)}}(l),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,oi(e,400)),n.updateLineNumbers=null,!0}function ci(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Nn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+xn(e.display)-Dn(e),n.top)}),t.visible=Dr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ui(e,t);r=!1){Cr(e);var i=Ur(e);gr(e),Kr(e,i),pi(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 li(e,t){var n=new si(e,t);if(ui(e,n)){Cr(e),ci(e,n);var r=Ur(e);gr(e),Kr(e,r),pi(e,r),n.finish()}}function fi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function pi(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+Cn(e)+"px"}function di(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ur(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;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 s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function hi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=tt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(D("div",[D("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",fi(e.display),!0}return!1}function mi(e,t){for(var n=[],r=!1,i=0;i<e.length;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 vi(e){var t=e.gutters,n=e.gutterSpecs;C(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(D("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",fi(e)}function yi(e){vi(e.display),dr(e),di(e)}function gi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=j("div",null,"CodeMirror-code"),o.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=D("div",null,"CodeMirror-cursors"),o.measure=D("div",null,"CodeMirror-measure"),o.lineMeasure=D("div",null,"CodeMirror-measure"),o.lineSpace=j("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=j("div",[o.lineSpace],"CodeMirror-lines");o.mover=D("div",[a],null,"position: relative"),o.sizer=D("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=D("div",null,null,"position: absolute; height: "+q+"px; width: 1px;"),o.gutters=D("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=D("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=D("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),s&&u<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),c||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=mi(i.gutters,i.lineNumbers),vi(o),r.init(o)}si.prototype.signal=function(e,t){be(e,t)&&this.events.push(arguments)},si.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};var bi=0,Oi=null;function Ei(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 Ti(e){var t=Ei(e);return t.x*=Oi,t.y*=Oi,t}function wi(e,t){var r=Ei(t),i=r.x,o=r.y,a=e.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&u||o&&l){if(o&&b&&c)e:for(var f=t.target,d=a.view;f!=s;f=f.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!p&&null!=Oi)return o&&l&&Mr(e,Math.max(0,s.scrollTop+o*Oi)),Vr(e,Math.max(0,s.scrollLeft+i*Oi)),(!o||o&&l)&&Ee(t),void(a.wheelStartX=null);if(o&&null!=Oi){var m=o*Oi,v=e.doc.scrollTop,y=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):y=Math.min(e.doc.height,y+m+50),li(e,{top:v,bottom:y})}bi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Oi=(Oi*bi+n)/(bi+1),++bi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}s?Oi=-.53:n?Oi=15:f?Oi=-.7:d&&(Oi=-1/3);var _i=function(e,t){this.ranges=e,this.primIndex=t};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!it(n.anchor,r.anchor)||!it(n.head,r.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(ot(this.ranges[t].anchor),ot(this.ranges[t].head));return new _i(e,this.primIndex)},_i.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},_i.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(rt(t,r.from())>=0&&rt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function xi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return rt(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],u=rt(s.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var c=st(s.from(),a.from()),l=at(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(f?l:c,f?c:l))}}return new _i(t,n)}function Si(e,t){return new _i([new ki(e,t||e)],0)}function Ci(e){return e.text?nt(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ni(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return Ci(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+=Ci(t).ch-t.to.ch),nt(n,r)}function Di(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Ni(i.anchor,t),Ni(i.head,t)))}return xi(e.cm,n,e.sel.primIndex)}function ji(e,t,n){return e.line==t.line?nt(n.line,e.ch-t.ch+n.ch):nt(n.line+(e.line-t.line),e.ch)}function Ai(e){e.doc.mode=Be(e.options,e.doc.modeOption),Li(e)}function Li(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,oi(e,100),e.state.modeGen++,e.curOp&&dr(e)}function Ii(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Fi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Dt(e),jt(e,n);var i=r?r(e):1;i!=e.height&&$e(e,i)}(e,n,i,r),ln(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Wt(c[o],i(o),r));return n}var s=t.from,u=t.to,c=t.text,l=We(e,s.line),f=We(e,u.line),p=J(c),d=i(c.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ii(e,t)){var m=a(0,c.length-1);o(f,f.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(l==f)if(1==c.length)o(l,l.text.slice(0,s.ch)+p+l.text.slice(u.ch),d);else{var v=a(1,c.length-1);v.push(new Wt(p+l.text.slice(u.ch),d,r)),o(l,l.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,v)}else if(1==c.length)o(l,l.text.slice(0,s.ch)+c[0]+f.text.slice(u.ch),i(0)),e.remove(s.line+1,h);else{o(l,l.text.slice(0,s.ch)+c[0],i(0)),o(f,p+f.text.slice(u.ch),d);var y=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}ln(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(t(s.doc,u),e(s.doc,r,u))}}}(e,null,!0)}function Mi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Ai(e),Pi(e),e.options.lineWrapping||Qt(e),e.options.mode=t.modeOption,dr(e)}function Pi(e){("rtl"==e.doc.direction?I:S)(e.display.lineDiv,"CodeMirror-rtl")}function Vi(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 Ui(e,t){var n={from:ot(t.from),to:Ci(t),text:Ye(e,t.from,t.to)};return zi(e,n,t.from.line,t.to.line+1),Ri(e,(function(e){return zi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&J(e).ranges;)e.pop()}function qi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==rt(t.from,t.to)&&0==rt(t.from,a.to)?a.to=Ci(t):o.changes.push(Ui(e,t));else{var u=J(i.done);for(u&&u.ranges||Hi(e.sel,i.done),o={changes:[Ui(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=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function Ki(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||function(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)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Hi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function Hi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function zi(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 Gi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Qi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Gi(n[i]));return r}(e,t),r=Ct(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],c=0;c<o.length;++c)if(o[c].marker==u.marker)continue e;o.push(u)}else a&&(n[i]=a)}return n}function Wi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?_i.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var c=a[u],l=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var f in c)(l=f.match(/^spans_(\d+)$/))&&B(t,Number(l[1]))>-1&&(J(s)[f]=c[f],delete c[f])}}}return r}function Yi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=rt(t,i)<0;o!=rt(n,i)<0?(i=t,t=n):o!=rt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Ji(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),to(e,new _i([Yi(e.sel.primary(),t,n,i)],0),r)}function $i(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Yi(e.sel.ranges[o],t[o],null,i);to(e,xi(e.cm,r,e.sel.primIndex),n)}function Xi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,to(e,xi(e.cm,i,e.sel.primIndex),r)}function Zi(e,t,n,r){to(e,Si(t,n),r)}function eo(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,no(e,t,n)):to(e,t,n)}function to(e,t,n){no(e,t,n),Ki(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function no(e,t,n){(be(e,"beforeSelectionChange")||e.cm&&be(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(ct(e,t[n].anchor),ct(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?xi(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(rt(t.primary().head,e.sel.primary().head)<0?-1:1);ro(e,oo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Lr(e.cm)}function ro(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),ln(e,"cursorActivity",e))}function io(e){ro(e,oo(e,e.sel,null,!1))}function oo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=so(e,a.anchor,s&&s.anchor,n,r),c=so(e,a.head,s&&s.head,n,r);(i||u!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(u,c))}return i?xi(e.cm,i,t.primIndex):t}function ao(e,t,n,r,i){var o=We(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker,c="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,l="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),p=void 0;if((r<0?l:c)&&(f=uo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=rt(f,n))&&(r<0?p<0:p>0))return ao(e,f,t,r,i)}var d=u.find(r<0?-1:1);return(r<0?c:l)&&(d=uo(e,d,r,d.line==t.line?o:null)),d?ao(e,d,t,r,i):null}}return t}function so(e,t,n,r,i){var o=r||1,a=ao(e,t,n,o,i)||!i&&ao(e,t,n,o,!0)||ao(e,t,n,-o,i)||!i&&ao(e,t,n,-o,!0);return a||(e.cantEdit=!0,nt(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ct(e,nt(t.line-1)):null:n>0&&t.ch==(r||We(e,t.line)).text.length?t.line<e.first+e.size-1?nt(t.line+1,0):null:new nt(t.line,t.ch+n)}function co(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),H)}function lo(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=ct(e,t)),n&&(r.to=ct(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(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 fo(e,t,n){if(e.cm){if(!e.cm.curOp)return ni(e.cm,fo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var c=i[u];if(!(rt(c.to,s.from)<0||rt(c.from,s.to)>0)){var l=[u,1],f=rt(c.from,s.from),p=rt(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)po(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else po(e,t)}}function po(e,t){if(1!=t.text.length||""!=t.text[0]||0!=rt(t.from,t.to)){var n=Di(e,t);qi(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Ct(e,t));var r=[];Ri(e,(function(e,n){n||-1!=B(r,e.history)||(Oo(e.history,t),r.push(e.history)),vo(e,t,null,Ct(e,t))}))}}function ho(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Hi(i,u),n&&!i.equals(e.sel))return void to(e,i,{clearRedo:!1});a=i}var l=[];Hi(a,u),u.push({changes:l,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,f&&!lo(e,r,!1))return s.length=0,{};l.push(Ui(e,r));var o=n?Di(e,r):J(s);vo(e,r,o,Qi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ci(r)});var a=[];Ri(e,(function(e,t){t||-1!=B(a,e.history)||(Oo(e.history,r),a.push(e.history)),vo(e,r,null,Qi(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function mo(e,t){if(0!=t&&(e.first+=t,e.sel=new _i($(e.sel.ranges,(function(e){return new ki(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)hr(e.cm,r,"gutter")}}function vo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ni(e.cm,vo)(e,t,n,r);if(t.to.line<e.first)mo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);mo(e,i),t={from:nt(e.first,0),to:nt(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:nt(o,We(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=Di(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=Xe(Ut(We(r,o.line))),r.iter(u,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),Fi(r,t,n,cr(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,(function(e){var t=Gt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(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=We(e,r).stateAfter;if(i&&(!(i instanceof ft)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),oi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||Ii(e.doc,t)?dr(e,o.line,a.line+1,c):hr(e,o.line,"text");var l=be(e,"changes"),f=be(e,"change");if(f||l){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&ln(e,"change",e,p),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Fi(e,t,r),no(e,n,H),e.cantEdit&&so(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function yo(e,t,n,r,i){var o;r||(r=n),rt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),fo(e,{from:n,to:r,text:t,origin:i})}function go(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function bo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,t,n,r),go(o.ranges[s].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var c=o.changes[u];if(n<c.from.line)c.from=nt(c.from.line+r,c.from.ch),c.to=nt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Oo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;bo(e.done,n,r,i),bo(e.undone,n,r,i)}function Eo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=We(e,ut(e,t)):i=Xe(t),null==i?null:(r(o,i)&&e.cm&&hr(e.cm,i,n),o)}function To(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return st(this.anchor,this.head)},ki.prototype.to=function(){return at(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},To.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Yt(i),ln(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof To))){var s=[];this.collapse(s),this.children=[new To(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new To(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var _o=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){zt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ar(e,n)}_o.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Xe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);$e(n,Math.max(0,n.height-o)),e&&(ti(e,(function(){ko(e,n,-o),hr(e,r,"widget")})),ln(e,"lineWidgetCleared",e,this,r))}},_o.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Kt(this.doc,r)||$e(r,r.height+i),n&&ti(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),ln(n,"lineWidgetChanged",n,e,Xe(r))})))},Oe(_o);var xo=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++xo};function Co(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=P(r)).shared=!1;var o=[Co(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ri(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Co(e,ct(e,t),ct(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=J(o)})),new No(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ni(e.cm,Co)(e,t,n,r,i);var o=new So(e,i),a=rt(t,n);if(r&&P(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=j("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Vt(e,t.line,t,n,o)||t.line!=n.line&&Vt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");_t=!0}o.addToHistory&&qi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,c=e.cm;if(e.iter(u,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Ut(e)==c.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&$e(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Kt(e,t)&&$e(t,0)})),o.clearOnEnter&&de(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)dr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=t.line;l<=n.line;l++)hr(c,l,"text");o.atomic&&io(c.doc),ln(c,"markerAdded",c,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Wr(e),be(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=xt(a.markedSpans,this);e&&!this.collapsed?hr(e,Xe(a),"text"):e&&(null!=s.to&&(i=Xe(a)),null!=s.from&&(r=Xe(a))),a.markedSpans=St(a.markedSpans,s),null==s.from&&this.collapsed&&!Kt(this.doc,a)&&e&&$e(a,or(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=Ut(this.lines[u]),l=Gt(c);l>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&io(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&Yr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=xt(o.markedSpans,this);if(null!=a.from&&(n=nt(t?o:Xe(o),a.from),-1==e))return n;if(null!=a.to&&(r=nt(t?o:Xe(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ti(r,(function(){var i=t.line,o=Xe(t.line),a=Ln(r,o);if(a&&(Un(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Kt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=wn(n)-s;u&&$e(i,i.height+u)}ln(r,"markerChanged",r,e)}))},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Oe(So);var No=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Do(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),(function(e){return e.parent}))}function jo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ri(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}No.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ln(this,"clear")}},No.prototype.find=function(e,t){return this.primary.find(e,t)},Oe(No);var Ao=0,Lo=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),wo.call(this,[new To([new Wt("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=nt(r,0);this.sel=Si(a),this.history=new Vi(null),this.id=++Ao,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Fi(this,{from:a,to:a,text:t}),to(this,Si(a),H)};Lo.prototype=Z(wo.prototype,{constructor:Lo,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;r<t.length;++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=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ii((function(e){var t=nt(this.first,0),n=this.first+this.size-1;fo(this,{from:t,to:nt(n,We(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ir(this.cm,0,0),to(this,Si(t),H)})),replaceRange:function(e,t,n,r){yo(this,e,t=ct(this,t),n=n?ct(this,n):t,r)},getRange:function(e,t,n){var r=Ye(this,ct(this,e),ct(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(et(this,e))return We(this,e)},getLineNumber:function(e){return Xe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=We(this,e)),Ut(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ct(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:ii((function(e,t,n){Zi(this,ct(this,"number"==typeof e?nt(e,t||0):e),null,n)})),setSelection:ii((function(e,t,n){Zi(this,ct(this,e),ct(this,t||e),n)})),extendSelection:ii((function(e,t,n){Ji(this,ct(this,e),t&&ct(this,t),n)})),extendSelections:ii((function(e,t){$i(this,lt(this,e),t)})),extendSelectionsBy:ii((function(e,t){$i(this,lt(this,$(this.sel.ranges,e)),t)})),setSelections:ii((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(ct(this,e[i].anchor),ct(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),to(this,xi(this.cm,r,t),n)}})),addSelection:ii((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(ct(this,e),ct(this,t||e))),to(this,xi(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ye(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ye(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ii((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=nt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],u=ji(s.from,i,o),c=ji(Ci(s),i,o);if(i=s.to,o=c,"around"==n){var l=e.sel.ranges[a],f=rt(l.head,l.anchor)<0;r[a]=new ki(f?c:u,f?u:c)}else r[a]=new ki(u,u)}return new _i(r,e.sel.primIndex)}(this,r,t),u=r.length-1;u>=0;u--)fo(this,r[u]);s?eo(this,s):this.cm&&Lr(this.cm)})),undo:ii((function(){ho(this,"undo")})),redo:ii((function(){ho(this,"redo")})),undoSelection:ii((function(){ho(this,"undo",!0)})),redoSelection:ii((function(){ho(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new Vi(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:Wi(this.history.done),undone:Wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Vi(this.history.maxGeneration);t.done=Wi(e.done.slice(0),null,!0),t.undone=Wi(e.undone.slice(0),null,!0)},setGutterMarker:ii((function(e,t,n){return Eo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ii((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Eo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!et(this,e))return null;if(t=e,!(e=We(this,e)))return null}else if(null==(t=Xe(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:ii((function(e,t,n){return Eo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(k(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ii((function(e,t,n){return Eo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(k(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ii((function(e,t,n){return function(e,t,n,r){var i=new _o(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Eo(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&&!Kt(e,t)){var r=zt(t)<e.scrollTop;$e(t,t.height+wn(i)),r&&Ar(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&ln(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Xe(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Co(this,ct(this,e),ct(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 Co(this,e=ct(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=We(this,(e=ct(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ct(this,e),t=ct(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 s=0;s<a.length;s++){var u=a[s];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++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})),ct(this,nt(n,t))},indexFromPos:function(e){var t=(e=ct(this,e)).ch;if(e.line<this.first||e.ch<0)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 Lo(Je(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&&e.to<n&&(n=e.to);var r=new Lo(Je(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}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(rt(o,a)){var s=Co(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Do(this)),r},unlinkDoc:function(e){if(e instanceof Na&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),jo(Do(this));break}if(e.history==this.history){var n=[e.id];Ri(e,(function(e){return n.push(e.id)}),!0),e.history=new Vi(null),e.history.done=Wi(this.history.done,n),e.history.undone=Wi(this.history.undone,n)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Le(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ii((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ti(t=this.cm,(function(){Pi(t),dr(t)})))}))}),Lo.prototype.eachLine=Lo.prototype.iter;var Io=0;function Fo(e){var t=this;if(Ro(t),!ye(t,e)&&!_n(t.display,e)){Ee(e),s&&(Io=+new Date);var n=fr(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=function(e,r){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=ni(t,(function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){var u={from:n=ct(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};fo(t.doc,u),eo(t.doc,Si(n,Ci(u)))}})),s.readAsText(e)}},c=0;c<i;++c)u(r[c],c);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 l=e.dataTransfer.getData("Text");if(l){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),no(t.doc,Si(n,n)),f)for(var p=0;p<f.length;++p)yo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(l,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ro(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Mo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Po=!1;function Vo(){var e;Po||(de(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Mo(Uo)}),100))})),de(window,"blur",(function(){return Mo(Sr)})),Po=!0)}function Uo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={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"},qo=0;qo<10;qo++)Bo[qo+48]=Bo[qo+96]=String(qo);for(var Ko=65;Ko<=90;Ko++)Bo[Ko]=String.fromCharCode(Ko);for(var Ho=1;Ho<=12;Ho++)Bo[Ho+111]=Bo[Ho+63235]="F"+Ho;var zo={};function Go(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Qo(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=$(n.split(" "),Go),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Wo(e,t,n,r){var i=(t=Xo(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 Wo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wo(e,t.fallthrough[o],n,r);if(a)return a}}}function Yo(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Jo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function $o(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Jo(n,e,t))}function Xo(e){return"string"==typeof e?zo[e]:e}function Zo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&rt(o.from,J(r).to)<=0;){var a=r.pop();if(rt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ti(e,(function(){for(var t=r.length-1;t>=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function ea(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new nt(t.line,r,n<0?"after":"before")}function na(e,t,n,r,i){if(e){var o=fe(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=In(t,n);a=i<0?n.text.length-1:0;var l=Fn(t,c,a).top;a=se((function(e){return Fn(t,c,e).top==l}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=ea(n,a,1))}else a=i<0?s.to:s.from;return new nt(r,a,u)}}return new nt(r,i<0?n.text.length:0,i<0?"before":"after")}zo.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"},zo.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"},zo.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"},zo.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"]},zo.default=b?zo.macDefault:zo.pcDefault;var ra={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),H)},killLine:function(e){return Zo(e,(function(t){if(t.empty()){var n=We(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:nt(t.head.line+1,0)}:{from:t.head,to:nt(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Zo(e,(function(t){return{from:nt(t.from().line,0),to:ct(e.doc,nt(t.to().line+1,0))}}))},delLineLeft:function(e){return Zo(e,(function(e){return{from:nt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Zo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Zo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return ia(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return oa(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=We(e.doc,t),r=function(e){for(var t;t=Mt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Xe(r)),na(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?oa(e,t.head):r}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(Y(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ti(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=We(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new nt(i.line,i.ch-1)),i.ch>0)i=new nt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),nt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=We(e.doc,i.line-1).text;a&&(i=new nt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),nt(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ti(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Lr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ia(e,t){var n=We(e.doc,t),r=Ut(n);return r!=n&&(t=Xe(r)),na(!0,e,r,t,1)}function oa(e,t){var n=ia(e,t.line),r=We(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return nt(n.line,a?0:o,n.sticky)}return n}function aa(e,t,n){if("string"==typeof t&&!(t=ra[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)!=K}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var sa=new U;function ua(e,t,n,r){var i=e.state.keySeq;if(i){if(Yo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:sa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ca(e,i+" "+t,n,r))return!0}return ca(e,t,n,r)}function ca(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wo(t,e.options.extraKeys,n,e)||Wo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ln(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ee(n),wr(e)),!!i}function la(e,t){var n=$o(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ua(e,"Shift-"+n,t,(function(t){return aa(e,t,!0)}))||ua(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return aa(e,t)})):ua(e,n,t,(function(t){return aa(e,t)})))}var fa=null;function pa(e){var t=this;if(t.curOp.focus=L(),!ye(t,e)){s&&u<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=la(t,e);p&&(fa=r?n:null,!r&&88==n&&!Fe&&(b?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n)}(t)}}function da(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function ha(e){var t=this;if(!(_n(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==fa)return fa=null,void Ee(e);if(!p||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return ua(e,"'"+n+"'",t,(function(t){return aa(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ma,va,ya=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ga(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,_n(n,e))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ea(t,e)){var r=fr(t,e),i=xe(e),o=r?function(e,t){var n=+new Date;return va&&va.compare(n,e,t)?(ma=va=null,"triple"):ma&&ma.compare(n,e,t)?(va=new ya(n,e,t),ma=null,"double"):(ma=new ya(n,e,t),va=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ua(e,Jo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ra[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=K}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){s?setTimeout(M(_r,e),0):e.curOp.focus=L();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=O?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"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=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),a=e.doc.sel;e.options.dragDrop&&Ne&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(rt((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(rt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,a=ni(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,me(i.wrapper.ownerDocument,"mouseup",a),me(i.wrapper.ownerDocument,"mousemove",l),me(i.scroller,"dragstart",f),me(i.scroller,"drop",a),o||(Ee(t),r.addNew||Ji(e.doc,n,null,null,r.extend),c||s&&9==u?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),de(i.wrapper.ownerDocument,"mouseup",a),de(i.wrapper.ownerDocument,"mousemove",l),de(i.scroller,"dragstart",f),de(i.scroller,"drop",a),kr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;Ee(t);var a,s,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=fr(e,t,!0,!0),s=-1;else{var l=ba(e,n,r.unit);a=r.extend?Yi(a,l.anchor,l.head,r.extend):l}r.addNew?-1==s?(s=c.length,to(o,xi(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(to(o,xi(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Xi(o,s,a,z):(s=0,to(o,new _i([a],0),z),u=o.sel);var f=n;function p(t){if(0!=rt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,l=V(We(o,n.line).text,n.ch,c),p=V(We(o,t.line).text,t.ch,c),d=Math.min(l,p),h=Math.max(l,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var y=We(o,m).text,g=Q(y,d,c);d==h?i.push(new ki(nt(m,g),nt(m,g))):y.length>g&&i.push(new ki(nt(m,g),nt(m,Q(y,h,c))))}i.length||i.push(new ki(n,n)),to(o,xi(e,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,O=a,E=ba(e,t,r.unit),T=O.anchor;rt(E.anchor,T)>0?(b=E.head,T=st(O.from(),E.anchor)):(b=E.anchor,T=at(O.to(),E.head));var w=u.ranges.slice(0);w[s]=function(e,t){var n=t.anchor,r=t.head,i=We(e.doc,n.line);if(0==rt(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=ce(o,r.ch,r.sticky),f=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?f<0:f>0}var p=o[c+(u?-1:0)],d=u==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new nt(n.line,h,m),r)}(e,new ki(ct(o,T),b)),to(o,xi(e,w,s),z)}}var d=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(Ee(t),i.input.focus()),me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ni(e,(function(t){0!==t.buttons&&xe(t)?function t(n){var a=++h,s=fr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=rt(s,f)){e.curOp.focus=L(),p(s);var u=Dr(i,o);(s.line>=u.to||s.line<u.from)&&setTimeout(ni(e,(function(){h==a&&t(n)})),150)}else{var c=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;c&&setTimeout(ni(e,(function(){h==a&&(i.scroller.scrollTop+=c,t(n))})),50)}}(t):m(t)})),y=ni(e,m);e.state.selectingText=y,de(i.wrapper.ownerDocument,"mousemove",v),de(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&Ee(e):2==i?(r&&Ji(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):kr(t)))}}function ba(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(nt(t.line,0),ct(e.doc,nt(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function Oa(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&&Ee(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!be(e,n))return we(t);o-=s.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var c=a.gutters.childNodes[u];if(c&&c.getBoundingClientRect().right>=i)return ve(e,n,e,Ze(e.doc,o),e.display.gutterSpecs[u].className,t),we(t)}}function Ea(e,t){return Oa(e,t,"gutterClick",!0)}function Ta(e,t){_n(e.display,t)||function(e,t){return!!be(e,"gutterContextMenu")&&Oa(e,t,"gutterContextMenu",!1)}(e,t)||ye(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qn(e)}ya.prototype.compare=function(e,t,n){return this.time+400>e&&0==rt(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},ka={},xa={};function Sa(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?de:me;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 Ca(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Qt(e)),lr(e),dr(e),qn(e),setTimeout((function(){return Kr(e)}),100)}function Na(e,t){var n=this;if(!(this instanceof Na))return new Na(e,t);this.options=t=t?P(t):{},P(ka,t,!1);var r=t.value;"string"==typeof r?r=new Lo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Na.inputStyles[t.inputStyle](this),o=this.display=new gi(e,r,i,t);for(var a in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Gr(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 U,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),s&&u<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;de(t.scroller,"mousedown",ni(e,ga)),de(t.scroller,"dblclick",s&&u<11?ni(e,(function(t){if(!ye(e,t)){var n=fr(e,t);if(n&&!Ea(e,t)&&!_n(e.display,t)){Ee(t);var r=e.findWordAt(n);Ji(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||Ee(t)}),de(t.scroller,"contextmenu",(function(t){return Ta(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(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}de(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!Ea(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!_n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(nt(s.line,0),ct(e.doc,nt(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ee(n)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Mr(e,t.scroller.scrollTop),Vr(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return wi(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||_e(t)},over:function(t){ye(e,t)||(function(e,t){var n=fr(e,t);if(n){var r=document.createDocumentFragment();Or(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(s&&(!e.state.draggingText||+new Date-Io<100))_e(t);else if(!ye(e,t)&&!_n(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ni(e,Fo),leave:function(t){ye(e,t)||Ro(e)}};var a=t.input.getField();de(a,"keyup",(function(t){return da.call(e,t)})),de(a,"keydown",ni(e,pa)),de(a,"keypress",ni(e,ha)),de(a,"focus",(function(t){return xr(e,t)})),de(a,"blur",(function(t){return Sr(e,t)}))}(this),Vo(),Wr(this),this.curOp.forceUpdate=!0,Mi(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout(M(xr,this),20):Sr(this),xa)xa.hasOwnProperty(a)&&xa[a](n,t[a],_a);hi(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Da.length;++l)Da[l](n);Yr(this),c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Na.defaults=ka,Na.optionHandlers=xa;var Da=[];function ja(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=mt(e,t).state:n="prev");var a=e.options.tabSize,s=We(o,t),u=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(l.length),s.text))==K||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(We(o,t-1).text,null,a):0:"add"==n?c=u+e.options.indentUnit:"subtract"==n?c=u-e.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)p+=a,f+="\t";if(p<c&&(f+=Y(c-p)),f!=l)return yo(o,f,nt(t,0),nt(t,l.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<l.length){var v=nt(t,l.length);Xi(o,h,new ki(v,v));break}}}Na.defineInitHook=function(e){return Da.push(e)};var Aa=null;function La(e){Aa=e}function Ia(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,u=Le(t),c=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join("\n")==t){if(r.ranges.length%Aa.text.length==0){c=[];for(var l=0;l<Aa.text.length;l++)c.push(o.splitLines(Aa.text[l]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=$(u,(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(),m=d.to();d.empty()&&(n&&n>0?h=nt(h.line,h.ch-n):e.state.overwrite&&!s?m=nt(m.line,Math.min(We(o,m.line).text.length,m.ch+J(u).length)):s&&Aa&&Aa.lineWise&&Aa.text.join("\n")==t&&(h=m=nt(h.line,0)));var v={from:h,to:m,text:c?c[p%c.length]:u,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};fo(e.doc,v),ln(e,"inputRead",e,v)}t&&!s&&Ra(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ti(t,(function(){return Ia(t,n,0,null,"paste")})),!0}function Ra(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 s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=ja(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(We(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ja(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function Ma(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:nt(i,0),head:nt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Pa(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Va(){var e=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=D("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),Pa(e),t}function Ua(e,t,n,r,i){var o=t,a=n,s=We(e,t.line);function u(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ta(t,n,r);var s,u=function(e,n){return ea(t,e instanceof nt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||In(e,t),er(e,t,s,n)):{begin:0,end:t.text.length}},l=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=l.end:p>=a.from&&p>=l.begin)){var d=f?"before":"after";return new nt(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new nt(n.line,u(e,1),"before"):new nt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:u(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=h(o+r,r,l);if(m)return m;var v=r>0?l.end:u(l.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,c(v)))?null:m}(e.cm,s,t,n):ta(s,t,n))){if(r||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new nt(a,t.ch,t.sticky),!(s=We(e,a))))return!1;t=na(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,l="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var d=s.text.charAt(t.ch)||"\n",h=ne(d,f)?"w":l&&"\n"==d?"n":!l||/\s/.test(d)?null:"p";if(!l||p||h||(h="s"),c&&c!=h){n<0&&(n=1,u(),t.sticky="after");break}if(h&&(c=h),n>0&&!u(!p))break}var m=so(e,t,o,a,!0);return it(o,m)&&(m.hitSide=!0),m}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(u-.5*or(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Xn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ka(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=We(e.doc,t.line),i=jn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=Pn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(e,t){return t&&(e.bad=!0),e}function za(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ha(e.clipPos(nt(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;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ga(o,t,n)}}function Ga(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!A(r,t))return Ha(nt(Xe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return Ha(nt(Xe(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=e.measure,c=u.maps;function l(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=Xe(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),nt(l,f)}}}var f=l(a,s,n);if(f)return Ha(f,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=l(p,p.firstChild,0))return Ha(nt(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(f=l(h,h.firstChild,-1))return Ha(nt(f.line,f.ch+m),i);m+=h.textContent.length}}qa.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!ye(r,e)){if(r.somethingSelected())La({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ma(r);La({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,H),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Aa.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Va(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Aa.text.join("\n");var u=document.activeElement;R(s),setTimeout((function(){r.display.lineSpace.removeChild(a),u.focus(),u==i&&n.showPrimarySelection()}),50)}}Pa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),de(i,"paste",(function(e){ye(r,e)||Fa(e,r)||u<=11&&setTimeout(ni(r,(function(){return t.updateFromDOM()})),20)})),de(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),de(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),de(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),de(i,"touchstart",(function(){return n.forceCompositionEnd()})),de(i,"input",(function(){t.composing||t.readFromDOMSoon()})),de(i,"copy",o),de(i,"cut",o)},qa.prototype.prepareSelection=function(){var e=br(this.cm,!1);return e.focus=this.cm.state.focused,e},qa.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qa.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=za(t,e.anchorNode,e.anchorOffset),s=za(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=rt(st(a,s),i)||0!=rt(at(a,s),o)){var u=t.display.view,c=i.line>=t.display.viewFrom&&Ka(t,i)||{node:u[0].measure.map[2],offset:0},l=o.line<t.display.viewTo&&Ka(t,o);if(!l){var f=u[u.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;l={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&l){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=x(c.node,c.offset,l.offset,l.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},qa.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)},qa.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},qa.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},qa.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},qa.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},qa.prototype.blur=function(){this.div.blur()},qa.prototype.getField=function(){return this.div},qa.prototype.supportsTouch=function(){return!0},qa.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():ti(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},qa.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},qa.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(y&&f&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(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=za(t,e.anchorNode,e.anchorOffset),r=za(t,e.focusNode,e.focusOffset);n&&r&&ti(t,(function(){to(t.doc,Si(n,r),H),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},qa.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=nt(a.line-1,We(r.doc,a.line-1).length)),s.ch==We(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=nt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=pr(r,a.line))?(t=Xe(i.view[0].line),n=i.view[0].node):(t=Xe(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,c,l=pr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=Xe(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),u=!1;function c(){a&&(o+=s,u&&(o+=s),a=u=!1)}function l(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void l(n);var o,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(nt(r,0),nt(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&l(Ye(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&c();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),h&&(a=!0)}else 3==t.nodeType&&l(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;f(t),t!=n;)t=t.nextSibling,u=!1;return o}(r,n,c,t,u)),p=Ye(r.doc,nt(t,0),nt(u,We(r.doc,u).text.length));f.length>1&&p.length>1;)if(J(f)==J(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],v=p[0],y=Math.min(m.length,v.length);d<y&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var g=J(f),b=J(p),O=Math.min(g.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<O&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var E=nt(t,d),T=nt(u,p.length?J(p).length-h:0);return f.length>1||f[0]||rt(E,T)?(yo(r.doc,f,E,T,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.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))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ti(this.cm,(function(){return dr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ni(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var Qa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};Qa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ye(r,e)){if(r.somethingSelected())La({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ma(r);La({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,H):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),de(i,"input",(function(){s&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(i,"paste",(function(e){ye(r,e)||Fa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(i,"cut",o),de(i,"copy",o),de(e.scroller,"paste",(function(t){if(!_n(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),de(e.lineSpace,"selectstart",(function(t){_n(e,t)||Ee(t)})),de(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Qa.prototype.createField=function(e){this.wrapper=Va(),this.textarea=this.wrapper.firstChild},Qa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=br(e);if(e.options.moveInputWithCursor){var i=Yn(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},Qa.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Qa.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&&R(this.textarea),s&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&u>=9&&(this.hasSelection=null))}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Qa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Qa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(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(s&&u>=9&&this.hasSelection===i||b&&/[\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,c=Math.min(r.length,i.length);a<c&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return ti(t,(function(){Ia(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},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){s&&u>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=fr(n,e),a=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ni(n,to)(n.doc,Si(o),H);var l,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(l=window.scrollY),r.input.focus(),c&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&u>=9&&m(),_?(_e(e),de(window,"mouseup",(function e(){me(window,"mouseup",e),setTimeout(v,20)}))):setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,s&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),null!=i.selectionStart)){(!s||s&&u<9)&&m();var e=0;r.detectingSelectAll=setTimeout((function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ni(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())}),200)}}},Qa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Qa.prototype.setUneditable=function(){},Qa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ai(e)}),!0),n("indentUnit",2,Ai,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Li(e),qn(e),dr(e)}),!0),n("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(nt(r,o))}r++}));for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],nt(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=_a&&e.refresh()})),n("specialCharPlaceholder",en,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Xo(t),i=n!=_a&&Xo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ca,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=mi(t,e.options.lineNumbers),yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ur(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Kr(e)}),!0),n("scrollbarStyle","native",(function(e){Gr(e),Kr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=mi(e.options.gutters,t),yi(e)}),!0),n("firstLineNumber",1,yi,!0),n("lineNumberFormatter",(function(e){return e}),yi,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Li,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Na),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)&&ni(this,t[e])(this,n,i),ve(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"](Xo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ri((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,dr(this)})),removeOverlay:ri((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}})),indentLine:ri((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),et(this.doc,e)&&ja(this,e,t,n)})),indentSelection:ri((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(ja(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u<n;++u)ja(this,u,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Xi(this.doc,r,new ki(o,c[r].to()),H)}}})),getTokenAt:function(e,t){return Ot(this,e,t)},getLineTokens:function(e,t){return Ot(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=ct(this.doc,e);var t,n=ht(this,We(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-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=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var c=i._global[u];c.pred(o,this)&&-1==B(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return mt(this,(e=ut(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Yn(this,null==e?n.head:"object"==r(e)?ct(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Wn(this,ct(this.doc,e),t||"page")},coordsChar:function(e,t){return Xn(this,(e=Qn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Qn(this,{top:e,left:0},t||"page").top,Ze(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;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=We(this.doc,e)}else r=e;return Gn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-zt(r):0)},defaultTextHeight:function(){return or(this.display)},defaultCharWidth:function(){return ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,u=this.display,c=(e=Yn(this,ct(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var f=Math.max(u.wrapper.clientHeight,this.doc.height),p=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(c=e.bottom),l+t.offsetWidth>p&&(l=p-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(l=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(o=this,a={left:l,top:c,right:l+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=jr(o,a)).scrollTop&&Mr(o,s.scrollTop),null!=s.scrollLeft&&Vr(o,s.scrollLeft))},triggerOnKeyDown:ri(pa),triggerOnKeyPress:ri(ha),triggerOnKeyUp:da,triggerOnMouseDown:ri(ga),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:ri((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ct(this.doc,e),a=0;a<t&&!(o=Ua(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ri((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ua(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),G)})),deleteH:ri((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Zo(this,(function(n){var i=Ua(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ct(this.doc,e),s=0;s<t;++s){var u=Yn(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Ba(this,u,i,n)).hitSide)break}return a},moveV:ri((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 e<0?a.from():a.to();var s=Yn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Ar(n,Wn(n,u,"div").top-s.top),u}),G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=We(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(nt(e.line,n),nt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ri((function(e,t){Ir(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Cn(this)-this.display.barHeight,width:e.scrollWidth-Cn(this)-this.display.barWidth,clientHeight:Dn(this),clientWidth:Nn(this)}},scrollIntoView:ri((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:nt(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?function(e,t){Fr(e),e.curOp.scrollToPos=t}(this,e):Rr(this,e.from,e.to,e.margin)})),setSize:ri((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(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&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){hr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return ti(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return Yr(this)},refresh:ri((function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,qn(this),Ir(this,this.doc.scrollLeft,this.doc.scrollTop),fi(this.display),(null==e||Math.abs(e-or(this.display))>.5)&&lr(this),ve(this,"refresh",this)})),swapDoc:ri((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mi(this,e),qn(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(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}},Oe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Na);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Ya in Lo.prototype)Lo.prototype.hasOwnProperty(Ya)&&B(Wa,Ya)<0&&(Na.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Lo.prototype[Ya]));return Oe(Lo),Na.inputStyles={textarea:Qa,contenteditable:qa},Na.defineMode=function(e){Na.defaults.mode||"null"==e||(Na.defaults.mode=e),Ve.apply(this,arguments)},Na.defineMIME=function(e,t){Pe[e]=t},Na.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Na.defineMIME("text/plain","null"),Na.defineExtension=function(e,t){Na.prototype[e]=t},Na.defineDocExtension=function(e,t){Lo.prototype[e]=t},Na.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Na((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=me,e.on=de,e.wheelEventPixels=Ti,e.Doc=Lo,e.splitLines=Le,e.countColumn=V,e.findColumn=Q,e.isWordChar=te,e.Pass=K,e.signal=ve,e.Line=Wt,e.changeEnd=Ci,e.scrollbarModel=zr,e.Pos=nt,e.cmpPos=rt,e.modes=Me,e.mimeModes=Pe,e.resolveMode=Ue,e.getMode=Be,e.modeExtensions=qe,e.extendMode=Ke,e.copyState=He,e.startState=Ge,e.innerMode=ze,e.commands=ra,e.keyMap=zo,e.keyName=$o,e.isModifierKey=Yo,e.lookupKey=Wo,e.normalizeKeyMap=Qo,e.StringStream=Qe,e.SharedTextMarker=No,e.TextMarker=So,e.LineWidget=_o,e.e_preventDefault=Ee,e.e_stopPropagation=Te,e.e_stop=_e,e.addClass=I,e.contains=A,e.rmClass=S,e.keyNames=Bo}(Na),Na.version="5.49.2",Na}))},void 0===(o="function"==typeof i?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.a=r},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",(function(){return f})),n.d(t,"__Directive",(function(){return p})),n.d(t,"__DirectiveLocation",(function(){return d})),n.d(t,"__Type",(function(){return h})),n.d(t,"__Field",(function(){return m})),n.d(t,"__InputValue",(function(){return v})),n.d(t,"__EnumValue",(function(){return y})),n.d(t,"TypeKind",(function(){return g})),n.d(t,"__TypeKind",(function(){return b})),n.d(t,"SchemaMetaFieldDef",(function(){return O})),n.d(t,"TypeMetaFieldDef",(function(){return E})),n.d(t,"TypeNameMetaFieldDef",(function(){return T})),n.d(t,"introspectionTypes",(function(){return w})),n.d(t,"isIntrospectionType",(function(){return _}));var r=n(7),i=n(2),o=n(12),a=n(11),s=n(5),u=n(33),c=n(9),l=n(0),f=new l.f({name:"__Schema",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:Object(l.e)(Object(l.d)(Object(l.e)(h))),resolve:function(e){return Object(r.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:Object(l.e)(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:Object(l.e)(Object(l.d)(Object(l.e)(p))),resolve:function(e){return e.getDirectives()}}}}}),p=new l.f({name:"__Directive",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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},locations:{type:Object(l.e)(Object(l.d)(Object(l.e)(d))),resolve:function(e){return e.locations}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(v))),resolve:function(e){return e.args}}}}}),d=new l.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new l.f({name:"__Type",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:Object(l.e)(b),resolve:function(e){return Object(l.R)(e)?g.SCALAR:Object(l.N)(e)?g.OBJECT:Object(l.H)(e)?g.INTERFACE:Object(l.T)(e)?g.UNION:Object(l.E)(e)?g.ENUM:Object(l.F)(e)?g.INPUT_OBJECT:Object(l.J)(e)?g.LIST:Object(l.L)(e)?g.NON_NULL:void Object(o.a)(!1,'Unexpected type: "'.concat(Object(i.a)(e),'".'))}},name:{type:c.e,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:c.e,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:Object(l.d)(Object(l.e)(m)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.N)(e)||Object(l.H)(e)){var i=Object(r.a)(e.getFields());return n||(i=i.filter((function(e){return!e.deprecationReason}))),i}return null}},interfaces:{type:Object(l.d)(Object(l.e)(h)),resolve:function(e){if(Object(l.N)(e))return e.getInterfaces()}},possibleTypes:{type:Object(l.d)(Object(l.e)(h)),resolve:function(e,t,n,r){var i=r.schema;if(Object(l.C)(e))return i.getPossibleTypes(e)}},enumValues:{type:Object(l.d)(Object(l.e)(y)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.E)(e)){var r=e.getValues();return n||(r=r.filter((function(e){return!e.deprecationReason}))),r}}},inputFields:{type:Object(l.d)(Object(l.e)(v)),resolve:function(e){if(Object(l.F)(e))return Object(r.a)(e.getFields())}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new l.f({name:"__Field",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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(v))),resolve:function(e){return e.args}},type:{type:Object(l.e)(h),resolve:function(e){return e.type}},isDeprecated:{type:Object(l.e)(c.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),v=new l.f({name:"__InputValue",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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},type:{type:Object(l.e)(h),resolve:function(e){return e.type}},defaultValue:{type:c.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=Object(u.a)(e.defaultValue,e.type);return t?Object(a.a)(t):null}}}}}),y=new l.f({name:"__EnumValue",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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isDeprecated:{type:Object(l.e)(c.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),g=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new l.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:g.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:g.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:g.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:g.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:g.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:g.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:g.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:g.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),O={name:"__schema",type:Object(l.e)(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:Object(l.e)(c.e),defaultValue:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},deprecationReason:void 0,extensions:void 0,astNode:void 0},T={name:"__typename",type:Object(l.e)(c.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},deprecationReason:void 0,extensions:void 0,astNode:void 0},w=Object.freeze([f,p,d,h,m,v,y,b]);function _(e){return Object(l.K)(e)&&w.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";var r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},i=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(2),a=n(15),s=n(1),u=n(0);n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return g}));var c=2147483647,l=-2147483648;var f=new u.g({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:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!i(t))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(t>c||t<l)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!i(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>c||e<l)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind===s.Kind.INT){var t=parseInt(e.value,10);if(t<=c&&t>=l)return t}}});var p=new u.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!r(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!r(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.FLOAT||e.kind===s.Kind.INT?parseFloat(e.value):void 0}});function d(e){if(Object(a.a)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!Object(a.a)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var h=new u.g({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:function(e){var t=d(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(r(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.STRING?e.value:void 0}});var m=new u.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(r(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.BOOLEAN?e.value:void 0}});var v=new u.g({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:function(e){var t=d(e);if("string"==typeof t)return t;if(i(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(i(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){return e.kind===s.Kind.STRING||e.kind===s.Kind.INT?e.value:void 0}}),y=Object.freeze([h,f,p,m,v]);function g(e){return Object(u.R)(e)&&y.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(t){return(e="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)}var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=n(63),f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g,v=n(43);t.lib={},t.lib.mdurl=n(64),t.lib.ucmicro=n(124),t.assign=function(t){return Array.prototype.slice.call(arguments,1).forEach((function(n){if(n){if("object"!==e(n))throw new TypeError(n+"must be object");Object.keys(n).forEach((function(e){t[e]=n[e]}))}})),t},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return i(l,t)?l[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17),i=n(29);function o(e){return Object(r.c)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return u([l("",t,": ")+n+l("(",u(r,", "),")"),u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return("fragment ".concat(t).concat(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(i," ")," "))+o)},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.c)(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"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(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 u(["schema",u(t," "),c(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["interface",t,u(n," "),c(r)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend interface",t,u(n," "),c(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function c(e){return e&&0!==e.length?"{\n"+f(u(e,"\n"))+"\n}":""}function l(e,t,n){return t?e+t+(n||""):""}function f(e){return e&&" "+e.replace(/\n/g,"\n ")}function p(e){return-1!==e.indexOf("\n")}function d(e){return e&&e.some(p)}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t||"Unexpected invariant triggered")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r=Object.freeze({major:14,minor:5,patch:8,preReleaseTag:null});function i(e){return Boolean(e&&"function"==typeof e.then)}var o=n(2),a=n(4),s=n(25),u=n(3);function c(e,t,n){return new u.a("Syntax Error: ".concat(n),void 0,e,[t])}var l=n(1),f=n(24),p=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(a.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(a.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(f.a)(p);var d=n(29),h=Object.freeze({SOF:"<SOF>",EOF:"<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"});function m(e,t){var n=new g(h.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:v,lookahead:y}}function v(){return this.lastToken=this.token,this.token=this.lookahead()}function y(){var e=this.token;if(e.kind!==h.EOF)do{e=e.next||(e.next=O(this,e))}while(e.kind===h.COMMENT);return e}function g(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 b(e){return isNaN(e)?h.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function O(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=e.charCodeAt(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===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(r,t.end,e),a=e.line,s=1+o-e.lineStart;if(o>=i)return new g(h.EOF,i,i,a,s,t);var u=r.charCodeAt(o);switch(u){case 33:return new g(h.BANG,o,o+1,a,s,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new g(h.COMMENT,t,s,n,r,i,a.slice(t+1,s))}(n,o,a,s,t);case 36:return new g(h.DOLLAR,o,o+1,a,s,t);case 38:return new g(h.AMP,o,o+1,a,s,t);case 40:return new g(h.PAREN_L,o,o+1,a,s,t);case 41:return new g(h.PAREN_R,o,o+1,a,s,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new g(h.SPREAD,o,o+3,a,s,t);break;case 58:return new g(h.COLON,o,o+1,a,s,t);case 61:return new g(h.EQUALS,o,o+1,a,s,t);case 64:return new g(h.AT,o,o+1,a,s,t);case 91:return new g(h.BRACKET_L,o,o+1,a,s,t);case 93:return new g(h.BRACKET_R,o,o+1,a,s,t);case 123:return new g(h.BRACE_L,o,o+1,a,s,t);case 124:return new g(h.PIPE,o,o+1,a,s,t);case 125:return new g(h.BRACE_R,o,o+1,a,s,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 function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new g(h.NAME,t,s,n,r,i,o.slice(t,s))}(n,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,s=n,u=t,l=!1;45===s&&(s=a.charCodeAt(++u));if(48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw c(e,u,"Invalid number, unexpected digit after 0: ".concat(b(s),"."))}else u=E(e,u,s),s=a.charCodeAt(u);46===s&&(l=!0,s=a.charCodeAt(++u),u=E(e,u,s),s=a.charCodeAt(u));69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=E(e,u,s),s=a.charCodeAt(u));if(46===s||69===s||101===s)throw c(e,u,"Invalid number, expected digit but got: ".concat(b(s),"."));return new g(l?h.FLOAT:h.INT,t,u,r,i,o,a.slice(t,u))}(n,o,u,a,s,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?function(e,t,n,r,i,o){var a=e.body,s=t+3,u=s,l=0,f="";for(;s<a.length&&!isNaN(l=a.charCodeAt(s));){if(34===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return f+=a.slice(u,s),new g(h.BLOCK_STRING,t,s+3,n,r,i,Object(d.a)(f));if(l<32&&9!==l&&10!==l&&13!==l)throw c(e,s,"Invalid character within String: ".concat(b(l),"."));10===l?(++s,++o.line,o.lineStart=s):13===l?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(f+=a.slice(u,s)+'"""',u=s+=4):++s}throw c(e,s,"Unterminated string.")}(n,o,a,s,t,e):function(e,t,n,r,i){var o=e.body,a=t+1,s=a,u=0,l="";for(;a<o.length&&!isNaN(u=o.charCodeAt(a))&&10!==u&&13!==u;){if(34===u)return l+=o.slice(s,a),new g(h.STRING,t,a+1,n,r,i,l);if(u<32&&9!==u)throw c(e,a,"Invalid character within String: ".concat(b(u),"."));if(++a,92===u){switch(l+=o.slice(s,a-1),u=o.charCodeAt(a)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var f=(d=o.charCodeAt(a+1),m=o.charCodeAt(a+2),v=o.charCodeAt(a+3),y=o.charCodeAt(a+4),T(d)<<12|T(m)<<8|T(v)<<4|T(y));if(f<0){var p=o.slice(a+1,a+5);throw c(e,a,"Invalid character escape sequence: \\u".concat(p,"."))}l+=String.fromCharCode(f),a+=4;break;default:throw c(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++a,s=a}}var d,m,v,y;throw c(e,a,"Unterminated string.")}(n,o,a,s,t)}throw c(n,o,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(b(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(b(e),".")}(u))}function E(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw c(e,i,"Invalid number, expected digit but got: ".concat(b(o),"."))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object(s.a)(g,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var w=n(5);function _(e,t){return new S(e,t).parseDocument()}function k(e,t){var n=new S(e,t);n.expectToken(h.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(h.EOF),r}function x(e,t){var n=new S(e,t);n.expectToken(h.SOF);var r=n.parseTypeReference();return n.expectToken(h.EOF),r}var S=function(){function e(e,t){var n="string"==typeof e?new p(e):e;n instanceof p||Object(a.a)(0,"Must provide Source. Received: ".concat(Object(o.a)(n))),this._lexer=m(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(h.NAME);return{kind:l.Kind.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:l.Kind.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(h.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(h.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(h.BRACE_L))return{kind:l.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(h.NAME)&&(t=this.parseName()),{kind:l.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(h.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:l.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(h.DOLLAR),{kind:l.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:l.Kind.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(h.COLON)?(e=r,t=this.parseName()):t=r,{kind:l.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(h.COLON),{kind:l.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:l.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(h.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(h.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?{kind:l.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:l.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:l.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:l.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this._lexer.advance(),{kind:l.Kind.INT,value:t.value,loc:this.loc(t)};case h.FLOAT:return this._lexer.advance(),{kind:l.Kind.FLOAT,value:t.value,loc:this.loc(t)};case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:l.Kind.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:l.Kind.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:l.Kind.ENUM,value:t.value,loc:this.loc(t)});case h.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:l.Kind.STRING,value:e.value,block:e.kind===h.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:l.Kind.LIST,values:this.any(h.BRACKET_L,(function(){return t.parseValueLiteral(e)}),h.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:l.Kind.OBJECT,fields:this.any(h.BRACE_L,(function(){return t.parseObjectField(e)}),h.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),{kind:l.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(h.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(h.AT),{kind:l.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(h.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(h.BRACKET_R),e={kind:l.Kind.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(h.BANG)?{kind:l.Kind.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:l.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===h.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return{kind:l.Kind.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);var n=this.parseNamedType();return{kind:l.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:l.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:l.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(h.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(h.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(h.BRACE_L)&&this._lexer.lookahead().kind===h.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(h.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:l.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(h.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:l.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:l.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:l.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(h.EQUALS)){this.expectOptionalToken(h.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:l.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:l.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:l.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===h.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:l.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:l.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:l.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.Kind.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:l.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(h.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(h.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==w.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new C(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw c(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(N(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==h.NAME||t.value!==e)throw c(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(N(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return c(this._lexer.source,t.start,"Unexpected ".concat(N(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function C(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function N(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Object(s.a)(C,(function(){return{start:this.start,end:this.end}}));var D=n(17),j=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},A=Array.prototype.flatMap,L=A?function(e,t){return A.call(e,t)}:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r]);Array.isArray(i)?n=n.concat(i):n.push(i)}return n},I=n(7),F=n(26),R=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function M(e){var t=P(e);if(t)throw t;return e}function P(e,t){return"string"==typeof e||Object(a.a)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1]?new u.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),t):R.test(e)?void 0:new u.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}var V=n(0);function U(e,t){return e===t||(Object(V.L)(e)&&Object(V.L)(t)?U(e.ofType,t.ofType):!(!Object(V.J)(e)||!Object(V.J)(t))&&U(e.ofType,t.ofType))}function B(e,t,n){return t===n||(Object(V.L)(n)?!!Object(V.L)(t)&&B(e,t.ofType,n.ofType):Object(V.L)(t)?B(e,t.ofType,n):Object(V.J)(n)?!!Object(V.J)(t)&&B(e,t.ofType,n.ofType):!Object(V.J)(t)&&!!(Object(V.C)(n)&&Object(V.N)(t)&&e.isPossibleType(n,t)))}function q(e,t,n){return t===n||(Object(V.C)(t)?Object(V.C)(n)?e.getPossibleTypes(t).some((function(t){return e.isPossibleType(n,t)})):e.isPossibleType(t,n):!!Object(V.C)(n)&&e.isPossibleType(n,t))}var K=n(20),H=n(28),z=n(15),G=n(9);function Q(e){return Object(H.a)(e,Y)}function W(e){if(!Q(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL directive."));return e}var Y=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&Object(K.a)(e.extensions),this.astNode=e.astNode,e.name||Object(a.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(a.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};Object(z.a)(t)&&!Array.isArray(t)||Object(a.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(F.a)(t).map((function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(K.a)(n.extensions),astNode:n.astNode}}))}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(V.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();Object(f.a)(Y),Object(s.a)(Y);var J=new Y({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[w.a.FIELD,w.a.FRAGMENT_SPREAD,w.a.INLINE_FRAGMENT],args:{if:{type:Object(V.e)(G.a),description:"Included when true."}}}),$=new Y({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[w.a.FIELD,w.a.FRAGMENT_SPREAD,w.a.INLINE_FRAGMENT],args:{if:{type:Object(V.e)(G.a),description:"Skipped when true."}}}),X="No longer supported",Z=new Y({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[w.a.FIELD_DEFINITION,w.a.ENUM_VALUE],args:{reason:{type:G.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:X}}}),ee=Object.freeze([J,$,Z]);function te(e){return Q(e)&&ee.some((function(t){return t.name===e.name}))}var ne=n(8);function re(e){return Object(H.a)(e,oe)}function ie(e){if(!re(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL schema."));return e}var oe=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,Object(z.a)(e)||Object(a.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(a.a)(0,'"types" must be Array if provided but got: '.concat(Object(o.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(a.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(o.a)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||Object(a.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(o.a)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&Object(K.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||ee;var t=[this._queryType,this._mutationType,this._subscriptionType,ne.__Schema].concat(e.types),n=Object.create(null);n=t.reduce(ae,n),n=this._directives.reduce(se,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var r=0,i=Object(I.a)(this._typeMap);r<i.length;r++){var s=i[r];if(Object(V.N)(s))for(var u=0,c=s.getInterfaces();u<c.length;u++){var l=c[u];if(Object(V.H)(l)){var f=this._implementations[l.name];f?f.push(s):this._implementations[l.name]=[s]}}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(e){return this.getTypeMap()[e]},t.getPossibleTypes=function(e){return Object(V.T)(e)?e.getTypes():this._implementations[e.name]||[]},t.isPossibleType=function(e,t){if(null==this._possibleTypeMap[e.name]){for(var n=Object.create(null),r=0,i=this.getPossibleTypes(e);r<i.length;r++){n[i[r].name]=!0}this._possibleTypeMap[e.name]=n}return Boolean(this._possibleTypeMap[e.name][t.name])},t.getDirectives=function(){return this._directives},t.getDirective=function(e){return j(this.getDirectives(),(function(t){return t.name===e}))},t.toConfig=function(){return{query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object(I.a)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[],assumeValid:void 0!==this.__validationErrors,allowedLegacyNames:this.__allowedLegacyNames}},e}();function ae(e,t){if(!t)return e;var n=Object(V.A)(t),r=e[n.name];if(r){if(r!==n)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(n.name,'".'));return e}e[n.name]=n;var i=e;if(Object(V.T)(n)&&(i=n.getTypes().reduce(ae,i)),Object(V.N)(n)&&(i=n.getInterfaces().reduce(ae,i)),Object(V.N)(n)||Object(V.H)(n))for(var o=0,a=Object(I.a)(n.getFields());o<a.length;o++){var s=a[o];i=ae(i=s.args.map((function(e){return e.type})).reduce(ae,i),s.type)}if(Object(V.F)(n))for(var u=0,c=Object(I.a)(n.getFields());u<c.length;u++){i=ae(i,c[u].type)}return i}function se(e,t){return Q(t)?t.args.reduce((function(e,t){return ae(e,t.type)}),e):e}function ue(e){if(ie(e),e.__validationErrors)return e.__validationErrors;var t=new le(e);!function(e){var t=e.schema,n=t.getQueryType();n?Object(V.N)(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(o.a)(n),"."),fe(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var r=t.getMutationType();r&&!Object(V.N)(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(o.a)(r),"."),fe(t,r,"mutation"));var i=t.getSubscriptionType();i&&!Object(V.N)(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(o.a)(i),"."),fe(t,i,"subscription"))}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(Q(r)){pe(e,r);for(var i=Object.create(null),a=function(t,n){var a=n[t],s=a.name;if(pe(e,a),i[s])return e.reportError("Argument @".concat(r.name,"(").concat(s,":) can only be defined once."),r.astNode&&r.args.filter((function(e){return e.name===s})).map((function(e){return e.astNode}))),"continue";i[s]=!0,Object(V.G)(a.type)||e.reportError("The type of @".concat(r.name,"(").concat(s,":) must be Input Type ")+"but got: ".concat(Object(o.a)(a.type),"."),a.astNode)},s=0,u=r.args;s<u.length;s++)a(s,u)}else e.reportError("Expected directive but got: ".concat(Object(o.a)(r),"."),r&&r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;for(var a=Object(I.a)(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(Object(V.L)(u.type)&&Object(V.F)(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var f=n.slice(l),p=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(p,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[o.name]=void 0}}(e),n=e.schema.getTypeMap(),r=0,i=Object(I.a)(n);r<i.length;r++){var a=i[r];Object(V.K)(a)?(Object(ne.isIntrospectionType)(a)||pe(e,a),Object(V.N)(a)?(de(e,a),he(e,a)):Object(V.H)(a)?de(e,a):Object(V.T)(a)?ve(e,a):Object(V.E)(a)?ye(e,a):Object(V.F)(a)&&(ge(e,a),t(a))):e.reportError("Expected GraphQL named type but got: ".concat(Object(o.a)(a),"."),a&&a.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function ce(e){var t=ue(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}Object(f.a)(oe);var le=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new u.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function fe(e,t,n){for(var r=Oe(e,(function(e){return e.operationTypes})),i=0;i<r.length;i++){var o=r[i];if(o.operation===n)return o.type}return t.astNode}function pe(e,t){if(-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=P(t.name,t.astNode||void 0);n&&e.addError(n)}}function de(e,t){var n=Object(I.a)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),be(t));for(var r=0;r<n.length;r++){var i=n[r];pe(e,i),Object(V.O)(i.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Output Type ")+"but got: ".concat(Object(o.a)(i.type),"."),i.astNode&&i.astNode.type);for(var a=Object.create(null),s=function(n,r){var s=r[n],u=s.name;pe(e,s),a[u]&&e.reportError("Field argument ".concat(t.name,".").concat(i.name,"(").concat(u,":) can only be defined once."),i.args.filter((function(e){return e.name===u})).map((function(e){return e.astNode}))),a[u]=!0,Object(V.G)(s.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name,"(").concat(u,":) must be Input ")+"Type but got: ".concat(Object(o.a)(s.type),"."),s.astNode&&s.astNode.type)},u=0,c=i.args;u<c.length;u++)s(u,c)}}function he(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var a=i[r];Object(V.H)(a)?n[a.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(a.name," once."),Ee(t,a)):(n[a.name]=!0,me(e,t,a)):e.reportError("Type ".concat(Object(o.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(o.a)(a),"."),Ee(t,a))}}function me(e,t,n){for(var r=t.getFields(),i=n.getFields(),a=0,s=Object(F.a)(i);a<s.length;a++){var u=s[a],c=u[0],l=u[1],f=r[c];if(f){B(e.schema,f.type,l.type)||e.reportError("Interface field ".concat(n.name,".").concat(c," expects type ")+"".concat(Object(o.a)(l.type)," but ").concat(t.name,".").concat(c," ")+"is type ".concat(Object(o.a)(f.type),"."),[l.astNode&&l.astNode.type,f.astNode&&f.astNode.type]);for(var p=function(r,i){var a=i[r],s=a.name,u=j(f.args,(function(e){return e.name===s}));if(!u)return e.reportError("Interface field argument ".concat(n.name,".").concat(c,"(").concat(s,":) expected but ").concat(t.name,".").concat(c," does not provide it."),[a.astNode,f.astNode]),"continue";U(a.type,u.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(c,"(").concat(s,":) ")+"expects type ".concat(Object(o.a)(a.type)," but ")+"".concat(t.name,".").concat(c,"(").concat(s,":) is type ")+"".concat(Object(o.a)(u.type),"."),[a.astNode&&a.astNode.type,u.astNode&&u.astNode.type])},d=0,h=l.args;d<h.length;d++)p(d,h);for(var m=function(r,i){var o=i[r],a=o.name;!j(l.args,(function(e){return e.name===a}))&&Object(V.P)(o)&&e.reportError("Object field ".concat(t.name,".").concat(c," includes required argument ").concat(a," that is missing from the Interface field ").concat(n.name,".").concat(c,"."),[o.astNode,l.astNode])},v=0,y=f.args;v<y.length;v++)m(v,y)}else e.reportError("Interface field ".concat(n.name,".").concat(c," expected but ").concat(t.name," does not provide it."),[l.astNode].concat(be(t)))}}function ve(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),be(t));for(var r=Object.create(null),i=0;i<n.length;i++){var a=n[i];r[a.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(a.name," once."),Te(t,a.name)):(r[a.name]=!0,Object(V.N)(a)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(Object(o.a)(a),"."),Te(t,String(a))))}}function ye(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),be(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;pe(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function ge(e,t){var n=Object(I.a)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),be(t));for(var r=0;r<n.length;r++){var i=n[r];pe(e,i),Object(V.G)(i.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Input Type ")+"but got: ".concat(Object(o.a)(i.type),"."),i.astNode&&i.astNode.type)}}function be(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function Oe(e,t){return L(be(e),(function(e){return t(e)||[]}))}function Ee(e,t){return Oe(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function Te(e,t){return Oe(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}var we=n(12);function _e(e,t){var n;return t.kind===l.Kind.LIST_TYPE?(n=_e(e,t.type))&&Object(V.d)(n):t.kind===l.Kind.NON_NULL_TYPE?(n=_e(e,t.type))&&Object(V.e)(n):t.kind===l.Kind.NAMED_TYPE?e.getType(t.name.value):void Object(we.a)(!1,"Unexpected type node: "+Object(o.a)(t))}var ke=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||xe,n&&(Object(V.G)(n)&&this._inputTypeStack.push(n),Object(V.D)(n)&&this._parentTypeStack.push(n),Object(V.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case l.Kind.SELECTION_SET:var n=Object(V.A)(this.getType());this._parentTypeStack.push(Object(V.D)(n)?n:void 0);break;case l.Kind.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(Object(V.O)(i)?i:void 0);break;case l.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case l.Kind.OPERATION_DEFINITION:var a;"query"===e.operation?a=t.getQueryType():"mutation"===e.operation?a=t.getMutationType():"subscription"===e.operation&&(a=t.getSubscriptionType()),this._typeStack.push(Object(V.N)(a)?a:void 0);break;case l.Kind.INLINE_FRAGMENT:case l.Kind.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?_e(t,s):Object(V.A)(this.getType());this._typeStack.push(Object(V.O)(u)?u:void 0);break;case l.Kind.VARIABLE_DEFINITION:var c=_e(t,e.type);this._inputTypeStack.push(Object(V.G)(c)?c:void 0);break;case l.Kind.ARGUMENT:var f,p,d=this.getDirective()||this.getFieldDef();d&&(f=j(d.args,(function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Object(V.G)(p)?p:void 0);break;case l.Kind.LIST:var h=Object(V.B)(this.getInputType()),m=Object(V.J)(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(V.G)(m)?m:void 0);break;case l.Kind.OBJECT_FIELD:var v,y,g=Object(V.A)(this.getInputType());Object(V.F)(g)&&(y=g.getFields()[e.name.value])&&(v=y.type),this._defaultValueStack.push(y?y.defaultValue:void 0),this._inputTypeStack.push(Object(V.G)(v)?v:void 0);break;case l.Kind.ENUM:var b,O=Object(V.A)(this.getInputType());Object(V.E)(O)&&(b=O.getValue(e.value)),this._enumValue=b}},t.leave=function(e){switch(e.kind){case l.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case l.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case l.Kind.DIRECTIVE:this._directive=null;break;case l.Kind.OPERATION_DEFINITION:case l.Kind.INLINE_FRAGMENT:case l.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case l.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case l.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case l.Kind.LIST:case l.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case l.Kind.ENUM:this._enumValue=null}},e}();function xe(e,t,n){var r=n.name.value;return r===ne.SchemaMetaFieldDef.name&&e.getQueryType()===t?ne.SchemaMetaFieldDef:r===ne.TypeMetaFieldDef.name&&e.getQueryType()===t?ne.TypeMetaFieldDef:r===ne.TypeNameMetaFieldDef.name&&Object(V.D)(t)?ne.TypeNameMetaFieldDef:Object(V.N)(t)||Object(V.H)(t)?t.getFields()[r]:void 0}var Se=n(58);function Ce(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new u.a(function(e){return'There can be only one operation named "'.concat(e,'".')}(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function Ne(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===l.Kind.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new u.a("This anonymous operation must be the only defined operation.",n))}}}function De(e){return{OperationDefinition:function(t){var n;"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new u.a((n=t.name&&t.name.value)?'Subscription "'.concat(n,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}var je=5;function Ae(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=n[1],o=" Did you mean ";switch(r&&(o+=r+" "),i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}var a=i.slice(0,je),s=a.pop();return o+a.join(", ")+", or "+s+"?"}function Le(e,t){for(var n=Object.create(null),r=e.length/2,i=0;i<t.length;i++){var o=t[i],a=Ie(e,o);a<=Math.max(r,o.length/2,1)&&(n[o]=a)}return Object.keys(n).sort((function(e,t){return n[e]-n[t]}))}function Ie(e,t){if(e===t)return 0;var n=[],r=e.toLowerCase(),i=t.toLowerCase(),o=r.length,a=i.length;if(r===i)return 1;for(var s=0;s<=o;s++)n[s]=[s];for(var u=1;u<=a;u++)n[0][u]=u;for(var c=1;c<=o;c++)for(var l=1;l<=a;l++){var f=r[c-1]===i[l-1]?0:1;n[c][l]=Math.min(n[c-1][l]+1,n[c][l-1]+1,n[c-1][l-1]+f),c>1&&l>1&&r[c-1]===i[l-2]&&r[c-2]===i[l-1]&&(n[c][l]=Math.min(n[c][l],n[c-2][l-2]+f))}return n[o][a]}var Fe=n(27);function Re(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var a=o[i];Object(Fe.d)(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,c){var l,f=t.name.value;if(!n[f]&&!r[f]){var p=c[2]||o,d=(l=p,Boolean(l&&!Array.isArray(l)&&(Object(Fe.g)(l)||Object(Fe.h)(l))));if(d&&function(e){return-1!==Me.indexOf(e)}(f))return;var h=Le(f,d?Me.concat(s):s);e.reportError(new u.a(function(e,t){return'Unknown type "'.concat(e,'".')+Ae(t.map((function(e){return'"'.concat(e,'"')})))}(f,h),t))}}}}var Me=G.g.map((function(e){return e.name}));var Pe=n(11);function Ve(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=_e(e.getSchema(),n);r&&!Object(V.D)(r)&&e.reportError(new u.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(Pe.a)(n)),n))}},FragmentDefinition:function(t){var n=_e(e.getSchema(),t.typeCondition);n&&!Object(V.D)(n)&&e.reportError(new u.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(t,'".')}(t.name.value,Object(Pe.a)(t.typeCondition)),t.typeCondition))}}}function Ue(e){return{VariableDefinition:function(t){var n=_e(e.getSchema(),t.type);if(n&&!Object(V.G)(n)){var r=t.variable.name.value;e.reportError(new u.a(function(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}(r,Object(Pe.a)(t.type)),t.type))}}}}function Be(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;n&&(Object(V.I)(Object(V.A)(n))?r&&e.reportError(new u.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since type "').concat(t,'" has no subfields.')}(t.name.value,Object(o.a)(n)),r)):r||e.reportError(new u.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}(t.name.value,Object(o.a)(n)),t)))}}}function qe(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=function(e,t,n){if(Object(V.C)(t)){for(var r=[],i=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.push(s.name);for(var u=0,c=s.getInterfaces();u<c.length;u++){var l=c[u];l.getFields()[n]&&(i[l.name]=(i[l.name]||0)+1)}}}return Object.keys(i).sort((function(e,t){return i[t]-i[e]})).concat(r)}return[]}(r,n,i),a=0!==o.length?[]:function(e,t,n){if(Object(V.N)(t)||Object(V.H)(t)){var r=Object.keys(t.getFields());return Le(n,r)}return[]}(0,n,i);e.reportError(new u.a(function(e,t,n,r){var i=n.map((function(e){return'"'.concat(e,'"')})),o=r.map((function(e){return'"'.concat(e,'"')}));return'Cannot query field "'.concat(e,'" on type "').concat(t,'".')+(Ae("to use an inline fragment on",i)||Ae(o))}(i,n.name,o,a),t))}}}}function Ke(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new u.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}var He=n(59),ze=n(60);function Ge(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();Object(V.D)(n)&&Object(V.D)(r)&&!q(e.getSchema(),n,r)&&e.reportError(new u.a(function(e,t){return'Fragment cannot be spread here as objects of type "'.concat(e,'" can never be of type "').concat(t,'".')}(Object(o.a)(r),Object(o.a)(n)),t))},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=_e(e.getSchema(),n.typeCondition);if(Object(V.D)(r))return r}}(e,n),i=e.getParentType();r&&i&&!q(e.getSchema(),r,i)&&e.reportError(new u.a(function(e,t,n){return'Fragment "'.concat(e,'" cannot be spread here as objects of type "').concat(t,'" can never be of type "').concat(n,'".')}(n,Object(o.a)(i),Object(o.a)(r)),t))}}}function Qe(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(i){return function i(o){if(t[o.name.value])return;var a=o.name.value;t[a]=!0;var s=e.getFragmentSpreads(o.selectionSet);if(0===s.length)return;r[a]=n.length;for(var c=0;c<s.length;c++){var l=s[c],f=l.name.value,p=r[f];if(n.push(l),void 0===p){var d=e.getFragment(f);d&&i(d)}else{var h=n.slice(p),m=h.slice(0,-1).map((function(e){return e.name.value}));e.reportError(new u.a((v=f,g=void 0,g=(y=m).length?" via "+y.join(", "):"",'Cannot spread fragment "'.concat(v,'" within itself').concat(g,".")),h))}n.pop()}var v,y,g;r[a]=void 0}(i),!1}}}function We(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new u.a(function(e){return'There can be only one variable named "'.concat(e,'".')}(r),[t[r],n.variable.name])):t[r]=n.variable.name}}}function Ye(e,t){return t?'Variable "$'.concat(e,'" is not defined by operation "').concat(t,'".'):'Variable "$'.concat(e,'" is not defined.')}function Je(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i].node,a=o.name.value;!0!==t[a]&&e.reportError(new u.a(Ye(a,n.name&&n.name.value),[o,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function $e(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function Xe(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=n.name?n.name.value:null,a=0;a<i.length;a++){r[i[a].node.name.value]=!0}for(var s=0,c=t;s<c.length;s++){var l=c[s],f=l.variable.name.value;!0!==r[f]&&e.reportError(new u.a($e(f,o),l))}}},VariableDefinition:function(e){t.push(e)}}}function Ze(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ee,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.locations}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=c.locations.map((function(e){return e.value})))}return{Directive:function(n,r,i,o,a){var s=n.name.value,c=t[s];if(c){var f=function(e){var t=e[e.length-1];if(!Array.isArray(t))switch(t.kind){case l.Kind.OPERATION_DEFINITION:switch(t.operation){case"query":return w.a.QUERY;case"mutation":return w.a.MUTATION;case"subscription":return w.a.SUBSCRIPTION}break;case l.Kind.FIELD:return w.a.FIELD;case l.Kind.FRAGMENT_SPREAD:return w.a.FRAGMENT_SPREAD;case l.Kind.INLINE_FRAGMENT:return w.a.INLINE_FRAGMENT;case l.Kind.FRAGMENT_DEFINITION:return w.a.FRAGMENT_DEFINITION;case l.Kind.VARIABLE_DEFINITION:return w.a.VARIABLE_DEFINITION;case l.Kind.SCHEMA_DEFINITION:case l.Kind.SCHEMA_EXTENSION:return w.a.SCHEMA;case l.Kind.SCALAR_TYPE_DEFINITION:case l.Kind.SCALAR_TYPE_EXTENSION:return w.a.SCALAR;case l.Kind.OBJECT_TYPE_DEFINITION:case l.Kind.OBJECT_TYPE_EXTENSION:return w.a.OBJECT;case l.Kind.FIELD_DEFINITION:return w.a.FIELD_DEFINITION;case l.Kind.INTERFACE_TYPE_DEFINITION:case l.Kind.INTERFACE_TYPE_EXTENSION:return w.a.INTERFACE;case l.Kind.UNION_TYPE_DEFINITION:case l.Kind.UNION_TYPE_EXTENSION:return w.a.UNION;case l.Kind.ENUM_TYPE_DEFINITION:case l.Kind.ENUM_TYPE_EXTENSION:return w.a.ENUM;case l.Kind.ENUM_VALUE_DEFINITION:return w.a.ENUM_VALUE;case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return w.a.INPUT_OBJECT;case l.Kind.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===l.Kind.INPUT_OBJECT_TYPE_DEFINITION?w.a.INPUT_FIELD_DEFINITION:w.a.ARGUMENT_DEFINITION}}(a);f&&-1===c.indexOf(f)&&e.reportError(new u.a(function(e,t){return'Directive "'.concat(e,'" may not be used on ').concat(t,".")}(s,f),n))}else e.reportError(new u.a('Unknown directive "'.concat(s,'".'),n))}}}function et(e){return'The directive "'.concat(e,'" can only be used once at this location.')}function tt(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ee,i=0;i<r.length;i++){var o=r[i];t[o.name]=!o.isRepeatable}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable)}return{enter:function(n){var r=n.directives;if(r)for(var i=Object.create(null),o=0;o<r.length;o++){var a=r[o],s=a.name.value;t[s]&&(i[s]?e.reportError(new u.a(et(s),[i[s],a])):i[s]=a)}}}}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t,n){return'Unknown argument "'.concat(e,'" on directive "@').concat(t,'".')+Ae(n.map((function(e){return'"'.concat(e,'"')})))}function ot(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(n,!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},at(e),{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=r.args.map((function(e){return e.name}));e.reportError(new u.a(function(e,t,n,r){return'Unknown argument "'.concat(e,'" on field "').concat(t,'" of type "').concat(n,'".')+Ae(r.map((function(e){return'"'.concat(e,'"')})))}(o,r.name,i.name,Le(o,a)),t))}}})}function at(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ee,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.args.map((function(e){return e.name}))}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=c.arguments?c.arguments.map((function(e){return e.name.value})):[])}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i)for(var o=0,a=n.arguments;o<a.length;o++){var s=a[o],c=s.name.value;if(-1===i.indexOf(c)){var l=Le(c,i);e.reportError(new u.a(it(c,r,l),s))}}return!1}}}function st(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new u.a(function(e){return'There can be only one argument named "'.concat(e,'".')}(r),[t[r],n.name])):t[r]=n.name,!1}}}var ut=n(19),ct=n(22);function lt(e,t,n){return"Expected type ".concat(e,", found ").concat(t)+(n?"; ".concat(n):".")}function ft(e,t,n){return"Expected type ".concat(e,", found ").concat(t,".")+Ae("the enum value",n)}function pt(e){return{NullValue:function(t){var n=e.getInputType();Object(V.L)(n)&&e.reportError(new u.a(lt(Object(o.a)(n),Object(Pe.a)(t)),t))},ListValue:function(t){var n=Object(V.B)(e.getParentInputType());if(!Object(V.J)(n))return dt(e,t),!1},ObjectValue:function(t){var n=Object(V.A)(e.getInputType());if(!Object(V.F)(n))return dt(e,t),!1;for(var r,i,a,s=Object(ut.a)(t.fields,(function(e){return e.name.value})),c=0,l=Object(I.a)(n.getFields());c<l.length;c++){var f=l[c];if(!s[f.name]&&Object(V.Q)(f)){var p=Object(o.a)(f.type);e.reportError(new u.a((r=n.name,i=f.name,a=p,"Field ".concat(r,".").concat(i," of required type ").concat(a," was not provided.")),t))}}},ObjectField:function(t){var n,r,i,o=Object(V.A)(e.getParentInputType());if(!e.getInputType()&&Object(V.F)(o)){var a=Le(t.name.value,Object.keys(o.getFields()));e.reportError(new u.a((n=o.name,r=t.name.value,i=a,'Field "'.concat(r,'" is not defined by type ').concat(n,".")+Ae(i)),t))}},EnumValue:function(t){var n=Object(V.A)(e.getInputType());Object(V.E)(n)?n.getValue(t.value)||e.reportError(new u.a(ft(n.name,Object(Pe.a)(t),ht(n,t)),t)):dt(e,t)},IntValue:function(t){return dt(e,t)},FloatValue:function(t){return dt(e,t)},StringValue:function(t){return dt(e,t)},BooleanValue:function(t){return dt(e,t)}}}function dt(e,t){var n=e.getInputType();if(n){var r=Object(V.A)(n);if(Object(V.R)(r))try{var i=r.parseLiteral(t,void 0);Object(ct.a)(i)&&e.reportError(new u.a(lt(Object(o.a)(n),Object(Pe.a)(t)),t))}catch(r){e.reportError(new u.a(lt(Object(o.a)(n),Object(Pe.a)(t),r.message),t,void 0,void 0,void 0,r))}else{var a=Object(V.E)(r)?ft(Object(o.a)(n),Object(Pe.a)(t),ht(r,t)):lt(Object(o.a)(n),Object(Pe.a)(t));e.reportError(new u.a(a,t))}}}function ht(e,t){var n=e.getValues().map((function(e){return e.name}));return Le(Object(Pe.a)(t),n)}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type "').concat(n,'" is required, but it was not provided.')}function gt(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(n,!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},bt(e),{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;for(var r,i,a,s=t.arguments||[],c=Object(ut.a)(s,(function(e){return e.name.value})),l=0,f=n.args;l<f.length;l++){var p=f[l];!c[p.name]&&Object(V.P)(p)&&e.reportError(new u.a((r=n.name,i=p.name,a=Object(o.a)(p.type),'Field "'.concat(r,'" argument "').concat(i,'" of type "').concat(a,'" is required, but it was not provided.')),t))}}}})}function bt(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ee,i=0;i<r.length;i++){var a=r[i];t[a.name]=Object(ut.a)(a.args.filter(V.P),(function(e){return e.name}))}for(var s=e.getDocument().definitions,c=0;c<s.length;c++){var f=s[c];f.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[f.name.value]=Object(ut.a)(f.arguments?f.arguments.filter(Ot):[],(function(e){return e.name.value})))}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var a=n.arguments||[],s=Object(ut.a)(a,(function(e){return e.name.value})),c=0,l=Object.keys(i);c<l.length;c++){var f=l[c];if(!s[f]){var p=i[f].type;e.reportError(new u.a(yt(r,f,Object(V.S)(p)?Object(o.a)(p):Object(Pe.a)(p)),n))}}}}}}function Ot(e){return e.type.kind===l.Kind.NON_NULL_TYPE&&null==e.defaultValue}function Et(e,t,n){return'Variable "$'.concat(e,'" of type "').concat(t,'" used in position expecting type "').concat(n,'".')}function Tt(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var a=r[i],s=a.node,c=a.type,l=a.defaultValue,f=s.name.value,p=t[f];if(p&&c){var d=e.getSchema(),h=_e(d,p.type);h&&!wt(d,h,p.defaultValue,c,l)&&e.reportError(new u.a(Et(f,Object(o.a)(h),Object(o.a)(c)),[p,s]))}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function wt(e,t,n,r,i){return Object(V.L)(r)&&!Object(V.L)(t)?(null!=n&&n.kind!==l.Kind.NULL||void 0!==i)&&B(e,t,r.ofType):B(e,t,r)}function _t(e,t){return'Fields "'.concat(e,'" conflict because ').concat(function e(t){if(Array.isArray(t))return t.map((function(t){var n=t[0],r=t[1];return'subfields "'.concat(n,'" conflict because ').concat(e(r))})).join(" and ");return t}(t),". ")+"Use different aliases on the fields to fetch both if this was intentional."}function kt(e){var t=new Lt,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var o=[],a=Dt(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=0,a=Object(F.a)(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var f=l+1;f<c.length;f++){var p=Nt(e,n,r,!1,u,c[l],c[f]);p&&t.push(p)}}}(e,o,t,n,s),0!==u.length)for(var c=Object.create(null),l=0;l<u.length;l++){xt(e,o,t,c,n,!1,s,u[l]);for(var f=l+1;f<u.length;f++)St(e,o,t,n,!1,u[l],u[f])}return o}(e,n,t,e.getParentType(),r),o=0;o<i.length;o++){var a=i[o],s=a[0],c=s[0],l=s[1],f=a[1],p=a[2];e.reportError(new u.a(_t(c,l),f.concat(p)))}}}}function xt(e,t,n,r,i,o,a,s){if(!r[s]){r[s]=!0;var u=e.getFragment(s);if(u){var c=jt(e,n,u),l=c[0],f=c[1];if(a!==l){Ct(e,t,n,i,o,a,l);for(var p=0;p<f.length;p++)xt(e,t,n,r,i,o,a,f[p])}}}}function St(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=jt(e,n,s),l=c[0],f=c[1],p=jt(e,n,u),d=p[0],h=p[1];Ct(e,t,n,r,i,l,d);for(var m=0;m<h.length;m++)St(e,t,n,r,i,o,h[m]);for(var v=0;v<f.length;v++)St(e,t,n,r,i,f[v],a)}}}function Ct(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var f=o[c],p=0;p<f.length;p++)for(var d=0;d<l.length;d++){var h=Nt(e,n,r,i,c,f[p],l[d]);h&&t.push(h)}}}function Nt(e,t,n,r,i,a,s){var u=a[0],c=a[1],l=a[2],f=s[0],p=s[1],d=s[2],h=r||u!==f&&Object(V.N)(u)&&Object(V.N)(f),m=l&&l.type,v=d&&d.type;if(!h){var y=c.name.value,g=p.name.value;if(y!==g)return[[i,"".concat(y," and ").concat(g," are different fields")],[c],[p]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every((function(e){var n,r,i=j(t,(function(t){return t.name.value===e.name.value}));return!!i&&(n=e.value,r=i.value,!n&&!r||Object(Pe.a)(n)===Object(Pe.a)(r))}))}(c.arguments||[],p.arguments||[]))return[[i,"they have differing arguments"],[c],[p]]}if(m&&v&&function e(t,n){if(Object(V.J)(t))return!Object(V.J)(n)||e(t.ofType,n.ofType);if(Object(V.J)(n))return!0;if(Object(V.L)(t))return!Object(V.L)(n)||e(t.ofType,n.ofType);if(Object(V.L)(n))return!0;if(Object(V.I)(t)||Object(V.I)(n))return t!==n;return!1}(m,v))return[[i,"they return conflicting types ".concat(Object(o.a)(m)," and ").concat(Object(o.a)(v))],[c],[p]];var b=c.selectionSet,O=p.selectionSet;return b&&O?function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(function(e,t,n,r,i,o,a,s){var u=[],c=Dt(e,t,i,o),l=c[0],f=c[1],p=Dt(e,t,a,s),d=p[0],h=p[1];if(Ct(e,u,t,n,r,l,d),0!==h.length)for(var m=Object.create(null),v=0;v<h.length;v++)xt(e,u,t,m,n,r,l,h[v]);if(0!==f.length)for(var y=Object.create(null),g=0;g<f.length;g++)xt(e,u,t,y,n,r,d,f[g]);for(var b=0;b<f.length;b++)for(var O=0;O<h.length;O++)St(e,u,t,n,r,f[b],h[O]);return u}(e,t,n,h,Object(V.A)(m),b,Object(V.A)(v),O),i,c,p):void 0}function Dt(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(var a=0,s=r.selections;a<s.length;a++){var u=s[a];switch(u.kind){case l.Kind.FIELD:var c=u.name.value,f=void 0;(Object(V.N)(n)||Object(V.H)(n))&&(f=n.getFields()[c]);var p=u.alias?u.alias.value:c;i[p]||(i[p]=[]),i[p].push([n,u,f]);break;case l.Kind.FRAGMENT_SPREAD:o[u.name.value]=!0;break;case l.Kind.INLINE_FRAGMENT:var d=u.typeCondition,h=d?_e(t.getSchema(),d):n;e(t,h,u.selectionSet,i,o)}}}(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function jt(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=_e(e.getSchema(),n.typeCondition);return Dt(e,t,i,n.selectionSet)}var At,Lt=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){It(this._data,e,t,n),It(this._data,t,e,n)},e}();function It(e,t,n,r){var i=e[t];i||(i=Object.create(null),e[t]=i),i[n]=r}function Ft(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 r=t.name.value;n[r]?e.reportError(new u.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(r),[n[r],t.name])):n[r]=t.name}}}function Rt(e){return"There can be only one ".concat(e," type in schema.")}function Mt(e){return"Type for ".concat(e," already defined in the schema. It cannot be redefined.")}function Pt(e,t){return'Enum value "'.concat(e,".").concat(t,'" can only be defined once.')}function Vt(e,t){return'Enum value "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function Ut(e,t){return'Field "'.concat(e,".").concat(t,'" can only be defined once.')}function Bt(e,t){return'Field "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function qt(e,t){return!!(Object(V.N)(e)||Object(V.H)(e)||Object(V.F)(e))&&e.getFields()[t]}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e,t){return"Cannot extend non-".concat(t,' type "').concat(e,'".')}var zt=(Kt(At={},l.Kind.SCALAR_TYPE_DEFINITION,l.Kind.SCALAR_TYPE_EXTENSION),Kt(At,l.Kind.OBJECT_TYPE_DEFINITION,l.Kind.OBJECT_TYPE_EXTENSION),Kt(At,l.Kind.INTERFACE_TYPE_DEFINITION,l.Kind.INTERFACE_TYPE_EXTENSION),Kt(At,l.Kind.UNION_TYPE_DEFINITION,l.Kind.UNION_TYPE_EXTENSION),Kt(At,l.Kind.ENUM_TYPE_DEFINITION,l.Kind.ENUM_TYPE_EXTENSION),Kt(At,l.Kind.INPUT_OBJECT_TYPE_DEFINITION,l.Kind.INPUT_OBJECT_TYPE_EXTENSION),At);function Gt(e){switch(e){case l.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case l.Kind.OBJECT_TYPE_EXTENSION:return"object";case l.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case l.Kind.UNION_TYPE_EXTENSION:return"union";case l.Kind.ENUM_TYPE_EXTENSION:return"enum";case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:return"unknown type"}}var Qt=Object.freeze([Se.ExecutableDefinitions,Ce,Ne,De,Re,Ve,Ue,Be,qe,Ke,He.KnownFragmentNames,ze.NoUnusedFragments,Ge,Qe,We,Je,Xe,Ze,tt,ot,st,pt,gt,Tt,kt,Ft]),Wt=Object.freeze([function(e){var t=e.getSchema(),n=t&&(t.astNode||t.getQueryType()||t.getMutationType()||t.getSubscriptionType()),r=0;return{SchemaDefinition:function(t){n?e.reportError(new u.a("Cannot define a new schema within a schema extension.",t)):(r>0&&e.reportError(new u.a("Must provide only one schema definition.",t)),++r)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){if(t.operationTypes)for(var i=0,o=t.operationTypes||[];i<o.length;i++){var a=o[i],s=a.operation,c=n[s];r[s]?e.reportError(new u.a(Mt(s),a)):c?e.reportError(new u.a(Rt(s),[c,a])):n[s]=a}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(!n||!n.getType(i))return t[i]?e.reportError(new u.a(function(e){return'There can be only one type named "'.concat(e,'".')}(i),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.a(function(e){return'Type "'.concat(e,'" already exists in the schema. It cannot also be defined in this type definition.')}(i),r.name))}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i=t.name.value;if(r[i]||(r[i]=Object.create(null)),t.values)for(var o=r[i],a=0,s=t.values;a<s.length;a++){var c=s[a],l=c.name.value,f=n[i];Object(V.E)(f)&&f.getValue(l)?e.reportError(new u.a(Vt(i,l),c.name)):o[l]?e.reportError(new u.a(Pt(i,l),[o[l],c.name])):o[l]=c.name}return!1}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i=t.name.value;if(r[i]||(r[i]=Object.create(null)),t.fields)for(var o=r[i],a=0,s=t.fields;a<s.length;a++){var c=s[a],l=c.name.value;qt(n[i],l)?e.reportError(new u.a(Bt(i,l),c.name)):o[l]?e.reportError(new u.a(Ut(i,l),[o[l],c.name])):o[l]=c.name}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(!n||!n.getDirective(i))return t[i]?e.reportError(new u.a(function(e){return'There can be only one directive named "'.concat(e,'".')}(i),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.a(function(e){return'Directive "'.concat(e,'" already exists in the schema. It cannot be redefined.')}(i),r.name))}}},Re,Ze,tt,function(e){for(var t=e.getSchema(),n=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];Object(Fe.d)(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(r){var i=r.name.value,o=n[i],a=t&&t.getType(i);if(o){var s=zt[o.kind];s!==r.kind&&e.reportError(new u.a(Ht(i,Gt(s)),[o,r]))}else if(a){var c=function(e){if(Object(V.R)(e))return l.Kind.SCALAR_TYPE_EXTENSION;if(Object(V.N)(e))return l.Kind.OBJECT_TYPE_EXTENSION;if(Object(V.H)(e))return l.Kind.INTERFACE_TYPE_EXTENSION;if(Object(V.T)(e))return l.Kind.UNION_TYPE_EXTENSION;if(Object(V.E)(e))return l.Kind.ENUM_TYPE_EXTENSION;if(Object(V.F)(e))return l.Kind.INPUT_OBJECT_TYPE_EXTENSION}(a);c!==r.kind&&e.reportError(new u.a(Ht(i,Gt(c)),r))}else{var f=Object.keys(n);t&&(f=f.concat(Object.keys(t.getTypeMap())));var p=Le(i,f);e.reportError(new u.a(function(e,t){return'Cannot extend type "'.concat(e,'" because it is not defined.')+Ae(t.map((function(e){return'"'.concat(e,'"')})))}(i,p),r.name))}}},at,st,Ft,bt]);function Yt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Jt=function(){function e(e,t){this._ast=e,this._errors=[],this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._errors.push(e),this._onError&&this._onError(e)},t.getErrors=function(){return this._errors},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===l.Kind.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r<i.length;r++){var o=i[r];o.kind===l.Kind.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.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=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),$t=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return Yt(t,e),t.prototype.getSchema=function(){return this._schema},t}(Jt),Xt=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Yt(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new ke(this._schema);Object(D.c)(e,Object(D.e)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},t}(Jt);Object.freeze({});function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qt,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ke(e),i=arguments.length>4?arguments[4]:void 0;t||Object(a.a)(0,"Must provide document"),ce(e);var o=Object.freeze({}),s=[],c=i&&i.maxErrors,l=new Xt(e,t,r,(function(e){if(null!=c&&s.length>=c)throw s.push(new u.a("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(e)})),f=Object(D.d)(n.map((function(e){return e(l)})));try{Object(D.c)(t,Object(D.e)(r,f))}catch(e){if(e!==o)throw e}return s}function en(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wt,r=[],i=new $t(e,t,(function(e){r.push(e)})),o=n.map((function(e){return e(i)}));return Object(D.c)(e,Object(D.d)(o)),r}var tn=n(23);var nn=n(40);function rn(e,t){return{prev:e,key:t}}function on(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function an(e,t,n){return e&&Array.isArray(e.path)?e:new u.a(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}function sn(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new u.a("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new u.a("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new u.a("Schema is not configured for subscriptions.",t);return i}throw new u.a("Can only have query, mutation and subscription operations.",t)}function un(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}function cn(e,t,n){if(e){if(Object(V.L)(t)){if(e.kind===l.Kind.NULL)return;return cn(e,t.ofType,n)}if(e.kind===l.Kind.NULL)return null;if(e.kind===l.Kind.VARIABLE){var r=e.name.value;if(!n||Object(ct.a)(n[r]))return;var i=n[r];if(null===i&&Object(V.L)(t))return;return i}if(Object(V.J)(t)){var a=t.ofType;if(e.kind===l.Kind.LIST){for(var s=[],u=0,c=e.values;u<c.length;u++){var f=c[u];if(ln(f,n)){if(Object(V.L)(a))return;s.push(null)}else{var p=cn(f,a,n);if(Object(ct.a)(p))return;s.push(p)}}return s}var d=cn(e,a,n);if(Object(ct.a)(d))return;return[d]}if(Object(V.F)(t)){if(e.kind!==l.Kind.OBJECT)return;for(var h=Object.create(null),m=Object(ut.a)(e.fields,(function(e){return e.name.value})),v=0,y=Object(I.a)(t.getFields());v<y.length;v++){var g=y[v],b=m[g.name];if(b&&!ln(b.value,n)){var O=cn(b.value,g.type,n);if(Object(ct.a)(O))return;h[g.name]=O}else if(void 0!==g.defaultValue)h[g.name]=g.defaultValue;else if(Object(V.L)(g.type))return}return h}if(Object(V.E)(t)){if(e.kind!==l.Kind.ENUM)return;var E=t.getValue(e.value);if(!E)return;return E.value}if(Object(V.R)(t)){var T;try{T=t.parseLiteral(e,n)}catch(e){return}if(Object(ct.a)(T))return;return T}Object(we.a)(!1,"Unexpected input type: "+Object(o.a)(t))}}function ln(e,t){return e.kind===l.Kind.VARIABLE&&(!t||Object(ct.a)(t[e.name.value]))}function fn(e,t){return function e(t,n,r,i){if(Object(V.L)(n))return null!=t?e(t,n.ofType,r,i):void r(on(i),t,new u.a("Expected non-nullable type ".concat(Object(o.a)(n)," not to be null.")));if(null==t)return null;if(Object(V.J)(n)){var a=n.ofType;if(Object(tn.e)(t)){var s=[];return Object(tn.b)(t,(function(t,n){s.push(e(t,a,r,rn(i,n)))})),s}return[e(t,a,r,i)]}if(Object(V.F)(n)){if(!Object(z.a)(t))return void r(on(i),t,new u.a("Expected type ".concat(n.name," to be an object.")));for(var c={},l=n.getFields(),f=0,p=Object(I.a)(l);f<p.length;f++){var d=p[f],h=t[d.name];if(void 0!==h)c[d.name]=e(h,d.type,r,rn(i,d.name));else if(void 0!==d.defaultValue)c[d.name]=d.defaultValue;else if(Object(V.L)(d.type)){var m=Object(o.a)(d.type);r(on(i),t,new u.a("Field ".concat(d.name," of required type ").concat(m," was not provided.")))}}for(var v=0,y=Object.keys(t);v<y.length;v++){var g=y[v];if(!l[g]){var b=Le(g,Object.keys(n.getFields()));r(on(i),t,new u.a('Field "'.concat(g,'" is not defined by type ').concat(n.name,".")+Ae(b)))}}return c}if(Object(V.R)(n)){var O;try{O=n.parseValue(t)}catch(e){return void r(on(i),t,new u.a("Expected type ".concat(n.name,". ")+e.message,void 0,void 0,void 0,void 0,e))}return void 0===O&&r(on(i),t,new u.a("Expected type ".concat(n.name,"."))),O}if(Object(V.E)(n)){if("string"==typeof t){var E=n.getValue(t);if(E)return E.value}var T=Le(String(t),n.getValues().map((function(e){return e.name})));return void r(on(i),t,new u.a("Expected type ".concat(n.name,".")+Ae(T)))}Object(we.a)(!1,"Unexpected input type: "+Object(o.a)(n))}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:pn)}function pn(e,t,n){var r="Invalid value "+Object(o.a)(t);throw e.length>0&&(r+=' at "value'.concat(un(e),'": ')),n.message=r+": "+n.message,n}function dn(e,t,n,r){var i=r&&r.maxErrors,a=[];try{var s=function(e,t,n,r){for(var i={},a=function(a){var s=t[a],c=s.variable.name.value,l=_e(e,s.type);if(!Object(V.G)(l)){var f=Object(Pe.a)(s.type);return r(new u.a('Variable "$'.concat(c,'" expected value of type "').concat(f,'" which cannot be used as an input type.'),s.type)),"continue"}if(!vn(n,c)){if(s.defaultValue)i[c]=cn(s.defaultValue,l);else if(Object(V.L)(l)){var p=Object(o.a)(l);r(new u.a('Variable "$'.concat(c,'" of required type "').concat(p,'" was not provided.'),s))}return"continue"}var d=n[c];if(null===d&&Object(V.L)(l)){var h=Object(o.a)(l);return r(new u.a('Variable "$'.concat(c,'" of non-null type "').concat(h,'" must not be null.'),s)),"continue"}i[c]=fn(d,l,(function(e,t,n){var i='Variable "$'.concat(c,'" got invalid value ')+Object(o.a)(t);e.length>0&&(i+=' at "'.concat(c).concat(un(e),'"')),r(new u.a(i+"; "+n.message,s,void 0,void 0,void 0,n.originalError))}))},s=0;s<t.length;s++)a(s);return i}(e,t,n,(function(e){if(null!=i&&a.length>=i)throw new u.a("Too many errors processing variables, error limit reached. Execution aborted.");a.push(e)}));if(0===a.length)return{coerced:s}}catch(e){a.push(e)}return{errors:a}}function hn(e,t,n){for(var r={},i=Object(ut.a)(t.arguments||[],(function(e){return e.name.value})),a=0,s=e.args;a<s.length;a++){var c=s[a],f=c.name,p=c.type,d=i[f];if(d){var h=d.value,m=h.kind===l.Kind.NULL;if(h.kind===l.Kind.VARIABLE){var v=h.name.value;if(null==n||!vn(n,v)){if(void 0!==c.defaultValue)r[f]=c.defaultValue;else if(Object(V.L)(p))throw new u.a('Argument "'.concat(f,'" of required type "').concat(Object(o.a)(p),'" ')+'was provided the variable "$'.concat(v,'" which was not provided a runtime value.'),h);continue}m=null==n[v]}if(m&&Object(V.L)(p))throw new u.a('Argument "'.concat(f,'" of non-null type "').concat(Object(o.a)(p),'" ')+"must not be null.",h);var y=cn(h,p,n);if(void 0===y)throw new u.a('Argument "'.concat(f,'" has invalid value ').concat(Object(Pe.a)(h),"."),h);r[f]=y}else if(void 0!==c.defaultValue)r[f]=c.defaultValue;else if(Object(V.L)(p))throw new u.a('Argument "'.concat(f,'" of required type "').concat(Object(o.a)(p),'" ')+"was not provided.",t)}return r}function mn(e,t,n){var r=t.directives&&j(t.directives,(function(t){return t.name.value===e.name}));if(r)return hn(e,r,n)}function vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yn(e,t,n,r,i,o,a,s){return 1===arguments.length?gn(e):gn({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function gn(e){var t=e.schema,n=e.document,r=e.rootValue,o=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;bn(t,n,a);var l=On(t,n,r,o,a,s,u,c);if(Array.isArray(l))return{errors:l};var f=function(e,t,n){var r=sn(e.schema,t),o=Tn(e,r,t.selectionSet,Object.create(null),Object.create(null));try{var a="mutation"===t.operation?function(e,t,n,r,o){return a=Object.keys(o),s=function(a,s){var u=o[s],c=rn(r,s),l=kn(e,t,n,u,c);return void 0===l?a:i(l)?l.then((function(e){return a[s]=e,a})):(a[s]=l,a)},u=Object.create(null),a.reduce((function(e,t){return i(e)?e.then((function(e){return s(e,t)})):s(e,t)}),u);var a,s,u}(e,r,n,void 0,o):En(e,r,n,void 0,o);return i(a)?a.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):a}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return function e(t,n){if(i(n))return n.then((function(n){return e(t,n)}));return 0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(l,f)}function bn(e,t,n){t||Object(a.a)(0,"Must provide document"),ce(e),null==n||Object(z.a)(n)||Object(a.a)(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 On(e,t,n,r,i,o,a,s){for(var c,f=!1,p=Object.create(null),d=0,h=t.definitions;d<h.length;d++){var m=h[d];switch(m.kind){case l.Kind.OPERATION_DEFINITION:!o&&c?f=!0:(!o||m.name&&m.name.value===o)&&(c=m);break;case l.Kind.FRAGMENT_DEFINITION:p[m.name.value]=m}}if(!c)return o?[new u.a('Unknown operation named "'.concat(o,'".'))]:[new u.a("Must provide an operation.")];if(f)return[new u.a("Must provide operation name if query contains multiple operations.")];var v=dn(e,c.variableDefinitions||[],i||{},{maxErrors:50});return v.errors?v.errors:{schema:e,fragments:p,rootValue:n,contextValue:r,operation:c,variableValues:v.coerced,fieldResolver:a||Un,typeResolver:s||Vn,errors:[]}}function En(e,t,n,r,o){for(var a,s,u,c=Object.create(null),l=!1,f=0,p=Object.keys(o);f<p.length;f++){var d=p[f],h=kn(e,t,n,o[d],rn(r,d));void 0!==h&&(c[d]=h,!l&&i(h)&&(l=!0))}return l?(a=c,s=Object.keys(a),u=s.map((function(e){return a[e]})),Promise.all(u).then((function(e){return e.reduce((function(e,t,n){return e[s[n]]=t,e}),Object.create(null))}))):c}function Tn(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case l.Kind.FIELD:if(!wn(e,s))continue;var u=(p=s).alias?p.alias.value:p.name.value;r[u]||(r[u]=[]),r[u].push(s);break;case l.Kind.INLINE_FRAGMENT:if(!wn(e,s)||!_n(e,s,t))continue;Tn(e,t,s.selectionSet,r,i);break;case l.Kind.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!wn(e,s))continue;i[c]=!0;var f=e.fragments[c];if(!f||!_n(e,f,t))continue;Tn(e,t,f.selectionSet,r,i)}}var p;return r}function wn(e,t){var n=mn($,t,e.variableValues);if(n&&!0===n.if)return!1;var r=mn(J,t,e.variableValues);return!r||!1!==r.if}function _n(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=_e(e.schema,r);return i===n||!!Object(V.C)(i)&&e.schema.isPossibleType(i,n)}function kn(e,t,n,r,i){var o=r[0].name.value,a=Bn(e.schema,t,o);if(a){var s=a.resolve||e.fieldResolver,u=xn(e,a,r,t,i),c=Sn(e,a,r,s,n,u);return Nn(e,a.type,r,u,i,c)}}function xn(e,t,n,r,i){return{fieldName:t.name,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 Sn(e,t,n,r,o,a){try{var s=r(o,hn(t,n[0],e.variableValues),e.contextValue,a);return i(s)?s.then(void 0,Cn):s}catch(e){return Cn(e)}}function Cn(e){return e instanceof Error?e:new Error("Unexpected error value: "+Object(o.a)(e))}function Nn(e,t,n,r,o,a){try{var s;return s=i(a)?a.then((function(i){return jn(e,t,n,r,o,i)})):jn(e,t,n,r,o,a),i(s)?s.then(void 0,(function(r){return Dn(r,n,o,t,e)})):s}catch(r){return Dn(r,n,o,t,e)}}function Dn(e,t,n,r,i){var o=an(Cn(e),t,on(n));if(Object(V.L)(r))throw o;return i.errors.push(o),null}function jn(e,t,n,r,a,s){if(s instanceof Error)throw s;if(Object(V.L)(t)){var c=jn(e,t.ofType,n,r,a,s);if(null===c)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return c}return Object(nn.a)(s)?null:Object(V.J)(t)?function(e,t,n,r,o,a){if(!Object(tn.e)(a))throw new u.a("Expected Iterable, but did not find one for field ".concat(r.parentType.name,".").concat(r.fieldName,"."));var s=t.ofType,c=!1,l=[];return Object(tn.b)(a,(function(t,a){var u=rn(o,a),f=Nn(e,s,n,r,u,t);!c&&i(f)&&(c=!0),l.push(f)})),c?Promise.all(l):l}(e,t,n,r,a,s):Object(V.I)(t)?function(e,t){var n=e.serialize(t);if(Object(ct.a)(n))throw new Error('Expected a value of type "'.concat(Object(o.a)(e),'" but ')+"received: ".concat(Object(o.a)(t)));return n}(t,s):Object(V.C)(t)?function(e,t,n,r,o,a){var s=t.resolveType||e.typeResolver,u=e.contextValue,c=s(a,u,r,t);if(i(c))return c.then((function(i){return Ln(e,An(i,e,t,n,r,a),n,r,o,a)}));return Ln(e,An(c,e,t,n,r,a),n,r,o,a)}(e,t,n,r,a,s):Object(V.N)(t)?Ln(e,t,n,r,a,s):void Object(we.a)(!1,"Cannot complete value of unexpected output type: "+Object(o.a)(t))}function An(e,t,n,r,i,a){var s="string"==typeof e?t.schema.getType(e):e;if(!Object(V.N)(s))throw new u.a("Abstract type ".concat(n.name," must resolve to an Object type at runtime for field ").concat(i.parentType.name,".").concat(i.fieldName," with ")+"value ".concat(Object(o.a)(a),', received "').concat(Object(o.a)(s),'". ')+"Either the ".concat(n.name,' type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if(!t.schema.isPossibleType(n,s))throw new u.a('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function Ln(e,t,n,r,o,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(i(s))return s.then((function(r){if(!r)throw In(t,a,n);return Fn(e,t,n,o,a)}));if(!s)throw In(t,a,n)}return Fn(e,t,n,o,a)}function In(e,t,n){return new u.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(o.a)(t),"."),n)}function Fn(e,t,n,r,i){return En(e,t,i,r,Pn(e,t,n))}var Rn,Mn,Pn=(Rn=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=Tn(e,t,a.selectionSet,r,i))}return r},function(e,t,n){Mn||(Mn=new WeakMap);var r,i=Mn.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,Mn.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=Rn(e,t,n);return r.set(n,a),a});var Vn=function(e,t,n,r){if(Object(z.a)(e)&&"string"==typeof e.__typename)return e.__typename;for(var o=n.schema.getPossibleTypes(r),a=[],s=0;s<o.length;s++){var u=o[s];if(u.isTypeOf){var c=u.isTypeOf(e,t,n);if(i(c))a[s]=c;else if(c)return u}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return o[t]})):void 0},Un=function(e,t,n,r){if(Object(z.a)(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function Bn(e,t,n){return n===ne.SchemaMetaFieldDef.name&&e.getQueryType()===t?ne.SchemaMetaFieldDef:n===ne.TypeMetaFieldDef.name&&e.getQueryType()===t?ne.TypeMetaFieldDef:n===ne.TypeNameMetaFieldDef.name?ne.TypeNameMetaFieldDef:t.getFields()[n]}function qn(e,t,n,r,i,o,a,s){var u=arguments;return new Promise((function(c){return c(1===u.length?Hn(e):Hn({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function Kn(e,t,n,r,o,a,s,u){var c=1===arguments.length?Hn(e):Hn({schema:e,source:t,rootValue:n,contextValue:r,variableValues:o,operationName:a,fieldResolver:s,typeResolver:u});if(i(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function Hn(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver,l=ue(n);if(l.length>0)return{errors:l};try{t=_(r)}catch(e){return{errors:[e]}}var f=Zt(n,t);return f.length>0?{errors:f}:yn({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c})}var zn=n(38),Gn=n(61);function Qn(e,t,n){var r,i,o,a,s,u,c=Object(tn.c)(e);function l(e){return e.done?e:Wn(e.value,t).then(Yn,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var f=n;o=function(e){return Wn(e,f).then(Yn,i)}}return a={next:function(){return c.next().then(l,o)},return:function(){return r?r.call(c).then(l,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(l,o):Promise.reject(e).catch(i)}},s=tn.a,u=function(){return this},s in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}function Wn(e,t){return new Promise((function(n){return n(t(e))}))}function Yn(e){return{value:e,done:!1}}function Jn(e,t,n,r,i,o,a,s){return 1===arguments.length?Xn(e):Xn({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function $n(e){if(e instanceof u.a)return{errors:[e]};throw e}function Xn(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,c=Zn(t,n,r,i,o,a,u),l=function(e){return yn(t,n,e,i,o,a,s)};return c.then((function(e){return Object(tn.d)(e)?Qn(e,l,$n):e}))}function Zn(e,t,n,r,i,a,s){bn(e,t,i);try{var c=On(e,t,n,r,i,a,s);if(Array.isArray(c))return Promise.resolve({errors:c});var l=sn(e,c.operation),f=Tn(c,l,c.operation.selectionSet,Object.create(null),Object.create(null)),p=Object.keys(f)[0],d=f[p],h=d[0].name.value,m=Bn(e,l,h);if(!m)throw new u.a('The subscription field "'.concat(h,'" is not defined.'),d);var v=m.subscribe||c.fieldResolver,y=rn(void 0,p),g=xn(c,m,d,l,y),b=Sn(c,m,d,v,n,g);return Promise.resolve(b).then((function(e){if(e instanceof Error)return{errors:[an(e,d,on(y))]};if(Object(tn.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(o.a)(e))}))}catch(e){return e instanceof u.a?Promise.resolve({errors:[e]}):Promise.reject(e)}}function er(e){e||Object(a.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,r=e.path,i=e.extensions;return i?{message:t,locations:n,path:r,extensions:i}:{message:t,locations:n,path:r}}function tr(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 ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(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 ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(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 ")}var nr=tr();function rr(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o=i[r];if(o.kind===l.Kind.OPERATION_DEFINITION)if(t){if(o.name&&o.name.value===t)return o}else{if(n)return null;n=o}}return n}function ir(e,t){var n=yn(e,_(tr(t)));return!i(n)&&!n.errors&&n.data||Object(we.a)(0),n.data}var or=n(18);function ar(e,t){Object(z.a)(e)&&Object(z.a)(e.__schema)||Object(a.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '+Object(o.a)(e));for(var n=e.__schema,r=Object(or.a)(n.types,(function(e){return e.name}),(function(e){return function(e){if(e&&e.name&&e.kind)switch(e.kind){case ne.TypeKind.SCALAR:return n=e,new V.g({name:n.name,description:n.description});case ne.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(o.a)(e));return new V.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(v)},fields:function(){return y(e)}})}(e);case ne.TypeKind.INTERFACE:return t=e,new V.c({name:t.name,description:t.description,fields:function(){return y(t)}});case ne.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(o.a)(e));return new V.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(m)}})}(e);case ne.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(o.a)(e));return new V.a({name:e.name,description:e.description,values:Object(or.a)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case ne.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(o.a)(e));return new V.b({name:e.name,description:e.description,fields:function(){return g(e.inputFields)}})}(e)}var t;var n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(o.a)(e))}(e)})),i=0,s=[].concat(G.g,ne.introspectionTypes);i<s.length;i++){var u=s[i];r[u.name]&&(r[u.name]=u)}var c=n.queryType?m(n.queryType):null,l=n.mutationType?m(n.mutationType):null,f=n.subscriptionType?m(n.subscriptionType):null,p=n.directives?n.directives.map((function(e){if(!e.args)throw new Error("Introspection result missing directive args: "+Object(o.a)(e));if(!e.locations)throw new Error("Introspection result missing directive locations: "+Object(o.a)(e));return new Y({name:e.name,description:e.description,locations:e.locations.slice(),args:g(e.args)})})):[];return new oe({query:c,mutation:l,subscription:f,types:Object(I.a)(r),directives:p,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames});function d(e){if(e.kind===ne.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(V.d)(d(t))}if(e.kind===ne.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var i=d(n);return Object(V.e)(Object(V.t)(i))}if(!e.name)throw new Error("Unknown type reference: "+Object(o.a)(e));return function(e){var t=r[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure that a full introspection query is used in order to build a client schema."));return t}(e.name)}function h(e){var t=d(e);if(Object(V.O)(t))return t;throw new Error("Introspection must provide output type for fields, but received: "+Object(o.a)(t)+".")}function m(e){var t=d(e);return Object(V.u)(t)}function v(e){var t=d(e);return Object(V.o)(t)}function y(e){if(!e.fields)throw new Error("Introspection result missing fields: "+Object(o.a)(e));return Object(or.a)(e.fields,(function(e){return e.name}),(function(e){if(!e.args)throw new Error("Introspection result missing field args: "+Object(o.a)(e));return{description:e.description,deprecationReason:e.deprecationReason,type:h(e.type),args:g(e.args)}}))}function g(e){return Object(or.a)(e,(function(e){return e.name}),b)}function b(e){var t=function(e){var t=d(e);if(Object(V.G)(t))return t;throw new Error("Introspection must provide input type for arguments, but received: "+Object(o.a)(t)+".")}(e.type),n=e.defaultValue?cn(k(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n}}}function sr(e,t){var n;e&&e.kind===l.Kind.DOCUMENT||Object(a.a)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||function(e){var t=en(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}(e);for(var r=[],i=[],o=0,s=e.definitions;o<s.length;o++){var u=s[o];u.kind===l.Kind.SCHEMA_DEFINITION?n=u:Object(Fe.d)(u)?r.push(u):u.kind===l.Kind.DIRECTIVE_DEFINITION&&i.push(u)}var c=new cr(t,(function(e){var t=f[e];if(void 0===t)throw new Error('Type "'.concat(e,'" not found in document.'));return t})),f=lr(r,(function(e){return c.buildType(e)})),p=n?function(e){for(var t={},n=0,r=e.operationTypes;n<r.length;n++){var i=r[n];t[i.operation]=i.type.name.value}return t}(n):{query:"Query",mutation:"Mutation",subscription:"Subscription"},d=i.map((function(e){return c.buildDirective(e)}));return d.some((function(e){return"skip"===e.name}))||d.push($),d.some((function(e){return"include"===e.name}))||d.push(J),d.some((function(e){return"deprecated"===e.name}))||d.push(Z),new oe({query:p.query?f[p.query]:null,mutation:p.mutation?f[p.mutation]:null,subscription:p.subscription?f[p.subscription]:null,types:Object(I.a)(f),directives:d,astNode:n,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}var ur=Object(ut.a)(G.g.concat(ne.introspectionTypes),(function(e){return e.name})),cr=function(){function e(e,t){this._options=e,this._resolveType=t}var t=e.prototype;return t.getNamedType=function(e){var t=e.name.value;return ur[t]||this._resolveType(t)},t.getWrappedType=function(e){return e.kind===l.Kind.LIST_TYPE?new V.d(this.getWrappedType(e.type)):e.kind===l.Kind.NON_NULL_TYPE?new V.e(this.getWrappedType(e.type)):this.getNamedType(e)},t.buildDirective=function(e){var t=this,n=e.locations.map((function(e){return e.value}));return new Y({name:e.name.value,description:pr(e,this._options),locations:n,isRepeatable:e.repeatable,args:lr(e.arguments||[],(function(e){return t.buildArg(e)})),astNode:e})},t.buildField=function(e){var t=this;return{type:this.getWrappedType(e.type),description:pr(e,this._options),args:lr(e.arguments||[],(function(e){return t.buildArg(e)})),deprecationReason:fr(e),astNode:e}},t.buildArg=function(e){var t=this.getWrappedType(e.type);return{type:t,description:pr(e,this._options),defaultValue:cn(e.defaultValue,t),astNode:e}},t.buildInputField=function(e){var t=this.getWrappedType(e.type);return{type:t,description:pr(e,this._options),defaultValue:cn(e.defaultValue,t),astNode:e}},t.buildEnumValue=function(e){return{description:pr(e,this._options),deprecationReason:fr(e),astNode:e}},t.buildType=function(e){var t=e.name.value;if(ur[t])return ur[t];switch(e.kind){case l.Kind.OBJECT_TYPE_DEFINITION:return this._makeTypeDef(e);case l.Kind.INTERFACE_TYPE_DEFINITION:return this._makeInterfaceDef(e);case l.Kind.ENUM_TYPE_DEFINITION:return this._makeEnumDef(e);case l.Kind.UNION_TYPE_DEFINITION:return this._makeUnionDef(e);case l.Kind.SCALAR_TYPE_DEFINITION:return this._makeScalarDef(e);case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:return this._makeInputObjectDef(e)}Object(we.a)(!1,"Unexpected type definition node: "+Object(o.a)(e))},t._makeTypeDef=function(e){var t=this,n=e.interfaces,r=e.fields,i=n&&n.length>0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[],o=r&&r.length>0?function(){return lr(r,(function(e){return t.buildField(e)}))}:Object.create(null);return new V.f({name:e.name.value,description:pr(e,this._options),interfaces:i,fields:o,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,r=n&&n.length>0?function(){return lr(n,(function(e){return t.buildField(e)}))}:Object.create(null);return new V.c({name:e.name.value,description:pr(e,this._options),fields:r,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new V.a({name:e.name.value,description:pr(e,this._options),values:lr(n,(function(e){return t.buildEnumValue(e)})),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,r=n&&n.length>0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[];return new V.h({name:e.name.value,description:pr(e,this._options),types:r,astNode:e})},t._makeScalarDef=function(e){return new V.g({name:e.name.value,description:pr(e,this._options),astNode:e})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new V.b({name:e.name.value,description:pr(e,this._options),fields:n?function(){return lr(n,(function(e){return t.buildInputField(e)}))}:Object.create(null),astNode:e})},e}();function lr(e,t){return Object(or.a)(e,(function(e){return e.name.value}),t)}function fr(e){var t=mn(Z,e);return t&&t.reason}function pr(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;r&&r.kind===h.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.reverse().join("\n")}(e);if(void 0!==n)return Object(d.a)("\n"+n)}}function dr(e,t){return sr(_(e,t),t)}var hr=n(30);function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(n,!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e,t,n){ie(e),t&&t.kind===l.Kind.DOCUMENT||Object(a.a)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||function(e,t){var n=en(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}(t,e);for(var r,i=[],s=Object.create(null),u=[],c=[],f=0,p=t.definitions;f<p.length;f++){var d=p[f];if(d.kind===l.Kind.SCHEMA_DEFINITION)r=d;else if(d.kind===l.Kind.SCHEMA_EXTENSION)c.push(d);else if(Object(Fe.d)(d))i.push(d);else if(Object(Fe.e)(d)){var h=d.name.value,m=s[h];s[h]=m?m.concat([d]):[d]}else d.kind===l.Kind.DIRECTIVE_DEFINITION&&u.push(d)}if(0===Object.keys(s).length&&0===i.length&&0===u.length&&0===c.length&&!r)return e;for(var v=e.toConfig(),y=new cr(n,(function(e){var t=g[e];if(void 0===t)throw new Error('Unknown type: "'.concat(e,'".'));return t})),g=Object(or.a)(i,(function(e){return e.name.value}),(function(e){return y.buildType(e)})),b=0,O=v.types;b<O.length;b++){var E=O[b];g[E.name]=K(E)}var T={query:v.query&&v.query.name,mutation:v.mutation&&v.mutation.name,subscription:v.subscription&&v.subscription.name};if(r)for(var w=0,_=r.operationTypes;w<_.length;w++){var k=_[w],x=k.operation,S=k.type;T[x]=S.name.value}for(var C=0;C<c.length;C++){var N=c[C];if(N.operationTypes)for(var D=0,j=N.operationTypes;D<j.length;D++){var A=j[D],F=A.operation,R=A.type;T[F]=R.name.value}}var M,P=v.allowedLegacyNames.concat(n&&n.allowedLegacyNames||[]);return new oe({query:q(T.query),mutation:q(T.mutation),subscription:q(T.subscription),types:Object(I.a)(g),directives:(M=e.getDirectives().map(H),M||Object(a.a)(0,"schema must have default directives"),M.concat(u.map((function(e){return y.buildDirective(e)})))),astNode:r||v.astNode,extensionASTNodes:v.extensionASTNodes.concat(c),allowedLegacyNames:P});function U(e){return Object(V.J)(e)?new V.d(U(e.ofType)):Object(V.L)(e)?new V.e(U(e.ofType)):B(e)}function B(e){return g[e.name]}function q(e){return e?g[e]:null}function K(e){return Object(ne.isIntrospectionType)(e)||Object(G.f)(e)?e:Object(V.R)(e)?function(e){var t=e.toConfig(),n=s[t.name]||[];return new V.g(vr({},t,{extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(V.N)(e)?function(e){var t=e.toConfig(),n=s[t.name]||[],r=L(n,(function(e){return e.interfaces||[]})),i=L(n,(function(e){return e.fields||[]}));return new V.f(vr({},t,{interfaces:function(){return[].concat(e.getInterfaces().map(B),r.map((function(e){return y.getNamedType(e)})))},fields:function(){return vr({},Object(hr.a)(t.fields,z),{},Object(or.a)(i,(function(e){return e.name.value}),(function(e){return y.buildField(e)})))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(V.H)(e)?function(e){var t=e.toConfig(),n=s[t.name]||[],r=L(n,(function(e){return e.fields||[]}));return new V.c(vr({},t,{fields:function(){return vr({},Object(hr.a)(t.fields,z),{},Object(or.a)(r,(function(e){return e.name.value}),(function(e){return y.buildField(e)})))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(V.T)(e)?function(e){var t=e.toConfig(),n=s[t.name]||[],r=L(n,(function(e){return e.types||[]}));return new V.h(vr({},t,{types:function(){return[].concat(e.getTypes().map(B),r.map((function(e){return y.getNamedType(e)})))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(V.E)(e)?function(e){var t=e.toConfig(),n=s[e.name]||[],r=L(n,(function(e){return e.values||[]}));return new V.a(vr({},t,{values:vr({},t.values,{},Object(or.a)(r,(function(e){return e.name.value}),(function(e){return y.buildEnumValue(e)}))),extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(V.F)(e)?function(e){var t=e.toConfig(),n=s[t.name]||[],r=L(n,(function(e){return e.fields||[]}));return new V.b(vr({},t,{fields:function(){return vr({},Object(hr.a)(t.fields,(function(e){return vr({},e,{type:U(e.type)})})),{},Object(or.a)(r,(function(e){return e.name.value}),(function(e){return y.buildInputField(e)})))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):void Object(we.a)(!1,"Unexpected type: "+Object(o.a)(e))}function H(e){var t=e.toConfig();return new Y(vr({},t,{args:Object(hr.a)(t.args,Q)}))}function z(e){return vr({},e,{type:U(e.type),args:Object(hr.a)(e.args,Q)})}function Q(e){return vr({},e,{type:U(e.type)})}}function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(n,!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e){var t=e.toConfig(),n=Object(or.a)(_r(t.types),(function(e){return e.name}),(function(e){if(Object(V.R)(e)||Object(ne.isIntrospectionType)(e))return e;if(Object(V.N)(e)){var t=e.toConfig();return new V.f(Or({},t,{interfaces:function(){return c(t.interfaces)},fields:function(){return u(t.fields)}}))}if(Object(V.H)(e)){var n=e.toConfig();return new V.c(Or({},n,{fields:function(){return u(n.fields)}}))}if(Object(V.T)(e)){var i=e.toConfig();return new V.h(Or({},i,{types:function(){return c(i.types)}}))}if(Object(V.E)(e)){var a=e.toConfig();return new V.a(Or({},a,{values:wr(a.values)}))}if(Object(V.F)(e)){var s=e.toConfig();return new V.b(Or({},s,{fields:function(){return wr(s.fields,(function(e){return Or({},e,{type:r(e.type)})}))}}))}Object(we.a)(!1,"Unexpected type: "+Object(o.a)(e))}));return new oe(Or({},t,{types:Object(I.a)(n),directives:_r(t.directives).map((function(e){var t=e.toConfig();return new Y(Or({},t,{locations:kr(t.locations,(function(e){return e})),args:s(t.args)}))})),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(e){return Object(V.J)(e)?new V.d(r(e.ofType)):Object(V.L)(e)?new V.e(r(e.ofType)):i(e)}function i(e){return n[e.name]}function a(e){return e&&i(e)}function s(e){return wr(e,(function(e){return Or({},e,{type:r(e.type)})}))}function u(e){return wr(e,(function(e){return Or({},e,{type:r(e.type),args:s(e.args)})}))}function c(e){return _r(e).map(i)}}function wr(e,t){for(var n=Object.create(null),r=kr(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function _r(e){return kr(e,(function(e){return e.name}))}function kr(e,t){return e.slice().sort((function(e,n){var r=t(e),i=t(n);return r.localeCompare(i)}))}var xr=n(33);function Sr(e,t){return Dr(e,(function(e){return!te(e)}),Nr,t)}function Cr(e,t){return Dr(e,te,ne.isIntrospectionType,t)}function Nr(e){return!Object(G.f)(e)&&!Object(ne.isIntrospectionType)(e)}function Dr(e,t,n,r){var i=e.getDirectives().filter(t),o=e.getTypeMap(),a=Object(I.a)(o).sort((function(e,t){return e.name.localeCompare(t.name)})).filter(n);return[jr(e)].concat(i.map((function(e){return function(e,t){return Pr(t,e)+"directive @"+e.name+Fr(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),a.map((function(e){return Ar(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function jr(e){if(!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),"schema {\n".concat(t.join("\n"),"\n}")}}function Ar(e,t){return Object(V.R)(e)?function(e,t){return Pr(t,e)+"scalar ".concat(e.name)}(e,t):Object(V.N)(e)?function(e,t){var n=e.getInterfaces(),r=n.length?" implements "+n.map((function(e){return e.name})).join(" & "):"";return Pr(t,e)+"type ".concat(e.name).concat(r)+Lr(t,e)}(e,t):Object(V.H)(e)?function(e,t){return Pr(t,e)+"interface ".concat(e.name)+Lr(t,e)}(e,t):Object(V.T)(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return Pr(t,e)+"union "+e.name+r}(e,t):Object(V.E)(e)?function(e,t){var n=e.getValues().map((function(e,n){return Pr(t,e," ",!n)+" "+e.name+Mr(e)}));return Pr(t,e)+"enum ".concat(e.name)+Ir(n)}(e,t):Object(V.F)(e)?function(e,t){var n=Object(I.a)(e.getFields()).map((function(e,n){return Pr(t,e," ",!n)+" "+Rr(e)}));return Pr(t,e)+"input ".concat(e.name)+Ir(n)}(e,t):void Object(we.a)(!1,"Unexpected type: "+Object(o.a)(e))}function Lr(e,t){return Ir(Object(I.a)(t.getFields()).map((function(t,n){return Pr(e,t," ",!n)+" "+t.name+Fr(e,t.args," ")+": "+String(t.type)+Mr(t)})))}function Ir(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(Rr).join(", ")+")":"(\n"+t.map((function(t,r){return Pr(e,t," "+n,!r)+" "+n+Rr(t)})).join("\n")+"\n"+n+")"}function Rr(e){var t=Object(xr.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(Pe.a)(t))),n}function Mr(e){if(!e.isDeprecated)return"";var t=e.deprecationReason,n=Object(xr.a)(t,G.e);return n&&""!==t&&t!==X?" @deprecated(reason: "+Object(Pe.a)(n)+")":" @deprecated"}function Pr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var i,o,a,s=(i=t.description,o=120-n.length,a=i.split("\n"),L(a,(function(e){return e.length<o+5?e:function(e,t){var n=e.split(new RegExp("((?: |^).{15,".concat(t-40,"}(?= |$))")));if(n.length<4)return[e];for(var r=[n[0]+n[1]+n[2]],i=3;i<n.length;i+=2)r.push(n[i].slice(1)+n[i+1]);return r}(e,o)})));if(e&&e.commentDescriptions)return function(e,t,n){for(var r=t&&!n?"\n":"",i=0;i<e.length;i++){var o=e[i];r+=""===o?t+"#\n":t+"# "+o+"\n"}return r}(s,n,r);var u=s.join("\n"),c=u.length>70;return(n&&!r?"\n"+n:n)+Object(d.c)(u,"",c).replace(/\n/g,"\n"+n)+"\n"}var Vr=n(93);function Ur(e,t,n,r){var i=[],a=fn(e,t,(function(e,t,a){var s="Invalid value "+Object(o.a)(t),c=[].concat(on(r),e);c.length>0&&(s+=' at "value'.concat(un(c),'"')),i.push(new u.a(s+": "+a.message,n,void 0,void 0,void 0,a.originalError))}));return i.length>0?{errors:i,value:void 0}:{errors:void 0,value:a}}function Br(e,t){var n=Ur(e,t).errors;return n?n.map((function(e){return e.message})):[]}function qr(e,t){var n=new oe({}),r={kind:l.Kind.DOCUMENT,definitions:[]},i=new ke(n,void 0,e),o=new Xt(n,r,i),a=pt(o);return Object(D.c)(t,Object(D.e)(i,a)),o.getErrors()}function Kr(e){return{kind:"Document",definitions:L(e,(function(e){return e.definitions}))}}function Hr(e){var t,n=[],r=Object.create(null),i=new Map,o=Object.create(null),a=0;Object(D.c)(e,{OperationDefinition:function(e){t=zr(e),n.push(e),i.set(e,a++)},FragmentDefinition:function(e){t=e.name.value,r[t]=e,i.set(e,a++)},FragmentSpread:function(e){var n=e.name.value;(o[t]||(o[t]=Object.create(null)))[n]=!0}});for(var s=Object.create(null),u=0;u<n.length;u++){var c=n[u],l=zr(c),f=Object.create(null);Gr(f,o,l);for(var p=[c],d=0,h=Object.keys(f);d<h.length;d++){var m=h[d];p.push(r[m])}p.sort((function(e,t){return(i.get(e)||0)-(i.get(t)||0)})),s[l]={kind:"Document",definitions:p}}return s}function zr(e){return e.name?e.name.value:""}function Gr(e,t,n){var r=t[n];if(r)for(var i=0,o=Object.keys(r);i<o.length;i++){var a=o[i];e[a]||(e[a]=!0,Gr(e,t,a))}}function Qr(e){var t="string"==typeof e?new p(e):e;if(!(t instanceof p))throw new TypeError("Must provide string or Source. Received: ".concat(Object(o.a)(t)));for(var n,r=t.body,i=m(t),a="",s=!1;i.advance().kind!==h.EOF;){var u=i.token,c=u.kind,l=(n=void 0,!((n=u.kind)===h.BANG||n===h.DOLLAR||n===h.AMP||n===h.PAREN_L||n===h.PAREN_R||n===h.SPREAD||n===h.COLON||n===h.EQUALS||n===h.AT||n===h.BRACKET_L||n===h.BRACKET_R||n===h.BRACE_L||n===h.PIPE||n===h.BRACE_R));s&&(l||u.kind===h.SPREAD)&&(a+=" ");var f=r.slice(u.start,u.end);c===h.BLOCK_STRING?a+=Wr(f):a+=f,s=l}return a}function Wr(e){var t=e.slice(3,-3),n=Object(d.a)(t),r=n.split(/\r\n|[\n\r]/g);Object(d.b)(r)>0&&(n="\n"+n);var i=n[n.length-1];return('"'===i&&'\\"""'!==n.slice(-4)||"\\"===i)&&(n+="\n"),'"""'+n+'"""'}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $r=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Xr=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Zr(e,t){return ti(e,t).filter((function(e){return e.type in $r}))}function ei(e,t){return ti(e,t).filter((function(e){return e.type in Xr}))}function ti(e,t){return[].concat(function(e,t){for(var n=[],r=pi(Object(I.a)(e.getTypeMap()),Object(I.a)(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:$r.TYPE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];Object(V.E)(l)&&Object(V.E)(f)?n.push.apply(n,ii(l,f)):Object(V.T)(l)&&Object(V.T)(f)?n.push.apply(n,ri(l,f)):Object(V.F)(l)&&Object(V.F)(f)?n.push.apply(n,ni(l,f)):Object(V.N)(l)&&Object(V.N)(f)?n.push.apply(n,oi(l,f)):Object(V.H)(l)&&Object(V.H)(f)?n.push.apply(n,ai(l,f)):l.constructor!==f.constructor&&n.push({type:$r.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(li(l)," to ").concat(li(f),".")})}return n}(e,t),function(e,t){for(var n=[],r=pi(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:$r.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],f=c[1],p=pi(l.args,f.args),d=0,h=p.added;d<h.length;d++){var m=h[d];Object(V.P)(m)&&n.push({type:$r.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(l.name," was added.")})}for(var v=0,y=p.removed;v<y.length;v++){var g=y[v];n.push({type:$r.DIRECTIVE_ARG_REMOVED,description:"".concat(g.name," was removed from ").concat(l.name,".")})}for(var b=0,O=l.locations;b<O.length;b++){var E=O[b];-1===f.locations.indexOf(E)&&n.push({type:$r.DIRECTIVE_LOCATION_REMOVED,description:"".concat(E," was removed from ").concat(l.name,".")})}}return n}(e,t))}function ni(e,t){for(var n=[],r=pi(Object(I.a)(e.getFields()),Object(I.a)(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];Object(V.Q)(a)?n.push({type:$r.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:Xr.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:$r.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,f=r.persisted;l<f.length;l++){var p=f[l],d=p[0],h=p[1];ci(d.type,h.type)||n.push({type:$r.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function ri(e,t){for(var n=[],r=pi(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Xr.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:$r.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function ii(e,t){for(var n=[],r=pi(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Xr.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:$r.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function oi(e,t){for(var n=ai(e,t),r=pi(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Xr.INTERFACE_ADDED_TO_OBJECT,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:$r.INTERFACE_REMOVED_FROM_OBJECT,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function ai(e,t){for(var n=[],r=pi(Object(I.a)(e.getFields()),Object(I.a)(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:$r.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];n.push.apply(n,si(e,l,f)),ui(l.type,f.type)||n.push({type:$r.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(f.type),".")})}return n}function si(e,t,n){for(var r=[],i=pi(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:$r.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],f=l[0],p=l[1];if(ci(f.type,p.type)){if(void 0!==f.defaultValue)if(void 0===p.defaultValue)r.push({type:Xr.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," defaultValue was removed.")});else{var d=fi(f.defaultValue,f.type),h=fi(p.defaultValue,p.type);d!==h&&r.push({type:Xr.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:$r.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}for(var m=0,v=i.added;m<v.length;m++){var y=v[m];Object(V.P)(y)?r.push({type:$r.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:Xr.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function ui(e,t){return Object(V.J)(e)?Object(V.J)(t)&&ui(e.ofType,t.ofType)||Object(V.L)(t)&&ui(e,t.ofType):Object(V.L)(e)?Object(V.L)(t)&&ui(e.ofType,t.ofType):Object(V.K)(t)&&e.name===t.name||Object(V.L)(t)&&ui(e,t.ofType)}function ci(e,t){return Object(V.J)(e)?Object(V.J)(t)&&ci(e.ofType,t.ofType):Object(V.L)(e)?Object(V.L)(t)&&ci(e.ofType,t.ofType)||!Object(V.L)(t)&&ci(e.ofType,t):Object(V.K)(t)&&e.name===t.name}function li(e){return Object(V.R)(e)?"a Scalar type":Object(V.N)(e)?"an Object type":Object(V.H)(e)?"an Interface type":Object(V.T)(e)?"a Union type":Object(V.E)(e)?"an Enum type":Object(V.F)(e)?"an Input type":void Object(we.a)(!1,"Unexpected type: "+Object(o.a)(e))}function fi(e,t){var n=Object(xr.a)(e,t);null!=n||Object(we.a)(0);var r=Object(D.c)(n,{ObjectValue:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(n,!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{fields:[].concat(e.fields).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}))})}});return Object(Pe.a)(r)}function pi(e,t){for(var n=[],r=[],i=[],o=Object(ut.a)(e,(function(e){return e.name})),a=Object(ut.a)(t,(function(e){return e.name})),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var f=t[l];void 0===o[f.name]&&n.push(f)}return{added:n,persisted:i,removed:r}}function di(e,t){var n=[],r=new ke(e);return Object(D.c)(t,Object(D.e)(r,{Field:function(e){var t=r.getFieldDef();if(t&&t.isDeprecated){var i=r.getParentType();if(i){var o=t.deprecationReason;n.push(new u.a("The field ".concat(i.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}},EnumValue:function(e){var t=r.getEnumValue();if(t&&t.isDeprecated){var i=Object(V.A)(r.getInputType());if(i){var o=t.deprecationReason;n.push(new u.a("The enum value ".concat(i.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}}})),n}n.d(t,"version",(function(){return"14.5.8"})),n.d(t,"versionInfo",(function(){return r})),n.d(t,"graphql",(function(){return qn})),n.d(t,"graphqlSync",(function(){return Kn})),n.d(t,"GraphQLSchema",(function(){return oe})),n.d(t,"GraphQLDirective",(function(){return Y})),n.d(t,"GraphQLScalarType",(function(){return V.g})),n.d(t,"GraphQLObjectType",(function(){return V.f})),n.d(t,"GraphQLInterfaceType",(function(){return V.c})),n.d(t,"GraphQLUnionType",(function(){return V.h})),n.d(t,"GraphQLEnumType",(function(){return V.a})),n.d(t,"GraphQLInputObjectType",(function(){return V.b})),n.d(t,"GraphQLList",(function(){return V.d})),n.d(t,"GraphQLNonNull",(function(){return V.e})),n.d(t,"specifiedScalarTypes",(function(){return G.g})),n.d(t,"GraphQLInt",(function(){return G.d})),n.d(t,"GraphQLFloat",(function(){return G.b})),n.d(t,"GraphQLString",(function(){return G.e})),n.d(t,"GraphQLBoolean",(function(){return G.a})),n.d(t,"GraphQLID",(function(){return G.c})),n.d(t,"specifiedDirectives",(function(){return ee})),n.d(t,"GraphQLIncludeDirective",(function(){return J})),n.d(t,"GraphQLSkipDirective",(function(){return $})),n.d(t,"GraphQLDeprecatedDirective",(function(){return Z})),n.d(t,"TypeKind",(function(){return ne.TypeKind})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return X})),n.d(t,"introspectionTypes",(function(){return ne.introspectionTypes})),n.d(t,"__Schema",(function(){return ne.__Schema})),n.d(t,"__Directive",(function(){return ne.__Directive})),n.d(t,"__DirectiveLocation",(function(){return ne.__DirectiveLocation})),n.d(t,"__Type",(function(){return ne.__Type})),n.d(t,"__Field",(function(){return ne.__Field})),n.d(t,"__InputValue",(function(){return ne.__InputValue})),n.d(t,"__EnumValue",(function(){return ne.__EnumValue})),n.d(t,"__TypeKind",(function(){return ne.__TypeKind})),n.d(t,"SchemaMetaFieldDef",(function(){return ne.SchemaMetaFieldDef})),n.d(t,"TypeMetaFieldDef",(function(){return ne.TypeMetaFieldDef})),n.d(t,"TypeNameMetaFieldDef",(function(){return ne.TypeNameMetaFieldDef})),n.d(t,"isSchema",(function(){return re})),n.d(t,"isDirective",(function(){return Q})),n.d(t,"isType",(function(){return V.S})),n.d(t,"isScalarType",(function(){return V.R})),n.d(t,"isObjectType",(function(){return V.N})),n.d(t,"isInterfaceType",(function(){return V.H})),n.d(t,"isUnionType",(function(){return V.T})),n.d(t,"isEnumType",(function(){return V.E})),n.d(t,"isInputObjectType",(function(){return V.F})),n.d(t,"isListType",(function(){return V.J})),n.d(t,"isNonNullType",(function(){return V.L})),n.d(t,"isInputType",(function(){return V.G})),n.d(t,"isOutputType",(function(){return V.O})),n.d(t,"isLeafType",(function(){return V.I})),n.d(t,"isCompositeType",(function(){return V.D})),n.d(t,"isAbstractType",(function(){return V.C})),n.d(t,"isWrappingType",(function(){return V.U})),n.d(t,"isNullableType",(function(){return V.M})),n.d(t,"isNamedType",(function(){return V.K})),n.d(t,"isRequiredArgument",(function(){return V.P})),n.d(t,"isRequiredInputField",(function(){return V.Q})),n.d(t,"isSpecifiedScalarType",(function(){return G.f})),n.d(t,"isIntrospectionType",(function(){return ne.isIntrospectionType})),n.d(t,"isSpecifiedDirective",(function(){return te})),n.d(t,"assertSchema",(function(){return ie})),n.d(t,"assertDirective",(function(){return W})),n.d(t,"assertType",(function(){return V.x})),n.d(t,"assertScalarType",(function(){return V.w})),n.d(t,"assertObjectType",(function(){return V.u})),n.d(t,"assertInterfaceType",(function(){return V.o})),n.d(t,"assertUnionType",(function(){return V.y})),n.d(t,"assertEnumType",(function(){return V.l})),n.d(t,"assertInputObjectType",(function(){return V.m})),n.d(t,"assertListType",(function(){return V.q})),n.d(t,"assertNonNullType",(function(){return V.s})),n.d(t,"assertInputType",(function(){return V.n})),n.d(t,"assertOutputType",(function(){return V.v})),n.d(t,"assertLeafType",(function(){return V.p})),n.d(t,"assertCompositeType",(function(){return V.k})),n.d(t,"assertAbstractType",(function(){return V.j})),n.d(t,"assertWrappingType",(function(){return V.z})),n.d(t,"assertNullableType",(function(){return V.t})),n.d(t,"assertNamedType",(function(){return V.r})),n.d(t,"getNullableType",(function(){return V.B})),n.d(t,"getNamedType",(function(){return V.A})),n.d(t,"validateSchema",(function(){return ue})),n.d(t,"assertValidSchema",(function(){return ce})),n.d(t,"Source",(function(){return p})),n.d(t,"getLocation",(function(){return zn.a})),n.d(t,"printLocation",(function(){return Gn.a})),n.d(t,"printSourceLocation",(function(){return Gn.b})),n.d(t,"createLexer",(function(){return m})),n.d(t,"TokenKind",(function(){return h})),n.d(t,"parse",(function(){return _})),n.d(t,"parseValue",(function(){return k})),n.d(t,"parseType",(function(){return x})),n.d(t,"print",(function(){return Pe.a})),n.d(t,"visit",(function(){return D.c})),n.d(t,"visitInParallel",(function(){return D.d})),n.d(t,"visitWithTypeInfo",(function(){return D.e})),n.d(t,"getVisitFn",(function(){return D.b})),n.d(t,"BREAK",(function(){return D.a})),n.d(t,"Kind",(function(){return l.Kind})),n.d(t,"DirectiveLocation",(function(){return w.a})),n.d(t,"isDefinitionNode",(function(){return Fe.a})),n.d(t,"isExecutableDefinitionNode",(function(){return Fe.b})),n.d(t,"isSelectionNode",(function(){return Fe.c})),n.d(t,"isValueNode",(function(){return Fe.i})),n.d(t,"isTypeNode",(function(){return Fe.f})),n.d(t,"isTypeSystemDefinitionNode",(function(){return Fe.g})),n.d(t,"isTypeDefinitionNode",(function(){return Fe.d})),n.d(t,"isTypeSystemExtensionNode",(function(){return Fe.h})),n.d(t,"isTypeExtensionNode",(function(){return Fe.e})),n.d(t,"execute",(function(){return yn})),n.d(t,"defaultFieldResolver",(function(){return Un})),n.d(t,"defaultTypeResolver",(function(){return Vn})),n.d(t,"responsePathAsArray",(function(){return on})),n.d(t,"getDirectiveValues",(function(){return mn})),n.d(t,"subscribe",(function(){return Jn})),n.d(t,"createSourceEventStream",(function(){return Zn})),n.d(t,"validate",(function(){return Zt})),n.d(t,"ValidationContext",(function(){return Xt})),n.d(t,"specifiedRules",(function(){return Qt})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return qe})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return Ve})),n.d(t,"KnownArgumentNamesRule",(function(){return ot})),n.d(t,"KnownDirectivesRule",(function(){return Ze})),n.d(t,"KnownFragmentNamesRule",(function(){return He.KnownFragmentNames})),n.d(t,"KnownTypeNamesRule",(function(){return Re})),n.d(t,"LoneAnonymousOperationRule",(function(){return Ne})),n.d(t,"NoFragmentCyclesRule",(function(){return Qe})),n.d(t,"NoUndefinedVariablesRule",(function(){return Je})),n.d(t,"NoUnusedFragmentsRule",(function(){return ze.NoUnusedFragments})),n.d(t,"NoUnusedVariablesRule",(function(){return Xe})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return kt})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return Ge})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return gt})),n.d(t,"ScalarLeafsRule",(function(){return Be})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return De})),n.d(t,"UniqueArgumentNamesRule",(function(){return st})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return tt})),n.d(t,"UniqueFragmentNamesRule",(function(){return Ke})),n.d(t,"UniqueInputFieldNamesRule",(function(){return Ft})),n.d(t,"UniqueOperationNamesRule",(function(){return Ce})),n.d(t,"UniqueVariableNamesRule",(function(){return We})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return pt})),n.d(t,"VariablesAreInputTypesRule",(function(){return Ue})),n.d(t,"VariablesInAllowedPositionRule",(function(){return Tt})),n.d(t,"GraphQLError",(function(){return u.a})),n.d(t,"syntaxError",(function(){return c})),n.d(t,"locatedError",(function(){return an})),n.d(t,"printError",(function(){return u.b})),n.d(t,"formatError",(function(){return er})),n.d(t,"getIntrospectionQuery",(function(){return tr})),n.d(t,"introspectionQuery",(function(){return nr})),n.d(t,"getOperationAST",(function(){return rr})),n.d(t,"getOperationRootType",(function(){return sn})),n.d(t,"introspectionFromSchema",(function(){return ir})),n.d(t,"buildClientSchema",(function(){return ar})),n.d(t,"buildASTSchema",(function(){return sr})),n.d(t,"buildSchema",(function(){return dr})),n.d(t,"getDescription",(function(){return pr})),n.d(t,"extendSchema",(function(){return gr})),n.d(t,"lexicographicSortSchema",(function(){return Tr})),n.d(t,"printSchema",(function(){return Sr})),n.d(t,"printType",(function(){return Ar})),n.d(t,"printIntrospectionSchema",(function(){return Cr})),n.d(t,"typeFromAST",(function(){return _e})),n.d(t,"valueFromAST",(function(){return cn})),n.d(t,"valueFromASTUntyped",(function(){return Vr.a})),n.d(t,"astFromValue",(function(){return xr.a})),n.d(t,"TypeInfo",(function(){return ke})),n.d(t,"coerceInputValue",(function(){return fn})),n.d(t,"coerceValue",(function(){return Ur})),n.d(t,"isValidJSValue",(function(){return Br})),n.d(t,"isValidLiteralValue",(function(){return qr})),n.d(t,"concatAST",(function(){return Kr})),n.d(t,"separateOperations",(function(){return Hr})),n.d(t,"stripIgnoredCharacters",(function(){return Qr})),n.d(t,"isEqualType",(function(){return U})),n.d(t,"isTypeSubTypeOf",(function(){return B})),n.d(t,"doTypesOverlap",(function(){return q})),n.d(t,"assertValidName",(function(){return M})),n.d(t,"isValidNameError",(function(){return P})),n.d(t,"BreakingChangeType",(function(){return $r})),n.d(t,"DangerousChangeType",(function(){return Xr})),n.d(t,"findBreakingChanges",(function(){return Zr})),n.d(t,"findDangerousChanges",(function(){return ei})),n.d(t,"findDeprecatedUsages",(function(){return di}))},function(e,t){e.exports=window.React},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,"a",(function(){return i}))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(107)()})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(2),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],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"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=void 0,m=void 0,v=[],y=[],g=e;do{var b=++f===c.length,O=b&&0!==p.length;if(b){if(h=0===y.length?void 0:v[v.length-1],d=m,m=y.pop(),O){if(u)d=d.slice();else{for(var E={},T=0,w=Object.keys(d);T<w.length;T++){var _=w[T];E[_]=d[_]}d=E}for(var k=0,x=0;x<p.length;x++){var S=p[x][0],C=p[x][1];u&&(S-=k),u&&null===C?(d.splice(S,1),k++):d[S]=C}}f=a.index,c=a.keys,p=a.edits,u=a.inArray,a=a.prev}else{if(h=m?u?f:c[f]:void 0,null==(d=m?m[h]:g))continue;m&&v.push(h)}var N=void 0;if(!Array.isArray(d)){if(!s(d))throw new Error("Invalid AST Node: "+Object(r.a)(d));var D=l(t,d.kind,b);if(D){if((N=D.call(t,d,h,m,v,y))===o)break;if(!1===N){if(!b){v.pop();continue}}else if(void 0!==N&&(p.push([h,N]),!b)){if(!s(N)){v.pop();continue}d=N}}}void 0===N&&O&&p.push([h,d]),b?v.pop():(a={inArray:u,index:f,keys:c,edits:p,prev:a},c=(u=Array.isArray(d))?d:n[d.kind]||[],f=-1,p=[],m&&y.push(m),m=d)}while(void 0!==a);return 0!==p.length&&(g=p[p.length-1][1]),g}function s(e){return Boolean(e&&"string"==typeof e.kind)}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var i=l(e[r],n.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)t[r]=n;else if(a===o)t[r]=o;else if(void 0!==a)return a}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var i=l(e[r],n.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===o)t[r]=o;else if(void 0!==a&&!1!==a)return a}}}}}function c(e,t){return{enter:function(n){e.enter(n);var r=l(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),s(i)&&e.enter(i)),i}},leave:function(n){var r,i=l(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function l(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}}}},function(e,t,n){"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=Object(r.a)(e);n<i.length;n++){var o=i[n],a=o[0],s=o[1];t[a]=s}return t}},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";function r(e){return void 0===e||e!=e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m}));var r="function"==typeof Symbol?Symbol:void 0,i=r&&r.iterator,o=i||"@@iterator";function a(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function s(e){return Object(e)===e&&(a(e)||function(e){return!!c(e)}(e))}function u(e){var t=c(e);if(t)return t.call(e)}function c(e){if(null!=e){var t=i&&e[i]||e["@@iterator"];if("function"==typeof t)return t}}function l(e){this._o=e,this._i=0}function f(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=u(e);if(i){for(var o;!(o=i.next()).done;)if(t.call(n,o.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(a(e))for(;r<e.length;r++)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}}l.prototype[o]=function(){return this},l.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var p=r&&r.asyncIterator,d=p||"@@asyncIterator";function h(e){return!!v(e)}function m(e){var t=v(e);if(t)return t.call(e)}function v(e){if(null!=e){var t=p&&e[p]||e["@@asyncIterator"];if("function"==typeof t)return t}}function y(e){this._i=e}y.prototype[d]=function(){return this},y.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){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,r.a&&(e.prototype[r.a]=t)}},function(e,t,n){"use strict";var r=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return p}));var r=n(1);function i(e){return o(e)||c(e)||f(e)}function o(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function s(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function u(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function c(e){return e.kind===r.Kind.SCHEMA_DEFINITION||l(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function l(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.Kind.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=i(t);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&a(t[0]);)t.shift();for(;t.length>0&&a(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=null,n=1;n<e.length;n++){var r=e[n],i=o(r);if(i!==r.length&&((null===t||i<t)&&0===(t=i)))break}return null===t?0:t}function o(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function a(e){return o(e)===e.length}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!r||o||n,s="";return!a||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);function i(e,t){for(var n=Object.create(null),i=0,o=Object(r.a)(e);i<o.length;i++){var a=o[i],s=a[0],u=a[1];n[s]=t(u,s)}return n}},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var u=e.getLine(o),c=t.exec(u);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function s(e,t,n){if(!function(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}(t))return o(e,t,n);t=i(t,"gm");for(var a,s=1,u=n.line,c=e.lastLine();u<=c;){for(var l=0;l<s&&!(u>c);l++){var f=e.getLine(u++);a=null==a?f:a+"\n"+f}s*=2,t.lastIndex=n.ch;var p=t.exec(a);if(p){var d=a.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=n.line+d.length-1,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}}function u(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==e.length)return n}}function c(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var c=e.getLine(o);a>-1&&(c=c.slice(0,a));var l=u(c,t);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function l(e,t,n){t=i(t,"gm");for(var o,a=1,s=n.line,c=e.firstLine();s>=c;){for(var l=0;l<a;l++){var f=e.getLine(s--);o=null==o?f.slice(0,n.ch):f+"\n"+o}a*=2;var p=u(o,t);if(p){var d=o.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=s+d.length,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}}function f(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,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,u=s(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,p=e.lastLine()+1-u.length;c<=p;c++,l=0){var d=e.getLine(c).slice(l),h=s(d);if(1==u.length){var m=h.indexOf(u[0]);if(-1==m)continue e;return o=f(d,h,m,s)+l,{from:r(c,f(d,h,m,s)+l),to:r(c,f(d,h,m+u[0].length,s)+l)}}var v=h.length-u[0].length;if(h.slice(v)==u[0]){for(var y=1;y<u.length-1;y++)if(s(e.getLine(c+y))!=u[y])continue e;var g=e.getLine(c+u.length-1),b=s(g),O=u[u.length-1];if(b.slice(0,O.length)==O)return{from:r(c,f(d,h,v,s)+l),to:r(c+u.length-1,f(g,b,O.length,s))}}}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,u=s(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,p=e.firstLine()-1+u.length;c>=p;c--,l=-1){var d=e.getLine(c);l>-1&&(d=d.slice(0,l));var h=s(d);if(1==u.length){var m=h.lastIndexOf(u[0]);if(-1==m)continue e;return{from:r(c,f(d,h,m,s)),to:r(c,f(d,h,m+u[0].length,s))}}var v=u[u.length-1];if(h.slice(0,v.length)==v){var y=1;for(o=c-u.length+1;y<u.length-1;y++)if(s(e.getLine(o+y))!=u[y])continue e;var g=e.getLine(c+1-u.length),b=s(g);if(b.slice(b.length-u[0].length)==u[0])return{from:r(c+1-u.length,f(g,b,g.length-u[0].length,s)),to:r(c,f(d,h,v.length,s))}}}}function h(e,t,n,u){var f;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==a(u)?f=u.caseFold:(f=u,u=null),"string"==typeof t?(null==f&&(f=!1),this.matches=function(n,r){return(n?d:p)(e,t,r,f)}):(t=i(t,"gm"),u&&!1===u.multiline?this.matches=function(n,r){return(n?c:o)(e,t,r)}:this.matches=function(n,r){return(n?l:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.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=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).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){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,u=this;function c(t){if("string"==typeof t)f.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus(),o.onClose&&o.onClose(a)}}var l,f=a.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,c)})),o.onKeyUp&&e.on(f,"keyup",(function(e){o.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),c()),13==t.keyCode&&i(f.value,t))})),!1!==o.closeOnBlur&&e.on(f,"blur",c)):(l=a.getElementsByTagName("button")[0])&&(e.on(l,"click",(function(){c(),u.focus()})),!1!==o.closeOnBlur&&e.on(l,"blur",c),l.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,l=1;function f(){u||(u=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var p=0;p<s.length;++p){var d=s[p];!function(t){e.on(d,"click",(function(n){e.e_preventDefault(n),f(),t&&t(c)}))}(i[p]),e.on(d,"blur",(function(){--l,setTimeout((function(){l<=0&&f()}),200)})),e.on(d,"focus",(function(){++l}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),u&&(o=setTimeout(c,u)),c}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(23),i=n(7),o=n(2),a=n(12),s=n(40),u=n(22),c=n(15),l=n(1),f=n(9),p=n(0);function d(e,t){if(Object(p.L)(t)){var n=d(e,t.ofType);return n&&n.kind===l.Kind.NULL?null:n}if(null===e)return{kind:l.Kind.NULL};if(Object(u.a)(e))return null;if(Object(p.J)(t)){var m=t.ofType;if(Object(r.e)(e)){var v=[];return Object(r.b)(e,(function(e){var t=d(e,m);t&&v.push(t)})),{kind:l.Kind.LIST,values:v}}return d(e,m)}if(Object(p.F)(t)){if(!Object(c.a)(e))return null;for(var y=[],g=0,b=Object(i.a)(t.getFields());g<b.length;g++){var O=b[g],E=d(e[O.name],O.type);E&&y.push({kind:l.Kind.OBJECT_FIELD,name:{kind:l.Kind.NAME,value:O.name},value:E})}return{kind:l.Kind.OBJECT,fields:y}}if(Object(p.I)(t)){var T=t.serialize(e);if(Object(s.a)(T))return null;if("boolean"==typeof T)return{kind:l.Kind.BOOLEAN,value:T};if("number"==typeof T){var w=String(T);return h.test(w)?{kind:l.Kind.INT,value:w}:{kind:l.Kind.FLOAT,value:w}}if("string"==typeof T)return Object(p.E)(t)?{kind:l.Kind.ENUM,value:T}:t===f.c&&h.test(T)?{kind:l.Kind.INT,value:T}:{kind:l.Kind.STRING,value:T};throw new TypeError("Cannot convert value to AST: ".concat(Object(o.a)(T)))}Object(a.a)(!1,"Unexpected input type: "+Object(o.a)(t))}var h=/^-?(?:0|[1-9][0-9]*)$/},function(e,t,n){var r,i,o;i=[t,n(52),n(53),n(54),n(55)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getASTNodeAtPosition",{enumerable:!0,get:function(){return t.getASTNodeAtPosition}}),Object.defineProperty(e,"pointToOffset",{enumerable:!0,get:function(){return t.pointToOffset}}),Object.defineProperty(e,"Position",{enumerable:!0,get:function(){return n.Position}}),Object.defineProperty(e,"Range",{enumerable:!0,get:function(){return n.Range}}),Object.defineProperty(e,"locToRange",{enumerable:!0,get:function(){return n.locToRange}}),Object.defineProperty(e,"offsetToPosition",{enumerable:!0,get:function(){return n.offsetToPosition}}),Object.defineProperty(e,"validateWithCustomRules",{enumerable:!0,get:function(){return r.validateWithCustomRules}}),Object.defineProperty(e,"requireFile",{enumerable:!0,get:function(){return i.requireFile}}),Object.defineProperty(e,"resolveFile",{enumerable:!0,get:function(){return i.resolveFile}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(175),n(80),n(81),n(176)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CharacterStream",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"LexRules",{enumerable:!0,get:function(){return n.LexRules}}),Object.defineProperty(e,"ParseRules",{enumerable:!0,get:function(){return n.ParseRules}}),Object.defineProperty(e,"isIgnored",{enumerable:!0,get:function(){return n.isIgnored}}),Object.defineProperty(e,"butNot",{enumerable:!0,get:function(){return r.butNot}}),Object.defineProperty(e,"list",{enumerable:!0,get:function(){return r.list}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(e,"p",{enumerable:!0,get:function(){return r.p}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(e,"onlineParser",{enumerable:!0,get:function(){return i.default}}),t=o(t),i=o(i)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(13)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(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})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=i(t),n=i(n);var l,f,p,d=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),s(this,u(n).apply(this,arguments))}var i,o,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),i=n,(o=[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type}},{key:"render",value:function(){return function e(n,i){return n instanceof r.GraphQLNonNull?t.default.createElement("span",null,e(n.ofType,i),"!"):n instanceof r.GraphQLList?t.default.createElement("span",null,"[",e(n.ofType,i),"]"):t.default.createElement("a",{className:"type-name",onClick:function(e){e.preventDefault(),i(n,e)},href:"#"},n.name)}(this.props.type,this.props.onClick)}}])&&a(i.prototype,o),l&&a(i,l),n}(t.default.Component);e.default=d,l=d,f="propTypes",p={type:n.default.object,onClick:n.default.func},f in l?Object.defineProperty(l,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[f]=p})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var a=e.getLineHandle(t.line),u=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var l=i(o),f=!c&&u>=0&&l.test(a.text.charAt(u))&&r[a.text.charAt(u)]||l.test(a.text.charAt(u+1))&&r[a.text.charAt(++u)];if(!f)return null;var p=">"==f.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(u==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,u+1)),h=s(e,n(t.line,u+(p>0?1:0)),p,d||null,o);return null==h?null:{from:n(t.line,u),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:p>0}}function s(e,t,o,a,s){for(var u=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,l=[],f=i(s),p=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=p;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>u))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var y=h.charAt(m);if(f.test(y)&&(void 0===a||e.getTokenTypeAt(n(d,m+1))==a)){var g=r[y];if(g&&">"==g.charAt(1)==o>0)l.push(y);else{if(!l.length)return{pos:n(d,m),ch:y};l.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function u(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=e.listSelections(),c=0;c<u.length;c++){var l=u[c].empty()&&o(e,u[c].head,i);if(l&&e.getLine(l.from.line).length<=a){var f=l.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(l.from,n(l.from.line,l.from.ch+1),{className:f})),l.to&&e.getLine(l.to.line).length<=a&&s.push(e.markText(l.to,n(l.to.line,l.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return p;setTimeout(p,800)}}function c(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=u(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",c),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),n&&(t.state.matchBrackets="object"==a(n)?n:{},t.on("cursorActivity",c))})),e.defineExtension("matchBrackets",(function(){u(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return s(this,e,t,n,r)}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){"use strict";function r(e){return null==e||e!=e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){return(t="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})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":t(window))&&(n=window)}e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(118)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";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]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;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){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new 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 new 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 new 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){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.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(r<0){if(t)return;throw new 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(r<0){if(t)return;throw new 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})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"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(n=0,r=(t=this.attrs).length;n<r;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];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";var t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=!1;"object"===("undefined"==typeof window?"undefined":r(window))&&(i="MacIntel"===window.navigator.platform);var o=(n(t={},i?"Cmd-F":"Ctrl-F","findPersistent"),n(t,"Cmd-G","findPersistent"),n(t,"Ctrl-G","findPersistent"),n(t,"Ctrl-Left","goSubwordLeft"),n(t,"Ctrl-Right","goSubwordRight"),n(t,"Alt-Left","goGroupLeft"),n(t,"Alt-Right","goGroupRight"),t);e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6),n(75)):(i=[n(6),n(75)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",c),t.off("viewportChange",l),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",c)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",u),t.on("changes",c),t.on("viewportChange",l),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",c))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}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,n,o){var s=e.state.foldGutter.options,u=n-1,c=e.foldOption(s,"minFoldSize"),l=e.foldOption(s,"rangeFinder"),f="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),p="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++u;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,u)){if(f&&a&&f.test(a.className))return;o=i(s.indicatorFolded)}else{var d=t(u,0),h=l&&l(e,d);if(h&&h.to.line-h.from.line>=c){if(p&&a&&p.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(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,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(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?s(e):e.operation((function(){n.from<t.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 f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,u=0;;){var c=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=c){if(1==u&&c<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(r))return c+1;s=c-1}else{if(1==u)break;u=1,s=o.length}}}var s="{",u="}",c=a("{");if(null==c&&(s="[",u="]",c=a("[")),null!=c){var l,f,p=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),v=h==i?c:0;;){var y=m.indexOf(s,v),g=m.indexOf(u,v);if(y<0&&(y=m.length),g<0&&(g=m.length),(v=Math.min(y,g))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==r)if(v==y)++p;else if(!--p){l=h,f=v;break e}++v}if(null!=l&&i!=l)return{from:e.Pos(i,c),to:e.Pos(l,f)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}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 s=a.end;;){var u=r(s.line+1);if(null==u)break;s=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6),n(32)):(i=[n(6),n(32)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6),n(31),n(39)):(i=[n(6),n(31),n(39)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",u=r.ch,c=i<0?0:o.length,l=0;u!=c;u+=i,l++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p&&(s="in",a=p);else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){a="w";continue}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var u=n(s.line+(r?0:1),0);t.replaceRange("\n",u,null,"+insertLine"),t.indentLine(u.line,null,!0),i.push({head:u,anchor:u}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var u={anchor:a,head:s};r.push(o),r.push(u)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var u=t.getRange(r,i),c=a?new RegExp("\\b"+u+"\\b"):u,l=t.getSearchCursor(c,i),f=l.findNext();if(f||(f=(l=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!f||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),l.from(),l.to()))return;t.addSelection(l.from(),l.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function u(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],u=a.head,c=t.scanForBracket(u,-1);if(!c)return!1;for(;;){var l=t.scanForBracket(u,1);if(!l)return!1;if(l.ch==s.charAt(s.indexOf(c.ch)+1)){var f=n(c.pos.line,c.pos.ch+1);if(0!=e.cmpPos(f,a.from())||0!=e.cmpPos(l.pos,a.to())){i.push({anchor:f,head:l.pos});break}if(!(c=t.scanForBracket(c.pos,-1)))return!1}u=n(l.pos.line,l.pos.ch+1)}}return t.setSelections(i),!0}function c(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var u=o[s];if(!u.empty()){for(var c=u.from().line,l=u.to().line;s<o.length-1&&o[s+1].from().line==l;)l=o[++s].to().line;o[s].to().ch||l--,a.push(c,l)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],o=0;o<a.length;o+=2){var s=a[o],u=a[o+1],c=n(s,0),l=n(u),f=t.getRange(c,l,!1);r?f.sort():f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1})),t.replaceRange(f,c,l),i&&e.push({anchor:c,head:n(u+1,0)})}i&&t.setSelections(e,0)}))}function l(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(c.from(),c.to())));var u;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var c=r[i[s]];if(!(u&&e.cmpPos(c.head,u)>0)){var l=o(t,c.head);u=l.from,t.replaceRange(n(l.word),l.from,l.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1);if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1);return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var u=r[s],c=u.from().line-1,l=u.to().line;a.push({anchor:n(u.anchor.line-1,u.anchor.ch),head:n(u.head.line-1,u.head.ch)}),0!=u.to().ch||u.empty()||--l,c>o?i.push(c,l):i.length&&(i[i.length-1]=l),o=l}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],u=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||u--,u<o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,u=o.to().line;i<t.length-1&&t[i+1].from().line==u;)u=t[++i].to().line;r.push({start:s,end:u,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],u=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var l=c-t;c==s.end&&(a=n(l,e.getLine(l).length+1)),l<e.lastLine()&&(e.replaceRange(" ",n(l),n(l+1,/^\s*/.exec(e.getLine(l+1))[0].length)),++t)}i.push({anchor:u||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){c(e,!0)},t.sortLinesInsensitive=function(e){c(e,!1)},t.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)}},t.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()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var u=0;u<n.length;u++)n[u]==a[s]&&n.splice(u--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;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)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),u=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&u%i==0){var l=new n(a.line,e.findColumn(s,u-i,i));l.ch!=a.ch&&(c=l)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){l(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){l(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.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)}},t.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))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(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 d=e.keyMap;d.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(d.macSublime),d.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(d.pcSublime);var h=d.default==d.macDefault;d.sublime=h?d.macSublime:d.pcSublime}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){var r,i,o;i=[t,n(13),n(35),n(79)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=null,r=null,a=null,u=s(e,(function(e,s,u,c){if(c===t.line&&e.getCurrentPosition()>=t.character)return n=u,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s),a=e.current(),"BREAK"}));return{start:u.start,end:u.end,string:a||u.string,state:r||u.state,style:n||u.style}}function s(e,t){for(var r=e.split("\n"),i=(0,n.onlineParser)(),o=i.startState(),a="",s=new n.CharacterStream(""),u=0;u<r.length;u++){for(s=new n.CharacterStream(r[u]);!s.eol()&&"BREAK"!==t(s,o,a=i.token(s,o),u););t(s,o,a,u),o.kind||(o=i.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:o,style:a}}function u(e,n){var i,o,a,s,u,c,l,f,p;return(0,r.forEachState)(n,(function(n){switch(n.kind){case"Query":case"ShortQuery":p=e.getQueryType();break;case"Mutation":p=e.getMutationType();break;case"Subscription":p=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(p=e.getType(n.type));break;case"Field":case"AliasedField":p&&n.name?(u=f?(0,r.getFieldDef)(e,f,n.name):null,p=u?u.type:null):u=null;break;case"SelectionSet":f=(0,t.getNamedType)(p);break;case"Directive":a=n.name?e.getDirective(n.name):null;break;case"Arguments":if(n.prevState)switch(n.prevState.kind){case"Field":o=u&&u.args;break;case"Directive":o=a&&a.args;break;case"AliasedField":var d=n.prevState&&n.prevState.name;if(!d){o=null;break}var h=f?(0,r.getFieldDef)(e,f,d):null;if(!h){o=null;break}o=h.args;break;default:o=null}else o=null;break;case"Argument":if(o)for(var m=0;m<o.length;m++)if(o[m].name===n.name){i=o[m];break}c=i&&i.type;break;case"EnumValue":var v=(0,t.getNamedType)(c);s=v instanceof t.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}(v.getValues(),(function(e){return e.value===n.name})):null;break;case"ListValue":var y=(0,t.getNullableType)(c);c=y instanceof t.GraphQLList?y.ofType:null;break;case"ObjectValue":var g=(0,t.getNamedType)(c);l=g instanceof t.GraphQLInputObjectType?g.getFields():null;break;case"ObjectField":var b=n.name&&l?l[n.name]:null;c=b&&b.type;break;case"NamedType":n.name&&(p=e.getType(n.name))}})),{argDef:i,argDefs:o,directiveDef:a,enumValue:s,fieldDef:u,inputType:c,objectFieldDefs:l,parentType:f,type:p}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAutocompleteSuggestions=function(e,n,i,o){var c=o||a(n,i),l="Invalid"===c.state.kind?c.state.prevState:c.state;if(!l)return[];var f=l.kind,p=l.step,d=u(e,c.state);if("Document"===f)return(0,r.hintList)(c,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===f||"Field"===f||"AliasedField"===f)return function(e,n,i){if(n.parentType){var o=n.parentType,a="getFields"in o?(0,r.objectValues)(o.getFields()):[];return(0,t.isCompositeType)(o)&&a.push(t.TypeNameMetaFieldDef),o===i.getQueryType()&&a.push(t.SchemaMetaFieldDef,t.TypeMetaFieldDef),(0,r.hintList)(e,a.map((function(e,t){return{sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})))}return[]}(c,d,e);if("Arguments"===f||"Argument"===f&&0===p){var h=d.argDefs;if(h)return(0,r.hintList)(c,h.map((function(e){return{label:e.name,detail:String(e.type),documentation:e.description}})))}if(("ObjectValue"===f||"ObjectField"===f&&0===p)&&d.objectFieldDefs){var m=(0,r.objectValues)(d.objectFieldDefs);return(0,r.hintList)(c,m.map((function(e){return{label:e.name,detail:String(e.type),documentation:e.description}})))}return"EnumValue"===f||"ListValue"===f&&1===p||"ObjectField"===f&&2===p||"Argument"===f&&2===p?function(e,n){var i=(0,t.getNamedType)(n.inputType);if(i instanceof t.GraphQLEnumType){var o=i.getValues();return(0,r.hintList)(e,o.map((function(e){return{label:e.name,detail:String(i),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})))}return i===t.GraphQLBoolean?(0,r.hintList)(e,[{label:"true",detail:String(t.GraphQLBoolean),documentation:"Not false."},{label:"false",detail:String(t.GraphQLBoolean),documentation:"Not true."}]):[]}(c,d):"TypeCondition"===f&&1===p||"NamedType"===f&&null!=l.prevState&&"TypeCondition"===l.prevState.kind?function(e,n,i){var o;if(n.parentType)if((0,t.isAbstractType)(n.parentType)){var a=(0,t.assertAbstractType)(n.parentType),s=i.getPossibleTypes(a),u=Object.create(null);s.forEach((function(e){e.getInterfaces().forEach((function(e){u[e.name]=e}))})),o=s.concat((0,r.objectValues)(u))}else o=[n.parentType];else{var c=i.getTypeMap();o=(0,r.objectValues)(c).filter(t.isCompositeType)}return(0,r.hintList)(e,o.map((function(e){var n=(0,t.getNamedType)(e);return{label:String(e),documentation:n&&n.description||""}})))}(c,d,e):"FragmentSpread"===f&&1===p?function(e,n,i,o){var a=i.getTypeMap(),u=(0,r.getDefinitionState)(e.state),c=function(e){var t=[];return s(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}(o).filter((function(e){return a[e.typeCondition.name.value]&&!(u&&"FragmentDefinition"===u.kind&&u.name===e.name.value)&&(0,t.isCompositeType)(n.parentType)&&(0,t.isCompositeType)(a[e.typeCondition.name.value])&&(0,t.doTypesOverlap)(i,n.parentType,a[e.typeCondition.name.value])}));return(0,r.hintList)(e,c.map((function(e){return{label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:"fragment ".concat(e.name.value," on ").concat(e.typeCondition.name.value)}})))}(c,d,e,n):"VariableDefinition"===f&&2===p||"ListType"===f&&1===p||"NamedType"===f&&l.prevState&&("VariableDefinition"===l.prevState.kind||"ListType"===l.prevState.kind)?function(e,n){var i=n.getTypeMap(),o=(0,r.objectValues)(i).filter(t.isInputType);return(0,r.hintList)(e,o.map((function(e){return{label:e.name,documentation:e.description}})))}(c,e):"Directive"===f?function(e,t,n){if(t.prevState&&t.prevState.kind){var i=n.getDirectives().filter((function(e){return function(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}(t.prevState,e)}));return(0,r.hintList)(e,i.map((function(e){return{label:e.name,documentation:e.description||""}})))}return[]}(c,l,e):[]},e.getTokenAtPosition=a,e.getTypeInfo=u})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map((function(e){return e.length+1})).reduce((function(e,t){return e+t}),0)}Object.defineProperty(e,"__esModule",{value:!0}),e.getASTNodeAtPosition=function(e,r,i){var o,a=n(e,i);return(0,t.visit)(r,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=a&&a<=e.loc.end))return!1;o=e},leave:function(e){if(e.loc&&e.loc.start<=a&&a<=e.loc.end)return!1}}),o},e.pointToOffset=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}Object.defineProperty(e,"__esModule",{value:!0}),e.offsetToPosition=a,e.locToRange=function(e,t){var n=a(e,t.start),r=a(e,t.end);return new i(n,r)},e.Position=e.Range=void 0;var i=function(){function e(n,r){var i=this;t(this,e),this.containsPosition=function(e){return i.start.line===e.line?i.start.character<=e.character:i.end.line===e.line?i.end.character>=e.character:i.start.line<=e.line&&i.end.line>=e.line},this.start=n,this.end=r}return r(e,[{key:"setStart",value:function(e,t){this.start=new o(e,t)}},{key:"setEnd",value:function(e,t){this.end=new o(e,t)}}]),e}();e.Range=i;var o=function(){function e(n,r){var i=this;t(this,e),this.lessThanOrEqualTo=function(e){return i.line<e.line||i.line===e.line&&i.character<=e.character},this.line=n,this.character=r}return r(e,[{key:"setLine",value:function(e){this.line=e}},{key:"setCharacter",value:function(e){this.character=e}}]),e}();function a(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new o(r,t-i-1)}e.Position=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateWithCustomRules=function(e,r,i,o){var a=[n(60).NoUnusedFragments,n(58).ExecutableDefinitions];if(o){var s=n(59).KnownFragmentNames;a.push(s)}var u=t.specifiedRules.filter((function(e){return!a.some((function(t){return t===e}))})),c=new t.TypeInfo(e);i&&Array.prototype.push.apply(u,i);var l=(0,t.validate)(e,r,u,c);return l.length>0?l.filter((function(e){if(-1===e.message.indexOf("Unknown directive"))return!0;if(e.nodes&&e.nodes[0]){var t=e.nodes[0];return!(t.name&&"arguments"===t.name.value||"argumentDefinitions"===t.name.value)}})):[]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){var t=/^.+\.([^.]+)$/.exec(e);return t&&t.length>1?t[1]:null}function r(e,t){var n=e;return t&&(n=e.substr(0,e.length-(t.length+1))),n}function i(e){if(e)throw Error("cannot import() module with extension '".concat(e,"'"))}Object.defineProperty(e,"__esModule",{value:!0}),e.getFileExtension=t,e.getPathWithoutExtension=r,e.resolveFile=c,e.requireFile=function(e){var n=t(e),o=r(e,n);switch(n){case"js":return c(o+".js")?s(o):null;case"json":return c(o+".json")?u(o):null;default:try{if(c(e+".js"))return s(e)}catch(e){i(n)}if(c(e+".json"))return u(e);i(n)}};var o=function(e){return n(177).resolve(e+".js")},a=function(e){return n(178).resolve(e+".json")},s=function(e){return n(179)(e+".js")},u=function(e){return n(180)(e+".json")};function c(e){var n=t(e),i=r(e,n);switch(n){case"js":return o(i);case"json":return a(i);default:try{return o(e)}catch(t){return a(e)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(36),n(91)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){var n=e.arg,o=e.onClickType,a=e.showDefaultValue;return t.default.createElement("span",{className:"arg"},t.default.createElement("span",{className:"arg-name"},n.name),": ",t.default.createElement(r.default,{type:n.type,onClick:o}),!1!==a&&t.default.createElement(i.default,{field:n}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a,t=o(t),n=o(n),r=o(r),i=o(i),a.propTypes={arg:n.default.object.isRequired,onClickType:n.default.func.isRequired,showDefaultValue:n.default.bool}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(42)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(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})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=i(t),n=i(n);var l,f,p,d=new((r=i(r)).default),h=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),s(this,u(n).apply(this,arguments))}var r,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),r=n,(i=[{key:"shouldComponentUpdate",value:function(e){return this.props.markdown!==e.markdown}},{key:"render",value:function(){var e=this.props.markdown;return e?t.default.createElement("div",{className:this.props.className,dangerouslySetInnerHTML:{__html:d.render(e)}}):t.default.createElement("div",null)}}])&&a(r.prototype,i),o&&a(r,o),n}(t.default.Component);e.default=h,l=h,f="propTypes",p={markdown:n.default.string,className:n.default.string},f in l?Object.defineProperty(l,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[f]=p})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"nonExecutableDefinitionMessage",(function(){return a})),n.d(t,"ExecutableDefinitions",(function(){return s}));var r=n(3),i=n(1),o=n(27);function a(e){return"The ".concat(e," definition is not executable.")}function s(e){return{Document:function(t){for(var n=0,s=t.definitions;n<s.length;n++){var u=s[n];Object(o.b)(u)||e.reportError(new r.a(a(u.kind===i.Kind.SCHEMA_DEFINITION||u.kind===i.Kind.SCHEMA_EXTENSION?"schema":u.name.value),u))}return!1}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"unknownFragmentMessage",(function(){return i})),n.d(t,"KnownFragmentNames",(function(){return o}));var r=n(3);function i(e){return'Unknown fragment "'.concat(e,'".')}function o(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.a(i(n),t.name))}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"unusedFragMessage",(function(){return i})),n.d(t,"NoUnusedFragments",(function(){return o}));var r=n(3);function i(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),a=0;a<t.length;a++)for(var s=t[a],u=0,c=e.getRecursivelyReferencedFragments(s);u<c.length;u++){o[c[u].name.value]=!0}for(var l=0;l<n.length;l++){var f=n[l],p=f.name.value;!0!==o[p]&&e.reportError(new r.a(i(p),f))}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(38);function i(e){return o(e.source,Object(r.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,u=t.line+o,c=1===t.line?n:0,l=t.column+c,f="".concat(e.name,":").concat(u,":").concat(l,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(l/80),m=l%80,v=[],y=0;y<d.length;y+=80)v.push(d.slice(y,y+80));return f+a([["".concat(u),v[0]]].concat(v.slice(1,h+1).map((function(e){return["",e]})),[[" ",s(m-1)+"^"],["",v[h+1]]]))}return f+a([["".concat(u-1),p[i-1]],["".concat(u),d],["",s(l-1)+"^"],["".concat(u+1),p[i+1]]])}function a(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function s(e){return Array(e+1).join(" ")}},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(119)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports.encode=n(120),e.exports.decode=n(121),e.exports.format=n(122),e.exports.parse=n(123)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\x1F\x7F-\x9F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"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=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s=[],u=t.length;for(n=0;n<u;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){var r,i,o;i=[t,n(13),n(42)],void 0===(o="function"==typeof(r=function(e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,i){var a,s;n(6).on(r,"select",(function(e,n){if(!a){var r,u=n.parentNode;(a=document.createElement("div")).className="CodeMirror-hint-information",u.appendChild(a),(s=document.createElement("div")).className="CodeMirror-hint-deprecation",u.appendChild(s),u.addEventListener("DOMNodeRemoved",r=function(e){e.target===u&&(u.removeEventListener("DOMNodeRemoved",r),a=null,s=null,r=null)})}var c=e.description?o.render(e.description):"Self descriptive.",l=e.type?'<span class="infoType">'+function e(n){return n instanceof t.GraphQLNonNull?"".concat(e(n.ofType),"!"):n instanceof t.GraphQLList?"[".concat(e(n.ofType),"]"):'<a class="typeName">'.concat(n.name,"</a>")}(e.type)+"</span>":"";if(a.innerHTML='<div class="content">'+("<p>"===c.slice(0,3)?"<p>"+l+c.slice(3):l+c)+"</div>",e.isDeprecated){var f=e.deprecationReason?o.render(e.deprecationReason):"";s.innerHTML='<span class="deprecation-label">Deprecated</span>'+f,s.style.display="block"}else s.style.display="none";i&&i(a)}))};var i,o=new(i=r,r=i&&i.__esModule?i:{default:i}).default})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(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()})}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(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in l)i[o]=l[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}(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e){return"string"==typeof e?e:e.text}function s(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,u=r.cm,c=u.getInputField().ownerDocument,l=c.defaultView||c.parentWindow,f=this.hints=c.createElement("ul"),p=r.cm.options.theme;f.className="CodeMirror-hints "+p,this.selectedHint=i.selectedHint||0;for(var d=i.list,h=0;h<d.length;++h){var m=f.appendChild(c.createElement("li")),v=d[h],y=t+(h!=this.selectedHint?"":" "+n);null!=v.className&&(y=v.className+" "+y),m.className=y,v.render?v.render(m,i,v):m.appendChild(c.createTextNode(v.displayText||a(v))),m.hintId=h}var g=r.options.container||c.body,b=u.cursorCoords(r.options.alignWithWord?i.from:null),O=b.left,E=b.bottom,T=!0,w=0,_=0;if(g!==c.body){var k=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(g).position)?g:g.offsetParent,x=k.getBoundingClientRect(),S=c.body.getBoundingClientRect();w=x.left-S.left-k.scrollLeft,_=x.top-S.top-k.scrollTop}f.style.left=O-w+"px",f.style.top=E-_+"px";var C=l.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),N=l.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);g.appendChild(f);var D=f.getBoundingClientRect(),j=D.bottom-N,A=f.scrollHeight>f.clientHeight+1,L=u.getScrollInfo();if(j>0){var I=D.bottom-D.top;if(b.top-(b.bottom-D.top)-I>0)f.style.top=(E=b.top-I-_)+"px",T=!1;else if(I>N){f.style.height=N-5+"px",f.style.top=(E=b.bottom-D.top-_)+"px";var F=u.getCursor();i.from.ch!=F.ch&&(b=u.cursorCoords(F),f.style.left=(O=b.left-w)+"px",D=f.getBoundingClientRect())}}var R,M=D.right-C;if(M>0&&(D.right-D.left>C&&(f.style.width=C-5+"px",M-=D.right-D.left-C),f.style.left=(O=b.left-M-w)+"px"),A)for(var P=f.firstChild;P;P=P.nextSibling)P.style.paddingRight=u.display.nativeBarWidth+"px";return u.addKeyMap(this.keyMap=function(e,t){var n={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)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:d.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(u.on("blur",this.onBlur=function(){R=setTimeout((function(){r.close()}),100)}),u.on("focus",this.onFocus=function(){clearTimeout(R)})),u.on("scroll",this.onScroll=function(){var e=u.getScrollInfo(),t=u.getWrapperElement().getBoundingClientRect(),n=E+L.top-e.top,i=n-(l.pageYOffset||(c.documentElement||c.body).scrollTop);if(T||(i+=f.offsetHeight),i<=t.top||i>=t.bottom)return r.close();f.style.top=n+"px",f.style.left=O+L.left-e.left+"px"}),e.on(f,"dblclick",(function(e){var t=s(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(f,"click",(function(e){var t=s(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())})),e.on(f,"mousedown",(function(){setTimeout((function(){u.focus()}),20)})),e.signal(i,"select",d[this.selectedHint],f.childNodes[this.selectedHint]),!0}function c(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)}}r.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 r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(a(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(o(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||e.ch<this.startPos.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=i((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;c(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 u(this,t),e.signal(t,"shown")))}},u.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,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);c(r[o],e,n,(function(e){e&&e.list.length>0?t(e):i(o+1)}))}(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(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var u=[],c=0;c<n.words.length;c++){var l=n.words[c];l.slice(0,r.length)==r&&u.push(l)}if(u.length)return{list:u,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==a(e)&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=u(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var l=c(t,a[s].head);if(!l||o.indexOf(l)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var f=a[s].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=u(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=c(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=s(n))}}function s(t){return function(i){return function(t,i){var o=u(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var c,f=r(o,"closeBefore"),p=r(o,"triples"),d=a.charAt(s+1)==i,h=t.listSelections(),m=s%2==0,v=0;v<h.length;v++){var y,g=h[v],b=g.head,O=t.getRange(b,n(b.line,b.ch+1));if(m&&!g.empty())y="surround";else if(!d&&m||O!=i)if(d&&b.ch>1&&p.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;y="addFour"}else if(d){var E=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(O)||E==i||e.isWordChar(E))return e.Pass;y="both"}else{if(!m||!(0===O.length||/\s/.test(O)||f.indexOf(O)>-1))return e.Pass;y="both"}else y=d&&l(t,b)?"both":p.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=y)return e.Pass}else c=y}var T=s%2?a.charAt(s-1):i,w=s%2?i:a.charAt(s+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){var i=t.getSelections();for(r=0;r<i.length;r++)i[r]=T+i[r]+w;for(t.replaceSelections(i,"around"),i=t.listSelections().slice(),r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(T+w,null),t.triggerElectric(T+w),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(T+T+T+T,"before"),t.execCommand("goCharRight"));var o,a}))}(i,t)}}function u(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function l(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function u(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=t.findMarksAt(r.from),u=0;u<i.length;++u)if(i[u].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[u].clear()}return r}var c=u(!0);if(r(t,i,"scanUp"))for(;!c&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==o){var l=function(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}(t,i);e.on(l,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(c.from,c.to,{replacedWith:l,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,c.from,c.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6),n(31),n(32)):(i=[n(6),n(31),n(32)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function u(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new 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()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function c(t,r,i,a){var s=n(t);if(s.query)return l(t,r);var c=t.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(u(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),l(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i})}(t,p(t),c,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),u(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&c&&(u(t,s,c),l(t,r))}else o(t,p(t),"Search for:",c,(function(e){e&&!s.query&&t.operation((function(){u(t,s,e),s.posFrom=s.posTo=t.getCursor(),l(t,r)}))}))}function l(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(e){e.operation((function(){var t=n(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 p(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function d(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function h(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,u='<span class="CodeMirror-search-label">'+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";o(e,u+function(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}(e),u,r,(function(n){n&&(n=s(n),o(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)d(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),s=function t(){var a,s=o.from();!(a=o.findNext())&&(o=i(e,n),!(a=o.findNext())||s&&o.from().line==s.line&&o.from().ch==s.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}(e),e.phrase("Replace?"),[function(){u(a)},t,function(){d(e,n,r)}]))},u=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.commands.find=function(e){f(e),c(e)},e.commands.findPersistent=function(e){f(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i){var o=function(t,n){var r=document.createElement("div");function i(t){if(!r.parentNode)return e.off(document,"mousemove",i);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}(t,r);function a(){var t;e.off(i,"mouseout",a),o&&((t=o).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),o=null)}var s=setInterval((function(){if(o)for(var e=i;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!o)return clearInterval(s)}),400);e.on(i,"mouseout",a)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,u=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),c=[],l=0;l<u.length;++l){var f=u[l].__annotation;f&&c.push(f)}c.length&&function(e,t){for(var n=t.target||t.srcElement,i=document.createDocumentFragment(),o=0;o<e.length;o++){var a=e[o];i.appendChild(s(a))}r(t,i,n)}(c,t)}}(e,t)},this.waitingFor=0}function o(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function a(t,n,i,o){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+n,i&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(s,"mouseover",(function(e){r(e,t,s)})),a}function s(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 u(t){var n=t.state.lint.options,r=n.options||n,i=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(n.async||i.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),(function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){c(t,n)})))}),r,t)}(t,i,r);else{var o=i(t.getValue(),r,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){c(t,e)}))})):t.operation((function(){c(t,o)}))}}function c(e,n){o(e);for(var r,i,u=e.state.lint,c=u.options,l=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),f=0;f<l.length;++f){var p=l[f];if(p){for(var d=null,h=u.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var v=p[m],y=v.severity;y||(y="error"),i=y,d="error"==(r=d)?r:i,c.formatAnnotation&&(v=c.formatAnnotation(v)),u.hasGutter&&h.appendChild(s(v)),v.to&&u.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark-"+y,__annotation:v}))}u.hasGutter&&e.setGutterMarker(f,t,a(h,d,p.length>1,u.options.tooltips))}}c.onUpdateLinting&&c.onUpdateLinting(n,l,e)}function l(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){u(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",l),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),c=!1,f=0;f<s.length;++f)s[f]==t&&(c=!0);var p=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),c);!1!==p.options.lintOnChange&&n.on("change",l),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),u(n)}var d})),e.defineExtension("performLint",(function(){this.state.lint&&u(this)}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){var r,i,o;i=[t,n(79),n(51),n(82),n(85),n(185),n(86),n(186)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDefinitionState",{enumerable:!0,get:function(){return t.getDefinitionState}}),Object.defineProperty(e,"getFieldDef",{enumerable:!0,get:function(){return t.getFieldDef}}),Object.defineProperty(e,"forEachState",{enumerable:!0,get:function(){return t.forEachState}}),Object.defineProperty(e,"objectValues",{enumerable:!0,get:function(){return t.objectValues}}),Object.defineProperty(e,"hintList",{enumerable:!0,get:function(){return t.hintList}}),Object.defineProperty(e,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return n.getAutocompleteSuggestions}}),Object.defineProperty(e,"LANGUAGE",{enumerable:!0,get:function(){return r.LANGUAGE}}),Object.defineProperty(e,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return r.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(e,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return r.getDefinitionQueryResultForDefinitionNode}}),Object.defineProperty(e,"getDiagnostics",{enumerable:!0,get:function(){return i.getDiagnostics}}),Object.defineProperty(e,"validateQuery",{enumerable:!0,get:function(){return i.validateQuery}}),Object.defineProperty(e,"getOutline",{enumerable:!0,get:function(){return o.getOutline}}),Object.defineProperty(e,"getHoverInformation",{enumerable:!0,get:function(){return a.getHoverInformation}}),Object.defineProperty(e,"GraphQLLanguageService",{enumerable:!0,get:function(){return s.GraphQLLanguageService}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13),n(8)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(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 i(e,t){var n=e.filter(t);return 0===n.length?e:n}function o(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=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]+s),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]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionState=function(e){var t;return r(e,(function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t},e.getFieldDef=function(e,r,i){return i===n.SchemaMetaFieldDef.name&&e.getQueryType()===r?n.SchemaMetaFieldDef:i===n.TypeMetaFieldDef.name&&e.getQueryType()===r?n.TypeMetaFieldDef:i===n.TypeNameMetaFieldDef.name&&(0,t.isCompositeType)(r)?n.TypeNameMetaFieldDef:"getFields"in r?r.getFields()[i]:null},e.forEachState=r,e.objectValues=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r},e.hintList=function(e,t){return function(e,t){return t?i(i(e.map((function(e){return{proximity:a(o(e.label),t),entry:e}})),(function(e){return e.proximity<=2})),(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})):i(e,(function(e){return!e.isDeprecated}))}(t,o(e.string))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(81)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseRules=e.LexRules=e.isIgnored=void 0,e.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},e.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:/^#.*/};var n,r={Document:[(0,t.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:[i("query"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Mutation:[i("mutation"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Subscription:[i("subscription"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,t.p)("("),(0,t.list)("VariableDefinition"),(0,t.p)(")")],VariableDefinition:["Variable",(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue")],Variable:[(0,t.p)("$","variable"),o("variable")],DefaultValue:[(0,t.p)("="),"Value"],SelectionSet:[(0,t.p)("{"),(0,t.list)("Selection"),(0,t.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:[o("property"),(0,t.p)(":"),o("qualifier"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Field:[o("property"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Arguments:[(0,t.p)("("),(0,t.list)("Argument"),(0,t.p)(")")],Argument:[o("attribute"),(0,t.p)(":"),"Value"],FragmentSpread:[(0,t.p)("..."),o("def"),(0,t.list)("Directive")],InlineFragment:[(0,t.p)("..."),(0,t.opt)("TypeCondition"),(0,t.list)("Directive"),"SelectionSet"],FragmentDefinition:[i("fragment"),(0,t.opt)((0,t.butNot)(o("def"),[i("on")])),"TypeCondition",(0,t.list)("Directive"),"SelectionSet"],TypeCondition:[i("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,t.t)("Number","number")],StringValue:[(0,t.t)("String","string")],BooleanValue:[(0,t.t)("Name","builtin")],NullValue:[(0,t.t)("Name","keyword")],EnumValue:[o("string-2")],ListValue:[(0,t.p)("["),(0,t.list)("Value"),(0,t.p)("]")],ObjectValue:[(0,t.p)("{"),(0,t.list)("ObjectField"),(0,t.p)("}")],ObjectField:[o("attribute"),(0,t.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,t.p)("["),"Type",(0,t.p)("]"),(0,t.opt)((0,t.p)("!"))],NonNullType:["NamedType",(0,t.opt)((0,t.p)("!"))],NamedType:[(n="atom",{style:n,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)}})],Directive:[(0,t.p)("@","meta"),o("meta"),(0,t.opt)("Arguments")],SchemaDef:[i("schema"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("OperationTypeDef"),(0,t.p)("}")],OperationTypeDef:[o("keyword"),(0,t.p)(":"),o("atom")],ScalarDef:[i("scalar"),o("atom"),(0,t.list)("Directive")],ObjectTypeDef:[i("type"),o("atom"),(0,t.opt)("Implements"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],Implements:[i("implements"),(0,t.list)("NamedType")],FieldDef:[o("property"),(0,t.opt)("ArgumentsDef"),(0,t.p)(":"),"Type",(0,t.list)("Directive")],ArgumentsDef:[(0,t.p)("("),(0,t.list)("InputValueDef"),(0,t.p)(")")],InputValueDef:[o("attribute"),(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue"),(0,t.list)("Directive")],InterfaceDef:[i("interface"),o("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],UnionDef:[i("union"),o("atom"),(0,t.list)("Directive"),(0,t.p)("="),(0,t.list)("UnionMember",(0,t.p)("|"))],UnionMember:["NamedType"],EnumDef:[i("enum"),o("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("EnumValueDef"),(0,t.p)("}")],EnumValueDef:[o("string-2"),(0,t.list)("Directive")],InputDef:[i("input"),o("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("InputValueDef"),(0,t.p)("}")],ExtendDef:[i("extend"),"ObjectTypeDef"],DirectiveDef:[i("directive"),(0,t.p)("@","meta"),o("meta"),(0,t.opt)("ArgumentsDef"),i("on"),(0,t.list)("DirectiveLocation",(0,t.p)("|"))],DirectiveLocation:[o("string-2")]};function i(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function o(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}e.ParseRules=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.opt=function(e){return{ofRule:e}},e.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},e.butNot=function(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},e.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},e.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(r){var i,o,a;o=[t,n(34),n(84)],void 0===(a="function"==typeof(i=function(e,t,n){"use strict";function i(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)}))}}var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionQueryResultForNamedType=function(e,t,n){return l.apply(this,arguments)},e.getDefinitionQueryResultForFragmentSpread=function(e,t,n){return f.apply(this,arguments)},e.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[p(e,t,n)],queryRange:n.name?[u(t,n.name)]:[]}},e.LANGUAGE=void 0,n=(a=n)&&a.__esModule?a:{default:a};var s="GraphQL";function u(e,r){var i=r.loc;return(0,n.default)(i,"Expected ASTNode to have a location."),(0,t.locToRange)(e,i)}function c(e,r){var i=r.loc;return(0,n.default)(i,"Expected ASTNode to have a location."),(0,t.offsetToPosition)(e,i.start)}function l(){return(l=o(regeneratorRuntime.mark((function e(t,n,i){var o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.name.value,0!==(a=i.filter((function(e){var t=e.definition;return t.name&&t.name.value===o}))).length){e.next=5;break}return r.stderr.write("Definition not found for GraphQL type ".concat(o)),e.abrupt("return",{queryRange:[],definitions:[]});case 5:return s=a.map((function(e){return d(e.filePath||"",e.content,e.definition)})),e.abrupt("return",{definitions:s,queryRange:s.map((function(e){return u(t,n)}))});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=o(regeneratorRuntime.mark((function e(t,n,i){var o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.name.value,0!==(a=i.filter((function(e){return e.definition.name.value===o}))).length){e.next=5;break}return r.stderr.write("Definition not found for GraphQL fragment ".concat(o)),e.abrupt("return",{queryRange:[],definitions:[]});case 5:return s=a.map((function(e){return p(e.filePath||"",e.content,e.definition)})),e.abrupt("return",{definitions:s,queryRange:s.map((function(e){return u(t,n)}))});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t,r){var i=r.name;return(0,n.default)(i,"Expected ASTNode to have a Name."),{path:e,position:c(t,r),range:u(t,r),name:i.value||"",language:s,projectRoot:e}}function d(e,t,r){var i=r.name;return(0,n.default)(i,"Expected ASTNode to have a Name."),{path:e,position:c(t,r),range:u(t,r),name:i.value||"",language:s,projectRoot:e}}e.LANGUAGE=s})?i.apply(t,o):i)||(e.exports=a)}).call(this,n(83))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&p())}function p(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||c||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(r){var i,o,a;o=[],void 0===(a="function"==typeof(i=function(){"use strict";function t(e){return(t="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})(e)}var i=n(181);
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function o(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function a(e){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=n(182),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,l="foo"===function(){}.name;function f(e){return Object.prototype.toString.call(e)}function p(e){return!a(e)&&"function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var d=e.exports=b,h=/\s*function\s+([^\(\s]*)\s*/;function m(e){if(s.isFunction(e)){if(l)return e.name;var t=e.toString().match(h);return t&&t[1]}}function v(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(l||!s.isFunction(e))return s.inspect(e);var t=m(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,n,r,i){throw new d.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function b(e,t){e||g(e,!0,t,"==",d.ok)}function O(e,n,r,i){if(e===n)return!0;if(a(e)&&a(n))return 0===o(e,n);if(s.isDate(e)&&s.isDate(n))return e.getTime()===n.getTime();if(s.isRegExp(e)&&s.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"===t(e)||null!==n&&"object"===t(n)){if(p(e)&&p(n)&&f(e)===f(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(a(e)!==a(n))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===i.expected.indexOf(n)||(i.actual.push(e),i.expected.push(n),function(e,t,n,r){if(null==e||null==t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=E(e),o=E(t);if(i&&!o||!i&&o)return!1;if(i)return e=c.call(e),t=c.call(t),O(e,t,n);var a,u,l=_(e),f=_(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),u=l.length-1;u>=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(a=l[u],!O(e[a],t[a],n,r))return!1;return!0}(e,n,r,i))}return r?e===n:e==n}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function T(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 w(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=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&g(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!e&&i&&!n;if((!e&&s.isError(i)&&o&&T(i,n)||a)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!T(i,n)||!e&&i)throw i}d.AssertionError=function(e){var t;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=v(y((t=this).actual),128)+" "+t.operator+" "+v(y(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=m(n),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},s.inherits(d.AssertionError,Error),d.fail=g,d.ok=b,d.equal=function(e,t,n){e!=t&&g(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){O(e,t,!1)||g(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){O(e,t,!0)||g(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){O(e,t,!1)&&g(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){O(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){w(!0,e,t,n)},d.doesNotThrow=function(e,t,n){w(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=i((function e(t,n){t||g(t,!0,n,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var _=Object.keys||function(e){var t=[];for(var n in e)u.call(e,n)&&t.push(n);return t}})?i.apply(t,o):i)||(e.exports=a)}).call(this,n(41))},function(e,t,n){var r,i,o;i=[t,n(84),n(13),n(35),n(34)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.getDiagnostics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=null;try{o=(0,n.parse)(e)}catch(t){var u=l(t.locations[0],e);return[{severity:a.ERROR,message:t.message,source:"GraphQL: Syntax",range:u}]}return s(o,t,r,i)},e.validateQuery=s,e.getRange=l,e.SEVERITY=void 0,t=(o=t)&&o.__esModule?o:{default:o};var a={ERROR:1,WARNING:2,INFORMATION:3,HINT:4};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(!t)return[];var s=u((0,i.validateWithCustomRules)(t,e,r,o),(function(e){return c(e,a.ERROR,"Validation")})),l=n.findDeprecatedUsages?u((0,n.findDeprecatedUsages)(t,e),(function(e){return c(e,a.WARNING,"Deprecation")})):[];return s.concat(l)}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}function c(e,n,r){return e.nodes?e.nodes.map((function(o){var a="Variable"!==o.kind&&"name"in o?o.name:"variable"in o?o.variable:o;(0,t.default)(e.locations,"GraphQL validation error requires locations.");var s=e.locations[0],u=function(e){var n=e.loc;return(0,t.default)(n,"Expected ASTNode to have a location."),n}(a),c=s.column+(u.end-u.start);return{source:"GraphQL: ".concat(r),message:e.message,severity:n,range:new i.Range(new i.Position(s.line-1,s.column-1),new i.Position(s.line-1,c))}})):[]}function l(e,n){var o=(0,r.onlineParser)(),a=o.startState(),s=n.split("\n");(0,t.default)(s.length>=e.line,"Query text must have more lines than where the error happened");for(var u=null,c=0;c<e.line;c++)for(u=new r.CharacterStream(s[c]);!u.eol()&&"invalidchar"!==o.token(u,a););(0,t.default)(u,"Expected Parser stream to be available.");var l=e.line-1,f=u.getStartOfToken(),p=u.getCurrentPosition();return new i.Range(new i.Position(l,f),new i.Position(l,p))}e.SEVERITY=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13),n(51)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(a(e,t,n,t.parentType),u(e,".")),u(e,r)}}function i(e,t,n){t.directiveDef&&u(e,"@"+t.directiveDef.name)}function o(e,t,n,r){u(e,": "),a(e,t,n,r)}function a(e,n,r,i){i&&(i instanceof t.GraphQLNonNull?(a(e,n,r,i.ofType),u(e,"!")):i instanceof t.GraphQLList?(u(e,"["),a(e,n,r,i.ofType),u(e,"]")):u(e,i.name))}function s(e,t,n){if(n){var r="string"==typeof n.description?n.description:null;r&&(u(e,"\n\n"),u(e,r)),function(e,t,n){if(n){var r=n.deprecationReason?n.deprecationReason:null;r&&(u(e,"\n\n"),u(e,"Deprecated: "),u(e,r))}}(e,0,n)}}function u(e,t){e.push(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getHoverInformation=function(e,t,c,l){var f=l||(0,n.getTokenAtPosition)(t,c);if(!e||!f||!f.state)return"";var p=f.state,d=p.kind,h=p.step,m=(0,n.getTypeInfo)(e,f.state),v={schema:e};if("Field"===d&&0===h&&m.fieldDef||"AliasedField"===d&&2===h&&m.fieldDef){var y=[];return function(e,t,n){r(e,t,n),o(e,t,n,t.type)}(y,m,v),s(y,0,m.fieldDef),y.join("").trim()}if("Directive"===d&&1===h&&m.directiveDef){var g=[];return i(g,m),s(g,0,m.directiveDef),g.join("").trim()}if("Argument"===d&&0===h&&m.argDef){var b=[];return function(e,t,n){if(t.directiveDef?i(e,t):t.fieldDef&&r(e,t,n),t.argDef){var a=t.argDef.name;u(e,"("),u(e,a),o(e,t,n,t.inputType),u(e,")")}}(b,m,v),s(b,0,m.argDef),b.join("").trim()}if("EnumValue"===d&&m.enumValue&&"description"in m.enumValue){var O=[];return function(e,t,n){if(t.enumValue){var r=t.enumValue.name;a(e,t,n,t.inputType),u(e,"."),u(e,r)}}(O,m,v),s(O,0,m.enumValue),O.join("").trim()}if("NamedType"===d&&m.type&&"description"in m.type){var E=[];return a(E,m,v,m.type),s(E,0,m.type),E.join("").trim()}return""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,o.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?a(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,r.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var i="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&a(e,n.parentType,t.prevState.name):null;n.argDefs=i&&i.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o<n.argDefs.length;o++)if(n.argDefs[o].name===t.name){n.argDef=n.argDefs[o];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var s=(0,r.getNamedType)(n.inputType);n.enumValue=s instanceof r.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(s.getValues(),(function(e){return e.value===t.name})):null;break;case"ListValue":var u=(0,r.getNullableType)(n.inputType);n.inputType=u instanceof r.GraphQLList?u.ofType:null;break;case"ObjectValue":var c=(0,r.getNamedType)(n.inputType);n.objectFieldDefs=c instanceof r.GraphQLInputObjectType?c.getFields():null;break;case"ObjectField":var l=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=l&&l.type;break;case"NamedType":n.type=e.getType(t.name)}})),n};var e,r=n(13),i=n(8),o=(e=n(88))&&e.__esModule?e:{default:e};function a(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?i.TypeNameMetaFieldDef:t.getFields?t.getFields()[n]:void 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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])}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(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:r(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(t){return{kind:"EnumValue",value:t.enumValue,type:(0,e.getNamedType)(t.inputType)}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var e=n(13);function r(e){return"__"===e.name.slice(0,2)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e};function r(e,n){var r=e.state.info,i=n.target||n.srcElement;if("SPAN"===i.nodeName&&void 0===r.hoverTimeout){var o=i.getBoundingClientRect(),a=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(u,c)},s=function n(){t.default.off(document,"mousemove",a),t.default.off(e.getWrapperElement(),"mouseout",n),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},u=function(){t.default.off(document,"mousemove",a),t.default.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,function(e,n){var r=e.coordsChar({left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(r,"info");if(o){var a=e.getTokenAt(r,!0);if(a){var s=o(a,i,e,r);s&&function(e,n,r){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(r),document.body.appendChild(i);var o=i.getBoundingClientRect(),a=i.currentStyle||window.getComputedStyle(i),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),u=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),c=n.bottom;u>window.innerHeight-n.bottom-15&&n.top>window.innerHeight-n.bottom&&(c=n.top-u),c<0&&(c=n.bottom);var l,f=Math.max(0,window.innerWidth-s-15);f>n.left&&(f=n.left),i.style.opacity=1,i.style.top=c+"px",i.style.left=f+"px";var p=function(){clearTimeout(l)},d=function(){clearTimeout(l),l=setTimeout(h,200)},h=function(){t.default.off(i,"mouseover",p),t.default.off(i,"mouseout",d),t.default.off(e.getWrapperElement(),"mouseout",d),i.style.opacity?(i.style.opacity=0,setTimeout((function(){i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)};t.default.on(i,"mouseover",p),t.default.on(i,"mouseout",d),t.default.on(e.getWrapperElement(),"mouseout",d)}(e,n,s)}}}(e,o)},c=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);r.hoverTimeout=setTimeout(u,c),t.default.on(document,"mousemove",a),t.default.on(e.getWrapperElement(),"mouseout",s)}}t.default.defineOption("info",!1,(function(e,n,i){if(i&&i!==t.default.Init){var o=e.state.info.onMouseOver;t.default.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(n){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(n);a.onMouseOver=r.bind(null,e),t.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(13)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var n=e.field,i=n.type,o=n.defaultValue;return void 0!==o?t.default.createElement("span",null," = ",t.default.createElement("span",{className:"arg-default-value"},(0,r.print)((0,r.astFromValue)(o,i)))):null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,t=i(t),n=i(n),o.propTypes={field:n.default.object.isRequired}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){var n;return function(){var r=arguments,i=this;clearTimeout(n),n=setTimeout((function(){n=null,t.apply(i,r)}),e)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2),i=n(12),o=n(18),a=n(22),s=n(1);function u(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((function(e){return u(e,t)}));case s.Kind.OBJECT:return Object(o.a)(e.fields,(function(e){return e.name.value}),(function(e){return u(e.value,t)}));case s.Kind.VARIABLE:var n=e.name.value;return t&&!Object(a.a)(t[n])?t[n]:void 0}Object(i.a)(!1,"Unexpected value node: "+Object(r.a)(e))}},function(e,t,n){var r,i,o;i=[t,n(95),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,u,c,l,f,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var d=p.GraphiQL;e.default=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){"use strict";function t(e){return(t="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})(e)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function v(){}function y(){}function g(){}var b={};b[a]=function(){return this};var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==r&&i.call(E,a)&&(b=E);var T=g.prototype=v.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var n;this._invoke=function(r,o){function a(){return new Promise((function(n,a){!function n(r,o,a,s){var u=l(e[r],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===t(f)&&i.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):Promise.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(r,o,n,a)}))}return n=n?n.then(a,a):a()}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function N(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:D}}function D(){return{value:n,done:!0}}return y.prototype=T.constructor=g,g.constructor=y,g[u]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},w(_.prototype),_.prototype[s]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,i){var o=new _(c(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(T),T[u]="Generator",T[a]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}})?n.apply(t,r):n)||(e.exports=i)}).call(this,n(21)(e))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(r){var i,o,a,s;s=function(e,t,n,i,o,a,s,u,c,l,f,p,d,h,m,v,y,g,b,O,E,T,w,_,k,x,S){"use strict";function C(e){return e&&e.__esModule?e:{default:e}}function N(e){return(N="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})(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.GraphiQL=void 0,t=C(t),n=C(n),i=C(i),a=C(a),g=C(g),b=C(b),O=C(O),E=C(E),T=C(T),w=C(w);var M=350,P=function(e){function n(e){var t,r,s;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,s=L(n).call(this,e),t=!s||"object"!==N(s)&&"function"!=typeof s?I(r):s,R(I(t),"handleClickReference",(function(e){t.setState({docExplorerOpen:!0},(function(){t.docExplorerComponent.showDocForReference(e)}))})),R(I(t),"handleRunQuery",(function(e){t._editorQueryID++;var r=t._editorQueryID,i=t.autoCompleteLeafs()||t.state.query,o=t.state.variables,a=t.state.operationName;e&&e!==a&&(a=e,t.handleEditOperationName(a));try{t.setState({isWaitingForResponse:!0,response:null,operationName:a});var s=t._fetchQuery(i,o,a,(function(e){r===t._editorQueryID&&t.setState({isWaitingForResponse:!1,response:n.formatResult(e)})}));t.setState({subscription:s})}catch(e){t.setState({isWaitingForResponse:!1,response:e.message})}})),R(I(t),"handleStopQuery",(function(){var e=t.state.subscription;t.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()})),R(I(t),"handlePrettifyQuery",(function(){var e=t.getQueryEditor(),n=e.getValue(),r=(0,o.print)((0,o.parse)(n));r!==n&&e.setValue(r);var i=t.getVariableEditor(),a=i.getValue();try{var s=JSON.stringify(JSON.parse(a),null,2);s!==a&&i.setValue(s)}catch(e){}})),R(I(t),"handleMergeQuery",(function(){var e=t.getQueryEditor(),n=e.getValue();if(n){var r=(0,o.parse)(n);e.setValue((0,o.print)((0,x.mergeAst)(r)))}})),R(I(t),"handleEditQuery",(0,T.default)(100,(function(e){var n=t._updateQueryFacts(e,t.state.operationName,t.state.operations,t.state.schema);if(t.setState(j({query:e},n)),t.props.onEditQuery)return t.props.onEditQuery(e)}))),R(I(t),"handleCopyQuery",(function(){var e=t.getQueryEditor().getValue();if(e)return(0,a.default)(e),t.props.onCopyQuery?t.props.onCopyQuery(e):void 0})),R(I(t),"_updateQueryFacts",(function(e,n,r,i){var o=(0,O.default)(i,e);if(o){var a=(0,E.default)(r,n,o.operations),s=t.props.onEditOperationName;return s&&n!==a&&s(a),j({operationName:a},o)}})),R(I(t),"handleEditVariables",(function(e){t.setState({variables:e}),t.props.onEditVariables&&t.props.onEditVariables(e)})),R(I(t),"handleEditOperationName",(function(e){var n=t.props.onEditOperationName;n&&n(e)})),R(I(t),"handleHintInformationRender",(function(e){var n;e.addEventListener("click",t._onClickHintInformation),e.addEventListener("DOMNodeRemoved",n=function(){e.removeEventListener("DOMNodeRemoved",n),e.removeEventListener("click",t._onClickHintInformation)})})),R(I(t),"handleEditorRunQuery",(function(){t._runQueryAtCursor()})),R(I(t),"_onClickHintInformation",(function(e){if("typeName"===e.target.className){var n=e.target.innerHTML,r=t.state.schema;if(r){var i=r.getType(n);i&&t.setState({docExplorerOpen:!0},(function(){t.docExplorerComponent.showDoc(i)}))}}})),R(I(t),"handleToggleDocs",(function(){"function"==typeof t.props.onToggleDocs&&t.props.onToggleDocs(!t.state.docExplorerOpen),t.setState({docExplorerOpen:!t.state.docExplorerOpen})})),R(I(t),"handleToggleHistory",(function(){"function"==typeof t.props.onToggleHistory&&t.props.onToggleHistory(!t.state.historyPaneOpen),t.setState({historyPaneOpen:!t.state.historyPaneOpen})})),R(I(t),"handleSelectHistoryQuery",(function(e,n,r){t.handleEditQuery(e),t.handleEditVariables(n),t.handleEditOperationName(r)})),R(I(t),"handleResizeStart",(function(e){if(t._didClickDragBar(e)){e.preventDefault();var n=e.clientX-(0,k.getLeft)(e.target),r=function(e){if(0===e.buttons)return o();var r=i.default.findDOMNode(t.editorBarComponent),a=e.clientX-(0,k.getLeft)(r)-n,s=r.clientWidth-a;t.setState({editorFlex:a/s})},o=function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),r=null,o=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)}})),R(I(t),"handleResetResize",(function(){t.setState({editorFlex:1})})),R(I(t),"handleDocsResizeStart",(function(e){e.preventDefault();var n=t.state.docExplorerWidth,r=e.clientX-(0,k.getLeft)(e.target),o=function(e){if(0===e.buttons)return a();var n=i.default.findDOMNode(I(t)),o=e.clientX-(0,k.getLeft)(n)-r,s=n.clientWidth-o;s<100?t.setState({docExplorerOpen:!1}):t.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(s,650)})},a=function(){t.state.docExplorerOpen||t.setState({docExplorerWidth:n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)})),R(I(t),"handleDocsResetResize",(function(){t.setState({docExplorerWidth:M})})),R(I(t),"handleVariableResizeStart",(function(e){e.preventDefault();var n=!1,r=t.state.variableEditorOpen,o=t.state.variableEditorHeight,a=e.clientY-(0,k.getTop)(e.target),s=function(e){if(0===e.buttons)return u();n=!0;var r=i.default.findDOMNode(t.editorBarComponent),s=e.clientY-(0,k.getTop)(r)-a,c=r.clientHeight-s;c<60?t.setState({variableEditorOpen:!1,variableEditorHeight:o}):t.setState({variableEditorOpen:!0,variableEditorHeight:c})},u=function(){n||t.setState({variableEditorOpen:!r}),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",u),s=null,u=null};document.addEventListener("mousemove",s),document.addEventListener("mouseup",u)})),"function"!=typeof e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");t._storage=new b.default(e.storage);var u=void 0!==e.query?e.query:null!==t._storage.get("query")?t._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:U,c=(0,O.default)(e.schema,u),l=void 0!==e.variables?e.variables:t._storage.get("variables"),f=void 0!==e.operationName?e.operationName:(0,E.default)(null,t._storage.get("operationName"),c&&c.operations),p=e.docExplorerOpen||!1;t._storage.get("docExplorerOpen")&&(p="true"===t._storage.get("docExplorerOpen"));var d=void 0!==e.defaultVariableEditorOpen?e.defaultVariableEditorOpen:Boolean(l);return t.state=j({schema:e.schema,query:u,variables:l,operationName:f,docExplorerOpen:p,response:e.response,editorFlex:Number(t._storage.get("editorFlex"))||1,variableEditorOpen:d,variableEditorHeight:Number(t._storage.get("variableEditorHeight"))||200,historyPaneOpen:"true"===t._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(t._storage.get("docExplorerWidth"))||M,isWaitingForResponse:!1,subscription:null},c),t._editorQueryID=0,"object"===("undefined"==typeof window?"undefined":N(window))&&window.addEventListener("beforeunload",(function(){return t.componentWillUnmount()})),t}var l,f,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(n,e),l=n,(f=[{key:"componentDidMount",value:function(){void 0===this.state.schema&&this._fetchSchema(),this.codeMirrorSizer=new g.default,r.g=this}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.operationName,a=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&(r=e.query),void 0!==e.variables&&(i=e.variables),void 0!==e.operationName&&(o=e.operationName),void 0!==e.response&&(a=e.response),n!==this.state.schema||r!==this.state.query||o!==this.state.operationName){var s=this._updateQueryFacts(r,o,this.state.operations,n);void 0!==s&&(o=s.operationName,this.setState(s))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this.setState({schema:n,query:r,variables:i,operationName:o,response:a},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t._fetchSchema())}))}},{key:"componentDidUpdate",value:function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.resultComponent])}},{key:"componentWillUnmount",value:function(){this._storage.set("query",this.state.query),this._storage.set("variables",this.state.variables),this._storage.set("operationName",this.state.operationName),this._storage.set("editorFlex",this.state.editorFlex),this._storage.set("variableEditorHeight",this.state.variableEditorHeight),this._storage.set("docExplorerWidth",this.state.docExplorerWidth),this._storage.set("docExplorerOpen",this.state.docExplorerOpen),this._storage.set("historyPaneOpen",this.state.historyPaneOpen)}},{key:"render",value:function(){var e=this,r=t.default.Children.toArray(this.props.children),i=(0,w.default)(r,(function(e){return e.type===n.Logo}))||t.default.createElement(n.Logo,null),o=(0,w.default)(r,(function(e){return e.type===n.Toolbar}))||t.default.createElement(n.Toolbar,null,t.default.createElement(c.ToolbarButton,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),t.default.createElement(c.ToolbarButton,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),t.default.createElement(c.ToolbarButton,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),t.default.createElement(c.ToolbarButton,{onClick:this.handleToggleHistory,title:"Show History",label:"History"})),a=(0,w.default)(r,(function(e){return e.type===n.Footer})),l={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},f={display:"block",width:this.state.docExplorerWidth},p="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),g={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:"7"},b=this.state.variableEditorOpen,O={height:b?this.state.variableEditorHeight:null};return t.default.createElement("div",{className:"graphiql-container"},t.default.createElement("div",{className:"historyPaneWrap",style:g},t.default.createElement(y.QueryHistory,{operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,queryID:this._editorQueryID},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),t.default.createElement("div",{className:"editorWrap"},t.default.createElement("div",{className:"topBarWrap"},t.default.createElement("div",{className:"topBar"},i,t.default.createElement(s.ExecuteButton,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),o),!this.state.docExplorerOpen&&t.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),t.default.createElement("div",{ref:function(t){e.editorBarComponent=t},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},t.default.createElement("div",{className:"queryWrap",style:l},t.default.createElement(d.QueryEditor,{ref:function(t){e.queryEditorComponent=t},schema:this.state.schema,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly}),t.default.createElement("section",{className:"variable-editor",style:O,"aria-label":"Query Variables"},t.default.createElement("div",{className:"variable-editor-title",id:"variable-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleVariableResizeStart},"Query Variables"),t.default.createElement(h.VariableEditor,{ref:function(t){e.variableEditorComponent=t},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly}))),t.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})),t.default.createElement(m.ResultViewer,{ref:function(t){e.resultComponent=t},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:u.ImagePreview}),a))),this.state.docExplorerOpen&&t.default.createElement("div",{className:p,style:f},t.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),t.default.createElement(v.DocExplorer,{ref:function(t){e.docExplorerComponent=t},schema:this.state.schema},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))}},{key:"getQueryEditor",value:function(){return this.queryEditorComponent.getCodeMirror()}},{key:"getVariableEditor",value:function(){return this.variableEditorComponent.getCodeMirror()}},{key:"refresh",value:function(){this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent.getCodeMirror().refresh(),this.resultComponent.getCodeMirror().refresh()}},{key:"autoCompleteLeafs",value:function(){var e=(0,_.fillLeafs)(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r.operation((function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n);var o=0,a=t.map((function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return a.forEach((function(e){return e.clear()}))}),7e3);var s=i;t.forEach((function(e){var t=e.index,n=e.string;t<i&&(s+=n.length)})),r.setCursor(r.posFromIndex(s))}))}return n}},{key:"_fetchSchema",value:function(){var e=this,t=this.props.fetcher,r=q(t({query:S.introspectionQuery,operationName:S.introspectionQueryName}));B(r)?r.then((function(e){if(e.data)return e;var n=q(t({query:S.introspectionQuerySansSubscriptions,operationName:S.introspectionQueryName}));if(!B(r))throw new Error("Fetcher did not return a Promise for introspection.");return n})).then((function(t){if(void 0===e.state.schema)if(t&&t.data){var r=(0,o.buildClientSchema)(t.data),i=(0,O.default)(r,e.state.query);e.setState(j({schema:r},i))}else{var a="string"==typeof t?t:n.formatResult(t);e.setState({schema:null,response:a})}})).catch((function(t){e.setState({schema:null,response:t?n.formatError(t):null})})):this.setState({response:"Fetcher did not return a Promise for introspection."})}},{key:"_fetchQuery",value:function(e,t,r,i){var o=this,a=this.props.fetcher,s=null;try{s=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error("Variables are invalid JSON: ".concat(e.message,"."))}if("object"!==N(s))throw new Error("Variables are not a JSON object.");var u=a({query:e,variables:s,operationName:r});if(!B(u)){if(K(u))return u.subscribe({next:i,error:function(e){o.setState({isWaitingForResponse:!1,response:e?n.formatError(e):null,subscription:null})},complete:function(){o.setState({isWaitingForResponse:!1,subscription:null})}});throw new Error("Fetcher did not return Promise or Observable.")}u.then(i).catch((function(e){o.setState({isWaitingForResponse:!1,response:e?n.formatError(e):null})}))}},{key:"_runQueryAtCursor",value:function(){if(this.state.subscription)this.handleStopQuery();else{var e,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o<t.length;o++){var a=t[o];if(a.loc.start<=i&&a.loc.end>=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}}},{key:"_didClickDragBar",value:function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=i.default.findDOMNode(this.resultComponent);t;){if(t===n)return!0;t=t.parentNode}return!1}}])&&A(l.prototype,f),p&&A(l,p),n}(t.default.Component);e.GraphiQL=P,R(P,"propTypes",{fetcher:n.default.func.isRequired,schema:n.default.instanceOf(o.GraphQLSchema),query:n.default.string,variables:n.default.string,operationName:n.default.string,response:n.default.string,storage:n.default.shape({getItem:n.default.func,setItem:n.default.func,removeItem:n.default.func}),defaultQuery:n.default.string,defaultVariableEditorOpen:n.default.bool,onCopyQuery:n.default.func,onEditQuery:n.default.func,onEditVariables:n.default.func,onEditOperationName:n.default.func,onToggleDocs:n.default.func,getDefaultFieldNames:n.default.func,editorTheme:n.default.string,onToggleHistory:n.default.func,ResultsTooltip:n.default.any,readOnly:n.default.bool,docExplorerOpen:n.default.bool}),P.Logo=function(e){return t.default.createElement("div",{className:"title"},e.children||t.default.createElement("span",null,"Graph",t.default.createElement("em",null,"i"),"QL"))},P.Toolbar=function(e){return t.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)},P.QueryEditor=d.QueryEditor,P.VariableEditor=h.VariableEditor,P.ResultViewer=m.ResultViewer,P.Button=c.ToolbarButton,P.ToolbarButton=c.ToolbarButton,P.Group=l.ToolbarGroup,P.Menu=f.ToolbarMenu,P.MenuItem=f.ToolbarMenuItem,P.Select=p.ToolbarSelect,P.SelectOption=p.ToolbarSelectOption,P.Footer=function(e){return t.default.createElement("div",{className:"footer"},e.children)},P.formatResult=function(e){return JSON.stringify(e,null,2)};var V=function(e){return j({},e,{message:e.message,stack:e.stack})};P.formatError=function(e){var t=Array.isArray(e)?e.map(V):V(e);return JSON.stringify(t,null,2)};var U='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function B(e){return"object"===N(e)&&"function"==typeof e.then}function q(e){return K(e)?new Promise((function(t,n){var r=e.subscribe((function(e){t(e),r.unsubscribe()}),n,(function(){n(new Error("no value resolved"))}))})):e}function K(e){return"object"===N(e)&&"function"==typeof e.subscribe}},o=[t,n(14),n(16),n(62),n(13),n(109),n(111),n(112),n(113),n(114),n(115),n(116),n(117),n(192),n(198),n(200),n(206),n(209),n(210),n(211),n(212),n(92),n(213),n(214),n(215),n(216),n(217)],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(41))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(108);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,n,r,i,o,a){if(a!==t){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(110),r="Copy to clipboard: #{key}, Enter";e.exports=function(e,n){var i,o,a,s,u,c,l=!1;n||(n={}),i=n.debug||!1;try{if(a=t(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(t){t.stopPropagation(),n.format&&(t.preventDefault(),t.clipboardData.clearData(),t.clipboardData.setData(n.format,e))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(t){i&&console.error("unable to copy using execCommand: ",t),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),l=!0}catch(t){i&&console.error("unable to copy using clipboardData: ",t),i&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in n?n.message:r),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ExecuteButton=void 0,t=r(t),n=r(n);var l=function(e){function n(e){var t,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,o=a(n).call(this,e),t=!o||"object"!==i(o)&&"function"!=typeof o?s(r):o,c(s(t),"_onClick",(function(){t.props.isRunning?t.props.onStop():t.props.onRun()})),c(s(t),"_onOptionSelected",(function(e){t.setState({optionsOpen:!1}),t.props.onRun(e.name&&e.name.value)})),c(s(t),"_onOptionsOpen",(function(e){var n=!0,r=e.target;t.setState({highlight:null,optionsOpen:!0});var i=function(e){n&&e.target===r?n=!1:(document.removeEventListener("mouseup",i),i=null,r.parentNode.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_CONTAINED_BY||t.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)})),t.state={optionsOpen:!1,highlight:null},t}var r,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),r=n,(l=[{key:"render",value:function(){var e,n,r=this,i=this.props.operations,o=this.state.optionsOpen,a=i&&i.length>1,s=null;if(a&&o){var u=this.state.highlight;s=t.default.createElement("ul",{className:"execute-options"},i.map((function(e){return t.default.createElement("li",{key:e.name?e.name.value:"*",className:e===u?"selected":void 0,onMouseOver:function(){return r.setState({highlight:e})},onMouseOut:function(){return r.setState({highlight:null})},onMouseUp:function(){return r._onOptionSelected(e)}},e.name?e.name.value:"<Unnamed>")})))}!this.props.isRunning&&a||(e=this._onClick),this.props.isRunning||!a||o||(n=this._onOptionsOpen);var c=this.props.isRunning?t.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):t.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return t.default.createElement("div",{className:"execute-button-wrap"},t.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:n,onClick:e,title:"Execute Query (Ctrl-Enter)"},t.default.createElement("svg",{width:"34",height:"34"},c)),s)}}])&&o(r.prototype,l),f&&o(r,f),n}(t.default.Component);e.ExecuteButton=l,c(l,"propTypes",{onRun:n.default.func,onStop:n.default.func,isRunning:n.default.bool,operations:n.default.array})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){if("string"!==e.type)return null;var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(e){return null}}Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePreview=void 0,t=r(t),n=r(n);var p=function(e){function n(e){var t,r,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,t=!(s=o(n).call(this,e))||"object"!==i(s)&&"function"!=typeof s?a(r):s,l(a(t),"state",{width:null,height:null,src:null,mime:null}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),u(n,null,[{key:"shouldRender",value:function(e){var t=f(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)}}]),u(n,[{key:"componentDidMount",value:function(){this._updateMetadata()}},{key:"componentDidUpdate",value:function(){this._updateMetadata()}},{key:"render",value:function(){var e=this,n=null;if(null!==this.state.width&&null!==this.state.height){var r=this.state.width+"x"+this.state.height;null!==this.state.mime&&(r+=" "+this.state.mime),n=t.default.createElement("div",null,r)}return t.default.createElement("div",null,t.default.createElement("img",{onLoad:function(){return e._updateMetadata()},ref:function(t){e._node=t},src:f(this.props.token)}),n)}},{key:"_updateMetadata",value:function(){var e=this;if(this._node){var t=this._node.naturalWidth,n=this._node.naturalHeight,r=this._node.src;r!==this.state.src&&(this.setState({src:r}),fetch(r,{method:"HEAD"}).then((function(t){e.setState({mime:t.headers.get("Content-Type")})}))),t===this.state.width&&n===this.state.height||this.setState({height:n,width:t})}}}]),n}(t.default.Component);e.ImagePreview=p,l(p,"propTypes",{token:n.default.any})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarButton=void 0,t=r(t),n=r(n);var l=function(e){function n(e){var t,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,o=a(n).call(this,e),t=!o||"object"!==i(o)&&"function"!=typeof o?s(r):o,c(s(t),"handleClick",(function(){try{t.props.onClick(),t.setState({error:null})}catch(e){t.setState({error:e})}})),t.state={error:null},t}var r,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),r=n,(l=[{key:"render",value:function(){var e=this.state.error;return t.default.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)}}])&&o(r.prototype,l),f&&o(r,f),n}(t.default.Component);e.ToolbarButton=l,c(l,"propTypes",{onClick:n.default.func,title:n.default.string,label:n.default.string})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarGroup=function(e){var n=e.children;return t.default.createElement("div",{className:"toolbar-button-group"},n)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarMenuItem=f,e.ToolbarMenu=void 0,t=r(t),n=r(n);var l=function(e){function n(e){var t,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,o=a(n).call(this,e),t=!o||"object"!==i(o)&&"function"!=typeof o?s(r):o,c(s(t),"handleOpen",(function(e){p(e),t.setState({visible:!0}),t._subscribe()})),t.state={visible:!1},t}var r,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),r=n,(l=[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,n=this.state.visible;return t.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:p,ref:function(t){e._node=t},title:this.props.title},this.props.label,t.default.createElement("svg",{width:"14",height:"8"},t.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),t.default.createElement("ul",{className:"toolbar-menu-items"+(n?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(p(e),this.setState({visible:!1}),this._release())}}])&&o(r.prototype,l),f&&o(r,f),n}(t.default.Component);function f(e){var n=e.onSelect,r=e.title,i=e.label;return t.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:p,onMouseUp:n,title:r},i)}function p(e){e.preventDefault()}e.ToolbarMenu=l,c(l,"propTypes",{title:n.default.string,label:n.default.string}),f.propTypes={onSelect:n.default.func,title:n.default.string,label:n.default.string}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarSelectOption=p,e.ToolbarSelect=void 0,t=r(t),n=r(n);var f=function(e){function n(e){var t,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,o=s(n).call(this,e),t=!o||"object"!==i(o)&&"function"!=typeof o?u(r):o,l(u(t),"handleOpen",(function(e){d(e),t.setState({visible:!0}),t._subscribe()})),t.state={visible:!1},t}var r,f,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),r=n,(f=[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e,n=this,r=this.state.visible,i=t.default.Children.map(this.props.children,(function(r,i){e&&!r.props.selected||(e=r);var a=r.props.onSelect||n.props.onSelect&&n.props.onSelect.bind(null,r.props.value,i);return t.default.createElement(p,o({},r.props,{onSelect:a}))}));return t.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:d,ref:function(e){n._node=e},title:this.props.title},e.props.label,t.default.createElement("svg",{width:"13",height:"10"},t.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),t.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),t.default.createElement("ul",{className:"toolbar-select-options"+(r?" open":"")},i))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(d(e),this.setState({visible:!1}),this._release())}}])&&a(r.prototype,f),h&&a(r,h),n}(t.default.Component);function p(e){var n=e.onSelect,r=e.label,i=e.selected;return t.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:d,onMouseUp:n},r,i&&t.default.createElement("svg",{width:"13",height:"13"},t.default.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835 10.686,0 13,2.314 4.851,10.462"})))}function d(e){e.preventDefault()}e.ToolbarSelect=f,l(f,"propTypes",{title:n.default.string,label:n.default.string,onSelect:n.default.func}),p.propTypes={onSelect:n.default.func,selected:n.default.bool,label:n.default.string,value:n.default.any}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(13),n(42),n(172),n(72),n(46)],void 0===(o="function"==typeof(r=function(e,t,r,i,o,a,s,u){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="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})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryEditor=void 0,t=c(t),r=c(r),o=c(o),s=c(s),u=c(u);var g=new o.default,b=/^[a-zA-Z0-9_@(]$/,O=function(e){function r(e){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,i=h(r).call(this),t=!i||"object"!==l(i)&&"function"!=typeof i?m(n):i,y(m(t),"_onKeyUp",(function(e,n){b.test(n.key)&&t.editor.execCommand("autocomplete")})),y(m(t),"_onEdit",(function(){t.ignoreChangeEvent||(t.cachedValue=t.editor.getValue(),t.props.onEdit&&t.props.onEdit(t.cachedValue))})),y(m(t),"_onHasCompletion",(function(e,n){(0,s.default)(e,n,t.props.onHintInformationRender)})),t.cachedValue=e.value||"",t}var i,o,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(r,e),i=r,(o=[{key:"componentDidMount",value:function(){var e=this,t=n(6);n(73),n(173),n(39),n(74),n(47),n(48),n(76),n(31),n(49),n(32),n(77),n(50),n(174),n(187),n(188),n(189),n(191),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node},info:{schema:this.props.schema,renderDescription:function(e){return g.render(e)},onClick:function(t){return e.props.onClickReference(t)}},jump:{schema:this.props.schema,onClick:function(t){return e.props.onClickReference(t)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:p({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!0,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!0,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!0,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!0,container:e._node})},"Shift-Alt-Space":function(){return e.editor.showHint({completeSingle:!0,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-C":function(){e.props.onCopyQuery&&e.props.onCopyQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},u.default,{"Cmd-S":function(){e.props.onRunQuery},"Ctrl-S":function(){e.props.onRunQuery}})}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion),this.editor.on("beforeChange",this._onBeforeChange)}},{key:"componentDidUpdate",value:function(e){var t=n(6);this.ignoreChangeEvent=!0,this.props.schema!==e.schema&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1}},{key:"componentWillUnmount",value:function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}},{key:"render",value:function(){var e=this;return t.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}},{key:"_onBeforeChange",value:function(e,t){if("paste"===t.origin){var n=t.text.map(a.normalizeWhitespace);t.update(t.from,t.to,n)}}}])&&d(i.prototype,o),c&&d(i,c),r}(t.default.Component);e.QueryEditor=O,y(O,"propTypes",{schema:r.default.instanceOf(i.GraphQLSchema),value:r.default.string,onEdit:r.default.func,readOnly:r.default.bool,onHintInformationRender:r.default.func,onClickReference:r.default.func,onCopyQuery:r.default.func,onPrettifyQuery:r.default.func,onMergeQuery:r.default.func,onRunQuery:r.default.func,editorTheme:r.default.string})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10),r=n(126),i=n(130),o=n(131),a=n(139),s=n(153),u=n(166),c=n(64),l=n(168),f={default:n(169),zero:n(170),commonmark:n(171)},p=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!p.test(t)||!!d.test(t)}var m=["http:","https:","mailto:"];function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=l.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=l.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t))}function g(e,n){if(!(this instanceof g))return new g(e,n);n||t.isString(e)||(n=e||{},e="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new u,this.validateLink=h,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=t,this.helpers=t.assign({},r),this.options={},this.configure(e),n&&this.set(n)}g.prototype.set=function(e){return t.assign(this.options,e),this},g.prototype.configure=function(e){var n,r=this;if(t.isString(e)&&!(e=f[n=e]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},g.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},g.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},g.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},g.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},g.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},g.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},g.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=g})?r.apply(t,i):r)||(e.exports=o)},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r,i){var o,a,s,u,c,l="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,u,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(u=r<<6&1984|63&o)<128?"��":String.fromCharCode(u),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(c+=(u=r<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"���":String.fromCharCode(u),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((u=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?c+="����":(u-=65536,c+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),u=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=n.exec(m);if(y&&(a=(y=y[0]).toLowerCase(),this.protocol=y,m=m.substr(y.length)),(t||y||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||y&&f[y]||(m=m.substr(2),this.slashes=!0)),!f[y]&&(h||y&&!p[y])){var g,b,O=-1;for(r=0;r<u.length;r++)-1!==(d=m.indexOf(u[r]))&&(-1===O||d<O)&&(O=d);for(-1!==(b=-1===O?m.lastIndexOf("@"):m.lastIndexOf("@",O))&&(g=m.slice(0,b),m=m.slice(b+1),this.auth=g),O=-1,r=0;r<s.length;r++)-1!==(d=m.indexOf(s[r]))&&(-1===O||d<O)&&(O=d);-1===O&&(O=m.length),":"===m[O-1]&&O--;var E=m.slice(0,O);m=m.slice(O),this.parseHost(E),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T){var w=this.hostname.split(/\./);for(r=0,o=w.length;r<o;r++){var _=w[r];if(_&&!_.match(c)){for(var k="",x=0,S=_.length;x<S;x++)_.charCodeAt(x)>127?k+="x":k+=_[x];if(!k.match(c)){var C=w.slice(0,r),N=w.slice(r+1),D=_.match(l);D&&(C.push(D[1]),N.unshift(D[2])),N.length&&(m=N.join(".")+m),this.hostname=C.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var j=m.indexOf("#");-1!==j&&(this.hash=m.substr(j),m=m.slice(0,j));var A=m.indexOf("?");return-1!==A&&(this.search=m.substr(A),m=m.slice(0,A)),m&&(this.pathname=m),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.Any=n(65),t.Cc=n(66),t.Cf=n(125),t.P=n(43),t.Z=n(67)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.parseLinkLabel=n(127),t.parseLinkDestination=n(128),t.parseLinkTitle=n(129)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).unescapeAll;e.exports=function(e,n,r){var i,o,a=n,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(n)){for(n++;n<r;){if(10===(i=e.charCodeAt(n)))return s;if(62===i)return s.pos=n+1,s.str=t(e.slice(a+1,n)),s.ok=!0,s;92===i&&n+1<r?n+=2:n++}return s}for(o=0;n<r&&32!==(i=e.charCodeAt(n))&&!(i<32||127===i);)if(92===i&&n+1<r)n+=2;else{if(40===i&&o++,41===i){if(0===o)break;o--}n++}return a===n?s:0!==o?s:(s.str=t(e.slice(a,n)),s.lines=0,s.pos=n,s.ok=!0,s)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).unescapeAll;e.exports=function(e,n,r){var i,o,a=0,s=n,u={ok:!1,pos:0,lines:0,str:""};if(n>=r)return u;if(34!==(o=e.charCodeAt(n))&&39!==o&&40!==o)return u;for(n++,40===o&&(o=41);n<r;){if((i=e.charCodeAt(n))===o)return u.pos=n+1,u.lines=a,u.str=t(e.slice(s+1,n)),u.ok=!0,u;10===i?a++:92===i&&n+1<r&&(n++,10===e.charCodeAt(n)&&a++),n++}return u}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).assign,r=n(10).unescapeAll,i=n(10).escapeHtml,o={};function a(){this.rules=t({},o)}o.code_inline=function(e,t,n,r,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,o,a){var s,u,c,l,f=e[t],p=f.info?r(f.info).trim():"",d="";return p&&(d=p.split(/\s+/g)[0]),0===(s=n.highlight&&n.highlight(f.content,d)||i(f.content)).indexOf("<pre")?s+"\n":p?(u=f.attrIndex("class"),c=f.attrs?f.attrs.slice():[],u<0?c.push(["class",n.langPrefix+d]):c[u][1]+=" "+n.langPrefix+d,l={attrs:c},"<pre><code"+a.renderAttrs(l)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(f)+">"+s+"</code></pre>\n"},o.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},a.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?o=!1:-1===r.nesting&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},a.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},a.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type&&(r+=this.renderInlineAsText(e[i].children,t,n));return r},a.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(44),r=[["normalize",n(132)],["block",n(133)],["inline",n(134)],["linkify",n(135)],["replacements",n(136)],["smartquotes",n(137)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(138),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).arrayReplaceAt;function r(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var n,i,o,a,s,u,c,l,f,p,d,h,m,v,y,g,b,O,E=e.tokens;if(e.md.options.linkify)for(i=0,o=E.length;i<o;i++)if("inline"===E[i].type&&e.md.linkify.pretest(E[i].content))for(m=0,n=(a=E[i].children).length-1;n>=0;n--)if("link_close"!==(u=a[n]).type){if("html_inline"===u.type&&(O=u.content,/^<a[>\s]/i.test(O)&&m>0&&m--,r(u.content)&&m++),!(m>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(f=u.content,b=e.md.linkify.match(f),c=[],h=u.level,d=0,l=0;l<b.length;l++)v=b[l].url,y=e.md.normalizeLink(v),e.md.validateLink(y)&&(g=b[l].text,g=b[l].schema?"mailto:"!==b[l].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(p=b[l].index)>d&&((s=new e.Token("text","",0)).content=f.slice(d,p),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",y]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=g,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),d=b[l].lastIndex);d<f.length&&((s=new e.Token("text","",0)).content=f.slice(d),s.level=h,c.push(s)),E[i].children=a=t(a,n,c)}}else for(n--;a[n].level!==u.level&&"link_open"!==a[n].type;)n--}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isWhiteSpace,r=n(10).isPunctChar,i=n(10).isMdAsciiPunct,o=/['"]/,a=/['"]/g,s="’";function u(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,n){var o,c,l,f,p,d,h,m,v,y,g,b,O,E,T,w,_,k,x,S,C;for(x=[],o=0;o<e.length;o++){for(c=e[o],h=e[o].level,_=x.length-1;_>=0&&!(x[_].level<=h);_--);if(x.length=_+1,"text"===c.type){p=0,d=(l=c.content).length;e:for(;p<d&&(a.lastIndex=p,f=a.exec(l));){if(T=w=!0,p=f.index+1,k="'"===f[0],v=32,f.index-1>=0)v=l.charCodeAt(f.index-1);else for(_=o-1;_>=0&&"softbreak"!==e[_].type&&"hardbreak"!==e[_].type;_--)if("text"===e[_].type){v=e[_].content.charCodeAt(e[_].content.length-1);break}if(y=32,p<d)y=l.charCodeAt(p);else for(_=o+1;_<e.length&&"softbreak"!==e[_].type&&"hardbreak"!==e[_].type;_++)if("text"===e[_].type){y=e[_].content.charCodeAt(0);break}if(g=i(v)||r(String.fromCharCode(v)),b=i(y)||r(String.fromCharCode(y)),O=t(v),(E=t(y))?T=!1:b&&(O||g||(T=!1)),O?w=!1:g&&(E||b||(w=!1)),34===y&&'"'===f[0]&&v>=48&&v<=57&&(w=T=!1),T&&w&&(T=!1,w=b),T||w){if(w)for(_=x.length-1;_>=0&&(m=x[_],!(x[_].level<h));_--)if(m.single===k&&x[_].level===h){m=x[_],k?(S=n.md.options.quotes[2],C=n.md.options.quotes[3]):(S=n.md.options.quotes[0],C=n.md.options.quotes[1]),c.content=u(c.content,f.index,C),e[m.token].content=u(e[m.token].content,m.pos,S),p+=C.length-1,m.token===o&&(p+=S.length-1),d=(l=c.content).length,x.length=_;continue e}T?x.push({token:o,pos:f.index,single:k,level:h}):w&&k&&(c.content=u(c.content,f.index,s))}else k&&(c.content=u(c.content,f.index,s))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(45);function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r.prototype.Token=t,e.exports=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(44),r=[["table",n(140),["paragraph","reference"]],["code",n(141)],["fence",n(142),["paragraph","reference","blockquote","list"]],["blockquote",n(143),["paragraph","reference","blockquote","list"]],["hr",n(144),["paragraph","reference","blockquote","list"]],["list",n(145),["paragraph","reference","blockquote"]],["reference",n(146)],["heading",n(147),["paragraph","reference","blockquote"]],["lheading",n(148)],["html_block",n(149),["paragraph","reference","blockquote"]],["paragraph",n(151)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1],{alt:(r[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},i.prototype.State=n(152),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;function r(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,i=e.length,o=0,a=0,s=!1,u=0;for(t=e.charCodeAt(r);r<i;)96===t?s?(s=!1,u=r):o%2==0&&(s=!0,u=r):124!==t||o%2!=0||s||(n.push(e.substring(a,r)),a=r+1),92===t?o++:o=0,++r===i&&s&&(s=!1,r=u+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}e.exports=function(e,n,o,a){var s,u,c,l,f,p,d,h,m,v,y,g;if(n+2>o)return!1;if(f=n+1,e.sCount[f]<e.blkIndent)return!1;if(e.sCount[f]-e.blkIndent>=4)return!1;if((c=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(s=e.src.charCodeAt(c++))&&45!==s&&58!==s)return!1;for(;c<e.eMarks[f];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!t(s))return!1;c++}for(p=(u=r(e,n+1)).split("|"),m=[],l=0;l<p.length;l++){if(!(v=p[l].trim())){if(0===l||l===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?m.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(u=r(e,n).trim()).indexOf("|"))return!1;if(e.sCount[n]-e.blkIndent>=4)return!1;if((d=(p=i(u.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((h=e.push("table_open","table",1)).map=y=[n,0],(h=e.push("thead_open","thead",1)).map=[n,n+1],(h=e.push("tr_open","tr",1)).map=[n,n+1],l=0;l<p.length;l++)(h=e.push("th_open","th",1)).map=[n,n+1],m[l]&&(h.attrs=[["style","text-align:"+m[l]]]),(h=e.push("inline","",0)).content=p[l].trim(),h.map=[n,n+1],h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),(h=e.push("tbody_open","tbody",1)).map=g=[n+2,0],f=n+2;f<o&&!(e.sCount[f]<e.blkIndent)&&-1!==(u=r(e,f).trim()).indexOf("|")&&!(e.sCount[f]-e.blkIndent>=4);f++){for(p=i(u.replace(/^\||\|$/g,"")),h=e.push("tr_open","tr",1),l=0;l<d;l++)h=e.push("td_open","td",1),m[l]&&(h.attrs=[["style","text-align:"+m[l]]]),(h=e.push("inline","",0)).content=p[l]?p[l].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return h=e.push("tbody_close","tbody",-1),h=e.push("table_close","table",-1),y[1]=g[1]=f,e.line=f,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,u,c,l,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(l=e.src.slice(u,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-u<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=l,c.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;e.exports=function(e,n,r,i){var o,a,s,u,c,l,f,p,d,h,m,v,y,g,b,O,E,T,w,_,k=e.lineMax,x=e.bMarks[n]+e.tShift[n],S=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(i)return!0;for(u=d=e.sCount[n]+x-(e.bMarks[n]+e.tShift[n]),32===e.src.charCodeAt(x)?(x++,u++,d++,o=!1,O=!0):9===e.src.charCodeAt(x)?(O=!0,(e.bsCount[n]+d)%4==3?(x++,u++,d++,o=!1):o=!0):O=!1,h=[e.bMarks[n]],e.bMarks[n]=x;x<S&&(a=e.src.charCodeAt(x),t(a));)9===a?d+=4-(d+e.bsCount[n]+(o?1:0))%4:d++,x++;for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(O?1:0),l=x>=S,g=[e.sCount[n]],e.sCount[n]=d-u,b=[e.tShift[n]],e.tShift[n]=x-e.bMarks[n],T=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",_=!1,p=n+1;p<r&&(e.sCount[p]<e.blkIndent&&(_=!0),!((x=e.bMarks[p]+e.tShift[p])>=(S=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(x++)||_){if(l)break;for(E=!1,s=0,c=T.length;s<c;s++)if(T[s](e,p,r,!0)){E=!0;break}if(E){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),g.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),g.push(e.sCount[p]),e.sCount[p]=-1}else{for(u=d=e.sCount[p]+x-(e.bMarks[p]+e.tShift[p]),32===e.src.charCodeAt(x)?(x++,u++,d++,o=!1,O=!0):9===e.src.charCodeAt(x)?(O=!0,(e.bsCount[p]+d)%4==3?(x++,u++,d++,o=!1):o=!0):O=!1,h.push(e.bMarks[p]),e.bMarks[p]=x;x<S&&(a=e.src.charCodeAt(x),t(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,x++;l=x>=S,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(O?1:0),g.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=x-e.bMarks[p]}for(v=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=f=[n,0],e.md.block.tokenize(e,n,p),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=k,e.parentType=y,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+n]=h[s],e.tShift[s+n]=b[s],e.sCount[s+n]=g[s],e.bsCount[s+n]=m[s];return e.blkIndent=v,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;e.exports=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c<l;){if((s=e.src.charCodeAt(c++))!==o&&!t(s))return!1;s===o&&a++}return!(a<3||!i&&(e.line=n+1,(u=e.push("hr","hr",0)).map=[n,e.line],u.markup=Array(a+1).join(String.fromCharCode(o)),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;function r(e,n){var r,i,o,a;return i=e.bMarks[n]+e.tShift[n],o=e.eMarks[n],42!==(r=e.src.charCodeAt(i++))&&45!==r&&43!==r?-1:i<o&&(a=e.src.charCodeAt(i),!t(a))?-1:i}function i(e,n){var r,i=e.bMarks[n]+e.tShift[n],o=i,a=e.eMarks[n];if(o+1>=a)return-1;if((r=e.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=a)return-1;if(!((r=e.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o<a&&(r=e.src.charCodeAt(o),!t(r))?-1:o}e.exports=function(e,t,n,o){var a,s,u,c,l,f,p,d,h,m,v,y,g,b,O,E,T,w,_,k,x,S,C,N,D,j,A,L,I=!1,F=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(I=!0),(C=i(e,t))>=0){if(p=!0,D=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(D,C-D-1)),I&&1!==g)return!1}else{if(!((C=r(e,t))>=0))return!1;p=!1}if(I&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(C-1),o)return!0;for(v=e.tokens.length,p?(L=e.push("ordered_list_open","ol",1),1!==g&&(L.attrs=[["start",g]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(y),O=t,N=!1,A=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";O<n;){for(S=C,b=e.eMarks[O],f=E=e.sCount[O]+C-(e.bMarks[t]+e.tShift[t]);S<b;){if(9===(a=e.src.charCodeAt(S)))E+=4-(E+e.bsCount[O])%4;else{if(32!==a)break;E++}S++}if((l=(s=S)>=b?1:E-f)>4&&(l=1),c=f+l,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(y),L.map=d=[t,0],x=e.tight,k=e.tShift[t],_=e.sCount[t],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(F=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=k,e.sCount[t]=_,e.tight=x,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(y),O=t=e.line,d[1]=O,s=e.bMarks[t],O>=n)break;if(e.sCount[O]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(j=!1,u=0,h=A.length;u<h;u++)if(A[u](e,O,n,!0)){j=!0;break}if(j)break;if(p){if((C=i(e,O))<0)break}else if((C=r(e,O))<0)break;if(y!==e.src.charCodeAt(C-1))break}return(L=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(y),m[1]=O,e.line=O,e.parentType=w,F&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,v),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).normalizeReference,r=n(10).isSpace;e.exports=function(e,n,i,o){var a,s,u,c,l,f,p,d,h,m,v,y,g,b,O,E,T=0,w=e.bMarks[n]+e.tShift[n],_=e.eMarks[n],k=n+1;if(e.sCount[n]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<_;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===_)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,O=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";k<c&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(b=!1,f=0,p=O.length;f<p;f++)if(O[f](e,k,c,!0)){b=!0;break}if(b)break}for(_=(g=e.getLines(n,k,e.blkIndent,!1).trim()).length,w=1;w<_;w++){if(91===(a=g.charCodeAt(w)))return!1;if(93===a){h=w;break}10===a?T++:92===a&&++w<_&&10===g.charCodeAt(w)&&T++}if(h<0||58!==g.charCodeAt(h+1))return!1;for(w=h+2;w<_;w++)if(10===(a=g.charCodeAt(w)))T++;else if(!r(a))break;if(!(v=e.md.helpers.parseLinkDestination(g,w,_)).ok)return!1;if(l=e.md.normalizeLink(v.str),!e.md.validateLink(l))return!1;for(s=w=v.pos,u=T+=v.lines,y=w;w<_;w++)if(10===(a=g.charCodeAt(w)))T++;else if(!r(a))break;for(v=e.md.helpers.parseLinkTitle(g,w,_),w<_&&y!==w&&v.ok?(E=v.str,w=v.pos,T+=v.lines):(E="",w=s,T=u);w<_&&(a=g.charCodeAt(w),r(a));)w++;if(w<_&&10!==g.charCodeAt(w)&&E)for(E="",w=s,T=u;w<_&&(a=g.charCodeAt(w),r(a));)w++;return!(w<_&&10!==g.charCodeAt(w)||!(d=t(g.slice(1,h)))||!o&&(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:E,href:l}),e.parentType=m,e.line=n+T+1,0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;e.exports=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=l)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<l&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<l&&!t(o)||!i&&(l=e.skipSpacesBack(l,c),(s=e.skipCharsBack(l,35,c))>c&&t(e.src.charCodeAt(s-1))&&(l=s),e.line=n+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[n,e.line],(u=e.push("inline","",0)).content=e.src.slice(c,l).trim(),u.map=[n,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,u,c,l,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(c=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=c)){l=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!l&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(l),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(l),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(150),r=n(68).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+t.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(u=e.src.slice(c,l),o=0;o<i.length&&!i[o][0].test(u);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=t+1,!i[o][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],u=e.src.slice(c,l),i[o][1].test(u)){0!==u.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u=t+1,c=e.md.block.ruler.getRules("paragraph"),l=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<l&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,u,l,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(45),r=n(10).isSpace;function i(e,t,n,i){var o,a,s,u,c,l,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=u=l=f=0,c=(a=this.src).length;u<c;u++){if(o=a.charCodeAt(u),!p){if(r(o)){l++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&u!==c-1||(10!==o&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,n,r){var i=new t(e,n,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),r(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!r(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,i){var o,a,s,u,c,l,f,p=e;if(e>=t)return"";for(l=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=u=this.bMarks[p],c=p+1<t||i?this.eMarks[p]+1:this.eMarks[p];u<c&&a<n;){if(s=this.src.charCodeAt(u),r(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-f<this.tShift[p]))break;a++}u++}l[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return l.join("")},i.prototype.Token=t,e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(44),r=[["text",n(154)],["newline",n(155)],["escape",n(156)],["backticks",n(157)],["strikethrough",n(69).tokenize],["emphasis",n(70).tokenize],["link",n(158)],["image",n(159)],["autolink",n(160)],["html_inline",n(161)],["entity",n(162)]],i=[["balance_pairs",n(163)],["strikethrough",n(69).postProcess],["emphasis",n(70).postProcess],["text_collapse",n(164)]];function o(){var e;for(this.ruler=new t,e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1]);for(this.ruler2=new t,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},o.prototype.State=n(165),e.exports=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).isSpace;e.exports=function(e,n){var r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(r=e.pending.length-1,i=e.posMax,n||(r>=0&&32===e.pending.charCodeAt(r)?r>=1&&32===e.pending.charCodeAt(r-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&t(e.src.charCodeAt(o));)o++;return e.pos=o,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";for(var t=n(10).isSpace,r=[],i=0;i<256;i++)r.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){r[e.charCodeAt(0)]=1})),e.exports=function(e,n){var i,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((i=e.src.charCodeAt(o))<256&&0!==r[i])return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===i){for(n||e.push("hardbreak","br",0),o++;o<a&&(i=e.src.charCodeAt(o),t(i));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;for(i=e.src.slice(n,u),o=a=u;-1!==(o=e.src.indexOf("`",a));){for(a=o+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-o===i.length)return t||((s=e.push("code_inline","code",0)).markup=i,s.content=e.src.slice(u,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).normalizeReference,r=n(10).isSpace;e.exports=function(e,n){var i,o,a,s,u,c,l,f,p,d="",h=e.pos,m=e.posMax,v=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)<m&&40===e.src.charCodeAt(c)){for(y=!1,c++;c<m&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(c>=m)return!1;for(v=c,(l=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?c=l.pos:d=""),v=c;c<m&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(l=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&v!==c&&l.ok)for(p=l.str,c=l.pos;c<m&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);else p="";(c>=m||41!==e.src.charCodeAt(c))&&(y=!0),c++}if(y){if(void 0===e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(v=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(v,c++):c=s+1):c=s+1,a||(a=e.src.slice(u,s)),!(f=e.env.references[t(a)]))return e.pos=h,!1;d=f.href,p=f.title}return n||(e.pos=u,e.posMax=s,e.push("link_open","a",1).attrs=i=[["href",d]],p&&i.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(10).normalizeReference,r=n(10).isSpace;e.exports=function(e,n){var i,o,a,s,u,c,l,f,p,d,h,m,v,y="",g=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=u+1)<b&&40===e.src.charCodeAt(l)){for(l++;l<b&&(o=e.src.charCodeAt(l),r(o)||10===o);l++);if(l>=b)return!1;for(v=l,(p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(y=e.md.normalizeLink(p.str),e.md.validateLink(y)?l=p.pos:y=""),v=l;l<b&&(o=e.src.charCodeAt(l),r(o)||10===o);l++);if(p=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<b&&v!==l&&p.ok)for(d=p.str,l=p.pos;l<b&&(o=e.src.charCodeAt(l),r(o)||10===o);l++);else d="";if(l>=b||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l<b&&91===e.src.charCodeAt(l)?(v=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?s=e.src.slice(v,l++):l=u+1):l=u+1,s||(s=e.src.slice(c,u)),!(f=e.env.references[t(s)]))return e.pos=g,!1;y=f.href,d=f.title}return n||(a=e.src.slice(c,u),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=i=[["src",y],["alt",""]],h.children=m,h.content=a,d&&i.push(["title",d])),e.pos=l,e.posMax=b,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,n=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,r){var i,o,a,s,u,c,l=e.pos;return!(60!==e.src.charCodeAt(l)||(i=e.src.slice(l)).indexOf(">")<0||(n.test(i)?(s=(o=i.match(n))[0].slice(1,-1),u=e.md.normalizeLink(s),!e.md.validateLink(u)||(r||((c=e.push("link_open","a",1)).attrs=[["href",u]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=o[0].length,0)):!t.test(i)||(s=(a=i.match(t))[0].slice(1,-1),u=e.md.normalizeLink("mailto:"+s),!e.md.validateLink(u)||(r||((c=e.push("link_open","a",1)).attrs=[["href",u]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=a[0].length,0))))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(68).HTML_TAG_RE;e.exports=function(e,n){var r,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(r=e.src.charCodeAt(a+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(i=e.src.slice(a).match(t))||(n||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(63),r=n(10).has,i=n(10).isValidEntityCode,o=n(10).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,n){var u,c,l=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(l))return!1;if(l+1<f)if(35===e.src.charCodeAt(l+1)){if(c=e.src.slice(l).match(a))return n||(u="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=i(u)?o(u):o(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(l).match(s))&&r(t,c[1]))return n||(e.pending+=t[c[1]]),e.pos+=c[0].length,!0;return n||(e.pending+="&"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s,u,c,l={},f=t.length;for(n=0;n<f;n++)if((i=t[n]).length=i.length||0,i.close){for(l.hasOwnProperty(i.marker)||(l[i.marker]=[-1,-1,-1]),a=l[i.marker][i.length%3],s=-1,r=n-i.jump-1;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&(-1===s&&(s=r),o.open&&o.end<0&&o.level===i.level&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(u=!0)),!u))){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+c,i.open=!1,o.end=n,o.jump=c,o.close=!1,s=-1;break}-1!==s&&(l[i.marker][(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(45),r=n(10).isWhiteSpace,i=n(10).isPunctChar,o=n(10).isMdAsciiPunct;function a(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}a.prototype.pushPending=function(){var e=new t("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,n,r){this.pending&&this.pushPending();var i=new t(e,n,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(e,t){var n,a,s,u,c,l,f,p,d,h=e,m=!0,v=!0,y=this.posMax,g=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<y&&this.src.charCodeAt(h)===g;)h++;return s=h-e,a=h<y?this.src.charCodeAt(h):32,f=o(n)||i(String.fromCharCode(n)),d=o(a)||i(String.fromCharCode(a)),l=r(n),(p=r(a))?m=!1:d&&(l||f||(m=!1)),l?v=!1:f&&(p||d||(v=!1)),t?(u=m,c=v):(u=m&&(!v||f),c=v&&(!m||d)),{can_open:u,can_close:c,length:s}},a.prototype.Token=t,e.exports=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(e){var t=e.re=n(167)(e.__opts__),a=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||a.push(u),a.push(t.src_xn),t.src_tlds=a.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return function(e){return"[object RegExp]"===r(e)}(n.validate)?o.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate):i(n.validate)?o.validate=n.validate:l(t,n),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?l(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var f=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function f(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function p(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,n){if(!(this instanceof d))return new d(e,n);var r;n||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(n=e,e={})),this.__opts__=t({},a,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=t({},s,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},d.prototype.set=function(e){return this.__opts__=t(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t={};return t.src_Any=n(65).source,t.src_Cc=n(66).source,t.src_Z=n(67).source,t.src_P=n(43).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e,r){var i,o,a,s;s=function(){"use strict";function i(e){return(i="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})(e)}
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){var s="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,c="object"==(void 0===r?"undefined":i(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(o=c);var l,f,p=2147483647,d=36,h=1,m=26,v=38,y=700,g=72,b=128,O="-",E=/^xn--/,T=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=d-h,x=Math.floor,S=String.fromCharCode;function C(e){throw new RangeError(_[e])}function N(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function D(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+N((e=e.replace(w,".")).split("."),t).join(".")}function j(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function A(e){return N(e,(function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)})).join("")}function L(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,n){var r=0;for(e=n?x(e/y):e>>1,e+=x(e/t);e>k*m>>1;r+=d)e=x(e/k);return x(r+(k+1)*e/(e+v))}function F(e){var t,n,r,i,o,a,s,u,c,l,f,v=[],y=e.length,E=0,T=b,w=g;for((n=e.lastIndexOf(O))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&C("not-basic"),v.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=E,a=1,s=d;i>=y&&C("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:d)>=d||u>x((p-E)/a))&&C("overflow"),E+=u*a,!(u<(c=s<=w?h:s>=w+m?m:s-w));s+=d)a>x(p/(l=d-c))&&C("overflow"),a*=l;w=I(E-o,t=v.length+1,0==o),x(E/t)>p-T&&C("overflow"),T+=x(E/t),E%=t,v.splice(E++,0,T)}return A(v)}function R(e){var t,n,r,i,o,a,s,u,c,l,f,v,y,E,T,w=[];for(v=(e=j(e)).length,t=b,n=0,o=g,a=0;a<v;++a)(f=e[a])<128&&w.push(S(f));for(r=i=w.length,i&&w.push(O);r<v;){for(s=p,a=0;a<v;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>x((p-n)/(y=r+1))&&C("overflow"),n+=(s-t)*y,t=s,a=0;a<v;++a)if((f=e[a])<t&&++n>p&&C("overflow"),f==t){for(u=n,c=d;!(u<(l=c<=o?h:c>=o+m?m:c-o));c+=d)T=u-l,E=d-l,w.push(S(L(l+T%E,0))),u=x(T/E);w.push(S(L(u,0))),o=I(n,y,r==i),n=0,++r}++n,++t}return w.join("")}if(l={version:"1.4.1",ucs2:{decode:j,encode:A},decode:F,encode:R,toASCII:function(e){return D(e,(function(e){return T.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return D(e,(function(e){return E.test(e)?F(e.slice(4).toLowerCase()):e}))}},"object"==i(n(71))&&n(71))void 0===(a=function(){return l}.call(t,n,t,e))||(e.exports=a);else if(s&&u)if(e.exports==s)u.exports=l;else for(f in l)l.hasOwnProperty(f)&&(s[f]=l[f]);else o.punycode=l}(void 0)},o=[],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(21)(e),n(41))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeWhitespace=function(e){return e.replace(n," ")},e.invalidCharacters=void 0;var t=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029"," "," "]);e.invalidCharacters=t;var n=new RegExp("["+t.join("")+"]","g")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e){var r,i,o;i=[],r=function(){"use strict";function a(e){return(a="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})(e)}!function(s){"object"==a(t)&&"object"==a(e)?s(n(6)):(i=[n(6)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}((function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos;function i(e){var t=e.search(n);return-1==t?0:t}function o(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=1/0,i=this.listSelections(),o=null,a=i.length-1;a>=0;a--){var s=i[a].from(),u=i[a].to();s.line>=n||(u.line>=n&&(u=r(n,0)),n=s.line,null==o?this.uncomment(s,u,e)?o="un":(this.lineComment(s,u,e),o="line"):"un"==o?this.uncomment(s,u,e):this.lineComment(s,u,e))}})),e.defineExtension("lineComment",(function(e,a,s){s||(s=t);var u=this,c=o(u,e),l=u.getLine(e.line);if(null!=l&&(f=e,p=l,!/\bstring\b/.test(u.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(p))){var f,p,d=s.lineComment||c.lineComment;if(d){var h=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,v=s.commentBlankLines||e.line==a.line;u.operation((function(){if(s.indent){for(var t=null,o=e.line;o<h;++o){var a=(c=u.getLine(o)).slice(0,i(c));(null==t||t.length>a.length)&&(t=a)}for(o=e.line;o<h;++o){var c=u.getLine(o),l=t.length;(v||n.test(c))&&(c.slice(0,l)!=t&&(l=i(c)),u.replaceRange(t+d+m,r(o,0),r(o,l)))}}else for(o=e.line;o<h;++o)(v||n.test(u.getLine(o)))&&u.replaceRange(d+m,r(o,0))}))}else(s.blockCommentStart||c.blockCommentStart)&&(s.fullLines=!0,u.blockComment(e,a,s))}})),e.defineExtension("blockComment",(function(e,i,a){a||(a=t);var s=this,u=o(s,e),c=a.blockCommentStart||u.blockCommentStart,l=a.blockCommentEnd||u.blockCommentEnd;if(c&&l){if(!/\bcomment\b/.test(s.getTokenTypeAt(r(e.line,0)))){var f=Math.min(i.line,s.lastLine());f!=e.line&&0==i.ch&&n.test(s.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(p+l,r(f)),s.replaceRange(c+p,r(e.line,0));var o=a.blockCommentLead||u.blockCommentLead;if(null!=o)for(var d=e.line+1;d<=f;++d)(d!=f||t)&&s.replaceRange(o+p,r(d,0))}else s.replaceRange(l,i),s.replaceRange(c,e)}))}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&s.lineComment(e,i,a)})),e.defineExtension("uncomment",(function(e,i,a){a||(a=t);var s,u=this,c=o(u,e),l=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,u.lastLine()),f=Math.min(e.line,l),p=a.lineComment||c.lineComment,d=[],h=null==a.padding?" ":a.padding;e:if(p){for(var m=f;m<=l;++m){var v=u.getLine(m),y=v.indexOf(p);if(y>-1&&!/comment/.test(u.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(v))break e;if(y>-1&&n.test(v.slice(0,y)))break e;d.push(v)}if(u.operation((function(){for(var e=f;e<=l;++e){var t=d[e-f],n=t.indexOf(p),i=n+p.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,u.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var g=a.blockCommentStart||c.blockCommentStart,b=a.blockCommentEnd||c.blockCommentEnd;if(!g||!b)return!1;var O=a.blockCommentLead||c.blockCommentLead,E=u.getLine(f),T=E.indexOf(g);if(-1==T)return!1;var w=l==f?E:u.getLine(l),_=w.indexOf(b,l==f?T+g.length:0),k=r(f,T+1),x=r(l,_+1);if(-1==_||!/comment/.test(u.getTokenTypeAt(k))||!/comment/.test(u.getTokenTypeAt(x))||u.getRange(k,x,"\n").indexOf(b)>-1)return!1;var S=E.lastIndexOf(g,e.ch),C=-1==S?-1:E.slice(0,e.ch).indexOf(b,S+g.length);if(-1!=S&&-1!=C&&C+b.length!=e.ch)return!1;C=w.indexOf(b,i.ch);var N=w.slice(i.ch).lastIndexOf(g,C-i.ch);return S=-1==C||-1==N?-1:i.ch+N,(-1==C||-1==S||S==i.ch)&&(u.operation((function(){u.replaceRange("",r(l,_-(h&&w.slice(_-h.length,_)==h?h.length:0)),r(l,_+b.length));var e=T+g.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),u.replaceRange("",r(f,T),r(f,e)),O)for(var t=f+1;t<=l;++t){var i=u.getLine(t),o=i.indexOf(O);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+O.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),u.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}))},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)}).call(this,n(21)(e))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e},r=n(78);t.default.registerHelper("hint","graphql",(function(e,n){var i=n.schema;if(i){var o=e.getCursor(),a=e.getTokenAt(o),s=(0,r.getAutocompleteSuggestions)(i,e.getValue(),o,a),u=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,c={list:s.map((function(e){return{text:e.label,type:i.getType(e.detail),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:o.line,column:u},to:{line:o.line,column:a.end}};return c&&c.list&&c.list.length>0&&(c.from=t.default.Pos(c.from.line,c.from.column),c.to=t.default.Pos(c.to.line,c.to.column),t.default.signal(e,"hasCompletion",e,c,a)),c}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;if("string"==typeof e){var a=new RegExp(e,r?"i":"g");o=a.test(n._sourceText.substr(n._pos,e.length)),i=e}else e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"==typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}var n,r,i;return n=e,(r=[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}])&&t(n.prototype,r),i&&t(n,i),e}();e.default=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(80)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(t.isIgnored)},lexRules:t.LexRules,parseRules:t.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return a(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,c=n.parseRules,f=n.eatWhitespace,p=n.editorConfig;if(t.rule&&0===t.rule.length?s(t):t.needsAdvance&&(t.needsAdvance=!1,u(t,!0)),e.sol()){var d=p&&p.tabSize||2;t.indentLevel=Math.floor(e.indentation()/d)}if(f(e))return"ws";var h=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!h)return e.match(/\S+/)||e.match(/\s/),a(o,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return a(o,t,"Comment"),"comment";var m=i({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(h.value)){var v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]<t.indentLevel&&(t.indentLevel=v[v.length-1])}for(;t.rule;){var y="function"==typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeperator&&(y=y&&y.separator),y){if(y.ofRule&&(y=y.ofRule),"string"==typeof y){a(c,t,y);continue}if(y.match&&y.match(h))return y.update&&y.update(t,h),"Punctuation"===h.kind?u(t,!0):t.needsAdvance=!0,y.style}l(t)}return i(t,m),a(o,t,"Invalid"),"invalidchar"}(t,n,e)}}};var o={Invalid:[],Comment:[]};function a(e,t,i){if(!e[i])throw new TypeError("Unknown rule: "+i);t.prevState=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},t),t.kind=i,t.name=null,t.type=null,t.rule=e[i],t.step=0,t.needsSeperator=!1}function s(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function u(e,t){if(c(e)&&e.rule){var n=e.rule[e.step];if(n.separator){var r=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&r.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)s(e),e.rule&&(c(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function c(e){var t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function l(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)s(e);e.rule&&u(e,!1)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r={"./Range.js":53,"./file.js":55,"./getASTNodeAtPosition.js":52,"./index.js":34,"./validateWithCustomRules.js":54};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=177},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=178},function(e,t,n){var r={"./Range.js":53,"./file.js":55,"./getASTNodeAtPosition.js":52,"./index.js":34,"./validateWithCustomRules.js":54};function i(e){return Promise.resolve().then((function(){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var i=r[e];return n.t(i,7)}))}i.keys=function(){return Object.keys(r)},i.id=179,e.exports=i},function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=180},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(r){var i,o,a;o=[],void 0===(a="function"==typeof(i=function(){"use strict";function e(t){return(e="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)}var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])v(s)||!E(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var a,s={};function u(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(_(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(O(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(w(n))return p(n)}var c,l="",E=!1,k=["{","}"];return h(n)&&(E=!0,k=["[","]"]),_(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),O(n)&&(l=" "+RegExp.prototype.toString.call(n)),T(n)&&(l=" "+Date.prototype.toUTCString.call(n)),w(n)&&(l=" "+p(n)),0!==a.length||E&&0!=n.length?r<0?O(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,E)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,k)):k[0]+l+k[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function O(e){return E(e)&&"[object RegExp]"===k(e)}function E(t){return"object"===e(t)&&null!==t}function T(e){return E(e)&&"[object Date]"===k(e)}function w(e){return E(e)&&("[object Error]"===k(e)||e instanceof Error)}function _(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(a)&&(a=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=g,t.isSymbol=function(t){return"symbol"===e(t)},t.isUndefined=b,t.isRegExp=O,t.isObject=E,t.isDate=T,t.isError=w,t.isFunction=_,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===e(t)||void 0===t},t.isBuffer=n(183);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=n(184),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(a,null,e)}),(function(e){r.nextTick(j,e,a)}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}})?i.apply(t,o):i)||(e.exports=a)}).call(this,n(83))},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){return(t="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})(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13),n(34)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.getOutline=function(e){var i;try{i=(0,t.parse)(e)}catch(e){return null}var a,l,f=(a=e,l=function(e){return{representativeName:e.name,startPosition:(0,n.offsetToPosition)(a,e.loc.start),endPosition:(0,n.offsetToPosition)(a,e.loc.end),children:e.selectionSet||[]}},{Field:function(e){var t=e.alias?[c("plain",e.alias),c("plain",": ")]:[];return t.push(c("plain",e.name)),o({tokenizedText:t},l(e))},OperationDefinition:function(e){return o({tokenizedText:[c("keyword",e.operation),c("whitespace"," "),c("class-name",e.name)]},l(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return function(e,t){for(var n=[],i=0;i<e.length;i++){var o=t(e[i],i);Array.isArray(o)?n.push.apply(n,r(o)):n.push(o)}return n}(e.selections,(function(e){return e.kind===s?e.selectionSet:e}))},Name:function(e){return e.value},FragmentDefinition:function(e){return o({tokenizedText:[c("keyword","fragment"),c("whitespace"," "),c("class-name",e.name)]},l(e))},FragmentSpread:function(e){return o({tokenizedText:[c("plain","..."),c("class-name",e.name)]},l(e))},InlineFragment:function(e){return e.selectionSet}});return{outlineTrees:(0,t.visit)(i,{leave:function(e){return u.hasOwnProperty(e.kind)&&f[e.kind]?f[e.kind](e):null}})}};var s=t.Kind.INLINE_FRAGMENT,u={Field:!0,OperationDefinition:!0,Document:!0,SelectionSet:!0,Name:!0,FragmentDefinition:!0,FragmentSpread:!0,InlineFragment:!0};function c(e,t){return{kind:e,value:t}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13),n(51),n(86),n(85),n(82),n(34)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a){"use strict";function s(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,u,"next",e)}function u(e){s(o,r,i,a,u,"throw",e)}a(void 0)}))}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLLanguageService=void 0;var l=t.Kind.FRAGMENT_DEFINITION,f=t.Kind.OBJECT_TYPE_DEFINITION,p=t.Kind.INTERFACE_TYPE_DEFINITION,d=t.Kind.ENUM_TYPE_DEFINITION,h=t.Kind.UNION_TYPE_DEFINITION,m=t.Kind.SCALAR_TYPE_DEFINITION,v=t.Kind.INPUT_OBJECT_TYPE_DEFINITION,y=t.Kind.SCALAR_TYPE_EXTENSION,g=t.Kind.OBJECT_TYPE_EXTENSION,b=t.Kind.INTERFACE_TYPE_EXTENSION,O=t.Kind.UNION_TYPE_EXTENSION,E=t.Kind.ENUM_TYPE_EXTENSION,T=t.Kind.INPUT_OBJECT_TYPE_EXTENSION,w=t.Kind.DIRECTIVE_DEFINITION,_=t.Kind.FRAGMENT_SPREAD,k=t.Kind.OPERATION_DEFINITION,x=t.Kind.NAMED_TYPE,S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}var s,S,C,N,D,j,A,L,I;return s=e,(S=[{key:"getConfigForURI",value:function(e){var t=this._graphQLConfig.getConfigForFile(e);if(t)return t;throw Error("No config found for uri: ".concat(e))}},{key:"getDiagnostics",value:(I=u(regeneratorRuntime.mark((function e(n,r,o){var s,u,c,l,_,k,x,S,C,N,D,j,A,L,I,F,R;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=!1,u=this.getConfigForURI(r),c=u.schemaPath,l=u.projectName,_=u.extensions,e.prev=3,k=(0,t.parse)(n),c&&r===c||(s=k.definitions.some((function(e){switch(e.kind){case f:case p:case d:case h:case m:case v:case y:case g:case b:case O:case E:case T:case w:return!0}return!1}))),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),x=(0,i.getRange)(e.t0.locations[0],n),e.abrupt("return",[{severity:i.SEVERITY.ERROR,message:e.t0.message,source:"GraphQL: Syntax",range:x}]);case 12:return S=n,e.next=15,this._graphQLCache.getFragmentDefinitions(u);case 15:return C=e.sent,e.next=18,this._graphQLCache.getFragmentDependencies(n,C);case 18:N=e.sent,D=N.reduce((function(e,n){return"".concat(e," ").concat((0,t.print)(n.definition))}),""),S="".concat(S," ").concat(D),j=null,e.prev=22,j=(0,t.parse)(S),e.next=29;break;case 26:return e.prev=26,e.t1=e.catch(22),e.abrupt("return",[]);case 29:if(!(L=_.customValidationRules)){e.next=37;break}if(!(I=(0,a.resolveFile)(L))){e.next=37;break}return e.next=35,(0,a.requireFile)(I);case 35:(F=e.sent)&&(A=F(this._graphQLConfig));case 37:return e.next=39,this._graphQLCache.getSchema(l,s).catch((function(){return null}));case 39:if(R=e.sent){e.next=42;break}return e.abrupt("return",[]);case 42:return e.abrupt("return",(0,i.validateQuery)(j,R,A,o));case 43:case"end":return e.stop()}}),e,this,[[3,8],[22,26]])}))),function(e,t,n){return I.apply(this,arguments)})},{key:"getAutocompleteSuggestions",value:(L=u(regeneratorRuntime.mark((function e(t,r,i){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getConfigForURI(i),e.next=3,this._graphQLCache.getSchema(o.projectName).catch((function(){return null}));case 3:if(!(a=e.sent)){e.next=6;break}return e.abrupt("return",(0,n.getAutocompleteSuggestions)(a,t,r));case 6:return e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return L.apply(this,arguments)})},{key:"getHoverInformation",value:(A=u(regeneratorRuntime.mark((function e(t,n,i){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getConfigForURI(i),e.next=3,this._graphQLCache.getSchema(o.projectName).catch((function(){return null}));case 3:if(!(a=e.sent)){e.next=6;break}return e.abrupt("return",(0,r.getHoverInformation)(a,t,n));case 6:return e.abrupt("return","");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return A.apply(this,arguments)})},{key:"getDefinition",value:(j=u(regeneratorRuntime.mark((function e(n,r,i){var s,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=this.getConfigForURI(i),e.prev=1,u=(0,t.parse)(n),e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(1),e.abrupt("return",null);case 8:if(!(c=(0,a.getASTNodeAtPosition)(n,u,r))){e.next=16;break}e.t1=c.kind,e.next=e.t1===_?13:e.t1===l?14:e.t1===k?14:e.t1===x?15:16;break;case 13:return e.abrupt("return",this._getDefinitionForFragmentSpread(n,u,c,i,s));case 14:return e.abrupt("return",(0,o.getDefinitionQueryResultForDefinitionNode)(i,n,c));case 15:return e.abrupt("return",this._getDefinitionForNamedType(n,u,c,i,s));case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,this,[[1,5]])}))),function(e,t,n){return j.apply(this,arguments)})},{key:"_getDefinitionForNamedType",value:(D=u(regeneratorRuntime.mark((function e(t,n,r,i,a){var s,u,c,l,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._graphQLCache.getObjectTypeDefinitions(a);case 2:return s=e.sent,e.next=5,this._graphQLCache.getObjectTypeDependenciesForAST(n,s);case 5:return u=e.sent,c=n.definitions.filter((function(e){return e.kind===f||e.kind===v||e.kind===d})),l=c.map((function(e){return{filePath:i,content:t,definition:e}})),e.next=11,(0,o.getDefinitionQueryResultForNamedType)(t,r,u.concat(l));case 11:return p=e.sent,e.abrupt("return",p);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return D.apply(this,arguments)})},{key:"_getDefinitionForFragmentSpread",value:(N=u(regeneratorRuntime.mark((function e(t,n,r,i,a){var s,u,c,f,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._graphQLCache.getFragmentDefinitions(a);case 2:return s=e.sent,e.next=5,this._graphQLCache.getFragmentDependenciesForAST(n,s);case 5:return u=e.sent,c=n.definitions.filter((function(e){return e.kind===l})),f=c.map((function(e){return{filePath:i,content:t,definition:e}})),e.next=11,(0,o.getDefinitionQueryResultForFragmentSpread)(t,r,u.concat(f));case 11:return p=e.sent,e.abrupt("return",p);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return N.apply(this,arguments)})}])&&c(s.prototype,S),C&&c(s,C),e}();e.GraphQLLanguageService=S})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e},r=n(78),i=["error","warning","information","hint"],o={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};t.default.registerHelper("lint","graphql",(function(e,n){var a=n.schema;return(0,r.getDiagnostics)(e,a).map((function(e){return{message:e.message,severity:i[e.severity-1],type:o[e.source],from:t.default.Pos(e.range.start.line,e.range.start.character),to:t.default.Pos(e.range.end.line,e.range.end.character)}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=n(13),t=o(n(6)),r=o(n(87)),i=n(89);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(c(e,t,n,t.parentType),f(e,".")),f(e,r,"field-name",n,(0,i.getFieldReference)(t))}function s(e,t,n){f(e,"@"+t.directiveDef.name,"directive-name",n,(0,i.getDirectiveReference)(t))}function u(e,t,n,r){f(e,": "),c(e,t,n,r)}function c(t,n,r,o){o instanceof e.GraphQLNonNull?(c(t,n,r,o.ofType),f(t,"!")):o instanceof e.GraphQLList?(f(t,"["),c(t,n,r,o.ofType),f(t,"]")):f(t,o.name,"type-name",r,(0,i.getTypeReference)(n,o))}function l(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function f(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{onClick:null},i=arguments.length>4?arguments[4]:void 0;if(n){var o,a=r.onClick;a?((o=document.createElement("a")).href="javascript:void 0",o.addEventListener("click",(function(e){a(i,e)}))):o=document.createElement("span"),o.className=n,o.appendChild(document.createTextNode(t)),e.appendChild(o)}else e.appendChild(document.createTextNode(t))}n(90),t.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n=e.state,o=n.kind,p=n.step,d=(0,r.default)(t.schema,e.state);if("Field"===o&&0===p&&d.fieldDef||"AliasedField"===o&&2===p&&d.fieldDef){var h=document.createElement("div");return function(e,t,n){a(e,t,n),u(e,t,n,t.type)}(h,d,t),l(h,t,d.fieldDef),h}if("Directive"===o&&1===p&&d.directiveDef){var m=document.createElement("div");return s(m,d,t),l(m,t,d.directiveDef),m}if("Argument"===o&&0===p&&d.argDef){var v=document.createElement("div");return function(e,t,n){t.directiveDef?s(e,t,n):t.fieldDef&&a(e,t,n);var r=t.argDef.name;f(e,"("),f(e,r,"arg-name",n,(0,i.getArgumentReference)(t)),u(e,t,n,t.inputType),f(e,")")}(v,d,t),l(v,t,d.argDef),v}if("EnumValue"===o&&d.enumValue&&d.enumValue.description){var y=document.createElement("div");return function(e,t,n){var r=t.enumValue.name;c(e,t,n,t.inputType),f(e,"."),f(e,r,"enum-value",n,(0,i.getEnumValueReference)(t))}(y,d,t),l(y,t,d.enumValue),y}if("NamedType"===o&&d.type&&d.type.description){var g=document.createElement("div");return c(g,d,t,d.type),l(g,t,d.type),g}}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=i(n(6)),t=i(n(87)),r=n(89);function i(e){return e&&e.__esModule?e:{default:e}}n(190),e.default.registerHelper("jump","graphql",(function(e,n){if(n.schema&&n.onClick&&e.state){var i=e.state,o=i.kind,a=i.step,s=(0,t.default)(n.schema,i);return"Field"===o&&0===a&&s.fieldDef||"AliasedField"===o&&2===a&&s.fieldDef?(0,r.getFieldReference)(s):"Directive"===o&&1===a&&s.directiveDef?(0,r.getDirectiveReference)(s):"Argument"===o&&0===a&&s.argDef?(0,r.getArgumentReference)(s):"EnumValue"===o&&s.enumValue?(0,r.getEnumValueReference)(s):"NamedType"===o&&s.type?(0,r.getTypeReference)(s):void 0}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e};function r(e,t){var n=t.target||t.srcElement;if("SPAN"===n.nodeName){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&s(e)}}function i(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function o(e,n){if(!e.state.jump.isHoldingModifier&&n.key===(a?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&s(e);var r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},i=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};t.default.on(document,"keyup",(function o(a){a.code===n.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),t.default.off(document,"keyup",o),t.default.off(document,"click",r),e.off("mousedown",i))})),t.default.on(document,"click",r),e.on("mousedown",i)}}t.default.defineOption("jump",!1,(function(e,n,a){if(a&&a!==t.default.Init){var s=e.state.jump.onMouseOver;t.default.off(e.getWrapperElement(),"mouseover",s);var u=e.state.jump.onMouseOut;t.default.off(e.getWrapperElement(),"mouseout",u),t.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(n){var c=e.state.jump={options:n,onMouseOver:r.bind(null,e),onMouseOut:i.bind(null,e),onKeyDown:o.bind(null,e)};t.default.on(e.getWrapperElement(),"mouseover",c.onMouseOver),t.default.on(e.getWrapperElement(),"mouseout",c.onMouseOut),t.default.on(document,"keydown",c.onKeyDown)}}));var a="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function s(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function u(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e},r=n(35);function i(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}t.default.defineMode("graphql",(function(e){var t=(0,r.onlineParser)({eatWhitespace:function(e){return e.eatWhile(r.isIgnored)},lexRules:r.LexRules,parseRules:r.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(72),n(46)],void 0===(o="function"==typeof(r=function(e,t,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.VariableEditor=void 0,t=a(t),r=a(r),i=a(i),o=a(o);var m=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,o=f(r).call(this),t=!o||"object"!==s(o)&&"function"!=typeof o?p(n):o,h(p(t),"_onKeyUp",(function(e,n){var r=n.keyCode;(r>=65&&r<=90||!n.shiftKey&&r>=48&&r<=57||n.shiftKey&&189===r||n.shiftKey&&222===r)&&t.editor.execCommand("autocomplete")})),h(p(t),"_onEdit",(function(){t.ignoreChangeEvent||(t.cachedValue=t.editor.getValue(),t.props.onEdit&&t.props.onEdit(t.cachedValue))})),h(p(t),"_onHasCompletion",(function(e,n){(0,i.default)(e,n,t.props.onHintInformationRender)})),t.cachedValue=e.value||"",t}var a,u,m;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,e),a=r,(u=[{key:"componentDidMount",value:function(){var e=this,t=n(6);n(73),n(39),n(74),n(48),n(47),n(77),n(31),n(49),n(32),n(50),n(193),n(195),n(197),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:c({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},o.default)}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion)}},{key:"componentDidUpdate",value:function(e){var t=n(6);if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},{key:"componentWillUnmount",value:function(){this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null}},{key:"render",value:function(){var e=this;return t.default.createElement("div",{className:"codemirrorWrap",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}])&&l(a.prototype,u),m&&l(a,m),r}(t.default.Component);e.VariableEditor=m,h(m,"propTypes",{variableToType:r.default.object,value:r.default.string,onEdit:r.default.func,readOnly:r.default.bool,onHintInformationRender:r.default.func,onPrettifyQuery:r.default.func,onMergeQuery:r.default.func,onRunQuery:r.default.func,editorTheme:r.default.string})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=o(n(6)),t=n(13),r=o(n(88)),i=o(n(194));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,n,o){var a="Invalid"===n.state.kind?n.state.prevState:n.state,s=a.kind,u=a.step;if("Document"===s&&0===u)return(0,i.default)(e,n,[{text:"{"}]);var c=o.variableToType;if(c){var l=function(e,n){var i={type:null,fields:null};return(0,r.default)(n,(function(n){if("Variable"===n.kind)i.type=e[n.name];else if("ListValue"===n.kind){var r=(0,t.getNullableType)(i.type);i.type=r instanceof t.GraphQLList?r.ofType:null}else if("ObjectValue"===n.kind){var o=(0,t.getNamedType)(i.type);i.fields=o instanceof t.GraphQLInputObjectType?o.getFields():null}else if("ObjectField"===n.kind){var a=n.name&&i.fields?i.fields[n.name]:null;i.type=a&&a.type}})),i}(c,n.state);if("Document"===s||"Variable"===s&&0===u){var f=Object.keys(c);return(0,i.default)(e,n,f.map((function(e){return{text:'"'.concat(e,'": '),type:c[e]}})))}if(("ObjectValue"===s||"ObjectField"===s&&0===u)&&l.fields){var p=Object.keys(l.fields).map((function(e){return l.fields[e]}));return(0,i.default)(e,n,p.map((function(e){return{text:'"'.concat(e.name,'": '),type:e.type,description:e.description}})))}if("StringValue"===s||"NumberValue"===s||"BooleanValue"===s||"NullValue"===s||"ListValue"===s&&1===u||"ObjectField"===s&&2===u||"Variable"===s&&2===u){var d=(0,t.getNamedType)(l.type);if(d instanceof t.GraphQLInputObjectType)return(0,i.default)(e,n,[{text:"{"}]);if(d instanceof t.GraphQLEnumType){var h=d.getValues(),m=Object.keys(h).map((function(e){return h[e]}));return(0,i.default)(e,n,m.map((function(e){return{text:'"'.concat(e.name,'"'),type:d,description:e.description}})))}if(d===t.GraphQLBoolean)return(0,i.default)(e,n,[{text:"true",type:t.GraphQLBoolean,description:"Not false."},{text:"false",type:t.GraphQLBoolean,description:"Not true."}])}}}e.default.registerHelper("hint","graphql-variables",(function(t,n){var r=t.getCursor(),i=t.getTokenAt(r),o=a(r,i,n);return o&&o.list&&o.list.length>0&&(o.from=e.default.Pos(o.from.line,o.from.column),o.to=e.default.Pos(o.to.line,o.to.column),e.default.signal(t,"hasCompletion",t,o,i)),o}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(e,t){var n=e.filter(t);return 0===n.length?e:n}function n(e){return e.toLowerCase().replace(/\W/g,"")}function r(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=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]+s),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]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,i,o){var a=function(t,i){return i?e(e(t.map((function(e){return{proximity:r(n(e.text),i),entry:e}})),(function(e){return e.proximity<=2})),(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.text.length-t.entry.text.length})).map((function(e){return e.entry})):e(t,(function(e){return!e.isDeprecated}))}(o,n(i.string));if(a){var s=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:a,from:{line:t.line,column:s},to:{line:t.line,column:i.end}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var t=o(n(6)),r=n(13),i=o(n(196));function o(e){return e&&e.__esModule?e:{default:e}}function a(t,n,i){var o=[];return i.members.forEach((function(i){var a=i.key.value,c=n[a];c?function e(t,n){if(t instanceof r.GraphQLNonNull)return"Null"===n.kind?[[n,'Type "'.concat(t,'" is non-nullable and cannot be null.')]]:e(t.ofType,n);if("Null"===n.kind)return[];if(t instanceof r.GraphQLList){var i=t.ofType;return"Array"===n.kind?u(n.values,(function(t){return e(i,t)})):e(i,n)}if(t instanceof r.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,'Type "'.concat(t,'" must be an Object.')]];var o=Object.create(null),a=u(n.members,(function(n){var r=n.key.value;o[r]=!0;var i=t.getFields()[r];if(!i)return[[n.key,'Type "'.concat(t,'" does not have a field "').concat(r,'".')]];var a=i?i.type:void 0;return e(a,n.value)}));return Object.keys(t.getFields()).forEach((function(e){o[e]||t.getFields()[e].type instanceof r.GraphQLNonNull&&a.push([n,'Object of type "'.concat(t,'" is missing required field "').concat(e,'".')])})),a}return"Boolean"===t.name&&"Boolean"!==n.kind||"String"===t.name&&"String"!==n.kind||"ID"===t.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===t.name&&"Number"!==n.kind||"Int"===t.name&&("Number"!==n.kind||(0|n.value)!==n.value)?[[n,'Expected value of type "'.concat(t,'".')]]:(t instanceof r.GraphQLEnumType||t instanceof r.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||null==(s=t.parseValue(n.value))||s!=s)?[[n,'Expected value of type "'.concat(t,'".')]]:[];var s}(c,i.value).forEach((function(n){var r=e(n,2),i=r[0],a=r[1];o.push(s(t,i,a))})):o.push(s(t,i.key,'Variable "$'.concat(a,'" does not appear in any GraphQL query.')))})),o}function s(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}t.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var r;try{r=(0,i.default)(e)}catch(e){if(e.stack)throw e;return[s(n,e,e.message)]}var o=t.variableToType;return o?a(n,o,r):[]}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,n,r,i,o,a,s;function u(){var e=r,t=[];if(p("{"),!h("}")){do{t.push(c())}while(h(","));p("}")}return{kind:"Object",start:e,end:o,members:t}}function c(){var e=r,t="String"===s?f():null;p("String"),p(":");var n=l();return{kind:"Member",start:e,end:o,key:t,value:n}}function l(){switch(s){case"[":return function(){var e=r,t=[];if(p("["),!h("]")){do{t.push(l())}while(h(","));p("]")}return{kind:"Array",start:e,end:o,values:t}}();case"{":return u();case"String":case"Number":case"Boolean":case"Null":var e=f();return v(),e}return p("Value")}function f(){return{kind:s,start:r,end:i,value:JSON.parse(e.slice(r,i))}}function p(t){if(s!==t){var n;if("EOF"===s)n="[end of file]";else if(i-r>1)n="`"+e.slice(r,i)+"`";else{var o=e.slice(r).match(/^.+?\b/);n="`"+(o?o[0]:e[r])+"`"}throw d("Expected ".concat(t," but found ").concat(n,"."))}v()}function d(e){return{message:e,start:r,end:i}}function h(e){if(s===e)return v(),!0}function m(){i<n&&(i++,a=i===n?0:e.charCodeAt(i))}function v(){for(o=i;9===a||10===a||13===a||32===a;)m();if(0!==a){switch(r=i,a){case 34:return s="String",function(){for(m();34!==a&&a>31;)if(92===a)switch(m(),a){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:m();break;case 117:m(),y(),y(),y(),y();break;default:throw d("Bad character escape sequence.")}else{if(i===n)throw d("Unterminated string.");m()}if(34!==a)throw d("Unterminated string.");m()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s="Number",45===a&&m(),48===a?m():g(),46===a&&(m(),g()),void(69!==a&&101!==a||(m(),43!==a&&45!==a||m(),g()));case 102:if("false"!==e.slice(r,r+5))break;return i+=4,m(),void(s="Boolean");case 110:if("null"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Null");case 116:if("true"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Boolean")}s=e[r],m()}else s="EOF"}function y(){if(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)return m();throw d("Expected hexadecimal digit.")}function g(){if(a<48||a>57)throw d("Expected decimal digit.");do{m()}while(a>=48&&a<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){e=t,n=t.length,r=i=o=-1,m(),v();var a=u();return p("EOF"),a}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e},r=n(35);function i(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}t.default.defineMode("graphql-variables",(function(e){var t=(0,r.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:o,parseRules:a,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},a={Document:[(0,r.p)("{"),(0,r.list)("Variable",(0,r.opt)((0,r.p)(","))),(0,r.p)("}")],Variable:[s("variable"),(0,r.p)(":"),"Value"],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"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,r.t)("Number","number")],StringValue:[(0,r.t)("String","string")],BooleanValue:[(0,r.t)("Keyword","builtin")],NullValue:[(0,r.t)("Keyword","keyword")],ListValue:[(0,r.p)("["),(0,r.list)("Value",(0,r.opt)((0,r.p)(","))),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.list)("ObjectField",(0,r.opt)((0,r.p)(","))),(0,r.p)("}")],ObjectField:[s("attribute"),(0,r.p)(":"),"Value"]};function s(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(62),n(16),n(46)],void 0===(o="function"==typeof(r=function(e,t,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ResultViewer=void 0,t=a(t),r=a(r),i=a(i),o=a(o);var p,d,h,m=function(e){function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),c(this,l(i).call(this))}var a,s,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(i,e),a=i,(s=[{key:"componentDidMount",value:function(){var e=n(6);n(47),n(48),n(32),n(76),n(31),n(49),n(50),n(199);var i=this.props.ResultsTooltip,a=this.props.ImagePreview;if(i||a){n(90);var s=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,o,u){var c=[];return i&&c.push(t.default.createElement(i,{pos:u})),a&&"function"==typeof a.shouldRender&&a.shouldRender(e)&&c.push(t.default.createElement(a,{token:e})),c.length?(r.default.render(t.default.createElement("div",null,c),s),s):(r.default.unmountComponentAtNode(s),null)}))}this.viewer=e(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:o.default})}},{key:"shouldComponentUpdate",value:function(e){return this.props.value!==e.value}},{key:"componentDidUpdate",value:function(){this.viewer.setValue(this.props.value||"")}},{key:"componentWillUnmount",value:function(){this.viewer=null}},{key:"render",value:function(){var e=this;return t.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.viewer}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}])&&u(a.prototype,s),p&&u(a,p),i}(t.default.Component);e.ResultViewer=m,p=m,d="propTypes",h={value:i.default.string,editorTheme:i.default.string,ResultsTooltip:i.default.any,ImagePreview:i.default.any},d in p?Object.defineProperty(p,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[d]=h})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,t=(e=n(6))&&e.__esModule?e:{default:e},r=n(35);function i(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}t.default.defineMode("graphql-results",(function(e){var t=(0,r.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:o,parseRules:a,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},a={Document:[(0,r.p)("{"),(0,r.list)("Entry",(0,r.p)(",")),(0,r.p)("}")],Entry:[(0,r.t)("String","def"),(0,r.p)(":"),"Value"],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"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,r.t)("Number","number")],StringValue:[(0,r.t)("String","string")],BooleanValue:[(0,r.t)("Keyword","builtin")],NullValue:[(0,r.t)("Keyword","keyword")],ListValue:[(0,r.p)("["),(0,r.list)("Value",(0,r.p)(",")),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.list)("ObjectField",(0,r.p)(",")),(0,r.p)("}")],ObjectField:[(0,r.t)("String","property"),(0,r.p)(":"),"Value"]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(13),n(201),n(202),n(203),n(204),n(205)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,u){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="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})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.DocExplorer=void 0,t=c(t),n=c(n),i=c(i),o=c(o),a=c(a),s=c(s),u=c(u);var y={name:"Schema",title:"Documentation Explorer"},g=function(e){function n(){var e,t,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,r=d(n).call(this),e=!r||"object"!==l(r)&&"function"!=typeof r?h(t):r,v(h(e),"handleNavBackClick",(function(){e.state.navStack.length>1&&e.setState({navStack:e.state.navStack.slice(0,-1)})})),v(h(e),"handleClickTypeOrField",(function(t){e.showDoc(t)})),v(h(e),"handleSearch",(function(t){e.showSearch(t)})),e.state={navStack:[y]},e}var c,g,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(n,e),c=n,(g=[{key:"shouldComponentUpdate",value:function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack}},{key:"render",value:function(){var e,n=this.props.schema,c=this.state.navStack,l=c[c.length-1];e=void 0===n?t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})):n?l.search?t.default.createElement(s.default,{searchValue:l.search,withinType:l.def,schema:n,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):1===c.length?t.default.createElement(o.default,{schema:n,onClickType:this.handleClickTypeOrField}):(0,r.isType)(l.def)?t.default.createElement(u.default,{schema:n,type:l.def,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):t.default.createElement(i.default,{field:l.def,onClickType:this.handleClickTypeOrField}):t.default.createElement("div",{className:"error-container"},"No Schema Available");var f,p=1===c.length||(0,r.isType)(l.def)&&l.def.getFields;return c.length>1&&(f=c[c.length-2].name),t.default.createElement("section",{className:"doc-explorer",key:l.name,"aria-label":"Documentation Explorer"},t.default.createElement("div",{className:"doc-explorer-title-bar"},f&&t.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to ".concat(f)},f),t.default.createElement("div",{className:"doc-explorer-title"},l.title||l.name),t.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),t.default.createElement("div",{className:"doc-explorer-contents"},p&&t.default.createElement(a.default,{value:l.search,placeholder:"Search ".concat(l.name,"..."),onSearch:this.handleSearch}),e))}},{key:"showDoc",value:function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})}},{key:"showDocForReference",value:function(e){"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind?this.showDoc(e.field):"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)}},{key:"showSearch",value:function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{search:e}),this.setState({navStack:t})}},{key:"reset",value:function(){this.setState({navStack:[y]})}}])&&p(c.prototype,g),b&&p(c,b),n}(t.default.Component);e.DocExplorer=g,v(g,"propTypes",{schema:n.default.instanceOf(r.GraphQLSchema)})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(56),n(57),n(36)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=a(t),n=a(n),r=a(r),i=a(i),o=a(o);var p,d,h,m=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),c(this,l(n).apply(this,arguments))}var a,s,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,e),a=n,(s=[{key:"shouldComponentUpdate",value:function(e){return this.props.field!==e.field}},{key:"render",value:function(){var e,n=this,a=this.props.field;return a.args&&a.args.length>0&&(e=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"arguments"),a.args.map((function(e){return t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(r.default,{arg:e,onClickType:n.props.onClickType})),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}))})))),t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:a.description||"No Description"}),a.deprecationReason&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:a.deprecationReason}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"type"),t.default.createElement(o.default,{type:a.type,onClick:this.props.onClickType})),e)}}])&&u(a.prototype,s),p&&u(a,p),n}(t.default.Component);e.default=m,p=m,d="propTypes",h={field:n.default.object,onClickType:n.default.func},d in p?Object.defineProperty(p,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[d]=h})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(36),n(57)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="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})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=o(t),n=o(n),r=o(r),i=o(i);var f,p,d,h=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),u(this,c(n).apply(this,arguments))}var o,a,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e),o=n,(a=[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema}},{key:"render",value:function(){var e=this.props.schema,n=e.getQueryType(),o=e.getMutationType&&e.getMutationType(),a=e.getSubscriptionType&&e.getSubscriptionType();return t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:"A GraphQL schema provides a root type for each kind of operation."}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"root types"),t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"query"),": ",t.default.createElement(r.default,{type:n,onClick:this.props.onClickType})),o&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"mutation"),": ",t.default.createElement(r.default,{type:o,onClick:this.props.onClickType})),a&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"subscription"),": ",t.default.createElement(r.default,{type:a,onClick:this.props.onClickType}))))}}])&&s(o.prototype,a),f&&s(o,f),n}(t.default.Component);e.default=h,f=h,p="propTypes",d={schema:n.default.object,onClickType:n.default.func},p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(92)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(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})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=i(t),n=i(n),r=i(r);var f=function(e){function n(e){var t,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),i=this,a=s(n).call(this,e),t=!a||"object"!==o(a)&&"function"!=typeof a?u(i):a,l(u(t),"handleChange",(function(e){var n=e.target.value;t.setState({value:n}),t.debouncedOnSearch(n)})),l(u(t),"handleClear",(function(){t.setState({value:""}),t.props.onSearch("")})),t.state={value:e.value||""},t.debouncedOnSearch=(0,r.default)(200,t.props.onSearch),t}var i,f,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),i=n,(f=[{key:"render",value:function(){return t.default.createElement("label",{className:"search-box"},t.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),t.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&t.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))}}])&&a(i.prototype,f),p&&a(i,p),n}(t.default.Component);e.default=f,l(f,"propTypes",{value:n.default.string,placeholder:n.default.string,onSearch:n.default.func})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(56),n(36)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="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})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=o(t),n=o(n),r=o(r),i=o(i);var f,p,d,h=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),u(this,c(n).apply(this,arguments))}var o,a,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e),o=n,(a=[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue}},{key:"render",value:function(){var e=this.props.searchValue,n=this.props.withinType,o=this.props.schema,a=this.props.onClickType,s=this.props.onClickField,u=[],c=[],l=[],f=o.getTypeMap(),p=Object.keys(f);n&&(p=p.filter((function(e){return e!==n.name}))).unshift(n.name);var d=!0,h=!1,v=void 0;try{for(var y,g=function(){var o=y.value;if(u.length+c.length+l.length>=100)return"break";var p=f[o];if(n!==p&&m(o,e)&&c.push(t.default.createElement("div",{className:"doc-category-item",key:o},t.default.createElement(i.default,{type:p,onClick:a}))),p.getFields){var d=p.getFields();Object.keys(d).forEach((function(c){var f,h=d[c];if(!m(c,e)){if(!h.args||!h.args.length)return;if(0===(f=h.args.filter((function(t){return m(t.name,e)}))).length)return}var v=t.default.createElement("div",{className:"doc-category-item",key:o+"."+c},n!==p&&[t.default.createElement(i.default,{key:"type",type:p,onClick:a}),"."],t.default.createElement("a",{className:"field-name",onClick:function(e){return s(h,p,e)}},h.name),f&&["(",t.default.createElement("span",{key:"args"},f.map((function(e){return t.default.createElement(r.default,{key:e.name,arg:e,onClickType:a,showDefaultValue:!1})}))),")"]);n===p?u.push(v):l.push(v)}))}},b=p[Symbol.iterator]();!(d=(y=b.next()).done)&&"break"!==g();d=!0);}catch(e){h=!0,v=e}finally{try{d||null==b.return||b.return()}finally{if(h)throw v}}return u.length+c.length+l.length===0?t.default.createElement("span",{className:"doc-alert-text"},"No results found."):n&&c.length+l.length>0?t.default.createElement("div",null,u,t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"other results"),c,l)):t.default.createElement("div",null,u,c,l)}}])&&s(o.prototype,a),f&&s(o,f),n}(t.default.Component);function m(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}e.default=h,f=h,p="propTypes",d={schema:n.default.object,withinType:n.default.object,searchValue:n.default.string,onClickType:n.default.func,onClickField:n.default.func},p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16),n(13),n(56),n(57),n(36),n(91)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="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})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=u(t),n=u(n),i=u(i),o=u(o),a=u(a),s=u(s);var m=function(e){function n(e){var t,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,i=f(n).call(this,e),t=!i||"object"!==c(i)&&"function"!=typeof i?p(r):i,h(p(t),"handleShowDeprecated",(function(){return t.setState({showDeprecated:!0})})),t.state={showDeprecated:!1},t}var i,s,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,e),i=n,(s=[{key:"shouldComponentUpdate",value:function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated}},{key:"render",value:function(){var e,n,i,s,u,c,l,f=this.props.schema,p=this.props.type,d=this.props.onClickType,h=this.props.onClickField;if(p instanceof r.GraphQLUnionType?(e="possible types",n=f.getPossibleTypes(p)):p instanceof r.GraphQLInterfaceType?(e="implementations",n=f.getPossibleTypes(p)):p instanceof r.GraphQLObjectType&&(e="implements",n=p.getInterfaces()),n&&n.length>0&&(i=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},e),n.map((function(e){return t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement(a.default,{type:e,onClick:d}))})))),p.getFields){var m=p.getFields(),g=Object.keys(m).map((function(e){return m[e]}));s=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"fields"),g.filter((function(e){return!e.isDeprecated})).map((function(e){return t.default.createElement(v,{key:e.name,type:p,field:e,onClickType:d,onClickField:h})})));var b=g.filter((function(e){return e.isDeprecated}));b.length>0&&(u=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?b.map((function(e){return t.default.createElement(v,{key:e.name,type:p,field:e,onClickType:d,onClickField:h})})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(p instanceof r.GraphQLEnumType){var O=p.getValues();c=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"values"),O.filter((function(e){return!e.isDeprecated})).map((function(e){return t.default.createElement(y,{key:e.name,value:e})})));var E=O.filter((function(e){return e.isDeprecated}));E.length>0&&(l=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?E.map((function(e){return t.default.createElement(y,{key:e.name,value:e})})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return t.default.createElement("div",null,t.default.createElement(o.default,{className:"doc-type-description",markdown:p.description||"No Description"}),p instanceof r.GraphQLObjectType&&i,s,u,c,l,!(p instanceof r.GraphQLObjectType)&&i)}}])&&l(i.prototype,s),u&&l(i,u),n}(t.default.Component);function v(e){var n=e.type,r=e.field,u=e.onClickType,c=e.onClickField;return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("a",{className:"field-name",onClick:function(e){return c(r,n,e)}},r.name),r.args&&r.args.length>0&&["(",t.default.createElement("span",{key:"args"},r.args.map((function(e){return t.default.createElement(i.default,{key:e.name,arg:e,onClickType:u})}))),")"],": ",t.default.createElement(a.default,{type:r.type,onClick:u}),t.default.createElement(s.default,{field:r}),r.description&&t.default.createElement(o.default,{className:"field-short-description",markdown:r.description}),r.deprecationReason&&t.default.createElement(o.default,{className:"doc-deprecation",markdown:r.deprecationReason}))}function y(e){var n=e.value;return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("div",{className:"enum-value"},n.name),t.default.createElement(o.default,{className:"doc-value-description",markdown:n.description}),n.deprecationReason&&t.default.createElement(o.default,{className:"doc-deprecation",markdown:n.deprecationReason}))}e.default=m,h(m,"propTypes",{schema:n.default.instanceOf(r.GraphQLSchema),type:n.default.object,onClickType:n.default.func,onClickField:n.default.func}),v.propTypes={type:n.default.object,field:n.default.object,onClickType:n.default.func,onClickField:n.default.func},y.propTypes={value:n.default.object}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13),n(14),n(16),n(207),n(208)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryHistory=void 0,n=a(n),r=a(r),i=a(i),o=a(o);var v=20,y=function(e){function r(e){var t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,o=p(r).call(this,e),t=!o||"object"!==s(o)&&"function"!=typeof o?d(n):o,m(d(t),"toggleFavorite",(function(e,n,r,i,o){var a={query:e,variables:n,operationName:r,label:i};t.favoriteStore.contains(a)?o&&(a.favorite=!1,t.favoriteStore.delete(a)):(a.favorite=!0,t.favoriteStore.push(a)),t.setState({queries:[].concat(l(t.historyStore.items),l(t.favoriteStore.items))})})),m(d(t),"editLabel",(function(e,n,r,i,o){var a={query:e,variables:n,operationName:r,label:i};o?t.favoriteStore.edit(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{favorite:o})):t.historyStore.edit(a),t.setState({queries:[].concat(l(t.historyStore.items),l(t.favoriteStore.items))})})),t.historyStore=new i.default("queries",e.storage,v),t.favoriteStore=new i.default("favorites",e.storage,null);var a=t.historyStore.fetchAll(),u=t.favoriteStore.fetchAll(),f=a.concat(u);return t.state={queries:f},t}var a,y,g;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(r,e),a=r,(y=[{key:"componentWillReceiveProps",value:function(e){if(function(e,n,r){if(e.queryID===n.queryID)return!1;try{(0,t.parse)(e.query)}catch(e){return!1}if(e.query.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e.query)===JSON.stringify(r.query)){if(JSON.stringify(e.variables)===JSON.stringify(r.variables))return!1;if(!e.variables&&!r.variables)return!1}return!0}(e,this.props,this.historyStore.fetchRecent())){var n={query:e.query,variables:e.variables,operationName:e.operationName};this.historyStore.push(n);var r=this.historyStore.items,i=this.favoriteStore.items,o=r.concat(i);this.setState({queries:o})}}},{key:"render",value:function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,r){return n.default.createElement(o.default,u({handleEditLabel:e.editLabel,handleToggleFavorite:e.toggleFavorite,key:"".concat(r,":").concat(t.label||t.query),onSelect:e.props.onSelectQuery},t))}));return n.default.createElement("section",{"aria-label":"History"},n.default.createElement("div",{className:"history-title-bar"},n.default.createElement("div",{className:"history-title"},"History"),n.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),n.default.createElement("ul",{className:"history-contents"},t))}}])&&f(a.prototype,y),g&&f(a,g),r}(n.default.Component);e.QueryHistory=y,m(y,"propTypes",{query:r.default.string,variables:r.default.string,operationName:r.default.string,queryID:r.default.number,onSelectQuery:r.default.func,storage:r.default.object})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}var i,o,a;return i=e,(o=[{key:"contains",value:function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName}))}},{key:"edit",value:function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1,e),this.save())}},{key:"delete",value:function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1),this.save())}},{key:"fetchRecent",value:function(){return this.items[this.items.length-1]}},{key:"fetchAll",value:function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}},{key:"push",value:function(e){var r=[].concat(n(this.items),[e]);this.maxSize&&r.length>this.maxSize&&r.shift();for(var i=0;i<5;i++){var o=this.storage.set(this.key,JSON.stringify(t({},this.key,r)));if(o&&o.error){if(!o.isQuotaError||!this.maxSize)return;r.shift()}else this.items=r}}},{key:"save",value:function(){this.storage.set(this.key,JSON.stringify(t({},this.key,this.items)))}},{key:"length",get:function(){return this.items.length}}])&&r(i.prototype,o),a&&r(i,a),e}();e.default=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(14),n(16)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=r(t),n=r(n);var l=function(e){function n(e){var t,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,t=!(o=a(n).call(this,e))||"object"!==i(o)&&"function"!=typeof o?s(r):o,c(s(t),"editField",null),t.state={editable:!1},t}var r,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),r=n,(l=[{key:"render",value:function(){var e=this,n=this.props.label||this.props.operationName||this.props.query.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join(""),r=this.props.favorite?"★":"☆";return t.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?t.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(t){return e.editField=t},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):t.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),t.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),t.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))}},{key:"handleClick",value:function(){this.props.onSelect(this.props.query,this.props.variables,this.props.operationName,this.props.label)}},{key:"handleStarClick",value:function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.operationName,this.props.label,this.props.favorite)}},{key:"handleFieldBlur",value:function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.operationName,e.target.value,this.props.favorite)}},{key:"handleFieldKeyDown",value:function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.operationName,e.target.value,this.props.favorite))}},{key:"handleEditClick",value:function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},(function(){t.editField&&t.editField.focus()}))}}])&&o(r.prototype,l),f&&o(r,f),n}(t.default.Component);e.default=l,c(l,"propTypes",{favorite:n.default.bool,favoriteSize:n.default.number,handleEditLabel:n.default.func,handleToggleFavorite:n.default.func,operationName:n.default.string,onSelect:n.default.func,query:n.default.string,variables:n.default.string,label:n.default.string})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sizes=[]}var n,r,i;return n=e,(r=[{key:"updateSizes",value:function(e){var t=this;e.forEach((function(e,n){var r=e.getClientHeight();n<=t.sizes.length&&r!==t.sizes[n]&&e.getCodeMirror().setSize(),t.sizes[n]=r}))}}])&&t(n.prototype,r),i&&t(n,i),e}();e.default=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storage=t||("undefined"!=typeof window?window.localStorage:null)}var n,r,i;return n=e,(r=[{key:"get",value:function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);return"null"===t||"undefined"===t?(this.storage.removeItem("graphiql:"+e),null):t}return null}},{key:"set",value:function(e,t){var n=!1,r=null;if(this.storage){var i="graphiql:".concat(e);if(t)try{this.storage.setItem(i,t)}catch(e){r=e,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}])&&t(n.prototype,r),i&&t(n,i),e}();e.default=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,n){var r=Object.create(null);return n.definitions.forEach((function(n){if("OperationDefinition"===n.kind){var i=n.variableDefinitions;i&&i.forEach((function(n){var i=n.variable,o=n.type,a=(0,t.typeFromAST)(e,o);a&&(r[i.name.value]=a)}))}})),r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if(r){var i;try{i=(0,t.parse)(r)}catch(e){return}var o=e?n(e,i):null,a=[];return i.definitions.forEach((function(e){"OperationDefinition"===e.kind&&a.push(e)})),{variableToType:o,operations:a}}},e.collectVariables=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(e){return e.name&&e.name.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map((function(e){return e.name&&e.name.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){if(!e.getFields)return[];var n=e.getFields();if(n.id)return["id"];if(n.edges)return["edges"];if(n.node)return["node"];var r=[];return Object.keys(n).forEach((function(e){(0,t.isLeafType)(n[e].type)&&r.push(e)})),r}function r(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.fillLeafs=function(e,i,o){var a,s=[];if(!e)return{insertions:s,result:i};try{a=(0,t.parse)(i)}catch(e){return{insertions:s,result:i}}var u=o||n,c=new t.TypeInfo(e);return(0,t.visit)(a,{leave:function(e){c.leave(e)},enter:function(e){if(c.enter(e),"Field"===e.kind&&!e.selectionSet){var n=function e(n,r){var i=(0,t.getNamedType)(n);if(n&&!(0,t.isLeafType)(n)){var o=r(i);if(Array.isArray(o)&&0!==o.length)return{kind:"SelectionSet",selections:o.map((function(t){var n=i.getFields()[t],o=n?n.type:null;return{kind:"Field",name:{kind:"Name",value:t},selectionSet:e(o,r)}}))}}}(c.getType(),u);if(n){var r=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(i,e.loc.start);s.push({index:e.loc.end,string:" "+(0,t.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:s,result:r(i,s)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLeft=function(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},e.getTop=function(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAst=function(e){var n={};e.definitions.filter((function(e){return e.kind===t.Kind.FRAGMENT_DEFINITION})).forEach((function(e){var i=r({},e);i.kind=t.Kind.INLINE_FRAGMENT,n[e.name.value]=i}));var i=r({},e);return i.definitions=e.definitions.filter((function(e){return e.kind!==t.Kind.FRAGMENT_DEFINITION})).map((function(e){return function e(n,r){var i=r;return i.kind===t.Kind.FRAGMENT_SPREAD&&(i=n[i.name.value]),i.selectionSet&&(i.selectionSet.selections=i.selectionSet.selections.filter((function(e,n,r){return e.kind!==t.Kind.FRAGMENT_SPREAD||n===r.findIndex((function(n){return n.kind===t.Kind.FRAGMENT_SPREAD&&e.name.value===n.name.value}))})).map((function(t){return e(n,t)}))),i}(n,e)})),i}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(13)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"introspectionQuery",{enumerable:!0,get:function(){return t.introspectionQuery}}),e.introspectionQuerySansSubscriptions=e.introspectionQueryName=void 0;var n=(0,t.getOperationAST)((0,t.parse)(t.introspectionQuery)).name.value;e.introspectionQueryName=n;var r="\n query ".concat(n," {\n __schema {\n queryType { name }\n mutationType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n 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 description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n 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");e.introspectionQuerySansSubscriptions=r})?r.apply(t,i):r)||(e.exports=o)}]).default;