parse-dashboard 8.2.0-alpha.11 → 8.2.0-alpha.13
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/public/bundles/120.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/183.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/19.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/221.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/372.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/448.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/573.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/578.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/584.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/629.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/643.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/647.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/701.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/729.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/75.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/753.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/817.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/866.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/874.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/881.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/97.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/976.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 +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[120,844,866],{71120:(e,t,n)=>{n.d(t,{a:()=>c,d:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(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(a,"_mergeNamespaces");var c={exports:{}};!function(e){function t(t,n,r){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}i(t,"dialogDiv"),i(n,"closeNotification"),e.defineExtension("openDialog",(function(r,o,a){a||(a={}),n(this,null);var c=t(this,r,a.bottom),s=!1,l=this;function u(t){if("string"==typeof t)h.value=t;else{if(s)return;s=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),l.focus(),a.onClose&&a.onClose(c)}}i(u,"close");var f,h=c.getElementsByTagName("input")[0];return h?(h.focus(),a.value&&(h.value=a.value,!1!==a.selectValueOnOpen&&h.select()),a.onInput&&e.on(h,"input",(function(e){a.onInput(e,h.value,u)})),a.onKeyUp&&e.on(h,"keyup",(function(e){a.onKeyUp(e,h.value,u)})),e.on(h,"keydown",(function(t){a&&a.onKeyDown&&a.onKeyDown(t,h.value,u)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(h.blur(),e.e_stop(t),u()),13==t.keyCode&&o(h.value,t))})),!1!==a.closeOnBlur&&e.on(c,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(f=c.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){u(),l.focus()})),!1!==a.closeOnBlur&&e.on(f,"blur",u),f.focus()),u})),e.defineExtension("openConfirm",(function(r,o,a){n(this,null);var c=t(this,r,a&&a.bottom),s=c.getElementsByTagName("button"),l=!1,u=this,f=1;function h(){l||(l=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),u.focus())}i(h,"close"),s[0].focus();for(var p=0;p<s.length;++p){var g=s[p];!function(t){e.on(g,"click",(function(n){e.e_preventDefault(n),h(),t&&t(u)}))}(o[p]),e.on(g,"blur",(function(){--f,setTimeout((function(){f<=0&&h()}),200)})),e.on(g,"focus",(function(){++f}))}})),e.defineExtension("openNotification",(function(r,o){n(this,u);var a,c=t(this,r,o&&o.bottom),s=!1,l=o&&void 0!==o.duration?o.duration:5e3;function u(){s||(s=!0,clearTimeout(a),e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c))}return i(u,"close"),e.on(c,"click",(function(t){e.e_preventDefault(t),u()})),l&&(a=setTimeout(u,l)),u}))}(r.a.exports);var s=a({__proto__:null,default:c.exports},[c.exports])},71844:(e,t,n)=>{n.d(t,{s:()=>u});var r=n(38950),o=n(98866),i=n(71120),a=Object.defineProperty,c=(e,t)=>a(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"}))}c(s,"_mergeNamespaces");var l={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:o(t),multiline:!0})}function a(e,t,n,r,o){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:o,bottom:e.options.search.bottom})}function s(e,t,n,r,o){e.openDialog?e.openDialog(t,o,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(n,r))}function l(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function f(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function h(e,n,r){n.queryText=r,n.query=f(r),e.removeOverlay(n.overlay,o(n.query)),n.overlay=t(n.query,o(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,o(n.query)))}function p(t,n,o,i){var l=r(t);if(l.query)return g(t,n);var u=t.getSelection()||l.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),o&&t.openDialog){var f=null,p=c((function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(h(t,l,n),l.posFrom=l.posTo=t.getCursor()),f&&(f.style.opacity=1),g(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),u,p,(function(n,o){var i=e.keyName(n),a=t.getOption("extraKeys"),c=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==c||"findPrev"==c||"findPersistentNext"==c||"findPersistentPrev"==c?(e.e_stop(n),h(t,r(t),o),t.execCommand(c)):"find"!=c&&"findPersistent"!=c||(e.e_stop(n),p(o,n))})),i&&u&&(h(t,l,u),g(t,n))}else s(t,v(t),"Search for:",u,(function(e){e&&!l.query&&t.operation((function(){h(t,l,e),l.posFrom=l.posTo=t.getCursor(),g(t,n)}))}))}function g(t,n,o){t.operation((function(){var a=r(t),c=i(t,a.query,n?a.posFrom:a.posTo);(c.find(n)||(c=i(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(c.from(),c.to()),t.scrollIntoView({from:c.from(),to:c.to()},20),a.posFrom=c.from(),a.posTo=c.to(),o&&o(c.from(),c.to()))}))}function d(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var o=2;o<arguments.length;o++){var i=arguments[o];n.appendChild("string"==typeof i?document.createTextNode(i):i)}return n}function v(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return m("",null," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function x(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function b(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",m("button",{},e.phrase("Yes"))," ",m("button",{},e.phrase("No"))," ",m("button",{},e.phrase("All"))," ",m("button",{},e.phrase("Stop")))}function C(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function O(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,o=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=m("",null,m("span",{className:"CodeMirror-search-label"},o),y(e));s(e,a,o,n,(function(n){n&&(n=f(n),s(e,x(e),e.phrase("Replace with:"),"",(function(r){if(r=u(r),t)C(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),a=c((function(){var t,c=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||c&&o.from().line==c.line&&o.from().ch==c.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),l(e,b(e),e.phrase("Replace?"),[function(){s(t)},a,function(){C(e,n,r)}]))}),"advance"),s=c((function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),a()}),"doReplace");a()}})))}))}}e.defineOption("search",{bottom:!1}),c(t,"searchOverlay"),c(n,"SearchState"),c(r,"getSearchState"),c(o,"queryCaseInsensitive"),c(i,"getSearchCursor"),c(a,"persistentDialog"),c(s,"dialog"),c(l,"confirmDialog"),c(u,"parseString"),c(f,"parseQuery"),c(h,"startSearch"),c(p,"doSearch"),c(g,"findNext"),c(d,"clearSearch"),c(m,"el"),c(v,"getQueryDialog"),c(y,"getReplaceQueryDialog"),c(x,"getReplacementQueryDialog"),c(b,"getDoReplaceConfirm"),c(C,"replaceAll"),c(O,"replace"),e.commands.find=function(e){d(e),p(e)},e.commands.findPersistent=function(e){d(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=d,e.commands.replace=O,e.commands.replaceAll=function(e){O(e,!0)}}(r.a.exports,o.a.exports,i.a.exports);var u=s({__proto__:null,default:l.exports},[l.exports])},98866:(e,t,n)=>{n.d(t,{a:()=>c,s:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(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(a,"_mergeNamespaces");var c={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 a(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 c(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=a(t,"g");for(var o=n.line,i=n.ch,c=e.lastLine();o<=c;o++,i=0){t.lastIndex=i;var s=e.getLine(o),l=t.exec(s);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function l(e,t,n){if(!c(t))return s(e,t,n);t=a(t,"gm");for(var o,i=1,l=n.line,u=e.lastLine();l<=u;){for(var f=0;f<i&&!(l>u);f++){var h=e.getLine(l++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var p=t.exec(o);if(p){var g=o.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=n.line+g.length-1,v=g[g.length-1].length;return{from:r(m,v),to:r(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function u(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function f(e,t,n){t=a(t,"g");for(var o=n.line,i=n.ch,c=e.firstLine();o>=c;o--,i=-1){var s=e.getLine(o),l=u(s,t,i<0?0:s.length-i);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function h(e,t,n){if(!c(t))return f(e,t,n);t=a(t,"gm");for(var o,i=1,s=e.getLine(n.line).length-n.ch,l=n.line,h=e.firstLine();l>=h;){for(var p=0;p<i&&l>=h;p++){var g=e.getLine(l--);o=null==o?g:g+"\n"+o}i*=2;var d=u(o,t,s);if(d){var m=o.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=l+m.length,x=m[m.length-1].length;return{from:r(y,x),to:r(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function p(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 a=o+i>>1,c=r(e.slice(0,a)).length;if(c==n)return a;c>n?i=a:o=a+1}}function g(e,o,i,a){if(!o.length)return null;var c=a?t:n,s=c(o).split(/\r|\n\r?/);e:for(var l=i.line,u=i.ch,f=e.lastLine()+1-s.length;l<=f;l++,u=0){var h=e.getLine(l).slice(u),g=c(h);if(1==s.length){var d=g.indexOf(s[0]);if(-1==d)continue e;return i=p(h,g,d,c)+u,{from:r(l,p(h,g,d,c)+u),to:r(l,p(h,g,d+s[0].length,c)+u)}}var m=g.length-s[0].length;if(g.slice(m)==s[0]){for(var v=1;v<s.length-1;v++)if(c(e.getLine(l+v))!=s[v])continue e;var y=e.getLine(l+s.length-1),x=c(y),b=s[s.length-1];if(x.slice(0,b.length)==b)return{from:r(l,p(h,g,m,c)+u),to:r(l+s.length-1,p(y,x,b.length,c))}}}}function d(e,o,i,a){if(!o.length)return null;var c=a?t:n,s=c(o).split(/\r|\n\r?/);e:for(var l=i.line,u=i.ch,f=e.firstLine()-1+s.length;l>=f;l--,u=-1){var h=e.getLine(l);u>-1&&(h=h.slice(0,u));var g=c(h);if(1==s.length){var d=g.lastIndexOf(s[0]);if(-1==d)continue e;return{from:r(l,p(h,g,d,c)),to:r(l,p(h,g,d+s[0].length,c))}}var m=s[s.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=l-s.length+1;v<s.length-1;v++)if(c(e.getLine(i+v))!=s[v])continue e;var y=e.getLine(l+1-s.length),x=c(y);if(x.slice(x.length-s[0].length)==s[0])return{from:r(l+1-s.length,p(y,x,y.length-s[0].length,c)),to:r(l,p(h,g,m.length,c))}}}}function m(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?d:g)(e,t,r,i)}):(t=a(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?f:s)(e,t,r)}:this.matches=function(n,r){return(n?h:l)(e,t,r)})}i(o,"regexpFlags"),i(a,"ensureFlags"),i(c,"maybeMultiline"),i(s,"searchRegexpForward"),i(l,"searchRegexpForwardMultiline"),i(u,"lastMatchIn"),i(f,"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(p,"adjustPos"),i(g,"searchStringForward"),i(d,"searchStringBackward"),i(m,"SearchCursor"),m.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 m(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new m(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=a({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[120,844,866],{71120(e,t,n){n.d(t,{a:()=>c,d:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(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(a,"_mergeNamespaces");var c={exports:{}};!function(e){function t(t,n,r){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}i(t,"dialogDiv"),i(n,"closeNotification"),e.defineExtension("openDialog",function(r,o,a){a||(a={}),n(this,null);var c=t(this,r,a.bottom),s=!1,l=this;function u(t){if("string"==typeof t)h.value=t;else{if(s)return;s=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),l.focus(),a.onClose&&a.onClose(c)}}i(u,"close");var f,h=c.getElementsByTagName("input")[0];return h?(h.focus(),a.value&&(h.value=a.value,!1!==a.selectValueOnOpen&&h.select()),a.onInput&&e.on(h,"input",function(e){a.onInput(e,h.value,u)}),a.onKeyUp&&e.on(h,"keyup",function(e){a.onKeyUp(e,h.value,u)}),e.on(h,"keydown",function(t){a&&a.onKeyDown&&a.onKeyDown(t,h.value,u)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(h.blur(),e.e_stop(t),u()),13==t.keyCode&&o(h.value,t))}),!1!==a.closeOnBlur&&e.on(c,"focusout",function(e){null!==e.relatedTarget&&u()})):(f=c.getElementsByTagName("button")[0])&&(e.on(f,"click",function(){u(),l.focus()}),!1!==a.closeOnBlur&&e.on(f,"blur",u),f.focus()),u}),e.defineExtension("openConfirm",function(r,o,a){n(this,null);var c=t(this,r,a&&a.bottom),s=c.getElementsByTagName("button"),l=!1,u=this,f=1;function h(){l||(l=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),u.focus())}i(h,"close"),s[0].focus();for(var p=0;p<s.length;++p){var g=s[p];(function(t){e.on(g,"click",function(n){e.e_preventDefault(n),h(),t&&t(u)})})(o[p]),e.on(g,"blur",function(){--f,setTimeout(function(){f<=0&&h()},200)}),e.on(g,"focus",function(){++f})}}),e.defineExtension("openNotification",function(r,o){n(this,u);var a,c=t(this,r,o&&o.bottom),s=!1,l=o&&void 0!==o.duration?o.duration:5e3;function u(){s||(s=!0,clearTimeout(a),e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c))}return i(u,"close"),e.on(c,"click",function(t){e.e_preventDefault(t),u()}),l&&(a=setTimeout(u,l)),u})}(r.a.exports);var s=a({__proto__:null,default:c.exports},[c.exports])},71844(e,t,n){n.d(t,{s:()=>u});var r=n(38950),o=n(98866),i=n(71120),a=Object.defineProperty,c=(e,t)=>a(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"}))}c(s,"_mergeNamespaces");var l={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:o(t),multiline:!0})}function a(e,t,n,r,o){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:o,bottom:e.options.search.bottom})}function s(e,t,n,r,o){e.openDialog?e.openDialog(t,o,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(n,r))}function l(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function f(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function h(e,n,r){n.queryText=r,n.query=f(r),e.removeOverlay(n.overlay,o(n.query)),n.overlay=t(n.query,o(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,o(n.query)))}function p(t,n,o,i){var l=r(t);if(l.query)return g(t,n);var u=t.getSelection()||l.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),o&&t.openDialog){var f=null,p=c(function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(h(t,l,n),l.posFrom=l.posTo=t.getCursor()),f&&(f.style.opacity=1),g(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)}))},"searchNext");a(t,v(t),u,p,function(n,o){var i=e.keyName(n),a=t.getOption("extraKeys"),c=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==c||"findPrev"==c||"findPersistentNext"==c||"findPersistentPrev"==c?(e.e_stop(n),h(t,r(t),o),t.execCommand(c)):"find"!=c&&"findPersistent"!=c||(e.e_stop(n),p(o,n))}),i&&u&&(h(t,l,u),g(t,n))}else s(t,v(t),"Search for:",u,function(e){e&&!l.query&&t.operation(function(){h(t,l,e),l.posFrom=l.posTo=t.getCursor(),g(t,n)})})}function g(t,n,o){t.operation(function(){var a=r(t),c=i(t,a.query,n?a.posFrom:a.posTo);(c.find(n)||(c=i(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(c.from(),c.to()),t.scrollIntoView({from:c.from(),to:c.to()},20),a.posFrom=c.from(),a.posTo=c.to(),o&&o(c.from(),c.to()))})}function d(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var o=2;o<arguments.length;o++){var i=arguments[o];n.appendChild("string"==typeof i?document.createTextNode(i):i)}return n}function v(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return m("",null," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function x(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function b(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",m("button",{},e.phrase("Yes"))," ",m("button",{},e.phrase("No"))," ",m("button",{},e.phrase("All"))," ",m("button",{},e.phrase("Stop")))}function C(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function O(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,o=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=m("",null,m("span",{className:"CodeMirror-search-label"},o),y(e));s(e,a,o,n,function(n){n&&(n=f(n),s(e,x(e),e.phrase("Replace with:"),"",function(r){if(r=u(r),t)C(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),a=c(function(){var t,c=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||c&&o.from().line==c.line&&o.from().ch==c.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),l(e,b(e),e.phrase("Replace?"),[function(){s(t)},a,function(){C(e,n,r)}]))},"advance"),s=c(function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),a()},"doReplace");a()}}))})}}e.defineOption("search",{bottom:!1}),c(t,"searchOverlay"),c(n,"SearchState"),c(r,"getSearchState"),c(o,"queryCaseInsensitive"),c(i,"getSearchCursor"),c(a,"persistentDialog"),c(s,"dialog"),c(l,"confirmDialog"),c(u,"parseString"),c(f,"parseQuery"),c(h,"startSearch"),c(p,"doSearch"),c(g,"findNext"),c(d,"clearSearch"),c(m,"el"),c(v,"getQueryDialog"),c(y,"getReplaceQueryDialog"),c(x,"getReplacementQueryDialog"),c(b,"getDoReplaceConfirm"),c(C,"replaceAll"),c(O,"replace"),e.commands.find=function(e){d(e),p(e)},e.commands.findPersistent=function(e){d(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=d,e.commands.replace=O,e.commands.replaceAll=function(e){O(e,!0)}}(r.a.exports,o.a.exports,i.a.exports);var u=s({__proto__:null,default:l.exports},[l.exports])},98866(e,t,n){n.d(t,{a:()=>c,s:()=>s});var r=n(38950),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(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(a,"_mergeNamespaces");var c={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 a(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 c(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=a(t,"g");for(var o=n.line,i=n.ch,c=e.lastLine();o<=c;o++,i=0){t.lastIndex=i;var s=e.getLine(o),l=t.exec(s);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function l(e,t,n){if(!c(t))return s(e,t,n);t=a(t,"gm");for(var o,i=1,l=n.line,u=e.lastLine();l<=u;){for(var f=0;f<i&&!(l>u);f++){var h=e.getLine(l++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var p=t.exec(o);if(p){var g=o.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=n.line+g.length-1,v=g[g.length-1].length;return{from:r(m,v),to:r(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function u(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function f(e,t,n){t=a(t,"g");for(var o=n.line,i=n.ch,c=e.firstLine();o>=c;o--,i=-1){var s=e.getLine(o),l=u(s,t,i<0?0:s.length-i);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function h(e,t,n){if(!c(t))return f(e,t,n);t=a(t,"gm");for(var o,i=1,s=e.getLine(n.line).length-n.ch,l=n.line,h=e.firstLine();l>=h;){for(var p=0;p<i&&l>=h;p++){var g=e.getLine(l--);o=null==o?g:g+"\n"+o}i*=2;var d=u(o,t,s);if(d){var m=o.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=l+m.length,x=m[m.length-1].length;return{from:r(y,x),to:r(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function p(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 a=o+i>>1,c=r(e.slice(0,a)).length;if(c==n)return a;c>n?i=a:o=a+1}}function g(e,o,i,a){if(!o.length)return null;var c=a?t:n,s=c(o).split(/\r|\n\r?/);e:for(var l=i.line,u=i.ch,f=e.lastLine()+1-s.length;l<=f;l++,u=0){var h=e.getLine(l).slice(u),g=c(h);if(1==s.length){var d=g.indexOf(s[0]);if(-1==d)continue e;return i=p(h,g,d,c)+u,{from:r(l,p(h,g,d,c)+u),to:r(l,p(h,g,d+s[0].length,c)+u)}}var m=g.length-s[0].length;if(g.slice(m)==s[0]){for(var v=1;v<s.length-1;v++)if(c(e.getLine(l+v))!=s[v])continue e;var y=e.getLine(l+s.length-1),x=c(y),b=s[s.length-1];if(x.slice(0,b.length)==b)return{from:r(l,p(h,g,m,c)+u),to:r(l+s.length-1,p(y,x,b.length,c))}}}}function d(e,o,i,a){if(!o.length)return null;var c=a?t:n,s=c(o).split(/\r|\n\r?/);e:for(var l=i.line,u=i.ch,f=e.firstLine()-1+s.length;l>=f;l--,u=-1){var h=e.getLine(l);u>-1&&(h=h.slice(0,u));var g=c(h);if(1==s.length){var d=g.lastIndexOf(s[0]);if(-1==d)continue e;return{from:r(l,p(h,g,d,c)),to:r(l,p(h,g,d+s[0].length,c))}}var m=s[s.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=l-s.length+1;v<s.length-1;v++)if(c(e.getLine(i+v))!=s[v])continue e;var y=e.getLine(l+1-s.length),x=c(y);if(x.slice(x.length-s[0].length)==s[0])return{from:r(l+1-s.length,p(y,x,y.length-s[0].length,c)),to:r(l,p(h,g,m.length,c))}}}}function m(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?d:g)(e,t,r,i)}):(t=a(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?f:s)(e,t,r)}:this.matches=function(n,r){return(n?h:l)(e,t,r)})}i(o,"regexpFlags"),i(a,"ensureFlags"),i(c,"maybeMultiline"),i(s,"searchRegexpForward"),i(l,"searchRegexpForwardMultiline"),i(u,"lastMatchIn"),i(f,"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(p,"adjustPos"),i(g,"searchStringForward"),i(d,"searchStringBackward"),i(m,"SearchCursor"),m.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 m(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new m(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=a({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[862],{23862
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[862],{23862(t,e,n){n.d(e,{l:()=>l});var o=n(38950),r=Object.defineProperty,i=(t,e)=>r(t,"name",{value:e,configurable:!0});function a(t,e){return e.forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if("default"!==n&&!(n in t)){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces");var s={exports:{}};!function(t){var e="CodeMirror-lint-markers";function n(e,n,o){var r=document.createElement("div");function a(e){if(!r.parentNode)return t.off(document,"mousemove",a);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip cm-s-"+e.options.theme,r.appendChild(o.cloneNode(!0)),e.state.lint.options.selfContain?e.getWrapperElement().appendChild(r):document.body.appendChild(r),i(a,"position"),t.on(document,"mousemove",a),a(n),null!=r.style.opacity&&(r.style.opacity=1),r}function o(t){t.parentNode&&t.parentNode.removeChild(t)}function r(t){t.parentNode&&(null==t.style.opacity&&o(t),t.style.opacity=0,setTimeout(function(){o(t)},600))}function a(e,o,a,s){var l=n(e,o,a);function u(){t.off(s,"mouseout",u),l&&(r(l),l=null)}i(u,"hide");var c=setInterval(function(){if(l)for(var t=s;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){u();break}}if(!l)return clearInterval(c)},400);t.on(s,"mouseout",u)}function s(t,e,n){for(var o in this.marked=[],e instanceof Function&&(e={getAnnotations:e}),e&&!0!==e||(e={}),this.options={},this.linterOptions=e.options||{},l)this.options[o]=l[o];for(var o in e)l.hasOwnProperty(o)?null!=e[o]&&(this.options[o]=e[o]):e.options||(this.linterOptions[o]=e[o]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){M(t,e)},this.waitingFor=0}i(n,"showTooltip"),i(o,"rm"),i(r,"hideTooltip"),i(a,"showTooltipFor"),i(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(t){var n=t.state.lint;n.hasGutter&&t.clearGutter(e),n.options.highlightLines&&c(t);for(var o=0;o<n.marked.length;++o)n.marked[o].clear();n.marked.length=0}function c(t){t.eachLine(function(e){var n=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);n&&t.removeLineClass(e,"wrap",n[0])})}function f(e,n,o,r,i){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+o,r&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=i&&t.on(l,"mouseover",function(t){a(e,t,n,l)}),s}function p(t,e){return"error"==t?t:e}function m(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}function d(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function h(e,n){var o=e.state.lint,r=++o.waitingFor;function a(){r=-1,e.off("change",a)}i(a,"abort"),e.on("change",a),n(e.getValue(),function(n,i){e.off("change",a),o.waitingFor==r&&(i&&n instanceof t&&(n=i),e.operation(function(){v(e,n)}))},o.linterOptions,e)}function g(e){var n=e.state.lint;if(n){var o=n.options,r=o.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(r)if(o.async||r.async)h(e,r);else{var i=r(e.getValue(),n.linterOptions,e);if(!i)return;i.then?i.then(function(t){e.operation(function(){v(e,t)})}):e.operation(function(){v(e,i)})}}}function v(t,n){var o=t.state.lint;if(o){var r=o.options;u(t);for(var i=m(n),a=0;a<i.length;++a){var s=i[a];if(s){var l=[];s=s.filter(function(t){return!(l.indexOf(t.message)>-1)&&l.push(t.message)});for(var c=null,h=o.hasGutter&&document.createDocumentFragment(),g=0;g<s.length;++g){var v=s[g],C=v.severity;C||(C="error"),c=p(c,C),r.formatAnnotation&&(v=r.formatAnnotation(v)),o.hasGutter&&h.appendChild(d(v)),v.to&&o.marked.push(t.markText(v.from,v.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+C,__annotation:v}))}o.hasGutter&&t.setGutterMarker(a,e,f(t,h,c,i[a].length>1,r.tooltips)),r.highlightLines&&t.addLineClass(a,"wrap","CodeMirror-lint-line-"+c)}}r.onUpdateLinting&&r.onUpdateLinting(n,i,t)}}function C(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){g(t)},e.options.delay))}function y(t,e,n){for(var o=n.target||n.srcElement,r=document.createDocumentFragment(),i=0;i<e.length;i++){var s=e[i];r.appendChild(d(s))}a(t,n,r,o)}function M(t,e){var n=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var o=n.getBoundingClientRect(),r=(o.left+o.right)/2,i=(o.top+o.bottom)/2,a=t.findMarksAt(t.coordsChar({left:r,top:i},"client")),s=[],l=0;l<a.length;++l){var u=a[l].__annotation;u&&s.push(u)}s.length&&y(t,s,e)}}i(u,"clearMarks"),i(c,"clearErrorLines"),i(f,"makeMarker"),i(p,"getMaxSeverity"),i(m,"groupByLine"),i(d,"annotationTooltip"),i(h,"lintAsync"),i(g,"startLinting"),i(v,"updateLinting"),i(C,"onChange"),i(y,"popupTooltips"),i(M,"onMouseOver"),t.defineOption("lint",!1,function(n,o,r){if(r&&r!=t.Init&&(u(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",C),t.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),o){for(var i=n.getOption("gutters"),a=!1,l=0;l<i.length;++l)i[l]==e&&(a=!0);var c=n.state.lint=new s(n,o,a);c.options.lintOnChange&&n.on("change",C),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&t.on(n.getWrapperElement(),"mouseover",c.onMouseOver),g(n)}}),t.defineExtension("performLint",function(){g(this)})}(o.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[866],{98866
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[866],{98866(e,t,n){n.d(t,{a:()=>h,s:()=>c});var r=n(38950),i=Object.defineProperty,o=(e,t)=>i(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"}))}o(l,"_mergeNamespaces");var h={exports:{}};!function(e){var t,n,r=e.Pos;function i(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=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function h(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function c(e,t,n){t=l(t,"g");for(var i=n.line,o=n.ch,h=e.lastLine();i<=h;i++,o=0){t.lastIndex=o;var c=e.getLine(i),s=t.exec(c);if(s)return{from:r(i,s.index),to:r(i,s.index+s[0].length),match:s}}}function s(e,t,n){if(!h(t))return c(e,t,n);t=l(t,"gm");for(var i,o=1,s=n.line,a=e.lastLine();s<=a;){for(var f=0;f<o&&!(s>a);f++){var u=e.getLine(s++);i=null==i?u:i+"\n"+u}o*=2,t.lastIndex=n.ch;var g=t.exec(i);if(g){var p=i.slice(0,g.index).split("\n"),d=g[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:g}}}}function a(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var l=o.index+o[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(e,t,n){t=l(t,"g");for(var i=n.line,o=n.ch,h=e.firstLine();i>=h;i--,o=-1){var c=e.getLine(i),s=a(c,t,o<0?0:c.length-o);if(s)return{from:r(i,s.index),to:r(i,s.index+s[0].length),match:s}}}function u(e,t,n){if(!h(t))return f(e,t,n);t=l(t,"gm");for(var i,o=1,c=e.getLine(n.line).length-n.ch,s=n.line,u=e.firstLine();s>=u;){for(var g=0;g<o&&s>=u;g++){var p=e.getLine(s--);i=null==i?p:p+"\n"+i}o*=2;var d=a(i,t,c);if(d){var m=i.slice(0,d.index).split("\n"),v=d[0].split("\n"),x=s+m.length,L=m[m.length-1].length;return{from:r(x,L),to:r(x+v.length-1,1==v.length?L+v[0].length:v[v.length-1].length),match:d}}}}function g(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var l=i+o>>1,h=r(e.slice(0,l)).length;if(h==n)return l;h>n?o=l:i=l+1}}function p(e,i,o,l){if(!i.length)return null;var h=l?t:n,c=h(i).split(/\r|\n\r?/);e:for(var s=o.line,a=o.ch,f=e.lastLine()+1-c.length;s<=f;s++,a=0){var u=e.getLine(s).slice(a),p=h(u);if(1==c.length){var d=p.indexOf(c[0]);if(-1==d)continue e;return o=g(u,p,d,h)+a,{from:r(s,g(u,p,d,h)+a),to:r(s,g(u,p,d+c[0].length,h)+a)}}var m=p.length-c[0].length;if(p.slice(m)==c[0]){for(var v=1;v<c.length-1;v++)if(h(e.getLine(s+v))!=c[v])continue e;var x=e.getLine(s+c.length-1),L=h(x),O=c[c.length-1];if(L.slice(0,O.length)==O)return{from:r(s,g(u,p,m,h)+a),to:r(s+c.length-1,g(x,L,O.length,h))}}}}function d(e,i,o,l){if(!i.length)return null;var h=l?t:n,c=h(i).split(/\r|\n\r?/);e:for(var s=o.line,a=o.ch,f=e.firstLine()-1+c.length;s>=f;s--,a=-1){var u=e.getLine(s);a>-1&&(u=u.slice(0,a));var p=h(u);if(1==c.length){var d=p.lastIndexOf(c[0]);if(-1==d)continue e;return{from:r(s,g(u,p,d,h)),to:r(s,g(u,p,d+c[0].length,h))}}var m=c[c.length-1];if(p.slice(0,m.length)==m){var v=1;for(o=s-c.length+1;v<c.length-1;v++)if(h(e.getLine(o+v))!=c[v])continue e;var x=e.getLine(s+1-c.length),L=h(x);if(L.slice(L.length-c[0].length)==c[0])return{from:r(s+1-c.length,g(x,L,x.length-c[0].length,h)),to:r(s,g(u,p,m.length,h))}}}}function m(e,t,n,i){var o;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 i?o=i.caseFold:(o=i,i=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(n,r){return(n?d:p)(e,t,r,o)}):(t=l(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?f:c)(e,t,r)}:this.matches=function(n,r){return(n?u:s)(e,t,r)})}o(i,"regexpFlags"),o(l,"ensureFlags"),o(h,"maybeMultiline"),o(c,"searchRegexpForward"),o(s,"searchRegexpForwardMultiline"),o(a,"lastMatchIn"),o(f,"searchRegexpBackward"),o(u,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=o(function(e){return e.normalize("NFD").toLowerCase()},"doFold"),n=o(function(e){return e.normalize("NFD")},"noFold")):(t=o(function(e){return e.toLowerCase()},"doFold"),n=o(function(e){return e},"noFold")),o(g,"adjustPos"),o(p,"searchStringForward"),o(d,"searchStringBackward"),o(m,"SearchCursor"),m.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 i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new m(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new m(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(r.a.exports);var c=l({__proto__:null,default:h.exports},[h.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[874],{49181:(e,n,t)=>{t.d(n,{C:()=>i,P:()=>s,R:()=>a});var r=Object.defineProperty,o=(e,n)=>r(e,"name",{value:n,configurable:!0});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let n=this._testNextCharacter(e),t=!1;for(n&&(t=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(e),t=!0;return t},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,n=!0,t=!1)=>{let r=null,o=null;return"string"==typeof e?(o=new RegExp(e,t?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(e),r=null==o?void 0:o[0]),!(null==o||!("string"==typeof e||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos)))&&(n&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),o)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let n=0;if(e&&0!==e.length){const t=e[0];let r=0;for(;t.length>r;)9===t.charCodeAt(r)?n+=2:n++,r++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const n=this._sourceText.charAt(this._pos);let t=!1;return t="string"==typeof e?n===e:e instanceof RegExp?e.test(n):e(n),t}}o(i,"CharacterStream");class a{constructor(e,n){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=n}setStart(e,n){this.start=new s(e,n)}setEnd(e,n){this.end=new s(e,n)}}o(a,"Range");class s{constructor(e,n){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=n}setLine(e){this.line=e}setCharacter(e){this.character=e}}o(s,"Position")},54874:(e,n,t)=>{var r=t(38950),o=t(4405);function i(e){var n,t,r;const i=e.getSchema(),a=null!==(n=null!==(t=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==t?t:null==i?void 0:i.getMutationType())&&void 0!==n?n:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(n){a?e.reportError(new o.eO("Cannot define a new schema within a schema extension.",{nodes:n})):(s>0&&e.reportError(new o.eO("Must provide only one schema definition.",{nodes:n})),++s)}}}function a(e){const n=e.getSchema(),t=Object.create(null),r=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(n){var i;const a=null!==(i=n.operationTypes)&&void 0!==i?i:[];for(const n of a){const i=n.operation,a=t[i];r[i]?e.reportError(new o.eO(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:n})):a?e.reportError(new o.eO(`There can be only one ${i} type in schema.`,{nodes:[a,n]})):t[i]=n}return!1}}function s(e){const n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==t||!t.getType(i))return n[i]?e.reportError(new o.eO(`There can be only one type named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name,!1;e.reportError(new o.eO(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}var c=t(85236);function u(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(n){var i;const a=n.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(i=n.values)&&void 0!==i?i:[],u=r[a];for(const n of s){const r=n.name.value,i=t[a];(0,c.oF)(i)&&i.getValue(r)?e.reportError(new o.eO(`Enum value "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):u[r]?e.reportError(new o.eO(`Enum value "${a}.${r}" can only be defined once.`,{nodes:[u[r],n.name]})):u[r]=n.name}return!1}}function l(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(n){var i;const a=n.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(i=n.fields)&&void 0!==i?i:[],c=r[a];for(const n of s){const r=n.name.value;f(t[a],r)?e.reportError(new o.eO(`Field "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):c[r]?e.reportError(new o.eO(`Field "${a}.${r}" can only be defined once.`,{nodes:[c[r],n.name]})):c[r]=n.name}return!1}}function f(e,n){return!!((0,c.YQ)(e)||(0,c.kD)(e)||(0,c.qK)(e))&&null!=e.getFields()[n]}function d(e){const n=Object.create(null),t=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==t||!t.getDirective(i))return n[i]?e.reportError(new o.eO(`There can be only one directive named "@${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name,!1;e.reportError(new o.eO(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var p=t(60758),E=t(30221),m=t(14552);function h(e){return e.kind===m.b.OPERATION_DEFINITION||e.kind===m.b.FRAGMENT_DEFINITION}function v(e){return e.kind===m.b.SCALAR_TYPE_DEFINITION||e.kind===m.b.OBJECT_TYPE_DEFINITION||e.kind===m.b.INTERFACE_TYPE_DEFINITION||e.kind===m.b.UNION_TYPE_DEFINITION||e.kind===m.b.ENUM_TYPE_DEFINITION||e.kind===m.b.INPUT_OBJECT_TYPE_DEFINITION}function T(e){return e.kind===m.b.SCALAR_TYPE_EXTENSION||e.kind===m.b.OBJECT_TYPE_EXTENSION||e.kind===m.b.INTERFACE_TYPE_EXTENSION||e.kind===m.b.UNION_TYPE_EXTENSION||e.kind===m.b.ENUM_TYPE_EXTENSION||e.kind===m.b.INPUT_OBJECT_TYPE_EXTENSION}var g=t(34058);function b(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);for(const n of e.getDocument().definitions)v(n)&&(r[n.name.value]=!0);const i=[...Object.keys(t),...Object.keys(r)];return{NamedType(n,a,s,c,u){const l=n.name.value;if(!t[l]&&!r[l]){var f;const t=null!==(f=u[2])&&void 0!==f?f:s,r=null!=t&&"kind"in(d=t)&&(function(e){return e.kind===m.b.SCHEMA_DEFINITION||v(e)||e.kind===m.b.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===m.b.SCHEMA_EXTENSION||T(e)}(d));if(r&&O.includes(l))return;const a=(0,E.x)(l,r?O.concat(i):i);e.reportError(new o.eO(`Unknown type "${l}".`+(0,p.a)(a),{nodes:n}))}var d}}}const O=[...t(50080).YC,...g.V4].map((e=>e.name));var I=t(16003),N=t(99115),y=t(4049),_=t(59847),S=t(14231);function D(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===m.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=e.locations.map((e=>e.value)));return{Directive(t,r,i,a,s){const c=t.name.value,u=n[c];if(!u)return void e.reportError(new o.eO(`Unknown directive "@${c}".`,{nodes:t}));const l=function(e){const n=e[e.length-1];switch("kind"in n||(0,N.V)(!1),n.kind){case m.b.OPERATION_DEFINITION:return function(e){switch(e){case y.cE.QUERY:return _.H.QUERY;case y.cE.MUTATION:return _.H.MUTATION;case y.cE.SUBSCRIPTION:return _.H.SUBSCRIPTION}}(n.operation);case m.b.FIELD:return _.H.FIELD;case m.b.FRAGMENT_SPREAD:return _.H.FRAGMENT_SPREAD;case m.b.INLINE_FRAGMENT:return _.H.INLINE_FRAGMENT;case m.b.FRAGMENT_DEFINITION:return _.H.FRAGMENT_DEFINITION;case m.b.VARIABLE_DEFINITION:return _.H.VARIABLE_DEFINITION;case m.b.SCHEMA_DEFINITION:case m.b.SCHEMA_EXTENSION:return _.H.SCHEMA;case m.b.SCALAR_TYPE_DEFINITION:case m.b.SCALAR_TYPE_EXTENSION:return _.H.SCALAR;case m.b.OBJECT_TYPE_DEFINITION:case m.b.OBJECT_TYPE_EXTENSION:return _.H.OBJECT;case m.b.FIELD_DEFINITION:return _.H.FIELD_DEFINITION;case m.b.INTERFACE_TYPE_DEFINITION:case m.b.INTERFACE_TYPE_EXTENSION:return _.H.INTERFACE;case m.b.UNION_TYPE_DEFINITION:case m.b.UNION_TYPE_EXTENSION:return _.H.UNION;case m.b.ENUM_TYPE_DEFINITION:case m.b.ENUM_TYPE_EXTENSION:return _.H.ENUM;case m.b.ENUM_VALUE_DEFINITION:return _.H.ENUM_VALUE;case m.b.INPUT_OBJECT_TYPE_DEFINITION:case m.b.INPUT_OBJECT_TYPE_EXTENSION:return _.H.INPUT_OBJECT;case m.b.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||(0,N.V)(!1),n.kind===m.b.INPUT_OBJECT_TYPE_DEFINITION?_.H.INPUT_FIELD_DEFINITION:_.H.ARGUMENT_DEFINITION}default:(0,N.V)(!1,"Unexpected kind: "+(0,I.N)(n.kind))}}(s);l&&!u.includes(l)&&e.reportError(new o.eO(`Directive "@${c}" may not be used on ${l}.`,{nodes:t}))}}}function F(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===m.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=!e.repeatable);const a=Object.create(null),s=Object.create(null);return{enter(t){if(!("directives"in t)||!t.directives)return;let r;if(t.kind===m.b.SCHEMA_DEFINITION||t.kind===m.b.SCHEMA_EXTENSION)r=a;else if(v(t)||T(t)){const e=t.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of t.directives){const t=i.name.value;n[t]&&(r[t]?e.reportError(new o.eO(`The directive "@${t}" can only be used once at this location.`,{nodes:[r[t],i]})):r[t]=i)}}}}function $(e){const n=e.getSchema(),t=Object.create(null);for(const n of e.getDocument().definitions)v(n)&&(t[n.name.value]=n);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,a=t[i],s=null==n?void 0:n.getType(i);let u;if(a?u=w[a.kind]:s&&(l=s,u=(0,c.lg)(l)?m.b.SCALAR_TYPE_EXTENSION:(0,c.YQ)(l)?m.b.OBJECT_TYPE_EXTENSION:(0,c.kD)(l)?m.b.INTERFACE_TYPE_EXTENSION:(0,c.CK)(l)?m.b.UNION_TYPE_EXTENSION:(0,c.oF)(l)?m.b.ENUM_TYPE_EXTENSION:(0,c.qK)(l)?m.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,N.V)(!1,"Unexpected type: "+(0,I.N)(l))),u){if(u!==r.kind){const n=function(e){switch(e){case m.b.SCALAR_TYPE_EXTENSION:return"scalar";case m.b.OBJECT_TYPE_EXTENSION:return"object";case m.b.INTERFACE_TYPE_EXTENSION:return"interface";case m.b.UNION_TYPE_EXTENSION:return"union";case m.b.ENUM_TYPE_EXTENSION:return"enum";case m.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,N.V)(!1,"Unexpected kind: "+(0,I.N)(e))}}(r.kind);e.reportError(new o.eO(`Cannot extend non-${n} type "${i}".`,{nodes:a?[a,r]:r}))}}else{const a=Object.keys({...t,...null==n?void 0:n.getTypeMap()}),s=(0,E.x)(i,a);e.reportError(new o.eO(`Cannot extend type "${i}" because it is not defined.`+(0,p.a)(s),{nodes:r.name}))}var l}}const w={[m.b.SCALAR_TYPE_DEFINITION]:m.b.SCALAR_TYPE_EXTENSION,[m.b.OBJECT_TYPE_DEFINITION]:m.b.OBJECT_TYPE_EXTENSION,[m.b.INTERFACE_TYPE_DEFINITION]:m.b.INTERFACE_TYPE_EXTENSION,[m.b.UNION_TYPE_DEFINITION]:m.b.UNION_TYPE_EXTENSION,[m.b.ENUM_TYPE_DEFINITION]:m.b.ENUM_TYPE_EXTENSION,[m.b.INPUT_OBJECT_TYPE_DEFINITION]:m.b.INPUT_OBJECT_TYPE_EXTENSION};function P(e,n){const t=new Map;for(const r of e){const e=n(r),o=t.get(e);void 0===o?t.set(e,[r]):o.push(r)}return t}function A(e){return{Field:n,Directive:n};function n(n){var t;const r=P(null!==(t=n.arguments)&&void 0!==t?t:[],(e=>e.name.value));for(const[n,t]of r)t.length>1&&e.reportError(new o.eO(`There can be only one argument named "${n}".`,{nodes:t.map((e=>e.name))}))}}function R(e){const n=[];let t=Object.create(null);return{ObjectValue:{enter(){n.push(t),t=Object.create(null)},leave(){const e=n.pop();e||(0,N.V)(!1),t=e}},ObjectField(n){const r=n.name.value;t[r]?e.reportError(new o.eO(`There can be only one input field named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name}}}function C(e){return{Document(n){for(const t of n.definitions)if(!h(t)){const n=t.kind===m.b.SCHEMA_DEFINITION||t.kind===m.b.SCHEMA_EXTENSION?"schema":'"'+t.name.value+'"';e.reportError(new o.eO(`The ${n} definition is not executable.`,{nodes:t}))}return!1}}}var k=t(39929),j=t(64121),V=t(79187);function x(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===m.b.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=t.map((e=>e.name.value))}return{Directive(t){const r=t.name.value,i=n[r];if(t.arguments&&i)for(const n of t.arguments){const t=n.name.value;if(!i.includes(t)){const a=(0,E.x)(t,i);e.reportError(new o.eO(`Unknown argument "${t}" on directive "@${r}".`+(0,p.a)(a),{nodes:n}))}}return!1}}}function U(e){return{FragmentSpread(n){const t=n.name.value;e.getFragment(t)||e.reportError(new o.eO(`Unknown fragment "${t}".`,{nodes:n.name}))}}}function M(e){const n=[],t=[];return{OperationDefinition:e=>(n.push(e),!1),FragmentDefinition:e=>(t.push(e),!1),Document:{leave(){const r=Object.create(null);for(const t of n)for(const n of e.getRecursivelyReferencedFragments(t))r[n.name.value]=!0;for(const n of t){const t=n.name.value;!0!==r[t]&&e.reportError(new o.eO(`Fragment "${t}" is never used.`,{nodes:n}))}}}}}function Y(e){switch(e.kind){case m.b.OBJECT:return{...e,fields:(n=e.fields,n.map((e=>({...e,value:Y(e.value)}))).sort(((e,n)=>(0,k.p)(e.name.value,n.name.value))))};case m.b.LIST:return{...e,values:e.values.map(Y)};case m.b.INT:case m.b.FLOAT:case m.b.STRING:case m.b.BOOLEAN:case m.b.NULL:case m.b.ENUM:case m.b.VARIABLE:return e}var n}function L(e){return Array.isArray(e)?e.map((([e,n])=>`subfields "${e}" conflict because `+L(n))).join(" and "):e}function X(e,n,t,r,o,i,a,s){if(r.has(a,s,i))return;r.add(a,s,i);const c=e.getFragment(s);if(!c)return;const[u,l]=K(e,t,c);if(a!==u){B(e,n,t,r,o,i,a,u);for(const s of l)X(e,n,t,r,o,i,a,s)}}function H(e,n,t,r,o,i,a,s){if(a===s)return;if(o.has(a,s,i))return;o.add(a,s,i);const c=e.getFragment(a),u=e.getFragment(s);if(!c||!u)return;const[l,f]=K(e,t,c),[d,p]=K(e,t,u);B(e,n,t,r,o,i,l,d);for(const s of p)H(e,n,t,r,o,i,a,s);for(const a of f)H(e,n,t,r,o,i,a,s)}function B(e,n,t,r,o,i,a,s){for(const[c,u]of Object.entries(a)){const a=s[c];if(a)for(const s of u)for(const u of a){const a=G(e,t,r,o,i,c,s,u);a&&n.push(a)}}}function G(e,n,t,r,o,i,a,s){const[u,l,f]=a,[d,p,E]=s,m=o||u!==d&&(0,c.YQ)(u)&&(0,c.YQ)(d);if(!m){const e=l.name.value,n=p.name.value;if(e!==n)return[[i,`"${e}" and "${n}" are different fields`],[l],[p]];if(!function(e,n){const t=e.arguments,r=n.arguments;if(void 0===t||0===t.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(t.length!==r.length)return!1;const o=new Map(r.map((({name:e,value:n})=>[e.value,n])));return t.every((e=>{const n=e.value,t=o.get(e.name.value);return void 0!==t&&J(n)===J(t)}))}(l,p))return[[i,"they have differing arguments"],[l],[p]]}const h=null==f?void 0:f.type,v=null==E?void 0:E.type;if(h&&v&&Q(h,v))return[[i,`they return conflicting types "${(0,I.N)(h)}" and "${(0,I.N)(v)}"`],[l],[p]];const T=l.selectionSet,g=p.selectionSet;if(T&&g){const o=function(e,n,t,r,o,i,a,s,c){const u=[],[l,f]=q(e,n,i,a),[d,p]=q(e,n,s,c);B(e,u,n,t,r,o,l,d);for(const i of p)X(e,u,n,t,r,o,l,i);for(const i of f)X(e,u,n,t,r,o,d,i);for(const i of f)for(const a of p)H(e,u,n,t,r,o,i,a);return u}(e,n,t,r,m,(0,c.MR)(h),T,(0,c.MR)(v),g);return function(e,n,t,r){if(e.length>0)return[[n,e.map((([e])=>e))],[t,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(o,i,l,p)}}function J(e){return(0,j.y)(Y(e))}function Q(e,n){return(0,c.Fs)(e)?!(0,c.Fs)(n)||Q(e.ofType,n.ofType):!!(0,c.Fs)(n)||((0,c.bd)(e)?!(0,c.bd)(n)||Q(e.ofType,n.ofType):!!(0,c.bd)(n)||!(!(0,c.zf)(e)&&!(0,c.zf)(n))&&e!==n)}function q(e,n,t,r){const o=n.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);z(e,t,r,i,a);const s=[i,Object.keys(a)];return n.set(r,s),s}function K(e,n,t){const r=n.get(t.selectionSet);if(r)return r;const o=(0,V.v)(e.getSchema(),t.typeCondition);return q(e,n,o,t.selectionSet)}function z(e,n,t,r,o){for(const i of t.selections)switch(i.kind){case m.b.FIELD:{const e=i.name.value;let t;((0,c.YQ)(n)||(0,c.kD)(n))&&(t=n.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([n,i,t]);break}case m.b.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case m.b.INLINE_FRAGMENT:{const t=i.typeCondition,a=t?(0,V.v)(e.getSchema(),t):n;z(e,a,i.selectionSet,r,o);break}}}class W{constructor(){this._data=new Map}has(e,n,t){var r;const o=null===(r=this._data.get(e))||void 0===r?void 0:r.get(n);return void 0!==o&&(!!t||t===o)}add(e,n,t){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[n,t]])):r.set(n,t)}}class Z{constructor(){this._orderedPairSet=new W}has(e,n,t){return e<n?this._orderedPairSet.has(e,n,t):this._orderedPairSet.has(n,e,t)}add(e,n,t){e<n?this._orderedPairSet.add(e,n,t):this._orderedPairSet.add(n,e,t)}}var ee=t(93544),ne=t(48144);function te(e){var n;const t=Object.create(null),r=e.getSchema(),i=null!==(n=null==r?void 0:r.getDirectives())&&void 0!==n?n:S.rc;for(const e of i)t[e.name]=(0,ne.K)(e.args.filter(c.xP),(e=>e.name));const a=e.getDocument().definitions;for(const e of a)if(e.kind===m.b.DIRECTIVE_DEFINITION){var s;const n=null!==(s=e.arguments)&&void 0!==s?s:[];t[e.name.value]=(0,ne.K)(n.filter(re),(e=>e.name.value))}return{Directive:{leave(n){const r=n.name.value,i=t[r];if(i){var a;const t=null!==(a=n.arguments)&&void 0!==a?a:[],s=new Set(t.map((e=>e.name.value)));for(const[t,a]of Object.entries(i))if(!s.has(t)){const i=(0,c.Xj)(a.type)?(0,I.N)(a.type):(0,j.y)(a.type);e.reportError(new o.eO(`Directive "@${r}" argument "${t}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}}}function re(e){return e.type.kind===m.b.NON_NULL_TYPE&&null==e.defaultValue}var oe=t(36220);function ie(e,n,t){var r;const i=null===(r=n.directives)||void 0===r?void 0:r.find((n=>n.name.value===e.name));if(i)return function(e,n,t){var r;const i={},a=null!==(r=n.arguments)&&void 0!==r?r:[],s=(0,ne.K)(a,(e=>e.name.value));for(const r of e.args){const e=r.name,a=r.type,f=s[e];if(!f){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,c.bd)(a))throw new o.eO(`Argument "${e}" of required type "${(0,I.N)(a)}" was not provided.`,{nodes:n});continue}const d=f.value;let p=d.kind===m.b.NULL;if(d.kind===m.b.VARIABLE){const n=d.name.value;if(null==t||(u=t,l=n,!Object.prototype.hasOwnProperty.call(u,l))){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,c.bd)(a))throw new o.eO(`Argument "${e}" of required type "${(0,I.N)(a)}" was provided the variable "$${n}" which was not provided a runtime value.`,{nodes:d});continue}p=null==t[n]}if(p&&(0,c.bd)(a))throw new o.eO(`Argument "${e}" of non-null type "${(0,I.N)(a)}" must not be null.`,{nodes:d});const E=(0,oe.i)(d,a,t);if(void 0===E)throw new o.eO(`Argument "${e}" has invalid value ${(0,j.y)(d)}.`,{nodes:d});i[e]=E}var u,l;return i}(e,i,t)}function ae(e,n,t,r,o,i,a){for(const c of o.selections)switch(c.kind){case m.b.FIELD:{if(!se(t,c))continue;const e=(s=c).alias?s.alias.value:s.name.value,n=i.get(e);void 0!==n?n.push(c):i.set(e,[c]);break}case m.b.INLINE_FRAGMENT:if(!se(t,c)||!ce(e,c,r))continue;ae(e,n,t,r,c.selectionSet,i,a);break;case m.b.FRAGMENT_SPREAD:{const o=c.name.value;if(a.has(o)||!se(t,c))continue;a.add(o);const s=n[o];if(!s||!ce(e,s,r))continue;ae(e,n,t,r,s.selectionSet,i,a);break}}var s}function se(e,n){const t=ie(S.MQ,n,e);if(!0===(null==t?void 0:t.if))return!1;const r=ie(S.HQ,n,e);return!1!==(null==r?void 0:r.if)}function ce(e,n,t){const r=n.typeCondition;if(!r)return!0;const o=(0,V.v)(e,r);return o===t||!!(0,c.Lc)(o)&&e.isSubType(o,t)}function ue(e,n){const t=e.getInputType();if(!t)return;const r=(0,c.MR)(t);if((0,c.zf)(r))try{if(void 0===r.parseLiteral(n,void 0)){const r=(0,I.N)(t);e.reportError(new o.eO(`Expected value of type "${r}", found ${(0,j.y)(n)}.`,{nodes:n}))}}catch(r){const i=(0,I.N)(t);r instanceof o.eO?e.reportError(r):e.reportError(new o.eO(`Expected value of type "${i}", found ${(0,j.y)(n)}; `+r.message,{nodes:n,originalError:r}))}else{const r=(0,I.N)(t);e.reportError(new o.eO(`Expected value of type "${r}", found ${(0,j.y)(n)}.`,{nodes:n}))}}function le(e,n,t,r,o){if((0,c.bd)(r)&&!(0,c.bd)(n)){if((null==t||t.kind===m.b.NULL)&&void 0===o)return!1;const i=r.ofType;return(0,ee.sP)(e,n,i)}return(0,ee.sP)(e,n,r)}const fe=Object.freeze([function(e){function n(t,r=Object.create(null),o=0){if(t.kind===m.b.FRAGMENT_SPREAD){const i=t.name.value;if(!0===r[i])return!1;const a=e.getFragment(i);if(!a)return!1;try{return r[i]=!0,n(a,r,o)}finally{r[i]=void 0}}if(t.kind===m.b.FIELD&&("fields"===t.name.value||"interfaces"===t.name.value||"possibleTypes"===t.name.value||"inputFields"===t.name.value)&&++o>=3)return!0;if("selectionSet"in t&&t.selectionSet)for(const e of t.selectionSet.selections)if(n(e,r,o))return!0;return!1}return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&n(t))return e.reportError(new o.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}]),de=Object.freeze([C,function(e){const n=Object.create(null);return{OperationDefinition(t){const r=t.name;return r&&(n[r.value]?e.reportError(new o.eO(`There can be only one operation named "${r.value}".`,{nodes:[n[r.value],r]})):n[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let n=0;return{Document(e){n=e.definitions.filter((e=>e.kind===m.b.OPERATION_DEFINITION)).length},OperationDefinition(t){!t.name&&n>1&&e.reportError(new o.eO("This anonymous operation must be the only defined operation.",{nodes:t}))}}},function(e){return{OperationDefinition(n){if("subscription"===n.operation){const t=e.getSchema(),r=t.getSubscriptionType();if(r){const i=n.name?n.name.value:null,a=Object.create(null),s=e.getDocument(),c=Object.create(null);for(const e of s.definitions)e.kind===m.b.FRAGMENT_DEFINITION&&(c[e.name.value]=e);const u=function(e,n,t,r,o){const i=new Map;return ae(e,n,t,r,o,i,new Set),i}(t,c,a,r,n.selectionSet);if(u.size>1){const n=[...u.values()].slice(1).flat();e.reportError(new o.eO(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:n}))}for(const n of u.values())n[0].name.value.startsWith("__")&&e.reportError(new o.eO(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:n}))}}}}},b,function(e){return{InlineFragment(n){const t=n.typeCondition;if(t){const n=(0,V.v)(e.getSchema(),t);if(n&&!(0,c.ML)(n)){const n=(0,j.y)(t);e.reportError(new o.eO(`Fragment cannot condition on non composite type "${n}".`,{nodes:t}))}}},FragmentDefinition(n){const t=(0,V.v)(e.getSchema(),n.typeCondition);if(t&&!(0,c.ML)(t)){const t=(0,j.y)(n.typeCondition);e.reportError(new o.eO(`Fragment "${n.name.value}" cannot condition on non composite type "${t}".`,{nodes:n.typeCondition}))}}}},function(e){return{VariableDefinition(n){const t=(0,V.v)(e.getSchema(),n.type);if(void 0!==t&&!(0,c.dX)(t)){const t=n.variable.name.value,r=(0,j.y)(n.type);e.reportError(new o.eO(`Variable "$${t}" cannot be non-input type "${r}".`,{nodes:n.type}))}}}},function(e){return{Field(n){const t=e.getType(),r=n.selectionSet;if(t)if((0,c.zf)((0,c.MR)(t))){if(r){const i=n.name.value,a=(0,I.N)(t);e.reportError(new o.eO(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=n.name.value,i=(0,I.N)(t);e.reportError(new o.eO(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:n}))}}else{const r=n.name.value,i=(0,I.N)(t);e.reportError(new o.eO(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:n}))}}}},function(e){return{Field(n){const t=e.getParentType();if(t&&!e.getFieldDef()){const r=e.getSchema(),i=n.name.value;let a=(0,p.a)("to use an inline fragment on",function(e,n,t){if(!(0,c.Lc)(n))return[];const r=new Set,o=Object.create(null);for(const a of e.getPossibleTypes(n))if(a.getFields()[t]){r.add(a),o[a.name]=1;for(const e of a.getInterfaces()){var i;e.getFields()[t]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort(((n,t)=>{const r=o[t.name]-o[n.name];return 0!==r?r:(0,c.kD)(n)&&e.isSubType(n,t)?-1:(0,c.kD)(t)&&e.isSubType(t,n)?1:(0,k.p)(n.name,t.name)})).map((e=>e.name))}(r,t,i));""===a&&(a=(0,p.a)(function(e,n){if((0,c.YQ)(e)||(0,c.kD)(e)){const t=Object.keys(e.getFields());return(0,E.x)(n,t)}return[]}(t,i))),e.reportError(new o.eO(`Cannot query field "${i}" on type "${t.name}".`+a,{nodes:n}))}}}},function(e){const n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(t){const r=t.name.value;return n[r]?e.reportError(new o.eO(`There can be only one fragment named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name,!1}}},U,M,function(e){return{InlineFragment(n){const t=e.getType(),r=e.getParentType();if((0,c.ML)(t)&&(0,c.ML)(r)&&!(0,ee.uI)(e.getSchema(),t,r)){const i=(0,I.N)(r),a=(0,I.N)(t);e.reportError(new o.eO(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:n}))}},FragmentSpread(n){const t=n.name.value,r=function(e,n){const t=e.getFragment(n);if(t){const n=(0,V.v)(e.getSchema(),t.typeCondition);if((0,c.ML)(n))return n}}(e,t),i=e.getParentType();if(r&&i&&!(0,ee.uI)(e.getSchema(),r,i)){const a=(0,I.N)(i),s=(0,I.N)(r);e.reportError(new o.eO(`Fragment "${t}" cannot be spread here as objects of type "${a}" can never be of type "${s}".`,{nodes:n}))}}}},function(e){const n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(a){if(n[a.name.value])return;const s=a.name.value;n[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){r[s]=t.length;for(const n of c){const a=n.name.value,s=r[a];if(t.push(n),void 0===s){const n=e.getFragment(a);n&&i(n)}else{const n=t.slice(s),r=n.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new o.eO(`Cannot spread fragment "${a}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:n}))}t.pop()}r[s]=void 0}}},function(e){return{OperationDefinition(n){var t;const r=P(null!==(t=n.variableDefinitions)&&void 0!==t?t:[],(e=>e.variable.name.value));for(const[n,t]of r)t.length>1&&e.reportError(new o.eO(`There can be only one variable named "$${n}".`,{nodes:t.map((e=>e.variable.name))}))}}},function(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:i}of r){const r=i.name.value;!0!==n[r]&&e.reportError(new o.eO(t.name?`Variable "$${r}" is not defined by operation "${t.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,t]}))}}},VariableDefinition(e){n[e.variable.name.value]=!0}}},function(e){let n=[];return{OperationDefinition:{enter(){n=[]},leave(t){const r=Object.create(null),i=e.getRecursiveVariableUsages(t);for(const{node:e}of i)r[e.name.value]=!0;for(const i of n){const n=i.variable.name.value;!0!==r[n]&&e.reportError(new o.eO(t.name?`Variable "$${n}" is never used in operation "${t.name.value}".`:`Variable "$${n}" is never used.`,{nodes:i}))}}},VariableDefinition(e){n.push(e)}}},D,F,function(e){return{...x(e),Argument(n){const t=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!t&&r&&i){const t=n.name.value,a=r.args.map((e=>e.name)),s=(0,E.x)(t,a);e.reportError(new o.eO(`Unknown argument "${t}" on field "${i.name}.${r.name}".`+(0,p.a)(s),{nodes:n}))}}}},A,function(e){let n={};return{OperationDefinition:{enter(){n={}}},VariableDefinition(e){n[e.variable.name.value]=e},ListValue(n){const t=(0,c.yl)(e.getParentInputType());if(!(0,c.Fs)(t))return ue(e,n),!1},ObjectValue(n){const t=(0,c.MR)(e.getInputType());if(!(0,c.qK)(t))return ue(e,n),!1;const r=(0,ne.K)(n.fields,(e=>e.name.value));for(const i of Object.values(t.getFields()))if(!r[i.name]&&(0,c.YX)(i)){const r=(0,I.N)(i.type);e.reportError(new o.eO(`Field "${t.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:n}))}t.isOneOf&&function(e,n,t,r){var i;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new o.eO(`OneOf Input Object "${t.name}" must specify exactly one key.`,{nodes:[n]}));const s=null===(i=r[a[0]])||void 0===i?void 0:i.value;s&&s.kind!==m.b.NULL||e.reportError(new o.eO(`Field "${t.name}.${a[0]}" must be non-null.`,{nodes:[n]}))}(e,n,t,r)},ObjectField(n){const t=(0,c.MR)(e.getParentInputType());if(!e.getInputType()&&(0,c.qK)(t)){const r=(0,E.x)(n.name.value,Object.keys(t.getFields()));e.reportError(new o.eO(`Field "${n.name.value}" is not defined by type "${t.name}".`+(0,p.a)(r),{nodes:n}))}},NullValue(n){const t=e.getInputType();(0,c.bd)(t)&&e.reportError(new o.eO(`Expected value of type "${(0,I.N)(t)}", found ${(0,j.y)(n)}.`,{nodes:n}))},EnumValue:n=>ue(e,n),IntValue:n=>ue(e,n),FloatValue:n=>ue(e,n),StringValue:n=>ue(e,n),BooleanValue:n=>ue(e,n)}},function(e){return{...te(e),Field:{leave(n){var t;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(t=n.arguments)||void 0===t?void 0:t.map((e=>e.name.value)));for(const t of r.args)if(!i.has(t.name)&&(0,c.xP)(t)){const i=(0,I.N)(t.type);e.reportError(new o.eO(`Field "${r.name}" argument "${t.name}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}},function(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:t,type:i,defaultValue:a,parentType:s}of r){const r=t.name.value,u=n[r];if(u&&i){const n=e.getSchema(),l=(0,V.v)(n,u.type);if(l&&!le(n,l,u.defaultValue,i,a)){const n=(0,I.N)(l),a=(0,I.N)(i);e.reportError(new o.eO(`Variable "$${r}" of type "${n}" used in position expecting type "${a}".`,{nodes:[u,t]}))}(0,c.qK)(s)&&s.isOneOf&&(0,c.wj)(l)&&e.reportError(new o.eO(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[u,t]}))}}}},VariableDefinition(e){n[e.variable.name.value]=e}}},function(e){const n=new W,t=new Z,r=new Map;return{SelectionSet(i){const a=function(e,n,t,r,o,i){const a=[],[s,c]=q(e,n,o,i);if(function(e,n,t,r,o,i){for(const[a,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let c=i+1;c<s.length;c++){const u=G(e,t,r,o,!1,a,s[i],s[c]);u&&n.push(u)}}(e,a,n,t,r,s),0!==c.length)for(let o=0;o<c.length;o++){X(e,a,n,t,r,!1,s,c[o]);for(let i=o+1;i<c.length;i++)H(e,a,n,t,r,!1,c[o],c[i])}return a}(e,r,n,t,e.getParentType(),i);for(const[[n,t],r,i]of a){const a=L(t);e.reportError(new o.eO(`Fields "${n}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}},R,...fe]);Object.freeze([i,a,s,u,l,function(e){return{DirectiveDefinition(e){var n;const r=null!==(n=e.arguments)&&void 0!==n?n:[];return t(`@${e.name.value}`,r)},InterfaceTypeDefinition:n,InterfaceTypeExtension:n,ObjectTypeDefinition:n,ObjectTypeExtension:n};function n(e){var n;const r=e.name.value,o=null!==(n=e.fields)&&void 0!==n?n:[];for(const e of o){var i;t(`${r}.${e.name.value}`,null!==(i=e.arguments)&&void 0!==i?i:[])}return!1}function t(n,t){const r=P(t,(e=>e.name.value));for(const[t,i]of r)i.length>1&&e.reportError(new o.eO(`Argument "${n}(${t}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}},d,b,D,F,$,x,A,R,te]);var pe=t(46228),Ee=t(34627),me=t(99703),he=t(58709);class ve{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const e of this.getDocument().definitions)e.kind===m.b.FRAGMENT_DEFINITION&&(n[e.name.value]=e);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const t=[e];let r;for(;r=t.pop();)for(const e of r.selections)e.kind===m.b.FRAGMENT_SPREAD?n.push(e):e.selectionSet&&t.push(e.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const t=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==t[o]){t[o]=!0;const e=this.getFragment(o);e&&(n.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}Symbol.toStringTag;class Te extends ve{constructor(e,n,t,r){super(n,r),this._schema=e,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const t=[],r=new he.D(this._schema);(0,Ee.YR)(e,(0,he.S)(r,{VariableDefinition:()=>!1,Variable(e){t.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),n=t,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const t of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function ge(e,n,t=de,r,i=new he.D(e)){var a;const s=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;n||(0,pe.U)(!1,"Must provide document."),(0,me.Y)(e);const c=Object.freeze({}),u=[],l=new Te(e,n,i,(e=>{if(u.length>=s)throw u.push(new o.eO("Too many validation errors, error limit reached. Validation aborted.")),c;u.push(e)})),f=(0,Ee.oP)(t.map((e=>e(l))));try{(0,Ee.YR)(n,(0,he.S)(i,f))}catch(e){if(e!==c)throw e}return u}var be=t(26788);function Oe(e){return{Field(n){const t=e.getFieldDef(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=e.getParentType();null!=i||(0,N.V)(!1),e.reportError(new o.eO(`The field ${i.name}.${t.name} is deprecated. ${r}`,{nodes:n}))}},Argument(n){const t=e.getArgument(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new o.eO(`Directive "@${i.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}));else{const i=e.getParentType(),a=e.getFieldDef();null!=i&&null!=a||(0,N.V)(!1),e.reportError(new o.eO(`Field "${i.name}.${a.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}))}}},ObjectField(n){const t=(0,c.MR)(e.getParentInputType());if((0,c.qK)(t)){const r=t.getFields()[n.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new o.eO(`The input field ${t.name}.${r.name} is deprecated. ${i}`,{nodes:n}))}},EnumValue(n){const t=e.getEnumValue(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=(0,c.MR)(e.getInputType());null!=i||(0,N.V)(!1),e.reportError(new o.eO(`The enum value "${i.name}.${t.name}" is deprecated. ${r}`,{nodes:n}))}}}}var Ie=t(2629),Ne=t(49181),ye=(t(75909),t(63696),t(78325),Object.defineProperty),_e=(e,n)=>ye(e,"name",{value:n,configurable:!0});const Se=[i,a,s,u,l,d,b,D,F,$,A,R];function De(e,n,t,r,o){const i=de.filter((e=>e!==M&&e!==C&&(!r||e!==U)));return t&&Array.prototype.push.apply(i,t),o&&Array.prototype.push.apply(i,Se),ge(e,n,i).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===m.b.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}_e(De,"validateWithCustomRules");const Fe="Error",$e="Warning",we="Information",Pe="Hint",Ae={[Fe]:1,[$e]:2,[we]:3,[Pe]:4},Re=_e(((e,n)=>{if(!e)throw new Error(n)}),"invariant");function Ce(e,n=null,t,r,i){var a,s;let c=null;i&&(e+="string"==typeof i?"\n\n"+i:"\n\n"+i.reduce(((e,n)=>e+((0,j.y)(n)+"\n\n")),""));try{c=(0,be.qg)(e)}catch(n){if(n instanceof o.eO){const t=xe(null!==(s=null===(a=n.locations)||void 0===a?void 0:a[0])&&void 0!==s?s:{line:0,column:0},e);return[{severity:Ae.Error,message:n.message,source:"GraphQL: Syntax",range:t}]}throw n}return ke(c,n,t,r)}function ke(e,n=null,t,r){if(!n)return[];const o=je(De(n,e,t,r),(e=>Ve(e,Ae.Error,"Validation"))),i=je(ge(n,e,[Oe]),(e=>Ve(e,Ae.Warning,"Deprecation")));return o.concat(i)}function je(e,n){return Array.prototype.concat.apply([],e.map(n))}function Ve(e,n,t){if(!e.nodes)return[];const r=[];return e.nodes.forEach((o=>{const i="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(i){Re(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],a=Ue(i),s=o.column+(a.end-a.start);r.push({source:`GraphQL: ${t}`,message:e.message,severity:n,range:new Ne.R(new Ne.P(o.line-1,o.column-1),new Ne.P(o.line-1,s))})}})),r}function xe(e,n){const t=(0,Ie.o)(),r=t.startState(),o=n.split("\n");Re(o.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let n=0;n<e.line;n++)for(i=new Ne.C(o[n]);!i.eol()&&"invalidchar"!==t.token(i,r););Re(i,"Expected Parser stream to be available.");const a=e.line-1,s=i.getStartOfToken(),c=i.getCurrentPosition();return new Ne.R(new Ne.P(a,s),new Ne.P(a,c))}function Ue(e){const n=e.loc;return Re(n,"Expected ASTNode to have a location."),n}_e(Ce,"getDiagnostics"),_e(ke,"validateQuery"),_e(je,"mapCat"),_e(Ve,"annotations"),_e(xe,"getRange"),_e(Ue,"getLocation");const Me=["error","warning","information","hint"],Ye={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.C.registerHelper("lint","graphql",((e,n)=>Ce(e,n.schema,n.validationRules,void 0,n.externalFragments).map((e=>({message:e.message,severity:e.severity?Me[e.severity-1]:Me[0],type:e.source?Ye[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[874],{49181(e,n,t){t.d(n,{C:()=>i,P:()=>s,R:()=>a});var r=Object.defineProperty,o=(e,n)=>r(e,"name",{value:n,configurable:!0});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let n=this._testNextCharacter(e),t=!1;for(n&&(t=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(e),t=!0;return t},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,n=!0,t=!1)=>{let r=null,o=null;return"string"==typeof e?(o=new RegExp(e,t?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(e),r=null==o?void 0:o[0]),!(null==o||!("string"==typeof e||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos)))&&(n&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),o)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let n=0;if(e&&0!==e.length){const t=e[0];let r=0;for(;t.length>r;)9===t.charCodeAt(r)?n+=2:n++,r++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const n=this._sourceText.charAt(this._pos);let t=!1;return t="string"==typeof e?n===e:e instanceof RegExp?e.test(n):e(n),t}}o(i,"CharacterStream");class a{constructor(e,n){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=n}setStart(e,n){this.start=new s(e,n)}setEnd(e,n){this.end=new s(e,n)}}o(a,"Range");class s{constructor(e,n){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=n}setLine(e){this.line=e}setCharacter(e){this.character=e}}o(s,"Position")},54874(e,n,t){var r=t(38950),o=t(4405);function i(e){var n,t,r;const i=e.getSchema(),a=null!==(n=null!==(t=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==t?t:null==i?void 0:i.getMutationType())&&void 0!==n?n:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(n){a?e.reportError(new o.eO("Cannot define a new schema within a schema extension.",{nodes:n})):(s>0&&e.reportError(new o.eO("Must provide only one schema definition.",{nodes:n})),++s)}}}function a(e){const n=e.getSchema(),t=Object.create(null),r=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(n){var i;const a=null!==(i=n.operationTypes)&&void 0!==i?i:[];for(const n of a){const i=n.operation,a=t[i];r[i]?e.reportError(new o.eO(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:n})):a?e.reportError(new o.eO(`There can be only one ${i} type in schema.`,{nodes:[a,n]})):t[i]=n}return!1}}function s(e){const n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==t||!t.getType(i))return n[i]?e.reportError(new o.eO(`There can be only one type named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name,!1;e.reportError(new o.eO(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}var c=t(85236);function u(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(n){var i;const a=n.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(i=n.values)&&void 0!==i?i:[],u=r[a];for(const n of s){const r=n.name.value,i=t[a];(0,c.oF)(i)&&i.getValue(r)?e.reportError(new o.eO(`Enum value "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):u[r]?e.reportError(new o.eO(`Enum value "${a}.${r}" can only be defined once.`,{nodes:[u[r],n.name]})):u[r]=n.name}return!1}}function l(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(n){var i;const a=n.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(i=n.fields)&&void 0!==i?i:[],c=r[a];for(const n of s){const r=n.name.value;f(t[a],r)?e.reportError(new o.eO(`Field "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):c[r]?e.reportError(new o.eO(`Field "${a}.${r}" can only be defined once.`,{nodes:[c[r],n.name]})):c[r]=n.name}return!1}}function f(e,n){return!!((0,c.YQ)(e)||(0,c.kD)(e)||(0,c.qK)(e))&&null!=e.getFields()[n]}function d(e){const n=Object.create(null),t=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==t||!t.getDirective(i))return n[i]?e.reportError(new o.eO(`There can be only one directive named "@${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name,!1;e.reportError(new o.eO(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var p=t(60758),E=t(30221),m=t(14552);function h(e){return e.kind===m.b.OPERATION_DEFINITION||e.kind===m.b.FRAGMENT_DEFINITION}function v(e){return e.kind===m.b.SCALAR_TYPE_DEFINITION||e.kind===m.b.OBJECT_TYPE_DEFINITION||e.kind===m.b.INTERFACE_TYPE_DEFINITION||e.kind===m.b.UNION_TYPE_DEFINITION||e.kind===m.b.ENUM_TYPE_DEFINITION||e.kind===m.b.INPUT_OBJECT_TYPE_DEFINITION}function T(e){return e.kind===m.b.SCALAR_TYPE_EXTENSION||e.kind===m.b.OBJECT_TYPE_EXTENSION||e.kind===m.b.INTERFACE_TYPE_EXTENSION||e.kind===m.b.UNION_TYPE_EXTENSION||e.kind===m.b.ENUM_TYPE_EXTENSION||e.kind===m.b.INPUT_OBJECT_TYPE_EXTENSION}var g=t(34058);function b(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);for(const n of e.getDocument().definitions)v(n)&&(r[n.name.value]=!0);const i=[...Object.keys(t),...Object.keys(r)];return{NamedType(n,a,s,c,u){const l=n.name.value;if(!t[l]&&!r[l]){var f;const t=null!==(f=u[2])&&void 0!==f?f:s,r=null!=t&&"kind"in(d=t)&&(function(e){return e.kind===m.b.SCHEMA_DEFINITION||v(e)||e.kind===m.b.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===m.b.SCHEMA_EXTENSION||T(e)}(d));if(r&&O.includes(l))return;const a=(0,E.x)(l,r?O.concat(i):i);e.reportError(new o.eO(`Unknown type "${l}".`+(0,p.a)(a),{nodes:n}))}var d}}}const O=[...t(50080).YC,...g.V4].map(e=>e.name);var I=t(16003),N=t(99115),y=t(4049),_=t(59847),S=t(14231);function D(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===m.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=e.locations.map(e=>e.value));return{Directive(t,r,i,a,s){const c=t.name.value,u=n[c];if(!u)return void e.reportError(new o.eO(`Unknown directive "@${c}".`,{nodes:t}));const l=function(e){const n=e[e.length-1];switch("kind"in n||(0,N.V)(!1),n.kind){case m.b.OPERATION_DEFINITION:return function(e){switch(e){case y.cE.QUERY:return _.H.QUERY;case y.cE.MUTATION:return _.H.MUTATION;case y.cE.SUBSCRIPTION:return _.H.SUBSCRIPTION}}(n.operation);case m.b.FIELD:return _.H.FIELD;case m.b.FRAGMENT_SPREAD:return _.H.FRAGMENT_SPREAD;case m.b.INLINE_FRAGMENT:return _.H.INLINE_FRAGMENT;case m.b.FRAGMENT_DEFINITION:return _.H.FRAGMENT_DEFINITION;case m.b.VARIABLE_DEFINITION:return _.H.VARIABLE_DEFINITION;case m.b.SCHEMA_DEFINITION:case m.b.SCHEMA_EXTENSION:return _.H.SCHEMA;case m.b.SCALAR_TYPE_DEFINITION:case m.b.SCALAR_TYPE_EXTENSION:return _.H.SCALAR;case m.b.OBJECT_TYPE_DEFINITION:case m.b.OBJECT_TYPE_EXTENSION:return _.H.OBJECT;case m.b.FIELD_DEFINITION:return _.H.FIELD_DEFINITION;case m.b.INTERFACE_TYPE_DEFINITION:case m.b.INTERFACE_TYPE_EXTENSION:return _.H.INTERFACE;case m.b.UNION_TYPE_DEFINITION:case m.b.UNION_TYPE_EXTENSION:return _.H.UNION;case m.b.ENUM_TYPE_DEFINITION:case m.b.ENUM_TYPE_EXTENSION:return _.H.ENUM;case m.b.ENUM_VALUE_DEFINITION:return _.H.ENUM_VALUE;case m.b.INPUT_OBJECT_TYPE_DEFINITION:case m.b.INPUT_OBJECT_TYPE_EXTENSION:return _.H.INPUT_OBJECT;case m.b.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||(0,N.V)(!1),n.kind===m.b.INPUT_OBJECT_TYPE_DEFINITION?_.H.INPUT_FIELD_DEFINITION:_.H.ARGUMENT_DEFINITION}default:(0,N.V)(!1,"Unexpected kind: "+(0,I.N)(n.kind))}}(s);l&&!u.includes(l)&&e.reportError(new o.eO(`Directive "@${c}" may not be used on ${l}.`,{nodes:t}))}}}function F(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===m.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=!e.repeatable);const a=Object.create(null),s=Object.create(null);return{enter(t){if(!("directives"in t)||!t.directives)return;let r;if(t.kind===m.b.SCHEMA_DEFINITION||t.kind===m.b.SCHEMA_EXTENSION)r=a;else if(v(t)||T(t)){const e=t.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of t.directives){const t=i.name.value;n[t]&&(r[t]?e.reportError(new o.eO(`The directive "@${t}" can only be used once at this location.`,{nodes:[r[t],i]})):r[t]=i)}}}}function $(e){const n=e.getSchema(),t=Object.create(null);for(const n of e.getDocument().definitions)v(n)&&(t[n.name.value]=n);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,a=t[i],s=null==n?void 0:n.getType(i);let u;if(a?u=w[a.kind]:s&&(l=s,u=(0,c.lg)(l)?m.b.SCALAR_TYPE_EXTENSION:(0,c.YQ)(l)?m.b.OBJECT_TYPE_EXTENSION:(0,c.kD)(l)?m.b.INTERFACE_TYPE_EXTENSION:(0,c.CK)(l)?m.b.UNION_TYPE_EXTENSION:(0,c.oF)(l)?m.b.ENUM_TYPE_EXTENSION:(0,c.qK)(l)?m.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,N.V)(!1,"Unexpected type: "+(0,I.N)(l))),u){if(u!==r.kind){const n=function(e){switch(e){case m.b.SCALAR_TYPE_EXTENSION:return"scalar";case m.b.OBJECT_TYPE_EXTENSION:return"object";case m.b.INTERFACE_TYPE_EXTENSION:return"interface";case m.b.UNION_TYPE_EXTENSION:return"union";case m.b.ENUM_TYPE_EXTENSION:return"enum";case m.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,N.V)(!1,"Unexpected kind: "+(0,I.N)(e))}}(r.kind);e.reportError(new o.eO(`Cannot extend non-${n} type "${i}".`,{nodes:a?[a,r]:r}))}}else{const a=Object.keys({...t,...null==n?void 0:n.getTypeMap()}),s=(0,E.x)(i,a);e.reportError(new o.eO(`Cannot extend type "${i}" because it is not defined.`+(0,p.a)(s),{nodes:r.name}))}var l}}const w={[m.b.SCALAR_TYPE_DEFINITION]:m.b.SCALAR_TYPE_EXTENSION,[m.b.OBJECT_TYPE_DEFINITION]:m.b.OBJECT_TYPE_EXTENSION,[m.b.INTERFACE_TYPE_DEFINITION]:m.b.INTERFACE_TYPE_EXTENSION,[m.b.UNION_TYPE_DEFINITION]:m.b.UNION_TYPE_EXTENSION,[m.b.ENUM_TYPE_DEFINITION]:m.b.ENUM_TYPE_EXTENSION,[m.b.INPUT_OBJECT_TYPE_DEFINITION]:m.b.INPUT_OBJECT_TYPE_EXTENSION};function P(e,n){const t=new Map;for(const r of e){const e=n(r),o=t.get(e);void 0===o?t.set(e,[r]):o.push(r)}return t}function A(e){return{Field:n,Directive:n};function n(n){var t;const r=P(null!==(t=n.arguments)&&void 0!==t?t:[],e=>e.name.value);for(const[n,t]of r)t.length>1&&e.reportError(new o.eO(`There can be only one argument named "${n}".`,{nodes:t.map(e=>e.name)}))}}function R(e){const n=[];let t=Object.create(null);return{ObjectValue:{enter(){n.push(t),t=Object.create(null)},leave(){const e=n.pop();e||(0,N.V)(!1),t=e}},ObjectField(n){const r=n.name.value;t[r]?e.reportError(new o.eO(`There can be only one input field named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name}}}function C(e){return{Document(n){for(const t of n.definitions)if(!h(t)){const n=t.kind===m.b.SCHEMA_DEFINITION||t.kind===m.b.SCHEMA_EXTENSION?"schema":'"'+t.name.value+'"';e.reportError(new o.eO(`The ${n} definition is not executable.`,{nodes:t}))}return!1}}}var k=t(39929),j=t(64121),V=t(79187);function x(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():S.rc;for(const e of r)n[e.name]=e.args.map(e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===m.b.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=t.map(e=>e.name.value)}return{Directive(t){const r=t.name.value,i=n[r];if(t.arguments&&i)for(const n of t.arguments){const t=n.name.value;if(!i.includes(t)){const a=(0,E.x)(t,i);e.reportError(new o.eO(`Unknown argument "${t}" on directive "@${r}".`+(0,p.a)(a),{nodes:n}))}}return!1}}}function U(e){return{FragmentSpread(n){const t=n.name.value;e.getFragment(t)||e.reportError(new o.eO(`Unknown fragment "${t}".`,{nodes:n.name}))}}}function M(e){const n=[],t=[];return{OperationDefinition:e=>(n.push(e),!1),FragmentDefinition:e=>(t.push(e),!1),Document:{leave(){const r=Object.create(null);for(const t of n)for(const n of e.getRecursivelyReferencedFragments(t))r[n.name.value]=!0;for(const n of t){const t=n.name.value;!0!==r[t]&&e.reportError(new o.eO(`Fragment "${t}" is never used.`,{nodes:n}))}}}}}function Y(e){switch(e.kind){case m.b.OBJECT:return{...e,fields:(n=e.fields,n.map(e=>({...e,value:Y(e.value)})).sort((e,n)=>(0,k.p)(e.name.value,n.name.value)))};case m.b.LIST:return{...e,values:e.values.map(Y)};case m.b.INT:case m.b.FLOAT:case m.b.STRING:case m.b.BOOLEAN:case m.b.NULL:case m.b.ENUM:case m.b.VARIABLE:return e}var n}function L(e){return Array.isArray(e)?e.map(([e,n])=>`subfields "${e}" conflict because `+L(n)).join(" and "):e}function X(e,n,t,r,o,i,a,s){if(r.has(a,s,i))return;r.add(a,s,i);const c=e.getFragment(s);if(!c)return;const[u,l]=K(e,t,c);if(a!==u){B(e,n,t,r,o,i,a,u);for(const s of l)X(e,n,t,r,o,i,a,s)}}function H(e,n,t,r,o,i,a,s){if(a===s)return;if(o.has(a,s,i))return;o.add(a,s,i);const c=e.getFragment(a),u=e.getFragment(s);if(!c||!u)return;const[l,f]=K(e,t,c),[d,p]=K(e,t,u);B(e,n,t,r,o,i,l,d);for(const s of p)H(e,n,t,r,o,i,a,s);for(const a of f)H(e,n,t,r,o,i,a,s)}function B(e,n,t,r,o,i,a,s){for(const[c,u]of Object.entries(a)){const a=s[c];if(a)for(const s of u)for(const u of a){const a=G(e,t,r,o,i,c,s,u);a&&n.push(a)}}}function G(e,n,t,r,o,i,a,s){const[u,l,f]=a,[d,p,E]=s,m=o||u!==d&&(0,c.YQ)(u)&&(0,c.YQ)(d);if(!m){const e=l.name.value,n=p.name.value;if(e!==n)return[[i,`"${e}" and "${n}" are different fields`],[l],[p]];if(!function(e,n){const t=e.arguments,r=n.arguments;if(void 0===t||0===t.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(t.length!==r.length)return!1;const o=new Map(r.map(({name:e,value:n})=>[e.value,n]));return t.every(e=>{const n=e.value,t=o.get(e.name.value);return void 0!==t&&J(n)===J(t)})}(l,p))return[[i,"they have differing arguments"],[l],[p]]}const h=null==f?void 0:f.type,v=null==E?void 0:E.type;if(h&&v&&Q(h,v))return[[i,`they return conflicting types "${(0,I.N)(h)}" and "${(0,I.N)(v)}"`],[l],[p]];const T=l.selectionSet,g=p.selectionSet;if(T&&g){const o=function(e,n,t,r,o,i,a,s,c){const u=[],[l,f]=q(e,n,i,a),[d,p]=q(e,n,s,c);B(e,u,n,t,r,o,l,d);for(const i of p)X(e,u,n,t,r,o,l,i);for(const i of f)X(e,u,n,t,r,o,d,i);for(const i of f)for(const a of p)H(e,u,n,t,r,o,i,a);return u}(e,n,t,r,m,(0,c.MR)(h),T,(0,c.MR)(v),g);return function(e,n,t,r){if(e.length>0)return[[n,e.map(([e])=>e)],[t,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(o,i,l,p)}}function J(e){return(0,j.y)(Y(e))}function Q(e,n){return(0,c.Fs)(e)?!(0,c.Fs)(n)||Q(e.ofType,n.ofType):!!(0,c.Fs)(n)||((0,c.bd)(e)?!(0,c.bd)(n)||Q(e.ofType,n.ofType):!!(0,c.bd)(n)||!(!(0,c.zf)(e)&&!(0,c.zf)(n))&&e!==n)}function q(e,n,t,r){const o=n.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);z(e,t,r,i,a);const s=[i,Object.keys(a)];return n.set(r,s),s}function K(e,n,t){const r=n.get(t.selectionSet);if(r)return r;const o=(0,V.v)(e.getSchema(),t.typeCondition);return q(e,n,o,t.selectionSet)}function z(e,n,t,r,o){for(const i of t.selections)switch(i.kind){case m.b.FIELD:{const e=i.name.value;let t;((0,c.YQ)(n)||(0,c.kD)(n))&&(t=n.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([n,i,t]);break}case m.b.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case m.b.INLINE_FRAGMENT:{const t=i.typeCondition,a=t?(0,V.v)(e.getSchema(),t):n;z(e,a,i.selectionSet,r,o);break}}}class W{constructor(){this._data=new Map}has(e,n,t){var r;const o=null===(r=this._data.get(e))||void 0===r?void 0:r.get(n);return void 0!==o&&(!!t||t===o)}add(e,n,t){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[n,t]])):r.set(n,t)}}class Z{constructor(){this._orderedPairSet=new W}has(e,n,t){return e<n?this._orderedPairSet.has(e,n,t):this._orderedPairSet.has(n,e,t)}add(e,n,t){e<n?this._orderedPairSet.add(e,n,t):this._orderedPairSet.add(n,e,t)}}var ee=t(93544),ne=t(48144);function te(e){var n;const t=Object.create(null),r=e.getSchema(),i=null!==(n=null==r?void 0:r.getDirectives())&&void 0!==n?n:S.rc;for(const e of i)t[e.name]=(0,ne.K)(e.args.filter(c.xP),e=>e.name);const a=e.getDocument().definitions;for(const e of a)if(e.kind===m.b.DIRECTIVE_DEFINITION){var s;const n=null!==(s=e.arguments)&&void 0!==s?s:[];t[e.name.value]=(0,ne.K)(n.filter(re),e=>e.name.value)}return{Directive:{leave(n){const r=n.name.value,i=t[r];if(i){var a;const t=null!==(a=n.arguments)&&void 0!==a?a:[],s=new Set(t.map(e=>e.name.value));for(const[t,a]of Object.entries(i))if(!s.has(t)){const i=(0,c.Xj)(a.type)?(0,I.N)(a.type):(0,j.y)(a.type);e.reportError(new o.eO(`Directive "@${r}" argument "${t}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}}}function re(e){return e.type.kind===m.b.NON_NULL_TYPE&&null==e.defaultValue}var oe=t(36220);function ie(e,n,t){var r;const i=null===(r=n.directives)||void 0===r?void 0:r.find(n=>n.name.value===e.name);if(i)return function(e,n,t){var r;const i={},a=null!==(r=n.arguments)&&void 0!==r?r:[],s=(0,ne.K)(a,e=>e.name.value);for(const r of e.args){const e=r.name,a=r.type,u=s[e];if(!u){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,c.bd)(a))throw new o.eO(`Argument "${e}" of required type "${(0,I.N)(a)}" was not provided.`,{nodes:n});continue}const l=u.value;let f=l.kind===m.b.NULL;if(l.kind===m.b.VARIABLE){const n=l.name.value;if(null==t||!ae(t,n)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,c.bd)(a))throw new o.eO(`Argument "${e}" of required type "${(0,I.N)(a)}" was provided the variable "$${n}" which was not provided a runtime value.`,{nodes:l});continue}f=null==t[n]}if(f&&(0,c.bd)(a))throw new o.eO(`Argument "${e}" of non-null type "${(0,I.N)(a)}" must not be null.`,{nodes:l});const d=(0,oe.i)(l,a,t);if(void 0===d)throw new o.eO(`Argument "${e}" has invalid value ${(0,j.y)(l)}.`,{nodes:l});i[e]=d}return i}(e,i,t)}function ae(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function se(e,n,t,r,o,i,a){for(const s of o.selections)switch(s.kind){case m.b.FIELD:{if(!ce(t,s))continue;const e=le(s),n=i.get(e);void 0!==n?n.push(s):i.set(e,[s]);break}case m.b.INLINE_FRAGMENT:if(!ce(t,s)||!ue(e,s,r))continue;se(e,n,t,r,s.selectionSet,i,a);break;case m.b.FRAGMENT_SPREAD:{const o=s.name.value;if(a.has(o)||!ce(t,s))continue;a.add(o);const c=n[o];if(!c||!ue(e,c,r))continue;se(e,n,t,r,c.selectionSet,i,a);break}}}function ce(e,n){const t=ie(S.MQ,n,e);if(!0===(null==t?void 0:t.if))return!1;const r=ie(S.HQ,n,e);return!1!==(null==r?void 0:r.if)}function ue(e,n,t){const r=n.typeCondition;if(!r)return!0;const o=(0,V.v)(e,r);return o===t||!!(0,c.Lc)(o)&&e.isSubType(o,t)}function le(e){return e.alias?e.alias.value:e.name.value}function fe(e,n){const t=e.getInputType();if(!t)return;const r=(0,c.MR)(t);if(!(0,c.zf)(r)){const r=(0,I.N)(t);return void e.reportError(new o.eO(`Expected value of type "${r}", found ${(0,j.y)(n)}.`,{nodes:n}))}try{if(void 0===r.parseLiteral(n,void 0)){const r=(0,I.N)(t);e.reportError(new o.eO(`Expected value of type "${r}", found ${(0,j.y)(n)}.`,{nodes:n}))}}catch(r){const i=(0,I.N)(t);r instanceof o.eO?e.reportError(r):e.reportError(new o.eO(`Expected value of type "${i}", found ${(0,j.y)(n)}; `+r.message,{nodes:n,originalError:r}))}}function de(e,n,t,r,o){if((0,c.bd)(r)&&!(0,c.bd)(n)){if((null==t||t.kind===m.b.NULL)&&void 0===o)return!1;const i=r.ofType;return(0,ee.sP)(e,n,i)}return(0,ee.sP)(e,n,r)}const pe=Object.freeze([function(e){function n(t,r=Object.create(null),o=0){if(t.kind===m.b.FRAGMENT_SPREAD){const i=t.name.value;if(!0===r[i])return!1;const a=e.getFragment(i);if(!a)return!1;try{return r[i]=!0,n(a,r,o)}finally{r[i]=void 0}}if(t.kind===m.b.FIELD&&("fields"===t.name.value||"interfaces"===t.name.value||"possibleTypes"===t.name.value||"inputFields"===t.name.value)&&++o>=3)return!0;if("selectionSet"in t&&t.selectionSet)for(const e of t.selectionSet.selections)if(n(e,r,o))return!0;return!1}return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&n(t))return e.reportError(new o.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}]),Ee=Object.freeze([C,function(e){const n=Object.create(null);return{OperationDefinition(t){const r=t.name;return r&&(n[r.value]?e.reportError(new o.eO(`There can be only one operation named "${r.value}".`,{nodes:[n[r.value],r]})):n[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let n=0;return{Document(e){n=e.definitions.filter(e=>e.kind===m.b.OPERATION_DEFINITION).length},OperationDefinition(t){!t.name&&n>1&&e.reportError(new o.eO("This anonymous operation must be the only defined operation.",{nodes:t}))}}},function(e){return{OperationDefinition(n){if("subscription"===n.operation){const t=e.getSchema(),r=t.getSubscriptionType();if(r){const i=n.name?n.name.value:null,a=Object.create(null),s=e.getDocument(),c=Object.create(null);for(const e of s.definitions)e.kind===m.b.FRAGMENT_DEFINITION&&(c[e.name.value]=e);const u=function(e,n,t,r,o){const i=new Map;return se(e,n,t,r,o,i,new Set),i}(t,c,a,r,n.selectionSet);if(u.size>1){const n=[...u.values()].slice(1).flat();e.reportError(new o.eO(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:n}))}for(const n of u.values())n[0].name.value.startsWith("__")&&e.reportError(new o.eO(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:n}))}}}}},b,function(e){return{InlineFragment(n){const t=n.typeCondition;if(t){const n=(0,V.v)(e.getSchema(),t);if(n&&!(0,c.ML)(n)){const n=(0,j.y)(t);e.reportError(new o.eO(`Fragment cannot condition on non composite type "${n}".`,{nodes:t}))}}},FragmentDefinition(n){const t=(0,V.v)(e.getSchema(),n.typeCondition);if(t&&!(0,c.ML)(t)){const t=(0,j.y)(n.typeCondition);e.reportError(new o.eO(`Fragment "${n.name.value}" cannot condition on non composite type "${t}".`,{nodes:n.typeCondition}))}}}},function(e){return{VariableDefinition(n){const t=(0,V.v)(e.getSchema(),n.type);if(void 0!==t&&!(0,c.dX)(t)){const t=n.variable.name.value,r=(0,j.y)(n.type);e.reportError(new o.eO(`Variable "$${t}" cannot be non-input type "${r}".`,{nodes:n.type}))}}}},function(e){return{Field(n){const t=e.getType(),r=n.selectionSet;if(t)if((0,c.zf)((0,c.MR)(t))){if(r){const i=n.name.value,a=(0,I.N)(t);e.reportError(new o.eO(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=n.name.value,i=(0,I.N)(t);e.reportError(new o.eO(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:n}))}}else{const r=n.name.value,i=(0,I.N)(t);e.reportError(new o.eO(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:n}))}}}},function(e){return{Field(n){const t=e.getParentType();if(t&&!e.getFieldDef()){const r=e.getSchema(),i=n.name.value;let a=(0,p.a)("to use an inline fragment on",function(e,n,t){if(!(0,c.Lc)(n))return[];const r=new Set,o=Object.create(null);for(const a of e.getPossibleTypes(n))if(a.getFields()[t]){r.add(a),o[a.name]=1;for(const e of a.getInterfaces()){var i;e.getFields()[t]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort((n,t)=>{const r=o[t.name]-o[n.name];return 0!==r?r:(0,c.kD)(n)&&e.isSubType(n,t)?-1:(0,c.kD)(t)&&e.isSubType(t,n)?1:(0,k.p)(n.name,t.name)}).map(e=>e.name)}(r,t,i));""===a&&(a=(0,p.a)(function(e,n){if((0,c.YQ)(e)||(0,c.kD)(e)){const t=Object.keys(e.getFields());return(0,E.x)(n,t)}return[]}(t,i))),e.reportError(new o.eO(`Cannot query field "${i}" on type "${t.name}".`+a,{nodes:n}))}}}},function(e){const n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(t){const r=t.name.value;return n[r]?e.reportError(new o.eO(`There can be only one fragment named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name,!1}}},U,M,function(e){return{InlineFragment(n){const t=e.getType(),r=e.getParentType();if((0,c.ML)(t)&&(0,c.ML)(r)&&!(0,ee.uI)(e.getSchema(),t,r)){const i=(0,I.N)(r),a=(0,I.N)(t);e.reportError(new o.eO(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:n}))}},FragmentSpread(n){const t=n.name.value,r=function(e,n){const t=e.getFragment(n);if(t){const n=(0,V.v)(e.getSchema(),t.typeCondition);if((0,c.ML)(n))return n}}(e,t),i=e.getParentType();if(r&&i&&!(0,ee.uI)(e.getSchema(),r,i)){const a=(0,I.N)(i),s=(0,I.N)(r);e.reportError(new o.eO(`Fragment "${t}" cannot be spread here as objects of type "${a}" can never be of type "${s}".`,{nodes:n}))}}}},function(e){const n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(a){if(n[a.name.value])return;const s=a.name.value;n[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){r[s]=t.length;for(const n of c){const a=n.name.value,s=r[a];if(t.push(n),void 0===s){const n=e.getFragment(a);n&&i(n)}else{const n=t.slice(s),r=n.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new o.eO(`Cannot spread fragment "${a}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:n}))}t.pop()}r[s]=void 0}}},function(e){return{OperationDefinition(n){var t;const r=P(null!==(t=n.variableDefinitions)&&void 0!==t?t:[],e=>e.variable.name.value);for(const[n,t]of r)t.length>1&&e.reportError(new o.eO(`There can be only one variable named "$${n}".`,{nodes:t.map(e=>e.variable.name)}))}}},function(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:i}of r){const r=i.name.value;!0!==n[r]&&e.reportError(new o.eO(t.name?`Variable "$${r}" is not defined by operation "${t.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,t]}))}}},VariableDefinition(e){n[e.variable.name.value]=!0}}},function(e){let n=[];return{OperationDefinition:{enter(){n=[]},leave(t){const r=Object.create(null),i=e.getRecursiveVariableUsages(t);for(const{node:e}of i)r[e.name.value]=!0;for(const i of n){const n=i.variable.name.value;!0!==r[n]&&e.reportError(new o.eO(t.name?`Variable "$${n}" is never used in operation "${t.name.value}".`:`Variable "$${n}" is never used.`,{nodes:i}))}}},VariableDefinition(e){n.push(e)}}},D,F,function(e){return{...x(e),Argument(n){const t=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!t&&r&&i){const t=n.name.value,a=r.args.map(e=>e.name),s=(0,E.x)(t,a);e.reportError(new o.eO(`Unknown argument "${t}" on field "${i.name}.${r.name}".`+(0,p.a)(s),{nodes:n}))}}}},A,function(e){let n={};return{OperationDefinition:{enter(){n={}}},VariableDefinition(e){n[e.variable.name.value]=e},ListValue(n){const t=(0,c.yl)(e.getParentInputType());if(!(0,c.Fs)(t))return fe(e,n),!1},ObjectValue(n){const t=(0,c.MR)(e.getInputType());if(!(0,c.qK)(t))return fe(e,n),!1;const r=(0,ne.K)(n.fields,e=>e.name.value);for(const i of Object.values(t.getFields()))if(!r[i.name]&&(0,c.YX)(i)){const r=(0,I.N)(i.type);e.reportError(new o.eO(`Field "${t.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:n}))}t.isOneOf&&function(e,n,t,r){var i;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new o.eO(`OneOf Input Object "${t.name}" must specify exactly one key.`,{nodes:[n]}));const s=null===(i=r[a[0]])||void 0===i?void 0:i.value;s&&s.kind!==m.b.NULL||e.reportError(new o.eO(`Field "${t.name}.${a[0]}" must be non-null.`,{nodes:[n]}))}(e,n,t,r)},ObjectField(n){const t=(0,c.MR)(e.getParentInputType());if(!e.getInputType()&&(0,c.qK)(t)){const r=(0,E.x)(n.name.value,Object.keys(t.getFields()));e.reportError(new o.eO(`Field "${n.name.value}" is not defined by type "${t.name}".`+(0,p.a)(r),{nodes:n}))}},NullValue(n){const t=e.getInputType();(0,c.bd)(t)&&e.reportError(new o.eO(`Expected value of type "${(0,I.N)(t)}", found ${(0,j.y)(n)}.`,{nodes:n}))},EnumValue:n=>fe(e,n),IntValue:n=>fe(e,n),FloatValue:n=>fe(e,n),StringValue:n=>fe(e,n),BooleanValue:n=>fe(e,n)}},function(e){return{...te(e),Field:{leave(n){var t;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(t=n.arguments)||void 0===t?void 0:t.map(e=>e.name.value));for(const t of r.args)if(!i.has(t.name)&&(0,c.xP)(t)){const i=(0,I.N)(t.type);e.reportError(new o.eO(`Field "${r.name}" argument "${t.name}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}},function(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:t,type:i,defaultValue:a,parentType:s}of r){const r=t.name.value,u=n[r];if(u&&i){const n=e.getSchema(),l=(0,V.v)(n,u.type);if(l&&!de(n,l,u.defaultValue,i,a)){const n=(0,I.N)(l),a=(0,I.N)(i);e.reportError(new o.eO(`Variable "$${r}" of type "${n}" used in position expecting type "${a}".`,{nodes:[u,t]}))}(0,c.qK)(s)&&s.isOneOf&&(0,c.wj)(l)&&e.reportError(new o.eO(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[u,t]}))}}}},VariableDefinition(e){n[e.variable.name.value]=e}}},function(e){const n=new W,t=new Z,r=new Map;return{SelectionSet(i){const a=function(e,n,t,r,o,i){const a=[],[s,c]=q(e,n,o,i);if(function(e,n,t,r,o,i){for(const[a,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let c=i+1;c<s.length;c++){const u=G(e,t,r,o,!1,a,s[i],s[c]);u&&n.push(u)}}(e,a,n,t,r,s),0!==c.length)for(let o=0;o<c.length;o++){X(e,a,n,t,r,!1,s,c[o]);for(let i=o+1;i<c.length;i++)H(e,a,n,t,r,!1,c[o],c[i])}return a}(e,r,n,t,e.getParentType(),i);for(const[[n,t],r,i]of a){const a=L(t);e.reportError(new o.eO(`Fields "${n}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}},R,...pe]);Object.freeze([i,a,s,u,l,function(e){return{DirectiveDefinition(e){var n;const r=null!==(n=e.arguments)&&void 0!==n?n:[];return t(`@${e.name.value}`,r)},InterfaceTypeDefinition:n,InterfaceTypeExtension:n,ObjectTypeDefinition:n,ObjectTypeExtension:n};function n(e){var n;const r=e.name.value,o=null!==(n=e.fields)&&void 0!==n?n:[];for(const e of o){var i;t(`${r}.${e.name.value}`,null!==(i=e.arguments)&&void 0!==i?i:[])}return!1}function t(n,t){const r=P(t,e=>e.name.value);for(const[t,i]of r)i.length>1&&e.reportError(new o.eO(`Argument "${n}(${t}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}},d,b,D,F,$,x,A,R,te]);var me=t(46228),he=t(34627),ve=t(99703),Te=t(58709);class ge{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const e of this.getDocument().definitions)e.kind===m.b.FRAGMENT_DEFINITION&&(n[e.name.value]=e);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const t=[e];let r;for(;r=t.pop();)for(const e of r.selections)e.kind===m.b.FRAGMENT_SPREAD?n.push(e):e.selectionSet&&t.push(e.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const t=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==t[o]){t[o]=!0;const e=this.getFragment(o);e&&(n.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}Symbol.toStringTag;class be extends ge{constructor(e,n,t,r){super(n,r),this._schema=e,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const t=[],r=new Te.D(this._schema);(0,he.YR)(e,(0,Te.S)(r,{VariableDefinition:()=>!1,Variable(e){t.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),n=t,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const t of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Oe(e,n,t=Ee,r,i=new Te.D(e)){var a;const s=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;n||(0,me.U)(!1,"Must provide document."),(0,ve.Y)(e);const c=Object.freeze({}),u=[],l=new be(e,n,i,e=>{if(u.length>=s)throw u.push(new o.eO("Too many validation errors, error limit reached. Validation aborted.")),c;u.push(e)}),f=(0,he.oP)(t.map(e=>e(l)));try{(0,he.YR)(n,(0,Te.S)(i,f))}catch(e){if(e!==c)throw e}return u}var Ie=t(26788);function Ne(e){return{Field(n){const t=e.getFieldDef(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=e.getParentType();null!=i||(0,N.V)(!1),e.reportError(new o.eO(`The field ${i.name}.${t.name} is deprecated. ${r}`,{nodes:n}))}},Argument(n){const t=e.getArgument(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new o.eO(`Directive "@${i.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}));else{const i=e.getParentType(),a=e.getFieldDef();null!=i&&null!=a||(0,N.V)(!1),e.reportError(new o.eO(`Field "${i.name}.${a.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}))}}},ObjectField(n){const t=(0,c.MR)(e.getParentInputType());if((0,c.qK)(t)){const r=t.getFields()[n.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new o.eO(`The input field ${t.name}.${r.name} is deprecated. ${i}`,{nodes:n}))}},EnumValue(n){const t=e.getEnumValue(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const i=(0,c.MR)(e.getInputType());null!=i||(0,N.V)(!1),e.reportError(new o.eO(`The enum value "${i.name}.${t.name}" is deprecated. ${r}`,{nodes:n}))}}}}var ye=t(2629),_e=t(49181),Se=(t(75909),t(63696),t(78325),Object.defineProperty),De=(e,n)=>Se(e,"name",{value:n,configurable:!0});const Fe=[i,a,s,u,l,d,b,D,F,$,A,R];function $e(e,n,t,r,o){const i=Ee.filter(e=>e!==M&&e!==C&&(!r||e!==U));return t&&Array.prototype.push.apply(i,t),o&&Array.prototype.push.apply(i,Fe),Oe(e,n,i).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===m.b.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}De($e,"validateWithCustomRules");const we="Error",Pe="Warning",Ae="Information",Re="Hint",Ce={[we]:1,[Pe]:2,[Ae]:3,[Re]:4},ke=De((e,n)=>{if(!e)throw new Error(n)},"invariant");function je(e,n=null,t,r,i){var a,s;let c=null;i&&(e+="string"==typeof i?"\n\n"+i:"\n\n"+i.reduce((e,n)=>e+((0,j.y)(n)+"\n\n"),""));try{c=(0,Ie.qg)(e)}catch(n){if(n instanceof o.eO){const t=Me(null!==(s=null===(a=n.locations)||void 0===a?void 0:a[0])&&void 0!==s?s:{line:0,column:0},e);return[{severity:Ce.Error,message:n.message,source:"GraphQL: Syntax",range:t}]}throw n}return Ve(c,n,t,r)}function Ve(e,n=null,t,r){if(!n)return[];const o=xe($e(n,e,t,r),e=>Ue(e,Ce.Error,"Validation")),i=xe(Oe(n,e,[Ne]),e=>Ue(e,Ce.Warning,"Deprecation"));return o.concat(i)}function xe(e,n){return Array.prototype.concat.apply([],e.map(n))}function Ue(e,n,t){if(!e.nodes)return[];const r=[];return e.nodes.forEach(o=>{const i="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(i){ke(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],a=Ye(i),s=o.column+(a.end-a.start);r.push({source:`GraphQL: ${t}`,message:e.message,severity:n,range:new _e.R(new _e.P(o.line-1,o.column-1),new _e.P(o.line-1,s))})}}),r}function Me(e,n){const t=(0,ye.o)(),r=t.startState(),o=n.split("\n");ke(o.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let n=0;n<e.line;n++)for(i=new _e.C(o[n]);!i.eol()&&"invalidchar"!==t.token(i,r););ke(i,"Expected Parser stream to be available.");const a=e.line-1,s=i.getStartOfToken(),c=i.getCurrentPosition();return new _e.R(new _e.P(a,s),new _e.P(a,c))}function Ye(e){const n=e.loc;return ke(n,"Expected ASTNode to have a location."),n}De(je,"getDiagnostics"),De(Ve,"validateQuery"),De(xe,"mapCat"),De(Ue,"annotations"),De(Me,"getRange"),De(Ye,"getLocation");const Le=["error","warning","information","hint"],Xe={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.C.registerHelper("lint","graphql",(e,n)=>je(e,n.schema,n.validationRules,void 0,n.externalFragments).map(e=>({message:e.message,severity:e.severity?Le[e.severity-1]:Le[0],type:e.source?Xe[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[881],{7182
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[881],{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})},32881(e,t,n){n.r(t);var i=n(38950),r=n(85236),l=n(50080),o=n(7182),s=(n(75909),n(63696),n(78325),Object.defineProperty),a=(e,t)=>s(e,"name",{value:t,configurable:!0});function c(e,t,n){const i=f(n,p(t.string));if(!i)return;const r=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:i,from:{line:e.line,ch:r},to:{line:e.line,ch:t.end}}}function f(e,t){return t?u(u(e.map(e=>({proximity:d(p(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):u(e,e=>!e.isDeprecated)}function u(e,t){const n=e.filter(t);return 0===n.length?e:n}function p(e){return e.toLowerCase().replace(/\W/g,"")}function d(e,t){let n=y(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function y(e,t){let n,i;const r=[],l=e.length,o=t.length;for(n=0;n<=l;n++)r[n]=[n];for(i=1;i<=o;i++)r[0][i]=i;for(n=1;n<=l;n++)for(i=1;i<=o;i++){const l=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+l),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+l))}return r[l][o]}function m(e,t,n){const i="Invalid"===t.state.kind?t.state.prevState:t.state,o=i.kind,s=i.step;if("Document"===o&&0===s)return c(e,t,[{text:"{"}]);const a=n.variableToType;if(!a)return;const f=g(a,t.state);if("Document"===o||"Variable"===o&&0===s)return c(e,t,Object.keys(a).map(e=>({text:`"${e}": `,type:a[e]})));if(("ObjectValue"===o||"ObjectField"===o&&0===s)&&f.fields)return c(e,t,Object.keys(f.fields).map(e=>f.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===o||"NumberValue"===o||"BooleanValue"===o||"NullValue"===o||"ListValue"===o&&1===s||"ObjectField"===o&&2===s||"Variable"===o&&2===s){const n=f.type?(0,r.MR)(f.type):void 0;if(n instanceof r.zP)return c(e,t,[{text:"{"}]);if(n instanceof r.Zb)return c(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})));if(n===l.kk)return c(e,t,[{text:"true",type:l.kk,description:"Not false."},{text:"false",type:l.kk,description:"Not true."}])}}function g(e,t){const n={type:null,fields:null};return(0,o.f)(t,t=>{if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){const e=n.type?(0,r.yl)(n.type):void 0;n.type=e instanceof r.KT?e.ofType:null}else if("ObjectValue"===t.kind){const e=n.type?(0,r.MR)(n.type):void 0;n.fields=e instanceof r.zP?e.getFields():null}else if("ObjectField"===t.kind){const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type}}),n}a(c,"hintList"),a(f,"filterAndSortList"),a(u,"filterNonEmpty"),a(p,"normalizeText"),a(d,"getProximity"),a(y,"lexicalDistance"),i.C.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),l=m(n,r,t);return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=i.C.Pos(l.from.line,l.from.ch),l.to=i.C.Pos(l.to.line,l.to.ch),i.C.signal(e,"hasCompletion",e,l,r)),l}),a(m,"getVariablesHint"),a(g,"getTypeInfo")}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[929],{82929:(e,t,r)=>{r.d(t,{j:()=>u});var n=r(38950),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(o,"_mergeNamespaces");var s,c={exports:{}};(s=n.a.exports).defineMode("javascript",(function(e,t){var r,n,a=e.indentUnit,o=t.statementIndent,c=t.jsonld,u=t.json||c,f=!1!==t.trackScope,l=t.typescript,p=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}i(e,"kw");var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),m=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,a){return r=e,n=a,t}function b(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x,x(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):at(e,t,1)?(k(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(p))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(m.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(y))return r.tokenize=b,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=b),v("string","string")}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=b;break}n="*"==r}return v("comment","comment")}function g(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=b;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}i(k,"readRegexp"),i(v,"ret"),i(b,"tokenBase"),i(w,"tokenString"),i(x,"tokenComment"),i(g,"tokenQuasi");function h(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}i(h,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function M(e,t){if(!f)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,a){var i=e.cc;for(T.state=e,T.stream=a,T.marked=null,T.cc=i,T.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?J:W)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return T.marked?T.marked:"variable"==r&&M(e,n)?"variable-2":t}}i(A,"JSLexical"),i(M,"inScope"),i(E,"parseJS");var T={state:null,column:null,marked:null,cc:null};function V(){for(var e=arguments.length-1;e>=0;e--)T.cc.push(arguments[e])}function C(){return V.apply(null,arguments),!0}function I(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function z(e){var r=T.state;if(T.marked="def",f){if(r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=S(e,r.context);if(null!=n)return void(r.context=n)}else if(!I(e,r.localVars))return void(r.localVars=new $(e,r.localVars));t.globalVars&&!I(e,r.globalVars)&&(r.globalVars=new $(e,r.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new _(r,t.vars,!0):null}return I(e,t.vars)?t:new _(t.prev,new $(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function _(e,t,r){this.prev=e,this.vars=t,this.block=r}function $(e,t){this.name=e,this.next=t}i(V,"pass"),i(C,"cont"),i(I,"inList"),i(z,"register"),i(S,"registerVarScoped"),i(O,"isModifier"),i(_,"Context"),i($,"Var");var q=new $("this",new $("arguments",null));function N(){T.state.context=new _(T.state.context,T.state.localVars,!1),T.state.localVars=q}function P(){T.state.context=new _(T.state.context,T.state.localVars,!0),T.state.localVars=null}function B(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function F(e,t){var r=i((function(){var r=T.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new A(n,T.stream.column(),e,null,r.lexical,t)}),"result");return r.lex=!0,r}function L(){var e=T.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function Q(e){function t(r){return r==e?C():";"==e||"}"==r||")"==r||"]"==r?V():C(t)}return i(t,"exp"),t}function W(e,t){return"var"==e?C(F("vardef",t),Ve,Q(";"),L):"keyword a"==e?C(F("form"),U,W,L):"keyword b"==e?C(F("form"),W,L):"keyword d"==e?T.stream.match(/^\s*$/,!1)?C():C(F("stat"),K,Q(";"),L):"debugger"==e?C(Q(";")):"{"==e?C(F("}"),P,pe,L,B):";"==e?C():"if"==e?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==L&&T.state.cc.pop()(),C(F("form"),U,W,L,_e)):"function"==e?C(Pe):"for"==e?C(F("form"),P,$e,W,B,L):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form","class"==e?e:t),We,L)):"variable"==e?l&&"declare"==t?(T.marked="keyword",C(W)):l&&("module"==t||"enum"==t||"type"==t)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==t?C(tt):"type"==t?C(Fe,Q("operator"),ve,Q(";")):C(F("form"),Ce,Q("{"),F("}"),pe,L,L)):l&&"namespace"==t?(T.marked="keyword",C(F("form"),J,W,L)):l&&"abstract"==t?(T.marked="keyword",C(W)):C(F("stat"),ie):"switch"==e?C(F("form"),U,Q("{"),F("}","switch"),P,pe,L,L,B):"case"==e?C(J,Q(":")):"default"==e?C(Q(":")):"catch"==e?C(F("form"),N,D,W,L,B):"export"==e?C(F("stat"),Ue,L):"import"==e?C(F("stat"),Ke,L):"async"==e?C(W):"@"==t?C(J,W):V(F("stat"),J,Q(";"),L)}function D(e){if("("==e)return C(Le,Q(")"))}function J(e,t){return H(e,t,!1)}function R(e,t){return H(e,t,!0)}function U(e){return"("!=e?V():C(F(")"),K,Q(")"),L)}function H(e,t,r){if(T.state.fatArrowAt==T.stream.start){var n=r?te:ee;if("("==e)return C(N,F(")"),fe(Le,")"),L,Q("=>"),n,B);if("variable"==e)return V(N,Ce,Q("=>"),n,B)}var a=r?X:G;return j.hasOwnProperty(e)?C(a):"function"==e?C(Pe,a):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form"),Qe,L)):"keyword c"==e||"async"==e?C(r?R:J):"("==e?C(F(")"),K,Q(")"),L,a):"operator"==e||"spread"==e?C(r?R:J):"["==e?C(F("]"),et,L,a):"{"==e?le(se,"}",null,a):"quasi"==e?V(Y,a):"new"==e?C(re(r)):C()}function K(e){return e.match(/[;\}\)\],]/)?V():V(J)}function G(e,t){return","==e?C(K):X(e,t,!1)}function X(e,t,r){var n=0==r?G:X,a=0==r?J:R;return"=>"==e?C(N,r?te:ee,B):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?C(n):l&&"<"==t&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(F(">"),fe(ve,">"),L,n):"?"==t?C(J,Q(":"),a):C(a):"quasi"==e?V(Y,n):";"!=e?"("==e?le(R,")","call",n):"."==e?C(oe,n):"["==e?C(F("]"),K,Q("]"),L,n):l&&"as"==t?(T.marked="keyword",C(ve,n)):"regexp"==e?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),C(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(Y):C(K,Z)}function Z(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(Y)}function ee(e){return h(T.stream,T.state),V("{"==e?W:J)}function te(e){return h(T.stream,T.state),V("{"==e?W:R)}function re(e){return function(t){return"."==t?C(e?ae:ne):"variable"==t&&l?C(Me,e?X:G):V(e?R:J)}}function ne(e,t){if("target"==t)return T.marked="keyword",C(G)}function ae(e,t){if("target"==t)return T.marked="keyword",C(X)}function ie(e){return":"==e?C(L,W):V(G,Q(";"),L)}function oe(e){if("variable"==e)return T.marked="property",C()}function se(e,t){return"async"==e?(T.marked="property",C(se)):"variable"==e||"keyword"==T.style?(T.marked="property","get"==t||"set"==t?C(ce):(l&&T.state.fatArrowAt==T.stream.start&&(r=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+r[0].length),C(ue))):"number"==e||"string"==e?(T.marked=c?"property":T.style+" property",C(ue)):"jsonld-keyword"==e?C(ue):l&&O(t)?(T.marked="keyword",C(se)):"["==e?C(J,de,Q("]"),ue):"spread"==e?C(R,ue):"*"==t?(T.marked="keyword",C(se)):":"==e?V(ue):void 0;var r}function ce(e){return"variable"!=e?V(ue):(T.marked="property",C(Pe))}function ue(e){return":"==e?C(R):"("==e?V(Pe):void 0}function fe(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=T.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C((function(r,n){return r==t||n==t?V():V(e)}),n)}return a==t||i==t?C():r&&r.indexOf(";")>-1?V(e):C(Q(t))}return i(n,"proceed"),function(r,a){return r==t||a==t?C():V(e,n)}}function le(e,t,r){for(var n=3;n<arguments.length;n++)T.cc.push(arguments[n]);return C(F(t,r),fe(e,t),L)}function pe(e){return"}"==e?C():V(W,pe)}function de(e,t){if(l){if(":"==e)return C(ve);if("?"==t)return C(de)}}function me(e,t){if(l&&(":"==e||"in"==t))return C(ve)}function ye(e){if(l&&":"==e)return T.stream.match(/^\s*\w+\s+is\b/,!1)?C(J,ke,ve):C(ve)}function ke(e,t){if("is"==t)return T.marked="keyword",C()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(T.marked="keyword",C("typeof"==t?R:ve)):"variable"==e||"void"==t?(T.marked="type",C(Ae)):"|"==t||"&"==t?C(ve):"string"==e||"number"==e||"atom"==e?C(Ae):"["==e?C(F("]"),fe(ve,"]",","),L,Ae):"{"==e?C(F("}"),we,L,Ae):"("==e?C(fe(je,")"),be,Ae):"<"==e?C(fe(ve,">"),ve):"quasi"==e?V(ge,Ae):void 0}function be(e){if("=>"==e)return C(ve)}function we(e){return e.match(/[\}\)\]]/)?C():","==e||";"==e?C(we):V(xe,we)}function xe(e,t){return"variable"==e||"keyword"==T.style?(T.marked="property",C(xe)):"?"==t||"number"==e||"string"==e?C(xe):":"==e?C(ve):"["==e?C(Q("variable"),me,Q("]"),xe):"("==e?V(Be,xe):e.match(/[;\}\)\],]/)?void 0:C()}function ge(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(ge):C(ve,he)}function he(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(ge)}function je(e,t){return"variable"==e&&T.stream.match(/^\s*[?:]/,!1)||"?"==t?C(je):":"==e?C(ve):"spread"==e?C(je):V(ve)}function Ae(e,t){return"<"==t?C(F(">"),fe(ve,">"),L,Ae):"|"==t||"."==e||"&"==t?C(ve):"["==e?C(ve,Q("]"),Ae):"extends"==t||"implements"==t?(T.marked="keyword",C(ve)):"?"==t?C(ve,Q(":"),ve):void 0}function Me(e,t){if("<"==t)return C(F(">"),fe(ve,">"),L,Ae)}function Ee(){return V(ve,Te)}function Te(e,t){if("="==t)return C(ve)}function Ve(e,t){return"enum"==t?(T.marked="keyword",C(tt)):V(Ce,de,Se,Oe)}function Ce(e,t){return l&&O(t)?(T.marked="keyword",C(Ce)):"variable"==e?(z(t),C()):"spread"==e?C(Ce):"["==e?le(ze,"]"):"{"==e?le(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||T.stream.match(/^\s*:/,!1)?("variable"==e&&(T.marked="property"),"spread"==e?C(Ce):"}"==e?V():"["==e?C(J,Q("]"),Q(":"),Ie):C(Q(":"),Ce,Se)):(z(t),C(Se))}function ze(){return V(Ce,Se)}function Se(e,t){if("="==t)return C(R)}function Oe(e){if(","==e)return C(Ve)}function _e(e,t){if("keyword b"==e&&"else"==t)return C(F("form","else"),W,L)}function $e(e,t){return"await"==t?C($e):"("==e?C(F(")"),qe,L):void 0}function qe(e){return"var"==e?C(Ve,Ne):"variable"==e?C(Ne):V(Ne)}function Ne(e,t){return")"==e?C():";"==e?C(Ne):"in"==t||"of"==t?(T.marked="keyword",C(J,Ne)):V(J,Ne)}function Pe(e,t){return"*"==t?(T.marked="keyword",C(Pe)):"variable"==e?(z(t),C(Pe)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,W,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Pe):void 0}function Be(e,t){return"*"==t?(T.marked="keyword",C(Be)):"variable"==e?(z(t),C(Be)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Be):void 0}function Fe(e,t){return"keyword"==e||"variable"==e?(T.marked="type",C(Fe)):"<"==t?C(F(">"),fe(Ee,">"),L):void 0}function Le(e,t){return"@"==t&&C(J,Le),"spread"==e?C(Le):l&&O(t)?(T.marked="keyword",C(Le)):l&&"this"==e?C(de,Se):V(Ce,de,Se)}function Qe(e,t){return"variable"==e?We(e,t):De(e,t)}function We(e,t){if("variable"==e)return z(t),C(De)}function De(e,t){return"<"==t?C(F(">"),fe(Ee,">"),L,De):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(T.marked="keyword"),C(l?ve:J,De)):"{"==e?C(F("}"),Je,L):void 0}function Je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&O(t))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",C(Je)):"variable"==e||"keyword"==T.style?(T.marked="property",C(Re,Je)):"number"==e||"string"==e?C(Re,Je):"["==e?C(J,de,Q("]"),Re,Je):"*"==t?(T.marked="keyword",C(Je)):l&&"("==e?V(Be,Je):";"==e||","==e?C(Je):"}"==e?C():"@"==t?C(J,Je):void 0}function Re(e,t){if("!"==t)return C(Re);if("?"==t)return C(Re);if(":"==e)return C(ve,Se);if("="==t)return C(R);var r=T.state.lexical.prev;return V(r&&"interface"==r.info?Be:Pe)}function Ue(e,t){return"*"==t?(T.marked="keyword",C(Ze,Q(";"))):"default"==t?(T.marked="keyword",C(J,Q(";"))):"{"==e?C(fe(He,"}"),Ze,Q(";")):V(W)}function He(e,t){return"as"==t?(T.marked="keyword",C(Q("variable"))):"variable"==e?V(R,He):void 0}function Ke(e){return"string"==e?C():"("==e?V(J):"."==e?V(G):V(Ge,Xe,Ze)}function Ge(e,t){return"{"==e?le(Ge,"}"):("variable"==e&&z(t),"*"==t&&(T.marked="keyword"),C(Ye))}function Xe(e){if(","==e)return C(Ge,Xe)}function Ye(e,t){if("as"==t)return T.marked="keyword",C(Ge)}function Ze(e,t){if("from"==t)return T.marked="keyword",C(J)}function et(e){return"]"==e?C():V(fe(R,"]"))}function tt(){return V(F("form"),Ce,Q("{"),F("}"),fe(rt,"}"),L,L)}function rt(){return V(Ce,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||m.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==b&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return i(N,"pushcontext"),i(P,"pushblockcontext"),N.lex=P.lex=!0,i(B,"popcontext"),B.lex=!0,i(F,"pushlex"),i(L,"poplex"),L.lex=!0,i(Q,"expect"),i(W,"statement"),i(D,"maybeCatchBinding"),i(J,"expression"),i(R,"expressionNoComma"),i(U,"parenExpr"),i(H,"expressionInner"),i(K,"maybeexpression"),i(G,"maybeoperatorComma"),i(X,"maybeoperatorNoComma"),i(Y,"quasi"),i(Z,"continueQuasi"),i(ee,"arrowBody"),i(te,"arrowBodyNoComma"),i(re,"maybeTarget"),i(ne,"target"),i(ae,"targetNoComma"),i(ie,"maybelabel"),i(oe,"property"),i(se,"objprop"),i(ce,"getterSetter"),i(ue,"afterprop"),i(fe,"commasep"),i(le,"contCommasep"),i(pe,"block"),i(de,"maybetype"),i(me,"maybetypeOrIn"),i(ye,"mayberettype"),i(ke,"isKW"),i(ve,"typeexpr"),i(be,"maybeReturnType"),i(we,"typeprops"),i(xe,"typeprop"),i(ge,"quasiType"),i(he,"continueQuasiType"),i(je,"typearg"),i(Ae,"afterType"),i(Me,"maybeTypeArgs"),i(Ee,"typeparam"),i(Te,"maybeTypeDefault"),i(Ve,"vardef"),i(Ce,"pattern"),i(Ie,"proppattern"),i(ze,"eltpattern"),i(Se,"maybeAssign"),i(Oe,"vardefCont"),i(_e,"maybeelse"),i($e,"forspec"),i(qe,"forspec1"),i(Ne,"forspec2"),i(Pe,"functiondef"),i(Be,"functiondecl"),i(Fe,"typename"),i(Le,"funarg"),i(Qe,"classExpression"),i(We,"className"),i(De,"classNameAfter"),i(Je,"classBody"),i(Re,"classfield"),i(Ue,"afterExport"),i(He,"exportField"),i(Ke,"afterImport"),i(Ge,"importSpec"),i(Xe,"maybeMoreImports"),i(Ye,"maybeAs"),i(Ze,"maybeFrom"),i(et,"arrayLiteral"),i(tt,"enumdef"),i(rt,"enummember"),i(nt,"isContinuedStatement"),i(at,"expressionAllowed"),{startState:function(e){var r={tokenize:b,lastType:"sof",cc:[],lexical:new A((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new _(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),h(e,t)),t.tokenize!=x&&e.eatSpace())return null;var a=t.tokenize(e,t);return"comment"==r?a:(t.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",E(t,a,r,n,e))},indent:function(e,r){if(e.tokenize==x||e.tokenize==g)return s.Pass;if(e.tokenize!=b)return 0;var n,i=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var f=e.cc[u];if(f==L)c=c.prev;else if(f!=_e&&f!=B)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(n=e.cc[e.cc.length-1])&&(n==G||n==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var l=c.type,p=i==l;return"vardef"==l?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==l&&"{"==i?c.indented:"form"==l?c.indented+a:"stat"==l?c.indented+(nt(e,r)?o||a:0):"switch"!=c.info||p||0==t.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:at,skipExpression:function(e){E(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=o({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[929],{82929(e,t,r){r.d(t,{j:()=>u});var n=r(38950),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(o,"_mergeNamespaces");var s,c={exports:{}};(s=n.a.exports).defineMode("javascript",function(e,t){var r,n,a=e.indentUnit,o=t.statementIndent,c=t.jsonld,u=t.json||c,f=!1!==t.trackScope,l=t.typescript,p=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}i(e,"kw");var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),m=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,a){return r=e,n=a,t}function b(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x,x(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):at(e,t,1)?(k(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(p))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(m.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(y))return r.tokenize=b,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=b),v("string","string")}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=b;break}n="*"==r}return v("comment","comment")}function g(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=b;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}i(k,"readRegexp"),i(v,"ret"),i(b,"tokenBase"),i(w,"tokenString"),i(x,"tokenComment"),i(g,"tokenQuasi");function h(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}i(h,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function M(e,t){if(!f)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,a){var i=e.cc;for(T.state=e,T.stream=a,T.marked=null,T.cc=i,T.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?J:W)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return T.marked?T.marked:"variable"==r&&M(e,n)?"variable-2":t}}i(A,"JSLexical"),i(M,"inScope"),i(E,"parseJS");var T={state:null,column:null,marked:null,cc:null};function V(){for(var e=arguments.length-1;e>=0;e--)T.cc.push(arguments[e])}function C(){return V.apply(null,arguments),!0}function I(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function z(e){var r=T.state;if(T.marked="def",f){if(r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=S(e,r.context);if(null!=n)return void(r.context=n)}else if(!I(e,r.localVars))return void(r.localVars=new $(e,r.localVars));t.globalVars&&!I(e,r.globalVars)&&(r.globalVars=new $(e,r.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new _(r,t.vars,!0):null}return I(e,t.vars)?t:new _(t.prev,new $(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function _(e,t,r){this.prev=e,this.vars=t,this.block=r}function $(e,t){this.name=e,this.next=t}i(V,"pass"),i(C,"cont"),i(I,"inList"),i(z,"register"),i(S,"registerVarScoped"),i(O,"isModifier"),i(_,"Context"),i($,"Var");var q=new $("this",new $("arguments",null));function N(){T.state.context=new _(T.state.context,T.state.localVars,!1),T.state.localVars=q}function P(){T.state.context=new _(T.state.context,T.state.localVars,!0),T.state.localVars=null}function B(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function F(e,t){var r=i(function(){var r=T.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new A(n,T.stream.column(),e,null,r.lexical,t)},"result");return r.lex=!0,r}function L(){var e=T.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function Q(e){function t(r){return r==e?C():";"==e||"}"==r||")"==r||"]"==r?V():C(t)}return i(t,"exp"),t}function W(e,t){return"var"==e?C(F("vardef",t),Ve,Q(";"),L):"keyword a"==e?C(F("form"),U,W,L):"keyword b"==e?C(F("form"),W,L):"keyword d"==e?T.stream.match(/^\s*$/,!1)?C():C(F("stat"),K,Q(";"),L):"debugger"==e?C(Q(";")):"{"==e?C(F("}"),P,pe,L,B):";"==e?C():"if"==e?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==L&&T.state.cc.pop()(),C(F("form"),U,W,L,_e)):"function"==e?C(Pe):"for"==e?C(F("form"),P,$e,W,B,L):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form","class"==e?e:t),We,L)):"variable"==e?l&&"declare"==t?(T.marked="keyword",C(W)):l&&("module"==t||"enum"==t||"type"==t)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==t?C(tt):"type"==t?C(Fe,Q("operator"),ve,Q(";")):C(F("form"),Ce,Q("{"),F("}"),pe,L,L)):l&&"namespace"==t?(T.marked="keyword",C(F("form"),J,W,L)):l&&"abstract"==t?(T.marked="keyword",C(W)):C(F("stat"),ie):"switch"==e?C(F("form"),U,Q("{"),F("}","switch"),P,pe,L,L,B):"case"==e?C(J,Q(":")):"default"==e?C(Q(":")):"catch"==e?C(F("form"),N,D,W,L,B):"export"==e?C(F("stat"),Ue,L):"import"==e?C(F("stat"),Ke,L):"async"==e?C(W):"@"==t?C(J,W):V(F("stat"),J,Q(";"),L)}function D(e){if("("==e)return C(Le,Q(")"))}function J(e,t){return H(e,t,!1)}function R(e,t){return H(e,t,!0)}function U(e){return"("!=e?V():C(F(")"),K,Q(")"),L)}function H(e,t,r){if(T.state.fatArrowAt==T.stream.start){var n=r?te:ee;if("("==e)return C(N,F(")"),fe(Le,")"),L,Q("=>"),n,B);if("variable"==e)return V(N,Ce,Q("=>"),n,B)}var a=r?X:G;return j.hasOwnProperty(e)?C(a):"function"==e?C(Pe,a):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form"),Qe,L)):"keyword c"==e||"async"==e?C(r?R:J):"("==e?C(F(")"),K,Q(")"),L,a):"operator"==e||"spread"==e?C(r?R:J):"["==e?C(F("]"),et,L,a):"{"==e?le(se,"}",null,a):"quasi"==e?V(Y,a):"new"==e?C(re(r)):C()}function K(e){return e.match(/[;\}\)\],]/)?V():V(J)}function G(e,t){return","==e?C(K):X(e,t,!1)}function X(e,t,r){var n=0==r?G:X,a=0==r?J:R;return"=>"==e?C(N,r?te:ee,B):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?C(n):l&&"<"==t&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(F(">"),fe(ve,">"),L,n):"?"==t?C(J,Q(":"),a):C(a):"quasi"==e?V(Y,n):";"!=e?"("==e?le(R,")","call",n):"."==e?C(oe,n):"["==e?C(F("]"),K,Q("]"),L,n):l&&"as"==t?(T.marked="keyword",C(ve,n)):"regexp"==e?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),C(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(Y):C(K,Z)}function Z(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(Y)}function ee(e){return h(T.stream,T.state),V("{"==e?W:J)}function te(e){return h(T.stream,T.state),V("{"==e?W:R)}function re(e){return function(t){return"."==t?C(e?ae:ne):"variable"==t&&l?C(Me,e?X:G):V(e?R:J)}}function ne(e,t){if("target"==t)return T.marked="keyword",C(G)}function ae(e,t){if("target"==t)return T.marked="keyword",C(X)}function ie(e){return":"==e?C(L,W):V(G,Q(";"),L)}function oe(e){if("variable"==e)return T.marked="property",C()}function se(e,t){return"async"==e?(T.marked="property",C(se)):"variable"==e||"keyword"==T.style?(T.marked="property","get"==t||"set"==t?C(ce):(l&&T.state.fatArrowAt==T.stream.start&&(r=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+r[0].length),C(ue))):"number"==e||"string"==e?(T.marked=c?"property":T.style+" property",C(ue)):"jsonld-keyword"==e?C(ue):l&&O(t)?(T.marked="keyword",C(se)):"["==e?C(J,de,Q("]"),ue):"spread"==e?C(R,ue):"*"==t?(T.marked="keyword",C(se)):":"==e?V(ue):void 0;var r}function ce(e){return"variable"!=e?V(ue):(T.marked="property",C(Pe))}function ue(e){return":"==e?C(R):"("==e?V(Pe):void 0}function fe(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=T.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C(function(r,n){return r==t||n==t?V():V(e)},n)}return a==t||i==t?C():r&&r.indexOf(";")>-1?V(e):C(Q(t))}return i(n,"proceed"),function(r,a){return r==t||a==t?C():V(e,n)}}function le(e,t,r){for(var n=3;n<arguments.length;n++)T.cc.push(arguments[n]);return C(F(t,r),fe(e,t),L)}function pe(e){return"}"==e?C():V(W,pe)}function de(e,t){if(l){if(":"==e)return C(ve);if("?"==t)return C(de)}}function me(e,t){if(l&&(":"==e||"in"==t))return C(ve)}function ye(e){if(l&&":"==e)return T.stream.match(/^\s*\w+\s+is\b/,!1)?C(J,ke,ve):C(ve)}function ke(e,t){if("is"==t)return T.marked="keyword",C()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(T.marked="keyword",C("typeof"==t?R:ve)):"variable"==e||"void"==t?(T.marked="type",C(Ae)):"|"==t||"&"==t?C(ve):"string"==e||"number"==e||"atom"==e?C(Ae):"["==e?C(F("]"),fe(ve,"]",","),L,Ae):"{"==e?C(F("}"),we,L,Ae):"("==e?C(fe(je,")"),be,Ae):"<"==e?C(fe(ve,">"),ve):"quasi"==e?V(ge,Ae):void 0}function be(e){if("=>"==e)return C(ve)}function we(e){return e.match(/[\}\)\]]/)?C():","==e||";"==e?C(we):V(xe,we)}function xe(e,t){return"variable"==e||"keyword"==T.style?(T.marked="property",C(xe)):"?"==t||"number"==e||"string"==e?C(xe):":"==e?C(ve):"["==e?C(Q("variable"),me,Q("]"),xe):"("==e?V(Be,xe):e.match(/[;\}\)\],]/)?void 0:C()}function ge(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(ge):C(ve,he)}function he(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(ge)}function je(e,t){return"variable"==e&&T.stream.match(/^\s*[?:]/,!1)||"?"==t?C(je):":"==e?C(ve):"spread"==e?C(je):V(ve)}function Ae(e,t){return"<"==t?C(F(">"),fe(ve,">"),L,Ae):"|"==t||"."==e||"&"==t?C(ve):"["==e?C(ve,Q("]"),Ae):"extends"==t||"implements"==t?(T.marked="keyword",C(ve)):"?"==t?C(ve,Q(":"),ve):void 0}function Me(e,t){if("<"==t)return C(F(">"),fe(ve,">"),L,Ae)}function Ee(){return V(ve,Te)}function Te(e,t){if("="==t)return C(ve)}function Ve(e,t){return"enum"==t?(T.marked="keyword",C(tt)):V(Ce,de,Se,Oe)}function Ce(e,t){return l&&O(t)?(T.marked="keyword",C(Ce)):"variable"==e?(z(t),C()):"spread"==e?C(Ce):"["==e?le(ze,"]"):"{"==e?le(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||T.stream.match(/^\s*:/,!1)?("variable"==e&&(T.marked="property"),"spread"==e?C(Ce):"}"==e?V():"["==e?C(J,Q("]"),Q(":"),Ie):C(Q(":"),Ce,Se)):(z(t),C(Se))}function ze(){return V(Ce,Se)}function Se(e,t){if("="==t)return C(R)}function Oe(e){if(","==e)return C(Ve)}function _e(e,t){if("keyword b"==e&&"else"==t)return C(F("form","else"),W,L)}function $e(e,t){return"await"==t?C($e):"("==e?C(F(")"),qe,L):void 0}function qe(e){return"var"==e?C(Ve,Ne):"variable"==e?C(Ne):V(Ne)}function Ne(e,t){return")"==e?C():";"==e?C(Ne):"in"==t||"of"==t?(T.marked="keyword",C(J,Ne)):V(J,Ne)}function Pe(e,t){return"*"==t?(T.marked="keyword",C(Pe)):"variable"==e?(z(t),C(Pe)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,W,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Pe):void 0}function Be(e,t){return"*"==t?(T.marked="keyword",C(Be)):"variable"==e?(z(t),C(Be)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Be):void 0}function Fe(e,t){return"keyword"==e||"variable"==e?(T.marked="type",C(Fe)):"<"==t?C(F(">"),fe(Ee,">"),L):void 0}function Le(e,t){return"@"==t&&C(J,Le),"spread"==e?C(Le):l&&O(t)?(T.marked="keyword",C(Le)):l&&"this"==e?C(de,Se):V(Ce,de,Se)}function Qe(e,t){return"variable"==e?We(e,t):De(e,t)}function We(e,t){if("variable"==e)return z(t),C(De)}function De(e,t){return"<"==t?C(F(">"),fe(Ee,">"),L,De):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(T.marked="keyword"),C(l?ve:J,De)):"{"==e?C(F("}"),Je,L):void 0}function Je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&O(t))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",C(Je)):"variable"==e||"keyword"==T.style?(T.marked="property",C(Re,Je)):"number"==e||"string"==e?C(Re,Je):"["==e?C(J,de,Q("]"),Re,Je):"*"==t?(T.marked="keyword",C(Je)):l&&"("==e?V(Be,Je):";"==e||","==e?C(Je):"}"==e?C():"@"==t?C(J,Je):void 0}function Re(e,t){if("!"==t)return C(Re);if("?"==t)return C(Re);if(":"==e)return C(ve,Se);if("="==t)return C(R);var r=T.state.lexical.prev;return V(r&&"interface"==r.info?Be:Pe)}function Ue(e,t){return"*"==t?(T.marked="keyword",C(Ze,Q(";"))):"default"==t?(T.marked="keyword",C(J,Q(";"))):"{"==e?C(fe(He,"}"),Ze,Q(";")):V(W)}function He(e,t){return"as"==t?(T.marked="keyword",C(Q("variable"))):"variable"==e?V(R,He):void 0}function Ke(e){return"string"==e?C():"("==e?V(J):"."==e?V(G):V(Ge,Xe,Ze)}function Ge(e,t){return"{"==e?le(Ge,"}"):("variable"==e&&z(t),"*"==t&&(T.marked="keyword"),C(Ye))}function Xe(e){if(","==e)return C(Ge,Xe)}function Ye(e,t){if("as"==t)return T.marked="keyword",C(Ge)}function Ze(e,t){if("from"==t)return T.marked="keyword",C(J)}function et(e){return"]"==e?C():V(fe(R,"]"))}function tt(){return V(F("form"),Ce,Q("{"),F("}"),fe(rt,"}"),L,L)}function rt(){return V(Ce,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||m.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==b&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return i(N,"pushcontext"),i(P,"pushblockcontext"),N.lex=P.lex=!0,i(B,"popcontext"),B.lex=!0,i(F,"pushlex"),i(L,"poplex"),L.lex=!0,i(Q,"expect"),i(W,"statement"),i(D,"maybeCatchBinding"),i(J,"expression"),i(R,"expressionNoComma"),i(U,"parenExpr"),i(H,"expressionInner"),i(K,"maybeexpression"),i(G,"maybeoperatorComma"),i(X,"maybeoperatorNoComma"),i(Y,"quasi"),i(Z,"continueQuasi"),i(ee,"arrowBody"),i(te,"arrowBodyNoComma"),i(re,"maybeTarget"),i(ne,"target"),i(ae,"targetNoComma"),i(ie,"maybelabel"),i(oe,"property"),i(se,"objprop"),i(ce,"getterSetter"),i(ue,"afterprop"),i(fe,"commasep"),i(le,"contCommasep"),i(pe,"block"),i(de,"maybetype"),i(me,"maybetypeOrIn"),i(ye,"mayberettype"),i(ke,"isKW"),i(ve,"typeexpr"),i(be,"maybeReturnType"),i(we,"typeprops"),i(xe,"typeprop"),i(ge,"quasiType"),i(he,"continueQuasiType"),i(je,"typearg"),i(Ae,"afterType"),i(Me,"maybeTypeArgs"),i(Ee,"typeparam"),i(Te,"maybeTypeDefault"),i(Ve,"vardef"),i(Ce,"pattern"),i(Ie,"proppattern"),i(ze,"eltpattern"),i(Se,"maybeAssign"),i(Oe,"vardefCont"),i(_e,"maybeelse"),i($e,"forspec"),i(qe,"forspec1"),i(Ne,"forspec2"),i(Pe,"functiondef"),i(Be,"functiondecl"),i(Fe,"typename"),i(Le,"funarg"),i(Qe,"classExpression"),i(We,"className"),i(De,"classNameAfter"),i(Je,"classBody"),i(Re,"classfield"),i(Ue,"afterExport"),i(He,"exportField"),i(Ke,"afterImport"),i(Ge,"importSpec"),i(Xe,"maybeMoreImports"),i(Ye,"maybeAs"),i(Ze,"maybeFrom"),i(et,"arrayLiteral"),i(tt,"enumdef"),i(rt,"enummember"),i(nt,"isContinuedStatement"),i(at,"expressionAllowed"),{startState:function(e){var r={tokenize:b,lastType:"sof",cc:[],lexical:new A((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new _(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),h(e,t)),t.tokenize!=x&&e.eatSpace())return null;var a=t.tokenize(e,t);return"comment"==r?a:(t.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",E(t,a,r,n,e))},indent:function(e,r){if(e.tokenize==x||e.tokenize==g)return s.Pass;if(e.tokenize!=b)return 0;var n,i=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var f=e.cc[u];if(f==L)c=c.prev;else if(f!=_e&&f!=B)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(n=e.cc[e.cc.length-1])&&(n==G||n==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var l=c.type,p=i==l;return"vardef"==l?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==l&&"{"==i?c.indented:"form"==l?c.indented+a:"stat"==l?c.indented+(nt(e,r)?o||a:0):"switch"!=c.info||p||0==t.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:at,skipExpression:function(e){E(e,"atom","atom","true",new s.StringStream("",2,null))}}}),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=o({__proto__:null,default:c.exports},[c.exports])}}]);
|