parse-dashboard 7.1.0-alpha.5 → 7.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Parse-Dashboard/app.js +15 -8
- package/Parse-Dashboard/public/bundles/183.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/221.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/448.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/584.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/75.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/844.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/862.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/929.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/950.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/login.bundle.js +1 -1
- package/package.json +22 -22
package/Parse-Dashboard/app.js
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
|
|
2
3
|
const express = require('express');
|
|
3
4
|
const path = require('path');
|
|
4
|
-
const packageJson = require('package-json');
|
|
5
5
|
const csrf = require('csurf');
|
|
6
6
|
const Authentication = require('./Authentication.js');
|
|
7
7
|
const fs = require('fs');
|
|
8
8
|
const ConfigKeyCache = require('./configKeyCache.js');
|
|
9
|
-
|
|
10
9
|
const currentVersionFeatures = require('../package.json').parseDashboardFeatures;
|
|
11
10
|
|
|
12
11
|
let newFeaturesInLatestVersion = [];
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Gets the new features in the latest version of Parse Dashboard.
|
|
15
|
+
*/
|
|
16
|
+
async function getNewFeaturesInLatestVersion() {
|
|
17
|
+
// Get latest version
|
|
18
|
+
const packageJson = (await import('package-json')).default;
|
|
19
|
+
const latestPackage = await packageJson('parse-dashboard', { version: 'latest', fullMetadata: true });
|
|
20
|
+
|
|
21
|
+
try {
|
|
15
22
|
if (latestPackage.parseDashboardFeatures instanceof Array) {
|
|
16
23
|
newFeaturesInLatestVersion = latestPackage.parseDashboardFeatures.filter(feature => {
|
|
17
24
|
return currentVersionFeatures.indexOf(feature) === -1;
|
|
18
25
|
});
|
|
19
26
|
}
|
|
20
|
-
}
|
|
21
|
-
.catch(() => {
|
|
22
|
-
// In case of a failure make sure the final value is an empty array
|
|
27
|
+
} catch {
|
|
23
28
|
newFeaturesInLatestVersion = [];
|
|
24
|
-
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
getNewFeaturesInLatestVersion()
|
|
25
32
|
|
|
26
33
|
function getMount(mountPath) {
|
|
27
34
|
mountPath = mountPath || '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[183],{30183:(e,t,n)=>{n.d(t,{S:()=>mt,T:()=>Nt,a:()=>Tt});var i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});const r=10,o=2;function a(e){return l(e,[])}function l(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return u(e,t);default:return String(e)}}function u(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(c(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:l(t,n)}else if(Array.isArray(e))return d(e,n);return p(e,n)}function c(e){return"function"==typeof e.toJSON}function p(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>o?"["+f(e)+"]":"{ "+n.map((([e,n])=>e+": "+l(n,t))).join(", ")+" }"}function d(e,t){if(0===e.length)return"[]";if(t.length>o)return"[Array]";const n=Math.min(r,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(l(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}function f(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function v(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let h;var y;function m(e){return 9===e||32===e}function N(e){return e>=48&&e<=57}function T(e){return e>=97&&e<=122||e>=65&&e<=90}function I(e){return T(e)||95===e}function E(e){return T(e)||N(e)||95===e}function g(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every((e=>0===e.length||m(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!s||e.length>70||u||r||o);let p="";const d=s&&m(e.charCodeAt(0));return(c&&!d||r)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}function b(e){return`"${e.replace(O,S)}"`}s(a,"inspect"),s(l,"formatValue"),s(u,"formatObjectValue"),s(c,"isJSONable"),s(p,"formatObject"),s(d,"formatArray"),s(f,"getObjectTag"),s(v,"invariant"),(y=h||(h={})).QUERY="QUERY",y.MUTATION="MUTATION",y.SUBSCRIPTION="SUBSCRIPTION",y.FIELD="FIELD",y.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",y.FRAGMENT_SPREAD="FRAGMENT_SPREAD",y.INLINE_FRAGMENT="INLINE_FRAGMENT",y.VARIABLE_DEFINITION="VARIABLE_DEFINITION",y.SCHEMA="SCHEMA",y.SCALAR="SCALAR",y.OBJECT="OBJECT",y.FIELD_DEFINITION="FIELD_DEFINITION",y.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",y.INTERFACE="INTERFACE",y.UNION="UNION",y.ENUM="ENUM",y.ENUM_VALUE="ENUM_VALUE",y.INPUT_OBJECT="INPUT_OBJECT",y.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",s(m,"isWhiteSpace"),s(N,"isDigit$1"),s(T,"isLetter"),s(I,"isNameStart"),s(E,"isNameContinue"),s(g,"printBlockString"),s(b,"printString");const O=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function S(e){return A[e.charCodeAt(0)]}s(S,"escapedReplacer");const A=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function L(e,t){if(!Boolean(e))throw new Error(t)}s(L,"devAssert");const _={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:["description","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","interfaces","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","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w=new Set(Object.keys(_));function D(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&w.has(t)}let F;var x;let R;var j;s(D,"isNode"),(x=F||(F={})).QUERY="query",x.MUTATION="mutation",x.SUBSCRIPTION="subscription",(j=R||(R={})).NAME="Name",j.DOCUMENT="Document",j.OPERATION_DEFINITION="OperationDefinition",j.VARIABLE_DEFINITION="VariableDefinition",j.SELECTION_SET="SelectionSet",j.FIELD="Field",j.ARGUMENT="Argument",j.FRAGMENT_SPREAD="FragmentSpread",j.INLINE_FRAGMENT="InlineFragment",j.FRAGMENT_DEFINITION="FragmentDefinition",j.VARIABLE="Variable",j.INT="IntValue",j.FLOAT="FloatValue",j.STRING="StringValue",j.BOOLEAN="BooleanValue",j.NULL="NullValue",j.ENUM="EnumValue",j.LIST="ListValue",j.OBJECT="ObjectValue",j.OBJECT_FIELD="ObjectField",j.DIRECTIVE="Directive",j.NAMED_TYPE="NamedType",j.LIST_TYPE="ListType",j.NON_NULL_TYPE="NonNullType",j.SCHEMA_DEFINITION="SchemaDefinition",j.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",j.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",j.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",j.FIELD_DEFINITION="FieldDefinition",j.INPUT_VALUE_DEFINITION="InputValueDefinition",j.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",j.UNION_TYPE_DEFINITION="UnionTypeDefinition",j.ENUM_TYPE_DEFINITION="EnumTypeDefinition",j.ENUM_VALUE_DEFINITION="EnumValueDefinition",j.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",j.DIRECTIVE_DEFINITION="DirectiveDefinition",j.SCHEMA_EXTENSION="SchemaExtension",j.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",j.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",j.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",j.UNION_TYPE_EXTENSION="UnionTypeExtension",j.ENUM_TYPE_EXTENSION="EnumTypeExtension",j.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const U=Object.freeze({});function V(e,t,n=_){const i=new Map;for(const e of Object.values(R))i.set(e,C(t,e));let s,r,o,l=Array.isArray(e),u=[e],c=-1,p=[],d=e;const f=[],v=[];do{c++;const e=c===u.length,N=e&&0!==p.length;if(e){if(r=0===v.length?void 0:f[f.length-1],d=o,o=v.pop(),N)if(l){d=d.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}c=s.index,u=s.keys,p=s.edits,l=s.inArray,s=s.prev}else if(o){if(r=l?c:u[c],d=o[r],null==d)continue;f.push(r)}let T;if(!Array.isArray(d)){var h,y;D(d)||L(!1,`Invalid AST Node: ${a(d)}.`);const n=e?null===(h=i.get(d.kind))||void 0===h?void 0:h.leave:null===(y=i.get(d.kind))||void 0===y?void 0:y.enter;if(T=null==n?void 0:n.call(t,d,r,o,f,v),T===U)break;if(!1===T){if(!e){f.pop();continue}}else if(void 0!==T&&(p.push([r,T]),!e)){if(!D(T)){f.pop();continue}d=T}}var m;void 0===T&&N&&p.push([r,d]),e?f.pop():(s={inArray:l,index:c,keys:u,edits:p,prev:s},l=Array.isArray(d),u=l?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,p=[],o&&v.push(o),o=d)}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function C(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $(e){return V(e,M)}s(V,"visit"),s(C,"getEnterLeaveForKind"),s($,"print");const M={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>k(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=G("(",k(e.variableDefinitions,", "),")"),n=k([e.operation,k([e.name,t]),k(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+G(" = ",n)+G(" ",k(i," "))},SelectionSet:{leave:({selections:e})=>B(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:s}){const r=G("",e,": ")+t;let o=r+G("(",k(n,", "),")");return o.length>80&&(o=r+G("(\n",P(k(n,"\n")),"\n)")),k([o,k(i," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+G(" ",k(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>k(["...",G("on ",e),k(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:s})=>`fragment ${e}${G("(",k(n,", "),")")} on ${t} ${G("",k(i," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?g(e):b(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+k(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+k(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+G("(",k(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>G("",e,"\n")+k(["schema",k(t," "),B(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>G("",e,"\n")+k(["scalar",t,k(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>G("",e,"\n")+k(["type",t,G("implements ",k(n," & ")),k(i," "),B(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:s})=>G("",e,"\n")+t+(J(n)?G("(\n",P(k(n,"\n")),"\n)"):G("(",k(n,", "),")"))+": "+i+G(" ",k(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:s})=>G("",e,"\n")+k([t+": "+n,G("= ",i),k(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>G("",e,"\n")+k(["interface",t,G("implements ",k(n," & ")),k(i," "),B(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>G("",e,"\n")+k(["union",t,k(n," "),G("= ",k(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>G("",e,"\n")+k(["enum",t,k(n," "),B(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>G("",e,"\n")+k([t,k(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>G("",e,"\n")+k(["input",t,k(n," "),B(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:s})=>G("",e,"\n")+"directive @"+t+(J(n)?G("(\n",P(k(n,"\n")),"\n)"):G("(",k(n,", "),")"))+(i?" repeatable":"")+" on "+k(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>k(["extend schema",k(e," "),B(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>k(["extend scalar",e,k(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>k(["extend type",e,G("implements ",k(t," & ")),k(n," "),B(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>k(["extend interface",e,G("implements ",k(t," & ")),k(n," "),B(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>k(["extend union",e,k(t," "),G("= ",k(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>k(["extend enum",e,k(t," "),B(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>k(["extend input",e,k(t," "),B(n)]," ")}};function k(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function B(e){return G("{\n",P(k(e,"\n")),"\n}")}function G(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function P(e){return G(" ",e.replace(/\n/g,"\n "))}function J(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Q(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function Y(e){return"object"==typeof e&&null!==e}s(k,"join"),s(B,"block"),s(G,"wrap"),s(P,"indent"),s(J,"hasMultilineItems"),s(Q,"isIterableObject"),s(Y,"isObjectLike");const z=5;function q(e,t){const[n,i]=t?[e,t]:[void 0,e];let s=" Did you mean ";n&&(s+=n+" ");const r=i.map((e=>`"${e}"`));switch(r.length){case 0:return"";case 1:return s+r[0]+"?";case 2:return s+r[0]+" or "+r[1]+"?"}const o=r.slice(0,z),a=o.pop();return s+o.join(", ")+", or "+a+"?"}function H(e){return e}s(q,"didYouMean"),s(H,"identityFunc");const X=s((function(e,t){return e instanceof t}),"instanceOf");function W(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function K(e,t,n){const i=Object.create(null);for(const s of e)i[t(s)]=n(s);return i}function Z(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function ee(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let s=e.charCodeAt(n),r=t.charCodeAt(i);if(ie(s)&&ie(r)){let o=0;do{++n,o=10*o+s-te,s=e.charCodeAt(n)}while(ie(s)&&o>0);let a=0;do{++i,a=10*a+r-te,r=t.charCodeAt(i)}while(ie(r)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(s<r)return-1;if(s>r)return 1;++n,++i}}return e.length-t.length}s(W,"keyMap"),s(K,"keyValMap"),s(Z,"mapValue"),s(ee,"naturalCompare");const te=48,ne=57;function ie(e){return!isNaN(e)&&te<=e&&e<=ne}function se(e,t){const n=Object.create(null),i=new re(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:ee(e,t)}))}s(ie,"isDigit"),s(se,"suggestionList");class re{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=oe(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=oe(n),s=this._inputArray;if(i.length<s.length){const e=i;i=s,s=e}const r=i.length,o=s.length;if(r-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=r;e++){const n=a[(e-1)%3],r=a[e%3];let l=r[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===s[t-1]?0:1;let u=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===s[t-2]&&i[e-2]===s[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),r[t]=u}if(l>t)return}const l=a[r%3][o];return l<=t?l:void 0}}function oe(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function ae(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}s(re,"LexicalDistance"),s(oe,"stringToArray"),s(ae,"toObjMap");const le=/\r\n|[\n\r]/g;function ue(e,t){let n=0,i=1;for(const s of e.body.matchAll(le)){if("number"==typeof s.index||v(!1),s.index>=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function ce(e){return pe(e.source,ue(e.source,e.start))}function pe(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,o=t.line+r,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),p=c[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+de([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+de([[o-1+" |",c[s-1]],[`${o} |`,p],["|","^".padStart(l)],[`${o+1} |`,c[s+1]]])}function de(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function fe(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}s(ue,"getLocation"),s(ce,"printLocation"),s(pe,"printSourceLocation"),s(de,"printPrefixedLines"),s(fe,"toNormalizedOptions");class ve extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:a,path:l,originalError:u,extensions:c}=fe(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=he(Array.isArray(r)?r:r?[r]:void 0);const p=he(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==p?void 0:p.map((e=>e.start)),this.locations=a&&o?a.map((e=>ue(o,e))):null==p?void 0:p.map((e=>ue(e.source,e.start)));const d=Y(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=null!=c?c:d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ve):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+ce(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+pe(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function he(e){return void 0===e||0===e.length?void 0:e}function ye(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map((e=>ye(e,t)));case R.OBJECT:return K(e.fields,(e=>e.name.value),(e=>ye(e.value,t)));case R.VARIABLE:return null==t?void 0:t[e.name.value]}}function me(e){if(null!=e||L(!1,"Must provide name."),"string"==typeof e||L(!1,"Expected name to be a string."),0===e.length)throw new ve("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!E(e.charCodeAt(t)))throw new ve(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!I(e.charCodeAt(0)))throw new ve(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ne(e){if("true"===e||"false"===e||"null"===e)throw new ve(`Enum values cannot be named: ${e}`);return me(e)}function Te(e){return Ie(e)||Ee(e)||ge(e)||be(e)||Oe(e)||Se(e)||Ae(e)||Le(e)}function Ie(e){return X(e,Ue)}function Ee(e){return X(e,Ve)}function ge(e){return X(e,Pe)}function be(e){return X(e,Je)}function Oe(e){return X(e,Ye)}function Se(e){return X(e,He)}function Ae(e){return X(e,De)}function Le(e){return X(e,Fe)}function _e(e){return Ie(e)||Oe(e)}function we(e){return ge(e)||be(e)}s(ve,"GraphQLError"),s(he,"undefinedIfEmpty"),s(ye,"valueFromASTUntyped"),s(me,"assertName"),s(Ne,"assertEnumValueName"),s(Te,"isType"),s(Ie,"isScalarType"),s(Ee,"isObjectType"),s(ge,"isInterfaceType"),s(be,"isUnionType"),s(Oe,"isEnumType"),s(Se,"isInputObjectType"),s(Ae,"isListType"),s(Le,"isNonNullType"),s(_e,"isLeafType"),s(we,"isAbstractType");class De{constructor(e){Te(e)||L(!1,`Expected ${a(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}s(De,"GraphQLList");class Fe{constructor(e){xe(e)||L(!1,`Expected ${a(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function xe(e){return Te(e)&&!Le(e)}function Re(e){return"function"==typeof e?e():e}function je(e){return"function"==typeof e?e():e}s(Fe,"GraphQLNonNull"),s(xe,"isNullableType"),s(Re,"resolveReadonlyArrayThunk"),s(je,"resolveObjMapThunk");class Ue{constructor(e){var t,n,i,s;const r=null!==(t=e.parseValue)&&void 0!==t?t:H;this.name=me(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:H,this.parseValue=r,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>r(ye(e,t)),this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||L(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${a(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||L(!1,`${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||L(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Ue,"GraphQLScalarType");class Ve{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$e(e),this._interfaces=()=>Ce(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||L(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${a(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Be(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ce(e){var t;const n=Re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||L(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $e(e){const t=je(e.fields);return ke(t)||L(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Z(t,((t,n)=>{var i;ke(t)||L(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||L(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${a(t.resolve)}.`);const s=null!==(i=t.args)&&void 0!==i?i:{};return ke(s)||L(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:me(n),description:t.description,type:t.type,args:Me(s),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode}}))}function Me(e){return Object.entries(e).map((([e,t])=>({name:me(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode})))}function ke(e){return Y(e)&&!Array.isArray(e)}function Be(e){return Z(e,(e=>({description:e.description,type:e.type,args:Ge(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Ge(e){return K(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}s(Ve,"GraphQLObjectType"),s(Ce,"defineInterfaces"),s($e,"defineFieldMap"),s(Me,"defineArguments"),s(ke,"isPlainObj"),s(Be,"fieldsToFieldsConfig"),s(Ge,"argsToArgsConfig");class Pe{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$e.bind(void 0,e),this._interfaces=Ce.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||L(!1,`${this.name} must provide "resolveType" as a function, but got: ${a(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Be(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Pe,"GraphQLInterfaceType");class Je{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Qe.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||L(!1,`${this.name} must provide "resolveType" as a function, but got: ${a(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Qe(e){const t=Re(e.types);return Array.isArray(t)||L(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}s(Je,"GraphQLUnionType"),s(Qe,"defineTypes");class Ye{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=qe(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=W(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new ve(`Enum "${this.name}" cannot represent value: ${a(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=a(e);throw new ve(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ze(this,t))}const t=this.getValue(e);if(null==t)throw new ve(`Value "${e}" does not exist in "${this.name}" enum.`+ze(this,e));return t.value}parseLiteral(e,t){if(e.kind!==R.ENUM){const t=$(e);throw new ve(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ze(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=$(e);throw new ve(`Value "${t}" does not exist in "${this.name}" enum.`+ze(this,t),{nodes:e})}return n.value}toConfig(){const e=K(this.getValues(),(e=>e.name),(e=>({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}}toString(){return this.name}toJSON(){return this.toString()}}function ze(e,t){return q("the enum value",se(t,e.getValues().map((e=>e.name))))}function qe(e,t){return ke(t)||L(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(ke(n)||L(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${a(n)}.`),{name:Ne(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:ae(n.extensions),astNode:n.astNode})))}s(Ye,"GraphQLEnumType"),s(ze,"didYouMeanEnumValue"),s(qe,"defineEnumValues");class He{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Xe.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Z(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Xe(e){const t=je(e.fields);return ke(t)||L(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Z(t,((t,n)=>(!("resolve"in t)||L(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:me(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode})))}s(He,"GraphQLInputObjectType"),s(Xe,"defineInputFieldMap");const We=2147483647,Ke=-2147483648,Ze=new Ue({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(e){const t=st(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new ve(`Int cannot represent non-integer value: ${a(t)}`);if(n>We||n<Ke)throw new ve("Int cannot represent non 32-bit signed integer value: "+a(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new ve(`Int cannot represent non-integer value: ${a(e)}`);if(e>We||e<Ke)throw new ve(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==R.INT)throw new ve(`Int cannot represent non-integer value: ${$(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>We||t<Ke)throw new ve(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),et=new Ue({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(e){const t=st(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new ve(`Float cannot represent non numeric value: ${a(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new ve(`Float cannot represent non numeric value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.FLOAT&&e.kind!==R.INT)throw new ve(`Float cannot represent non numeric value: ${$(e)}`,e);return parseFloat(e.value)}}),tt=new Ue({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(e){const t=st(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new ve(`String cannot represent value: ${a(e)}`)},parseValue(e){if("string"!=typeof e)throw new ve(`String cannot represent a non string value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.STRING)throw new ve(`String cannot represent a non string value: ${$(e)}`,{nodes:e});return e.value}}),nt=new Ue({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=st(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new ve(`Boolean cannot represent a non boolean value: ${a(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new ve(`Boolean cannot represent a non boolean value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.BOOLEAN)throw new ve(`Boolean cannot represent a non boolean value: ${$(e)}`,{nodes:e});return e.value}}),it=new Ue({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(e){const t=st(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new ve(`ID cannot represent value: ${a(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new ve(`ID cannot represent value: ${a(e)}`)},parseLiteral(e){if(e.kind!==R.STRING&&e.kind!==R.INT)throw new ve("ID cannot represent a non-string and non-integer value: "+$(e),{nodes:e});return e.value}});function st(e){if(Y(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!Y(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function rt(e,t){if(Le(t)){const n=rt(e,t.ofType);return(null==n?void 0:n.kind)===R.NULL?null:n}if(null===e)return{kind:R.NULL};if(void 0===e)return null;if(Ae(t)){const n=t.ofType;if(Q(e)){const t=[];for(const i of e){const e=rt(i,n);null!=e&&t.push(e)}return{kind:R.LIST,values:t}}return rt(e,n)}if(Se(t)){if(!Y(e))return null;const n=[];for(const i of Object.values(t.getFields())){const t=rt(e[i.name],i.type);t&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:i.name},value:t})}return{kind:R.OBJECT,fields:n}}if(_e(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:R.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return ot.test(e)?{kind:R.INT,value:e}:{kind:R.FLOAT,value:e}}if("string"==typeof n)return Oe(t)?{kind:R.ENUM,value:n}:t===it&&ot.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${a(n)}.`)}v(!1,"Unexpected input type: "+a(t))}Object.freeze([tt,Ze,et,nt,it]),s(st,"serializeObject"),s(rt,"astFromValue");const ot=/^-?(?:0|[1-9][0-9]*)$/,at=new Ve({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:()=>({description:{type:tt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Fe(new De(new Fe(ct))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Fe(ct),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ct,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ct,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Fe(new De(new Fe(lt))),resolve:e=>e.getDirectives()}})}),lt=new Ve({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:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},isRepeatable:{type:new Fe(nt),resolve:e=>e.isRepeatable},locations:{type:new Fe(new De(new Fe(ut))),resolve:e=>e.locations},args:{type:new Fe(new De(new Fe(dt))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),ut=new Ye({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:h.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:h.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:h.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:h.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:h.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:h.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:h.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:h.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:h.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:h.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:h.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:h.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:h.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:h.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:h.UNION,description:"Location adjacent to a union definition."},ENUM:{value:h.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:h.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:h.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:h.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ct=new Ve({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, description and optional `specifiedByURL`, 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:()=>({kind:{type:new Fe(yt),resolve:e=>Ie(e)?vt.SCALAR:Ee(e)?vt.OBJECT:ge(e)?vt.INTERFACE:be(e)?vt.UNION:Oe(e)?vt.ENUM:Se(e)?vt.INPUT_OBJECT:Ae(e)?vt.LIST:Le(e)?vt.NON_NULL:void v(!1,`Unexpected type: "${a(e)}".`)},name:{type:tt,resolve:e=>"name"in e?e.name:void 0},description:{type:tt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new De(new Fe(pt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ee(e)||ge(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new De(new Fe(ct)),resolve(e){if(Ee(e)||ge(e))return e.getInterfaces()}},possibleTypes:{type:new De(new Fe(ct)),resolve(e,t,n,{schema:i}){if(we(e))return i.getPossibleTypes(e)}},enumValues:{type:new De(new Fe(ft)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Oe(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new De(new Fe(dt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Se(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:ct,resolve:e=>"ofType"in e?e.ofType:void 0}})}),pt=new Ve({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:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},args:{type:new Fe(new De(new Fe(dt))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Fe(ct),resolve:e=>e.type},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})}),dt=new Ve({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:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},type:{type:new Fe(ct),resolve:e=>e.type},defaultValue:{type:tt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=rt(n,t);return i?$(i):null}},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})}),ft=new Ve({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:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})});let vt;var ht;(ht=vt||(vt={})).SCALAR="SCALAR",ht.OBJECT="OBJECT",ht.INTERFACE="INTERFACE",ht.UNION="UNION",ht.ENUM="ENUM",ht.INPUT_OBJECT="INPUT_OBJECT",ht.LIST="LIST",ht.NON_NULL="NON_NULL";const yt=new Ye({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:vt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:vt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:vt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:vt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:vt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:vt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:vt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:vt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),mt={name:"__schema",type:new Fe(at),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nt={name:"__type",type:ct,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Fe(tt),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Tt={name:"__typename",type:new Fe(tt),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Object.freeze([at,lt,ut,ct,pt,dt,ft,yt])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[183],{30183:(e,t,n)=>{n.d(t,{S:()=>vt,T:()=>ht,a:()=>yt});var i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});function r(e){return o(e,[])}function o(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return a(e,t);default:return String(e)}}function a(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(l(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:o(t,n)}else if(Array.isArray(e))return c(e,n);return u(e,n)}function l(e){return"function"==typeof e.toJSON}function u(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+p(e)+"]":"{ "+n.map((([e,n])=>e+": "+o(n,t))).join(", ")+" }"}function c(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(o(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}function p(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function d(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let f;var v;function h(e){return 9===e||32===e}function y(e){return e>=48&&e<=57}function m(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return m(e)||95===e}function T(e){return m(e)||y(e)||95===e}function I(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every((e=>0===e.length||h(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!s||e.length>70||u||r||o);let p="";const d=s&&h(e.charCodeAt(0));return(c&&!d||r)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}function E(e){return`"${e.replace(g,b)}"`}s(r,"inspect"),s(o,"formatValue"),s(a,"formatObjectValue"),s(l,"isJSONable"),s(u,"formatObject"),s(c,"formatArray"),s(p,"getObjectTag"),s(d,"invariant"),(v=f||(f={})).QUERY="QUERY",v.MUTATION="MUTATION",v.SUBSCRIPTION="SUBSCRIPTION",v.FIELD="FIELD",v.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",v.FRAGMENT_SPREAD="FRAGMENT_SPREAD",v.INLINE_FRAGMENT="INLINE_FRAGMENT",v.VARIABLE_DEFINITION="VARIABLE_DEFINITION",v.SCHEMA="SCHEMA",v.SCALAR="SCALAR",v.OBJECT="OBJECT",v.FIELD_DEFINITION="FIELD_DEFINITION",v.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",v.INTERFACE="INTERFACE",v.UNION="UNION",v.ENUM="ENUM",v.ENUM_VALUE="ENUM_VALUE",v.INPUT_OBJECT="INPUT_OBJECT",v.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",s(h,"isWhiteSpace"),s(y,"isDigit$1"),s(m,"isLetter"),s(N,"isNameStart"),s(T,"isNameContinue"),s(I,"printBlockString"),s(E,"printString");const g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function b(e){return O[e.charCodeAt(0)]}s(b,"escapedReplacer");const O=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function S(e,t){if(!Boolean(e))throw new Error(t)}s(S,"devAssert");const A={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:["description","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","interfaces","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","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},L=new Set(Object.keys(A));function _(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&L.has(t)}let w;var D;let F;var x;s(_,"isNode"),(D=w||(w={})).QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription",(x=F||(F={})).NAME="Name",x.DOCUMENT="Document",x.OPERATION_DEFINITION="OperationDefinition",x.VARIABLE_DEFINITION="VariableDefinition",x.SELECTION_SET="SelectionSet",x.FIELD="Field",x.ARGUMENT="Argument",x.FRAGMENT_SPREAD="FragmentSpread",x.INLINE_FRAGMENT="InlineFragment",x.FRAGMENT_DEFINITION="FragmentDefinition",x.VARIABLE="Variable",x.INT="IntValue",x.FLOAT="FloatValue",x.STRING="StringValue",x.BOOLEAN="BooleanValue",x.NULL="NullValue",x.ENUM="EnumValue",x.LIST="ListValue",x.OBJECT="ObjectValue",x.OBJECT_FIELD="ObjectField",x.DIRECTIVE="Directive",x.NAMED_TYPE="NamedType",x.LIST_TYPE="ListType",x.NON_NULL_TYPE="NonNullType",x.SCHEMA_DEFINITION="SchemaDefinition",x.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",x.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",x.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",x.FIELD_DEFINITION="FieldDefinition",x.INPUT_VALUE_DEFINITION="InputValueDefinition",x.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",x.UNION_TYPE_DEFINITION="UnionTypeDefinition",x.ENUM_TYPE_DEFINITION="EnumTypeDefinition",x.ENUM_VALUE_DEFINITION="EnumValueDefinition",x.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",x.DIRECTIVE_DEFINITION="DirectiveDefinition",x.SCHEMA_EXTENSION="SchemaExtension",x.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",x.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",x.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",x.UNION_TYPE_EXTENSION="UnionTypeExtension",x.ENUM_TYPE_EXTENSION="EnumTypeExtension",x.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const R=Object.freeze({});function j(e,t,n=A){const i=new Map;for(const e of Object.values(F))i.set(e,U(t,e));let s,o,a,l=Array.isArray(e),u=[e],c=-1,p=[],d=e;const f=[],v=[];do{c++;const e=c===u.length,N=e&&0!==p.length;if(e){if(o=0===v.length?void 0:f[f.length-1],d=a,a=v.pop(),N)if(l){d=d.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}c=s.index,u=s.keys,p=s.edits,l=s.inArray,s=s.prev}else if(a){if(o=l?c:u[c],d=a[o],null==d)continue;f.push(o)}let T;if(!Array.isArray(d)){var h,y;_(d)||S(!1,`Invalid AST Node: ${r(d)}.`);const n=e?null===(h=i.get(d.kind))||void 0===h?void 0:h.leave:null===(y=i.get(d.kind))||void 0===y?void 0:y.enter;if(T=null==n?void 0:n.call(t,d,o,a,f,v),T===R)break;if(!1===T){if(!e){f.pop();continue}}else if(void 0!==T&&(p.push([o,T]),!e)){if(!_(T)){f.pop();continue}d=T}}var m;void 0===T&&N&&p.push([o,d]),e?f.pop():(s={inArray:l,index:c,keys:u,edits:p,prev:s},l=Array.isArray(d),u=l?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,p=[],a&&v.push(a),a=d)}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function U(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function V(e){return j(e,C)}s(j,"visit"),s(U,"getEnterLeaveForKind"),s(V,"print");const C={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=k("(",$(e.variableDefinitions,", "),")"),n=$([e.operation,$([e.name,t]),$(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+k(" = ",n)+k(" ",$(i," "))},SelectionSet:{leave:({selections:e})=>M(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:s}){const r=k("",e,": ")+t;let o=r+k("(",$(n,", "),")");return o.length>80&&(o=r+k("(\n",B($(n,"\n")),"\n)")),$([o,$(i," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+k(" ",$(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>$(["...",k("on ",e),$(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:s})=>`fragment ${e}${k("(",$(n,", "),")")} on ${t} ${k("",$(i," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?I(e):E(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+k("(",$(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>k("",e,"\n")+$(["schema",$(t," "),M(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$(["scalar",t,$(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["type",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:s})=>k("",e,"\n")+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+": "+i+k(" ",$(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:s})=>k("",e,"\n")+$([t+": "+n,k("= ",i),$(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["interface",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>k("",e,"\n")+$(["union",t,$(n," "),k("= ",$(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>k("",e,"\n")+$(["enum",t,$(n," "),M(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$([t,$(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>k("",e,"\n")+$(["input",t,$(n," "),M(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:s})=>k("",e,"\n")+"directive @"+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+(i?" repeatable":"")+" on "+$(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$(["extend schema",$(e," "),M(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$(["extend scalar",e,$(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend type",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend interface",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>$(["extend union",e,$(t," "),k("= ",$(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>$(["extend enum",e,$(t," "),M(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>$(["extend input",e,$(t," "),M(n)]," ")}};function $(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function M(e){return k("{\n",B($(e,"\n")),"\n}")}function k(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function B(e){return k(" ",e.replace(/\n/g,"\n "))}function G(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function P(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function J(e){return"object"==typeof e&&null!==e}function Q(e,t){const[n,i]=t?[e,t]:[void 0,e];let s=" Did you mean ";n&&(s+=n+" ");const r=i.map((e=>`"${e}"`));switch(r.length){case 0:return"";case 1:return s+r[0]+"?";case 2:return s+r[0]+" or "+r[1]+"?"}const o=r.slice(0,5),a=o.pop();return s+o.join(", ")+", or "+a+"?"}function Y(e){return e}s($,"join"),s(M,"block"),s(k,"wrap"),s(B,"indent"),s(G,"hasMultilineItems"),s(P,"isIterableObject"),s(J,"isObjectLike"),s(Q,"didYouMean"),s(Y,"identityFunc");const z=s((function(e,t){return e instanceof t}),"instanceOf");function q(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function H(e,t,n){const i=Object.create(null);for(const s of e)i[t(s)]=n(s);return i}function X(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function W(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let s=e.charCodeAt(n),r=t.charCodeAt(i);if(ee(s)&&ee(r)){let o=0;do{++n,o=10*o+s-K,s=e.charCodeAt(n)}while(ee(s)&&o>0);let a=0;do{++i,a=10*a+r-K,r=t.charCodeAt(i)}while(ee(r)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(s<r)return-1;if(s>r)return 1;++n,++i}}return e.length-t.length}s(q,"keyMap"),s(H,"keyValMap"),s(X,"mapValue"),s(W,"naturalCompare");const K=48,Z=57;function ee(e){return!isNaN(e)&&K<=e&&e<=Z}function te(e,t){const n=Object.create(null),i=new ne(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:W(e,t)}))}s(ee,"isDigit"),s(te,"suggestionList");class ne{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ie(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=ie(n),s=this._inputArray;if(i.length<s.length){const e=i;i=s,s=e}const r=i.length,o=s.length;if(r-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=r;e++){const n=a[(e-1)%3],r=a[e%3];let l=r[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===s[t-1]?0:1;let u=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===s[t-2]&&i[e-2]===s[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),r[t]=u}if(l>t)return}const l=a[r%3][o];return l<=t?l:void 0}}function ie(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function se(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}s(ne,"LexicalDistance"),s(ie,"stringToArray"),s(se,"toObjMap");const re=/\r\n|[\n\r]/g;function oe(e,t){let n=0,i=1;for(const s of e.body.matchAll(re)){if("number"==typeof s.index||d(!1),s.index>=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function ae(e){return le(e.source,oe(e.source,e.start))}function le(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,o=t.line+r,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),p=c[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+ue([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+ue([[o-1+" |",c[s-1]],[`${o} |`,p],["|","^".padStart(l)],[`${o+1} |`,c[s+1]]])}function ue(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function ce(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}s(oe,"getLocation"),s(ae,"printLocation"),s(le,"printSourceLocation"),s(ue,"printPrefixedLines"),s(ce,"toNormalizedOptions");class pe extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:a,path:l,originalError:u,extensions:c}=ce(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=de(Array.isArray(r)?r:r?[r]:void 0);const p=de(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==p?void 0:p.map((e=>e.start)),this.locations=a&&o?a.map((e=>oe(o,e))):null==p?void 0:p.map((e=>oe(e.source,e.start)));const d=J(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=null!=c?c:d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,pe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+ae(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+le(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function de(e){return void 0===e||0===e.length?void 0:e}function fe(e,t){switch(e.kind){case F.NULL:return null;case F.INT:return parseInt(e.value,10);case F.FLOAT:return parseFloat(e.value);case F.STRING:case F.ENUM:case F.BOOLEAN:return e.value;case F.LIST:return e.values.map((e=>fe(e,t)));case F.OBJECT:return H(e.fields,(e=>e.name.value),(e=>fe(e.value,t)));case F.VARIABLE:return null==t?void 0:t[e.name.value]}}function ve(e){if(null!=e||S(!1,"Must provide name."),"string"==typeof e||S(!1,"Expected name to be a string."),0===e.length)throw new pe("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!T(e.charCodeAt(t)))throw new pe(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!N(e.charCodeAt(0)))throw new pe(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function he(e){if("true"===e||"false"===e||"null"===e)throw new pe(`Enum values cannot be named: ${e}`);return ve(e)}function ye(e){return me(e)||Ne(e)||Te(e)||Ie(e)||Ee(e)||ge(e)||be(e)||Oe(e)}function me(e){return z(e,xe)}function Ne(e){return z(e,Re)}function Te(e){return z(e,ke)}function Ie(e){return z(e,Be)}function Ee(e){return z(e,Pe)}function ge(e){return z(e,Ye)}function be(e){return z(e,Le)}function Oe(e){return z(e,_e)}function Se(e){return me(e)||Ee(e)}function Ae(e){return Te(e)||Ie(e)}s(pe,"GraphQLError"),s(de,"undefinedIfEmpty"),s(fe,"valueFromASTUntyped"),s(ve,"assertName"),s(he,"assertEnumValueName"),s(ye,"isType"),s(me,"isScalarType"),s(Ne,"isObjectType"),s(Te,"isInterfaceType"),s(Ie,"isUnionType"),s(Ee,"isEnumType"),s(ge,"isInputObjectType"),s(be,"isListType"),s(Oe,"isNonNullType"),s(Se,"isLeafType"),s(Ae,"isAbstractType");class Le{constructor(e){ye(e)||S(!1,`Expected ${r(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}s(Le,"GraphQLList");class _e{constructor(e){we(e)||S(!1,`Expected ${r(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function we(e){return ye(e)&&!Oe(e)}function De(e){return"function"==typeof e?e():e}function Fe(e){return"function"==typeof e?e():e}s(_e,"GraphQLNonNull"),s(we,"isNullableType"),s(De,"resolveReadonlyArrayThunk"),s(Fe,"resolveObjMapThunk");class xe{constructor(e){var t,n,i,s;const o=null!==(t=e.parseValue)&&void 0!==t?t:Y;this.name=ve(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:Y,this.parseValue=o,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>o(fe(e,t)),this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||S(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${r(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||S(!1,`${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||S(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(xe,"GraphQLScalarType");class Re{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ue(e),this._interfaces=()=>je(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||S(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${r(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:$e(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function je(e){var t;const n=De(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||S(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Ue(e){const t=Fe(e.fields);return Ce(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>{var i;Ce(t)||S(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||S(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${r(t.resolve)}.`);const s=null!==(i=t.args)&&void 0!==i?i:{};return Ce(s)||S(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:ve(n),description:t.description,type:t.type,args:Ve(s),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode}}))}function Ve(e){return Object.entries(e).map((([e,t])=>({name:ve(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode})))}function Ce(e){return J(e)&&!Array.isArray(e)}function $e(e){return X(e,(e=>({description:e.description,type:e.type,args:Me(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Me(e){return H(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}s(Re,"GraphQLObjectType"),s(je,"defineInterfaces"),s(Ue,"defineFieldMap"),s(Ve,"defineArguments"),s(Ce,"isPlainObj"),s($e,"fieldsToFieldsConfig"),s(Me,"argsToArgsConfig");class ke{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ue.bind(void 0,e),this._interfaces=je.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:$e(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(ke,"GraphQLInterfaceType");class Be{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ge(e){const t=De(e.types);return Array.isArray(t)||S(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}s(Be,"GraphQLUnionType"),s(Ge,"defineTypes");class Pe{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=Qe(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=q(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new pe(`Enum "${this.name}" cannot represent value: ${r(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=r(e);throw new pe(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Je(this,t))}const t=this.getValue(e);if(null==t)throw new pe(`Value "${e}" does not exist in "${this.name}" enum.`+Je(this,e));return t.value}parseLiteral(e,t){if(e.kind!==F.ENUM){const t=V(e);throw new pe(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Je(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=V(e);throw new pe(`Value "${t}" does not exist in "${this.name}" enum.`+Je(this,t),{nodes:e})}return n.value}toConfig(){const e=H(this.getValues(),(e=>e.name),(e=>({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}}toString(){return this.name}toJSON(){return this.toString()}}function Je(e,t){return Q("the enum value",te(t,e.getValues().map((e=>e.name))))}function Qe(e,t){return Ce(t)||S(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Ce(n)||S(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${r(n)}.`),{name:he(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:se(n.extensions),astNode:n.astNode})))}s(Pe,"GraphQLEnumType"),s(Je,"didYouMeanEnumValue"),s(Qe,"defineEnumValues");class Ye{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ze.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=X(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ze(e){const t=Fe(e.fields);return Ce(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>(!("resolve"in t)||S(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:ve(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode})))}s(Ye,"GraphQLInputObjectType"),s(ze,"defineInputFieldMap");const qe=2147483647,He=-2147483648,Xe=new xe({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(e){const t=tt(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new pe(`Int cannot represent non-integer value: ${r(t)}`);if(n>qe||n<He)throw new pe("Int cannot represent non 32-bit signed integer value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new pe(`Int cannot represent non-integer value: ${r(e)}`);if(e>qe||e<He)throw new pe(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==F.INT)throw new pe(`Int cannot represent non-integer value: ${V(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>qe||t<He)throw new pe(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),We=new xe({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(e){const t=tt(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new pe(`Float cannot represent non numeric value: ${r(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new pe(`Float cannot represent non numeric value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.FLOAT&&e.kind!==F.INT)throw new pe(`Float cannot represent non numeric value: ${V(e)}`,e);return parseFloat(e.value)}}),Ke=new xe({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(e){const t=tt(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new pe(`String cannot represent value: ${r(e)}`)},parseValue(e){if("string"!=typeof e)throw new pe(`String cannot represent a non string value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.STRING)throw new pe(`String cannot represent a non string value: ${V(e)}`,{nodes:e});return e.value}}),Ze=new xe({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=tt(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new pe(`Boolean cannot represent a non boolean value: ${r(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new pe(`Boolean cannot represent a non boolean value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.BOOLEAN)throw new pe(`Boolean cannot represent a non boolean value: ${V(e)}`,{nodes:e});return e.value}}),et=new xe({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(e){const t=tt(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new pe(`ID cannot represent value: ${r(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new pe(`ID cannot represent value: ${r(e)}`)},parseLiteral(e){if(e.kind!==F.STRING&&e.kind!==F.INT)throw new pe("ID cannot represent a non-string and non-integer value: "+V(e),{nodes:e});return e.value}});function tt(e){if(J(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!J(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function nt(e,t){if(Oe(t)){const n=nt(e,t.ofType);return(null==n?void 0:n.kind)===F.NULL?null:n}if(null===e)return{kind:F.NULL};if(void 0===e)return null;if(be(t)){const n=t.ofType;if(P(e)){const t=[];for(const i of e){const e=nt(i,n);null!=e&&t.push(e)}return{kind:F.LIST,values:t}}return nt(e,n)}if(ge(t)){if(!J(e))return null;const n=[];for(const i of Object.values(t.getFields())){const t=nt(e[i.name],i.type);t&&n.push({kind:F.OBJECT_FIELD,name:{kind:F.NAME,value:i.name},value:t})}return{kind:F.OBJECT,fields:n}}if(Se(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:F.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return it.test(e)?{kind:F.INT,value:e}:{kind:F.FLOAT,value:e}}if("string"==typeof n)return Ee(t)?{kind:F.ENUM,value:n}:t===et&&it.test(n)?{kind:F.INT,value:n}:{kind:F.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${r(n)}.`)}d(!1,"Unexpected input type: "+r(t))}Object.freeze([Ke,Xe,We,Ze,et]),s(tt,"serializeObject"),s(nt,"astFromValue");const it=/^-?(?:0|[1-9][0-9]*)$/,st=new Re({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:()=>({description:{type:Ke,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new _e(new Le(new _e(at))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new _e(at),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:at,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:at,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new _e(new Le(new _e(rt))),resolve:e=>e.getDirectives()}})}),rt=new Re({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:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isRepeatable:{type:new _e(Ze),resolve:e=>e.isRepeatable},locations:{type:new _e(new Le(new _e(ot))),resolve:e=>e.locations},args:{type:new _e(new Le(new _e(ut))),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),ot=new Pe({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:f.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:f.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:f.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:f.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:f.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:f.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:f.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:f.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:f.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:f.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:f.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:f.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:f.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:f.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:f.UNION,description:"Location adjacent to a union definition."},ENUM:{value:f.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:f.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:f.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),at=new Re({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, description and optional `specifiedByURL`, 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:()=>({kind:{type:new _e(ft),resolve:e=>me(e)?pt.SCALAR:Ne(e)?pt.OBJECT:Te(e)?pt.INTERFACE:Ie(e)?pt.UNION:Ee(e)?pt.ENUM:ge(e)?pt.INPUT_OBJECT:be(e)?pt.LIST:Oe(e)?pt.NON_NULL:void d(!1,`Unexpected type: "${r(e)}".`)},name:{type:Ke,resolve:e=>"name"in e?e.name:void 0},description:{type:Ke,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ke,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Le(new _e(lt)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ne(e)||Te(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new Le(new _e(at)),resolve(e){if(Ne(e)||Te(e))return e.getInterfaces()}},possibleTypes:{type:new Le(new _e(at)),resolve(e,t,n,{schema:i}){if(Ae(e))return i.getPossibleTypes(e)}},enumValues:{type:new Le(new _e(ct)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ee(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new Le(new _e(ut)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ge(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:at,resolve:e=>"ofType"in e?e.ofType:void 0}})}),lt=new Re({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:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},args:{type:new _e(new Le(new _e(ut))),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new _e(at),resolve:e=>e.type},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),ut=new Re({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:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},type:{type:new _e(at),resolve:e=>e.type},defaultValue:{type:Ke,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=nt(n,t);return i?V(i):null}},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),ct=new Re({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:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})});let pt;var dt;(dt=pt||(pt={})).SCALAR="SCALAR",dt.OBJECT="OBJECT",dt.INTERFACE="INTERFACE",dt.UNION="UNION",dt.ENUM="ENUM",dt.INPUT_OBJECT="INPUT_OBJECT",dt.LIST="LIST",dt.NON_NULL="NON_NULL";const ft=new Pe({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:pt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:pt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:pt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:pt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:pt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:pt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:pt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:pt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),vt={name:"__schema",type:new _e(st),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ht={name:"__type",type:at,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new _e(Ke),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},yt={name:"__typename",type:new _e(Ke),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Object.freeze([st,rt,ot,at,lt,ut,ct,ft])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[221,
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[120,221],{36221:(e,o,t)=>{t.r(o),t.d(o,{j:()=>l});var n=t(38950),r=t(71120),i=Object.defineProperty,a=(e,o)=>i(e,"name",{value:o,configurable:!0});function u(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return o[t]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(u,"_mergeNamespaces");var s={exports:{}};!function(e){function o(e,o,t,n,r){e.openDialog?e.openDialog(o,r,{value:n,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,n))}function t(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>"}function n(e,o){var t=Number(o);return/^[-+]/.test(o)?e.getCursor().line+t:t-1}e.defineOption("search",{bottom:!1}),a(o,"dialog"),a(t,"getJumpDialog"),a(n,"interpretLine"),e.commands.jumpToLine=function(e){var r=e.getCursor();o(e,t(e),e.phrase("Jump to line:"),r.line+1+":"+r.ch,(function(o){var t;if(o)if(t=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(o))e.setCursor(n(e,t[1]),Number(t[2]));else if(t=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(o)){var i=Math.round(e.lineCount()*Number(t[1])/100);/^[-+]/.test(t[1])&&(i=r.line+i+1),e.setCursor(i-1,r.ch)}else(t=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(o))&&e.setCursor(n(e,t[1]),r.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n.a.exports,r.a.exports);var l=u({__proto__:null,default:s.exports},[s.exports])},71120:(e,o,t)=>{t.r(o),t.d(o,{a:()=>u,d:()=>s});var n=t(38950),r=Object.defineProperty,i=(e,o)=>r(e,"name",{value:o,configurable:!0});function a(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return o[t]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces");var u={exports:{}};!function(e){function o(o,t,n){var r,i=o.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}i(o,"dialogDiv"),i(t,"closeNotification"),e.defineExtension("openDialog",(function(n,r,a){a||(a={}),t(this,null);var u=o(this,n,a.bottom),s=!1,l=this;function c(o){if("string"==typeof o)p.value=o;else{if(s)return;s=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),l.focus(),a.onClose&&a.onClose(u)}}i(c,"close");var f,p=u.getElementsByTagName("input")[0];return p?(p.focus(),a.value&&(p.value=a.value,!1!==a.selectValueOnOpen&&p.select()),a.onInput&&e.on(p,"input",(function(e){a.onInput(e,p.value,c)})),a.onKeyUp&&e.on(p,"keyup",(function(e){a.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(o){a&&a.onKeyDown&&a.onKeyDown(o,p.value,c)||((27==o.keyCode||!1!==a.closeOnEnter&&13==o.keyCode)&&(p.blur(),e.e_stop(o),c()),13==o.keyCode&&r(p.value,o))})),!1!==a.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(f=u.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){c(),l.focus()})),!1!==a.closeOnBlur&&e.on(f,"blur",c),f.focus()),c})),e.defineExtension("openConfirm",(function(n,r,a){t(this,null);var u=o(this,n,a&&a.bottom),s=u.getElementsByTagName("button"),l=!1,c=this,f=1;function p(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus())}i(p,"close"),s[0].focus();for(var d=0;d<s.length;++d){var m=s[d];!function(o){e.on(m,"click",(function(t){e.e_preventDefault(t),p(),o&&o(c)}))}(r[d]),e.on(m,"blur",(function(){--f,setTimeout((function(){f<=0&&p()}),200)})),e.on(m,"focus",(function(){++f}))}})),e.defineExtension("openNotification",(function(n,r){t(this,c);var a,u=o(this,n,r&&r.bottom),s=!1,l=r&&void 0!==r.duration?r.duration:5e3;function c(){s||(s=!0,clearTimeout(a),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}return i(c,"close"),e.on(u,"click",(function(o){e.e_preventDefault(o),c()})),l&&(a=setTimeout(c,l)),c}))}(n.a.exports);var s=a({__proto__:null,default:u.exports},[u.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[448],{58594:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>f,c:()=>d,d:()=>m,e:()=>g,g:()=>l});var i=n(85236),a=n(30183),r=n(7182),u=Object.defineProperty,o=(e,t)=>u(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var a,r;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?s(e,n.parentType,t.name):null,n.type=null===(a=n.fieldDef)||void 0===a?void 0:a.type;break;case"SelectionSet":n.parentType=n.type?(0,i.MR)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const u=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=u?u.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(r=n.argDef)||void 0===r?void 0:r.type;break;case"EnumValue":const o=n.inputType?(0,i.MR)(n.inputType):null;n.enumValue=o instanceof i.Zb?p(o.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,i.yl)(n.inputType):null;n.inputType=l instanceof i.KT?l.ofType:null;break;case"ObjectValue":const c=n.inputType?(0,i.MR)(n.inputType):null;n.objectFieldDefs=c instanceof i.zP?c.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function s(e,t,n){return n===a.S.name&&e.getQueryType()===t?a.S:n===a.T.name&&e.getQueryType()===t?a.T:n===a.a.name&&(0,i.ML)(t)?a.a:t&&t.getFields?t.getFields()[n]:void 0}function p(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function c(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:y(e.fieldDef)?null:e.parentType}}function f(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function d(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:y(e.fieldDef)?null:e.parentType}}function m(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,i.MR)(e.inputType):void 0}}function g(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function y(e){return"__"===e.name.slice(0,2)}o(l,"getTypeInfo"),o(s,"getFieldDef"),o(p,"find"),o(c,"getFieldReference"),o(f,"getDirectiveReference"),o(d,"getArgumentReference"),o(m,"getEnumValueReference"),o(g,"getTypeReference"),o(y,"isMetaField")},
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[448],{7182:(e,t,n)=>{function i(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>i}),(0,Object.defineProperty)(i,"name",{value:"forEachState",configurable:!0})},58594:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>f,c:()=>d,d:()=>m,e:()=>g,g:()=>l});var i=n(85236),a=n(30183),r=n(7182),u=Object.defineProperty,o=(e,t)=>u(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var a,r;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?s(e,n.parentType,t.name):null,n.type=null===(a=n.fieldDef)||void 0===a?void 0:a.type;break;case"SelectionSet":n.parentType=n.type?(0,i.MR)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const u=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=u?u.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(r=n.argDef)||void 0===r?void 0:r.type;break;case"EnumValue":const o=n.inputType?(0,i.MR)(n.inputType):null;n.enumValue=o instanceof i.Zb?p(o.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,i.yl)(n.inputType):null;n.inputType=l instanceof i.KT?l.ofType:null;break;case"ObjectValue":const c=n.inputType?(0,i.MR)(n.inputType):null;n.objectFieldDefs=c instanceof i.zP?c.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function s(e,t,n){return n===a.S.name&&e.getQueryType()===t?a.S:n===a.T.name&&e.getQueryType()===t?a.T:n===a.a.name&&(0,i.ML)(t)?a.a:t&&t.getFields?t.getFields()[n]:void 0}function p(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function c(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:y(e.fieldDef)?null:e.parentType}}function f(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function d(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:y(e.fieldDef)?null:e.parentType}}function m(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,i.MR)(e.inputType):void 0}}function g(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function y(e){return"__"===e.name.slice(0,2)}o(l,"getTypeInfo"),o(s,"getFieldDef"),o(p,"find"),o(c,"getFieldReference"),o(f,"getDirectiveReference"),o(d,"getArgumentReference"),o(m,"getEnumValueReference"),o(g,"getTypeReference"),o(y,"isMetaField")},86448:(e,t,n)=>{n.r(t);var i=n(38950),a=n(58594),r=(n(75909),n(63696),n(78325),n(30183),n(7182),Object.defineProperty),u=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const i=n.getBoundingClientRect(),a={left:(i.left+i.right)/2,top:(i.top+i.bottom)/2};e.state.jump.cursor=a,e.state.jump.isHoldingModifier&&f(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&d(e):e.state.jump.cursor=null}function s(e,t){if(e.state.jump.isHoldingModifier||!c(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const n=u((u=>{u.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&d(e),i.C.off(document,"keyup",n),i.C.off(document,"click",a),e.off("mousedown",r))}),"onKeyUp"),a=u((t=>{const n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)}),"onClick"),r=u(((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)}),"onMouseDown");i.C.on(document,"keyup",n),i.C.on(document,"click",a),e.on("mousedown",r)}i.C.defineOption("jump",!1,((e,t,n)=>{if(n&&n!==i.C.Init){const t=e.state.jump.onMouseOver;i.C.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;i.C.off(e.getWrapperElement(),"mouseout",n),i.C.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:s.bind(null,e)};i.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver),i.C.on(e.getWrapperElement(),"mouseout",n.onMouseOut),i.C.on(document,"keydown",n.onKeyDown)}})),u(o,"onMouseOver"),u(l,"onMouseOut"),u(s,"onKeyDown");const p="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){return e===(p?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const t=e.state.jump.cursor,n=e.coordsChar(t),i=e.getTokenAt(n,!0),a=e.state.jump.options,r=a.getDestination||e.getHelper(n,"jump");if(r){const t=r(i,a,e);if(t){const a=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=a,e.state.jump.destination=t}}}function d(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}u(c,"isJumpModifier"),u(f,"enableJumpMode"),u(d,"disableJumpMode"),i.C.registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const n=e.state,i=n.kind,r=n.step,u=(0,a.g)(t.schema,n);return"Field"===i&&0===r&&u.fieldDef||"AliasedField"===i&&2===r&&u.fieldDef?(0,a.a)(u):"Directive"===i&&1===r&&u.directiveDef?(0,a.b)(u):"Argument"===i&&0===r&&u.argDef?(0,a.c)(u):"EnumValue"===i&&u.enumValue?(0,a.d)(u):"NamedType"===i&&u.type?(0,a.e)(u):void 0}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[584,701],{
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[584,701],{7182:(e,t,n)=>{function o(e,t){const n=[];let o=e;for(;null==o?void 0:o.kind;)n.push(o),o=o.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>o}),(0,Object.defineProperty)(o,"name",{value:"forEachState",configurable:!0})},28701:(e,t,n)=>{n.r(t);var o=n(38950),i=(n(75909),n(63696),n(78325),Object.defineProperty),r=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function c(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,i=t.target||t.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==n.hoverTimeout)return;const a=i.getBoundingClientRect(),l=r((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(p,s)}),"onMouseMove"),d=r((function(){o.C.off(document,"mousemove",l),o.C.off(e.getWrapperElement(),"mouseout",d),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),p=r((function(){o.C.off(document,"mousemove",l),o.C.off(e.getWrapperElement(),"mouseout",d),n.hoverTimeout=void 0,u(e,a)}),"onHover"),s=c(e);n.hoverTimeout=setTimeout(p,s),o.C.on(document,"mousemove",l),o.C.on(e.getWrapperElement(),"mouseout",d)}function u(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),o=e.state.info.options,i=o.render||e.getHelper(n,"info");if(i){const r=e.getTokenAt(n,!0);if(r){const a=i(r,o,e,n);a&&d(e,t,a)}}}function d(e,t,n){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);const a=i.getBoundingClientRect(),c=window.getComputedStyle(i),l=a.right-a.left+parseFloat(c.marginLeft)+parseFloat(c.marginRight),u=a.bottom-a.top+parseFloat(c.marginTop)+parseFloat(c.marginBottom);let d=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-u),d<0&&(d=t.bottom);let p,s=Math.max(0,window.innerWidth-l-15);s>t.left&&(s=t.left),i.style.opacity="1",i.style.top=d+"px",i.style.left=s+"px";const f=r((function(){clearTimeout(p)}),"onMouseOverPopup"),m=r((function(){clearTimeout(p),p=setTimeout(v,200)}),"onMouseOut"),v=r((function(){o.C.off(i,"mouseover",f),o.C.off(i,"mouseout",m),o.C.off(e.getWrapperElement(),"mouseout",m),i.style.opacity?(i.style.opacity="0",setTimeout((()=>{i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");o.C.on(i,"mouseover",f),o.C.on(i,"mouseout",m),o.C.on(e.getWrapperElement(),"mouseout",m)}o.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==o.C.Init){const t=e.state.info.onMouseOver;o.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),o.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),r(a,"createState"),r(c,"getHoverTime"),r(l,"onMouseOver"),r(u,"onMouseHover"),r(d,"showPopup")},58594:(e,t,n)=>{n.d(t,{a:()=>p,b:()=>s,c:()=>f,d:()=>m,e:()=>v,g:()=>l});var o=n(85236),i=n(30183),r=n(7182),a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var i,r;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?u(e,n.parentType,t.name):null,n.type=null===(i=n.fieldDef)||void 0===i?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?(0,o.MR)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(r=n.argDef)||void 0===r?void 0:r.type;break;case"EnumValue":const c=n.inputType?(0,o.MR)(n.inputType):null;n.enumValue=c instanceof o.Zb?d(c.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,o.yl)(n.inputType):null;n.inputType=l instanceof o.KT?l.ofType:null;break;case"ObjectValue":const p=n.inputType?(0,o.MR)(n.inputType):null;n.objectFieldDefs=p instanceof o.zP?p.getFields():null;break;case"ObjectField":const s=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==s?void 0:s.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function u(e,t,n){return n===i.S.name&&e.getQueryType()===t?i.S:n===i.T.name&&e.getQueryType()===t?i.T:n===i.a.name&&(0,o.ML)(t)?i.a:t&&t.getFields?t.getFields()[n]:void 0}function d(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function p(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:y(e.fieldDef)?null:e.parentType}}function s(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function f(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:y(e.fieldDef)?null:e.parentType}}function m(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,o.MR)(e.inputType):void 0}}function v(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function y(e){return"__"===e.name.slice(0,2)}c(l,"getTypeInfo"),c(u,"getFieldDef"),c(d,"find"),c(p,"getFieldReference"),c(s,"getDirectiveReference"),c(f,"getArgumentReference"),c(m,"getEnumValueReference"),c(v,"getTypeReference"),c(y,"isMetaField")},65584:(e,t,n)=>{n.r(t);var o=n(85236),i=n(38950),r=n(58594),a=(n(28701),n(75909),n(63696),n(78325),n(30183),n(7182),Object.defineProperty),c=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){u(e,t,n),f(e,t,n,t.type)}function u(e,t,n){var o;g(e,(null===(o=t.fieldDef)||void 0===o?void 0:o.name)||"","field-name",n,(0,r.a)(t))}function d(e,t,n){var o;g(e,"@"+((null===(o=t.directiveDef)||void 0===o?void 0:o.name)||""),"directive-name",n,(0,r.b)(t))}function p(e,t,n){var o;g(e,(null===(o=t.argDef)||void 0===o?void 0:o.name)||"","arg-name",n,(0,r.c)(t)),f(e,t,n,t.inputType)}function s(e,t,n){var o;const i=(null===(o=t.enumValue)||void 0===o?void 0:o.name)||"";m(e,t,n,t.inputType),g(e,"."),g(e,i,"enum-value",n,(0,r.d)(t))}function f(e,t,n,i){const a=document.createElement("span");a.className="type-name-pill",i instanceof o.Gc?(m(a,t,n,i.ofType),g(a,"!")):i instanceof o.KT?(g(a,"["),m(a,t,n,i.ofType),g(a,"]")):g(a,(null==i?void 0:i.name)||"","type-name",n,(0,r.e)(t,i)),e.appendChild(a)}function m(e,t,n,i){i instanceof o.Gc?(m(e,t,n,i.ofType),g(e,"!")):i instanceof o.KT?(g(e,"["),m(e,t,n,i.ofType),g(e,"]")):g(e,(null==i?void 0:i.name)||"","type-name",n,(0,r.e)(t,i))}function v(e,t,n){const o=n.description;if(o){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(o):n.appendChild(document.createTextNode(o)),e.appendChild(n)}y(e,t,n)}function y(e,t,n){const o=n.deprecationReason;if(o){const n=document.createElement("div");n.className="info-deprecation",e.appendChild(n);const i=document.createElement("span");i.className="info-deprecation-label",i.appendChild(document.createTextNode("Deprecated")),n.appendChild(i);const r=document.createElement("div");r.className="info-deprecation-reason",t.renderDescription?r.innerHTML=t.renderDescription(o):r.appendChild(document.createTextNode(o)),n.appendChild(r)}}function g(e,t,n="",o={onClick:null},i=null){if(n){const r=o.onClick;let a;r?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{r(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}i.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const n=e.state,o=n.kind,i=n.step,a=(0,r.g)(t.schema,e.state);if("Field"===o&&0===i&&a.fieldDef||"AliasedField"===o&&2===i&&a.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",l(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.fieldDef),n}if("Directive"===o&&1===i&&a.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",d(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.directiveDef),n}if("Argument"===o&&0===i&&a.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",p(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.argDef),n}if("EnumValue"===o&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",s(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.enumValue),n}if("NamedType"===o&&a.type&&a.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",m(e,a,t,a.type);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.type),n}})),c(l,"renderField"),c(u,"renderQualifiedField"),c(d,"renderDirective"),c(p,"renderArg"),c(s,"renderEnumValue"),c(f,"renderTypeAnnotation"),c(m,"renderType"),c(v,"renderDescription"),c(y,"renderDeprecation"),c(g,"text")}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[75,578,866],{91578:(e,t,n)=>{n.r(t),n.d(t,{a:()=>a,m:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function l(e,t,i){var l=e.getLineHandle(t.line),s=t.ch-1,c=i&&i.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var f=o(i),u=!c&&s>=0&&f.test(l.text.charAt(s))&&r[l.text.charAt(s)]||f.test(l.text.charAt(s+1))&&r[l.text.charAt(++s)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(i&&i.strict&&h>0!=(s==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,s+1)),g=a(e,n(t.line,s+(h>0?1:0)),h,d,i);return null==g?null:{from:n(t.line,s),to:g&&g.pos,match:g&&g.ch==u.charAt(0),forward:h>0}}function a(e,t,i,l,a){for(var s=a&&a.maxScanLineLength||1e4,c=a&&a.maxScanLines||1e3,f=[],u=o(a),h=i>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=h;d+=i){var g=e.getLine(d);if(g){var m=i>0?0:g.length-1,p=i>0?g.length:-1;if(!(g.length>s))for(d==t.line&&(m=t.ch-(i<0?1:0));m!=p;m+=i){var C=g.charAt(m);if(u.test(C)&&(void 0===l||(e.getTokenTypeAt(n(d,m+1))||"")==(l||""))){var v=r[C];if(v&&">"==v.charAt(1)==i>0)f.push(C);else{if(!f.length)return{pos:n(d,m),ch:C};f.pop()}}}}}return d-i!=(i>0?e.lastLine():e.firstLine())&&null}function s(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=o&&o.highlightNonMatching,c=[],f=e.listSelections(),u=0;u<f.length;u++){var h=f[u].empty()&&l(e,f[u].head,o);if(h&&(h.match||!1!==s)&&e.getLine(h.from.line).length<=a){var d=h.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";c.push(e.markText(h.from,n(h.from.line,h.from.ch+1),{className:d})),h.to&&e.getLine(h.to.line).length<=a&&c.push(e.markText(h.to,n(h.to.line,h.to.ch+1),{className:d}))}}if(c.length){t&&e.state.focused&&e.focus();var g=i((function(){e.operation((function(){for(var e=0;e<c.length;e++)c[e].clear()}))}),"clear");if(!r)return g;setTimeout(g,800)}}function c(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function f(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}i(o,"bracketRegex"),i(l,"findMatchingBracket"),i(a,"scanForBracket"),i(s,"matchBrackets"),i(c,"doMatchBrackets"),i(f,"clearHighlighted"),e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",c),t.off("focus",c),t.off("blur",f),f(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",c),t.on("focus",c),t.on("blur",f))})),e.defineExtension("matchBrackets",(function(){s(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),l(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(r.a.exports);var s=l({__proto__:null,default:a.exports},[a.exports])},98866:(e,t,n)=>{n.r(t),n.d(t,{a:()=>a,s:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t,n,r=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function l(e,t){for(var n=o(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 a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=l(t,"g");for(var o=n.line,i=n.ch,a=e.lastLine();o<=a;o++,i=0){t.lastIndex=i;var s=e.getLine(o),c=t.exec(s);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!a(t))return s(e,t,n);t=l(t,"gm");for(var o,i=1,c=n.line,f=e.lastLine();c<=f;){for(var u=0;u<i&&!(c>f);u++){var h=e.getLine(c++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var d=t.exec(o);if(d){var g=o.slice(0,d.index).split("\n"),m=d[0].split("\n"),p=n.line+g.length-1,C=g[g.length-1].length;return{from:r(p,C),to:r(p+m.length-1,1==m.length?C+m[0].length:m[m.length-1].length),match:d}}}}function f(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var l=i.index+i[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function u(e,t,n){t=l(t,"g");for(var o=n.line,i=n.ch,a=e.firstLine();o>=a;o--,i=-1){var s=e.getLine(o),c=f(s,t,i<0?0:s.length-i);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function h(e,t,n){if(!a(t))return u(e,t,n);t=l(t,"gm");for(var o,i=1,s=e.getLine(n.line).length-n.ch,c=n.line,h=e.firstLine();c>=h;){for(var d=0;d<i&&c>=h;d++){var g=e.getLine(c--);o=null==o?g:g+"\n"+o}i*=2;var m=f(o,t,s);if(m){var p=o.slice(0,m.index).split("\n"),C=m[0].split("\n"),v=c+p.length,S=p[p.length-1].length;return{from:r(v,S),to:r(v+C.length-1,1==C.length?S+C[0].length:C[C.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var l=o+i>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?i=l:o=l+1}}function g(e,o,i,l){if(!o.length)return null;var a=l?t:n,s=a(o).split(/\r|\n\r?/);e:for(var c=i.line,f=i.ch,u=e.lastLine()+1-s.length;c<=u;c++,f=0){var h=e.getLine(c).slice(f),g=a(h);if(1==s.length){var m=g.indexOf(s[0]);if(-1==m)continue e;return i=d(h,g,m,a)+f,{from:r(c,d(h,g,m,a)+f),to:r(c,d(h,g,m+s[0].length,a)+f)}}var p=g.length-s[0].length;if(g.slice(p)==s[0]){for(var C=1;C<s.length-1;C++)if(a(e.getLine(c+C))!=s[C])continue e;var v=e.getLine(c+s.length-1),S=a(v),k=s[s.length-1];if(S.slice(0,k.length)==k)return{from:r(c,d(h,g,p,a)+f),to:r(c+s.length-1,d(v,S,k.length,a))}}}}function m(e,o,i,l){if(!o.length)return null;var a=l?t:n,s=a(o).split(/\r|\n\r?/);e:for(var c=i.line,f=i.ch,u=e.firstLine()-1+s.length;c>=u;c--,f=-1){var h=e.getLine(c);f>-1&&(h=h.slice(0,f));var g=a(h);if(1==s.length){var m=g.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,d(h,g,m,a)),to:r(c,d(h,g,m+s[0].length,a))}}var p=s[s.length-1];if(g.slice(0,p.length)==p){var C=1;for(i=c-s.length+1;C<s.length-1;C++)if(a(e.getLine(i+C))!=s[C])continue e;var v=e.getLine(c+1-s.length),S=a(v);if(S.slice(S.length-s[0].length)==s[0])return{from:r(c+1-s.length,d(v,S,v.length-s[0].length,a)),to:r(c,d(h,g,p.length,a))}}}}function p(e,t,n,o){var i;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?i=o.caseFold:(i=o,o=null),"string"==typeof t?(null==i&&(i=!1),this.matches=function(n,r){return(n?m:g)(e,t,r,i)}):(t=l(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?h:c)(e,t,r)})}i(o,"regexpFlags"),i(l,"ensureFlags"),i(a,"maybeMultiline"),i(s,"searchRegexpForward"),i(c,"searchRegexpForwardMultiline"),i(f,"lastMatchIn"),i(u,"searchRegexpBackward"),i(h,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=i((function(e){return e.normalize("NFD").toLowerCase()}),"doFold"),n=i((function(e){return e.normalize("NFD")}),"noFold")):(t=i((function(e){return e.toLowerCase()}),"doFold"),n=i((function(e){return e}),"noFold")),i(d,"adjustPos"),i(g,"searchStringForward"),i(m,"searchStringBackward"),i(p,"SearchCursor"),p.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,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 o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new p(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new p(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var s=l({__proto__:null,default:a.exports},[a.exports])},34075:(e,t,n)=>{n.r(t),n.d(t,{s:()=>f});var r=n(38950),o=n(98866),i=n(91578),l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(s,"_mergeNamespaces");var c={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,o){if(o<0&&0==r.ch)return t.clipPos(n(r.line-1));var i=t.getLine(r.line);if(o>0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var l,a="start",s=r.ch,c=s,f=o<0?0:i.length,u=0;c!=f;c+=o,u++){var h=i.charAt(o<0?c-1:c),d="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==d&&h.toUpperCase()==h&&(d="W"),"start"==a)"o"!=d?(a="in",l=d):s=c+o;else if("in"==a&&l!=d){if("w"==l&&"W"==d&&o<0&&c--,"W"==l&&"w"==d&&o>0){if(c==s+1){l="w";continue}c--}break}}return n(r.line,c)}function o(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,l=0;l<e;l++){var a=t.listSelections()[l].head;if(!(a.line<=i)){var s=n(a.line+(r?0:1),0);t.replaceRange("\n",s,null,"+insertLine"),t.indentLine(s.line,null,!0),o.push({head:s,anchor:s}),i=a.line+1}}t.setSelections(o)})),t.execCommand("indentAuto")}function l(t,r){for(var o=r.ch,i=o,l=t.getLine(r.line);o&&e.isWordChar(l.charAt(o-1));)--o;for(;i<l.length&&e.isWordChar(l.charAt(i));)++i;return{from:n(r.line,o),to:n(r.line,i),word:l.slice(o,i)}}function s(e,t){for(var n=e.listSelections(),r=[],o=0;o<n.length;o++){var i=n[o],l=e.findPosV(i.anchor,t,"line",i.anchor.goalColumn),a=e.findPosV(i.head,t,"line",i.head.goalColumn);l.goalColumn=null!=i.anchor.goalColumn?i.anchor.goalColumn:e.cursorCoords(i.anchor,"div").left,a.goalColumn=null!=i.head.goalColumn?i.head.goalColumn:e.cursorCoords(i.head,"div").left;var s={anchor:l,head:a};r.push(i),r.push(s)}e.setSelections(r)}function c(t,n,r){for(var o=0;o<t.length;o++)if(0==e.cmpPos(t[o].from(),n)&&0==e.cmpPos(t[o].to(),r))return!0;return!1}a(r,"findPosSubword"),a(o,"moveSubword"),t.goSubwordLeft=function(e){o(e,-1)},t.goSubwordRight=function(e){o(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=[],o=0;o<t.length;o++)for(var i=t[o].from(),l=t[o].to(),a=i.line;a<=l.line;++a)l.line>i.line&&a==l.line&&0==l.ch||r.push({anchor:a==i.line?i:n(a,0),head:a==l.line?l:n(a)});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=[],o=0;o<t.length;o++){var i=t[o];r.push({anchor:n(i.from().line,0),head:n(i.to().line+1,0)})}e.setSelections(r)},a(i,"insertLine"),t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},a(l,"wordAt"),t.selectNextOccurrence=function(t){var r=t.getCursor("from"),o=t.getCursor("to"),i=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,o)){var a=l(t,r);if(!a.word)return;t.setSelection(a.from,a.to),i=!0}else{var s=t.getRange(r,o),f=i?new RegExp("\\b"+s+"\\b"):s,u=t.getSearchCursor(f,o),h=u.findNext();if(h||(h=(u=t.getSearchCursor(f,n(t.firstLine(),0))).findNext()),!h||c(t.listSelections(),u.from(),u.to()))return;t.addSelection(u.from(),u.to())}i&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),o=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,o)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=o})))},a(s,"addCursorToSelection"),t.addCursorToPrevLine=function(e){s(e,-1)},t.addCursorToNextLine=function(e){s(e,1)},a(c,"isSelectedRange");var f="(){}[]";function u(t){for(var r=t.listSelections(),o=[],i=0;i<r.length;i++){var l=r[i],a=l.head,s=t.scanForBracket(a,-1);if(!s)return!1;for(;;){var c=t.scanForBracket(a,1);if(!c)return!1;if(c.ch==f.charAt(f.indexOf(s.ch)+1)){var u=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(u,l.from())||0!=e.cmpPos(c.pos,l.to())){o.push({anchor:u,head:c.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}a=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(o),!0}function h(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function d(t,r,o){if(t.isReadOnly())return e.Pass;for(var i,l=t.listSelections(),a=[],s=0;s<l.length;s++){var c=l[s];if(!c.empty()){for(var f=c.from().line,u=c.to().line;s<l.length-1&&l[s+1].from().line==u;)u=l[++s].to().line;l[s].to().ch||u--,a.push(f,u)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],l=0;l<a.length;l+=2){var s=a[l],c=a[l+1],f=n(s,0),u=n(c),h=t.getRange(f,u,!1);r?h.sort((function(e,t){return e<t?-o:e==t?0:o})):h.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-o:e==t?0:o})),t.replaceRange(h,f,u),i&&e.push({anchor:f,head:n(c+1,0)})}i&&t.setSelections(e,0)}))}function g(t,n){t.operation((function(){for(var r=t.listSelections(),o=[],i=[],a=0;a<r.length;a++)(c=r[a]).empty()?(o.push(a),i.push("")):i.push(n(t.getRange(c.from(),c.to())));var s;for(t.replaceSelections(i,"around","case"),a=o.length-1;a>=0;a--){var c=r[o[a]];if(!(s&&e.cmpPos(c.head,s)>0)){var f=l(t,c.head);s=f.from,t.replaceRange(n(f.word),f.from,f.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=l(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function p(e,t){var r=m(e);if(r){var o=r.query,i=e.getSearchCursor(o,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):r.word&&e.setSelection(r.from,r.to))}}a(u,"selectBetweenBrackets"),t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},a(h,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var o=t.scanForBracket(r.head,1,h(t.getTokenTypeAt(r.head)));if(o&&0!=e.cmpPos(o.pos,r.head))return o.pos;var i=t.scanForBracket(r.head,-1,h(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.firstLine()-1,l=[],a=0;a<r.length;a++){var s=r[a],c=s.from().line-1,f=s.to().line;l.push({anchor:n(s.anchor.line-1,s.anchor.ch),head:n(s.head.line-1,s.head.ch)}),0!=s.to().ch||s.empty()||--f,c>i?o.push(c,f):o.length&&(o[o.length-1]=f),i=f}t.operation((function(){for(var e=0;e<o.length;e+=2){var r=o[e],i=o[e+1],a=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(i,0),null,"+swapLine")}t.setSelections(l),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.lastLine()+1,l=r.length-1;l>=0;l--){var a=r[l],s=a.to().line+1,c=a.from().line;0!=a.to().ch||a.empty()||s--,s<i?o.push(s,c):o.length&&(o[o.length-1]=c),i=c}t.operation((function(){for(var e=o.length-2;e>=0;e-=2){var r=o[e],i=o[e+1],l=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(l+"\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],o=0;o<t.length;o++){for(var i=t[o],l=i.from(),a=l.line,s=i.to().line;o<t.length-1&&t[o+1].from().line==s;)s=t[++o].to().line;r.push({start:a,end:s,anchor:!i.empty()&&l})}e.operation((function(){for(var t=0,o=[],i=0;i<r.length;i++){for(var l,a=r[i],s=a.anchor&&n(a.anchor.line-t,a.anchor.ch),c=a.start;c<=a.end;c++){var f=c-t;c==a.end&&(l=n(f,e.getLine(f).length+1)),f<e.lastLine()&&(e.replaceRange(" ",n(f),n(f+1,/^\s*/.exec(e.getLine(f+1))[0].length)),++t)}o.push({anchor:s||l,head:l})}e.setSelections(o,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var o=e.listSelections()[r];o.empty()?e.replaceRange(e.getLine(o.head.line)+"\n",n(o.head.line,0)):e.replaceRange(e.getRange(o.from(),o.to()),o.from())}e.scrollIntoView()}))},a(d,"sortLines"),t.sortLines=function(e){d(e,!0,1)},t.reverseSortLines=function(e){d(e,!0,-1)},t.sortLinesInsensitive=function(e){d(e,!1,1)},t.reverseSortLinesInsensitive=function(e){d(e,!1,-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 o=t[r].from(),i=t[r].to(),l=t[r].empty()?e.findMarksAt(o):e.findMarks(o,i),a=0;a<l.length;a++)if(l[a].sublimeBookmark){l[a].clear();for(var s=0;s<n.length;s++)n[s]==l[a]&&n.splice(s--,1);break}a==l.length&&n.push(e.markText(o,i,{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 o=t[r].find();o?n.push({anchor:o.from,head:o.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},a(g,"modifyWordOrSelection"),t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),o=t.getOption("indentUnit"),i=r.length-1;i>=0;i--){var l=r[i].head,a=t.getRange({line:l.line,ch:0},l),s=e.countColumn(a,null,t.getOption("tabSize")),c=t.findPosH(l,-1,"char",!1);if(a&&!/\S/.test(a)&&s%o==0){var f=new n(l.line,e.findColumn(a,s-o,o));f.ch!=l.ch&&(c=f)}t.replaceRange("",c,l,"+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){g(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){g(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(),o=n;if(e.cmpPos(r,o)>0){var i=o;o=r,r=i}t.state.sublimeKilled=t.getRange(r,o),t.replaceRange("",r,o)}},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)},a(m,"getTarget"),a(p,"findAndGoTo"),t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],o=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&o++;e.setSelections(r,o)}};var C=e.keyMap;C.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","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","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-1":"foldAll","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(C.macSublime),C.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","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","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-1":"foldAll","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(C.pcSublime);var v=C.default==C.macDefault;C.sublime=v?C.macSublime:C.pcSublime}(r.a.exports,o.a.exports,i.a.exports);var f=s({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[75,578,866],{34075:(e,t,n)=>{n.r(t),n.d(t,{s:()=>f});var r=n(38950),o=n(98866),i=n(91578),l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(s,"_mergeNamespaces");var c={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,o){if(o<0&&0==r.ch)return t.clipPos(n(r.line-1));var i=t.getLine(r.line);if(o>0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var l,a="start",s=r.ch,c=s,f=o<0?0:i.length,u=0;c!=f;c+=o,u++){var h=i.charAt(o<0?c-1:c),d="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==d&&h.toUpperCase()==h&&(d="W"),"start"==a)"o"!=d?(a="in",l=d):s=c+o;else if("in"==a&&l!=d){if("w"==l&&"W"==d&&o<0&&c--,"W"==l&&"w"==d&&o>0){if(c==s+1){l="w";continue}c--}break}}return n(r.line,c)}function o(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,l=0;l<e;l++){var a=t.listSelections()[l].head;if(!(a.line<=i)){var s=n(a.line+(r?0:1),0);t.replaceRange("\n",s,null,"+insertLine"),t.indentLine(s.line,null,!0),o.push({head:s,anchor:s}),i=a.line+1}}t.setSelections(o)})),t.execCommand("indentAuto")}function l(t,r){for(var o=r.ch,i=o,l=t.getLine(r.line);o&&e.isWordChar(l.charAt(o-1));)--o;for(;i<l.length&&e.isWordChar(l.charAt(i));)++i;return{from:n(r.line,o),to:n(r.line,i),word:l.slice(o,i)}}function s(e,t){for(var n=e.listSelections(),r=[],o=0;o<n.length;o++){var i=n[o],l=e.findPosV(i.anchor,t,"line",i.anchor.goalColumn),a=e.findPosV(i.head,t,"line",i.head.goalColumn);l.goalColumn=null!=i.anchor.goalColumn?i.anchor.goalColumn:e.cursorCoords(i.anchor,"div").left,a.goalColumn=null!=i.head.goalColumn?i.head.goalColumn:e.cursorCoords(i.head,"div").left;var s={anchor:l,head:a};r.push(i),r.push(s)}e.setSelections(r)}function c(t,n,r){for(var o=0;o<t.length;o++)if(0==e.cmpPos(t[o].from(),n)&&0==e.cmpPos(t[o].to(),r))return!0;return!1}a(r,"findPosSubword"),a(o,"moveSubword"),t.goSubwordLeft=function(e){o(e,-1)},t.goSubwordRight=function(e){o(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=[],o=0;o<t.length;o++)for(var i=t[o].from(),l=t[o].to(),a=i.line;a<=l.line;++a)l.line>i.line&&a==l.line&&0==l.ch||r.push({anchor:a==i.line?i:n(a,0),head:a==l.line?l:n(a)});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=[],o=0;o<t.length;o++){var i=t[o];r.push({anchor:n(i.from().line,0),head:n(i.to().line+1,0)})}e.setSelections(r)},a(i,"insertLine"),t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},a(l,"wordAt"),t.selectNextOccurrence=function(t){var r=t.getCursor("from"),o=t.getCursor("to"),i=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,o)){var a=l(t,r);if(!a.word)return;t.setSelection(a.from,a.to),i=!0}else{var s=t.getRange(r,o),f=i?new RegExp("\\b"+s+"\\b"):s,u=t.getSearchCursor(f,o),h=u.findNext();if(h||(h=(u=t.getSearchCursor(f,n(t.firstLine(),0))).findNext()),!h||c(t.listSelections(),u.from(),u.to()))return;t.addSelection(u.from(),u.to())}i&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),o=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,o)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=o})))},a(s,"addCursorToSelection"),t.addCursorToPrevLine=function(e){s(e,-1)},t.addCursorToNextLine=function(e){s(e,1)},a(c,"isSelectedRange");var f="(){}[]";function u(t){for(var r=t.listSelections(),o=[],i=0;i<r.length;i++){var l=r[i],a=l.head,s=t.scanForBracket(a,-1);if(!s)return!1;for(;;){var c=t.scanForBracket(a,1);if(!c)return!1;if(c.ch==f.charAt(f.indexOf(s.ch)+1)){var u=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(u,l.from())||0!=e.cmpPos(c.pos,l.to())){o.push({anchor:u,head:c.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}a=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(o),!0}function h(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function d(t,r,o){if(t.isReadOnly())return e.Pass;for(var i,l=t.listSelections(),a=[],s=0;s<l.length;s++){var c=l[s];if(!c.empty()){for(var f=c.from().line,u=c.to().line;s<l.length-1&&l[s+1].from().line==u;)u=l[++s].to().line;l[s].to().ch||u--,a.push(f,u)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],l=0;l<a.length;l+=2){var s=a[l],c=a[l+1],f=n(s,0),u=n(c),h=t.getRange(f,u,!1);r?h.sort((function(e,t){return e<t?-o:e==t?0:o})):h.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-o:e==t?0:o})),t.replaceRange(h,f,u),i&&e.push({anchor:f,head:n(c+1,0)})}i&&t.setSelections(e,0)}))}function g(t,n){t.operation((function(){for(var r=t.listSelections(),o=[],i=[],a=0;a<r.length;a++)(c=r[a]).empty()?(o.push(a),i.push("")):i.push(n(t.getRange(c.from(),c.to())));var s;for(t.replaceSelections(i,"around","case"),a=o.length-1;a>=0;a--){var c=r[o[a]];if(!(s&&e.cmpPos(c.head,s)>0)){var f=l(t,c.head);s=f.from,t.replaceRange(n(f.word),f.from,f.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=l(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function p(e,t){var r=m(e);if(r){var o=r.query,i=e.getSearchCursor(o,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):r.word&&e.setSelection(r.from,r.to))}}a(u,"selectBetweenBrackets"),t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},a(h,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var o=t.scanForBracket(r.head,1,h(t.getTokenTypeAt(r.head)));if(o&&0!=e.cmpPos(o.pos,r.head))return o.pos;var i=t.scanForBracket(r.head,-1,h(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.firstLine()-1,l=[],a=0;a<r.length;a++){var s=r[a],c=s.from().line-1,f=s.to().line;l.push({anchor:n(s.anchor.line-1,s.anchor.ch),head:n(s.head.line-1,s.head.ch)}),0!=s.to().ch||s.empty()||--f,c>i?o.push(c,f):o.length&&(o[o.length-1]=f),i=f}t.operation((function(){for(var e=0;e<o.length;e+=2){var r=o[e],i=o[e+1],a=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(i,0),null,"+swapLine")}t.setSelections(l),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.lastLine()+1,l=r.length-1;l>=0;l--){var a=r[l],s=a.to().line+1,c=a.from().line;0!=a.to().ch||a.empty()||s--,s<i?o.push(s,c):o.length&&(o[o.length-1]=c),i=c}t.operation((function(){for(var e=o.length-2;e>=0;e-=2){var r=o[e],i=o[e+1],l=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(l+"\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],o=0;o<t.length;o++){for(var i=t[o],l=i.from(),a=l.line,s=i.to().line;o<t.length-1&&t[o+1].from().line==s;)s=t[++o].to().line;r.push({start:a,end:s,anchor:!i.empty()&&l})}e.operation((function(){for(var t=0,o=[],i=0;i<r.length;i++){for(var l,a=r[i],s=a.anchor&&n(a.anchor.line-t,a.anchor.ch),c=a.start;c<=a.end;c++){var f=c-t;c==a.end&&(l=n(f,e.getLine(f).length+1)),f<e.lastLine()&&(e.replaceRange(" ",n(f),n(f+1,/^\s*/.exec(e.getLine(f+1))[0].length)),++t)}o.push({anchor:s||l,head:l})}e.setSelections(o,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var o=e.listSelections()[r];o.empty()?e.replaceRange(e.getLine(o.head.line)+"\n",n(o.head.line,0)):e.replaceRange(e.getRange(o.from(),o.to()),o.from())}e.scrollIntoView()}))},a(d,"sortLines"),t.sortLines=function(e){d(e,!0,1)},t.reverseSortLines=function(e){d(e,!0,-1)},t.sortLinesInsensitive=function(e){d(e,!1,1)},t.reverseSortLinesInsensitive=function(e){d(e,!1,-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 o=t[r].from(),i=t[r].to(),l=t[r].empty()?e.findMarksAt(o):e.findMarks(o,i),a=0;a<l.length;a++)if(l[a].sublimeBookmark){l[a].clear();for(var s=0;s<n.length;s++)n[s]==l[a]&&n.splice(s--,1);break}a==l.length&&n.push(e.markText(o,i,{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 o=t[r].find();o?n.push({anchor:o.from,head:o.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},a(g,"modifyWordOrSelection"),t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),o=t.getOption("indentUnit"),i=r.length-1;i>=0;i--){var l=r[i].head,a=t.getRange({line:l.line,ch:0},l),s=e.countColumn(a,null,t.getOption("tabSize")),c=t.findPosH(l,-1,"char",!1);if(a&&!/\S/.test(a)&&s%o==0){var f=new n(l.line,e.findColumn(a,s-o,o));f.ch!=l.ch&&(c=f)}t.replaceRange("",c,l,"+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){g(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){g(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(),o=n;if(e.cmpPos(r,o)>0){var i=o;o=r,r=i}t.state.sublimeKilled=t.getRange(r,o),t.replaceRange("",r,o)}},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)},a(m,"getTarget"),a(p,"findAndGoTo"),t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],o=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&o++;e.setSelections(r,o)}};var C=e.keyMap;C.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","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","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-1":"foldAll","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(C.macSublime),C.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","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","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-1":"foldAll","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(C.pcSublime);var v=C.default==C.macDefault;C.sublime=v?C.macSublime:C.pcSublime}(r.a.exports,o.a.exports,i.a.exports);var f=s({__proto__:null,default:c.exports},[c.exports])},91578:(e,t,n)=>{n.r(t),n.d(t,{a:()=>a,m:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function l(e,t,i){var l=e.getLineHandle(t.line),s=t.ch-1,c=i&&i.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var f=o(i),u=!c&&s>=0&&f.test(l.text.charAt(s))&&r[l.text.charAt(s)]||f.test(l.text.charAt(s+1))&&r[l.text.charAt(++s)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(i&&i.strict&&h>0!=(s==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,s+1)),g=a(e,n(t.line,s+(h>0?1:0)),h,d,i);return null==g?null:{from:n(t.line,s),to:g&&g.pos,match:g&&g.ch==u.charAt(0),forward:h>0}}function a(e,t,i,l,a){for(var s=a&&a.maxScanLineLength||1e4,c=a&&a.maxScanLines||1e3,f=[],u=o(a),h=i>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=h;d+=i){var g=e.getLine(d);if(g){var m=i>0?0:g.length-1,p=i>0?g.length:-1;if(!(g.length>s))for(d==t.line&&(m=t.ch-(i<0?1:0));m!=p;m+=i){var C=g.charAt(m);if(u.test(C)&&(void 0===l||(e.getTokenTypeAt(n(d,m+1))||"")==(l||""))){var v=r[C];if(v&&">"==v.charAt(1)==i>0)f.push(C);else{if(!f.length)return{pos:n(d,m),ch:C};f.pop()}}}}}return d-i!=(i>0?e.lastLine():e.firstLine())&&null}function s(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=o&&o.highlightNonMatching,c=[],f=e.listSelections(),u=0;u<f.length;u++){var h=f[u].empty()&&l(e,f[u].head,o);if(h&&(h.match||!1!==s)&&e.getLine(h.from.line).length<=a){var d=h.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";c.push(e.markText(h.from,n(h.from.line,h.from.ch+1),{className:d})),h.to&&e.getLine(h.to.line).length<=a&&c.push(e.markText(h.to,n(h.to.line,h.to.ch+1),{className:d}))}}if(c.length){t&&e.state.focused&&e.focus();var g=i((function(){e.operation((function(){for(var e=0;e<c.length;e++)c[e].clear()}))}),"clear");if(!r)return g;setTimeout(g,800)}}function c(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function f(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}i(o,"bracketRegex"),i(l,"findMatchingBracket"),i(a,"scanForBracket"),i(s,"matchBrackets"),i(c,"doMatchBrackets"),i(f,"clearHighlighted"),e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",c),t.off("focus",c),t.off("blur",f),f(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",c),t.on("focus",c),t.on("blur",f))})),e.defineExtension("matchBrackets",(function(){s(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),l(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(r.a.exports);var s=l({__proto__:null,default:a.exports},[a.exports])},98866:(e,t,n)=>{n.r(t),n.d(t,{a:()=>a,s:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t,n,r=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function l(e,t){for(var n=o(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 a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=l(t,"g");for(var o=n.line,i=n.ch,a=e.lastLine();o<=a;o++,i=0){t.lastIndex=i;var s=e.getLine(o),c=t.exec(s);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!a(t))return s(e,t,n);t=l(t,"gm");for(var o,i=1,c=n.line,f=e.lastLine();c<=f;){for(var u=0;u<i&&!(c>f);u++){var h=e.getLine(c++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var d=t.exec(o);if(d){var g=o.slice(0,d.index).split("\n"),m=d[0].split("\n"),p=n.line+g.length-1,C=g[g.length-1].length;return{from:r(p,C),to:r(p+m.length-1,1==m.length?C+m[0].length:m[m.length-1].length),match:d}}}}function f(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var l=i.index+i[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function u(e,t,n){t=l(t,"g");for(var o=n.line,i=n.ch,a=e.firstLine();o>=a;o--,i=-1){var s=e.getLine(o),c=f(s,t,i<0?0:s.length-i);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function h(e,t,n){if(!a(t))return u(e,t,n);t=l(t,"gm");for(var o,i=1,s=e.getLine(n.line).length-n.ch,c=n.line,h=e.firstLine();c>=h;){for(var d=0;d<i&&c>=h;d++){var g=e.getLine(c--);o=null==o?g:g+"\n"+o}i*=2;var m=f(o,t,s);if(m){var p=o.slice(0,m.index).split("\n"),C=m[0].split("\n"),v=c+p.length,S=p[p.length-1].length;return{from:r(v,S),to:r(v+C.length-1,1==C.length?S+C[0].length:C[C.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var l=o+i>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?i=l:o=l+1}}function g(e,o,i,l){if(!o.length)return null;var a=l?t:n,s=a(o).split(/\r|\n\r?/);e:for(var c=i.line,f=i.ch,u=e.lastLine()+1-s.length;c<=u;c++,f=0){var h=e.getLine(c).slice(f),g=a(h);if(1==s.length){var m=g.indexOf(s[0]);if(-1==m)continue e;return i=d(h,g,m,a)+f,{from:r(c,d(h,g,m,a)+f),to:r(c,d(h,g,m+s[0].length,a)+f)}}var p=g.length-s[0].length;if(g.slice(p)==s[0]){for(var C=1;C<s.length-1;C++)if(a(e.getLine(c+C))!=s[C])continue e;var v=e.getLine(c+s.length-1),S=a(v),k=s[s.length-1];if(S.slice(0,k.length)==k)return{from:r(c,d(h,g,p,a)+f),to:r(c+s.length-1,d(v,S,k.length,a))}}}}function m(e,o,i,l){if(!o.length)return null;var a=l?t:n,s=a(o).split(/\r|\n\r?/);e:for(var c=i.line,f=i.ch,u=e.firstLine()-1+s.length;c>=u;c--,f=-1){var h=e.getLine(c);f>-1&&(h=h.slice(0,f));var g=a(h);if(1==s.length){var m=g.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,d(h,g,m,a)),to:r(c,d(h,g,m+s[0].length,a))}}var p=s[s.length-1];if(g.slice(0,p.length)==p){var C=1;for(i=c-s.length+1;C<s.length-1;C++)if(a(e.getLine(i+C))!=s[C])continue e;var v=e.getLine(c+1-s.length),S=a(v);if(S.slice(S.length-s[0].length)==s[0])return{from:r(c+1-s.length,d(v,S,v.length-s[0].length,a)),to:r(c,d(h,g,p.length,a))}}}}function p(e,t,n,o){var i;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?i=o.caseFold:(i=o,o=null),"string"==typeof t?(null==i&&(i=!1),this.matches=function(n,r){return(n?m:g)(e,t,r,i)}):(t=l(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?h:c)(e,t,r)})}i(o,"regexpFlags"),i(l,"ensureFlags"),i(a,"maybeMultiline"),i(s,"searchRegexpForward"),i(c,"searchRegexpForwardMultiline"),i(f,"lastMatchIn"),i(u,"searchRegexpBackward"),i(h,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=i((function(e){return e.normalize("NFD").toLowerCase()}),"doFold"),n=i((function(e){return e.normalize("NFD")}),"noFold")):(t=i((function(e){return e.toLowerCase()}),"doFold"),n=i((function(e){return e}),"noFold")),i(d,"adjustPos"),i(g,"searchStringForward"),i(m,"searchStringBackward"),i(p,"SearchCursor"),p.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,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 o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new p(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new p(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var s=l({__proto__:null,default:a.exports},[a.exports])}}]);
|